sqllogictest

Artifact [020780a77f]
Login

Artifact 020780a77f0569c58b5bdd48c95066f2b724b276:


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 + 30 - - col2 FROM tab1
----
126
84
87

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

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

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

query I rowsort
SELECT ALL + ( - col0 ) - - 92 * col0 FROM tab2
----
637
7098
7189

query I rowsort
SELECT ( col1 ) * col1 * col1 FROM tab2
----
205379
29791
4913

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + col2 ) + + 89 col2 FROM tab2 cor0
----
115
116
127

query I rowsort
SELECT + 41 * col0 + col2 AS col0 FROM tab0 AS cor0
----
1017
1436
3731

query I rowsort
SELECT - - col0 + + col2 + + 67 * + col1 * - col0 AS col2 FROM tab2 AS cor0
----
-14505
-308230
-89864

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

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

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

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

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

query I rowsort
SELECT 69 AS col1 FROM tab1 cor0
----
69
69
69

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

query I rowsort
SELECT - 17 AS col0 FROM tab2 cor0
----
-17
-17
-17

query I rowsort
SELECT col0 * - col1 * - col1 + ( + col1 ) FROM tab1
----
13533
2054
6410

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

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

query I rowsort
SELECT DISTINCT + col0 + + col2 * + col0 + + 32 AS col2 FROM tab1 AS cor0
----
197
3744
7792

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

query I rowsort
SELECT DISTINCT - col0 * 55 + cor0.col2 FROM tab2 AS cor0
----
-358
-4264
-4307

query I rowsort
SELECT DISTINCT + 20 - col1 FROM tab2 AS cor0
----
-11
-39
3

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 14 * + cor0.col1 col0 FROM tab0 AS cor0
----
-1204
-1274
-1358

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-24
SELECT DISTINCT - - CAST( + 23 AS SIGNED ) * + col1 FROM tab0 AS cor0
----
1978
2093
2231

skipif mysql # not compatible
query I rowsort label-24
SELECT DISTINCT - - CAST ( + 23 AS INTEGER ) * + col1 FROM tab0 AS cor0
----
1978
2093
2231

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

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

query I rowsort
SELECT DISTINCT + ( col2 ) * cor0.col0 + 49 AS col1 FROM tab1 AS cor0
----
211
3697
7729

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 + - 92 col0 FROM tab0 AS cor0
----
-178
-183
-189

query I rowsort
SELECT DISTINCT ( + col1 ) * - cor0.col1 * + col1 + + 74 * - cor0.col0 - col2 FROM tab0 AS cor0
----
-637865
-760239
-915264

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-30
SELECT - CAST( - col0 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
7
78
79

skipif mysql # not compatible
query I rowsort label-30
SELECT - CAST ( - col0 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
7
78
79

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

query I rowsort
SELECT - + 42 * - 91 FROM tab0 cor0
----
3822
3822
3822

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

query I rowsort
SELECT cor0.col0 + + cor0.col2 * - col0 * - ( + col0 * col2 + - cor0.col0 ) AS col0 FROM tab1 AS cor0
----
13074496
25761
58368080

skipif mysql # not compatible
query I rowsort
SELECT ALL + - CAST ( + col1 AS REAL ) + col0 FROM tab0 AS cor0
----
-2
-62
-62

query I rowsort
SELECT - col2 * - 82 FROM tab1 AS cor0
----
4428
4674
7872

onlyif mysql # use DIV operator for integer division
query I rowsort label-37
SELECT ALL + col0 DIV 37 + col2 * - col0 AS col2 FROM tab0 cor0
----
-35
-7296
-792

skipif mysql # not compatible
query I rowsort label-37
SELECT ALL + col0 / 37 + col2 * - col0 AS col2 FROM tab0 cor0
----
-35
-7296
-792

query I rowsort
SELECT ALL + - 88 + - cor0.col0 AS col2 FROM tab1 cor0
----
-152
-168
-91

onlyif mysql # use DIV operator for integer division
query I rowsort label-39
SELECT ALL - 66 DIV col1 - - ( 97 ) FROM tab0 AS cor0
----
97
97
97

skipif mysql # not compatible
query I rowsort label-39
SELECT ALL - 66 / col1 - - ( 97 ) FROM tab0 AS cor0
----
97
97
97

query I rowsort
SELECT + col0 + cor0.col2 * 32 FROM tab1 cor0
----
1731
1888
3152

query I rowsort
SELECT ALL cor0.col1 * col0 - 22 FROM tab0 AS cor0
----
2042
3373
8077

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

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT ( ( col2 ) ) * col0 + - col2 * - col1 AS col0 FROM tab1 cor0
----
1566
4218
8928

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-49
SELECT DISTINCT - CAST( + col2 AS SIGNED ) * col1 * + cor0.col0 - col0 AS col1 FROM tab0 AS cor0
----
-3430
-664207
-68136

skipif mysql # not compatible
query I rowsort label-49
SELECT DISTINCT - CAST ( + col2 AS INTEGER ) * col1 * + cor0.col0 - col0 AS col1 FROM tab0 AS cor0
----
-3430
-664207
-68136

query I rowsort
SELECT DISTINCT - 52 * - col0 + - col0 AS col1 FROM tab0 AS cor0
----
1224
1785
4539

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

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

query I rowsort
SELECT ALL - tab0.col0 + + col0 AS col2 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT - col2 + - col0 * - ( + col0 ) FROM tab0
----
1224
543
7839

query I rowsort
SELECT + col0 * col1 + cor0.col0 * - col0 AS col0 FROM tab0 AS cor0
----
1488
178
2170

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

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

query I rowsort
SELECT ALL + col2 + 65 * - col0 FROM tab0
----
-1527
-2274
-5703

query I rowsort
SELECT - col2 * col0 - + 62 * + ( col2 ) AS col0 FROM tab2 AS cor0
----
-1863
-3640
-5358

query I rowsort
SELECT DISTINCT + col2 + - col2 * col1 * col2 AS col2 FROM tab2 AS cor0
----
-22572
-24510
-39858

query I rowsort
SELECT DISTINCT - + 78 * - col1 FROM tab2 cor0
----
1326
2418
4602

query I rowsort
SELECT + 71 - col2 FROM tab2 AS cor0
----
33
44
45

query I rowsort
SELECT ALL - cor0.col1 * col0 * - ( + ( col0 ) + ( ( - col2 ) ) ) FROM tab0 AS cor0
----
-18576
115430
56693

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - ( + 92 ) col1 FROM tab0 AS cor0
----
7912
8372
8924

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

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

query I rowsort
SELECT - ( col0 ) * + ( 76 ) FROM tab2
----
-532
-5928
-6004

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

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

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

skipif mysql # not compatible
query I rowsort
SELECT ALL 90 * col0 * col2 + CAST ( col1 AS REAL ) + + col0 AS col0 FROM tab1 AS cor0
----
14609
328394
691293

query I rowsort
SELECT DISTINCT - 28 * - col2 FROM tab1 AS cor0
----
1512
1596
2688

onlyif mysql # use DIV operator for integer division
query I rowsort label-72
SELECT col0 * col2 DIV cor0.col0 col2 FROM tab1 AS cor0
----
54
57
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-72
SELECT col0 * col2 / cor0.col0 col2 FROM tab1 AS cor0
----
54
57
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-73
SELECT DISTINCT + tab2.col1 * 18 DIV tab2.col1 col1 FROM tab2
----
18

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-73
SELECT DISTINCT + tab2.col1 * 18 / tab2.col1 col1 FROM tab2
----
18

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

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

query I rowsort
SELECT DISTINCT ( + col2 ) * + col2 + ( col0 ) FROM tab0
----
1113
36
6813

query I rowsort
SELECT - col1 + 90 FROM tab1 AS cor0
----
64
77
80

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

query I rowsort
SELECT ALL + 21 * - cor0.col0 AS col0 FROM tab0 AS cor0
----
-1869
-504
-735

query I rowsort
SELECT ALL - - 78 * - 96 FROM tab2 cor0
----
-7488
-7488
-7488

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

skipif mysql # not compatible
query I rowsort label-80
SELECT + - CAST ( - col2 AS INTEGER ) * + col2 FROM tab2 AS cor0
----
1444
676
729

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

query I rowsort
SELECT ALL + 68 * + cor0.col0 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 9f35e33e4ecb2a7ab4a8eabcd2625998

query IIIIIIIII rowsort
SELECT * FROM tab2, tab0, tab0 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND NULL
----

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

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

query I rowsort
SELECT ALL cor0.col0 + - col0 * 86 * col1 AS col2 FROM tab0 AS cor0
----
-177480
-291935
-696425

query I rowsort
SELECT ( + 98 ) + col1 AS col2 FROM tab0 AS cor0
----
184
189
195

query I rowsort
SELECT - - 92 - col0 FROM tab1 cor0
----
12
28
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * - col1 * - 23 col1 FROM tab0
----
-171626
-2231
-65274

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

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

query I rowsort
SELECT - 97 AS col1 FROM tab1, tab1 cor0
----
9 values hashing to e4a6bd848a69226cbb7ad3d154be321b

query I rowsort
SELECT - col1 * col0 * + 79 + + col1 FROM tab2 AS cor0
----
-106080
-17112
-363499

query I rowsort
SELECT ALL - - cor0.col1 * 20 FROM tab0 AS cor0
----
1720
1820
1940

query I rowsort
SELECT col1 * col0 + col1 * col1 FROM tab2 AS cor0
----
1178
1632
8083

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

query I rowsort
SELECT + - col1 * - cor0.col1 + + col0 * col2 * + 30 FROM tab0 AS cor0
----
10459
227221
31156

query I rowsort
SELECT + col1 * + col2 + + 72 FROM tab0 AS cor0
----
169
2910
7534

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

query I rowsort
SELECT cor0.col2 * - 5 FROM tab1 cor0 CROSS JOIN tab0, tab0 cor1
----
27 values hashing to e94953434890550b79f2d5599206d5cc

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

skipif mysql # not compatible
query I rowsort label-100
SELECT CAST ( - 42 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-42
-42
-42

onlyif mysql # use DIV operator for integer division
query I rowsort label-101
SELECT - + col1 * col1 + cor0.col2 DIV + 6 col2 FROM tab1 AS cor0
----
-153
-667
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-101
SELECT - + col1 * col1 + cor0.col2 / + 6 col2 FROM tab1 AS cor0
----
-153
-667
-91

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

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

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

query I rowsort
SELECT DISTINCT col1 + col1 * - 17 FROM tab1 AS cor0
----
-160
-208
-416

onlyif mysql # use DIV operator for integer division
query I rowsort label-105
SELECT ALL col2 + 91 * - cor0.col2 DIV - cor0.col2 AS col2 FROM tab0 AS cor0
----
124
173
92

skipif mysql # not compatible
query I rowsort label-105
SELECT ALL col2 + 91 * - cor0.col2 / - cor0.col2 AS col2 FROM tab0 AS cor0
----
124
173
92

query I rowsort
SELECT + col2 + - col2 * col1 AS col0 FROM tab0 AS cor0
----
-2805
-7380
-96

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-108
SELECT + col0 + + cor0.col2 DIV - 3 AS col0 FROM tab2 AS cor0
----
-2
67
70

skipif mysql # not compatible
query I rowsort label-108
SELECT + col0 + + cor0.col2 / - 3 AS col0 FROM tab2 AS cor0
----
-2
67
70

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

query I rowsort
SELECT DISTINCT col2 + + 62 FROM tab2 AS cor0
----
100
88
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-111
SELECT ALL col2 * - col2 + col0 DIV col2 FROM tab0 AS cor0
----
-1089
-6723
34

skipif mysql # not compatible
query I rowsort label-111
SELECT ALL col2 * - col2 + col0 / col2 FROM tab0 AS cor0
----
-1089
-6723
34

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

query I rowsort
SELECT DISTINCT + + col2 + col2 - + col0 AS col2 FROM tab1 AS cor0
----
105
112
50

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

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

query I rowsort
SELECT ALL - cor0.col0 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e

query I rowsort
SELECT col0 * + 27 AS col0 FROM tab1
----
1728
2160
81

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

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

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

query I rowsort
SELECT DISTINCT 1 * + ( - cor1.col1 ) FROM tab0, tab0 AS cor0, tab2 AS cor1
----
-17
-31
-59

query I rowsort
SELECT ALL col0 * - col0 * - 4 FROM tab2
----
196
24336
24964

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * + col0 * col2 col2 FROM tab1 AS cor0
----
207936
737280
8748

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

query I rowsort
SELECT 56 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa

onlyif mysql # use DIV operator for integer division
query I rowsort label-127
SELECT DISTINCT 70 DIV col2 + + 83 * + 79 * cor0.col2 FROM tab0 AS cor0
----
216383
537674
6627

skipif mysql # not compatible
query I rowsort label-127
SELECT DISTINCT 70 / col2 + + 83 * + 79 * cor0.col2 FROM tab0 AS cor0
----
216383
537674
6627

query I rowsort
SELECT ALL + + col2 + + cor0.col0 * col0 AS col1 FROM tab0 cor0
----
1226
609
8003

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

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

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT 7 + - col0 * CAST ( col1 * col1 AS REAL ) FROM tab1 AS cor0
----
-13513
-2021
-6393

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + ( col0 ) col1 FROM tab2 AS cor0
----
104
117
34

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-133
SELECT DISTINCT - col1 * CAST( NULL AS SIGNED ) + col1 + + col1 FROM tab2 AS cor0
----
NULL

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

query I rowsort
SELECT + tab0.col0 - - col2 AS col0 FROM tab0
----
171
36
57

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

query I rowsort
SELECT DISTINCT col2 + - col1 + col0 FROM tab1 AS cor0
----
111
163
31

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

skipif mysql # not compatible
query I rowsort label-137
SELECT DISTINCT + - col1 + CAST ( - col0 + col0 AS INTEGER ) * ( + col2 + - col0 * col0 ) FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT ALL - col2 * + col1 * 35 FROM tab1 AS cor0
----
-19950
-43680
-49140

query I rowsort
SELECT ALL 94 + - col2 AS col0 FROM tab0
----
12
61
93

query I rowsort
SELECT ALL + col2 + 59 * + col1 FROM tab0
----
5107
5451
5724

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

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

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

skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( 65 AS REAL ) * col2 FROM tab2 AS cor0
----
1690
1755
2470

onlyif mysql # use DIV operator for integer division
query I rowsort label-144
SELECT cor0.col1 * col1 - - cor0.col1 DIV - ( col0 ) FROM tab0 AS cor0
----
7393
8280
9407

skipif mysql # not compatible
query I rowsort label-144
SELECT cor0.col1 * col1 - - cor0.col1 / - ( col0 ) FROM tab0 AS cor0
----
7393
8280
9407

query I rowsort
SELECT DISTINCT + - 6 - col1 AS col2 FROM tab1 AS cor0
----
-16
-19
-32

query I rowsort
SELECT - 19 + + 88 FROM tab2 AS cor0
----
69
69
69

query I rowsort
SELECT ALL 99 * - col0 * col1 AS col2 FROM tab2 AS cor0
----
-132957
-21483
-455598

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

query I rowsort
SELECT DISTINCT ( col0 ) * - col2 - - ( col1 ) AS col1 FROM tab0 AS cor0
----
-706
-7207
62

query I rowsort
SELECT ALL 9 * - col2 AS col0 FROM tab0 AS cor0
----
-297
-738
-9

query I rowsort
SELECT ALL 82 + + col1 * col2 + + col2 * + cor0.col2 AS col1 FROM tab2 AS cor0
----
1648
2172
2292

query I rowsort
SELECT DISTINCT col0 * + col1 + + col1 * col1 * + col2 FROM tab1 cor0
----
17264
36582
6340

query I rowsort
SELECT + col1 * - col1 + - col2 AS col0 FROM tab0 cor0
----
-7429
-8363
-9410

query I rowsort
SELECT DISTINCT - 85 * - col2 AS col1 FROM tab0 AS cor0
----
2805
6970
85

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-157
SELECT - - col0 DIV - col1 + - cor0.col1 * + col1 AS col1 FROM tab2 AS cor0
----
-293
-3482
-961

skipif mysql # not compatible
query I rowsort label-157
SELECT - - col0 / - col1 + - cor0.col1 * + col1 AS col1 FROM tab2 AS cor0
----
-293
-3482
-961

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-159
SELECT CAST( - 21 * + col2 + + tab0.col1 AS SIGNED ) FROM tab0
----
-1631
-607
76

skipif mysql # not compatible
query I rowsort label-159
SELECT CAST ( - 21 * + col2 + + tab0.col1 AS INTEGER ) FROM tab0
----
-1631
-607
76

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

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

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

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

skipif mysql # not compatible
query I rowsort label-162
SELECT DISTINCT - CAST ( col2 AS INTEGER ) + - col2 * - col2 AS col0 FROM tab1 AS cor0
----
2862
3192
9120

onlyif mysql # use DIV operator for integer division
query I rowsort label-163
SELECT ALL - ( col0 ) * col1 DIV 7 col0 FROM tab1 cor0
----
-11
-148
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-163
SELECT ALL - ( col0 ) * col1 / 7 col0 FROM tab1 cor0
----
-11
-148
-91

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

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

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

query I rowsort
SELECT DISTINCT col2 + 25 AS col0 FROM tab1 AS cor0
----
121
79
82

query I rowsort
SELECT ALL 52 * cor0.col0 FROM tab0 AS cor0
----
1248
1820
4628

query I rowsort
SELECT - col1 * - col1 - + ( col0 ) * - cor0.col1 AS col0 FROM tab2 cor0
----
1178
1632
8083

query I rowsort
SELECT ALL + + 39 * col0 + col0 * - 65 * + col1 FROM tab1 AS cor0
----
-39104
-4953
-64480

query I rowsort
SELECT col1 * + col2 + - col1 * - ( + col2 ) + col1 FROM tab0 AS cor0
----
15015
291
5762

query I rowsort
SELECT - 38 + col2 AS col1 FROM tab1 AS cor0
----
16
19
58

query I rowsort
SELECT ( col2 ) * + 76 - - 31 * cor0.col0 FROM tab2 cor0
----
2269
4394
5337

query I rowsort
SELECT + 2 * - cor0.col2 - + col1 * + col1 FROM tab1 AS cor0
----
-214
-361
-784

query I rowsort
SELECT col1 + cor0.col0 * col0 * col0 AS col1 FROM tab1 AS cor0
----
262154
512013
53

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

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

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

query I rowsort
SELECT - col2 * + 7 FROM tab2 AS cor0
----
-182
-189
-266

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-179
SELECT + col2 + 44 DIV col2 FROM tab0
----
34
45
82

skipif mysql # not compatible
query I rowsort label-179
SELECT + col2 + 44 / col2 FROM tab0
----
34
45
82

query I rowsort
SELECT ALL - 51 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 08d3853e39924d3c636260a6dd856837

query I rowsort
SELECT ( + 39 ) AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf

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

query I rowsort
SELECT - + 87 + col0 AS col0 FROM tab1 AS cor0
----
-23
-7
-84

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

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

query I rowsort
SELECT DISTINCT + - 95 * col1 - - 52 FROM tab2 AS cor0
----
-1563
-2893
-5553

query I rowsort
SELECT ALL - - col1 * col2 + col1 * - col2 + col1 AS col2 FROM tab1 AS cor0
----
10
13
26

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - 99 + 86 + col0 col1 FROM tab0 cor0
----
-2266
-3344
-8636

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

query I rowsort
SELECT 46 * col0 * col2 FROM tab1
----
167808
353280
7452

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-192
SELECT - cor0.col0 - - CAST( NULL AS SIGNED ) AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-192
SELECT - cor0.col0 - - CAST ( NULL AS INTEGER ) AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

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

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

query I rowsort
SELECT ALL tab0.col2 * + 44 * - tab0.col1 AS col1 FROM tab0
----
-124872
-328328
-4268

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-197
SELECT col0 + + col2 DIV 22 + + col1 AS col1 FROM tab0 AS cor0
----
111
132
183

skipif mysql # not compatible
query I rowsort label-197
SELECT col0 + + col2 / 22 + + col1 AS col1 FROM tab0 AS cor0
----
111
132
183

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

query I rowsort
SELECT ALL - tab2.col0 * col2 + + 35 FROM tab2
----
-154
-1993
-2967

query I rowsort
SELECT - tab1.col1 - + col1 * 1 AS col0 FROM tab1
----
-20
-26
-52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 89 * + col1 col0 FROM tab2 cor0
----
-1513
-2759
-5251

query I rowsort
SELECT DISTINCT + 41 * + col1 AS col1 FROM tab2 AS cor0
----
1271
2419
697

query I rowsort
SELECT ALL + col2 + cor0.col1 + - col1 FROM tab2 AS cor0
----
26
27
38

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

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

query I rowsort
SELECT + + cor0.col2 * col0 + col0 AS col0 FROM tab2 AS cor0
----
196
2106
3081

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

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

query I rowsort
SELECT DISTINCT col2 * - col0 + col1 * + col2 FROM tab2 AS cor0
----
-2356
-494
648

query I rowsort
SELECT ALL - cor0.col1 * + 93 AS col0 FROM tab1 cor0
----
-1209
-2418
-930

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

query I rowsort
SELECT - + col0 * 90 FROM tab2 AS cor0
----
-630
-7020
-7110

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

query I rowsort
SELECT ALL - cor0.col2 + ( - col0 ) * cor0.col1 AS col1 FROM tab2 AS cor0
----
-1381
-244
-4628

query I rowsort
SELECT DISTINCT + - cor0.col1 * ( - cor0.col2 ) * col0 + 26 + - col2 AS col0 FROM tab1 AS cor0
----
36449
4184
99770

query I rowsort
SELECT ALL + cor0.col2 * + col0 + col0 * + col1 AS col1 FROM tab1 cor0
----
240
4288
8720

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

query I rowsort
SELECT ALL + col0 + 68 * - col0 - + col0 * cor0.col0 AS col1 FROM tab0 cor0
----
-13884
-2184
-3570

query I rowsort
SELECT DISTINCT col2 + col1 * col1 + + col2 FROM tab1 AS cor0
----
214
361
784

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

query I rowsort
SELECT ALL - - col1 + + 98 * col2 FROM tab2 AS cor0
----
2607
2677
3741

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 + 82 col0 FROM tab1 AS cor0
----
18
2
79

query I rowsort
SELECT DISTINCT - cor0.col2 * col2 + col1 AS col1 FROM tab2 AS cor0
----
-1427
-617
-698

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

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

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

query I rowsort
SELECT + col0 * + col2 * - col1 + - tab0.col2 FROM tab0
----
-3396
-664200
-68145

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 + + col1 IN ( tab0.col1 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL BETWEEN NULL AND col0
----

query I rowsort
SELECT DISTINCT - col2 - col0 * tab1.col2 AS col1 FROM tab1
----
-216
-3705
-7776

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

query I rowsort
SELECT col1 * col0 + col1 AS col2 FROM tab2
----
1360
248
4661

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

query I rowsort
SELECT DISTINCT + col1 * + col0 - col1 * - col2 FROM tab2
----
1054
1989
6136

query I rowsort
SELECT - ( + cor0.col2 ) * - col2 + + col1 * - col1 FROM tab1 AS cor0
----
2240
3149
9047

query I rowsort
SELECT DISTINCT col2 + col0 + - col1 FROM tab1 AS cor0
----
111
163
31

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

query I rowsort
SELECT DISTINCT tab1.col2 + + tab1.col1 + - col2 FROM tab1
----
10
13
26

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

query I rowsort
SELECT DISTINCT + col0 + - col1 + col2 AS col0 FROM tab0
----
-29
-61
80

query I rowsort
SELECT - + 94 * + cor0.col0 - 93 * col2 AS col1 FROM tab2 cor0
----
-10960
-3169
-9750

query I rowsort
SELECT - 31 * + col2 FROM tab1 AS cor0
----
-1674
-1767
-2976

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

query I rowsort
SELECT + col1 * - col2 + - 22 + 88 FROM tab0 AS cor0
----
-2772
-31
-7396

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

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

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

skipif mysql # not compatible
query I rowsort label-244
SELECT CAST ( NULL AS REAL ) * 47 - + col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT 71 * 60 AS col0 FROM tab2
----
4260
4260
4260

onlyif mysql # use DIV operator for integer division
query I rowsort label-246
SELECT + col1 DIV tab1.col0 + + col2 + col0 AS col1 FROM tab1
----
121
176
65

skipif mysql # not compatible
query I rowsort label-246
SELECT + col1 / tab1.col0 + + col2 + col0 AS col1 FROM tab1
----
121
176
65

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

query I rowsort
SELECT ALL col0 * + col0 + + ( + tab2.col0 ) + + col1 FROM tab2
----
6221
6337
87

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

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

query I rowsort
SELECT DISTINCT - col2 * cor0.col2 - - 43 FROM tab0 AS cor0
----
-1046
-6681
42

query I rowsort
SELECT cor0.col1 * col1 + 17 * col2 AS col0 FROM tab0 AS cor0
----
7957
9426
9675

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

skipif mysql # not compatible
query I rowsort label-253
SELECT ALL col2 / - col1 + CAST ( col2 AS INTEGER ) FROM tab2 cor0
----
26
27
36

query I rowsort
SELECT + cor0.col1 * + col0 * + col1 + col2 AS col2 FROM tab1 AS cor0
----
13616
2082
6457

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

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

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

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

skipif mysql # not compatible
query I rowsort label-258
SELECT ALL col0 * col1 / - ( tab0.col0 ) AS col1 FROM tab0
----
-86
-91
-97

query I rowsort
SELECT DISTINCT 66 FROM tab2 AS cor0 CROSS JOIN tab1, tab0 AS cor1
----
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 18 * + 18 * col1 col1 FROM tab0 AS cor0
----
-27864
-29484
-31428

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

query I rowsort
SELECT ALL cor0.col1 + col0 + + col0 * + cor0.col0 FROM tab2 AS cor0
----
6221
6337
87

query I rowsort
SELECT ALL 8 * - col0 + col2 * + col0 + + col2 * col2 FROM tab2
----
2080
3814
862

query I rowsort
SELECT - 90 - col1 * + col1 AS col2 FROM tab2 AS cor0
----
-1051
-3571
-379

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

skipif mysql # not compatible
query I rowsort label-265
SELECT - ( - col2 ) / - col0 FROM tab0
----
-1
0
0

query I rowsort
SELECT + col2 * - 24 FROM tab0 cor0
----
-1968
-24
-792

query I rowsort
SELECT DISTINCT - 82 * col0 AS col0 FROM tab2 AS cor0
----
-574
-6396
-6478

query I rowsort
SELECT + 17 * col2 AS col1 FROM tab0 cor0
----
1394
17
561

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

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

query I rowsort
SELECT ALL + + 8 + + col0 * - col0 FROM tab2 AS cor0
----
-41
-6076
-6233

query I rowsort
SELECT + col0 * 5 - - cor0.col1 AS col1 FROM tab2 AS cor0
----
412
449
66

query I rowsort
SELECT ALL col0 * cor0.col1 + - col0 AS col2 FROM tab2 AS cor0
----
1264
210
4524

query I rowsort
SELECT DISTINCT + + cor1.col1 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
10
13
26

onlyif mysql # use DIV operator for integer division
query I rowsort label-274
SELECT 82 DIV cor0.col1 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 8a9b55ac3cd2c8021c4ebaa64b4d7df4

skipif mysql # not compatible
query I rowsort label-274
SELECT 82 / cor0.col1 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 8a9b55ac3cd2c8021c4ebaa64b4d7df4

query I rowsort
SELECT ALL + ( - col2 ) * + cor0.col2 + - 90 * col1 FROM tab2 cor0
----
-2974
-3519
-5986

onlyif mysql # use DIV operator for integer division
query I rowsort label-276
SELECT + col0 + - cor0.col2 DIV ( - 20 ) FROM tab1 AS cor0
----
5
66
84

skipif mysql # not compatible
query I rowsort label-276
SELECT + col0 + - cor0.col2 / ( - 20 ) FROM tab1 AS cor0
----
5
66
84

query I rowsort
SELECT - ( 92 ) AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 1af709a79a3e56281ffdce4d931d5965

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

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

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

query I rowsort
SELECT ALL - - 75 * col1 AS col1 FROM tab1 AS cor0
----
1950
750
975

query I rowsort
SELECT ALL col1 + cor0.col2 * col1 + col2 FROM tab2 AS cor0
----
1619
701
895

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

skipif mysql # not compatible
query I rowsort label-283
SELECT ALL - CAST ( + col2 AS INTEGER ) * col2 - col0 * - ( - col1 ) FROM tab1 AS cor0
----
-10256
-2994
-3889

query I rowsort
SELECT DISTINCT - 12 + col1 * col2 FROM tab0 AS cor0
----
2826
7450
85

query I rowsort
SELECT - ( 93 ) * + col2 + + ( - cor0.col1 ) * col0 AS col1 FROM tab1 AS cor0
----
-5100
-5941
-9968

query I rowsort
SELECT DISTINCT + ( col0 ) * - col0 * col1 AS col1 FROM tab1 AS cor0
----
-234
-40960
-83200

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-288
SELECT ALL - col0 DIV col1 FROM tab1 cor0
----
-6
-6
0

skipif mysql # not compatible
query I rowsort label-288
SELECT ALL - col0 / col1 FROM tab1 cor0
----
-6
-6
0

query I rowsort
SELECT col2 * col0 + 17 FROM tab1 AS cor0
----
179
3665
7697

query I rowsort
SELECT DISTINCT + col2 * + col2 * ( + 96 + col2 ) AS col2 FROM tab2 AS cor0
----
193496
82472
89667

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

query I rowsort
SELECT DISTINCT ( + col2 ) * col0 + - 8 AS col2 FROM tab2 AS cor0
----
181
2020
2994

query I rowsort
SELECT DISTINCT - col0 * cor0.col0 + cor0.col0 * cor0.col2 AS col1 FROM tab1 AS cor0
----
-448
1280
153

onlyif mysql # use DIV operator for integer division
query I rowsort label-294
SELECT ALL 98 * - col1 * col1 + + 32 DIV col0 AS col2 FROM tab1
----
-16562
-66238
-9800

skipif mysql # not compatible
query I rowsort label-294
SELECT ALL 98 * - col1 * col1 + + 32 / col0 AS col2 FROM tab1
----
-16562
-66238
-9800

query I rowsort
SELECT ALL - 69 + - col1 * + col0 AS col2 FROM tab1
----
-1109
-147
-709

query I rowsort
SELECT + - col0 * col1 + + 1 FROM tab0 AS cor0
----
-2063
-3394
-8098

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

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

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

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

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

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

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

query I rowsort
SELECT - + col1 * + 33 + col1 FROM tab1 AS cor0
----
-320
-416
-832

query I rowsort
SELECT ALL - cor0.col0 * col0 + - col0 AS col2 FROM tab0 AS cor0
----
-1260
-600
-8010

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

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

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

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

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

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

query I rowsort
SELECT 7 - - 22 AS col2 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 4c56285992bcb76e1aac22e6d23d1318

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

query I rowsort
SELECT DISTINCT - col2 * col0 * + ( 52 ) AS col2 FROM tab2
----
-105456
-156104
-9828

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

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

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

query I rowsort
SELECT - 20 + - col2 AS col0 FROM tab0 AS cor0
----
-102
-21
-53

query I rowsort
SELECT + cor0.col2 * 32 FROM tab2 AS cor0
----
1216
832
864

query I rowsort
SELECT DISTINCT col1 * + ( - tab2.col1 + col0 * - tab2.col2 ) AS col0 FROM tab2
----
-123133
-51323
-6820

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-319
SELECT - col1 DIV - col1 + col0 * - col0 FROM tab0
----
-1224
-575
-7920

skipif mysql # not compatible
query I rowsort label-319
SELECT - col1 / - col1 + col0 * - col0 FROM tab0
----
-1224
-575
-7920

query I rowsort
SELECT + tab0.col2 * ( 56 ) + - col0 AS col1 FROM tab0
----
1824
21
4503

query I rowsort
SELECT col2 + - 5 FROM tab2
----
21
22
33

query I rowsort
SELECT DISTINCT - tab0.col0 * 6 AS col0 FROM tab0
----
-144
-210
-534

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

query I rowsort
SELECT DISTINCT cor0.col0 * - col0 + + cor0.col1 FROM tab0 AS cor0
----
-1128
-490
-7830

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

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

query I rowsort
SELECT DISTINCT - 64 * - tab2.col1 FROM tab2
----
1088
1984
3776

onlyif mysql # use DIV operator for integer division
query I rowsort label-327
SELECT 78 DIV - cor0.col1 FROM tab2, tab2 AS cor0
----
9 values hashing to cf9002ffc94efb2d63003062beca780a

skipif mysql # not compatible
query I rowsort label-327
SELECT 78 / - cor0.col1 FROM tab2, tab2 AS cor0
----
9 values hashing to cf9002ffc94efb2d63003062beca780a

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

query I rowsort
SELECT DISTINCT col1 - + 82 * - col1 * + col2 FROM tab0
----
232802
611975
8051

query I rowsort
SELECT - col1 + - col2 * - col1 + col1 * + col0 AS col2 FROM tab1 AS cor0
----
1200
1456
2275

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

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

query I rowsort
SELECT + tab2.col1 * - ( + col1 + + col0 * + tab2.col2 ) AS col2 FROM tab2
----
-123133
-51323
-6820

onlyif mysql # use DIV operator for integer division
query I rowsort label-333
SELECT + - cor0.col2 * - CAST( + 53 AS SIGNED ) - + col2 DIV - col0 AS col1 FROM tab1 AS cor0
----
2880
3021
5089

skipif mysql # not compatible
query I rowsort label-333
SELECT + - cor0.col2 * - CAST ( + 53 AS INTEGER ) - + col2 / - col0 AS col1 FROM tab1 AS cor0
----
2880
3021
5089

query I rowsort
SELECT DISTINCT tab1.col2 * + 59 * + 54 + col1 * - ( + col0 * col2 ) AS col0 FROM tab1
----
145122
167832
206016

query I rowsort
SELECT ALL + tab1.col0 * 76 + col0 FROM tab1
----
231
4928
6160

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

query I rowsort
SELECT DISTINCT - col0 * + 49 FROM tab2 AS cor0
----
-343
-3822
-3871

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 + 26 col2 FROM tab2 AS cor0
----
-52
-53
19

query I rowsort
SELECT - 89 * + col1 AS col1 FROM tab2 AS cor0
----
-1513
-2759
-5251

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-340
SELECT DISTINCT + ( 61 ) / - cor0.col2 col2 FROM tab0 AS cor0
----
-1
-61
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-341
SELECT - col2 + - 91 * col1 DIV col2 AS col2 FROM tab0 cor0
----
-182
-270
-8828

skipif mysql # not compatible
query I rowsort label-341
SELECT - col2 + - 91 * col1 / col2 AS col2 FROM tab0 cor0
----
-182
-270
-8828

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

query I rowsort
SELECT ALL + 24 * - col2 AS col1 FROM tab0 cor0
----
-1968
-24
-792

query I rowsort
SELECT ALL + 25 + col1 FROM tab1 AS cor0
----
35
38
51

query I rowsort
SELECT ALL - 78 * - cor0.col0 FROM tab1 AS cor0
----
234
4992
6240

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

skipif mysql # not compatible
query I rowsort label-346
SELECT DISTINCT + - 65 / + col0 AS col1 FROM tab2 AS cor0
----
-9
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-347
SELECT ALL - - col0 + + col2 DIV + col2 + - col1 * + cor0.col2 col1 FROM tab0 AS cor0
----
-2813
-61
-7372

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-347
SELECT ALL - - col0 + + col2 / + col2 + - col1 * + cor0.col2 col1 FROM tab0 AS cor0
----
-2813
-61
-7372

onlyif mysql # use DIV operator for integer division
query I rowsort label-348
SELECT DISTINCT + 17 DIV - col2 - - col2 FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-348
SELECT DISTINCT + 17 / - col2 - - col2 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT ALL + col1 * + ( 24 ) + col2 - col0 FROM tab2 AS cor0
----
1364
367
764

query I rowsort
SELECT col1 * - 32 - - cor0.col1 FROM tab1 AS cor0
----
-310
-403
-806

query I rowsort
SELECT 44 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d

query I rowsort
SELECT DISTINCT col0 - + col0 * - col2 * - col1 AS col0 FROM tab1 AS cor0
----
-36416
-4209
-99760

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 + ( col2 ) col2 FROM tab1 AS cor0
----
109
67
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab0.col1 * - col2 * + col1 col0 FROM tab0
----
-244068
-679042
-9409

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

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

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

query I rowsort
SELECT + col2 + 53 * - col2 * col1 AS col0 FROM tab1 AS cor0
----
-30153
-66048
-74358

query I rowsort
SELECT ALL - col1 + 30 AS col1 FROM tab0 AS cor0
----
-56
-61
-67

query I rowsort
SELECT DISTINCT + col1 + col2 * - 20 + col0 AS col1 FROM tab2 AS cor0
----
-383
-502
-664

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

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

query I rowsort
SELECT - col0 * - ( + col0 ) FROM tab1 AS cor0
----
4096
6400
9

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

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

query I rowsort
SELECT - col2 + + 88 + col0 FROM tab1
----
37
72
95

query I rowsort
SELECT - + ( + 9 ) + + cor0.col2 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1, tab0 AS cor1
----
27 values hashing to 08f30aef1d0271aad217f7d44c633b44

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

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

skipif mysql # not compatible
query I rowsort label-368
SELECT + - 77 / + col2 AS col2 FROM tab1 AS cor0
----
-1
-1
0

query I rowsort
SELECT ( 6 ) * col1 AS col0 FROM tab2
----
102
186
354

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 26 col2 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 4e49eac022daeae6f88f610644ba3754

query I rowsort
SELECT + - 7 * - col2 * col1 AS col1 FROM tab2 AS cor0
----
10738
4522
5859

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

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

query I rowsort
SELECT - 14 + + col2 AS col0 FROM tab0
----
-13
19
68

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-378
SELECT CAST( + 26 AS SIGNED ) * + col1 + col1 * + col0 * col2 + - col1 * col1 FROM tab2 AS cor0
----
117705
51187
5704

skipif mysql # not compatible
query I rowsort label-378
SELECT CAST ( + 26 AS INTEGER ) * + col1 + col1 * + col0 * col2 + - col1 * col1 FROM tab2 AS cor0
----
117705
51187
5704

query I rowsort
SELECT - col2 + - 69 * col1 AS col0 FROM tab2 AS cor0
----
-1211
-2166
-4097

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-381
SELECT ALL - col1 DIV + 97 + col0 * col0 FROM tab1
----
4096
6400
9

skipif mysql # not compatible
query I rowsort label-381
SELECT ALL - col1 / + 97 + col0 * col0 FROM tab1
----
4096
6400
9

query I rowsort
SELECT 91 + + col0 + col2 FROM tab2 AS cor0
----
125
195
208

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-384
SELECT col2 + 27 DIV - col1 + - col1 col1 FROM tab2 AS cor0
----
-33
-4
20

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-384
SELECT col2 + 27 / - col1 + - col1 col1 FROM tab2 AS cor0
----
-33
-4
20

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

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

query I rowsort
SELECT DISTINCT col1 * - 51 AS col1 FROM tab2
----
-1581
-3009
-867

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

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

query I rowsort
SELECT 16 * 87 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to d744064b756572e5148d503a449378e9

query I rowsort
SELECT ALL tab2.col2 * ( + 23 ) * col1 FROM tab2
----
14858
19251
35282

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

query I rowsort
SELECT col1 * ( - col1 ) - col2 FROM tab1 AS cor0
----
-157
-265
-730

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

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

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

query I rowsort
SELECT - col0 * + 43 AS col1 FROM tab1
----
-129
-2752
-3440

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

query I rowsort
SELECT + col1 + 33 * + col1 AS col1 FROM tab0 AS cor0
----
2924
3094
3298

query I rowsort
SELECT + ( + 31 + tab1.col1 ) * - 45 FROM tab1, tab0 AS cor0
----
9 values hashing to e2fe0a6cf2cc3a49dbc2ba838a317d64

onlyif mysql # use DIV operator for integer division
query I rowsort label-400
SELECT - - col0 DIV - cor0.col1 + - col2 + + 14 * + col2 FROM tab0 AS cor0
----
1066
13
429

skipif mysql # not compatible
query I rowsort label-400
SELECT - - col0 / - cor0.col1 + - col2 + + 14 * + col2 FROM tab0 AS cor0
----
1066
13
429

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-401
SELECT - CAST( - col0 * col2 AS SIGNED ) - - 89 AS col1 FROM tab0
----
124
7387
881

skipif mysql # not compatible
query I rowsort label-401
SELECT - CAST ( - col0 * col2 AS INTEGER ) - - 89 AS col1 FROM tab0
----
124
7387
881

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab0.col0 + - col0 + - col2 * - 92 col0 FROM tab0
----
22
2988
7366

query I rowsort
SELECT ALL col2 + 49 FROM tab1
----
103
106
145

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

skipif mysql # not compatible
query I rowsort label-405
SELECT ALL ( + 55 ) * - col2 + CAST ( NULL AS REAL ) * tab2.col0 * - col1 FROM tab2
----
NULL
NULL
NULL

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

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

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

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

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

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

query I rowsort
SELECT + col0 * ( - 58 ) AS col2 FROM tab0 AS cor0
----
-1392
-2030
-5162

query I rowsort
SELECT col0 + + 35 * col2 FROM tab2 AS cor0
----
1409
952
988

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

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

query I rowsort
SELECT DISTINCT ( 78 ) AS col2 FROM tab1, tab2 cor0, tab0 cor1
----
78

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

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

query I rowsort
SELECT + col2 + + 18 * cor0.col1 FROM tab0 AS cor0
----
1581
1720
1747

query I rowsort
SELECT ALL - col1 + col0 * 21 FROM tab2 AS cor0
----
116
1579
1642

query I rowsort
SELECT + 81 AS col0 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 0a85639e0dddbffdab2cb16b027cb360

query I rowsort
SELECT ( col0 ) - - 91 * 43 FROM tab1 cor0
----
3916
3977
3993

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

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

query I rowsort
SELECT 60 * + cor0.col2 - col1 FROM tab1 AS cor0
----
3214
3410
5747

query I rowsort
SELECT DISTINCT + 81 AS col1 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
81

query I rowsort
SELECT ALL - + col2 - col0 * 53 FROM tab2 AS cor0
----
-398
-4160
-4225

onlyif mysql # use DIV operator for integer division
query I rowsort label-427
SELECT ALL col2 DIV col2 - + ( + 69 ) FROM tab1 AS cor0
----
-68
-68
-68

skipif mysql # not compatible
query I rowsort label-427
SELECT ALL col2 / col2 - + ( + 69 ) FROM tab1 AS cor0
----
-68
-68
-68

query I rowsort
SELECT 39 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf

query I rowsort
SELECT ALL - 28 * col2 AS col2 FROM tab2 AS cor0
----
-1064
-728
-756

query I rowsort
SELECT - 78 + - col1 * col2 - 45 FROM tab2
----
-1657
-769
-960

query I rowsort
SELECT DISTINCT - tab1.col2 + col0 * - ( tab1.col2 ) + - tab1.col2 * col2 FROM tab1
----
-16992
-3132
-6954

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

query I rowsort
SELECT ALL 19 + + col2 AS col2 FROM tab0
----
101
20
52

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

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

skipif mysql # not compatible
query I rowsort
SELECT - CAST ( - 85 AS REAL ) FROM tab1 AS cor0
----
85
85
85

skipif mysql # not compatible
query I rowsort
SELECT ALL + CAST ( + 93 AS REAL ) + col0 / + col0 AS col2 FROM tab0 cor0
----
94
94
94

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-438
SELECT + col1 * col0 + - 29 DIV col1 FROM tab0
----
2064
3395
8099

skipif mysql # not compatible
query I rowsort label-438
SELECT + col1 * col0 + - 29 / col1 FROM tab0
----
2064
3395
8099

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

skipif mysql # not compatible
query I rowsort label-439
SELECT + col0 * CAST ( + 16 AS INTEGER ) FROM tab2 AS cor0
----
112
1248
1264

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-441
SELECT + col2 * col2 DIV - col1 AS col0 FROM tab1 cor0
----
-112
-324
-708

skipif mysql # not compatible
query I rowsort label-441
SELECT + col2 * col2 / - col1 AS col0 FROM tab1 cor0
----
-112
-324
-708

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

skipif mysql # not compatible
query I rowsort label-442
SELECT DISTINCT + col2 / col0 + + cor0.col2 AS col2 FROM tab1 AS cor0
----
57
72
97

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

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

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

query I rowsort
SELECT DISTINCT 63 * + col1 FROM tab0 AS cor0
----
5418
5733
6111

query I rowsort
SELECT ALL - - cor0.col2 + col0 * col0 FROM tab0 AS cor0
----
1226
609
8003

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

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

query I rowsort
SELECT - + col2 * 8 FROM tab0 AS cor0
----
-264
-656
-8

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

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

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

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

query I rowsort
SELECT + 92 FROM tab1, tab0 cor0
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

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

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

query I rowsort
SELECT - 89 * col2 FROM tab1 cor0
----
-4806
-5073
-8544

query I rowsort
SELECT - col1 + col2 * cor0.col2 FROM tab0 AS cor0
----
-96
1003
6633

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-459
SELECT - col1 + col1 * - CAST ( + col0 AS INTEGER ) col2 FROM tab1 cor0
----
-104
-1053
-650

query I rowsort
SELECT + 70 + col1 FROM tab0 AS cor0
----
156
161
167

query I rowsort
SELECT - - col1 * + col1 + 14 AS col2 FROM tab0 AS cor0
----
7410
8295
9423

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-463
SELECT DISTINCT - col1 + + 31 DIV 37 + - cor0.col2 AS col2 FROM tab2 AS cor0
----
-55
-58
-85

skipif mysql # not compatible
query I rowsort label-463
SELECT DISTINCT - col1 + + 31 / 37 + - cor0.col2 AS col2 FROM tab2 AS cor0
----
-55
-58
-85

query I rowsort
SELECT DISTINCT + - col2 * + 64 FROM tab1 AS cor0
----
-3456
-3648
-6144

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

skipif mysql # not compatible
query I rowsort label-465
SELECT col0 * - CAST ( col1 + cor0.col0 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-10686
-266
-7584

query I rowsort
SELECT - col2 * + 27 * + col0 FROM tab1 AS cor0
----
-207360
-4374
-98496

query I rowsort
SELECT DISTINCT - col2 * 52 AS col1 FROM tab2 AS cor0
----
-1352
-1404
-1976

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

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

query I rowsort
SELECT ALL - col2 - + ( cor0.col2 + col1 * + col2 ) FROM tab2 AS cor0
----
-1586
-722
-891

query I rowsort
SELECT + col2 * - col0 + 16 * - col2 AS col1 FROM tab1 AS cor0
----
-1026
-4560
-9216

query I rowsort
SELECT DISTINCT + - col1 - - 10 * col0 * col2 FROM tab2 AS cor0
----
1859
20221
30003

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

query I rowsort
SELECT col2 * - cor0.col0 + - ( col0 ) * col2 * 43 FROM tab2 AS cor0
----
-132088
-8316
-89232

query I rowsort
SELECT DISTINCT - col0 * - 37 + col1 * col0 AS col1 FROM tab0 AS cor0
----
11392
2952
4690

query I rowsort
SELECT + cor0.col1 * 16 * col2 FROM tab1 AS cor0
----
19968
22464
9120

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

query I rowsort
SELECT - + 61 AS col1 FROM tab2 AS cor0
----
-61
-61
-61

query I rowsort
SELECT DISTINCT - ( 24 ) + col0 * col0 FROM tab1 AS cor0
----
-15
4072
6376

query I rowsort
SELECT + + 27 + + cor1.col1 FROM tab2 AS cor0 CROSS JOIN tab0, tab0 cor1
----
27 values hashing to 34009f9cdbd74333a9ccae95336999d6

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-481
SELECT + 44 * tab0.col2 DIV col0 FROM tab0
----
1
40
60

skipif mysql # not compatible
query I rowsort label-481
SELECT + 44 * tab0.col2 / col0 FROM tab0
----
1
40
60

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

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

query I rowsort
SELECT ALL - - 70 AS col0 FROM tab2 AS cor0
----
70
70
70

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

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

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

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

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

query I rowsort
SELECT + 1 + col1 AS col2 FROM tab2
----
18
32
60

onlyif mysql # use DIV operator for integer division
query I rowsort label-490
SELECT DISTINCT - col1 + col1 * col1 DIV tab1.col0 FROM tab1
----
-11
-9
199

skipif mysql # not compatible
query I rowsort label-490
SELECT DISTINCT - col1 + col1 * col1 / tab1.col0 FROM tab1
----
-11
-9
199

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

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

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

skipif mysql # not compatible
query I rowsort label-493
SELECT + + CAST ( cor0.col1 AS INTEGER ) * + col1 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT ALL - col2 + - 0 FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT DISTINCT 76 * + cor0.col0 * col1 + + col1 - + col1 FROM tab0 AS cor0
----
156864
258020
615524

query I rowsort
SELECT + col0 * ( col0 + col2 ) FROM tab0 AS cor0
----
1260
1368
15219

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

query I rowsort
SELECT - 3 + col1 * - col0 FROM tab0
----
-2067
-3398
-8102

query I rowsort
SELECT DISTINCT 10 + + col2 FROM tab0
----
11
43
92

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

query I rowsort
SELECT - + 76 AS col2 FROM tab0 cor0
----
-76
-76
-76

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 28 + 49 col1 FROM tab1
----
77

query I rowsort
SELECT col1 * ( + col1 ) + col0 FROM tab1
----
164
249
679

query I rowsort
SELECT ALL ( 66 ) AS col2 FROM tab1
----
66
66
66

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-507
SELECT DISTINCT + col1 * col0 DIV col0 FROM tab1 cor0 WHERE col0 NOT IN ( col1 )
----
10
13
26

skipif mysql # not compatible
query I rowsort label-507
SELECT DISTINCT + col1 * col0 / col0 FROM tab1 cor0 WHERE col0 NOT IN ( col1 )
----
10
13
26

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-508
SELECT DISTINCT tab1.col0 / + col1 col2 FROM tab1
----
0
6

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

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

query I rowsort
SELECT - cor0.col2 + tab0.col2 FROM tab1 AS cor0 CROSS JOIN tab0
----
9 values hashing to f5ea0c1696dbdacaeeb93b5c525a0784

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

query I rowsort
SELECT ALL - col1 AS col0 FROM tab0 WHERE col0 NOT IN ( + col1 )
----
-86
-91
-97

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

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

query I rowsort
SELECT DISTINCT col0 + - col2 + + col0 FROM tab2
----
-13
120
130

query III rowsort
SELECT * FROM tab1 WHERE ( col1 - - col1 ) <> ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col0 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND col0
----

query I rowsort
SELECT - col2 + - col0 - - col0 AS col0 FROM tab0
----
-1
-33
-82

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-520
SELECT ALL col1 + col1 DIV + col1 FROM tab2
----
18
32
60

skipif mysql # not compatible
query I rowsort label-520
SELECT ALL col1 + col1 / + col1 FROM tab2
----
18
32
60

query I rowsort
SELECT - col1 * col0 - - tab0.col0 FROM tab0
----
-2040
-3360
-8010

query I rowsort
SELECT ALL + + col0 * + col2 + col0 FROM tab2 AS cor0
----
196
2106
3081

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col2 * + col0 col1 FROM tab2 AS cor0
----
-189
-2028
-3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-524
SELECT DISTINCT - cor0.col0 + col1 DIV + cor0.col1 + col1 AS col0 FROM tab1 AS cor0
----
-53
-66
24

skipif mysql # not compatible
query I rowsort label-524
SELECT DISTINCT - cor0.col0 + col1 / + cor0.col1 + col1 AS col0 FROM tab1 AS cor0
----
-53
-66
24

query I rowsort
SELECT DISTINCT + cor1.col0 - + cor0.col1 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
9 values hashing to fa8ce7c049222449af270fb84251971e

query I rowsort
SELECT DISTINCT - col2 * col0 + - 61 * col2 FROM tab0 AS cor0
----
-12300
-2805
-96

query I rowsort
SELECT - + col1 * 5 * - 94 FROM tab2 cor0
----
14570
27730
7990

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

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-530
SELECT DISTINCT col2 * CAST( 54 AS SIGNED ) + col1 FROM tab1 AS cor0
----
2942
3088
5197

skipif mysql # not compatible
query I rowsort label-530
SELECT DISTINCT col2 * CAST ( 54 AS INTEGER ) + col1 FROM tab1 AS cor0
----
2942
3088
5197

query I rowsort
SELECT DISTINCT + col0 * + cor0.col0 * col0 FROM tab1 AS cor0
----
262144
27
512000

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

query I rowsort
SELECT DISTINCT - + col0 + col1 + + cor0.col0 * col1 FROM tab2 AS cor0
----
1281
241
4583

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

query I rowsort
SELECT DISTINCT col2 + + 84 AS col1 FROM tab0 cor0
----
117
166
85

query I rowsort
SELECT DISTINCT - col1 + + col0 + + col1 * col0 FROM tab1 AS cor0
----
1107
55
694

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

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

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

query I rowsort
SELECT - col2 * 77 * col0 + col1 FROM tab1
----
-12448
-280886
-591347

query I rowsort
SELECT 95 FROM tab2, tab0 AS cor0
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3

query I rowsort
SELECT tab2.col2 + + 24 * + 60 AS col1 FROM tab2
----
1466
1467
1478

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

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

query I rowsort
SELECT + + 49 + + cor0.col1 + + col2 AS col2 FROM tab1 cor0
----
116
129
158

query I rowsort
SELECT ALL - col2 * - col1 + 98 AS col0 FROM tab2 AS cor0
----
1632
744
935

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

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

query I rowsort
SELECT DISTINCT + ( col2 ) * col1 + + 42 * + tab2.col0 FROM tab2
----
1131
3964
4810

query I rowsort
SELECT + 81 * - col1 * - col0 FROM tab0
----
167184
274995
656019

query I rowsort
SELECT DISTINCT + 2 * col2 AS col1 FROM tab2
----
52
54
76

query I rowsort
SELECT 9 * col0 AS col1 FROM tab2
----
63
702
711

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-553
SELECT - col1 * col0 + col1 DIV + col1 FROM tab0
----
-2063
-3394
-8098

skipif mysql # not compatible
query I rowsort label-553
SELECT - col1 * col0 + col1 / + col1 FROM tab0
----
-2063
-3394
-8098

query I rowsort
SELECT ALL - + cor1.col0 AS col1 FROM tab1, tab1 AS cor0, tab2, tab1 AS cor1
----
81 values hashing to 08e380e50b0cb64601bc84e5254deef4

query I rowsort
SELECT + 42 * col0 + - 50 * - 84 FROM tab1 cor0
----
4326
6888
7560

query I rowsort
SELECT - - col1 + + col2 * - 17 FROM tab2 AS cor0
----
-383
-428
-629

query I rowsort
SELECT ALL + 5 + - col0 AS col2 FROM tab1 AS cor0
----
-59
-75
2

query I rowsort
SELECT 70 + cor0.col2 FROM tab0 AS cor0
----
103
152
71

query I rowsort
SELECT ALL - 86 + - col1 + - tab0.col1 AS col2 FROM tab0
----
-258
-268
-280

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

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

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

skipif mysql # not compatible
query I rowsort
SELECT ALL col1 * + tab2.col0 + CAST ( + col0 AS REAL ) FROM tab2
----
1422
224
4680

query I rowsort
SELECT DISTINCT ( col2 ) + 53 FROM tab0
----
135
54
86

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

query I rowsort
SELECT ALL + col1 * 18 AS col0 FROM tab0 AS cor0
----
1548
1638
1746

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-570
SELECT ALL col0 DIV + col2 + col1 AS col0 FROM tab0 AS cor0
----
132
86
92

skipif mysql # not compatible
query I rowsort label-570
SELECT ALL col0 / + col2 + col1 AS col0 FROM tab0 AS cor0
----
132
86
92

query I rowsort
SELECT DISTINCT + col1 * ( col2 ) + + col0 * col0 AS col1 FROM tab2 AS cor0
----
6887
7618
886

query I rowsort
SELECT - cor0.col1 + + ( - 28 ) FROM tab0 AS cor0
----
-114
-119
-125

query I rowsort
SELECT DISTINCT + ( col1 ) * col2 + col0 * col0 FROM tab1
----
1413
4666
7648

query I rowsort
SELECT + + 34 * col1 - - col2 FROM tab1 AS cor0
----
397
538
938

query I rowsort
SELECT DISTINCT + 45 + + col1 AS col2 FROM tab0 AS cor0
----
131
136
142

query I rowsort
SELECT ALL 59 * ( + cor0.col1 ) FROM tab1 cor0
----
1534
590
767

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

query I rowsort
SELECT ALL - col0 + 56 AS col1 FROM tab1 AS cor0
----
-24
-8
53

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * - col1 + col2 + + 5 col1 FROM tab0 AS cor0
----
-2800
-7375
-91

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

query I rowsort
SELECT ALL - col2 + + col1 * + col2 * col0 FROM tab1 AS cor0
----
36423
4158
99744

query I rowsort
SELECT col1 + col2 * - 44 AS col1 FROM tab0 AS cor0
----
-1366
-3517
53

query I rowsort
SELECT ALL - + 45 * col2 + col1 + col0 FROM tab2 AS cor0
----
-1033
-1177
-1614

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

query I rowsort
SELECT + - cor0.col0 + cor0.col2 + + col1 * col1 FROM tab0 AS cor0
----
7405
8274
9375

query I rowsort
SELECT DISTINCT + - 99 * col0 + col1 + 97 FROM tab0 AS cor0
----
-2193
-3271
-8623

query I rowsort
SELECT ALL + 51 - + col0 AS col1 FROM tab0
----
-38
16
27

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

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-594
SELECT DISTINCT - 41 DIV col2 FROM tab0
----
-1
-41
0

skipif mysql # not compatible
query I rowsort label-594
SELECT DISTINCT - 41 / col2 FROM tab0
----
-1
-41
0

query I rowsort
SELECT - 24 * 45 AS col0 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 4e37b946a7635ebfea5e644a6b9ba472

query I rowsort
SELECT - col2 - + col0 * - 88 FROM tab2 AS cor0
----
589
6838
6914

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

query I rowsort
SELECT ALL + - cor0.col0 * 32 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f47532f5ec797870d70f0ae11e382976

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

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

query I rowsort
SELECT 91 + col0 AS col0 FROM tab2 AS cor0
----
169
170
98

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-604
SELECT col2 DIV + ( + col0 ) + + col2 * col2 * - 90 col0 FROM tab0 AS cor0
----
-605160
-90
-98009

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-604
SELECT col2 / + ( + col0 ) + + col2 * col2 * - 90 col0 FROM tab0 AS cor0
----
-605160
-90
-98009

query I rowsort
SELECT col0 + + 9 AS col1 FROM tab2 AS cor0
----
16
87
88

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

query I rowsort
SELECT - col2 + 19 * cor0.col2 AS col1 FROM tab2 AS cor0
----
468
486
684

query I rowsort
SELECT + + 86 AS col0 FROM tab0 AS cor0
----
86
86
86

query I rowsort
SELECT DISTINCT cor1.col1 * + cor0.col2 FROM tab2, tab0 AS cor0, tab0 cor1
----
9 values hashing to e5422173e1caaeeb02bbae09b3f4e2fd

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

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

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

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

query I rowsort
SELECT ( + 10 ) + col0 * + col2 AS col2 FROM tab1 cor0
----
172
3658
7690

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab2.col1 + - 53 col2 FROM tab2
----
-22
-36
6

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

query I rowsort
SELECT ALL 22 * - ( + col2 ) AS col1 FROM tab2 cor0
----
-572
-594
-836

query I rowsort
SELECT ALL - ( 60 ) AS col0 FROM tab1 AS cor0
----
-60
-60
-60

query I rowsort
SELECT DISTINCT col0 * 59 + col0 FROM tab0 AS cor0
----
1440
2100
5340

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 96 + + col1 col1 FROM tab0 AS cor0
----
182
187
193

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

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

skipif mysql # not compatible
query I rowsort
SELECT ALL 84 / - col0 + - CAST ( - col1 AS REAL ) * - col0 AS col1 FROM tab0 AS cor0
----
-2067
-3397
-8099

query I rowsort
SELECT + + 89 * + cor0.col2 AS col1 FROM tab1 cor0
----
4806
5073
8544

onlyif mysql # use DIV operator for integer division
query I rowsort label-626
SELECT ALL + - col1 DIV + cor0.col1 + 50 * + 26 FROM tab1 AS cor0
----
1299
1299
1299

skipif mysql # not compatible
query I rowsort label-626
SELECT ALL + - col1 / + cor0.col1 + 50 * + 26 FROM tab1 AS cor0
----
1299
1299
1299

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

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

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

query I rowsort
SELECT + ( - 28 ) AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to c3e7fa3d059fc708f03c60e9cef0c115

query I rowsort
SELECT ALL tab1.col2 + + col2 + - tab1.col1 FROM tab1
----
104
179
82

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

query I rowsort
SELECT ALL + col2 + - col1 * col1 + col0 FROM tab1
----
-619
21
7

query I rowsort
SELECT - tab0.col1 + + tab0.col1 * 99 AS col2 FROM tab0
----
8428
8918
9506

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

query I rowsort
SELECT ALL + col1 + col1 + 50 AS col1 FROM tab1
----
102
70
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 67 * - col0 + - col0 * 95 col0 FROM tab0 AS cor0
----
-2492
-672
-980

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

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

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

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

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

query I rowsort
SELECT ALL + ( + col2 ) * - 76 - - col0 AS col2 FROM tab2 AS cor0
----
-1898
-2045
-2809

query I rowsort
SELECT col1 * col2 + 43 FROM tab1 AS cor0
----
1291
1447
613

query I rowsort
SELECT ( cor0.col0 ) * - cor0.col1 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 0cea1be551fb4bd88f4da0b7d676ee2f

query I rowsort
SELECT + col1 * ( + cor0.col0 * col2 + + ( col1 ) ) FROM tab2 AS cor0
----
123133
51323
6820

query I rowsort
SELECT DISTINCT + col0 * - 72 AS col1 FROM tab2 cor0
----
-504
-5616
-5688

onlyif mysql # use DIV operator for integer division
query I rowsort label-646
SELECT - + cor0.col2 + - ( col1 ) DIV col2 FROM tab1 AS cor0
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-646
SELECT - + cor0.col2 + - ( col1 ) / col2 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT + 85 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b

query I rowsort
SELECT DISTINCT + col1 + col1 * 76 * + col2 AS col0 FROM tab1 AS cor0
----
106730
43330
94861

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

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

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

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

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-654
SELECT + col2 DIV cor0.col1 - col2 AS col1 FROM tab1 AS cor0
----
-52
-52
-89

skipif mysql # not compatible
query I rowsort label-654
SELECT + col2 / cor0.col1 - col2 AS col1 FROM tab1 AS cor0
----
-52
-52
-89

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

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

query I rowsort
SELECT DISTINCT + 24 * cor0.col2 - - cor0.col0 FROM tab2 AS cor0
----
655
702
991

query I rowsort
SELECT ALL + - cor0.col0 FROM tab0, tab1 AS cor0, tab2 AS cor1, tab1, tab0 AS cor2
----
243 values hashing to f74ca4a9760ae5a015b067d560a14502

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

query I rowsort
SELECT ALL - - 89 * col1 AS col2 FROM tab2 AS cor0
----
1513
2759
5251

query I rowsort
SELECT ALL - 57 * - cor0.col2 + 16 FROM tab0 AS cor0
----
1897
4690
73

onlyif mysql # use DIV operator for integer division
query I rowsort label-662
SELECT - col2 DIV - col0 + CAST( - col2 AS SIGNED ) FROM tab2 AS cor0
----
-24
-26
-38

skipif mysql # not compatible
query I rowsort label-662
SELECT - col2 / - col0 + CAST ( - col2 AS INTEGER ) FROM tab2 AS cor0
----
-24
-26
-38

query I rowsort
SELECT DISTINCT - - 38 * - col0 FROM tab1 AS cor0
----
-114
-2432
-3040

query I rowsort
SELECT DISTINCT + - 98 + col1 * ( col2 ) FROM tab1 AS cor0
----
1150
1306
472

query I rowsort
SELECT ALL + + 22 FROM tab2 cor0
----
22
22
22

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

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

query I rowsort
SELECT - 65 * - cor0.col2 + col0 FROM tab2 AS cor0
----
1762
1768
2549

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

query I rowsort
SELECT - 82 * + cor0.col0 + - cor0.col0 FROM tab2 AS cor0
----
-581
-6474
-6557

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

query I rowsort
SELECT - 77 + + col0 * ( col2 ) AS col0 FROM tab2 AS cor0
----
112
1951
2925

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

query I rowsort
SELECT - 1 * col2 * + col0 + 15 + + col0 AS col0 FROM tab1 AS cor0
----
-144
-3569
-7585

query I rowsort
SELECT - tab0.col1 * + col2 + - tab0.col2 * ( 84 ) - + tab0.col0 FROM tab0
----
-14439
-216
-5634

query I rowsort
SELECT ALL 57 * 9 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 1a783eb07af07f2c699bd00074f56316

onlyif mysql # use DIV operator for integer division
query I rowsort label-676
SELECT DISTINCT col0 * + col0 + - col0 DIV col1 AS col0 FROM tab2
----
49
6083
6237

skipif mysql # not compatible
query I rowsort label-676
SELECT DISTINCT col0 * + col0 + - col0 / col1 AS col0 FROM tab2
----
49
6083
6237

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

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

query I rowsort
SELECT col1 + - 48 * + col0 FROM tab1
----
-118
-3062
-3827

query I rowsort
SELECT DISTINCT - ( - col0 + - ( + col2 ) ) FROM tab0
----
171
36
57

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

query I rowsort
SELECT + + 76 * col1 + + col0 AS col0 FROM tab2 AS cor0
----
1371
2363
4562

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

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

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

query I rowsort
SELECT ALL 36 + tab0.col2 FROM tab0
----
118
37
69

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-686
SELECT + cor0.col0 / + 76 col2 FROM tab1 AS cor0
----
0
0
1

query I rowsort
SELECT col2 + cor0.col1 * col0 * col0 FROM tab0 AS cor0
----
118826
49569
720893

query I rowsort
SELECT col2 + - ( + col0 ) AS col1 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT + cor0.col0 + - ( + 37 ) FROM tab2 AS cor0
----
-30
41
42

query I rowsort
SELECT - - 68 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 10aa25f1c6b97582c34521ac6452e0b4

query I rowsort
SELECT - tab2.col1 * + col0 + + col2 * - 32 FROM tab2
----
-1081
-2559
-5434

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

query I rowsort
SELECT DISTINCT + col1 * ( col1 ) - + col0 * - 52 FROM tab0 AS cor0
----
11229
12909
8644

query I rowsort
SELECT ALL - + 86 * col2 - - col1 FROM tab2 AS cor0
----
-2177
-2291
-3251

query I rowsort
SELECT - - 34 * 27 AS col2 FROM tab2 AS cor0
----
918
918
918

onlyif mysql # use DIV operator for integer division
query I rowsort label-696
SELECT ALL + - col2 + - 47 DIV + col2 AS col0 FROM tab1 AS cor0
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-696
SELECT ALL + - col2 + - 47 / + col2 AS col0 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT - + 37 * 73 AS col1 FROM tab1 AS cor0
----
-2701
-2701
-2701

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

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

query I rowsort
SELECT DISTINCT tab2.col1 * ( + 48 ) AS col1 FROM tab2
----
1488
2832
816

onlyif mysql # use DIV operator for integer division
query I rowsort label-700
SELECT DISTINCT + col0 DIV + 64 AS col2 FROM tab2
----
0
1

skipif mysql # not compatible
query I rowsort label-700
SELECT DISTINCT + col0 / + 64 AS col2 FROM tab2
----
0
1

query I rowsort
SELECT ALL - col1 * + col1 * col1 AS col0 FROM tab1
----
-1000
-17576
-2197

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

query I rowsort
SELECT ALL col1 + 48 * col2 AS col2 FROM tab2
----
1307
1327
1841

query I rowsort
SELECT DISTINCT + 84 * + col2 + col2 * col1 FROM tab1
----
5358
5940
9312

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-707
SELECT DISTINCT col1 * col0 / + col1 col2 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT ALL + - 67 + - col0 * col1 AS col2 FROM tab2 AS cor0
----
-1410
-284
-4669

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

query I rowsort
SELECT - 91 + - col0 * - col2 AS col2 FROM tab1 AS cor0
----
3557
71
7589

query I rowsort
SELECT col0 * 38 + cor0.col1 * + col0 AS col1 FROM tab0 AS cor0
----
11481
2976
4725

query I rowsort
SELECT col1 * - 23 FROM tab2 AS cor0
----
-1357
-391
-713

query I rowsort
SELECT - 82 * + col1 FROM tab1
----
-1066
-2132
-820

query I rowsort
SELECT col1 + col1 * ( 95 ) AS col2 FROM tab1
----
1248
2496
960

query I rowsort
SELECT DISTINCT tab0.col2 + + tab1.col0 * + tab1.col1 FROM tab1, tab2, tab1 AS cor0, tab0
----
9 values hashing to 7513be23585c9216ddcd89905a41907a

query I rowsort
SELECT DISTINCT - 18 * + col0 * ( 82 ) AS col1 FROM tab0
----
-131364
-35424
-51660

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

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

skipif mysql # not compatible
query I rowsort label-718
SELECT + - cor0.col1 / + col2 AS col0 FROM tab0 AS cor0
----
-1
-2
-97

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

query I rowsort
SELECT - 87 * - col1 * + col0 AS col0 FROM tab1
----
55680
6786
90480

query I rowsort
SELECT 19 * 92 AS col0 FROM tab0
----
1748
1748
1748

query I rowsort
SELECT - 7 + col2 AS col1 FROM tab2
----
19
20
31

query I rowsort
SELECT + col0 * ( - col0 ) + 50 * - col0 AS col2 FROM tab2 AS cor0
----
-10191
-399
-9984

query I rowsort
SELECT DISTINCT - - ( + col0 ) + col2 AS col0 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT ALL + col0 * - 55 + - col1 - + ( 17 ) AS col2 FROM tab0 AS cor0
----
-1423
-2039
-5003

query I rowsort
SELECT ALL - - ( + 25 ) * col2 FROM tab0 AS cor0
----
2050
25
825

query I rowsort
SELECT - 70 + cor0.col1 FROM tab0 AS cor0
----
16
21
27

query I rowsort
SELECT - 64 * col2 AS col2 FROM tab1
----
-3456
-3648
-6144

query I rowsort
SELECT DISTINCT 12 * + col2 FROM tab0
----
12
396
984

query I rowsort
SELECT ALL 80 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 6dd5038be71dffa82f5ceba787caab91

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

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

query I rowsort
SELECT + 22 * col1 AS col0 FROM tab0
----
1892
2002
2134

query I rowsort
SELECT col1 * - col0 + ( col2 * col2 ) FROM tab2 AS cor0
----
-3926
101
512

query I rowsort
SELECT - col1 * col1 - - 36 AS col1 FROM tab0 AS cor0
----
-7360
-8245
-9373

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col1 col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

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

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

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

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

query I rowsort
SELECT DISTINCT cor1.col1 - 54 FROM tab1, tab1 AS cor0, tab1 cor1
----
-28
-41
-44

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

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

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

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

query I rowsort
SELECT ALL col1 * - col0 + 7 FROM tab0 AS cor0
----
-2057
-3388
-8092

query I rowsort
SELECT DISTINCT + 39 * col1 AS col2 FROM tab1 AS cor0
----
1014
390
507

query I rowsort
SELECT ALL col0 * + col1 + + 51 FROM tab0 AS cor0
----
2115
3446
8150

onlyif mysql # use DIV operator for integer division
query I rowsort label-748
SELECT - ( - col2 ) DIV 5 - col1 FROM tab2 AS cor0
----
-10
-26
-54

skipif mysql # not compatible
query I rowsort label-748
SELECT - ( - col2 ) / 5 - col1 FROM tab2 AS cor0
----
-10
-26
-54

query I rowsort
SELECT ALL + 44 + col0 AS col0 FROM tab0 cor0
----
133
68
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-750
SELECT col1 * 71 DIV + col0 AS col1 FROM tab1
----
11
11
615

skipif mysql # not compatible
query I rowsort label-750
SELECT col1 * 71 / + col0 AS col1 FROM tab1
----
11
11
615

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-751
SELECT DISTINCT CAST( - 13 AS SIGNED ) FROM tab2
----
-13

skipif mysql # not compatible
query I rowsort label-751
SELECT DISTINCT CAST ( - 13 AS INTEGER ) FROM tab2
----
-13

query I rowsort
SELECT - col1 * tab2.col2 * col1 AS col0 FROM tab2
----
-10982
-25947
-90506

query I rowsort
SELECT + 85 * + ( - col2 ) + 83 AS col1 FROM tab0 AS cor0
----
-2
-2722
-6887

query I rowsort
SELECT ALL col2 * - 51 - + col2 FROM tab1
----
-2808
-2964
-4992

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-756
SELECT col1 DIV tab0.col0 AS col2 FROM tab0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-756
SELECT col1 / tab0.col0 AS col2 FROM tab0
----
1
2
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab2.col2 * + col2 + tab2.col1 * col1 * + col2 col2 FROM tab2
----
25218
89830
9538

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

skipif mysql # not compatible
query I rowsort label-758
SELECT - col0 / ( - col1 * col2 ) + col1 AS col1 FROM tab0
----
86
91
97

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

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

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

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-763
SELECT ALL + ( + 66 ) * col2 + 22 DIV - col1 AS col1 FROM tab1 AS cor0
----
3564
3760
6335

skipif mysql # not compatible
query I rowsort label-763
SELECT ALL + ( + 66 ) * col2 + 22 / - col1 AS col1 FROM tab1 AS cor0
----
3564
3760
6335

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-765
SELECT + + 64 DIV col0 col2 FROM tab1 cor0
----
0
1
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-765
SELECT + + 64 / col0 col2 FROM tab1 cor0
----
0
1
21

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

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

query I rowsort
SELECT + col2 * 66 + col0 * col1 AS col0 FROM tab1 cor0
----
3642
4402
7376

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

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

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

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

query I rowsort
SELECT + - col0 - 28 AS col1 FROM tab0 AS cor0
----
-117
-52
-63

query I rowsort
SELECT ALL + col1 + - col0 * 34 FROM tab1 AS cor0
----
-2166
-2707
-76

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-776
SELECT ALL cor0.col1 DIV - col0 FROM tab2 cor0
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-776
SELECT ALL cor0.col1 / - col0 FROM tab2 cor0
----
-4
0
0

query I rowsort
SELECT ALL + col0 + col1 * + cor0.col1 AS col2 FROM tab0 AS cor0
----
7420
8370
9444

query I rowsort
SELECT - col0 * + 18 + - 52 + + col1 AS col0 FROM tab1 AS cor0
----
-1194
-1479
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-779
SELECT ALL cor0.col1 DIV + 27 + ( + col2 + col1 ) FROM tab1 AS cor0
----
109
67
80

skipif mysql # not compatible
query I rowsort label-779
SELECT ALL cor0.col1 / + 27 + ( + col2 + col1 ) FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT + + col0 * col1 + - col2 AS col0 FROM tab0 cor0
----
2031
3394
8017

onlyif mysql # use DIV operator for integer division
query I rowsort label-781
SELECT DISTINCT - + col0 + 61 DIV cor0.col2 AS col1 FROM tab0 AS cor0
----
-23
-89
26

skipif mysql # not compatible
query I rowsort label-781
SELECT DISTINCT - + col0 + 61 / cor0.col2 AS col1 FROM tab0 AS cor0
----
-23
-89
26

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-784
SELECT + - col0 + - CAST( 7 AS SIGNED ) col0 FROM tab1 AS cor0
----
-10
-71
-87

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-784
SELECT + - col0 + - CAST ( 7 AS INTEGER ) col0 FROM tab1 AS cor0
----
-10
-71
-87

query I rowsort
SELECT ALL + + col2 * ( - 63 ) AS col1 FROM tab2 cor0
----
-1638
-1701
-2394

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

query I rowsort
SELECT ALL - col0 * col2 + 27 FROM tab1 AS cor0
----
-135
-3621
-7653

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

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

query I rowsort
SELECT DISTINCT + col1 * - col0 + col1 + - col0 AS col0 FROM tab1
----
-1107
-55
-694

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-790
SELECT col0 * CAST( - col1 AS SIGNED ) col0 FROM tab2 AS cor0
----
-1343
-217
-4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-790
SELECT col0 * CAST ( - col1 AS INTEGER ) col0 FROM tab2 AS cor0
----
-1343
-217
-4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-791
SELECT DISTINCT + + cor0.col0 * col2 + - 40 DIV + col1 + 26 AS col0 FROM tab1 AS cor0
----
187
3670
7703

skipif mysql # not compatible
query I rowsort label-791
SELECT DISTINCT + + cor0.col0 * col2 + - 40 / + col1 + 26 AS col0 FROM tab1 AS cor0
----
187
3670
7703

query I rowsort
SELECT col0 * - ( cor0.col2 + cor0.col1 ) * cor0.col1 AS col2 FROM tab0 AS cor0
----
-1401127
-245616
-332710

query I rowsort
SELECT + - col0 + 48 AS col1 FROM tab0 AS cor0
----
-41
13
24

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT + cor0.col2 * - col1 + col2 AS col0 FROM tab0 cor0
----
-2805
-7380
-96

query I rowsort
SELECT - col2 + col1 + + 81 * + col2 AS col1 FROM tab0
----
177
2726
6651

query I rowsort
SELECT DISTINCT + col0 * col2 + 36 * + col0 FROM tab2
----
441
4836
5846

query I rowsort
SELECT DISTINCT + col2 + ( + 43 ) * - col1 FROM tab0
----
-3665
-3831
-4170

query I rowsort
SELECT ALL - col1 + col2 * - 26 FROM tab0
----
-123
-2223
-944

query I rowsort
SELECT ALL 58 - - cor0.col0 AS col0 FROM tab2 cor0
----
136
137
65

onlyif mysql # use DIV operator for integer division
query I rowsort label-806
SELECT ALL col2 DIV cor0.col1 + + col0 - col2 DIV col2 AS col2 FROM tab1 AS cor0
----
4
68
86

skipif mysql # not compatible
query I rowsort label-806
SELECT ALL col2 / cor0.col1 + + col0 - col2 / col2 AS col2 FROM tab1 AS cor0
----
4
68
86

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

skipif mysql # not compatible
query I rowsort label-807
SELECT DISTINCT cor0.col0 * col2 / + col1 FROM tab0 AS cor0
----
0
80
9

query I rowsort
SELECT 44 + col1 * + ( 18 ) FROM tab1 cor0
----
224
278
512

query I rowsort
SELECT DISTINCT - col0 * + col2 * col2 + col2 AS col0 FROM tab2 AS cor0
----
-114038
-5076
-52702

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

skipif mysql # not compatible
query I rowsort label-810
SELECT DISTINCT + col0 * + col2 + - CAST ( cor0.col2 AS INTEGER ) FROM tab0 AS cor0
----
34
7216
759

query I rowsort
SELECT DISTINCT - col2 * - col1 + + 87 AS col0 FROM tab2 AS cor0
----
1621
733
924

query I rowsort
SELECT ALL - 18 + + ( col1 ) + col1 FROM tab2
----
100
16
44

query I rowsort
SELECT 11 * - col1 AS col0 FROM tab2
----
-187
-341
-649

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 93 * col1 + col2 col1 FROM tab2 AS cor0
----
1619
2910
5513

query I rowsort
SELECT - tab0.col2 * tab0.col1 * - col0 + + 45 * col0 FROM tab0
----
4970
668123
69192

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

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

query I rowsort
SELECT DISTINCT col0 - col0 FROM tab1 cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-819
SELECT DISTINCT col0 DIV - 93 + col2 * col0 FROM tab0
----
35
7298
792

skipif mysql # not compatible
query I rowsort label-819
SELECT DISTINCT col0 / - 93 + col2 * col0 FROM tab0
----
35
7298
792

query I rowsort
SELECT + 11 + col1 * col1 * + col1 AS col0 FROM tab0
----
636067
753582
912684

query I rowsort
SELECT ALL tab1.col1 * - col2 * + col2 + col2 * + col2 + + col1 AS col2 FROM tab1
----
-110579
-29231
-72874

query I rowsort
SELECT ( col0 * - col0 ) + col1 FROM tab0
----
-1128
-490
-7830

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-824
SELECT + - CAST( col2 AS SIGNED ) FROM tab0 cor0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-824
SELECT + - CAST ( col2 AS INTEGER ) FROM tab0 cor0
----
-1
-33
-82

query I rowsort
SELECT DISTINCT - + 61 + col1 FROM tab0 AS cor0
----
25
30
36

onlyif mysql # use DIV operator for integer division
query I rowsort label-826
SELECT ALL + 96 DIV + col0 + + col0 FROM tab2 AS cor0
----
20
79
80

skipif mysql # not compatible
query I rowsort label-826
SELECT ALL + 96 / + col0 + + col0 FROM tab2 AS cor0
----
20
79
80

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

query I rowsort
SELECT DISTINCT - col2 + + cor0.col0 * cor0.col2 AS col0 FROM tab1 AS cor0
----
108
3591
7584

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-830
SELECT cor0.col2 * + col2 DIV - col2 FROM tab1 AS cor0
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-830
SELECT cor0.col2 * + col2 / - col2 FROM tab1 AS cor0
----
-54
-57
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-831
SELECT DISTINCT + ( - col0 ) + - cor0.col1 DIV col2 AS col2 FROM tab1 AS cor0
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-831
SELECT DISTINCT + ( - col0 ) + - cor0.col1 / col2 AS col2 FROM tab1 AS cor0
----
-3
-64
-80

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

query I rowsort
SELECT - - 79 * + col0 FROM tab2 AS cor0
----
553
6162
6241

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

query I rowsort
SELECT 42 * - 71 AS col0 FROM tab0
----
-2982
-2982
-2982

skipif mysql # not compatible
query I rowsort
SELECT CAST ( + col2 + + col1 AS REAL ) AS col2 FROM tab1
----
109
67
80

query I rowsort
SELECT col0 * - col2 - - 40 * col2 FROM tab2 AS cor0
----
-1482
-988
891

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-839
SELECT - col2 DIV col1 - 26 FROM tab2 AS cor0
----
-26
-26
-28

skipif mysql # not compatible
query I rowsort label-839
SELECT - col2 / col1 - 26 FROM tab2 AS cor0
----
-26
-26
-28

query I rowsort
SELECT DISTINCT + 19 * + col1 * col0 AS col2 FROM tab2
----
25517
4123
87438

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-843
SELECT CAST( + 81 AS SIGNED ) AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267

skipif mysql # not compatible
query I rowsort label-843
SELECT CAST ( + 81 AS INTEGER ) AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267

query I rowsort
SELECT - - 99 + col1 AS col0 FROM tab1 AS cor0
----
109
112
125

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

skipif mysql # not compatible
query I rowsort label-845
SELECT ALL ( col1 ) / col1 FROM tab0 cor0
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-846
SELECT col2 - cor0.col1 DIV 19 AS col0 FROM tab0 AS cor0
----
-4
29
78

skipif mysql # not compatible
query I rowsort label-846
SELECT col2 - cor0.col1 / 19 AS col0 FROM tab0 AS cor0
----
-4
29
78

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

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

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

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

query I rowsort
SELECT ALL + col1 + tab0.col1 - col1 FROM tab0
----
86
91
97

query I rowsort
SELECT DISTINCT - col2 - - tab1.col2 AS col2 FROM tab1
----
0

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

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

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

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

query I rowsort
SELECT + cor0.col0 + + col2 + col2 FROM tab1 cor0
----
111
178
272

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

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

query I rowsort
SELECT DISTINCT + - col1 * - col0 + col1 + + col2 FROM tab1 cor0
----
1149
158
707

query I rowsort
SELECT DISTINCT + 91 * cor0.col1 + ( - 65 ) + cor0.col1 * col0 AS col1 FROM tab0 AS cor0
----
12157
16315
9825

query I rowsort
SELECT DISTINCT col1 * col0 + col0 + + col2 AS col1 FROM tab0 AS cor0
----
2121
3431
8270

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

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

skipif mysql # not compatible
query I rowsort label-864
SELECT ALL - col0 / + col2 + - cor0.col1 / col0 FROM tab1 cor0
----
-1
-8
0

query I rowsort
SELECT + 19 * col2 + cor0.col0 AS col2 FROM tab0 AS cor0
----
1647
54
651

query I rowsort
SELECT ALL - - ( col2 ) * col2 + 91 FROM tab0 AS cor0
----
1180
6815
92

query I rowsort
SELECT DISTINCT + col0 + + col2 * - col0 FROM tab0 AS cor0
----
-7209
-768
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-868
SELECT col1 * + col0 - 25 DIV - 67 FROM tab0 AS cor0
----
2064
3395
8099

skipif mysql # not compatible
query I rowsort label-868
SELECT col1 * + col0 - 25 / - 67 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT 41 * + col2 AS col0 FROM tab2 AS cor0
----
1066
1107
1558

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

query I rowsort
SELECT - 87 + - col1 AS col1 FROM tab0 AS cor0
----
-173
-178
-184

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-873
SELECT ALL col1 DIV - col0 + 90 AS col2 FROM tab0 AS cor0
----
87
88
89

skipif mysql # not compatible
query I rowsort label-873
SELECT ALL col1 / - col0 + 90 AS col2 FROM tab0 AS cor0
----
87
88
89

query I rowsort
SELECT DISTINCT 32 - + col0 AS col0 FROM tab0 AS cor0
----
-3
-57
8

onlyif mysql # use DIV operator for integer division
query I rowsort label-875
SELECT DISTINCT + - col0 * col2 + col2 DIV 6 FROM tab1 cor0
----
-153
-3639
-7664

skipif mysql # not compatible
query I rowsort label-875
SELECT DISTINCT + - col0 * col2 + col2 / 6 FROM tab1 cor0
----
-153
-3639
-7664

query I rowsort
SELECT - col0 + + 87 FROM tab1 AS cor0
----
23
7
84

query I rowsort
SELECT ( + cor0.col1 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

query I rowsort
SELECT - cor0.col0 AS col1 FROM tab1, tab0 AS cor0, tab2, tab2 AS cor1
----
81 values hashing to 26e45cd9fe71a2b90a8bdef20c88e70d

query I rowsort
SELECT DISTINCT col1 * + col0 + + 76 * tab2.col2 FROM tab2
----
2269
4231
6578

query I rowsort
SELECT DISTINCT - tab2.col2 * + col2 * - col2 + - col2 * col0 FROM tab2
----
15548
19494
51870

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

query I rowsort
SELECT ALL - col1 + 94 AS col1 FROM tab0 AS cor0
----
-3
3
8

query I rowsort
SELECT DISTINCT 42 * col0 FROM tab1 AS cor0
----
126
2688
3360

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

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

query I rowsort
SELECT DISTINCT + col2 * + cor0.col0 * - col2 + col1 * + col2 FROM tab0 AS cor0
----
-23298
-590974
62

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

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

query I rowsort
SELECT - ( col2 ) - col2 * col0 * 13 AS col1 FROM tab2
----
-2484
-26390
-39064

query I rowsort
SELECT - 57 * - 37 AS col0 FROM tab2 AS cor0
----
2109
2109
2109

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-890
SELECT ALL CAST( 25 AS SIGNED ) FROM tab2
----
25
25
25

skipif mysql # not compatible
query I rowsort label-890
SELECT ALL CAST ( 25 AS INTEGER ) FROM tab2
----
25
25
25

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

query I rowsort
SELECT ALL 50 FROM tab2, tab1 cor0
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52

query I rowsort
SELECT DISTINCT col2 + 91 AS col2 FROM tab1 cor0
----
145
148
187

query I rowsort
SELECT + - col0 * col2 + 30 * + cor0.col0 FROM tab2 cor0
----
-632
21
312

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

query I rowsort
SELECT col0 - - ( col1 ) * - col0 * col2 FROM tab1 AS cor0
----
-36416
-4209
-99760

query I rowsort
SELECT DISTINCT + + col2 + col2 - col1 AS col2 FROM tab0 AS cor0
----
-20
-95
73

query I rowsort
SELECT DISTINCT + col2 + 96 * + col1 AS col2 FROM tab1 AS cor0
----
1017
1344
2550

onlyif mysql # use DIV operator for integer division
query I rowsort label-899
SELECT + CAST( - col0 AS SIGNED ) DIV - col0 AS col0 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-899
SELECT + CAST ( - col0 AS INTEGER ) / - col0 AS col0 FROM tab2 AS cor0
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-900
SELECT DISTINCT + - ( + 63 ) DIV + col1 AS col1 FROM tab1 AS cor0
----
-2
-4
-6

skipif mysql # not compatible
query I rowsort label-900
SELECT DISTINCT + - ( + 63 ) / + col1 AS col1 FROM tab1 AS cor0
----
-2
-4
-6

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

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

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

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

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

query I rowsort
SELECT ALL col1 * col0 + - 16 FROM tab2
----
1327
201
4586

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + col0 * col2 col0 FROM tab0 AS cor0
----
-62
706
7207

query I rowsort
SELECT - col0 + 92 * col0 + col0 AS col2 FROM tab1
----
276
5888
7360

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

query I rowsort
SELECT col0 * - 44 + - col1 * - col0 FROM tab1 AS cor0
----
-2176
-2480
-54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - cor0.col0 + col2 * + col2 col0 FROM tab2 AS cor0
----
-4797
-5408
680

query I rowsort
SELECT 6 * cor0.col0 + + col1 FROM tab1 AS cor0
----
394
44
493

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

query I rowsort
SELECT + 69 + col2 AS col0 FROM tab2 AS cor0
----
107
95
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-914
SELECT 32 * 6 + cor0.col0 * col0 DIV + col0 AS col1 FROM tab1 AS cor0
----
195
256
272

skipif mysql # not compatible
query I rowsort label-914
SELECT 32 * 6 + cor0.col0 * col0 / + col0 AS col1 FROM tab1 AS cor0
----
195
256
272

query I rowsort
SELECT DISTINCT - 45 * + col0 + + cor0.col0 FROM tab0 AS cor0
----
-1056
-1540
-3916

query I rowsort
SELECT - 59 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 582c5aa5e5b4fc3f2ea27e7637992d1f

query I rowsort
SELECT 29 * col1 + col1 AS col2 FROM tab0 AS cor0
----
2580
2730
2910

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

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

query I rowsort
SELECT 7 * col1 FROM tab2 AS cor0
----
119
217
413

query I rowsort
SELECT + 86 + col1 * 49 FROM tab0 cor0
----
4300
4545
4839

query I rowsort
SELECT - - col1 * - col0 - + col0 FROM tab1 AS cor0
----
-1120
-704
-81

query I rowsort
SELECT ALL - - col1 + 14 AS col2 FROM tab0 AS cor0
----
100
105
111

query I rowsort
SELECT DISTINCT + col2 * + 10 + 14 * col1 + - col1 AS col2 FROM tab1 AS cor0
----
1129
700
878

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

query I rowsort
SELECT DISTINCT col2 * + col2 + 44 FROM tab1 AS cor0
----
2960
3293
9260

query I rowsort
SELECT ALL + + col0 + - 28 AS col1 FROM tab0 AS cor0
----
-4
61
7

query I rowsort
SELECT + col1 + - 96 FROM tab0 AS cor0
----
-10
-5
1

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

query I rowsort
SELECT DISTINCT + 27 FROM tab1
----
27

query I rowsort
SELECT ALL ( col0 ) * + 90 AS col1 FROM tab2
----
630
7020
7110

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

query I rowsort
SELECT DISTINCT - cor0.col0 * 3 * cor0.col2 FROM tab1 AS cor0
----
-10944
-23040
-486

query I rowsort
SELECT col2 * + col0 + - ( + tab0.col2 ) FROM tab0
----
34
7216
759

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

query I rowsort
SELECT + cor0.col2 * ( - 37 ) AS col0 FROM tab0 AS cor0
----
-1221
-3034
-37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor1.col2 col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75

query I rowsort
SELECT ALL + cor0.col0 + - col2 * - ( + col0 * - col1 + + col2 ) FROM tab1 AS cor0
----
-1293
-33167
-90544

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 15 * + col2 + - col2 col2 FROM tab0
----
-1312
-16
-528

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-945
SELECT col0 + + col1 / + 85 col1 FROM tab2 AS cor0
----
7
78
79

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - tab0.col2 / - tab0.col1 IN ( col0 )
----

query I rowsort
SELECT ALL col1 + col1 / tab2.col0 FROM tab2 WHERE NOT col0 >= ( - col0 )
----

query I rowsort
SELECT ALL + col2 AS col1 FROM tab1 WHERE - col0 / + col1 <= col2 * - col1
----

query I rowsort
SELECT - col2 * - col0 * + tab0.col0 + tab0.col0 FROM tab0 WHERE NULL IN ( + tab0.col1 + col0 + - col0 )
----

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-951
SELECT ALL col0 - col0 DIV col1 AS col0 FROM tab0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-951
SELECT ALL col0 - col0 / col1 AS col0 FROM tab0
----
24
35
89

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

query I rowsort
SELECT ALL + 47 * - col1 FROM tab2 cor0
----
-1457
-2773
-799

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

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

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

query I rowsort
SELECT DISTINCT col1 * + col0 + + tab1.col1 * col2 FROM tab1
----
1210
1482
2288

query I rowsort
SELECT - col0 + - col1 * + col2 FROM tab1
----
-1328
-1407
-634

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

query I rowsort
SELECT ALL tab2.col1 * tab2.col0 + col0 * - col2 FROM tab2
----
-1659
2574
28

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 * - col2 >= + cor0.col2 * + col2
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

query I rowsort
SELECT ALL col2 FROM tab2 AS cor0 WHERE - col1 NOT IN ( col2 )
----
26
27
38

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 / + col0 BETWEEN + col0 + col1 * + col1 AND col2
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL IN ( col2 )
----

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE NOT NULL < ( col0 * col2 + + col2 * + col1 )
----

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

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

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

skipif mysql # not compatible
query I rowsort label-971
SELECT cor0.col2 * col1 / - col0 + col2 AS col2 FROM tab0 cor0
----
-1
-1
-85

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

query I rowsort
SELECT - col0 AS col0 FROM tab1 WHERE NOT col1 + col0 <> - col0
----

query I rowsort
SELECT ALL tab1.col2 AS col1 FROM tab1 WHERE NULL BETWEEN ( NULL ) AND ( NULL )
----

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-976
SELECT col1 * col2 + tab1.col0 * col2 DIV tab1.col2 + col2 AS col2 FROM tab1
----
1424
1461
691

skipif mysql # not compatible
query I rowsort label-976
SELECT col1 * col2 + tab1.col0 * col2 / tab1.col2 + col2 AS col2 FROM tab1
----
1424
1461
691

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor1.col2 col0 FROM tab1, tab1 AS cor0, tab1 cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

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

query I rowsort
SELECT tab2.col1 * col1 + 29 * col0 FROM tab2
----
1164
2580
5743

query I rowsort
SELECT 98 * - 7 FROM tab1, tab0 AS cor0, tab2, tab1 AS cor1
----
81 values hashing to af592d6c7291fd502e12e9c27a9c1598

query I rowsort
SELECT ( col1 ) * col0 * + col2 FROM tab2
----
119652
51034
5859

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

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

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

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

query I rowsort
SELECT - - 95 AS col0 FROM tab0 AS cor0
----
95
95
95

query I rowsort
SELECT DISTINCT - col0 + col0 * ( col1 + col1 * + col2 ) FROM tab1
----
100800
37056
4287

onlyif mysql # use DIV operator for integer division
query I rowsort label-988
SELECT DISTINCT tab2.col1 DIV cor0.col1 AS col0 FROM tab2, tab1, tab1 AS cor0
----
0
1
2
3
4
5

skipif mysql # not compatible
query I rowsort label-988
SELECT DISTINCT tab2.col1 / cor0.col1 AS col0 FROM tab2, tab1, tab1 AS cor0
----
0
1
2
3
4
5

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

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

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

query I rowsort
SELECT ALL - 29 + + col1 + 67 * 87 FROM tab1
----
5810
5813
5826

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

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

query I rowsort
SELECT - - col1 + 50 FROM tab2 AS cor0
----
109
67
81

query I rowsort
SELECT + - col0 * 31 + col0 * + cor0.col0 + + cor0.col1 * + col1 AS col1 FROM tab2 AS cor0
----
4081
7147
793

onlyif mysql # use DIV operator for integer division
query I rowsort label-997
SELECT col0 + + 67 + + 64 DIV col0 FROM tab2 AS cor0
----
145
146
83

skipif mysql # not compatible
query I rowsort label-997
SELECT col0 + + 67 + + 64 / col0 FROM tab2 AS cor0
----
145
146
83

query I rowsort
SELECT + col1 * col1 - cor0.col2 * + col2 AS col2 FROM tab1 AS cor0
----
-2240
-3149
-9047

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + col0 + - 6 + col0 col0 FROM tab1 AS cor0
----
-165
-3590
-7606

query I rowsort
SELECT col1 * + 5 + - 94 + col2 * - 46 AS col0 FROM tab2 AS cor0
----
-1181
-1757
-995

query I rowsort
SELECT ALL - col2 * cor0.col0 - + ( + 39 ) AS col1 FROM tab2 AS cor0
----
-2067
-228
-3041

query IIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0 AS cor0 WHERE NOT - cor0.col2 < ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 48 + cor0.col1 * + 42 col0 FROM tab1 cor0
----
1140
468
594

onlyif mysql # use DIV operator for integer division
query I rowsort label-1004
SELECT ALL ( - col0 ) DIV col0 - col1 * - col2 FROM tab1
----
1247
1403
569

skipif mysql # not compatible
query I rowsort label-1004
SELECT ALL ( - col0 ) / col0 - col1 * - col2 FROM tab1
----
1247
1403
569

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

query I rowsort
SELECT DISTINCT - col0 - tab1.col1 * + col2 AS col2 FROM tab1
----
-1328
-1407
-634

query I rowsort
SELECT - 6 * + col0 FROM tab0 AS cor0
----
-144
-210
-534

query I rowsort
SELECT + 43 * col2 * - col2 FROM tab1 cor0
----
-125388
-139707
-396288

query I rowsort
SELECT - 56 * + col1 FROM tab2
----
-1736
-3304
-952

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1011
SELECT col0 DIV - ( col0 ) - col0 FROM tab2
----
-79
-8
-80

skipif mysql # not compatible
query I rowsort label-1011
SELECT col0 / - ( col0 ) - col0 FROM tab2
----
-79
-8
-80

query I rowsort
SELECT + - col1 + - cor0.col1 * 17 FROM tab0 AS cor0
----
-1548
-1638
-1746

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1014
SELECT + CAST ( + col2 AS INTEGER ) * - col0 col1 FROM tab2 AS cor0
----
-189
-2028
-3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * 50 col0 FROM tab0 AS cor0
----
1200
1750
4450

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1016
SELECT ALL + CAST( - 74 + col2 AS SIGNED ) * col1 FROM tab0
----
-3526
-7081
728

skipif mysql # not compatible
query I rowsort label-1016
SELECT ALL + CAST ( - 74 + col2 AS INTEGER ) * col1 FROM tab0
----
-3526
-7081
728

query I rowsort
SELECT + 42 * cor0.col0 AS col0 FROM tab0 AS cor0
----
1008
1470
3738

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

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

query I rowsort
SELECT ALL cor0.col0 * - 83 FROM tab1 AS cor0
----
-249
-5312
-6640

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

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

skipif mysql # not compatible
query I rowsort label-1022
SELECT DISTINCT - CAST ( + 89 AS INTEGER ) FROM tab2
----
-89

query I rowsort
SELECT col2 * ( col2 ) * + col1 + - 71 FROM tab1
----
119737
32419
75745

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

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

query I rowsort
SELECT + - col0 * - 88 AS col1 FROM tab0 AS cor0
----
2112
3080
7832

query I rowsort
SELECT ALL col1 + + 38 * col2 FROM tab0 AS cor0
----
1340
135
3207

query I rowsort
SELECT ALL + 9 * + col1 * + col1 AS col0 FROM tab1 AS cor0
----
1521
6084
900

query I rowsort
SELECT ALL - col0 + - col1 * col2 + + col2 * ( + col0 ) AS col0 FROM tab1 AS cor0
----
-1245
3014
6352

query I rowsort
SELECT DISTINCT ( + cor0.col0 ) * col0 + - 38 AS col0 FROM tab2 AS cor0
----
11
6046
6203

query I rowsort
SELECT ALL 60 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to a97561e17ecaa618227c75a57b268f33

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

skipif mysql # not compatible
query I rowsort label-1032
SELECT + 21 / + col0 FROM tab2 cor0
----
0
0
3

query I rowsort
SELECT DISTINCT - ( cor0.col0 ) * - 71 FROM tab1 cor0
----
213
4544
5680

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

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

query I rowsort
SELECT ALL - 36 * - col1 FROM tab2 AS cor0
----
1116
2124
612

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

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

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

query I rowsort
SELECT ALL - col1 * col0 + col2 + - col0 FROM tab2 AS cor0
----
-1384
-197
-4654

query I rowsort
SELECT DISTINCT col1 * 46 AS col1 FROM tab1
----
1196
460
598

query I rowsort
SELECT DISTINCT - cor0.col1 + + col1 * - ( - 32 ) * - col1 FROM tab2 AS cor0
----
-111451
-30783
-9265

query I rowsort
SELECT + + col0 * - col0 + + col2 * - col0 FROM tab2 AS cor0
----
-238
-8112
-9243

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1045
SELECT + col1 DIV col1 + - col1 * + col0 FROM tab1 AS cor0
----
-1039
-639
-77

skipif mysql # not compatible
query I rowsort label-1045
SELECT + col1 / col1 + - col1 * + col0 FROM tab1 AS cor0
----
-1039
-639
-77

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

query I rowsort
SELECT - + col0 + 79 * cor0.col1 * - col1 FROM tab1 AS cor0
----
-13431
-53407
-7964

query I rowsort
SELECT - col1 * + 45 AS col0 FROM tab1 AS cor0
----
-1170
-450
-585

query I rowsort
SELECT + + col2 + + 96 FROM tab1 AS cor0
----
150
153
192

query I rowsort
SELECT - cor0.col0 * - col0 * - 33 AS col2 FROM tab0 AS cor0
----
-19008
-261393
-40425

onlyif mysql # use DIV operator for integer division
query I rowsort label-1051
SELECT DISTINCT - col2 DIV - 27 FROM tab1 AS cor0
----
2
3

skipif mysql # not compatible
query I rowsort label-1051
SELECT DISTINCT - col2 / - 27 FROM tab1 AS cor0
----
2
3

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

skipif mysql # not compatible
query I rowsort label-1052
SELECT ALL - cor0.col2 * ( - col0 ) / col0 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT DISTINCT + col2 + - cor0.col0 * + col2 * col0 FROM tab0 AS cor0
----
-1224
-18975
-649440

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

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

query I rowsort
SELECT DISTINCT col2 * ( col0 * col1 + col0 * tab1.col0 ) AS col0 FROM tab1
----
269952
4698
714240

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

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

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

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

query I rowsort
SELECT DISTINCT - 55 + - col0 AS col2 FROM tab1 AS cor0
----
-119
-135
-58

query I rowsort
SELECT - + 4 + cor0.col2 FROM tab2 cor0
----
22
23
34

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

query I rowsort
SELECT DISTINCT - col1 * - col2 + + 5 * tab0.col1 AS col2 FROM tab0
----
3268
582
7917

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1065
SELECT col0 + - col1 * ( + 28 ) DIV - col2 FROM tab1
----
16
68
83

skipif mysql # not compatible
query I rowsort label-1065
SELECT col0 + - col1 * ( + 28 ) / - col2 FROM tab1
----
16
68
83

query I rowsort
SELECT ALL 9 + tab0.col2 AS col0 FROM tab0
----
10
42
91

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

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

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

skipif mysql # not compatible
query I rowsort label-1069
SELECT ALL + cor0.col0 * col1 / - col0 FROM tab1 AS cor0
----
-10
-13
-26

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

query I rowsort
SELECT ALL col1 * ( + 19 ) FROM tab0 AS cor0
----
1634
1729
1843

query I rowsort
SELECT + - col2 + + 32 FROM tab1 AS cor0
----
-22
-25
-64

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

query I rowsort
SELECT ALL col1 * + 30 + - col0 AS col1 FROM tab0 AS cor0
----
2556
2641
2875

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

query I rowsort
SELECT ALL + col2 * + col2 * - col1 + col2 FROM tab1 AS cor0
----
-119712
-32433
-75762

onlyif mysql # use DIV operator for integer division
query I rowsort label-1077
SELECT DISTINCT col2 + col0 DIV - col1 + 16 FROM tab0
----
17
49
98

skipif mysql # not compatible
query I rowsort label-1077
SELECT DISTINCT col2 + col0 / - col1 + 16 FROM tab0
----
17
49
98

query I rowsort
SELECT 48 - col0 AS col1 FROM tab0 AS cor0
----
-41
13
24

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

query I rowsort
SELECT - ( 40 ) + cor0.col1 FROM tab2 AS cor0
----
-23
-9
19

query I rowsort
SELECT DISTINCT - 32 * + ( col2 ) * + 33 + + col0 + col2 FROM tab0 cor0
----
-1020
-34791
-86421

query I rowsort
SELECT ALL ( 27 ) + - col2 FROM tab2 AS cor0
----
-11
0
1

query I rowsort
SELECT ALL - 67 + col0 + col0 AS col0 FROM tab2
----
-53
89
91

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

query I rowsort
SELECT DISTINCT - - 66 + 23 * col2 * + ( col0 ) FROM tab2 AS cor0
----
4413
46710
69112

onlyif mysql # use DIV operator for integer division
query I rowsort label-1086
SELECT DISTINCT 71 DIV - col1 + - col0 * + ( + col1 ) * - col1 FROM tab0 cor0
----
177504
329315
737009

skipif mysql # not compatible
query I rowsort label-1086
SELECT DISTINCT 71 / - col1 + - col0 * + ( + col1 ) * - col1 FROM tab0 cor0
----
177504
329315
737009

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * 9 col1 FROM tab1 AS cor0
----
27
576
720

query I rowsort
SELECT 74 * col2 AS col1 FROM tab2 AS cor0
----
1924
1998
2812

query I rowsort
SELECT - ( col1 ) * col2 - 14 FROM tab0 AS cor0
----
-111
-2852
-7476

onlyif mysql # use DIV operator for integer division
query I rowsort label-1090
SELECT + cor0.col1 DIV - cor0.col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 52d7579cb9aa84ba8a466e09c3562381

skipif mysql # not compatible
query I rowsort label-1090
SELECT + cor0.col1 / - cor0.col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 52d7579cb9aa84ba8a466e09c3562381

onlyif mysql # use DIV operator for integer division
query I rowsort label-1091
SELECT ALL - + col2 DIV col0 + 93 AS col1 FROM tab2 AS cor0
----
90
93
93

skipif mysql # not compatible
query I rowsort label-1091
SELECT ALL - + col2 / col0 + 93 AS col1 FROM tab2 AS cor0
----
90
93
93

query I rowsort
SELECT - 1 * + cor0.col1 + - 15 * col0 + col2 AS col1 FROM tab2 AS cor0
----
-109
-1164
-1203

query I rowsort
SELECT DISTINCT + 86 + + col2 AS col2 FROM tab0 cor0
----
119
168
87

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 33 * col0 * - ( + ( + cor0.col1 ) ) + + col2 * col2 col2 FROM tab1 AS cor0
----
24369
43536
5490

query I rowsort
SELECT - + 55 * - col2 + ( 40 ) AS col0 FROM tab1 AS cor0
----
3010
3175
5320

query I rowsort
SELECT col2 * + col2 - - ( - 62 ) * col0 * - ( + col1 ) FROM tab1 AS cor0
----
42929
73696
7752

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 64 * + cor0.col1 - + cor0.col1 * - col1 col1 FROM tab0 AS cor0
----
12900
14105
15617

query I rowsort
SELECT - col0 * ( + 46 ) + col2 AS col1 FROM tab0 AS cor0
----
-1071
-1609
-4012

query I rowsort
SELECT ALL - 73 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 2931474b870c05694e446771031a6949

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

query I rowsort
SELECT ALL + 53 + + cor1.col2 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 2cd14832f76a56e635b1e88e89f255c7

query I rowsort
SELECT ALL 91 FROM tab2 cor0 CROSS JOIN tab2, tab0 cor1, tab1 AS cor2
----
81 values hashing to 8a48d0ac75792561e233f0311a8872fd

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

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

query I rowsort
SELECT DISTINCT 42 FROM tab0, tab0 cor0
----
42

query I rowsort
SELECT + 61 + col0 + tab2.col0 * ( - col0 ) FROM tab2
----
-5945
-6101
19

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

skipif mysql # not compatible
query I rowsort label-1108
SELECT ALL 18 + - 39 / col1 AS col0 FROM tab0
----
18
18
18

query I rowsort
SELECT col2 * - col2 + + cor0.col1 AS col0 FROM tab2 AS cor0
----
-1427
-617
-698

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

query I rowsort
SELECT DISTINCT + 79 + + 44 FROM tab0
----
123

onlyif mysql # use DIV operator for integer division
query I rowsort label-1112
SELECT 9 DIV col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1112
SELECT 9 / col0 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT + col2 * col0 + col0 * ( - ( + col0 ) ) AS col1 FROM tab1 AS cor0
----
-448
1280
153

query I rowsort
SELECT DISTINCT + - ( cor0.col0 ) + col1 + col2 FROM tab0 cor0
----
63
84
95

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

query I rowsort
SELECT - col2 * 63 * - col2 AS col1 FROM tab0 AS cor0
----
423612
63
68607

query I rowsort
SELECT + 29 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 4c56285992bcb76e1aac22e6d23d1318

query I rowsort
SELECT DISTINCT - + col2 - - col2 * col0 * col1 FROM tab1 cor0
----
36423
4158
99744

query I rowsort
SELECT DISTINCT + + col2 + 11 FROM tab1 AS cor0
----
107
65
68

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1120
SELECT - - col1 * col0 + - 17 * col2 * + CAST( col0 AS SIGNED ) FROM tab0 AS cor0
----
-11400
-115967
2800

skipif mysql # not compatible
query I rowsort label-1120
SELECT - - col1 * col0 + - 17 * col2 * + CAST ( col0 AS INTEGER ) FROM tab0 AS cor0
----
-11400
-115967
2800

query I rowsort
SELECT ALL col2 + 83 * col0 * - col0 AS col1 FROM tab0 AS cor0
----
-101674
-47775
-657361

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

query I rowsort
SELECT ALL - 51 - + 20 AS col0 FROM tab0 cor0
----
-71
-71
-71

query I rowsort
SELECT ALL + col2 * + col0 * - col2 - + col0 FROM tab1 AS cor0
----
-208000
-737360
-8751

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - ( col0 ) + + col0 col2 FROM tab1 AS cor0
----
128
160
6

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

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

query I rowsort
SELECT ALL 58 * + col0 + - ( 89 ) AS col2 FROM tab2 AS cor0
----
317
4435
4493

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1131
SELECT DISTINCT tab0.col0 DIV + cor0.col1 + + cor1.col0 AS col1 FROM tab0, tab0 AS cor0, tab1 cor1
----
3
4
64
65
80
81

skipif mysql # not compatible
query I rowsort label-1131
SELECT DISTINCT tab0.col0 / + cor0.col1 + + cor1.col0 AS col1 FROM tab0, tab0 AS cor0, tab1 cor1
----
3
4
64
65
80
81

query I rowsort
SELECT - cor0.col2 + cor0.col1 + 49 AS col2 FROM tab2 AS cor0
----
28
53
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-1133
SELECT - col0 * col0 + + CAST( - 43 AS SIGNED ) DIV + col1 FROM tab2 AS cor0
----
-50
-6084
-6243

skipif mysql # not compatible
query I rowsort label-1133
SELECT - col0 * col0 + + CAST ( - 43 AS INTEGER ) / + col1 FROM tab2 AS cor0
----
-50
-6084
-6243

query I rowsort
SELECT DISTINCT - 42 * + col1 AS col2 FROM tab1
----
-1092
-420
-546

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + col2 * + col2 col1 FROM tab0
----
1
35937
551368

query I rowsort
SELECT DISTINCT + col2 * - col2 * - 64 AS col2 FROM tab1
----
186624
207936
589824

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + 61 ) + + cor0.col2 col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b4446aacc683647e58ed4bb36ba550f5

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

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

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

query I rowsort
SELECT + 75 + - col1 FROM tab0 AS cor0
----
-11
-16
-22

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

query I rowsort
SELECT + col1 + col1 - col0 FROM tab2
----
-45
40
55

query I rowsort
SELECT - 98 + col1 FROM tab0
----
-1
-12
-7

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

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

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

query I rowsort
SELECT ALL - cor0.col1 AS col2 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2

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

query I rowsort
SELECT 10 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 0fe3e45a9ecd49584c2ab442100d5176

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

query I rowsort
SELECT ALL - tab1.col2 + + col2 * + col0 FROM tab1
----
108
3591
7584

query I rowsort
SELECT ALL col1 + + ( - 48 ) AS col0 FROM tab2 AS cor0
----
-17
-31
11

query I rowsort
SELECT DISTINCT - col1 + + ( 49 ) FROM tab2 AS cor0
----
-10
18
32

query I rowsort
SELECT ALL col0 + - 79 AS col0 FROM tab2 AS cor0
----
-1
-72
0

query I rowsort
SELECT DISTINCT - col0 * + 15 FROM tab1 cor0
----
-1200
-45
-960

query I rowsort
SELECT + col1 * - ( + col0 ) + cor0.col0 AS col2 FROM tab2 AS cor0
----
-1264
-210
-4524

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1156
SELECT ALL + col0 * - CAST( 14 AS SIGNED ) FROM tab2 AS cor0
----
-1092
-1106
-98

skipif mysql # not compatible
query I rowsort label-1156
SELECT ALL + col0 * - CAST ( 14 AS INTEGER ) FROM tab2 AS cor0
----
-1092
-1106
-98

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

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

query I rowsort
SELECT + + ( + 62 ) * + cor0.col0 AS col0 FROM tab1 AS cor0
----
186
3968
4960

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

query I rowsort
SELECT DISTINCT - ( cor0.col2 ) + col1 * - ( 7 ) AS col0 FROM tab0 AS cor0
----
-635
-680
-719

query I rowsort
SELECT DISTINCT + cor0.col1 * - col0 + cor0.col0 * + col2 + + col2 * + cor0.col1 AS col2 FROM tab1 AS cor0
----
1488
3578
7888

query I rowsort
SELECT ALL + + 66 - col0 FROM tab1 cor0
----
-14
2
63

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

query I rowsort
SELECT - col1 + + 75 FROM tab1 AS cor0
----
49
62
65

query I rowsort
SELECT + - col2 * col0 + + 45 + + 56 AS col2 FROM tab0 AS cor0
----
-691
-7197
66

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

query I rowsort
SELECT DISTINCT - ( + cor0.col0 ) * ( - 62 ) AS col2 FROM tab2 AS cor0
----
434
4836
4898

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1170
SELECT DISTINCT ( col1 ) * col1 - CAST( + cor0.col1 AS SIGNED ) FROM tab1 AS cor0
----
156
650
90

skipif mysql # not compatible
query I rowsort label-1170
SELECT DISTINCT ( col1 ) * col1 - CAST ( + cor0.col1 AS INTEGER ) FROM tab1 AS cor0
----
156
650
90

query I rowsort
SELECT + col2 * cor0.col0 - - col1 * col1 AS col0 FROM tab1 AS cor0
----
3748
7849
838

query I rowsort
SELECT + 36 * - col1 + col2 AS col0 FROM tab2 AS cor0
----
-1089
-2098
-574

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1174
SELECT + 3 * ( col2 ) + - col2 DIV col0 AS col1 FROM tab0 AS cor0
----
246
3
98

skipif mysql # not compatible
query I rowsort label-1174
SELECT + 3 * ( col2 ) + - col2 / col0 AS col1 FROM tab0 AS cor0
----
246
3
98

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

query I rowsort
SELECT DISTINCT tab1.col0 + + 98 AS col1 FROM tab1
----
101
162
178

query I rowsort
SELECT col0 + ( col0 ) * + col0 + ( - tab2.col0 ) * col0 FROM tab2
----
7
78
79

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

query I rowsort
SELECT - - col1 + + 54 FROM tab2 AS cor0
----
113
71
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + cor0.col1 ) + col0 * 95 col1 FROM tab1 AS cor0
----
311
6090
7613

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1182
SELECT + col2 DIV col0 + + col0 + 77 * col1 FROM tab0
----
6647
7096
7504

skipif mysql # not compatible
query I rowsort label-1182
SELECT + col2 / col0 + + col0 + 77 * col1 FROM tab0
----
6647
7096
7504

query I rowsort
SELECT - 24 * - col0 AS col2 FROM tab0
----
2136
576
840

query I rowsort
SELECT + tab0.col1 * + col1 * - col2 AS col1 FROM tab0
----
-244068
-679042
-9409

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

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

query I rowsort
SELECT ALL - - col2 * + 90 AS col2 FROM tab0 AS cor0
----
2970
7380
90

query I rowsort
SELECT DISTINCT + ( ( - col1 ) ) FROM tab0 cor0
----
-86
-91
-97

query I rowsort
SELECT DISTINCT + + 52 * col0 FROM tab1 cor0
----
156
3328
4160

onlyif mysql # use DIV operator for integer division
query I rowsort label-1189
SELECT + col1 DIV 92 - cor0.col0 FROM tab0 cor0
----
-24
-34
-89

skipif mysql # not compatible
query I rowsort label-1189
SELECT + col1 / 92 - cor0.col0 FROM tab0 cor0
----
-24
-34
-89

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

skipif mysql # not compatible
query I rowsort label-1190
SELECT DISTINCT - col2 * - CAST ( NULL AS INTEGER ) + col2 * + col1 + col0 / 13 AS col2 FROM tab2
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-1191
SELECT DISTINCT + col1 DIV tab2.col1 + - 77 FROM tab2
----
-76

skipif mysql # not compatible
query I rowsort label-1191
SELECT DISTINCT + col1 / tab2.col1 + - 77 FROM tab2
----
-76

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

query I rowsort
SELECT ALL 91 AS col1 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to deebbcfb9c7803a34dca6bd860849afe

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col1 * ( cor0.col2 + + col2 ) col1 FROM tab0 cor0
----
14924
194
5676

onlyif mysql # use DIV operator for integer division
query I rowsort label-1196
SELECT DISTINCT - col1 + 10 * col2 DIV cor0.col2 col1 FROM tab0 AS cor0
----
-76
-81
-87

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1196
SELECT DISTINCT - col1 + 10 * col2 / cor0.col2 col1 FROM tab0 AS cor0
----
-76
-81
-87

query I rowsort
SELECT DISTINCT - 37 AS col2 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
-37

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1199
SELECT + col0 DIV 19 AS col1 FROM tab0 AS cor0
----
1
1
4

skipif mysql # not compatible
query I rowsort label-1199
SELECT + col0 / 19 AS col1 FROM tab0 AS cor0
----
1
1
4

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

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

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

query I rowsort
SELECT ( 44 ) FROM tab2, tab2 AS cor0
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 4 * + 16 col0 FROM tab0, tab2 AS cor0
----
-64

query I rowsort
SELECT + col2 * - ( 40 ) FROM tab0 AS cor0
----
-1320
-3280
-40

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

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

query I rowsort
SELECT DISTINCT col2 * - ( + 74 ) AS col0 FROM tab1 AS cor0
----
-3996
-4218
-7104

query I rowsort
SELECT DISTINCT - + col0 + - 33 AS col2 FROM tab2 AS cor0
----
-111
-112
-40

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1209
SELECT - col1 DIV 52 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-1209
SELECT - col1 / 52 FROM tab2
----
-1
0
0

query I rowsort
SELECT ALL + + col1 * + 83 AS col2 FROM tab2 AS cor0
----
1411
2573
4897

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

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

query I rowsort
SELECT 14 AS col1 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 409c1790b702540dd9dc067c1965b7c0

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

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

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

query I rowsort
SELECT cor0.col2 * col2 + 29 FROM tab0 AS cor0
----
1118
30
6753

onlyif mysql # use DIV operator for integer division
query I rowsort label-1217
SELECT - col0 * ( col1 ) DIV col1 FROM tab2 cor0
----
-7
-78
-79

skipif mysql # not compatible
query I rowsort label-1217
SELECT - col0 * ( col1 ) / col1 FROM tab2 cor0
----
-7
-78
-79

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

query I rowsort
SELECT + 22 + tab2.col0 * + col1 FROM tab2
----
1365
239
4624

query I rowsort
SELECT - 65 AS col2 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 4ca93c42a91c7dff917e7b7090ba9e57

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1222
SELECT + cor0.col0 * col0 + col0 + + 73 DIV + cor0.col1 AS col1 FROM tab0 AS cor0
----
1260
600
8010

skipif mysql # not compatible
query I rowsort label-1222
SELECT + cor0.col0 * col0 + col0 + + 73 / + cor0.col1 AS col1 FROM tab0 AS cor0
----
1260
600
8010

query I rowsort
SELECT - + 67 * + col1 + + col1 + + ( cor0.col2 ) AS col2 FROM tab2 AS cor0
----
-1084
-2019
-3868

onlyif mysql # use DIV operator for integer division
query I rowsort label-1224
SELECT cor0.col2 * col2 + ( - col1 ) DIV col1 FROM tab0 AS cor0
----
0
1088
6723

skipif mysql # not compatible
query I rowsort label-1224
SELECT cor0.col2 * col2 + ( - col1 ) / col1 FROM tab0 AS cor0
----
0
1088
6723

onlyif mysql # use DIV operator for integer division
query I rowsort label-1225
SELECT + 91 DIV + col1 FROM tab1 AS cor0
----
3
7
9

skipif mysql # not compatible
query I rowsort label-1225
SELECT + 91 / + col1 FROM tab1 AS cor0
----
3
7
9

query I rowsort
SELECT cor0.col2 + col1 + ( + cor0.col2 ) AS col2 FROM tab2 AS cor0
----
111
85
93

query I rowsort
SELECT ALL ( - 78 ) FROM tab2, tab0 AS cor0
----
9 values hashing to b6e4cc21599216686f0cf45b85668b2c

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

skipif mysql # not compatible
query I rowsort label-1228
SELECT DISTINCT col1 + + 23 / + 59 FROM tab0 cor0
----
86
91
97

query I rowsort
SELECT - + col0 * 42 FROM tab1 cor0
----
-126
-2688
-3360

query I rowsort
SELECT + - col0 * 97 + cor0.col1 FROM tab2 AS cor0
----
-648
-7507
-7646

query I rowsort
SELECT ALL + + cor0.col2 * ( - 10 ) AS col1 FROM tab0 AS cor0
----
-10
-330
-820

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1232
SELECT CAST( - col2 AS SIGNED ) * col0 - + ( + 35 ) FROM tab1
----
-197
-3683
-7715

skipif mysql # not compatible
query I rowsort label-1232
SELECT CAST ( - col2 AS INTEGER ) * col0 - + ( + 35 ) FROM tab1
----
-197
-3683
-7715

query I rowsort
SELECT 83 * col0 - - col1 FROM tab2 AS cor0
----
612
6533
6574

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1235
SELECT DISTINCT - cor0.col1 * CAST( 48 AS SIGNED ) AS col0 FROM tab2, tab0 AS cor0
----
-4128
-4368
-4656

skipif mysql # not compatible
query I rowsort label-1235
SELECT DISTINCT - cor0.col1 * CAST ( 48 AS INTEGER ) AS col0 FROM tab2, tab0 AS cor0
----
-4128
-4368
-4656

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - cor0.col2 + 48 * + 75 col0 FROM tab2 AS cor0
----
2156
2871
2924

query I rowsort
SELECT ALL + 11 * + col1 AS col0 FROM tab1
----
110
143
286

query I rowsort
SELECT + - 7 * + col1 + 56 * + col1 AS col0 FROM tab2 AS cor0
----
1519
2891
833

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

query I rowsort
SELECT DISTINCT + col2 * + col0 + - 33 FROM tab0 AS cor0
----
2
7265
759

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1243
SELECT ALL + col2 + col2 * CAST( - col0 AS SIGNED ) * - col0 AS col2 FROM tab2 AS cor0
----
1350
158210
237196

skipif mysql # not compatible
query I rowsort label-1243
SELECT ALL + col2 + col2 * CAST ( - col0 AS INTEGER ) * - col0 AS col2 FROM tab2 AS cor0
----
1350
158210
237196

query I rowsort
SELECT + 3 + + col1 AS col2 FROM tab2 AS cor0
----
20
34
62

query I rowsort
SELECT ALL - 40 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 01aad4539198a6509248e086869f90a6

query I rowsort
SELECT ALL + 38 * tab0.col1 FROM tab0
----
3268
3458
3686

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 47 + + col1 * ( + col1 ) + col2 col1 FROM tab2 AS cor0
----
280
3460
941

query I rowsort
SELECT 86 + 11 FROM tab1, tab0 cor0, tab2 AS cor1
----
27 values hashing to c73fa6978df8525c99d6bc792bb27123

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor1.col2 * 4 col1 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to d5aef25d30aedbb823ca2d4f7428d7e6

query I rowsort
SELECT col0 * + col2 + 5 FROM tab1
----
167
3653
7685

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1252
SELECT col0 * col0 + + CAST( 62 AS SIGNED ) + col0 * - tab2.col1 AS col1 FROM tab2
----
-106
1544
4960

skipif mysql # not compatible
query I rowsort label-1252
SELECT col0 * col0 + + CAST ( 62 AS INTEGER ) + col0 * - tab2.col1 AS col1 FROM tab2
----
-106
1544
4960

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

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

query I rowsort
SELECT DISTINCT 45 * - col2 + + 4 AS col2 FROM tab0
----
-1481
-3686
-41

query I rowsort
SELECT ALL - + 3 FROM tab0, tab2, tab2 cor0
----
27 values hashing to 65b7e16aaa7821ace3a45a9846ffa166

query I rowsort
SELECT 83 * + col0 AS col1 FROM tab1
----
249
5312
6640

query I rowsort
SELECT - 85 * col1 - - col2 * + col1 * col0 AS col2 FROM tab2 AS cor0
----
114637
3224
49589

query I rowsort
SELECT ALL - col1 * + col1 + 23 FROM tab1
----
-146
-653
-77

query I rowsort
SELECT DISTINCT + 91 + cor1.col1 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
101
104
117

onlyif mysql # use DIV operator for integer division
query I rowsort label-1260
SELECT DISTINCT + + 90 + 68 DIV col1 FROM tab1 AS cor0
----
92
95
96

skipif mysql # not compatible
query I rowsort label-1260
SELECT DISTINCT + + 90 + 68 / col1 FROM tab1 AS cor0
----
92
95
96

query I rowsort
SELECT - 80 + 58 * + cor0.col2 AS col2 FROM tab0 AS cor0
----
-22
1834
4676

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

query I rowsort
SELECT DISTINCT - col0 * + 18 FROM tab2
----
-126
-1404
-1422

query I rowsort
SELECT DISTINCT + cor0.col1 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
10
13
26

query I rowsort
SELECT - 29 + - 63 * col2 * - col2 FROM tab1
----
183679
204658
580579

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col0 * 73 col0 FROM tab0 cor0
----
-1752
-2555
-6497

query I rowsort
SELECT ALL 42 * - col2 AS col2 FROM tab0 cor0
----
-1386
-3444
-42

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

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

query I rowsort
SELECT ALL 71 * - cor0.col2 * - col0 + + 78 + col2 AS col1 FROM tab1 cor0
----
11634
259143
545454

query I rowsort
SELECT ALL col2 - 16 * - col0 AS col1 FROM tab0 cor0
----
1506
417
561

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

query I rowsort
SELECT ALL + + ( - 4 ) + col1 * 40 FROM tab1 AS cor0
----
1036
396
516

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL >= + col1 + col2
----

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col0 * col0 NOT BETWEEN NULL AND + col1
----

query I rowsort
SELECT DISTINCT - col0 * col1 - col2 AS col0 FROM tab2
----
-1381
-244
-4628

query I rowsort
SELECT - col2 * col1 - col2 AS col1 FROM tab1
----
-1344
-1458
-627

onlyif mysql # use DIV operator for integer division
query I rowsort label-1278
SELECT ALL - col0 * - col0 DIV - col0 AS col2 FROM tab2
----
-7
-78
-79

skipif mysql # not compatible
query I rowsort label-1278
SELECT ALL - col0 * - col0 / - col0 AS col2 FROM tab2
----
-7
-78
-79

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1282
SELECT - col1 + - col1 DIV col1 + - col1 * tab2.col1 AS col2 FROM tab2
----
-307
-3541
-993

skipif mysql # not compatible
query I rowsort label-1282
SELECT - col1 + - col1 / col1 + - col1 * tab2.col1 AS col2 FROM tab2
----
-307
-3541
-993

onlyif mysql # use DIV operator for integer division
query I rowsort label-1283
SELECT DISTINCT + col2 + col0 + col2 DIV - col2 AS col0 FROM tab0
----
170
35
56

skipif mysql # not compatible
query I rowsort label-1283
SELECT DISTINCT + col2 + col0 + col2 / - col2 AS col0 FROM tab0
----
170
35
56

query I rowsort
SELECT + col1 * col1 * + col1 + - tab0.col0 FROM tab0
----
636032
753482
912638

onlyif mysql # use DIV operator for integer division
query I rowsort label-1285
SELECT - col2 * + col2 - col1 DIV col1 FROM tab2
----
-1445
-677
-730

skipif mysql # not compatible
query I rowsort label-1285
SELECT - col2 * + col2 - col1 / col1 FROM tab2
----
-1445
-677
-730

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

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

query I rowsort
SELECT DISTINCT - col0 + - col2 * + col1 * col2 - col0 * col1 FROM tab1
----
-120928
-33194
-75897

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

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

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

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

query I rowsort
SELECT - col2 * col1 - col0 FROM tab2
----
-1612
-725
-844

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL <> ( NULL )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-1296
SELECT col0 DIV + col1 FROM tab0 WHERE - col1 DIV col2 + col2 > col0 * - col1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1296
SELECT col0 / + col1 FROM tab0 WHERE - col1 / col2 + col2 > col0 * - col1
----
0
0
0

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

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

query I rowsort
SELECT ALL + col2 * col2 * + col2 + col0 * col0 FROM tab1 cor0
----
157473
189289
891136

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

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

skipif mysql # not compatible
query I rowsort label-1301
SELECT DISTINCT - col0 / col0 AS col0 FROM tab1 AS cor0
----
-1

query I rowsort
SELECT ALL - col2 * - col1 + col0 * + col2 * - col0 AS col0 FROM tab1 AS cor0
----
-232902
-613152
918

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT + col0 * + col0 + col2 * tab1.col0 AS col0 FROM tab1
----
14080
171
7744

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

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

skipif mysql # not compatible
query I rowsort label-1314
SELECT - + col2 * + CAST ( col0 AS INTEGER ) * - col2 FROM tab0 AS cor0
----
26136
35
598436

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - 39 col1 FROM tab2 AS cor0
----
-32
39
40

query I rowsort
SELECT + col1 * col2 * - tab2.col1 + tab2.col0 AS col2 FROM tab2
----
-10903
-25940
-90428

query I rowsort
SELECT col1 + col1 * + col1 AS col0 FROM tab1
----
110
182
702

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + col2 - - col1 col1 FROM tab2
----
1461
735
760

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

query I rowsort
SELECT col2 FROM tab1 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT col0 + - col0 * col1 * + col1 AS col1 FROM tab2
----
-22752
-271440
-6720

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1325
SELECT ALL + + CAST( + 35 AS SIGNED ) DIV - col1 FROM tab2 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-1325
SELECT ALL + + CAST ( + 35 AS INTEGER ) / - col1 FROM tab2 AS cor0
----
-1
-2
0

query I rowsort
SELECT + col0 * - 3 FROM tab0
----
-105
-267
-72

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

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1330
SELECT - + CAST( - 57 AS SIGNED ) FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 220a93709e207779b34ef74b544764a5

skipif mysql # not compatible
query I rowsort label-1330
SELECT - + CAST ( - 57 AS INTEGER ) FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 220a93709e207779b34ef74b544764a5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 63 * + col1 * col0 col1 FROM tab0 AS cor0
----
130032
213885
510237

query I rowsort
SELECT - + col0 * + 90 FROM tab0 AS cor0
----
-2160
-3150
-8010

query I rowsort
SELECT + ( - 26 ) * col2 FROM tab2 AS cor0
----
-676
-702
-988

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1335
SELECT - CAST( - col2 AS SIGNED ) * col2 FROM tab2 AS cor0
----
1444
676
729

skipif mysql # not compatible
query I rowsort label-1335
SELECT - CAST ( - col2 AS INTEGER ) * col2 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT ( + col0 ) - cor0.col2 * - 88 FROM tab0 AS cor0
----
123
2928
7305

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

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

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

query I rowsort
SELECT + + 81 + - cor0.col0 AS col2 FROM tab1 AS cor0
----
1
17
78

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

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

query I rowsort
SELECT + col1 * ( + 88 ) + col1 - 21 * + col1 FROM tab0 AS cor0
----
5848
6188
6596

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

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

query I rowsort
SELECT DISTINCT + col0 * + 31 FROM tab1 AS cor0
----
1984
2480
93

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

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

query I rowsort
SELECT ALL + 97 * + col2 AS col1 FROM tab2
----
2522
2619
3686

query I rowsort
SELECT - 64 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 601ec439a72fb4786a9cb7a6547ace5e

query I rowsort
SELECT ALL col2 * cor0.col1 + + col0 FROM tab1 cor0
----
1328
1407
634

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

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

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

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

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - cor0.col2 * + CAST ( - col2 AS REAL ) + col2 * col2 AS col0 FROM tab1 cor0
----
18432
5832
6498

query I rowsort
SELECT 55 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 832128adb1ddc65c3105e29cc2c8b3a3

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

query I rowsort
SELECT - col1 * - 20 + + col2 AS col0 FROM tab1 AS cor0
----
257
356
574

query I rowsort
SELECT ALL col1 * + 83 * col1 AS col1 FROM tab0 AS cor0
----
613868
687323
780947

onlyif mysql # use DIV operator for integer division
query I rowsort label-1357
SELECT ALL + + CAST( col2 AS SIGNED ) + col0 DIV + 74 + - col2 * - col1 FROM tab2 AS cor0
----
1561
685
864

skipif mysql # not compatible
query I rowsort label-1357
SELECT ALL + + CAST ( col2 AS INTEGER ) + col0 / + 74 + - col2 * - col1 FROM tab2 AS cor0
----
1561
685
864

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 - ( col2 ) * ( ( col0 ) ) * col2 col2 FROM tab2 AS cor0
----
-113997
-5096
-52650

query I rowsort
SELECT DISTINCT + col0 + 28 * cor0.col2 AS col0 FROM tab2 AS cor0
----
1143
763
806

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 11 * - col0 col2 FROM tab2 AS cor0
----
77
858
869

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1361
SELECT CAST( - 94 AS SIGNED ) * - col1 AS col2 FROM tab0 AS cor0
----
8084
8554
9118

skipif mysql # not compatible
query I rowsort label-1361
SELECT CAST ( - 94 AS INTEGER ) * - col1 AS col2 FROM tab0 AS cor0
----
8084
8554
9118

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

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

query I rowsort
SELECT DISTINCT - col1 * col2 + col1 * - ( col2 ) * - col0 - - col1 AS col1 FROM tab1 AS cor0
----
2834
35920
98605

query I rowsort
SELECT + - col1 * + col2 + col1 FROM tab1 AS cor0
----
-1235
-1378
-560

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

query I rowsort
SELECT DISTINCT + + 84 FROM tab0 cor0
----
84

query I rowsort
SELECT - - col2 * - col1 + - cor0.col2 + 36 AS col1 FROM tab2 AS cor0
----
-1524
-648
-828

query I rowsort
SELECT ALL + 16 + - col0 FROM tab1 AS cor0
----
-48
-64
13

query I rowsort
SELECT DISTINCT - 33 + + col1 * + col2 AS col0 FROM tab1
----
1215
1371
537

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

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

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

query I rowsort
SELECT DISTINCT col0 * + 96 FROM tab1
----
288
6144
7680

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

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

query I rowsort
SELECT 91 - - col0 FROM tab1
----
155
171
94

query I rowsort
SELECT 11 * + col0 AS col2 FROM tab1 AS cor0
----
33
704
880

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

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

query I rowsort
SELECT DISTINCT - 15 * col0 FROM tab1
----
-1200
-45
-960

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * + cor0.col2 col0 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT ALL ( 39 ) + col0 FROM tab0 cor0
----
128
63
74

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

query I rowsort
SELECT DISTINCT - - col2 * col1 - 56 FROM tab0 AS cor0
----
2782
41
7406

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1389
SELECT + col2 + - col0 * CAST ( - col0 + - col1 AS INTEGER ) * 63 FROM tab2 AS cor0
----
16785
477830
673244

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

query I rowsort
SELECT DISTINCT + - cor0.col1 * - col1 - 93 * - ( col0 + 33 ) * - 35 FROM tab0 AS cor0
----
-178139
-211931
-388829

query I rowsort
SELECT ALL - + 72 AS col0 FROM tab0 AS cor0
----
-72
-72
-72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 90 * - col1 col0 FROM tab1 AS cor0
----
-1170
-2340
-900

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

query I rowsort
SELECT col1 * col2 * 19 FROM tab2 AS cor0
----
12274
15903
29146

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

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

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

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

query I rowsort
SELECT cor0.col2 + - col2 * - 36 * + col0 FROM tab0 AS cor0
----
1261
262810
28545

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

skipif mysql # not compatible
query I rowsort
SELECT + col1 * - CAST ( + 96 AS REAL ) * col0 + - ( col2 + col0 * - 53 ) AS col2 FROM tab2 cor0
----
-124779
-20488
-437684

query I rowsort
SELECT ALL - col2 * 13 + col2 FROM tab1 AS cor0
----
-1152
-648
-684

query I rowsort
SELECT + - col0 + 19 * - cor0.col2 FROM tab2 AS cor0
----
-520
-572
-801

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1405
SELECT - cor0.col1 DIV - 70 + 34 FROM tab2 AS cor0
----
34
34
34

skipif mysql # not compatible
query I rowsort label-1405
SELECT - cor0.col1 / - 70 + 34 FROM tab2 AS cor0
----
34
34
34

query I rowsort
SELECT ALL - col1 + ( col1 + col0 * - 62 ) FROM tab1 AS cor0
----
-186
-3968
-4960

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

skipif mysql # not compatible
query I rowsort label-1407
SELECT ALL cor0.col1 * CAST ( col0 + - col2 AS INTEGER ) * col1 AS col0 FROM tab2 AS cor0
----
-19220
11849
181012

query I rowsort
SELECT DISTINCT - col0 + - 70 * + cor0.col2 AS col0 FROM tab1 AS cor0
----
-3783
-4054
-6800

query I rowsort
SELECT ALL col2 * col0 * + col2 + + col1 * col0 AS col0 FROM tab2 AS cor0
----
115419
5320
57330

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1411
SELECT col0 * 7 DIV col0 FROM tab0 AS cor0
----
7
7
7

skipif mysql # not compatible
query I rowsort label-1411
SELECT col0 * 7 / col0 FROM tab0 AS cor0
----
7
7
7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1412
SELECT CAST( 97 AS SIGNED ) FROM tab0, tab2 AS cor0
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

skipif mysql # not compatible
query I rowsort label-1412
SELECT CAST ( 97 AS INTEGER ) FROM tab0, tab2 AS cor0
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

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

query I rowsort
SELECT - + 24 * col1 + col0 AS col2 FROM tab2 AS cor0
----
-1338
-329
-737

query I rowsort
SELECT col1 * col0 + col1 * - 15 * + col0 AS col2 FROM tab0 AS cor0
----
-113386
-28896
-47530

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1416
SELECT - CAST( - ( col2 ) AS SIGNED ) + 48 AS col2 FROM tab1 AS cor0
----
102
105
144

skipif mysql # not compatible
query I rowsort label-1416
SELECT - CAST ( - ( col2 ) AS INTEGER ) + 48 AS col2 FROM tab1 AS cor0
----
102
105
144

query I rowsort
SELECT - + ( 8 ) + - col2 AS col1 FROM tab1 AS cor0
----
-104
-62
-65

onlyif mysql # use DIV operator for integer division
query I rowsort label-1418
SELECT DISTINCT ( + 17 ) DIV col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-1418
SELECT DISTINCT ( + 17 ) / col0 FROM tab0
----
0

query I rowsort
SELECT DISTINCT 17 + col0 * + col2 FROM tab2 cor0
----
2045
206
3019

query I rowsort
SELECT + cor0.col2 + + ( 29 ) FROM tab0, tab1 AS cor0
----
9 values hashing to 5663e7bd552aabf1271ec539cc236ac4

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

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

query I rowsort
SELECT DISTINCT 75 AS col2 FROM tab1, tab0 AS cor0
----
75

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

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

query I rowsort
SELECT + + col0 * + col0 * 89 FROM tab1 cor0
----
364544
569600
801

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

query I rowsort
SELECT + col1 * 11 - - col2 AS col2 FROM tab1 cor0
----
167
239
340

query I rowsort
SELECT ALL - col2 * col2 - ( - col1 ) FROM tab0 AS cor0
----
-1003
-6633
96

query I rowsort
SELECT 23 + - cor1.col0 FROM tab1, tab1 cor0, tab1 AS cor1
----
27 values hashing to f5abdfbbd36e00f067017b8b7847b84f

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

query I rowsort
SELECT ALL col2 * - col1 + + 3 + - col0 FROM tab2 AS cor0
----
-1609
-722
-841

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1432
SELECT DISTINCT - 6 DIV cor0.col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1432
SELECT DISTINCT - 6 / cor0.col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL cor0.col2 * - cor0.col1 + - col1 * col1 AS col1 FROM tab2 AS cor0
----
-1798
-5015
-935

query I rowsort
SELECT - ( col2 + col1 * + col2 ) FROM tab2
----
-1560
-684
-864

query I rowsort
SELECT cor1.col0 + 53 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 1711eaaea82111453080275a9ff9597a

query I rowsort
SELECT DISTINCT + 9 FROM tab1, tab1 AS cor0
----
9

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

skipif mysql # not compatible
query I rowsort label-1437
SELECT ALL - col2 * - col1 + CAST ( + cor0.col2 + col0 AS INTEGER ) FROM tab0 AS cor0
----
133
2895
7633

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

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

query I rowsort
SELECT DISTINCT - + 2 * - col1 * 51 + - 42 FROM tab2 cor0
----
1692
3120
5976

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

query I rowsort
SELECT DISTINCT + col1 + 65 FROM tab0 AS cor0
----
151
156
162

query I rowsort
SELECT - - 1 + 13 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 83e5779d2487d12495e7d816c797264f

query I rowsort
SELECT DISTINCT + - 21 + - cor1.col0 * + 52 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-177
-3349
-4181

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

query I rowsort
SELECT - - 31 * + col2 FROM tab0 AS cor0
----
1023
2542
31

query I rowsort
SELECT + col0 + 51 FROM tab2
----
129
130
58

query I rowsort
SELECT DISTINCT + - 65 + col1 AS col2 FROM tab2 AS cor0
----
-34
-48
-6

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

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

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

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

query I rowsort
SELECT - - ( + 86 ) + - col0 AS col2 FROM tab1 AS cor0
----
22
6
83

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

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

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

query I rowsort
SELECT + col1 * cor0.col1 * - 29 FROM tab2 AS cor0
----
-100949
-27869
-8381

query I rowsort
SELECT ALL 28 AS col1 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 8a39580587f2831072e93c319ff94bbf

query I rowsort
SELECT - - col0 + cor0.col1 * col2 FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT ALL + 44 + col2 * col1 FROM tab1 AS cor0
----
1292
1448
614

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1460
SELECT DISTINCT + col2 DIV - 32 + - col1 + - tab2.col2 * + col1 FROM tab2
----
-1593
-664
-868

skipif mysql # not compatible
query I rowsort label-1460
SELECT DISTINCT + col2 / - 32 + - col1 + - tab2.col2 * + col1 FROM tab2
----
-1593
-664
-868

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1462
SELECT 94 DIV + 22 FROM tab2, tab1 AS cor0
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b

skipif mysql # not compatible
query I rowsort label-1462
SELECT 94 / + 22 FROM tab2, tab1 AS cor0
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b

query I rowsort
SELECT col1 * - ( col1 ) + col1 AS col2 FROM tab0
----
-7310
-8190
-9312

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

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

query I rowsort
SELECT 50 AS col2 FROM tab1, tab0 cor0, tab1 AS cor1
----
27 values hashing to 314aace40e704c20a6be06204a329f80

query I rowsort
SELECT DISTINCT - cor0.col1 + - col1 + - cor0.col0 FROM tab2 cor0
----
-113
-196
-69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 col2 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT DISTINCT - - col0 * - 40 AS col2 FROM tab0 cor0
----
-1400
-3560
-960

query I rowsort
SELECT + col1 * col2 - + cor0.col0 * - col0 AS col1 FROM tab0 AS cor0
----
1322
15383
3414

query I rowsort
SELECT DISTINCT - col0 * cor0.col0 + ( + col0 ) FROM tab2 cor0
----
-42
-6006
-6162

query I rowsort
SELECT ALL - + col0 + 3 * + col1 FROM tab2 AS cor0
----
-28
86
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 20 + + col2 * - col2 col1 FROM tab1 cor0
----
-2936
-3269
-9236

query I rowsort
SELECT DISTINCT + ( col0 ) + + col1 + + 93 FROM tab0 AS cor0
----
203
225
273

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

query I rowsort
SELECT - ( - 30 ) + + col2 AS col2 FROM tab1 cor0
----
126
84
87

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

skipif mysql # not compatible
query I rowsort label-1476
SELECT ALL 7 / col1 AS col0 FROM tab0 AS cor0
----
0
0
0

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

query I rowsort
SELECT ALL + + 44 * + 57 FROM tab0 AS cor0
----
2508
2508
2508

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

query I rowsort
SELECT DISTINCT + - 71 + - 92 FROM tab2 AS cor0
----
-163

query I rowsort
SELECT ALL 1 + + ( col0 ) AS col2 FROM tab0 AS cor0
----
25
36
90

query I rowsort
SELECT DISTINCT - col0 * + 68 + col0 + col0 FROM tab1
----
-198
-4224
-5280

onlyif mysql # use DIV operator for integer division
query I rowsort label-1483
SELECT - col0 + tab2.col1 * col0 DIV col0 FROM tab2
----
-19
-62
24

skipif mysql # not compatible
query I rowsort label-1483
SELECT - col0 + tab2.col1 * col0 / col0 FROM tab2
----
-19
-62
24

query I rowsort
SELECT col1 - col1 * 39 * col0 AS col2 FROM tab1
----
-24950
-3016
-40547

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

query I rowsort
SELECT + ( - 26 ) * + cor0.col0 * - ( + col0 ) FROM tab0 AS cor0
----
14976
205946
31850

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1489
SELECT ALL col2 DIV col0 + 36 * + col2 + + col2 DIV + col1 AS col2 FROM tab1
----
1964
2057
3464

skipif mysql # not compatible
query I rowsort label-1489
SELECT ALL col2 / col0 + 36 * + col2 + + col2 / + col1 AS col2 FROM tab1
----
1964
2057
3464

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1490
SELECT ALL tab0.col1 + CAST ( NULL AS REAL ) col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 + - col0 * 88 FROM tab1
----
-261
-5568
-6960

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

query I rowsort
SELECT + 26 * tab2.col1 FROM tab2
----
1534
442
806

query I rowsort
SELECT - col1 * - tab1.col2 + 97 FROM tab1
----
1345
1501
667

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

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

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

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

query I rowsort
SELECT col0 + 64 AS col2 FROM tab2
----
142
143
71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( tab2.col2 ) * col2 - - col2 col2 FROM tab2
----
1482
702
756

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1500
SELECT DISTINCT col2 / - col1 + col2 col0 FROM tab0
----
1
33
82

query I rowsort
SELECT tab0.col2 AS col1 FROM tab0, tab0 cor0, tab0 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

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

skipif mysql # not compatible
query I rowsort label-1502
SELECT - 25 / + ( + col1 + + tab1.col2 * tab1.col1 ) FROM tab1
----
0
0
0

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1504
SELECT - 84 DIV + col1 col1 FROM tab2
----
-1
-2
-4

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1504
SELECT - 84 / + col1 col1 FROM tab2
----
-1
-2
-4

query I rowsort
SELECT DISTINCT - + 63 * - 11 FROM tab1, tab0, tab2 AS cor0
----
693

onlyif mysql # use DIV operator for integer division
query I rowsort label-1506
SELECT DISTINCT ( + 28 ) DIV + col2 + - col1 FROM tab0
----
-69
-86
-91

skipif mysql # not compatible
query I rowsort label-1506
SELECT DISTINCT ( + 28 ) / + col2 + - col1 FROM tab0
----
-69
-86
-91

query I rowsort
SELECT ALL - ( 21 ) + + col0 * 38 AS col0 FROM tab1
----
2411
3019
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 + + col2 + col0 * col1 * - col1 col2 FROM tab2 AS cor0
----
-22831
-271518
-6727

onlyif mysql # use DIV operator for integer division
query I rowsort label-1509
SELECT 72 * col0 DIV + 51 + - 57 AS col2 FROM tab2 AS cor0
----
-48
53
54

skipif mysql # not compatible
query I rowsort label-1509
SELECT 72 * col0 / + 51 + - 57 AS col2 FROM tab2 AS cor0
----
-48
53
54

query I rowsort
SELECT 98 + cor1.col1 AS col1 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 49108c28db9ffd9e8509fee9c9a89dda

query I rowsort
SELECT ( - cor0.col0 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b

query I rowsort
SELECT - col1 * - col0 - - col2 FROM tab2 AS cor0
----
1381
244
4628

query I rowsort
SELECT DISTINCT col1 * - col1 + - ( 33 ) FROM tab0 AS cor0
----
-7429
-8314
-9442

query I rowsort
SELECT DISTINCT - 45 - - col1 FROM tab1 AS cor0
----
-19
-32
-35

query I rowsort
SELECT - col1 + col2 * - col0 * col2 FROM tab2 AS cor0
----
-114093
-5134
-52787

query I rowsort
SELECT ALL ( - col0 ) * + 89 AS col0 FROM tab0
----
-2136
-3115
-7921

query I rowsort
SELECT + 4 * + cor0.col1 FROM tab1 cor0
----
104
40
52

query I rowsort
SELECT col1 + - tab0.col0 * + ( - ( col1 ) ) + + ( + col2 * tab0.col0 ) AS col2 FROM tab0
----
15488
2942
3527

query I rowsort
SELECT 66 * - cor0.col0 - 14 * - col0 AS col0 FROM tab1 AS cor0
----
-156
-3328
-4160

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1521
SELECT - cor0.col1 * + col0 + col0 DIV - col0 + - col0 AS col1 FROM tab0 AS cor0
----
-2089
-3431
-8189

skipif mysql # not compatible
query I rowsort label-1521
SELECT - cor0.col1 * + col0 + col0 / - col0 + - col0 AS col1 FROM tab0 AS cor0
----
-2089
-3431
-8189

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * col1 + - col1 * col1 col0 FROM tab1 AS cor0
----
-598
540
871

query I rowsort
SELECT - col2 + + 61 + ( col0 ) * - col2 FROM tab0 AS cor0
----
-7319
-764
25

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

query I rowsort
SELECT + col2 * - 45 + + col0 AS col2 FROM tab0 AS cor0
----
-10
-1461
-3601

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

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

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

query I rowsort
SELECT + 70 * 65 FROM tab2 AS cor0
----
4550
4550
4550

query I rowsort
SELECT col1 * + 80 AS col1 FROM tab0 AS cor0
----
6880
7280
7760

query I rowsort
SELECT + ( - col1 ) * col1 - 42 FROM tab0 cor0
----
-7438
-8323
-9451

query I rowsort
SELECT DISTINCT + 74 * cor0.col0 + + cor0.col2 AS col2 FROM tab0 AS cor0
----
1809
2591
6668

query I rowsort
SELECT ALL 53 + col0 * + 52 FROM tab0 AS cor0
----
1301
1873
4681

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

query I rowsort
SELECT - col2 + col0 * 69 FROM tab1 AS cor0
----
153
4359
5424

query I rowsort
SELECT col1 - 83 AS col0 FROM tab0
----
14
3
8

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

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

query I rowsort
SELECT ALL + - col2 * - 98 + - 33 * - col0 + + col1 FROM tab0 AS cor0
----
11064
1350
4112

query I rowsort
SELECT ALL + col1 * - 91 AS col1 FROM tab1 AS cor0
----
-1183
-2366
-910

query I rowsort
SELECT + col0 * + col1 * - 8 FROM tab2 AS cor0
----
-10744
-1736
-36816

onlyif mysql # use DIV operator for integer division
query I rowsort label-1540
SELECT ALL + col0 DIV ( + col1 * - col1 ) + cor0.col0 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-1540
SELECT ALL + col0 / ( + col1 * - col1 ) + cor0.col0 FROM tab0 AS cor0
----
24
35
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + col1 * - 31 col2 FROM tab2 AS cor0
----
-1888
-544
-992

query I rowsort
SELECT ALL col1 * col1 * col1 + + col0 * - col0 FROM tab2 AS cor0
----
-1328
199295
29742

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

query I rowsort
SELECT + ( 50 ) + col1 * + col1 FROM tab0 AS cor0
----
7446
8331
9459

query I rowsort
SELECT DISTINCT - col2 + col0 + col0 * + col1 AS col1 FROM tab2 AS cor0
----
1384
197
4654

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1547
SELECT ALL - ( + col1 ) DIV col2 + + col1 * + col2 AS col2 FROM tab0 AS cor0
----
0
2836
7461

skipif mysql # not compatible
query I rowsort label-1547
SELECT ALL - ( + col1 ) / col2 + + col1 * + col2 AS col2 FROM tab0 AS cor0
----
0
2836
7461

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 - - 24 * - col1 col2 FROM tab2
----
-1357
-391
-713

query I rowsort
SELECT + tab2.col2 * + 71 AS col2 FROM tab2
----
1846
1917
2698

query I rowsort
SELECT - col0 * + 67 FROM tab2
----
-469
-5226
-5293

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

query I rowsort
SELECT + ( col2 * - 31 ) FROM tab2
----
-1178
-806
-837

query I rowsort
SELECT DISTINCT 79 * col1 + + col2 AS col0 FROM tab2
----
1381
2476
4687

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

skipif mysql # not compatible
query I rowsort label-1554
SELECT - + col1 * - col0 + + col2 / + col0 AS col0 FROM tab1 cor0
----
1041
640
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-1555
SELECT DISTINCT + col1 DIV - col0 + + 30 FROM tab1
----
22
30

skipif mysql # not compatible
query I rowsort label-1555
SELECT DISTINCT + col1 / - col0 + + 30 FROM tab1
----
22
30

query I rowsort
SELECT + 69 + col1 * col1 AS col1 FROM tab2
----
1030
3550
358

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

query I rowsort
SELECT DISTINCT 12 * col0 + col0 FROM tab1
----
1040
39
832

query I rowsort
SELECT ALL + 76 + col2 AS col1 FROM tab2
----
102
103
114

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

query I rowsort
SELECT ALL 27 + + col0 AS col2 FROM tab1
----
107
30
91

query I rowsort
SELECT + col2 * - col2 + + col1 AS col2 FROM tab1
----
-2890
-3239
-9203

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1564
SELECT ALL + cor0.col0 DIV col1 - col0 * - cor0.col2 FROM tab2 AS cor0
----
189
2029
3006

skipif mysql # not compatible
query I rowsort label-1564
SELECT ALL + cor0.col0 / col1 - col0 * - cor0.col2 FROM tab2 AS cor0
----
189
2029
3006

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

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

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

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

query I rowsort
SELECT DISTINCT 4 * - 82 FROM tab2
----
-328

onlyif mysql # use DIV operator for integer division
query I rowsort label-1569
SELECT ALL ( + col1 ) - - col1 DIV tab1.col2 FROM tab1
----
10
13
26

skipif mysql # not compatible
query I rowsort label-1569
SELECT ALL ( + col1 ) - - col1 / tab1.col2 FROM tab1
----
10
13
26

query I rowsort
SELECT ALL + 37 * + ( col2 ) AS col2 FROM tab0 AS cor0
----
1221
3034
37

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

query I rowsort
SELECT 19 + - col2 FROM tab1
----
-35
-38
-77

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

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

query I rowsort
SELECT ALL + - col0 + + col0 * - cor0.col2 + - col0 FROM tab2 AS cor0
----
-203
-2184
-3160

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

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

query I rowsort
SELECT ALL + - 31 * col0 + + col2 * col2 FROM tab1 AS cor0
----
1265
2823
6736

query I rowsort
SELECT DISTINCT - 36 - cor0.col1 AS col0 FROM tab1 AS cor0
----
-46
-49
-62

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

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

query I rowsort
SELECT DISTINCT ( + col0 ) * + col0 AS col0 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT ALL ( - 63 ) * - col1 - col2 AS col1 FROM tab0
----
5385
5651
6110

onlyif mysql # use DIV operator for integer division
query I rowsort label-1584
SELECT - - col2 * - col1 + col2 DIV col0 FROM tab2 AS cor0
----
-1534
-646
-834

skipif mysql # not compatible
query I rowsort label-1584
SELECT - - col2 * - col1 + col2 / col0 FROM tab2 AS cor0
----
-1534
-646
-834

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * col0 col2 FROM tab2 cor0
----
189
2028
3002

query I rowsort
SELECT 89 * col2 - col2 * col1 FROM tab1 cor0
----
3402
4503
7296

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

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

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1590
SELECT CAST( - 69 AS SIGNED ) * + col2 - - ( col0 ) * - col2 AS col0 FROM tab2 AS cor0
----
-2052
-3822
-5624

skipif mysql # not compatible
query I rowsort label-1590
SELECT CAST ( - 69 AS INTEGER ) * + col2 - - ( col0 ) * - col2 AS col0 FROM tab2 AS cor0
----
-2052
-3822
-5624

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

query I rowsort
SELECT ALL - col1 * - col1 + cor0.col0 * 42 AS col2 FROM tab0 AS cor0
----
10879
12019
8404

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

query I rowsort
SELECT - cor1.col1 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to b234798d4706314ba14eaad539d0aa88

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

query I rowsort
SELECT - ( - 44 ) * + col1 AS col2 FROM tab2
----
1364
2596
748

query I rowsort
SELECT ALL - col1 * + ( tab0.col1 + 57 * + col0 ) FROM tab0
----
-125044
-202924
-469924

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

query I rowsort
SELECT + tab1.col0 * - col0 + col0 * - 7 AS col2 FROM tab1
----
-30
-4544
-6960

onlyif mysql # use DIV operator for integer division
query I rowsort label-1600
SELECT DISTINCT - + cor0.col1 * 80 + col2 DIV col2 FROM tab1 AS cor0
----
-1039
-2079
-799

skipif mysql # not compatible
query I rowsort label-1600
SELECT DISTINCT - + cor0.col1 * 80 + col2 / col2 FROM tab1 AS cor0
----
-1039
-2079
-799

onlyif mysql # use DIV operator for integer division
query I rowsort label-1601
SELECT ALL - col0 DIV col1 - 82 AS col0 FROM tab1 AS cor0
----
-82
-88
-88

skipif mysql # not compatible
query I rowsort label-1601
SELECT ALL - col0 / col1 - 82 AS col0 FROM tab1 AS cor0
----
-82
-88
-88

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1602
SELECT col2 * CAST( - col2 AS SIGNED ) * col1 AS col0 FROM tab2 AS cor0
----
-22599
-24548
-39884

skipif mysql # not compatible
query I rowsort label-1602
SELECT col2 * CAST ( - col2 AS INTEGER ) * col1 AS col0 FROM tab2 AS cor0
----
-22599
-24548
-39884

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

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

query I rowsort
SELECT 51 * cor0.col2 FROM tab1 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to 0f79b937d172bb103fcbd54553616dcc

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

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

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

query I rowsort
SELECT DISTINCT col0 * 79 + col1 AS col2 FROM tab2 cor0
----
584
6221
6258

onlyif mysql # use DIV operator for integer division
query I rowsort label-1609
SELECT + col0 DIV col1 - - col2 * - cor0.col0 FROM tab1 AS cor0
----
-162
-3642
-7674

skipif mysql # not compatible
query I rowsort label-1609
SELECT + col0 / col1 - - col2 * - cor0.col0 FROM tab1 AS cor0
----
-162
-3642
-7674

query I rowsort
SELECT ALL + col1 * + col1 + 58 AS col1 FROM tab2 AS cor0
----
1019
347
3539

query I rowsort
SELECT ALL + - cor0.col0 + - col0 FROM tab2 AS cor0
----
-14
-156
-158

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1612
SELECT ALL - cor0.col2 + - CAST( - 80 AS SIGNED ) FROM tab0 AS cor0
----
-2
47
79

skipif mysql # not compatible
query I rowsort label-1612
SELECT ALL - cor0.col2 + - CAST ( - 80 AS INTEGER ) FROM tab0 AS cor0
----
-2
47
79

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

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

query I rowsort
SELECT + col1 + - ( + 91 ) FROM tab2 AS cor0
----
-32
-60
-74

query I rowsort
SELECT DISTINCT + col0 * - ( + col0 ) * - cor0.col0 + 5 AS col1 FROM tab2 AS cor0
----
348
474557
493044

query I rowsort
SELECT DISTINCT - col1 + - ( cor0.col1 ) - + col0 FROM tab2 cor0
----
-113
-196
-69

onlyif mysql # use DIV operator for integer division
query I rowsort label-1617
SELECT col2 * col0 DIV + 58 AS col1 FROM tab2
----
3
34
51

skipif mysql # not compatible
query I rowsort label-1617
SELECT col2 * col0 / + 58 AS col1 FROM tab2
----
3
34
51

query I rowsort
SELECT ALL - col0 * - col0 + col2 AS col1 FROM tab0 AS cor0
----
1226
609
8003

query I rowsort
SELECT DISTINCT col2 + + 79 * col1 - - cor0.col1 AS col1 FROM tab1 AS cor0
----
1136
2134
857

query I rowsort
SELECT - col0 * - 54 - col0 * col2 AS col2 FROM tab2 AS cor0
----
1264
189
2184

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 25 * + cor0.col1 col2 FROM tab1 cor0
----
250
325
650

query I rowsort
SELECT DISTINCT - 74 * + col2 AS col0 FROM tab2 AS cor0
----
-1924
-1998
-2812

query I rowsort
SELECT col2 + ( col0 ) * - tab1.col2 AS col1 FROM tab1
----
-108
-3591
-7584

query I rowsort
SELECT - ( 62 ) FROM tab2, tab2 AS cor0 CROSS JOIN tab1
----
27 values hashing to d2579f9395350eda865ff3a2d38a74f6

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

skipif mysql # not compatible
query I rowsort label-1625
SELECT ( + col2 ) / cor0.col1 + col2 FROM tab1 AS cor0
----
103
56
62

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

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

query I rowsort
SELECT + + col1 + 66 * col1 FROM tab2 AS cor0
----
1139
2077
3953

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

query I rowsort
SELECT + - col1 * col2 + - col0 * - col2 * ( col2 ) FROM tab1 cor0
----
207366
7344
736032

query I rowsort
SELECT + - 94 * col2 + + col1 AS col0 FROM tab1 AS cor0
----
-5050
-5348
-9011

query I rowsort
SELECT + + 62 * col1 AS col1 FROM tab0 AS cor0
----
5332
5642
6014

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

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

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

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

query I rowsort
SELECT col0 * 65 AS col2 FROM tab1 cor0
----
195
4160
5200

query I rowsort
SELECT DISTINCT 54 + + tab0.col1 + + col0 FROM tab0
----
164
186
234

query I rowsort
SELECT - 12 FROM tab1, tab0 AS cor0, tab2 cor1
----
27 values hashing to 3983bffe2adf88cb2efc3be93ee620c0

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

query I rowsort
SELECT DISTINCT + cor0.col1 + 43 FROM tab2, tab0 AS cor0
----
129
134
140

query I rowsort
SELECT col2 + + col0 * - 31 AS col2 FROM tab2
----
-190
-2392
-2411

onlyif mysql # use DIV operator for integer division
query I rowsort label-1642
SELECT DISTINCT - 66 * col1 DIV col2 + 15 DIV + col1 FROM tab0
----
-172
-6402
-73

skipif mysql # not compatible
query I rowsort label-1642
SELECT DISTINCT - 66 * col1 / col2 + 15 / + col1 FROM tab0
----
-172
-6402
-73

query I rowsort
SELECT - tab2.col0 + col1 + col1 AS col2 FROM tab2
----
-45
40
55

query I rowsort
SELECT ALL - tab2.col1 + col2 * + 6 * + col2 FROM tab2
----
3997
4343
8647

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

query I rowsort
SELECT ALL - cor0.col2 + - 78 FROM tab2 AS cor0
----
-104
-105
-116

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + 79 - + col0 * - col0 col1 FROM tab2 AS cor0
----
155
6189
6358

query I rowsort
SELECT DISTINCT + col1 * cor0.col1 + cor0.col0 FROM tab1 AS cor0
----
164
249
679

query I rowsort
SELECT ALL cor0.col1 + + col1 * 59 AS col1 FROM tab2 AS cor0
----
1020
1860
3540

query I rowsort
SELECT DISTINCT + - col1 * + ( col2 ) + col2 - - ( + 97 ) AS col1 FROM tab0 AS cor0
----
-2708
-7283
1

query I rowsort
SELECT ALL cor0.col1 * + 54 + 44 * cor0.col2 FROM tab2 cor0
----
2590
2862
4330

query I rowsort
SELECT + col2 * + 27 + - 85 FROM tab1 AS cor0
----
1373
1454
2507

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

query I rowsort
SELECT + 51 * - ( - col0 ) + col1 + col1 AS col0 FROM tab1
----
205
3284
4106

query I rowsort
SELECT DISTINCT col2 + + col2 - col1 FROM tab2
----
-7
23
59

query I rowsort
SELECT DISTINCT + 97 * col0 AS col2 FROM tab1 AS cor0
----
291
6208
7760

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

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

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

query I rowsort
SELECT - 25 * + col0 * col1 FROM tab0 AS cor0
----
-202475
-51600
-84875

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1662
SELECT - 90 + col1 * + col2 DIV col2 AS col1 FROM tab1 AS cor0
----
-64
-77
-80

skipif mysql # not compatible
query I rowsort label-1662
SELECT - 90 + col1 * + col2 / col2 AS col1 FROM tab1 AS cor0
----
-64
-77
-80

query I rowsort
SELECT ALL - 47 * + col1 FROM tab1 AS cor0
----
-1222
-470
-611

query I rowsort
SELECT - 78 FROM tab1, tab2 cor0, tab2 cor1
----
27 values hashing to c4f3c63f98c3c08f2848f46850a476d4

query I rowsort
SELECT DISTINCT - col1 - - col1 * tab1.col0 AS col2 FROM tab1
----
1027
52
630

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1667
SELECT DISTINCT cor0.col0 / col0 + + col0 + - col2 col0 FROM tab1 AS cor0
----
-15
-50
8

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1669
SELECT ALL - + ( + col2 ) + - col2 * col0 DIV col1 AS col0 FROM tab2 AS cor0
----
-214
-33
-60

skipif mysql # not compatible
query I rowsort label-1669
SELECT ALL - + ( + col2 ) + - col2 * col0 / col1 AS col0 FROM tab2 AS cor0
----
-214
-33
-60

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

query I rowsort
SELECT ALL - col0 + - col2 * + col1 FROM tab1 cor0
----
-1328
-1407
-634

query I rowsort
SELECT ALL 89 + cor0.col2 FROM tab0 AS cor0
----
122
171
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col0 - - 57 * col0 * col1 col2 FROM tab2 AS cor0
----
12418
268398
82792

query I rowsort
SELECT ALL + - 71 + col0 FROM tab2 cor0
----
-64
7
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - col2 - - 99 col0 FROM tab2 AS cor0
----
-1435
-547
-738

query I rowsort
SELECT ALL + + 49 * col0 FROM tab1 AS cor0
----
147
3136
3920

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

query I rowsort
SELECT 14 AS col0 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 409c1790b702540dd9dc067c1965b7c0

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

query I rowsort
SELECT DISTINCT - 87 - - 4 FROM tab0 cor0
----
-83

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

skipif mysql # not compatible
query I rowsort label-1681
SELECT ALL cor0.col2 / col1 + - col0 FROM tab1 AS cor0
----
-1
-59
-73

query I rowsort
SELECT ALL - col2 * 40 * + col0 + + col1 FROM tab0 AS cor0
----
-1303
-291829
-31594

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

query I rowsort
SELECT ALL + + 44 + 46 AS col0 FROM tab1 AS cor0
----
90
90
90

query I rowsort
SELECT - 59 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1e6537c922fa953e0fd2f59430803703

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1688
SELECT DISTINCT + 1 + 44 DIV col1 FROM tab1 AS cor0
----
2
4
5

skipif mysql # not compatible
query I rowsort label-1688
SELECT DISTINCT + 1 + 44 / col1 FROM tab1 AS cor0
----
2
4
5

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

query I rowsort
SELECT + col1 * cor0.col1 + + col1 * + col0 FROM tab2 AS cor0
----
1178
1632
8083

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1691
SELECT DISTINCT - CAST ( + col2 AS INTEGER ) col2 FROM tab1
----
-54
-57
-96

query I rowsort
SELECT col0 + 14 AS col0 FROM tab1
----
17
78
94

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1693
SELECT CAST( NULL AS SIGNED ) - 28 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-1693
SELECT CAST ( NULL AS INTEGER ) - 28 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + - 14 col1 FROM tab0 AS cor0
----
10
21
75

query I rowsort
SELECT - col2 + - 56 * 13 FROM tab0 cor0
----
-729
-761
-810

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

query I rowsort
SELECT 6 * - col2 + - col2 FROM tab2 AS cor0
----
-182
-189
-266

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1701
SELECT - CAST( + col2 AS SIGNED ) + - col1 * + 61 FROM tab2 AS cor0
----
-1075
-1918
-3625

skipif mysql # not compatible
query I rowsort label-1701
SELECT - CAST ( + col2 AS INTEGER ) + - col1 * + 61 FROM tab2 AS cor0
----
-1075
-1918
-3625

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

query I rowsort
SELECT + ( + 72 ) * - col0 AS col0 FROM tab2 AS cor0
----
-504
-5616
-5688

query I rowsort
SELECT 72 AS col1 FROM tab0, tab0 AS cor0, tab2 cor1
----
27 values hashing to 92cc3d5daa550304e96c1542787691c7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1705
SELECT ALL + - col2 * cor0.col0 + CAST( - 96 AS SIGNED ) AS col2 FROM tab0 cor0
----
-131
-7394
-888

skipif mysql # not compatible
query I rowsort label-1705
SELECT ALL + - col2 * cor0.col0 + CAST ( - 96 AS INTEGER ) AS col2 FROM tab0 cor0
----
-131
-7394
-888

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

query I rowsort
SELECT + ( col1 + + 42 * - 55 ) AS col1 FROM tab0
----
-2213
-2219
-2224

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

query I rowsort
SELECT ALL cor0.col0 * 16 AS col1 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 99e649ce62cd6d43c9819f506dba3c86

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

query I rowsort
SELECT ALL tab2.col1 + 35 FROM tab2, tab2 AS cor0
----
9 values hashing to 070cbf3845ecf132d38e340eaf7d30e2

query I rowsort
SELECT + 86 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to ed1a39c2752ca3723602e4a92c54bbc4

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

query I rowsort
SELECT - col1 * + 85 * + cor0.col2 AS col0 FROM tab0 AS cor0
----
-241230
-634270
-8245

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

query I rowsort
SELECT ALL + + cor0.col0 * 43 + 4 + col1 FROM tab2 AS cor0
----
336
3417
3418

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

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

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

query I rowsort
SELECT - ( 26 ) * col0 AS col2 FROM tab0 AS cor0
----
-2314
-624
-910

query I rowsort
SELECT ALL col0 * 64 FROM tab1
----
192
4096
5120

query I rowsort
SELECT ALL - 26 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 47d0574274146de273829785364ada39

query I rowsort
SELECT DISTINCT - - 16 AS col1 FROM tab0 cor0
----
16

query I rowsort
SELECT col1 * - 28 + col1 * col1 FROM tab1
----
-180
-195
-52

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

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

query I rowsort
SELECT + col1 * col0 + 13 FROM tab0 AS cor0
----
2077
3408
8112

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

query I rowsort
SELECT + - 6 * - col0 FROM tab0 AS cor0
----
144
210
534

onlyif mysql # use DIV operator for integer division
query I rowsort label-1728
SELECT ( - col2 ) + 23 DIV col0 AS col0 FROM tab1 AS cor0
----
-47
-57
-96

skipif mysql # not compatible
query I rowsort label-1728
SELECT ( - col2 ) + 23 / col0 AS col0 FROM tab1 AS cor0
----
-47
-57
-96

query I rowsort
SELECT + 30 * 67 FROM tab1 AS cor0
----
2010
2010
2010

query I rowsort
SELECT ALL + cor0.col1 * ( col1 ) * col2 + col1 AS col2 FROM tab1 AS cor0
----
16237
36530
5710

query I rowsort
SELECT DISTINCT - 77 + + col1 AS col2 FROM tab2 AS cor0
----
-18
-46
-60

query I rowsort
SELECT DISTINCT - ( ( - col2 ) ) - 69 * 36 AS col0 FROM tab2 AS cor0
----
-2446
-2457
-2458

query I rowsort
SELECT - + 26 + + 38 * + col1 FROM tab0 cor0
----
3242
3432
3660

query I rowsort
SELECT ( col2 ) + cor0.col2 * col2 FROM tab0 AS cor0
----
1122
2
6806

onlyif mysql # use DIV operator for integer division
query I rowsort label-1735
SELECT ALL tab2.col1 DIV + col1 - - col1 AS col1 FROM tab2
----
18
32
60

skipif mysql # not compatible
query I rowsort label-1735
SELECT ALL tab2.col1 / + col1 - - col1 AS col1 FROM tab2
----
18
32
60

query I rowsort
SELECT ALL + col1 - 54 * + tab0.col0 AS col2 FROM tab0
----
-1210
-1793
-4715

query I rowsort
SELECT ( - 55 ) * - tab1.col2 AS col1 FROM tab1
----
2970
3135
5280

query I rowsort
SELECT ALL tab2.col0 + 99 FROM tab2
----
106
177
178

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

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

skipif mysql # not compatible
query I rowsort label-1740
SELECT DISTINCT - CAST ( + col2 AS INTEGER ) * col2 FROM tab0 AS cor0
----
-1
-1089
-6724

onlyif mysql # use DIV operator for integer division
query I rowsort label-1741
SELECT - cor0.col0 DIV col0 - + col0 FROM tab2 AS cor0
----
-79
-8
-80

skipif mysql # not compatible
query I rowsort label-1741
SELECT - cor0.col0 / col0 - + col0 FROM tab2 AS cor0
----
-79
-8
-80

query I rowsort
SELECT ALL - col1 * - col1 + - col0 * ( col0 ) AS col0 FROM tab1 AS cor0
----
-3996
-6231
667

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

query I rowsort
SELECT DISTINCT + - 53 * col0 AS col2 FROM tab2 AS cor0
----
-371
-4134
-4187

query I rowsort
SELECT DISTINCT - ( col0 ) - col2 AS col1 FROM tab0 AS cor0
----
-171
-36
-57

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

query I rowsort
SELECT ALL 44 * col0 + col0 * - ( col0 ) * cor0.col2 AS col0 FROM tab2 AS cor0
----
-1015
-154752
-233682

onlyif mysql # use DIV operator for integer division
query I rowsort label-1748
SELECT + tab1.col0 DIV 43 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 43a387ef4ba85927dc3d9d573afc12c9

skipif mysql # not compatible
query I rowsort label-1748
SELECT + tab1.col0 / 43 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 43a387ef4ba85927dc3d9d573afc12c9

query I rowsort
SELECT ALL + col1 - - 37 * col0 * - col1 AS col0 FROM tab2 cor0
----
-170215
-49674
-7998

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

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

query I rowsort
SELECT ALL - - col2 + col0 - - col1 AS col1 FROM tab1 AS cor0
----
131
189
83

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - 28 * + col1 col0 FROM tab1 AS cor0
----
-17920
-2184
-29120

query I rowsort
SELECT ALL col1 + - col1 * cor0.col0 + col0 FROM tab1 AS cor0
----
-49
-566
-947

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

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

query I rowsort
SELECT ALL - col0 * 6 FROM tab0 cor0
----
-144
-210
-534

query I rowsort
SELECT DISTINCT + - col1 + + ( 93 ) * + col2 FROM tab1 AS cor0
----
4996
5291
8915

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

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

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

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

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

query I rowsort
SELECT DISTINCT + col2 * 77 FROM tab1 AS cor0
----
4158
4389
7392

query I rowsort
SELECT ALL - + ( col2 ) + col0 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT ALL + 24 FROM tab2, tab0 AS cor0
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef

query I rowsort
SELECT + + 99 + - 54 * col0 FROM tab0 cor0
----
-1197
-1791
-4707

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

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

query I rowsort
SELECT ALL - ( cor0.col1 ) + - cor0.col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 4a21fff066040168fa2a1bf702533e5d

query I rowsort
SELECT ALL 62 + - cor0.col0 FROM tab0 AS cor0
----
-27
27
38

query I rowsort
SELECT DISTINCT + 8 * col2 FROM tab2 AS cor0
----
208
216
304

query I rowsort
SELECT + 50 + + col2 AS col1 FROM tab0 cor0
----
132
51
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-1774
SELECT DISTINCT col2 + - col2 DIV col2 FROM tab0 AS cor0
----
0
32
81

skipif mysql # not compatible
query I rowsort label-1774
SELECT DISTINCT col2 + - col2 / col2 FROM tab0 AS cor0
----
0
32
81

query I rowsort
SELECT - + ( col1 ) + + 60 FROM tab0 cor0
----
-26
-31
-37

onlyif mysql # use DIV operator for integer division
query I rowsort label-1776
SELECT + col2 * col1 DIV - 83 FROM tab0 AS cor0
----
-1
-34
-89

skipif mysql # not compatible
query I rowsort label-1776
SELECT + col2 * col1 / - 83 FROM tab0 AS cor0
----
-1
-34
-89

query I rowsort
SELECT DISTINCT + 76 * col2 FROM tab0 AS cor0
----
2508
6232
76

query I rowsort
SELECT ALL cor0.col0 + + col1 AS col1 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT - col0 * col0 + - col0 * - tab0.col1 AS col0 FROM tab0
----
1488
178
2170

onlyif mysql # use DIV operator for integer division
query I rowsort label-1780
SELECT ALL - 94 DIV col0 FROM tab0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-1780
SELECT ALL - 94 / col0 FROM tab0
----
-1
-2
-3

query I rowsort
SELECT DISTINCT - col1 + - ( col1 ) + col1 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT ALL - - col0 * 80 FROM tab0 AS cor0
----
1920
2800
7120

query I rowsort
SELECT DISTINCT + 64 - 31 AS col1 FROM tab0, tab2 cor0, tab2 AS cor1
----
33

query I rowsort
SELECT ALL cor0.col2 * + cor0.col2 + cor0.col1 * cor0.col0 + - col0 AS col1 FROM tab1 AS cor0
----
10176
2991
3825

query I rowsort
SELECT - tab2.col1 + cor0.col2 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 8d4f084d3560870b9fbbdc5acc1f3ed3

query I rowsort
SELECT ALL col2 * - 16 AS col0 FROM tab2
----
-416
-432
-608

onlyif mysql # use DIV operator for integer division
query I rowsort label-1787
SELECT ALL col1 DIV ( + col2 ) AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1787
SELECT ALL col1 / ( + col2 ) AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col2 * ( 82 ) AS col1 FROM tab2 AS cor0
----
2132
2214
3116

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 25 + col2 col0 FROM tab1 AS cor0
----
121
79
82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1790
SELECT - + CAST( + col1 AS SIGNED ) * - col1 AS col1 FROM tab1 AS cor0
----
100
169
676

skipif mysql # not compatible
query I rowsort label-1790
SELECT - + CAST ( + col1 AS INTEGER ) * - col1 AS col1 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT + + ( - 35 ) FROM tab2 AS cor0
----
-35
-35
-35

query I rowsort
SELECT DISTINCT + 49 + - col2 FROM tab1 AS cor0
----
-47
-5
-8

query I rowsort
SELECT - - 2 * col1 AS col0 FROM tab0 cor0
----
172
182
194

onlyif mysql # use DIV operator for integer division
query I rowsort label-1794
SELECT ALL - col0 DIV - CAST( - col1 AS SIGNED ) + col0 AS col1 FROM tab1
----
3
58
74

skipif mysql # not compatible
query I rowsort label-1794
SELECT ALL - col0 / - CAST ( - col1 AS INTEGER ) + col0 AS col1 FROM tab1
----
3
58
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * 52 + - col1 * cor0.col0 col0 FROM tab1 cor0
----
-120
-364
1274

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1796
SELECT DISTINCT col2 * CAST( - 92 * + col1 + ( 24 ) AS SIGNED ) AS col2 FROM tab1
----
-112512
-127872
-51072

skipif mysql # not compatible
query I rowsort label-1796
SELECT DISTINCT col2 * CAST ( - 92 * + col1 + ( 24 ) AS INTEGER ) AS col2 FROM tab1
----
-112512
-127872
-51072

query I rowsort
SELECT - ( - cor0.col1 ) + + col2 AS col1 FROM tab1 cor0
----
109
67
80

query I rowsort
SELECT - + col1 * + cor0.col1 + + col1 FROM tab2 AS cor0
----
-272
-3422
-930

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1799
SELECT DISTINCT + CAST( col2 AS SIGNED ) * col0 + ( 24 ) FROM tab0
----
59
7322
816

skipif mysql # not compatible
query I rowsort label-1799
SELECT DISTINCT + CAST ( col2 AS INTEGER ) * col0 + ( 24 ) FROM tab0
----
59
7322
816

query I rowsort
SELECT ALL 59 + - 2 * tab1.col2 * - col0 + col2 AS col1 FROM tab1
----
15515
437
7412

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1801
SELECT DISTINCT CAST( - 27 AS SIGNED ) + - col2 FROM tab1
----
-123
-81
-84

skipif mysql # not compatible
query I rowsort label-1801
SELECT DISTINCT CAST ( - 27 AS INTEGER ) + - col2 FROM tab1
----
-123
-81
-84

query I rowsort
SELECT ALL - col0 * - 87 AS col0 FROM tab0 AS cor0
----
2088
3045
7743

query I rowsort
SELECT - 37 * 21 + col0 AS col2 FROM tab0 cor0
----
-688
-742
-753

onlyif mysql # use DIV operator for integer division
query I rowsort label-1804
SELECT - 71 DIV ( col0 + col1 ) FROM tab1 AS cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-1804
SELECT - 71 / ( col0 + col1 ) FROM tab1 AS cor0
----
-2
0
0

query I rowsort
SELECT DISTINCT + 32 AS col1 FROM tab2, tab0 AS cor0, tab0 AS cor1, tab0 AS cor2
----
32

onlyif mysql # use DIV operator for integer division
query I rowsort label-1806
SELECT - ( col0 ) DIV + col1 FROM tab2 AS cor0
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-1806
SELECT - ( col0 ) / + col1 FROM tab2 AS cor0
----
-1
-4
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-1807
SELECT 28 DIV col1 AS col2 FROM tab1 AS cor0
----
1
2
2

skipif mysql # not compatible
query I rowsort label-1807
SELECT 28 / col1 AS col2 FROM tab1 AS cor0
----
1
2
2

query I rowsort
SELECT DISTINCT - 39 + col1 AS col2 FROM tab1 AS cor0
----
-13
-26
-29

query I rowsort
SELECT + - col0 * col2 + + 91 AS col1 FROM tab0 AS cor0
----
-701
-7207
56

query I rowsort
SELECT + col0 * + ( + ( cor0.col0 - - col1 ) ) + col2 + col0 AS col2 FROM tab2 AS cor0
----
10790
300
7701

onlyif mysql # use DIV operator for integer division
query I rowsort label-1811
SELECT col2 DIV cor0.col0 + col2 * col1 * + col1 AS col2 FROM tab2 AS cor0
----
10982
25950
90506

skipif mysql # not compatible
query I rowsort label-1811
SELECT col2 / cor0.col0 + col2 * col1 * + col1 AS col2 FROM tab2 AS cor0
----
10982
25950
90506

query I rowsort
SELECT DISTINCT - 33 + col2 FROM tab2
----
-6
-7
5

query I rowsort
SELECT col0 * + 9 AS col1 FROM tab0 AS cor0
----
216
315
801

query I rowsort
SELECT DISTINCT - col0 * ( col2 ) FROM tab0 AS cor0
----
-35
-7298
-792

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1815
SELECT ALL cor0.col1 * CAST( 87 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
7482
7917
8439

skipif mysql # not compatible
query I rowsort label-1815
SELECT ALL cor0.col1 * CAST ( 87 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
7482
7917
8439

query I rowsort
SELECT col1 * 92 + + col1 FROM tab0 AS cor0
----
7998
8463
9021

query I rowsort
SELECT DISTINCT + ( - col2 ) + + col0 * + 46 * - col1 AS col2 FROM tab2 AS cor0
----
-10009
-211718
-61816

query I rowsort
SELECT DISTINCT + 41 AS col1 FROM tab2
----
41

onlyif mysql # use DIV operator for integer division
query I rowsort label-1819
SELECT col2 DIV col1 + + tab1.col1 FROM tab1
----
15
20
28

skipif mysql # not compatible
query I rowsort label-1819
SELECT col2 / col1 + + tab1.col1 FROM tab1
----
15
20
28

query I rowsort
SELECT ALL - + 58 AS col1 FROM tab2 AS cor0
----
-58
-58
-58

query I rowsort
SELECT DISTINCT - 12 * + cor0.col0 + col2 * - col1 AS col2 FROM tab0 AS cor0
----
-3126
-517
-8530

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + col1 ) * col1 * 13 col1 FROM tab2 AS cor0
----
12493
3757
45253

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + - col2 col0 FROM tab2 AS cor0
----
-21
33
4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1824
SELECT ALL col1 * + col0 * CAST( 45 * + col1 + col0 AS SIGNED ) FROM tab2 AS cor0
----
1133492
12577266
304234

skipif mysql # not compatible
query I rowsort label-1824
SELECT ALL col1 * + col0 * CAST ( 45 * + col1 + col0 AS INTEGER ) FROM tab2 AS cor0
----
1133492
12577266
304234

query I rowsort
SELECT + 72 * col0 FROM tab0 cor0
----
1728
2520
6408

onlyif mysql # use DIV operator for integer division
query I rowsort label-1826
SELECT + + col1 - 51 DIV - col1 AS col0 FROM tab2 AS cor0
----
20
32
59

skipif mysql # not compatible
query I rowsort label-1826
SELECT + + col1 - 51 / - col1 AS col0 FROM tab2 AS cor0
----
20
32
59

query I rowsort
SELECT col1 * - col0 + col0 AS col1 FROM tab0 AS cor0
----
-2040
-3360
-8010

onlyif mysql # use DIV operator for integer division
query I rowsort label-1828
SELECT ALL - col2 DIV + 46 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1828
SELECT ALL - col2 / + 46 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - col0 * 17 FROM tab1 AS cor0
----
-1088
-1360
-51

query I rowsort
SELECT DISTINCT col1 * + 85 FROM tab2 AS cor0
----
1445
2635
5015

query I rowsort
SELECT + col1 - col1 * 99 FROM tab2 cor0
----
-1666
-3038
-5782

query I rowsort
SELECT + cor0.col0 - + 30 * - col1 AS col0 FROM tab1 AS cor0
----
364
470
783

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1833
SELECT - col2 * CAST( col1 AS SIGNED ) + + col1 * col0 AS col2 FROM tab0 AS cor0
----
-774
3298
637

skipif mysql # not compatible
query I rowsort label-1833
SELECT - col2 * CAST ( col1 AS INTEGER ) + + col1 * col0 AS col2 FROM tab0 AS cor0
----
-774
3298
637

query I rowsort
SELECT + + ( + 54 ) FROM tab1 AS cor0
----
54
54
54

query I rowsort
SELECT DISTINCT col2 + + col0 * col0 FROM tab2 AS cor0
----
6110
6279
76

onlyif mysql # use DIV operator for integer division
query I rowsort label-1836
SELECT DISTINCT - + ( col2 ) * col0 * col0 + - col1 + col2 DIV col0 AS col2 FROM tab1 AS cor0
----
-233482
-494
-614412

skipif mysql # not compatible
query I rowsort label-1836
SELECT DISTINCT - + ( col2 ) * col0 * col0 + - col1 + col2 / col0 AS col2 FROM tab1 AS cor0
----
-233482
-494
-614412

query I rowsort
SELECT DISTINCT ( 61 ) + - col2 AS col2 FROM tab1 AS cor0
----
-35
4
7

query I rowsort
SELECT DISTINCT - col0 + cor0.col2 * col1 AS col1 FROM tab2 AS cor0
----
1456
567
830

query I rowsort
SELECT DISTINCT - 68 + - ( + col2 ) AS col0 FROM tab0 AS cor0
----
-101
-150
-69

query I rowsort
SELECT ALL - col0 + - col2 * - col1 * + col2 AS col0 FROM tab1 AS cor0
----
119728
32426
75813

query I rowsort
SELECT + col2 - + tab1.col1 AS col1 FROM tab1
----
28
47
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * - ( 23 ) + col0 col2 FROM tab2
----
1435
470
720

query I rowsort
SELECT - col0 * + ( - tab2.col2 ) + + col2 * + col1 AS col1 FROM tab2
----
1026
3562
3648

query I rowsort
SELECT - - ( + cor0.col2 ) AS col2 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT DISTINCT ( col1 + col2 ) AS col2 FROM tab2
----
55
58
85

query I rowsort
SELECT - ( + col0 ) * col0 FROM tab0 cor0
----
-1225
-576
-7921

query I rowsort
SELECT ALL + + col2 * cor0.col1 * + col0 AS col0 FROM tab2 AS cor0
----
119652
51034
5859

query I rowsort
SELECT ALL ( cor0.col2 ) * col1 + 32 FROM tab0 AS cor0
----
129
2870
7494

query I rowsort
SELECT - + cor0.col1 * 26 + + col2 * + 90 FROM tab2 AS cor0
----
1624
2978
806

query I rowsort
SELECT DISTINCT col0 * + 61 FROM tab0 AS cor0
----
1464
2135
5429

query I rowsort
SELECT DISTINCT + 68 * col1 FROM tab2
----
1156
2108
4012

query I rowsort
SELECT ( 20 * col0 ) + col0 FROM tab0
----
1869
504
735

onlyif mysql # use DIV operator for integer division
query I rowsort label-1853
SELECT col0 + col0 DIV + col2 AS col0 FROM tab0 AS cor0
----
24
70
90

skipif mysql # not compatible
query I rowsort label-1853
SELECT col0 + col0 / + col2 AS col0 FROM tab0 AS cor0
----
24
70
90

query I rowsort
SELECT col1 * + col0 * col2 AS col0 FROM tab0 AS cor0
----
3395
664118
68112

query I rowsort
SELECT + 70 + - cor0.col0 * + cor0.col0 FROM tab0 AS cor0
----
-1155
-506
-7851

query I rowsort
SELECT DISTINCT cor0.col1 * col2 + col1 FROM tab1 AS cor0
----
1261
1430
580

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 34 + col2 col2 FROM tab0 AS cor0
----
116
35
67

query I rowsort
SELECT ALL ( - cor0.col1 ) + col1 * + col1 * cor0.col2 FROM tab1 cor0
----
16211
36478
5690

query I rowsort
SELECT DISTINCT + - 98 + + col0 AS col1 FROM tab0 AS cor0
----
-63
-74
-9

query I rowsort
SELECT ALL - - col1 * col1 + col2 + cor0.col0 AS col1 FROM tab0 AS cor0
----
7453
8452
9445

query I rowsort
SELECT + cor0.col2 + - cor0.col0 * - col1 AS col2 FROM tab1 AS cor0
----
1136
132
697

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + - 34 + col2 col1 FROM tab0
----
139
64
85

query I rowsort
SELECT ALL - col0 * + col1 + - col1 * + col1 * col1 + col1 * col2 FROM tab2
----
-208447
-29171
-5610

query I rowsort
SELECT + + col0 * - ( 72 ) + col1 + col0 FROM tab2 AS cor0
----
-466
-5479
-5592

query I rowsort
SELECT ALL cor0.col1 * - col0 AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-1866
SELECT DISTINCT + cor0.col2 DIV - col1 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-1866
SELECT DISTINCT + cor0.col2 / - col1 FROM tab0 cor0
----
0

query I rowsort
SELECT - - col2 * + 59 + 17 + + col1 AS col1 FROM tab0 AS cor0
----
173
2050
4946

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1868
SELECT DISTINCT col0 * CAST( col1 * col2 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
3395
664118
68112

skipif mysql # not compatible
query I rowsort label-1868
SELECT DISTINCT col0 * CAST ( col1 * col2 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
3395
664118
68112

onlyif mysql # use DIV operator for integer division
query I rowsort label-1869
SELECT col2 DIV - tab1.col1 FROM tab1
----
-2
-5
-7

skipif mysql # not compatible
query I rowsort label-1869
SELECT col2 / - tab1.col1 FROM tab1
----
-2
-5
-7

query I rowsort
SELECT DISTINCT - col2 * col1 + + col1 * - col2 FROM tab2 AS cor0
----
-1292
-1674
-3068

query I rowsort
SELECT DISTINCT + - col2 - + ( + col1 ) FROM tab2 AS cor0
----
-55
-58
-85

query I rowsort
SELECT ALL - col2 + - ( + col2 ) AS col1 FROM tab2 AS cor0
----
-52
-54
-76

query I rowsort
SELECT DISTINCT ( col0 ) * col1 * + col2 FROM tab2 AS cor0
----
119652
51034
5859

query I rowsort
SELECT DISTINCT ( + col2 * col0 ) AS col1 FROM tab1
----
162
3648
7680

query I rowsort
SELECT - 59 + col2 AS col2 FROM tab0 AS cor0
----
-26
-58
23

query I rowsort
SELECT DISTINCT col0 * col2 + col2 FROM tab0 cor0
----
36
7380
825

query I rowsort
SELECT ALL col0 + col2 * col1 * col0 AS col2 FROM tab0 AS cor0
----
3430
664207
68136

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col2 ) * col1 col2 FROM tab2 cor0
----
-1534
-646
-837

query I rowsort
SELECT ALL + - 36 AS col1 FROM tab0 AS cor0
----
-36
-36
-36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 36 + col1 col0 FROM tab0 AS cor0
----
122
127
133

query I rowsort
SELECT col1 + + ( 36 ) AS col1 FROM tab2 AS cor0
----
53
67
95

onlyif mysql # use DIV operator for integer division
query I rowsort label-1882
SELECT DISTINCT - cor0.col1 DIV col0 AS col2 FROM tab1 AS cor0
----
-8
0

skipif mysql # not compatible
query I rowsort label-1882
SELECT DISTINCT - cor0.col1 / col0 AS col2 FROM tab1 AS cor0
----
-8
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-1883
SELECT - - 50 DIV col1 col1 FROM tab1 AS cor0
----
1
3
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1883
SELECT - - 50 / col1 col1 FROM tab1 AS cor0
----
1
3
5

query I rowsort
SELECT ALL - - col0 * + col1 + col0 AS col2 FROM tab0 cor0
----
2088
3430
8188

onlyif mysql # use DIV operator for integer division
query I rowsort label-1885
SELECT ALL - col0 + 41 DIV col0 FROM tab2
----
-2
-78
-79

skipif mysql # not compatible
query I rowsort label-1885
SELECT ALL - col0 + 41 / col0 FROM tab2
----
-2
-78
-79

onlyif mysql # use DIV operator for integer division
query I rowsort label-1886
SELECT + + cor0.col2 + + col1 DIV ( + 24 ) AS col0 FROM tab1 AS cor0
----
55
57
96

skipif mysql # not compatible
query I rowsort label-1886
SELECT + + cor0.col2 + + col1 / ( + 24 ) AS col0 FROM tab1 AS cor0
----
55
57
96

query I rowsort
SELECT - col0 - + col1 * col1 FROM tab2 AS cor0
----
-3559
-368
-968

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1888
SELECT ALL - cor0.col2 * + col1 + CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1888
SELECT ALL - cor0.col2 * + col1 + CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + col0 * col0 + - col2 - - ( + col0 ) * + 78 AS col2 FROM tab1 AS cor0
----
12544
189
9031

query I rowsort
SELECT ALL - + col1 * - 4 AS col0 FROM tab0 AS cor0
----
344
364
388

onlyif mysql # use DIV operator for integer division
query I rowsort label-1891
SELECT col0 * - col0 + - 86 + col2 DIV tab0.col2 FROM tab0
----
-1310
-661
-8006

skipif mysql # not compatible
query I rowsort label-1891
SELECT col0 * - col0 + - 86 + col2 / tab0.col2 FROM tab0
----
-1310
-661
-8006

query I rowsort
SELECT ALL + 53 + + 62 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8ea29c11e2d920a09e8656cafe5a9642

onlyif mysql # use DIV operator for integer division
query I rowsort label-1893
SELECT ALL col0 DIV 9 + col0 FROM tab2
----
7
86
87

skipif mysql # not compatible
query I rowsort label-1893
SELECT ALL col0 / 9 + col0 FROM tab2
----
7
86
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col0 * - ( col0 + ( - col2 ) ) * - col1 col0 FROM tab0
----
-18552
115465
56782

query I rowsort
SELECT - col0 - 60 * - col2 FROM tab0
----
1956
25
4831

query I rowsort
SELECT DISTINCT + - col0 * + 42 AS col2 FROM tab1 AS cor0
----
-126
-2688
-3360

query I rowsort
SELECT ALL - - col0 + cor0.col0 + col1 AS col2 FROM tab2 AS cor0
----
175
215
45

query I rowsort
SELECT ALL col2 * + 59 * col1 FROM tab2
----
38114
49383
90506

query I rowsort
SELECT ALL + 19 * col0 AS col2 FROM tab0
----
1691
456
665

onlyif mysql # use DIV operator for integer division
query I rowsort label-1900
SELECT ALL tab1.col2 DIV + 72 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-1900
SELECT ALL tab1.col2 / + 72 FROM tab1
----
0
0
1

query I rowsort
SELECT DISTINCT 75 AS col0 FROM tab1, tab0 AS cor0
----
75

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1902
SELECT - CAST( + col2 AS SIGNED ) * - col2 AS col0 FROM tab2 AS cor0
----
1444
676
729

skipif mysql # not compatible
query I rowsort label-1902
SELECT - CAST ( + col2 AS INTEGER ) * - col2 AS col0 FROM tab2 AS cor0
----
1444
676
729

onlyif mysql # use DIV operator for integer division
query I rowsort label-1903
SELECT - 79 DIV + col0 FROM tab1 cor0
----
-1
-26
0

skipif mysql # not compatible
query I rowsort label-1903
SELECT - 79 / + col0 FROM tab1 cor0
----
-1
-26
0

query I rowsort
SELECT col1 * + col1 - 13 FROM tab2 AS cor0
----
276
3468
948

query I rowsort
SELECT + col2 + - col2 * + col1 AS col2 FROM tab2 cor0
----
-1508
-608
-810

query I rowsort
SELECT DISTINCT + ( - col2 + col0 ) * col1 AS col1 FROM tab0
----
-774
3298
637

query I rowsort
SELECT ALL + 11 FROM tab0, tab0 AS cor0
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00

query I rowsort
SELECT ALL col1 * + col1 AS col1 FROM tab0 cor0
----
7396
8281
9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 94 + - col0 col1 FROM tab0 AS cor0
----
5
59
70

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1910
SELECT DISTINCT CAST( NULL AS DECIMAL ) * col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1910
SELECT DISTINCT CAST ( NULL AS REAL ) * col1 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 11 col1 FROM tab2
----
-11
-11
-11

onlyif mysql # use DIV operator for integer division
query I rowsort label-1912
SELECT ALL col0 DIV + 7 AS col1 FROM tab2
----
1
11
11

skipif mysql # not compatible
query I rowsort label-1912
SELECT ALL col0 / + 7 AS col1 FROM tab2
----
1
11
11

query I rowsort
SELECT ALL ( - 9 ) * col1 AS col1 FROM tab0
----
-774
-819
-873

query I rowsort
SELECT ALL - 63 * + col2 AS col1 FROM tab1
----
-3402
-3591
-6048

query I rowsort
SELECT ALL - col1 + + col1 * col1 FROM tab1 AS cor0
----
156
650
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 99 * 3 col1 FROM tab1 AS cor0
----
297
297
297

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1917
SELECT ALL + CAST( col0 AS SIGNED ) + + col1 * + ( col0 + + col0 ) FROM tab2 AS cor0
----
2765
441
9282

skipif mysql # not compatible
query I rowsort label-1917
SELECT ALL + CAST ( col0 AS INTEGER ) + + col1 * + ( col0 + + col0 ) FROM tab2 AS cor0
----
2765
441
9282

query I rowsort
SELECT - - 95 * col2 FROM tab0 AS cor0
----
3135
7790
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 95 * col1 * col2 col1 FROM tab1 AS cor0
----
118560
133380
54150

query I rowsort
SELECT ALL - 51 * cor0.col1 FROM tab2 AS cor0
----
-1581
-3009
-867

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1921
SELECT DISTINCT - 2 * + cor0.col0 * CAST( NULL AS SIGNED ) + - 0 * + cor0.col1 * - 29 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1921
SELECT DISTINCT - 2 * + cor0.col0 * CAST ( NULL AS INTEGER ) + - 0 * + cor0.col1 * - 29 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT 13 + - col1 FROM tab0 cor0
----
-73
-78
-84

query I rowsort
SELECT - ( + col1 ) + 24 * 44 FROM tab2 cor0
----
1025
1039
997

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + + col0 col1 FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT col2 * col2 * - col2 FROM tab2 AS cor0
----
-17576
-19683
-54872

query I rowsort
SELECT - 8 * - col0 AS col0 FROM tab2 cor0
----
56
624
632

query I rowsort
SELECT ALL - 42 * + col0 AS col0 FROM tab1 AS cor0
----
-126
-2688
-3360

query I rowsort
SELECT DISTINCT + 30 * col2 AS col2 FROM tab1
----
1620
1710
2880

query I rowsort
SELECT - 91 - col0 FROM tab2
----
-169
-170
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 87 - - 90 col0 FROM tab0
----
177
177
177

onlyif mysql # use DIV operator for integer division
query I rowsort label-1931
SELECT ALL - col1 + cor0.col1 DIV col0 + - col0 FROM tab2 AS cor0
----
-137
-34
-96

skipif mysql # not compatible
query I rowsort label-1931
SELECT ALL - col1 + cor0.col1 / col0 + - col0 FROM tab2 AS cor0
----
-137
-34
-96

query I rowsort
SELECT DISTINCT col1 * cor0.col1 + + ( col0 ) FROM tab2 AS cor0
----
3559
368
968

query I rowsort
SELECT DISTINCT col1 + - cor0.col1 * + col2 FROM tab1 AS cor0
----
-1235
-1378
-560

query I rowsort
SELECT ALL + col2 - - cor0.col0 AS col1 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT ALL + - ( col1 ) * - 45 + col0 AS col0 FROM tab2 AS cor0
----
1402
2733
844

query I rowsort
SELECT ALL - col1 * + col0 + col0 * cor0.col1 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - + col1 * col1 * - col0 - - col2 AS col2 FROM tab2 AS cor0
----
22869
271544
6754

query I rowsort
SELECT DISTINCT - col1 + 6 FROM tab1 AS cor0
----
-20
-4
-7

onlyif mysql # use DIV operator for integer division
query I rowsort label-1939
SELECT + + col0 DIV 94 + 24 AS col2 FROM tab0 AS cor0
----
24
24
24

skipif mysql # not compatible
query I rowsort label-1939
SELECT + + col0 / 94 + 24 AS col2 FROM tab0 AS cor0
----
24
24
24

query I rowsort
SELECT col1 * 65 + - 29 * col1 AS col1 FROM tab0 AS cor0
----
3096
3276
3492

onlyif mysql # use DIV operator for integer division
query I rowsort label-1941
SELECT + col1 + col1 * col1 + col1 DIV - 67 FROM tab1 AS cor0
----
110
182
702

skipif mysql # not compatible
query I rowsort label-1941
SELECT + col1 + col1 * col1 + col1 / - 67 FROM tab1 AS cor0
----
110
182
702

query I rowsort
SELECT DISTINCT cor0.col1 + 84 AS col0 FROM tab1 cor0
----
110
94
97

query I rowsort
SELECT DISTINCT + col1 + + 17 AS col0 FROM tab1 cor0
----
27
30
43

onlyif mysql # use DIV operator for integer division
query I rowsort label-1944
SELECT + col1 * 27 DIV - col2 col1 FROM tab0 cor0
----
-2619
-29
-70

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1944
SELECT + col1 * 27 / - col2 col1 FROM tab0 cor0
----
-2619
-29
-70

query I rowsort
SELECT - col0 * col0 + 74 - + col2 FROM tab1 AS cor0
----
-4079
-6422
11

query I rowsort
SELECT col2 + col0 - - 50 * col2 AS col1 FROM tab0 cor0
----
1707
4271
86

query I rowsort
SELECT DISTINCT - col1 + + col2 + col1 * col2 AS col2 FROM tab1 cor0
----
1331
1432
617

query I rowsort
SELECT ALL - - col1 + + ( cor0.col2 ) * - col0 AS col1 FROM tab1 AS cor0
----
-136
-3638
-7667

onlyif mysql # use DIV operator for integer division
query I rowsort label-1949
SELECT ( - col0 ) DIV + col2 AS col2 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-1949
SELECT ( - col0 ) / + col2 AS col2 FROM tab1 AS cor0
----
-1
0
0

query I rowsort
SELECT ALL cor2.col2 AS col0 FROM tab0, tab0 AS cor0, tab0 AS cor1, tab2 AS cor2
----
81 values hashing to c4e6b1f1d28e731664a15a6f7cda4da9

query I rowsort
SELECT 60 FROM tab1 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab2 cor2
----
81 values hashing to 1ef27a1d2784b3ab642571630db70349

query I rowsort
SELECT - cor1.col0 * + cor1.col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 9b23e5e74ef3405a4dbf05cceb18c8a8

query I rowsort
SELECT DISTINCT + col0 * tab2.col0 * col2 + - col0 AS col1 FROM tab2
----
1316
158106
237079

query I rowsort
SELECT ALL - col2 + 69 AS col2 FROM tab1
----
-27
12
15

query I rowsort
SELECT DISTINCT + 85 + col1 * col2 FROM tab2 AS cor0
----
1619
731
922

query I rowsort
SELECT + ( + 4 ) + cor0.col0 AS col1 FROM tab0 AS cor0
----
28
39
93

query I rowsort
SELECT - ( - col1 ) + col2 * + 56 FROM tab0 AS cor0
----
153
1934
4683

query I rowsort
SELECT ALL + ( col1 ) * col2 - + 57 FROM tab1 AS cor0
----
1191
1347
513

query I rowsort
SELECT - col0 * + cor0.col2 + - col0 AS col0 FROM tab1 AS cor0
----
-165
-3712
-7760

query I rowsort
SELECT + cor0.col1 * col1 + + col2 * ( - 37 ) * - col2 FROM tab0 AS cor0
----
257069
47689
9446

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 62 col1 FROM tab1 AS cor0
----
62

query I rowsort
SELECT col1 + 49 * 68 * col1 + col1 AS col0 FROM tab1
----
33340
43342
86684

query I rowsort
SELECT - col1 * + col0 * + col1 + - col0 AS col1 FROM tab1
----
-13600
-2031
-6464

query I rowsort
SELECT - - ( + col1 ) AS col1 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT DISTINCT col0 * - col0 + col2 AS col2 FROM tab2
----
-22
-6058
-6203

onlyif mysql # use DIV operator for integer division
query I rowsort label-1966
SELECT DISTINCT + tab2.col0 DIV CAST( 99 AS SIGNED ) + - col0 col2 FROM tab2
----
-7
-78
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1966
SELECT DISTINCT + tab2.col0 / CAST ( 99 AS INTEGER ) + - col0 col2 FROM tab2
----
-7
-78
-79

query I rowsort
SELECT tab2.col0 * + col2 - - col1 FROM tab2
----
2087
220
3019

query I rowsort
SELECT DISTINCT ( + 24 ) AS col2 FROM tab1
----
24

query I rowsort
SELECT - 54 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 4ecdb0f1b85f0d4fdc3a826efd9f2342

query I rowsort
SELECT + - col1 * col1 + + 61 AS col0 FROM tab1 AS cor0
----
-108
-39
-615

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1971
SELECT DISTINCT CAST( - col0 + - tab2.col0 AS SIGNED ) FROM tab2
----
-14
-156
-158

skipif mysql # not compatible
query I rowsort label-1971
SELECT DISTINCT CAST ( - col0 + - tab2.col0 AS INTEGER ) FROM tab2
----
-14
-156
-158

query I rowsort
SELECT DISTINCT + col0 + ( col1 + 98 ) * + col2 FROM tab2 AS cor0
----
3490
4160
4449

query I rowsort
SELECT - - col1 + 98 AS col2 FROM tab0 AS cor0
----
184
189
195

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1974
SELECT DISTINCT + CAST( 54 AS SIGNED ) + - col1 AS col0 FROM tab0 AS cor0
----
-32
-37
-43

skipif mysql # not compatible
query I rowsort label-1974
SELECT DISTINCT + CAST ( 54 AS INTEGER ) + - col1 AS col0 FROM tab0 AS cor0
----
-32
-37
-43

query I rowsort
SELECT DISTINCT 62 AS col2 FROM tab2, tab0 AS cor0
----
62

query I rowsort
SELECT - + 77 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3a24155cb91ceff1e67bb51c07b72107

query I rowsort
SELECT 64 + col2 * - col1 * tab2.col1 AS col2 FROM tab2
----
-10918
-25883
-90442

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col1 * - col2 col0 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT - - cor0.col1 * ( col1 ) - + col1 * - ( cor0.col1 ) FROM tab2 AS cor0
----
1922
578
6962

query I rowsort
SELECT DISTINCT + 19 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
19

query I rowsort
SELECT DISTINCT col2 * col2 + + 95 FROM tab2
----
1539
771
824

query I rowsort
SELECT DISTINCT cor0.col2 AS col0 FROM tab0, tab1, tab0 AS cor0
----
1
33
82

query I rowsort
SELECT DISTINCT - tab1.col2 * - col2 + + col1 FROM tab1
----
2942
3259
9229

query I rowsort
SELECT - - col1 + - col1 * col0 FROM tab0 cor0
----
-1978
-3298
-8008

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 64 col2 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to c8b19f4c3ff38700cd2bb8a077bf29b9

query I rowsort
SELECT DISTINCT - + col0 - ( - col2 ) AS col2 FROM tab0 AS cor0
----
-34
-7
9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1987
SELECT - + cor0.col0 * - ( col0 ) - - col1 / CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1987
SELECT - + cor0.col0 * - ( col0 ) - - col1 / CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col2 + - col1 * col0 AS col0 FROM tab0 AS cor0
----
-2097
-3396
-8181

query I rowsort
SELECT DISTINCT col0 + + 93 - + 74 AS col2 FROM tab0 AS cor0
----
108
43
54

query I rowsort
SELECT + col2 + - col1 + + col2 * + cor0.col0 AS col2 FROM tab1 AS cor0
----
190
3695
7763

query I rowsort
SELECT col0 * col2 * + col2 AS col0 FROM tab2
----
114076
5103
52728

query I rowsort
SELECT - col0 + + col1 + - col1 AS col0 FROM tab2 cor0
----
-7
-78
-79

query I rowsort
SELECT + col1 * cor0.col2 + + col2 * - col1 + col2 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT col2 + + col2 + col1 * col0 * col2 FROM tab2 cor0
----
119704
51110
5913

onlyif mysql # use DIV operator for integer division
query I rowsort label-1995
SELECT DISTINCT col1 * + cor0.col2 DIV col2 AS col2 FROM tab0 AS cor0 WHERE ( col0 * - col0 ) NOT IN ( col0 * col2 * cor0.col0 )
----
86
91
97

skipif mysql # not compatible
query I rowsort label-1995
SELECT DISTINCT col1 * + cor0.col2 / col2 AS col2 FROM tab0 AS cor0 WHERE ( col0 * - col0 ) NOT IN ( col0 * col2 * cor0.col0 )
----
86
91
97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( + col0 / + col0 + - col2 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( col0 ) BETWEEN NULL AND col2
----

query I rowsort
SELECT col1 * - col1 * - col2 AS col0 FROM tab0
----
244068
679042
9409

query I rowsort
SELECT ALL tab2.col2 * - col1 AS col1 FROM tab2 WHERE NOT NULL > NULL
----

query I rowsort
SELECT + col2 * + cor0.col1 * - col0 AS col1 FROM tab1 AS cor0
----
-36480
-4212
-99840

query I rowsort
SELECT DISTINCT - tab0.col1 + + col1 * - col0 * + col2 AS col2 FROM tab0
----
-3492
-664209
-68198

query I rowsort
SELECT - col0 * - col0 + col0 + + col2 AS col1 FROM tab2
----
6188
6358
83

query I rowsort
SELECT DISTINCT col1 + col1 * col1 * col0 FROM tab2
----
22848
271577
6758

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + col1 col2 FROM tab0
----
0

query I rowsort
SELECT - col2 * col1 + - col1 + col2 AS col0 FROM tab1 AS cor0
----
-1165
-1376
-523

query I rowsort
SELECT DISTINCT col1 + tab0.col0 * tab0.col0 + + col2 AS col0 FROM tab0
----
1323
695
8094

query I rowsort
SELECT col0 * col1 * tab1.col2 FROM tab1
----
36480
4212
99840

onlyif mysql # use DIV operator for integer division
query I rowsort label-2008
SELECT ALL - cor0.col1 DIV col1 + + 69 FROM tab0 AS cor0
----
68
68
68

skipif mysql # not compatible
query I rowsort label-2008
SELECT ALL - cor0.col1 / col1 + + 69 FROM tab0 AS cor0
----
68
68
68

query I rowsort
SELECT DISTINCT + col2 * - cor0.col2 - - 27 FROM tab1 cor0
----
-2889
-3222
-9189

query I rowsort
SELECT ALL + col2 * col0 * col1 - col0 FROM tab0 AS cor0
----
3360
664029
68088

query I rowsort
SELECT 87 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 8661ffbd1a72897c495405c53b816e50

query I rowsort
SELECT DISTINCT - col2 - - cor0.col1 * + ( + col2 ) FROM tab1 AS cor0
----
1152
1350
513

query I rowsort
SELECT DISTINCT + col2 * - col0 + + col0 AS col0 FROM tab2
----
-182
-1950
-2923

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL < col0
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-2015
SELECT DISTINCT tab1.col2 + + col1 DIV col1 col0 FROM tab1
----
55
58
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2015
SELECT DISTINCT tab1.col2 + + col1 / col1 col0 FROM tab1
----
55
58
97

query I rowsort
SELECT ALL + col0 + col0 AS col1 FROM tab2 WHERE col0 <> - tab2.col1 * - col2
----
14
156
158

query I rowsort
SELECT ALL + col1 * col1 + - col1 FROM tab2
----
272
3422
930

query I rowsort
SELECT ALL - col0 FROM tab1 WHERE NOT col0 NOT BETWEEN col2 AND - col0 * col0
----

query I rowsort
SELECT 1 + col0 AS col1 FROM tab1
----
4
65
81

query I rowsort
SELECT ALL 72 - col1 AS col1 FROM tab1
----
46
59
62

query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab1, tab0 AS cor0, tab1 cor1
----
972 values hashing to 7942394eb7766dfb9ea95b7805ff595d

query I rowsort
SELECT + + col0 * - cor0.col1 - col0 FROM tab1 AS cor0
----
-1120
-704
-81

query I rowsort
SELECT + col2 * + cor0.col2 - col1 AS col1 FROM tab0 AS cor0
----
-96
1003
6633

query I rowsort
SELECT + col1 + + col0 * cor0.col0 AS col1 FROM tab0 cor0
----
1322
662
8012

query I rowsort
SELECT DISTINCT + tab1.col0 * col1 * col1 + ( col0 ) - 50 AS col2 FROM tab1
----
13550
1981
6414

query I rowsort
SELECT col2 * col1 - + col1 * + col0 AS col0 FROM tab1
----
-70
1326
208

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL >= col2 + - col1 * + col0 / + col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( col0 ) IN ( col1 / col2 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

query I rowsort
SELECT DISTINCT + tab1.col1 - - col0 * + col2 AS col2 FROM tab1
----
188
3658
7693

query III rowsort
SELECT * FROM tab1 WHERE ( + col1 * + col0 ) NOT IN ( col0 + - col1 * col1 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

query I rowsort
SELECT DISTINCT - col0 - col1 * + col2 * col0 AS col0 FROM tab1
----
-36544
-4215
-99920

query I rowsort
SELECT ALL col0 * col0 * + col0 AS col1 FROM tab0
----
13824
42875
704969

query I rowsort
SELECT - col0 FROM tab1 WHERE NULL < ( col0 + col0 )
----

query I rowsort
SELECT - col1 + col1 * + col1 * tab1.col1 AS col1 FROM tab1
----
17550
2184
990

query I rowsort
SELECT col1 + + col1 * + col0 AS col1 FROM tab1
----
104
1053
650

query I rowsort
SELECT ALL col0 FROM tab0 WHERE NOT NULL NOT IN ( - tab0.col1 )
----

query I rowsort
SELECT DISTINCT + col2 - + col0 AS col2 FROM tab1
----
-7
16
51

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 IN ( + col2 * col2 * col0 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

query I rowsort
SELECT - col0 + col1 * + col0 AS col1 FROM tab1
----
576
75
960

query I rowsort
SELECT DISTINCT col0 * col1 * - col0 FROM tab2 WHERE + col2 * col0 NOT IN ( col1 )
----
-106097
-1519
-358956

query I rowsort
SELECT ALL - col1 * col0 FROM tab1 WHERE NOT NULL NOT IN ( col0 )
----

query I rowsort
SELECT + col1 * - col2 + col2 AS col1 FROM tab2 AS cor0
----
-1508
-608
-810

query I rowsort
SELECT 43 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 199105619049271147956de52e7f5ed4

query I rowsort
SELECT ALL - cor0.col0 * - col1 + col0 * - col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - + col1 * 84 AS col1 FROM tab1 AS cor0
----
-1092
-2184
-840

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 col1 FROM tab1, tab2 AS cor0, tab1 cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 4 + + col2 col2 FROM tab1
----
50
53
92

query I rowsort
SELECT col2 * tab0.col1 * - col2 + col1 FROM tab0
----
-611793
-93568
0

query I rowsort
SELECT + tab0.col2 * + ( + tab0.col1 * - tab0.col1 ) + col2 * - col1 AS col1 FROM tab0
----
-246906
-686504
-9506

query I rowsort
SELECT DISTINCT - col0 + cor0.col1 * col2 FROM tab0 AS cor0
----
2814
62
7373

query I rowsort
SELECT + col2 * + 93 AS col0 FROM tab1 AS cor0
----
5022
5301
8928

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2052
SELECT + cor0.col2 * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2052
SELECT + cor0.col2 * + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2053
SELECT 98 DIV - col1 + col2 + + col2 * - col0 col0 FROM tab0
----
-35
-7217
-760

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2053
SELECT 98 / - col1 + col2 + + col2 * - col0 col0 FROM tab0
----
-35
-7217
-760

query I rowsort
SELECT ALL + 37 - col1 AS col1 FROM tab0
----
-49
-54
-60

query I rowsort
SELECT ALL + ( 98 ) AS col0 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to c758e8afbdfa6aae279045b0e9cbacc2

query I rowsort
SELECT ALL - + col0 * + 12 + cor0.col2 * ( - ( + col1 ) ) * - 85 AS col1 FROM tab1 AS cor0
----
105120
119304
47682

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2057
SELECT ALL - CAST( NULL AS SIGNED ) * - 88 - + col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2057
SELECT ALL - CAST ( NULL AS INTEGER ) * - 88 - + col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + col1 - - cor0.col1 FROM tab0 AS cor0
----
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2059
SELECT ALL + - CAST( col2 AS SIGNED ) + col2 col2 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2059
SELECT ALL + - CAST ( col2 AS INTEGER ) + col2 col2 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2060
SELECT - + CAST( NULL AS SIGNED ) * 67 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2060
SELECT - + CAST ( NULL AS INTEGER ) * 67 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 45 AS col1 FROM tab2
----
45

query I rowsort
SELECT - ( col1 ) + col1 AS col2 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL - col0 * col2 * col0 FROM tab0 AS cor0
----
-1225
-19008
-649522

query I rowsort
SELECT DISTINCT + 37 + col1 * + ( col1 * - col1 ) FROM tab0 AS cor0
----
-636019
-753534
-912636

onlyif mysql # use DIV operator for integer division
query I rowsort label-2065
SELECT DISTINCT - col2 + cor0.col1 DIV - ( ( - col0 ) * 99 + col2 * + col0 ) AS col0 FROM tab1 AS cor0
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-2065
SELECT DISTINCT - col2 + cor0.col1 / - ( ( - col0 ) * 99 + col2 * + col0 ) AS col0 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT + 22 * + col1 AS col1 FROM tab2 AS cor0
----
1298
374
682

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2067
SELECT ALL + - col1 + cor0.col2 * CAST( + col2 AS SIGNED ) FROM tab1 AS cor0
----
2890
3239
9203

skipif mysql # not compatible
query I rowsort label-2067
SELECT ALL + - col1 + cor0.col2 * CAST ( + col2 AS INTEGER ) FROM tab1 AS cor0
----
2890
3239
9203

query I rowsort
SELECT + - 69 * + col0 * - col0 FROM tab1 AS cor0
----
282624
441600
621

query I rowsort
SELECT DISTINCT cor0.col1 * 69 FROM tab2, tab2 AS cor0
----
1173
2139
4071

query I rowsort
SELECT + cor1.col2 * + 12 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 125f2f3fb2d94b0cc3f62e6ce4a3f314

query I rowsort
SELECT - - 80 - col0 * col0 AS col1 FROM tab1 cor0
----
-4016
-6320
71

query I rowsort
SELECT DISTINCT + + cor0.col1 - - col1 FROM tab2 cor0
----
118
34
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-2073
SELECT ALL col2 + col0 DIV cor0.col1 AS col1 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-2073
SELECT ALL col2 + col0 / cor0.col1 AS col1 FROM tab0 AS cor0
----
1
33
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-2074
SELECT ALL + col1 DIV col2 - - cor0.col1 * - col1 FROM tab1 AS cor0
----
-100
-169
-676

skipif mysql # not compatible
query I rowsort label-2074
SELECT ALL + col1 / col2 - - cor0.col1 * - col1 FROM tab1 AS cor0
----
-100
-169
-676

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2075
SELECT + cor0.col0 * + col2 + - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2075
SELECT + cor0.col0 * + col2 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 5 * - col2 AS col1 FROM tab1 AS cor0
----
270
285
480

query I rowsort
SELECT + + cor0.col0 - col2 AS col1 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT + col2 + + col2 * + col2 FROM tab0 AS cor0
----
1122
2
6806

query I rowsort
SELECT ALL + ( + col0 ) * 45 AS col0 FROM tab2 cor0
----
315
3510
3555

query I rowsort
SELECT DISTINCT - ( - col1 ) * 21 AS col2 FROM tab0 AS cor0
----
1806
1911
2037

query I rowsort
SELECT ALL - + ( col2 ) + + col2 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - 51 * - col1 AS col0 FROM tab1
----
1326
510
663

query I rowsort
SELECT col0 * col1 + + col1 FROM tab0 AS cor0
----
2150
3492
8190

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + cor0.col1 col1 FROM tab0 AS cor0
----
7396
8281
9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-2085
SELECT 31 DIV col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2085
SELECT 31 / col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort
SELECT + col1 + col2 * + CAST ( col0 AS REAL ) FROM tab0 AS cor0
----
132
7389
878

query I rowsort
SELECT DISTINCT - - col0 * col1 + 95 AS col2 FROM tab0 AS cor0
----
2159
3490
8194

query I rowsort
SELECT DISTINCT + - 9 AS col1 FROM tab0 AS cor0
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 + 22 + - col1 col2 FROM tab1 AS cor0
----
105
50
69

query I rowsort
SELECT + + col1 + col2 * - col2 FROM tab0 AS cor0
----
-1003
-6633
96

query I rowsort
SELECT - col2 * - col2 + + ( col2 + + col0 ) * - cor0.col2 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT cor0.col2 + + 25 AS col2 FROM tab0 AS cor0
----
107
26
58

query I rowsort
SELECT DISTINCT + col1 * - col2 + ( 35 + col1 ) * - ( col1 ) FROM tab2
----
-1530
-2883
-7080

onlyif mysql # use DIV operator for integer division
query I rowsort label-2094
SELECT DISTINCT - col0 DIV tab2.col0 + - col2 AS col2 FROM tab2
----
-27
-28
-39

skipif mysql # not compatible
query I rowsort label-2094
SELECT DISTINCT - col0 / tab2.col0 + - col2 AS col2 FROM tab2
----
-27
-28
-39

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2095
SELECT - + cor0.col0 + CAST( NULL AS DECIMAL ) / + 54 + - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2095
SELECT - + cor0.col0 + CAST ( NULL AS REAL ) / + 54 + - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2096
SELECT ALL - CAST( NULL AS DECIMAL ) + col1 + col1 * col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2096
SELECT ALL - CAST ( NULL AS REAL ) + col1 + col1 * col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + ( + col2 ) + + col2 + col1 AS col1 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT DISTINCT ( 48 ) * col1 AS col2 FROM tab0 cor0
----
4128
4368
4656

query I rowsort
SELECT ALL + cor0.col2 + - cor0.col0 FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT - ( + 39 ) + + col1 AS col2 FROM tab1 cor0
----
-13
-26
-29

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2101
SELECT DISTINCT CAST( + col1 AS SIGNED ) * + cor0.col2 * ( col0 * - col2 ) FROM tab1 AS cor0
----
-2079360
-227448
-9584640

skipif mysql # not compatible
query I rowsort label-2101
SELECT DISTINCT CAST ( + col1 AS INTEGER ) * + cor0.col2 * ( col0 * - col2 ) FROM tab1 AS cor0
----
-2079360
-227448
-9584640

query I rowsort
SELECT ALL - col1 + 61 FROM tab1 AS cor0
----
35
48
51

query I rowsort
SELECT DISTINCT - 73 + - cor0.col1 AS col1 FROM tab1 AS cor0
----
-83
-86
-99

query I rowsort
SELECT col1 * + 20 * + col2 FROM tab2 cor0
----
12920
16740
30680

query I rowsort
SELECT ALL ( 74 ) * + cor0.col0 AS col2 FROM tab1 AS cor0
----
222
4736
5920

query I rowsort
SELECT 40 * col1 FROM tab0 cor0
----
3440
3640
3880

query I rowsort
SELECT col2 * ( - col0 ) FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT 70 + - col2 FROM tab2
----
32
43
44

query I rowsort
SELECT 56 * col2 AS col2 FROM tab2 AS cor0
----
1456
1512
2128

query I rowsort
SELECT 79 * tab2.col1 - tab2.col1 * - tab2.col2 AS col2 FROM tab2
----
1989
3286
6195

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2111
SELECT ALL + CAST( NULL AS SIGNED ) * - 14 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2111
SELECT ALL + CAST ( NULL AS INTEGER ) * - 14 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + 16 AS col0 FROM tab0, tab2 cor0, tab1, tab2 AS cor1
----
81 values hashing to 9ffb4aaf972de606a4957894645b6216

query I rowsort
SELECT + ( col2 ) + cor0.col1 * col0 * col0 AS col2 FROM tab2 AS cor0
----
106135
1546
358982

query I rowsort
SELECT ALL - 9 AS col1 FROM tab1 AS cor0
----
-9
-9
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * col1 - + col2 col0 FROM tab2 AS cor0
----
1508
608
810

query I rowsort
SELECT col0 * col1 * + 55 FROM tab1
----
35200
4290
57200

query I rowsort
SELECT col1 * + 18 FROM tab2
----
1062
306
558

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2118
SELECT CAST( + 38 + - tab0.col0 AS SIGNED ) AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 0dc17bcfaad581d3aa774efc6a515584

skipif mysql # not compatible
query I rowsort label-2118
SELECT CAST ( + 38 + - tab0.col0 AS INTEGER ) AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 0dc17bcfaad581d3aa774efc6a515584

query I rowsort
SELECT + ( + 25 ) + - col2 * - col2 + - col1 FROM tab2
----
1452
642
723

query I rowsort
SELECT - 60 + 39 AS col1 FROM tab2 AS cor0
----
-21
-21
-21

query I rowsort
SELECT - cor0.col1 - col1 AS col2 FROM tab0 AS cor0
----
-172
-182
-194

query I rowsort
SELECT - + ( col2 ) * + cor0.col1 * + 50 - - col2 * + col1 * ( + 46 ) AS col0 FROM tab1 cor0
----
-2280
-4992
-5616

query I rowsort
SELECT + - col2 - ( col0 + + col0 ) FROM tab1 AS cor0
----
-185
-256
-60

query I rowsort
SELECT - - col2 * - 97 + - col2 AS col0 FROM tab1 AS cor0
----
-5292
-5586
-9408

query I rowsort
SELECT + - 24 + col1 * col0 FROM tab0 AS cor0
----
2040
3371
8075

query I rowsort
SELECT - col1 * cor0.col2 + + 95 AS col1 FROM tab0 AS cor0
----
-2
-2743
-7367

query I rowsort
SELECT DISTINCT + cor1.col1 + - cor0.col2 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
9 values hashing to 388493d861b014f5947e20fd539835b7

query I rowsort
SELECT col2 + + 58 AS col2 FROM tab0 AS cor0
----
140
59
91

onlyif mysql # use DIV operator for integer division
query I rowsort label-2129
SELECT + cor0.col0 DIV col1 AS col1 FROM tab1 AS cor0
----
0
6
6

skipif mysql # not compatible
query I rowsort label-2129
SELECT + cor0.col0 / col1 AS col1 FROM tab1 AS cor0
----
0
6
6

query I rowsort
SELECT DISTINCT + cor0.col1 + - ( col1 + col1 ) AS col1 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT + + col0 * + 40 FROM tab0 cor0
----
1400
3560
960

query I rowsort
SELECT ALL col1 + - ( col2 ) * col0 FROM tab0 cor0
----
-706
-7207
62

query I rowsort
SELECT DISTINCT + col2 * + ( - col1 ) AS col1 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT + col1 + col0 * - cor0.col1 FROM tab0 AS cor0
----
-1978
-3298
-8008

query I rowsort
SELECT - col2 * + 56 + - col2 AS col2 FROM tab2 AS cor0
----
-1482
-1539
-2166

query I rowsort
SELECT ALL 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 - col0 + + 0 col0 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT DISTINCT + col0 * + ( + col1 ) AS col2 FROM tab2 cor0
----
1343
217
4602

query I rowsort
SELECT DISTINCT - col2 * 42 + col2 FROM tab1 cor0
----
-2214
-2337
-3936

query I rowsort
SELECT - col0 + - cor0.col2 * - cor0.col2 FROM tab0 AS cor0
----
-34
1065
6635

query I rowsort
SELECT DISTINCT + col0 + - col1 * + col0 FROM tab0 AS cor0
----
-2040
-3360
-8010

query I rowsort
SELECT ALL + 9 + + 39 FROM tab2 AS cor0
----
48
48
48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 77 col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622

query I rowsort
SELECT col1 + col2 * col2 FROM tab1 cor0
----
2942
3259
9229

query I rowsort
SELECT DISTINCT + col0 + ( cor0.col2 ) AS col1 FROM tab0 AS cor0
----
171
36
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-2146
SELECT ALL + col1 DIV ( col1 + + col2 ) FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2146
SELECT ALL + col1 / ( col1 + + col2 ) FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT col1 + + col2 * + 65 FROM tab1 AS cor0
----
3536
3715
6253

onlyif mysql # use DIV operator for integer division
query I rowsort label-2148
SELECT ALL - col2 * col2 + col2 DIV ( + col1 ) FROM tab2 cor0
----
-1442
-676
-729

skipif mysql # not compatible
query I rowsort label-2148
SELECT ALL - col2 * col2 + col2 / ( + col1 ) FROM tab2 cor0
----
-1442
-676
-729

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 48 * col2 col2 FROM tab2
----
-1248
-1296
-1824

query I rowsort
SELECT + col1 + 64 FROM tab2 AS cor0
----
123
81
95

query I rowsort
SELECT ( 10 ) AS col2 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 0fe3e45a9ecd49584c2ab442100d5176

query I rowsort
SELECT DISTINCT - + 42 FROM tab1, tab0, tab1 AS cor0
----
-42

onlyif mysql # use DIV operator for integer division
query I rowsort label-2153
SELECT + tab2.col2 - + col0 DIV col1 AS col2 FROM tab2
----
25
27
34

skipif mysql # not compatible
query I rowsort label-2153
SELECT + tab2.col2 - + col0 / col1 AS col2 FROM tab2
----
25
27
34

query I rowsort
SELECT DISTINCT + 51 * col2 + col2 AS col2 FROM tab0
----
1716
4264
52

query I rowsort
SELECT ALL 49 + - cor0.col2 * col1 FROM tab2 AS cor0
----
-1485
-597
-788

query I rowsort
SELECT - + col1 - - cor0.col0 AS col2 FROM tab0 AS cor0
----
-2
-62
-62

query I rowsort
SELECT DISTINCT 59 AS col0 FROM tab2 AS cor0
----
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + 76 + col0 col0 FROM tab0
----
-2484
-41
-6143

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2159
SELECT ALL - + CAST( - col0 AS SIGNED ) * - col1 AS col2 FROM tab1 AS cor0
----
-1040
-640
-78

skipif mysql # not compatible
query I rowsort label-2159
SELECT ALL - + CAST ( - col0 AS INTEGER ) * - col1 AS col2 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT + + 19 * 19 * col1 AS col0 FROM tab0 cor0
----
31046
32851
35017

query I rowsort
SELECT DISTINCT + 56 FROM tab2, tab0 AS cor0
----
56

query I rowsort
SELECT col0 * + 91 + + tab2.col0 FROM tab2
----
644
7176
7268

query I rowsort
SELECT DISTINCT col1 * + col0 + - col1 FROM tab0
----
1978
3298
8008

query I rowsort
SELECT + 27 + col0 * col1 + col2 AS col0 FROM tab1
----
1163
159
724

query I rowsort
SELECT 64 * - tab0.col1 + col1 + + col0 * + col2 FROM tab0
----
-4626
-6076
1565

onlyif mysql # use DIV operator for integer division
query I rowsort label-2166
SELECT DISTINCT - ( col1 ) + + col1 DIV col0 + + 63 FROM tab2
----
36
4
46

skipif mysql # not compatible
query I rowsort label-2166
SELECT DISTINCT - ( col1 ) + + col1 / col0 + + 63 FROM tab2
----
36
4
46

onlyif mysql # use DIV operator for integer division
query I rowsort label-2167
SELECT + ( - 30 ) DIV cor0.col1 + col1 + - col1 AS col1 FROM tab1 AS cor0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-2167
SELECT + ( - 30 ) / cor0.col1 + col1 + - col1 AS col1 FROM tab1 AS cor0
----
-1
-2
-3

query I rowsort
SELECT ALL - 18 * + ( + col2 ) + - ( cor0.col2 ) AS col0 FROM tab0 AS cor0
----
-1558
-19
-627

query I rowsort
SELECT - 35 * col1 AS col2 FROM tab2
----
-1085
-2065
-595

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col1 - ( + 90 + + col1 ) col0 FROM tab0 AS cor0
----
-262
-272
-284

query I rowsort
SELECT DISTINCT - + cor0.col1 + - cor0.col1 * - 85 * + col2 FROM tab0 cor0
----
241144
634179
8148

query I rowsort
SELECT DISTINCT - - cor0.col1 - + cor0.col0 * ( col2 ) AS col0 FROM tab2 AS cor0
----
-158
-1969
-2985

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 + - col2 + 62 col1 FROM tab0 cor0
----
62
62
62

query I rowsort
SELECT ALL - col2 + + ( col0 ) * + col2 FROM tab0 AS cor0
----
34
7216
759

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + col0 + + col0 col1 FROM tab1
----
-159
-3584
-7600

query I rowsort
SELECT - 19 AS col0 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 0fbbff28a7b63c37b01cf369f9325662

query I rowsort
SELECT DISTINCT + col2 * 7 * - col2 - - col2 AS col1 FROM tab1 AS cor0
----
-20358
-22686
-64416

query I rowsort
SELECT - col2 * - 53 AS col1 FROM tab2 AS cor0
----
1378
1431
2014

query I rowsort
SELECT ALL cor0.col0 * 32 FROM tab1 AS cor0
----
2048
2560
96

query I rowsort
SELECT DISTINCT - col0 + + col2 * - col1 * cor0.col0 FROM tab1 AS cor0
----
-36544
-4215
-99920

query I rowsort
SELECT DISTINCT + - col0 + + 69 FROM tab0 AS cor0
----
-20
34
45

query I rowsort
SELECT ALL + col1 + - ( col2 ) AS col2 FROM tab0 cor0
----
53
9
96

query I rowsort
SELECT col2 + + col2 * + 98 AS col1 FROM tab2 AS cor0
----
2574
2673
3762

query I rowsort
SELECT DISTINCT + col2 + cor0.col1 * col1 AS col0 FROM tab1 AS cor0
----
157
265
730

query I rowsort
SELECT DISTINCT - + cor0.col0 - ( - col2 * + col1 ) FROM tab0 AS cor0
----
2814
62
7373

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2186
SELECT ALL - col0 * CAST( - col2 AS SIGNED ) col0 FROM tab2 AS cor0
----
189
2028
3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2186
SELECT ALL - col0 * CAST ( - col2 AS INTEGER ) col0 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT DISTINCT + col0 * - ( + cor0.col0 ) + col1 FROM tab0 AS cor0
----
-1128
-490
-7830

query I rowsort
SELECT ALL - col0 * col2 * col0 AS col0 FROM tab1 AS cor0
----
-233472
-486
-614400

query I rowsort
SELECT + col0 * tab0.col2 + 70 FROM tab0
----
105
7368
862

query I rowsort
SELECT - col0 + - 27 FROM tab2
----
-105
-106
-34

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2191
SELECT ALL - col2 + CAST( - 63 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-117
-120
-159

skipif mysql # not compatible
query I rowsort label-2191
SELECT ALL - col2 + CAST ( - 63 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-117
-120
-159

query I rowsort
SELECT DISTINCT col0 * ( - col1 * + cor0.col0 ) AS col0 FROM tab0 cor0
----
-118825
-49536
-720811

query I rowsort
SELECT col1 + + 53 * col0 FROM tab0 AS cor0
----
1358
1952
4808

query I rowsort
SELECT ALL - col1 + col2 * col2 FROM tab1 AS cor0
----
2890
3239
9203

query I rowsort
SELECT ALL - - 15 - col2 FROM tab1 AS cor0
----
-39
-42
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + + 79 col0 FROM tab1 AS cor0
----
143
159
82

query I rowsort
SELECT DISTINCT 76 * col2 FROM tab0 AS cor0
----
2508
6232
76

query I rowsort
SELECT ALL - col1 * + col1 * + col0 AS col0 FROM tab0 cor0
----
-177504
-329315
-737009

onlyif mysql # use DIV operator for integer division
query I rowsort label-2199
SELECT DISTINCT col2 DIV + 54 FROM tab0 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-2199
SELECT DISTINCT col2 / + 54 FROM tab0 AS cor0
----
0
1

query I rowsort
SELECT - + col0 * + 15 FROM tab0 AS cor0
----
-1335
-360
-525

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 30 col1 FROM tab1 AS cor0
----
-30
-30
-30

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2202
SELECT CAST( col1 AS SIGNED ) * cor0.col2 AS col1 FROM tab0 AS cor0
----
2838
7462
97

skipif mysql # not compatible
query I rowsort label-2202
SELECT CAST ( col1 AS INTEGER ) * cor0.col2 AS col1 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT col1 * + 33 AS col0 FROM tab0 cor0
----
2838
3003
3201

onlyif mysql # use DIV operator for integer division
query I rowsort label-2204
SELECT DISTINCT - col0 * cor0.col0 DIV - cor0.col1 + cor0.col0 * cor0.col2 AS col2 FROM tab2 AS cor0
----
190
2131
3369

skipif mysql # not compatible
query I rowsort label-2204
SELECT DISTINCT - col0 * cor0.col0 / - cor0.col1 + cor0.col0 * cor0.col2 AS col2 FROM tab2 AS cor0
----
190
2131
3369

query I rowsort
SELECT DISTINCT - col2 * + col0 + col2 * - col0 FROM tab0 AS cor0
----
-14596
-1584
-70

query I rowsort
SELECT - col0 * + col1 + tab1.col0 FROM tab1
----
-576
-75
-960

query I rowsort
SELECT ALL - 96 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c89b545346f99713888a7934e4caa539

query I rowsort
SELECT col1 * cor0.col2 + 57 AS col1 FROM tab1 AS cor0
----
1305
1461
627

query I rowsort
SELECT + col1 + col1 + + cor0.col0 AS col1 FROM tab2 AS cor0
----
113
196
69

query I rowsort
SELECT + 78 + - col2 AS col0 FROM tab1 AS cor0
----
-18
21
24

onlyif mysql # use DIV operator for integer division
query I rowsort label-2211
SELECT DISTINCT + col2 DIV col0 + col1 FROM tab0 cor0
----
87
91
97

skipif mysql # not compatible
query I rowsort label-2211
SELECT DISTINCT + col2 / col0 + col1 FROM tab0 cor0
----
87
91
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 69 + cor0.col0 col0 FROM tab0 AS cor0
----
-34
-45
20

query I rowsort
SELECT DISTINCT + col1 + col0 * cor0.col1 AS col2 FROM tab0 cor0
----
2150
3492
8190

query I rowsort
SELECT - + cor0.col0 * - col1 FROM tab2 cor0
----
1343
217
4602

query I rowsort
SELECT DISTINCT - 11 * - tab0.col1 FROM tab0
----
1001
1067
946

query I rowsort
SELECT DISTINCT - cor0.col1 + - col0 AS col1 FROM tab0 cor0
----
-110
-132
-180

query I rowsort
SELECT DISTINCT 62 * + col0 + + col0 * col0 * + cor0.col0 FROM tab1 AS cor0
----
213
266112
516960

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col1 + + col0 col0 FROM tab1 cor0
----
-576
-75
-960

query I rowsort
SELECT ALL + 95 AS col1 FROM tab2
----
95
95
95

query I rowsort
SELECT - 76 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f8b6589bc7503fc720ca5430e3569317

query I rowsort
SELECT - col1 * + 51 AS col2 FROM tab0
----
-4386
-4641
-4947

query I rowsort
SELECT - 9 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to caf28657beb43049740febe1fa9ded5a

query I rowsort
SELECT ALL + col1 + ( + cor0.col1 * col2 ) FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT DISTINCT - cor0.col1 + + 73 + - 81 * col0 FROM tab0 AS cor0
----
-1957
-2859
-7227

onlyif mysql # use DIV operator for integer division
query I rowsort label-2225
SELECT ALL + col0 * 10 DIV col0 - - col2 AS col0 FROM tab0 cor0
----
11
43
92

skipif mysql # not compatible
query I rowsort label-2225
SELECT ALL + col0 * 10 / col0 - - col2 AS col0 FROM tab0 cor0
----
11
43
92

query I rowsort
SELECT DISTINCT - + 22 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + col2 * col0 col2 FROM tab1
----
207936
737280
8748

query I rowsort
SELECT + + ( 71 ) AS col1 FROM tab2 AS cor0
----
71
71
71

query I rowsort
SELECT + - 41 * + col1 + - col0 AS col1 FROM tab2 AS cor0
----
-1278
-2497
-776

query I rowsort
SELECT + col0 * 40 AS col0 FROM tab1 AS cor0
----
120
2560
3200

query I rowsort
SELECT ALL col2 * 76 + col0 AS col1 FROM tab2
----
2054
2059
2967

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2232
SELECT ALL tab0.col2 * + 49 + - col0 * - CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2232
SELECT ALL tab0.col2 * + 49 + - col0 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - 6 + col2 AS col0 FROM tab2 AS cor0
----
20
21
32

query I rowsort
SELECT DISTINCT + ( - col1 ) * + col1 AS col1 FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT ALL 91 + 89 * col2 FROM tab2 AS cor0
----
2405
2494
3473

query I rowsort
SELECT ALL + col0 + - col2 * + 63 AS col2 FROM tab1 AS cor0
----
-3399
-3527
-5968

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 col2 FROM tab0, tab1 cor0, tab2 cor1
----
27 values hashing to 729c1edda9332398299f39cd174ed840

query I rowsort
SELECT - ( - col2 ) * + ( cor0.col0 ) FROM tab1 cor0
----
162
3648
7680

query I rowsort
SELECT DISTINCT 82 + col2 AS col1 FROM tab0 AS cor0
----
115
164
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-2240
SELECT DISTINCT - col0 - + col1 DIV col2 FROM tab0 AS cor0
----
-132
-26
-90

skipif mysql # not compatible
query I rowsort label-2240
SELECT DISTINCT - col0 - + col1 / col2 FROM tab0 AS cor0
----
-132
-26
-90

query I rowsort
SELECT - + cor0.col1 * cor0.col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2242
SELECT DISTINCT + 81 * - col0 + + CAST( NULL AS SIGNED ) col1 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2242
SELECT DISTINCT + 81 * - col0 + + CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2243
SELECT + col2 - ( cor0.col2 ) * col1 * CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2243
SELECT + col2 - ( cor0.col2 ) * col1 * CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 * col0 - col2 FROM tab2
----
22
6058
6203

query I rowsort
SELECT tab1.col1 - + col1 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT - col2 * - 4 - + 62 FROM tab0
----
-58
266
70

query I rowsort
SELECT cor0.col0 + ( - 42 * + col0 + + ( - col0 ) ) AS col2 FROM tab2 AS cor0
----
-294
-3276
-3318

query I rowsort
SELECT col0 - - col1 * cor0.col0 AS col1 FROM tab2 cor0
----
1422
224
4680

query I rowsort
SELECT ALL + 43 FROM tab2, tab2 cor0
----
9 values hashing to 199105619049271147956de52e7f5ed4

onlyif mysql # use DIV operator for integer division
query I rowsort label-2250
SELECT DISTINCT - - col0 + + col2 DIV - cor0.col0 FROM tab2 AS cor0
----
4
78
79

skipif mysql # not compatible
query I rowsort label-2250
SELECT DISTINCT - - col0 + + col2 / - cor0.col0 FROM tab2 AS cor0
----
4
78
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-2251
SELECT ALL - + CAST( 13 AS SIGNED ) DIV col1 AS col2 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2251
SELECT ALL - + CAST ( 13 AS INTEGER ) / col1 AS col2 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT - + 50 * col1 FROM tab0 AS cor0
----
-4300
-4550
-4850

onlyif mysql # use DIV operator for integer division
query I rowsort label-2253
SELECT 23 DIV col0 + - col1 DIV col0 + cor0.col0 col1 FROM tab1 AS cor0
----
2
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2253
SELECT 23 / col0 + - col1 / col0 + cor0.col0 col1 FROM tab1 AS cor0
----
2
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + col0 * + cor0.col1 col1 FROM tab0 cor0
----
2097
3396
8181

query I rowsort
SELECT DISTINCT col1 + - col0 * + col0 - col1 * + col0 FROM tab1
----
-4726
-61
-7427

query I rowsort
SELECT 96 AS col2 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to f1d978c2d5bfc6f26e0907ac777be83e

query I rowsort
SELECT ALL - col0 * + ( - col2 * col0 ) AS col2 FROM tab0
----
1225
19008
649522

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 + + cor0.col0 + + col0 col0 FROM tab2 AS cor0
----
-13
120
130

onlyif mysql # use DIV operator for integer division
query I rowsort label-2259
SELECT DISTINCT - cor0.col1 DIV - ( 88 ) - + col1 FROM tab0 AS cor0
----
-86
-90
-96

skipif mysql # not compatible
query I rowsort label-2259
SELECT DISTINCT - cor0.col1 / - ( 88 ) - + col1 FROM tab0 AS cor0
----
-86
-90
-96

query I rowsort
SELECT DISTINCT - col2 * ( + col2 ) AS col2 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT ALL col2 * 67 + + col1 FROM tab1 AS cor0
----
3644
3829
6445

query I rowsort
SELECT DISTINCT + + col2 * col0 - col0 AS col0 FROM tab1 AS cor0
----
159
3584
7600

onlyif mysql # use DIV operator for integer division
query I rowsort label-2263
SELECT + - col1 DIV + col1 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2263
SELECT + - col1 / + col1 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL + - cor0.col1 - - ( col2 ) FROM tab1 cor0
----
28
47
83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2265
SELECT CAST( + 45 AS SIGNED ) * col0 - + col1 AS col1 FROM tab1 AS cor0
----
109
2870
3587

skipif mysql # not compatible
query I rowsort label-2265
SELECT CAST ( + 45 AS INTEGER ) * col0 - + col1 AS col1 FROM tab1 AS cor0
----
109
2870
3587

query I rowsort
SELECT ALL col1 + + col1 - col1 FROM tab1 AS cor0
----
10
13
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col2 + - col2 * 76 col1 FROM tab1 AS cor0
----
-2700
-3762
-6048

query I rowsort
SELECT - col0 * + 50 AS col2 FROM tab0 AS cor0
----
-1200
-1750
-4450

query I rowsort
SELECT - + cor0.col1 + - ( + col2 ) AS col2 FROM tab1 AS cor0
----
-109
-67
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-2270
SELECT - col0 + col1 DIV + 56 AS col0 FROM tab0 cor0
----
-23
-34
-88

skipif mysql # not compatible
query I rowsort label-2270
SELECT - col0 + col1 / + 56 AS col0 FROM tab0 cor0
----
-23
-34
-88

query I rowsort
SELECT ALL ( - col2 ) + col2 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2272
SELECT + 6 DIV col0 AS col2 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2272
SELECT + 6 / col0 AS col2 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT - col2 * col1 * - col0 AS col2 FROM tab0
----
3395
664118
68112

query I rowsort
SELECT DISTINCT - ( + cor0.col2 ) + + ( + cor0.col1 ) * - col2 FROM tab1 AS cor0
----
-1344
-1458
-627

query I rowsort
SELECT DISTINCT + col1 + + col1 * + ( + col2 ) FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT + col1 * - ( - 64 + - col1 ) FROM tab2 AS cor0
----
1377
2945
7257

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 col1 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
17
31
59

query I rowsort
SELECT 49 FROM tab2, tab1, tab1 cor0
----
27 values hashing to a40d8754a5be3ce2309c61bfd3e00197

query I rowsort
SELECT + 83 * col2 AS col0 FROM tab1
----
4482
4731
7968

onlyif mysql # use DIV operator for integer division
query I rowsort label-2280
SELECT - + cor0.col1 DIV cor0.col1 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2280
SELECT - + cor0.col1 / cor0.col1 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT + 32 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d30a2acbf33c88274474306936d3227b

query I rowsort
SELECT ALL + - cor0.col0 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0

query I rowsort
SELECT + - cor0.col0 * + 50 AS col2 FROM tab0 AS cor0
----
-1200
-1750
-4450

query I rowsort
SELECT ALL + + col1 * + 38 AS col2 FROM tab2 AS cor0
----
1178
2242
646

query I rowsort
SELECT + cor0.col2 * col2 - - 73 AS col2 FROM tab2 AS cor0
----
1517
749
802

query I rowsort
SELECT + col2 + + tab2.col0 * - col1 + col0 FROM tab2
----
-1226
-183
-4498

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2287
SELECT ALL tab2.col1 + + CAST( NULL AS SIGNED ) AS col1 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-2287
SELECT ALL tab2.col1 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT + + ( col2 ) * + col2 + cor0.col1 AS col2 FROM tab2 AS cor0
----
1461
735
760

query I rowsort
SELECT ALL + 83 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c

query I rowsort
SELECT col0 + col2 + + col1 FROM tab1
----
131
189
83

query I rowsort
SELECT + 73 AS col1 FROM tab2, tab2 cor0
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496

query I rowsort
SELECT ( col0 * col2 ) AS col2 FROM tab1
----
162
3648
7680

query I rowsort
SELECT ALL - 96 * + col2 FROM tab2
----
-2496
-2592
-3648

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2294
SELECT ALL 78 * - col0 + + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2294
SELECT ALL 78 * - col0 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + 91 + - col0 FROM tab2 AS cor0
----
12
13
84

query I rowsort
SELECT DISTINCT - 15 AS col2 FROM tab2 cor0
----
-15

query I rowsort
SELECT ALL + 93 + col1 * 6 FROM tab2 AS cor0
----
195
279
447

query I rowsort
SELECT ALL + - col1 + + col2 * - 81 FROM tab2 AS cor0
----
-2165
-2218
-3095

query I rowsort
SELECT + 75 + col2 FROM tab2 cor0
----
101
102
113

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2300
SELECT DISTINCT - cor0.col2 * col0 - CAST( NULL AS DECIMAL ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2300
SELECT DISTINCT - cor0.col2 * col0 - CAST ( NULL AS REAL ) AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + col0 * - col2 + + col0 AS col1 FROM tab1 AS cor0
----
-159
-3584
-7600

query I rowsort
SELECT DISTINCT + col1 * col1 + + col0 * + col0 FROM tab1
----
4196
6569
685

query I rowsort
SELECT DISTINCT tab2.col1 * + col1 + - col2 * + col0 FROM tab2
----
-2713
1453
772

onlyif mysql # use DIV operator for integer division
query I rowsort label-2304
SELECT DISTINCT col0 + - col2 DIV - col1 col1 FROM tab2
----
7
78
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2304
SELECT DISTINCT col0 + - col2 / - col1 col1 FROM tab2
----
7
78
81

query I rowsort
SELECT - col2 * - col1 + + col2 AS col0 FROM tab2 cor0
----
1560
684
864

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 DISTINCT - cor0.col1 * + cor0.col1 FROM tab2 cor0
----
-289
-3481
-961

query I rowsort
SELECT ALL - cor0.col2 + + cor0.col0 AS col0 FROM tab0 AS cor0
----
-9
34
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab1.col2 * - col2 * tab1.col1 col0 FROM tab1
----
119808
32490
75816

query I rowsort
SELECT - cor0.col1 + - cor0.col1 AS col2 FROM tab1 AS cor0
----
-20
-26
-52

query I rowsort
SELECT DISTINCT - - col1 * cor0.col1 AS col1 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT col1 + col2 + col1 * + col2 * col1 FROM tab0 AS cor0
----
244187
679215
9507

onlyif mysql # use DIV operator for integer division
query I rowsort label-2313
SELECT - col2 DIV - col1 + + col1 FROM tab2 AS cor0
----
19
31
59

skipif mysql # not compatible
query I rowsort label-2313
SELECT - col2 / - col1 + + col1 FROM tab2 AS cor0
----
19
31
59

query I rowsort
SELECT + col0 * + col2 * col2 AS col1 FROM tab0
----
26136
35
598436

onlyif mysql # use DIV operator for integer division
query I rowsort label-2315
SELECT ALL + col1 DIV - col1 + - col1 FROM tab1
----
-11
-14
-27

skipif mysql # not compatible
query I rowsort label-2315
SELECT ALL + col1 / - col1 + - col1 FROM tab1
----
-11
-14
-27

onlyif mysql # use DIV operator for integer division
query I rowsort label-2316
SELECT tab2.col0 DIV col0 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2316
SELECT tab2.col0 / col0 FROM tab2
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-2317
SELECT 30 DIV col2 AS col0 FROM tab0
----
0
0
30

skipif mysql # not compatible
query I rowsort label-2317
SELECT 30 / col2 AS col0 FROM tab0
----
0
0
30

query I rowsort
SELECT DISTINCT ( - 45 ) * col2 FROM tab2
----
-1170
-1215
-1710

onlyif mysql # use DIV operator for integer division
query I rowsort label-2319
SELECT ALL - col1 DIV 3 AS col2 FROM tab1
----
-3
-4
-8

skipif mysql # not compatible
query I rowsort label-2319
SELECT ALL - col1 / 3 AS col2 FROM tab1
----
-3
-4
-8

query I rowsort
SELECT tab0.col2 * col2 * + col0 AS col2 FROM tab0
----
26136
35
598436

query I rowsort
SELECT DISTINCT ( - col1 ) * - cor0.col0 FROM tab0 AS cor0
----
2064
3395
8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 14 * col1 + + col0 + - col1 col0 FROM tab0 AS cor0
----
1142
1272
1296

query I rowsort
SELECT + + col2 * - col2 + cor0.col1 FROM tab2 AS cor0
----
-1427
-617
-698

query I rowsort
SELECT DISTINCT + 88 * col2 FROM tab0
----
2904
7216
88

query I rowsort
SELECT 80 * + col1 AS col1 FROM tab0 AS cor0
----
6880
7280
7760

query I rowsort
SELECT DISTINCT + col2 * - col1 - col1 AS col0 FROM tab0
----
-194
-2924
-7553

query I rowsort
SELECT + col1 - + col2 FROM tab1 WHERE NOT - col2 <> col2 - - col2
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-2328
SELECT + col2 * col1 DIV col0 - - col1 * col2 AS col2 FROM tab1
----
1263
1872
578

skipif mysql # not compatible
query I rowsort label-2328
SELECT + col2 * col1 / col0 - - col1 * col2 AS col2 FROM tab1
----
1263
1872
578

query I rowsort
SELECT + col2 * - col2 * col2 + + col1 * col1 + - col2 FROM tab1
----
-156842
-185150
-884663

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 + + tab2.col2 - col2 / - col1 > col2 * col0
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

query I rowsort
SELECT + col0 * - col0 * tab0.col1 AS col2 FROM tab0
----
-118825
-49536
-720811

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - col2 * col2 col2 FROM tab2 WHERE NULL IN ( col2 )
----

query I rowsort
SELECT col2 * - tab2.col2 * + tab2.col1 FROM tab2
----
-22599
-24548
-39884

onlyif mysql # use DIV operator for integer division
query I rowsort label-2334
SELECT DISTINCT col2 DIV - col0 AS col0 FROM tab1
----
-1
-18
0

skipif mysql # not compatible
query I rowsort label-2334
SELECT DISTINCT col2 / - col0 AS col0 FROM tab1
----
-1
-18
0

query I rowsort
SELECT ALL + col2 * - col0 - - col2 FROM tab0
----
-34
-7216
-759

onlyif mysql # use DIV operator for integer division
query I rowsort label-2336
SELECT ALL col1 DIV - tab1.col0 FROM tab1
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-2336
SELECT ALL col1 / - tab1.col0 FROM tab1
----
-8
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + col0 col0 FROM tab2
----
189
2028
3002

query I rowsort
SELECT col0 * col2 + + col2 AS col2 FROM tab1
----
216
3705
7776

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col1 * - col2 + col0 > NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col2 + - col0 <> + col1 + col1
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) NOT IN ( + col1 )
----

query I rowsort
SELECT - col2 * col1 - + col0 FROM tab1
----
-1328
-1407
-634

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col2 + col1 / - col0 NOT IN ( + col1 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

query I rowsort
SELECT DISTINCT + col0 + col0 * - col1 + col2 * col2 FROM tab0
----
-1286
-3359
-951

onlyif mysql # use DIV operator for integer division
query I rowsort label-2345
SELECT + col0 DIV + col0 AS col2 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2345
SELECT + col0 / + col0 AS col2 FROM tab1
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col1 FROM tab2 WHERE NOT col2 * + col0 + - col0 * col1 + col1 NOT IN ( col1 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-2347
SELECT col1 * tab0.col2 DIV col0 FROM tab0
----
118
2
83

skipif mysql # not compatible
query I rowsort label-2347
SELECT col1 * tab0.col2 / col0 FROM tab0
----
118
2
83

query I rowsort
SELECT - tab2.col1 * col1 + col2 FROM tab2
----
-251
-3455
-934

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT BETWEEN + col1 * + col1 + - col0 + + col2 AND col2 + - col0 * col1
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-2350
SELECT - col0 DIV - col1 + - col0 FROM tab2
----
-7
-75
-77

skipif mysql # not compatible
query I rowsort label-2350
SELECT - col0 / - col1 + - col0 FROM tab2
----
-7
-75
-77

query I rowsort
SELECT - col0 AS col2 FROM tab1 WHERE ( NULL ) = NULL
----

query I rowsort
SELECT DISTINCT + col1 * tab2.col2 - col1 AS col0 FROM tab2
----
1475
629
806

query I rowsort
SELECT + col1 * - tab2.col2 * + col2 + col0 FROM tab2 WHERE NOT NULL >= ( + col0 + + col0 )
----

query I rowsort
SELECT col1 * - col2 AS col2 FROM tab0 WHERE ( NULL ) < ( NULL )
----

query I rowsort
SELECT tab1.col0 + - col0 * - col2 AS col2 FROM tab1
----
165
3712
7760

query I rowsort
SELECT DISTINCT + col2 * col2 + - col0 * col0 FROM tab2
----
-4797
-5408
680

query I rowsort
SELECT + tab2.col0 * - col0 + col2 AS col0 FROM tab2
----
-22
-6058
-6203

query I rowsort
SELECT - col0 - col0 * tab0.col2 * tab0.col1 FROM tab0
----
-3430
-664207
-68136

query I rowsort
SELECT tab2.col2 + - tab2.col0 FROM tab2
----
-41
-52
20

onlyif mysql # use DIV operator for integer division
query I rowsort label-2360
SELECT DISTINCT + col1 - - col2 DIV + col0 AS col0 FROM tab2 AS cor0
----
17
34
59

skipif mysql # not compatible
query I rowsort label-2360
SELECT DISTINCT + col1 - - col2 / + col0 AS col0 FROM tab2 AS cor0
----
17
34
59

query I rowsort
SELECT col2 * + col1 * + cor0.col0 AS col2 FROM tab1 AS cor0
----
36480
4212
99840

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - col2 * - col2 col0 FROM tab1
----
207936
737280
8748

query I rowsort
SELECT ALL - tab0.col0 * - col1 * - col2 AS col1 FROM tab0
----
-3395
-664118
-68112

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( + col1 + - col2 ) < ( col1 * col1 * col0 )
----

query I rowsort
SELECT + cor0.col2 FROM tab2 cor0 WHERE ( NULL ) NOT IN ( col1 )
----

query I rowsort
SELECT DISTINCT - col2 + - cor0.col1 FROM tab2 cor0
----
-55
-58
-85

query I rowsort
SELECT DISTINCT col0 - col1 * col2 FROM tab1 AS cor0
----
-1168
-1401
-506

query I rowsort
SELECT DISTINCT - col1 * - col2 + col0 + - col2 * - col2 AS col2 FROM tab2 AS cor0
----
1573
2169
2288

query I rowsort
SELECT ALL - + 58 * - 13 FROM tab1 AS cor0
----
754
754
754

query I rowsort
SELECT DISTINCT 43 + + col0 AS col0 FROM tab2 cor0
----
121
122
50

query I rowsort
SELECT DISTINCT + 91 + 70 FROM tab1 AS cor0
----
161

onlyif mysql # use DIV operator for integer division
query I rowsort label-2372
SELECT ALL CAST( - 63 AS SIGNED ) DIV col2 - 13 * col0 FROM tab0 AS cor0
----
-1157
-313
-518

skipif mysql # not compatible
query I rowsort label-2372
SELECT ALL CAST ( - 63 AS INTEGER ) / col2 - 13 * col0 FROM tab0 AS cor0
----
-1157
-313
-518

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2373
SELECT + CAST( 77 AS SIGNED ) col0 FROM tab1 cor0
----
77
77
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2373
SELECT + CAST ( 77 AS INTEGER ) col0 FROM tab1 cor0
----
77
77
77

query I rowsort
SELECT - ( + ( col0 ) * - col2 + - 37 ) AS col2 FROM tab1
----
199
3685
7717

query I rowsort
SELECT ALL + col2 + col0 + ( - ( + col1 ) ) FROM tab2 cor0
----
100
3
45

query I rowsort
SELECT DISTINCT col2 * cor0.col0 + ( + col1 ) AS col0 FROM tab1 AS cor0
----
188
3658
7693

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 25 col2 FROM tab1
----
-25
-25
-25

query I rowsort
SELECT col0 * + col1 + col2 * col2 FROM tab1
----
10256
2994
3889

query I rowsort
SELECT DISTINCT 25 AS col1 FROM tab1, tab2 AS cor0, tab1 AS cor1, tab1 cor2
----
25

query I rowsort
SELECT DISTINCT - col1 + + col1 * ( + 80 + - col1 * + 53 ) AS col1 FROM tab1 AS cor0
----
-33774
-4510
-7930

query I rowsort
SELECT ALL col0 - - col0 * + col0 * col0 AS col1 FROM tab1 AS cor0
----
262208
30
512080

query I rowsort
SELECT DISTINCT 29 * - col1 FROM tab2 AS cor0
----
-1711
-493
-899

query I rowsort
SELECT DISTINCT 14 + col0 AS col0 FROM tab2 AS cor0
----
21
92
93

query I rowsort
SELECT ALL cor0.col2 * - 89 FROM tab0 AS cor0
----
-2937
-7298
-89

query I rowsort
SELECT + + cor0.col2 * + col1 + + col2 + col0 AS col2 FROM tab0 cor0
----
133
2895
7633

onlyif mysql # use DIV operator for integer division
query I rowsort label-2386
SELECT DISTINCT - + cor0.col2 DIV + 42 FROM tab1 cor0
----
-1
-2

skipif mysql # not compatible
query I rowsort label-2386
SELECT DISTINCT - + cor0.col2 / + 42 FROM tab1 cor0
----
-1
-2

query I rowsort
SELECT ALL + col2 + col0 * - 29 AS col2 FROM tab0
----
-1014
-2499
-663

query I rowsort
SELECT ALL col0 + col2 + - col0 AS col1 FROM tab2
----
26
27
38

query I rowsort
SELECT + - col2 * - 1 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT DISTINCT col2 * ( col2 ) AS col0 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT ALL + col2 + + 92 FROM tab2 AS cor0
----
118
119
130

query I rowsort
SELECT + cor0.col1 * + ( 63 ) AS col2 FROM tab1 AS cor0
----
1638
630
819

query I rowsort
SELECT DISTINCT - col1 * cor0.col1 * col1 FROM tab1 AS cor0
----
-1000
-17576
-2197

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + cor0.col0 ) + + col2 * + col1 col2 FROM tab1 AS cor0
----
1328
1407
634

onlyif mysql # use DIV operator for integer division
query I rowsort label-2395
SELECT DISTINCT + col2 DIV + 94 - col0 col0 FROM tab1 AS cor0
----
-3
-64
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2395
SELECT DISTINCT + col2 / + 94 - col0 col0 FROM tab1 AS cor0
----
-3
-64
-79

query I rowsort
SELECT ( cor0.col1 ) + - col0 AS col1 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT ALL - col1 * + col2 * - col1 AS col0 FROM tab0 AS cor0
----
244068
679042
9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-2398
SELECT DISTINCT ( + col2 ) DIV cor0.col0 AS col2 FROM tab0 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-2398
SELECT DISTINCT ( + col2 ) / cor0.col0 AS col2 FROM tab0 AS cor0
----
0
1

query I rowsort
SELECT DISTINCT col0 + + 22 AS col0 FROM tab1
----
102
25
86

query I rowsort
SELECT - col0 * - col1 * + col0 FROM tab1
----
234
40960
83200

query I rowsort
SELECT - col0 - + ( + col0 ) AS col2 FROM tab1
----
-128
-160
-6

onlyif mysql # use DIV operator for integer division
query I rowsort label-2402
SELECT col2 + col2 DIV - col0 + col2 AS col0 FROM tab0
----
164
2
65

skipif mysql # not compatible
query I rowsort label-2402
SELECT col2 + col2 / - col0 + col2 AS col0 FROM tab0
----
164
2
65

query I rowsort
SELECT + 40 + col1 AS col2 FROM tab0 AS cor0
----
126
131
137

query I rowsort
SELECT - col1 * col2 + col2 + col2 FROM tab0 AS cor0
----
-2772
-7298
-95

onlyif mysql # use DIV operator for integer division
query I rowsort label-2405
SELECT - 57 DIV col1 AS col1 FROM tab2 AS cor0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-2405
SELECT - 57 / col1 AS col1 FROM tab2 AS cor0
----
-1
-3
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2406
SELECT DISTINCT - - cor0.col1 + - CAST( NULL AS SIGNED ) / - 59 FROM tab2, tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2406
SELECT DISTINCT - - cor0.col1 + - CAST ( NULL AS INTEGER ) / - 59 FROM tab2, tab0 AS cor0
----
NULL

query I rowsort
SELECT - 12 * - col0 AS col2 FROM tab0
----
1068
288
420

query I rowsort
SELECT ALL + + 6 * + 23 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to ed8ffc6ac9c9556014292382cdcbab4e

query I rowsort
SELECT ALL + 75 * col0 FROM tab1 AS cor0
----
225
4800
6000

query I rowsort
SELECT + + 16 * + col0 + col0 * col1 * col0 AS col0 FROM tab2 AS cor0
----
107361
1631
360204

query I rowsort
SELECT + + 43 + + cor0.col2 AS col1 FROM tab0 AS cor0
----
125
44
76

onlyif mysql # use DIV operator for integer division
query I rowsort label-2412
SELECT col1 DIV col0 + + col0 AS col2 FROM tab1
----
11
64
80

skipif mysql # not compatible
query I rowsort label-2412
SELECT col1 / col0 + + col0 AS col2 FROM tab1
----
11
64
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-2413
SELECT + col2 + col2 DIV 4 AS col0 FROM tab0 AS cor0
----
1
102
41

skipif mysql # not compatible
query I rowsort label-2413
SELECT + col2 + col2 / 4 AS col0 FROM tab0 AS cor0
----
1
102
41

query I rowsort
SELECT ALL - 92 * + col1 FROM tab0
----
-7912
-8372
-8924

query I rowsort
SELECT cor0.col2 + col2 * 65 * col2 FROM tab2 AS cor0
----
43966
47412
93898

query I rowsort
SELECT ALL + 15 + + cor0.col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 0291fa0421bf18712af339e6997789e9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * - 72 * - cor0.col2 col1 FROM tab1 cor0
----
101088
41040
89856

query I rowsort
SELECT DISTINCT - tab2.col2 AS col1 FROM tab2, tab0, tab0 AS cor0
----
-26
-27
-38

query I rowsort
SELECT 46 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 2f97924b57b73102233df7c9ce8ad602

query I rowsort
SELECT - tab1.col2 + - cor0.col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 928e3fc807e84e1ab13b20f309d47139

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 57 col1 FROM tab0
----
57

query I rowsort
SELECT - col2 * + 27 * - col1 AS col0 FROM tab1
----
15390
33696
37908

query I rowsort
SELECT ALL - col0 + col2 + + col1 AS col2 FROM tab2
----
-24
51
7

query I rowsort
SELECT + col1 + col2 + 56 FROM tab2 AS cor0
----
111
114
141

query I rowsort
SELECT DISTINCT col1 * + col0 * - col2 FROM tab2 AS cor0
----
-119652
-51034
-5859

query I rowsort
SELECT col1 * ( col1 ) + - col2 + - col2 AS col2 FROM tab1 cor0
----
-14
-23
568

query I rowsort
SELECT ALL col1 * - 32 + - col1 FROM tab1 AS cor0
----
-330
-429
-858

query I rowsort
SELECT + col1 + col2 + - col2 * col1 * - col2 AS col1 FROM tab2 AS cor0
----
22657
24603
39969

query I rowsort
SELECT - col1 - 94 FROM tab2 AS cor0
----
-111
-125
-153

query I rowsort
SELECT - + 33 - - col1 AS col0 FROM tab0 AS cor0
----
53
58
64

query I rowsort
SELECT ALL - col2 + + col0 - - col1 FROM tab1
----
-25
-3
17

query I rowsort
SELECT - col1 * col0 - col1 FROM tab0 AS cor0
----
-2150
-3492
-8190

onlyif mysql # use DIV operator for integer division
query I rowsort label-2433
SELECT cor0.col2 * cor0.col1 + - col0 DIV - col0 FROM tab1 AS cor0
----
1249
1405
571

skipif mysql # not compatible
query I rowsort label-2433
SELECT cor0.col2 * cor0.col1 + - col0 / - col0 FROM tab1 AS cor0
----
1249
1405
571

query I rowsort
SELECT + + cor0.col2 + + col1 * + col1 FROM tab2 AS cor0
----
327
3507
988

query I rowsort
SELECT cor0.col1 * + ( + col0 ) * + col2 FROM tab1 AS cor0
----
36480
4212
99840

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2436
SELECT + col0 + - CAST( + 78 AS SIGNED ) FROM tab1 cor0
----
-14
-75
2

skipif mysql # not compatible
query I rowsort label-2436
SELECT + col0 + - CAST ( + 78 AS INTEGER ) FROM tab1 cor0
----
-14
-75
2

onlyif mysql # use DIV operator for integer division
query I rowsort label-2437
SELECT DISTINCT + col0 DIV col0 + col0 + col1 AS col2 FROM tab1 AS cor0
----
30
75
94

skipif mysql # not compatible
query I rowsort label-2437
SELECT DISTINCT + col0 / col0 + col0 + col1 AS col2 FROM tab1 AS cor0
----
30
75
94

query I rowsort
SELECT col1 + ( ( col2 ) ) AS col2 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT DISTINCT col1 * col1 * + col1 AS col1 FROM tab1 AS cor0
----
1000
17576
2197

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * tab2.col1 * 46 col0 FROM tab2
----
13294
160126
44206

query I rowsort
SELECT + col2 * - 69 + 75 AS col1 FROM tab2 AS cor0
----
-1719
-1788
-2547

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - cor0.col2 * + 76 col1 FROM tab2 AS cor0
----
1976
2052
2888

query I rowsort
SELECT DISTINCT + - col0 * 95 FROM tab2 AS cor0
----
-665
-7410
-7505

query I rowsort
SELECT col1 * + ( - col0 ) FROM tab0 cor0
----
-2064
-3395
-8099

query I rowsort
SELECT - 45 * 30 FROM tab0 AS cor0
----
-1350
-1350
-1350

query I rowsort
SELECT - cor0.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-2447
SELECT - 39 DIV col0 AS col2 FROM tab0 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-2447
SELECT - 39 / col0 AS col2 FROM tab0 AS cor0
----
-1
-1
0

query I rowsort
SELECT cor0.col1 + + col2 * - col2 AS col2 FROM tab1 AS cor0
----
-2890
-3239
-9203

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2449
SELECT ALL 76 * col2 * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2449
SELECT ALL 76 * col2 * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2450
SELECT ALL + + col1 + col0 DIV col0 FROM tab2 cor0
----
18
32
60

skipif mysql # not compatible
query I rowsort label-2450
SELECT ALL + + col1 + col0 / col0 FROM tab2 cor0
----
18
32
60

onlyif mysql # use DIV operator for integer division
query I rowsort label-2451
SELECT - ( col0 ) DIV cor0.col1 AS col1 FROM tab1 AS cor0
----
-6
-6
0

skipif mysql # not compatible
query I rowsort label-2451
SELECT - ( col0 ) / cor0.col1 AS col1 FROM tab1 AS cor0
----
-6
-6
0

query I rowsort
SELECT + 90 AS col1 FROM tab0, tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
27 values hashing to 5d25a546acf3ae171e731e50adc0112e

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2453
SELECT DISTINCT + + col0 * col1 + + CAST( col0 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
2088
3430
8188

skipif mysql # not compatible
query I rowsort label-2453
SELECT DISTINCT + + col0 * col1 + + CAST ( col0 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT ALL cor0.col2 * cor0.col0 AS col0 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT DISTINCT + col1 + col0 * col2 * 25 AS col1 FROM tab2 AS cor0
----
4756
50759
75067

query I rowsort
SELECT DISTINCT + col1 + - col1 * col0 AS col1 FROM tab1 AS cor0
----
-1027
-52
-630

query I rowsort
SELECT DISTINCT - col2 + col1 * - 10 FROM tab0 AS cor0
----
-893
-971
-992

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 20 col2 FROM tab1 AS cor0
----
20
20
20

query I rowsort
SELECT DISTINCT + 88 * col1 AS col0 FROM tab0
----
7568
8008
8536

query I rowsort
SELECT tab0.col1 - tab0.col0 AS col1 FROM tab0
----
2
62
62

query I rowsort
SELECT DISTINCT + 15 * - 27 FROM tab2
----
-405

query I rowsort
SELECT ALL + + 12 * + col0 + 85 FROM tab2 AS cor0
----
1021
1033
169

query I rowsort
SELECT ALL 31 * col2 + col0 * 21 FROM tab0 AS cor0
----
1527
4411
766

onlyif mysql # use DIV operator for integer division
query I rowsort label-2464
SELECT ALL - col2 DIV - col0 + + 48 AS col0 FROM tab2 AS cor0
----
48
48
51

skipif mysql # not compatible
query I rowsort label-2464
SELECT ALL - col2 / - col0 + + 48 AS col0 FROM tab2 AS cor0
----
48
48
51

query I rowsort
SELECT 45 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050

query I rowsort
SELECT col0 + col1 * col0 FROM tab0 cor0
----
2088
3430
8188

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2467
SELECT CAST( - 96 AS SIGNED ) + cor0.col0 FROM tab1, tab2 cor0, tab1 AS cor1
----
27 values hashing to 7e460cff20d4765ab9140ff0ef53ab1d

skipif mysql # not compatible
query I rowsort label-2467
SELECT CAST ( - 96 AS INTEGER ) + cor0.col0 FROM tab1, tab2 cor0, tab1 AS cor1
----
27 values hashing to 7e460cff20d4765ab9140ff0ef53ab1d

query I rowsort
SELECT ( col0 ) * + 34 AS col0 FROM tab2 AS cor0
----
238
2652
2686

query I rowsort
SELECT cor0.col1 + tab1.col2 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 35de0b553e14f89ea44b7652e1ff642c

onlyif mysql # use DIV operator for integer division
query I rowsort label-2470
SELECT DISTINCT 89 * - col0 * col1 + ( col2 ) DIV col2 AS col0 FROM tab1 AS cor0
----
-56959
-6941
-92559

skipif mysql # not compatible
query I rowsort label-2470
SELECT DISTINCT 89 * - col0 * col1 + ( col2 ) / col2 AS col0 FROM tab1 AS cor0
----
-56959
-6941
-92559

query I rowsort
SELECT DISTINCT + - cor0.col2 + col1 AS col2 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT + ( 10 ) FROM tab2 AS cor0
----
10
10
10

query I rowsort
SELECT ALL + col0 + + ( - 6 + - col2 ) FROM tab2
----
-26
35
46

query I rowsort
SELECT col0 + 24 FROM tab2
----
102
103
31

query I rowsort
SELECT + 32 + 15 AS col2 FROM tab0
----
47
47
47

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2476
SELECT ( col1 ) + col2 * CAST( 93 AS SIGNED ) * + col2 AS col0 FROM tab1 cor0
----
271214
302167
857101

skipif mysql # not compatible
query I rowsort label-2476
SELECT ( col1 ) + col2 * CAST ( 93 AS INTEGER ) * + col2 AS col0 FROM tab1 cor0
----
271214
302167
857101

query I rowsort
SELECT + cor0.col0 + - ( + col1 ) * col1 AS col2 FROM tab2 AS cor0
----
-210
-3403
-954

onlyif mysql # use DIV operator for integer division
query I rowsort label-2478
SELECT ALL - cor0.col2 DIV + 29 + - cor0.col2 FROM tab2 AS cor0
----
-26
-27
-39

skipif mysql # not compatible
query I rowsort label-2478
SELECT ALL - cor0.col2 / + 29 + - cor0.col2 FROM tab2 AS cor0
----
-26
-27
-39

query I rowsort
SELECT DISTINCT col1 * - col1 + - cor0.col1 FROM tab2 cor0
----
-306
-3540
-992

query I rowsort
SELECT - ( - 27 ) AS col0 FROM tab2 AS cor0
----
27
27
27

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2481
SELECT - col2 * + CAST( NULL AS SIGNED ) / - 55 + + col0 + cor0.col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2481
SELECT - col2 * + CAST ( NULL AS INTEGER ) / - 55 + + col0 + cor0.col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2482
SELECT - col1 DIV + col2 FROM tab0 cor0
----
-1
-2
-97

skipif mysql # not compatible
query I rowsort label-2482
SELECT - col1 / + col2 FROM tab0 cor0
----
-1
-2
-97

query I rowsort
SELECT col1 * ( col0 ) + col2 + - col1 FROM tab0 AS cor0
----
2011
3299
8090

onlyif mysql # use DIV operator for integer division
query I rowsort label-2484
SELECT cor0.col0 DIV col1 AS col1 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2484
SELECT cor0.col0 / col1 AS col1 FROM tab0 cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2485
SELECT ALL - + col2 / + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2485
SELECT ALL - + col2 / + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - col2 * col0 + + cor0.col2 FROM tab0 AS cor0
----
36
7380
825

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 * - col1 col1 FROM tab0 AS cor0
----
-2838
-7462
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - cor0.col1 * col1 col2 FROM tab1 AS cor0
----
-43
-622
-73

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2489
SELECT cor0.col1 * CAST( NULL AS SIGNED ) / 9 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2489
SELECT cor0.col1 * CAST ( NULL AS INTEGER ) / 9 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col2 * 28 + + col2 FROM tab0 AS cor0
----
2378
29
957

query I rowsort
SELECT DISTINCT + col2 + + col0 * - ( + ( tab1.col1 ) ) * + ( + col0 ) AS col0 FROM tab1
----
-180
-40903
-83104

query I rowsort
SELECT col0 + col0 AS col1 FROM tab2 cor0
----
14
156
158

query I rowsort
SELECT DISTINCT 3 + + col1 * tab1.col2 AS col1 FROM tab1
----
1251
1407
573

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 22 col2 FROM tab1, tab2 cor0
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

query I rowsort
SELECT ALL + col2 + 1 AS col0 FROM tab1 cor0
----
55
58
97

query I rowsort
SELECT DISTINCT - - col1 * + 65 AS col1 FROM tab1 AS cor0
----
1690
650
845

query I rowsort
SELECT ALL + col2 * - 46 AS col0 FROM tab1 AS cor0
----
-2484
-2622
-4416

query I rowsort
SELECT tab0.col1 + - 42 * - col0 FROM tab0
----
1094
1567
3829

query I rowsort
SELECT ALL + cor1.col2 * + ( 46 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 2f53a5db2c498f0c4222038921362b37

onlyif mysql # use DIV operator for integer division
query I rowsort label-2500
SELECT DISTINCT - col0 DIV col0 + col2 FROM tab1 cor0
----
53
56
95

skipif mysql # not compatible
query I rowsort label-2500
SELECT DISTINCT - col0 / col0 + col2 FROM tab1 cor0
----
53
56
95

query I rowsort
SELECT DISTINCT - ( col0 ) + - col0 AS col2 FROM tab0 AS cor0
----
-178
-48
-70

query I rowsort
SELECT ALL - + col1 + - col2 * cor0.col1 * - 55 FROM tab2 AS cor0
----
35513
46004
84311

onlyif mysql # use DIV operator for integer division
query I rowsort label-2503
SELECT - col0 * col0 + - 18 DIV - col1 + + col0 DIV + col0 FROM tab0
----
-1224
-575
-7920

skipif mysql # not compatible
query I rowsort label-2503
SELECT - col0 * col0 + - 18 / - col1 + + col0 / + col0 FROM tab0
----
-1224
-575
-7920

onlyif mysql # use DIV operator for integer division
query I rowsort label-2504
SELECT DISTINCT - col2 * col2 DIV tab1.col2 + + col2 + col2 * col0 FROM tab1
----
162
3648
7680

skipif mysql # not compatible
query I rowsort label-2504
SELECT DISTINCT - col2 * col2 / tab1.col2 + + col2 + col2 * col0 FROM tab1
----
162
3648
7680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2505
SELECT DISTINCT col1 * + col1 + CAST( col2 AS SIGNED ) + - col2 AS col2 FROM tab2
----
289
3481
961

skipif mysql # not compatible
query I rowsort label-2505
SELECT DISTINCT col1 * + col1 + CAST ( col2 AS INTEGER ) + - col2 AS col2 FROM tab2
----
289
3481
961

query I rowsort
SELECT ALL col0 * + col0 - + 47 AS col0 FROM tab2 AS cor0
----
2
6037
6194

query I rowsort
SELECT - 76 + cor0.col1 FROM tab2 AS cor0
----
-17
-45
-59

query I rowsort
SELECT - + cor0.col1 - col0 FROM tab0 AS cor0
----
-110
-132
-180

onlyif mysql # use DIV operator for integer division
query I rowsort label-2509
SELECT ALL col1 * col1 DIV - 24 - cor0.col2 FROM tab0 cor0
----
-341
-393
-427

skipif mysql # not compatible
query I rowsort label-2509
SELECT ALL col1 * col1 / - 24 - cor0.col2 FROM tab0 cor0
----
-341
-393
-427

query I rowsort
SELECT - 64 * - col1 FROM tab2 AS cor0
----
1088
1984
3776

query I rowsort
SELECT DISTINCT + 13 * - cor0.col0 AS col1 FROM tab2 AS cor0
----
-1014
-1027
-91

query I rowsort
SELECT + col0 + col1 + - col1 AS col1 FROM tab0
----
24
35
89

query I rowsort
SELECT + col1 - + 20 AS col2 FROM tab0 AS cor0
----
66
71
77

query I rowsort
SELECT col2 * + cor0.col1 - - col1 FROM tab2 cor0
----
1593
663
868

query I rowsort
SELECT - + col2 * col0 * - col2 FROM tab1 AS cor0
----
207936
737280
8748

query I rowsort
SELECT DISTINCT - + ( col2 ) * - col2 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT + cor1.col1 AS col1 FROM tab0, tab0 AS cor0, tab1 cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

onlyif mysql # use DIV operator for integer division
query I rowsort label-2518
SELECT ALL ( + col0 ) + col2 DIV - 61 FROM tab2 AS cor0
----
7
78
79

skipif mysql # not compatible
query I rowsort label-2518
SELECT ALL ( + col0 ) + col2 / - 61 FROM tab2 AS cor0
----
7
78
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-2519
SELECT - col1 + 57 DIV col1 FROM tab0 AS cor0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-2519
SELECT - col1 + 57 / col1 FROM tab0 AS cor0
----
-86
-91
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-2520
SELECT 49 DIV - col2 col2 FROM tab0 AS cor0
----
-1
-49
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2520
SELECT 49 / - col2 col2 FROM tab0 AS cor0
----
-1
-49
0

query I rowsort
SELECT DISTINCT cor1.col1 AS col1 FROM tab1, tab1 cor0, tab2 AS cor1
----
17
31
59

query I rowsort
SELECT DISTINCT + col0 * + 9 FROM tab2
----
63
702
711

query I rowsort
SELECT ALL ( - 93 ) * tab2.col0 * - col1 FROM tab2
----
124899
20181
427986

query I rowsort
SELECT DISTINCT 85 FROM tab0, tab1, tab2 AS cor0
----
85

onlyif mysql # use DIV operator for integer division
query I rowsort label-2525
SELECT DISTINCT - 29 + col1 DIV col1 AS col2 FROM tab0 AS cor0
----
-28

skipif mysql # not compatible
query I rowsort label-2525
SELECT DISTINCT - 29 + col1 / col1 AS col2 FROM tab0 AS cor0
----
-28

query I rowsort
SELECT ALL - - col1 * col0 + - col2 FROM tab2 AS cor0
----
1305
190
4576

query I rowsort
SELECT ALL ( - ( + col1 ) ) AS col0 FROM tab1 cor0
----
-10
-13
-26

query I rowsort
SELECT DISTINCT - ( col1 ) + col2 FROM tab0 AS cor0
----
-53
-9
-96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2529
SELECT - - CAST( - col1 AS SIGNED ) * col0 * col1 col1 FROM tab0 AS cor0
----
-177504
-329315
-737009

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2529
SELECT - - CAST ( - col1 AS INTEGER ) * col0 * col1 col1 FROM tab0 AS cor0
----
-177504
-329315
-737009

query I rowsort
SELECT + col1 + 2 AS col0 FROM tab0
----
88
93
99

query I rowsort
SELECT ALL - col1 - + 9 AS col2 FROM tab1
----
-19
-22
-35

query I rowsort
SELECT ALL 23 * col2 - - tab1.col1 FROM tab1
----
1268
1321
2221

query I rowsort
SELECT DISTINCT col1 + col2 - col0 FROM tab1
----
29
3
77

query I rowsort
SELECT DISTINCT + ( col1 + ( 61 ) ) FROM tab0
----
147
152
158

query I rowsort
SELECT ALL + cor0.col0 AS col2 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT ALL col2 + - 79 + col0 AS col2 FROM tab2 AS cor0
----
-45
25
38

query I rowsort
SELECT DISTINCT + 44 * - col2 + col0 * col2 FROM tab0
----
-660
-9
3690

onlyif mysql # use DIV operator for integer division
query I rowsort label-2538
SELECT - col2 - - tab2.col2 * ( - 26 ) DIV - col0 AS col1 FROM tab2
----
-18
-26
73

skipif mysql # not compatible
query I rowsort label-2538
SELECT - col2 - - tab2.col2 * ( - 26 ) / - col0 AS col1 FROM tab2
----
-18
-26
73

onlyif mysql # use DIV operator for integer division
query I rowsort label-2539
SELECT ALL + - col2 DIV + ( - col2 ) + col1 AS col1 FROM tab0 AS cor0
----
87
92
98

skipif mysql # not compatible
query I rowsort label-2539
SELECT ALL + - col2 / + ( - col2 ) + col1 AS col1 FROM tab0 AS cor0
----
87
92
98

query I rowsort
SELECT DISTINCT + col0 * - col2 * col1 - col0 * + 30 FROM tab0 AS cor0
----
-4445
-666788
-68832

query I rowsort
SELECT ALL - - col2 * col1 + ( - col1 ) FROM tab2 AS cor0
----
1475
629
806

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - 75 col2 FROM tab0 AS cor0
----
6450
6825
7275

query I rowsort
SELECT + col2 * - 91 + + 16 * - tab0.col1 FROM tab0
----
-1643
-4379
-8918

query I rowsort
SELECT DISTINCT + + col1 * col0 + col2 * col2 AS col2 FROM tab2 cor0
----
2787
5278
946

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2545
SELECT ALL - CAST( NULL AS SIGNED ) * col1 + + col0 / col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2545
SELECT ALL - CAST ( NULL AS INTEGER ) * col1 + + col0 / col2 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2546
SELECT ALL col2 DIV + col1 + - col1 FROM tab1 cor0
----
-24
-5
-6

skipif mysql # not compatible
query I rowsort label-2546
SELECT ALL col2 / + col1 + - col1 FROM tab1 cor0
----
-24
-5
-6

query I rowsort
SELECT 15 + - 53 FROM tab2 AS cor0
----
-38
-38
-38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2548
SELECT ALL + + CAST( col2 AS SIGNED ) * col0 + - 84 FROM tab1 AS cor0
----
3564
7596
78

skipif mysql # not compatible
query I rowsort label-2548
SELECT ALL + + CAST ( col2 AS INTEGER ) * col0 + - 84 FROM tab1 AS cor0
----
3564
7596
78

query I rowsort
SELECT DISTINCT - 91 * 6 FROM tab0 AS cor0
----
-546

query I rowsort
SELECT DISTINCT cor0.col2 * + cor0.col1 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT DISTINCT - 97 * 96 AS col1 FROM tab0 AS cor0
----
-9312

query I rowsort
SELECT ALL cor0.col0 - cor0.col1 AS col2 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT + col0 + + col2 * 66 FROM tab2
----
1789
1794
2587

query I rowsort
SELECT DISTINCT + + ( + cor0.col1 ) * + cor0.col2 * - 81 + - 7 * col2 FROM tab2 AS cor0
----
-124436
-52592
-67986

onlyif mysql # use DIV operator for integer division
query I rowsort label-2555
SELECT DISTINCT cor0.col0 * col2 + col2 DIV cor0.col1 + col1 FROM tab1 cor0
----
190
3663
7700

skipif mysql # not compatible
query I rowsort label-2555
SELECT DISTINCT cor0.col0 * col2 + col2 / cor0.col1 + col1 FROM tab1 cor0
----
190
3663
7700

query I rowsort
SELECT DISTINCT - ( + col1 ) - cor0.col0 * col2 FROM tab1 AS cor0
----
-188
-3658
-7693

query I rowsort
SELECT 80 * + cor0.col0 FROM tab0 AS cor0
----
1920
2800
7120

query I rowsort
SELECT + ( + col1 ) * col2 + - col2 + col0 FROM tab2 cor0
----
1586
687
817

query I rowsort
SELECT ALL 63 + + col1 FROM tab1 AS cor0
----
73
76
89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2560
SELECT DISTINCT - col1 + - col2 * CAST( - col0 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-62
706
7207

skipif mysql # not compatible
query I rowsort label-2560
SELECT DISTINCT - col1 + - col2 * CAST ( - col0 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-62
706
7207

onlyif mysql # use DIV operator for integer division
query I rowsort label-2561
SELECT - 87 * col2 + CAST( col1 AS SIGNED ) + - cor0.col1 DIV - col0 AS col2 FROM tab1 AS cor0
----
-4664
-4949
-8339

skipif mysql # not compatible
query I rowsort label-2561
SELECT - 87 * col2 + CAST ( col1 AS INTEGER ) + - cor0.col1 / - col0 AS col2 FROM tab1 AS cor0
----
-4664
-4949
-8339

query I rowsort
SELECT + - col1 + - cor0.col2 + - cor0.col1 FROM tab1 AS cor0
----
-106
-122
-77

query I rowsort
SELECT - col1 + col0 + col2 * + col0 FROM tab2 cor0
----
165
2047
3064

query I rowsort
SELECT DISTINCT - col2 + col2 * + col0 * + col1 FROM tab2 AS cor0
----
119626
50996
5832

query I rowsort
SELECT ALL + ( col2 ) + + col0 + 33 AS col2 FROM tab0 AS cor0
----
204
69
90

query I rowsort
SELECT ALL + 77 + + col1 * col1 * 33 FROM tab1 AS cor0
----
22385
3377
5654

query I rowsort
SELECT DISTINCT - 47 AS col1 FROM tab1 AS cor0
----
-47

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2568
SELECT DISTINCT 57 * cor0.col1 / CAST( NULL AS SIGNED ) AS col2 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2568
SELECT DISTINCT 57 * cor0.col1 / CAST ( NULL AS INTEGER ) AS col2 FROM tab1 cor0
----
NULL

query I rowsort
SELECT + col2 * col0 + cor0.col1 AS col2 FROM tab1 AS cor0
----
188
3658
7693

query I rowsort
SELECT ALL col0 * - col1 + - col1 AS col2 FROM tab1 cor0
----
-104
-1053
-650

query I rowsort
SELECT ALL 52 + col0 * + ( - 24 ) + col2 FROM tab2
----
-1794
-1806
-89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2572
SELECT - CAST( col2 AS SIGNED ) - + col0 AS col0 FROM tab1 AS cor0
----
-121
-176
-57

skipif mysql # not compatible
query I rowsort label-2572
SELECT - CAST ( col2 AS INTEGER ) - + col0 AS col0 FROM tab1 AS cor0
----
-121
-176
-57

query I rowsort
SELECT - col0 + + 7 + - col0 AS col1 FROM tab1 AS cor0
----
-121
-153
1

query I rowsort
SELECT + 67 + + 72 + col0 AS col2 FROM tab1 AS cor0
----
142
203
219

query I rowsort
SELECT ALL - ( col2 ) * col2 AS col0 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT 1 * - 67 AS col1 FROM tab0
----
-67
-67
-67

query I rowsort
SELECT DISTINCT col1 * - 2 AS col1 FROM tab1 cor0
----
-20
-26
-52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 - col2 col0 FROM tab0 AS cor0
----
-9
34
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-2579
SELECT ALL + - ( + col0 ) DIV + col0 AS col1 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2579
SELECT ALL + - ( + col0 ) / + col0 AS col1 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ( + col1 ) + col0 FROM tab0 cor0
----
110
132
180

query I rowsort
SELECT ALL - col0 * col2 + - col1 * ( cor0.col0 ) FROM tab1 cor0
----
-240
-4288
-8720

query I rowsort
SELECT ( - col2 ) * cor0.col1 + cor0.col0 AS col0 FROM tab0 AS cor0
----
-2814
-62
-7373

onlyif mysql # use DIV operator for integer division
query I rowsort label-2583
SELECT + ( col1 ) DIV col2 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2583
SELECT + ( col1 ) / col2 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + + 64 AS col1 FROM tab2 cor0
----
64
64
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 80 + 97 col2 FROM tab0 AS cor0
----
177

query I rowsort
SELECT + 60 * 78 * col2 AS col0 FROM tab2 AS cor0
----
121680
126360
177840

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2587
SELECT DISTINCT + - CAST( NULL AS SIGNED ) + + cor0.col1 AS col1 FROM tab1, tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2587
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) + + cor0.col1 AS col1 FROM tab1, tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL + tab0.col2 * col0 + - col1 AS col1 FROM tab0
----
-62
706
7207

onlyif mysql # use DIV operator for integer division
query I rowsort label-2589
SELECT ALL - col1 DIV col0 + col1 AS col0 FROM tab1
----
10
13
18

skipif mysql # not compatible
query I rowsort label-2589
SELECT ALL - col1 / col0 + col1 AS col0 FROM tab1
----
10
13
18

query I rowsort
SELECT + ( 57 ) + cor0.col2 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 2caa5bde633830082d14373d28dcc1a9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 + - cor0.col1 col2 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT ALL + - cor0.col0 * col2 + + col1 * + col1 FROM tab0 AS cor0
----
6604
9374
983

query I rowsort
SELECT DISTINCT col0 * + cor0.col2 FROM tab2 cor0
----
189
2028
3002

query I rowsort
SELECT + col2 + - 50 * 38 * - col2 FROM tab1 AS cor0
----
102654
108357
182496

query I rowsort
SELECT ( col0 + + 83 ) AS col2 FROM tab2
----
161
162
90

query I rowsort
SELECT ALL tab1.col2 * ( col1 ) FROM tab1
----
1248
1404
570

query I rowsort
SELECT ALL col2 * + ( col0 * col2 ) FROM tab0 AS cor0
----
26136
35
598436

query I rowsort
SELECT 97 * 72 FROM tab2 AS cor0
----
6984
6984
6984

query I rowsort
SELECT - 72 * + col2 AS col0 FROM tab0 cor0
----
-2376
-5904
-72

onlyif mysql # use DIV operator for integer division
query I rowsort label-2600
SELECT - col0 DIV tab2.col1 + - col1 FROM tab2
----
-21
-31
-60

skipif mysql # not compatible
query I rowsort label-2600
SELECT - col0 / tab2.col1 + - col1 FROM tab2
----
-21
-31
-60

query I rowsort
SELECT 46 * + col1 * + tab1.col1 FROM tab1
----
31096
4600
7774

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 * + col2 col0 FROM tab1 cor0
----
-2916
-3249
-9216

onlyif mysql # use DIV operator for integer division
query I rowsort label-2603
SELECT ALL + col0 DIV + col1 + col2 * col0 FROM tab0 AS cor0
----
35
7298
792

skipif mysql # not compatible
query I rowsort label-2603
SELECT ALL + col0 / + col1 + col2 * col0 FROM tab0 AS cor0
----
35
7298
792

onlyif mysql # use DIV operator for integer division
query I rowsort label-2604
SELECT DISTINCT col1 * col2 + col0 DIV col2 - col1 FROM tab1 AS cor0
----
1235
1378
561

skipif mysql # not compatible
query I rowsort label-2604
SELECT DISTINCT col1 * col2 + col0 / col2 - col1 FROM tab1 AS cor0
----
1235
1378
561

query I rowsort
SELECT + col1 + col0 * 2 FROM tab0 AS cor0
----
134
167
269

query I rowsort
SELECT DISTINCT col1 + + col2 * col2 + - 54 FROM tab0 AS cor0
----
1121
44
6761

query I rowsort
SELECT ALL + 72 + + cor0.col2 FROM tab0 AS cor0
----
105
154
73

query I rowsort
SELECT 33 + - cor0.col1 FROM tab2 cor0
----
-26
16
2

onlyif mysql # use DIV operator for integer division
query I rowsort label-2609
SELECT DISTINCT - 54 DIV col1 AS col0 FROM tab1
----
-2
-4
-5

skipif mysql # not compatible
query I rowsort label-2609
SELECT DISTINCT - 54 / col1 AS col0 FROM tab1
----
-2
-4
-5

query I rowsort
SELECT DISTINCT + col1 + + col2 + + col1 AS col2 FROM tab0 AS cor0
----
195
205
264

query I rowsort
SELECT DISTINCT - 69 + - col0 AS col1 FROM tab1 AS cor0
----
-133
-149
-72

onlyif mysql # use DIV operator for integer division
query I rowsort label-2612
SELECT ALL + col0 DIV ( + col0 * col1 ) AS col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2612
SELECT ALL + col0 / ( + col0 * col1 ) AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - + col0 + cor0.col2 * col2 AS col2 FROM tab2 AS cor0
----
1365
598
722

query I rowsort
SELECT DISTINCT - ( col1 * + 81 + col0 ) AS col1 FROM tab2
----
-1456
-2518
-4857

query I rowsort
SELECT col2 + + 11 AS col1 FROM tab0 AS cor0
----
12
44
93

query I rowsort
SELECT + + 80 * - 52 + + col0 FROM tab1 AS cor0
----
-4080
-4096
-4157

query I rowsort
SELECT + 9 * col0 + - col1 FROM tab0 cor0
----
130
218
710

query I rowsort
SELECT ALL cor0.col1 * + col1 + col1 FROM tab1 AS cor0
----
110
182
702

query I rowsort
SELECT ALL + 66 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 897b6122ac98340b78905f39d81897fc

query I rowsort
SELECT col0 * 33 AS col0 FROM tab0
----
1155
2937
792

onlyif mysql # use DIV operator for integer division
query I rowsort label-2621
SELECT + col2 + - col0 DIV cor0.col0 AS col0 FROM tab0 AS cor0
----
0
32
81

skipif mysql # not compatible
query I rowsort label-2621
SELECT + col2 + - col0 / cor0.col0 AS col0 FROM tab0 AS cor0
----
0
32
81

query I rowsort
SELECT col0 * + col2 + col0 * - ( col1 ) AS col2 FROM tab1 AS cor0
----
3008
6640
84

query I rowsort
SELECT + 53 * - col0 AS col1 FROM tab2 AS cor0
----
-371
-4134
-4187

query I rowsort
SELECT ALL - tab1.col2 AS col1 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e

query I rowsort
SELECT + col0 * - cor0.col1 + + cor0.col2 * - ( + col2 ) FROM tab2 AS cor0
----
-2787
-5278
-946

query I rowsort
SELECT ALL col1 + 62 AS col1 FROM tab2
----
121
79
93

query I rowsort
SELECT ( + col0 ) + + col0 * col0 FROM tab2
----
56
6162
6320

query I rowsort
SELECT ALL + col0 * - col0 + - ( cor0.col0 ) FROM tab2 cor0
----
-56
-6162
-6320

query I rowsort
SELECT DISTINCT col1 * col0 + - col1 * - 28 AS col2 FROM tab2 AS cor0
----
1085
1819
6254

query I rowsort
SELECT ALL col2 + 5 * col2 * tab1.col1 FROM tab1
----
2907
6336
7074

query I rowsort
SELECT 59 * 26 FROM tab2
----
1534
1534
1534

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col1 ) * - col1 + + col1 * col2 col2 FROM tab2 AS cor0
----
-124
-1947
357

query I rowsort
SELECT DISTINCT ( 35 ) * col0 + + 19 FROM tab1
----
124
2259
2819

query I rowsort
SELECT DISTINCT col0 * + col1 + + ( + 67 ) FROM tab0 AS cor0
----
2131
3462
8166

query I rowsort
SELECT DISTINCT + col1 + + cor0.col2 * + 14 AS col2 FROM tab0 AS cor0
----
111
1239
548

onlyif mysql # use DIV operator for integer division
query I rowsort label-2636
SELECT ALL + - col0 + col1 DIV cor0.col1 AS col2 FROM tab2 AS cor0
----
-6
-77
-78

skipif mysql # not compatible
query I rowsort label-2636
SELECT ALL + - col0 + col1 / cor0.col1 AS col2 FROM tab2 AS cor0
----
-6
-77
-78

query I rowsort
SELECT + - 6 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e92b2679faac7be63701967e3f0c0934

query I rowsort
SELECT - 75 + - tab2.col0 FROM tab2
----
-153
-154
-82

onlyif mysql # use DIV operator for integer division
query I rowsort label-2639
SELECT - - 93 + col1 DIV - col1 AS col0 FROM tab0 AS cor0
----
92
92
92

skipif mysql # not compatible
query I rowsort label-2639
SELECT - - 93 + col1 / - col1 AS col0 FROM tab0 AS cor0
----
92
92
92

query I rowsort
SELECT ALL + ( - col0 ) * - col2 + cor0.col1 AS col1 FROM tab2 cor0
----
2087
220
3019

onlyif mysql # use DIV operator for integer division
query I rowsort label-2641
SELECT ALL col0 + - col2 * col0 + + col0 DIV col2 FROM tab0 AS cor0
----
-7208
-768
35

skipif mysql # not compatible
query I rowsort label-2641
SELECT ALL col0 + - col2 * col0 + + col0 / col2 FROM tab0 AS cor0
----
-7208
-768
35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 0 col2 FROM tab2 cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2643
SELECT DISTINCT - - 16 * - col2 + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2643
SELECT DISTINCT - - 16 * - col2 + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + + cor0.col1 + col1 AS col0 FROM tab2 AS cor0
----
118
34
62

query I rowsort
SELECT DISTINCT - 41 - col2 FROM tab1 cor0
----
-137
-95
-98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2646
SELECT - + col1 * + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2646
SELECT - + col1 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2647
SELECT col2 + CAST( + col2 + col2 AS SIGNED ) AS col1 FROM tab2
----
114
78
81

skipif mysql # not compatible
query I rowsort label-2647
SELECT col2 + CAST ( + col2 + col2 AS INTEGER ) AS col1 FROM tab2
----
114
78
81

query I rowsort
SELECT ALL + col1 - - 75 FROM tab0
----
161
166
172

query I rowsort
SELECT + + col1 + + col1 * cor0.col1 AS col2 FROM tab0 AS cor0
----
7482
8372
9506

query I rowsort
SELECT - col0 * - ( + col0 ) FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT DISTINCT + - col2 - + cor0.col0 AS col0 FROM tab2 cor0
----
-104
-117
-34

query I rowsort
SELECT ALL + + col1 * + col2 + col2 AS col2 FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT DISTINCT - cor0.col2 * - 66 FROM tab1 AS cor0
----
3564
3762
6336

query I rowsort
SELECT ALL + + col1 * + col0 - col1 AS col0 FROM tab1 cor0
----
1027
52
630

query I rowsort
SELECT - + cor0.col2 * 31 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 7f773d8a5957c76d20ef5a120e6fc497

query I rowsort
SELECT DISTINCT + + 49 * + col1 + col0 FROM tab2 AS cor0
----
1526
2969
912

query I rowsort
SELECT DISTINCT + col1 * - 87 AS col2 FROM tab1 AS cor0
----
-1131
-2262
-870

query I rowsort
SELECT ALL + 94 * col0 FROM tab2 AS cor0
----
658
7332
7426

query I rowsort
SELECT col0 * + 2 + - col1 FROM tab1 AS cor0
----
-20
118
147

query I rowsort
SELECT + + col0 * + 74 FROM tab1 AS cor0
----
222
4736
5920

query I rowsort
SELECT ALL + col2 * + col2 AS col1 FROM tab0 cor0
----
1
1089
6724

query I rowsort
SELECT ALL - cor1.col0 AS col1 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8

query I rowsort
SELECT ALL + 37 * + 99 FROM tab1, tab0 AS cor0
----
9 values hashing to d2bb149d81352a2a0d5814cf20b19229

query I rowsort
SELECT ALL - col2 + - ( + col1 * cor0.col2 ) AS col2 FROM tab0 AS cor0
----
-2871
-7544
-98

query I rowsort
SELECT ALL - cor0.col0 + col1 * cor0.col2 + - col2 FROM tab0 AS cor0
----
2781
61
7291

query I rowsort
SELECT col1 * 18 AS col0 FROM tab0 AS cor0
----
1548
1638
1746

query I rowsort
SELECT DISTINCT + col2 * col0 + cor0.col2 FROM tab2 AS cor0
----
2054
216
3040

onlyif mysql # use DIV operator for integer division
query I rowsort label-2668
SELECT ALL - - col2 DIV - col0 AS col0 FROM tab1 AS cor0
----
-1
-18
0

skipif mysql # not compatible
query I rowsort label-2668
SELECT ALL - - col2 / - col0 AS col0 FROM tab1 AS cor0
----
-1
-18
0

query I rowsort
SELECT col2 * + col1 - - cor0.col1 * 90 AS col0 FROM tab1 AS cor0
----
1470
2418
3744

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab0.col0 * tab0.col2 col0 FROM tab0
----
35
7298
792

query I rowsort
SELECT ALL col2 * 46 * col0 AS col2 FROM tab0
----
1610
335708
36432

query I rowsort
SELECT col1 + + cor0.col2 AS col0 FROM tab1 cor0
----
109
67
80

query I rowsort
SELECT 63 + - 60 FROM tab1 AS cor0
----
3
3
3

query I rowsort
SELECT + + 68 AS col2 FROM tab0 AS cor0
----
68
68
68

query I rowsort
SELECT - 34 FROM tab1, tab2 AS cor0, tab0 cor1
----
27 values hashing to 5b88331e40da4796cc4826c442aa45f7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 + cor0.col0 * + cor0.col0 col0 FROM tab1 AS cor0
----
4032
6
6320

query I rowsort
SELECT ALL + 62 + col1 FROM tab2 AS cor0
----
121
79
93

query I rowsort
SELECT - - 12 * + col0 FROM tab0 AS cor0
----
1068
288
420

query I rowsort
SELECT DISTINCT col1 + + col2 * col0 AS col2 FROM tab2 AS cor0
----
2087
220
3019

query I rowsort
SELECT - col1 * - cor0.col2 + - col0 AS col1 FROM tab2 AS cor0
----
1456
567
830

query I rowsort
SELECT DISTINCT + - cor0.col1 * - cor0.col2 AS col0 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT - + cor0.col0 + + col2 + + ( + col0 * col0 ) FROM tab0 cor0
----
1191
585
7914

query I rowsort
SELECT ALL - - 60 * col1 FROM tab2 AS cor0
----
1020
1860
3540

query I rowsort
SELECT - + col0 + + col0 * ( + col2 ) FROM tab0 AS cor0
----
0
7209
768

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 + + cor0.col1 col0 FROM tab1 cor0
----
20
26
52

query I rowsort
SELECT DISTINCT - col0 + - cor0.col1 AS col1 FROM tab1 AS cor0
----
-29
-74
-93

query I rowsort
SELECT ALL ( + cor0.col2 ) FROM tab1, tab1 AS cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2688
SELECT CAST( NULL AS SIGNED ) + cor1.col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2688
SELECT CAST ( NULL AS INTEGER ) + cor1.col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL ( col2 ) * 63 FROM tab0
----
2079
5166
63

query I rowsort
SELECT + + cor0.col2 * ( - col0 * - cor0.col0 ) AS col2 FROM tab2 AS cor0
----
1323
158184
237158

query I rowsort
SELECT col1 * 54 + + 78 AS col0 FROM tab1 AS cor0
----
1482
618
780

query I rowsort
SELECT + cor0.col2 * 42 FROM tab0 cor0
----
1386
3444
42

onlyif mysql # use DIV operator for integer division
query I rowsort label-2693
SELECT + col1 DIV 82 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2693
SELECT + col1 / 82 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 * 48 + 68 + + cor0.col2 col1 FROM tab1 AS cor0
----
266
3197
4004

query I rowsort
SELECT - col1 * - ( + 67 ) AS col1 FROM tab1 cor0
----
1742
670
871

query I rowsort
SELECT - cor1.col0 * - 53 AS col0 FROM tab2, tab1 AS cor0, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to 927e4ec422bc3c930a8cf377bd73dbb1

query I rowsort
SELECT ( cor0.col0 ) AS col0 FROM tab0, tab2 cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

query I rowsort
SELECT DISTINCT 84 + col1 FROM tab2 AS cor0
----
101
115
143

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2699
SELECT ALL 55 - - ( - cor0.col2 * CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2699
SELECT ALL 55 - - ( - cor0.col2 * CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + tab0.col2 * + 64 + - 50 FROM tab0
----
14
2062
5198

onlyif mysql # use DIV operator for integer division
query I rowsort label-2701
SELECT - cor0.col2 DIV 75 FROM tab1, tab1 AS cor0
----
9 values hashing to 721682d0719de924079c33bd72eef789

skipif mysql # not compatible
query I rowsort label-2701
SELECT - cor0.col2 / 75 FROM tab1, tab1 AS cor0
----
9 values hashing to 721682d0719de924079c33bd72eef789

query I rowsort
SELECT cor0.col1 + 70 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 1f731cd8b04973db00f362d5aba59a9c

query I rowsort
SELECT ALL + + cor1.col1 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

query I rowsort
SELECT ALL + col0 * + ( - col2 ) + + col1 * - col2 FROM tab0
----
-132
-14760
-3630

onlyif mysql # use DIV operator for integer division
query I rowsort label-2705
SELECT DISTINCT - ( cor0.col0 ) DIV CAST( 29 AS SIGNED ) AS col2 FROM tab0, tab1 AS cor0
----
-2
0

skipif mysql # not compatible
query I rowsort label-2705
SELECT DISTINCT - ( cor0.col0 ) / CAST ( 29 AS INTEGER ) AS col2 FROM tab0, tab1 AS cor0
----
-2
0

query I rowsort
SELECT + col1 * col2 - ( + 36 + + col2 ) FROM tab0 AS cor0
----
2769
60
7344

query I rowsort
SELECT ALL 99 + 57 AS col1 FROM tab0
----
156
156
156

query I rowsort
SELECT ALL - col2 * col1 * + col0 AS col0 FROM tab0
----
-3395
-664118
-68112

query I rowsort
SELECT 52 + 3 AS col0 FROM tab0 AS cor0
----
55
55
55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - cor0.col0 col1 FROM tab2 cor0
----
-7
-78
-79

onlyif mysql # use DIV operator for integer division
query I rowsort label-2711
SELECT ( col1 ) + col1 DIV - ( 24 ) AS col1 FROM tab0 AS cor0
----
83
88
93

skipif mysql # not compatible
query I rowsort label-2711
SELECT ( col1 ) + col1 / - ( 24 ) AS col1 FROM tab0 AS cor0
----
83
88
93

query I rowsort
SELECT ALL - 98 * 58 AS col1 FROM tab2 AS cor0
----
-5684
-5684
-5684

onlyif mysql # use DIV operator for integer division
query I rowsort label-2713
SELECT + - 44 DIV - col0 + + col1 col0 FROM tab0 AS cor0
----
87
91
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2713
SELECT + - 44 / - col0 + + col1 col0 FROM tab0 AS cor0
----
87
91
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-2714
SELECT DISTINCT - ( col0 ) + col0 DIV - col2 FROM tab0
----
-24
-70
-90

skipif mysql # not compatible
query I rowsort label-2714
SELECT DISTINCT - ( col0 ) + col0 / - col2 FROM tab0
----
-24
-70
-90

query I rowsort
SELECT + 94 + col0 AS col0 FROM tab2 AS cor0
----
101
172
173

query I rowsort
SELECT DISTINCT + + 69 AS col0 FROM tab0 cor0
----
69

query I rowsort
SELECT DISTINCT - 25 FROM tab0, tab0 AS cor0, tab1 cor1, tab1 AS cor2
----
-25

query I rowsort
SELECT DISTINCT - + 81 + - col0 AS col1 FROM tab2 AS cor0
----
-159
-160
-88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 8 col2 FROM tab0 AS cor0
----
-8
-8
-8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 44 + + col0 col0 FROM tab0 cor0
----
133
68
79

query I rowsort
SELECT DISTINCT + 40 FROM tab0, tab1 AS cor0, tab2 AS cor1, tab0 AS cor2
----
40

query I rowsort
SELECT ALL + 71 * col1 + 83 FROM tab0 AS cor0
----
6189
6544
6970

query I rowsort
SELECT + 95 + - col0 * 68 FROM tab2 cor0
----
-381
-5209
-5277

query I rowsort
SELECT ALL + - col2 * col0 + - 36 * 34 FROM tab0 AS cor0
----
-1259
-2016
-8522

query I rowsort
SELECT ALL + col2 - col2 AS col0 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT ALL + tab1.col0 * ( 53 ) - - col1 * 78 AS col2 FROM tab1
----
2187
4172
5254

onlyif mysql # use DIV operator for integer division
query I rowsort label-2727
SELECT - tab1.col0 + col0 * + col0 + + col0 DIV col1 AS col1 FROM tab1
----
4038
6
6326

skipif mysql # not compatible
query I rowsort label-2727
SELECT - tab1.col0 + col0 * + col0 + + col0 / col1 AS col1 FROM tab1
----
4038
6
6326

query I rowsort
SELECT - - cor0.col0 + - col0 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col1 * - col1 * - col0 AS col0 FROM tab2 AS cor0
----
-22831
-271518
-6727

query I rowsort
SELECT + + col1 - - col1 * - 77 AS col0 FROM tab0 AS cor0
----
-6536
-6916
-7372

onlyif mysql # use DIV operator for integer division
query I rowsort label-2731
SELECT DISTINCT + cor0.col2 DIV cor0.col2 + col1 * ( + col1 ) FROM tab0 AS cor0
----
7397
8282
9410

skipif mysql # not compatible
query I rowsort label-2731
SELECT DISTINCT + cor0.col2 / cor0.col2 + col1 * ( + col1 ) FROM tab0 AS cor0
----
7397
8282
9410

query I rowsort
SELECT ALL - ( + cor0.col0 ) * + col2 FROM tab1 cor0
----
-162
-3648
-7680

query I rowsort
SELECT ALL col2 + - ( + cor0.col0 ) * - cor0.col1 FROM tab2 AS cor0
----
1381
244
4628

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + - cor0.col2 col0 FROM tab1 AS cor0
----
-109
-67
-80

query I rowsort
SELECT col0 * cor0.col0 + + col1 * - ( 27 ) FROM tab1 AS cor0
----
-693
3826
6049

query I rowsort
SELECT ALL + + cor0.col0 + ( + col0 ) * + ( - col1 ) AS col2 FROM tab0 cor0
----
-2040
-3360
-8010

query I rowsort
SELECT DISTINCT - 13 * - col1 + - col2 AS col0 FROM tab0 AS cor0
----
1085
1101
1260

query I rowsort
SELECT DISTINCT col2 * col0 - col2 * - ( + 78 ) FROM tab2 AS cor0
----
2295
4056
5966

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2739
SELECT - - CAST( NULL AS SIGNED ) + + col0 / - cor0.col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2739
SELECT - - CAST ( NULL AS INTEGER ) + + col0 / - cor0.col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - ( 32 ) AS col0 FROM tab1 AS cor0
----
-32
-32
-32

query I rowsort
SELECT ALL + 87 * + col1 + col1 + col2 AS col1 FROM tab2 AS cor0
----
1534
2755
5218

query I rowsort
SELECT ALL - col0 * 83 + + tab2.col0 - tab2.col1 AS col1 FROM tab2
----
-605
-6455
-6495

onlyif mysql # use DIV operator for integer division
query I rowsort label-2743
SELECT DISTINCT tab0.col1 * col1 - + col0 DIV col2 AS col1 FROM tab0
----
7396
8280
9374

skipif mysql # not compatible
query I rowsort label-2743
SELECT DISTINCT tab0.col1 * col1 - + col0 / col2 AS col1 FROM tab0
----
7396
8280
9374

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 92 col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

query I rowsort
SELECT cor0.col1 + + 79 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to da59ffd39b157b6bbaf72bc11c04a13b

query I rowsort
SELECT - col1 * col2 - + col0 AS col1 FROM tab1 AS cor0
----
-1328
-1407
-634

onlyif mysql # use DIV operator for integer division
query I rowsort label-2747
SELECT + CAST( + col2 AS SIGNED ) * col2 - col1 DIV - 14 FROM tab0 AS cor0
----
1095
6730
7

skipif mysql # not compatible
query I rowsort label-2747
SELECT + CAST ( + col2 AS INTEGER ) * col2 - col1 / - 14 FROM tab0 AS cor0
----
1095
6730
7

query I rowsort
SELECT DISTINCT - - 16 * 82 + + cor0.col0 FROM tab2 AS cor0
----
1319
1390
1391

query I rowsort
SELECT DISTINCT + ( ( + col0 ) ) AS col0 FROM tab1 cor0
----
3
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 86 col2 FROM tab2 cor0
----
86
86
86

query I rowsort
SELECT ALL - col0 * 60 AS col0 FROM tab2 AS cor0
----
-420
-4680
-4740

query I rowsort
SELECT - 3 * col0 * + col1 AS col2 FROM tab1 AS cor0
----
-1920
-234
-3120

query I rowsort
SELECT + cor0.col1 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0, tab0 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

onlyif mysql # use DIV operator for integer division
query I rowsort label-2754
SELECT col0 + + col2 DIV col0 AS col0 FROM tab1
----
21
64
81

skipif mysql # not compatible
query I rowsort label-2754
SELECT col0 + + col2 / col0 AS col0 FROM tab1
----
21
64
81

query I rowsort
SELECT DISTINCT col0 + ( - tab0.col1 ) FROM tab0
----
-2
-62

onlyif mysql # use DIV operator for integer division
query I rowsort label-2756
SELECT 52 + - tab0.col2 DIV - 35 FROM tab0, tab2, tab0 AS cor0, tab1
----
81 values hashing to a5b4f981cecdd3d24a26c12519742651

skipif mysql # not compatible
query I rowsort label-2756
SELECT 52 + - tab0.col2 / - 35 FROM tab0, tab2, tab0 AS cor0, tab1
----
81 values hashing to a5b4f981cecdd3d24a26c12519742651

query I rowsort
SELECT DISTINCT - tab0.col0 * + tab0.col1 + tab0.col2 AS col1 FROM tab0
----
-2031
-3394
-8017

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2758
SELECT ALL col1 + ( - col2 ) * + CAST( - 96 AS SIGNED ) AS col2 FROM tab0
----
193
3254
7963

skipif mysql # not compatible
query I rowsort label-2758
SELECT ALL col1 + ( - col2 ) * + CAST ( - 96 AS INTEGER ) AS col2 FROM tab0
----
193
3254
7963

onlyif mysql # use DIV operator for integer division
query I rowsort label-2759
SELECT DISTINCT ( col2 ) * - col2 + + col2 DIV 30 AS col1 FROM tab1
----
-2915
-3248
-9213

skipif mysql # not compatible
query I rowsort label-2759
SELECT DISTINCT ( col2 ) * - col2 + + col2 / 30 AS col1 FROM tab1
----
-2915
-3248
-9213

query I rowsort
SELECT + cor0.col2 * - ( - col1 ) + + col2 + 93 AS col1 FROM tab2 AS cor0
----
1653
777
957

query I rowsort
SELECT col2 * + col0 * tab1.col1 FROM tab1
----
36480
4212
99840

query I rowsort
SELECT DISTINCT ( + col1 ) + col1 FROM tab1
----
20
26
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 36 - + col1 col0 FROM tab1
----
10
23
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + - 70 col1 FROM tab2 AS cor0
----
-101
-129
-87

query I rowsort
SELECT - col2 + col1 * - col1 AS col0 FROM tab1 AS cor0
----
-157
-265
-730

onlyif mysql # use DIV operator for integer division
query I rowsort label-2766
SELECT - col1 DIV + CAST( - col2 * + col0 AS SIGNED ) FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2766
SELECT - col1 / + CAST ( - col2 * + col0 AS INTEGER ) FROM tab1 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2767
SELECT ALL + col1 + ( 4 ) DIV - col0 FROM tab1 AS cor0
----
10
13
25

skipif mysql # not compatible
query I rowsort label-2767
SELECT ALL + col1 + ( 4 ) / - col0 FROM tab1 AS cor0
----
10
13
25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + 79 col0 FROM tab0 AS cor0
----
-6794
-7189
-7663

query I rowsort
SELECT ALL - cor0.col2 * - 76 AS col0 FROM tab1 cor0
----
4104
4332
7296

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2770
SELECT DISTINCT col0 + CAST( - 39 AS SIGNED ) FROM tab0 AS cor0
----
-15
-4
50

skipif mysql # not compatible
query I rowsort label-2770
SELECT DISTINCT col0 + CAST ( - 39 AS INTEGER ) FROM tab0 AS cor0
----
-15
-4
50

query I rowsort
SELECT DISTINCT tab0.col0 * - ( + col1 ) - + tab0.col2 * + 31 * + 66 FROM tab0
----
-175871
-5441
-69582

query I rowsort
SELECT - 90 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to c0d96679aba507520916e8654e5a6618

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 32 col2 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
32

skipif mysql # not compatible
query I rowsort
SELECT ALL - col1 * - CAST ( + 50 AS REAL ) + + col0 AS col1 FROM tab2 cor0
----
1557
3028
929

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * + col2 col0 FROM tab0 cor0
----
-2838
-7462
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 * ( - col2 ) * cor0.col0 col0 FROM tab2 AS cor0
----
-119652
-51034
-5859

query I rowsort
SELECT DISTINCT col0 + - col1 * - col2 * cor0.col0 AS col0 FROM tab0 AS cor0
----
3430
664207
68136

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2778
SELECT ALL - col1 + - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2778
SELECT ALL - col1 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - col0 * col1 + 5 FROM tab1 AS cor0
----
-1035
-635
-73

query I rowsort
SELECT DISTINCT - cor0.col2 * - 55 * + 89 FROM tab0 cor0
----
161535
401390
4895

query I rowsort
SELECT ALL - col1 + - col1 * + col0 FROM tab1 AS cor0
----
-104
-1053
-650

query I rowsort
SELECT - col0 + - col2 + + col2 FROM tab0 cor0
----
-24
-35
-89

query I rowsort
SELECT 6 + col0 AS col0 FROM tab1 AS cor0
----
70
86
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-2784
SELECT col1 DIV - col0 col2 FROM tab2 AS cor0
----
-4
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2784
SELECT col1 / - col0 col2 FROM tab2 AS cor0
----
-4
0
0

query I rowsort
SELECT - + ( col2 ) * col2 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT ALL - ( col1 ) * - col0 * + 16 AS col1 FROM tab0
----
129584
33024
54320

query I rowsort
SELECT DISTINCT - 70 AS col1 FROM tab2
----
-70

query I rowsort
SELECT DISTINCT + + col0 * + col2 + ( - col1 ) + cor0.col0 FROM tab1 AS cor0
----
139
3702
7747

query I rowsort
SELECT DISTINCT - col1 * - cor0.col1 + + cor0.col2 * cor0.col2 FROM tab0 AS cor0
----
15005
8485
9410

query I rowsort
SELECT ALL - 43 + cor0.col0 FROM tab0 cor0
----
-19
-8
46

onlyif mysql # use DIV operator for integer division
query I rowsort label-2791
SELECT DISTINCT + + col2 DIV col2 + - ( + col0 * + col2 ) + ( + col0 ) AS col1 FROM tab0 AS cor0
----
-7208
-767
1

skipif mysql # not compatible
query I rowsort label-2791
SELECT DISTINCT + + col2 / col2 + - ( + col0 * + col2 ) + ( + col0 ) AS col1 FROM tab0 AS cor0
----
-7208
-767
1

query I rowsort
SELECT tab1.col2 * - 83 FROM tab1
----
-4482
-4731
-7968

query I rowsort
SELECT ALL col2 + + 32 FROM tab2
----
58
59
70

onlyif mysql # use DIV operator for integer division
query I rowsort label-2794
SELECT col1 * col0 + 39 * - col1 DIV col1 FROM tab2 AS cor0
----
1304
178
4563

skipif mysql # not compatible
query I rowsort label-2794
SELECT col1 * col0 + 39 * - col1 / col1 FROM tab2 AS cor0
----
1304
178
4563

query I rowsort
SELECT DISTINCT + col2 + + 18 * 0 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT DISTINCT col0 * col2 + ( + cor0.col0 ) * + col1 AS col2 FROM tab0 AS cor0
----
15397
2856
3430

query I rowsort
SELECT - col1 * col0 + - col2 AS col2 FROM tab2 AS cor0
----
-1381
-244
-4628

query I rowsort
SELECT ALL + col1 * 50 AS col1 FROM tab2 AS cor0
----
1550
2950
850

query I rowsort
SELECT col2 * cor0.col1 * col2 FROM tab2 AS cor0
----
22599
24548
39884

query I rowsort
SELECT + - col1 * + col2 + col1 FROM tab2 AS cor0
----
-1475
-629
-806

query I rowsort
SELECT DISTINCT - col1 + ( cor0.col2 ) * - 83 AS col1 FROM tab0 cor0
----
-180
-2825
-6897

query I rowsort
SELECT ALL cor0.col2 + + col0 * col0 * + col2 FROM tab2 AS cor0
----
1350
158210
237196

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2803
SELECT + CAST( + col1 AS SIGNED ) AS col0 FROM tab2 cor0
----
17
31
59

skipif mysql # not compatible
query I rowsort label-2803
SELECT + CAST ( + col1 AS INTEGER ) AS col0 FROM tab2 cor0
----
17
31
59

query I rowsort
SELECT + col0 * + cor0.col2 + + col2 AS col0 FROM tab0 AS cor0
----
36
7380
825

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 38 * - col0 - col1 * + 53 col0 FROM tab1 AS cor0
----
-1492
-2962
-3729

query I rowsort
SELECT - 73 * + col1 + + col0 AS col0 FROM tab2 AS cor0
----
-1162
-2256
-4229

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2807
SELECT + + 39 + col0 * CAST( + col1 AS SIGNED ) FROM tab2 cor0
----
1382
256
4641

skipif mysql # not compatible
query I rowsort label-2807
SELECT + + 39 + col0 * CAST ( + col1 AS INTEGER ) FROM tab2 cor0
----
1382
256
4641

query I rowsort
SELECT DISTINCT + col2 * col1 * 23 + + col2 * - col0 + - 10 AS col0 FROM tab2 AS cor0
----
11846
19052
33244

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 99 col2 FROM tab1, tab0 AS cor0 CROSS JOIN tab0, tab2, tab0 AS cor1
----
243 values hashing to 73674a9cb7d36ad384ffb69169e12370

query I rowsort
SELECT + cor0.col2 * - cor0.col1 FROM tab1 AS cor0
----
-1248
-1404
-570

onlyif mysql # use DIV operator for integer division
query I rowsort label-2811
SELECT + col0 * 23 DIV + col1 FROM tab0 AS cor0
----
22
6
8

skipif mysql # not compatible
query I rowsort label-2811
SELECT + col0 * 23 / + col1 FROM tab0 AS cor0
----
22
6
8

query I rowsort
SELECT + - col0 + - 53 * col2 FROM tab1 AS cor0
----
-2865
-3085
-5168

query I rowsort
SELECT - col0 + + 80 FROM tab1
----
0
16
77

query I rowsort
SELECT + col1 * ( ( - col1 ) ) FROM tab1
----
-100
-169
-676

query I rowsort
SELECT DISTINCT 19 FROM tab1, tab1 AS cor0
----
19

onlyif mysql # use DIV operator for integer division
query I rowsort label-2816
SELECT + tab1.col0 DIV + col1 AS col2 FROM tab1
----
0
6
6

skipif mysql # not compatible
query I rowsort label-2816
SELECT + tab1.col0 / + col1 AS col2 FROM tab1
----
0
6
6

query I rowsort
SELECT DISTINCT + col2 * - 15 FROM tab0
----
-1230
-15
-495

onlyif mysql # use DIV operator for integer division
query I rowsort label-2818
SELECT col2 DIV - ( col0 * col2 ) FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2818
SELECT col2 / - ( col0 * col2 ) FROM tab1
----
0
0
0

query I rowsort
SELECT ALL tab0.col2 FROM tab0, tab1, tab2 cor0
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT DISTINCT col0 * - 20 FROM tab0
----
-1780
-480
-700

query I rowsort
SELECT + 32 * col1 AS col2 FROM tab0
----
2752
2912
3104

query I rowsort
SELECT ALL + col1 + 16 * 16 AS col1 FROM tab0 AS cor0
----
342
347
353

onlyif mysql # use DIV operator for integer division
query I rowsort label-2823
SELECT + + col2 + + ( + col1 ) DIV col1 FROM tab2 AS cor0
----
27
28
39

skipif mysql # not compatible
query I rowsort label-2823
SELECT + + col2 + + ( + col1 ) / col1 FROM tab2 AS cor0
----
27
28
39

query I rowsort
SELECT ALL + - 26 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 47d0574274146de273829785364ada39

query I rowsort
SELECT DISTINCT + col2 * col0 - + 15 FROM tab2
----
174
2013
2987

query I rowsort
SELECT - col1 + tab0.col1 - - 87 * col2 * + col1 FROM tab0
----
246906
649194
8439

onlyif mysql # use DIV operator for integer division
query I rowsort label-2827
SELECT col2 + - col0 DIV ( col2 ) AS col1 FROM tab1 AS cor0
----
54
56
96

skipif mysql # not compatible
query I rowsort label-2827
SELECT col2 + - col0 / ( col2 ) AS col1 FROM tab1 AS cor0
----
54
56
96

query I rowsort
SELECT + ( col2 ) * col1 * col2 + - col0 FROM tab0 AS cor0
----
611795
62
93630

query I rowsort
SELECT DISTINCT col1 + - tab2.col1 * col1 + - col2 FROM tab2
----
-310
-3448
-957

query I rowsort
SELECT col0 * - ( 55 ) * - col0 + ( + col2 ) * + col2 FROM tab1
----
228529
3411
361216

query I rowsort
SELECT DISTINCT col0 * + tab2.col0 + - col1 FROM tab2
----
18
6025
6224

query I rowsort
SELECT ALL 81 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 0a85639e0dddbffdab2cb16b027cb360

query I rowsort
SELECT DISTINCT tab2.col0 + - col1 * - col1 FROM tab2
----
3559
368
968

query I rowsort
SELECT + - col2 + - 26 AS col1 FROM tab0 AS cor0
----
-108
-27
-59

query I rowsort
SELECT ALL col1 * - ( + col1 + + col2 * - 38 ) FROM tab1 AS cor0
----
21560
47255
52676

query I rowsort
SELECT DISTINCT ( - 51 ) FROM tab1
----
-51

query I rowsort
SELECT + ( 77 ) FROM tab2 cor0
----
77
77
77

query I rowsort
SELECT + + 38 * + 74 FROM tab2 AS cor0
----
2812
2812
2812

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 66 + cor0.col0 + col1 col2 FROM tab0 cor0
----
176
198
246

query I rowsort
SELECT DISTINCT - + 27 * col2 AS col2 FROM tab0 AS cor0
----
-2214
-27
-891

query I rowsort
SELECT + + 71 AS col2 FROM tab0 AS cor0
----
71
71
71

query I rowsort
SELECT + col2 * - col2 - col1 * ( col1 + - col0 ) FROM tab0 AS cor0
----
-6015
-6421
-6906

query I rowsort
SELECT ALL - 93 + - col1 FROM tab1 AS cor0
----
-103
-106
-119

query I rowsort
SELECT ( - 9 * col0 ) AS col1 FROM tab0
----
-216
-315
-801

query I rowsort
SELECT DISTINCT ( + col2 ) * + ( ( + col2 ) ) - - 19 FROM tab0 AS cor0
----
1108
20
6743

query I rowsort
SELECT col1 * col2 + - 73 FROM tab2 AS cor0
----
1461
573
764

query I rowsort
SELECT ALL col1 + - col0 * + 77 AS col2 FROM tab1 AS cor0
----
-205
-4918
-6147

query I rowsort
SELECT ALL + + cor0.col0 * col1 AS col1 FROM tab0 cor0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT - 29 AS col2 FROM tab2
----
-29

query I rowsort
SELECT ALL - - 76 AS col2 FROM tab2 AS cor0
----
76
76
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + col2 * 0 + 87 * col1 col0 FROM tab2 AS cor0
----
1517
2724
5159

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 - + col0 col1 FROM tab1 cor0
----
-54
-67
23

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2853
SELECT DISTINCT + col2 * col1 * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2853
SELECT DISTINCT + col2 * col1 * + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + - 21 * + cor0.col2 AS col1 FROM tab2 AS cor0
----
-546
-567
-798

query I rowsort
SELECT - - col2 * - col0 + - col0 AS col0 FROM tab1 AS cor0
----
-165
-3712
-7760

query I rowsort
SELECT DISTINCT + col2 * 83 + - col0 AS col0 FROM tab1 AS cor0
----
4479
4667
7888

onlyif mysql # use DIV operator for integer division
query I rowsort label-2857
SELECT ALL + col1 DIV + 56 + + col0 AS col2 FROM tab2 AS cor0
----
7
79
79

skipif mysql # not compatible
query I rowsort label-2857
SELECT ALL + col1 / + 56 + + col0 AS col2 FROM tab2 AS cor0
----
7
79
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-2858
SELECT DISTINCT + + col2 * + col2 + ( col1 ) * - col0 DIV - col0 AS col1 FROM tab2 AS cor0
----
1461
735
760

skipif mysql # not compatible
query I rowsort label-2858
SELECT DISTINCT + + col2 * + col2 + ( col1 ) * - col0 / - col0 AS col1 FROM tab2 AS cor0
----
1461
735
760

query I rowsort
SELECT DISTINCT + + col0 * - col0 - col1 AS col2 FROM tab0 AS cor0
----
-1322
-662
-8012

query I rowsort
SELECT + + col1 + ( + col1 ) AS col0 FROM tab2 AS cor0
----
118
34
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT ALL - col0 * CAST ( + col0 AS REAL ) col2 FROM tab1 cor0
----
-4096
-6400
-9

query I rowsort
SELECT DISTINCT - col0 * - 32 + col2 FROM tab1 AS cor0
----
150
2105
2656

query I rowsort
SELECT col0 * col2 + 87 AS col2 FROM tab1
----
249
3735
7767

query IIIIIIIII rowsort
SELECT * FROM tab0, tab2, tab1 AS cor0 WHERE NOT ( NULL ) <= ( NULL )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-2865
SELECT 3 DIV 86 col1 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2865
SELECT 3 / 86 col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + 68 + - col0 * - col1 AS col1 FROM tab0 AS cor0
----
2132
3463
8167

query I rowsort
SELECT DISTINCT 82 * 6 AS col0 FROM tab2 AS cor0
----
492

query I rowsort
SELECT + 78 * - ( col1 ) + - col2 FROM tab0 AS cor0
----
-6741
-7180
-7567

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2869
SELECT ALL + CAST( NULL AS SIGNED ) * + 71 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2869
SELECT ALL + CAST ( NULL AS INTEGER ) * + 71 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2870
SELECT DISTINCT 1 DIV col2 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-2870
SELECT DISTINCT 1 / col2 FROM tab1 cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 71 + + col1 col0 FROM tab0 AS cor0
----
157
162
168

onlyif mysql # use DIV operator for integer division
query I rowsort label-2872
SELECT + 86 DIV + col0 col1 FROM tab1 AS cor0
----
1
1
28

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2872
SELECT + 86 / + col0 col1 FROM tab1 AS cor0
----
1
1
28

query I rowsort
SELECT col1 - + ( - tab1.col0 ) AS col1 FROM tab1
----
29
74
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 25 * tab1.col0 col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 6f2fd5d90603d0b0ad3af290a941899d

query I rowsort
SELECT DISTINCT col1 * 2 + tab2.col0 FROM tab2
----
113
196
69

query I rowsort
SELECT DISTINCT - col0 + ( 52 + - col0 ) FROM tab2
----
-104
-106
38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2877
SELECT - CAST( NULL AS SIGNED ) * col1 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2877
SELECT - CAST ( NULL AS INTEGER ) * col1 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - ( + col0 * - col2 ) FROM tab0
----
35
7298
792

query I rowsort
SELECT - 51 * - tab2.col0 AS col0 FROM tab2, tab1 cor0
----
9 values hashing to ccc3a14ecb39f25d1c0eb4d30fb3b898

query I rowsort
SELECT - col2 + 14 * col1 FROM tab1
----
310
83
86

query I rowsort
SELECT DISTINCT tab2.col2 * tab2.col0 * + tab2.col0 FROM tab2
----
1323
158184
237158

onlyif mysql # use DIV operator for integer division
query I rowsort label-2882
SELECT DISTINCT ( - col1 ) + cor0.col0 * col1 DIV ( + col0 ) + - 91 * - 52 FROM tab2 AS cor0
----
4732

skipif mysql # not compatible
query I rowsort label-2882
SELECT DISTINCT ( - col1 ) + cor0.col0 * col1 / ( + col0 ) + - 91 * - 52 FROM tab2 AS cor0
----
4732

query I rowsort
SELECT - ( col2 ) * + col0 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT - ( - cor0.col2 ) FROM tab1 cor0
----
54
57
96

query I rowsort
SELECT DISTINCT 65 + 43 * - col2 FROM tab0 AS cor0
----
-1354
-3461
22

query I rowsort
SELECT + col2 * tab0.col0 + col0 FROM tab0
----
70
7387
816

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab0 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab2 AS cor2
----
3645 values hashing to a05c004695d644bdc7d07542d29e2010

query I rowsort
SELECT + + col0 * cor0.col0 + + col1 AS col0 FROM tab2 AS cor0
----
6143
6258
80

query I rowsort
SELECT + cor0.col1 * 54 FROM tab0 cor0
----
4644
4914
5238

query I rowsort
SELECT - ( + col1 ) + - cor0.col0 FROM tab2 AS cor0
----
-137
-38
-96

query I rowsort
SELECT - 67 AS col0 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 95c9eba643f6489e03be4d5e83f1ef99

query I rowsort
SELECT cor0.col0 * + cor0.col2 + - col2 FROM tab2 AS cor0
----
162
2002
2964

query I rowsort
SELECT - cor0.col2 + + col1 + col1 FROM tab0 AS cor0
----
100
139
193

query I rowsort
SELECT - col0 + + col0 * - 66 AS col1 FROM tab2 AS cor0
----
-469
-5226
-5293

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2895
SELECT 56 + - col2 * + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2895
SELECT 56 + - col2 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + col1 * col2 * - ( col1 ) - col1 AS col0 FROM tab2 AS cor0
----
-10999
-25978
-90565

onlyif mysql # use DIV operator for integer division
query I rowsort label-2897
SELECT - col2 * col2 - + ( - cor0.col0 ) DIV - col1 AS col2 FROM tab1 AS cor0
----
-2916
-3255
-9222

skipif mysql # not compatible
query I rowsort label-2897
SELECT - col2 * col2 - + ( - cor0.col0 ) / - col1 AS col2 FROM tab1 AS cor0
----
-2916
-3255
-9222

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 68 col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 5febf382d36d6e0191889c41b928786f

query I rowsort
SELECT DISTINCT + ( tab2.col0 ) AS col0 FROM tab2
----
7
78
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-2900
SELECT ALL 37 DIV - col2 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2900
SELECT ALL 37 / - col2 AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL ( 80 ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94

query I rowsort
SELECT + col2 * col2 + + ( col2 ) AS col0 FROM tab0
----
1122
2
6806

query I rowsort
SELECT + 28 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97

query I rowsort
SELECT ALL - 41 * col2 + col1 FROM tab2
----
-1007
-1076
-1541

query I rowsort
SELECT DISTINCT - - 65 FROM tab2 cor0
----
65

query I rowsort
SELECT - 51 * + col0 FROM tab2 AS cor0
----
-357
-3978
-4029

onlyif mysql # use DIV operator for integer division
query I rowsort label-2907
SELECT DISTINCT + 70 DIV + col0 + col2 * col1 FROM tab0 AS cor0
----
2840
7462
99

skipif mysql # not compatible
query I rowsort label-2907
SELECT DISTINCT + 70 / + col0 + col2 * col1 FROM tab0 AS cor0
----
2840
7462
99

query I rowsort
SELECT DISTINCT - cor0.col1 * + col1 * cor0.col2 AS col1 FROM tab1 AS cor0
----
-16224
-36504
-5700

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2909
SELECT - 11 - col2 * - CAST( NULL AS SIGNED ) / col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2909
SELECT - 11 - col2 * - CAST ( NULL AS INTEGER ) / col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2910
SELECT ALL - - col0 + col0 DIV ( + col0 ) FROM tab1 AS cor0
----
4
65
81

skipif mysql # not compatible
query I rowsort label-2910
SELECT ALL - - col0 + col0 / ( + col0 ) FROM tab1 AS cor0
----
4
65
81

query I rowsort
SELECT DISTINCT - - 82 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
82

query I rowsort
SELECT DISTINCT 58 * col1 * col1 FROM tab2
----
16762
201898
55738

query I rowsort
SELECT ALL + tab1.col1 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

query I rowsort
SELECT DISTINCT ( - col1 + - col0 ) FROM tab0
----
-110
-132
-180

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * + col0 col0 FROM tab0
----
35
7298
792

query I rowsort
SELECT ALL - 63 + + cor0.col2 FROM tab1, tab0 AS cor0, tab2 cor1
----
27 values hashing to 4b2012823de2ca78563bd873be337c50

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2917
SELECT DISTINCT col1 / CAST( NULL AS SIGNED ) + - col0 + + col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2917
SELECT DISTINCT col1 / CAST ( NULL AS INTEGER ) + - col0 + + col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2918
SELECT ALL - - col1 + col2 DIV - col2 + col0 * col0 col2 FROM tab1 AS cor0
----
34
4105
6412

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2918
SELECT ALL - - col1 + col2 / - col2 + col0 * col0 col2 FROM tab1 AS cor0
----
34
4105
6412

onlyif mysql # use DIV operator for integer division
query I rowsort label-2919
SELECT ALL - col2 * col0 DIV + 80 AS col2 FROM tab2 AS cor0
----
-2
-25
-37

skipif mysql # not compatible
query I rowsort label-2919
SELECT ALL - col2 * col0 / + 80 AS col2 FROM tab2 AS cor0
----
-2
-25
-37

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2920
SELECT - col1 * + col0 * + CAST( col0 AS SIGNED ) FROM tab1
----
-234
-40960
-83200

skipif mysql # not compatible
query I rowsort label-2920
SELECT - col1 * + col0 * + CAST ( col0 AS INTEGER ) FROM tab1
----
-234
-40960
-83200

query I rowsort
SELECT DISTINCT col0 - 57 AS col0 FROM tab0
----
-22
-33
32

query I rowsort
SELECT + col2 + + ( 69 ) - + col2 * - col2 FROM tab2 AS cor0
----
1551
771
825

query I rowsort
SELECT ALL col1 * col0 - 61 AS col1 FROM tab1
----
17
579
979

query I rowsort
SELECT DISTINCT + col2 * + col1 + 79 - - col2 * - col1 FROM tab0
----
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab1.col0 * tab1.col2 col2 FROM tab1
----
-162
-3648
-7680

query I rowsort
SELECT ALL col0 * - col0 + 15 AS col2 FROM tab0 AS cor0
----
-1210
-561
-7906

query I rowsort
SELECT - + col1 * - 78 + - 66 * col0 + - col2 FROM tab1 cor0
----
-3501
-4362
1776

onlyif mysql # use DIV operator for integer division
query I rowsort label-2928
SELECT + col2 * + col2 + - col2 DIV cor0.col1 FROM tab1 AS cor0
----
2914
3244
9209

skipif mysql # not compatible
query I rowsort label-2928
SELECT + col2 * + col2 + - col2 / cor0.col1 FROM tab1 AS cor0
----
2914
3244
9209

query I rowsort
SELECT + 44 * 79 FROM tab0 AS cor0
----
3476
3476
3476

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2930
SELECT + col0 + + col2 * - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2930
SELECT + col0 + + col2 * - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + 97 AS col1 FROM tab1 cor0
----
97
97
97

query I rowsort
SELECT ALL + 90 + + col1 AS col2 FROM tab0 AS cor0
----
176
181
187

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 91 + - col1 col2 FROM tab0 AS cor0
----
-177
-182
-188

query I rowsort
SELECT DISTINCT 44 * col2 FROM tab2 AS cor0
----
1144
1188
1672

onlyif mysql # use DIV operator for integer division
query I rowsort label-2935
SELECT ALL - col0 DIV + 77 FROM tab2 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-2935
SELECT ALL - col0 / + 77 FROM tab2 AS cor0
----
-1
-1
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2936
SELECT DISTINCT - ( col0 ) DIV + col0 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2936
SELECT DISTINCT - ( col0 ) / + col0 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT DISTINCT - 63 * + cor0.col0 FROM tab0 AS cor0
----
-1512
-2205
-5607

query I rowsort
SELECT DISTINCT - 15 + ( col2 ) FROM tab0 AS cor0
----
-14
18
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 * - ( col1 ) + - 42 col1 FROM tab1 AS cor0
----
127
58
634

query I rowsort
SELECT tab1.col1 AS col2 FROM tab1, tab1 cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

onlyif mysql # use DIV operator for integer division
query I rowsort label-2941
SELECT DISTINCT col1 DIV ( col1 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-2941
SELECT DISTINCT col1 / ( col1 ) FROM tab1
----
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-2942
SELECT DISTINCT 85 DIV cor0.col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2942
SELECT DISTINCT 85 / cor0.col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT - cor0.col1 * ( col2 ) FROM tab2 AS cor0
----
-1534
-646
-837

onlyif mysql # use DIV operator for integer division
query I rowsort label-2944
SELECT ( + col0 ) DIV - col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2944
SELECT ( + col0 ) / - col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2945
SELECT DISTINCT - + CAST( 52 AS SIGNED ) FROM tab2 AS cor0
----
-52

skipif mysql # not compatible
query I rowsort label-2945
SELECT DISTINCT - + CAST ( 52 AS INTEGER ) FROM tab2 AS cor0
----
-52

query I rowsort
SELECT col1 * - 20 * col1 AS col1 FROM tab1 AS cor0
----
-13520
-2000
-3380

query I rowsort
SELECT DISTINCT - col0 * - 7 FROM tab0 AS cor0
----
168
245
623

query I rowsort
SELECT - col0 * tab0.col0 + tab0.col1 AS col0 FROM tab0
----
-1128
-490
-7830

query I rowsort
SELECT DISTINCT + 71 * tab1.col2 * - col1 - col1 * + tab1.col2 FROM tab1
----
-101088
-41040
-89856

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( col2 ) col2 FROM tab1 cor0
----
-54
-57
-96

query I rowsort
SELECT ( - cor0.col2 ) + col0 + - col2 FROM tab0 cor0
----
-42
-75
33

query I rowsort
SELECT DISTINCT - cor0.col2 * - 14 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
1344
756
798

query I rowsort
SELECT DISTINCT col0 - 93 FROM tab1
----
-13
-29
-90

query I rowsort
SELECT + col2 * - 56 FROM tab0
----
-1848
-4592
-56

query I rowsort
SELECT DISTINCT 81 + 93 * + col2 + - col2 FROM tab1
----
5049
5325
8913

query I rowsort
SELECT 47 * + col2 AS col0 FROM tab0
----
1551
3854
47

onlyif mysql # use DIV operator for integer division
query I rowsort label-2957
SELECT - + col2 * ( col2 + + cor0.col2 ) DIV - 56 AS col1 FROM tab2 AS cor0
----
24
26
51

skipif mysql # not compatible
query I rowsort label-2957
SELECT - + col2 * ( col2 + + cor0.col2 ) / - 56 AS col1 FROM tab2 AS cor0
----
24
26
51

onlyif mysql # use DIV operator for integer division
query I rowsort label-2958
SELECT DISTINCT 72 DIV + col1 FROM tab2
----
1
2
4

skipif mysql # not compatible
query I rowsort label-2958
SELECT DISTINCT 72 / + col1 FROM tab2
----
1
2
4

query I rowsort
SELECT ALL col1 + cor0.col2 AS col2 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT 93 + col0 AS col0 FROM tab0
----
117
128
182

query I rowsort
SELECT DISTINCT + 20 AS col2 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
20

query I rowsort
SELECT - col0 + ( - tab2.col2 ) FROM tab2
----
-104
-117
-34

query I rowsort
SELECT - col2 + - 23 FROM tab0
----
-105
-24
-56

query I rowsort
SELECT + col1 + 7 FROM tab2 AS cor0
----
24
38
66

query I rowsort
SELECT DISTINCT - cor0.col1 * - 72 AS col1 FROM tab1, tab0 AS cor0, tab0 AS cor1, tab2 AS cor2
----
6192
6552
6984

query I rowsort
SELECT col0 + - col2 * col2 FROM tab0
----
-1065
-6635
34

query I rowsort
SELECT + + col0 * + col2 + + col1 FROM tab1 AS cor0
----
188
3658
7693

onlyif mysql # use DIV operator for integer division
query I rowsort label-2968
SELECT DISTINCT + col2 + + col1 DIV - 15 - cor0.col2 FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-2968
SELECT DISTINCT + col2 + + col1 / - 15 - cor0.col2 FROM tab1 AS cor0
----
-1
0

query I rowsort
SELECT DISTINCT + col1 + ( + col1 + col0 ) * col2 FROM tab1 AS cor0
----
1592
4228
8941

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2970
SELECT - CAST( col1 AS SIGNED ) + - cor0.col1 FROM tab2 AS cor0
----
-118
-34
-62

skipif mysql # not compatible
query I rowsort label-2970
SELECT - CAST ( col1 AS INTEGER ) + - cor0.col1 FROM tab2 AS cor0
----
-118
-34
-62

query I rowsort
SELECT DISTINCT - ( col2 ) + col1 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT ALL - + col1 + + 38 * + cor0.col0 AS col0 FROM tab0 cor0
----
1233
3291
826

query I rowsort
SELECT ALL + col2 * ( - cor0.col1 ) + col1 AS col1 FROM tab1 AS cor0
----
-1235
-1378
-560

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2974
SELECT - CAST( NULL AS SIGNED ) + - cor0.col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2974
SELECT - CAST ( NULL AS INTEGER ) + - cor0.col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 * 40 + + col1 FROM tab0 AS cor0
----
3526
3731
3977

query I rowsort
SELECT DISTINCT col1 + - col0 * + tab2.col0 + + col0 * col1 FROM tab2
----
-1423
-4881
199

query I rowsort
SELECT DISTINCT 54 * col1 + + col2 FROM tab2
----
1701
3212
956

query I rowsort
SELECT + - 16 + col0 AS col2 FROM tab1 AS cor0
----
-13
48
64

onlyif mysql # use DIV operator for integer division
query I rowsort label-2979
SELECT + cor0.col1 DIV 31 FROM tab1, tab2 AS cor0
----
9 values hashing to 43a387ef4ba85927dc3d9d573afc12c9

skipif mysql # not compatible
query I rowsort label-2979
SELECT + cor0.col1 / 31 FROM tab1, tab2 AS cor0
----
9 values hashing to 43a387ef4ba85927dc3d9d573afc12c9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * + col2 - + col1 col2 FROM tab2 AS cor0
----
-1593
-663
-868

onlyif mysql # use DIV operator for integer division
query I rowsort label-2981
SELECT DISTINCT + col0 * + ( - cor0.col1 ) + cor0.col0 DIV - col0 FROM tab0 cor0
----
-2065
-3396
-8100

skipif mysql # not compatible
query I rowsort label-2981
SELECT DISTINCT + col0 * + ( - cor0.col1 ) + cor0.col0 / - col0 FROM tab0 cor0
----
-2065
-3396
-8100

query I rowsort
SELECT cor0.col0 + col2 * ( + col1 ) * - col1 FROM tab2 AS cor0
----
-10903
-25940
-90428

query I rowsort
SELECT ALL - cor0.col0 * col2 + col0 + - col0 * col1 AS col0 FROM tab1 AS cor0
----
-237
-4224
-8640

query I rowsort
SELECT + col0 * col0 + col2 AS col1 FROM tab2 AS cor0
----
6110
6279
76

query I rowsort
SELECT DISTINCT col1 + 15 * cor0.col2 * cor0.col1 FROM tab0 AS cor0
----
112021
1552
42656

query I rowsort
SELECT col1 + ( + col1 ) FROM tab1 AS cor0
----
20
26
52

query I rowsort
SELECT ALL + + col1 * + ( - col2 ) AS col2 FROM tab2 AS cor0
----
-1534
-646
-837

onlyif mysql # use DIV operator for integer division
query I rowsort label-2988
SELECT DISTINCT + + col2 DIV - 48 + - 0 + + col1 FROM tab0 cor0
----
86
90
97

skipif mysql # not compatible
query I rowsort label-2988
SELECT DISTINCT + + col2 / - 48 + - 0 + + col1 FROM tab0 cor0
----
86
90
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 * col1 col2 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT - col1 * - 31 + + 78 AS col2 FROM tab2 AS cor0
----
1039
1907
605

onlyif mysql # use DIV operator for integer division
query I rowsort label-2991
SELECT DISTINCT col1 + - col2 DIV col2 FROM tab1 AS cor0
----
12
25
9

skipif mysql # not compatible
query I rowsort label-2991
SELECT DISTINCT col1 + - col2 / col2 FROM tab1 AS cor0
----
12
25
9

query I rowsort
SELECT ALL - 79 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to c9cc9510604e093bd158ca33928acaed

onlyif mysql # use DIV operator for integer division
query I rowsort label-2993
SELECT + col1 * col1 DIV 21 AS col2 FROM tab0
----
352
394
448

skipif mysql # not compatible
query I rowsort label-2993
SELECT + col1 * col1 / 21 AS col2 FROM tab0
----
352
394
448

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2994
SELECT ALL - col1 * + col1 + + CAST( NULL AS SIGNED ) * - 28 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2994
SELECT ALL - col1 * + col1 + + CAST ( NULL AS INTEGER ) * - 28 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col2 * - col0 - ( 81 ) * - col0 FROM tab0 AS cor0
----
-89
1152
2800

query I rowsort
SELECT - - 8 + + cor0.col0 * 98 AS col2 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to a7291b283d23733929666dcee6a0c75a

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col1 - - cor0.col1 col1 FROM tab1 AS cor0
----
20
26
52

query I rowsort
SELECT col0 - col2 * cor0.col2 * 28 FROM tab2 AS cor0
----
-18850
-20405
-40353

onlyif mysql # use DIV operator for integer division
query I rowsort label-2999
SELECT + col2 DIV + col1 - - cor0.col2 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-2999
SELECT + col2 / + col1 - - cor0.col2 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT - + col1 * col2 + + col2 FROM tab0 AS cor0
----
-2805
-7380
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - ( + col0 ) col2 FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT - + col2 * col2 + + col2 AS col2 FROM tab1 AS cor0
----
-2862
-3192
-9120

query I rowsort
SELECT + 1 AS col1 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to da8a72a7967c0c73d91239275230aed9

query I rowsort
SELECT DISTINCT col0 * - col0 + tab0.col0 * - col1 * col0 AS col0 FROM tab0
----
-120050
-50112
-728732

query I rowsort
SELECT - col0 - - ( - col2 ) * col0 AS col0 FROM tab0 AS cor0
----
-70
-7387
-816

query I rowsort
SELECT DISTINCT + tab2.col1 FROM tab2 WHERE NOT NULL NOT BETWEEN col2 AND col1
----

query I rowsort
SELECT DISTINCT tab1.col0 + - col0 AS col0 FROM tab1
----
0

query I rowsort
SELECT col2 + + col2 * - col1 FROM tab1 WHERE ( col1 ) NOT BETWEEN - col1 + + col0 AND - col2
----
-1152
-1350
-513

query I rowsort
SELECT ALL col0 + col2 * - col0 FROM tab1
----
-159
-3584
-7600

query I rowsort
SELECT col2 FROM tab2 WHERE NOT - col2 NOT IN ( col0 * + tab2.col1 )
----

query I rowsort
SELECT ALL + col1 - + col1 * - tab1.col2 FROM tab1
----
1261
1430
580

query I rowsort
SELECT + col2 + + col2 * col1 AS col2 FROM tab1
----
1344
1458
627

query III rowsort
SELECT * FROM tab0 WHERE NULL IN ( - col1 * - col0 * col2 + - col0 )
----

query I rowsort
SELECT DISTINCT - tab1.col0 - col1 * col2 FROM tab1
----
-1328
-1407
-634

query I rowsort
SELECT - tab0.col0 FROM tab0 WHERE NULL BETWEEN NULL AND ( - col1 + col2 * - col0 )
----

query I rowsort
SELECT ALL - col0 * col1 + col2 AS col0 FROM tab0
----
-2031
-3394
-8017

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NULL ) IN ( - col2 + col1 - tab1.col1 )
----

query I rowsort
SELECT col2 + + col2 * col0 FROM tab0 WHERE NOT ( col1 ) IN ( - col1 )
----
36
7380
825

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND col1 + col1 * col0
----

query I rowsort
SELECT col1 + col2 * col0 AS col2 FROM tab0
----
132
7389
878

query I rowsort
SELECT ALL tab1.col1 - tab1.col0 AS col1 FROM tab1
----
-54
-67
23

query I rowsort
SELECT col1 - - col0 * col0 AS col2 FROM tab2
----
6143
6258
80

query I rowsort
SELECT ALL + 23 + + col0 FROM tab2 AS cor0
----
101
102
30

query I rowsort
SELECT - - cor0.col0 * + col2 * + col2 FROM tab2 AS cor0
----
114076
5103
52728

query I rowsort
SELECT ALL + col0 * 88 AS col1 FROM tab2
----
616
6864
6952

query I rowsort
SELECT ALL + cor0.col0 * cor0.col1 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 815fccd4c3d372b28d3f3fb103025775

onlyif mysql # use DIV operator for integer division
query I rowsort label-3027
SELECT - col1 DIV - cor0.col1 col2 FROM tab2 AS cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3027
SELECT - col1 / - cor0.col1 col2 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT + 40 * + col2 FROM tab0
----
1320
3280
40

query I rowsort
SELECT - - 72 + cor0.col0 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd3b5560b33bd6fca16cc04ce2ccdb1f

onlyif mysql # use DIV operator for integer division
query I rowsort label-3030
SELECT ALL - col2 DIV ( + 66 ) AS col1 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3030
SELECT ALL - col2 / ( + 66 ) AS col1 FROM tab0
----
-1
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor1.col2 col1 FROM tab2 AS cor0 CROSS JOIN tab1, tab0 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT ALL - + cor0.col0 + ( - 83 ) AS col1 FROM tab0 cor0
----
-107
-118
-172

query I rowsort
SELECT DISTINCT col1 + 51 AS col2 FROM tab0 AS cor0
----
137
142
148

onlyif mysql # use DIV operator for integer division
query I rowsort label-3034
SELECT DISTINCT + - col0 - + cor0.col2 DIV 65 col0 FROM tab0 AS cor0
----
-24
-35
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3034
SELECT DISTINCT + - col0 - + cor0.col2 / 65 col0 FROM tab0 AS cor0
----
-24
-35
-90

query I rowsort
SELECT 26 * - 56 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 5ae12381e8f14f6ce0a7672ce4dd5154

query I rowsort
SELECT DISTINCT + tab2.col2 + 22 FROM tab2
----
48
49
60

query I rowsort
SELECT - ( 45 ) * col1 AS col1 FROM tab1
----
-1170
-450
-585

query I rowsort
SELECT - 71 AS col1 FROM tab0, tab1 cor0
----
9 values hashing to e72f95c346714d3065a96d67a6fd5062

query I rowsort
SELECT 1 * - col1 - - col1 FROM tab0
----
0
0
0

query I rowsort
SELECT - col2 * col2 + + col0 FROM tab2
----
-1365
-598
-722

query I rowsort
SELECT DISTINCT + - col0 + col2 * cor0.col1 AS col0 FROM tab1 AS cor0
----
1168
1401
506

query I rowsort
SELECT ALL - - 40 + - col0 * col0 AS col2 FROM tab0 AS cor0
----
-1185
-536
-7881

query I rowsort
SELECT ALL ( + col2 ) * col1 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT - + 8 * col0 AS col1 FROM tab2 AS cor0
----
-56
-624
-632

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 58 * + cor0.col1 col1 FROM tab0 AS cor0
----
-4988
-5278
-5626

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + + col0 * + cor0.col1 col2 FROM tab2 AS cor0
----
1305
190
4576

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * col1 - - col2 col1 FROM tab0 AS cor0
----
7429
8363
9410

query I rowsort
SELECT ALL - cor0.col2 * col2 * - col1 AS col1 FROM tab0 AS cor0
----
611884
93654
97

query I rowsort
SELECT DISTINCT col2 + + col1 * col0 FROM tab2 AS cor0
----
1381
244
4628

query I rowsort
SELECT ALL - + col2 * + col1 + col2 FROM tab1 AS cor0
----
-1152
-1350
-513

query I rowsort
SELECT - + cor1.col2 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3052
SELECT - - CAST( - col1 AS SIGNED ) + cor0.col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3052
SELECT - - CAST ( - col1 AS INTEGER ) + cor0.col1 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - col1 ) col1 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT ALL 48 * - 54 * tab1.col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 014b1aeafb06f3526448c7c7d443aaf2

skipif mysql # not compatible
query I rowsort
SELECT CAST ( - col0 AS REAL ) + + col0 AS col1 FROM tab2
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3056
SELECT DISTINCT + 95 + - tab0.col1 DIV + col2 FROM tab0
----
-2
93
94

skipif mysql # not compatible
query I rowsort label-3056
SELECT DISTINCT + 95 + - tab0.col1 / + col2 FROM tab0
----
-2
93
94

query I rowsort
SELECT DISTINCT - 41 * col1 * col0 + col1 + col0 AS col2 FROM tab0
----
-139063
-331879
-84514

query I rowsort
SELECT DISTINCT ( - tab1.col0 ) + col1 FROM tab1
----
-54
-67
23

query I rowsort
SELECT DISTINCT - 29 + ( col2 ) * - col0 FROM tab0
----
-64
-7327
-821

query I rowsort
SELECT col0 * 20 - col1 * - col0 FROM tab2
----
2923
357
6162

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3061
SELECT + CAST( ( col2 ) AS SIGNED ) * col2 AS col2 FROM tab0
----
1
1089
6724

skipif mysql # not compatible
query I rowsort label-3061
SELECT + CAST ( ( col2 ) AS INTEGER ) * col2 AS col2 FROM tab0
----
1
1089
6724

query I rowsort
SELECT col1 * + 20 AS col1 FROM tab0
----
1720
1820
1940

onlyif mysql # use DIV operator for integer division
query I rowsort label-3063
SELECT ALL col0 + + col0 + col2 DIV - col0 AS col1 FROM tab1
----
-12
128
159

skipif mysql # not compatible
query I rowsort label-3063
SELECT ALL col0 + + col0 + col2 / - col0 AS col1 FROM tab1
----
-12
128
159

query I rowsort
SELECT ALL + tab0.col1 AS col2 FROM tab1, tab0 AS cor0 CROSS JOIN tab0
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT ALL + col2 + - col2 * col1 AS col1 FROM tab2
----
-1508
-608
-810

query I rowsort
SELECT tab2.col1 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

query I rowsort
SELECT DISTINCT col0 + + tab0.col1 * col2 * col1 AS col0 FROM tab0
----
244092
679131
9444

query I rowsort
SELECT tab0.col0 + - col2 AS col2 FROM tab0
----
-9
34
7

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT IN ( - col0 * tab2.col0 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-3070
SELECT ALL cor0.col2 DIV cor0.col1 + - col1 col2 FROM tab2 AS cor0
----
-15
-31
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3070
SELECT ALL cor0.col2 / cor0.col1 + - col1 col2 FROM tab2 AS cor0
----
-15
-31
-59

query I rowsort
SELECT + cor0.col0 * + col2 + - col1 * col0 AS col0 FROM tab0 AS cor0 WHERE NOT col1 + col1 * col0 > NULL
----

query I rowsort
SELECT ALL - tab0.col1 - - col2 AS col2 FROM tab0
----
-53
-9
-96

query I rowsort
SELECT + col0 + tab2.col0 * tab2.col2 AS col0 FROM tab2
----
196
2106
3081

query I rowsort
SELECT ALL col2 * col1 * col1 - - tab1.col1 FROM tab1
----
16237
36530
5710

onlyif mysql # use DIV operator for integer division
query I rowsort label-3075
SELECT DISTINCT - col0 DIV col0 - - col1 FROM tab2
----
16
30
58

skipif mysql # not compatible
query I rowsort label-3075
SELECT DISTINCT - col0 / col0 - - col1 FROM tab2
----
16
30
58

onlyif mysql # use DIV operator for integer division
query I rowsort label-3076
SELECT DISTINCT - col0 DIV + tab0.col1 - + tab0.col0 AS col0 FROM tab0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-3076
SELECT DISTINCT - col0 / + tab0.col1 - + tab0.col0 AS col0 FROM tab0
----
-24
-35
-89

query I rowsort
SELECT ALL col0 + col1 - col2 * + tab0.col2 AS col0 FROM tab0
----
-6544
-979
131

onlyif mysql # use DIV operator for integer division
query I rowsort label-3078
SELECT ALL col2 * - col1 + col1 - col2 DIV - col1 col2 FROM tab0
----
-2752
-7371
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3078
SELECT ALL col2 * - col1 + col1 - col2 / - col1 col2 FROM tab0
----
-2752
-7371
0

query I rowsort
SELECT + col0 + col1 + + col1 * - col0 AS col0 FROM tab2
----
-1247
-179
-4465

query I rowsort
SELECT DISTINCT col1 + + col1 - col0 AS col0 FROM tab1 AS cor0
----
-44
-54
49

query I rowsort
SELECT DISTINCT - + cor0.col1 + + col0 * cor0.col0 AS col0 FROM tab0 AS cor0
----
1128
490
7830

query I rowsort
SELECT ALL + col0 * col2 * - col2 - - col0 AS col0 FROM tab0 AS cor0
----
-26112
-598347
0

query I rowsort
SELECT ALL tab1.col0 + + col1 AS col1 FROM tab1
----
29
74
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * col2 * + col2 + - col1 col0 FROM tab1 AS cor0
----
-207946
-737293
-8774

query I rowsort
SELECT ALL - col2 * tab0.col0 + - tab0.col1 * col1 AS col0 FROM tab0
----
-15579
-8188
-9444

query I rowsort
SELECT + col0 * col1 + col0 FROM tab1 cor0
----
1120
704
81

query I rowsort
SELECT DISTINCT + col1 + + col1 * col0 AS col0 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN + col0 * + cor0.col2 + + col0 AND col1 OR NOT ( col0 * col1 + col1 ) BETWEEN - cor0.col0 AND + col1
----
104
1053
650

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + col2 * col1 col1 FROM tab1 AS cor0
----
16224
36504
5700

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col1 + - col0 col0 FROM tab1 cor0
----
576
75
960

query I rowsort
SELECT DISTINCT - cor0.col0 + col0 * - col0 AS col1 FROM tab0 AS cor0
----
-1260
-600
-8010

query I rowsort
SELECT ALL - - col2 * cor0.col2 + + cor0.col2 * col2 AS col0 FROM tab1 AS cor0
----
18432
5832
6498

query I rowsort
SELECT col2 * col0 + col2 AS col0 FROM tab1 AS cor0
----
216
3705
7776

query I rowsort
SELECT DISTINCT col0 * col2 + - col2 * col0 AS col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL + - col0 - col1 AS col1 FROM tab0 AS cor0
----
-110
-132
-180

onlyif mysql # use DIV operator for integer division
query I rowsort label-3095
SELECT col1 DIV col0 + - col1 FROM tab1 cor0
----
-10
-13
-18

skipif mysql # not compatible
query I rowsort label-3095
SELECT col1 / col0 + - col1 FROM tab1 cor0
----
-10
-13
-18

query I rowsort
SELECT - col0 * col1 - - col1 * col1 * col1 FROM tab1 cor0
----
1157
17498
360

query I rowsort
SELECT col1 * ( + 2 ) + - col2 AS col1 FROM tab0
----
100
139
193

onlyif mysql # use DIV operator for integer division
query I rowsort label-3098
SELECT col2 DIV - 69 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3098
SELECT col2 / - 69 AS col0 FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 55 col0 FROM tab0, tab1 AS cor0
----
55

query I rowsort
SELECT + ( + col0 ) * col1 * 62 AS col2 FROM tab0 cor0
----
127968
210490
502138

query I rowsort
SELECT - col2 * col1 + - ( col1 * col0 ) AS col2 FROM tab1
----
-1210
-1482
-2288

query I rowsort
SELECT ALL + 62 * col0 * col0 FROM tab0 AS cor0
----
35712
491102
75950

query I rowsort
SELECT - - 25 * col0 AS col1 FROM tab1 AS cor0
----
1600
2000
75

query I rowsort
SELECT - 39 * col2 AS col0 FROM tab1
----
-2106
-2223
-3744

query I rowsort
SELECT - col0 * 4 FROM tab1 AS cor0
----
-12
-256
-320

query I rowsort
SELECT + cor0.col0 + - col0 * col1 FROM tab2 AS cor0
----
-1264
-210
-4524

query I rowsort
SELECT DISTINCT - col1 + + 99 FROM tab1 cor0
----
73
86
89

query I rowsort
SELECT col1 + + cor0.col2 AS col0 FROM tab2 cor0
----
55
58
85

query I rowsort
SELECT ALL - col1 * + col2 - + 81 AS col2 FROM tab0 AS cor0
----
-178
-2919
-7543

query I rowsort
SELECT - - col1 + 97 AS col2 FROM tab2 cor0
----
114
128
156

query I rowsort
SELECT + - cor0.col2 * 74 * cor0.col1 FROM tab2 AS cor0
----
-113516
-47804
-61938

query I rowsort
SELECT DISTINCT - 43 AS col0 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
-43

query I rowsort
SELECT col0 + - 70 AS col0 FROM tab2 AS cor0
----
-63
8
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + 78 * - col0 col0 FROM tab2 AS cor0
----
-539
-6006
-6083

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3115
SELECT - col0 / CAST( NULL AS SIGNED ) + + col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3115
SELECT - col0 / CAST ( NULL AS INTEGER ) + + col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3116
SELECT col0 + - CAST( NULL AS SIGNED ) * + 15 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3116
SELECT col0 + - CAST ( NULL AS INTEGER ) * + 15 AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col1 + 18 FROM tab0
----
104
109
115

query I rowsort
SELECT + col2 + - 29 FROM tab0
----
-28
4
53

query I rowsort
SELECT - 9 FROM tab1, tab2 AS cor0
----
9 values hashing to caf28657beb43049740febe1fa9ded5a

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3120
SELECT ALL - tab2.col1 * - CAST( NULL AS SIGNED ) + col1 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3120
SELECT ALL - tab2.col1 * - CAST ( NULL AS INTEGER ) + col1 AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + 79 * 38 FROM tab2, tab2 cor0
----
9 values hashing to 32d990208a3fb7bfbf086e1b5f2938ad

query I rowsort
SELECT - col1 * col2 * col0 + + col2 AS col0 FROM tab0 cor0
----
-3394
-664036
-68079

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 AS cor0, tab0 AS cor1, tab2, tab0 cor2
----
3645 values hashing to 93ed44f621cc970f32b0cc9543b45262

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 35 col2 FROM tab1 AS cor0
----
-35
-35
-35

query I rowsort
SELECT ALL ( col0 ) + - col1 * + col0 FROM tab0 cor0
----
-2040
-3360
-8010

onlyif mysql # use DIV operator for integer division
query I rowsort label-3126
SELECT ALL 19 + + 32 DIV col2 AS col0 FROM tab0 AS cor0
----
19
19
51

skipif mysql # not compatible
query I rowsort label-3126
SELECT ALL 19 + + 32 / col2 AS col0 FROM tab0 AS cor0
----
19
19
51

query I rowsort
SELECT DISTINCT ( + ( + col2 ) ) + - col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT 13 - col0 AS col2 FROM tab0 AS cor0
----
-11
-22
-76

query I rowsort
SELECT - - ( col1 ) * col0 AS col0 FROM tab1 AS cor0
----
1040
640
78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3130
SELECT CAST( + col2 AS SIGNED ) + - col2 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3130
SELECT CAST ( + col2 AS INTEGER ) + - col2 AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - + col2 * col1 + + col0 FROM tab2 AS cor0
----
-1456
-567
-830

query I rowsort
SELECT DISTINCT - - 55 * + col0 * col2 + 40 AS col2 FROM tab2 cor0
----
10435
111580
165150

query I rowsort
SELECT ALL - 96 FROM tab0, tab0 AS cor0
----
9 values hashing to c89b545346f99713888a7934e4caa539

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3134
SELECT CAST( cor0.col1 AS SIGNED ) * + cor0.col0 + 92 + - 80 FROM tab0, tab1 AS cor0
----
9 values hashing to 84ae70ec9f2234c3bcb1cf2a4fb18e03

skipif mysql # not compatible
query I rowsort label-3134
SELECT CAST ( cor0.col1 AS INTEGER ) * + cor0.col0 + 92 + - 80 FROM tab0, tab1 AS cor0
----
9 values hashing to 84ae70ec9f2234c3bcb1cf2a4fb18e03

query I rowsort
SELECT - col0 * cor0.col1 + col2 FROM tab2 AS cor0
----
-1305
-190
-4576

onlyif mysql # use DIV operator for integer division
query I rowsort label-3136
SELECT cor0.col1 + col2 DIV cor0.col0 FROM tab1 cor0
----
10
14
44

skipif mysql # not compatible
query I rowsort label-3136
SELECT cor0.col1 + col2 / cor0.col0 FROM tab1 cor0
----
10
14
44

query I rowsort
SELECT col0 * + col2 + + col1 AS col2 FROM tab0 AS cor0
----
132
7389
878

query I rowsort
SELECT + 70 - col1 AS col1 FROM tab0 cor0
----
-16
-21
-27

query I rowsort
SELECT - 35 + col2 * col0 AS col1 FROM tab2 AS cor0
----
154
1993
2967

query I rowsort
SELECT - ( col1 ) * - col0 + 1 FROM tab2 AS cor0
----
1344
218
4603

query I rowsort
SELECT + cor0.col2 * - col2 + + col1 + cor0.col2 AS col0 FROM tab0 AS cor0
----
-6551
-970
97

query I rowsort
SELECT - 62 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to f0e93f6ff5fc3cf50a14e276206dad5c

query I rowsort
SELECT col2 * - 80 * col1 FROM tab0
----
-227040
-596960
-7760

query I rowsort
SELECT DISTINCT 41 * col2 AS col0 FROM tab1
----
2214
2337
3936

onlyif mysql # use DIV operator for integer division
query I rowsort label-3145
SELECT DISTINCT + ( + 42 ) DIV + tab1.col1 AS col1 FROM tab1
----
1
3
4

skipif mysql # not compatible
query I rowsort label-3145
SELECT DISTINCT + ( + 42 ) / + tab1.col1 AS col1 FROM tab1
----
1
3
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + - col1 * ( + col1 ) * + col1 col0 FROM tab0 AS cor0
----
-636032
-753482
-912638

query I rowsort
SELECT + - col0 * - col1 * col0 AS col2 FROM tab2 AS cor0
----
106097
1519
358956

query I rowsort
SELECT DISTINCT col0 * + col0 + col2 + + col1 * - col2 FROM tab2
----
-761
4576
5633

query I rowsort
SELECT col2 * + col2 * - tab1.col1 FROM tab1
----
-119808
-32490
-75816

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3150
SELECT DISTINCT + CAST( + 78 AS SIGNED ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
78

skipif mysql # not compatible
query I rowsort label-3150
SELECT DISTINCT + CAST ( + 78 AS INTEGER ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
78

query I rowsort
SELECT - col1 + - col0 * col1 * col1 + - tab0.col2 FROM tab0
----
-177623
-329413
-737182

query I rowsort
SELECT - col2 * ( + col2 * + 35 ) + - 51 FROM tab1
----
-102111
-113766
-322611

query I rowsort
SELECT DISTINCT + 6 * + col0 FROM tab2 AS cor0
----
42
468
474

query I rowsort
SELECT DISTINCT - col0 + + cor0.col0 * ( + col2 ) + col2 FROM tab2 AS cor0
----
1976
209
2961

query I rowsort
SELECT + 70 + cor0.col2 AS col0 FROM tab2 AS cor0
----
108
96
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3156
SELECT DISTINCT CAST( NULL AS DECIMAL ) * col1 + col0 * tab0.col2 AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3156
SELECT DISTINCT CAST ( NULL AS REAL ) * col1 + col0 * tab0.col2 AS col1 FROM tab0
----
NULL

query I rowsort
SELECT 64 * - 57 + col1 FROM tab2
----
-3589
-3617
-3631

query I rowsort
SELECT ALL ( + col0 ) * - col0 - 53 * - col2 AS col2 FROM tab2 AS cor0
----
-4227
-4706
1382

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3159
SELECT ALL + ( tab0.col1 * col2 ) + - CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3159
SELECT ALL + ( tab0.col1 * col2 ) + - CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 * - col1 + - col0 AS col1 FROM tab0
----
-7420
-8370
-9444

query I rowsort
SELECT DISTINCT + tab1.col0 + col1 AS col2 FROM tab1
----
29
74
93

query I rowsort
SELECT ALL col0 * + col0 + col1 FROM tab2
----
6143
6258
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 77 col0 FROM tab2 cor0
----
77
77
77

query I rowsort
SELECT - col2 + - col2 * + col1 FROM tab1 AS cor0
----
-1344
-1458
-627

query I rowsort
SELECT DISTINCT col1 * col1 * 71 AS col0 FROM tab0 AS cor0
----
525116
587951
668039

query I rowsort
SELECT DISTINCT - + 5 * + col2 FROM tab2 AS cor0
----
-130
-135
-190

query I rowsort
SELECT + 37 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to a10b03e72860b949bdff53827700a9a8

query I rowsort
SELECT col0 * - col0 + + 96 FROM tab2 AS cor0
----
-5988
-6145
47

onlyif mysql # use DIV operator for integer division
query I rowsort label-3169
SELECT DISTINCT - + col2 DIV col1 AS col1 FROM tab1 AS cor0
----
-2
-5
-7

skipif mysql # not compatible
query I rowsort label-3169
SELECT DISTINCT - + col2 / col1 AS col1 FROM tab1 AS cor0
----
-2
-5
-7

query I rowsort
SELECT ALL - cor0.col1 * - col1 AS col0 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT + col1 * + cor0.col1 + col0 * - 94 AS col0 FROM tab0 AS cor0
----
-85
5140
6119

query I rowsort
SELECT DISTINCT - + ( + col0 ) * ( col2 ) + col1 AS col1 FROM tab2 AS cor0
----
-158
-1969
-2985

query I rowsort
SELECT DISTINCT + cor0.col1 + - cor0.col0 * - cor0.col1 FROM tab0 AS cor0
----
2150
3492
8190

onlyif mysql # use DIV operator for integer division
query I rowsort label-3174
SELECT + col2 DIV + ( col1 ) FROM tab1
----
2
5
7

skipif mysql # not compatible
query I rowsort label-3174
SELECT + col2 / + ( col1 ) FROM tab1
----
2
5
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-3175
SELECT - tab1.col1 + col1 DIV col0 + col0 DIV CAST( - col2 AS SIGNED ) FROM tab1
----
-11
-13
-18

skipif mysql # not compatible
query I rowsort label-3175
SELECT - tab1.col1 + col1 / col0 + col0 / CAST ( - col2 AS INTEGER ) FROM tab1
----
-11
-13
-18

query I rowsort
SELECT col0 + + 78 FROM tab1
----
142
158
81

query I rowsort
SELECT DISTINCT ( + tab1.col2 ) FROM tab1, tab1 AS cor0
----
54
57
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-3178
SELECT DISTINCT - col0 * + 90 - col1 DIV + col0 AS col2 FROM tab1 AS cor0
----
-278
-5760
-7200

skipif mysql # not compatible
query I rowsort label-3178
SELECT DISTINCT - col0 * + 90 - col1 / + col0 AS col2 FROM tab1 AS cor0
----
-278
-5760
-7200

query I rowsort
SELECT cor0.col1 + ( - col2 ) * + col2 AS col0 FROM tab0 cor0
----
-1003
-6633
96

query I rowsort
SELECT ALL - cor0.col2 - + cor0.col1 AS col1 FROM tab0 AS cor0
----
-119
-173
-98

query I rowsort
SELECT - col2 * - 13 + - col2 FROM tab1 AS cor0
----
1152
648
684

query I rowsort
SELECT - col2 - ( cor0.col1 ) FROM tab1 cor0
----
-109
-67
-80

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 ALL + + col0 + + cor0.col0 FROM tab2 AS cor0
----
14
156
158

query I rowsort
SELECT DISTINCT - - ( 80 ) * col0 AS col0 FROM tab0 AS cor0
----
1920
2800
7120

onlyif mysql # use DIV operator for integer division
query I rowsort label-3186
SELECT + - 3 DIV cor0.col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3186
SELECT + - 3 / cor0.col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort
SELECT + - CAST ( col1 AS REAL ) FROM tab1 cor0
----
-10
-13
-26

query I rowsort
SELECT DISTINCT ( - 50 ) FROM tab2 AS cor0
----
-50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 * 54 col2 FROM tab2 AS cor0
----
1674
3186
918

query I rowsort
SELECT ALL - - ( + col0 ) + + col1 AS col0 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT ALL col0 - col0 * col0 FROM tab2
----
-42
-6006
-6162

query I rowsort
SELECT ALL + ( col2 ) + col0 * - 77 AS col2 FROM tab2 AS cor0
----
-512
-5980
-6045

query I rowsort
SELECT DISTINCT - + cor0.col2 + ( + col0 ) * 20 AS col0 FROM tab2 AS cor0
----
113
1534
1542

query I rowsort
SELECT ALL - 24 - + col2 FROM tab0 AS cor0
----
-106
-25
-57

query I rowsort
SELECT - + col1 + - 9 * cor0.col0 FROM tab1 AS cor0
----
-53
-586
-733

query I rowsort
SELECT col2 + - 28 AS col1 FROM tab0 AS cor0
----
-27
5
54

query I rowsort
SELECT ALL - 27 * + 82 * + col2 AS col2 FROM tab1 AS cor0
----
-119556
-126198
-212544

onlyif mysql # use DIV operator for integer division
query I rowsort label-3198
SELECT tab1.col2 DIV - tab1.col2 AS col1 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3198
SELECT tab1.col2 / - tab1.col2 AS col1 FROM tab1
----
-1
-1
-1

query I rowsort
SELECT DISTINCT 76 - cor0.col2 FROM tab1 AS cor0
----
-20
19
22

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3200
SELECT + CAST( NULL AS SIGNED ) + col1 / col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3200
SELECT + CAST ( NULL AS INTEGER ) + col1 / col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3201
SELECT + cor0.col2 + col2 DIV - col0 FROM tab0 AS cor0
----
1
32
82

skipif mysql # not compatible
query I rowsort label-3201
SELECT + cor0.col2 + col2 / - col0 FROM tab0 AS cor0
----
1
32
82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3202
SELECT DISTINCT - CAST( NULL AS DECIMAL ) - + 70 * col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3202
SELECT DISTINCT - CAST ( NULL AS REAL ) - + 70 * col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + col0 + + cor0.col0 * col2 FROM tab2 cor0
----
196
2106
3081

onlyif mysql # use DIV operator for integer division
query I rowsort label-3204
SELECT - + col2 - col0 DIV + col1 FROM tab0 cor0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-3204
SELECT - + col2 - col0 / + col1 FROM tab0 cor0
----
-1
-33
-82

query I rowsort
SELECT + - col0 + ( - col0 ) * + col0 AS col0 FROM tab0 cor0
----
-1260
-600
-8010

query I rowsort
SELECT 3 * + col0 AS col1 FROM tab1 AS cor0
----
192
240
9

query I rowsort
SELECT col0 * - col2 - - col2 * + col2 AS col1 FROM tab1 AS cor0
----
-399
1536
2754

query I rowsort
SELECT DISTINCT 58 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
58

query I rowsort
SELECT 34 + + col0 FROM tab1 cor0
----
114
37
98

query I rowsort
SELECT - 27 * col2 AS col1 FROM tab0 AS cor0
----
-2214
-27
-891

query I rowsort
SELECT ALL + 5 + - 97 FROM tab1
----
-92
-92
-92

query I rowsort
SELECT DISTINCT - - cor0.col1 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
86
91
97

query I rowsort
SELECT col2 + - col2 * - col2 FROM tab2 AS cor0
----
1482
702
756

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3214
SELECT ALL - col1 + - CAST( 9 AS SIGNED ) * + col2 + - col1 FROM tab0 AS cor0
----
-203
-469
-920

skipif mysql # not compatible
query I rowsort label-3214
SELECT ALL - col1 + - CAST ( 9 AS INTEGER ) * + col2 + - col1 FROM tab0 AS cor0
----
-203
-469
-920

query I rowsort
SELECT ALL 32 + 27 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

query I rowsort
SELECT ALL - col0 * - ( + col1 ) FROM tab1
----
1040
640
78

query I rowsort
SELECT ALL col1 - - ( col0 ) * + col2 FROM tab0
----
132
7389
878

onlyif mysql # use DIV operator for integer division
query I rowsort label-3218
SELECT ALL - col0 DIV ( tab1.col1 * + tab1.col0 ) FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3218
SELECT ALL - col0 / ( tab1.col1 * + tab1.col0 ) FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + cor0.col0 * - col1 col2 FROM tab2 AS cor0
----
-1343
-217
-4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - 23 col1 FROM tab0 AS cor0
----
1978
2093
2231

query I rowsort
SELECT DISTINCT 81 * - 51 FROM tab0, tab1 AS cor0
----
-4131

query I rowsort
SELECT + 88 * + col1 AS col0 FROM tab2 AS cor0
----
1496
2728
5192

query I rowsort
SELECT col1 + - col1 * col2 FROM tab2 AS cor0
----
-1475
-629
-806

query I rowsort
SELECT 16 * col0 AS col0 FROM tab0 AS cor0
----
1424
384
560

query I rowsort
SELECT col1 * tab2.col1 + col1 AS col0 FROM tab2
----
306
3540
992

query I rowsort
SELECT + 12 * + col0 AS col0 FROM tab2 AS cor0
----
84
936
948

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3227
SELECT col1 + + col1 / CAST( NULL AS DECIMAL ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3227
SELECT col1 + + col1 / CAST ( NULL AS REAL ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + 77 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to c7e5f48ecd3843d54a76808ed1f43ff6

query I rowsort
SELECT DISTINCT 26 * + col1 AS col1 FROM tab0
----
2236
2366
2522

query I rowsort
SELECT - tab2.col0 + + 63 + + 46 * col2 FROM tab2
----
1181
1298
1732

query I rowsort
SELECT + 60 * col1 + col1 AS col2 FROM tab2 AS cor0
----
1037
1891
3599

query I rowsort
SELECT ALL - col2 + 40 * 65 AS col0 FROM tab2
----
2562
2573
2574

query I rowsort
SELECT DISTINCT + tab2.col2 * col1 + col0 FROM tab2
----
1612
725
844

query I rowsort
SELECT ALL ( 7 ) * col0 + + col2 AS col1 FROM tab0 AS cor0
----
201
246
705

query I rowsort
SELECT + ( + col2 ) * col1 + - col0 FROM tab1 cor0
----
1168
1401
506

query I rowsort
SELECT DISTINCT - col0 + col1 * col1 * 64 AS col2 FROM tab1 AS cor0
----
10736
43261
6336

onlyif mysql # use DIV operator for integer division
query I rowsort label-3237
SELECT ALL + cor0.col1 DIV cor0.col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3237
SELECT ALL + cor0.col1 / cor0.col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + 40 * + col1 AS col0 FROM tab2 AS cor0
----
1240
2360
680

query I rowsort
SELECT DISTINCT - col1 * cor0.col2 FROM tab2 cor0
----
-1534
-646
-837

onlyif mysql # use DIV operator for integer division
query I rowsort label-3240
SELECT + + 58 + col2 DIV col2 FROM tab1 AS cor0
----
59
59
59

skipif mysql # not compatible
query I rowsort label-3240
SELECT + + 58 + col2 / col2 FROM tab1 AS cor0
----
59
59
59

query I rowsort
SELECT DISTINCT - cor0.col0 + 18 FROM tab0, tab0 cor0, tab2 AS cor1
----
-17
-6
-71

query I rowsort
SELECT cor1.col1 + - 77 * ( tab2.col1 ) AS col1 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 1c2d6113d35db5fa84017a7d2e24826c

query I rowsort
SELECT 32 * - col1 AS col2 FROM tab2
----
-1888
-544
-992

query I rowsort
SELECT ALL + ( col1 ) * - col1 + + 1 FROM tab1
----
-168
-675
-99

query I rowsort
SELECT col0 - ( col1 ) * 41 AS col2 FROM tab0 AS cor0
----
-3502
-3642
-3942

query I rowsort
SELECT col2 + + col1 + col1 * + cor0.col2 * col0 FROM tab1 AS cor0
----
36547
4292
99949

onlyif mysql # use DIV operator for integer division
query I rowsort label-3247
SELECT + + col2 * col1 DIV + cor0.col0 AS col1 FROM tab2 AS cor0
----
119
19
8

skipif mysql # not compatible
query I rowsort label-3247
SELECT + + col2 * col1 / + cor0.col0 AS col1 FROM tab2 AS cor0
----
119
19
8

query I rowsort
SELECT DISTINCT + 53 + - col0 * 67 + - col0 FROM tab1 AS cor0
----
-151
-4299
-5387

query I rowsort
SELECT + - 47 + - cor0.col2 FROM tab1 AS cor0
----
-101
-104
-143

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - cor0.col2 * - col0 col1 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT DISTINCT 52 + col0 AS col1 FROM tab0 AS cor0
----
141
76
87

query I rowsort
SELECT ALL - + col0 * - col1 - 82 AS col2 FROM tab2 AS cor0
----
1261
135
4520

query I rowsort
SELECT 42 * + col2 FROM tab1
----
2268
2394
4032

query I rowsort
SELECT 65 * col0 AS col1 FROM tab1 AS cor0
----
195
4160
5200

query I rowsort
SELECT col0 * + col0 + + col2 FROM tab0 AS cor0
----
1226
609
8003

query I rowsort
SELECT ALL col2 + + cor0.col2 * col0 AS col2 FROM tab1 AS cor0
----
216
3705
7776

onlyif mysql # use DIV operator for integer division
query I rowsort label-3257
SELECT DISTINCT + - ( + col0 ) + - 89 DIV col2 AS col1 FROM tab1 AS cor0
----
-4
-65
-80

skipif mysql # not compatible
query I rowsort label-3257
SELECT DISTINCT + - ( + col0 ) + - 89 / col2 AS col1 FROM tab1 AS cor0
----
-4
-65
-80

query I rowsort
SELECT - col1 * cor0.col1 + col0 * col1 FROM tab1 cor0
----
-598
540
871

query I rowsort
SELECT + col1 * - 22 AS col2 FROM tab0 AS cor0
----
-1892
-2002
-2134

query I rowsort
SELECT - - col2 * ( - 23 ) FROM tab0 AS cor0
----
-1886
-23
-759

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 * col1 col0 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT col1 + - 45 AS col1 FROM tab2 cor0
----
-14
-28
14

query I rowsort
SELECT 49 * - col0 FROM tab0 cor0
----
-1176
-1715
-4361

query I rowsort
SELECT DISTINCT + - col0 * - 60 AS col2 FROM tab0 AS cor0
----
1440
2100
5340

query I rowsort
SELECT ALL - col1 + col1 * 90 AS col2 FROM tab2 AS cor0
----
1513
2759
5251

onlyif mysql # use DIV operator for integer division
query I rowsort label-3266
SELECT DISTINCT - cor0.col0 DIV + 12 col2 FROM tab2 AS cor0
----
-6
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3266
SELECT DISTINCT - cor0.col0 / + 12 col2 FROM tab2 AS cor0
----
-6
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3267
SELECT col0 * + ( col0 ) + col2 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3267
SELECT col0 * + ( col0 ) + col2 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 * - 35 FROM tab0 AS cor0
----
-1225
-3115
-840

query I rowsort
SELECT DISTINCT - col2 + cor0.col1 * + col0 AS col1 FROM tab1 AS cor0
----
24
583
944

query I rowsort
SELECT + col0 * - col1 - col1 FROM tab0 AS cor0
----
-2150
-3492
-8190

query I rowsort
SELECT DISTINCT + - col0 + + 88 FROM tab2 AS cor0
----
10
81
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-3272
SELECT DISTINCT - cor0.col2 DIV - 21 + 99 * + col1 AS col0 FROM tab2 AS cor0
----
1684
3070
5842

skipif mysql # not compatible
query I rowsort label-3272
SELECT DISTINCT - cor0.col2 / - 21 + 99 * + col1 AS col0 FROM tab2 AS cor0
----
1684
3070
5842

onlyif mysql # use DIV operator for integer division
query I rowsort label-3273
SELECT cor0.col2 DIV cor0.col1 + col1 AS col0 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-3273
SELECT cor0.col2 / cor0.col1 + col1 AS col0 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT ALL 48 + - col1 AS col0 FROM tab2
----
-11
17
31

query I rowsort
SELECT DISTINCT 12 * col0 + - col2 * - col1 - col0 FROM tab1
----
1274
1437
2128

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3276
SELECT ALL col0 + col0 - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3276
SELECT ALL col0 + col0 - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3277
SELECT ALL - col0 * - CAST( NULL AS SIGNED ) + + col1 * col1 + + col0 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3277
SELECT ALL - col0 * - CAST ( NULL AS INTEGER ) + + col1 * col1 + + col0 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 9 col2 FROM tab0, tab1 AS cor0
----
-9

query I rowsort
SELECT col1 + - ( + col0 ) - + cor0.col1 AS col1 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT ALL + col0 + - col2 + - col0 * col1 AS col0 FROM tab2 AS cor0
----
-1302
-237
-4550

query I rowsort
SELECT ALL + col1 * 82 FROM tab0 AS cor0
----
7052
7462
7954

query I rowsort
SELECT DISTINCT - + col2 * 15 AS col0 FROM tab0 AS cor0
----
-1230
-15
-495

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3283
SELECT DISTINCT - col1 * CAST( col2 AS SIGNED ) col1 FROM tab2 AS cor0
----
-1534
-646
-837

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3283
SELECT DISTINCT - col1 * CAST ( col2 AS INTEGER ) col1 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT ALL + 20 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

query I rowsort
SELECT ALL - ( - 20 ) FROM tab1
----
20
20
20

query I rowsort
SELECT + + 44 AS col0 FROM tab1 cor0
----
44
44
44

query I rowsort
SELECT + - 49 FROM tab2 cor0
----
-49
-49
-49

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3288
SELECT - CAST( col1 AS SIGNED ) col0 FROM tab1 AS cor0
----
-10
-13
-26

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3288
SELECT - CAST ( col1 AS INTEGER ) col0 FROM tab1 AS cor0
----
-10
-13
-26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3289
SELECT - CAST( col2 AS SIGNED ) + col1 AS col0 FROM tab1 AS cor0
----
-28
-47
-83

skipif mysql # not compatible
query I rowsort label-3289
SELECT - CAST ( col2 AS INTEGER ) + col1 AS col0 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT ALL - 3 AS col2 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 65b7e16aaa7821ace3a45a9846ffa166

query I rowsort
SELECT - cor0.col2 + col0 - + 29 AS col1 FROM tab1 AS cor0
----
-22
-45
-80

query I rowsort
SELECT + col2 * cor0.col1 - - 36 * 14 AS col1 FROM tab2 AS cor0
----
1150
1341
2038

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - col1 col0 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT col2 * + col1 + col1 * - 32 + col0 FROM tab1
----
314
575
912

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 8 + col2 col2 FROM tab2 AS cor0
----
34
35
46

query I rowsort
SELECT DISTINCT + col2 * + col1 + 28 * col0 AS col0 FROM tab2 AS cor0
----
1033
2858
3718

query I rowsort
SELECT DISTINCT ( + col1 ) + cor0.col1 FROM tab1 cor0
----
20
26
52

query I rowsort
SELECT ALL + + 58 * col0 + col0 AS col0 FROM tab2 AS cor0
----
413
4602
4661

query I rowsort
SELECT ALL + + 23 AS col2 FROM tab2 AS cor0
----
23
23
23

query I rowsort
SELECT DISTINCT 44 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
44

query I rowsort
SELECT DISTINCT - col1 * - col1 * + col1 + col0 + + col1 AS col2 FROM tab0 AS cor0
----
636166
753751
912805

onlyif mysql # use DIV operator for integer division
query I rowsort label-3302
SELECT ALL - + 8 * col1 - 34 DIV + 6 AS col0 FROM tab1 AS cor0
----
-109
-213
-85

skipif mysql # not compatible
query I rowsort label-3302
SELECT ALL - + 8 * col1 - 34 / + 6 AS col0 FROM tab1 AS cor0
----
-109
-213
-85

query I rowsort
SELECT - col0 * + col1 * - col2 FROM tab1 AS cor0
----
36480
4212
99840

onlyif mysql # use DIV operator for integer division
query I rowsort label-3304
SELECT ALL - + col0 DIV col2 + - col0 + - col2 * col1 FROM tab1 AS cor0
----
-1328
-1407
-635

skipif mysql # not compatible
query I rowsort label-3304
SELECT ALL - + col0 / col2 + - col0 + - col2 * col1 FROM tab1 AS cor0
----
-1328
-1407
-635

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - col1 ) * ( col1 + cor0.col1 ) col1 FROM tab0 AS cor0
----
-14792
-16562
-18818

query I rowsort
SELECT DISTINCT col1 - + col1 * + col2 FROM tab2 AS cor0
----
-1475
-629
-806

query I rowsort
SELECT - + 13 + + col0 FROM tab2 AS cor0
----
-6
65
66

query I rowsort
SELECT DISTINCT cor0.col2 * + ( + col0 ) FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT - col2 * - 42 - col2 FROM tab1 AS cor0
----
2214
2337
3936

query I rowsort
SELECT + col2 * cor0.col0 - - 49 AS col0 FROM tab1 AS cor0
----
211
3697
7729

query I rowsort
SELECT ALL + col1 * + 81 - + cor0.col0 AS col2 FROM tab2 AS cor0
----
1298
2504
4701

query I rowsort
SELECT ALL - 57 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 520dc393896969e02a72ab6c5d92126b

query I rowsort
SELECT DISTINCT + + col2 - 56 FROM tab1 cor0
----
-2
1
40

query I rowsort
SELECT - - col0 * + col1 - cor0.col1 AS col1 FROM tab2 AS cor0
----
1326
186
4543

query I rowsort
SELECT ALL - - cor0.col1 * 76 FROM tab1 AS cor0
----
1976
760
988

query I rowsort
SELECT DISTINCT - + 59 + + 35 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
-24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 23 + - col1 col2 FROM tab0 AS cor0
----
-109
-114
-120

query I rowsort
SELECT DISTINCT + col2 * ( - col1 ) FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT ALL - col2 * col0 + + col0 AS col0 FROM tab1 AS cor0
----
-159
-3584
-7600

query I rowsort
SELECT cor0.col0 * + 49 FROM tab1, tab1 cor0, tab2 AS cor1
----
27 values hashing to c0814725a31e269a92b3ffab3e52c0e5

onlyif mysql # use DIV operator for integer division
query I rowsort label-3321
SELECT ALL col0 DIV + ( + col0 + + 62 ) FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3321
SELECT ALL col0 / + ( + col0 + + 62 ) FROM tab0 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3322
SELECT DISTINCT 46 * + col2 * col1 + + CAST( col2 + col2 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
130614
343416
4464

skipif mysql # not compatible
query I rowsort label-3322
SELECT DISTINCT 46 * + col2 * col1 + + CAST ( col2 + col2 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
130614
343416
4464

query I rowsort
SELECT - cor0.col0 + col0 * col1 FROM tab2 AS cor0
----
1264
210
4524

query I rowsort
SELECT DISTINCT + 18 * 38 FROM tab0 AS cor0
----
684

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3325
SELECT tab2.col0 * CAST( + col0 AS SIGNED ) * col1 + - 15 AS col2 FROM tab2
----
106082
1504
358941

skipif mysql # not compatible
query I rowsort label-3325
SELECT tab2.col0 * CAST ( + col0 AS INTEGER ) * col1 + - 15 AS col2 FROM tab2
----
106082
1504
358941

query I rowsort
SELECT DISTINCT + col1 + + 81 + - 41 AS col1 FROM tab1
----
50
53
66

query I rowsort
SELECT DISTINCT + + ( col2 ) FROM tab2 cor0
----
26
27
38

query I rowsort
SELECT - + ( col2 ) + col2 * ( - 95 ) * col1 AS col1 FROM tab1 AS cor0
----
-118656
-133434
-54207

query I rowsort
SELECT DISTINCT + col1 * + 60 AS col2 FROM tab0 AS cor0
----
5160
5460
5820

query I rowsort
SELECT - ( 82 ) FROM tab2 AS cor0
----
-82
-82
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 * - col1 col0 FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT col0 * - col2 - tab0.col0 AS col0 FROM tab0
----
-70
-7387
-816

query I rowsort
SELECT DISTINCT - tab0.col1 / col0 AS col0 FROM tab0 WHERE NOT ( NULL ) IN ( col1 + col0 )
----

query I rowsort
SELECT col2 + col1 * col1 FROM tab2 WHERE - col1 * col1 + - col0 <= NULL
----

query I rowsort
SELECT DISTINCT - col2 * col0 * + col1 AS col2 FROM tab2
----
-119652
-51034
-5859

query I rowsort
SELECT ALL - col0 * + col1 * + col0 + + col2 AS col2 FROM tab0
----
-118824
-49503
-720729

query I rowsort
SELECT col1 FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT ALL + col1 + col1 * col2 FROM tab2
----
1593
663
868

onlyif mysql # use DIV operator for integer division
query I rowsort label-3339
SELECT - col0 DIV col1 + col2 FROM tab1
----
51
54
90

skipif mysql # not compatible
query I rowsort label-3339
SELECT - col0 / col1 + col2 FROM tab1
----
51
54
90

query I rowsort
SELECT col0 * - col1 * tab1.col2 FROM tab1
----
-36480
-4212
-99840

query I rowsort
SELECT + col0 AS col1 FROM tab0 WHERE NOT NULL NOT IN ( - col0 + tab0.col2 * tab0.col2 )
----

query I rowsort
SELECT DISTINCT - col0 * col1 - col2 FROM tab1
----
-1136
-132
-697

query I rowsort
SELECT ALL + tab1.col1 AS col1 FROM tab1 WHERE NULL >= ( - col0 + col2 )
----

query I rowsort
SELECT - col0 AS col1 FROM tab2 WHERE col1 + - col2 BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + col2 * col2 + col2 FROM tab1
----
2970
3306
9312

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col1 NOT BETWEEN NULL AND - col1
----

query I rowsort
SELECT ALL + 56 + col2 + ( col2 ) * col2 AS col2 FROM tab0 AS cor0
----
1178
58
6862

query I rowsort
SELECT + col1 + col2 * tab2.col1 FROM tab2
----
1593
663
868

query I rowsort
SELECT ALL - col0 * + col2 + - col2 * + tab0.col0 FROM tab0
----
-14596
-1584
-70

query I rowsort
SELECT ALL + col1 FROM tab2 AS cor0 WHERE NULL <> - col0
----

query I rowsort
SELECT DISTINCT tab1.col2 * - col1 * col1 AS col1 FROM tab1 WHERE NOT NULL = col2
----

query I rowsort
SELECT ALL + col2 * - tab1.col2 AS col0 FROM tab1
----
-2916
-3249
-9216

query I rowsort
SELECT ALL + col2 * + col0 * col0 AS col2 FROM tab0
----
1225
19008
649522

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) >= - col0 + col0
----

query I rowsort
SELECT col1 * - col0 * - col2 AS col1 FROM tab1
----
36480
4212
99840

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 col1 FROM tab1 WHERE NULL IN ( col2 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( + tab2.col0 + - col0 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-3358
SELECT - col1 DIV - col2 - - tab0.col1 * col2 col2 FROM tab0
----
194
2840
7463

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3358
SELECT - col1 / - col2 - - tab0.col1 * col2 col2 FROM tab0
----
194
2840
7463

query I rowsort
SELECT + col0 * col0 + - tab2.col1 FROM tab2
----
18
6025
6224

onlyif mysql # use DIV operator for integer division
query I rowsort label-3360
SELECT col0 DIV col2 - col2 AS col2 FROM tab0
----
-33
-81
34

skipif mysql # not compatible
query I rowsort label-3360
SELECT col0 / col2 - col2 AS col2 FROM tab0
----
-33
-81
34

query I rowsort
SELECT ALL col2 * + col1 AS col0 FROM tab2 WHERE ( col2 ) BETWEEN + col2 + col2 + col2 AND NULL
----

query I rowsort
SELECT - 60 * 67 AS col2 FROM tab0 AS cor0
----
-4020
-4020
-4020

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3363
SELECT DISTINCT + + CAST( NULL AS DECIMAL ) + 47 * + col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3363
SELECT DISTINCT + + CAST ( NULL AS REAL ) + 47 * + col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + col1 - + 57 FROM tab0 AS cor0
----
29
34
40

query I rowsort
SELECT ALL col0 + + 21 AS col1 FROM tab2 AS cor0
----
100
28
99

query I rowsort
SELECT ALL cor0.col1 + cor0.col2 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 71bdffb602517a95c6721e05f7b4b3dd

query I rowsort
SELECT + 60 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to a97561e17ecaa618227c75a57b268f33

query I rowsort
SELECT ALL 67 + - col2 * col2 * 13 - tab1.col2 FROM tab1
----
-119837
-37895
-42227

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3369
SELECT ALL + 33 + ( + col0 * CAST( ( - col0 ) AS SIGNED ) ) - col1 FROM tab0
----
-1289
-629
-7979

skipif mysql # not compatible
query I rowsort label-3369
SELECT ALL + 33 + ( + col0 * CAST ( ( - col0 ) AS INTEGER ) ) - col1 FROM tab0
----
-1289
-629
-7979

query I rowsort
SELECT + - ( 95 ) - cor0.col1 FROM tab1 AS cor0
----
-105
-108
-121

query I rowsort
SELECT - - col1 - 86 * + cor0.col1 FROM tab0 AS cor0
----
-7310
-7735
-8245

query I rowsort
SELECT ( col0 ) - col1 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT ALL ( + tab0.col0 ) + col0 AS col0 FROM tab0
----
178
48
70

query I rowsort
SELECT ALL + col2 * 28 + col0 FROM tab0
----
2385
63
948

query I rowsort
SELECT cor0.col0 * 21 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to d79a460be21fe4e37c6b15765bacb96b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab1.col1 + col0 * 7 col0 FROM tab1
----
458
47
573

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 + 36 + - col0 col2 FROM tab2 AS cor0
----
-101
-2
-60

query I rowsort
SELECT + - col1 * - col0 AS col0 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT ALL col0 + + ( col2 ) * + col0 FROM tab2 AS cor0
----
196
2106
3081

query I rowsort
SELECT - 48 * col0 AS col2 FROM tab0 AS cor0
----
-1152
-1680
-4272

query I rowsort
SELECT ALL + ( col2 ) * + col2 + col1 + + col2 AS col1 FROM tab0 AS cor0
----
1208
6897
99

onlyif mysql # use DIV operator for integer division
query I rowsort label-3382
SELECT ALL col2 DIV ( col0 ) + - col0 FROM tab2 AS cor0
----
-4
-78
-79

skipif mysql # not compatible
query I rowsort label-3382
SELECT ALL col2 / ( col0 ) + - col0 FROM tab2 AS cor0
----
-4
-78
-79

query I rowsort
SELECT - 35 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to c12e8bdd687c9040a5600dab3b6adf5b

query I rowsort
SELECT ALL + col2 * - col2 - + cor0.col0 AS col1 FROM tab1 AS cor0
----
-2919
-3313
-9296

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3385
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + col1 * col1 + col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3385
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + col1 * col1 + col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT 89 * col0 + col2 + col0 FROM tab2 AS cor0
----
657
7046
7148

query I rowsort
SELECT - 24 * + col2 FROM tab2 cor0
----
-624
-648
-912

query I rowsort
SELECT 27 * col0 - + col1 FROM tab2 AS cor0
----
158
2047
2116

onlyif mysql # use DIV operator for integer division
query I rowsort label-3389
SELECT - + 58 DIV - col2 + - col1 DIV + col1 FROM tab0 cor0
----
-1
0
57

skipif mysql # not compatible
query I rowsort label-3389
SELECT - + 58 / - col2 + - col1 / + col1 FROM tab0 cor0
----
-1
0
57

query I rowsort
SELECT + tab0.col1 - ( tab0.col2 * + col1 ) AS col1 FROM tab0
----
-2752
-7371
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 67 * col1 - + col2 col2 FROM tab1 AS cor0
----
1688
613
775

query I rowsort
SELECT DISTINCT ( - col2 ) * col1 AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT ALL + cor0.col0 * - col1 + col1 AS col1 FROM tab0 cor0
----
-1978
-3298
-8008

query I rowsort
SELECT + - 21 * cor0.col2 FROM tab2 AS cor0
----
-546
-567
-798

query I rowsort
SELECT ALL - tab2.col0 + + 58 * - col1 * + col2 FROM tab2
----
-37547
-48553
-89050

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 72 * + col1 + - col0 col1 FROM tab2
----
1145
2225
4170

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * - 75 - - col1 col2 FROM tab1
----
-199
-4790
-5987

query I rowsort
SELECT ALL - col2 - - 33 * tab2.col1 FROM tab2
----
1921
523
996

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * - 51 col0 FROM tab0 AS cor0
----
-1683
-4182
-51

query I rowsort
SELECT DISTINCT col1 * 76 FROM tab2 AS cor0
----
1292
2356
4484

query I rowsort
SELECT DISTINCT + col2 * 45 - col2 AS col0 FROM tab2 AS cor0
----
1144
1188
1672

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + 32 + + cor0.col0 col0 FROM tab1 AS cor0
----
-1725
-1760
-2992

query I rowsort
SELECT DISTINCT col1 * + 96 * + 15 FROM tab1 AS cor0
----
14400
18720
37440

query I rowsort
SELECT ALL col2 * 30 AS col1 FROM tab1 AS cor0
----
1620
1710
2880

query I rowsort
SELECT - col0 * - ( 33 ) FROM tab2 AS cor0
----
231
2574
2607

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3406
SELECT DISTINCT cor0.col1 + CAST( + col0 AS SIGNED ) * + cor0.col2 * - col1 col0 FROM tab0 cor0
----
-3298
-664027
-68026

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3406
SELECT DISTINCT cor0.col1 + CAST ( + col0 AS INTEGER ) * + cor0.col2 * - col1 col0 FROM tab0 cor0
----
-3298
-664027
-68026

query I rowsort
SELECT DISTINCT - col0 + - 92 FROM tab1 AS cor0
----
-156
-172
-95

query I rowsort
SELECT ALL - 11 + - col0 AS col0 FROM tab1
----
-14
-75
-91

query I rowsort
SELECT ALL + ( col1 ) * - col1 FROM tab0
----
-7396
-8281
-9409

query I rowsort
SELECT ALL cor0.col0 * + col0 * col0 FROM tab1 AS cor0
----
262144
27
512000

onlyif mysql # use DIV operator for integer division
query I rowsort label-3411
SELECT DISTINCT col1 DIV 65 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3411
SELECT DISTINCT col1 / 65 FROM tab1 AS cor0
----
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3412
SELECT ALL col0 * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3412
SELECT ALL col0 * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col0 col1 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to c82df1de3cb666224690a83f3d790d79

query I rowsort
SELECT ALL + col0 * col0 * - tab2.col0 AS col2 FROM tab2
----
-343
-474552
-493039

query I rowsort
SELECT + - col0 * - col0 AS col0 FROM tab0 cor0
----
1225
576
7921

query I rowsort
SELECT ALL - + cor0.col2 + col0 * cor0.col2 AS col0 FROM tab1 AS cor0
----
108
3591
7584

query I rowsort
SELECT ALL - tab0.col2 * + col1 + - tab0.col1 + + col0 FROM tab0
----
-159
-2900
-7464

query I rowsort
SELECT DISTINCT col1 + - col0 * - col2 FROM tab1
----
188
3658
7693

onlyif mysql # use DIV operator for integer division
query I rowsort label-3419
SELECT ALL + 52 DIV + cor0.col1 + - col1 AS col0 FROM tab1 AS cor0
----
-24
-5
-9

skipif mysql # not compatible
query I rowsort label-3419
SELECT ALL + 52 / + cor0.col1 + - col1 AS col0 FROM tab1 AS cor0
----
-24
-5
-9

query I rowsort
SELECT + col2 * col2 + - col2 * + col0 * col0 FROM tab2 AS cor0
----
-157508
-235714
-594

query I rowsort
SELECT + 67 + - cor0.col1 FROM tab2 AS cor0
----
36
50
8

query I rowsort
SELECT DISTINCT - 74 * - col0 + - col1 * col1 AS col0 FROM tab2 AS cor0
----
-443
2291
5557

query I rowsort
SELECT ALL - cor0.col2 * col0 - col1 * col2 FROM tab2 AS cor0
----
-1026
-3562
-3648

query I rowsort
SELECT + - cor0.col0 * col0 + cor0.col1 FROM tab1 AS cor0
----
-4086
-6387
17

query I rowsort
SELECT ALL - ( - col1 ) + - col0 AS col2 FROM tab0 AS cor0
----
2
62
62

query I rowsort
SELECT - col1 + col2 * - col2 AS col2 FROM tab2 AS cor0
----
-1461
-735
-760

query I rowsort
SELECT DISTINCT + + col2 * cor0.col1 AS col2 FROM tab1 AS cor0
----
1248
1404
570

onlyif mysql # use DIV operator for integer division
query I rowsort label-3428
SELECT ALL - 33 DIV - col2 FROM tab0
----
0
1
33

skipif mysql # not compatible
query I rowsort label-3428
SELECT ALL - 33 / - col2 FROM tab0
----
0
1
33

query I rowsort
SELECT DISTINCT + - 98 + col2 FROM tab2 AS cor0
----
-60
-71
-72

query I rowsort
SELECT DISTINCT + + col0 + + col0 * col2 AS col0 FROM tab1 AS cor0
----
165
3712
7760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col0 col1 FROM tab2 cor0
----
49
6084
6241

query I rowsort
SELECT ( col2 ) + + 55 AS col1 FROM tab1 AS cor0
----
109
112
151

query I rowsort
SELECT cor0.col2 + - cor0.col0 AS col0 FROM tab0 AS cor0
----
-34
-7
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-3434
SELECT - cor0.col1 DIV col0 + col0 - + col0 FROM tab2 AS cor0
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-3434
SELECT - cor0.col1 / col0 + col0 - + col0 FROM tab2 AS cor0
----
-4
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3435
SELECT + + col2 DIV cor0.col0 AS col1 FROM tab1 AS cor0
----
0
1
18

skipif mysql # not compatible
query I rowsort label-3435
SELECT + + col2 / cor0.col0 AS col1 FROM tab1 AS cor0
----
0
1
18

query I rowsort
SELECT + col2 * cor0.col0 + col2 AS col0 FROM tab1 AS cor0
----
216
3705
7776

query I rowsort
SELECT ALL + 25 * col0 AS col1 FROM tab2 cor0
----
175
1950
1975

query I rowsort
SELECT ALL + 28 + - cor0.col1 * col0 FROM tab1 AS cor0
----
-1012
-50
-612

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3439
SELECT - CAST( 77 AS SIGNED ) FROM tab1
----
-77
-77
-77

skipif mysql # not compatible
query I rowsort label-3439
SELECT - CAST ( 77 AS INTEGER ) FROM tab1
----
-77
-77
-77

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2 cor0, tab1 cor1, tab0 AS cor2
----
972 values hashing to 9b91cf9fcc064ee1c13074a678b72ac7

skipif mysql # not compatible
query I rowsort
SELECT - CAST ( + col2 AS REAL ) AS col2 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT + ( 58 ) FROM tab0 AS cor0
----
58
58
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 4 * - 81 col1 FROM tab2 AS cor0
----
-324
-324
-324

query I rowsort
SELECT ( col1 ) * 29 FROM tab2 AS cor0
----
1711
493
899

query I rowsort
SELECT ALL - cor0.col0 * + cor0.col1 * ( - 37 ) FROM tab1, tab0 AS cor0
----
9 values hashing to 349104586768a5aaebb304e8dfa06e07

query I rowsort
SELECT - ( + 53 + + col2 * tab1.col1 ) FROM tab1
----
-1301
-1457
-623

query I rowsort
SELECT ALL - - cor0.col1 + col2 + col1 FROM tab0 AS cor0
----
195
205
264

onlyif mysql # use DIV operator for integer division
query I rowsort label-3448
SELECT DISTINCT + cor0.col1 * col0 DIV - 54 AS col1 FROM tab1 AS cor0
----
-1
-11
-19

skipif mysql # not compatible
query I rowsort label-3448
SELECT DISTINCT + cor0.col1 * col0 / - 54 AS col1 FROM tab1 AS cor0
----
-1
-11
-19

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3449
SELECT - col0 + CAST( + 35 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-54
0
11

skipif mysql # not compatible
query I rowsort label-3449
SELECT - col0 + CAST ( + 35 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-54
0
11

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3450
SELECT DISTINCT + col2 + CAST( NULL AS SIGNED ) * col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3450
SELECT DISTINCT + col2 + CAST ( NULL AS INTEGER ) * col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - + col1 * 15 AS col2 FROM tab1 cor0
----
-150
-195
-390

query I rowsort
SELECT + - col2 * - 69 AS col2 FROM tab2 AS cor0
----
1794
1863
2622

query I rowsort
SELECT DISTINCT - 39 * tab2.col2 FROM tab2
----
-1014
-1053
-1482

query I rowsort
SELECT ALL + - ( col0 ) AS col0 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT col0 * 91 AS col1 FROM tab0 cor0
----
2184
3185
8099

query I rowsort
SELECT + col2 * 54 AS col2 FROM tab2
----
1404
1458
2052

query I rowsort
SELECT 67 * 45 FROM tab0 AS cor0
----
3015
3015
3015

query I rowsort
SELECT ALL + cor0.col0 * - col0 * - col1 AS col2 FROM tab0 cor0
----
118825
49536
720811

onlyif mysql # use DIV operator for integer division
query I rowsort label-3459
SELECT ALL + + 32 DIV - 42 AS col1 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3459
SELECT ALL + + 32 / - 42 AS col1 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT + ( col1 ) * col0 + + ( + col1 ) FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT DISTINCT - - cor0.col2 + col0 * - col1 AS col0 FROM tab2 AS cor0
----
-1305
-190
-4576

query I rowsort
SELECT DISTINCT - - cor0.col1 AS col1 FROM tab0, tab2, tab1 cor0
----
10
13
26

query I rowsort
SELECT DISTINCT - 95 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
-95

onlyif mysql # use DIV operator for integer division
query I rowsort label-3464
SELECT ALL + col1 DIV + col2 AS col1 FROM tab0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-3464
SELECT ALL + col1 / + col2 AS col1 FROM tab0
----
1
2
97

query I rowsort
SELECT DISTINCT 14 * - col1 + - col2 * + 20 AS col1 FROM tab2
----
-1346
-974
-998

onlyif mysql # use DIV operator for integer division
query I rowsort label-3466
SELECT + cor0.col0 DIV 9 AS col2 FROM tab2 AS cor0
----
0
8
8

skipif mysql # not compatible
query I rowsort label-3466
SELECT + cor0.col0 / 9 AS col2 FROM tab2 AS cor0
----
0
8
8

query I rowsort
SELECT ALL + col0 * - col0 + col0 * + col0 AS col1 FROM tab0
----
0
0
0

query I rowsort
SELECT col0 * + col1 + + col1 AS col2 FROM tab2 AS cor0
----
1360
248
4661

query I rowsort
SELECT - + ( 70 ) + + col0 AS col1 FROM tab0 AS cor0
----
-35
-46
19

query I rowsort
SELECT + col1 - 29 FROM tab2
----
-12
2
30

query I rowsort
SELECT ALL - - cor0.col0 + col1 FROM tab1 cor0
----
29
74
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-3472
SELECT ALL + col1 + + col2 DIV - cor0.col0 FROM tab0 AS cor0
----
85
91
97

skipif mysql # not compatible
query I rowsort label-3472
SELECT ALL + col1 + + col2 / - cor0.col0 FROM tab0 AS cor0
----
85
91
97

query I rowsort
SELECT DISTINCT - - col1 + 46 AS col2 FROM tab0 AS cor0
----
132
137
143

onlyif mysql # use DIV operator for integer division
query I rowsort label-3474
SELECT ALL - col0 DIV col2 + - col1 AS col0 FROM tab1 cor0
----
-11
-13
-26

skipif mysql # not compatible
query I rowsort label-3474
SELECT ALL - col0 / col2 + - col1 AS col0 FROM tab1 cor0
----
-11
-13
-26

query I rowsort
SELECT + + col1 + 83 FROM tab0 cor0
----
169
174
180

query I rowsort
SELECT ALL - cor1.col0 AS col2 FROM tab2, tab2 AS cor0, tab1 AS cor1, tab0 AS cor2
----
81 values hashing to 08e380e50b0cb64601bc84e5254deef4

onlyif mysql # use DIV operator for integer division
query I rowsort label-3477
SELECT ALL - 13 * col2 DIV col2 AS col1 FROM tab1 AS cor0
----
-13
-13
-13

skipif mysql # not compatible
query I rowsort label-3477
SELECT ALL - 13 * col2 / col2 AS col1 FROM tab1 AS cor0
----
-13
-13
-13

query I rowsort
SELECT DISTINCT + ( 59 ) FROM tab2 AS cor0
----
59

query I rowsort
SELECT ALL + - ( col0 ) * cor0.col2 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT ALL + 60 + + col1 * col2 AS col2 FROM tab0 AS cor0
----
157
2898
7522

query I rowsort
SELECT ALL - 60 * col1 AS col1 FROM tab1 AS cor0
----
-1560
-600
-780

query I rowsort
SELECT DISTINCT - cor0.col2 + + cor0.col1 * + col1 FROM tab2 AS cor0
----
251
3455
934

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 * + cor0.col1 + col2 col1 FROM tab0 AS cor0
----
2871
7544
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-3484
SELECT DISTINCT + + cor0.col0 DIV - col1 AS col1 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-3484
SELECT DISTINCT + + cor0.col0 / - col1 AS col1 FROM tab0 cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3485
SELECT DISTINCT + - 88 DIV cor0.col1 FROM tab2 AS cor0
----
-1
-2
-5

skipif mysql # not compatible
query I rowsort label-3485
SELECT DISTINCT + - 88 / cor0.col1 FROM tab2 AS cor0
----
-1
-2
-5

query I rowsort
SELECT ALL - + col0 * cor0.col0 + + col1 AS col2 FROM tab0 AS cor0
----
-1128
-490
-7830

query I rowsort
SELECT + col2 + ( col2 ) AS col1 FROM tab0 AS cor0
----
164
2
66

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3488
SELECT ALL col0 + + col0 / + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3488
SELECT ALL col0 + + col0 / + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + ( + col0 ) + col0 * + col2 FROM tab1 AS cor0
----
159
3584
7600

onlyif mysql # use DIV operator for integer division
query I rowsort label-3490
SELECT + - 29 DIV + col0 + + col2 FROM tab1 AS cor0
----
45
57
96

skipif mysql # not compatible
query I rowsort label-3490
SELECT + - 29 / + col0 + + col2 FROM tab1 AS cor0
----
45
57
96

query I rowsort
SELECT cor0.col2 + + col1 * col0 FROM tab2 AS cor0
----
1381
244
4628

onlyif mysql # use DIV operator for integer division
query I rowsort label-3492
SELECT DISTINCT col1 * col0 + + col0 + + col0 DIV + col2 FROM tab1 cor0
----
1120
705
81

skipif mysql # not compatible
query I rowsort label-3492
SELECT DISTINCT col1 * col0 + + col0 + + col0 / + col2 FROM tab1 cor0
----
1120
705
81

query I rowsort
SELECT + + cor0.col0 * - cor0.col0 + - ( col1 ) + col1 FROM tab1 AS cor0
----
-4096
-6400
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 14 * - col2 + col0 col1 FROM tab1 AS cor0
----
1424
759
862

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + cor0.col1 * - col1 col1 FROM tab1 AS cor0
----
-36
-673
-89

query I rowsort
SELECT 13 * col2 * - col1 AS col2 FROM tab1
----
-16224
-18252
-7410

query I rowsort
SELECT - + 70 + col0 * + ( - col0 ) FROM tab0 cor0
----
-1295
-646
-7991

query I rowsort
SELECT ALL + col1 * - col0 - col2 FROM tab0 AS cor0
----
-2097
-3396
-8181

query I rowsort
SELECT ALL col0 + + col2 + 13 AS col1 FROM tab0 AS cor0
----
184
49
70

query I rowsort
SELECT col2 * - 66 + - ( col2 + col1 ) AS col2 FROM tab1 cor0
----
-3644
-3829
-6445

query I rowsort
SELECT ALL tab2.col2 - - tab2.col1 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 993162448d72b066e1ac9ba4caa8d8d7

query I rowsort
SELECT DISTINCT 92 AS col2 FROM tab1, tab0 AS cor0
----
92

query I rowsort
SELECT ALL cor0.col0 + cor0.col0 AS col2 FROM tab1 cor0
----
128
160
6

query I rowsort
SELECT DISTINCT col1 * 67 AS col1 FROM tab2 AS cor0
----
1139
2077
3953

query I rowsort
SELECT col0 * - ( - 88 ) FROM tab1 AS cor0
----
264
5632
7040

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col0 * + col1 col0 FROM tab1
----
13520
2028
6400

onlyif mysql # use DIV operator for integer division
query I rowsort label-3507
SELECT + col2 DIV - 44 FROM tab0 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3507
SELECT + col2 / - 44 FROM tab0 cor0
----
-1
0
0

query I rowsort
SELECT DISTINCT - col2 + + cor0.col2 * + col2 AS col0 FROM tab1 AS cor0
----
2862
3192
9120

query I rowsort
SELECT - col0 + col0 + col0 AS col1 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT ALL col1 + + col0 + + col1 AS col0 FROM tab0
----
196
229
271

query I rowsort
SELECT 23 * tab1.col1 AS col0 FROM tab1
----
230
299
598

query I rowsort
SELECT ALL + col0 + - col2 + ( col2 + - col0 ) AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT + - 77 FROM tab0, tab2, tab2 cor0
----
27 values hashing to c7e5f48ecd3843d54a76808ed1f43ff6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3514
SELECT - col0 + - CAST( - 50 AS SIGNED ) * + col0 FROM tab2 AS cor0
----
343
3822
3871

skipif mysql # not compatible
query I rowsort label-3514
SELECT - col0 + - CAST ( - 50 AS INTEGER ) * + col0 FROM tab2 AS cor0
----
343
3822
3871

query I rowsort
SELECT ALL - cor0.col0 AS col2 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 729c1edda9332398299f39cd174ed840

onlyif mysql # use DIV operator for integer division
query I rowsort label-3516
SELECT + col0 * col2 DIV + col0 AS col1 FROM tab0 cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-3516
SELECT + col0 * col2 / + col0 AS col1 FROM tab0 cor0
----
1
33
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-3517
SELECT + - col0 DIV - col2 + + col1 + - col0 FROM tab1 AS cor0
----
-53
-67
23

skipif mysql # not compatible
query I rowsort label-3517
SELECT + - col0 / - col2 + + col1 + - col0 FROM tab1 AS cor0
----
-53
-67
23

query I rowsort
SELECT ALL - - col0 * 19 FROM tab0 AS cor0
----
1691
456
665

query I rowsort
SELECT ( + col1 + col2 * col1 ) AS col2 FROM tab0
----
194
2924
7553

query I rowsort
SELECT - col2 * - col2 + - col2 * ( col1 ) AS col1 FROM tab0
----
-1749
-738
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * - col1 + col2 col2 FROM tab1
----
-24
-583
-944

onlyif mysql # use DIV operator for integer division
query I rowsort label-3522
SELECT - col0 + col1 DIV + cor0.col1 AS col1 FROM tab0 AS cor0
----
-23
-34
-88

skipif mysql # not compatible
query I rowsort label-3522
SELECT - col0 + col1 / + cor0.col1 AS col1 FROM tab0 AS cor0
----
-23
-34
-88

query I rowsort
SELECT DISTINCT 2 AS col0 FROM tab0, tab1 AS cor0, tab2, tab0 AS cor1
----
2

query I rowsort
SELECT - - col2 - + col1 * ( col2 ) * - col2 FROM tab0 AS cor0
----
611966
93687
98

query I rowsort
SELECT DISTINCT + + 44 AS col1 FROM tab0 AS cor0
----
44

query I rowsort
SELECT col1 + - col1 + + 96 AS col0 FROM tab2 AS cor0
----
96
96
96

query I rowsort
SELECT ALL - 23 * - col1 AS col0 FROM tab1 AS cor0
----
230
299
598

query I rowsort
SELECT ALL + 76 + - col0 FROM tab1 cor0
----
-4
12
73

query I rowsort
SELECT ALL + + col0 + 83 - col2 FROM tab1 AS cor0
----
32
67
90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3530
SELECT + CAST( NULL AS DECIMAL ) AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3530
SELECT + CAST ( NULL AS REAL ) AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 * 44 * col2 FROM tab2
----
29744
32076
63536

query I rowsort
SELECT ALL col0 * - 74 * 67 FROM tab2
----
-34706
-386724
-391682

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3533
SELECT ALL - CAST( NULL AS SIGNED ) + + col2 + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3533
SELECT ALL - CAST ( NULL AS INTEGER ) + + col2 + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 20 * - 73 AS col2 FROM tab0
----
-1460
-1460
-1460

query I rowsort
SELECT ALL tab2.col0 + + tab2.col2 FROM tab1, tab2 AS cor0 CROSS JOIN tab2
----
27 values hashing to 8a206af99264e378e55b667df888459e

query I rowsort
SELECT col1 * - ( col2 ) FROM tab2 AS cor0
----
-1534
-646
-837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + ( + col2 ) col2 FROM tab1 cor0
----
-2916
-3249
-9216

query I rowsort
SELECT - - 47 * - col0 + + col1 AS col0 FROM tab1 AS cor0
----
-115
-2998
-3747

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 73 col1 FROM tab1, tab2 AS cor0
----
73

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab1 cor0, tab1, tab0 cor1
----
972 values hashing to 909b7ebab62aff8f69dc42ccbb5c2eae

query I rowsort
SELECT ALL col1 * + 70 + - col2 * col2 AS col2 FROM tab1 AS cor0
----
-1096
-2549
-8306

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 60 + + col0 col0 FROM tab1 AS cor0
----
-57
20
4

query I rowsort
SELECT - col1 * col0 - col0 AS col2 FROM tab0
----
-2088
-3430
-8188

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab0.col2 * - tab0.col1 col1 FROM tab0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT - cor1.col0 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
-3
-64
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-3546
SELECT DISTINCT col1 DIV CAST( - col2 + col1 AS SIGNED ) FROM tab2
----
0
1
7

skipif mysql # not compatible
query I rowsort label-3546
SELECT DISTINCT col1 / CAST ( - col2 + col1 AS INTEGER ) FROM tab2
----
0
1
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-3547
SELECT col0 DIV + 56 AS col2 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-3547
SELECT col0 / + 56 AS col2 FROM tab1 AS cor0
----
0
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-3548
SELECT - col1 DIV 66 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3548
SELECT - col1 / 66 FROM tab0 AS cor0
----
-1
-1
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-3549
SELECT + - col1 + + 91 DIV + col2 AS col0 FROM tab1 AS cor0
----
-13
-25
-9

skipif mysql # not compatible
query I rowsort label-3549
SELECT + - col1 + + 91 / + col2 AS col0 FROM tab1 AS cor0
----
-13
-25
-9

query I rowsort
SELECT + 3 AS col1 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 3e22859a313d85a6146c6df5f23d77cf

query I rowsort
SELECT ALL - col1 + + col1 * 83 AS col1 FROM tab0
----
7052
7462
7954

query I rowsort
SELECT DISTINCT - + col1 + + col2 * col0 + cor0.col1 * 5 * - col1 AS col2 FROM tab1 AS cor0
----
-3244
3138
6822

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3553
SELECT col2 + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3553
SELECT col2 + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 * + col1 + - col2 FROM tab1 AS cor0
----
43
622
73

query I rowsort
SELECT ALL + 94 * col2 AS col1 FROM tab0 AS cor0
----
3102
7708
94

onlyif mysql # use DIV operator for integer division
query I rowsort label-3556
SELECT ALL 34 * tab2.col1 DIV + col0 col0 FROM tab2
----
150
25
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3556
SELECT ALL 34 * tab2.col1 / + col0 col0 FROM tab2
----
150
25
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-3557
SELECT cor0.col1 DIV 99 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

skipif mysql # not compatible
query I rowsort label-3557
SELECT cor0.col1 / 99 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

query I rowsort
SELECT DISTINCT col1 * - 43 AS col1 FROM tab0 AS cor0
----
-3698
-3913
-4171

query I rowsort
SELECT DISTINCT + ( col2 ) * col1 + col0 + col1 * col2 * cor0.col2 AS col2 FROM tab0 AS cor0
----
229
619435
96516

query I rowsort
SELECT + 12 * cor0.col0 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 8e5ea344e010f81883d3febf1b417e51

query I rowsort
SELECT ALL - col1 * col2 * col2 FROM tab2 AS cor0
----
-22599
-24548
-39884

onlyif mysql # use DIV operator for integer division
query I rowsort label-3562
SELECT - + col2 * col1 DIV col2 FROM tab0 AS cor0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-3562
SELECT - + col2 * col1 / col2 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT ALL - ( - col1 ) * - col1 AS col0 FROM tab2 AS cor0
----
-289
-3481
-961

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 99 * col0 col2 FROM tab2 AS cor0
----
693
7722
7821

onlyif mysql # use DIV operator for integer division
query I rowsort label-3565
SELECT + col1 DIV - col2 - + col2 AS col0 FROM tab1 AS cor0
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-3565
SELECT + col1 / - col2 - + col2 AS col0 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT - cor0.col1 * col0 AS col0 FROM tab2 cor0
----
-1343
-217
-4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + + col1 col1 FROM tab2
----
-21
33
4

query I rowsort
SELECT ALL col0 + col2 * - ( - col1 * + tab2.col1 ) FROM tab2
----
11061
25954
90584

query I rowsort
SELECT ( + col2 ) + col0 AS col2 FROM tab1
----
121
176
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-3570
SELECT ALL col0 * col2 DIV col0 + col1 AS col2 FROM tab0
----
119
173
98

skipif mysql # not compatible
query I rowsort label-3570
SELECT ALL col0 * col2 / col0 + col1 AS col2 FROM tab0
----
119
173
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-3571
SELECT cor0.col1 DIV col0 - col0 FROM tab1 AS cor0
----
-64
-80
5

skipif mysql # not compatible
query I rowsort label-3571
SELECT cor0.col1 / col0 - col0 FROM tab1 AS cor0
----
-64
-80
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * col1 + 65 col2 FROM tab1 cor0
----
-13
-575
-975

query I rowsort
SELECT ALL + col2 + + col0 * - 70 AS col2 FROM tab0 AS cor0
----
-1647
-2449
-6148

query I rowsort
SELECT - 25 - col1 FROM tab2 cor0
----
-42
-56
-84

query I rowsort
SELECT DISTINCT + col0 * col1 - col2 * col2 FROM tab2 AS cor0
----
-101
-512
3926

query I rowsort
SELECT DISTINCT - col0 + + col0 * - 90 AS col1 FROM tab1 AS cor0
----
-273
-5824
-7280

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3577
SELECT ALL col2 + + CAST( NULL AS SIGNED ) + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3577
SELECT ALL col2 + + CAST ( NULL AS INTEGER ) + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 * - 63 - col2 FROM tab0 AS cor0
----
-1545
-2206
-5689

query I rowsort
SELECT ALL + cor0.col1 * col2 - - cor0.col0 * - col0 FROM tab2 AS cor0
----
-4550
-5595
788

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + ( col2 ) col2 FROM tab1 AS cor0
----
108
114
192

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col0 + col1 col1 FROM tab2 cor0
----
-19
-62
24

onlyif mysql # use DIV operator for integer division
query I rowsort label-3582
SELECT ALL + col0 DIV + cor0.col1 - col0 FROM tab2 AS cor0
----
-7
-75
-77

skipif mysql # not compatible
query I rowsort label-3582
SELECT ALL + col0 / + cor0.col1 - col0 FROM tab2 AS cor0
----
-7
-75
-77

query I rowsort
SELECT + col1 + - 97 AS col2 FROM tab0 AS cor0
----
-11
-6
0

query I rowsort
SELECT DISTINCT - col0 + + ( cor0.col0 ) AS col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL + cor0.col0 * + 14 + - col1 FROM tab0 cor0
----
1155
250
393

query I rowsort
SELECT - col2 * + ( - 6 ) AS col1 FROM tab0 AS cor0
----
198
492
6

query I rowsort
SELECT - + 36 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 3bcd07d22b62d2042b499253b1c13d9e

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3588
SELECT ( + tab1.col1 ) + - CAST( - col1 AS SIGNED ) FROM tab1
----
20
26
52

skipif mysql # not compatible
query I rowsort label-3588
SELECT ( + tab1.col1 ) + - CAST ( - col1 AS INTEGER ) FROM tab1
----
20
26
52

query I rowsort
SELECT 64 * - col2 FROM tab0
----
-2112
-5248
-64

query I rowsort
SELECT + - ( - col1 ) + 24 AS col0 FROM tab2 AS cor0
----
41
55
83

query I rowsort
SELECT DISTINCT - 32 + - col2 * cor0.col2 AS col1 FROM tab2 cor0
----
-1476
-708
-761

query I rowsort
SELECT + ( 2 ) AS col2 FROM tab2, tab1 AS cor0 CROSS JOIN tab1
----
27 values hashing to 535345c50a19fdab97ce05d1837b1f09

query I rowsort
SELECT 2 + col1 + + col1 AS col1 FROM tab1
----
22
28
54

query I rowsort
SELECT + 60 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 1d2ab302ae60f95b15e68cf89083b162

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 98 col0 FROM tab2 AS cor0
----
98

query I rowsort
SELECT col2 + cor0.col0 * 19 FROM tab0 AS cor0
----
1773
489
666

query I rowsort
SELECT ALL + col2 * col2 + 33 AS col2 FROM tab0
----
1122
34
6757

query I rowsort
SELECT ALL + col2 * col2 + col0 + col1 AS col0 FROM tab0 cor0
----
1199
133
6904

query I rowsort
SELECT DISTINCT - - col0 + ( - col1 * col1 + + col2 * - col0 ) FROM tab0 AS cor0
----
-15490
-8164
-9409

query I rowsort
SELECT col0 - + col1 AS col0 FROM tab1 cor0
----
-23
54
67

query I rowsort
SELECT + col1 + 28 * + 51 AS col0 FROM tab0 AS cor0
----
1514
1519
1525

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3602
SELECT DISTINCT + col1 + CAST( - ( + col0 ) AS SIGNED ) FROM tab1
----
-54
-67
23

skipif mysql # not compatible
query I rowsort label-3602
SELECT DISTINCT + col1 + CAST ( - ( + col0 ) AS INTEGER ) FROM tab1
----
-54
-67
23

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3603
SELECT DISTINCT + col2 * ( col1 ) + - CAST( NULL AS SIGNED ) col2 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3603
SELECT DISTINCT + col2 * ( col1 ) + - CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3604
SELECT DISTINCT - CAST( 22 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-22

skipif mysql # not compatible
query I rowsort label-3604
SELECT DISTINCT - CAST ( 22 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-22

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3605
SELECT ALL - CAST( NULL AS SIGNED ) * - 55 + col0 * ( col2 ) * col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3605
SELECT ALL - CAST ( NULL AS INTEGER ) * - 55 + col0 * ( col2 ) * col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3606
SELECT CAST( col1 AS SIGNED ) + col2 AS col0 FROM tab2 AS cor0
----
55
58
85

skipif mysql # not compatible
query I rowsort label-3606
SELECT CAST ( col1 AS INTEGER ) + col2 AS col0 FROM tab2 AS cor0
----
55
58
85

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3607
SELECT + CAST( 89 AS SIGNED ) + - col2 AS col2 FROM tab1 cor0
----
-7
32
35

skipif mysql # not compatible
query I rowsort label-3607
SELECT + CAST ( 89 AS INTEGER ) + - col2 AS col2 FROM tab1 cor0
----
-7
32
35

onlyif mysql # use DIV operator for integer division
query I rowsort label-3608
SELECT ALL - 92 + 44 DIV cor0.col0 + col0 FROM tab0 cor0
----
-3
-56
-67

skipif mysql # not compatible
query I rowsort label-3608
SELECT ALL - 92 + 44 / cor0.col0 + col0 FROM tab0 cor0
----
-3
-56
-67

query I rowsort
SELECT ALL + ( + ( + col2 ) ) * + col2 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT + ( + 59 ) AS col0 FROM tab0 AS cor0
----
59
59
59

query I rowsort
SELECT - - cor0.col1 * col2 + + col1 AS col2 FROM tab0 AS cor0
----
194
2924
7553

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + - col1 - - ( + col2 ) col0 FROM tab2
----
26
27
38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3613
SELECT + + CAST( NULL AS SIGNED ) + cor0.col1 * + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3613
SELECT + + CAST ( NULL AS INTEGER ) + cor0.col1 * + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 45 * col0 + col2 - + col1 FROM tab2 AS cor0
----
-319
-3534
-3543

query I rowsort
SELECT DISTINCT + ( - 7 ) AS col0 FROM tab0 AS cor0
----
-7

query I rowsort
SELECT ALL + + ( col0 ) * col1 AS col0 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT col0 * 82 AS col2 FROM tab1 AS cor0
----
246
5248
6560

query I rowsort
SELECT col2 * + 17 AS col1 FROM tab0
----
1394
17
561

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - col2 * col1 col0 FROM tab2 AS cor0
----
-1508
-608
-810

query I rowsort
SELECT DISTINCT col0 + - col1 * col0 * col0 + col0 FROM tab0 AS cor0
----
-118755
-49488
-720633

query I rowsort
SELECT - + ( col0 ) - col2 AS col1 FROM tab2 AS cor0
----
-104
-117
-34

query I rowsort
SELECT - ( - col0 ) + 42 * - col2 FROM tab0 AS cor0
----
-1362
-3355
-7

query I rowsort
SELECT + ( col0 ) + + col2 - - col0 FROM tab2 cor0
----
182
196
41

query I rowsort
SELECT cor0.col0 + col0 * col0 AS col0 FROM tab1 AS cor0
----
12
4160
6480

query I rowsort
SELECT + col0 + + cor0.col0 * cor0.col2 * + col0 AS col0 FROM tab0 AS cor0
----
1260
19032
649611

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( - col2 AS REAL ) + + col2 / - 52 AS col1 FROM tab2
----
-26
-27
-38

onlyif mysql # use DIV operator for integer division
query I rowsort label-3627
SELECT DISTINCT - 38 + 66 DIV + col2 AS col0 FROM tab0
----
-36
-38
28

skipif mysql # not compatible
query I rowsort label-3627
SELECT DISTINCT - 38 + 66 / + col2 AS col0 FROM tab0
----
-36
-38
28

query I rowsort
SELECT + tab2.col0 * 89 FROM tab2
----
623
6942
7031

query I rowsort
SELECT ALL + 23 AS col2 FROM tab0
----
23
23
23

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3630
SELECT col1 + + col0 + CAST( NULL AS SIGNED ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3630
SELECT col1 + + col0 + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - col1 + col0 * - ( col2 * + col2 ) AS col0 FROM tab0 AS cor0
----
-132
-26222
-598527

query I rowsort
SELECT + - ( cor0.col1 ) + ( col1 ) - cor0.col2 AS col2 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT - 20 AS col1 FROM tab2, tab0 cor0
----
9 values hashing to f1cccb95c90889319e7a51e4ae9475bb

query I rowsort
SELECT ALL 11 * tab1.col1 + + col0 * col1 AS col0 FROM tab1
----
1183
364
750

query I rowsort
SELECT ALL 66 + col2 FROM tab1
----
120
123
162

query I rowsort
SELECT + - cor0.col2 * col1 AS col0 FROM tab1 cor0
----
-1248
-1404
-570

onlyif mysql # use DIV operator for integer division
query I rowsort label-3637
SELECT DISTINCT col2 DIV - 76 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-3637
SELECT DISTINCT col2 / - 76 FROM tab2 cor0
----
0

query I rowsort
SELECT + - col2 + - cor0.col0 FROM tab2 cor0
----
-104
-117
-34

query I rowsort
SELECT - col2 + + col2 * - col0 AS col0 FROM tab2 AS cor0
----
-2054
-216
-3040

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col2 ) * + col1 - - col2 col2 FROM tab2 AS cor0
----
1560
684
864

query I rowsort
SELECT 50 * col1 + col1 AS col2 FROM tab2 AS cor0
----
1581
3009
867

query I rowsort
SELECT + - 57 * - col2 + ( 31 ) AS col1 FROM tab1 AS cor0
----
3109
3280
5503

query I rowsort
SELECT - 74 + - col1 AS col2 FROM tab1 AS cor0
----
-100
-84
-87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col1 - + col2 col0 FROM tab2 AS cor0
----
-55
-58
-85

query I rowsort
SELECT - col1 * + col2 * 45 AS col2 FROM tab2 AS cor0
----
-29070
-37665
-69030

query I rowsort
SELECT DISTINCT - 69 FROM tab2, tab1 AS cor0
----
-69

query I rowsort
SELECT ALL 7 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

query I rowsort
SELECT DISTINCT + col0 - - 75 FROM tab2 AS cor0
----
153
154
82

query I rowsort
SELECT DISTINCT - + col2 * 38 - - col0 AS col0 FROM tab1 AS cor0
----
-2049
-2102
-3568

query I rowsort
SELECT DISTINCT - - cor0.col1 * col2 AS col0 FROM tab0 cor0
----
2838
7462
97

query I rowsort
SELECT DISTINCT + col1 * - cor0.col1 * col1 - col1 AS col1 FROM tab2 cor0
----
-205438
-29822
-4930

query I rowsort
SELECT 22 + + cor0.col1 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d0e35ae2ac07312d0622441556551cbe

query I rowsort
SELECT - cor0.col1 * - 79 AS col1 FROM tab1 AS cor0
----
1027
2054
790

onlyif mysql # use DIV operator for integer division
query I rowsort label-3654
SELECT - col2 * col0 DIV col1 + col2 * + col0 FROM tab0 AS cor0
----
35
7218
783

skipif mysql # not compatible
query I rowsort label-3654
SELECT - col2 * col0 / col1 + col2 * + col0 FROM tab0 AS cor0
----
35
7218
783

query I rowsort
SELECT ALL + col1 * 51 FROM tab0
----
4386
4641
4947

query I rowsort
SELECT + 79 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f

onlyif mysql # use DIV operator for integer division
query I rowsort label-3657
SELECT ALL CAST( 4 AS SIGNED ) + - col0 - col2 DIV + col1 AS col1 FROM tab1
----
-1
-65
-83

skipif mysql # not compatible
query I rowsort label-3657
SELECT ALL CAST ( 4 AS INTEGER ) + - col0 - col2 / + col1 AS col1 FROM tab1
----
-1
-65
-83

onlyif mysql # use DIV operator for integer division
query I rowsort label-3658
SELECT DISTINCT + ( col1 ) DIV + col2 + col0 + - col0 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3658
SELECT DISTINCT + ( col1 ) / + col2 + col0 + - col0 AS col2 FROM tab1
----
0

query I rowsort
SELECT col2 + + col2 + col0 FROM tab0
----
253
37
90

onlyif mysql # use DIV operator for integer division
query I rowsort label-3660
SELECT + col1 + + col0 + col0 DIV + ( col0 + tab2.col2 ) FROM tab2
----
137
38
96

skipif mysql # not compatible
query I rowsort label-3660
SELECT + col1 + + col0 + col0 / + ( col0 + tab2.col2 ) FROM tab2
----
137
38
96

query I rowsort
SELECT DISTINCT col2 + + col0 AS col2 FROM tab2
----
104
117
34

query I rowsort
SELECT ALL - col1 + - col1 AS col0 FROM tab2
----
-118
-34
-62

query I rowsort
SELECT + ( - cor0.col1 ) * 42 FROM tab0 AS cor0
----
-3612
-3822
-4074

onlyif mysql # use DIV operator for integer division
query I rowsort label-3664
SELECT DISTINCT - 69 + col0 DIV + col0 FROM tab0
----
-68

skipif mysql # not compatible
query I rowsort label-3664
SELECT DISTINCT - 69 + col0 / + col0 FROM tab0
----
-68

query I rowsort
SELECT col2 - col2 * - tab1.col2 FROM tab1
----
2970
3306
9312

onlyif mysql # use DIV operator for integer division
query I rowsort label-3666
SELECT - col2 * + col2 + - col0 * col0 DIV col0 AS col2 FROM tab1
----
-2919
-3313
-9296

skipif mysql # not compatible
query I rowsort label-3666
SELECT - col2 * + col2 + - col0 * col0 / col0 AS col2 FROM tab1
----
-2919
-3313
-9296

query I rowsort
SELECT ALL 48 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 0ef571a8722ab7270aa7272c1174b88e

query I rowsort
SELECT ALL - cor0.col0 * 61 FROM tab0, tab0 AS cor0
----
9 values hashing to d9698b42d53c326030b4cc6dd2366c22

query I rowsort
SELECT ALL 19 * col1 + 43 FROM tab1 AS cor0
----
233
290
537

query I rowsort
SELECT ALL - tab2.col1 * + tab2.col0 * 46 AS col0 FROM tab2
----
-211692
-61778
-9982

query I rowsort
SELECT + cor0.col0 * 97 AS col1 FROM tab1 AS cor0
----
291
6208
7760

query I rowsort
SELECT + col0 * col0 * col0 + ( col2 ) AS col2 FROM tab0 AS cor0
----
13857
42876
705051

query I rowsort
SELECT ALL 91 * col1 AS col0 FROM tab1 AS cor0
----
1183
2366
910

query I rowsort
SELECT + - col1 * 43 + + col1 - 35 AS col2 FROM tab1 AS cor0
----
-1127
-455
-581

query I rowsort
SELECT - col1 * 50 * col1 - + cor0.col1 AS col2 FROM tab2 AS cor0
----
-14467
-174109
-48081

query I rowsort
SELECT col1 - - 88 * col1 AS col1 FROM tab2 AS cor0
----
1513
2759
5251

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + ( cor0.col0 ) + - col1 col2 FROM tab2 AS cor0
----
-137
-38
-96

query I rowsort
SELECT col0 * - col0 + + col2 + - col0 AS col2 FROM tab1 AS cor0
----
-4103
-6384
42

query I rowsort
SELECT cor0.col2 - - col1 AS col2 FROM tab0 AS cor0
----
119
173
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-3680
SELECT DISTINCT col2 DIV + ( + col1 + ( - col0 ) ) AS col1 FROM tab0 cor0
----
0
41

skipif mysql # not compatible
query I rowsort label-3680
SELECT DISTINCT col2 / + ( + col1 + ( - col0 ) ) AS col1 FROM tab0 cor0
----
0
41

query I rowsort
SELECT ALL - + col0 * - col0 + - col2 AS col2 FROM tab1 AS cor0
----
-45
4039
6304

query I rowsort
SELECT ( 7 ) * col0 + + col1 FROM tab1 AS cor0
----
458
47
573

query I rowsort
SELECT - col1 * cor0.col1 * - col1 - ( - ( col2 ) ) * + col1 FROM tab0 AS cor0
----
638894
761033
912770

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 83 col1 FROM tab2 AS cor0
----
83

query I rowsort
SELECT ALL + - col2 + col1 * + col2 FROM tab2 AS cor0
----
1508
608
810

query I rowsort
SELECT DISTINCT col2 * ( - 20 + - col1 ) FROM tab2 AS cor0
----
-1377
-1406
-2054

query I rowsort
SELECT DISTINCT col1 * ( - col0 * + col2 ) AS col1 FROM tab0 AS cor0
----
-3395
-664118
-68112

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3688
SELECT DISTINCT + col1 * col0 * - col1 + col1 * + CAST( NULL AS SIGNED ) + - col1 AS col0 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3688
SELECT DISTINCT + col1 * col0 * - col1 + col1 * + CAST ( NULL AS INTEGER ) + - col1 AS col0 FROM tab1 cor0
----
NULL

query I rowsort
SELECT cor0.col0 + ( 11 ) FROM tab2 cor0
----
18
89
90

query I rowsort
SELECT ALL + - col1 + ( 99 ) FROM tab1 AS cor0
----
73
86
89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3691
SELECT + col0 * + CAST( + 69 * + col2 AS SIGNED ) FROM tab2 AS cor0
----
13041
139932
207138

skipif mysql # not compatible
query I rowsort label-3691
SELECT + col0 * + CAST ( + 69 * + col2 AS INTEGER ) FROM tab2 AS cor0
----
13041
139932
207138

query I rowsort
SELECT 6 * col2 FROM tab1
----
324
342
576

query I rowsort
SELECT - + col2 * - cor0.col1 AS col0 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT col1 * col1 - col1 AS col2 FROM tab1
----
156
650
90

query I rowsort
SELECT DISTINCT ( - tab1.col2 ) AS col0 FROM tab1, tab0 AS cor0
----
-54
-57
-96

query I rowsort
SELECT + col1 + + col2 + + tab2.col0 AS col1 FROM tab2
----
134
163
65

query I rowsort
SELECT 24 AS col2 FROM tab2 AS cor0
----
24
24
24

query I rowsort
SELECT - - col1 + - 81 FROM tab0 AS cor0
----
10
16
5

onlyif mysql # use DIV operator for integer division
query I rowsort label-3699
SELECT col0 DIV 32 AS col1 FROM tab1
----
0
2
2

skipif mysql # not compatible
query I rowsort label-3699
SELECT col0 / 32 AS col1 FROM tab1
----
0
2
2

query I rowsort
SELECT col0 + col1 + + 85 * - col2 AS col2 FROM tab1
----
-4561
-4771
-8067

query I rowsort
SELECT DISTINCT + 85 AS col2 FROM tab2, tab1 AS cor0
----
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 55 col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3703
SELECT col0 DIV 49 + 32 AS col0 FROM tab1 AS cor0
----
32
33
33

skipif mysql # not compatible
query I rowsort label-3703
SELECT col0 / 49 + 32 AS col0 FROM tab1 AS cor0
----
32
33
33

query I rowsort
SELECT DISTINCT - col1 + ( + col0 ) AS col2 FROM tab0
----
-2
-62

query I rowsort
SELECT tab0.col1 + col0 * tab0.col0 FROM tab0
----
1322
662
8012

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3706
SELECT CAST( col2 AS SIGNED ) + - col2 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3706
SELECT CAST ( col2 AS INTEGER ) + - col2 AS col0 FROM tab1
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3707
SELECT DISTINCT CAST( - 11 AS SIGNED ) AS col2 FROM tab0
----
-11

skipif mysql # not compatible
query I rowsort label-3707
SELECT DISTINCT CAST ( - 11 AS INTEGER ) AS col2 FROM tab0
----
-11

query I rowsort
SELECT 77 * tab1.col0 - - col1 * col0 FROM tab1
----
309
5568
7200

query I rowsort
SELECT 29 + + col1 FROM tab0
----
115
120
126

query I rowsort
SELECT + 43 + - col2 AS col0 FROM tab0 AS cor0
----
-39
10
42

onlyif mysql # use DIV operator for integer division
query I rowsort label-3711
SELECT DISTINCT + col0 + col1 DIV 16 col2 FROM tab0 cor0
----
29
41
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3711
SELECT DISTINCT + col0 + col1 / 16 col2 FROM tab0 cor0
----
29
41
94

query I rowsort
SELECT DISTINCT 80 FROM tab2 cor0
----
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-3713
SELECT - - ( + col1 ) DIV - col0 AS col0 FROM tab1 AS cor0
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-3713
SELECT - - ( + col1 ) / - col0 AS col0 FROM tab1 AS cor0
----
-8
0
0

query I rowsort
SELECT + 79 + + 28 * col1 * col1 AS col1 FROM tab0
----
207167
231947
263531

query I rowsort
SELECT DISTINCT + cor1.col1 * - 2 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
-172
-182
-194

query I rowsort
SELECT ALL 27 * + col0 * - tab0.col2 FROM tab0
----
-197046
-21384
-945

query I rowsort
SELECT DISTINCT - col0 * + col2 * + tab0.col0 + col1 AS col1 FROM tab0
----
-1128
-18922
-649431

query I rowsort
SELECT DISTINCT 40 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
40

query I rowsort
SELECT DISTINCT + ( - tab0.col2 * - 68 ) + - 97 FROM tab0
----
-29
2147
5479

query I rowsort
SELECT col2 + + col1 + + col0 FROM tab1
----
131
189
83

query I rowsort
SELECT + 78 FROM tab1 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 88 * - col2 col1 FROM tab1 AS cor0
----
-4752
-5016
-8448

query I rowsort
SELECT ALL 30 AS col2 FROM tab2 AS cor0
----
30
30
30

query I rowsort
SELECT 65 * - col2 AS col2 FROM tab1 cor0
----
-3510
-3705
-6240

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * cor0.col1 col2 FROM tab1 AS cor0
----
1040
640
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-3726
SELECT ALL + cor0.col0 DIV cor0.col1 FROM tab1 AS cor0
----
0
6
6

skipif mysql # not compatible
query I rowsort label-3726
SELECT ALL + cor0.col0 / cor0.col1 FROM tab1 AS cor0
----
0
6
6

query I rowsort
SELECT + + ( + col1 ) * - ( + 26 ) FROM tab2 cor0
----
-1534
-442
-806

onlyif mysql # use DIV operator for integer division
query I rowsort label-3728
SELECT DISTINCT - + col2 + col2 DIV cor0.col0 FROM tab0 AS cor0
----
-1
-32
-82

skipif mysql # not compatible
query I rowsort label-3728
SELECT DISTINCT - + col2 + col2 / cor0.col0 FROM tab0 AS cor0
----
-1
-32
-82

onlyif mysql # use DIV operator for integer division
query I rowsort label-3729
SELECT ALL col2 + + col1 DIV ( + col1 + + col1 ) AS col1 FROM tab2 AS cor0
----
26
27
38

skipif mysql # not compatible
query I rowsort label-3729
SELECT ALL col2 + + col1 / ( + col1 + + col1 ) AS col1 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT ALL + cor0.col2 + - col2 * + ( col1 ) FROM tab0 AS cor0
----
-2805
-7380
-96

query I rowsort
SELECT DISTINCT + - 62 + cor0.col0 FROM tab0 cor0
----
-27
-38
27

query I rowsort
SELECT DISTINCT - 67 AS col1 FROM tab0
----
-67

query I rowsort
SELECT + col2 + - ( 62 ) FROM tab0 AS cor0
----
-29
-61
20

query I rowsort
SELECT DISTINCT col1 * 38 * col1 FROM tab2 AS cor0
----
10982
132278
36518

query I rowsort
SELECT - col0 * + ( - col2 ) + col0 + 60 AS col1 FROM tab0 cor0
----
130
7447
876

query I rowsort
SELECT + col0 * + 72 - + cor0.col2 AS col1 FROM tab0 AS cor0
----
1695
2519
6326

query I rowsort
SELECT - col0 - col1 AS col2 FROM tab1 AS cor0
----
-29
-74
-93

query I rowsort
SELECT - col1 * + col0 + - col1 * col1 + - 26 FROM tab0 cor0
----
-12830
-16406
-9486

query I rowsort
SELECT + col0 + cor0.col1 + + col1 * - col0 * + 29 AS col2 FROM tab1 AS cor0
----
-18486
-2233
-30067

query I rowsort
SELECT DISTINCT ( 8 ) AS col2 FROM tab2
----
8

query I rowsort
SELECT ALL ( 6 ) AS col0 FROM tab2
----
6
6
6

query I rowsort
SELECT + - cor1.col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0

query I rowsort
SELECT DISTINCT + ( - 71 ) + col1 * - ( col0 ) AS col1 FROM tab2 AS cor0
----
-1414
-288
-4673

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3744
SELECT CAST( - col2 AS SIGNED ) * + col1 + 61 col2 FROM tab0 cor0
----
-2777
-36
-7401

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3744
SELECT CAST ( - col2 AS INTEGER ) * + col1 + 61 col2 FROM tab0 cor0
----
-2777
-36
-7401

query I rowsort
SELECT ALL - - ( col2 ) AS col1 FROM tab1 cor0
----
54
57
96

query I rowsort
SELECT ALL + col1 * + ( + col2 ) + - col1 FROM tab2 AS cor0
----
1475
629
806

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 85 + ( col1 ) col1 FROM tab2 AS cor0
----
102
116
144

query I rowsort
SELECT col2 + col0 * - col0 AS col1 FROM tab0 AS cor0
----
-1224
-543
-7839

query I rowsort
SELECT DISTINCT col0 * + col0 + col2 AS col1 FROM tab0 AS cor0
----
1226
609
8003

query I rowsort
SELECT cor0.col0 + - 43 FROM tab2 AS cor0
----
-36
35
36

query I rowsort
SELECT ALL + col1 * col2 + - col2 + col0 * + ( col2 + - cor0.col0 ) * col0 FROM tab1 cor0
----
-28159
103552
1809

query I rowsort
SELECT ALL + col2 + - ( col2 ) AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL 15 * col0 + col0 AS col2 FROM tab1 AS cor0
----
1024
1280
48

query I rowsort
SELECT - col2 * - 83 AS col2 FROM tab2 AS cor0
----
2158
2241
3154

query I rowsort
SELECT - ( + col0 ) * - ( + 54 ) AS col2 FROM tab2 AS cor0
----
378
4212
4266

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3756
SELECT - ( col2 ) * - CAST( - col0 AS SIGNED ) * col2 AS col1 FROM tab0 AS cor0
----
-26136
-35
-598436

skipif mysql # not compatible
query I rowsort label-3756
SELECT - ( col2 ) * - CAST ( - col0 AS INTEGER ) * col2 AS col1 FROM tab0 AS cor0
----
-26136
-35
-598436

query I rowsort
SELECT DISTINCT - col1 + - col2 * col2 AS col1 FROM tab2 AS cor0
----
-1461
-735
-760

query I rowsort
SELECT DISTINCT ( - 78 ) FROM tab0
----
-78

query I rowsort
SELECT cor1.col2 AS col1 FROM tab0, tab1 AS cor0 CROSS JOIN tab1, tab0 cor1
----
81 values hashing to e938777ebffc2e3e9c0cdfaa4f732c05

query I rowsort
SELECT DISTINCT 11 AS col0 FROM tab0, tab2 AS cor0
----
11

query I rowsort
SELECT ALL tab1.col1 * col2 - - col2 FROM tab1
----
1344
1458
627

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 40 + - col0 * col2 col0 FROM tab2 AS cor0
----
-2068
-229
-3042

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3763
SELECT ALL - CAST( NULL AS SIGNED ) + - col1 + + tab0.col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3763
SELECT ALL - CAST ( NULL AS INTEGER ) + - col1 + + tab0.col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 32 + + col2 * col2 AS col0 FROM tab1
----
2948
3281
9248

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3765
SELECT + CAST( NULL AS SIGNED ) * + col0 + col1 - + col2 * - col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3765
SELECT + CAST ( NULL AS INTEGER ) * + col0 + col1 - + col2 * - col0 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 84 + cor0.col2 * + col1 FROM tab1 AS cor0
----
1164
1320
486

query I rowsort
SELECT ALL - 12 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e698dd57d3aac30af14ce35da434bb45

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3768
SELECT + col1 * col1 + + CAST( col0 AS SIGNED ) * col2 col0 FROM tab2 AS cor0
----
1150
3291
5509

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3768
SELECT + col1 * col1 + + CAST ( col0 AS INTEGER ) * col2 col0 FROM tab2 AS cor0
----
1150
3291
5509

query I rowsort
SELECT + col0 * col1 + - 62 FROM tab2 AS cor0
----
1281
155
4540

onlyif mysql # use DIV operator for integer division
query I rowsort label-3770
SELECT ( + col2 ) * - ( + col2 ) DIV - cor0.col2 FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-3770
SELECT ( + col2 ) * - ( + col2 ) / - cor0.col2 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT ALL + col2 * col2 * 79 + col0 FROM tab2 cor0
----
114155
53482
57598

query I rowsort
SELECT col2 + - col2 * col2 FROM tab1 AS cor0
----
-2862
-3192
-9120

onlyif mysql # use DIV operator for integer division
query I rowsort label-3773
SELECT - cor0.col0 * + col0 + col1 DIV + col1 AS col2 FROM tab0 AS cor0
----
-1224
-575
-7920

skipif mysql # not compatible
query I rowsort label-3773
SELECT - cor0.col0 * + col0 + col1 / + col1 AS col2 FROM tab0 AS cor0
----
-1224
-575
-7920

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 + - col1 * col0 col0 FROM tab1 cor0
----
-576
-75
-960

query I rowsort
SELECT ALL + 78 + - cor0.col2 * + 7 AS col1 FROM tab0 cor0
----
-153
-496
71

query I rowsort
SELECT - col2 * ( - col0 + col2 ) AS col0 FROM tab2 AS cor0
----
-540
1352
1558

query I rowsort
SELECT ALL + + col0 + ( col0 ) AS col2 FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT DISTINCT - - cor0.col1 * ( col0 ) FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT col1 * 18 AS col2 FROM tab0 AS cor0
----
1548
1638
1746

query I rowsort
SELECT ALL + + ( + col1 ) * col0 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT + 59 + 94 AS col0 FROM tab1 AS cor0
----
153

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3782
SELECT - CAST( col2 AS SIGNED ) * - col2 - 16 FROM tab2 AS cor0
----
1428
660
713

skipif mysql # not compatible
query I rowsort label-3782
SELECT - CAST ( col2 AS INTEGER ) * - col2 - 16 FROM tab2 AS cor0
----
1428
660
713

query I rowsort
SELECT - + col2 - - col1 * col0 FROM tab2 AS cor0
----
1305
190
4576

query I rowsort
SELECT DISTINCT + ( - 83 ) AS col2 FROM tab2 AS cor0
----
-83

query I rowsort
SELECT 67 * + cor0.col1 FROM tab0 AS cor0
----
5762
6097
6499

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3786
SELECT CAST( NULL AS SIGNED ) + col1 * + cor0.col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3786
SELECT CAST ( NULL AS INTEGER ) + col1 * + cor0.col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 * 10 + - col2 AS col1 FROM tab2 cor0
----
234
243
342

query I rowsort
SELECT DISTINCT - + col2 - - col1 FROM tab0 AS cor0
----
53
9
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3789
SELECT ALL - CAST( NULL AS SIGNED ) - - col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3789
SELECT ALL - CAST ( NULL AS INTEGER ) - - col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + + col2 + 93 AS col0 FROM tab0 AS cor0
----
126
175
94

query I rowsort
SELECT + ( + 42 ) * - cor0.col1 FROM tab0 AS cor0
----
-3612
-3822
-4074

query I rowsort
SELECT DISTINCT - ( col2 ) * + col0 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT DISTINCT + cor0.col0 + cor0.col2 FROM tab0 cor0
----
171
36
57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3794
SELECT ALL - + CAST( NULL AS SIGNED ) * - col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3794
SELECT ALL - + CAST ( NULL AS INTEGER ) * - col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col2 * 5 FROM tab0
----
-165
-410
-5

query I rowsort
SELECT - ( ( col1 ) ) + - ( col1 ) FROM tab1 AS cor0
----
-20
-26
-52

query I rowsort
SELECT - + ( 39 ) AS col0 FROM tab2 AS cor0
----
-39
-39
-39

query I rowsort
SELECT DISTINCT - + 19 + + col0 - cor0.col1 * 40 * col0 FROM tab2 AS cor0
----
-184021
-53660
-8692

query I rowsort
SELECT - 96 * col1 + col2 FROM tab1 AS cor0
----
-1152
-2442
-903

query I rowsort
SELECT ALL + 55 - - 29 * col0 * - col0 AS col2 FROM tab0
----
-16649
-229654
-35470

onlyif mysql # use DIV operator for integer division
query I rowsort label-3801
SELECT col1 DIV - col1 + col1 DIV ( col1 ) AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3801
SELECT col1 / - col1 + col1 / ( col1 ) AS col0 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL - col1 - ( col0 ) FROM tab1
----
-29
-74
-93

query I rowsort
SELECT DISTINCT + 28 * col1 FROM tab0 AS cor0
----
2408
2548
2716

query I rowsort
SELECT - ( col1 ) * - ( col0 ) FROM tab0 cor0
----
2064
3395
8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 + - col1 * - col1 col1 FROM tab0 AS cor0
----
7420
8370
9444

query I rowsort
SELECT DISTINCT + col1 * - col1 * 28 FROM tab1 AS cor0
----
-18928
-2800
-4732

query I rowsort
SELECT - col0 + - col0 + col2 * - tab0.col0 AS col1 FROM tab0
----
-105
-7476
-840

query I rowsort
SELECT DISTINCT ( 57 ) * tab1.col0 + 31 AS col1 FROM tab1
----
202
3679
4591

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col0 + - 84 col1 FROM tab2 AS cor0
----
-162
-163
-91

query I rowsort
SELECT 56 * - 94 AS col2 FROM tab2
----
-5264
-5264
-5264

onlyif mysql # use DIV operator for integer division
query I rowsort label-3811
SELECT ( 56 ) * col1 + + ( + col1 ) DIV col0 + - ( + col1 ) AS col1 FROM tab1
----
1438
550
715

skipif mysql # not compatible
query I rowsort label-3811
SELECT ( 56 ) * col1 + + ( + col1 ) / col0 + - ( + col1 ) AS col1 FROM tab1
----
1438
550
715

query I rowsort
SELECT DISTINCT col1 + + col0 * col1 FROM tab1
----
104
1053
650

query I rowsort
SELECT ALL - col0 * + col2 * + col2 AS col2 FROM tab1 AS cor0
----
-207936
-737280
-8748

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3814
SELECT ALL + col0 / + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3814
SELECT ALL + col0 / + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 56 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa

query I rowsort
SELECT DISTINCT - 32 FROM tab1, tab2 AS cor0
----
-32

query I rowsort
SELECT col2 - col2 * - 5 AS col1 FROM tab0
----
198
492
6

query I rowsort
SELECT col0 * - 53 + - col1 * - col0 AS col1 FROM tab2
----
-154
-2844
468

onlyif mysql # use DIV operator for integer division
query I rowsort label-3819
SELECT DISTINCT + cor0.col1 DIV cor0.col0 AS col0 FROM tab1 AS cor0
----
0
8

skipif mysql # not compatible
query I rowsort label-3819
SELECT DISTINCT + cor0.col1 / cor0.col0 AS col0 FROM tab1 AS cor0
----
0
8

query I rowsort
SELECT DISTINCT - + col0 + col0 AS col0 FROM tab2 cor0
----
0

query I rowsort
SELECT - 90 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to c0d96679aba507520916e8654e5a6618

query I rowsort
SELECT - 1 + 47 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39

query I rowsort
SELECT + - cor0.col2 - - 84 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 53ccb09d58ae97921962c60deb66eaac

query I rowsort
SELECT ALL + - col1 + col0 FROM tab0 cor0
----
-2
-62
-62

query I rowsort
SELECT DISTINCT col1 * col1 + + cor0.col0 * col0 * - cor0.col0 FROM tab1 AS cor0
----
-262044
-511831
649

query I rowsort
SELECT ALL - col2 * col1 + - cor0.col1 AS col1 FROM tab1 AS cor0
----
-1261
-1430
-580

query I rowsort
SELECT ALL 73 * col1 FROM tab1 AS cor0
----
1898
730
949

onlyif mysql # use DIV operator for integer division
query I rowsort label-3828
SELECT ALL - - cor0.col2 + col2 DIV CAST( + col2 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
55
58
97

skipif mysql # not compatible
query I rowsort label-3828
SELECT ALL - - cor0.col2 + col2 / CAST ( + col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
55
58
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3829
SELECT col0 * CAST( NULL AS SIGNED ) + + col2 - col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3829
SELECT col0 * CAST ( NULL AS INTEGER ) + + col2 - col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col0 + - ( - col1 ) + cor0.col0 AS col2 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT col0 - col1 * + 43 FROM tab2 AS cor0
----
-1326
-2459
-652

query I rowsort
SELECT DISTINCT - col2 + 71 AS col1 FROM tab0 AS cor0
----
-11
38
70

query I rowsort
SELECT - cor1.col2 * 8 AS col2 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to b13c865cece75fac2e79147f6827d2ef

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3834
SELECT - - CAST( NULL AS SIGNED ) + 88 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3834
SELECT - - CAST ( NULL AS INTEGER ) + 88 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 * - col2 - - col2 FROM tab1
----
1344
1458
627

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3836
SELECT DISTINCT ( cor0.col0 + - CAST( NULL AS SIGNED ) ) AS col1 FROM tab2, tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3836
SELECT DISTINCT ( cor0.col0 + - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2, tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT 50 + col2 * + cor0.col2 AS col2 FROM tab0 AS cor0
----
1139
51
6774

query I rowsort
SELECT + col0 * col2 - + col1 * col0 AS col0 FROM tab0
----
-1272
-3360
-801

query I rowsort
SELECT DISTINCT - - col2 * - col1 AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 76 col0 FROM tab0 cor0
----
76
76
76

query I rowsort
SELECT DISTINCT + tab1.col2 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
54
57
96

query I rowsort
SELECT - tab0.col1 * tab0.col1 * col1 + - 41 * - col0 FROM tab0
----
-635072
-749922
-911238

query I rowsort
SELECT - ( + col1 ) * - 66 AS col0 FROM tab0 AS cor0
----
5676
6006
6402

query I rowsort
SELECT DISTINCT - 76 AS col2 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
-76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col1 * col2 - cor0.col1 * col1 col2 FROM tab1 AS cor0
----
-1417
-2080
-670

query I rowsort
SELECT - + 63 AS col1 FROM tab0 cor0
----
-63
-63
-63

query I rowsort
SELECT + 76 * col2 AS col1 FROM tab2 AS cor0
----
1976
2052
2888

query I rowsort
SELECT DISTINCT - tab0.col0 + + 34 FROM tab0, tab0 AS cor0
----
-1
-55
10

query I rowsort
SELECT DISTINCT + tab2.col1 + col1 AS col0 FROM tab2
----
118
34
62

query I rowsort
SELECT ALL - 39 AS col1 FROM tab0, tab1 cor0
----
9 values hashing to 504d14939d58aeb4a14f31c80de5b53e

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + col1 + col2 * - ( cor0.col2 ) col0 FROM tab0 AS cor0
----
-6542
-917
193

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3852
SELECT DISTINCT - col0 * CAST( + col0 * + col1 AS SIGNED ) AS col2 FROM tab2
----
-106097
-1519
-358956

skipif mysql # not compatible
query I rowsort label-3852
SELECT DISTINCT - col0 * CAST ( + col0 * + col1 AS INTEGER ) AS col2 FROM tab2
----
-106097
-1519
-358956

query I rowsort
SELECT ALL 71 + - ( col2 ) FROM tab0 AS cor0
----
-11
38
70

onlyif mysql # use DIV operator for integer division
query I rowsort label-3854
SELECT 51 DIV col0 + col0 FROM tab2 AS cor0
----
14
78
79

skipif mysql # not compatible
query I rowsort label-3854
SELECT 51 / col0 + col0 FROM tab2 AS cor0
----
14
78
79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3855
SELECT DISTINCT - - 90 + - 94 * + cor0.col2 * + CAST( NULL AS DECIMAL ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3855
SELECT DISTINCT - - 90 + - 94 * + cor0.col2 * + CAST ( NULL AS REAL ) FROM tab2 cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3856
SELECT - - CAST( NULL AS SIGNED ) + - cor0.col1 * - col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3856
SELECT - - CAST ( NULL AS INTEGER ) + - cor0.col1 * - col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 19 + + 49 + + col1 FROM tab0 AS cor0
----
154
159
165

query I rowsort
SELECT - - cor0.col1 * col0 + + col2 FROM tab2 AS cor0
----
1381
244
4628

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + 16 * + cor0.col0 col1 FROM tab0 AS cor0
----
1513
408
595

query I rowsort
SELECT - 42 + 96 FROM tab2 AS cor0
----
54
54
54

query I rowsort
SELECT - col0 * + col1 + + cor0.col0 + + cor0.col2 AS col1 FROM tab2 AS cor0
----
-1226
-183
-4498

query I rowsort
SELECT - col0 * col2 * col0 - col2 FROM tab0 AS cor0
----
-1226
-19041
-649604

query I rowsort
SELECT ALL + col0 + + col2 * - 61 FROM tab0 cor0
----
-1989
-26
-4913

query I rowsort
SELECT 3 * - tab1.col0 + + tab1.col0 AS col1 FROM tab1
----
-128
-160
-6

query I rowsort
SELECT - + col1 * col0 + col2 AS col1 FROM tab1 AS cor0
----
-24
-583
-944

onlyif mysql # use DIV operator for integer division
query I rowsort label-3866
SELECT - col0 DIV - ( - 76 + col1 * col0 ) col1 FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3866
SELECT - col0 / - ( - 76 + col1 * col0 ) col1 FROM tab2
----
0
0
0

query I rowsort
SELECT tab1.col1 * - ( 66 ) * col0 FROM tab1
----
-42240
-5148
-68640

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3868
SELECT DISTINCT - col1 * ( 3 ) - tab2.col1 * CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3868
SELECT DISTINCT - col1 * ( 3 ) - tab2.col1 * CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT 32 AS col2 FROM tab2, tab0 AS cor0
----
32

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3870
SELECT - col1 * - CAST( NULL AS SIGNED ) * col1 - + col1 * col0 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3870
SELECT - col1 * - CAST ( NULL AS INTEGER ) * col1 - + col1 * col0 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - col0 - - col2 FROM tab0 AS cor0
----
171
36
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-3872
SELECT ALL + + col1 DIV - 16 col1 FROM tab1 AS cor0
----
-1
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3872
SELECT ALL + + col1 / - 16 col1 FROM tab1 AS cor0
----
-1
0
0

query I rowsort
SELECT - col1 + ( - col0 ) AS col1 FROM tab2 AS cor0
----
-137
-38
-96

query I rowsort
SELECT col2 + 14 FROM tab0 AS cor0
----
15
47
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3875
SELECT + CAST( NULL AS SIGNED ) col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3875
SELECT + CAST ( NULL AS INTEGER ) col0 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3876
SELECT + + ( col0 ) * col0 DIV + col2 col0 FROM tab0 AS cor0
----
1225
17
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3876
SELECT + + ( col0 ) * col0 / + col2 col0 FROM tab0 AS cor0
----
1225
17
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-3877
SELECT 34 DIV + cor0.col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3877
SELECT 34 / + cor0.col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + col1 * + col1 + + col1 * + col1 AS col1 FROM tab0 AS cor0
----
14792
16562
18818

query I rowsort
SELECT - 25 + col0 AS col2 FROM tab2 cor0
----
-18
53
54

query I rowsort
SELECT DISTINCT + - col0 + col2 * + col0 AS col0 FROM tab0 AS cor0
----
0
7209
768

query I rowsort
SELECT ALL col1 * - col2 + - 37 * cor0.col1 * - col1 FROM tab0 AS cor0
----
270814
298935
348036

query I rowsort
SELECT DISTINCT col1 * - cor0.col1 - 89 * + col2 FROM tab2 AS cor0
----
-3364
-3671
-5795

query I rowsort
SELECT + - 77 + col1 * - 72 AS col2 FROM tab2 AS cor0
----
-1301
-2309
-4325

query I rowsort
SELECT DISTINCT + + cor0.col2 + cor0.col1 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT ALL - col0 + col2 * - 53 AS col0 FROM tab2 AS cor0
----
-1438
-1456
-2093

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + col2 + + cor0.col1 col0 FROM tab0 AS cor0
----
1175
6815
98

query I rowsort
SELECT DISTINCT + col1 + 36 AS col0 FROM tab1 AS cor0
----
46
49
62

query I rowsort
SELECT ALL - col2 + + col2 + - ( col0 + cor0.col2 ) AS col2 FROM tab1 AS cor0
----
-121
-176
-57

query I rowsort
SELECT + col1 + cor0.col1 * col1 AS col0 FROM tab1 AS cor0
----
110
182
702

query I rowsort
SELECT DISTINCT + col0 - - ( ( col2 ) ) AS col2 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT - 13 + + 33 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

query I rowsort
SELECT 69 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 85d9b90a03b9def161891b13085271f7

query I rowsort
SELECT - + 77 + - cor0.col0 AS col1 FROM tab1 AS cor0
----
-141
-157
-80

query I rowsort
SELECT - + 30 + - col1 AS col1 FROM tab1 AS cor0
----
-40
-43
-56

query I rowsort
SELECT DISTINCT col1 * - 74 FROM tab0
----
-6364
-6734
-7178

query I rowsort
SELECT DISTINCT ( col2 ) * col0 + ( + col1 ) FROM tab2 AS cor0
----
2087
220
3019

query I rowsort
SELECT ALL - - 48 * col1 + - 94 AS col2 FROM tab0 AS cor0
----
4034
4274
4562

query I rowsort
SELECT DISTINCT col1 + - 84 AS col1 FROM tab0
----
13
2
7

query I rowsort
SELECT DISTINCT - col0 + - col0 * + col1 FROM tab0
----
-2088
-3430
-8188

query I rowsort
SELECT - + col2 * 30 * col1 FROM tab2 AS cor0
----
-19380
-25110
-46020

query I rowsort
SELECT - col0 - 49 FROM tab2
----
-127
-128
-56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + 50 col2 FROM tab2
----
-28
-29
43

onlyif mysql # use DIV operator for integer division
query I rowsort label-3903
SELECT col2 + - 83 DIV - col0 FROM tab1
----
58
81
97

skipif mysql # not compatible
query I rowsort label-3903
SELECT col2 + - 83 / - col0 FROM tab1
----
58
81
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-3904
SELECT + 36 DIV col0 - + col0 FROM tab2
----
-2
-78
-79

skipif mysql # not compatible
query I rowsort label-3904
SELECT + 36 / col0 - + col0 FROM tab2
----
-2
-78
-79

onlyif mysql # use DIV operator for integer division
query I rowsort label-3905
SELECT DISTINCT + + col0 DIV 13 AS col0 FROM tab0 AS cor0
----
1
2
6

skipif mysql # not compatible
query I rowsort label-3905
SELECT DISTINCT + + col0 / 13 AS col0 FROM tab0 AS cor0
----
1
2
6

skipif mysql # not compatible
query I rowsort
SELECT ALL + - col2 + + CAST ( + col2 AS REAL ) * - col0 * 77 FROM tab2 AS cor0
----
-14580
-156182
-231192

onlyif mysql # use DIV operator for integer division
query I rowsort label-3907
SELECT + col1 DIV ( col1 * col2 ) FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3907
SELECT + col1 / ( col1 * col2 ) FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT ALL - tab1.col2 * + 4 FROM tab1
----
-216
-228
-384

query I rowsort
SELECT DISTINCT - col2 * + col2 + col2 * col1 + col0 * - col0 AS col2 FROM tab2 AS cor0
----
-5226
-7039
59

query I rowsort
SELECT DISTINCT + 43 * col0 FROM tab2
----
301
3354
3397

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3911
SELECT + CAST( NULL AS SIGNED ) + col0 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3911
SELECT + CAST ( NULL AS INTEGER ) + col0 AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 68 * + col2 + col1 FROM tab1 AS cor0
----
3698
3886
6541

query I rowsort
SELECT + col0 + + col2 * col0 + ( + col1 ) FROM tab1
----
191
3722
7773

query I rowsort
SELECT DISTINCT - 35 * tab0.col0 + ( + col1 ) FROM tab0
----
-1128
-3024
-754

query I rowsort
SELECT ALL + col1 * col0 * + ( col1 ) FROM tab0 cor0
----
177504
329315
737009

onlyif mysql # use DIV operator for integer division
query I rowsort label-3916
SELECT ALL + 14 DIV + 49 AS col0 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

skipif mysql # not compatible
query I rowsort label-3916
SELECT ALL + 14 / + 49 AS col0 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

query I rowsort
SELECT - 1 * - col0 + cor0.col1 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT col1 * col1 - + col0 AS col1 FROM tab1 AS cor0
----
36
673
89

query I rowsort
SELECT ALL col1 * col2 * ( col1 ) AS col1 FROM tab1 AS cor0
----
16224
36504
5700

onlyif mysql # use DIV operator for integer division
query I rowsort label-3920
SELECT ALL + col1 DIV 29 + 86 * col2 FROM tab2 AS cor0
----
2238
2323
3268

skipif mysql # not compatible
query I rowsort label-3920
SELECT ALL + col1 / 29 + 86 * col2 FROM tab2 AS cor0
----
2238
2323
3268

query I rowsort
SELECT DISTINCT + + col1 * - col0 + cor0.col2 FROM tab1 AS cor0
----
-24
-583
-944

query I rowsort
SELECT ALL + col1 + - col0 + ( - col1 ) FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT col1 * ( 49 ) + - col0 AS col1 FROM tab2 AS cor0
----
1512
2813
754

query I rowsort
SELECT DISTINCT + col0 * ( col1 ) AS col2 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT ALL + col2 * + cor0.col0 * - col1 + col0 FROM tab2 AS cor0
----
-119574
-50955
-5852

query I rowsort
SELECT col1 * 75 + 6 AS col0 FROM tab0 AS cor0
----
6456
6831
7281

query I rowsort
SELECT ALL col2 * cor0.col2 + + col0 * - col0 AS col1 FROM tab2 AS cor0
----
-4797
-5408
680

query I rowsort
SELECT + 95 + col1 AS col2 FROM tab0
----
181
186
192

query I rowsort
SELECT + 84 + col2 FROM tab0
----
117
166
85

query I rowsort
SELECT DISTINCT + - 6 FROM tab0, tab2, tab1 AS cor0
----
-6

query I rowsort
SELECT col2 * col2 + col1 AS col0 FROM tab1
----
2942
3259
9229

query I rowsort
SELECT col0 * + col2 * - col0 - + 40 FROM tab2
----
-1363
-158224
-237198

query I rowsort
SELECT ALL col2 - + col0 * - ( + cor0.col2 ) FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT - ( cor0.col1 ) + - 54 FROM tab1, tab1 AS cor0
----
9 values hashing to d69795d0274fef4bc41181f913947e4e

query I rowsort
SELECT - cor0.col1 + 37 AS col0 FROM tab1 cor0
----
11
24
27

query I rowsort
SELECT cor0.col1 * + 8 FROM tab0 AS cor0
----
688
728
776

onlyif mysql # use DIV operator for integer division
query I rowsort label-3937
SELECT col1 DIV - col0 + 25 col1 FROM tab0
----
22
23
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3937
SELECT col1 / - col0 + 25 col1 FROM tab0
----
22
23
24

query I rowsort
SELECT tab2.col0 * 12 * 57 FROM tab2
----
4788
53352
54036

query I rowsort
SELECT + 59 * cor0.col0 - - col1 FROM tab2 AS cor0
----
444
4661
4678

query I rowsort
SELECT + col0 * col0 - 9 AS col2 FROM tab2 AS cor0
----
40
6075
6232

query I rowsort
SELECT col1 + - cor0.col0 * + col0 FROM tab1 AS cor0
----
-4086
-6387
17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + col2 col0 FROM tab1 cor0
----
1248
1404
570

query I rowsort
SELECT ALL - col0 * + 19 AS col2 FROM tab2
----
-133
-1482
-1501

query I rowsort
SELECT DISTINCT 94 * col1 AS col0 FROM tab1
----
1222
2444
940

query I rowsort
SELECT ALL - 89 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 924a74d31360fa4301c953b423a4710e

query I rowsort
SELECT tab0.col2 + - col1 * + col0 * 21 + + col1 FROM tab0
----
-169906
-43225
-71197

query I rowsort
SELECT ALL + col1 * cor0.col2 + - cor0.col0 + ( + col2 ) FROM tab1 AS cor0
----
1264
1455
563

query I rowsort
SELECT 53 - col1 * + 53 FROM tab1 AS cor0
----
-1325
-477
-636

query I rowsort
SELECT DISTINCT + 97 * col0 AS col0 FROM tab1 AS cor0
----
291
6208
7760

query I rowsort
SELECT + - 29 * col0 + + col1 AS col0 FROM tab2 AS cor0
----
-172
-2203
-2274

onlyif mysql # use DIV operator for integer division
query I rowsort label-3951
SELECT ALL - cor0.col0 * col0 + - CAST( col2 AS SIGNED ) DIV col2 FROM tab0 AS cor0
----
-1226
-577
-7922

skipif mysql # not compatible
query I rowsort label-3951
SELECT ALL - cor0.col0 * col0 + - CAST ( col2 AS INTEGER ) / col2 FROM tab0 AS cor0
----
-1226
-577
-7922

query I rowsort
SELECT + ( - 13 ) * + col2 * col1 FROM tab0 AS cor0
----
-1261
-36894
-97006

query I rowsort
SELECT ALL + col1 * col1 + col0 FROM tab1 cor0
----
164
249
679

query I rowsort
SELECT DISTINCT 0 - cor2.col1 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2, tab2 cor1, tab2 AS cor2
----
-17
-31
-59

query I rowsort
SELECT DISTINCT - col0 * - col0 * + col0 + ( 12 ) FROM tab1 AS cor0
----
262156
39
512012

query I rowsort
SELECT ALL + col2 + 17 * + cor0.col0 FROM tab0 AS cor0
----
1595
441
596

query I rowsort
SELECT ALL 16 * - 29 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to bbafedf008550bad97be1ef9a1088204

query I rowsort
SELECT ALL - col0 + - col0 + col2 * col0 AS col0 FROM tab1 cor0
----
156
3520
7520

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 - col0 * + cor0.col0 col2 FROM tab1 AS cor0
----
-12
-4160
-6480

query I rowsort
SELECT ALL - - col0 * - cor0.col1 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT DISTINCT col0 * cor0.col1 * + ( - col2 ) + - col1 * + 54 AS col0 FROM tab1 cor0
----
-100542
-37020
-5616

query I rowsort
SELECT + ( + col0 ) * - cor0.col0 - col2 AS col2 FROM tab0 AS cor0
----
-1226
-609
-8003

query I rowsort
SELECT - col0 + - 5 * + col1 AS col0 FROM tab1
----
-114
-133
-145

query I rowsort
SELECT 96 + + col1 FROM tab0
----
182
187
193

query I rowsort
SELECT col1 * - ( tab1.col0 ) * tab1.col0 + tab1.col1 * col0 FROM tab1
----
-156
-40320
-82160

query I rowsort
SELECT ALL - col2 * 81 FROM tab2 AS cor0
----
-2106
-2187
-3078

query I rowsort
SELECT - col1 + - col0 * - 36 AS col2 FROM tab0 cor0
----
1163
3113
778

query I rowsort
SELECT ALL cor0.col0 * 66 AS col0 FROM tab0 AS cor0
----
1584
2310
5874

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3969
SELECT ALL col2 * + CAST( col2 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
1
1089
6724

skipif mysql # not compatible
query I rowsort label-3969
SELECT ALL col2 * + CAST ( col2 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT DISTINCT + col1 + ( + col2 ) * + col1 FROM tab2 cor0
----
1593
663
868

query I rowsort
SELECT + col2 * col1 + 26 * - col0 * 6 AS col1 FROM tab1 AS cor0
----
-11232
-9414
936

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3972
SELECT ALL col1 + col2 * + CAST( col2 AS SIGNED ) FROM tab2
----
1461
735
760

skipif mysql # not compatible
query I rowsort label-3972
SELECT ALL col1 + col2 * + CAST ( col2 AS INTEGER ) FROM tab2
----
1461
735
760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + cor0.col2 col1 FROM tab0 cor0
----
1
33
82

query I rowsort
SELECT - - col1 * + 32 AS col2 FROM tab2 AS cor0
----
1888
544
992

query I rowsort
SELECT ALL col1 * ( col1 ) + + col0 FROM tab2
----
3559
368
968

query I rowsort
SELECT ALL + col2 + 2 + ( col1 ) * col1 FROM tab0
----
7431
8365
9412

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3977
SELECT ALL - + CAST( col2 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-26
-27
-38

skipif mysql # not compatible
query I rowsort label-3977
SELECT ALL - + CAST ( col2 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT - col1 * + 69 AS col1 FROM tab0 cor0
----
-5934
-6279
-6693

query I rowsort
SELECT ALL - col2 + - col2 AS col1 FROM tab2
----
-52
-54
-76

onlyif mysql # use DIV operator for integer division
query I rowsort label-3980
SELECT + col1 + - col0 DIV - 92 AS col2 FROM tab2
----
17
31
59

skipif mysql # not compatible
query I rowsort label-3980
SELECT + col1 + - col0 / - 92 AS col2 FROM tab2
----
17
31
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-3981
SELECT - + col2 DIV cor0.col0 AS col0 FROM tab2 AS cor0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-3981
SELECT - + col2 / cor0.col0 AS col0 FROM tab2 AS cor0
----
-3
0
0

query I rowsort
SELECT ALL col1 * - 59 FROM tab0 AS cor0
----
-5074
-5369
-5723

query I rowsort
SELECT + col2 + - col0 * - 38 AS col0 FROM tab2
----
293
2990
3040

query I rowsort
SELECT DISTINCT + col0 * - ( + tab0.col2 ) + + col0 + - ( - col1 ) AS col1 FROM tab0
----
-682
-7118
97

query I rowsort
SELECT DISTINCT col1 * tab0.col0 + 4 FROM tab0
----
2068
3399
8103

query I rowsort
SELECT - 96 * ( col0 ) FROM tab2 AS cor0
----
-672
-7488
-7584

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3987
SELECT DISTINCT - CAST( 31 AS SIGNED ) * col2 AS col1 FROM tab2 AS cor0
----
-1178
-806
-837

skipif mysql # not compatible
query I rowsort label-3987
SELECT DISTINCT - CAST ( 31 AS INTEGER ) * col2 AS col1 FROM tab2 AS cor0
----
-1178
-806
-837

onlyif mysql # use DIV operator for integer division
query I rowsort label-3988
SELECT + 51 + ( + cor0.col1 ) DIV - ( + col1 ) FROM tab1 AS cor0
----
50
50
50

skipif mysql # not compatible
query I rowsort label-3988
SELECT + 51 + ( + cor0.col1 ) / - ( + col1 ) FROM tab1 AS cor0
----
50
50
50

query I rowsort
SELECT ALL + - 36 + - 73 * col1 AS col2 FROM tab2 cor0
----
-1277
-2299
-4343

query I rowsort
SELECT col0 + 73 * - col1 FROM tab0 AS cor0
----
-6254
-6554
-7046

query I rowsort
SELECT ALL + cor0.col0 + + col0 * - col1 AS col1 FROM tab2 AS cor0
----
-1264
-210
-4524

query I rowsort
SELECT DISTINCT + col0 * 62 AS col1 FROM tab1 AS cor0
----
186
3968
4960

query I rowsort
SELECT DISTINCT 64 + + cor0.col2 * + col2 FROM tab0 AS cor0
----
1153
65
6788

query I rowsort
SELECT DISTINCT - ( - 37 ) * - cor0.col0 - + col2 AS col1 FROM tab0 cor0
----
-1296
-3375
-921

query I rowsort
SELECT ALL col0 + col2 + - col0 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT + ( 10 ) + - col1 AS col1 FROM tab1 cor0
----
-16
-3
0

query I rowsort
SELECT DISTINCT + - ( + col0 ) + cor0.col1 * col0 FROM tab2 AS cor0
----
1264
210
4524

query I rowsort
SELECT + + 99 * + col0 AS col0 FROM tab0 AS cor0
----
2376
3465
8811

query I rowsort
SELECT 56 + col0 * ( col2 ) FROM tab2
----
2084
245
3058

query I rowsort
SELECT tab1.col2 + tab1.col1 + tab1.col2 * col0 AS col0 FROM tab1
----
242
3715
7789

onlyif mysql # use DIV operator for integer division
query I rowsort label-4001
SELECT ALL col1 * col0 + col1 DIV col2 + col2 AS col2 FROM tab0 AS cor0
----
2099
3493
8182

skipif mysql # not compatible
query I rowsort label-4001
SELECT ALL col1 * col0 + col1 / col2 + col2 AS col2 FROM tab0 AS cor0
----
2099
3493
8182

query I rowsort
SELECT + col2 * col1 * ( - ( - col2 ) ) + cor0.col2 * col2 AS col0 FROM tab1 AS cor0
----
129024
35739
78732

query I rowsort
SELECT cor0.col0 * col2 + col0 + col1 * + col1 AS col2 FROM tab1 AS cor0
----
3812
7929
841

onlyif mysql # use DIV operator for integer division
query I rowsort label-4004
SELECT - + cor0.col1 + cor0.col2 DIV col0 + - ( col1 ) AS col1 FROM tab2 AS cor0
----
-118
-34
-59

skipif mysql # not compatible
query I rowsort label-4004
SELECT - + cor0.col1 + cor0.col2 / col0 + - ( col1 ) AS col1 FROM tab2 AS cor0
----
-118
-34
-59

query I rowsort
SELECT - col2 * col2 + 19 AS col0 FROM tab1 AS cor0
----
-2897
-3230
-9197

onlyif mysql # use DIV operator for integer division
query I rowsort label-4006
SELECT + + col0 + - col0 DIV + col2 - + col2 FROM tab1 AS cor0
----
-16
-51
6

skipif mysql # not compatible
query I rowsort label-4006
SELECT + + col0 + - col0 / + col2 - + col2 FROM tab1 AS cor0
----
-16
-51
6

query I rowsort
SELECT ALL - col0 + + 9 * cor0.col0 FROM tab2 AS cor0
----
56
624
632

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + 17 * col1 col1 FROM tab1 AS cor0
----
160
208
416

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * 1 col0 FROM tab2 cor0
----
-7
-78
-79

query I rowsort
SELECT DISTINCT - - col1 * 41 FROM tab1 AS cor0
----
1066
410
533

query I rowsort
SELECT + col2 * col2 + - col2 - 27 AS col0 FROM tab2
----
1379
623
675

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( col2 ) * col2 + col1 - - tab0.col0 col1 FROM tab0
----
1199
133
6904

query I rowsort
SELECT + cor0.col1 + - cor0.col2 AS col1 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to a94a44cb20b21603860a4a213701f42f

query I rowsort
SELECT DISTINCT + col1 + - col2 * col1 AS col0 FROM tab0 AS cor0
----
-2752
-7371
0

query I rowsort
SELECT - 42 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 9894093f29c0defae91347934f060329

query I rowsort
SELECT + - 72 AS col1 FROM tab1 AS cor0
----
-72
-72
-72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * + col2 + + col2 col1 FROM tab1 AS cor0
----
216
3705
7776

query I rowsort
SELECT ( - col1 ) * col2 + col1 AS col1 FROM tab0 AS cor0
----
-2752
-7371
0

query I rowsort
SELECT DISTINCT - - 15 + col0 FROM tab1 cor0
----
18
79
95

query I rowsort
SELECT - tab2.col0 + col2 * + col1 FROM tab2
----
1456
567
830

query I rowsort
SELECT 50 + - col2 * 22 FROM tab2 cor0
----
-522
-544
-786

query I rowsort
SELECT 61 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 07149905a72bd87553381f34d19ed290

query I rowsort
SELECT DISTINCT - 86 + + col0 AS col1 FROM tab0 AS cor0
----
-51
-62
3

query I rowsort
SELECT - col0 + - col1 * ( cor0.col0 ) FROM tab0 cor0
----
-2088
-3430
-8188

query I rowsort
SELECT ALL - 61 * - col2 + - cor0.col1 FROM tab1 cor0
----
3268
3467
5843

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab0 AS cor2, tab1 AS cor3
----
3645 values hashing to 29937e0f604055b7324ce0c354a5e778

query I rowsort
SELECT ALL tab1.col2 * 34 + col0 FROM tab1
----
1839
2002
3344

query I rowsort
SELECT + + col1 + 37 + col0 AS col0 FROM tab2 AS cor0
----
133
174
75

query I rowsort
SELECT tab2.col1 + + ( + col2 ) + - tab2.col2 FROM tab2
----
17
31
59

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab0, tab1 AS cor2
----
3645 values hashing to 9a402ad2669465fb284445c499a48f2c

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4031
SELECT DISTINCT CAST( - 61 AS SIGNED ) * col2 FROM tab1
----
-3294
-3477
-5856

skipif mysql # not compatible
query I rowsort label-4031
SELECT DISTINCT CAST ( - 61 AS INTEGER ) * col2 FROM tab1
----
-3294
-3477
-5856

query I rowsort
SELECT + col2 * - col2 * col2 AS col1 FROM tab0
----
-1
-35937
-551368

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4033
SELECT - CAST( NULL AS SIGNED ) * - col0 + col1 * ( col2 ) + + col0 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4033
SELECT - CAST ( NULL AS INTEGER ) * - col0 + col1 * ( col2 ) + + col0 AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 * + 73 AS col2 FROM tab0 AS cor0
----
1752
2555
6497

query I rowsort
SELECT DISTINCT - col2 + ( col0 ) AS col1 FROM tab0 cor0
----
-9
34
7

query I rowsort
SELECT DISTINCT + - 13 AS col2 FROM tab1 AS cor0
----
-13

query I rowsort
SELECT 38 + col0 AS col1 FROM tab0 AS cor0
----
127
62
73

query I rowsort
SELECT DISTINCT - - ( cor0.col1 ) - - col1 * col0 * - col0 AS col2 FROM tab2 AS cor0
----
-106080
-1488
-358897

query I rowsort
SELECT DISTINCT - 39 AS col2 FROM tab0, tab0 cor0
----
-39

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4040
SELECT + CAST( col2 AS SIGNED ) * + col0 - col2 col0 FROM tab1 AS cor0
----
108
3591
7584

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4040
SELECT + CAST ( col2 AS INTEGER ) * + col0 - col2 col0 FROM tab1 AS cor0
----
108
3591
7584

query I rowsort
SELECT col0 * - col0 - + col1 AS col2 FROM tab1 AS cor0
----
-35
-4106
-6413

query I rowsort
SELECT + 93 FROM tab1, tab0 AS cor0 CROSS JOIN tab2
----
27 values hashing to 85ef191bf1b307f300b3fd49992fcae7

onlyif mysql # use DIV operator for integer division
query I rowsort label-4043
SELECT ALL col0 DIV - tab0.col0 + col1 + col1 FROM tab0
----
171
181
193

skipif mysql # not compatible
query I rowsort label-4043
SELECT ALL col0 / - tab0.col0 + col1 + col1 FROM tab0
----
171
181
193

query I rowsort
SELECT ALL 98 + + col1 FROM tab2
----
115
129
157

query I rowsort
SELECT - 72 + cor0.col2 FROM tab2 AS cor0
----
-34
-45
-46

query I rowsort
SELECT ALL - 37 AS col2 FROM tab1 AS cor0
----
-37
-37
-37

query I rowsort
SELECT ALL cor1.col2 FROM tab1, tab0 cor0, tab2 AS cor1, tab0 cor2
----
81 values hashing to c4e6b1f1d28e731664a15a6f7cda4da9

query I rowsort
SELECT DISTINCT col1 * col1 + - ( - col2 * + cor0.col1 + 7 ) FROM tab1 AS cor0
----
1410
2073
663

query I rowsort
SELECT ALL - 2 FROM tab1, tab1 AS cor0, tab2 cor1
----
27 values hashing to 20c9213316527d507e26425041e08387

query I rowsort
SELECT DISTINCT - 29 AS col2 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
-29

query I rowsort
SELECT 82 + 93 FROM tab2 AS cor0
----
175
175
175

query I rowsort
SELECT 41 FROM tab1, tab1 AS cor0, tab1 cor1
----
27 values hashing to f6a440b478f0d00f8326a8c51fe094b8

query I rowsort
SELECT ALL - col1 * - tab1.col1 AS col1 FROM tab1 WHERE NOT ( NULL ) >= ( NULL )
----

query I rowsort
SELECT - tab2.col0 + - col0 + col1 * tab2.col2 FROM tab2
----
1378
488
823

query I rowsort
SELECT ALL col0 AS col0 FROM tab2 AS cor0 WHERE col2 * col2 IN ( col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab1.col1 * + tab1.col0 col0 FROM tab1
----
1040
640
78

query I rowsort
SELECT col2 * + col1 * - col2 + tab2.col1 * col1 + + col1 FROM tab2
----
-21607
-24242
-36344

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab1.col0 * + col1 col2 FROM tab1
----
-1040
-640
-78

query I rowsort
SELECT ALL col0 * col2 * - col0 AS col0 FROM tab0 AS cor0
----
-1225
-19008
-649522

onlyif mysql # use DIV operator for integer division
query I rowsort label-4060
SELECT DISTINCT col0 DIV - col0 + cor0.col1 AS col1 FROM tab0 AS cor0
----
85
90
96

skipif mysql # not compatible
query I rowsort label-4060
SELECT DISTINCT col0 / - col0 + cor0.col1 AS col1 FROM tab0 AS cor0
----
85
90
96

query I rowsort
SELECT ALL - col2 - col0 AS col0 FROM tab2
----
-104
-117
-34

query I rowsort
SELECT - tab0.col2 - + tab0.col2 * tab0.col1 AS col1 FROM tab0
----
-2871
-7544
-98

query I rowsort
SELECT - tab1.col1 AS col1 FROM tab1 WHERE NOT NULL >= NULL
----

query I rowsort
SELECT DISTINCT - col1 * + col2 - + col2 AS col2 FROM tab1
----
-1344
-1458
-627

onlyif mysql # use DIV operator for integer division
query I rowsort label-4065
SELECT col1 DIV + col0 col1 FROM tab0
----
1
2
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4065
SELECT col1 / + col0 col1 FROM tab0
----
1
2
3

onlyif mysql # use DIV operator for integer division
query I rowsort label-4066
SELECT ALL col1 DIV col1 - col1 AS col0 FROM tab2
----
-16
-30
-58

skipif mysql # not compatible
query I rowsort label-4066
SELECT ALL col1 / col1 - col1 AS col0 FROM tab2
----
-16
-30
-58

query I rowsort
SELECT + col0 FROM tab0 WHERE NOT NULL > NULL
----

query I rowsort
SELECT - col0 + + cor0.col0 * col0 FROM tab0 cor0
----
1190
552
7832

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * + col2 + - col0 col2 FROM tab0 cor0
----
-70
-7387
-816

query I rowsort
SELECT + col0 * - col1 + col1 FROM tab2 AS cor0
----
-1326
-186
-4543

query I rowsort
SELECT - + col0 * - cor0.col1 + col1 * col2 FROM tab0 AS cor0
----
15561
3492
4902

query I rowsort
SELECT DISTINCT - + col0 + - col2 * col0 AS col2 FROM tab2 AS cor0
----
-196
-2106
-3081

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col0 * + col2 + col1 + col0 col1 FROM tab2 AS cor0
----
2165
227
3098

query I rowsort
SELECT DISTINCT - col1 - col0 AS col0 FROM tab0 cor0
----
-110
-132
-180

onlyif mysql # use DIV operator for integer division
query I rowsort label-4075
SELECT DISTINCT col0 + col0 + col2 DIV + col2 AS col1 FROM tab1 AS cor0
----
129
161
7

skipif mysql # not compatible
query I rowsort label-4075
SELECT DISTINCT col0 + col0 + col2 / + col2 AS col1 FROM tab1 AS cor0
----
129
161
7

query I rowsort
SELECT - col2 + col0 + + col2 AS col2 FROM tab1
----
3
64
80

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 <> col2
----

query I rowsort
SELECT + col0 + + col2 * col0 FROM tab0
----
70
7387
816

query I rowsort
SELECT - col1 * - 45 + - col0 * + col1 + 28 AS col2 FROM tab0 cor0
----
-3976
1834
998

query I rowsort
SELECT ALL col2 * 71 * col2 AS col0 FROM tab2 cor0
----
102524
47996
51759

query I rowsort
SELECT + + col2 * - 66 AS col2 FROM tab2 AS cor0
----
-1716
-1782
-2508

query I rowsort
SELECT - col0 * ( - cor0.col0 ) FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT 80 * - col1 AS col0 FROM tab2
----
-1360
-2480
-4720

query I rowsort
SELECT col0 * - col2 - - tab0.col2 * col2 AS col2 FROM tab0
----
-34
-574
297

query I rowsort
SELECT + + col1 * col0 + + 97 AS col1 FROM tab2 AS cor0
----
1440
314
4699

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4086
SELECT col0 * + CAST( + col0 AS SIGNED ) + + col1 col0 FROM tab2 AS cor0
----
6143
6258
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4086
SELECT col0 * + CAST ( + col0 AS INTEGER ) + + col1 col0 FROM tab2 AS cor0
----
6143
6258
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4087
SELECT - col1 + - col1 + - ( col1 * CAST( col1 AS SIGNED ) ) FROM tab0 AS cor0
----
-7568
-8463
-9603

skipif mysql # not compatible
query I rowsort label-4087
SELECT - col1 + - col1 + - ( col1 * CAST ( col1 AS INTEGER ) ) FROM tab0 AS cor0
----
-7568
-8463
-9603

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col1 * + 9 col2 FROM tab2 AS cor0
----
-153
-279
-531

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + 72 * col0 col2 FROM tab2 AS cor0
----
535
5675
5705

query I rowsort
SELECT + 25 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 525a55d5ed224a62da65df36731881a7

query I rowsort
SELECT ALL + - ( 56 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0, tab1 AS cor1
----
27 values hashing to a228dfb9ede9780b082a5a3dfb2fca80

onlyif mysql # use DIV operator for integer division
query I rowsort label-4092
SELECT ALL - col2 DIV + 81 + - col1 * col2 * 30 + 98 FROM tab2 AS cor0
----
-19282
-25012
-45922

skipif mysql # not compatible
query I rowsort label-4092
SELECT ALL - col2 / + 81 + - col1 * col2 * 30 + 98 FROM tab2 AS cor0
----
-19282
-25012
-45922

query I rowsort
SELECT DISTINCT + - col0 - + col2 AS col0 FROM tab1 AS cor0
----
-121
-176
-57

query I rowsort
SELECT DISTINCT - col0 * - col1 - col1 FROM tab1 AS cor0
----
1027
52
630

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 + col1 + col0 * cor0.col1 * - col2 col1 FROM tab0 AS cor0
----
-3333
-664116
-68050

query I rowsort
SELECT ALL + col2 + + col1 * - col0 * col1 + - col0 * + col0 FROM tab0
----
-178047
-330539
-744848

query I rowsort
SELECT ALL col1 * + 35 + 64 AS col1 FROM tab0 AS cor0
----
3074
3249
3459

query I rowsort
SELECT - col1 + tab0.col2 * + tab0.col1 AS col0 FROM tab0
----
0
2752
7371

query I rowsort
SELECT DISTINCT + col1 - - tab0.col1 FROM tab0
----
172
182
194

query I rowsort
SELECT + col2 + col2 + + col1 AS col2 FROM tab0
----
152
255
99

query I rowsort
SELECT col1 FROM tab2 WHERE NOT NULL >= NULL
----

query I rowsort
SELECT + col0 * tab1.col1 AS col2 FROM tab1 WHERE NOT ( NULL ) < NULL
----

query I rowsort
SELECT DISTINCT + col1 + col0 * - col1 * + col0 AS col2 FROM tab2
----
-106080
-1488
-358897

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( - col1 ) IN ( col2 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

query I rowsort
SELECT ALL + col1 AS col1 FROM tab1 WHERE NOT NULL NOT IN ( - col0 )
----

query I rowsort
SELECT col0 * - col1 * col0 - + col2 FROM tab1 AS cor0
----
-288
-41017
-83296

query I rowsort
SELECT - - col2 * col2 * 81 FROM tab1 AS cor0
----
236196
263169
746496

query I rowsort
SELECT ALL + col1 * col1 * 46 AS col1 FROM tab0 AS cor0
----
340216
380926
432814

query I rowsort
SELECT ALL 76 * col0 AS col1 FROM tab1 AS cor0
----
228
4864
6080

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4110
SELECT - ( col0 ) + CAST( NULL AS SIGNED ) * 13 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4110
SELECT - ( col0 ) + CAST ( NULL AS INTEGER ) * 13 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - 16 * cor0.col0 AS col1 FROM tab2 cor0
----
-112
-1248
-1264

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4112
SELECT ALL col0 * - CAST( col2 AS SIGNED ) * + col2 + col0 FROM tab1 AS cor0
----
-207872
-737200
-8745

skipif mysql # not compatible
query I rowsort label-4112
SELECT ALL col0 * - CAST ( col2 AS INTEGER ) * + col2 + col0 FROM tab1 AS cor0
----
-207872
-737200
-8745

query I rowsort
SELECT DISTINCT col2 - col2 FROM tab1 cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4114
SELECT col2 - col0 DIV col1 FROM tab1 AS cor0
----
51
54
90

skipif mysql # not compatible
query I rowsort label-4114
SELECT col2 - col0 / col1 FROM tab1 AS cor0
----
51
54
90

query I rowsort
SELECT ALL + col2 - 23 AS col0 FROM tab0 AS cor0
----
-22
10
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-4116
SELECT ALL + - col2 DIV 47 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4116
SELECT ALL + - col2 / 47 FROM tab0 AS cor0
----
-1
0
0

query I rowsort
SELECT DISTINCT - col2 - + col0 AS col0 FROM tab1 AS cor0
----
-121
-176
-57

query I rowsort
SELECT + - col1 * + 58 * col2 - - col1 AS col0 FROM tab0 AS cor0
----
-164518
-432705
-5529

query I rowsort
SELECT - col0 * 23 AS col0 FROM tab1 AS cor0
----
-1472
-1840
-69

query I rowsort
SELECT + - col1 * col0 + col0 FROM tab0 cor0
----
-2040
-3360
-8010

query I rowsort
SELECT + - col1 * + cor0.col0 + col1 FROM tab0 AS cor0
----
-1978
-3298
-8008

query I rowsort
SELECT ALL + - 4 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 5784540a5af6ca2be84399d314acd2fd

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * cor0.col0 + col0 col2 FROM tab1 AS cor0
----
-159
-3584
-7600

query I rowsort
SELECT - ( 85 ) AS col0 FROM tab1 AS cor0
----
-85
-85
-85

query I rowsort
SELECT DISTINCT - tab2.col0 + + col1 + - 39 * col0 AS col0 FROM tab2
----
-249
-3061
-3143

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + col0 + col2 + col0 col0 FROM tab0
----
71
7469
849

onlyif mysql # use DIV operator for integer division
query I rowsort label-4127
SELECT ALL - col2 DIV - col0 + + cor0.col1 + 45 * cor0.col1 FROM tab0 AS cor0
----
3957
4186
4462

skipif mysql # not compatible
query I rowsort label-4127
SELECT ALL - col2 / - col0 + + cor0.col1 + 45 * cor0.col1 FROM tab0 AS cor0
----
3957
4186
4462

query I rowsort
SELECT DISTINCT - - 61 - col0 AS col0 FROM tab0 AS cor0
----
-28
26
37

query I rowsort
SELECT ALL + + 22 AS col1 FROM tab2 cor0
----
22
22
22

onlyif mysql # use DIV operator for integer division
query I rowsort label-4130
SELECT ALL col2 DIV col2 + - col1 FROM tab1
----
-12
-25
-9

skipif mysql # not compatible
query I rowsort label-4130
SELECT ALL col2 / col2 + - col1 FROM tab1
----
-12
-25
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 40 col2 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
40

query I rowsort
SELECT ALL 12 - + col2 AS col1 FROM tab0
----
-21
-70
11

query I rowsort
SELECT ( + col2 ) + col0 * 73 + col2 AS col2 FROM tab1
----
327
4786
6032

query I rowsort
SELECT DISTINCT - 84 * + col2 + - col0 AS col2 FROM tab0
----
-119
-2796
-6977

onlyif mysql # use DIV operator for integer division
query I rowsort label-4135
SELECT DISTINCT + + col1 * + col2 + cor0.col1 DIV - col1 + - cor0.col2 FROM tab1 AS cor0
----
1151
1349
512

skipif mysql # not compatible
query I rowsort label-4135
SELECT DISTINCT + + col1 * + col2 + cor0.col1 / - col1 + - cor0.col2 FROM tab1 AS cor0
----
1151
1349
512

query I rowsort
SELECT ALL - + ( - cor0.col0 ) * - col0 - + ( + col1 + + col2 ) FROM tab2 cor0
----
-107
-6169
-6296

query I rowsort
SELECT DISTINCT + ( + cor0.col2 ) * + tab2.col2 AS col1 FROM tab2, tab1, tab0 AS cor0
----
9 values hashing to a477aa402dcd904394a585dfd5cfe837

query I rowsort
SELECT ALL - 17 * - col2 * ( tab0.col0 + col1 ) AS col0 FROM tab0
----
2244
250920
61710

onlyif mysql # use DIV operator for integer division
query I rowsort label-4139
SELECT tab2.col0 DIV + tab2.col1 AS col0 FROM tab2
----
0
1
4

skipif mysql # not compatible
query I rowsort label-4139
SELECT tab2.col0 / + tab2.col1 AS col0 FROM tab2
----
0
1
4

query I rowsort
SELECT tab0.col1 AS col2 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT 9 * + 62 AS col1 FROM tab1
----
558
558
558

query I rowsort
SELECT ALL + ( - 11 ) FROM tab2
----
-11
-11
-11

query I rowsort
SELECT 19 * col1 AS col1 FROM tab2
----
1121
323
589

query I rowsort
SELECT DISTINCT + col0 * col2 * - col2 AS col1 FROM tab0
----
-26136
-35
-598436

query I rowsort
SELECT ALL col1 * ( col1 ) * - col1 FROM tab1 AS cor0
----
-1000
-17576
-2197

query I rowsort
SELECT - 34 * cor0.col1 AS col0 FROM tab2 AS cor0
----
-1054
-2006
-578

query I rowsort
SELECT - - col2 * cor0.col2 + col1 AS col2 FROM tab1 AS cor0
----
2942
3259
9229

query I rowsort
SELECT - + 15 * + col0 FROM tab2 AS cor0
----
-105
-1170
-1185

query I rowsort
SELECT 84 + + col1 AS col0 FROM tab2
----
101
115
143

query I rowsort
SELECT - 80 + col2 AS col1 FROM tab1
----
-23
-26
16

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4151
SELECT + CAST( 71 AS SIGNED ) FROM tab2
----
71
71
71

skipif mysql # not compatible
query I rowsort label-4151
SELECT + CAST ( 71 AS INTEGER ) FROM tab2
----
71
71
71

query I rowsort
SELECT - 70 + col1 FROM tab1
----
-44
-57
-60

query I rowsort
SELECT - + 27 * col2 + col1 FROM tab1 AS cor0
----
-1432
-1529
-2579

query I rowsort
SELECT + - col0 + col1 * ( - col2 ) FROM tab1 AS cor0
----
-1328
-1407
-634

query I rowsort
SELECT ALL + 91 * - col2 + - col1 AS col2 FROM tab0 AS cor0
----
-188
-3089
-7553

onlyif mysql # use DIV operator for integer division
query I rowsort label-4156
SELECT + 90 + 72 - + col1 * col2 DIV - col2 AS col0 FROM tab0
----
248
253
259

skipif mysql # not compatible
query I rowsort label-4156
SELECT + 90 + 72 - + col1 * col2 / - col2 AS col0 FROM tab0
----
248
253
259

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4157
SELECT CAST( NULL AS SIGNED ) / col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4157
SELECT CAST ( NULL AS INTEGER ) / col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 + + 71 * - col0 + col2 FROM tab2
----
-439
-5453
-5554

query I rowsort
SELECT DISTINCT cor2.col2 * + cor2.col2 FROM tab1, tab1 AS cor0, tab2 cor1, tab0, tab2 AS cor2
----
1444
676
729

query I rowsort
SELECT col2 + col0 * - tab0.col0 FROM tab0
----
-1224
-543
-7839

query I rowsort
SELECT + 38 * col2 AS col1 FROM tab0 AS cor0
----
1254
3116
38

query I rowsort
SELECT DISTINCT cor0.col2 + col2 * ( + 20 ) AS col2 FROM tab0 AS cor0
----
1722
21
693

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 13 col1 FROM tab1 AS cor0
----
13
13
13

query I rowsort
SELECT DISTINCT col1 * ( 33 * + tab1.col2 + 73 ) FROM tab1
----
19540
42133
48230

query I rowsort
SELECT tab2.col1 - + 26 AS col0 FROM tab2
----
-9
33
5

query I rowsort
SELECT - col1 * + 27 * - col1 - col2 AS col0 FROM tab2
----
25920
7765
93961

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 * - col1 col0 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT col2 * + 21 AS col1 FROM tab0 AS cor0
----
1722
21
693

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + col0 * + col1 col0 FROM tab1 AS cor0
----
24
583
944

query I rowsort
SELECT - + ( + col2 ) + + col0 * + 51 + col2 FROM tab2 cor0
----
357
3978
4029

query I rowsort
SELECT + col2 + cor0.col1 * + cor0.col0 AS col1 FROM tab0 AS cor0
----
2097
3396
8181

query I rowsort
SELECT ALL + + col2 * + col1 + + col0 AS col1 FROM tab2 AS cor0
----
1612
725
844

query I rowsort
SELECT + 69 + + 29 * col0 + + col2 AS col2 FROM tab2 cor0
----
2357
2398
299

query I rowsort
SELECT - tab0.col2 - - tab0.col1 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 36ab59c6b23903b005e63f870ff8014d

onlyif mysql # use DIV operator for integer division
query I rowsort label-4175
SELECT - tab0.col1 DIV + tab0.col2 col2 FROM tab0
----
-1
-2
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4175
SELECT - tab0.col1 / + tab0.col2 col2 FROM tab0
----
-1
-2
-97

query I rowsort
SELECT + 56 - + cor0.col1 AS col0 FROM tab1 AS cor0
----
30
43
46

onlyif mysql # use DIV operator for integer division
query I rowsort label-4177
SELECT - cor0.col1 DIV col0 - col0 AS col2 FROM tab1 AS cor0
----
-11
-64
-80

skipif mysql # not compatible
query I rowsort label-4177
SELECT - cor0.col1 / col0 - col0 AS col2 FROM tab1 AS cor0
----
-11
-64
-80

query I rowsort
SELECT ALL + + col2 * - 92 * + col1 AS col2 FROM tab1 AS cor0
----
-114816
-129168
-52440

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + col2 * cor0.col0 * col2 col1 FROM tab2 AS cor0
----
114038
5076
52702

query I rowsort
SELECT + + col2 * - col1 - col2 * col2 AS col0 FROM tab1 AS cor0
----
-10464
-3819
-4320

query I rowsort
SELECT + 51 + + cor0.col2 FROM tab0 AS cor0
----
133
52
84

query I rowsort
SELECT DISTINCT - col2 + + ( col2 ) * - col2 AS col1 FROM tab2 AS cor0
----
-1482
-702
-756

query I rowsort
SELECT 21 AS col2 FROM tab2 cor0
----
21
21
21

query I rowsort
SELECT ALL + - 59 + col1 + - col0 * - col1 FROM tab2 AS cor0
----
1301
189
4602

query I rowsort
SELECT DISTINCT - col1 + + 26 FROM tab2
----
-33
-5
9

query I rowsort
SELECT ALL - 79 + + 61 FROM tab2
----
-18
-18
-18

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4187
SELECT ALL + ( ( - col1 ) ) + - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4187
SELECT ALL + ( ( - col1 ) ) + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4188
SELECT ALL + + CAST( NULL AS SIGNED ) + cor0.col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4188
SELECT ALL + + CAST ( NULL AS INTEGER ) + cor0.col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4189
SELECT ALL + col2 - col2 DIV - col2 AS col0 FROM tab1 AS cor0
----
55
58
97

skipif mysql # not compatible
query I rowsort label-4189
SELECT ALL + col2 - col2 / - col2 AS col0 FROM tab1 AS cor0
----
55
58
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-4190
SELECT + ( - col1 ) + col1 * col0 DIV + 38 FROM tab1 AS cor0
----
-24
14
6

skipif mysql # not compatible
query I rowsort label-4190
SELECT + ( - col1 ) + col1 * col0 / + 38 FROM tab1 AS cor0
----
-24
14
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 31 * col1 + ( + col0 ) col1 FROM tab0 AS cor0
----
-2642
-2732
-2972

onlyif mysql # use DIV operator for integer division
query I rowsort label-4192
SELECT - col2 DIV cor0.col0 + ( - col1 ) AS col1 FROM tab2 AS cor0
----
-17
-34
-59

skipif mysql # not compatible
query I rowsort label-4192
SELECT - col2 / cor0.col0 + ( - col1 ) AS col1 FROM tab2 AS cor0
----
-17
-34
-59

query I rowsort
SELECT ALL + 97 FROM tab0 cor0
----
97
97
97

query I rowsort
SELECT + col0 + col0 * col1 - col0 * + col1 FROM tab0 AS cor0
----
24
35
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-4195
SELECT DISTINCT + col2 * col0 + - col1 DIV + col1 + + col2 * + col1 FROM tab0 AS cor0
----
131
14759
3629

skipif mysql # not compatible
query I rowsort label-4195
SELECT DISTINCT + col2 * col0 + - col1 / + col1 + + col2 * + col1 FROM tab0 AS cor0
----
131
14759
3629

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 + col0 + col1 col0 FROM tab2 AS cor0
----
134
163
65

onlyif mysql # use DIV operator for integer division
query I rowsort label-4197
SELECT col0 * - col1 + + 19 DIV cor0.col0 - + col2 FROM tab2 cor0
----
-1381
-242
-4628

skipif mysql # not compatible
query I rowsort label-4197
SELECT col0 * - col1 + + 19 / cor0.col0 - + col2 FROM tab2 cor0
----
-1381
-242
-4628

query I rowsort
SELECT ALL 45 FROM tab0, tab0 cor0
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050

query I rowsort
SELECT ALL - col2 + + col0 + - col2 AS col1 FROM tab0
----
-42
-75
33

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4200
SELECT CAST( NULL AS SIGNED ) * + 42 / col1 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4200
SELECT CAST ( NULL AS INTEGER ) * + 42 / col1 AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4201
SELECT DISTINCT - - col0 - - CAST( col1 + col1 AS SIGNED ) FROM tab1 AS cor0
----
106
55
84

skipif mysql # not compatible
query I rowsort label-4201
SELECT DISTINCT - - col0 - - CAST ( col1 + col1 AS INTEGER ) FROM tab1 AS cor0
----
106
55
84

query I rowsort
SELECT ALL - col0 + 43 * - 19 * cor0.col1 AS col1 FROM tab1 cor0
----
-10701
-21245
-8234

query I rowsort
SELECT ALL cor0.col1 - - 68 AS col2 FROM tab0 AS cor0
----
154
159
165

onlyif mysql # use DIV operator for integer division
query I rowsort label-4204
SELECT ALL - col1 + + ( + col2 ) DIV - cor0.col0 AS col2 FROM tab2 AS cor0
----
-17
-34
-59

skipif mysql # not compatible
query I rowsort label-4204
SELECT ALL - col1 + + ( + col2 ) / - cor0.col0 AS col2 FROM tab2 AS cor0
----
-17
-34
-59

query I rowsort
SELECT DISTINCT - cor0.col2 + ( + col0 ) * col2 AS col1 FROM tab0 AS cor0
----
34
7216
759

query I rowsort
SELECT ALL col1 * - 97 FROM tab1 AS cor0
----
-1261
-2522
-970

query I rowsort
SELECT DISTINCT - col0 * ( - 71 ) AS col2 FROM tab0 AS cor0
----
1704
2485
6319

query I rowsort
SELECT ALL + col2 * col1 + + col1 FROM tab1 cor0
----
1261
1430
580

query I rowsort
SELECT DISTINCT - + col0 - 55 FROM tab1 AS cor0
----
-119
-135
-58

query I rowsort
SELECT DISTINCT - col1 + - col0 * + cor0.col0 FROM tab0 AS cor0
----
-1322
-662
-8012

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4211
SELECT DISTINCT - + cor0.col0 * CAST( 31 * - col1 AS SIGNED ) + col1 AS col0 FROM tab1 AS cor0
----
19850
2444
32253

skipif mysql # not compatible
query I rowsort label-4211
SELECT DISTINCT - + cor0.col0 * CAST ( 31 * - col1 AS INTEGER ) + col1 AS col0 FROM tab1 AS cor0
----
19850
2444
32253

query I rowsort
SELECT 65 + - col1 AS col2 FROM tab0
----
-21
-26
-32

query I rowsort
SELECT DISTINCT + cor0.col0 AS col2 FROM tab2, tab0, tab0 AS cor0
----
24
35
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 16 + + col1 col0 FROM tab1
----
-3
-6
10

onlyif mysql # use DIV operator for integer division
query I rowsort label-4215
SELECT col2 DIV col2 + CAST( 85 * col2 + col2 AS SIGNED ) FROM tab1
----
4645
4903
8257

skipif mysql # not compatible
query I rowsort label-4215
SELECT col2 / col2 + CAST ( 85 * col2 + col2 AS INTEGER ) FROM tab1
----
4645
4903
8257

query I rowsort
SELECT ALL col2 + + tab1.col0 * 12 * - col1 FROM tab1
----
-12384
-7623
-882

query I rowsort
SELECT ALL + col0 + tab1.col1 * ( + col2 * + tab1.col0 ) + - col0 * 50 * - col0 AS col0 FROM tab1
----
241344
419920
4665

query I rowsort
SELECT ALL 82 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 99920d9f7cd9cdccef99cfa459ae6944

onlyif mysql # use DIV operator for integer division
query I rowsort label-4219
SELECT ALL - col1 DIV + 4 + col1 * col2 FROM tab1 cor0
----
1245
1398
568

skipif mysql # not compatible
query I rowsort label-4219
SELECT ALL - col1 / + 4 + col1 * col2 FROM tab1 cor0
----
1245
1398
568

query I rowsort
SELECT ALL - + cor0.col1 * - ( col2 ) + cor0.col0 * 80 FROM tab2 AS cor0
----
1397
6966
7774

query I rowsort
SELECT DISTINCT - col0 * - 50 * + col1 + - col1 * - col2 AS col0 FROM tab0 AS cor0
----
106038
169847
412412

query I rowsort
SELECT ALL 54 * col0 FROM tab0
----
1296
1890
4806

onlyif mysql # use DIV operator for integer division
query I rowsort label-4223
SELECT ALL 46 DIV + col0 FROM tab0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-4223
SELECT ALL 46 / + col0 FROM tab0
----
0
1
1

query I rowsort
SELECT ALL - col1 * + ( + 71 ) FROM tab0 AS cor0
----
-6106
-6461
-6887

query I rowsort
SELECT - col0 * col1 + col2 * col2 + + ( col2 ) FROM tab2 cor0
----
-3900
139
539

query I rowsort
SELECT + - col0 * cor0.col2 * + 89 FROM tab0 AS cor0
----
-3115
-649522
-70488

query I rowsort
SELECT - + col1 * - col1 AS col0 FROM tab1 cor0
----
100
169
676

query I rowsort
SELECT + col2 * + col1 - col2 AS col0 FROM tab0 AS cor0
----
2805
7380
96

query I rowsort
SELECT cor0.col2 * + col1 - - col2 AS col2 FROM tab2 AS cor0
----
1560
684
864

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + 77 col2 FROM tab0 AS cor0
----
110
159
78

query I rowsort
SELECT - - col1 + 10 AS col0 FROM tab0 AS cor0
----
101
107
96

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab0 AS cor0 CROSS JOIN tab1, tab0, tab2 AS cor1
----
3645 values hashing to da83d3eeaeb9e24a3cb14bb7058757dd

query I rowsort
SELECT + ( + 71 ) * + col1 + + col0 * 61 AS col2 FROM tab1 AS cor0
----
2029
4614
5803

query I rowsort
SELECT DISTINCT + 22 + col1 * col0 AS col1 FROM tab2 AS cor0
----
1365
239
4624

query I rowsort
SELECT ALL ( col0 ) + col1 * 76 AS col0 FROM tab0 AS cor0
----
6560
7005
7407

query I rowsort
SELECT DISTINCT - col0 * 55 + col1 AS col2 FROM tab0 AS cor0
----
-1234
-1828
-4804

query I rowsort
SELECT DISTINCT - cor0.col2 AS col1 FROM tab0, tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-54
-57
-96

query I rowsort
SELECT ALL 4 + - col0 * + col2 FROM tab1 AS cor0
----
-158
-3644
-7676

query I rowsort
SELECT col2 * + ( - col2 ) + + col2 FROM tab1 AS cor0
----
-2862
-3192
-9120

onlyif mysql # use DIV operator for integer division
query I rowsort label-4240
SELECT col2 + - cor0.col1 DIV col2 AS col0 FROM tab0 AS cor0
----
-96
31
81

skipif mysql # not compatible
query I rowsort label-4240
SELECT col2 + - cor0.col1 / col2 AS col0 FROM tab0 AS cor0
----
-96
31
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + cor0.col2 + + cor0.col1 + 28 col1 FROM tab2 cor0
----
1489
763
788

query I rowsort
SELECT + - 17 * - col1 + - cor0.col1 * col1 FROM tab2 AS cor0
----
-2478
-434
0

query I rowsort
SELECT 57 + col2 FROM tab0 AS cor0
----
139
58
90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4244
SELECT DISTINCT + - 35 * - 15 + col1 * + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4244
SELECT DISTINCT + - 35 * - 15 + col1 * + CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + col1 + 65 + + col1 FROM tab0 AS cor0
----
237
247
259

query I rowsort
SELECT + + col1 * - ( + col0 ) AS col2 FROM tab2 AS cor0
----
-1343
-217
-4602

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4247
SELECT + 4 + - col2 * CAST( col0 AS SIGNED ) FROM tab0 AS cor0
----
-31
-7294
-788

skipif mysql # not compatible
query I rowsort label-4247
SELECT + 4 + - col2 * CAST ( col0 AS INTEGER ) FROM tab0 AS cor0
----
-31
-7294
-788

query I rowsort
SELECT + - cor0.col0 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e

query I rowsort
SELECT + - ( col1 ) + 37 AS col0 FROM tab2 AS cor0
----
-22
20
6

onlyif mysql # use DIV operator for integer division
query I rowsort label-4250
SELECT - col2 * - cor0.col1 + + col2 * col2 DIV + col1 AS col0 FROM tab2 AS cor0
----
1545
730
860

skipif mysql # not compatible
query I rowsort label-4250
SELECT - col2 * - cor0.col1 + + col2 * col2 / + col1 AS col0 FROM tab2 AS cor0
----
1545
730
860

query I rowsort
SELECT 53 + col1 FROM tab1 AS cor0
----
63
66
79

query I rowsort
SELECT ALL - - 66 + col1 AS col2 FROM tab2 AS cor0
----
125
83
97

query I rowsort
SELECT + col2 * col2 + col0 * col2 AS col1 FROM tab2
----
2704
4446
918

query I rowsort
SELECT - 91 * col2 * 3 FROM tab1 AS cor0
----
-14742
-15561
-26208

query I rowsort
SELECT - 42 + col0 * - 16 FROM tab2 AS cor0
----
-1290
-1306
-154

onlyif mysql # use DIV operator for integer division
query I rowsort label-4256
SELECT DISTINCT - 81 DIV + col2 + col2 FROM tab1 AS cor0
----
53
56
96

skipif mysql # not compatible
query I rowsort label-4256
SELECT DISTINCT - 81 / + col2 + col2 FROM tab1 AS cor0
----
53
56
96

query I rowsort
SELECT + 64 AS col0 FROM tab1, tab1 cor0
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4258
SELECT - + CAST( NULL AS SIGNED ) + + 86 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4258
SELECT - + CAST ( NULL AS INTEGER ) + + 86 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4259
SELECT DISTINCT + col2 DIV col1 + col0 * col2 AS col1 FROM tab2
----
189
2028
3004

skipif mysql # not compatible
query I rowsort label-4259
SELECT DISTINCT + col2 / col1 + col0 * col2 AS col1 FROM tab2
----
189
2028
3004

query I rowsort
SELECT DISTINCT + 97 AS col0 FROM tab0
----
97

query I rowsort
SELECT tab0.col0 * tab0.col0 * - col2 AS col2 FROM tab0
----
-1225
-19008
-649522

query I rowsort
SELECT - 5 FROM tab1, tab0 cor0
----
9 values hashing to 74665fbb47d5b17da011bca567195b21

query I rowsort
SELECT ALL tab2.col1 + - 62 AS col2 FROM tab2
----
-3
-31
-45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - col0 * col0 col0 FROM tab0 AS cor0
----
-1190
-552
-7832

query I rowsort
SELECT DISTINCT + + col1 + 84 * 21 FROM tab1 AS cor0
----
1774
1777
1790

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col2 - col1 col2 FROM tab1 cor0
----
-109
-67
-80

query I rowsort
SELECT ALL + 7 - 77 FROM tab0, tab2, tab0 AS cor0, tab1
----
81 values hashing to d0e68852e45abdcfbe6812110913ee01

query I rowsort
SELECT col1 * ( + col0 * - col0 ) FROM tab2
----
-106097
-1519
-358956

query I rowsort
SELECT col1 + 18 * col1 FROM tab2
----
1121
323
589

query I rowsort
SELECT - col0 * 64 FROM tab1
----
-192
-4096
-5120

query I rowsort
SELECT ALL col0 - col2 AS col0 FROM tab1
----
-16
-51
7

query I rowsort
SELECT + col2 * - col1 - + col1 FROM tab1 AS cor0
----
-1261
-1430
-580

onlyif mysql # use DIV operator for integer division
query I rowsort label-4273
SELECT ALL - col2 DIV - ( + ( + col0 ) ) + + col0 AS col1 FROM tab1
----
21
64
81

skipif mysql # not compatible
query I rowsort label-4273
SELECT ALL - col2 / - ( + ( + col0 ) ) + + col0 AS col1 FROM tab1
----
21
64
81

query I rowsort
SELECT + - col0 * 98 - col1 AS col2 FROM tab0 AS cor0
----
-2438
-3527
-8813

query I rowsort
SELECT 82 AS col0 FROM tab1, tab0 cor0
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c

query I rowsort
SELECT ALL - ( 43 ) * - col1 * + col1 AS col0 FROM tab2
----
12427
149683
41323

query I rowsort
SELECT col2 * 28 FROM tab2 AS cor0
----
1064
728
756

query I rowsort
SELECT DISTINCT ( col2 * + col2 + col2 ) FROM tab1
----
2970
3306
9312

query I rowsort
SELECT + 17 - 20 * + col1 FROM tab2
----
-1163
-323
-603

query I rowsort
SELECT DISTINCT - ( + col1 ) * + col0 AS col0 FROM tab2
----
-1343
-217
-4602

query I rowsort
SELECT ALL - ( - 88 ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37

query I rowsort
SELECT DISTINCT col2 - - col0 * cor0.col1 AS col1 FROM tab0 AS cor0
----
2097
3396
8181

query I rowsort
SELECT ALL + - 28 + col0 * 81 * + col2 AS col2 FROM tab2 AS cor0
----
15281
164240
243134

query I rowsort
SELECT + + 41 FROM tab0 cor0
----
41
41
41

query I rowsort
SELECT ALL - 42 + col0 FROM tab1 AS cor0
----
-39
22
38

query I rowsort
SELECT - 61 + - col1 * + 23 FROM tab0 AS cor0
----
-2039
-2154
-2292

query I rowsort
SELECT DISTINCT 69 * col2 AS col2 FROM tab0 AS cor0
----
2277
5658
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 45 * - col1 col2 FROM tab0 AS cor0
----
3870
4095
4365

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 36 * - tab2.col1 + - col1 * - col0 col1 FROM tab2
----
-899
2478
731

query I rowsort
SELECT ALL + + col2 * + cor0.col1 FROM tab0 AS cor0
----
2838
7462
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * col2 col0 FROM tab1 AS cor0
----
-2916
-3249
-9216

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4292
SELECT DISTINCT + col1 + CAST( NULL AS SIGNED ) * col0 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4292
SELECT DISTINCT + col1 + CAST ( NULL AS INTEGER ) * col0 AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT cor0.col2 * 31 FROM tab2 AS cor0
----
1178
806
837

query I rowsort
SELECT DISTINCT - + col0 * col2 * - ( col0 ) FROM tab2 AS cor0
----
1323
158184
237158

query I rowsort
SELECT DISTINCT + col2 + - col2 * cor0.col2 FROM tab1 AS cor0
----
-2862
-3192
-9120

query I rowsort
SELECT - col1 * ( 93 ) AS col0 FROM tab2 AS cor0
----
-1581
-2883
-5487

query I rowsort
SELECT ALL + col0 * - 2 AS col2 FROM tab1 AS cor0
----
-128
-160
-6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4298
SELECT - col1 * - CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4298
SELECT - col1 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col0 + 65 AS col0 FROM tab2 AS cor0
----
143
144
72

query I rowsort
SELECT DISTINCT ( 82 ) AS col0 FROM tab1 AS cor0
----
82

query I rowsort
SELECT ALL - - col0 * - col2 + col0 * + col2 * + col2 FROM tab1 AS cor0
----
204288
729600
8586

query I rowsort
SELECT ALL + cor0.col2 * cor0.col0 * col1 AS col0 FROM tab0 AS cor0
----
3395
664118
68112

query I rowsort
SELECT ALL - col2 + + ( col1 * - col0 + + col2 ) AS col2 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT ALL 92 * + 34 FROM tab1 cor0
----
3128
3128
3128

query I rowsort
SELECT col0 * + cor0.col0 + col0 FROM tab0 AS cor0
----
1260
600
8010

query I rowsort
SELECT DISTINCT + col2 + - 15 AS col2 FROM tab2 AS cor0
----
11
12
23

query I rowsort
SELECT ALL - 86 * + 45 AS col0 FROM tab0 AS cor0
----
-3870
-3870
-3870

query I rowsort
SELECT + col0 + col2 * col0 FROM tab1 AS cor0
----
165
3712
7760

query I rowsort
SELECT DISTINCT - col0 * - col2 + + col0 + + 38 FROM tab0 AS cor0
----
108
7425
854

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4310
SELECT + - CAST( col2 AS SIGNED ) * cor0.col2 + col1 * - col1 FROM tab0 AS cor0
----
-15005
-8485
-9410

skipif mysql # not compatible
query I rowsort label-4310
SELECT + - CAST ( col2 AS INTEGER ) * cor0.col2 + col1 * - col1 FROM tab0 AS cor0
----
-15005
-8485
-9410

query I rowsort
SELECT DISTINCT - col2 * col2 - cor0.col1 AS col0 FROM tab1 AS cor0
----
-2942
-3259
-9229

query I rowsort
SELECT DISTINCT - + 66 - - ( - col1 ) FROM tab0 AS cor0
----
-152
-157
-163

query I rowsort
SELECT + ( - col0 ) * + col1 + 91 * - col0 FROM tab1 AS cor0
----
-351
-6464
-8320

query I rowsort
SELECT ALL - col1 + + col1 * cor0.col2 FROM tab0 AS cor0
----
0
2752
7371

onlyif mysql # use DIV operator for integer division
query I rowsort label-4315
SELECT cor0.col0 * - col2 + - col0 * col1 DIV col1 FROM tab1 AS cor0
----
-165
-3712
-7760

skipif mysql # not compatible
query I rowsort label-4315
SELECT cor0.col0 * - col2 + - col0 * col1 / col1 FROM tab1 AS cor0
----
-165
-3712
-7760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * cor0.col0 + - col0 col1 FROM tab2 AS cor0
----
42
6006
6162

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + col2 ) col1 FROM tab0 cor0
----
-1
-33
-82

onlyif mysql # use DIV operator for integer division
query I rowsort label-4318
SELECT ALL + cor0.col2 + col1 * col1 DIV + col2 AS col0 FROM tab0 AS cor0
----
182
257
9410

skipif mysql # not compatible
query I rowsort label-4318
SELECT ALL + cor0.col2 + col1 * col1 / + col2 AS col0 FROM tab0 AS cor0
----
182
257
9410

query I rowsort
SELECT ALL - col1 + col0 + col0 AS col0 FROM tab2 AS cor0
----
-17
141
97

query I rowsort
SELECT cor0.col2 + + ( + cor0.col2 ) FROM tab0, tab0 AS cor0
----
9 values hashing to e5ee086d16e1b2450d3f7ac8d26a0f7b

query I rowsort
SELECT ALL + 72 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49

onlyif mysql # use DIV operator for integer division
query I rowsort label-4322
SELECT + - col2 DIV cor0.col1 FROM tab2 cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-4322
SELECT + - col2 / cor0.col1 FROM tab2 cor0
----
-2
0
0

query I rowsort
SELECT DISTINCT cor0.col1 * col2 + - col2 * 0 + - col2 AS col0 FROM tab1 AS cor0
----
1152
1350
513

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + col0 col0 FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT ALL - - col0 * + col0 + + 68 * col1 FROM tab2 AS cor0
----
10096
2157
7397

query I rowsort
SELECT ALL + + col2 + col0 * - 60 * - ( cor0.col0 ) FROM tab1 cor0
----
245817
384096
594

query I rowsort
SELECT + col2 + 45 AS col2 FROM tab2 cor0
----
71
72
83

query I rowsort
SELECT col0 + + 81 AS col0 FROM tab0
----
105
116
170

query I rowsort
SELECT DISTINCT + col0 * - col1 * - tab2.col2 AS col0 FROM tab2
----
119652
51034
5859

query I rowsort
SELECT ALL - cor1.col1 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4331
SELECT DISTINCT CAST( + col1 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-4331
SELECT DISTINCT CAST ( + col1 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
10
13
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + ( col0 ) col0 FROM tab2 AS cor0
----
104
117
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 92 + tab2.col2 + + col2 * col0 col0 FROM tab2
----
2146
308
3132

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + col2 * col1 col0 FROM tab1 cor0
----
1261
1430
580

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 col1 FROM tab2, tab0 cor0, tab0 cor1, tab0 AS cor2
----
1
33
82

query I rowsort
SELECT col1 - - col2 * + col0 * col1 AS col2 FROM tab2
----
119711
51051
5890

query I rowsort
SELECT - + col1 * col2 + - col1 * - cor0.col0 FROM tab0 AS cor0
----
-774
3298
637

query I rowsort
SELECT - col0 * + 7 FROM tab2
----
-49
-546
-553

query I rowsort
SELECT - col0 * + tab2.col0 AS col2 FROM tab2
----
-49
-6084
-6241

query I rowsort
SELECT - col1 * + 67 + col2 FROM tab2 AS cor0
----
-1101
-2050
-3927

query I rowsort
SELECT DISTINCT + col0 + - ( col2 ) AS col0 FROM tab1 cor0
----
-16
-51
7

query I rowsort
SELECT 98 * - 46 + col0 AS col2 FROM tab2 cor0
----
-4429
-4430
-4501

query I rowsort
SELECT + col2 + 52 AS col1 FROM tab0 AS cor0
----
134
53
85

query I rowsort
SELECT - - cor0.col1 * col2 + - col0 FROM tab0 AS cor0
----
2814
62
7373

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4345
SELECT + - CAST( - col1 AS SIGNED ) * cor0.col0 AS col2 FROM tab2 cor0
----
1343
217
4602

skipif mysql # not compatible
query I rowsort label-4345
SELECT + - CAST ( - col1 AS INTEGER ) * cor0.col0 AS col2 FROM tab2 cor0
----
1343
217
4602

query I rowsort
SELECT - ( + 74 ) FROM tab1, tab1 AS cor0
----
9 values hashing to 5a567947d14593676e3825756f8e6130

query I rowsort
SELECT DISTINCT - + ( col0 ) + col2 FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT DISTINCT - + ( col1 ) + col0 * + col2 + + 72 AS col0 FROM tab1 AS cor0
----
208
3710
7739

query I rowsort
SELECT + col2 - + col0 * cor0.col0 * - cor0.col0 FROM tab0 AS cor0
----
13857
42876
705051

query I rowsort
SELECT col1 - col1 * - col2 AS col2 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT + cor1.col0 + + 63 * + 9 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1b941da696c660d23034e3b408c01a24

query I rowsort
SELECT + 97 FROM tab1, tab2 AS cor0, tab1 AS cor1, tab2 AS cor2
----
81 values hashing to f1d3319b9491f64621f2dbb0808458ca

query I rowsort
SELECT + 16 AS col1 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to ee5bde9f68ee828e8cd86b0d590090bc

query I rowsort
SELECT DISTINCT + col0 + + col2 * + col0 AS col0 FROM tab0
----
70
7387
816

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + col1 + - ( 27 ) * col2 ) col1 FROM tab0
----
-2123
-805
70

query I rowsort
SELECT DISTINCT cor1.col0 AS col2 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
24
35
89

query I rowsort
SELECT ALL ( - 87 ) AS col1 FROM tab2, tab0 AS cor0, tab2 cor1
----
27 values hashing to c0011cd00aa3e86f06bebc13678997f9

query I rowsort
SELECT + + col1 + col2 * col0 AS col1 FROM tab2 AS cor0
----
2087
220
3019

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + cor0.col0 * col2 col1 FROM tab1 cor0
----
-207936
-737280
-8748

query I rowsort
SELECT DISTINCT - + col0 + col1 + col0 AS col1 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT + + col2 * + col0 + + cor0.col1 FROM tab0 AS cor0
----
132
7389
878

query I rowsort
SELECT DISTINCT + col2 + - cor0.col1 * + col0 FROM tab0 AS cor0
----
-2031
-3394
-8017

onlyif mysql # use DIV operator for integer division
query I rowsort label-4363
SELECT ALL col2 * col2 DIV + col0 FROM tab0 AS cor0
----
0
45
75

skipif mysql # not compatible
query I rowsort label-4363
SELECT ALL col2 * col2 / + col0 FROM tab0 AS cor0
----
0
45
75

query I rowsort
SELECT DISTINCT - - col2 * col1 * + col0 + - col2 * + col0 AS col2 FROM tab0 AS cor0
----
3360
656820
67320

query I rowsort
SELECT ALL + - col1 * col0 - + col1 AS col2 FROM tab1 AS cor0
----
-104
-1053
-650

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 / - col0 IN ( + col2 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col1 * + col1 col2 FROM tab2 AS cor0
----
205379
29791
4913

query I rowsort
SELECT col1 * - col0 * + cor0.col2 FROM tab2 AS cor0
----
-119652
-51034
-5859

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col2 + - col0 / col0 = col1 + + col1 * col1
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

query I rowsort
SELECT + col0 * + col0 - col2 FROM tab0 AS cor0
----
1224
543
7839

query I rowsort
SELECT + col0 - + col1 FROM tab1 cor0
----
-23
54
67

query IIIIII rowsort
SELECT * FROM tab2, tab0 AS cor0 WHERE NOT NULL > ( NULL )
----

query I rowsort
SELECT DISTINCT + col2 + + col0 + - col1 FROM tab2 AS cor0
----
100
3
45

query I rowsort
SELECT DISTINCT col0 * col2 + - cor0.col2 FROM tab0 AS cor0
----
34
7216
759

onlyif mysql # use DIV operator for integer division
query I rowsort label-4375
SELECT ALL + + col1 DIV + col1 + + col1 + + col2 AS col0 FROM tab2 AS cor0
----
56
59
86

skipif mysql # not compatible
query I rowsort label-4375
SELECT ALL + + col1 / + col1 + + col1 + + col2 AS col0 FROM tab2 AS cor0
----
56
59
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + - col2 * + col2 * col2 + col2 col0 FROM tab0 AS cor0
----
-35880
-551197
35

query I rowsort
SELECT ALL tab2.col1 + - col2 AS col2 FROM tab2
----
-21
33
4

query I rowsort
SELECT ALL + tab0.col1 + - col2 AS col2 FROM tab0
----
53
9
96

query I rowsort
SELECT DISTINCT - col2 + + col0 + - col2 AS col2 FROM tab0 AS cor0
----
-42
-75
33

query I rowsort
SELECT + tab2.col2 * - col0 - - col2 FROM tab2
----
-162
-2002
-2964

query I rowsort
SELECT col0 * col2 + + col0 FROM tab1
----
165
3712
7760

query I rowsort
SELECT DISTINCT - col2 + - tab1.col0 AS col1 FROM tab1
----
-121
-176
-57

query I rowsort
SELECT ALL - tab2.col0 + col1 * - col1 AS col1 FROM tab2
----
-3559
-368
-968

query I rowsort
SELECT col0 * - col2 - col1 FROM tab0
----
-132
-7389
-878

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT BETWEEN - col0 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * col0 col0 FROM tab0
----
1225
576
7921

query I rowsort
SELECT ALL tab2.col1 FROM tab2 WHERE NOT NULL > + col1
----

query I rowsort
SELECT tab0.col0 FROM tab0 WHERE ( NULL ) IN ( col2 )
----

query I rowsort
SELECT ALL col1 + col0 * col0 * - col2 AS col2 FROM tab1
----
-233462
-460
-614387

query I rowsort
SELECT - col0 * col2 + - tab2.col1 AS col2 FROM tab2
----
-2087
-220
-3019

query I rowsort
SELECT DISTINCT + ( - col0 ) AS col2 FROM tab1
----
-3
-64
-80

query I rowsort
SELECT + col2 + col0 * + tab2.col0 AS col1 FROM tab2
----
6110
6279
76

query I rowsort
SELECT ( + col2 ) + ( + col2 ) AS col1 FROM tab0
----
164
2
66

query I rowsort
SELECT DISTINCT + 8 AS col0 FROM tab1 AS cor0
----
8

query I rowsort
SELECT ALL - col1 + col1 * + ( - 56 ) AS col2 FROM tab0 AS cor0
----
-4902
-5187
-5529

query I rowsort
SELECT 15 * + 92 FROM tab2, tab2 AS cor0
----
9 values hashing to 41122633dcf4fe135eb5f1f6926b19a4

query I rowsort
SELECT ALL - 82 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to ce62f59690969f4492d78eb57c3181f0

query I rowsort
SELECT ALL + + 15 + + cor0.col1 FROM tab2 cor0
----
32
46
74

query I rowsort
SELECT - col1 * cor0.col2 AS col2 FROM tab1 cor0
----
-1248
-1404
-570

query I rowsort
SELECT + tab1.col1 * + col0 * col2 AS col0 FROM tab1
----
36480
4212
99840

query III rowsort
SELECT * FROM tab1 WHERE col0 + - col1 * + col0 + col1 BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT - col1 * col1 + + col2 FROM tab2
----
-251
-3455
-934

query I rowsort
SELECT col2 + + col1 + col2 * col2 FROM tab0
----
1208
6897
99

onlyif mysql # use DIV operator for integer division
query I rowsort label-4404
SELECT DISTINCT col2 DIV - col2 AS col2 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-4404
SELECT DISTINCT col2 / - col2 AS col2 FROM tab1
----
-1

query I rowsort
SELECT - col2 + + col2 + + tab2.col2 FROM tab2
----
26
27
38

query I rowsort
SELECT - tab1.col1 + tab1.col2 + col0 FROM tab1
----
111
163
31

query I rowsort
SELECT + col0 - + cor0.col0 * - col1 FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT + cor0.col0 - - col0 FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT ALL - col2 + col2 * col2 - col0 FROM tab0
----
-35
1032
6553

query I rowsort
SELECT DISTINCT + col2 * col0 - + col2 * + col0 FROM tab0
----
0

query I rowsort
SELECT col2 * col0 - col0 FROM tab2
----
182
1950
2923

onlyif mysql # use DIV operator for integer division
query I rowsort label-4412
SELECT ALL tab0.col1 DIV + col0 + + col0 FROM tab0
----
27
37
90

skipif mysql # not compatible
query I rowsort label-4412
SELECT ALL tab0.col1 / + col0 + + col0 FROM tab0
----
27
37
90

query I rowsort
SELECT + col2 AS col2 FROM tab2 WHERE col1 IN ( + col0 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN col0 AND NULL
----

query I rowsort
SELECT - col2 + + col1 + col1 * - col1 FROM tab0
----
-7343
-8272
-9313

onlyif mysql # use DIV operator for integer division
query I rowsort label-4416
SELECT ALL + col2 DIV - col0 AS col2 FROM tab1
----
-1
-18
0

skipif mysql # not compatible
query I rowsort label-4416
SELECT ALL + col2 / - col0 AS col2 FROM tab1
----
-1
-18
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4417
SELECT DISTINCT col2 * col0 DIV col2 AS col2 FROM tab1
----
3
64
80

skipif mysql # not compatible
query I rowsort label-4417
SELECT DISTINCT col2 * col0 / col2 AS col2 FROM tab1
----
3
64
80

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE + col1 * + col2 - + col0 IN ( - col2 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-4419
SELECT DISTINCT tab0.col0 DIV tab0.col0 AS col1 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-4419
SELECT DISTINCT tab0.col0 / tab0.col0 AS col1 FROM tab0
----
1

query I rowsort
SELECT - col1 * col1 - col0 AS col1 FROM tab2
----
-3559
-368
-968

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab0.col0 + col2 col2 FROM tab0
----
171
36
57

query I rowsort
SELECT DISTINCT - tab0.col0 * col1 + col2 FROM tab0
----
-2031
-3394
-8017

query I rowsort
SELECT ALL - ( 76 ) FROM tab1, tab1 AS cor0
----
9 values hashing to f8b6589bc7503fc720ca5430e3569317

skipif mysql # not compatible
query I rowsort
SELECT - - col1 * + col0 + - CAST ( ( - col0 ) AS REAL ) AS col2 FROM tab2 AS cor0
----
1422
224
4680

onlyif mysql # use DIV operator for integer division
query I rowsort label-4425
SELECT - ( col2 ) * col2 DIV col2 + col2 col2 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4425
SELECT - ( col2 ) * col2 / col2 + col2 col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - 75 FROM tab1, tab2 AS cor0
----
-75

query I rowsort
SELECT + 77 FROM tab2, tab0 cor0
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622

query I rowsort
SELECT + - col1 * 91 AS col1 FROM tab2 AS cor0
----
-1547
-2821
-5369

query I rowsort
SELECT col0 + + col0 * - col0 + col1 * - col2 FROM tab2 cor0
----
-6808
-7540
-879

query I rowsort
SELECT DISTINCT + col1 * 29 + 54 FROM tab1 AS cor0
----
344
431
808

query I rowsort
SELECT + col1 + + ( 10 ) * - col1 AS col2 FROM tab1 AS cor0
----
-117
-234
-90

query I rowsort
SELECT - ( + cor0.col1 ) + - col2 AS col1 FROM tab2 cor0
----
-55
-58
-85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - col1 - + col1 col1 FROM tab0 AS cor0
----
-7482
-8372
-9506

query I rowsort
SELECT - 40 + - col0 FROM tab2 AS cor0
----
-118
-119
-47

query I rowsort
SELECT + col1 - + cor0.col1 * - col1 FROM tab0 AS cor0
----
7482
8372
9506

query I rowsort
SELECT tab0.col2 * 1 AS col2 FROM tab0
----
1
33
82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4437
SELECT ALL + CAST( NULL AS DECIMAL ) FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4437
SELECT ALL + CAST ( NULL AS REAL ) FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT - col0 + tab0.col2 AS col2 FROM tab0
----
-34
-7
9

query I rowsort
SELECT 21 - - col1 AS col1 FROM tab2 AS cor0
----
38
52
80

query I rowsort
SELECT ALL col1 * col2 + col0 AS col2 FROM tab2
----
1612
725
844

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4441
SELECT ALL CAST( NULL AS SIGNED ) + col1 * col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4441
SELECT ALL CAST ( NULL AS INTEGER ) + col1 * col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + 4 * col0 + col2 FROM tab0 AS cor0
----
129
141
438

onlyif mysql # use DIV operator for integer division
query I rowsort label-4443
SELECT col2 DIV - 22 + col0 AS col0 FROM tab1 AS cor0
----
1
62
76

skipif mysql # not compatible
query I rowsort label-4443
SELECT col2 / - 22 + col0 AS col0 FROM tab1 AS cor0
----
1
62
76

query I rowsort
SELECT DISTINCT - tab2.col0 AS col1 FROM tab1, tab0 AS cor0 CROSS JOIN tab2, tab2 AS cor1
----
-7
-78
-79

query I rowsort
SELECT + 56 * 10 AS col2 FROM tab1
----
560
560
560

query I rowsort
SELECT + 54 * + col1 * col2 FROM tab2
----
34884
45198
82836

query I rowsort
SELECT DISTINCT + tab1.col1 + tab1.col2 AS col2 FROM tab1, tab0 AS cor0
----
109
67
80

query I rowsort
SELECT DISTINCT - col1 * - 2 FROM tab1
----
20
26
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-4449
SELECT + - col2 + cor0.col0 * col0 DIV - cor0.col2 FROM tab1 AS cor0
----
-128
-162
-54

skipif mysql # not compatible
query I rowsort label-4449
SELECT + - col2 + cor0.col0 * col0 / - cor0.col2 FROM tab1 AS cor0
----
-128
-162
-54

query I rowsort
SELECT ALL + - 91 + col0 * col0 AS col2 FROM tab2 AS cor0
----
-42
5993
6150

onlyif mysql # use DIV operator for integer division
query I rowsort label-4451
SELECT DISTINCT col2 * col0 - - col0 DIV + col0 FROM tab2 AS cor0
----
190
2029
3003

skipif mysql # not compatible
query I rowsort label-4451
SELECT DISTINCT col2 * col0 - - col0 / + col0 FROM tab2 AS cor0
----
190
2029
3003

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 DISTINCT col0 * col2 + + cor0.col0 col0 FROM tab0 AS cor0
----
70
7387
816

onlyif mysql # use DIV operator for integer division
query I rowsort label-4454
SELECT ( + col0 ) + + col2 DIV + col0 + tab1.col0 FROM tab1
----
128
161
24

skipif mysql # not compatible
query I rowsort label-4454
SELECT ( + col0 ) + + col2 / + col0 + tab1.col0 FROM tab1
----
128
161
24

query I rowsort
SELECT DISTINCT col2 - ( + col1 ) * - col2 AS col1 FROM tab0
----
2871
7544
98

query I rowsort
SELECT + ( 5 ) FROM tab1
----
5
5
5

query I rowsort
SELECT + col0 * + col0 * + col2 FROM tab1
----
233472
486
614400

onlyif mysql # use DIV operator for integer division
query I rowsort label-4458
SELECT DISTINCT + col2 DIV 59 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-4458
SELECT DISTINCT + col2 / 59 FROM tab0
----
0
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-4459
SELECT + col0 DIV col0 + col2 + col2 * + col2 AS col2 FROM tab2
----
1483
703
757

skipif mysql # not compatible
query I rowsort label-4459
SELECT + col0 / col0 + col2 + col2 * + col2 AS col2 FROM tab2
----
1483
703
757

onlyif mysql # use DIV operator for integer division
query I rowsort label-4460
SELECT tab0.col0 + col0 DIV tab0.col1 - + col1 AS col2 FROM tab0
----
-2
-62
-62

skipif mysql # not compatible
query I rowsort label-4460
SELECT tab0.col0 + col0 / tab0.col1 - + col1 AS col2 FROM tab0
----
-2
-62
-62

query I rowsort
SELECT cor0.col2 * col1 + col0 + + col2 * + col2 AS col0 FROM tab1 AS cor0
----
10544
3883
4323

onlyif mysql # use DIV operator for integer division
query I rowsort label-4462
SELECT 35 + + col2 DIV col0 col2 FROM tab1 AS cor0
----
35
36
53

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4462
SELECT 35 + + col2 / col0 col2 FROM tab1 AS cor0
----
35
36
53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + col0 * + col2 col0 FROM tab1 AS cor0
----
216
3705
7776

query I rowsort
SELECT - 76 + + cor0.col1 FROM tab0 AS cor0
----
10
15
21

query I rowsort
SELECT + col1 * col2 - + cor0.col0 * col1 AS col1 FROM tab1 AS cor0
----
-70
1326
208

query I rowsort
SELECT - 70 + + cor0.col0 AS col2 FROM tab2 AS cor0
----
-63
8
9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4467
SELECT + col1 * CAST( NULL AS SIGNED ) * cor0.col2 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-4467
SELECT + col1 * CAST ( NULL AS INTEGER ) * cor0.col2 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 70 - - cor0.col1 FROM tab1, tab0 AS cor0
----
9 values hashing to da8d5d6ef5c9f7ff1ab4446fff04af31

query I rowsort
SELECT ALL 78 FROM tab2, tab0 AS cor0
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 * col0 + cor0.col2 * + col0 col2 FROM tab1 AS cor0
----
-448
1280
153

query I rowsort
SELECT ALL 0 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort
SELECT CAST ( 37 AS REAL ) + col0 * + col1 FROM tab2 AS cor0
----
1380
254
4639

query I rowsort
SELECT ALL + - ( 13 ) + - cor0.col1 + - cor0.col0 * - col0 FROM tab1 AS cor0
----
-30
4073
6374

query I rowsort
SELECT ALL + - 55 + + cor0.col2 AS col1 FROM tab0 AS cor0
----
-22
-54
27

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4475
SELECT CAST( NULL AS SIGNED ) * 88 col2 FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4475
SELECT CAST ( NULL AS INTEGER ) * 88 col2 FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT - tab0.col2 + - 11 AS col0 FROM tab0
----
-12
-44
-93

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4477
SELECT DISTINCT + col0 + - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4477
SELECT DISTINCT + col0 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL

query I rowsort
SELECT + col0 * 65 * + ( - col0 + 25 * - cor0.col2 ) FROM tab2 AS cor0
----
-310310
-3690960
-5283915

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4479
SELECT - + col2 + - CAST( 96 * col0 AS SIGNED ) AS col2 FROM tab2 cor0
----
-699
-7514
-7622

skipif mysql # not compatible
query I rowsort label-4479
SELECT - + col2 + - CAST ( 96 * col0 AS INTEGER ) AS col2 FROM tab2 cor0
----
-699
-7514
-7622

query I rowsort
SELECT DISTINCT + + col0 * 52 AS col2 FROM tab1 cor0
----
156
3328
4160

query I rowsort
SELECT ALL + - col0 + 43 AS col2 FROM tab2 AS cor0
----
-35
-36
36

query I rowsort
SELECT ALL col0 * - 65 AS col1 FROM tab2 AS cor0
----
-455
-5070
-5135

query I rowsort
SELECT DISTINCT - col2 * ( - col0 ) FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT ALL + - cor0.col0 * + col0 AS col0 FROM tab1 AS cor0
----
-4096
-6400
-9

onlyif mysql # use DIV operator for integer division
query I rowsort label-4485
SELECT DISTINCT - + 53 DIV col1 AS col0 FROM tab1 AS cor0
----
-2
-4
-5

skipif mysql # not compatible
query I rowsort label-4485
SELECT DISTINCT - + 53 / col1 AS col0 FROM tab1 AS cor0
----
-2
-4
-5

onlyif mysql # use DIV operator for integer division
query I rowsort label-4486
SELECT 80 DIV - col0 FROM tab1 AS cor0
----
-1
-1
-26

skipif mysql # not compatible
query I rowsort label-4486
SELECT 80 / - col0 FROM tab1 AS cor0
----
-1
-1
-26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4487
SELECT + CAST( NULL AS DECIMAL ) * col0 + - col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4487
SELECT + CAST ( NULL AS REAL ) * col0 + - col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + ( col0 ) * col2 AS col2 FROM tab2 AS cor0
----
189
2028
3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-4489
SELECT DISTINCT + - ( + col1 ) DIV + col2 FROM tab0 AS cor0
----
-1
-2
-97

skipif mysql # not compatible
query I rowsort label-4489
SELECT DISTINCT + - ( + col1 ) / + col2 FROM tab0 AS cor0
----
-1
-2
-97

query I rowsort
SELECT ALL - col2 + cor0.col2 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + - cor0.col2 * - col1 + cor0.col2 FROM tab2 AS cor0
----
1560
684
864

query I rowsort
SELECT ALL col0 + tab1.col1 + + 13 AS col0 FROM tab1
----
106
42
87

query I rowsort
SELECT ALL 94 + col1 * + ( ( col2 ) ) FROM tab2
----
1628
740
931

query I rowsort
SELECT - ( col2 ) * - ( + col1 ) FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT ( + col0 ) * col0 + - ( + col1 ) * 52 FROM tab2 AS cor0
----
-1563
3016
5357

query I rowsort
SELECT col2 + + col1 * col0 AS col1 FROM tab2 cor0
----
1381
244
4628

query I rowsort
SELECT DISTINCT col2 - cor0.col1 FROM tab2 AS cor0
----
-33
-4
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + + col2 col0 FROM tab2 AS cor0
----
-33
-4
21

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4499
SELECT - col0 * - CAST( NULL AS SIGNED ) col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4499
SELECT - col0 * - CAST ( NULL AS INTEGER ) col1 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4500
SELECT - col2 DIV 52 + col2 FROM tab2 AS cor0
----
26
27
38

skipif mysql # not compatible
query I rowsort label-4500
SELECT - col2 / 52 + col2 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT DISTINCT + - col1 + 70 AS col2 FROM tab2 AS cor0
----
11
39
53

query I rowsort
SELECT ALL - - col0 * 44 * + col0 AS col2 FROM tab0 AS cor0
----
25344
348524
53900

query I rowsort
SELECT DISTINCT + col0 + 79 * - col2 FROM tab2 AS cor0
----
-1976
-2126
-2923

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab2.col0 col1 FROM tab2, tab1 AS cor0
----
7
78
79

query I rowsort
SELECT DISTINCT cor0.col1 - + cor0.col1 FROM tab0, tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT + cor0.col1 * col2 - col1 AS col2 FROM tab2 AS cor0
----
1475
629
806

query I rowsort
SELECT ALL col0 + 73 + - col2 AS col2 FROM tab1 AS cor0
----
22
57
80

query I rowsort
SELECT ALL col2 * col2 + col1 FROM tab0 AS cor0
----
1175
6815
98

query I rowsort
SELECT - col0 + - 75 FROM tab1 AS cor0
----
-139
-155
-78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor1.col0 col0 FROM tab1, tab2 AS cor0, tab1 cor1
----
-3
-64
-80

query I rowsort
SELECT DISTINCT - cor0.col1 + - 99 * + col2 FROM tab1 cor0
----
-5372
-5653
-9517

query I rowsort
SELECT col2 * 27 * 97 FROM tab2
----
68094
70713
99522

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + ( + 41 ) + tab2.col1 col1 FROM tab2
----
1125
1138
1575

query I rowsort
SELECT - col1 * 38 FROM tab2
----
-1178
-2242
-646

query I rowsort
SELECT DISTINCT cor1.col1 AS col0 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
10
13
26

query I rowsort
SELECT ALL + col2 + cor0.col1 * 89 AS col1 FROM tab2 AS cor0
----
1551
2786
5277

query I rowsort
SELECT ALL - cor0.col1 + 97 AS col1 FROM tab2 AS cor0
----
38
66
80

query I rowsort
SELECT + 5 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 6797d40099023779b89feb627d94a3e7

query I rowsort
SELECT - - col1 * - col0 * - 30 FROM tab1 AS cor0
----
19200
2340
31200

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4520
SELECT ALL - CAST( - col2 AS SIGNED ) * + tab2.col0 FROM tab2
----
189
2028
3002

skipif mysql # not compatible
query I rowsort label-4520
SELECT ALL - CAST ( - col2 AS INTEGER ) * + tab2.col0 FROM tab2
----
189
2028
3002

query I rowsort
SELECT - tab1.col1 - col2 * col1 * 4 AS col0 FROM tab1
----
-2290
-5005
-5642

query I rowsort
SELECT + 39 + - col2 AS col2 FROM tab2
----
1
12
13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 93 col0 FROM tab0, tab1 cor0
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde

query I rowsort
SELECT ALL col1 - - col1 AS col2 FROM tab1 cor0
----
20
26
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-4525
SELECT ALL - 54 DIV col1 AS col1 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4525
SELECT ALL - 54 / col1 AS col1 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT ALL + 57 + + col2 AS col1 FROM tab1 AS cor0
----
111
114
153

onlyif mysql # use DIV operator for integer division
query I rowsort label-4527
SELECT DISTINCT - 56 DIV col0 AS col2 FROM tab1 AS cor0
----
-18
0

skipif mysql # not compatible
query I rowsort label-4527
SELECT DISTINCT - 56 / col0 AS col2 FROM tab1 AS cor0
----
-18
0

query I rowsort
SELECT + 16 * col0 + + col0 AS col0 FROM tab0
----
1513
408
595

query I rowsort
SELECT DISTINCT - col2 * - col0 * + tab2.col1 FROM tab2
----
119652
51034
5859

query I rowsort
SELECT DISTINCT + tab2.col1 * tab2.col2 + - ( - col2 ) AS col2 FROM tab2
----
1560
684
864

query I rowsort
SELECT ALL + 22 + col1 * - col1 + 17 * - col0 FROM tab1
----
-1166
-1507
-705

query I rowsort
SELECT DISTINCT col2 + - col2 * + ( col0 + col2 ) FROM tab1
----
-16800
-3024
-6840

query I rowsort
SELECT DISTINCT col1 * col2 + + col0 AS col1 FROM tab1 AS cor0
----
1328
1407
634

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 61 * - col2 col0 FROM tab1 AS cor0
----
-3294
-3477
-5856

query I rowsort
SELECT - - col0 * + col2 - + cor0.col2 AS col1 FROM tab2 AS cor0
----
162
2002
2964

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4536
SELECT ALL - cor0.col0 + col0 * CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4536
SELECT ALL - cor0.col0 + col0 * CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 96 * col0 + col2 FROM tab1 cor0
----
-234
-6087
-7584

query I rowsort
SELECT ALL - col2 * + col2 * ( col1 ) FROM tab1 AS cor0
----
-119808
-32490
-75816

query I rowsort
SELECT + cor0.col1 * col0 + - col2 FROM tab2 AS cor0
----
1305
190
4576

query I rowsort
SELECT DISTINCT - col1 * col0 - - col2 AS col1 FROM tab0 AS cor0
----
-2031
-3394
-8017

query I rowsort
SELECT - 87 * - col0 * - col0 FROM tab1
----
-356352
-556800
-783

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4542
SELECT DISTINCT 73 * + ( - col0 + CAST( + ( - col1 ) AS SIGNED ) ) FROM tab1
----
-2117
-5402
-6789

skipif mysql # not compatible
query I rowsort label-4542
SELECT DISTINCT 73 * + ( - col0 + CAST ( + ( - col1 ) AS INTEGER ) ) FROM tab1
----
-2117
-5402
-6789

onlyif mysql # use DIV operator for integer division
query I rowsort label-4543
SELECT - tab2.col1 DIV + 18 FROM tab2
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-4543
SELECT - tab2.col1 / + 18 FROM tab2
----
-1
-3
0

query I rowsort
SELECT + 92 * + col2 - col2 FROM tab0 cor0
----
3003
7462
91

query I rowsort
SELECT DISTINCT + - col0 + - col0 AS col0 FROM tab1 AS cor0
----
-128
-160
-6

onlyif mysql # use DIV operator for integer division
query I rowsort label-4546
SELECT ALL + col1 + + 95 DIV col0 + ( col1 ) * + cor0.col0 * - 41 FROM tab0 cor0
----
-139096
-331967
-84535

skipif mysql # not compatible
query I rowsort label-4546
SELECT ALL + col1 + + 95 / col0 + ( col1 ) * + cor0.col0 * - 41 FROM tab0 cor0
----
-139096
-331967
-84535

query I rowsort
SELECT ALL col1 + + col0 + + cor0.col1 FROM tab2 AS cor0
----
113
196
69

query I rowsort
SELECT - + ( - col1 ) * 66 + + col1 AS col1 FROM tab0 AS cor0
----
5762
6097
6499

query I rowsort
SELECT 93 + col2 FROM tab1 cor0
----
147
150
189

query I rowsort
SELECT + col0 + - 38 FROM tab0
----
-14
-3
51

query I rowsort
SELECT ALL 95 * + ( - col1 ) * + 67 + - col1 FROM tab2
----
-108222
-197346
-375594

query I rowsort
SELECT DISTINCT cor0.col2 + - ( cor0.col0 ) AS col2 FROM tab2 AS cor0
----
-41
-52
20

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4553
SELECT + + col0 * CAST( - 54 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-162
-3456
-4320

skipif mysql # not compatible
query I rowsort label-4553
SELECT + + col0 * CAST ( - 54 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-162
-3456
-4320

query I rowsort
SELECT DISTINCT + col1 * + ( + col0 ) + col2 FROM tab1 cor0
----
1136
132
697

query I rowsort
SELECT ALL col2 * + 17 AS col1 FROM tab2 AS cor0
----
442
459
646

onlyif mysql # use DIV operator for integer division
query I rowsort label-4556
SELECT DISTINCT + col0 + + col1 DIV - cor0.col0 FROM tab2 AS cor0
----
3
78
79

skipif mysql # not compatible
query I rowsort label-4556
SELECT DISTINCT + col0 + + col1 / - cor0.col0 FROM tab2 AS cor0
----
3
78
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - col0 + + 31 * col1 col1 FROM tab0 AS cor0
----
2675
2814
2973

onlyif mysql # use DIV operator for integer division
query I rowsort label-4558
SELECT ALL - col0 * col1 DIV 36 + + cor0.col2 DIV - col1 FROM tab1 cor0
----
-22
-35
-4

skipif mysql # not compatible
query I rowsort label-4558
SELECT ALL - col0 * col1 / 36 + + cor0.col2 / - col1 FROM tab1 cor0
----
-22
-35
-4

query I rowsort
SELECT ( - 9 ) FROM tab0 AS cor0
----
-9
-9
-9

query I rowsort
SELECT - col1 * - col2 * col2 - col2 AS col1 FROM tab2 AS cor0
----
22572
24510
39858

query I rowsort
SELECT 8 * - col2 AS col2 FROM tab1 AS cor0
----
-432
-456
-768

query I rowsort
SELECT ALL col1 + - ( + col0 ) + col0 AS col2 FROM tab0 cor0
----
86
91
97

query I rowsort
SELECT DISTINCT + - 84 - + 47 FROM tab1 AS cor0
----
-131

query I rowsort
SELECT - col0 * ( - col2 ) + - 63 AS col0 FROM tab2 AS cor0
----
126
1965
2939

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 73 col1 FROM tab1 AS cor0
----
73
73
73

query I rowsort
SELECT DISTINCT 4 + col1 FROM tab1 AS cor0
----
14
17
30

query I rowsort
SELECT DISTINCT - ( + col2 ) + + col0 AS col2 FROM tab0 cor0
----
-9
34
7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4568
SELECT DISTINCT + + CAST( NULL AS SIGNED ) * + col0 + col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4568
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) * + col0 + col0 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( col2 ) * col2 col1 FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT ALL - ( + col0 ) * + col2 - - cor0.col1 * 22 * cor0.col1 AS col1 FROM tab2 AS cor0
----
20953
3356
74554

query I rowsort
SELECT - cor0.col1 * - cor0.col0 FROM tab1, tab2 AS cor0
----
9 values hashing to bc669a3cc969c7619ebcffb5400ba0ba

onlyif mysql # use DIV operator for integer division
query I rowsort label-4572
SELECT ALL 75 DIV + cor0.col1 AS col2 FROM tab1 AS cor0
----
2
5
7

skipif mysql # not compatible
query I rowsort label-4572
SELECT ALL 75 / + cor0.col1 AS col2 FROM tab1 AS cor0
----
2
5
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - cor0.col2 col2 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT ALL - ( + col1 * col0 ) FROM tab1
----
-1040
-640
-78

query I rowsort
SELECT 23 * - 34 FROM tab1 AS cor0
----
-782
-782
-782

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 1 col2 FROM tab0 AS cor0
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-4577
SELECT DISTINCT 71 DIV - col1 FROM tab1
----
-2
-5
-7

skipif mysql # not compatible
query I rowsort label-4577
SELECT DISTINCT 71 / - col1 FROM tab1
----
-2
-5
-7

query I rowsort
SELECT DISTINCT - 29 - cor0.col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-46
-60
-88

query I rowsort
SELECT DISTINCT + tab2.col0 * 12 FROM tab2
----
84
936
948

query I rowsort
SELECT col0 * 81 AS col1 FROM tab2 AS cor0
----
567
6318
6399

onlyif mysql # use DIV operator for integer division
query I rowsort label-4581
SELECT ALL + col2 - col1 * 74 DIV col2 col1 FROM tab0 AS cor0
----
-159
-7177
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4581
SELECT ALL + col2 - col1 * 74 / col2 col1 FROM tab0 AS cor0
----
-159
-7177
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4582
SELECT DISTINCT + col1 DIV - cor0.col0 - col2 * - 35 AS col1 FROM tab2 cor0
----
1330
910
941

skipif mysql # not compatible
query I rowsort label-4582
SELECT DISTINCT + col1 / - cor0.col0 - col2 * - 35 AS col1 FROM tab2 cor0
----
1330
910
941

query I rowsort
SELECT DISTINCT - - col0 + - col2 + col2 AS col0 FROM tab2 cor0
----
7
78
79

query I rowsort
SELECT ALL - col2 + + col2 * + ( + ( col2 ) ) AS col1 FROM tab2 AS cor0
----
1406
650
702

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4585
SELECT - 59 + col2 * - CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4585
SELECT - 59 + 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-4586
SELECT ALL 1 DIV col1 - CAST( col2 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-4586
SELECT ALL 1 / col1 - CAST ( col2 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT col2 * - col2 + + col2 FROM tab2 AS cor0
----
-1406
-650
-702

query I rowsort
SELECT DISTINCT 28 * - col1 + + col2 AS col2 FROM tab2 cor0
----
-1626
-438
-841

query I rowsort
SELECT DISTINCT - 67 AS col2 FROM tab0, tab0 cor0
----
-67

query I rowsort
SELECT col1 - + col0 * + col2 AS col0 FROM tab0
----
-706
-7207
62

query I rowsort
SELECT 10 * col2 * - col0 AS col0 FROM tab2
----
-1890
-20280
-30020

query I rowsort
SELECT ALL 28 - col0 FROM tab2
----
-50
-51
21

onlyif mysql # use DIV operator for integer division
query I rowsort label-4593
SELECT ALL 28 DIV + col0 + - col1 FROM tab0
----
-85
-91
-97

skipif mysql # not compatible
query I rowsort label-4593
SELECT ALL 28 / + col0 + - col1 FROM tab0
----
-85
-91
-97

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + col0 + col2 + - CAST ( col1 + + col2 AS REAL ) AS col1 FROM tab0
----
-2
-62

query I rowsort
SELECT + col1 * + col1 * col2 FROM tab0
----
244068
679042
9409

query I rowsort
SELECT DISTINCT 29 * col0 + + 85 AS col0 FROM tab2 AS cor0
----
2347
2376
288

query I rowsort
SELECT + col0 * cor0.col2 + - cor0.col2 AS col0 FROM tab1 AS cor0
----
108
3591
7584

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + ( col0 ) + ( - col2 * col0 ) col2 FROM tab0 AS cor0
----
-7209
-768
0

query I rowsort
SELECT DISTINCT - + cor0.col2 * - col0 FROM tab1 cor0
----
162
3648
7680

query I rowsort
SELECT ALL - + cor0.col0 * + cor0.col2 AS col0 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT ALL - 53 * 60 FROM tab2, tab2 AS cor0
----
9 values hashing to 2e85e5b2aef67a37fde7e467180f1697

query I rowsort
SELECT ALL + 39 - col2 FROM tab2 AS cor0
----
1
12
13

query I rowsort
SELECT DISTINCT + 42 * - col2 FROM tab1 AS cor0
----
-2268
-2394
-4032

onlyif mysql # use DIV operator for integer division
query I rowsort label-4604
SELECT col2 - - col2 DIV col1 AS col1 FROM tab2 AS cor0
----
26
27
40

skipif mysql # not compatible
query I rowsort label-4604
SELECT col2 - - col2 / col1 AS col1 FROM tab2 AS cor0
----
26
27
40

query I rowsort
SELECT ALL 59 * ( col0 ) + col1 FROM tab2
----
444
4661
4678

query I rowsort
SELECT - 10 * col1 AS col1 FROM tab2
----
-170
-310
-590

query I rowsort
SELECT ALL + col1 + + col2 * col0 FROM tab2
----
2087
220
3019

query I rowsort
SELECT ALL + - cor0.col2 * 60 FROM tab1 AS cor0
----
-3240
-3420
-5760

onlyif mysql # use DIV operator for integer division
query I rowsort label-4609
SELECT - - 8 DIV col1 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4609
SELECT - - 8 / col1 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL ( 15 ) FROM tab2 AS cor0
----
15
15
15

onlyif mysql # use DIV operator for integer division
query I rowsort label-4611
SELECT ALL + - col0 DIV + col0 AS col0 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4611
SELECT ALL + - col0 / + col0 AS col0 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT + col1 * + 85 - col0 AS col2 FROM tab1 AS cor0
----
1025
2207
786

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4613
SELECT ALL + CAST( NULL AS SIGNED ) * 62 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4613
SELECT ALL + CAST ( NULL AS INTEGER ) * 62 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 94 * - col1 AS col0 FROM tab1
----
-1222
-2444
-940

query I rowsort
SELECT ALL + - cor0.col1 + + col2 * col0 AS col0 FROM tab0 AS cor0
----
-62
706
7207

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 79 * col2 col0 FROM tab0 cor0
----
-2607
-6478
-79

query I rowsort
SELECT DISTINCT + - 37 + - cor0.col1 FROM tab1 AS cor0
----
-47
-50
-63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 80 * - col0 col1 FROM tab0 cor0
----
-1920
-2800
-7120

query I rowsort
SELECT - col2 * + ( - cor0.col2 ) FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT + + 84 AS col2 FROM tab1 cor0
----
84
84
84

query I rowsort
SELECT DISTINCT - col0 * 39 + col0 FROM tab2 AS cor0
----
-266
-2964
-3002

query I rowsort
SELECT - cor0.col0 * col0 - col0 FROM tab2 AS cor0
----
-56
-6162
-6320

query I rowsort
SELECT col2 * + col2 + col2 * - col0 FROM tab0
----
-34
-574
297

query I rowsort
SELECT - - 83 * col1 AS col0 FROM tab0 AS cor0
----
7138
7553
8051

query I rowsort
SELECT ALL + cor0.col0 * + ( 82 ) AS col1 FROM tab1 AS cor0
----
246
5248
6560

query I rowsort
SELECT ALL - col0 * + 36 + + 42 + col1 FROM tab2 cor0
----
-179
-2707
-2785

onlyif mysql # use DIV operator for integer division
query I rowsort label-4627
SELECT DISTINCT 74 + + 61 DIV - cor0.col1 AS col1 FROM tab2, tab2 AS cor0
----
71
73

skipif mysql # not compatible
query I rowsort label-4627
SELECT DISTINCT 74 + + 61 / - cor0.col1 AS col1 FROM tab2, tab2 AS cor0
----
71
73

query I rowsort
SELECT ALL col1 * - 92 FROM tab0
----
-7912
-8372
-8924

query I rowsort
SELECT col2 + 11 * col1 AS col1 FROM tab2 AS cor0
----
225
368
675

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4630
SELECT DISTINCT col0 + + CAST( NULL AS SIGNED ) * cor0.col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4630
SELECT DISTINCT col0 + + CAST ( NULL AS INTEGER ) * cor0.col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4631
SELECT + + 46 * cor0.col0 DIV col0 FROM tab0 AS cor0
----
46
46
46

skipif mysql # not compatible
query I rowsort label-4631
SELECT + + 46 * cor0.col0 / col0 FROM tab0 AS cor0
----
46
46
46

query I rowsort
SELECT + col2 - + 80 AS col2 FROM tab0
----
-47
-79
2

onlyif mysql # use DIV operator for integer division
query I rowsort label-4633
SELECT tab0.col1 + ( col0 ) DIV + col0 AS col1 FROM tab0
----
87
92
98

skipif mysql # not compatible
query I rowsort label-4633
SELECT tab0.col1 + ( col0 ) / + col0 AS col1 FROM tab0
----
87
92
98

query I rowsort
SELECT DISTINCT col0 * - col1 * + cor0.col0 FROM tab0 AS cor0
----
-118825
-49536
-720811

query I rowsort
SELECT + col1 * 86 FROM tab2
----
1462
2666
5074

query I rowsort
SELECT + cor1.col2 - cor1.col1 FROM tab1, tab2 cor0, tab1 AS cor1
----
27 values hashing to d091f4383dddbc092261e593dd3c3dac

query I rowsort
SELECT ALL 27 * 20 FROM tab2, tab2 AS cor0
----
9 values hashing to 4ca1fa90c814fa6fd85aa340bdfa929a

query I rowsort
SELECT - col0 + 78 * col0 FROM tab0 cor0
----
1848
2695
6853

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 11 * col0 col2 FROM tab1
----
33
704
880

query I rowsort
SELECT ALL + 19 * + col1 FROM tab1
----
190
247
494

query I rowsort
SELECT DISTINCT 21 * 77 AS col1 FROM tab0
----
1617

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4642
SELECT CAST( 56 AS SIGNED ) * - col1 AS col0 FROM tab2
----
-1736
-3304
-952

skipif mysql # not compatible
query I rowsort label-4642
SELECT CAST ( 56 AS INTEGER ) * - col1 AS col0 FROM tab2
----
-1736
-3304
-952

onlyif mysql # use DIV operator for integer division
query I rowsort label-4643
SELECT - 28 + col0 DIV col0 AS col0 FROM tab1 AS cor0
----
-27
-27
-27

skipif mysql # not compatible
query I rowsort label-4643
SELECT - 28 + col0 / col0 AS col0 FROM tab1 AS cor0
----
-27
-27
-27

query I rowsort
SELECT + - cor0.col2 * + cor0.col2 FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT ( col0 ) + 2 * 7 AS col0 FROM tab2 AS cor0
----
21
92
93

query I rowsort
SELECT + col0 * col0 + col0 * - col0 * 28 AS col1 FROM tab2
----
-1323
-164268
-168507

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - ( + col0 ) col0 FROM tab1
----
4096
6400
9

query I rowsort
SELECT - cor0.col1 * - col2 AS col1 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT col0 * - col1 + col1 * + ( col0 ) AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort
SELECT tab1.col2 * col0 - CAST ( col1 AS REAL ) AS col0 FROM tab1
----
136
3638
7667

onlyif mysql # use DIV operator for integer division
query I rowsort label-4651
SELECT ALL - + col2 * col1 DIV 60 + - ( col1 + 56 ) * + col2 AS col1 FROM tab0 AS cor0
----
-12178
-154
-4733

skipif mysql # not compatible
query I rowsort label-4651
SELECT ALL - + col2 * col1 / 60 + - ( col1 + 56 ) * + col2 AS col1 FROM tab0 AS cor0
----
-12178
-154
-4733

query I rowsort
SELECT DISTINCT 23 AS col1 FROM tab0, tab0 cor0, tab2 AS cor1
----
23

query I rowsort
SELECT DISTINCT + col1 * col1 * + col1 FROM tab1 AS cor0
----
1000
17576
2197

query I rowsort
SELECT ALL - 37 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 395d44ccbce08828bc493e93ec3d9207

query I rowsort
SELECT - - col0 * col0 * 87 FROM tab1 AS cor0
----
356352
556800
783

query I rowsort
SELECT ALL - - col2 + ( - 80 ) FROM tab1 AS cor0
----
-23
-26
16

query I rowsort
SELECT + col2 * 61 FROM tab1 AS cor0
----
3294
3477
5856

query I rowsort
SELECT - col1 * + 68 AS col2 FROM tab0 AS cor0
----
-5848
-6188
-6596

query I rowsort
SELECT ALL + col1 + + 51 * col0 FROM tab0 cor0
----
1310
1882
4630

onlyif mysql # use DIV operator for integer division
query I rowsort label-4660
SELECT ALL + col2 DIV - col1 AS col0 FROM tab2 cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-4660
SELECT ALL + col2 / - col1 AS col0 FROM tab2 cor0
----
-2
0
0

query I rowsort
SELECT ALL + - cor0.col0 + cor0.col2 FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT DISTINCT - col1 * - ( col1 ) AS col0 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT ALL col1 + 15 FROM tab1 AS cor0
----
25
28
41

query I rowsort
SELECT tab2.col2 + - tab2.col2 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT - - col2 * + col2 * + col1 FROM tab2 AS cor0
----
22599
24548
39884

onlyif mysql # use DIV operator for integer division
query I rowsort label-4666
SELECT + ( col1 ) * - col1 DIV ( col1 ) + + col0 FROM tab1 cor0
----
-23
54
67

skipif mysql # not compatible
query I rowsort label-4666
SELECT + ( col1 ) * - col1 / ( col1 ) + + col0 FROM tab1 cor0
----
-23
54
67

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4667
SELECT + + CAST( 58 AS SIGNED ) FROM tab1 AS cor0
----
58
58
58

skipif mysql # not compatible
query I rowsort label-4667
SELECT + + CAST ( 58 AS INTEGER ) FROM tab1 AS cor0
----
58
58
58

query I rowsort
SELECT + col1 + - col0 * col2 * + 98 AS col2 FROM tab0 cor0
----
-3333
-715113
-77530

query I rowsort
SELECT - + cor0.col2 * - col2 + col2 FROM tab0 AS cor0
----
1122
2
6806

query I rowsort
SELECT ALL 99 FROM tab0, tab2 AS cor0
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db

query I rowsort
SELECT ( + ( + cor0.col1 ) ) + + col1 FROM tab0 cor0
----
172
182
194

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + ( + col0 ) col2 FROM tab1 cor0
----
-3
-64
-80

query I rowsort
SELECT DISTINCT 48 + + 16 AS col0 FROM tab2 AS cor0
----
64

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4674
SELECT DISTINCT + + CAST( NULL AS DECIMAL ) + col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4674
SELECT DISTINCT + + CAST ( NULL AS REAL ) + col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4675
SELECT ALL - + 79 - - col1 DIV col1 FROM tab0 AS cor0
----
-78
-78
-78

skipif mysql # not compatible
query I rowsort label-4675
SELECT ALL - + 79 - - col1 / col1 FROM tab0 AS cor0
----
-78
-78
-78

query I rowsort
SELECT DISTINCT cor0.col1 * - 85 FROM tab0 AS cor0
----
-7310
-7735
-8245

query I rowsort
SELECT + col1 * - tab2.col1 AS col1 FROM tab2
----
-289
-3481
-961

onlyif mysql # use DIV operator for integer division
query I rowsort label-4678
SELECT col1 + - 79 DIV col0 FROM tab2 AS cor0
----
16
20
58

skipif mysql # not compatible
query I rowsort label-4678
SELECT col1 + - 79 / col0 FROM tab2 AS cor0
----
16
20
58

query I rowsort
SELECT - ( 90 ) * + tab0.col0 FROM tab0
----
-2160
-3150
-8010

query I rowsort
SELECT DISTINCT 33 * - 74 + col2 FROM tab1
----
-2346
-2385
-2388

onlyif mysql # use DIV operator for integer division
query I rowsort label-4681
SELECT + + col1 * - col0 - - col1 DIV + cor0.col2 FROM tab0 AS cor0
----
-2062
-3298
-8098

skipif mysql # not compatible
query I rowsort label-4681
SELECT + + col1 * - col0 - - col1 / + cor0.col2 FROM tab0 AS cor0
----
-2062
-3298
-8098

query I rowsort
SELECT DISTINCT col1 * col2 + col2 AS col0 FROM tab2 AS cor0
----
1560
684
864

query I rowsort
SELECT ALL cor0.col0 + 69 FROM tab0 AS cor0
----
104
158
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-4684
SELECT - col1 DIV + col0 + + col0 AS col0 FROM tab2 cor0
----
3
78
79

skipif mysql # not compatible
query I rowsort label-4684
SELECT - col1 / + col0 + + col0 AS col0 FROM tab2 cor0
----
3
78
79

query I rowsort
SELECT DISTINCT - col0 * 93 + col0 + col1 FROM tab1 AS cor0
----
-250
-5878
-7347

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4686
SELECT + col2 * - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4686
SELECT + col2 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4687
SELECT DISTINCT + cor0.col0 * + CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4687
SELECT DISTINCT + cor0.col0 * + CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL

query I rowsort
SELECT ALL + col1 + col2 * col2 * col2 AS col0 FROM tab2 AS cor0
----
17635
19714
54889

onlyif mysql # use DIV operator for integer division
query I rowsort label-4689
SELECT col0 - 54 DIV + col0 FROM tab2 AS cor0
----
0
78
79

skipif mysql # not compatible
query I rowsort label-4689
SELECT col0 - 54 / + col0 FROM tab2 AS cor0
----
0
78
79

query I rowsort
SELECT 83 - + tab0.col2 FROM tab0
----
1
50
82

query I rowsort
SELECT DISTINCT + col0 + + ( col1 ) * + col0 FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT ALL + col0 * col1 * + col2 - col0 AS col0 FROM tab2 AS cor0
----
119574
50955
5852

query I rowsort
SELECT DISTINCT cor1.col0 + + 26 FROM tab2 cor0 CROSS JOIN tab2, tab2 AS cor1, tab1 AS cor2
----
104
105
33

query I rowsort
SELECT - tab0.col0 * - ( tab0.col0 + col2 ) AS col0 FROM tab0
----
1260
1368
15219

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + 49 col1 FROM tab2
----
75
76
87

onlyif mysql # use DIV operator for integer division
query I rowsort label-4696
SELECT + - cor0.col0 * col0 DIV + col1 AS col2 FROM tab0 AS cor0
----
-12
-6
-87

skipif mysql # not compatible
query I rowsort label-4696
SELECT + - cor0.col0 * col0 / + col1 AS col2 FROM tab0 AS cor0
----
-12
-6
-87

onlyif mysql # use DIV operator for integer division
query I rowsort label-4697
SELECT DISTINCT - col2 DIV col1 + - tab1.col2 + + col2 AS col1 FROM tab1
----
-2
-5
-7

skipif mysql # not compatible
query I rowsort label-4697
SELECT DISTINCT - col2 / col1 + - tab1.col2 + + col2 AS col1 FROM tab1
----
-2
-5
-7

query I rowsort
SELECT col1 * - col2 + 28 * col1 + col2 AS col2 FROM tab2
----
-132
144
58

query I rowsort
SELECT DISTINCT - col0 * + tab0.col0 + col0 AS col1 FROM tab0
----
-1190
-552
-7832

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + col2 col0 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT DISTINCT col0 * cor0.col0 - ( + 70 ) FROM tab1 AS cor0
----
-61
4026
6330

query I rowsort
SELECT DISTINCT - col1 * cor0.col1 + + 94 FROM tab2 cor0
----
-195
-3387
-867

query I rowsort
SELECT ALL + - col2 + col2 * col2 * col1 AS col2 FROM tab1 AS cor0
----
119712
32433
75762

query I rowsort
SELECT DISTINCT - + cor0.col0 - - col2 FROM tab1 AS cor0
----
-7
16
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 30 col0 FROM tab0 AS cor0
----
30
30
30

query I rowsort
SELECT DISTINCT col0 * + col0 + + col0 * + col0 FROM tab2 cor0
----
12168
12482
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-4707
SELECT + CAST( col2 AS SIGNED ) DIV col0 + col2 * col1 AS col2 FROM tab2
----
1534
646
840

skipif mysql # not compatible
query I rowsort label-4707
SELECT + CAST ( col2 AS INTEGER ) / col0 + col2 * col1 AS col2 FROM tab2
----
1534
646
840

query I rowsort
SELECT - + 65 AS col0 FROM tab0, tab0 AS cor0, tab2, tab2 AS cor1
----
81 values hashing to 62fe7b8eb6ce8c547418f08ea8ada1fc

query I rowsort
SELECT - col2 * col1 - ( + col0 ) FROM tab2
----
-1612
-725
-844

query I rowsort
SELECT 6 + col0 FROM tab0
----
30
41
95

query I rowsort
SELECT ALL - + 2 * - col0 AS col2 FROM tab2 AS cor0
----
14
156
158

query I rowsort
SELECT - 62 * col0 FROM tab2 AS cor0
----
-434
-4836
-4898

query I rowsort
SELECT + - 84 AS col0 FROM tab0, tab1 AS cor0, tab1 AS cor1, tab2, tab1 AS cor2
----
243 values hashing to 6793fb74ae172572ffea747b0673b07a

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 col0 FROM tab1, tab1 AS cor0
----
3
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - col2 ) * col2 col2 FROM tab1 AS cor0
----
-2916
-3249
-9216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + 8 col2 FROM tab2
----
136
248
472

query I rowsort
SELECT 71 AS col1 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 95a6ff35b7b8f00868fb58bcaa32d0c2

query I rowsort
SELECT DISTINCT + col2 * 98 FROM tab0 cor0
----
3234
8036
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * cor0.col2 col0 FROM tab1 AS cor0
----
1248
1404
570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 15 col1 FROM tab0, tab1 AS cor0
----
15

query I rowsort
SELECT + col1 * + ( col1 ) FROM tab1 cor0
----
100
169
676

query I rowsort
SELECT ALL col0 + - ( col1 ) * + col1 FROM tab1 AS cor0
----
-36
-673
-89

query I rowsort
SELECT DISTINCT - 63 AS col2 FROM tab1, tab2 cor0
----
-63

query I rowsort
SELECT + - 79 AS col1 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to c9cc9510604e093bd158ca33928acaed

query I rowsort
SELECT + col1 + - col2 * - col0 FROM tab1
----
188
3658
7693

query I rowsort
SELECT 81 + col0 + tab0.col2 FROM tab0
----
117
138
252

query I rowsort
SELECT ALL - 46 * + tab1.col2 * - col0 + + col1 FROM tab1
----
167818
353293
7478

query I rowsort
SELECT - 56 * 83 AS col1 FROM tab0
----
-4648
-4648
-4648

query I rowsort
SELECT DISTINCT - 84 + 69 * - col1 FROM tab0 AS cor0
----
-6018
-6363
-6777

query I rowsort
SELECT ALL ( + col2 ) * - col0 AS col2 FROM tab2 cor0
----
-189
-2028
-3002

query I rowsort
SELECT DISTINCT + cor1.col0 AS col1 FROM tab1, tab2 cor0, tab2 cor1
----
7
78
79

query I rowsort
SELECT ALL + cor0.col0 + - col1 + + col1 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT ALL - col1 * cor0.col1 AS col1 FROM tab2 cor0
----
-289
-3481
-961

query I rowsort
SELECT - - cor0.col0 * + cor0.col0 + + col1 AS col1 FROM tab2 AS cor0
----
6143
6258
80

query I rowsort
SELECT ALL + cor0.col2 * col1 + ( + 7 ) AS col1 FROM tab1 AS cor0
----
1255
1411
577

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4736
SELECT DISTINCT CAST( NULL AS SIGNED ) + + ( + col2 * col0 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4736
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + ( + col2 * col0 ) FROM tab1
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4737
SELECT ALL - CAST( NULL AS SIGNED ) + - col0 * col0 col0 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4737
SELECT ALL - CAST ( NULL AS INTEGER ) + - col0 * col0 col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4738
SELECT 71 + - tab0.col2 DIV col2 FROM tab0
----
70
70
70

skipif mysql # not compatible
query I rowsort label-4738
SELECT 71 + - tab0.col2 / col2 FROM tab0
----
70
70
70

onlyif mysql # use DIV operator for integer division
query I rowsort label-4739
SELECT + 26 DIV + col2 AS col0 FROM tab0 AS cor0
----
0
0
26

skipif mysql # not compatible
query I rowsort label-4739
SELECT + 26 / + col2 AS col0 FROM tab0 AS cor0
----
0
0
26

query I rowsort
SELECT ALL 72 * + tab0.col0 + - col0 * + col2 FROM tab0
----
-890
2485
936

query I rowsort
SELECT + - ( - 46 ) FROM tab0 AS cor0
----
46
46
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col2 col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

query I rowsort
SELECT col0 + col0 * cor0.col2 AS col2 FROM tab0 AS cor0
----
70
7387
816

query I rowsort
SELECT - + 23 + - 3 FROM tab2 AS cor0
----
-26
-26
-26

query I rowsort
SELECT DISTINCT col0 * col1 + - cor0.col2 AS col0 FROM tab0 AS cor0
----
2031
3394
8017

query I rowsort
SELECT ALL + 70 * col2 FROM tab0 AS cor0
----
2310
5740
70

query I rowsort
SELECT 13 + 66 * + col0 FROM tab1
----
211
4237
5293

query I rowsort
SELECT 71 * + col1 * + col2 FROM tab1
----
40470
88608
99684

query I rowsort
SELECT ALL col2 + col2 * 8 FROM tab1
----
486
513
864

onlyif mysql # use DIV operator for integer division
query I rowsort label-4750
SELECT - - cor0.col0 + + ( col2 + + col2 ) DIV + cor0.col0 FROM tab1 cor0
----
39
65
82

skipif mysql # not compatible
query I rowsort label-4750
SELECT - - cor0.col0 + + ( col2 + + col2 ) / + cor0.col0 FROM tab1 cor0
----
39
65
82

query I rowsort
SELECT 7 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 4e72e9e33dacac757f48d0ce46094607

query I rowsort
SELECT 75 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea

query I rowsort
SELECT - col1 * - ( cor0.col0 ) FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT ALL col2 * cor0.col1 + cor0.col2 * + col0 FROM tab0 AS cor0
----
132
14760
3630

query I rowsort
SELECT cor0.col0 + 42 AS col2 FROM tab2 AS cor0
----
120
121
49

onlyif mysql # use DIV operator for integer division
query I rowsort label-4756
SELECT DISTINCT col2 + + col0 DIV col2 FROM tab0 AS cor0
----
33
36
83

skipif mysql # not compatible
query I rowsort label-4756
SELECT DISTINCT col2 + + col0 / col2 FROM tab0 AS cor0
----
33
36
83

query I rowsort
SELECT ALL - + cor1.col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b234798d4706314ba14eaad539d0aa88

query I rowsort
SELECT ALL ( 44 ) FROM tab1, tab0 AS cor0
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d

query I rowsort
SELECT - col2 * - cor0.col0 + col1 * col2 + + col0 AS col2 FROM tab2 AS cor0
----
1033
3640
3727

query I rowsort
SELECT + col1 + 0 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT + + col2 + ( - 30 ) + col0 * - col0 FROM tab2 AS cor0
----
-52
-6088
-6233

query I rowsort
SELECT + col0 * 75 AS col2 FROM tab1
----
225
4800
6000

query I rowsort
SELECT ALL - tab0.col0 + 89 AS col2 FROM tab0
----
0
54
65

query I rowsort
SELECT ALL col2 + + ( + col1 ) * col0 FROM tab0
----
2097
3396
8181

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4765
SELECT - col0 * CAST( NULL AS SIGNED ) + col2 - col0 * - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4765
SELECT - col0 * CAST ( NULL AS INTEGER ) + col2 - col0 * - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 * + 60 FROM tab0 AS cor0
----
-5160
-5460
-5820

query I rowsort
SELECT - 78 FROM tab2, tab1 cor0
----
9 values hashing to b6e4cc21599216686f0cf45b85668b2c

query I rowsort
SELECT col0 + + col2 - col0 * col0 FROM tab0 AS cor0
----
-1189
-519
-7750

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4769
SELECT - + ( - col0 ) + cor0.col1 * - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4769
SELECT - + ( - col0 ) + cor0.col1 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 + 79 AS col0 FROM tab2 AS cor0
----
105
106
117

query I rowsort
SELECT + + col2 + + 48 + col0 * + 46 * ( + col1 ) AS col1 FROM tab2 AS cor0
----
10057
211766
61864

query I rowsort
SELECT DISTINCT + 10 + col1 + col2 AS col2 FROM tab2 AS cor0
----
65
68
95

query I rowsort
SELECT - cor0.col0 * - col2 + + col1 AS col0 FROM tab1 AS cor0
----
188
3658
7693

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4774
SELECT ALL CAST( NULL AS SIGNED ) - - col0 * col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4774
SELECT ALL CAST ( NULL AS INTEGER ) - - col0 * col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col2 + - 14 * cor0.col0 FROM tab0 AS cor0
----
-1164
-303
-489

query I rowsort
SELECT DISTINCT 11 * - col1 * col1 FROM tab2 AS cor0
----
-10571
-3179
-38291

query I rowsort
SELECT - 8 + - 87 + col1 AS col0 FROM tab2 AS cor0
----
-36
-64
-78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 6 col0 FROM tab0 AS cor0
----
6
6
6

query I rowsort
SELECT 45 + - col2 * 48 + col2 FROM tab0 AS cor0
----
-1506
-2
-3809

query I rowsort
SELECT + 56 * cor0.col1 + + col0 FROM tab2 AS cor0
----
1031
1743
3382

query I rowsort
SELECT + ( - col1 ) + + ( 32 ) * cor0.col0 AS col1 FROM tab0 AS cor0
----
1023
2757
682

query I rowsort
SELECT ALL + 67 * cor0.col2 AS col0 FROM tab2 AS cor0
----
1742
1809
2546

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 25 + + col0 col0 FROM tab0 AS cor0
----
-1
10
64

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4784
SELECT col0 + + CAST( NULL AS DECIMAL ) * + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4784
SELECT col0 + + CAST ( NULL AS REAL ) * + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 * + 77 AS col2 FROM tab0 cor0
----
1848
2695
6853

onlyif mysql # use DIV operator for integer division
query I rowsort label-4786
SELECT - + col1 + col2 DIV col0 FROM tab1 cor0
----
-10
-12
-8

skipif mysql # not compatible
query I rowsort label-4786
SELECT - + col1 + col2 / col0 FROM tab1 cor0
----
-10
-12
-8

query I rowsort
SELECT ALL - col0 + - 3 FROM tab1 AS cor0
----
-6
-67
-83

query I rowsort
SELECT ALL col0 * + col0 * - ( + tab0.col2 ) AS col1 FROM tab0
----
-1225
-19008
-649522

query I rowsort
SELECT ALL - 0 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

query I rowsort
SELECT DISTINCT 33 * + col2 AS col1 FROM tab1
----
1782
1881
3168

query I rowsort
SELECT ALL + 14 FROM tab2, tab0, tab0 cor0
----
27 values hashing to 409c1790b702540dd9dc067c1965b7c0

query I rowsort
SELECT col2 * tab2.col0 + + col2 FROM tab2
----
2054
216
3040

query I rowsort
SELECT 75 * col0 AS col0 FROM tab2 cor0
----
525
5850
5925

query I rowsort
SELECT DISTINCT col2 + col2 * col1 * + 66 AS col2 FROM tab2 AS cor0
----
101270
42674
55269

onlyif mysql # use DIV operator for integer division
query I rowsort label-4795
SELECT ALL col0 DIV cor0.col1 col1 FROM tab2 AS cor0
----
0
1
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4795
SELECT ALL col0 / cor0.col1 col1 FROM tab2 AS cor0
----
0
1
4

query I rowsort
SELECT DISTINCT - col0 * - col2 - - col2 FROM tab1 AS cor0
----
216
3705
7776

query I rowsort
SELECT + + col1 * + 7 FROM tab0 cor0
----
602
637
679

onlyif mysql # use DIV operator for integer division
query I rowsort label-4798
SELECT ALL - - col1 DIV - ( ( col0 ) ) AS col1 FROM tab2 AS cor0
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-4798
SELECT ALL - - col1 / - ( ( col0 ) ) AS col1 FROM tab2 AS cor0
----
-4
0
0

query I rowsort
SELECT DISTINCT col1 + col2 * 91 FROM tab2 cor0
----
2425
2488
3475

query I rowsort
SELECT ALL - - cor0.col1 * col2 + col0 FROM tab0 AS cor0
----
132
2862
7551

query I rowsort
SELECT DISTINCT col2 * ( 88 ) FROM tab2 AS cor0
----
2288
2376
3344

query I rowsort
SELECT - 74 + + col1 FROM tab1 AS cor0
----
-48
-61
-64

query I rowsort
SELECT DISTINCT ( + 93 ) FROM tab0 AS cor0
----
93

query I rowsort
SELECT ALL + ( cor0.col2 ) * + col1 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT ALL 99 * + cor0.col1 FROM tab0 AS cor0
----
8514
9009
9603

query I rowsort
SELECT col2 * col2 * - col0 + ( col2 * col2 ) FROM tab0 AS cor0
----
-25047
-34
-591712

query I rowsort
SELECT + + ( - col0 ) + col1 AS col0 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT DISTINCT - + 79 + cor0.col1 FROM tab1 AS cor0
----
-53
-66
-69

onlyif mysql # use DIV operator for integer division
query I rowsort label-4809
SELECT + col2 * 71 DIV col0 FROM tab1 AS cor0
----
1278
63
85

skipif mysql # not compatible
query I rowsort label-4809
SELECT + col2 * 71 / col0 FROM tab1 AS cor0
----
1278
63
85

query I rowsort
SELECT col1 * + ( - col0 ) + ( + 39 ) AS col0 FROM tab1 AS cor0
----
-1001
-39
-601

query I rowsort
SELECT DISTINCT - cor0.col2 * + col0 AS col1 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT ALL - col2 * - 98 AS col2 FROM tab2 AS cor0
----
2548
2646
3724

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4813
SELECT ALL + CAST( NULL AS SIGNED ) * - col0 + + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4813
SELECT ALL + CAST ( NULL AS INTEGER ) * - col0 + + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + 64 * - col0 + + col2 FROM tab2 AS cor0
----
-421
-4966
-5018

query I rowsort
SELECT DISTINCT + 79 * + col1 AS col0 FROM tab1 AS cor0
----
1027
2054
790

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4816
SELECT ALL CAST( + col0 AS SIGNED ) * col2 + + col2 FROM tab1 AS cor0
----
216
3705
7776

skipif mysql # not compatible
query I rowsort label-4816
SELECT ALL CAST ( + col0 AS INTEGER ) * col2 + + col2 FROM tab1 AS cor0
----
216
3705
7776

query I rowsort
SELECT 7 + + 90 FROM tab1 AS cor0
----
97
97
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 82 + + col0 col2 FROM tab0 AS cor0
----
-47
-58
7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4819
SELECT ALL + col1 + + col1 * col1 / CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4819
SELECT ALL + col1 + + col1 * col1 / CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4820
SELECT ALL + + ( + col1 ) * CAST( 47 AS SIGNED ) + - col2 AS col2 FROM tab1 AS cor0
----
1168
413
515

skipif mysql # not compatible
query I rowsort label-4820
SELECT ALL + + ( + col1 ) * CAST ( 47 AS INTEGER ) + - col2 AS col2 FROM tab1 AS cor0
----
1168
413
515

query I rowsort
SELECT DISTINCT - col1 * tab0.col0 + + col1 * + col1 + - 93 FROM tab0
----
5239
5921
89

query I rowsort
SELECT ALL - 80 * + col2 FROM tab2 AS cor0
----
-2080
-2160
-3040

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4823
SELECT + - col1 + + col1 * + CAST( 45 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
1144
440
572

skipif mysql # not compatible
query I rowsort label-4823
SELECT + - col1 + + col1 * + CAST ( 45 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
1144
440
572

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 91 * - col1 col1 FROM tab0 AS cor0
----
7826
8281
8827

query I rowsort
SELECT DISTINCT + + 77 + + col0 FROM tab2 AS cor0
----
155
156
84

query I rowsort
SELECT + - cor0.col2 * col1 * col0 AS col1 FROM tab1 AS cor0
----
-36480
-4212
-99840

query I rowsort
SELECT + ( cor0.col1 ) * 77 AS col2 FROM tab0 AS cor0
----
6622
7007
7469

query I rowsort
SELECT DISTINCT 24 FROM tab0, tab1, tab0 AS cor0
----
24

onlyif mysql # use DIV operator for integer division
query I rowsort label-4829
SELECT tab0.col0 * col1 * col0 + + col0 DIV - tab0.col0 AS col0 FROM tab0
----
118824
49535
720810

skipif mysql # not compatible
query I rowsort label-4829
SELECT tab0.col0 * col1 * col0 + + col0 / - tab0.col0 AS col0 FROM tab0
----
118824
49535
720810

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 93 + col2 col0 FROM tab2 AS cor0
----
119
120
131

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 32 col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ef8f93119983b962f4c81381ebf4b1e6

query I rowsort
SELECT DISTINCT + - 84 FROM tab0, tab1 AS cor0, tab0 AS cor1, tab2, tab0 AS cor2
----
-84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + cor0.col2 col0 FROM tab0 cor0
----
1
33
82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4834
SELECT ALL - - 98 - - col1 * - CAST( col0 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-542
-942
20

skipif mysql # not compatible
query I rowsort label-4834
SELECT ALL - - 98 - - col1 * - CAST ( col0 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-542
-942
20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + cor0.col1 col2 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT ALL + col1 + 47 FROM tab0
----
133
138
144

skipif mysql # not compatible
query I rowsort
SELECT + - CAST ( 90 AS REAL ) * - cor1.col2 FROM tab1 AS cor0 CROSS JOIN tab1, tab1 AS cor1
----
27 values hashing to 16c0d3b099a20fa915204b12395cc8eb

query I rowsort
SELECT col0 * - 84 AS col2 FROM tab2
----
-588
-6552
-6636

query I rowsort
SELECT ( col1 ) + + col1 FROM tab1 AS cor0
----
20
26
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - 40 col2 FROM tab2
----
-280
-3120
-3160

query I rowsort
SELECT col0 + - col1 + - tab2.col1 * - col0 * 25 FROM tab2
----
115069
33637
5401

query I rowsort
SELECT + 62 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0

query I rowsort
SELECT ( 86 + - tab0.col1 ) * + 39 FROM tab0
----
-195
-429
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4844
SELECT ALL 34 DIV col2 - col0 * - 31 FROM tab0 AS cor0
----
1119
2759
745

skipif mysql # not compatible
query I rowsort label-4844
SELECT ALL 34 / col2 - col0 * - 31 FROM tab0 AS cor0
----
1119
2759
745

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4845
SELECT + CAST( NULL AS DECIMAL ) * + 1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4845
SELECT + CAST ( NULL AS REAL ) * + 1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 - + col1 col2 FROM tab1 AS cor0
----
-20
-26
-52

query I rowsort
SELECT + 92 * col1 AS col2 FROM tab1 AS cor0
----
1196
2392
920

query I rowsort
SELECT - + col1 * + col2 + + col0 * col0 + col1 AS col1 FROM tab2 AS cor0
----
-757
4609
5612

query I rowsort
SELECT col0 * col0 + - col1 FROM tab1 cor0
----
-17
4086
6387

onlyif mysql # use DIV operator for integer division
query I rowsort label-4850
SELECT - col2 DIV CAST( col0 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-1
-18
0

skipif mysql # not compatible
query I rowsort label-4850
SELECT - col2 / CAST ( col0 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-1
-18
0

query I rowsort
SELECT - 24 + - cor0.col2 - 59 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 7f1c431c97964eeb7c9639f91081b1c8

query I rowsort
SELECT DISTINCT + - ( + 95 ) FROM tab2 AS cor0
----
-95

query I rowsort
SELECT DISTINCT col2 * - ( col0 + col1 ) AS col2 FROM tab1 AS cor0
----
-1566
-4218
-8928

query I rowsort
SELECT - + ( - col2 ) * - col2 FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT - col1 * - 80 AS col0 FROM tab0 AS cor0
----
6880
7280
7760

query I rowsort
SELECT DISTINCT - col2 * - col2 + col2 AS col0 FROM tab2 AS cor0
----
1482
702
756

query I rowsort
SELECT ALL - 11 * - col2 AS col2 FROM tab0 cor0
----
11
363
902

onlyif mysql # use DIV operator for integer division
query I rowsort label-4858
SELECT ( - col2 ) DIV - col0 + col2 DIV - col0 - - cor0.col2 FROM tab1 cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-4858
SELECT ( - col2 ) / - col0 + col2 / - col0 - - cor0.col2 FROM tab1 cor0
----
54
57
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-4859
SELECT col2 + col1 DIV col0 - cor0.col0 AS col2 FROM tab2 AS cor0
----
-41
-52
24

skipif mysql # not compatible
query I rowsort label-4859
SELECT col2 + col1 / col0 - cor0.col0 AS col2 FROM tab2 AS cor0
----
-41
-52
24

query I rowsort
SELECT DISTINCT col1 + col0 * tab0.col0 FROM tab0
----
1322
662
8012

query I rowsort
SELECT ALL col1 + col0 FROM tab0 WHERE NOT NULL > NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-4862
SELECT ALL col1 + - col1 DIV col1 AS col0 FROM tab2
----
16
30
58

skipif mysql # not compatible
query I rowsort label-4862
SELECT ALL col1 + - col1 / col1 AS col0 FROM tab2
----
16
30
58

query I rowsort
SELECT DISTINCT - 42 * 85 AS col2 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
-3570

onlyif mysql # use DIV operator for integer division
query I rowsort label-4864
SELECT DISTINCT col2 DIV + 42 AS col0 FROM tab0 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-4864
SELECT DISTINCT col2 / + 42 AS col0 FROM tab0 AS cor0
----
0
1

query I rowsort
SELECT + - col1 * - 67 + + col2 FROM tab2 AS cor0
----
1177
2104
3979

query I rowsort
SELECT 12 + col1 * + col1 AS col0 FROM tab1
----
112
181
688

onlyif mysql # use DIV operator for integer division
query I rowsort label-4867
SELECT - tab1.col0 DIV col2 col1 FROM tab1
----
-1
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4867
SELECT - tab1.col0 / col2 col1 FROM tab1
----
-1
0
0

query I rowsort
SELECT 33 * - col1 FROM tab2
----
-1023
-1947
-561

query I rowsort
SELECT ALL - + cor0.col2 + col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + col1 * ( - col1 ) + col1 FROM tab1 AS cor0
----
-156
-650
-90

query I rowsort
SELECT ALL 88 AS col2 FROM tab1, tab2, tab1 AS cor0, tab1 AS cor1
----
81 values hashing to 663c36cf4bc51cf4ea19f7275ac6d30e

query I rowsort
SELECT - col2 * - 33 AS col2 FROM tab1 AS cor0
----
1782
1881
3168

query I rowsort
SELECT col1 * - 71 + col2 AS col1 FROM tab2
----
-1169
-2174
-4163

onlyif mysql # use DIV operator for integer division
query I rowsort label-4874
SELECT ALL + - col1 + - col1 DIV 17 FROM tab1 cor0
----
-10
-13
-27

skipif mysql # not compatible
query I rowsort label-4874
SELECT ALL + - col1 + - col1 / 17 FROM tab1 cor0
----
-10
-13
-27

query I rowsort
SELECT ALL col0 + col0 * + 18 AS col0 FROM tab2 AS cor0
----
133
1482
1501

query I rowsort
SELECT ALL - ( - 57 ) AS col0 FROM tab2
----
57
57
57

skipif mysql # not compatible
query I rowsort
SELECT CAST ( + col2 AS REAL ) * + col1 + - 86 FROM tab2
----
1448
560
751

query I rowsort
SELECT - 74 - - 19 AS col0 FROM tab2
----
-55
-55
-55

query I rowsort
SELECT tab0.col1 AS col2 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4880
SELECT ALL + CAST( + 26 AS SIGNED ) * - cor0.col1 + cor1.col2 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 99cdf3fed403d947499dc85aaa270bcc

skipif mysql # not compatible
query I rowsort label-4880
SELECT ALL + CAST ( + 26 AS INTEGER ) * - cor0.col1 + cor1.col2 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 99cdf3fed403d947499dc85aaa270bcc

query I rowsort
SELECT - 22 + cor0.col2 AS col1 FROM tab1 AS cor0
----
32
35
74

onlyif mysql # use DIV operator for integer division
query I rowsort label-4882
SELECT DISTINCT col0 DIV + col0 AS col2 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4882
SELECT DISTINCT col0 / + col0 AS col2 FROM tab2 AS cor0
----
1

query I rowsort
SELECT + col0 + col2 * + 38 FROM tab1 AS cor0
----
2055
2230
3728

query I rowsort
SELECT - - 51 * - col2 + - col1 FROM tab0 cor0
----
-148
-1769
-4273

onlyif mysql # use DIV operator for integer division
query I rowsort label-4885
SELECT ALL - 42 DIV - col1 col1 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4885
SELECT ALL - 42 / - col1 col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT 78 * - 76 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to c265ea811a40cb6a24a0a4f17d65c8b8

query I rowsort
SELECT - col0 * 52 + col1 FROM tab2 AS cor0
----
-333
-3997
-4091

query I rowsort
SELECT col0 * - col0 * + col1 AS col0 FROM tab2
----
-106097
-1519
-358956

query I rowsort
SELECT ALL + 80 AS col1 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 6dd5038be71dffa82f5ceba787caab91

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab2 AS cor2
----
3645 values hashing to 7e572cf6967c395d92dce41dcb35c4db

query I rowsort
SELECT DISTINCT 65 + - col0 AS col0 FROM tab0 AS cor0
----
-24
30
41

query I rowsort
SELECT ALL ( - ( - col1 ) ) * 7 - ( - col2 + + ( 45 ) ) AS col2 FROM tab1 AS cor0
----
142
191
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 93 col1 FROM tab2 AS cor0
----
93
93
93

query I rowsort
SELECT ALL + 43 * + col0 FROM tab0 AS cor0
----
1032
1505
3827

onlyif mysql # use DIV operator for integer division
query I rowsort label-4895
SELECT DISTINCT - col0 DIV 14 AS col1 FROM tab2 AS cor0
----
-5
0

skipif mysql # not compatible
query I rowsort label-4895
SELECT DISTINCT - col0 / 14 AS col1 FROM tab2 AS cor0
----
-5
0

query I rowsort
SELECT DISTINCT - ( 15 + col1 * col0 ) AS col2 FROM tab0
----
-2079
-3410
-8114

query I rowsort
SELECT + + col0 * 21 + col1 FROM tab2 AS cor0
----
1676
1697
178

query I rowsort
SELECT DISTINCT + ( 85 ) * + col1 AS col0 FROM tab2 cor0
----
1445
2635
5015

query I rowsort
SELECT ALL + ( col2 ) * + col1 AS col2 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT DISTINCT + - ( - col0 ) + - col2 AS col0 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT ALL + + 9 + - 54 FROM tab2 AS cor0
----
-45
-45
-45

query I rowsort
SELECT col2 * 50 * col2 AS col0 FROM tab0 AS cor0
----
336200
50
54450

onlyif mysql # use DIV operator for integer division
query I rowsort label-4903
SELECT ALL - 80 DIV 13 - col2 AS col0 FROM tab0 AS cor0
----
-39
-7
-88

skipif mysql # not compatible
query I rowsort label-4903
SELECT ALL - 80 / 13 - col2 AS col0 FROM tab0 AS cor0
----
-39
-7
-88

query I rowsort
SELECT DISTINCT + - 53 * cor0.col0 AS col2 FROM tab0 AS cor0
----
-1272
-1855
-4717

query I rowsort
SELECT DISTINCT - col2 + + 21 * col2 FROM tab2 cor0
----
520
540
760

query I rowsort
SELECT ALL + 98 AS col0 FROM tab2 AS cor0
----
98
98
98

query I rowsort
SELECT DISTINCT + + ( 87 ) AS col2 FROM tab2 AS cor0
----
87

query I rowsort
SELECT 38 * col1 * tab0.col2 + + 54 * tab0.col1 + + col2 AS col1 FROM tab0
----
112521
288552
8925

query I rowsort
SELECT ALL 17 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 43298e43365fccb5146ea32003753c92

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4910
SELECT ALL col1 * - cor0.col1 + CAST( + col1 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-7310
-8190
-9312

skipif mysql # not compatible
query I rowsort label-4910
SELECT ALL col1 * - cor0.col1 + CAST ( + col1 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-7310
-8190
-9312

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4911
SELECT col2 * col2 + - CAST( + col2 AS SIGNED ) FROM tab1 AS cor0
----
2862
3192
9120

skipif mysql # not compatible
query I rowsort label-4911
SELECT col2 * col2 + - CAST ( + col2 AS INTEGER ) FROM tab1 AS cor0
----
2862
3192
9120

query I rowsort
SELECT DISTINCT 10 * - col1 + - col2 FROM tab2 AS cor0
----
-208
-337
-616

query I rowsort
SELECT + col2 * - col0 + - 58 - 38 FROM tab1 AS cor0
----
-258
-3744
-7776

onlyif mysql # use DIV operator for integer division
query I rowsort label-4914
SELECT DISTINCT + col2 DIV - col2 + cor0.col1 * + col2 * - col0 FROM tab1 cor0
----
-36481
-4213
-99841

skipif mysql # not compatible
query I rowsort label-4914
SELECT DISTINCT + col2 / - col2 + cor0.col1 * + col2 * - col0 FROM tab1 cor0
----
-36481
-4213
-99841

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 + - col0 * - col1 col1 FROM tab0 AS cor0
----
1978
3298
8008

query I rowsort
SELECT col0 * col1 + + col1 * col1 * - col2 FROM tab1 AS cor0
----
-15184
-36426
-5060

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + ( col0 ) * col2 col1 FROM tab0 AS cor0
----
132
7389
878

query I rowsort
SELECT ALL col0 + + col2 + + 30 AS col2 FROM tab1
----
151
206
87

query I rowsort
SELECT ALL - col0 * + cor0.col0 AS col0 FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT - col0 * + col2 + col2 FROM tab2 AS cor0
----
-162
-2002
-2964

query I rowsort
SELECT + - col2 + 58 * col2 - col2 FROM tab0 AS cor0
----
1848
4592
56

query I rowsort
SELECT DISTINCT cor0.col1 + + col2 AS col1 FROM tab1 cor0
----
109
67
80

query I rowsort
SELECT DISTINCT + col2 + 16 * - col1 * + cor0.col1 AS col2 FROM tab0 AS cor0
----
-118303
-132414
-150543

query I rowsort
SELECT DISTINCT - - col0 + - 48 FROM tab1 AS cor0
----
-45
16
32

query I rowsort
SELECT ALL 63 * + tab0.col1 + + 5 * + tab0.col1 AS col2 FROM tab0, tab0 cor0, tab0 AS cor1
----
27 values hashing to ef2f3ebc25d51d7b6f51af2f4eebf82f

onlyif mysql # use DIV operator for integer division
query I rowsort label-4926
SELECT + col2 DIV - col2 - + col1 FROM tab0 cor0
----
-87
-92
-98

skipif mysql # not compatible
query I rowsort label-4926
SELECT + col2 / - col2 - + col1 FROM tab0 cor0
----
-87
-92
-98

query I rowsort
SELECT ALL - col2 * - col2 + - col2 AS col1 FROM tab2 AS cor0
----
1406
650
702

query I rowsort
SELECT col1 + ( col1 ) * col0 AS col2 FROM tab2 cor0
----
1360
248
4661

query I rowsort
SELECT + col1 + 99 * + 64 AS col2 FROM tab2 AS cor0
----
6353
6367
6395

query I rowsort
SELECT - - ( col1 ) + + col0 * + col0 AS col1 FROM tab1 AS cor0
----
35
4106
6413

query I rowsort
SELECT + col2 * - 56 AS col0 FROM tab0
----
-1848
-4592
-56

query I rowsort
SELECT + cor0.col2 * ( + col0 ) + + ( cor0.col2 * + col1 ) AS col0 FROM tab1 cor0
----
1566
4218
8928

query I rowsort
SELECT 45 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050

query I rowsort
SELECT DISTINCT + col1 * + ( col1 ) + - col1 + + ( 7 ) FROM tab0
----
7317
8197
9319

query I rowsort
SELECT ALL col1 + 89 + - col2 FROM tab0
----
142
185
98

query I rowsort
SELECT + 40 + col1 AS col0 FROM tab1 AS cor0
----
50
53
66

query I rowsort
SELECT ALL - col2 + col0 * col2 FROM tab0 AS cor0
----
34
7216
759

query I rowsort
SELECT col1 * - col1 + - 22 AS col1 FROM tab0 AS cor0
----
-7418
-8303
-9431

query I rowsort
SELECT ALL col1 + tab1.col2 * + col1 * - col1 FROM tab1
----
-16211
-36478
-5690

query I rowsort
SELECT ALL - tab0.col1 + - col1 * ( 49 ) AS col2 FROM tab0
----
-4300
-4550
-4850

query I rowsort
SELECT DISTINCT tab2.col2 + col1 + + 26 FROM tab2
----
111
81
84

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4942
SELECT 37 + + col2 * CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4942
SELECT 37 + + col2 * CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 90 - + col2 * col0 AS col2 FROM tab1 AS cor0
----
-252
-3738
-7770

query I rowsort
SELECT DISTINCT - col2 * col2 + - ( 88 ) FROM tab2 AS cor0
----
-1532
-764
-817

query I rowsort
SELECT - 56 * - col2 AS col2 FROM tab2
----
1456
1512
2128

onlyif mysql # use DIV operator for integer division
query I rowsort label-4946
SELECT - col2 DIV 2 + + col0 FROM tab2 AS cor0
----
-6
60
65

skipif mysql # not compatible
query I rowsort label-4946
SELECT - col2 / 2 + + col0 FROM tab2 AS cor0
----
-6
60
65

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4947
SELECT - + CAST( + ( + col1 ) AS SIGNED ) + col0 + - 94 * col2 AS col0 FROM tab0 AS cor0
----
-156
-3164
-7710

skipif mysql # not compatible
query I rowsort label-4947
SELECT - + CAST ( + ( + col1 ) AS INTEGER ) + col0 + - 94 * col2 AS col0 FROM tab0 AS cor0
----
-156
-3164
-7710

skipif mysql # not compatible
query I rowsort
SELECT + col1 / - col0 + + col2 + + CAST ( 23 + col0 AS REAL ) FROM tab2 AS cor0
----
127
140
53

query I rowsort
SELECT - - 85 * col1 AS col1 FROM tab1 AS cor0
----
1105
2210
850

query I rowsort
SELECT + 68 FROM tab1, tab2 AS cor0
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 8 col0 FROM tab2 AS cor0
----
8
8
8

query I rowsort
SELECT ALL 11 + + col2 FROM tab2
----
37
38
49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col1 + col2 col2 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT - + 27 + - 40 FROM tab0, tab1 AS cor0
----
9 values hashing to fbe03b15d6b951410b38f7e98895006f

query I rowsort
SELECT cor0.col1 * - col0 + - 29 + col1 * - cor0.col0 AS col2 FROM tab2 AS cor0
----
-2715
-463
-9233

query I rowsort
SELECT ALL ( 26 ) AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4957
SELECT + CAST( cor0.col0 AS SIGNED ) FROM tab2, tab0, tab0 AS cor0, tab1
----
81 values hashing to 2304fcc140e955eb2d1ee28ab1eea994

skipif mysql # not compatible
query I rowsort label-4957
SELECT + CAST ( cor0.col0 AS INTEGER ) FROM tab2, tab0, tab0 AS cor0, tab1
----
81 values hashing to 2304fcc140e955eb2d1ee28ab1eea994

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4958
SELECT DISTINCT - CAST( NULL AS SIGNED ) * 95 AS col2 FROM tab1, tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4958
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * 95 AS col2 FROM tab1, tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL col0 * 14 FROM tab1
----
1120
42
896

query I rowsort
SELECT + col2 * + ( col2 * + col1 ) FROM tab1 AS cor0
----
119808
32490
75816

query I rowsort
SELECT - col1 * ( + col2 * - col0 ) AS col2 FROM tab0 cor0
----
3395
664118
68112

skipif mysql # not compatible
query I rowsort
SELECT CAST ( - col2 AS REAL ) * - col0 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT 48 * 30 FROM tab1 cor0
----
1440
1440
1440

query I rowsort
SELECT - - 38 + - col0 * + col1 AS col2 FROM tab1 AS cor0
----
-1002
-40
-602

query I rowsort
SELECT - 50 * cor0.col2 + cor0.col0 AS col0 FROM tab2 AS cor0
----
-1222
-1343
-1821

query I rowsort
SELECT + 25 - col0 AS col2 FROM tab2 AS cor0
----
-53
-54
18

query I rowsort
SELECT - 16 + + col1 + col2 FROM tab1 cor0
----
51
64
93

query I rowsort
SELECT - cor0.col2 * - cor0.col1 * col1 FROM tab0 AS cor0
----
244068
679042
9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-4969
SELECT + + col0 * cor0.col0 DIV - col1 FROM tab1 cor0
----
-409
-492
0

skipif mysql # not compatible
query I rowsort label-4969
SELECT + + col0 * cor0.col0 / - col1 FROM tab1 cor0
----
-409
-492
0

query I rowsort
SELECT ALL + 74 + + col0 AS col2 FROM tab2 AS cor0
----
152
153
81

query I rowsort
SELECT DISTINCT - 60 * 64 AS col2 FROM tab2
----
-3840

query I rowsort
SELECT - 42 * 59 AS col0 FROM tab1 AS cor0
----
-2478
-2478
-2478

query I rowsort
SELECT DISTINCT - 94 FROM tab1, tab2 AS cor0
----
-94

query I rowsort
SELECT + 25 + - cor0.col0 AS col1 FROM tab2 AS cor0
----
-53
-54
18

query I rowsort
SELECT ALL - 84 * - col2 + + col0 * + 76 FROM tab1 AS cor0
----
14144
4764
9652

query I rowsort
SELECT cor0.col1 * - ( - 60 ) FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 49795f709eee791841fcad382f5c652e

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4977
SELECT ALL + cor1.col2 * CAST( NULL AS SIGNED ) FROM tab0, tab1 cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-4977
SELECT ALL + cor1.col2 * CAST ( NULL AS INTEGER ) FROM tab0, tab1 cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT ALL - - 59 AS col1 FROM tab1 AS cor0
----
59
59
59

query I rowsort
SELECT DISTINCT - - ( col2 ) + - ( - col1 ) AS col2 FROM tab1 AS cor0
----
109
67
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-4980
SELECT + col0 DIV - 4 FROM tab1
----
-16
-20
0

skipif mysql # not compatible
query I rowsort label-4980
SELECT + col0 / - 4 FROM tab1
----
-16
-20
0

query I rowsort
SELECT ALL cor0.col0 * + tab2.col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 513658d2b0deb2a03e2701049cc4e166

query I rowsort
SELECT + col0 * col0 * col0 AS col0 FROM tab0
----
13824
42875
704969

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 58 col1 FROM tab1
----
58
58
58

onlyif mysql # use DIV operator for integer division
query I rowsort label-4984
SELECT - col1 DIV col0 - col0 AS col0 FROM tab0 AS cor0
----
-27
-37
-90

skipif mysql # not compatible
query I rowsort label-4984
SELECT - col1 / col0 - col0 AS col0 FROM tab0 AS cor0
----
-27
-37
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 78 * - col0 col2 FROM tab2 AS cor0
----
-546
-6084
-6162

onlyif mysql # use DIV operator for integer division
query I rowsort label-4986
SELECT + col2 DIV + col2 + col2 * 83 DIV - col2 + - col1 AS col0 FROM tab1 AS cor0
----
-108
-92
-95

skipif mysql # not compatible
query I rowsort label-4986
SELECT + col2 / + col2 + col2 * 83 / - col2 + - col1 AS col0 FROM tab1 AS cor0
----
-108
-92
-95

query I rowsort
SELECT - 74 - col2 AS col0 FROM tab1 cor0
----
-128
-131
-170

query I rowsort
SELECT DISTINCT - 79 * col0 FROM tab0 AS cor0
----
-1896
-2765
-7031

query I rowsort
SELECT col0 + + 41 * - col0 AS col0 FROM tab1
----
-120
-2560
-3200

query I rowsort
SELECT - ( - col1 ) + + col2 FROM tab0
----
119
173
98

query I rowsort
SELECT DISTINCT + - col1 + - col0 AS col1 FROM tab2 AS cor0
----
-137
-38
-96

query I rowsort
SELECT ALL + col1 * col2 + + col1 * cor0.col0 * + 26 FROM tab2 AS cor0
----
121186
35564
6479

query I rowsort
SELECT ALL col2 + + col2 * col0 * col2 AS col0 FROM tab0 AS cor0
----
26169
36
598518

query I rowsort
SELECT 3 * tab1.col1 * col1 FROM tab1
----
2028
300
507

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 73 * - col0 col1 FROM tab0
----
-1752
-2555
-6497

query I rowsort
SELECT cor0.col0 * + cor0.col1 + + col2 FROM tab1 AS cor0
----
1136
132
697

query I rowsort
SELECT DISTINCT + col1 * + ( col1 ) + col1 AS col2 FROM tab0 AS cor0
----
7482
8372
9506

query I rowsort
SELECT ALL col0 + col1 * - cor0.col1 FROM tab2 AS cor0
----
-210
-3403
-954

query I rowsort
SELECT DISTINCT + col2 * 15 + 5 * - col0 FROM tab2 cor0
----
0
175
370

query I rowsort
SELECT DISTINCT - - cor0.col1 + + 73 AS col2 FROM tab0 AS cor0
----
159
164
170

query I rowsort
SELECT DISTINCT - + col1 + ( - 54 ) AS col1 FROM tab0 AS cor0
----
-140
-145
-151

query I rowsort
SELECT ALL - 83 + + col0 + col2 AS col1 FROM tab2
----
-49
21
34

query I rowsort
SELECT cor0.col1 + 90 FROM tab0 AS cor0
----
176
181
187

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * col1 * ( ( col0 ) * - ( 30 ) ) col0 FROM tab1 AS cor0
----
-192000
-405600
-60840

query I rowsort
SELECT ALL col1 + - cor0.col1 * - 90 AS col2 FROM tab2 AS cor0
----
1547
2821
5369

query I rowsort
SELECT col0 * col1 * col2 + col1 * + col1 AS col0 FROM tab2 cor0
----
123133
51323
6820

onlyif mysql # use DIV operator for integer division
query I rowsort label-5007
SELECT DISTINCT col0 * col1 DIV - cor0.col0 + 5 - + col2 DIV - col1 AS col1 FROM tab1 AS cor0
----
-1
-19
0

skipif mysql # not compatible
query I rowsort label-5007
SELECT DISTINCT col0 * col1 / - cor0.col0 + 5 - + col2 / - col1 AS col1 FROM tab1 AS cor0
----
-1
-19
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5008
SELECT ALL - cor0.col0 DIV + cor0.col0 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5008
SELECT ALL - cor0.col0 / + cor0.col0 FROM tab0 AS cor0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 37 + col1 col1 FROM tab2 AS cor0
----
54
68
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 13 * + col1 col2 FROM tab0 AS cor0
----
1118
1183
1261

query I rowsort
SELECT DISTINCT - - 98 FROM tab2 AS cor0
----
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-5012
SELECT + col1 DIV - col1 + + ( col2 + col1 ) * 96 * - cor0.col2 AS col0 FROM tab1 AS cor0
----
-1004545
-366625
-414721

skipif mysql # not compatible
query I rowsort label-5012
SELECT + col1 / - col1 + + ( col2 + col1 ) * 96 * - cor0.col2 AS col0 FROM tab1 AS cor0
----
-1004545
-366625
-414721

query I rowsort
SELECT - ( + col0 ) * + cor0.col2 * col0 + col1 FROM tab1 AS cor0
----
-233462
-460
-614387

query I rowsort
SELECT col1 + - col2 * - col2 * - col2 FROM tab2 AS cor0
----
-17517
-19652
-54855

query I rowsort
SELECT DISTINCT 12 * col0 * + ( + col0 ) AS col2 FROM tab0
----
14700
6912
95052

query I rowsort
SELECT ALL - tab2.col0 FROM tab2, tab0, tab1 cor0
----
27 values hashing to c82df1de3cb666224690a83f3d790d79

query I rowsort
SELECT ( col1 ) + col1 FROM tab2
----
118
34
62

query I rowsort
SELECT ALL - col1 - - col0 * + col2 AS col1 FROM tab0 AS cor0
----
-62
706
7207

query I rowsort
SELECT - col2 * tab0.col0 + - 31 FROM tab0
----
-66
-7329
-823

query I rowsort
SELECT - col1 + tab0.col0 * - col0 AS col0 FROM tab0
----
-1322
-662
-8012

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5021
SELECT col2 + CAST( - col1 AS SIGNED ) AS col1 FROM tab1
----
28
47
83

skipif mysql # not compatible
query I rowsort label-5021
SELECT col2 + CAST ( - col1 AS INTEGER ) AS col1 FROM tab1
----
28
47
83

query I rowsort
SELECT ALL + 72 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49

onlyif mysql # use DIV operator for integer division
query I rowsort label-5023
SELECT + col0 DIV - col0 + col2 * col2 + + col0 AS col1 FROM tab2
----
1522
735
753

skipif mysql # not compatible
query I rowsort label-5023
SELECT + col0 / - col0 + col2 * col2 + + col0 AS col1 FROM tab2
----
1522
735
753

onlyif mysql # use DIV operator for integer division
query I rowsort label-5024
SELECT ALL col2 * 22 + - col2 DIV 60 AS col1 FROM tab1
----
1188
1254
2111

skipif mysql # not compatible
query I rowsort label-5024
SELECT ALL col2 * 22 + - col2 / 60 AS col1 FROM tab1
----
1188
1254
2111

query I rowsort
SELECT DISTINCT + 19 * - col0 - + col2 * 11 * - col0 FROM tab1 AS cor0
----
1725
38912
82960

query I rowsort
SELECT ALL - 48 * 75 AS col1 FROM tab1 AS cor0
----
-3600
-3600
-3600

onlyif mysql # use DIV operator for integer division
query I rowsort label-5027
SELECT ALL - cor0.col2 DIV - 71 + - col1 AS col0 FROM tab1 cor0
----
-10
-12
-26

skipif mysql # not compatible
query I rowsort label-5027
SELECT ALL - cor0.col2 / - 71 + - col1 AS col0 FROM tab1 cor0
----
-10
-12
-26

query I rowsort
SELECT DISTINCT + 91 * - cor0.col1 + col2 * + col1 + + col1 * - col1 FROM tab2 AS cor0
----
-1190
-2945
-7316

query I rowsort
SELECT ALL 83 AS col0 FROM tab1 AS cor0
----
83
83
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * cor0.col2 * - col0 col0 FROM tab0 AS cor0
----
-26136
-35
-598436

query I rowsort
SELECT ALL - 53 + col2 * - col0 FROM tab1 AS cor0
----
-215
-3701
-7733

query I rowsort
SELECT ALL - 26 + col0 * + col1 + col2 FROM tab1 AS cor0
----
106
1110
671

onlyif mysql # use DIV operator for integer division
query I rowsort label-5033
SELECT 86 + - cor0.col0 * col0 DIV + col1 AS col2 FROM tab2 AS cor0
----
-17
-281
85

skipif mysql # not compatible
query I rowsort label-5033
SELECT 86 + - cor0.col0 * col0 / + col1 AS col2 FROM tab2 AS cor0
----
-17
-281
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 16 + + col1 * cor0.col2 col2 FROM tab2 AS cor0
----
1550
662
853

query I rowsort
SELECT ALL + 39 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf

query I rowsort
SELECT + + 44 AS col0 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 0cc3e52e781e46962291c3060c6ae73b

query I rowsort
SELECT ALL - col0 * - ( - col0 ) FROM tab1
----
-4096
-6400
-9

query I rowsort
SELECT DISTINCT - 47 * col2 + + col2 + - col2 FROM tab2
----
-1222
-1269
-1786

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5039
SELECT ALL CAST( NULL AS SIGNED ) + + col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5039
SELECT ALL CAST ( NULL AS INTEGER ) + + col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col0 * + cor0.col1 * - col2 AS col1 FROM tab2 AS cor0
----
119652
51034
5859

query I rowsort
SELECT + ( 97 ) * cor0.col0 FROM tab2 cor0
----
679
7566
7663

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * col0 col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 92 col0 FROM tab2
----
92
92
92

onlyif mysql # use DIV operator for integer division
query I rowsort label-5044
SELECT + col2 - - col1 DIV - cor0.col1 AS col0 FROM tab0 AS cor0
----
0
32
81

skipif mysql # not compatible
query I rowsort label-5044
SELECT + col2 - - col1 / - cor0.col1 AS col0 FROM tab0 AS cor0
----
0
32
81

query I rowsort
SELECT + 12 * - cor0.col1 FROM tab2 cor0
----
-204
-372
-708

onlyif mysql # use DIV operator for integer division
query I rowsort label-5046
SELECT col1 DIV - col0 + col2 AS col2 FROM tab1 AS cor0
----
46
57
96

skipif mysql # not compatible
query I rowsort label-5046
SELECT col1 / - col0 + col2 AS col2 FROM tab1 AS cor0
----
46
57
96

query I rowsort
SELECT - 38 * + col1 - + col1 FROM tab0 AS cor0
----
-3354
-3549
-3783

query I rowsort
SELECT + - 84 * - col2 + ( - col2 ) AS col0 FROM tab1 AS cor0
----
4482
4731
7968

query I rowsort
SELECT - cor0.col0 + + col1 * + col1 FROM tab0 AS cor0
----
7372
8192
9374

query I rowsort
SELECT DISTINCT - col0 * col0 * cor0.col0 FROM tab2 AS cor0
----
-343
-474552
-493039

query I rowsort
SELECT - - col2 * col0 + cor0.col2 FROM tab2 AS cor0
----
2054
216
3040

onlyif mysql # use DIV operator for integer division
query I rowsort label-5052
SELECT + col2 DIV ( col1 ) + cor0.col2 * col2 FROM tab0 AS cor0
----
1
1089
6724

skipif mysql # not compatible
query I rowsort label-5052
SELECT + col2 / ( col1 ) + cor0.col2 * col2 FROM tab0 AS cor0
----
1
1089
6724

onlyif mysql # use DIV operator for integer division
query I rowsort label-5053
SELECT DISTINCT + col2 * 19 DIV col2 FROM tab0 cor0
----
19

skipif mysql # not compatible
query I rowsort label-5053
SELECT DISTINCT + col2 * 19 / col2 FROM tab0 cor0
----
19

onlyif mysql # use DIV operator for integer division
query I rowsort label-5054
SELECT - col0 DIV - 86 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5054
SELECT - col0 / - 86 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT ALL - + col2 + - ( 73 ) AS col1 FROM tab2 AS cor0
----
-100
-111
-99

query I rowsort
SELECT + col2 + + ( col0 ) * - cor0.col1 AS col0 FROM tab1 AS cor0
----
-24
-583
-944

query I rowsort
SELECT - col0 * ( - 81 ) FROM tab2 AS cor0
----
567
6318
6399

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5058
SELECT + - col1 / CAST( NULL AS SIGNED ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5058
SELECT + - col1 / CAST ( NULL AS INTEGER ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + ( - col1 ) col1 FROM tab0 cor0
----
-2838
-7462
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( cor0.col2 ) * - cor0.col1 col1 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT 67 * 41 FROM tab0 AS cor0
----
2747
2747
2747

onlyif mysql # use DIV operator for integer division
query I rowsort label-5062
SELECT - CAST( - 21 AS SIGNED ) DIV col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5062
SELECT - CAST ( - 21 AS INTEGER ) / col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - + col2 * 18 AS col1 FROM tab1 AS cor0
----
-1026
-1728
-972

query I rowsort
SELECT + col2 + + 87 FROM tab0 cor0
----
120
169
88

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5065
SELECT DISTINCT - col0 + - CAST( NULL AS SIGNED ) col2 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5065
SELECT DISTINCT - col0 + - CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5066
SELECT cor0.col2 * ( col1 ) DIV + col0 FROM tab1 AS cor0
----
15
468
8

skipif mysql # not compatible
query I rowsort label-5066
SELECT cor0.col2 * ( col1 ) / + col0 FROM tab1 AS cor0
----
15
468
8

query I rowsort
SELECT ALL - col0 + 84 * 92 AS col0 FROM tab2 AS cor0
----
7649
7650
7721

query I rowsort
SELECT DISTINCT + - col1 + col1 * 83 FROM tab1 cor0
----
1066
2132
820

query I rowsort
SELECT ALL + col1 * col2 + cor0.col2 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT DISTINCT - col2 * + 81 AS col2 FROM tab1 AS cor0
----
-4374
-4617
-7776

query I rowsort
SELECT col0 + - ( - col2 ) AS col2 FROM tab1 cor0
----
121
176
57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5072
SELECT cor0.col0 * CAST( NULL AS SIGNED ) FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5072
SELECT cor0.col0 * CAST ( NULL AS INTEGER ) FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT 20 * - tab0.col1 AS col0 FROM tab0, tab0 cor0, tab2 AS cor1
----
27 values hashing to 04c22d9207679b947e048fa1d1f1041d

query I rowsort
SELECT ALL + col2 + col2 * col1 AS col0 FROM tab2 AS cor0
----
1560
684
864

query I rowsort
SELECT + col2 * col2 + cor0.col1 FROM tab0 AS cor0
----
1175
6815
98

query I rowsort
SELECT ALL + 66 AS col1 FROM tab0 cor0
----
66
66
66

query I rowsort
SELECT + ( - cor0.col1 ) FROM tab0, tab1 AS cor0
----
9 values hashing to b234798d4706314ba14eaad539d0aa88

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5078
SELECT DISTINCT + ( - 86 ) * col0 + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5078
SELECT DISTINCT + ( - 86 ) * col0 + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + cor0.col0 col0 FROM tab2 cor0
----
1343
217
4602

query I rowsort
SELECT ( col0 + col0 ) AS col0 FROM tab0
----
178
48
70

query I rowsort
SELECT col2 * tab1.col2 - - col1 FROM tab1
----
2942
3259
9229

query I rowsort
SELECT - 13 + - col2 AS col1 FROM tab1 AS cor0
----
-109
-67
-70

query I rowsort
SELECT 72 - + cor1.col1 FROM tab0, tab1 AS cor0, tab1 AS cor1, tab1 AS cor2
----
81 values hashing to b474723c84ce028f90392fce52b59899

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 36 * col1 + + 40 * 25 col1 FROM tab0 AS cor0
----
4096
4276
4492

query I rowsort
SELECT + tab1.col1 * + 39 FROM tab1, tab0 cor0, tab2 AS cor1
----
27 values hashing to 2ca358342f4f0c0c0373eb6d63e4d54b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - col0 + + col0 col2 FROM tab0 AS cor0
----
-2040
-3360
-8010

query I rowsort
SELECT DISTINCT col1 + 16 AS col1 FROM tab0 AS cor0
----
102
107
113

query I rowsort
SELECT DISTINCT - col2 * + cor0.col0 + + ( + col1 ) * + 5 FROM tab1 AS cor0
----
-32
-3598
-7615

query I rowsort
SELECT 56 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to b5ba4b44e3deadce1edb30e76df61200

query I rowsort
SELECT ALL + col0 * ( col0 ) AS col2 FROM tab1
----
4096
6400
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + cor0.col0 + 90 * col0 col1 FROM tab2 AS cor0
----
637
7098
7189

query I rowsort
SELECT ALL - col0 - col0 * - ( - cor0.col0 ) FROM tab0 AS cor0
----
-1260
-600
-8010

query I rowsort
SELECT ALL col0 + + tab2.col2 AS col0 FROM tab2
----
104
117
34

query I rowsort
SELECT ALL + col2 + 89 * col2 + - 83 AS col0 FROM tab2
----
2257
2347
3337

query I rowsort
SELECT ALL - ( col1 ) + + col2 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT ALL + ( col1 ) * col1 * + col1 FROM tab0 cor0
----
636056
753571
912673

query I rowsort
SELECT ALL + ( 5 ) FROM tab0 AS cor0
----
5
5
5

onlyif mysql # use DIV operator for integer division
query I rowsort label-5098
SELECT - + col2 * col0 + - col1 DIV col0 FROM tab0 AS cor0
----
-37
-7299
-795

skipif mysql # not compatible
query I rowsort label-5098
SELECT - + col2 * col0 + - col1 / col0 FROM tab0 AS cor0
----
-37
-7299
-795

query I rowsort
SELECT DISTINCT cor1.col1 FROM tab2, tab0 AS cor0, tab0 AS cor1, tab2 AS cor2
----
86
91
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + col0 + + 29 col2 FROM tab0 AS cor0
----
1254
605
7950

query I rowsort
SELECT cor0.col0 + cor0.col1 AS col1 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT DISTINCT col1 + - cor0.col2 AS col1 FROM tab0 cor0
----
53
9
96

query I rowsort
SELECT DISTINCT + col0 * cor0.col0 * col0 FROM tab0 AS cor0
----
13824
42875
704969

query I rowsort
SELECT ALL - - 17 + col0 AS col2 FROM tab0 AS cor0
----
106
41
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-5105
SELECT DISTINCT - 53 + - col0 * + col1 DIV col1 AS col0 FROM tab2 AS cor0
----
-131
-132
-60

skipif mysql # not compatible
query I rowsort label-5105
SELECT DISTINCT - 53 + - col0 * + col1 / col1 AS col0 FROM tab2 AS cor0
----
-131
-132
-60

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5106
SELECT DISTINCT + col2 - col0 / + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5106
SELECT DISTINCT + col2 - col0 / + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - 7 AS col1 FROM tab1, tab2, tab2 cor0
----
-7

query I rowsort
SELECT - 35 + + col2 FROM tab0
----
-2
-34
47

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5109
SELECT - CAST( - 33 AS SIGNED ) FROM tab2
----
33
33
33

skipif mysql # not compatible
query I rowsort label-5109
SELECT - CAST ( - 33 AS INTEGER ) FROM tab2
----
33
33
33

query I rowsort
SELECT DISTINCT 45 * ( + tab2.col2 ) AS col0 FROM tab2
----
1170
1215
1710

query I rowsort
SELECT DISTINCT + col0 * col2 * - col0 + - 37 AS col0 FROM tab1
----
-233509
-523
-614437

onlyif mysql # use DIV operator for integer division
query I rowsort label-5112
SELECT col2 - + 27 * col0 DIV + col0 FROM tab0
----
-26
55
6

skipif mysql # not compatible
query I rowsort label-5112
SELECT col2 - + 27 * col0 / + col0 FROM tab0
----
-26
55
6

query I rowsort
SELECT ALL - col0 + tab1.col1 * tab1.col0 AS col2 FROM tab1
----
576
75
960

query I rowsort
SELECT DISTINCT - - col2 + col2 * cor0.col2 FROM tab2 AS cor0
----
1482
702
756

query I rowsort
SELECT ALL + cor0.col2 + col2 * + col1 AS col0 FROM tab2 AS cor0
----
1560
684
864

query I rowsort
SELECT ALL + + col2 * col0 + col2 AS col0 FROM tab1 AS cor0
----
216
3705
7776

query I rowsort
SELECT - + col0 * - col1 + + col1 AS col1 FROM tab0 cor0
----
2150
3492
8190

query I rowsort
SELECT + col0 + col2 * cor0.col2 * cor0.col1 AS col1 FROM tab2 AS cor0
----
22606
24627
39962

onlyif mysql # use DIV operator for integer division
query I rowsort label-5119
SELECT ALL tab2.col2 DIV + col0 + col0 + col1 AS col2 FROM tab2
----
137
41
96

skipif mysql # not compatible
query I rowsort label-5119
SELECT ALL tab2.col2 / + col0 + col0 + col1 AS col2 FROM tab2
----
137
41
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col0 + - col0 * col0 * col0 col0 FROM tab0
----
-13248
-41650
-697048

query I rowsort
SELECT ALL + tab1.col0 + col2 * + col0 AS col1 FROM tab1
----
165
3712
7760

query I rowsort
SELECT ALL col0 * col1 + tab2.col2 + - col0 AS col2 FROM tab2
----
1302
237
4550

query I rowsort
SELECT col1 * - col0 + - col1 FROM tab2
----
-1360
-248
-4661

query I rowsort
SELECT + col0 + col0 + tab2.col1 AS col1 FROM tab2
----
175
215
45

query I rowsort
SELECT ALL + - cor0.col2 * col1 + col1 AS col2 FROM tab1 AS cor0
----
-1235
-1378
-560

onlyif mysql # use DIV operator for integer division
query I rowsort label-5126
SELECT ALL col1 DIV col1 + col0 AS col0 FROM tab0 AS cor0
----
25
36
90

skipif mysql # not compatible
query I rowsort label-5126
SELECT ALL col1 / col1 + col0 AS col0 FROM tab0 AS cor0
----
25
36
90

onlyif mysql # use DIV operator for integer division
query I rowsort label-5127
SELECT DISTINCT - 49 DIV - col0 AS col2 FROM tab1 AS cor0
----
0
16

skipif mysql # not compatible
query I rowsort label-5127
SELECT DISTINCT - 49 / - col0 AS col2 FROM tab1 AS cor0
----
0
16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 * - col0 - col1 * + col0 col0 FROM tab1 AS cor0
----
-1280
-156
-2080

onlyif mysql # use DIV operator for integer division
query I rowsort label-5129
SELECT DISTINCT - + col1 DIV col2 AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5129
SELECT DISTINCT - + col1 / col2 AS col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT 50 AS col2 FROM tab1 AS cor0
----
50

query I rowsort
SELECT ( col1 ) * + cor0.col0 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT ALL - col2 * + col0 * col2 FROM tab1 cor0
----
-207936
-737280
-8748

query I rowsort
SELECT ALL + col0 + + col0 + col1 * cor0.col2 FROM tab0 AS cor0
----
167
2886
7640

onlyif mysql # use DIV operator for integer division
query I rowsort label-5134
SELECT ALL - col0 DIV col0 AS col0 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5134
SELECT ALL - col0 / col0 AS col0 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL - col1 * col1 + - col0 FROM tab1
----
-164
-249
-679

query I rowsort
SELECT tab0.col1 * - col2 + tab0.col2 FROM tab0
----
-2805
-7380
-96

query I rowsort
SELECT DISTINCT + col0 + - cor0.col0 * cor0.col0 FROM tab0 AS cor0
----
-1190
-552
-7832

query I rowsort
SELECT ALL - col1 + 50 * + col0 FROM tab0
----
1114
1653
4359

query I rowsort
SELECT ALL + 31 + col0 FROM tab0
----
120
55
66

query I rowsort
SELECT ALL tab2.col2 + - col1 AS col2 FROM tab2
----
-33
-4
21

query I rowsort
SELECT ALL - - ( - col1 ) AS col0 FROM tab1 AS cor0
----
-10
-13
-26

onlyif mysql # use DIV operator for integer division
query I rowsort label-5142
SELECT DISTINCT + + col0 DIV - col0 + + col0 AS col2 FROM tab0 AS cor0
----
23
34
88

skipif mysql # not compatible
query I rowsort label-5142
SELECT DISTINCT + + col0 / - col0 + + col0 AS col2 FROM tab0 AS cor0
----
23
34
88

query I rowsort
SELECT ALL + + col1 * cor0.col2 + col1 AS col1 FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT ALL - cor1.col0 * cor1.col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 75a608bf2ba236d24f146ac4aff9ec52

query I rowsort
SELECT DISTINCT - col0 * - col1 * + col0 FROM tab1 WHERE NOT NULL IN ( + col0 + col0 )
----

query I rowsort
SELECT col2 * col2 FROM tab2 WHERE col1 > col2 + - col1
----
676
729

query I rowsort
SELECT col2 * tab1.col1 AS col1 FROM tab1 WHERE NULL BETWEEN NULL AND ( - col0 )
----

query I rowsort
SELECT tab2.col1 + col1 + - col1 FROM tab2
----
17
31
59

query I rowsort
SELECT DISTINCT col0 - col0 * - col2 AS col1 FROM tab1
----
165
3712
7760

query I rowsort
SELECT + tab1.col1 + + col2 * col1 AS col1 FROM tab1
----
1261
1430
580

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * tab1.col2 col0 FROM tab1
----
1248
1404
570

query III rowsort
SELECT ALL * FROM tab0 WHERE col2 NOT IN ( col1 * + col2 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col2 <> ( col2 * col2 - - col1 * + col0 )
----

query I rowsort
SELECT DISTINCT + col2 + + col1 * col0 FROM tab2
----
1381
244
4628

query III rowsort
SELECT * FROM tab0 WHERE - col0 * + col2 / col2 >= NULL
----

query I rowsort
SELECT ALL - col2 FROM tab2 WHERE NOT NULL > NULL
----

query I rowsort
SELECT ALL - col1 * tab2.col2 * - col2 - col0 AS col2 FROM tab2
----
22592
24469
39806

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT IN ( tab1.col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * col2 - col0 col1 FROM tab1
----
2913
3185
9136

query I rowsort
SELECT + col2 + col2 * + col0 AS col2 FROM tab0
----
36
7380
825

query I rowsort
SELECT ALL col1 * + col1 * - col0 FROM tab2
----
-22831
-271518
-6727

query I rowsort
SELECT ALL tab2.col2 + col2 * + col1 + tab2.col1 FROM tab2
----
1619
701
895

query I rowsort
SELECT + tab0.col1 + col0 * col0 AS col2 FROM tab0
----
1322
662
8012

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + col2 + - col0 col2 FROM tab0
----
-34
1065
6635

query I rowsort
SELECT DISTINCT + tab0.col1 + - col0 * + col0 AS col1 FROM tab0
----
-1128
-490
-7830

query I rowsort
SELECT - col1 + - col0 + + col2 AS col2 FROM tab1 AS cor0
----
-17
25
3

query I rowsort
SELECT DISTINCT col0 * col1 * + col1 FROM tab2 AS cor0
----
22831
271518
6727

query I rowsort
SELECT + col1 + - col2 * - cor0.col1 FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT DISTINCT + col1 + + col2 * - col1 FROM tab0 AS cor0
----
-2752
-7371
0

query I rowsort
SELECT col0 * tab1.col1 * col1 FROM tab1
----
13520
2028
6400

query I rowsort
SELECT ALL - col2 * tab1.col1 * - col0 AS col1 FROM tab1
----
36480
4212
99840

query I rowsort
SELECT + - col2 + col0 + - col0 * col2 AS col0 FROM tab1 AS cor0
----
-213
-3641
-7696

query I rowsort
SELECT + col0 FROM tab0 WHERE + col2 NOT IN ( col2 + col0 * + col2 )
----
24
35
89

query I rowsort
SELECT DISTINCT col0 * col0 * - col0 + + col2 AS col1 FROM tab0 AS cor0
----
-13791
-42874
-704887

query I rowsort
SELECT DISTINCT + col2 + col0 * - col1 AS col2 FROM tab2 AS cor0
----
-1305
-190
-4576

query I rowsort
SELECT DISTINCT + col2 + + col2 * cor0.col1 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT col2 * cor0.col0 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN - col0 AND col1 * + col2
----

query I rowsort
SELECT DISTINCT + col1 + - tab1.col2 * col0 + + col1 * col2 AS col1 FROM tab1
----
-3068
-6419
1268

query I rowsort
SELECT + - 7 * cor0.col0 AS col1 FROM tab1 AS cor0
----
-21
-448
-560

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( 5 ) col1 FROM tab1 AS cor0
----
5
5
5

query I rowsort
SELECT ALL + col2 * col0 + col0 AS col2 FROM tab2 AS cor0
----
196
2106
3081

query I rowsort
SELECT ALL + col1 * cor0.col0 * col0 + + 97 + col2 AS col2 FROM tab1 cor0
----
385
41114
83393

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 * - col2 col2 FROM tab1 AS cor0
----
1248
1404
570

onlyif mysql # use DIV operator for integer division
query I rowsort label-5184
SELECT + col0 * col2 DIV col0 FROM tab2 AS cor0
----
26
27
38

skipif mysql # not compatible
query I rowsort label-5184
SELECT + col0 * col2 / col0 FROM tab2 AS cor0
----
26
27
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-5185
SELECT + 25 DIV ( - col2 ) FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5185
SELECT + 25 / ( - col2 ) FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + cor0.col1 * + cor0.col0 * - col2 AS col2 FROM tab1 AS cor0
----
-36480
-4212
-99840

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0 CROSS JOIN tab0, tab1 cor1, tab0 AS cor2
----
3645 values hashing to 2566f3fa788816c8bfc482e730aaed74

query I rowsort
SELECT DISTINCT + cor0.col0 + + cor0.col0 + + col0 FROM tab2 AS cor0
----
21
234
237

onlyif mysql # use DIV operator for integer division
query I rowsort label-5189
SELECT col1 DIV + cor0.col0 AS col0 FROM tab0 AS cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-5189
SELECT col1 / + cor0.col0 AS col0 FROM tab0 AS cor0
----
1
2
3

query I rowsort
SELECT DISTINCT + + 10 AS col1 FROM tab2 cor0
----
10

query I rowsort
SELECT DISTINCT col2 * 25 AS col2 FROM tab1
----
1350
1425
2400

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 + cor0.col0 * 14 col0 FROM tab1 AS cor0
----
-12
1024
839

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5193
SELECT - + cor0.col2 * - CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5193
SELECT - + cor0.col2 * - CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + 55 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

query I rowsort
SELECT 57 * - col2 AS col2 FROM tab2
----
-1482
-1539
-2166

onlyif mysql # use DIV operator for integer division
query I rowsort label-5196
SELECT ALL col0 DIV - 13 AS col1 FROM tab2
----
-6
-6
0

skipif mysql # not compatible
query I rowsort label-5196
SELECT ALL col0 / - 13 AS col1 FROM tab2
----
-6
-6
0

query I rowsort
SELECT ALL + ( tab2.col1 ) FROM tab2, tab0 AS cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

query I rowsort
SELECT tab1.col0 * + ( + ( col1 ) ) AS col0 FROM tab1
----
1040
640
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-5199
SELECT ALL + col0 + col2 DIV + tab1.col1 FROM tab1
----
5
69
87

skipif mysql # not compatible
query I rowsort label-5199
SELECT ALL + col0 + col2 / + tab1.col1 FROM tab1
----
5
69
87

query I rowsort
SELECT - col0 * 21 * col0 AS col1 FROM tab0
----
-12096
-166341
-25725

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor2.col1 col2 FROM tab2, tab0 AS cor0, tab2 AS cor1, tab0, tab0 AS cor2
----
86
91
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5202
SELECT DISTINCT col1 + CAST( - 63 AS SIGNED ) AS col0 FROM tab1
----
-37
-50
-53

skipif mysql # not compatible
query I rowsort label-5202
SELECT DISTINCT col1 + CAST ( - 63 AS INTEGER ) AS col0 FROM tab1
----
-37
-50
-53

query I rowsort
SELECT DISTINCT col2 + col2 + tab2.col2 AS col1 FROM tab2
----
114
78
81

query I rowsort
SELECT - 66 + - tab0.col2 AS col0 FROM tab0
----
-148
-67
-99

query I rowsort
SELECT + - col1 * + 39 AS col1 FROM tab0 cor0
----
-3354
-3549
-3783

query I rowsort
SELECT DISTINCT ( 88 ) FROM tab2
----
88

query I rowsort
SELECT ALL - + ( + 84 ) AS col2 FROM tab1 AS cor0
----
-84
-84
-84

query I rowsort
SELECT DISTINCT 68 + 80 * col2 * - col0 FROM tab1 AS cor0
----
-12892
-291772
-614332

onlyif mysql # use DIV operator for integer division
query I rowsort label-5209
SELECT + 53 + - col2 DIV - cor0.col0 AS col0 FROM tab1 AS cor0
----
53
54
71

skipif mysql # not compatible
query I rowsort label-5209
SELECT + 53 + - col2 / - cor0.col0 AS col0 FROM tab1 AS cor0
----
53
54
71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + cor0.col0 + col0 col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT cor0.col2 + cor0.col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 71bdffb602517a95c6721e05f7b4b3dd

onlyif mysql # use DIV operator for integer division
query I rowsort label-5212
SELECT DISTINCT + col2 * col0 + - col1 + col1 DIV cor0.col0 FROM tab0 AS cor0
----
-60
709
7208

skipif mysql # not compatible
query I rowsort label-5212
SELECT DISTINCT + col2 * col0 + - col1 + col1 / cor0.col0 FROM tab0 AS cor0
----
-60
709
7208

query I rowsort
SELECT - 34 + + col0 AS col1 FROM tab1
----
-31
30
46

query I rowsort
SELECT DISTINCT + ( tab1.col1 + col2 ) AS col0 FROM tab1
----
109
67
80

query I rowsort
SELECT DISTINCT 23 * col1 FROM tab0
----
1978
2093
2231

query I rowsort
SELECT DISTINCT + 60 - - col2 AS col1 FROM tab0
----
142
61
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-5217
SELECT col2 + col2 + col1 DIV col2 FROM tab1
----
108
114
192

skipif mysql # not compatible
query I rowsort label-5217
SELECT col2 + col2 + col1 / col2 FROM tab1
----
108
114
192

query I rowsort
SELECT 82 + - tab0.col1 + col1 * col1 FROM tab0
----
7392
8272
9394

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5219
SELECT 2 * - col1 + + CAST( - col0 AS SIGNED ) * + col1 AS col0 FROM tab0
----
-2236
-3589
-8281

skipif mysql # not compatible
query I rowsort label-5219
SELECT 2 * - col1 + + CAST ( - col0 AS INTEGER ) * + col1 AS col0 FROM tab0
----
-2236
-3589
-8281

query I rowsort
SELECT - 56 + - cor0.col2 * ( cor0.col1 ) AS col0 FROM tab0 AS cor0
----
-153
-2894
-7518

query I rowsort
SELECT ALL + + col1 * 20 * - 74 - + col1 FROM tab0 AS cor0
----
-127366
-134771
-143657

query I rowsort
SELECT ALL + + col1 + + col2 * col1 + col0 FROM tab0 AS cor0
----
229
2948
7642

onlyif mysql # use DIV operator for integer division
query I rowsort label-5223
SELECT DISTINCT col0 * + CAST( + col0 AS SIGNED ) + - cor0.col1 DIV col0 AS col2 FROM tab1 AS cor0
----
1
4096
6400

skipif mysql # not compatible
query I rowsort label-5223
SELECT DISTINCT col0 * + CAST ( + col0 AS INTEGER ) + - cor0.col1 / col0 AS col2 FROM tab1 AS cor0
----
1
4096
6400

query I rowsort
SELECT ALL + - col0 - - ( col2 ) * + col1 FROM tab2 AS cor0
----
1456
567
830

query I rowsort
SELECT - cor0.col2 * 90 AS col0 FROM tab2 AS cor0
----
-2340
-2430
-3420

onlyif mysql # use DIV operator for integer division
query I rowsort label-5226
SELECT DISTINCT col0 DIV + 19 - ( - col0 ) FROM tab0 AS cor0
----
25
36
93

skipif mysql # not compatible
query I rowsort label-5226
SELECT DISTINCT col0 / + 19 - ( - col0 ) FROM tab0 AS cor0
----
25
36
93

query I rowsort
SELECT + - cor0.col0 + col2 * - ( col0 + cor0.col0 ) * - col2 AS col2 FROM tab2 cor0
----
10199
105378
228073

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + col2 + col0 * + col0 * - cor0.col2 col2 FROM tab2 AS cor0
----
-1134
-156156
-234156

query I rowsort
SELECT - + col2 * + col0 + + col2 AS col1 FROM tab2 AS cor0
----
-162
-2002
-2964

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 78 + 83 col1 FROM tab0 AS cor0
----
161
2657
6479

query I rowsort
SELECT ALL 26 * col1 AS col0 FROM tab2
----
1534
442
806

query I rowsort
SELECT DISTINCT - - 66 AS col1 FROM tab0, tab1, tab2 AS cor0
----
66

query I rowsort
SELECT + col1 - ( + col1 + col0 ) FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT + - col0 + 31 + - col2 FROM tab0 AS cor0
----
-140
-26
-5

query I rowsort
SELECT ALL col1 * + cor0.col1 AS col2 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT DISTINCT 23 + 0 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
23

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5237
SELECT DISTINCT col1 / - CAST( NULL AS SIGNED ) + 53 * col0 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5237
SELECT DISTINCT col1 / - CAST ( NULL AS INTEGER ) + 53 * col0 AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col1 * - 44 + + col0 + - col1 AS col2 FROM tab2 AS cor0
----
-1388
-2577
-686

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5239
SELECT ALL + CAST( NULL AS SIGNED ) / + 25 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5239
SELECT ALL + CAST ( NULL AS INTEGER ) / + 25 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT ( tab1.col0 ) FROM tab1, tab2 AS cor0
----
3
64
80

query I rowsort
SELECT DISTINCT - 16 AS col2 FROM tab0, tab1 AS cor0
----
-16

query I rowsort
SELECT - + col2 + + col1 AS col1 FROM tab1 cor0
----
-28
-47
-83

query I rowsort
SELECT ALL 74 AS col0 FROM tab0, tab0 cor0
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + + cor0.col0 * + 20 col1 FROM tab1 AS cor0
----
1216
1520
57

query I rowsort
SELECT ALL + + col1 + 59 * - col0 FROM tab0 AS cor0
----
-1330
-1968
-5160

query I rowsort
SELECT ( - 62 ) + tab0.col0 AS col1 FROM tab0
----
-27
-38
27

query I rowsort
SELECT - 78 * col0 AS col2 FROM tab1 AS cor0
----
-234
-4992
-6240

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5248
SELECT - + CAST( NULL AS SIGNED ) / 45 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-5248
SELECT - + CAST ( NULL AS INTEGER ) / 45 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5249
SELECT DISTINCT cor0.col1 DIV - col0 AS col0 FROM tab2 AS cor0
----
-4
0

skipif mysql # not compatible
query I rowsort label-5249
SELECT DISTINCT cor0.col1 / - col0 AS col0 FROM tab2 AS cor0
----
-4
0

query I rowsort
SELECT col1 * - col1 * cor0.col2 + - col1 AS col0 FROM tab2 AS cor0
----
-10999
-25978
-90565

query I rowsort
SELECT DISTINCT ( 25 ) AS col2 FROM tab0, tab1 AS cor0, tab1 AS cor1, tab2 AS cor2
----
25

onlyif mysql # use DIV operator for integer division
query I rowsort label-5252
SELECT DISTINCT 73 DIV - col0 AS col1 FROM tab0 AS cor0
----
-2
-3
0

skipif mysql # not compatible
query I rowsort label-5252
SELECT DISTINCT 73 / - col0 AS col1 FROM tab0 AS cor0
----
-2
-3
0

query I rowsort
SELECT DISTINCT - col2 * - col0 * - col0 FROM tab0 AS cor0
----
-1225
-19008
-649522

query I rowsort
SELECT ALL + - 42 * - cor0.col0 AS col2 FROM tab1 AS cor0
----
126
2688
3360

onlyif mysql # use DIV operator for integer division
query I rowsort label-5255
SELECT DISTINCT - cor0.col2 + + cor0.col1 DIV col2 col1 FROM tab1 AS cor0
----
-54
-57
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5255
SELECT DISTINCT - cor0.col2 + + cor0.col1 / col2 col1 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT DISTINCT - + 79 * col1 + + col0 AS col2 FROM tab0 AS cor0
----
-6770
-7100
-7628

query I rowsort
SELECT DISTINCT + 16 + - col0 * + 76 FROM tab1 AS cor0
----
-212
-4848
-6064

query I rowsort
SELECT DISTINCT + 61 AS col0 FROM tab0 AS cor0
----
61

query I rowsort
SELECT - - cor0.col0 * col2 AS col1 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT ALL ( col1 ) * + 97 FROM tab0 cor0
----
8342
8827
9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-5261
SELECT DISTINCT - col2 * col1 DIV col0 AS col0 FROM tab1 AS cor0
----
-15
-468
-8

skipif mysql # not compatible
query I rowsort label-5261
SELECT DISTINCT - col2 * col1 / col0 AS col0 FROM tab1 AS cor0
----
-15
-468
-8

onlyif mysql # use DIV operator for integer division
query I rowsort label-5262
SELECT ALL - col0 + col0 DIV ( col2 ) FROM tab1
----
-3
-63
-80

skipif mysql # not compatible
query I rowsort label-5262
SELECT ALL - col0 + col0 / ( col2 ) FROM tab1
----
-3
-63
-80

query I rowsort
SELECT 76 + - col2 + + col2 * ( col1 + - col0 ) AS col0 FROM tab0
----
137
158
2089

query I rowsort
SELECT - 50 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to faf91d5263c18db4877a3c30c47e2487

query I rowsort
SELECT ALL col0 * + ( col0 ) * col2 AS col2 FROM tab0 cor0
----
1225
19008
649522

query I rowsort
SELECT + col1 * - 54 AS col1 FROM tab0 cor0
----
-4644
-4914
-5238

query I rowsort
SELECT DISTINCT col1 * + col2 * ( 41 ) AS col1 FROM tab1
----
23370
51168
57564

query I rowsort
SELECT ALL - ( + col2 ) * 54 FROM tab2
----
-1404
-1458
-2052

onlyif mysql # use DIV operator for integer division
query I rowsort label-5269
SELECT DISTINCT 38 DIV col1 AS col1 FROM tab2
----
0
1
2

skipif mysql # not compatible
query I rowsort label-5269
SELECT DISTINCT 38 / col1 AS col1 FROM tab2
----
0
1
2

query I rowsort
SELECT DISTINCT + 79 FROM tab1, tab2, tab0 AS cor0
----
79

query I rowsort
SELECT 78 + + col2 * + col0 FROM tab0 AS cor0
----
113
7376
870

onlyif mysql # use DIV operator for integer division
query I rowsort label-5272
SELECT ( 6 ) DIV col0 AS col2 FROM tab1 AS cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-5272
SELECT ( 6 ) / col0 AS col2 FROM tab1 AS cor0
----
0
0
2

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5273
SELECT - + CAST( NULL AS SIGNED ) + + col1 * - col2 - - 65 * + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5273
SELECT - + CAST ( NULL AS INTEGER ) + + col1 * - col2 - - 65 * + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5274
SELECT - + col0 + 66 * col2 / - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5274
SELECT - + col0 + 66 * col2 / - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - 9 + col0 FROM tab1 AS cor0
----
12
73
89

query I rowsort
SELECT col1 * - cor0.col2 + col0 * - 97 FROM tab2 AS cor0
----
-1516
-8309
-9100

query I rowsort
SELECT + - 12 * 37 + col1 - col0 AS col1 FROM tab2 cor0
----
-420
-463
-506

onlyif mysql # use DIV operator for integer division
query I rowsort label-5278
SELECT ALL col2 + 64 DIV col1 FROM tab2
----
27
29
41

skipif mysql # not compatible
query I rowsort label-5278
SELECT ALL col2 + 64 / col1 FROM tab2
----
27
29
41

query I rowsort
SELECT col1 + - 46 * col2 FROM tab2
----
-1137
-1211
-1731

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5280
SELECT CAST( + col1 AS SIGNED ) * col0 FROM tab2 AS cor0
----
1343
217
4602

skipif mysql # not compatible
query I rowsort label-5280
SELECT CAST ( + col1 AS INTEGER ) * col0 FROM tab2 AS cor0
----
1343
217
4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + 9 * col0 col0 FROM tab0 AS cor0
----
192
280
712

query I rowsort
SELECT ( 11 ) * + col1 - col0 FROM tab1 AS cor0
----
283
46
63

onlyif mysql # use DIV operator for integer division
query I rowsort label-5283
SELECT - col2 DIV - 71 + + col2 FROM tab2 AS cor0
----
26
27
38

skipif mysql # not compatible
query I rowsort label-5283
SELECT - col2 / - 71 + + col2 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT + - col0 * col1 - - col0 FROM tab2 AS cor0
----
-1264
-210
-4524

query I rowsort
SELECT ALL + 82 AS col0 FROM tab1, tab2, tab1 AS cor0, tab0
----
81 values hashing to 660751b3166f5cb8964b7ef659605795

query I rowsort
SELECT tab0.col2 * + tab0.col2 AS col2 FROM tab0
----
1
1089
6724

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5287
SELECT + CAST( - 30 AS SIGNED ) * col1 FROM tab2 cor0
----
-1770
-510
-930

skipif mysql # not compatible
query I rowsort label-5287
SELECT + CAST ( - 30 AS INTEGER ) * col1 FROM tab2 cor0
----
-1770
-510
-930

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 + col1 * cor0.col1 col2 FROM tab0 AS cor0
----
7310
8190
9312

query I rowsort
SELECT ALL + 97 + + col1 * cor0.col0 * col0 + col1 AS col2 FROM tab0 AS cor0
----
119019
49719
720999

query I rowsort
SELECT + col0 + + col1 * cor0.col1 * col1 FROM tab2 AS cor0
----
205457
29798
4992

onlyif mysql # use DIV operator for integer division
query I rowsort label-5291
SELECT ALL - cor0.col2 DIV + cor0.col2 + - col1 AS col1 FROM tab0 AS cor0
----
-87
-92
-98

skipif mysql # not compatible
query I rowsort label-5291
SELECT ALL - cor0.col2 / + cor0.col2 + - col1 AS col1 FROM tab0 AS cor0
----
-87
-92
-98

query I rowsort
SELECT DISTINCT col2 * cor0.col2 * + col0 + - 46 AS col0 FROM tab1 AS cor0
----
207890
737234
8702

query I rowsort
SELECT - 73 + + ( - col1 ) AS col2 FROM tab1 AS cor0
----
-83
-86
-99

query I rowsort
SELECT + - col1 * + 20 FROM tab1 AS cor0
----
-200
-260
-520

query I rowsort
SELECT + + col0 + 7 * - cor0.col2 FROM tab1 AS cor0
----
-335
-375
-592

query I rowsort
SELECT ALL - - 87 * col1 + col0 * 80 AS col0 FROM tab0 AS cor0
----
11239
15037
9402

query I rowsort
SELECT DISTINCT + col2 + - col0 - + col1 * col2 FROM tab2 AS cor0
----
-1586
-687
-817

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * col2 + + col0 * col0 col0 FROM tab2 cor0
----
6760
7685
778

query I rowsort
SELECT 47 + + 42 AS col2 FROM tab1 AS cor0
----
89
89
89

query I rowsort
SELECT - - 66 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 29794915b585eea848ad670075452c88

onlyif mysql # use DIV operator for integer division
query I rowsort label-5301
SELECT - col2 + col2 DIV 14 FROM tab2 AS cor0
----
-25
-26
-36

skipif mysql # not compatible
query I rowsort label-5301
SELECT - col2 + col2 / 14 FROM tab2 AS cor0
----
-25
-26
-36

onlyif mysql # use DIV operator for integer division
query I rowsort label-5302
SELECT - - col1 * + cor0.col1 DIV col1 FROM tab2 AS cor0
----
17
31
59

skipif mysql # not compatible
query I rowsort label-5302
SELECT - - col1 * + cor0.col1 / col1 FROM tab2 AS cor0
----
17
31
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-5303
SELECT ALL + 79 * - col0 + col1 DIV col0 FROM tab0 AS cor0
----
-1893
-2763
-7030

skipif mysql # not compatible
query I rowsort label-5303
SELECT ALL + 79 * - col0 + col1 / col0 FROM tab0 AS cor0
----
-1893
-2763
-7030

query I rowsort
SELECT + - 18 AS col2 FROM tab1 AS cor0
----
-18
-18
-18

query I rowsort
SELECT + 58 * col0 FROM tab0 AS cor0
----
1392
2030
5162

query I rowsort
SELECT - - 13 * col1 FROM tab0 AS cor0
----
1118
1183
1261

query I rowsort
SELECT + cor0.col1 AS col1 FROM tab2, tab1 cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

onlyif mysql # use DIV operator for integer division
query I rowsort label-5308
SELECT DISTINCT + col2 DIV 50 + col1 FROM tab1 AS cor0
----
11
14
27

skipif mysql # not compatible
query I rowsort label-5308
SELECT DISTINCT + col2 / 50 + col1 FROM tab1 AS cor0
----
11
14
27

query I rowsort
SELECT ALL + col1 * col1 + col0 * - col2 AS col0 FROM tab0 AS cor0
----
6604
9374
983

query I rowsort
SELECT - + col0 * 63 AS col2 FROM tab1 AS cor0
----
-189
-4032
-5040

query I rowsort
SELECT ALL + - cor0.col2 * - ( 44 ) AS col1 FROM tab1 cor0
----
2376
2508
4224

query I rowsort
SELECT 17 * - cor0.col2 AS col2 FROM tab1, tab0 cor0, tab2 AS cor1
----
27 values hashing to c83aafc8d012535586c708e2aad71f92

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 + - cor0.col2 * + ( + col0 ) + col2 * + 36 + 30 * col2 AS col1 FROM tab0 AS cor0
----
-1886
1386
31

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5315
SELECT - cor0.col1 * - CAST( NULL AS SIGNED ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5315
SELECT - cor0.col1 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5316
SELECT DISTINCT - col1 * col1 DIV - col2 FROM tab0 AS cor0
----
100
224
9409

skipif mysql # not compatible
query I rowsort label-5316
SELECT DISTINCT - col1 * col1 / - col2 FROM tab0 AS cor0
----
100
224
9409

query I rowsort
SELECT ALL - col0 + - 84 AS col1 FROM tab2 AS cor0
----
-162
-163
-91

query I rowsort
SELECT DISTINCT - + cor0.col2 + - 97 FROM tab2 cor0
----
-123
-124
-135

query I rowsort
SELECT ALL + - col2 + + ( col2 * + col1 ) FROM tab2 AS cor0
----
1508
608
810

onlyif mysql # use DIV operator for integer division
query I rowsort label-5320
SELECT - col2 + - ( - 32 ) DIV + col2 AS col1 FROM tab1 cor0
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-5320
SELECT - col2 + - ( - 32 ) / + col2 AS col1 FROM tab1 cor0
----
-54
-57
-96

query I rowsort
SELECT ALL cor0.col1 + col2 * - 96 FROM tab0 AS cor0
----
-3082
-7781
1

query I rowsort
SELECT col0 * + cor0.col1 * col1 + + col0 FROM tab2 cor0
----
22910
271596
6734

query I rowsort
SELECT - + col1 - - cor0.col2 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT ALL col1 * + 43 * col1 AS col1 FROM tab0 AS cor0
----
318028
356083
404587

query I rowsort
SELECT ALL col1 + + 58 * col2 AS col2 FROM tab0 cor0
----
155
2000
4847

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5326
SELECT - col1 * - CAST( col2 AS SIGNED ) - + col0 AS col2 FROM tab0 AS cor0
----
2814
62
7373

skipif mysql # not compatible
query I rowsort label-5326
SELECT - col1 * - CAST ( col2 AS INTEGER ) - + col0 AS col2 FROM tab0 AS cor0
----
2814
62
7373

query I rowsort
SELECT col2 + - col0 + col1 AS col0 FROM tab0
----
63
84
95

query I rowsort
SELECT DISTINCT col0 + - col0 + ( - col2 ) FROM tab1
----
-54
-57
-96

query I rowsort
SELECT ALL + tab0.col1 + + 20 + - 51 FROM tab0
----
55
60
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 - - 18 * cor0.col1 col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 402be395b1804dba2af2f0bfc96d2553

query I rowsort
SELECT ALL + - cor0.col1 * - col2 * 12 - ( col1 ) AS col0 FROM tab1 AS cor0
----
14963
16822
6830

query I rowsort
SELECT + 62 AS col1 FROM tab0 cor0
----
62
62
62

query I rowsort
SELECT ALL + col2 + col0 * - 50 AS col2 FROM tab2 AS cor0
----
-323
-3874
-3912

query I rowsort
SELECT + - cor1.col1 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5

query I rowsort
SELECT cor1.col2 AS col2 FROM tab2, tab0 cor0, tab1, tab1 AS cor1
----
81 values hashing to 9d355f1f2edc347a359dad00d2d3f886

query I rowsort
SELECT ( col1 ) * - tab2.col1 + + tab2.col1 * col2 AS col2 FROM tab2
----
-124
-1947
357

query I rowsort
SELECT - col2 * col2 + - 36 AS col2 FROM tab1
----
-2952
-3285
-9252

onlyif mysql # use DIV operator for integer division
query I rowsort label-5338
SELECT DISTINCT + col1 DIV tab0.col2 AS col1 FROM tab0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-5338
SELECT DISTINCT + col1 / tab0.col2 AS col1 FROM tab0
----
1
2
97

query I rowsort
SELECT ( col2 ) + col2 FROM tab1 cor0
----
108
114
192

query I rowsort
SELECT + - col2 * - col0 + 24 * col2 FROM tab2 AS cor0
----
2652
3914
837

query I rowsort
SELECT + 2 AS col1 FROM tab2, tab2 AS cor0, tab1 AS cor1, tab1, tab2 AS cor2
----
243 values hashing to 6f66d58666af00861848807040f38da2

query I rowsort
SELECT DISTINCT - - col0 + - cor0.col1 * 97 AS col2 FROM tab0 AS cor0
----
-8318
-8738
-9374

query I rowsort
SELECT DISTINCT 82 AS col1 FROM tab1, tab2 AS cor0
----
82

query I rowsort
SELECT DISTINCT cor0.col2 FROM tab1, tab0 cor0, tab1 AS cor1
----
1
33
82

query I rowsort
SELECT - 39 + col0 * col0 FROM tab2 AS cor0
----
10
6045
6202

query I rowsort
SELECT DISTINCT col2 + + col1 * + col1 FROM tab1
----
157
265
730

query I rowsort
SELECT DISTINCT col1 + 78 FROM tab0
----
164
169
175

onlyif mysql # use DIV operator for integer division
query I rowsort label-5348
SELECT col0 DIV + 27 + col2 AS col0 FROM tab1
----
54
59
98

skipif mysql # not compatible
query I rowsort label-5348
SELECT col0 / + 27 + col2 AS col0 FROM tab1
----
54
59
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-5349
SELECT DISTINCT col0 * tab0.col0 DIV - tab0.col1 FROM tab0
----
-12
-6
-87

skipif mysql # not compatible
query I rowsort label-5349
SELECT DISTINCT col0 * tab0.col0 / - tab0.col1 FROM tab0
----
-12
-6
-87

onlyif mysql # use DIV operator for integer division
query I rowsort label-5350
SELECT - 39 DIV tab2.col1 + + tab2.col1 FROM tab2
----
15
30
59

skipif mysql # not compatible
query I rowsort label-5350
SELECT - 39 / tab2.col1 + + tab2.col1 FROM tab2
----
15
30
59

query I rowsort
SELECT - col0 * 61 * col0 + 66 * - 89 * - col1 AS col1 FROM tab0
----
470028
495053
51353

query I rowsort
SELECT DISTINCT + 28 AS col1 FROM tab1
----
28

query I rowsort
SELECT DISTINCT col1 + + col2 AS col1 FROM tab2 cor0
----
55
58
85

query I rowsort
SELECT DISTINCT cor0.col1 AS col1 FROM tab2, tab1, tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND ( NULL )
----

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5355
SELECT ALL + CAST( NULL AS SIGNED ) + + cor0.col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5355
SELECT ALL + CAST ( NULL AS INTEGER ) + + cor0.col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col1 + 72 * - col0 FROM tab2 AS cor0
----
-535
-5675
-5705

query I rowsort
SELECT ALL + 92 + - col2 AS col1 FROM tab0
----
10
59
91

onlyif mysql # use DIV operator for integer division
query I rowsort label-5358
SELECT ALL col0 + - col1 DIV 60 FROM tab1
----
3
64
80

skipif mysql # not compatible
query I rowsort label-5358
SELECT ALL col0 + - col1 / 60 FROM tab1
----
3
64
80

query I rowsort
SELECT ALL col0 + col2 * + 48 FROM tab1
----
2595
2800
4688

query I rowsort
SELECT tab0.col0 * 25 - cor0.col1 AS col1 FROM tab0, tab1, tab2 AS cor0, tab2
----
81 values hashing to 41c06ed13e06d4cd8877a29d1250b756

query I rowsort
SELECT ALL - cor0.col2 + + col1 * - ( - col1 ) FROM tab0 AS cor0
----
7363
8199
9408

query I rowsort
SELECT ALL tab0.col1 + + tab0.col0 * 62 AS col1 FROM tab0
----
1574
2267
5609

query I rowsort
SELECT DISTINCT - 34 + col2 AS col1 FROM tab1
----
20
23
62

query I rowsort
SELECT DISTINCT col2 * - 29 FROM tab1 AS cor0
----
-1566
-1653
-2784

query I rowsort
SELECT ALL + - col2 + + 15 + + col1 AS col0 FROM tab2 AS cor0
----
-6
19
48

query I rowsort
SELECT DISTINCT + col0 * - 82 - - ( - col1 ) FROM tab0 AS cor0
----
-2054
-2967
-7389

query I rowsort
SELECT ALL - col0 * - 68 FROM tab0 AS cor0
----
1632
2380
6052

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT CAST ( 67 AS REAL ) col0 FROM tab2, tab1 AS cor0
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c

query I rowsort
SELECT cor0.col1 * - 89 + + cor0.col2 * - col2 AS col0 FROM tab0 AS cor0
----
-14823
-8634
-8743

query I rowsort
SELECT DISTINCT + col1 - 53 FROM tab0 AS cor0
----
33
38
44

query I rowsort
SELECT DISTINCT + col2 + - ( - 24 ) + - col1 FROM tab1 AS cor0
----
107
52
71

query I rowsort
SELECT - + col1 + - col0 * col0 FROM tab0 AS cor0
----
-1322
-662
-8012

query I rowsort
SELECT DISTINCT - col1 * + ( col1 ) FROM tab1
----
-100
-169
-676

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * 97 col1 FROM tab2
----
-1649
-3007
-5723

query I rowsort
SELECT - col0 - ( cor0.col1 ) AS col0 FROM tab2 AS cor0
----
-137
-38
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-5376
SELECT + cor0.col1 * col0 + + ( - col1 ) * 0 + + 3 DIV + col1 FROM tab0 AS cor0
----
2064
3395
8099

skipif mysql # not compatible
query I rowsort label-5376
SELECT + cor0.col1 * col0 + + ( - col1 ) * 0 + + 3 / + col1 FROM tab0 AS cor0
----
2064
3395
8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - ( 29 + - col2 * - 57 ) col0 FROM tab2 AS cor0
----
-1452
-1537
-2178

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + ( col1 ) col2 FROM tab0 AS cor0
----
172
182
194

onlyif mysql # use DIV operator for integer division
query I rowsort label-5379
SELECT - 55 + - 7 DIV col1 FROM tab1 AS cor0
----
-55
-55
-55

skipif mysql # not compatible
query I rowsort label-5379
SELECT - 55 + - 7 / col1 FROM tab1 AS cor0
----
-55
-55
-55

query I rowsort
SELECT ALL + col1 * + ( - tab0.col0 ) FROM tab0
----
-2064
-3395
-8099

query I rowsort
SELECT 16 + tab2.col0 FROM tab2, tab1 cor0
----
9 values hashing to db9a8d4aa7bd32eedc7a1808f801baa5

query I rowsort
SELECT ( + col1 ) - - col2 * 49 * col1 FROM tab0 AS cor0
----
139148
365729
4850

query I rowsort
SELECT ALL - + 6 + col1 AS col1 FROM tab0 AS cor0
----
80
85
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col1 * - col0 col2 FROM tab2 cor0
----
-1343
-217
-4602

query I rowsort
SELECT + col1 * col0 + 27 AS col0 FROM tab1 AS cor0
----
105
1067
667

query I rowsort
SELECT ALL + 14 + + cor1.col2 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 5ae2bd83f81f991899cb411f09518787

query I rowsort
SELECT + col1 * ( - 52 ) AS col1 FROM tab1 AS cor0
----
-1352
-520
-676

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5388
SELECT ALL CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5388
SELECT ALL CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL + col0 * - col2 + col2 AS col1 FROM tab2 AS cor0
----
-162
-2002
-2964

query I rowsort
SELECT DISTINCT ( + 99 * - col1 ) AS col1 FROM tab0
----
-8514
-9009
-9603

query I rowsort
SELECT ALL col0 + + col2 FROM tab2 cor0
----
104
117
34

query I rowsort
SELECT DISTINCT - col2 - - cor0.col2 AS col1 FROM tab0 AS cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5393
SELECT ALL ( - col0 ) * col2 DIV col0 + col1 FROM tab1 AS cor0
----
-28
-47
-83

skipif mysql # not compatible
query I rowsort label-5393
SELECT ALL ( - col0 ) * col2 / col0 + col1 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT DISTINCT + - col1 * col2 * col2 - 88 * col1 AS col0 FROM tab1 AS cor0
----
-120952
-33370
-78104

query I rowsort
SELECT ALL - 46 * col0 AS col0 FROM tab1 AS cor0
----
-138
-2944
-3680

onlyif mysql # use DIV operator for integer division
query I rowsort label-5396
SELECT 52 + col1 DIV + col1 AS col2 FROM tab1 AS cor0
----
53
53
53

skipif mysql # not compatible
query I rowsort label-5396
SELECT 52 + col1 / + col1 AS col2 FROM tab1 AS cor0
----
53
53
53

query I rowsort
SELECT + col0 * 52 AS col0 FROM tab0
----
1248
1820
4628

query I rowsort
SELECT DISTINCT 55 - col2 FROM tab2
----
17
28
29

onlyif mysql # use DIV operator for integer division
query I rowsort label-5399
SELECT - 88 DIV + col1 - col1 FROM tab1
----
-18
-19
-29

skipif mysql # not compatible
query I rowsort label-5399
SELECT - 88 / + col1 - col1 FROM tab1
----
-18
-19
-29

query I rowsort
SELECT DISTINCT 91 * - ( col2 * + col2 ) - col0 FROM tab2
----
-131483
-61594
-66346

query I rowsort
SELECT + col2 + 11 + + col2 FROM tab1
----
119
125
203

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 4 * + tab0.col0 col1 FROM tab0
----
140
356
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-5403
SELECT + 31 DIV col2 + - col0 AS col1 FROM tab1 AS cor0
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-5403
SELECT + 31 / col2 + - col0 AS col1 FROM tab1 AS cor0
----
-3
-64
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-5404
SELECT + cor0.col2 + col2 DIV 38 FROM tab2 AS cor0
----
26
27
39

skipif mysql # not compatible
query I rowsort label-5404
SELECT + cor0.col2 + col2 / 38 FROM tab2 AS cor0
----
26
27
39

query I rowsort
SELECT + 54 + + col1 * - cor0.col0 AS col1 FROM tab1 AS cor0
----
-24
-586
-986

query I rowsort
SELECT - 23 AS col2 FROM tab0, tab1 cor0
----
9 values hashing to ce60bf4b0647d0fcb18a0562e351c52d

query I rowsort
SELECT - col2 * + cor0.col2 AS col2 FROM tab0 AS cor0
----
-1
-1089
-6724

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5408
SELECT - CAST( NULL AS SIGNED ) * + col0 - col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5408
SELECT - CAST ( NULL AS INTEGER ) * + col0 - col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - cor0.col0 + 20 + 49 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 3ffdf3f88ce4be3ca7739355f13cdc57

query I rowsort
SELECT ALL - + col2 - - col2 AS col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5411
SELECT ALL - cor1.col1 DIV 62 AS col0 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

skipif mysql # not compatible
query I rowsort label-5411
SELECT ALL - cor1.col1 / 62 AS col0 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

query I rowsort
SELECT + 27 * col0 AS col2 FROM tab0 AS cor0
----
2403
648
945

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5413
SELECT DISTINCT - + ( - col2 ) * - col0 * CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5413
SELECT DISTINCT - + ( - col2 ) * - col0 * CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0
----
NULL

query I rowsort
SELECT DISTINCT ( col1 ) * - cor0.col2 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT ALL 23 * + col2 AS col2 FROM tab2 AS cor0
----
598
621
874

query I rowsort
SELECT - col0 + 17 * col0 FROM tab2 AS cor0
----
112
1248
1264

query I rowsort
SELECT - 8 + - col2 FROM tab1 AS cor0
----
-104
-62
-65

onlyif mysql # use DIV operator for integer division
query I rowsort label-5418
SELECT ALL - ( + ( - cor0.col0 ) ) DIV + ( - 51 ) AS col1 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5418
SELECT ALL - ( + ( - cor0.col0 ) ) / + ( - 51 ) AS col1 FROM tab0 AS cor0
----
-1
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5419
SELECT ALL + 97 * col1 + + col2 DIV + col0 FROM tab2 AS cor0
----
1649
3010
5723

skipif mysql # not compatible
query I rowsort label-5419
SELECT ALL + 97 * col1 + + col2 / + col0 FROM tab2 AS cor0
----
1649
3010
5723

onlyif mysql # use DIV operator for integer division
query I rowsort label-5420
SELECT + col1 * col0 DIV col1 col0 FROM tab1 AS cor0
----
3
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5420
SELECT + col1 * col0 / col1 col0 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT - 77 * 23 AS col2 FROM tab2 cor0
----
-1771
-1771
-1771

query I rowsort
SELECT 29 * - col1 FROM tab0 AS cor0
----
-2494
-2639
-2813

onlyif mysql # use DIV operator for integer division
query I rowsort label-5423
SELECT DISTINCT + + col0 + 86 DIV col2 FROM tab1 AS cor0
----
4
65
80

skipif mysql # not compatible
query I rowsort label-5423
SELECT DISTINCT + + col0 + 86 / col2 FROM tab1 AS cor0
----
4
65
80

query I rowsort
SELECT col0 + + col0 * col0 AS col1 FROM tab0 AS cor0
----
1260
600
8010

query I rowsort
SELECT DISTINCT - - col1 + + col1 * col1 * col2 FROM tab1 AS cor0
----
16237
36530
5710

query I rowsort
SELECT DISTINCT - col0 + cor0.col0 * - 62 AS col1 FROM tab1 AS cor0
----
-189
-4032
-5040

onlyif mysql # use DIV operator for integer division
query I rowsort label-5427
SELECT DISTINCT + ( - col2 ) + ( - col2 ) DIV cor0.col2 AS col0 FROM tab0 cor0
----
-2
-34
-83

skipif mysql # not compatible
query I rowsort label-5427
SELECT DISTINCT + ( - col2 ) + ( - col2 ) / cor0.col2 AS col0 FROM tab0 cor0
----
-2
-34
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 * - col1 col0 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT ALL 57 + + col0 FROM tab1 AS cor0
----
121
137
60

query I rowsort
SELECT 49 * + cor0.col1 FROM tab1 AS cor0
----
1274
490
637

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * + col0 - 69 * col0 col2 FROM tab1 AS cor0
----
-129
-3776
-4480

query I rowsort
SELECT 85 * + 79 AS col1 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 9fd454378312819de190a8c5c7fa865d

query I rowsort
SELECT + col2 * col1 + 18 AS col2 FROM tab0 AS cor0
----
115
2856
7480

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5434
SELECT DISTINCT + col0 * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5434
SELECT DISTINCT + col0 * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - - col2 + col0 + col0 * - col0 AS col0 FROM tab2 AS cor0
----
-15
-5980
-6124

query I rowsort
SELECT ALL col0 * + ( - col2 ) + cor0.col0 AS col0 FROM tab0 AS cor0
----
-7209
-768
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 87 + col2 col0 FROM tab0 AS cor0
----
120
169
88

query I rowsort
SELECT DISTINCT + + col1 * col0 + + col1 + col0 * - col1 AS col1 FROM tab2 AS cor0
----
17
31
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-5439
SELECT DISTINCT - col2 DIV - 10 AS col1 FROM tab0
----
0
3
8

skipif mysql # not compatible
query I rowsort label-5439
SELECT DISTINCT - col2 / - 10 AS col1 FROM tab0
----
0
3
8

onlyif mysql # use DIV operator for integer division
query I rowsort label-5440
SELECT + 92 DIV cor0.col2 AS col2 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-5440
SELECT + 92 / cor0.col2 AS col2 FROM tab1 AS cor0
----
0
1
1

query I rowsort
SELECT + - 87 + col1 * col2 AS col1 FROM tab0 AS cor0
----
10
2751
7375

query I rowsort
SELECT DISTINCT - col0 * - col1 + + col2 AS col1 FROM tab1 AS cor0
----
1136
132
697

query I rowsort
SELECT ALL - 39 * col1 AS col0 FROM tab2 cor0
----
-1209
-2301
-663

onlyif mysql # use DIV operator for integer division
query I rowsort label-5444
SELECT 29 + + col1 DIV - col0 FROM tab0 AS cor0
----
26
27
28

skipif mysql # not compatible
query I rowsort label-5444
SELECT 29 + + col1 / - col0 FROM tab0 AS cor0
----
26
27
28

query I rowsort
SELECT DISTINCT + - 92 * cor0.col2 + - col1 FROM tab1 AS cor0
----
-4994
-5254
-8845

query I rowsort
SELECT - col0 + - col1 - + col2 AS col2 FROM tab2 AS cor0
----
-134
-163
-65

query I rowsort
SELECT 6 + col2 * - cor0.col0 + col0 * col1 FROM tab0 AS cor0
----
1278
3366
807

query I rowsort
SELECT - col2 * + col2 * cor0.col1 FROM tab1 AS cor0
----
-119808
-32490
-75816

query I rowsort
SELECT - col1 * col1 + - col0 + - col0 AS col2 FROM tab2 AS cor0
----
-3637
-447
-975

query I rowsort
SELECT - col0 + + col0 + - col0 AS col0 FROM tab0 AS cor0
----
-24
-35
-89

query IIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0 WHERE NULL = ( NULL )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-5452
SELECT DISTINCT col2 * - col0 DIV - col0 AS col0 FROM tab2
----
26
27
38

skipif mysql # not compatible
query I rowsort label-5452
SELECT DISTINCT col2 * - col0 / - col0 AS col0 FROM tab2
----
26
27
38

query I rowsort
SELECT DISTINCT + 34 AS col2 FROM tab0
----
34

query I rowsort
SELECT + ( - col0 ) * col1 AS col1 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT ALL - cor0.col0 * - cor0.col1 * col1 + - cor0.col1 * col2 FROM tab0 AS cor0
----
174666
329218
729547

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5456
SELECT ALL CAST( 26 AS SIGNED ) FROM tab0 AS cor0
----
26
26
26

skipif mysql # not compatible
query I rowsort label-5456
SELECT ALL CAST ( 26 AS INTEGER ) FROM tab0 AS cor0
----
26
26
26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5457
SELECT ALL - CAST( col2 AS SIGNED ) + - col0 AS col0 FROM tab1 cor0
----
-121
-176
-57

skipif mysql # not compatible
query I rowsort label-5457
SELECT ALL - CAST ( col2 AS INTEGER ) + - col0 AS col0 FROM tab1 cor0
----
-121
-176
-57

query I rowsort
SELECT DISTINCT + ( 6 ) * - col0 + + col0 FROM tab0 AS cor0
----
-120
-175
-445

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5459
SELECT + CAST( + col0 AS SIGNED ) * + col0 * col0 AS col2 FROM tab2 AS cor0
----
343
474552
493039

skipif mysql # not compatible
query I rowsort label-5459
SELECT + CAST ( + col0 AS INTEGER ) * + col0 * col0 AS col2 FROM tab2 AS cor0
----
343
474552
493039

query I rowsort
SELECT + col2 * 63 AS col1 FROM tab0 cor0
----
2079
5166
63

query I rowsort
SELECT ALL - 65 + col1 AS col0 FROM tab1
----
-39
-52
-55

query I rowsort
SELECT DISTINCT 43 + + col0 FROM tab0
----
132
67
78

query I rowsort
SELECT ALL - ( + col2 ) + - col0 * - col1 + col2 AS col2 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT ALL + 40 + - col2 + col2 * col2 FROM tab0
----
1096
40
6682

query I rowsort
SELECT col1 + - cor0.col1 + - col0 AS col2 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT - ( - 16 * col2 ) + col0 * + col1 + col1 FROM tab1
----
1562
2589
968

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5467
SELECT DISTINCT - - CAST( NULL AS SIGNED ) * cor0.col2 + col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5467
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) * cor0.col2 + col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + 58 - 91 * + col0 AS col1 FROM tab2 AS cor0
----
-579
-7040
-7131

onlyif mysql # use DIV operator for integer division
query I rowsort label-5469
SELECT ALL tab2.col0 + 9 * col1 DIV col0 AS col1 FROM tab2
----
46
80
84

skipif mysql # not compatible
query I rowsort label-5469
SELECT ALL tab2.col0 + 9 * col1 / col0 AS col1 FROM tab2
----
46
80
84

onlyif mysql # use DIV operator for integer division
query I rowsort label-5470
SELECT col1 DIV - 95 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5470
SELECT col1 / - 95 FROM tab2
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5471
SELECT ALL + cor0.col1 DIV - col1 - - col0 AS col1 FROM tab0 AS cor0
----
23
34
88

skipif mysql # not compatible
query I rowsort label-5471
SELECT ALL + cor0.col1 / - col1 - - col0 AS col1 FROM tab0 AS cor0
----
23
34
88

query I rowsort
SELECT - col2 * col0 + + tab2.col1 FROM tab2
----
-158
-1969
-2985

onlyif mysql # use DIV operator for integer division
query I rowsort label-5473
SELECT - col2 * - col2 DIV col2 - + tab1.col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5473
SELECT - col2 * - col2 / col2 - + tab1.col2 FROM tab1
----
0
0
0

query I rowsort
SELECT col1 * col1 * col1 FROM tab2
----
205379
29791
4913

onlyif mysql # use DIV operator for integer division
query I rowsort label-5475
SELECT col2 DIV col0 - col2 FROM tab2
----
-24
-26
-38

skipif mysql # not compatible
query I rowsort label-5475
SELECT col2 / col0 - col2 FROM tab2
----
-24
-26
-38

onlyif mysql # use DIV operator for integer division
query I rowsort label-5476
SELECT ALL col1 - col1 DIV col1 AS col0 FROM tab2
----
16
30
58

skipif mysql # not compatible
query I rowsort label-5476
SELECT ALL col1 - col1 / col1 AS col0 FROM tab2
----
16
30
58

query I rowsort
SELECT col0 FROM tab0 WHERE ( NULL ) < NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-5478
SELECT - tab0.col2 * col0 DIV col1 + col0 AS col1 FROM tab0
----
15
35
9

skipif mysql # not compatible
query I rowsort label-5478
SELECT - tab0.col2 * col0 / col1 + col0 AS col1 FROM tab0
----
15
35
9

query I rowsort
SELECT - tab2.col1 + tab2.col0 FROM tab2
----
-24
19
62

query I rowsort
SELECT ALL + cor0.col2 AS col1 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT ALL - + col0 * col2 + - col1 FROM tab1 AS cor0
----
-188
-3658
-7693

query I rowsort
SELECT col1 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IN ( col2 ) OR NOT ( - col1 ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL col1 + - 15 * col1 FROM tab1 AS cor0
----
-140
-182
-364

query I rowsort
SELECT + 98 FROM tab2, tab2 cor0
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * ( + col1 ) col0 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT ALL - col1 * + 44 * col0 AS col1 FROM tab1 AS cor0
----
-28160
-3432
-45760

skipif mysql # not compatible
query I rowsort
SELECT col2 * + CAST ( 98 AS REAL ) FROM tab1 AS cor0
----
5292
5586
9408

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5488
SELECT + cor0.col2 * CAST( NULL AS DECIMAL ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5488
SELECT + cor0.col2 * CAST ( NULL AS REAL ) FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col1 * col0 * cor0.col0 FROM tab2 AS cor0
----
-106097
-1519
-358956

query I rowsort
SELECT + 36 * + col2 + col1 AS col0 FROM tab1 AS cor0
----
1970
2062
3469

query I rowsort
SELECT + col0 * ( col0 ) * + col2 AS col2 FROM tab1
----
233472
486
614400

query I rowsort
SELECT + tab1.col0 + + ( + col1 ) * col0 - + ( tab1.col1 ) AS col2 FROM tab1
----
1107
55
694

query I rowsort
SELECT ALL - col1 - + ( - col0 ) * col1 FROM tab2
----
1326
186
4543

query I rowsort
SELECT ALL - cor0.col2 * 43 AS col0 FROM tab2 AS cor0
----
-1118
-1161
-1634

query I rowsort
SELECT + col0 - col2 * col2 AS col0 FROM tab2 AS cor0
----
-1365
-598
-722

query I rowsort
SELECT ALL 7 * + col0 AS col2 FROM tab1 AS cor0
----
21
448
560

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5497
SELECT ALL - + CAST( NULL AS DECIMAL ) * + 22 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5497
SELECT ALL - + CAST ( NULL AS REAL ) * + 22 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 * 0 + - col2 * + col0 FROM tab0
----
-35
-7298
-792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - col2 col0 FROM tab1
----
162
3648
7680

query I rowsort
SELECT DISTINCT + - cor0.col1 * col2 + col2 + col0 FROM tab2 AS cor0
----
-1430
-529
-803

query I rowsort
SELECT - 77 * cor0.col0 + + col1 + col0 * col1 FROM tab0 AS cor0
----
1337
302
797

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 53 col2 FROM tab2 cor0
----
53
53
53

query I rowsort
SELECT ALL + - col2 + col1 + - col0 * col1 AS col0 FROM tab1 AS cor0
----
-106
-1123
-687

query I rowsort
SELECT - col1 * col2 + ( 11 ) FROM tab0 cor0
----
-2827
-7451
-86

query I rowsort
SELECT ALL - + 84 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 02f1688b8610806ca28739b1735f6ae4

query I rowsort
SELECT DISTINCT tab2.col2 + - tab2.col1 AS col0 FROM tab2, tab0 AS cor0
----
-33
-4
21

query I rowsort
SELECT - 34 * - col1 AS col2 FROM tab2
----
1054
2006
578

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5508
SELECT ALL CAST( NULL AS SIGNED ) + + 30 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5508
SELECT ALL CAST ( NULL AS INTEGER ) + + 30 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5509
SELECT CAST( col1 AS SIGNED ) * + col0 * tab0.col2 AS col0 FROM tab0
----
3395
664118
68112

skipif mysql # not compatible
query I rowsort label-5509
SELECT CAST ( col1 AS INTEGER ) * + col0 * tab0.col2 AS col0 FROM tab0
----
3395
664118
68112

query I rowsort
SELECT col1 * col0 + col2 AS col1 FROM tab1
----
1136
132
697

query I rowsort
SELECT DISTINCT + 70 * col2 AS col2 FROM tab1
----
3780
3990
6720

query I rowsort
SELECT ALL + 0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT 89 * + col1 FROM tab0 cor0
----
7654
8099
8633

query I rowsort
SELECT + - 8 * + 61 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to cca830f2d71a8199915c83a91eaec796

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab0.col0 * + cor0.col1 col0 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 2e5239e07239fc5e8b7ad998a3c285e1

query I rowsort
SELECT cor0.col1 + + col2 * - cor0.col2 FROM tab2 AS cor0
----
-1427
-617
-698

onlyif mysql # use DIV operator for integer division
query I rowsort label-5517
SELECT - - col2 DIV + ( - col0 ) FROM tab0 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5517
SELECT - - col2 / + ( - col0 ) FROM tab0 cor0
----
-1
0
0

query I rowsort
SELECT ALL cor0.col0 + 56 * - col0 AS col2 FROM tab0 AS cor0
----
-1320
-1925
-4895

query I rowsort
SELECT DISTINCT + + col0 + - cor0.col0 * - 7 FROM tab1 AS cor0
----
24
512
640

query I rowsort
SELECT DISTINCT col0 + + col0 * - 10 AS col1 FROM tab2 cor0
----
-63
-702
-711

query I rowsort
SELECT - col2 + ( 90 ) FROM tab0 AS cor0
----
57
8
89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5522
SELECT ALL - - col1 * - CAST( + col1 AS SIGNED ) - cor0.col0 * - col2 FROM tab0 AS cor0
----
-6604
-9374
-983

skipif mysql # not compatible
query I rowsort label-5522
SELECT ALL - - col1 * - CAST ( + col1 AS INTEGER ) - cor0.col0 * - col2 FROM tab0 AS cor0
----
-6604
-9374
-983

query I rowsort
SELECT ALL - + col2 * 8 FROM tab2 AS cor0
----
-208
-216
-304

query I rowsort
SELECT ALL - col2 * col0 + - ( + cor0.col0 ) AS col1 FROM tab2 AS cor0
----
-196
-2106
-3081

query I rowsort
SELECT + cor0.col2 + cor0.col1 AS col2 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT DISTINCT - cor0.col2 * col1 + + col1 AS col0 FROM tab2 cor0
----
-1475
-629
-806

query I rowsort
SELECT DISTINCT - - col1 + 47 AS col1 FROM tab1 cor0
----
57
60
73

onlyif mysql # use DIV operator for integer division
query I rowsort label-5528
SELECT 72 DIV col1 AS col1 FROM tab1
----
2
5
7

skipif mysql # not compatible
query I rowsort label-5528
SELECT 72 / col1 AS col1 FROM tab1
----
2
5
7

query I rowsort
SELECT + col1 + 0 AS col2 FROM tab1 AS cor0
----
10
13
26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5530
SELECT ALL + CAST( - col1 AS SIGNED ) FROM tab1 cor0
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-5530
SELECT ALL + CAST ( - col1 AS INTEGER ) FROM tab1 cor0
----
-10
-13
-26

onlyif mysql # use DIV operator for integer division
query I rowsort label-5531
SELECT + col2 + 6 + - col0 DIV + col2 AS col1 FROM tab0 AS cor0
----
-28
39
87

skipif mysql # not compatible
query I rowsort label-5531
SELECT + col2 + 6 + - col0 / + col2 AS col1 FROM tab0 AS cor0
----
-28
39
87

query I rowsort
SELECT + col0 * 44 + cor0.col0 + col2 FROM tab1 cor0
----
189
2937
3696

query I rowsort
SELECT DISTINCT + 74 * + col1 AS col2 FROM tab2 AS cor0
----
1258
2294
4366

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 - col0 * + cor0.col0 col1 FROM tab1 AS cor0
----
-4039
-6304
45

query I rowsort
SELECT ALL - + col1 + 76 * col1 FROM tab2 AS cor0
----
1275
2325
4425

query I rowsort
SELECT DISTINCT + - 83 - col2 * col1 * 32 FROM tab0 AS cor0
----
-238867
-3187
-90899

query I rowsort
SELECT ALL 55 * - col0 FROM tab1 AS cor0
----
-165
-3520
-4400

query I rowsort
SELECT - col1 * - 93 - col2 AS col2 FROM tab2 AS cor0
----
1543
2856
5461

onlyif mysql # use DIV operator for integer division
query I rowsort label-5539
SELECT DISTINCT - ( + col1 ) DIV + col0 FROM tab1 AS cor0
----
-8
0

skipif mysql # not compatible
query I rowsort label-5539
SELECT DISTINCT - ( + col1 ) / + col0 FROM tab1 AS cor0
----
-8
0

query I rowsort
SELECT ALL + col0 * col2 + - ( + col0 ) FROM tab2 cor0
----
182
1950
2923

query I rowsort
SELECT DISTINCT ( 82 ) FROM tab1, tab1 AS cor0, tab0 AS cor1
----
82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5542
SELECT CAST( 17 AS SIGNED ) + + col0 + - 69 FROM tab1
----
-49
12
28

skipif mysql # not compatible
query I rowsort label-5542
SELECT CAST ( 17 AS INTEGER ) + + col0 + - 69 FROM tab1
----
-49
12
28

onlyif mysql # use DIV operator for integer division
query I rowsort label-5543
SELECT ALL ( - col1 ) DIV + col1 + 86 FROM tab2
----
85
85
85

skipif mysql # not compatible
query I rowsort label-5543
SELECT ALL ( - col1 ) / + col1 + 86 FROM tab2
----
85
85
85

query I rowsort
SELECT ALL - col1 + + col1 * + 72 FROM tab0 AS cor0
----
6106
6461
6887

query I rowsort
SELECT + col0 * - col2 + 49 FROM tab0 AS cor0
----
-7249
-743
14

query I rowsort
SELECT ALL - 78 * col1 + - cor0.col2 FROM tab2 cor0
----
-1364
-2445
-4628

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 AS cor0 CROSS JOIN tab2, tab0 cor1, tab1 AS cor2
----
3645 values hashing to a1a9b1c1e9ca8f59e89e834a7cdebbd0

query I rowsort
SELECT ( 33 ) * - col0 FROM tab1
----
-2112
-2640
-99

query I rowsort
SELECT ALL 6 * + col0 FROM tab2 cor0
----
42
468
474

query I rowsort
SELECT DISTINCT + ( - 59 ) * col0 FROM tab1 AS cor0
----
-177
-3776
-4720

query I rowsort
SELECT DISTINCT + tab2.col1 * - tab2.col1 AS col1 FROM tab2
----
-289
-3481
-961

query I rowsort
SELECT ALL + 73 + 91 AS col0 FROM tab1 AS cor0
----
164
164
164

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5553
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - cor0.col0 + col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5553
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - cor0.col0 + col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + col1 + + 91 AS col1 FROM tab1 AS cor0
----
101
104
117

query I rowsort
SELECT ALL - + col0 + - col0 * - col0 AS col1 FROM tab2 cor0
----
42
6006
6162

onlyif mysql # use DIV operator for integer division
query I rowsort label-5556
SELECT ALL 55 DIV + col0 AS col0 FROM tab1 AS cor0
----
0
0
18

skipif mysql # not compatible
query I rowsort label-5556
SELECT ALL 55 / + col0 AS col0 FROM tab1 AS cor0
----
0
0
18

query I rowsort
SELECT ALL col0 + col1 * - col1 FROM tab0 AS cor0
----
-7372
-8192
-9374

query I rowsort
SELECT 37 * col1 AS col0 FROM tab1 AS cor0
----
370
481
962

query I rowsort
SELECT DISTINCT 44 AS col0 FROM tab2 cor0
----
44

query I rowsort
SELECT + - 72 + + cor0.col1 FROM tab2 AS cor0
----
-13
-41
-55

query I rowsort
SELECT ALL - tab1.col1 + cor0.col1 FROM tab0, tab1 AS cor0 CROSS JOIN tab1
----
27 values hashing to 17c10b049c4bab241687e228247609ac

query I rowsort
SELECT - + cor0.col0 * + col1 + col2 AS col1 FROM tab2 AS cor0
----
-1305
-190
-4576

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5563
SELECT + cor0.col2 * + CAST( 92 AS SIGNED ) FROM tab1 AS cor0
----
4968
5244
8832

skipif mysql # not compatible
query I rowsort label-5563
SELECT + cor0.col2 * + CAST ( 92 AS INTEGER ) FROM tab1 AS cor0
----
4968
5244
8832

query I rowsort
SELECT ALL col0 + ( col0 ) AS col0 FROM tab1 AS cor0
----
128
160
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 40 + cor0.col1 col2 FROM tab1, tab1 AS cor0
----
-14
-27
-30

query I rowsort
SELECT DISTINCT + + col2 * - ( col2 ) FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT ALL ( 59 ) FROM tab2, tab2 AS cor0
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

onlyif mysql # use DIV operator for integer division
query I rowsort label-5568
SELECT + col1 DIV col0 + + col0 AS col1 FROM tab2
----
11
78
79

skipif mysql # not compatible
query I rowsort label-5568
SELECT + col1 / col0 + + col0 AS col1 FROM tab2
----
11
78
79

query I rowsort
SELECT + col2 + + 21 FROM tab0
----
103
22
54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + ( + 36 ) col2 FROM tab2
----
62
63
74

query I rowsort
SELECT cor1.col0 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT + 65 * + cor0.col0 FROM tab2 AS cor0
----
455
5070
5135

query I rowsort
SELECT + 84 * tab1.col2 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to a0722a95fc6c19bdf3fbe30c59084b3d

query I rowsort
SELECT ALL col1 * 77 FROM tab2
----
1309
2387
4543

query I rowsort
SELECT ALL + ( - col2 ) + ( cor0.col0 ) FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT DISTINCT - cor0.col1 * cor0.col0 FROM tab1 cor0
----
-1040
-640
-78

query I rowsort
SELECT + ( - cor0.col0 ) * col1 AS col0 FROM tab0 cor0
----
-2064
-3395
-8099

query I rowsort
SELECT - + ( - col1 ) * + col2 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT ALL - ( ( col0 ) ) * + col0 FROM tab0
----
-1225
-576
-7921

query I rowsort
SELECT DISTINCT 57 * col0 AS col0 FROM tab0
----
1368
1995
5073

query I rowsort
SELECT - + cor0.col1 * col1 AS col1 FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT - - cor0.col1 + 33 * + cor0.col1 * col0 AS col1 FROM tab0 AS cor0
----
112132
267358
68198

query I rowsort
SELECT + cor0.col2 + - 75 FROM tab2 AS cor0
----
-37
-48
-49

query I rowsort
SELECT ALL - col1 + + ( col2 ) * + col1 AS col2 FROM tab2 cor0
----
1475
629
806

onlyif mysql # use DIV operator for integer division
query I rowsort label-5585
SELECT + col1 DIV col1 + col1 AS col2 FROM tab2 AS cor0
----
18
32
60

skipif mysql # not compatible
query I rowsort label-5585
SELECT + col1 / col1 + col1 AS col2 FROM tab2 AS cor0
----
18
32
60

query I rowsort
SELECT - cor0.col2 * col0 + + col1 FROM tab1 cor0
----
-136
-3638
-7667

query I rowsort
SELECT - + col0 * col1 + - col0 FROM tab2 AS cor0
----
-1422
-224
-4680

query I rowsort
SELECT ALL - - 65 AS col2 FROM tab0 AS cor0
----
65
65
65

query I rowsort
SELECT - col2 * + col2 + + col2 * + 41 AS col0 FROM tab0 AS cor0
----
-3362
264
40

query I rowsort
SELECT ALL - col0 + - col1 * 80 FROM tab2 AS cor0
----
-1439
-2487
-4798

query I rowsort
SELECT col1 + col2 * + ( 31 ) FROM tab2 AS cor0
----
1195
865
868

query I rowsort
SELECT 11 * col1 FROM tab1 AS cor0
----
110
143
286

query I rowsort
SELECT - - 14 * col1 AS col2 FROM tab2 AS cor0
----
238
434
826

query I rowsort
SELECT ALL col1 * - 26 AS col1 FROM tab0 AS cor0
----
-2236
-2366
-2522

query I rowsort
SELECT ALL - col0 * + 72 + 96 * col1 AS col0 FROM tab1 AS cor0
----
-3648
-4512
2280

query I rowsort
SELECT DISTINCT col1 - 57 AS col0 FROM tab2 cor0
----
-26
-40
2

query I rowsort
SELECT col2 + + 34 * + col1 FROM tab2 AS cor0
----
1081
2032
616

onlyif mysql # use DIV operator for integer division
query I rowsort label-5598
SELECT DISTINCT + col1 DIV ( col1 ) AS col1 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5598
SELECT DISTINCT + col1 / ( col1 ) AS col1 FROM tab1 AS cor0
----
1

query I rowsort
SELECT - cor0.col1 * ( - ( cor0.col2 ) ) FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT ALL - 11 * + 22 AS col2 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 63f83bc6733bdf1f5753699a70ea7618

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5601
SELECT DISTINCT + col2 / - CAST( NULL AS SIGNED ) + - col0 + - col0 * - col2 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5601
SELECT DISTINCT + col2 / - CAST ( NULL AS INTEGER ) + - col0 + - col0 * - col2 AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT cor0.col2 * - 47 + + 34 AS col2 FROM tab0 cor0
----
-13
-1517
-3820

query I rowsort
SELECT ALL - col2 * col2 - + col0 FROM tab1 AS cor0
----
-2919
-3313
-9296

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + col1 * + col1 col2 FROM tab1 AS cor0
----
164
249
679

query I rowsort
SELECT ALL col1 - + tab0.col2 AS col1 FROM tab0
----
53
9
96

query I rowsort
SELECT col0 FROM tab1 WHERE NULL IN ( col1 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-5607
SELECT + col2 * col1 DIV col0 + - col1 + - col2 * - tab0.col1 * - col0 FROM tab0
----
-3490
-664126
-68080

skipif mysql # not compatible
query I rowsort label-5607
SELECT + col2 * col1 / col0 + - col1 + - col2 * - tab0.col1 * - col0 FROM tab0
----
-3490
-664126
-68080

query I rowsort
SELECT DISTINCT tab0.col1 - - col0 AS col0 FROM tab0
----
110
132
180

query I rowsort
SELECT DISTINCT + col0 * + col2 - + col0 FROM tab2
----
182
1950
2923

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 * col2 NOT IN ( + col0 * - col1 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-5611
SELECT DISTINCT col1 + col1 DIV col0 AS col2 FROM tab1
----
10
13
34

skipif mysql # not compatible
query I rowsort label-5611
SELECT DISTINCT col1 + col1 / col0 AS col2 FROM tab1
----
10
13
34

query I rowsort
SELECT + col1 * tab2.col2 - col2 FROM tab2
----
1508
608
810

query I rowsort
SELECT + 11 + col2 FROM tab0 cor0
----
12
44
93

query I rowsort
SELECT ALL + col0 + col2 * + col1 * col1 - - tab0.col2 FROM tab0
----
244125
679213
9445

onlyif mysql # use DIV operator for integer division
query I rowsort label-5615
SELECT DISTINCT - col1 + + col0 DIV + col1 + - col1 AS col0 FROM tab0
----
-172
-182
-194

skipif mysql # not compatible
query I rowsort label-5615
SELECT DISTINCT - col1 + + col0 / + col1 + - col1 AS col0 FROM tab0
----
-172
-182
-194

query I rowsort
SELECT ALL - col1 * + tab0.col2 + + col2 + col1 AS col2 FROM tab0
----
-2719
-7289
1

query I rowsort
SELECT DISTINCT tab1.col2 * - col0 * - col2 FROM tab1
----
207936
737280
8748

query I rowsort
SELECT tab2.col0 * + col1 + col1 FROM tab2
----
1360
248
4661

onlyif mysql # use DIV operator for integer division
query I rowsort label-5619
SELECT - col1 DIV - tab0.col2 FROM tab0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-5619
SELECT - col1 / - tab0.col2 FROM tab0
----
1
2
97

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col2 + col0 * - col2 + - col0 * + col1 * - col2 ) < + col2 / col1
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

query I rowsort
SELECT DISTINCT + + ( col1 ) + 29 + + col2 AS col2 FROM tab0 AS cor0
----
127
148
202

onlyif mysql # use DIV operator for integer division
query I rowsort label-5622
SELECT - - col2 * + col0 DIV - col0 + col0 AS col1 FROM tab2 AS cor0
----
-20
41
52

skipif mysql # not compatible
query I rowsort label-5622
SELECT - - col2 * + col0 / - col0 + col0 AS col1 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT DISTINCT + + col1 + - col0 * ( + col1 ) FROM tab0 AS cor0
----
-1978
-3298
-8008

query I rowsort
SELECT - + cor0.col0 * col1 FROM tab0 AS cor0
----
-2064
-3395
-8099

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5625
SELECT - - col2 * - col2 + + CAST( ( col0 ) AS SIGNED ) * cor0.col0 FROM tab2 AS cor0
----
-680
4797
5408

skipif mysql # not compatible
query I rowsort label-5625
SELECT - - col2 * - col2 + + CAST ( ( col0 ) AS INTEGER ) * cor0.col0 FROM tab2 AS cor0
----
-680
4797
5408

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 14 + + col1 col2 FROM tab1 cor0
----
24
27
40

query I rowsort
SELECT DISTINCT - - ( col0 ) * ( + col2 ) + + cor0.col2 FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT ALL + col2 * + cor0.col1 * col0 FROM tab0 AS cor0
----
3395
664118
68112

query I rowsort
SELECT DISTINCT + - cor0.col2 + + col1 * + col1 FROM tab2 cor0
----
251
3455
934

query I rowsort
SELECT - col0 * + col0 + col2 * + cor0.col2 AS col1 FROM tab2 AS cor0
----
-4797
-5408
680

query I rowsort
SELECT 95 + - col2 FROM tab0
----
13
62
94

query I rowsort
SELECT - 51 * - ( col0 ) + + col2 + col1 FROM tab2
----
4063
4084
415

query I rowsort
SELECT DISTINCT - col2 + - ( col0 + + col0 ) AS col1 FROM tab1
----
-185
-256
-60

query I rowsort
SELECT DISTINCT ( - 7 ) + col2 FROM tab0
----
-6
26
75

query I rowsort
SELECT DISTINCT col0 * col2 * cor0.col0 FROM tab2 cor0
----
1323
158184
237158

query I rowsort
SELECT ALL - - col1 * col1 + - 76 FROM tab0 AS cor0
----
7320
8205
9333

query I rowsort
SELECT ALL + col1 + col2 * col0 + col1 FROM tab2 AS cor0
----
2146
251
3036

query I rowsort
SELECT 66 AS col2 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 897b6122ac98340b78905f39d81897fc

query I rowsort
SELECT ALL + + cor0.col2 + + col0 FROM tab1 AS cor0
----
121
176
57

skipif mysql # not compatible
query I rowsort
SELECT ALL tab1.col1 - CAST ( + 70 AS REAL ) FROM tab1
----
-44
-57
-60

query I rowsort
SELECT DISTINCT cor2.col2 * 11 FROM tab2, tab1 cor0, tab0 cor1, tab1 AS cor2
----
1056
594
627

query I rowsort
SELECT - col0 + + 63 FROM tab1
----
-1
-17
60

query I rowsort
SELECT DISTINCT + cor0.col2 + - ( col0 ) AS col0 FROM tab1 AS cor0
----
-7
16
51

onlyif mysql # use DIV operator for integer division
query I rowsort label-5644
SELECT + col2 DIV - 86 + col1 FROM tab2 AS cor0
----
17
31
59

skipif mysql # not compatible
query I rowsort label-5644
SELECT + col2 / - 86 + col1 FROM tab2 AS cor0
----
17
31
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-5645
SELECT col1 * ( - col2 ) DIV - 75 FROM tab2 AS cor0
----
11
20
8

skipif mysql # not compatible
query I rowsort label-5645
SELECT col1 * ( - col2 ) / - 75 FROM tab2 AS cor0
----
11
20
8

query IIIIII rowsort
SELECT ALL * FROM tab0, tab1 AS cor0 WHERE NOT NULL <> NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-5647
SELECT ALL ( col2 ) * col1 DIV 26 FROM tab2 AS cor0
----
24
32
59

skipif mysql # not compatible
query I rowsort label-5647
SELECT ALL ( col2 ) * col1 / 26 FROM tab2 AS cor0
----
24
32
59

query I rowsort
SELECT 40 - - cor0.col1 AS col2 FROM tab1 AS cor0
----
50
53
66

query I rowsort
SELECT 74 * col2 AS col2 FROM tab2
----
1924
1998
2812

query I rowsort
SELECT + ( - col0 ) * col2 - + ( 94 ) FROM tab2 AS cor0
----
-2122
-283
-3096

query I rowsort
SELECT ALL + - ( + col2 ) AS col1 FROM tab2 cor0
----
-26
-27
-38

query I rowsort
SELECT - - 58 + - 91 AS col2 FROM tab1 AS cor0
----
-33
-33
-33

query I rowsort
SELECT - 71 FROM tab0, tab1 AS cor0, tab2 cor1
----
27 values hashing to 3907e0aa4f29c002120742c4abb3e23a

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab2 AS cor2
----
3645 values hashing to 5d28fbab8377f7a8b08a31395cb11d94

query I rowsort
SELECT DISTINCT + 6 * tab1.col2 * - tab1.col0 + + col2 FROM tab1
----
-21831
-45984
-918

query I rowsort
SELECT - col2 * tab0.col1 * col1 AS col2 FROM tab0
----
-244068
-679042
-9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col2 + 5 col0 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
38
6
87

onlyif mysql # use DIV operator for integer division
query I rowsort label-5658
SELECT - + col0 DIV col1 + - cor0.col2 col1 FROM tab1 AS cor0
----
-102
-54
-63

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5658
SELECT - + col0 / col1 + - cor0.col2 col1 FROM tab1 AS cor0
----
-102
-54
-63

onlyif mysql # use DIV operator for integer division
query I rowsort label-5659
SELECT + col1 * + cor0.col0 + col1 DIV 67 FROM tab0 AS cor0
----
2065
3396
8100

skipif mysql # not compatible
query I rowsort label-5659
SELECT + col1 * + cor0.col0 + col1 / 67 FROM tab0 AS cor0
----
2065
3396
8100

query I rowsort
SELECT DISTINCT + 36 * - 85 * cor0.col1 + + cor0.col2 FROM tab2 cor0
----
-180514
-51982
-94833

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + CAST ( col1 AS REAL ) + col1 + + col2 AS col0 FROM tab0 AS cor0
----
195
205
264

onlyif mysql # use DIV operator for integer division
query I rowsort label-5662
SELECT ALL + - 89 * col1 * cor0.col1 - + col0 DIV - col0 AS col0 FROM tab1 AS cor0
----
-15040
-60163
-8899

skipif mysql # not compatible
query I rowsort label-5662
SELECT ALL + - 89 * col1 * cor0.col1 - + col0 / - col0 AS col0 FROM tab1 AS cor0
----
-15040
-60163
-8899

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5663
SELECT DISTINCT CAST( NULL AS SIGNED ) + 23 + cor0.col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5663
SELECT DISTINCT CAST ( NULL AS INTEGER ) + 23 + cor0.col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ( - col2 ) + col2 AS col1 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT ALL + + col0 + cor0.col0 FROM tab2 AS cor0
----
14
156
158

query I rowsort
SELECT col1 * + col0 * 4 AS col2 FROM tab0
----
13580
32396
8256

query I rowsort
SELECT ALL - - col0 * col0 AS col2 FROM tab2 cor0
----
49
6084
6241

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5668
SELECT ALL + CAST( NULL AS SIGNED ) - 83 AS col2 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-5668
SELECT ALL + CAST ( NULL AS INTEGER ) - 83 AS col2 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT ALL - 43 AS col1 FROM tab1, tab2 AS cor0, tab0 cor1
----
27 values hashing to 2f72bd9cab68c8d8c38874510a290a3c

query I rowsort
SELECT 27 FROM tab0, tab0 cor0, tab1 AS cor1
----
27 values hashing to 1a3cef5c33b8f87ffeded378fd207753

query I rowsort
SELECT DISTINCT + ( 17 ) + cor1.col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
106
41
52

query I rowsort
SELECT - 11 + col0 FROM tab2 AS cor0
----
-4
67
68

query I rowsort
SELECT - - ( cor0.col0 ) + + ( + cor0.col0 ) FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT - 12 AS col2 FROM tab2 AS cor0
----
-12
-12
-12

onlyif mysql # use DIV operator for integer division
query I rowsort label-5675
SELECT + ( - cor0.col0 ) DIV 84 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

skipif mysql # not compatible
query I rowsort label-5675
SELECT + ( - cor0.col0 ) / 84 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

query I rowsort
SELECT ALL col1 + ( col1 ) * - col0 FROM tab2 cor0
----
-1326
-186
-4543

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 + 95 col2 FROM tab1 AS cor0
----
15
31
92

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5678
SELECT ALL - cor0.col2 * CAST( - 89 AS SIGNED ) * cor0.col2 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to af962983c4f5e451f673fd42c53fd943

skipif mysql # not compatible
query I rowsort label-5678
SELECT ALL - cor0.col2 * CAST ( - 89 AS INTEGER ) * cor0.col2 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to af962983c4f5e451f673fd42c53fd943

query I rowsort
SELECT ALL + + col2 * - col0 + + 45 FROM tab0 AS cor0
----
-7253
-747
10

query I rowsort
SELECT DISTINCT - col2 - + col2 * + col2 AS col2 FROM tab2 AS cor0
----
-1482
-702
-756

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 * - 57 * - 10 + col0 col2 FROM tab1 AS cor0
----
14823
5764
7490

query I rowsort
SELECT ALL + col1 + 85 FROM tab2 cor0
----
102
116
144

query I rowsort
SELECT ALL + col0 * col1 + - col1 AS col0 FROM tab0 AS cor0
----
1978
3298
8008

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5684
SELECT + - CAST( NULL AS SIGNED ) - - 61 * - col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5684
SELECT + - CAST ( NULL AS INTEGER ) - - 61 * - col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 7 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 4e72e9e33dacac757f48d0ce46094607

query I rowsort
SELECT + col0 * 24 FROM tab1 AS cor0
----
1536
1920
72

skipif mysql # not compatible
query I rowsort
SELECT - col0 * + col1 + CAST ( cor0.col2 AS REAL ) FROM tab2 cor0
----
-1305
-190
-4576

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 43 + col2 col0 FROM tab2 AS cor0
----
69
70
81

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5689
SELECT ALL + col2 * + col2 * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5689
SELECT ALL + col2 * + col2 * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 * 61 AS col1 FROM tab2
----
427
4758
4819

onlyif mysql # use DIV operator for integer division
query I rowsort label-5691
SELECT - ( - 75 ) DIV - col1 FROM tab1
----
-2
-5
-7

skipif mysql # not compatible
query I rowsort label-5691
SELECT - ( - 75 ) / - col1 FROM tab1
----
-2
-5
-7

query I rowsort
SELECT ALL col0 * ( col1 + col1 ) * col0 FROM tab1
----
166400
468
81920

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 6 * col2 col0 FROM tab2
----
156
162
228

query I rowsort
SELECT col2 * 17 FROM tab1
----
1632
918
969

query I rowsort
SELECT 19 * + 59 AS col0 FROM tab0, tab2 AS cor0, tab1, tab2 AS cor1
----
81 values hashing to 5dce631d124d235139e193e1c6ae639f

query I rowsort
SELECT 65 * - col0 + + col2 FROM tab0 cor0
----
-1527
-2274
-5703

query I rowsort
SELECT DISTINCT - ( - 85 ) AS col0 FROM tab2
----
85

query I rowsort
SELECT DISTINCT + - col0 * - col2 AS col2 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT + col0 * - 90 FROM tab2 AS cor0
----
-630
-7020
-7110

query I rowsort
SELECT DISTINCT - col1 * cor0.col2 AS col0 FROM tab1 cor0
----
-1248
-1404
-570

query I rowsort
SELECT ALL + col1 + cor0.col0 + + col1 FROM tab2 AS cor0
----
113
196
69

query I rowsort
SELECT + + 94 * col0 + - col2 AS col1 FROM tab1 AS cor0
----
228
5959
7424

query I rowsort
SELECT ALL - ( - 44 ) + + col0 AS col1 FROM tab0 AS cor0
----
133
68
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * - col0 col2 FROM tab2 cor0
----
-189
-2028
-3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-5705
SELECT + 3 + + ( + col1 ) * 16 DIV + col1 FROM tab1 AS cor0
----
19
19
19

skipif mysql # not compatible
query I rowsort label-5705
SELECT + 3 + + ( + col1 ) * 16 / + col1 FROM tab1 AS cor0
----
19
19
19

query I rowsort
SELECT DISTINCT col2 * col0 - ( col2 ) FROM tab1
----
108
3591
7584

query I rowsort
SELECT DISTINCT + col1 - + col1 AS col0 FROM tab2
----
0

query I rowsort
SELECT DISTINCT + col1 + col1 - col2 FROM tab0
----
100
139
193

query I rowsort
SELECT tab1.col0 * col2 + - 83 AS col2 FROM tab1
----
3565
7597
79

query I rowsort
SELECT + 67 AS col1 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to eea8a0738728ea55e4e7ba1506c9905a

onlyif mysql # use DIV operator for integer division
query I rowsort label-5711
SELECT DISTINCT - col1 DIV - col2 - - 86 FROM tab1
----
86

skipif mysql # not compatible
query I rowsort label-5711
SELECT DISTINCT - col1 / - col2 - - 86 FROM tab1
----
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 + - col1 * col2 col2 FROM tab2 AS cor0
----
-1475
-629
-806

query I rowsort
SELECT - ( - 7 ) FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 4e72e9e33dacac757f48d0ce46094607

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * 63 col1 FROM tab0 AS cor0
----
1512
2205
5607

query I rowsort
SELECT + + col1 + + cor0.col0 * col1 AS col1 FROM tab0 AS cor0
----
2150
3492
8190

onlyif mysql # use DIV operator for integer division
query I rowsort label-5716
SELECT DISTINCT + col1 + + col0 DIV col0 + - col1 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5716
SELECT DISTINCT + col1 + + col0 / col0 + - col1 FROM tab2 AS cor0
----
1

query I rowsort
SELECT + cor0.col0 * + col0 + col1 FROM tab1 cor0
----
35
4106
6413

query I rowsort
SELECT ALL + col0 * 16 AS col0 FROM tab0 AS cor0
----
1424
384
560

onlyif mysql # use DIV operator for integer division
query I rowsort label-5719
SELECT ALL + - cor0.col2 DIV + ( - col0 ) FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5719
SELECT ALL + - cor0.col2 / + ( - col0 ) FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT + - col1 * cor0.col2 - + col1 * col1 AS col0 FROM tab1 AS cor0
----
-1417
-2080
-670

query I rowsort
SELECT col2 * col0 * cor0.col0 + - col0 FROM tab2 AS cor0
----
1316
158106
237079

skipif mysql # not compatible
query I rowsort
SELECT + col1 * - CAST ( - col0 AS REAL ) + + col1 * 81 FROM tab0 AS cor0
----
11252
15470
9030

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 - + cor0.col0 col0 FROM tab0 AS cor0
----
2
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-5724
SELECT - + col0 DIV col0 + - 85 FROM tab2 cor0
----
-86
-86
-86

skipif mysql # not compatible
query I rowsort label-5724
SELECT - + col0 / col0 + - 85 FROM tab2 cor0
----
-86
-86
-86

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5725
SELECT ALL col1 * + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5725
SELECT ALL col1 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 - - col2 * col1 AS col0 FROM tab2 AS cor0
----
1593
663
868

onlyif mysql # use DIV operator for integer division
query I rowsort label-5727
SELECT DISTINCT - + col1 DIV - ( 32 + - col1 ) AS col2 FROM tab1 AS cor0
----
0
4

skipif mysql # not compatible
query I rowsort label-5727
SELECT DISTINCT - + col1 / - ( 32 + - col1 ) AS col2 FROM tab1 AS cor0
----
0
4

query I rowsort
SELECT DISTINCT + 50 AS col1 FROM tab2, tab1, tab2 AS cor0
----
50

query I rowsort
SELECT DISTINCT - col0 * + ( - cor0.col2 ) + col2 * 25 FROM tab0 AS cor0
----
1617
60
9348

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col0 * 66 * 34 + col1 col0 FROM tab2 AS cor0
----
-15677
-174973
-177259

query I rowsort
SELECT col0 + ( col2 ) AS col0 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT ALL - col2 * 6 FROM tab0 AS cor0
----
-198
-492
-6

query I rowsort
SELECT + col2 * ( - 87 ) + - col0 * cor0.col2 * + 96 AS col1 FROM tab2 AS cor0
----
-196950
-20493
-291498

query I rowsort
SELECT ALL cor0.col1 + - ( col1 ) * col0 FROM tab1 AS cor0
----
-1027
-52
-630

query I rowsort
SELECT DISTINCT - col1 * 97 FROM tab1 AS cor0
----
-1261
-2522
-970

query I rowsort
SELECT + 37 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to c023509f63faa044d654943e6df55ca2

onlyif mysql # use DIV operator for integer division
query I rowsort label-5737
SELECT ALL - col1 + col0 DIV 51 FROM tab1
----
-12
-26
-9

skipif mysql # not compatible
query I rowsort label-5737
SELECT ALL - col1 + col0 / 51 FROM tab1
----
-12
-26
-9

query I rowsort
SELECT ALL + col0 + col0 * - col2 + col1 FROM tab2
----
-151
-1891
-2906

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * + col1 * cor0.col2 col1 FROM tab1 AS cor0
----
-119808
-32490
-75816

query I rowsort
SELECT + col0 + 72 * + col2 AS col2 FROM tab1 AS cor0
----
3891
4168
6992

onlyif mysql # use DIV operator for integer division
query I rowsort label-5741
SELECT + - col0 DIV 56 AS col1 FROM tab2 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-5741
SELECT + - col0 / 56 AS col1 FROM tab2 AS cor0
----
-1
-1
0

query I rowsort
SELECT col2 - 59 FROM tab0 AS cor0
----
-26
-58
23

query I rowsort
SELECT ALL + col1 * cor0.col1 AS col1 FROM tab2 cor0
----
289
3481
961

query I rowsort
SELECT + col1 - col1 * + col2 AS col0 FROM tab2 cor0
----
-1475
-629
-806

query I rowsort
SELECT ALL + - col2 - col1 FROM tab1 AS cor0
----
-109
-67
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 72 * + 54 col1 FROM tab2 AS cor0
----
3888

query I rowsort
SELECT tab2.col2 + + 88 * + tab2.col1 FROM tab2
----
1534
2755
5218

onlyif mysql # use DIV operator for integer division
query I rowsort label-5748
SELECT - tab2.col0 DIV - col1 AS col1 FROM tab2
----
0
1
4

skipif mysql # not compatible
query I rowsort label-5748
SELECT - tab2.col0 / - col1 AS col1 FROM tab2
----
0
1
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + col2 * col0 * + col1 col0 FROM tab2
----
119574
50955
5852

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5750
SELECT + col2 + + CAST( + col0 AS SIGNED ) + col2 FROM tab2
----
130
155
61

skipif mysql # not compatible
query I rowsort label-5750
SELECT + col2 + + CAST ( + col0 AS INTEGER ) + col2 FROM tab2
----
130
155
61

query I rowsort
SELECT DISTINCT - - cor0.col1 + col0 * col0 + + col2 FROM tab1 AS cor0
----
4163
6509
89

query I rowsort
SELECT + 31 + - col0 * col1 AS col1 FROM tab0 AS cor0
----
-2033
-3364
-8068

query I rowsort
SELECT ALL + col0 + + col0 * - cor0.col0 * - cor0.col0 FROM tab0 AS cor0
----
13848
42910
705058

onlyif mysql # use DIV operator for integer division
query I rowsort label-5754
SELECT ALL ( col2 ) DIV 25 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5754
SELECT ALL ( col2 ) / 25 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT ALL - 41 + - col2 FROM tab1 cor0
----
-137
-95
-98

query I rowsort
SELECT DISTINCT col2 * + col1 * - 9 FROM tab0 AS cor0
----
-25542
-67158
-873

query I rowsort
SELECT ALL - 84 * 46 AS col1 FROM tab1
----
-3864
-3864
-3864

query I rowsort
SELECT + + 83 * + col0 * + col0 AS col2 FROM tab0 cor0
----
101675
47808
657443

query I rowsort
SELECT ALL + + col2 + col2 AS col0 FROM tab1 cor0
----
108
114
192

onlyif mysql # use DIV operator for integer division
query I rowsort label-5760
SELECT cor0.col0 DIV col1 col1 FROM tab1 AS cor0
----
0
6
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5760
SELECT cor0.col0 / col1 col1 FROM tab1 AS cor0
----
0
6
6

skipif mysql # not compatible
query I rowsort
SELECT - CAST ( + 27 AS REAL ) + col1 * 77 FROM tab2
----
1282
2360
4516

query I rowsort
SELECT ALL + 33 * col0 AS col1 FROM tab1 cor0
----
2112
2640
99

query I rowsort
SELECT DISTINCT + col1 + - col1 * col2 FROM tab1 AS cor0
----
-1235
-1378
-560

query I rowsort
SELECT - - ( - col0 ) + cor0.col1 AS col1 FROM tab0 AS cor0
----
2
62
62

query I rowsort
SELECT + - 28 * - col1 + - col1 AS col0 FROM tab0 AS cor0
----
2322
2457
2619

query I rowsort
SELECT + 39 * col0 + - col1 AS col1 FROM tab1 AS cor0
----
2486
3107
91

query I rowsort
SELECT ALL - ( 21 ) AS col0 FROM tab0 AS cor0
----
-21
-21
-21

query I rowsort
SELECT DISTINCT col1 + + ( col2 * 25 ) AS col0 FROM tab0 AS cor0
----
122
2141
911

query I rowsort
SELECT - col0 * - 6 + col0 FROM tab0 AS cor0
----
168
245
623

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5770
SELECT - CAST( + col1 AS SIGNED ) + - cor0.col1 * ( + col1 ) AS col0 FROM tab1 AS cor0
----
-110
-182
-702

skipif mysql # not compatible
query I rowsort label-5770
SELECT - CAST ( + col1 AS INTEGER ) + - cor0.col1 * ( + col1 ) AS col0 FROM tab1 AS cor0
----
-110
-182
-702

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + ( col0 ) * + col2 col0 FROM tab2
----
196
2106
3081

onlyif mysql # use DIV operator for integer division
query I rowsort label-5772
SELECT - CAST( col1 AS SIGNED ) * col2 DIV - col2 FROM tab1 AS cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-5772
SELECT - CAST ( col1 AS INTEGER ) * col2 / - col2 FROM tab1 AS cor0
----
10
13
26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5773
SELECT CAST( NULL AS DECIMAL ) + + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5773
SELECT CAST ( NULL AS REAL ) + + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5774
SELECT + col0 DIV col0 AS col2 FROM tab2 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5774
SELECT + col0 / col0 AS col2 FROM tab2 cor0
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-5775
SELECT ALL - col0 DIV col2 AS col2 FROM tab1 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5775
SELECT ALL - col0 / col2 AS col2 FROM tab1 cor0
----
-1
0
0

query I rowsort
SELECT DISTINCT - col2 + ( - col1 ) * + cor0.col1 FROM tab1 AS cor0
----
-157
-265
-730

query I rowsort
SELECT - + cor0.col0 + + ( + col0 ) AS col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5778
SELECT + col0 DIV col1 + col1 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-5778
SELECT + col0 / col1 + col1 FROM tab0 AS cor0
----
86
91
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - col1 + + 94 col2 FROM tab0
----
-2
41
85

query I rowsort
SELECT - col1 * ( + col0 ) AS col0 FROM tab0
----
-2064
-3395
-8099

query I rowsort
SELECT ALL - col2 * - 69 AS col1 FROM tab2 AS cor0
----
1794
1863
2622

query I rowsort
SELECT ALL + col1 + + col2 * - col1 FROM tab2 AS cor0
----
-1475
-629
-806

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5783
SELECT DISTINCT col2 * - ( cor0.col0 * - col0 + + CAST( NULL AS SIGNED ) ) col2 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5783
SELECT DISTINCT col2 * - ( cor0.col0 * - col0 + + CAST ( NULL AS INTEGER ) ) col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5784
SELECT - cor0.col2 * cor0.col1 DIV col0 FROM tab0 AS cor0
----
-118
-2
-83

skipif mysql # not compatible
query I rowsort label-5784
SELECT - cor0.col2 * cor0.col1 / col0 FROM tab0 AS cor0
----
-118
-2
-83

query I rowsort
SELECT - col2 * + 25 FROM tab2 AS cor0
----
-650
-675
-950

query I rowsort
SELECT - col0 * + col1 + - col0 AS col1 FROM tab2 AS cor0
----
-1422
-224
-4680

query I rowsort
SELECT - ( - cor0.col2 ) * + col2 AS col0 FROM tab1 cor0
----
2916
3249
9216

query I rowsort
SELECT col1 + col1 * col1 AS col0 FROM tab2 AS cor0
----
306
3540
992

onlyif mysql # use DIV operator for integer division
query I rowsort label-5789
SELECT - col0 DIV col2 + col2 AS col0 FROM tab0 cor0
----
-34
33
81

skipif mysql # not compatible
query I rowsort label-5789
SELECT - col0 / col2 + col2 AS col0 FROM tab0 cor0
----
-34
33
81

query I rowsort
SELECT ALL col1 + col0 + col1 AS col1 FROM tab2 cor0
----
113
196
69

query I rowsort
SELECT DISTINCT - 4 * col2 FROM tab1 AS cor0
----
-216
-228
-384

query I rowsort
SELECT + 20 * col0 AS col0 FROM tab2 AS cor0
----
140
1560
1580

query I rowsort
SELECT - col2 + col2 * - cor0.col1 AS col1 FROM tab2 AS cor0
----
-1560
-684
-864

query I rowsort
SELECT - + col2 - 59 * - col0 AS col1 FROM tab2 cor0
----
386
4576
4623

query I rowsort
SELECT + - col0 + + 88 AS col0 FROM tab1 AS cor0
----
24
8
85

query I rowsort
SELECT col2 * col0 - + ( cor0.col2 + + col2 ) FROM tab0 cor0
----
33
7134
726

query I rowsort
SELECT - col2 - col0 * - 23 * + col2 AS col0 FROM tab1 AS cor0
----
176544
3672
83847

query I rowsort
SELECT - col1 * col1 - 18 FROM tab1 AS cor0
----
-118
-187
-694

query I rowsort
SELECT DISTINCT - col0 - + 71 * + 51 AS col0 FROM tab1 AS cor0
----
-3624
-3685
-3701

query I rowsort
SELECT ALL + col2 + + 27 AS col1 FROM tab1 AS cor0
----
123
81
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 30 * + col0 col2 FROM tab0 AS cor0
----
1050
2670
720

query I rowsort
SELECT DISTINCT col2 + - col0 * + 77 AS col2 FROM tab1 AS cor0
----
-177
-4871
-6064

query I rowsort
SELECT DISTINCT col2 + cor0.col2 + - col2 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT + cor0.col0 + + col0 * + cor0.col2 AS col0 FROM tab0 AS cor0
----
70
7387
816

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5805
SELECT ALL + CAST( NULL AS SIGNED ) * 9 - col2 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5805
SELECT ALL + CAST ( NULL AS INTEGER ) * 9 - col2 AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 * col2 + + 34 FROM tab0 cor0
----
-1055
-6690
33

query I rowsort
SELECT + + col0 * + col2 * col1 + - col0 AS col2 FROM tab0 AS cor0
----
3360
664029
68088

query I rowsort
SELECT ALL 77 AS col0 FROM tab2, tab2 cor0
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 10 col1 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 0fe3e45a9ecd49584c2ab442100d5176

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - col1 col0 FROM tab0
----
-53
-9
-96

query I rowsort
SELECT 57 - + col0 AS col2 FROM tab1
----
-23
-7
54

query I rowsort
SELECT 11 * - tab1.col2 FROM tab1
----
-1056
-594
-627

onlyif mysql # use DIV operator for integer division
query I rowsort label-5813
SELECT + col1 + - col1 DIV - col2 + ( tab1.col2 ) * col2 FROM tab1
----
2942
3259
9229

skipif mysql # not compatible
query I rowsort label-5813
SELECT + col1 + - col1 / - col2 + ( tab1.col2 ) * col2 FROM tab1
----
2942
3259
9229

onlyif mysql # use DIV operator for integer division
query I rowsort label-5814
SELECT tab1.col0 DIV + col1 - col1 * ( col1 * tab1.col0 ) AS col1 FROM tab1
----
-13514
-2028
-6394

skipif mysql # not compatible
query I rowsort label-5814
SELECT tab1.col0 / + col1 - col1 * ( col1 * tab1.col0 ) AS col1 FROM tab1
----
-13514
-2028
-6394

query I rowsort
SELECT + + 60 * + col0 + col1 - + 54 AS col0 FROM tab1 AS cor0
----
152
3796
4759

query I rowsort
SELECT DISTINCT + col1 * cor0.col0 * + col2 FROM tab1 cor0
----
36480
4212
99840

query I rowsort
SELECT 35 + - col0 FROM tab2
----
-43
-44
28

query I rowsort
SELECT ALL col0 + + col1 + 67 FROM tab1
----
141
160
96

query I rowsort
SELECT DISTINCT + col1 * cor0.col0 + col1 AS col0 FROM tab2 AS cor0
----
1360
248
4661

query I rowsort
SELECT DISTINCT - - ( 69 ) + + cor0.col1 + 34 AS col0 FROM tab0 AS cor0
----
189
194
200

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 col2 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2

query I rowsort
SELECT ALL - cor0.col1 - - 68 FROM tab1, tab0 AS cor0
----
9 values hashing to 6ffc1fb781eaa0571ad616e82707e63c

query I rowsort
SELECT tab2.col1 * 80 + - tab2.col0 * col1 AS col2 FROM tab2
----
118
17
2263

query I rowsort
SELECT + 94 * col1 FROM tab2 AS cor0
----
1598
2914
5546

query I rowsort
SELECT DISTINCT col0 * col1 - + col2 FROM tab2
----
1305
190
4576

query I rowsort
SELECT DISTINCT - - col2 + - ( + col0 ) + + col0 FROM tab2 cor0
----
26
27
38

skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( - col0 AS REAL ) FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT ALL col0 * - col2 * col2 AS col1 FROM tab0 AS cor0
----
-26136
-35
-598436

query I rowsort
SELECT DISTINCT + col0 * + col1 + cor0.col0 AS col1 FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT ALL 81 * col2 FROM tab0 AS cor0
----
2673
6642
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-5831
SELECT 39 + 70 DIV cor0.col2 AS col0 FROM tab0 AS cor0
----
109
39
41

skipif mysql # not compatible
query I rowsort label-5831
SELECT 39 + 70 / cor0.col2 AS col0 FROM tab0 AS cor0
----
109
39
41

query I rowsort
SELECT - ( 46 ) * col1 FROM tab2 AS cor0
----
-1426
-2714
-782

query I rowsort
SELECT ALL + + col1 * + 82 * col0 + col1 AS col1 FROM tab2 cor0
----
110143
17825
377423

query I rowsort
SELECT DISTINCT cor0.col0 + 63 FROM tab2 AS cor0
----
141
142
70

query I rowsort
SELECT ALL ( 44 ) * col2 FROM tab2
----
1144
1188
1672

query I rowsort
SELECT DISTINCT 76 * + col1 * - tab0.col1 AS col0 FROM tab0
----
-562096
-629356
-715084

query I rowsort
SELECT ALL - ( + col1 ) + - cor0.col2 FROM tab2 AS cor0
----
-55
-58
-85

query I rowsort
SELECT ALL - cor0.col1 - col2 AS col0 FROM tab2 cor0
----
-55
-58
-85

onlyif mysql # use DIV operator for integer division
query I rowsort label-5839
SELECT DISTINCT - + col1 + col1 DIV col0 AS col0 FROM tab2 AS cor0
----
-17
-27
-59

skipif mysql # not compatible
query I rowsort label-5839
SELECT DISTINCT - + col1 + col1 / col0 AS col0 FROM tab2 AS cor0
----
-17
-27
-59

query I rowsort
SELECT - 63 * col2 FROM tab1 AS cor0
----
-3402
-3591
-6048

query I rowsort
SELECT ( + ( col0 ) + + 58 ) AS col1 FROM tab2
----
136
137
65

query I rowsort
SELECT 36 + 35 FROM tab2 AS cor0
----
71
71
71

query I rowsort
SELECT DISTINCT col2 + 92 + - col0 * col1 FROM tab1 AS cor0
----
-491
-852
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 - col1 col1 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT + cor0.col0 + + cor0.col0 AS col2 FROM tab2 cor0
----
14
156
158

query I rowsort
SELECT DISTINCT 81 + col0 AS col1 FROM tab0 AS cor0
----
105
116
170

query I rowsort
SELECT cor0.col2 * cor0.col0 - ( 42 ) FROM tab1 AS cor0
----
120
3606
7638

query I rowsort
SELECT DISTINCT + col2 * - col1 + 64 AS col2 FROM tab0 AS cor0
----
-2774
-33
-7398

query I rowsort
SELECT + - 99 * col0 - col0 FROM tab1 AS cor0
----
-300
-6400
-8000

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + col0 * col2 col2 FROM tab2 AS cor0
----
119652
51034
5859

query I rowsort
SELECT DISTINCT + col0 * col0 * col0 + col2 FROM tab0 AS cor0
----
13857
42876
705051

query I rowsort
SELECT DISTINCT - col0 * + col0 + 70 FROM tab0 AS cor0
----
-1155
-506
-7851

query I rowsort
SELECT ALL col2 + 91 AS col1 FROM tab1 cor0
----
145
148
187

onlyif mysql # use DIV operator for integer division
query I rowsort label-5854
SELECT - col1 DIV CAST( col1 AS SIGNED ) FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5854
SELECT - col1 / CAST ( col1 AS INTEGER ) FROM tab2 AS cor0
----
-1
-1
-1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5855
SELECT + - cor0.col2 + + CAST( NULL AS DECIMAL ) * col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5855
SELECT + - cor0.col2 + + CAST ( NULL AS REAL ) * col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - col0 + ( cor0.col2 ) FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT DISTINCT col2 * - 13 AS col1 FROM tab1 AS cor0
----
-1248
-702
-741

query I rowsort
SELECT + + col0 * col0 + 81 FROM tab1 AS cor0
----
4177
6481
90

query I rowsort
SELECT col1 + col0 + + col1 FROM tab0 cor0
----
196
229
271

query I rowsort
SELECT DISTINCT + col0 + - ( ( col1 ) ) AS col2 FROM tab1 AS cor0
----
-23
54
67

onlyif mysql # use DIV operator for integer division
query I rowsort label-5861
SELECT - - col2 DIV - col0 + 74 * col2 DIV + col1 col0 FROM tab2 AS cor0
----
165
32
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5861
SELECT - - col2 / - col0 + 74 * col2 / + col1 col0 FROM tab2 AS cor0
----
165
32
61

query I rowsort
SELECT ALL col1 + ( + col2 ) * col0 FROM tab0 AS cor0
----
132
7389
878

query I rowsort
SELECT ALL col1 * - 3 + - ( col0 ) AS col1 FROM tab0 AS cor0
----
-282
-326
-362

query I rowsort
SELECT - + 30 + - 9 AS col0 FROM tab2 AS cor0
----
-39
-39
-39

query I rowsort
SELECT DISTINCT - + 18 * + col2 AS col2 FROM tab0 AS cor0
----
-1476
-18
-594

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5866
SELECT ALL - CAST( 96 AS SIGNED ) FROM tab2 AS cor0
----
-96
-96
-96

skipif mysql # not compatible
query I rowsort label-5866
SELECT ALL - CAST ( 96 AS INTEGER ) FROM tab2 AS cor0
----
-96
-96
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-5867
SELECT 99 DIV - col0 AS col0 FROM tab2 AS cor0
----
-1
-1
-14

skipif mysql # not compatible
query I rowsort label-5867
SELECT 99 / - col0 AS col0 FROM tab2 AS cor0
----
-1
-1
-14

query I rowsort
SELECT - tab2.col0 * tab2.col2 - + ( - col2 * + col1 ) AS col0 FROM tab2
----
-2356
-494
648

query I rowsort
SELECT ALL - col2 * + 32 FROM tab0
----
-1056
-2624
-32

query I rowsort
SELECT - + 16 AS col0 FROM tab2, tab2 cor0
----
9 values hashing to be22ac76b42c6f7212ecc0ba7c89eb34

query I rowsort
SELECT + col1 * + cor0.col2 * ( + col0 ) + col1 FROM tab0 AS cor0
----
3492
664209
68198

query I rowsort
SELECT ( + 50 ) + + col1 FROM tab1 cor0
----
60
63
76

onlyif mysql # use DIV operator for integer division
query I rowsort label-5873
SELECT col2 * + col1 + + col1 DIV - col0 AS col2 FROM tab1 AS cor0
----
1248
1396
570

skipif mysql # not compatible
query I rowsort label-5873
SELECT col2 * + col1 + + col1 / - col0 AS col2 FROM tab1 AS cor0
----
1248
1396
570

onlyif mysql # use DIV operator for integer division
query I rowsort label-5874
SELECT + col1 * 15 DIV - cor0.col0 + 84 * + col1 FROM tab0 AS cor0
----
7171
7629
8107

skipif mysql # not compatible
query I rowsort label-5874
SELECT + col1 * 15 / - cor0.col0 + 84 * + col1 FROM tab0 AS cor0
----
7171
7629
8107

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5875
SELECT + CAST( - 77 AS SIGNED ) FROM tab1 AS cor0
----
-77
-77
-77

skipif mysql # not compatible
query I rowsort label-5875
SELECT + CAST ( - 77 AS INTEGER ) FROM tab1 AS cor0
----
-77
-77
-77

query I rowsort
SELECT + ( 3 ) FROM tab1 AS cor0
----
3
3
3

query I rowsort
SELECT ALL tab1.col2 * + 99 AS col2 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 4f657cec83a6e73f11cb04838110fa26

query I rowsort
SELECT + ( - col0 ) + cor0.col0 AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + 58 * cor0.col1 AS col2 FROM tab2 AS cor0
----
1798
3422
986

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5880
SELECT DISTINCT - 25 * col0 + - col2 + + CAST( col0 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-126
-1593
-2016

skipif mysql # not compatible
query I rowsort label-5880
SELECT DISTINCT - 25 * col0 + - col2 + + CAST ( col0 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-126
-1593
-2016

onlyif mysql # use DIV operator for integer division
query I rowsort label-5881
SELECT ALL - + col2 DIV col0 FROM tab2 AS cor0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-5881
SELECT ALL - + col2 / col0 FROM tab2 AS cor0
----
-3
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5882
SELECT DISTINCT + CAST( - 83 AS SIGNED ) FROM tab0
----
-83

skipif mysql # not compatible
query I rowsort label-5882
SELECT DISTINCT + CAST ( - 83 AS INTEGER ) FROM tab0
----
-83

query I rowsort
SELECT + - col1 + - col2 * - cor0.col0 FROM tab0 AS cor0
----
-62
706
7207

query I rowsort
SELECT DISTINCT - 47 * + col2 FROM tab0
----
-1551
-3854
-47

onlyif mysql # use DIV operator for integer division
query I rowsort label-5885
SELECT DISTINCT - col0 + - col1 DIV col1 AS col0 FROM tab1
----
-4
-65
-81

skipif mysql # not compatible
query I rowsort label-5885
SELECT DISTINCT - col0 + - col1 / col1 AS col0 FROM tab1
----
-4
-65
-81

query I rowsort
SELECT ALL - + col0 * 56 AS col1 FROM tab2 cor0
----
-392
-4368
-4424

query I rowsort
SELECT DISTINCT - col0 + - 76 * col1 * col0 FROM tab1 AS cor0
----
-48704
-5931
-79120

query I rowsort
SELECT ALL - + cor0.col0 + 23 FROM tab2 cor0
----
-55
-56
16

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5889
SELECT - col0 + + CAST( + cor0.col0 AS SIGNED ) FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5889
SELECT - col0 + + CAST ( + cor0.col0 AS INTEGER ) FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + col1 + 7 * - col2 FROM tab2 AS cor0
----
-123
-158
-249

query I rowsort
SELECT + + cor0.col0 * 70 AS col2 FROM tab2 AS cor0
----
490
5460
5530

onlyif mysql # use DIV operator for integer division
query I rowsort label-5892
SELECT col2 DIV - 85 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5892
SELECT col2 / - 85 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT + - cor0.col0 * 11 FROM tab1 AS cor0
----
-33
-704
-880

query I rowsort
SELECT ALL cor0.col1 * 70 FROM tab2 AS cor0
----
1190
2170
4130

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + - 56 col1 FROM tab0 AS cor0
----
-145
-80
-91

query I rowsort
SELECT DISTINCT col2 * 58 FROM tab2 AS cor0
----
1508
1566
2204

query I rowsort
SELECT - - col0 + + col1 + - 17 AS col0 FROM tab2 cor0
----
120
21
79

query I rowsort
SELECT + col0 * - col2 * - col1 AS col0 FROM tab2 AS cor0
----
119652
51034
5859

query I rowsort
SELECT - col0 + - col1 + + 10 AS col0 FROM tab1 AS cor0
----
-19
-64
-83

query I rowsort
SELECT ALL - col1 + - col0 * - col0 FROM tab0 AS cor0
----
1128
490
7830

onlyif mysql # use DIV operator for integer division
query I rowsort label-5901
SELECT DISTINCT col2 * - col1 + - col2 DIV col2 + + col1 FROM tab1 AS cor0
----
-1236
-1379
-561

skipif mysql # not compatible
query I rowsort label-5901
SELECT DISTINCT col2 * - col1 + - col2 / col2 + + col1 FROM tab1 AS cor0
----
-1236
-1379
-561

query I rowsort
SELECT DISTINCT - 8 AS col1 FROM tab1, tab1 AS cor0
----
-8

query I rowsort
SELECT - 9 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to caf28657beb43049740febe1fa9ded5a

query I rowsort
SELECT DISTINCT + col1 + col2 * tab2.col0 AS col1 FROM tab2
----
2087
220
3019

query I rowsort
SELECT ALL cor0.col0 + + col0 AS col0 FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT ALL col1 - + col2 * col2 FROM tab1
----
-2890
-3239
-9203

query I rowsort
SELECT DISTINCT tab2.col1 * + col2 - tab2.col0 * col2 * - col2 FROM tab2
----
114722
54262
5940

query I rowsort
SELECT - col2 + - col2 * - col0 * col0 AS col2 FROM tab0
----
1224
18975
649440

query I rowsort
SELECT DISTINCT tab2.col0 + + col2 * + col0 FROM tab2
----
196
2106
3081

query I rowsort
SELECT ALL 71 * + cor0.col2 AS col0 FROM tab0 AS cor0
----
2343
5822
71

query I rowsort
SELECT ALL - 78 + cor0.col2 AS col1 FROM tab2 AS cor0
----
-40
-51
-52

onlyif mysql # use DIV operator for integer division
query I rowsort label-5912
SELECT DISTINCT + cor0.col1 + col0 * cor0.col0 DIV + col2 AS col2 FROM tab1 AS cor0
----
26
79
81

skipif mysql # not compatible
query I rowsort label-5912
SELECT DISTINCT + cor0.col1 + col0 * cor0.col0 / + col2 AS col2 FROM tab1 AS cor0
----
26
79
81

query I rowsort
SELECT - col0 * + col1 - + cor0.col0 * - 58 FROM tab0 AS cor0
----
-1365
-2937
-672

query I rowsort
SELECT DISTINCT + cor0.col0 - col2 AS col0 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT DISTINCT - col0 * col2 - col1 * col1 * - cor0.col0 AS col1 FROM tab0 cor0
----
176712
329280
729711

query I rowsort
SELECT ALL - col0 AS col2 FROM tab0 WHERE NULL IN ( - tab0.col1 + col0 - col2 )
----

query I rowsort
SELECT ALL tab0.col0 + col0 FROM tab0 WHERE NOT - col0 BETWEEN + col0 + col1 AND NULL
----
178
48
70

onlyif mysql # use DIV operator for integer division
query I rowsort label-5918
SELECT ALL tab1.col1 + col0 DIV col1 FROM tab1
----
16
19
26

skipif mysql # not compatible
query I rowsort label-5918
SELECT ALL tab1.col1 + col0 / col1 FROM tab1
----
16
19
26

onlyif mysql # use DIV operator for integer division
query I rowsort label-5919
SELECT DISTINCT col1 DIV + col1 + col0 * col1 DIV col1 FROM tab1
----
4
65
81

skipif mysql # not compatible
query I rowsort label-5919
SELECT DISTINCT col1 / + col1 + col0 * col1 / col1 FROM tab1
----
4
65
81

query I rowsort
SELECT DISTINCT + col2 * + col1 + - col1 FROM tab1
----
1235
1378
560

onlyif mysql # use DIV operator for integer division
query I rowsort label-5921
SELECT col1 DIV + col1 + - col2 FROM tab1
----
-53
-56
-95

skipif mysql # not compatible
query I rowsort label-5921
SELECT col1 / + col1 + - col2 FROM tab1
----
-53
-56
-95

query IIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 AS cor0 WHERE NOT NULL = ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col1 col0 FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + col1 * - cor0.col2 * col1 + + col2 FROM tab2 cor0
----
-10944
-25920
-90480

query I rowsort
SELECT ALL cor0.col0 AS col1 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col2 * + col1 - - col0 >= NULL
----

query I rowsort
SELECT ALL + col2 * + cor0.col1 * col1 FROM tab0 AS cor0
----
244068
679042
9409

query I rowsort
SELECT DISTINCT - col1 - + col1 AS col2 FROM tab2
----
-118
-34
-62

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT BETWEEN + col2 AND ( - col0 )
----

query I rowsort
SELECT ALL col2 - col2 * - col2 AS col0 FROM tab0 WHERE ( NULL ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + col2 + tab0.col1 * - col1 AS col1 FROM tab0 WHERE NULL BETWEEN + col2 AND - col1 * col2
----

query I rowsort
SELECT ALL + col1 AS col0 FROM tab1 WHERE NOT NULL > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 col1 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
3
64
80

query I rowsort
SELECT 68 + + 23 * col0 + + col2 FROM tab2 AS cor0
----
1888
1923
256

query I rowsort
SELECT 97 FROM tab1, tab2 cor0
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

query I rowsort
SELECT DISTINCT col0 * 46 FROM tab0
----
1104
1610
4094

query I rowsort
SELECT - 36 + col0 FROM tab2
----
-29
42
43

query I rowsort
SELECT + 44 + - cor0.col1 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 9e305075e61e6d269de60259304f8988

query I rowsort
SELECT DISTINCT 56 AS col1 FROM tab1
----
56

query I rowsort
SELECT - 96 * col1 AS col0 FROM tab2
----
-1632
-2976
-5664

query I rowsort
SELECT + 22 FROM tab0, tab2, tab2 cor0
----
27 values hashing to 7dda382e7c08428abac8600fd696eb3e

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * col0 - - col2 col0 FROM tab1 AS cor0
----
216
3705
7776

query I rowsort
SELECT ALL + col1 + col0 * ( + tab0.col2 + - tab0.col2 ) FROM tab0
----
86
91
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-5944
SELECT DISTINCT col0 DIV col0 + col1 * col0 AS col0 FROM tab2
----
1344
218
4603

skipif mysql # not compatible
query I rowsort label-5944
SELECT DISTINCT col0 / col0 + col1 * col0 AS col0 FROM tab2
----
1344
218
4603

query I rowsort
SELECT - col1 * - col2 * + 41 FROM tab0
----
116358
305942
3977

query I rowsort
SELECT DISTINCT 5 * cor0.col2 - + col1 AS col2 FROM tab2 AS cor0
----
104
173
71

query I rowsort
SELECT + - 10 AS col2 FROM tab1 cor0
----
-10
-10
-10

query I rowsort
SELECT - 37 + tab1.col1 FROM tab1
----
-11
-24
-27

query I rowsort
SELECT ALL - col0 + col1 * + col1 AS col0 FROM tab2
----
210
3403
954

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5950
SELECT + - col2 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5950
SELECT + - col2 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - cor0.col0 * col1 - + col2 AS col2 FROM tab1 AS cor0
----
-1136
-132
-697

onlyif mysql # use DIV operator for integer division
query I rowsort label-5952
SELECT - - col1 DIV - col2 AS col1 FROM tab0 AS cor0
----
-1
-2
-97

skipif mysql # not compatible
query I rowsort label-5952
SELECT - - col1 / - col2 AS col1 FROM tab0 AS cor0
----
-1
-2
-97

query I rowsort
SELECT - col0 + - col2 * 84 FROM tab1 cor0
----
-4539
-4852
-8144

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - ( 53 * col1 ) col2 FROM tab2 cor0
----
-1636
-3049
-822

onlyif mysql # use DIV operator for integer division
query I rowsort label-5955
SELECT ALL + col1 DIV - 90 + - col0 FROM tab1 AS cor0
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-5955
SELECT ALL + col1 / - 90 + - col0 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT ALL + col1 + 89 * 89 FROM tab1 AS cor0
----
7931
7934
7947

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + col0 + col1 * - col1 col2 FROM tab1 AS cor0
----
-619
21
7

query I rowsort
SELECT DISTINCT - col0 * cor0.col0 + col2 AS col0 FROM tab1 AS cor0
----
-4039
-6304
45

query I rowsort
SELECT ALL cor0.col2 * 6 AS col2 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 801e94ca18b22599baf1a6b7f241c6fd

query I rowsort
SELECT ALL + ( + ( + col2 ) * ( + tab0.col0 ) ) + col0 AS col2 FROM tab0
----
70
7387
816

onlyif mysql # use DIV operator for integer division
query I rowsort label-5961
SELECT 19 * col1 DIV col0 AS col0 FROM tab1
----
164
2
3

skipif mysql # not compatible
query I rowsort label-5961
SELECT 19 * col1 / col0 AS col0 FROM tab1
----
164
2
3

query I rowsort
SELECT col1 * + 30 FROM tab0
----
2580
2730
2910

query I rowsort
SELECT ALL - col0 + + col2 * + col2 * + col0 + - col2 AS col0 FROM tab0 AS cor0
----
-1
26079
598265

query I rowsort
SELECT + 95 * 82 FROM tab0 AS cor0
----
7790
7790
7790

query I rowsort
SELECT + ( - col1 ) + - col2 AS col0 FROM tab0 AS cor0
----
-119
-173
-98

query I rowsort
SELECT + 26 * col0 AS col0 FROM tab0 AS cor0
----
2314
624
910

onlyif mysql # use DIV operator for integer division
query I rowsort label-5967
SELECT + cor0.col1 DIV + col2 + col1 FROM tab1 AS cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-5967
SELECT + cor0.col1 / + col2 + col1 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT + 7 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5969
SELECT ALL CAST( NULL AS DECIMAL ) AS col0 FROM tab1, tab2 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5969
SELECT ALL CAST ( NULL AS REAL ) AS col0 FROM tab1, tab2 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL - ( tab2.col0 ) FROM tab2, tab0 AS cor0
----
9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b

query I rowsort
SELECT ALL 0 * + cor0.col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - ( + col2 ) + col2 col1 FROM tab0 AS cor0
----
2871
7544
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 * col2 * col2 col1 FROM tab2 AS cor0
----
22599
24548
39884

query I rowsort
SELECT DISTINCT col1 * - 9 + col0 + col0 * + 64 * - 92 AS col0 FROM tab2 AS cor0
----
-41488
-459717
-465226

query I rowsort
SELECT + col1 * + 99 FROM tab2 cor0
----
1683
3069
5841

query I rowsort
SELECT - 45 + + 42 FROM tab1 AS cor0
----
-3
-3
-3

query I rowsort
SELECT ( - ( col1 ) ) + col0 FROM tab0 AS cor0
----
-2
-62
-62

query I rowsort
SELECT DISTINCT ( 68 ) FROM tab1, tab2 AS cor0
----
68

query I rowsort
SELECT cor0.col1 * - ( col2 ) FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT 93 * - 69 AS col2 FROM tab0 AS cor0
----
-6417
-6417
-6417

onlyif mysql # use DIV operator for integer division
query I rowsort label-5981
SELECT ALL - + col1 DIV 60 col1 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5981
SELECT ALL - + col1 / 60 col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5982
SELECT + - CAST( - 36 AS SIGNED ) * col2 AS col2 FROM tab1 AS cor0
----
1944
2052
3456

skipif mysql # not compatible
query I rowsort label-5982
SELECT + - CAST ( - 36 AS INTEGER ) * col2 AS col2 FROM tab1 AS cor0
----
1944
2052
3456

query I rowsort
SELECT + + ( - col1 ) AS col2 FROM tab2 cor0
----
-17
-31
-59

query I rowsort
SELECT DISTINCT col1 + 17 FROM tab1 cor0
----
27
30
43

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 * + cor0.col0 col0 FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT - + col2 * cor0.col1 AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT - + col0 * col0 * 54 FROM tab1 AS cor0
----
-221184
-345600
-486

query I rowsort
SELECT ALL + cor0.col2 + + col0 AS col1 FROM tab0 cor0
----
171
36
57

query I rowsort
SELECT DISTINCT 37 * + cor0.col0 + tab1.col0 FROM tab1, tab2 cor0
----
9 values hashing to a8027a449cb26cdff6e8a1a5acbe4f09

query I rowsort
SELECT DISTINCT col2 * + 53 + col0 FROM tab1 AS cor0
----
2865
3085
5168

query I rowsort
SELECT - col0 * col0 * + col2 + col2 FROM tab0 AS cor0
----
-1224
-18975
-649440

query I rowsort
SELECT + col0 * + 78 + ( + col0 ) FROM tab1 AS cor0
----
237
5056
6320

query I rowsort
SELECT cor0.col1 + + col2 AS col1 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT col1 * 80 FROM tab1
----
1040
2080
800

query I rowsort
SELECT + tab2.col2 * - col1 AS col1 FROM tab2
----
-1534
-646
-837

query I rowsort
SELECT + col0 * + 69 AS col2 FROM tab1 AS cor0
----
207
4416
5520

query I rowsort
SELECT col2 * + ( - ( - col2 ) ) FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT ALL 78 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4

query I rowsort
SELECT + col2 * + ( col2 ) + col1 AS col1 FROM tab2
----
1461
735
760

onlyif mysql # use DIV operator for integer division
query I rowsort label-6000
SELECT tab2.col2 DIV - col0 + - 28 col1 FROM tab2
----
-28
-28
-31

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6000
SELECT tab2.col2 / - col0 + - 28 col1 FROM tab2
----
-28
-28
-31

query I rowsort
SELECT 5 + + col1 AS col0 FROM tab1
----
15
18
31

query I rowsort
SELECT DISTINCT 48 + + col2 AS col0 FROM tab0 AS cor0
----
130
49
81

query I rowsort
SELECT DISTINCT + ( + col2 ) + - col0 * - col2 AS col0 FROM tab2 AS cor0
----
2054
216
3040

query I rowsort
SELECT DISTINCT - 15 + + col0 - col2 AS col1 FROM tab1 AS cor0
----
-31
-66
-8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 - col1 col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + + cor0.col1 * col0 + col1 FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT ALL cor0.col0 * + 97 + col2 FROM tab1 AS cor0
----
345
6265
7856

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6008
SELECT DISTINCT + col0 - CAST( NULL AS DECIMAL ) * - 63 col0 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6008
SELECT DISTINCT + col0 - CAST ( NULL AS REAL ) * - 63 col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL col0 + - ( col0 ) * cor0.col1 FROM tab0 AS cor0
----
-2040
-3360
-8010

query I rowsort
SELECT DISTINCT - col2 + + 46 FROM tab1 AS cor0
----
-11
-50
-8

query I rowsort
SELECT ALL col0 + 32 AS col1 FROM tab0 cor0
----
121
56
67

query I rowsort
SELECT - col1 * + 35 FROM tab0 AS cor0
----
-3010
-3185
-3395

query I rowsort
SELECT - col2 * + col1 + ( + col2 ) FROM tab2 AS cor0
----
-1508
-608
-810

query I rowsort
SELECT ALL + col0 * col0 + col0 * cor0.col2 AS col0 FROM tab1 AS cor0
----
14080
171
7744

onlyif mysql # use DIV operator for integer division
query I rowsort label-6015
SELECT DISTINCT - col2 DIV col0 + col1 col1 FROM tab0 AS cor0
----
85
91
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6015
SELECT DISTINCT - col2 / col0 + col1 col1 FROM tab0 AS cor0
----
85
91
97

query I rowsort
SELECT ALL + 29 AS col2 FROM tab1, tab1 cor0, tab1 cor1, tab0 AS cor2
----
81 values hashing to 40739d223aa019bd2dfe2db99d596302

query I rowsort
SELECT ALL - 7 + - col0 * col1 FROM tab2
----
-1350
-224
-4609

query I rowsort
SELECT ALL ( col1 ) + - col1 * 0 + - col0 AS col1 FROM tab2
----
-19
-62
24

query I rowsort
SELECT ALL + col2 * + col2 + tab0.col2 FROM tab0
----
1122
2
6806

query I rowsort
SELECT DISTINCT - ( + 70 ) AS col1 FROM tab1 AS cor0
----
-70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 33 * 20 + + col2 col1 FROM tab2 AS cor0
----
-622
-633
-634

query I rowsort
SELECT - col1 + + cor0.col0 + col1 AS col0 FROM tab0 AS cor0
----
24
35
89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6023
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - 12 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6023
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - 12 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - 76 * - col0 FROM tab2 AS cor0
----
532
5928
6004

query I rowsort
SELECT DISTINCT col0 * + col2 * 12 AS col0 FROM tab0 AS cor0
----
420
87576
9504

query I rowsort
SELECT ALL + col1 * col1 * ( - col2 ) AS col1 FROM tab2 AS cor0
----
-10982
-25947
-90506

query I rowsort
SELECT DISTINCT col1 * + col1 + - ( col0 ) * col0 FROM tab2 AS cor0
----
-2603
-5952
912

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 22 * col2 col1 FROM tab1 cor0
----
1188
1254
2112

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * col2 col2 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT ALL cor0.col1 + - col2 * + cor0.col1 AS col0 FROM tab1 AS cor0
----
-1235
-1378
-560

query I rowsort
SELECT ALL 65 * + col1 + col1 FROM tab1
----
1716
660
858

onlyif mysql # use DIV operator for integer division
query I rowsort label-6032
SELECT col0 DIV col1 + - tab0.col2 FROM tab0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-6032
SELECT col0 / col1 + - tab0.col2 FROM tab0
----
-1
-33
-82

query I rowsort
SELECT col1 * 47 FROM tab1
----
1222
470
611

query I rowsort
SELECT cor0.col1 - - cor0.col1 FROM tab2, tab1, tab1 cor0
----
27 values hashing to 742cb84003fd090efc5ed158b4c7e268

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 9 col0 FROM tab2 AS cor0
----
-9
-9
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 97 col1 FROM tab1, tab0 cor0
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

onlyif mysql # use DIV operator for integer division
query I rowsort label-6037
SELECT - + 94 DIV col0 FROM tab1 AS cor0
----
-1
-1
-31

skipif mysql # not compatible
query I rowsort label-6037
SELECT - + 94 / col0 FROM tab1 AS cor0
----
-1
-1
-31

query I rowsort
SELECT + col2 * - col0 + 72 FROM tab2 AS cor0
----
-117
-1956
-2930

query I rowsort
SELECT - tab2.col2 + - 50 FROM tab2, tab2 AS cor0
----
9 values hashing to 6900e9928c699dfe493c35d268a65c9c

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6040
SELECT + col1 + + CAST( 1 AS SIGNED ) FROM tab0 AS cor0
----
87
92
98

skipif mysql # not compatible
query I rowsort label-6040
SELECT + col1 + + CAST ( 1 AS INTEGER ) FROM tab0 AS cor0
----
87
92
98

query I rowsort
SELECT col0 + - ( col1 ) * - cor0.col0 FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT - col0 * ( + col0 ) + - col1 AS col0 FROM tab2 cor0
----
-6143
-6258
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 + - 90 * - col2 * col2 col2 FROM tab2 cor0
----
129977
60899
65641

query I rowsort
SELECT DISTINCT + 15 + - col2 * - 16 AS col1 FROM tab1
----
1551
879
927

query I rowsort
SELECT ALL ( - col2 ) + + col1 + - 19 AS col2 FROM tab0
----
-10
34
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 25 * - col1 col1 FROM tab0
----
-2150
-2275
-2425

query I rowsort
SELECT 37 * col0 AS col1 FROM tab1
----
111
2368
2960

query I rowsort
SELECT + ( col0 + col0 ) AS col0 FROM tab1
----
128
160
6

query I rowsort
SELECT ALL 84 * + col1 AS col0 FROM tab2
----
1428
2604
4956

query I rowsort
SELECT 76 + - col2 FROM tab1
----
-20
19
22

onlyif mysql # use DIV operator for integer division
query I rowsort label-6051
SELECT ( cor0.col1 ) + col2 DIV + col2 AS col2 FROM tab0 AS cor0
----
87
92
98

skipif mysql # not compatible
query I rowsort label-6051
SELECT ( cor0.col1 ) + col2 / + col2 AS col2 FROM tab0 AS cor0
----
87
92
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6052
SELECT DISTINCT - col2 + + col0 + + col2 * + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6052
SELECT DISTINCT - col2 + + col0 + + col2 * + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT 63 * col1 + col0 AS col0 FROM tab1 AS cor0
----
1641
694
899

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 12 * col0 col2 FROM tab2 AS cor0
----
-84
-936
-948

query I rowsort
SELECT col2 * - 91 + col2 FROM tab2
----
-2340
-2430
-3420

onlyif mysql # use DIV operator for integer division
query I rowsort label-6056
SELECT DISTINCT tab2.col2 DIV 75 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-6056
SELECT DISTINCT tab2.col2 / 75 FROM tab2
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6057
SELECT tab0.col0 * 36 DIV tab0.col1 + - tab0.col1 DIV col2 FROM tab0
----
-85
34
8

skipif mysql # not compatible
query I rowsort label-6057
SELECT tab0.col0 * 36 / tab0.col1 + - tab0.col1 / col2 FROM tab0
----
-85
34
8

query I rowsort
SELECT DISTINCT col1 * 90 + col1 * + tab0.col1 FROM tab0
----
15136
16471
18139

query I rowsort
SELECT ALL + col0 + + 12 + col1 AS col0 FROM tab2
----
108
149
50

query I rowsort
SELECT DISTINCT - + 33 FROM tab1 cor0
----
-33

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6061
SELECT ALL + CAST( NULL AS SIGNED ) * + col2 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6061
SELECT ALL + CAST ( NULL AS INTEGER ) * + col2 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6062
SELECT DISTINCT ( + 5 ) DIV - col1 AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6062
SELECT DISTINCT ( + 5 ) / - col1 AS col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL col2 + ( col1 ) FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT DISTINCT + ( - 74 ) + + col1 AS col1 FROM tab0 AS cor0
----
12
17
23

query I rowsort
SELECT - + 38 * 1 + + col1 FROM tab1 AS cor0
----
-12
-25
-28

query I rowsort
SELECT - ( ( col1 ) ) * col0 AS col0 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT 27 - + 18 AS col0 FROM tab1 AS cor0
----
9
9
9

query I rowsort
SELECT 88 FROM tab1, tab2 cor0
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37

query I rowsort
SELECT - + col2 * ( + col2 ) AS col0 FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT 10 FROM tab1, tab0 cor0, tab2 AS cor1
----
27 values hashing to 0fe3e45a9ecd49584c2ab442100d5176

query I rowsort
SELECT - - col1 * 78 FROM tab0 AS cor0
----
6708
7098
7566

query I rowsort
SELECT + col1 + cor0.col1 * - col0 AS col2 FROM tab2 AS cor0
----
-1326
-186
-4543

query I rowsort
SELECT - col1 * 80 FROM tab0 AS cor0
----
-6880
-7280
-7760

query I rowsort
SELECT 85 * + 36 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 109b634652b78a0b59f29418a375db6f

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6075
SELECT ALL - - col2 * - CAST( col1 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570

skipif mysql # not compatible
query I rowsort label-6075
SELECT ALL - - col2 * - CAST ( col1 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT ALL + col0 + 88 FROM tab1 cor0
----
152
168
91

query I rowsort
SELECT ALL - cor0.col0 * + col1 AS col1 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT + cor0.col2 * ( col0 ) AS col1 FROM tab2 AS cor0
----
189
2028
3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-6079
SELECT DISTINCT + - 77 DIV col1 col1 FROM tab0 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6079
SELECT DISTINCT + - 77 / col1 col1 FROM tab0 AS cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6080
SELECT - col2 + ( + col2 ) DIV + col1 FROM tab2
----
-26
-27
-36

skipif mysql # not compatible
query I rowsort label-6080
SELECT - col2 + ( + col2 ) / + col1 FROM tab2
----
-26
-27
-36

query I rowsort
SELECT + + cor0.col0 * + cor0.col1 + + col2 FROM tab2 AS cor0
----
1381
244
4628

query I rowsort
SELECT + - 39 * col0 AS col1 FROM tab2 AS cor0
----
-273
-3042
-3081

query I rowsort
SELECT + col2 * - col2 + 42 FROM tab0 cor0
----
-1047
-6682
41

query I rowsort
SELECT DISTINCT 56 + - 17 AS col0 FROM tab2, tab0, tab1 AS cor0
----
39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 28 * cor0.col2 col0 FROM tab2 AS cor0
----
-1064
-728
-756

onlyif mysql # use DIV operator for integer division
query I rowsort label-6086
SELECT + col1 DIV + col0 + + col2 col0 FROM tab2
----
26
31
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6086
SELECT + col1 / + col0 + + col2 col0 FROM tab2
----
26
31
38

query I rowsort
SELECT tab1.col0 * - col0 * + 43 FROM tab1
----
-176128
-275200
-387

query I rowsort
SELECT - + 3 + cor0.col2 AS col1 FROM tab1 cor0
----
51
54
93

query I rowsort
SELECT + - col2 + 25 * - col1 FROM tab2 AS cor0
----
-1501
-463
-802

query I rowsort
SELECT DISTINCT col1 + + 52 AS col1 FROM tab1 AS cor0
----
62
65
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-6091
SELECT ALL - col2 DIV - 6 + cor0.col2 FROM tab1 AS cor0
----
112
63
66

skipif mysql # not compatible
query I rowsort label-6091
SELECT ALL - col2 / - 6 + cor0.col2 FROM tab1 AS cor0
----
112
63
66

query I rowsort
SELECT + col1 + + col2 * col2 * + col0 FROM tab1 cor0
----
207946
737293
8774

query I rowsort
SELECT ALL + + cor0.col2 + + col1 AS col0 FROM tab2 AS cor0
----
55
58
85

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6094
SELECT DISTINCT + - col0 + CAST( col1 * col1 AS SIGNED ) + + ( col2 ) AS col0 FROM tab2 AS cor0
----
248
3429
981

skipif mysql # not compatible
query I rowsort label-6094
SELECT DISTINCT + - col0 + CAST ( col1 * col1 AS INTEGER ) + + ( col2 ) AS col0 FROM tab2 AS cor0
----
248
3429
981

query I rowsort
SELECT - col0 + - col1 + col0 AS col0 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT + + 4 + - col0 FROM tab0 AS cor0
----
-20
-31
-85

query I rowsort
SELECT col0 * ( + cor0.col1 * col0 ) FROM tab0 cor0
----
118825
49536
720811

query I rowsort
SELECT - + 97 + col2 * col2 FROM tab0 AS cor0
----
-96
6627
992

onlyif mysql # use DIV operator for integer division
query I rowsort label-6099
SELECT DISTINCT col0 * 41 DIV - col1 + 97 FROM tab0 AS cor0
----
57
83
86

skipif mysql # not compatible
query I rowsort label-6099
SELECT DISTINCT col0 * 41 / - col1 + 97 FROM tab0 AS cor0
----
57
83
86

query I rowsort
SELECT ALL - - 67 - ( - col0 ) FROM tab0 cor0
----
102
156
91

query I rowsort
SELECT + ( ( col2 ) ) + - col1 * + cor0.col1 AS col0 FROM tab1 AS cor0
----
-43
-622
-73

query I rowsort
SELECT DISTINCT + cor0.col1 * col2 * + col0 FROM tab1 AS cor0
----
36480
4212
99840

query I rowsort
SELECT ALL - col2 * col2 + - col2 * + col2 * - col2 FROM tab2 AS cor0
----
16900
18954
53428

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6104
SELECT CAST( NULL AS SIGNED ) * col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6104
SELECT CAST ( NULL AS INTEGER ) * col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6105
SELECT - + col0 + ( + cor0.col2 ) DIV ( col2 ) FROM tab1 AS cor0
----
-2
-63
-79

skipif mysql # not compatible
query I rowsort label-6105
SELECT - + col0 + ( + cor0.col2 ) / ( col2 ) FROM tab1 AS cor0
----
-2
-63
-79

query I rowsort
SELECT - col2 + + col2 * col2 FROM tab1 cor0
----
2862
3192
9120

query I rowsort
SELECT DISTINCT - 66 * col0 + col0 * + col0 FROM tab2 cor0
----
-413
1027
936

query I rowsort
SELECT DISTINCT - 61 + - col2 * ( col2 ) + col0 FROM tab2 AS cor0
----
-1426
-659
-783

query I rowsort
SELECT ALL - 83 * - col0 + - col1 + + col2 FROM tab0 AS cor0
----
1939
2809
7378

query I rowsort
SELECT DISTINCT - 97 AS col2 FROM tab1, tab2 AS cor0
----
-97

query I rowsort
SELECT ALL 56 - - tab0.col2 AS col1 FROM tab0
----
138
57
89

query I rowsort
SELECT DISTINCT col1 + + col1 * cor0.col2 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT DISTINCT 38 * col1 AS col1 FROM tab1
----
380
494
988

query I rowsort
SELECT ALL - - col0 * + cor0.col1 + + col1 FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT col0 * - 29 + col1 FROM tab2 AS cor0
----
-172
-2203
-2274

onlyif mysql # use DIV operator for integer division
query I rowsort label-6116
SELECT CAST( - col1 AS SIGNED ) + col1 DIV + col2 FROM tab1 AS cor0
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-6116
SELECT CAST ( - col1 AS INTEGER ) + col1 / + col2 FROM tab1 AS cor0
----
-10
-13
-26

onlyif mysql # use DIV operator for integer division
query I rowsort label-6117
SELECT + + CAST( 83 AS SIGNED ) DIV - col0 FROM tab0 cor0
----
-2
-3
0

skipif mysql # not compatible
query I rowsort label-6117
SELECT + + CAST ( 83 AS INTEGER ) / - col0 FROM tab0 cor0
----
-2
-3
0

query I rowsort
SELECT col2 * - col0 * - cor0.col1 FROM tab1 cor0
----
36480
4212
99840

query I rowsort
SELECT + 70 * 9 + + col0 * + col0 FROM tab0 AS cor0
----
1206
1855
8551

query I rowsort
SELECT ALL - + col1 + ( - col2 ) AS col2 FROM tab0 AS cor0
----
-119
-173
-98

query I rowsort
SELECT DISTINCT - col1 * - 42 FROM tab2 AS cor0
----
1302
2478
714

query I rowsort
SELECT DISTINCT col1 + - 36 + + col0 AS col2 FROM tab1
----
-7
38
57

query I rowsort
SELECT 44 + tab2.col0 FROM tab2, tab1 AS cor0
----
9 values hashing to b9b3415b6fb7f3b7692482ec0ad29697

query I rowsort
SELECT DISTINCT 24 * tab1.col0 AS col0 FROM tab1
----
1536
1920
72

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6125
SELECT ALL CAST( NULL AS DECIMAL ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6125
SELECT ALL CAST ( NULL AS REAL ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 41 + - cor0.col1 * col2 AS col2 FROM tab0 cor0
----
-2797
-56
-7421

query I rowsort
SELECT DISTINCT + - 65 AS col1 FROM tab0 AS cor0
----
-65

query I rowsort
SELECT - col1 * + 66 + + col1 FROM tab2 AS cor0
----
-1105
-2015
-3835

query I rowsort
SELECT DISTINCT - + 15 AS col1 FROM tab2 AS cor0
----
-15

query I rowsort
SELECT 64 + 86 AS col2 FROM tab2 AS cor0
----
150
150
150

query I rowsort
SELECT - col0 + - col0 + col2 * col1 FROM tab2 AS cor0
----
1378
488
823

query I rowsort
SELECT DISTINCT col0 * + col1 - + col2 * col2 FROM tab0
----
1375
3394
975

query I rowsort
SELECT ALL tab2.col2 * + 83 + + ( col1 ) FROM tab2
----
2217
2272
3171

query I rowsort
SELECT DISTINCT - + col2 * + ( col1 * - col2 ) FROM tab2 AS cor0
----
22599
24548
39884

query I rowsort
SELECT ALL col2 * ( + col0 ) + col0 FROM tab0 AS cor0
----
70
7387
816

query I rowsort
SELECT ALL col0 * - col0 + col0 * - col0 AS col2 FROM tab1
----
-12800
-18
-8192

query I rowsort
SELECT DISTINCT + col0 + - col0 * col2 * col2 FROM tab1
----
-207872
-737200
-8745

query I rowsort
SELECT ALL + col0 + + 75 * + col2 + - col1 AS col0 FROM tab2
----
1969
2001
2912

query IIIIII rowsort
SELECT * FROM tab0, tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND cor0.col2
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-6140
SELECT - col0 DIV - 3 col1 FROM tab2 cor0
----
2
26
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6140
SELECT - col0 / - 3 col1 FROM tab2 cor0
----
2
26
26

query I rowsort
SELECT ALL - cor0.col0 + 44 FROM tab2 AS cor0
----
-34
-35
37

query I rowsort
SELECT DISTINCT col0 * - col0 * - col2 AS col1 FROM tab0 AS cor0
----
1225
19008
649522

query I rowsort
SELECT DISTINCT 11 * + 67 FROM tab1, tab0 AS cor0
----
737

query I rowsort
SELECT ALL col1 + - 32 * - col1 FROM tab2
----
1023
1947
561

query I rowsort
SELECT col1 * 69 AS col1 FROM tab0
----
5934
6279
6693

onlyif mysql # use DIV operator for integer division
query I rowsort label-6146
SELECT ALL - col2 DIV 69 + - col1 AS col0 FROM tab2 cor0
----
-17
-31
-59

skipif mysql # not compatible
query I rowsort label-6146
SELECT ALL - col2 / 69 + - col1 AS col0 FROM tab2 cor0
----
-17
-31
-59

query I rowsort
SELECT DISTINCT col2 + 85 - + col2 FROM tab0 AS cor0
----
85

query I rowsort
SELECT DISTINCT col1 + ( col0 ) AS col2 FROM tab0 cor0
----
110
132
180

query I rowsort
SELECT ALL + cor0.col0 * 34 + col2 AS col0 FROM tab2 cor0
----
265
2678
2724

query I rowsort
SELECT - + col0 * - ( - 15 ) + + col1 FROM tab1 cor0
----
-1187
-19
-950

query I rowsort
SELECT - col2 * col1 AS col0 FROM tab1 cor0
----
-1248
-1404
-570

query I rowsort
SELECT - - 22 + col0 AS col1 FROM tab2 AS cor0
----
100
101
29

query I rowsort
SELECT DISTINCT - - 13 + 77 FROM tab1 AS cor0
----
90

query I rowsort
SELECT + cor0.col2 * + 73 - - col0 FROM tab1 AS cor0
----
3945
4225
7088

query I rowsort
SELECT - + cor0.col2 * + cor0.col1 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 86c8e75d83d283b29460c020ab5988af

onlyif mysql # use DIV operator for integer division
query I rowsort label-6156
SELECT col2 + ( col2 ) DIV col1 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-6156
SELECT col2 + ( col2 ) / col1 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort
SELECT - CAST ( 9 AS REAL ) * col2 + col2 AS col2 FROM tab1 AS cor0
----
-432
-456
-768

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 * col2 col0 FROM tab1 AS cor0
----
2916
3249
9216

onlyif mysql # use DIV operator for integer division
query I rowsort label-6159
SELECT ALL col0 + + cor0.col2 DIV col0 AS col1 FROM tab0 AS cor0
----
25
35
89

skipif mysql # not compatible
query I rowsort label-6159
SELECT ALL col0 + + cor0.col2 / col0 AS col1 FROM tab0 AS cor0
----
25
35
89

query I rowsort
SELECT 35 AS col2 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 0d13dfd4c4a9d51ace3582c31cadcdbc

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col0 + 29 col0 FROM tab0 AS cor0
----
64
7327
821

query I rowsort
SELECT ALL + + 84 * col1 FROM tab0 AS cor0
----
7224
7644
8148

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - col2 col2 FROM tab2 cor0
----
-189
-2028
-3002

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6164
SELECT + col0 * + col0 + - CAST( col0 AS SIGNED ) * tab1.col1 AS col1 FROM tab1
----
-69
3456
5360

skipif mysql # not compatible
query I rowsort label-6164
SELECT + col0 * + col0 + - CAST ( col0 AS INTEGER ) * tab1.col1 AS col1 FROM tab1
----
-69
3456
5360

query I rowsort
SELECT ( col1 ) + 16 AS col0 FROM tab0
----
102
107
113

query I rowsort
SELECT ALL + col2 * - tab1.col0 * - col2 FROM tab1
----
207936
737280
8748

query I rowsort
SELECT - - col0 * 42 * + col1 FROM tab2 AS cor0
----
193284
56406
9114

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( 34 ) + + col1 col0 FROM tab1
----
44
47
60

query I rowsort
SELECT + 49 * - col0 + col2 AS col1 FROM tab2 AS cor0
----
-316
-3796
-3833

query I rowsort
SELECT - cor0.col2 + - cor0.col0 FROM tab0 AS cor0
----
-171
-36
-57

query I rowsort
SELECT - 96 * cor0.col1 FROM tab2 AS cor0
----
-1632
-2976
-5664

query I rowsort
SELECT DISTINCT - + 53 + - col0 * col2 AS col2 FROM tab1 AS cor0
----
-215
-3701
-7733

query I rowsort
SELECT ALL - cor0.col1 * col1 + col0 AS col1 FROM tab2 AS cor0
----
-210
-3403
-954

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 4 * col0 col2 FROM tab0 AS cor0
----
140
356
96

query I rowsort
SELECT - 65 * col0 FROM tab2 AS cor0
----
-455
-5070
-5135

query I rowsort
SELECT DISTINCT - 66 AS col2 FROM tab2
----
-66

query I rowsort
SELECT ( col0 * + col0 ) AS col1 FROM tab1
----
4096
6400
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-6178
SELECT col0 * 16 DIV - 36 - + col0 * + col0 FROM tab0 AS cor0
----
-1240
-586
-7960

skipif mysql # not compatible
query I rowsort label-6178
SELECT col0 * 16 / - 36 - + col0 * + col0 FROM tab0 AS cor0
----
-1240
-586
-7960

query I rowsort
SELECT + col0 * - col1 + + col2 + - col0 FROM tab2 AS cor0
----
-1384
-197
-4654

onlyif mysql # use DIV operator for integer division
query I rowsort label-6180
SELECT + col1 * 55 + col2 DIV - col1 AS col0 FROM tab1 AS cor0
----
1428
545
708

skipif mysql # not compatible
query I rowsort label-6180
SELECT + col1 * 55 + col2 / - col1 AS col0 FROM tab1 AS cor0
----
1428
545
708

onlyif mysql # use DIV operator for integer division
query I rowsort label-6181
SELECT + - col0 DIV 51 + col0 + + col1 col0 FROM tab2 AS cor0
----
136
38
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6181
SELECT + - col0 / 51 + col0 + + col1 col0 FROM tab2 AS cor0
----
136
38
95

query I rowsort
SELECT - + col1 * 51 + - col0 * col2 FROM tab2 AS cor0
----
-1770
-3869
-5037

query I rowsort
SELECT DISTINCT col1 + col0 * + col1 FROM tab0
----
2150
3492
8190

query I rowsort
SELECT DISTINCT + col1 + col1 * + col0 * col2 FROM tab1
----
36490
4238
99853

query I rowsort
SELECT tab0.col1 * + col2 * + col1 AS col2 FROM tab0
----
244068
679042
9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-6186
SELECT DISTINCT col1 DIV + 3 AS col1 FROM tab1
----
3
4
8

skipif mysql # not compatible
query I rowsort label-6186
SELECT DISTINCT col1 / + 3 AS col1 FROM tab1
----
3
4
8

query I rowsort
SELECT ALL 65 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805

query I rowsort
SELECT col1 + tab2.col1 + col1 AS col1 FROM tab2
----
177
51
93

query I rowsort
SELECT + - col1 + - col1 * + col1 + - col1 AS col0 FROM tab2 AS cor0
----
-1023
-323
-3599

query I rowsort
SELECT - + col1 + 75 AS col0 FROM tab1 AS cor0
----
49
62
65

onlyif mysql # use DIV operator for integer division
query I rowsort label-6191
SELECT ALL col1 + col2 DIV col1 FROM tab2 AS cor0
----
19
31
59

skipif mysql # not compatible
query I rowsort label-6191
SELECT ALL col1 + col2 / col1 FROM tab2 AS cor0
----
19
31
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-6192
SELECT + - cor0.col0 + col1 DIV col0 + col1 * col1 AS col0 FROM tab1 cor0
----
36
681
89

skipif mysql # not compatible
query I rowsort label-6192
SELECT + - cor0.col0 + col1 / col0 + col1 * col1 AS col0 FROM tab1 cor0
----
36
681
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - col0 * - col2 + col0 * + col0 * col1 col0 FROM tab2 AS cor0
----
157131
478608
7378

query I rowsort
SELECT DISTINCT col0 + - col2 - col1 FROM tab0
----
-63
-84
-95

query I rowsort
SELECT + tab2.col1 + + col1 AS col1 FROM tab2
----
118
34
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-6196
SELECT tab1.col1 * + tab1.col2 DIV - col2 AS col2 FROM tab1
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-6196
SELECT tab1.col1 * + tab1.col2 / - col2 AS col2 FROM tab1
----
-10
-13
-26

query I rowsort
SELECT tab1.col2 * - tab1.col0 - col1 FROM tab1
----
-188
-3658
-7693

query I rowsort
SELECT ALL tab0.col0 AS col2 FROM tab2, tab2 AS cor0 CROSS JOIN tab0
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT DISTINCT + col0 * - col2 + tab1.col2 FROM tab1
----
-108
-3591
-7584

query I rowsort
SELECT DISTINCT + - col1 + col1 * col2 AS col2 FROM tab2 AS cor0
----
1475
629
806

onlyif mysql # use DIV operator for integer division
query I rowsort label-6201
SELECT - cor0.col1 DIV + col1 + - col0 * + col1 - col2 AS col0 FROM tab1 AS cor0
----
-1137
-133
-698

skipif mysql # not compatible
query I rowsort label-6201
SELECT - cor0.col1 / + col1 + - col0 * + col1 - col2 AS col0 FROM tab1 AS cor0
----
-1137
-133
-698

query I rowsort
SELECT col1 * + col2 * + col2 AS col1 FROM tab1 AS cor0
----
119808
32490
75816

query I rowsort
SELECT DISTINCT + 37 * col0 * + col0 FROM tab2
----
1813
225108
230917

onlyif mysql # use DIV operator for integer division
query I rowsort label-6204
SELECT + + col1 - + col1 DIV - col0 FROM tab0 AS cor0
----
89
92
99

skipif mysql # not compatible
query I rowsort label-6204
SELECT + + col1 - + col1 / - col0 FROM tab0 AS cor0
----
89
92
99

query I rowsort
SELECT - col0 + - cor0.col0 * + col2 AS col1 FROM tab1 cor0
----
-165
-3712
-7760

query I rowsort
SELECT cor0.col1 * cor0.col1 FROM tab1 cor0
----
100
169
676

query I rowsort
SELECT DISTINCT + - col2 + + col2 AS col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT + ( + col1 ) + - cor0.col0 + - cor0.col0 FROM tab2 AS cor0
----
-141
-97
17

query I rowsort
SELECT ALL + - col0 * + col2 AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT cor0.col1 - col0 FROM tab0 cor0
----
2
62
62

query I rowsort
SELECT DISTINCT + + 93 * + col0 AS col0 FROM tab0 AS cor0
----
2232
3255
8277

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 + col1 + - col2 * - col0 col1 FROM tab2 AS cor0
----
2146
251
3036

query I rowsort
SELECT DISTINCT col1 * tab1.col2 - - col0 FROM tab1
----
1328
1407
634

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6214
SELECT + cor0.col2 + col1 + - CAST( col1 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
26
27
38

skipif mysql # not compatible
query I rowsort label-6214
SELECT + cor0.col2 + col1 + - CAST ( col1 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT + col1 * + cor0.col1 + - col0 AS col0 FROM tab2 AS cor0
----
210
3403
954

query I rowsort
SELECT - - col2 * col2 - + col1 * col2 FROM tab2 AS cor0
----
-108
-858
798

query I rowsort
SELECT ALL - col1 + + col0 AS col2 FROM tab0 cor0
----
-2
-62
-62

query I rowsort
SELECT DISTINCT - col2 * - col0 - col0 AS col2 FROM tab0 AS cor0
----
0
7209
768

query I rowsort
SELECT ALL + col2 + col1 * - ( + col1 ) + col2 FROM tab0
----
-7330
-8117
-9407

query I rowsort
SELECT DISTINCT - col2 + + col1 * - col1 AS col1 FROM tab1
----
-157
-265
-730

query I rowsort
SELECT col2 * col2 + col1 - col0 FROM tab2
----
1382
657
753

query I rowsort
SELECT - ( ( cor0.col2 ) ) * + ( col2 ) AS col1 FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT DISTINCT + - 12 * col0 + col0 + + col1 * + 12 FROM tab1 AS cor0
----
-584
-724
279

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 AS cor0, tab0 AS cor1, tab0, tab1 cor2
----
3645 values hashing to 25b043ae64f25e8f205735b09d2d3d6a

query I rowsort
SELECT DISTINCT ( - ( col0 ) ) + ( + col1 * col2 ) FROM tab2 AS cor0
----
1456
567
830

query I rowsort
SELECT DISTINCT + col2 * + 89 AS col2 FROM tab2 AS cor0
----
2314
2403
3382

onlyif mysql # use DIV operator for integer division
query I rowsort label-6227
SELECT - col2 DIV 59 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6227
SELECT - col2 / 59 FROM tab1 AS cor0
----
-1
0
0

query I rowsort
SELECT col1 - + col2 * + col2 AS col0 FROM tab2
----
-1427
-617
-698

query I rowsort
SELECT - ( col0 ) * col1 + - 22 AS col1 FROM tab2
----
-1365
-239
-4624

onlyif mysql # use DIV operator for integer division
query I rowsort label-6230
SELECT ( - 45 ) DIV - tab1.col1 + - col0 col0 FROM tab1
----
-2
-60
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6230
SELECT ( - 45 ) / - tab1.col1 + - col0 col0 FROM tab1
----
-2
-60
-77

onlyif mysql # use DIV operator for integer division
query I rowsort label-6231
SELECT - 0 DIV col2 - + tab1.col0 FROM tab1
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-6231
SELECT - 0 / col2 - + tab1.col0 FROM tab1
----
-3
-64
-80

query I rowsort
SELECT + ( - 35 * col0 ) FROM tab2
----
-245
-2730
-2765

query I rowsort
SELECT ALL ( col2 ) * + col2 FROM tab1 cor0
----
2916
3249
9216

query I rowsort
SELECT 76 * - col2 AS col1 FROM tab2 cor0
----
-1976
-2052
-2888

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6235
SELECT - - CAST( NULL AS DECIMAL ) * + col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6235
SELECT - - CAST ( NULL AS REAL ) * + col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 78 AS col2 FROM tab0
----
-78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6237
SELECT DISTINCT - CAST( - 75 AS SIGNED ) * + col0 AS col2 FROM tab2 AS cor0
----
525
5850
5925

skipif mysql # not compatible
query I rowsort label-6237
SELECT DISTINCT - CAST ( - 75 AS INTEGER ) * + col0 AS col2 FROM tab2 AS cor0
----
525
5850
5925

query I rowsort
SELECT ALL + ( - 15 + col2 ) AS col1 FROM tab1
----
39
42
81

query I rowsort
SELECT ALL + col0 + col2 + 26 AS col2 FROM tab2 AS cor0
----
130
143
60

query I rowsort
SELECT DISTINCT cor0.col1 * + col1 + + 29 FROM tab2 cor0
----
318
3510
990

query I rowsort
SELECT DISTINCT - - cor0.col1 + - col1 * col2 + - 86 AS col0 FROM tab1 AS cor0
----
-1321
-1464
-646

onlyif mysql # use DIV operator for integer division
query I rowsort label-6242
SELECT 63 DIV + col1 FROM tab2
----
1
2
3

skipif mysql # not compatible
query I rowsort label-6242
SELECT 63 / + col1 FROM tab2
----
1
2
3

query I rowsort
SELECT - - 53 AS col2 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 866ae1b4ab9e5b4043ac1bcfd413aaa6

onlyif mysql # use DIV operator for integer division
query I rowsort label-6244
SELECT + 42 DIV col2 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6244
SELECT + 42 / col2 AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT - col0 + col1 * - ( cor0.col0 ) FROM tab2 AS cor0
----
-1422
-224
-4680

query I rowsort
SELECT + col0 * + 46 FROM tab0
----
1104
1610
4094

query I rowsort
SELECT DISTINCT cor0.col1 * 44 + col1 * col2 FROM tab1 AS cor0
----
1010
1820
2548

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + cor0.col1 + - col2 col1 FROM tab1 cor0
----
-28
-47
-83

query I rowsort
SELECT DISTINCT col2 * cor0.col2 + - 22 AS col2 FROM tab0 cor0
----
-21
1067
6702

query I rowsort
SELECT DISTINCT col1 + col1 * + 47 AS col2 FROM tab1 AS cor0
----
1248
480
624

query I rowsort
SELECT ALL col0 * ( + col1 ) FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT col0 * + col1 - col2 AS col0 FROM tab2 AS cor0
----
1305
190
4576

query I rowsort
SELECT col0 * col1 + + cor0.col0 FROM tab0 AS cor0
----
2088
3430
8188

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 * - 33 + + col2 col0 FROM tab1 AS cor0
----
-2055
-2544
-45

query I rowsort
SELECT DISTINCT - - 25 + 24 FROM tab1 AS cor0
----
49

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6256
SELECT ALL - CAST( + col1 AS SIGNED ) - - col0 * col2 AS col2 FROM tab2 cor0
----
158
1969
2985

skipif mysql # not compatible
query I rowsort label-6256
SELECT ALL - CAST ( + col1 AS INTEGER ) - - col0 * col2 AS col2 FROM tab2 cor0
----
158
1969
2985

query I rowsort
SELECT ALL + ( col0 ) * cor0.col0 AS col0 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT ALL - - cor0.col0 + - col0 * + col2 * col0 AS col2 FROM tab1 AS cor0
----
-233408
-483
-614320

query I rowsort
SELECT - - 38 + col0 FROM tab1 AS cor0
----
102
118
41

onlyif mysql # use DIV operator for integer division
query I rowsort label-6260
SELECT + CAST( col2 AS SIGNED ) + col2 * - cor0.col1 DIV - col1 FROM tab0 cor0
----
164
2
66

skipif mysql # not compatible
query I rowsort label-6260
SELECT + CAST ( col2 AS INTEGER ) + col2 * - cor0.col1 / - col1 FROM tab0 cor0
----
164
2
66

onlyif mysql # use DIV operator for integer division
query I rowsort label-6261
SELECT col2 DIV + 65 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6261
SELECT col2 / + 65 FROM tab0
----
0
0
1

query I rowsort
SELECT 26 AS col0 FROM tab0, tab2 AS cor0, tab2, tab0 AS cor1
----
81 values hashing to 8b6a624eb92fb019d9664318e519f062

query I rowsort
SELECT col0 * - ( - col0 ) AS col1 FROM tab1
----
4096
6400
9

query I rowsort
SELECT + col0 * + 84 AS col1 FROM tab0
----
2016
2940
7476

onlyif mysql # use DIV operator for integer division
query I rowsort label-6265
SELECT cor0.col2 DIV + ( - col1 ) - - col2 col0 FROM tab2 AS cor0
----
26
27
36

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6265
SELECT cor0.col2 / + ( - col1 ) - - col2 col0 FROM tab2 AS cor0
----
26
27
36

query I rowsort
SELECT ALL - col1 + col0 + col0 * + ( - 97 ) AS col2 FROM tab2
----
-703
-7547
-7601

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 5 col0 FROM tab1, tab1 AS cor0
----
5

query I rowsort
SELECT ALL col2 * + 76 FROM tab2 AS cor0
----
1976
2052
2888

onlyif mysql # use DIV operator for integer division
query I rowsort label-6269
SELECT - col1 + 79 DIV - col0 FROM tab0 cor0
----
-89
-91
-99

skipif mysql # not compatible
query I rowsort label-6269
SELECT - col1 + 79 / - col0 FROM tab0 cor0
----
-89
-91
-99

query I rowsort
SELECT + + 44 * - 20 AS col0 FROM tab2 AS cor0
----
-880
-880
-880

query I rowsort
SELECT - - col0 * cor0.col1 AS col2 FROM tab0 cor0
----
2064
3395
8099

query I rowsort
SELECT + 98 * col0 FROM tab0 cor0
----
2352
3430
8722

query I rowsort
SELECT - + cor0.col2 * col0 + col1 AS col1 FROM tab1 AS cor0
----
-136
-3638
-7667

onlyif mysql # use DIV operator for integer division
query I rowsort label-6274
SELECT ALL + col2 - + col2 DIV - 78 FROM tab1 AS cor0
----
54
57
97

skipif mysql # not compatible
query I rowsort label-6274
SELECT ALL + col2 - + col2 / - 78 FROM tab1 AS cor0
----
54
57
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-6275
SELECT DISTINCT - col1 * - ( col0 * cor0.col0 ) + ( 75 ) DIV - col2 AS col1 FROM tab0 AS cor0
----
118750
49534
720811

skipif mysql # not compatible
query I rowsort label-6275
SELECT DISTINCT - col1 * - ( col0 * cor0.col0 ) + ( 75 ) / - col2 AS col1 FROM tab0 AS cor0
----
118750
49534
720811

query I rowsort
SELECT - cor0.col1 + col0 * ( + col2 ) * - col1 FROM tab1 cor0
----
-36490
-4238
-99853

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col1 * 41 + - col1 * 52 col2 FROM tab2 AS cor0
----
-10509
-191750
-55947

query I rowsort
SELECT + col1 + - col1 AS col2 FROM tab1 cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - + col0 col2 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + + col2 col1 FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT DISTINCT - col1 * col1 + 43 * col2 - + col1 * col1 FROM tab2 AS cor0
----
-5844
-761
1056

query I rowsort
SELECT DISTINCT - cor0.col0 * - 12 FROM tab0 AS cor0
----
1068
288
420

query I rowsort
SELECT DISTINCT - 21 + col1 AS col2 FROM tab0
----
65
70
76

onlyif mysql # use DIV operator for integer division
query I rowsort label-6284
SELECT ALL - + col0 DIV + ( + col2 * col2 ) FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6284
SELECT ALL - + col0 / + ( + col2 * col2 ) FROM tab1 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6285
SELECT tab1.col0 / CAST( NULL AS SIGNED ) + - 86 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6285
SELECT tab1.col0 / CAST ( NULL AS INTEGER ) + - 86 AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 44 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 07457d9e571e036a9a3a0f5a5a2e1ef2

query I rowsort
SELECT - - col1 * 66 AS col1 FROM tab1 AS cor0
----
1716
660
858

query I rowsort
SELECT ALL col0 + - 4 * - 41 AS col1 FROM tab0 AS cor0
----
188
199
253

onlyif mysql # use DIV operator for integer division
query I rowsort label-6289
SELECT DISTINCT + col2 DIV cor0.col2 AS col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6289
SELECT DISTINCT + col2 / cor0.col2 AS col1 FROM tab0 AS cor0
----
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-6290
SELECT + - col2 DIV + col2 AS col1 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6290
SELECT + - col2 / + col2 AS col1 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT + cor0.col0 + 81 AS col0 FROM tab2 AS cor0
----
159
160
88

query I rowsort
SELECT ALL - 41 + 75 FROM tab1 AS cor0
----
34
34
34

onlyif mysql # use DIV operator for integer division
query I rowsort label-6293
SELECT + col2 DIV 71 + col2 + col2 col0 FROM tab1
----
108
114
193

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6293
SELECT + col2 / 71 + col2 + col2 col0 FROM tab1
----
108
114
193

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6294
SELECT ALL CAST( 7 AS SIGNED ) + + col1 AS col2 FROM tab0 AS cor0
----
104
93
98

skipif mysql # not compatible
query I rowsort label-6294
SELECT ALL CAST ( 7 AS INTEGER ) + + col1 AS col2 FROM tab0 AS cor0
----
104
93
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6295
SELECT + CAST( NULL AS SIGNED ) - - 70 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6295
SELECT + CAST ( NULL AS INTEGER ) - - 70 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6296
SELECT DISTINCT - col2 * col0 - col0 DIV + col1 FROM tab1 AS cor0
----
-162
-3654
-7686

skipif mysql # not compatible
query I rowsort label-6296
SELECT DISTINCT - col2 * col0 - col0 / + col1 FROM tab1 AS cor0
----
-162
-3654
-7686

query I rowsort
SELECT DISTINCT + 34 * col2 FROM tab1 AS cor0
----
1836
1938
3264

query I rowsort
SELECT DISTINCT - col2 * + cor0.col1 - col0 AS col2 FROM tab2 cor0
----
-1612
-725
-844

query I rowsort
SELECT + col0 + + col2 * tab1.col1 + - col1 AS col0 FROM tab1
----
1315
1381
624

query I rowsort
SELECT DISTINCT col2 - 61 FROM tab2
----
-23
-34
-35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + col0 * + col2 col2 FROM tab1
----
136
3638
7667

query I rowsort
SELECT ALL - col2 * ( + 97 * col1 ) - col1 AS col0 FROM tab1
----
-121069
-136214
-55300

query I rowsort
SELECT DISTINCT col1 - - tab2.col1 * col0 FROM tab2
----
1360
248
4661

query I rowsort
SELECT ALL - 55 AS col0 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to b90e74bece5521b514096c5b6e105fde

query I rowsort
SELECT ALL + + 31 * col1 FROM tab0 AS cor0
----
2666
2821
3007

query I rowsort
SELECT + cor0.col2 + col2 * col0 AS col0 FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT DISTINCT 48 * col0 FROM tab0 AS cor0
----
1152
1680
4272

query I rowsort
SELECT + 91 + col2 FROM tab1 AS cor0
----
145
148
187

query I rowsort
SELECT ALL + 44 FROM tab1 cor0
----
44
44
44

query I rowsort
SELECT + + cor0.col0 * - col2 + 21 * - col0 AS col0 FROM tab0 AS cor0
----
-1296
-770
-9167

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - ( col0 ) * - col2 * CAST ( + 48 AS REAL ) + col0 AS col0 FROM tab1
----
175168
368720
7779

query I rowsort
SELECT - - col2 * - cor0.col2 + cor0.col1 * + ( cor0.col0 ) AS col0 FROM tab0 AS cor0
----
1375
3394
975

query I rowsort
SELECT col1 * + col1 - + col0 FROM tab0
----
7372
8192
9374

query I rowsort
SELECT col2 + + col0 * col1 AS col2 FROM tab1
----
1136
132
697

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 55 col0 FROM tab2
----
55
55
55

onlyif mysql # use DIV operator for integer division
query I rowsort label-6316
SELECT - col2 + col1 DIV + tab1.col0 FROM tab1
----
-46
-57
-96

skipif mysql # not compatible
query I rowsort label-6316
SELECT - col2 + col1 / + tab1.col0 FROM tab1
----
-46
-57
-96

query I rowsort
SELECT ALL + - 27 AS col1 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 0259a67676b131a4843853be4811b775

query I rowsort
SELECT ALL col0 + col2 * - col2 AS col1 FROM tab1 AS cor0
----
-2913
-3185
-9136

onlyif mysql # use DIV operator for integer division
query I rowsort label-6319
SELECT DISTINCT col1 + + col2 DIV + col1 AS col0 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-6319
SELECT DISTINCT col1 + + col2 / + col1 AS col0 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT DISTINCT + + 91 + - col2 FROM tab1 AS cor0
----
-5
34
37

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6321
SELECT DISTINCT + + CAST( NULL AS SIGNED ) + col1 + + col1 col1 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6321
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) + col1 + + col1 col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL + + col2 + + col0 + + col1 * - cor0.col1 AS col2 FROM tab2 AS cor0
----
-172
-3377
-927

query I rowsort
SELECT + - 20 + + col0 * + cor0.col0 * 96 FROM tab1 AS cor0
----
393196
614380
844

query I rowsort
SELECT ALL 98 * + col0 + - 62 AS col1 FROM tab1 AS cor0
----
232
6210
7778

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 - cor0.col1 * - col1 col2 FROM tab0 AS cor0
----
7372
8192
9374

query I rowsort
SELECT tab1.col1 + + tab1.col1 AS col0 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 742cb84003fd090efc5ed158b4c7e268

query I rowsort
SELECT + col2 + col0 + ( + col2 ) AS col0 FROM tab1 AS cor0
----
111
178
272

query I rowsort
SELECT DISTINCT - 62 + - col0 * - 38 FROM tab0 AS cor0
----
1268
3320
850

query I rowsort
SELECT DISTINCT + 69 * + col0 AS col2 FROM tab2 AS cor0
----
483
5382
5451

query I rowsort
SELECT - 11 - col2 AS col1 FROM tab2 AS cor0
----
-37
-38
-49

query I rowsort
SELECT + + ( col0 ) * col0 AS col2 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT + col0 * - ( - col0 ) AS col1 FROM tab1 cor0
----
4096
6400
9

query I rowsort
SELECT ALL - - cor0.col1 - 37 AS col2 FROM tab1 AS cor0
----
-11
-24
-27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * + col0 + + 6 * - col0 col1 FROM tab1 AS cor0
----
-180
-4032
-8160

query I rowsort
SELECT ALL - col0 - - 25 AS col0 FROM tab2 AS cor0
----
-53
-54
18

query I rowsort
SELECT + + col2 + + 54 * col2 FROM tab1 AS cor0
----
2970
3135
5280

query I rowsort
SELECT DISTINCT cor0.col0 * + col0 * col2 + cor0.col0 FROM tab0 AS cor0
----
1260
19032
649611

query I rowsort
SELECT ALL + - col2 * - 0 AS col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6339
SELECT - col0 + 99 DIV - 10 AS col0 FROM tab1 AS cor0
----
-12
-73
-89

skipif mysql # not compatible
query I rowsort label-6339
SELECT - col0 + 99 / - 10 AS col0 FROM tab1 AS cor0
----
-12
-73
-89

query I rowsort
SELECT DISTINCT col2 * 64 FROM tab1 cor0
----
3456
3648
6144

query I rowsort
SELECT - cor0.col1 + col2 * 31 AS col2 FROM tab1 AS cor0
----
1648
1757
2963

query I rowsort
SELECT - cor1.col0 + - 32 FROM tab2 AS cor0 CROSS JOIN tab2, tab2 AS cor1
----
27 values hashing to 34a43d810eb6467e8ee5b9869fb7a597

query I rowsort
SELECT DISTINCT + 88 * 28 + col0 AS col2 FROM tab2 cor0
----
2471
2542
2543

query I rowsort
SELECT ALL + cor0.col0 AS col0 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT ALL 41 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6346
SELECT col2 * + CAST( - col1 AS SIGNED ) + - col2 FROM tab2
----
-1560
-684
-864

skipif mysql # not compatible
query I rowsort label-6346
SELECT col2 * + CAST ( - col1 AS INTEGER ) + - col2 FROM tab2
----
-1560
-684
-864

query I rowsort
SELECT tab2.col2 * + col0 + 77 AS col1 FROM tab2
----
2105
266
3079

query I rowsort
SELECT + + cor0.col1 * 85 AS col0 FROM tab2 AS cor0
----
1445
2635
5015

query I rowsort
SELECT ( 93 ) * col1 FROM tab0 AS cor0
----
7998
8463
9021

query I rowsort
SELECT + col2 * 42 + + col2 FROM tab1 AS cor0
----
2322
2451
4128

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6351
SELECT DISTINCT - col2 * 47 - + col1 / CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6351
SELECT DISTINCT - col2 * 47 - + col1 / CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL cor0.col1 * - cor0.col2 + cor0.col1 * col0 FROM tab1 AS cor0
----
-1326
-208
70

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6353
SELECT + CAST( NULL AS SIGNED ) * + col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6353
SELECT + CAST ( NULL AS INTEGER ) * + col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + 61 * 62 FROM tab0 AS cor0
----
3782
3782
3782

query I rowsort
SELECT ( col2 ) * col0 + ( cor0.col2 ) * + col0 FROM tab1 AS cor0
----
15360
324
7296

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 26 + cor0.col2 * + cor0.col2 col0 FROM tab0 AS cor0
----
-25
1063
6698

query I rowsort
SELECT + cor0.col0 + + col1 * + col1 AS col1 FROM tab0 AS cor0
----
7420
8370
9444

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6358
SELECT CAST( NULL AS SIGNED ) AS col0 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-6358
SELECT CAST ( NULL AS INTEGER ) AS col0 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT + - col0 * + col2 + + col1 AS col1 FROM tab0 cor0
----
-706
-7207
62

query I rowsort
SELECT + col1 + + 19 FROM tab2 AS cor0
----
36
50
78

query I rowsort
SELECT ALL - 67 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to fbe03b15d6b951410b38f7e98895006f

query I rowsort
SELECT ALL ( col1 ) * col2 + col2 * col1 + col2 FROM tab1
----
1197
2592
2862

query I rowsort
SELECT DISTINCT - - 78 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
78

query I rowsort
SELECT ALL tab1.col2 + col2 * - col2 AS col2 FROM tab1
----
-2862
-3192
-9120

query I rowsort
SELECT - col2 + + col0 + - 81 FROM tab2
----
-101
-29
-40

onlyif mysql # use DIV operator for integer division
query I rowsort label-6366
SELECT - ( col2 ) DIV col1 AS col0 FROM tab2
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-6366
SELECT - ( col2 ) / col1 AS col0 FROM tab2
----
-2
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * col0 col1 FROM tab2 AS cor0
----
49
6084
6241

onlyif mysql # use DIV operator for integer division
query I rowsort label-6368
SELECT - - col1 DIV col2 AS col1 FROM tab0 cor0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-6368
SELECT - - col1 / col2 AS col1 FROM tab0 cor0
----
1
2
97

query I rowsort
SELECT DISTINCT - 38 AS col1 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
-38

query I rowsort
SELECT DISTINCT - 96 * cor0.col1 AS col1 FROM tab0 AS cor0
----
-8256
-8736
-9312

query I rowsort
SELECT - 12 * - col2 + + ( col0 ) FROM tab2 AS cor0
----
331
390
535

query I rowsort
SELECT - col2 * col0 * col1 FROM tab0 AS cor0
----
-3395
-664118
-68112

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6373
SELECT - 90 * - col0 + + CAST( col2 AS SIGNED ) + col1 FROM tab2 AS cor0
----
688
7105
7165

skipif mysql # not compatible
query I rowsort label-6373
SELECT - 90 * - col0 + + CAST ( col2 AS INTEGER ) + col1 FROM tab2 AS cor0
----
688
7105
7165

query I rowsort
SELECT + cor0.col2 + 66 * 92 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 001aced7cdd15e56b0fd20c77e36f808

query I rowsort
SELECT - 88 FROM tab1, tab1 cor0, tab2 AS cor1
----
27 values hashing to eb8cbefa7d831e1a0183e919e2caef32

query I rowsort
SELECT DISTINCT + col1 - - col2 * + 98 FROM tab2
----
2607
2677
3741

query I rowsort
SELECT ( col2 ) + - col1 + col0 AS col2 FROM tab0
----
-29
-61
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6378
SELECT - col1 * + tab2.col0 + + CAST( + col0 AS SIGNED ) AS col1 FROM tab2
----
-1264
-210
-4524

skipif mysql # not compatible
query I rowsort label-6378
SELECT - col1 * + tab2.col0 + + CAST ( + col0 AS INTEGER ) AS col1 FROM tab2
----
-1264
-210
-4524

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6379
SELECT col0 - - col2 * - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6379
SELECT col0 - - col2 * - CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6380
SELECT - 71 DIV + col0 AS col1 FROM tab0
----
-2
-2
0

skipif mysql # not compatible
query I rowsort label-6380
SELECT - 71 / + col0 AS col1 FROM tab0
----
-2
-2
0

query I rowsort
SELECT DISTINCT - col1 + - col1 * col2 - + col2 * tab0.col1 FROM tab0
----
-15015
-291
-5762

query I rowsort
SELECT + - col0 + col0 - + ( + col2 ) AS col2 FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT ALL - cor0.col2 + - 74 FROM tab1, tab1 AS cor0
----
9 values hashing to 9e1c16b710c8a8a3baceed4762f4b32a

query I rowsort
SELECT + - col0 * + col1 + col1 AS col0 FROM tab0 AS cor0
----
-1978
-3298
-8008

query I rowsort
SELECT cor0.col1 * cor1.col2 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to c60831db2936bdb61fb09e86d08b0883

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6386
SELECT + CAST( col1 AS SIGNED ) AS col2 FROM tab1 cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-6386
SELECT + CAST ( col1 AS INTEGER ) AS col2 FROM tab1 cor0
----
10
13
26

query I rowsort
SELECT - 61 * 30 FROM tab0 AS cor0
----
-1830
-1830
-1830

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 - - ( col1 ) * - col1 * 34 AS col2 FROM tab1 AS cor0
----
-22984
-3400
-5746

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - cor0.col0 * 8 + + col0 col2 FROM tab0 AS cor0
----
-168
-245
-623

query I rowsort
SELECT DISTINCT col2 * col1 + col2 AS col2 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT DISTINCT + ( 98 ) - col2 AS col0 FROM tab1 AS cor0
----
2
41
44

query I rowsort
SELECT ALL 56 AS col1 FROM tab0, tab1 cor0
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa

onlyif mysql # use DIV operator for integer division
query I rowsort label-6394
SELECT ALL - - cor0.col2 DIV + col0 + - col1 FROM tab1 AS cor0
----
-10
-12
-8

skipif mysql # not compatible
query I rowsort label-6394
SELECT ALL - - cor0.col2 / + col0 + - col1 FROM tab1 AS cor0
----
-10
-12
-8

query I rowsort
SELECT ( - col0 ) + + ( col2 ) AS col1 FROM tab1 cor0
----
-7
16
51

query I rowsort
SELECT ALL 95 + col1 * col0 + - col0 AS col1 FROM tab2 AS cor0
----
1359
305
4619

query I rowsort
SELECT ALL - 10 * col2 + - cor0.col1 + col2 FROM tab1 AS cor0
----
-512
-523
-877

onlyif mysql # use DIV operator for integer division
query I rowsort label-6398
SELECT ALL col2 DIV col2 + + 88 AS col2 FROM tab1 AS cor0
----
89
89
89

skipif mysql # not compatible
query I rowsort label-6398
SELECT ALL col2 / col2 + + 88 AS col2 FROM tab1 AS cor0
----
89
89
89

query I rowsort
SELECT - 28 + + col2 FROM tab1 AS cor0
----
26
29
68

query I rowsort
SELECT ALL - ( col2 ) + 68 AS col2 FROM tab2 AS cor0
----
30
41
42

query I rowsort
SELECT DISTINCT + 56 + + cor0.col1 * 7 + + col1 FROM tab1 AS cor0
----
136
160
264

query I rowsort
SELECT ALL - col1 * - col1 + + 24 FROM tab0 cor0
----
7420
8305
9433

query I rowsort
SELECT DISTINCT + col0 + col2 * ( + col1 ) AS col2 FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT - 47 + + col2 FROM tab0 AS cor0
----
-14
-46
35

skipif mysql # not compatible
query I rowsort
SELECT ALL + 49 * - cor0.col1 + CAST ( col0 AS REAL ) AS col1 FROM tab1 AS cor0
----
-1271
-426
-557

query I rowsort
SELECT DISTINCT - ( cor0.col2 ) * col2 + col2 + - col2 FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT DISTINCT - col0 * + col1 - - 98 FROM tab1 AS cor0
----
-542
-942
20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 17 col2 FROM tab2 cor0
----
17
17
17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - ( cor0.col2 ) col2 FROM tab0 AS cor0
----
-1
-33
-82

onlyif mysql # use DIV operator for integer division
query I rowsort label-6410
SELECT + col0 DIV col1 + - col2 + - col2 * ( + 6 ) FROM tab0 AS cor0
----
-231
-574
-7

skipif mysql # not compatible
query I rowsort label-6410
SELECT + col0 / col1 + - col2 + - col2 * ( + 6 ) FROM tab0 AS cor0
----
-231
-574
-7

onlyif mysql # use DIV operator for integer division
query I rowsort label-6411
SELECT - - col0 DIV cor0.col0 AS col1 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6411
SELECT - - col0 / cor0.col0 AS col1 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT + - col1 + - 28 * col1 AS col2 FROM tab0 AS cor0
----
-2494
-2639
-2813

query I rowsort
SELECT DISTINCT + col1 + cor0.col1 - - col0 * - col0 FROM tab0 AS cor0
----
-1031
-404
-7739

query I rowsort
SELECT - col0 + ( col0 ) * col0 AS col0 FROM tab2 AS cor0
----
42
6006
6162

query I rowsort
SELECT cor0.col1 FROM tab0, tab1, tab0 cor0
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT - cor0.col1 * 33 + - col0 * + col0 * + ( col1 ) FROM tab0 cor0
----
-122026
-52374
-723814

query I rowsort
SELECT + col0 + ( + col2 ) * col2 + + col0 AS col2 FROM tab0 AS cor0
----
1137
6902
71

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6418
SELECT DISTINCT - + col1 - - CAST( NULL AS SIGNED ) * + col2 * - col1 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6418
SELECT DISTINCT - + col1 - - CAST ( NULL AS INTEGER ) * + col2 * - col1 AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6419
SELECT + col2 * 58 * 77 + col1 / + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6419
SELECT + col2 * 58 * 77 + col1 / + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + ( 91 ) AS col1 FROM tab1 AS cor0
----
-91
-91
-91

query I rowsort
SELECT DISTINCT ( - col2 ) * + col1 * 25 + - ( col0 ) FROM tab0 AS cor0
----
-186639
-2460
-70974

query I rowsort
SELECT ALL + - col1 * + col2 - - col0 FROM tab1 AS cor0
----
-1168
-1401
-506

query I rowsort
SELECT ALL 71 AS col0 FROM tab2, tab0 AS cor0, tab0 AS cor1, tab2 AS cor2
----
81 values hashing to 39b7515708f32e28b7b5a1bfec0df356

onlyif mysql # use DIV operator for integer division
query I rowsort label-6424
SELECT ALL col0 DIV + tab0.col2 + - col0 AS col0 FROM tab0
----
-24
-88
0

skipif mysql # not compatible
query I rowsort label-6424
SELECT ALL col0 / + tab0.col2 + - col0 AS col0 FROM tab0
----
-24
-88
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6425
SELECT + - col2 + 64 DIV 55 FROM tab2 AS cor0
----
-25
-26
-37

skipif mysql # not compatible
query I rowsort label-6425
SELECT + - col2 + 64 / 55 FROM tab2 AS cor0
----
-25
-26
-37

query I rowsort
SELECT - 88 * col0 AS col0 FROM tab2 AS cor0
----
-616
-6864
-6952

query I rowsort
SELECT ALL col1 * + ( - 45 ) + - col2 + - 22 AS col2 FROM tab0 AS cor0
----
-3925
-4199
-4388

query I rowsort
SELECT DISTINCT col0 * - 91 FROM tab2 cor0
----
-637
-7098
-7189

query I rowsort
SELECT ALL + + col0 * 11 * col2 AS col0 FROM tab0 AS cor0
----
385
80278
8712

query I rowsort
SELECT + col2 + + ( - 68 ) FROM tab0 AS cor0
----
-35
-67
14

query I rowsort
SELECT DISTINCT - cor0.col1 + 36 FROM tab1 AS cor0
----
10
23
26

query I rowsort
SELECT DISTINCT col2 * col0 * - col2 + col0 AS col2 FROM tab2 AS cor0
----
-113997
-5096
-52650

query I rowsort
SELECT col1 + - 10 * 92 FROM tab2 AS cor0
----
-861
-889
-903

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6434
SELECT DISTINCT + + cor0.col2 * - CAST( NULL AS SIGNED ) col0 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6434
SELECT DISTINCT + + cor0.col2 * - CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6435
SELECT ALL col0 DIV - col1 + + 27 FROM tab2 AS cor0
----
23
26
27

skipif mysql # not compatible
query I rowsort label-6435
SELECT ALL col0 / - col1 + + 27 FROM tab2 AS cor0
----
23
26
27

query I rowsort
SELECT ALL col0 * ( col2 ) + 37 AS col2 FROM tab1 AS cor0
----
199
3685
7717

query I rowsort
SELECT ALL + col0 + - ( - col1 ) FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT 67 + - 71 FROM tab1 cor0
----
-4
-4
-4

query I rowsort
SELECT DISTINCT cor0.col0 * col1 * - col1 AS col2 FROM tab2 AS cor0
----
-22831
-271518
-6727

query I rowsort
SELECT DISTINCT + col2 * 80 AS col0 FROM tab2 cor0
----
2080
2160
3040

query I rowsort
SELECT ALL + ( col0 ) + col2 AS col1 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT + col1 + 34 FROM tab1 AS cor0
----
44
47
60

query I rowsort
SELECT ALL - + col2 - 94 AS col0 FROM tab2 AS cor0
----
-120
-121
-132

query I rowsort
SELECT DISTINCT - + 3 * - col2 AS col0 FROM tab1 AS cor0
----
162
171
288

query I rowsort
SELECT 18 * col2 * - col0 FROM tab2 AS cor0
----
-3402
-36504
-54036

query I rowsort
SELECT DISTINCT + + 7 * col0 FROM tab1 AS cor0
----
21
448
560

query I rowsort
SELECT DISTINCT col0 * + cor0.col0 AS col0 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT DISTINCT - 18 + + col2 * + 34 + - col2 AS col0 FROM tab0 AS cor0
----
1071
15
2688

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6449
SELECT ALL - - col1 + col1 * - CAST( + col2 AS SIGNED ) FROM tab2 cor0
----
-1475
-629
-806

skipif mysql # not compatible
query I rowsort label-6449
SELECT ALL - - col1 + col1 * - CAST ( + col2 AS INTEGER ) FROM tab2 cor0
----
-1475
-629
-806

query I rowsort
SELECT ALL - col1 + + cor0.col2 + col0 FROM tab1 cor0
----
111
163
31

query I rowsort
SELECT ALL + col2 * - col2 * - col1 FROM tab0 AS cor0
----
611884
93654
97

query I rowsort
SELECT - ( - col2 ) + 50 FROM tab2 AS cor0
----
76
77
88

onlyif mysql # use DIV operator for integer division
query I rowsort label-6453
SELECT + cor0.col2 * col1 + col0 DIV col1 FROM tab0 AS cor0
----
2838
7462
97

skipif mysql # not compatible
query I rowsort label-6453
SELECT + cor0.col2 * col1 + col0 / col1 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT + - ( + col0 ) + cor0.col2 AS col1 FROM tab1 cor0
----
-7
16
51

query I rowsort
SELECT + - col2 + - cor0.col0 * + cor0.col2 * col2 FROM tab2 AS cor0
----
-114114
-5130
-52754

query I rowsort
SELECT - + col1 + - col0 * col0 AS col0 FROM tab2 AS cor0
----
-6143
-6258
-80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6457
SELECT DISTINCT cor0.col2 * CAST( NULL AS SIGNED ) FROM tab1, tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6457
SELECT DISTINCT cor0.col2 * CAST ( NULL AS INTEGER ) FROM tab1, tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL 57 + + col1 FROM tab0 AS cor0
----
143
148
154

query I rowsort
SELECT DISTINCT col2 + + col2 * + cor0.col1 AS col1 FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT 21 * + col1 AS col2 FROM tab0 cor0
----
1806
1911
2037

onlyif mysql # use DIV operator for integer division
query I rowsort label-6461
SELECT + ( - col0 ) * col2 DIV col1 FROM tab0 AS cor0
----
-80
-9
0

skipif mysql # not compatible
query I rowsort label-6461
SELECT + ( - col0 ) * col2 / col1 FROM tab0 AS cor0
----
-80
-9
0

query I rowsort
SELECT col1 * + 24 + + 17 AS col1 FROM tab0
----
2081
2201
2345

onlyif mysql # use DIV operator for integer division
query I rowsort label-6463
SELECT + tab1.col1 DIV - tab1.col1 AS col0 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6463
SELECT + tab1.col1 / - tab1.col1 AS col0 FROM tab1
----
-1
-1
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-6464
SELECT + 59 DIV - col0 AS col1 FROM tab0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-6464
SELECT + 59 / - col0 AS col1 FROM tab0
----
-1
-2
0

query I rowsort
SELECT DISTINCT + col0 + + ( - tab2.col2 ) AS col0 FROM tab2
----
-20
41
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-6466
SELECT DISTINCT - 32 + - 59 * col2 + - tab2.col1 DIV + 53 AS col2 FROM tab2
----
-1567
-1625
-2274

skipif mysql # not compatible
query I rowsort label-6466
SELECT DISTINCT - 32 + - 59 * col2 + - tab2.col1 / + 53 AS col2 FROM tab2
----
-1567
-1625
-2274

query I rowsort
SELECT + col0 * ( cor0.col0 ) FROM tab2 cor0
----
49
6084
6241

query I rowsort
SELECT - col2 * col2 - col2 * + col2 FROM tab2
----
-1352
-1458
-2888

query I rowsort
SELECT + col2 * - 32 + + col1 FROM tab0 AS cor0
----
-2533
-970
65

query I rowsort
SELECT ALL - + col2 + ( col1 ) * col0 AS col1 FROM tab2 AS cor0
----
1305
190
4576

query I rowsort
SELECT DISTINCT + + col1 * col1 + 27 AS col2 FROM tab2 AS cor0
----
316
3508
988

query I rowsort
SELECT ALL - col0 * - col1 * + cor0.col1 AS col0 FROM tab0 AS cor0
----
177504
329315
737009

query I rowsort
SELECT DISTINCT + - ( 98 ) AS col1 FROM tab0 AS cor0
----
-98

query I rowsort
SELECT DISTINCT cor1.col1 AS col0 FROM tab2 cor0 CROSS JOIN tab1, tab2 AS cor1
----
17
31
59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6475
SELECT + col2 + CAST( ( + col2 ) * - col0 AS SIGNED ) AS col0 FROM tab0
----
-34
-7216
-759

skipif mysql # not compatible
query I rowsort label-6475
SELECT + col2 + CAST ( ( + col2 ) * - col0 AS INTEGER ) AS col0 FROM tab0
----
-34
-7216
-759

query I rowsort
SELECT 58 * + 24 AS col1 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to e1dc6fb8feb1b10fb351fe5e6201183c

query I rowsort
SELECT - 13 * col2 FROM tab1 AS cor0
----
-1248
-702
-741

query I rowsort
SELECT + 4 * - col0 FROM tab1
----
-12
-256
-320

query I rowsort
SELECT 38 * 6 AS col0 FROM tab1
----
228
228
228

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6480
SELECT CAST( NULL AS SIGNED ) * + tab1.col1 * + col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6480
SELECT CAST ( NULL AS INTEGER ) * + tab1.col1 * + col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ( 66 ) AS col0 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 897b6122ac98340b78905f39d81897fc

query I rowsort
SELECT + ( col0 * col1 ) AS col0 FROM tab1
----
1040
640
78

query I rowsort
SELECT + 9 FROM tab2, tab1, tab1 cor0
----
27 values hashing to ebef7303942834ca1e6ca8604ec18a07

query I rowsort
SELECT ALL - tab1.col2 * col1 + col2 AS col1 FROM tab1
----
-1152
-1350
-513

onlyif mysql # use DIV operator for integer division
query I rowsort label-6485
SELECT col1 + col0 DIV ( - col2 ) AS col1 FROM tab1
----
13
26
9

skipif mysql # not compatible
query I rowsort label-6485
SELECT col1 + col0 / ( - col2 ) AS col1 FROM tab1
----
13
26
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-6486
SELECT ALL + 33 DIV + col0 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6486
SELECT ALL + 33 / + col0 FROM tab0
----
0
0
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-6487
SELECT ALL col2 DIV - col0 AS col0 FROM tab1 cor0
----
-1
-18
0

skipif mysql # not compatible
query I rowsort label-6487
SELECT ALL col2 / - col0 AS col0 FROM tab1 cor0
----
-1
-18
0

query I rowsort
SELECT ALL - cor0.col2 + col2 * col2 AS col0 FROM tab0 AS cor0
----
0
1056
6642

query I rowsort
SELECT DISTINCT - col0 * col1 + - tab0.col0 AS col2 FROM tab0
----
-2088
-3430
-8188

query I rowsort
SELECT ALL + col0 + col2 * cor0.col1 AS col0 FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT - 51 + + 13 - col1 FROM tab2
----
-55
-69
-97

query I rowsort
SELECT + col1 + + 74 AS col1 FROM tab2
----
105
133
91

query I rowsort
SELECT DISTINCT col2 - - 88 * col1 AS col2 FROM tab0
----
7601
8090
8537

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 - col2 col2 FROM tab2
----
0

query I rowsort
SELECT ALL + tab0.col1 - ( col0 ) FROM tab0
----
2
62
62

query I rowsort
SELECT DISTINCT col2 - 92 FROM tab1
----
-35
-38
4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6497
SELECT - CAST( + ( + col0 ) AS SIGNED ) * cor0.col2 * col0 - col2 * + col2 AS col1 FROM tab2 AS cor0
----
-158860
-2052
-238602

skipif mysql # not compatible
query I rowsort label-6497
SELECT - CAST ( + ( + col0 ) AS INTEGER ) * cor0.col2 * col0 - col2 * + col2 AS col1 FROM tab2 AS cor0
----
-158860
-2052
-238602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col1 ) + + col1 col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - 83 + col2 * - col1 + + tab0.col1 * tab0.col2 AS col1 FROM tab0
----
-83
-83
-83

onlyif mysql # use DIV operator for integer division
query I rowsort label-6500
SELECT + col1 DIV - 92 - + col1 AS col2 FROM tab2 AS cor0
----
-17
-31
-59

skipif mysql # not compatible
query I rowsort label-6500
SELECT + col1 / - 92 - + col1 AS col2 FROM tab2 AS cor0
----
-17
-31
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 * 44 - - col1 col1 FROM tab1 AS cor0
----
-1118
-430
-559

query I rowsort
SELECT ALL + cor0.col0 * - col1 + col1 AS col2 FROM tab1 cor0
----
-1027
-52
-630

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 5 col2 FROM tab2 AS cor0
----
5

query I rowsort
SELECT DISTINCT col0 + + col1 * col1 AS col0 FROM tab0 AS cor0
----
7420
8370
9444

query I rowsort
SELECT ALL - col0 + + col0 * - col0 AS col0 FROM tab0 AS cor0
----
-1260
-600
-8010

query I rowsort
SELECT - 60 * col2 AS col2 FROM tab0 AS cor0
----
-1980
-4920
-60

query I rowsort
SELECT col1 * col1 + col1 * + col1 FROM tab2 AS cor0
----
1922
578
6962

query I rowsort
SELECT ALL cor0.col2 + col0 * col0 * col1 FROM tab1 AS cor0
----
288
41017
83296

query I rowsort
SELECT col2 * - col2 - - col1 AS col1 FROM tab1 AS cor0
----
-2890
-3239
-9203

query I rowsort
SELECT DISTINCT - cor0.col2 * col0 * col1 + col0 FROM tab0 cor0
----
-3360
-664029
-68088

onlyif mysql # use DIV operator for integer division
query I rowsort label-6511
SELECT ALL col0 DIV 95 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6511
SELECT ALL col0 / 95 AS col2 FROM tab0
----
0
0
0

query I rowsort
SELECT - cor0.col0 * col1 - cor0.col1 AS col0 FROM tab0 AS cor0
----
-2150
-3492
-8190

query I rowsort
SELECT ALL + col2 * col2 + cor0.col2 * - col0 * - cor0.col1 AS col1 FROM tab1 cor0
----
109056
39729
7128

query I rowsort
SELECT DISTINCT + 79 * + col1 + col0 AS col1 FROM tab0 cor0
----
6818
7278
7698

query I rowsort
SELECT DISTINCT + cor0.col0 + 95 FROM tab1 AS cor0
----
159
175
98

query I rowsort
SELECT ALL + 48 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b

query I rowsort
SELECT + 33 + ( + col2 ) + 16 FROM tab2 AS cor0
----
75
76
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col1 col1 FROM tab1, tab0 cor0, tab0 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT ALL 56 * + col2 AS col0 FROM tab1
----
3024
3192
5376

query I rowsort
SELECT - col1 * ( tab1.col0 ) FROM tab1
----
-1040
-640
-78

query IIIIIIIII rowsort
SELECT * FROM tab0, tab2, tab1 AS cor0 WHERE NULL <> NULL
----

query I rowsort
SELECT DISTINCT + 9 AS col1 FROM tab1
----
9

query I rowsort
SELECT col1 * + 34 AS col2 FROM tab1
----
340
442
884

query I rowsort
SELECT ALL ( - 98 ) AS col2 FROM tab2
----
-98
-98
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * 49 - - col2 col1 FROM tab1 AS cor0
----
2700
2850
4800

query I rowsort
SELECT + col0 * 39 FROM tab0 cor0
----
1365
3471
936

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6527
SELECT DISTINCT + col1 + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6527
SELECT DISTINCT + col1 + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + - col1 - + cor0.col0 AS col0 FROM tab2 AS cor0
----
-137
-38
-96

query I rowsort
SELECT - 98 + - tab0.col1 FROM tab0
----
-184
-189
-195

query I rowsort
SELECT col1 * + ( col1 ) * + col1 FROM tab0
----
636056
753571
912673

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab2, tab2 cor2
----
3645 values hashing to bb6428239bf7f3ea361f6a10500a581d

query I rowsort
SELECT ALL cor0.col0 + 31 * - cor0.col2 FROM tab1 AS cor0 CROSS JOIN tab0, tab2 AS cor1
----
27 values hashing to baa13821bd3d78a2de3382b8b0b6aa81

query I rowsort
SELECT DISTINCT 58 FROM tab1, tab0 AS cor0, tab0, tab2 AS cor1
----
58

query I rowsort
SELECT - col2 * 66 FROM tab2 AS cor0
----
-1716
-1782
-2508

query I rowsort
SELECT DISTINCT + col0 * + ( cor0.col2 ) AS col0 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT + col0 - - cor0.col0 FROM tab2 cor0
----
14
156
158

query I rowsort
SELECT DISTINCT - col1 + + ( + col0 ) FROM tab1 AS cor0
----
-23
54
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + col2 - + ( - col0 ) col0 FROM tab1 cor0
----
2919
3313
9296

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + col0 * - 9 col1 FROM tab2 AS cor0
----
-56
-624
-632

query I rowsort
SELECT ALL - - cor0.col2 * col0 AS col0 FROM tab2 AS cor0
----
189
2028
3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - col0 + col1 col2 FROM tab2 AS cor0
----
-45
40
55

query I rowsort
SELECT + col0 + + 13 * - col1 FROM tab1 AS cor0
----
-335
-66
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 + + ( + col0 ) + + col0 col2 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT - col2 * 5 AS col0 FROM tab0
----
-165
-410
-5

query I rowsort
SELECT DISTINCT tab2.col1 + 39 * - 42 FROM tab2
----
-1579
-1607
-1621

onlyif mysql # use DIV operator for integer division
query I rowsort label-6546
SELECT - + col1 + col2 - - cor0.col2 DIV - col1 AS col1 FROM tab0 cor0
----
-53
-9
-96

skipif mysql # not compatible
query I rowsort label-6546
SELECT - + col1 + col2 - - cor0.col2 / - col1 AS col1 FROM tab0 cor0
----
-53
-9
-96

query I rowsort
SELECT - + 0 + - col2 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT ALL col1 + col2 * - col1 + + col0 FROM tab2
----
-1397
-550
-799

query I rowsort
SELECT DISTINCT col2 + - col0 * col2 AS col0 FROM tab2
----
-162
-2002
-2964

query I rowsort
SELECT ALL - cor0.col2 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e

query I rowsort
SELECT ALL + 53 FROM tab0, tab1 AS cor0
----
9 values hashing to fede6033dee346dbd272085c05724fda

onlyif mysql # use DIV operator for integer division
query I rowsort label-6552
SELECT + + col1 + + col1 * col2 DIV col1 col2 FROM tab2 AS cor0
----
55
58
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6552
SELECT + + col1 + + col1 * col2 / col1 col2 FROM tab2 AS cor0
----
55
58
85

onlyif mysql # use DIV operator for integer division
query I rowsort label-6553
SELECT 28 + - 64 DIV col2 AS col0 FROM tab0 AS cor0
----
-36
27
28

skipif mysql # not compatible
query I rowsort label-6553
SELECT 28 + - 64 / col2 AS col0 FROM tab0 AS cor0
----
-36
27
28

onlyif mysql # use DIV operator for integer division
query I rowsort label-6554
SELECT + col0 * - 62 + - cor0.col1 + - ( 48 + col2 ) * col1 DIV - col2 FROM tab1 AS cor0
----
-163
-3960
-4954

skipif mysql # not compatible
query I rowsort label-6554
SELECT + col0 * - 62 + - cor0.col1 + - ( 48 + col2 ) * col1 / - col2 FROM tab1 AS cor0
----
-163
-3960
-4954

query I rowsort
SELECT ALL - 6 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to e92b2679faac7be63701967e3f0c0934

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6556
SELECT DISTINCT + CAST( NULL AS DECIMAL ) / 92 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6556
SELECT DISTINCT + CAST ( NULL AS REAL ) / 92 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT - 77 AS col2 FROM tab0, tab2 AS cor0
----
-77

query I rowsort
SELECT - col0 * col2 + + col1 AS col0 FROM tab0 AS cor0
----
-706
-7207
62

query I rowsort
SELECT - col1 + cor0.col2 * + col1 FROM tab0 AS cor0
----
0
2752
7371

query I rowsort
SELECT - 9 + col1 - - cor0.col2 FROM tab0 cor0
----
110
164
89

query I rowsort
SELECT col0 * - cor0.col2 + + col1 FROM tab1 AS cor0
----
-136
-3638
-7667

query I rowsort
SELECT DISTINCT - 38 - - col1 FROM tab2 AS cor0
----
-21
-7
21

query I rowsort
SELECT ALL col0 + col0 * + col0 * 15 AS col0 FROM tab2 AS cor0
----
742
91338
93694

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 13 col1 FROM tab2 cor0
----
-13
-13
-13

query I rowsort
SELECT ALL col0 - - col2 * + ( cor0.col1 ) FROM tab0 AS cor0
----
132
2862
7551

query I rowsort
SELECT DISTINCT + + col1 - + col1 AS col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL + 60 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 1d2ab302ae60f95b15e68cf89083b162

query I rowsort
SELECT DISTINCT - cor0.col2 + + cor0.col1 AS col1 FROM tab1, tab0 AS cor0
----
53
9
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-6569
SELECT 96 DIV col2 + CAST( 87 AS SIGNED ) * + col2 FROM tab0
----
183
2873
7135

skipif mysql # not compatible
query I rowsort label-6569
SELECT 96 / col2 + CAST ( 87 AS INTEGER ) * + col2 FROM tab0
----
183
2873
7135

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 77 col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622

onlyif mysql # use DIV operator for integer division
query I rowsort label-6571
SELECT + + 78 * col2 DIV - cor0.col0 + - ( cor0.col0 ) * 29 AS col1 FROM tab1 AS cor0
----
-1491
-1925
-2413

skipif mysql # not compatible
query I rowsort label-6571
SELECT + + 78 * col2 / - cor0.col0 + - ( cor0.col0 ) * 29 AS col1 FROM tab1 AS cor0
----
-1491
-1925
-2413

query I rowsort
SELECT + col1 * - col0 + - col2 AS col2 FROM tab1 AS cor0
----
-1136
-132
-697

query I rowsort
SELECT - 78 * col1 + 76 FROM tab1 cor0
----
-1952
-704
-938

query I rowsort
SELECT + - ( col1 ) + ( 23 ) AS col0 FROM tab0 AS cor0
----
-63
-68
-74

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6575
SELECT DISTINCT - col0 + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6575
SELECT DISTINCT - col0 + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT cor0.col0 * col0 + + col2 AS col1 FROM tab1 cor0
----
4153
63
6496

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - 41 col0 FROM tab0 AS cor0
----
-17
-6
48

onlyif mysql # use DIV operator for integer division
query I rowsort label-6578
SELECT DISTINCT col2 * + col1 DIV + col1 AS col1 FROM tab1
----
54
57
96

skipif mysql # not compatible
query I rowsort label-6578
SELECT DISTINCT col2 * + col1 / + col1 AS col1 FROM tab1
----
54
57
96

query I rowsort
SELECT - 99 * 26 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8843bceef493a4e9b02d6b71dbd3c031

query I rowsort
SELECT ALL col2 + - cor0.col1 * col2 * + cor0.col2 - col0 FROM tab2 AS cor0
----
-22579
-24589
-39936

query I rowsort
SELECT col0 * - ( col2 ) AS col1 FROM tab0 AS cor0
----
-35
-7298
-792

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6582
SELECT DISTINCT cor0.col0 + CAST( - col2 AS SIGNED ) FROM tab2 AS cor0
----
-20
41
52

skipif mysql # not compatible
query I rowsort label-6582
SELECT DISTINCT cor0.col0 + CAST ( - col2 AS INTEGER ) FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT 73 FROM tab0, tab0 cor0, tab0 AS cor1
----
27 values hashing to 3933a906d17a820ccf95467e2206df8f

query I rowsort
SELECT 62 * col1 - + col0 FROM tab1
----
1609
556
726

query I rowsort
SELECT DISTINCT 58 AS col1 FROM tab1, tab0 cor0
----
58

query I rowsort
SELECT - - 59 - ( col2 ) FROM tab1 AS cor0
----
-37
2
5

query I rowsort
SELECT - 75 - + col1 FROM tab2 AS cor0
----
-106
-134
-92

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6588
SELECT + + ( ( col2 ) ) * - CAST( NULL AS DECIMAL ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6588
SELECT + + ( ( col2 ) ) * - CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6589
SELECT cor0.col0 + + CAST( NULL AS SIGNED ) AS col1 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-6589
SELECT cor0.col0 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT ALL - col0 * col2 - col0 AS col0 FROM tab1 AS cor0
----
-165
-3712
-7760

query I rowsort
SELECT ALL + col1 + cor0.col0 + cor0.col2 FROM tab2 AS cor0
----
134
163
65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col1 * cor0.col1 - - 46 * col2 col2 FROM tab1 cor0
----
2722
3160
4585

query I rowsort
SELECT DISTINCT + col1 * col2 + + col2 AS col0 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT + - ( col1 ) + 49 * - col0 * - cor0.col0 FROM tab2 AS cor0
----
2370
298057
305792

query I rowsort
SELECT ( 93 ) * col1 AS col0 FROM tab1
----
1209
2418
930

query I rowsort
SELECT - 62 * col0 AS col2 FROM tab0
----
-1488
-2170
-5518

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 76 col2 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 7b2b08dd3f1adef028d3f40ef7c716da

query I rowsort
SELECT ALL - - 48 AS col0 FROM tab0 AS cor0
----
48
48
48

query I rowsort
SELECT DISTINCT - - col0 + + cor0.col2 * 60 FROM tab1 AS cor0
----
3243
3484
5840

query I rowsort
SELECT DISTINCT + + ( col2 ) + + 46 AS col2 FROM tab0 AS cor0
----
128
47
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 95 col1 FROM tab2 cor0
----
95
95
95

query I rowsort
SELECT - 17 * 96 * col2 FROM tab0
----
-133824
-1632
-53856

query I rowsort
SELECT DISTINCT - 30 FROM tab1, tab0 AS cor0
----
-30

query I rowsort
SELECT DISTINCT 62 + col2 * ( col0 + col2 * 36 ) FROM tab2
----
26426
26495
55048

query I rowsort
SELECT ALL + col1 * - col1 + - col1 + col1 AS col0 FROM tab0
----
-7396
-8281
-9409

query I rowsort
SELECT + 14 * - col2 + 63 * - col0 AS col1 FROM tab2
----
-5278
-5509
-819

onlyif mysql # use DIV operator for integer division
query I rowsort label-6607
SELECT DISTINCT col0 DIV col1 + col1 AS col2 FROM tab2
----
21
31
60

skipif mysql # not compatible
query I rowsort label-6607
SELECT DISTINCT col0 / col1 + col1 AS col2 FROM tab2
----
21
31
60

onlyif mysql # use DIV operator for integer division
query I rowsort label-6608
SELECT + - col1 DIV col0 - ( + col0 * col0 ) FROM tab0 AS cor0
----
-1227
-579
-7922

skipif mysql # not compatible
query I rowsort label-6608
SELECT + - col1 / col0 - ( + col0 * col0 ) FROM tab0 AS cor0
----
-1227
-579
-7922

query I rowsort
SELECT ALL 7 * - col0 FROM tab1 AS cor0
----
-21
-448
-560

query I rowsort
SELECT ALL + ( + col0 ) + col2 AS col2 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT - col2 * + 75 FROM tab0 AS cor0
----
-2475
-6150
-75

onlyif mysql # use DIV operator for integer division
query I rowsort label-6612
SELECT ALL + 96 DIV tab2.col0 FROM tab2, tab0 cor0
----
9 values hashing to 30059525963e6a5b29a2a621770fff65

skipif mysql # not compatible
query I rowsort label-6612
SELECT ALL + 96 / tab2.col0 FROM tab2, tab0 cor0
----
9 values hashing to 30059525963e6a5b29a2a621770fff65

query I rowsort
SELECT + 12 - col2 FROM tab2 AS cor0
----
-14
-15
-26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( + col0 ) * cor0.col0 col2 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT 86 FROM tab0, tab0 AS cor0 CROSS JOIN tab1, tab0 AS cor1
----
81 values hashing to e219687f6f4ab6f7ee442792edcebca9

query I rowsort
SELECT ALL col0 + - col1 - col2 FROM tab2
----
-51
-7
24

query I rowsort
SELECT ALL - 79 * col2 * cor0.col1 AS col1 FROM tab0 AS cor0
----
-224202
-589498
-7663

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 72 + - 26 * + col1 col0 FROM tab0 AS cor0
----
-2164
-2294
-2450

query I rowsort
SELECT + + col2 * col2 * col1 AS col0 FROM tab0 AS cor0
----
611884
93654
97

query I rowsort
SELECT + + col1 + 50 FROM tab0 AS cor0
----
136
141
147

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6621
SELECT DISTINCT - CAST( - ( + col1 ) AS SIGNED ) * + ( + 41 ) AS col2 FROM tab0 AS cor0
----
3526
3731
3977

skipif mysql # not compatible
query I rowsort label-6621
SELECT DISTINCT - CAST ( - ( + col1 ) AS INTEGER ) * + ( + 41 ) AS col2 FROM tab0 AS cor0
----
3526
3731
3977

query I rowsort
SELECT DISTINCT cor0.col2 * + 73 AS col0 FROM tab2 AS cor0
----
1898
1971
2774

query I rowsort
SELECT - col1 * - 86 AS col1 FROM tab1 AS cor0
----
1118
2236
860

query I rowsort
SELECT DISTINCT + 2 + - 14 FROM tab0 cor0
----
-12

query I rowsort
SELECT DISTINCT + - col2 + cor0.col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT - col0 * - col0 + col1 FROM tab1
----
35
4106
6413

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 * col1 * - cor0.col1 col2 FROM tab2 AS cor0
----
-205379
-29791
-4913

query I rowsort
SELECT DISTINCT col2 * col0 + col2 * col1 FROM tab1
----
1566
4218
8928

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN ( NULL ) AND ( - col2 + col0 + col0 * - col1 )
----

query I rowsort
SELECT ALL - col0 * col2 - col2 * + col1 FROM tab0 cor0
----
-132
-14760
-3630

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 - - col0 * col2 * - col2 >= - col1 + col0
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

onlyif mysql # use DIV operator for integer division
query I rowsort label-6632
SELECT col1 DIV + col1 + col1 * + col0 AS col0 FROM tab0
----
2065
3396
8100

skipif mysql # not compatible
query I rowsort label-6632
SELECT col1 / + col1 + col1 * + col0 AS col0 FROM tab0
----
2065
3396
8100

query I rowsort
SELECT + col0 * + tab2.col1 * col0 AS col1 FROM tab2
----
106097
1519
358956

query I rowsort
SELECT DISTINCT col1 * col0 AS col1 FROM tab1 WHERE NOT - col1 > NULL
----

query I rowsort
SELECT DISTINCT - col2 + col1 * col2 + col2 FROM tab2
----
1534
646
837

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL IN ( col1 * - col1 + col0 )
----

query I rowsort
SELECT ALL tab1.col0 FROM tab1 WHERE NOT ( NULL ) = ( NULL )
----

query I rowsort
SELECT col2 * - col0 * - col1 FROM tab1
----
36480
4212
99840

query I rowsort
SELECT ALL - col0 + + col0 - + col0 * col1 FROM tab2
----
-1343
-217
-4602

query I rowsort
SELECT + col0 * col0 + + col0 AS col2 FROM tab1
----
12
4160
6480

query I rowsort
SELECT + col2 - col2 * - col0 FROM tab0
----
36
7380
825

query I rowsort
SELECT + - col1 * + cor0.col2 AS col1 FROM tab1 cor0
----
-1248
-1404
-570

query I rowsort
SELECT ALL + col1 * col1 * col2 + + col2 FROM tab2 AS cor0
----
11020
25974
90532

query I rowsort
SELECT DISTINCT - col2 * col0 - col2 AS col0 FROM tab0 AS cor0
----
-36
-7380
-825

query I rowsort
SELECT DISTINCT - + col1 + cor0.col0 * cor0.col1 FROM tab1 cor0
----
1027
52
630

query I rowsort
SELECT - col1 * col1 * - tab2.col2 + col1 FROM tab2
----
10999
25978
90565

onlyif mysql # use DIV operator for integer division
query I rowsort label-6647
SELECT - - col2 * - col1 DIV col1 FROM tab1 AS cor0
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-6647
SELECT - - col2 * - col1 / col1 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT tab2.col2 + tab2.col1 * col2 FROM tab2
----
1560
684
864

query I rowsort
SELECT ALL - col0 * col2 FROM tab0 WHERE NOT NULL = NULL
----

query I rowsort
SELECT DISTINCT - col0 * col0 - col0 * col2 FROM tab1 AS cor0
----
-14080
-171
-7744

onlyif mysql # use DIV operator for integer division
query I rowsort label-6651
SELECT ALL - col2 + - col1 DIV + col2 FROM tab1 AS cor0
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-6651
SELECT ALL - col2 + - col1 / + col2 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT DISTINCT - tab1.col1 AS col0 FROM tab1 WHERE NULL = NULL
----

query I rowsort
SELECT ALL col2 AS col0 FROM tab0 WHERE NULL = col1
----

query I rowsort
SELECT col2 * - col2 + - col0 * + col2 AS col0 FROM tab2
----
-2704
-4446
-918

query I rowsort
SELECT col0 * + col0 * + 26 FROM tab2 AS cor0
----
1274
158184
162266

query I rowsort
SELECT - col1 * - col1 + + col0 FROM tab0
----
7420
8370
9444

query I rowsort
SELECT - col1 + - 19 * + 24 FROM tab2 AS cor0
----
-473
-487
-515

query I rowsort
SELECT - - col2 * + col0 * 19 FROM tab0 AS cor0
----
138662
15048
665

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6659
SELECT DISTINCT col1 * - CAST( col2 AS SIGNED ) AS col0 FROM tab1
----
-1248
-1404
-570

skipif mysql # not compatible
query I rowsort label-6659
SELECT DISTINCT col1 * - CAST ( col2 AS INTEGER ) AS col0 FROM tab1
----
-1248
-1404
-570

query I rowsort
SELECT + 20 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

onlyif mysql # use DIV operator for integer division
query I rowsort label-6661
SELECT cor0.col0 + - col1 DIV - col1 AS col1 FROM tab1 AS cor0
----
4
65
81

skipif mysql # not compatible
query I rowsort label-6661
SELECT cor0.col0 + - col1 / - col1 AS col1 FROM tab1 AS cor0
----
4
65
81

query I rowsort
SELECT - col0 * - 43 FROM tab1 cor0
----
129
2752
3440

onlyif mysql # use DIV operator for integer division
query I rowsort label-6663
SELECT - + cor0.col0 DIV ( + col0 ) col2 FROM tab0 AS cor0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6663
SELECT - + cor0.col0 / ( + col0 ) col2 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT + col0 * + col0 * + col0 + col1 FROM tab1
----
262154
512013
53

onlyif mysql # use DIV operator for integer division
query I rowsort label-6665
SELECT - col2 + col0 DIV tab1.col2 AS col1 FROM tab1
----
-54
-56
-96

skipif mysql # not compatible
query I rowsort label-6665
SELECT - col2 + col0 / tab1.col2 AS col1 FROM tab1
----
-54
-56
-96

query I rowsort
SELECT ALL + col2 - col0 * - col2 AS col0 FROM tab2
----
2054
216
3040

query I rowsort
SELECT col0 + col1 * + col1 AS col2 FROM tab1
----
164
249
679

query I rowsort
SELECT col1 * col2 - + col2 * col2 AS col0 FROM tab2
----
-798
108
858

query I rowsort
SELECT DISTINCT - col2 * - col0 + col1 FROM tab1
----
188
3658
7693

query I rowsort
SELECT col0 * col0 * + col0 + + col0 AS col1 FROM tab0
----
13848
42910
705058

query I rowsort
SELECT ALL - tab2.col1 * - col1 + col0 AS col1 FROM tab2 WHERE NULL = NULL
----

query I rowsort
SELECT + col1 + + col1 * tab1.col1 * tab1.col0 AS col1 FROM tab1
----
13533
2054
6410

query I rowsort
SELECT ALL - cor0.col2 + col1 AS col0 FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT - col1 * + cor0.col2 * ( 11 ) FROM tab1 AS cor0
----
-13728
-15444
-6270

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6675
SELECT + CAST( + 2 AS SIGNED ) AS col0 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 535345c50a19fdab97ce05d1837b1f09

skipif mysql # not compatible
query I rowsort label-6675
SELECT + CAST ( + 2 AS INTEGER ) AS col0 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 535345c50a19fdab97ce05d1837b1f09

query I rowsort
SELECT col0 + - cor0.col1 AS col0 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT ALL - 57 + cor0.col2 * cor0.col0 AS col1 FROM tab2 AS cor0
----
132
1971
2945

onlyif mysql # use DIV operator for integer division
query I rowsort label-6678
SELECT ALL col2 * col1 DIV + col2 AS col2 FROM tab1
----
10
13
26

skipif mysql # not compatible
query I rowsort label-6678
SELECT ALL col2 * col1 / + col2 AS col2 FROM tab1
----
10
13
26

query I rowsort
SELECT DISTINCT 97 * - 13 AS col0 FROM tab1 AS cor0
----
-1261

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6680
SELECT - CAST( col2 AS SIGNED ) + - col1 AS col2 FROM tab2 cor0
----
-55
-58
-85

skipif mysql # not compatible
query I rowsort label-6680
SELECT - CAST ( col2 AS INTEGER ) + - col1 AS col2 FROM tab2 cor0
----
-55
-58
-85

query I rowsort
SELECT + + ( 10 ) + cor0.col0 * + col1 FROM tab0 AS cor0
----
2074
3405
8109

query I rowsort
SELECT ALL + + ( + 73 ) FROM tab2 AS cor0
----
73
73
73

query I rowsort
SELECT + - col1 * col2 + + col0 * + col0 AS col1 FROM tab1 AS cor0
----
-1395
3526
5152

query I rowsort
SELECT ( ( - col2 ) ) AS col2 FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT ALL - 59 * - col2 FROM tab1 cor0
----
3186
3363
5664

onlyif mysql # use DIV operator for integer division
query I rowsort label-6686
SELECT DISTINCT tab0.col1 - CAST( - col2 AS SIGNED ) DIV col2 AS col2 FROM tab0
----
87
92
98

skipif mysql # not compatible
query I rowsort label-6686
SELECT DISTINCT tab0.col1 - CAST ( - col2 AS INTEGER ) / col2 AS col2 FROM tab0
----
87
92
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 - 32 col0 FROM tab2
----
-1
-15
27

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6688
SELECT + col2 * - CAST( NULL AS SIGNED ) + - col1 * + col0 + + 13 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6688
SELECT + col2 * - CAST ( NULL AS INTEGER ) + - col1 * + col0 + + 13 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + tab2.col0 - + col0 * + tab2.col0 FROM tab2
----
-42
-6006
-6162

onlyif mysql # use DIV operator for integer division
query I rowsort label-6690
SELECT DISTINCT col0 * col2 DIV col1 + col1 FROM tab0
----
171
95
97

skipif mysql # not compatible
query I rowsort label-6690
SELECT DISTINCT col0 * col2 / col1 + col1 FROM tab0
----
171
95
97

query I rowsort
SELECT ALL col0 * + col1 + col0 FROM tab0
----
2088
3430
8188

query I rowsort
SELECT col2 * cor0.col1 + - col0 FROM tab0 AS cor0
----
2814
62
7373

query I rowsort
SELECT ALL - + 12 + - cor0.col2 * + col2 + col1 * 82 AS col2 FROM tab0 AS cor0
----
5951
726
7941

query I rowsort
SELECT DISTINCT - cor0.col2 * + 7 FROM tab2 cor0
----
-182
-189
-266

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 12 + - col1 col1 FROM tab1 AS cor0
----
-22
-25
-38

query I rowsort
SELECT ALL + + 81 + - col0 AS col0 FROM tab0 AS cor0
----
-8
46
57

query I rowsort
SELECT + 17 + 3 * col0 + + ( col0 ) FROM tab2 AS cor0
----
329
333
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + col1 * col1 col2 FROM tab0 AS cor0
----
7372
8192
9374

query I rowsort
SELECT ( ( + tab2.col1 ) * 77 ) + + 76 FROM tab2, tab2 AS cor0
----
9 values hashing to eea7d5b0f2270b5a88be63297d9a36c4

query I rowsort
SELECT DISTINCT col0 * + col2 + 33 FROM tab2
----
2061
222
3035

query I rowsort
SELECT DISTINCT + 9 AS col1 FROM tab0, tab2 AS cor0, tab2 AS cor1, tab2, tab0 AS cor2
----
9

query I rowsort
SELECT + - col0 * - col2 - - 40 AS col2 FROM tab1 AS cor0
----
202
3688
7720

onlyif mysql # use DIV operator for integer division
query I rowsort label-6703
SELECT ALL col2 DIV col0 + - 12 + col2 FROM tab2 AS cor0
----
14
18
26

skipif mysql # not compatible
query I rowsort label-6703
SELECT ALL col2 / col0 + - 12 + col2 FROM tab2 AS cor0
----
14
18
26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6704
SELECT DISTINCT - col1 + CAST( ( + col0 ) AS SIGNED ) + + 9 * 69 * - col0 col1 FROM tab2 AS cor0
----
-4371
-48419
-48997

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6704
SELECT DISTINCT - col1 + CAST ( ( + col0 ) AS INTEGER ) + + 9 * 69 * - col0 col1 FROM tab2 AS cor0
----
-4371
-48419
-48997

query I rowsort
SELECT - col2 + ( col2 ) * + col2 FROM tab2 AS cor0
----
1406
650
702

query I rowsort
SELECT ALL - col1 + + 32 AS col1 FROM tab0 AS cor0
----
-54
-59
-65

query I rowsort
SELECT ALL col1 * + ( col1 ) AS col1 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT DISTINCT + col0 * col0 + - col1 * col1 FROM tab0 cor0
----
-360
-6820
-8184

query I rowsort
SELECT DISTINCT - col2 + - col1 - col0 * - col2 FROM tab0 AS cor0
----
-63
673
7125

query I rowsort
SELECT ALL - col0 + col2 * col1 AS col2 FROM tab2 AS cor0
----
1456
567
830

query I rowsort
SELECT + col1 * - ( col1 ) AS col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT DISTINCT + col2 - + col1 * - 37 AS col0 FROM tab1 AS cor0
----
1016
427
577

query I rowsort
SELECT ALL + - cor0.col1 + - ( + col2 ) FROM tab0 cor0
----
-119
-173
-98

query I rowsort
SELECT DISTINCT cor0.col2 + - cor0.col0 + col0 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT + ( 93 ) FROM tab2 cor0
----
93
93
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-6716
SELECT ALL - col2 * col2 DIV + col1 FROM tab0 AS cor0
----
-12
-73
0

skipif mysql # not compatible
query I rowsort label-6716
SELECT ALL - col2 * col2 / + col1 FROM tab0 AS cor0
----
-12
-73
0

query I rowsort
SELECT ALL + 27 * col0 AS col2 FROM tab1 AS cor0
----
1728
2160
81

query I rowsort
SELECT DISTINCT cor1.col2 + + 41 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
137
95
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6719
SELECT ALL + CAST( NULL AS SIGNED ) * - col0 / col0 + ( col1 + col0 ) / - 29 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6719
SELECT ALL + CAST ( NULL AS INTEGER ) * - col0 / col0 + ( col1 + col0 ) / - 29 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 * cor0.col0 + - cor0.col2 AS col1 FROM tab2 cor0
----
162
2002
2964

onlyif mysql # use DIV operator for integer division
query I rowsort label-6721
SELECT col1 DIV - 56 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6721
SELECT col1 / - 56 FROM tab0
----
-1
-1
-1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6722
SELECT DISTINCT col1 * - CAST( NULL AS SIGNED ) - - 25 AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6722
SELECT DISTINCT col1 * - CAST ( NULL AS INTEGER ) - - 25 AS col2 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT - + col1 + col0 * - col2 AS col2 FROM tab0 cor0
----
-132
-7389
-878

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 55 - - col2 col1 FROM tab1 AS cor0
----
109
112
151

query I rowsort
SELECT + - col2 + + col0 AS col1 FROM tab2 cor0
----
-20
41
52

query I rowsort
SELECT ALL - 53 * col2 + 70 AS col1 FROM tab2 AS cor0
----
-1308
-1361
-1944

query I rowsort
SELECT DISTINCT 88 * - 69 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
-6072

query I rowsort
SELECT DISTINCT col1 * col0 + col2 * + col0 AS col0 FROM tab0 cor0
----
15397
2856
3430

query I rowsort
SELECT ALL cor0.col2 + cor0.col0 FROM tab2 AS cor0
----
104
117
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 46 * col2 col2 FROM tab1 AS cor0
----
-2484
-2622
-4416

onlyif mysql # use DIV operator for integer division
query I rowsort label-6731
SELECT ALL col1 DIV - 68 AS col1 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6731
SELECT ALL col1 / - 68 AS col1 FROM tab0
----
-1
-1
-1

query I rowsort
SELECT col1 * col2 + 23 * - col1 AS col0 FROM tab0 AS cor0
----
-2134
5369
860

query I rowsort
SELECT 5 + - cor0.col1 FROM tab2 AS cor0
----
-12
-26
-54

query I rowsort
SELECT DISTINCT + - 74 + col1 * 90 AS col0 FROM tab1 cor0
----
1096
2266
826

query I rowsort
SELECT + col2 * - col0 + tab0.col0 FROM tab0
----
-7209
-768
0

query I rowsort
SELECT DISTINCT + col1 * + ( 87 ) + + col0 FROM tab2 AS cor0
----
1558
2704
5211

onlyif mysql # use DIV operator for integer division
query I rowsort label-6737
SELECT DISTINCT + col0 + col1 DIV + 92 + - cor0.col2 AS col2 FROM tab0 AS cor0
----
-9
35
7

skipif mysql # not compatible
query I rowsort label-6737
SELECT DISTINCT + col0 + col1 / + 92 + - cor0.col2 AS col2 FROM tab0 AS cor0
----
-9
35
7

query I rowsort
SELECT ALL + col1 * col2 * + cor0.col0 + col0 AS col2 FROM tab0 cor0
----
3430
664207
68136

query I rowsort
SELECT ALL ( - 95 ) FROM tab1
----
-95
-95
-95

query I rowsort
SELECT 7 + - col0 AS col2 FROM tab0 AS cor0
----
-17
-28
-82

query I rowsort
SELECT - col0 * col2 + 71 * - 20 FROM tab0 AS cor0
----
-1455
-2212
-8718

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6742
SELECT ALL - ( + col1 ) * - CAST( - col0 AS SIGNED ) FROM tab0 AS cor0
----
-2064
-3395
-8099

skipif mysql # not compatible
query I rowsort label-6742
SELECT ALL - ( + col1 ) * - CAST ( - col0 AS INTEGER ) FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT + col0 * - col0 * cor0.col2 AS col1 FROM tab1 AS cor0
----
-233472
-486
-614400

query I rowsort
SELECT + 46 + - col1 AS col1 FROM tab2 AS cor0
----
-13
15
29

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6745
SELECT CAST( NULL AS SIGNED ) col2 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6745
SELECT CAST ( NULL AS INTEGER ) col2 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT - col0 * - 80 AS col0 FROM tab0
----
1920
2800
7120

onlyif mysql # use DIV operator for integer division
query I rowsort label-6747
SELECT DISTINCT + col2 DIV + ( col0 ) AS col1 FROM tab2
----
0
3

skipif mysql # not compatible
query I rowsort label-6747
SELECT DISTINCT + col2 / + ( col0 ) AS col1 FROM tab2
----
0
3

query I rowsort
SELECT ALL - - col1 * + col0 + col2 + cor0.col2 FROM tab1 AS cor0
----
1232
186
754

query I rowsort
SELECT ALL col2 * - col0 * 1 + col0 AS col0 FROM tab0 AS cor0
----
-7209
-768
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6750
SELECT DISTINCT - col0 + + col2 + col0 * col0 DIV + ( col0 * cor0.col2 + 94 ) FROM tab1 AS cor0
----
-6
16
51

skipif mysql # not compatible
query I rowsort label-6750
SELECT DISTINCT - col0 + + col2 + col0 * col0 / + ( col0 * cor0.col2 + 94 ) FROM tab1 AS cor0
----
-6
16
51

query I rowsort
SELECT ALL - col1 * 82 + ( col1 ) * cor0.col2 AS col2 FROM tab0 AS cor0
----
-4214
-7857
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6752
SELECT CAST( NULL AS DECIMAL ) * 73 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6752
SELECT CAST ( NULL AS REAL ) * 73 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - 57 + col2 * - col2 FROM tab1 AS cor0
----
-2859
-3192
-9159

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6754
SELECT - - CAST( NULL AS SIGNED ) + + col0 * + col1 * 71 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6754
SELECT - - CAST ( NULL AS INTEGER ) + + col0 * + col1 * 71 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - cor0.col1 * 99 AS col1 FROM tab2 AS cor0
----
-1683
-3069
-5841

query I rowsort
SELECT ALL ( 5 ) AS col1 FROM tab1 AS cor0
----
5
5
5

query I rowsort
SELECT - ( ( col2 ) ) * ( col1 + - col1 ) FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - col1 + 73 FROM tab2 AS cor0
----
14
42
56

query I rowsort
SELECT - + 3 * + col2 * cor0.col1 AS col2 FROM tab0 AS cor0
----
-22386
-291
-8514

query I rowsort
SELECT ALL - - 80 * + cor0.col1 AS col1 FROM tab0 AS cor0
----
6880
7280
7760

query I rowsort
SELECT + 11 AS col2 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 69116737f3f57e2e3273f6dbb04d036c

query I rowsort
SELECT - ( + 36 ) AS col2 FROM tab0 AS cor0
----
-36
-36
-36

query I rowsort
SELECT DISTINCT + 49 FROM tab1, tab0, tab0 AS cor0
----
49

query I rowsort
SELECT ALL - 61 + - 10 * - col1 * + ( + 3 + col2 * col0 ) FROM tab0
----
36799
6643849
683639

query I rowsort
SELECT - 49 + - col0 FROM tab2
----
-127
-128
-56

query I rowsort
SELECT ALL - tab0.col1 + 73 FROM tab0
----
-13
-18
-24

query I rowsort
SELECT DISTINCT ( + col2 ) * col0 + col0 FROM tab2 AS cor0
----
196
2106
3081

query I rowsort
SELECT col0 * + col1 * col0 + + 42 AS col0 FROM tab0 AS cor0
----
118867
49578
720853

query I rowsort
SELECT DISTINCT - cor0.col1 * + col2 + col2 * 39 FROM tab0 AS cor0
----
-1551
-4264
-58

query I rowsort
SELECT - + cor0.col2 * + col1 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT - 18 * + col1 FROM tab1 AS cor0
----
-180
-234
-468

query I rowsort
SELECT ( + tab2.col0 + col0 ) FROM tab2
----
14
156
158

query I rowsort
SELECT - col2 * - col2 - 67 AS col2 FROM tab0 AS cor0
----
-66
1022
6657

query I rowsort
SELECT - col0 + - col2 + - col1 FROM tab0
----
-133
-143
-262

query I rowsort
SELECT DISTINCT - tab0.col2 * - cor0.col0 FROM tab0, tab2 cor0
----
9 values hashing to 9f4d33c2594156f40c1a77ce18b06bc3

query I rowsort
SELECT - + col0 + col2 * - cor0.col2 + col1 * + col2 AS col2 FROM tab2 AS cor0
----
-877
101
780

query I rowsort
SELECT tab2.col1 * - 96 FROM tab2
----
-1632
-2976
-5664

query I rowsort
SELECT DISTINCT + col2 * 67 * - col1 AS col2 FROM tab1
----
-38190
-83616
-94068

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6779
SELECT ALL + CAST( NULL AS SIGNED ) * 31 + - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6779
SELECT ALL + CAST ( NULL AS INTEGER ) * 31 + - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 * - col1 * + 42 FROM tab2
----
193284
56406
9114

query I rowsort
SELECT ALL 60 + col0 * + col1 AS col2 FROM tab1 AS cor0
----
1100
138
700

query I rowsort
SELECT ALL - ( - col0 ) + cor0.col0 * col2 FROM tab2 AS cor0
----
196
2106
3081

query I rowsort
SELECT ALL 77 * cor0.col2 * + cor0.col0 FROM tab1 AS cor0
----
12474
280896
591360

onlyif mysql # use DIV operator for integer division
query I rowsort label-6784
SELECT DISTINCT + 43 + - col2 DIV + 88 FROM tab1 cor0
----
42
43

skipif mysql # not compatible
query I rowsort label-6784
SELECT DISTINCT + 43 + - col2 / + 88 FROM tab1 cor0
----
42
43

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 33 - col1 col0 FROM tab2 cor0
----
-26
16
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + col0 ) col1 FROM tab0
----
24
35
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 99 + - col1 col1 FROM tab0 cor0
----
-185
-190
-196

query I rowsort
SELECT col0 * col2 * + ( 28 ) FROM tab2 cor0
----
5292
56784
84056

query I rowsort
SELECT DISTINCT tab1.col0 AS col2 FROM tab1, tab2 cor0
----
3
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * + col0 col0 FROM tab1 AS cor0
----
-4096
-6400
-9

onlyif mysql # use DIV operator for integer division
query I rowsort label-6791
SELECT ALL + col0 DIV - 55 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-6791
SELECT ALL + col0 / - 55 FROM tab1
----
-1
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * 76 + - col2 col0 FROM tab0 AS cor0
----
-2541
-6314
-77

query I rowsort
SELECT ALL - cor0.col2 + col1 * 17 FROM tab2 AS cor0
----
251
500
977

query I rowsort
SELECT ALL + col0 + - tab2.col2 + ( + ( col2 ) ) * - tab2.col2 AS col0 FROM tab2
----
-1403
-624
-749

query I rowsort
SELECT - col1 * col1 * col1 + col2 AS col2 FROM tab0 AS cor0
----
-636023
-753489
-912672

onlyif mysql # use DIV operator for integer division
query I rowsort label-6796
SELECT + col0 + col1 DIV col2 + + 11 * col1 FROM tab0
----
1091
1199
972

skipif mysql # not compatible
query I rowsort label-6796
SELECT + col0 + col1 / col2 + + 11 * col1 FROM tab0
----
1091
1199
972

query I rowsort
SELECT ALL 80 - col2 AS col2 FROM tab2
----
42
53
54

query I rowsort
SELECT DISTINCT + ( + col1 ) * col0 FROM tab1 AS cor0
----
1040
640
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 * col2 * col0 col1 FROM tab1 AS cor0
----
-36480
-4212
-99840

onlyif mysql # use DIV operator for integer division
query I rowsort label-6800
SELECT + col0 * cor0.col2 DIV col1 AS col2 FROM tab0 AS cor0
----
0
80
9

skipif mysql # not compatible
query I rowsort label-6800
SELECT + col0 * cor0.col2 / col1 AS col2 FROM tab0 AS cor0
----
0
80
9

query I rowsort
SELECT ALL 57 * 70 AS col0 FROM tab1
----
3990
3990
3990

onlyif mysql # use DIV operator for integer division
query I rowsort label-6802
SELECT + cor0.col2 * col2 DIV col2 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-6802
SELECT + cor0.col2 * col2 / col2 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT cor1.col2 * + 0 + - 50 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to faf91d5263c18db4877a3c30c47e2487

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 89 col1 FROM tab0 cor0
----
89

query I rowsort
SELECT DISTINCT - 4 * col1 * + col2 + ( + 7 ) * col2 AS col1 FROM tab0 AS cor0
----
-11121
-29274
-381

query I rowsort
SELECT ALL + ( col1 ) + - col0 * col0 FROM tab2 AS cor0
----
-18
-6025
-6224

query I rowsort
SELECT DISTINCT + ( - col2 ) + + col0 AS col2 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT ALL col1 * + col0 + col1 AS col0 FROM tab2 AS cor0
----
1360
248
4661

query I rowsort
SELECT - col2 * + cor0.col1 AS col0 FROM tab0 cor0
----
-2838
-7462
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + cor0.col1 * - col0 * col0 col0 FROM tab0 AS cor0
----
-118825
-49536
-720811

query I rowsort
SELECT DISTINCT + ( - cor0.col2 ) + - col2 FROM tab2 AS cor0
----
-52
-54
-76

query I rowsort
SELECT - 72 * col1 FROM tab1 AS cor0
----
-1872
-720
-936

query I rowsort
SELECT DISTINCT - - 32 - col0 FROM tab0 AS cor0
----
-3
-57
8

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6814
SELECT DISTINCT col0 * cor0.col2 + + CAST( col1 + col1 AS SIGNED ) FROM tab2 AS cor0
----
2146
251
3036

skipif mysql # not compatible
query I rowsort label-6814
SELECT DISTINCT col0 * cor0.col2 + + CAST ( col1 + col1 AS INTEGER ) FROM tab2 AS cor0
----
2146
251
3036

onlyif mysql # use DIV operator for integer division
query I rowsort label-6815
SELECT ALL + 69 + col0 DIV + ( + 84 * - col0 ) AS col0 FROM tab1 AS cor0
----
69
69
69

skipif mysql # not compatible
query I rowsort label-6815
SELECT ALL + 69 + col0 / + ( + 84 * - col0 ) AS col0 FROM tab1 AS cor0
----
69
69
69

query I rowsort
SELECT ALL - - ( - cor0.col0 ) + col0 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col0 * ( + 94 ) + col1 AS col1 FROM tab1
----
308
6026
7533

query I rowsort
SELECT DISTINCT - col1 + 77 FROM tab2 AS cor0
----
18
46
60

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6819
SELECT ALL + + col2 * CAST( NULL AS SIGNED ) + col0 + + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6819
SELECT ALL + + col2 * CAST ( NULL AS INTEGER ) + col0 + + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 * 89 * ( col2 ) AS col1 FROM tab1 cor0
----
14418
324672
683520

query I rowsort
SELECT DISTINCT - col2 + 75 FROM tab0 AS cor0
----
-7
42
74

query I rowsort
SELECT cor0.col1 + - 6 FROM tab0 AS cor0
----
80
85
91

query I rowsort
SELECT - ( + 85 ) * + col0 + 85 FROM tab0 AS cor0
----
-1955
-2890
-7480

query I rowsort
SELECT DISTINCT col1 + - 38 * + col2 * - ( col1 + col2 ) FROM tab0 AS cor0
----
149312
3821
539159

query I rowsort
SELECT ALL 64 * col1 AS col0 FROM tab0 cor0
----
5504
5824
6208

query I rowsort
SELECT ALL - - col2 - 62 * - col1 AS col2 FROM tab2 AS cor0
----
1092
1949
3684

onlyif mysql # use DIV operator for integer division
query I rowsort label-6827
SELECT - col1 DIV - col1 + col2 AS col2 FROM tab0 AS cor0
----
2
34
83

skipif mysql # not compatible
query I rowsort label-6827
SELECT - col1 / - col1 + col2 AS col2 FROM tab0 AS cor0
----
2
34
83

query I rowsort
SELECT DISTINCT + 17 * - ( col0 ) + - cor0.col0 * + col2 AS col1 FROM tab2 AS cor0
----
-308
-3354
-4345

query I rowsort
SELECT ALL - 22 + cor0.col0 FROM tab0 AS cor0
----
13
2
67

onlyif mysql # use DIV operator for integer division
query I rowsort label-6830
SELECT + 8 + - col0 DIV cor0.col0 FROM tab1 AS cor0
----
7
7
7

skipif mysql # not compatible
query I rowsort label-6830
SELECT + 8 + - col0 / cor0.col0 FROM tab1 AS cor0
----
7
7
7

query I rowsort
SELECT ALL + - col1 * col1 + col2 AS col1 FROM tab0 AS cor0
----
-7363
-8199
-9408

query I rowsort
SELECT DISTINCT 61 * - 42 * - col0 + 46 FROM tab0 AS cor0
----
228064
61534
89716

query I rowsort
SELECT DISTINCT col2 * 0 + col1 FROM tab0
----
86
91
97

query I rowsort
SELECT - col0 - - 27 FROM tab0
----
-62
-8
3

query I rowsort
SELECT col1 + 76 AS col1 FROM tab2
----
107
135
93

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6836
SELECT col2 * - CAST( + 23 AS SIGNED ) * col2 + 93 AS col0 FROM tab2
----
-15455
-16674
-33119

skipif mysql # not compatible
query I rowsort label-6836
SELECT col2 * - CAST ( + 23 AS INTEGER ) * col2 + 93 AS col0 FROM tab2
----
-15455
-16674
-33119

onlyif mysql # use DIV operator for integer division
query I rowsort label-6837
SELECT - col0 * col1 + 68 DIV ( - col0 + - 71 ) FROM tab2
----
-1343
-217
-4602

skipif mysql # not compatible
query I rowsort label-6837
SELECT - col0 * col1 + 68 / ( - col0 + - 71 ) FROM tab2
----
-1343
-217
-4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-6838
SELECT DISTINCT + col1 DIV - ( col1 ) FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-6838
SELECT DISTINCT + col1 / - ( col1 ) FROM tab1 AS cor0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + ( ( - col1 ) ) col1 FROM tab1 cor0
----
-100
-169
-676

query I rowsort
SELECT ALL col1 * + ( - ( col1 ) ) FROM tab2
----
-289
-3481
-961

query I rowsort
SELECT col1 * + 11 FROM tab1 cor0
----
110
143
286

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6842
SELECT ALL - - col2 + CAST( NULL AS SIGNED ) * + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6842
SELECT ALL - - col2 + CAST ( NULL AS INTEGER ) * + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( 0 ) + - tab0.col1 * col0 * - tab0.col0 col1 FROM tab0
----
118825
49536
720811

onlyif mysql # use DIV operator for integer division
query I rowsort label-6844
SELECT - ( 48 ) DIV col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6844
SELECT - ( 48 ) / col2 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT col1 * tab2.col2 + col0 * + col2 + - col0 AS col0 FROM tab2
----
1019
3484
3569

query I rowsort
SELECT DISTINCT ( 98 ) * - col0 + col2 FROM tab2
----
-659
-7618
-7704

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6847
SELECT ALL + CAST( - ( col1 ) AS SIGNED ) * + 84 + 52 FROM tab1 AS cor0
----
-1040
-2132
-788

skipif mysql # not compatible
query I rowsort label-6847
SELECT ALL + CAST ( - ( col1 ) AS INTEGER ) * + 84 + 52 FROM tab1 AS cor0
----
-1040
-2132
-788

onlyif mysql # use DIV operator for integer division
query I rowsort label-6848
SELECT - ( col2 ) DIV col0 AS col2 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6848
SELECT - ( col2 ) / col0 AS col2 FROM tab0 AS cor0
----
-1
0
0

query I rowsort
SELECT ALL + ( + 79 ) FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 4857f2e1b1dbd184de4827f145dd02a1

query I rowsort
SELECT ALL col0 + col2 * tab0.col2 FROM tab0
----
1113
36
6813

query I rowsort
SELECT ALL - - 8 AS col2 FROM tab2 AS cor0
----
8
8
8

query I rowsort
SELECT - col0 * - col1 + - col0 AS col2 FROM tab1 AS cor0
----
576
75
960

query I rowsort
SELECT DISTINCT - + 68 AS col0 FROM tab0 cor0
----
-68

query I rowsort
SELECT 49 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6855
SELECT - cor0.col0 * col2 + CAST( col0 AS SIGNED ) FROM tab1 AS cor0
----
-159
-3584
-7600

skipif mysql # not compatible
query I rowsort label-6855
SELECT - cor0.col0 * col2 + CAST ( col0 AS INTEGER ) FROM tab1 AS cor0
----
-159
-3584
-7600

onlyif mysql # use DIV operator for integer division
query I rowsort label-6856
SELECT + 13 DIV - col1 + ( col0 * col0 + col1 ) col0 FROM tab0 AS cor0
----
1322
662
8012

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6856
SELECT + 13 / - col1 + ( col0 * col0 + col1 ) col0 FROM tab0 AS cor0
----
1322
662
8012

query I rowsort
SELECT ALL 66 + - col0 * + 51 FROM tab1 AS cor0
----
-3198
-4014
-87

onlyif mysql # use DIV operator for integer division
query I rowsort label-6858
SELECT - col2 + col1 DIV - col2 AS col1 FROM tab1 AS cor0
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-6858
SELECT - col2 + col1 / - col2 AS col1 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT ( col0 ) + + 71 * col2 FROM tab1 AS cor0
----
3837
4111
6896

query I rowsort
SELECT col0 * col2 + - ( col0 ) FROM tab0 AS cor0
----
0
7209
768

query I rowsort
SELECT tab0.col1 * col2 * - col0 FROM tab0
----
-3395
-664118
-68112

query I rowsort
SELECT ALL - 51 * col1 * + ( col0 ) FROM tab2
----
-11067
-234702
-68493

query I rowsort
SELECT + - col0 * col0 - cor0.col2 * col2 AS col1 FROM tab0 AS cor0
----
-1226
-14645
-1665

query I rowsort
SELECT - col2 + + col2 + col0 AS col0 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT + + col2 * + col1 AS col1 FROM tab0 cor0
----
2838
7462
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-6866
SELECT + + col0 DIV col2 AS col1 FROM tab0 AS cor0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-6866
SELECT + + col0 / col2 AS col1 FROM tab0 AS cor0
----
0
1
35

query I rowsort
SELECT + col0 * col1 + cor0.col0 * + col2 FROM tab1 AS cor0
----
240
4288
8720

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6868
SELECT - - cor0.col2 * col0 * + 13 + cor0.col1 * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6868
SELECT - - cor0.col2 * col0 * + 13 + cor0.col1 * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - col1 * 32 + + col1 * col1 + - 62 FROM tab0 AS cor0
----
4582
5307
6243

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6870
SELECT col2 + CAST( NULL AS SIGNED ) / + 98 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6870
SELECT col2 + CAST ( NULL AS INTEGER ) / + 98 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col1 * 47 FROM tab0 AS cor0
----
-4042
-4277
-4559

query I rowsort
SELECT - ( col1 ) * col0 AS col0 FROM tab1 AS cor0
----
-1040
-640
-78

onlyif mysql # use DIV operator for integer division
query I rowsort label-6873
SELECT 21 DIV 73 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6873
SELECT 21 / 73 AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT + cor0.col0 + col0 AS col2 FROM tab0 cor0
----
178
48
70

query I rowsort
SELECT + ( + 19 ) * col1 FROM tab2 AS cor0
----
1121
323
589

query I rowsort
SELECT ALL ( - 82 ) - + col2 AS col2 FROM tab2 AS cor0
----
-108
-109
-120

onlyif mysql # use DIV operator for integer division
query I rowsort label-6877
SELECT DISTINCT col0 * col2 + cor0.col1 DIV - col1 FROM tab2 AS cor0
----
188
2027
3001

skipif mysql # not compatible
query I rowsort label-6877
SELECT DISTINCT col0 * col2 + cor0.col1 / - col1 FROM tab2 AS cor0
----
188
2027
3001

query I rowsort
SELECT 43 * + col2 FROM tab0 AS cor0
----
1419
3526
43

query I rowsort
SELECT DISTINCT col0 * tab1.col1 * - tab1.col2 AS col0 FROM tab1
----
-36480
-4212
-99840

query I rowsort
SELECT DISTINCT + 32 AS col1 FROM tab1
----
32

query I rowsort
SELECT - 24 + col2 AS col2 FROM tab2
----
14
2
3

query I rowsort
SELECT - cor0.col0 * 69 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 070b945136a581d84df1069e1508aa60

query I rowsort
SELECT DISTINCT - col0 + 46 FROM tab0 AS cor0
----
-43
11
22

query I rowsort
SELECT ALL - + 75 + col1 * col0 FROM tab1 AS cor0
----
3
565
965

query I rowsort
SELECT ALL + 29 - 18 AS col1 FROM tab1 AS cor0
----
11
11
11

query I rowsort
SELECT - - 80 + - col2 AS col2 FROM tab0 cor0
----
-2
47
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + col2 * + col1 - col2 col1 FROM tab0 AS cor0
----
2781
61
7291

query I rowsort
SELECT - 13 + + cor0.col1 AS col1 FROM tab1 AS cor0
----
-3
0
13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 42 col0 FROM tab0 AS cor0
----
-42
-42
-42

query I rowsort
SELECT - + 74 * col2 AS col2 FROM tab1 cor0
----
-3996
-4218
-7104

query I rowsort
SELECT ALL + - 11 + col2 * + col0 FROM tab1 AS cor0
----
151
3637
7669

query I rowsort
SELECT DISTINCT 47 + + col2 AS col0 FROM tab1 AS cor0
----
101
104
143

query I rowsort
SELECT 84 FROM tab1 cor0
----
84
84
84

query I rowsort
SELECT ALL - col0 * - col0 * cor0.col0 FROM tab2 AS cor0
----
343
474552
493039

query I rowsort
SELECT DISTINCT ( col2 ) * 75 FROM tab1 AS cor0
----
4050
4275
7200

query I rowsort
SELECT - + col1 * col0 AS col1 FROM tab1 cor0
----
-1040
-640
-78

query I rowsort
SELECT DISTINCT col2 + col1 * + col2 * col0 FROM tab2 AS cor0
----
119678
51072
5886

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6898
SELECT cor0.col0 + col1 * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6898
SELECT cor0.col0 + col1 * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 26 col2 FROM tab1 cor0
----
-26
-26
-26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 71 col1 FROM tab1
----
71
71
71

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6901
SELECT col0 + - CAST( + col0 AS SIGNED ) * col0 FROM tab0 AS cor0
----
-1190
-552
-7832

skipif mysql # not compatible
query I rowsort label-6901
SELECT col0 + - CAST ( + col0 AS INTEGER ) * col0 FROM tab0 AS cor0
----
-1190
-552
-7832

query I rowsort
SELECT - col0 + + 40 * col0 * cor0.col0 FROM tab0 AS cor0
----
23016
316751
48965

query I rowsort
SELECT - + col0 + 22 * + cor0.col1 FROM tab1 AS cor0
----
156
206
569

query I rowsort
SELECT DISTINCT col2 - - 30 AS col1 FROM tab0 AS cor0
----
112
31
63

query I rowsort
SELECT - + col1 + - cor0.col2 AS col0 FROM tab2 AS cor0
----
-55
-58
-85

query I rowsort
SELECT DISTINCT + - col0 * - 29 * - 10 + col2 AS col2 FROM tab2 AS cor0
----
-2003
-22594
-22872

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 + 81 * 9 col0 FROM tab1 AS cor0
----
783
786
825

query I rowsort
SELECT col0 + col2 * - cor0.col2 FROM tab2 cor0
----
-1365
-598
-722

query I rowsort
SELECT ALL col2 + + 5 FROM tab0
----
38
6
87

query I rowsort
SELECT - col0 * 61 AS col0 FROM tab1 AS cor0
----
-183
-3904
-4880

query I rowsort
SELECT - col2 * - col1 + - col0 * col2 FROM tab1 AS cor0
----
-3078
-6432
1242

onlyif mysql # use DIV operator for integer division
query I rowsort label-6912
SELECT DISTINCT - + col2 * 96 + 85 DIV cor0.col0 AS col0 FROM tab0 AS cor0
----
-3165
-7872
-94

skipif mysql # not compatible
query I rowsort label-6912
SELECT DISTINCT - + col2 * 96 + 85 / cor0.col0 AS col0 FROM tab0 AS cor0
----
-3165
-7872
-94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + col0 * col2 - - col1 col1 FROM tab0 cor0
----
133
7471
911

query I rowsort
SELECT ALL + col1 * - 84 - - ( - cor0.col2 ) * - col0 AS col2 FROM tab2 cor0
----
-2415
-2928
1574

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6915
SELECT DISTINCT + cor0.col2 + CAST( - col1 AS SIGNED ) + - col2 AS col1 FROM tab2 AS cor0
----
-17
-31
-59

skipif mysql # not compatible
query I rowsort label-6915
SELECT DISTINCT + cor0.col2 + CAST ( - col1 AS INTEGER ) + - col2 AS col1 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT ALL col1 + + 49 AS col1 FROM tab0 AS cor0
----
135
140
146

query I rowsort
SELECT ALL - - ( - col2 ) + + col1 AS col1 FROM tab0 cor0
----
53
9
96

query I rowsort
SELECT ALL + col0 * + ( col0 ) + + col2 + col0 AS col1 FROM tab1 AS cor0
----
4217
6576
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + ( + cor0.col1 ) col2 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT + 6 * col0 FROM tab0 AS cor0
----
144
210
534

query I rowsort
SELECT col0 + 15 FROM tab1 AS cor0
----
18
79
95

onlyif mysql # use DIV operator for integer division
query I rowsort label-6922
SELECT 1 DIV + col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6922
SELECT 1 / + col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6923
SELECT DISTINCT 18 + col2 * col1 * - CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6923
SELECT DISTINCT 18 + col2 * col1 * - CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL

query I rowsort
SELECT DISTINCT + + ( - col2 ) + + col1 AS col2 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT DISTINCT + + col2 * + col1 + col2 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT - + ( col1 ) + col2 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT ALL + + 33 + + col1 * col0 * - col0 AS col0 FROM tab0 cor0
----
-118792
-49503
-720778

query I rowsort
SELECT DISTINCT cor0.col1 * - cor0.col2 + - col0 FROM tab1 AS cor0
----
-1328
-1407
-634

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * - 4 + - 52 * col2 col0 FROM tab1
----
-2708
-2796
-4672

query I rowsort
SELECT col1 * 2 + 42 + + tab2.col2 FROM tab2
----
114
131
186

query I rowsort
SELECT ALL - col0 + col1 + col2 FROM tab0
----
63
84
95

query I rowsort
SELECT + 55 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 832128adb1ddc65c3105e29cc2c8b3a3

query I rowsort
SELECT DISTINCT - - 34 AS col2 FROM tab1 cor0
----
34

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6934
SELECT + - CAST( + 93 AS SIGNED ) * - col0 FROM tab2 AS cor0
----
651
7254
7347

skipif mysql # not compatible
query I rowsort label-6934
SELECT + - CAST ( + 93 AS INTEGER ) * - col0 FROM tab2 AS cor0
----
651
7254
7347

query I rowsort
SELECT + 67 + + tab0.col2 - + 9 AS col2 FROM tab0
----
140
59
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT + CAST ( 73 AS REAL ) col0 FROM tab1, tab2 AS cor0
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496

query I rowsort
SELECT DISTINCT tab1.col2 * + col1 - col1 * 82 AS col1 FROM tab1
----
-250
-728
182

query I rowsort
SELECT ALL - + cor0.col1 * - col0 FROM tab1 cor0
----
1040
640
78

query I rowsort
SELECT ALL - col2 * col2 + 74 FROM tab1 AS cor0
----
-2842
-3175
-9142

query I rowsort
SELECT ALL col0 + col0 + 81 AS col1 FROM tab2
----
237
239
95

query I rowsort
SELECT ALL col1 + tab1.col1 AS col2 FROM tab1
----
20
26
52

query I rowsort
SELECT ALL 67 AS col2 FROM tab2, tab2 cor0
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c

query I rowsort
SELECT DISTINCT col1 * + col1 * - 58 FROM tab2 AS cor0
----
-16762
-201898
-55738

query I rowsort
SELECT col1 + 10 * - 76 - col1 AS col1 FROM tab2 AS cor0
----
-760
-760
-760

query I rowsort
SELECT - + col1 + - cor0.col1 * + col2 FROM tab1 AS cor0
----
-1261
-1430
-580

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col1 FROM tab0 WHERE col2 <= ( NULL )
----

query I rowsort
SELECT + cor0.col0 + - col0 * col1 FROM tab1 AS cor0
----
-576
-75
-960

query I rowsort
SELECT + col1 + col0 * + col0 + - col2 AS col1 FROM tab1 AS cor0
----
-19
4049
6317

onlyif mysql # use DIV operator for integer division
query I rowsort label-6949
SELECT - col2 DIV + col2 + col1 AS col0 FROM tab1 AS cor0
----
12
25
9

skipif mysql # not compatible
query I rowsort label-6949
SELECT - col2 / + col2 + col1 AS col0 FROM tab1 AS cor0
----
12
25
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-6950
SELECT DISTINCT + col0 DIV - col2 col2 FROM tab0 AS cor0
----
-1
-35
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6950
SELECT DISTINCT + col0 / - col2 col2 FROM tab0 AS cor0
----
-1
-35
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - col1 + col0 * col0 * - tab2.col0 col1 FROM tab2
----
-1304
-478033
-493328

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + col0 * - col0 + - tab1.col1 * col0 col0 FROM tab1
----
-141
-4793
-7536

query I rowsort
SELECT ALL + + cor0.col2 * col2 AS col2 FROM tab1 cor0
----
2916
3249
9216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 + - cor0.col1 col0 FROM tab2 AS cor0
----
-137
-38
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab2.col2 col0 FROM tab2 WHERE NOT - col2 <= col1
----

query I rowsort
SELECT ALL + 84 * + col0 + - col1 * col0 + + col1 * - col1 AS col1 FROM tab2 AS cor0
----
-1531
-590
5004

onlyif mysql # use DIV operator for integer division
query I rowsort label-6957
SELECT DISTINCT - tab1.col0 - + col2 DIV + tab1.col2 FROM tab1
----
-4
-65
-81

skipif mysql # not compatible
query I rowsort label-6957
SELECT DISTINCT - tab1.col0 - + col2 / + tab1.col2 FROM tab1
----
-4
-65
-81

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) <> col0 + col1 + + tab0.col0 * col0
----

query I rowsort
SELECT col0 + tab1.col2 * col0 * - col0 FROM tab1
----
-233408
-483
-614320

query I rowsort
SELECT ALL + col0 + col2 * + col1 AS col1 FROM tab2
----
1612
725
844

query I rowsort
SELECT col0 FROM tab0 WHERE ( + col0 * col1 ) >= - col1
----
24
35
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col1 + + col0 * + col0 col2 FROM tab0
----
1322
662
8012

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 - - col2 * col1 col2 FROM tab1
----
1261
1430
580

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN + col0 * col0 AND ( - col1 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-6965
SELECT col2 + - col1 + tab2.col2 DIV + 88 FROM tab2
----
-33
-4
21

skipif mysql # not compatible
query I rowsort label-6965
SELECT col2 + - col1 + tab2.col2 / + 88 FROM tab2
----
-33
-4
21

query I rowsort
SELECT DISTINCT 20 - col1 * col0 * col2 AS col0 FROM tab0
----
-3375
-664098
-68092

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 IN ( + col2 + col2 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

query I rowsort
SELECT ALL - tab0.col0 + + col1 FROM tab0
----
2
62
62

query I rowsort
SELECT DISTINCT col0 * + col1 AS col2 FROM tab1 WHERE NOT NULL IN ( + col0 )
----

query I rowsort
SELECT col0 FROM tab0 WHERE NOT NULL BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) NOT BETWEEN - col1 * + col0 * col1 + - col2 * col1 * + col1 + col0 * - col2 AND ( NULL )
----

query I rowsort
SELECT DISTINCT col0 * col0 / col2 FROM tab1 WHERE + col0 * col2 > ( NULL )
----

query I rowsort
SELECT ALL - col0 - col1 * col1 FROM tab0
----
-7420
-8370
-9444

query I rowsort
SELECT tab1.col2 - col1 * col1 AS col1 FROM tab1
----
-43
-622
-73

query I rowsort
SELECT ( col1 ) - col2 FROM tab1
----
-28
-47
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col2 + col0 col2 FROM tab2
----
196
2106
3081

query I rowsort
SELECT DISTINCT - col0 + col2 * 99 FROM tab2
----
2496
2666
3683

onlyif mysql # use DIV operator for integer division
query I rowsort label-6978
SELECT ALL + - cor0.col2 DIV + 32 FROM tab0 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-6978
SELECT ALL + - cor0.col2 / + 32 FROM tab0 AS cor0
----
-1
-2
0

query I rowsort
SELECT + col0 * 99 AS col1 FROM tab1 cor0
----
297
6336
7920

query I rowsort
SELECT + col0 + col1 * cor0.col1 AS col2 FROM tab2 AS cor0
----
3559
368
968

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6981
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-6981
SELECT DISTINCT - cor0.col1 * CAST ( col0 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT - col2 * + col0 * col0 + + col0 FROM tab1 cor0
----
-233408
-483
-614320

query I rowsort
SELECT col0 * - col2 + - col0 FROM tab2 AS cor0
----
-196
-2106
-3081

query I rowsort
SELECT DISTINCT - col2 * - ( 31 ) * col1 + + ( - col1 ) * - col2 * col1 FROM tab1 AS cor0
----
23370
54912
80028

query I rowsort
SELECT DISTINCT + col1 * + 58 + - col2 AS col2 FROM tab1 AS cor0
----
1454
523
658

query I rowsort
SELECT ALL - col2 * - ( - col2 * col1 ) FROM tab2 AS cor0
----
-22599
-24548
-39884

query I rowsort
SELECT DISTINCT col2 + 59 + 63 FROM tab0 AS cor0
----
123
155
204

query I rowsort
SELECT ALL + - col0 + 45 AS col2 FROM tab2 AS cor0
----
-33
-34
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - 40 + col0 * cor0.col2 + col1 col1 FROM tab1 AS cor0
----
1228
4058
8213

query I rowsort
SELECT DISTINCT - col2 + 78 AS col2 FROM tab2 cor0
----
40
51
52

query I rowsort
SELECT DISTINCT - 89 AS col1 FROM tab2, tab0 AS cor0
----
-89

onlyif mysql # use DIV operator for integer division
query I rowsort label-6992
SELECT DISTINCT 39 DIV cor0.col2 + col1 - 40 FROM tab0 AS cor0
----
47
51
96

skipif mysql # not compatible
query I rowsort label-6992
SELECT DISTINCT 39 / cor0.col2 + col1 - 40 FROM tab0 AS cor0
----
47
51
96

query I rowsort
SELECT DISTINCT col1 * 40 - - col0 AS col2 FROM tab2 AS cor0
----
1247
2438
759

onlyif mysql # use DIV operator for integer division
query I rowsort label-6994
SELECT - ( 18 ) DIV + col2 - + CAST( col2 + cor0.col2 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-164
-20
-66

skipif mysql # not compatible
query I rowsort label-6994
SELECT - ( 18 ) / + col2 - + CAST ( col2 + cor0.col2 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-164
-20
-66

query I rowsort
SELECT DISTINCT - col2 * - col2 + - col0 FROM tab1 AS cor0
----
2913
3185
9136

onlyif mysql # use DIV operator for integer division
query I rowsort label-6996
SELECT - 60 - ( cor0.col2 ) DIV - cor0.col2 FROM tab1 AS cor0
----
-59
-59
-59

skipif mysql # not compatible
query I rowsort label-6996
SELECT - 60 - ( cor0.col2 ) / - cor0.col2 FROM tab1 AS cor0
----
-59
-59
-59

query I rowsort
SELECT ( + col0 ) + + col0 FROM tab0 cor0
----
178
48
70

query I rowsort
SELECT + - 70 + col2 FROM tab0 AS cor0
----
-37
-69
12

query I rowsort
SELECT ALL - + cor0.col0 * - col1 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT + 27 * col0 + col1 * col2 AS col0 FROM tab1 AS cor0
----
1485
2298
3408

onlyif mysql # use DIV operator for integer division
query I rowsort label-7001
SELECT ( + col2 ) DIV + col0 FROM tab1 AS cor0
----
0
1
18

skipif mysql # not compatible
query I rowsort label-7001
SELECT ( + col2 ) / + col0 FROM tab1 AS cor0
----
0
1
18

query I rowsort
SELECT + 11 AS col1 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 69116737f3f57e2e3273f6dbb04d036c

query I rowsort
SELECT ALL - - 65 FROM tab0 cor0
----
65
65
65

query I rowsort
SELECT ALL - col2 * col0 + - col2 AS col0 FROM tab2 AS cor0
----
-2054
-216
-3040

query I rowsort
SELECT DISTINCT 45 - + 63 AS col1 FROM tab0
----
-18

query I rowsort
SELECT + 45 AS col0 FROM tab0, tab0 AS cor0, tab0 AS cor1, tab1 AS cor2
----
81 values hashing to 8a6d20810140ea088e8e0fd74ffb8339

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7007
SELECT - ( cor0.col1 ) - - CAST( NULL AS SIGNED ) col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7007
SELECT - ( cor0.col1 ) - - CAST ( NULL AS INTEGER ) col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL ( - col1 ) + + 41 * col1 + - cor0.col2 * + ( + col1 ) FROM tab0 AS cor0
----
-3822
3783
602

query I rowsort
SELECT DISTINCT + + 33 * col0 * - col2 + + ( col1 ) AS col0 FROM tab2 AS cor0
----
-6206
-66865
-99049

query I rowsort
SELECT DISTINCT - - col1 - + col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT + 79 * - col1 + + 8 * col1 * col2 AS col2 FROM tab0 AS cor0
----
-6887
15910
52507

query I rowsort
SELECT ALL + col1 * - cor0.col0 + + col1 FROM tab0 cor0
----
-1978
-3298
-8008

query I rowsort
SELECT - 96 + + col2 AS col0 FROM tab2 AS cor0
----
-58
-69
-70

query I rowsort
SELECT - 47 + col1 FROM tab0 AS cor0
----
39
44
50

query I rowsort
SELECT ALL + - col1 - cor0.col1 AS col1 FROM tab1 AS cor0
----
-20
-26
-52

onlyif mysql # use DIV operator for integer division
query I rowsort label-7016
SELECT + ( - cor0.col2 ) + + cor0.col0 DIV - col2 AS col1 FROM tab0 AS cor0
----
-33
-36
-83

skipif mysql # not compatible
query I rowsort label-7016
SELECT + ( - cor0.col2 ) + + cor0.col0 / - col2 AS col1 FROM tab0 AS cor0
----
-33
-36
-83

query I rowsort
SELECT ALL col1 * col0 * col0 FROM tab2 AS cor0
----
106097
1519
358956

query I rowsort
SELECT ALL 23 - col0 FROM tab0 cor0
----
-1
-12
-66

query I rowsort
SELECT - col2 * - col0 * - 94 FROM tab0 AS cor0
----
-3290
-686012
-74448

query I rowsort
SELECT ALL tab0.col0 + - col2 AS col1 FROM tab0
----
-9
34
7

query I rowsort
SELECT ALL + - ( cor0.col1 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5

query I rowsort
SELECT DISTINCT + 64 * + col0 FROM tab2 AS cor0
----
448
4992
5056

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7023
SELECT CAST( NULL AS SIGNED ) * + cor0.col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7023
SELECT CAST ( NULL AS INTEGER ) * + cor0.col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col0 * + cor0.col1 - col0 FROM tab2 AS cor0
----
-1422
-224
-4680

query I rowsort
SELECT DISTINCT - ( col0 ) * col0 * + col1 FROM tab0 cor0
----
-118825
-49536
-720811

query I rowsort
SELECT + - 10 * + col0 AS col1 FROM tab2 AS cor0
----
-70
-780
-790

query I rowsort
SELECT DISTINCT + + col2 + - 14 * col0 FROM tab1 AS cor0
----
-1024
-839
12

query I rowsort
SELECT 30 + cor0.col1 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 17726f058a077b0a73e436424532e30b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 70 - col0 col2 FROM tab0
----
-19
35
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 51 col0 FROM tab1, tab1 cor0
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752

query I rowsort
SELECT ALL - ( 63 * col1 ) - 42 AS col0 FROM tab2
----
-1113
-1995
-3759

query I rowsort
SELECT + + 44 * - col0 FROM tab2 AS cor0
----
-308
-3432
-3476

onlyif mysql # use DIV operator for integer division
query I rowsort label-7033
SELECT DISTINCT + cor0.col2 DIV ( cor0.col0 ) FROM tab2 AS cor0
----
0
3

skipif mysql # not compatible
query I rowsort label-7033
SELECT DISTINCT + cor0.col2 / ( cor0.col0 ) FROM tab2 AS cor0
----
0
3

query I rowsort
SELECT + ( col2 ) + cor0.col1 * col1 FROM tab2 AS cor0
----
327
3507
988

query I rowsort
SELECT DISTINCT + - ( col1 ) * + col2 AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - tab1.col2 * col1 col2 FROM tab1
----
-36480
-4212
-99840

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 56 + + 87 col0 FROM tab1, tab0 AS cor0
----
31

query I rowsort
SELECT DISTINCT - 86 FROM tab0, tab2 AS cor0
----
-86

query I rowsort
SELECT ALL - col0 * + ( - col1 ) FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT - + cor0.col0 - + cor0.col0 AS col0 FROM tab0 AS cor0
----
-178
-48
-70

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7041
SELECT ALL + + col2 - + CAST( NULL AS SIGNED ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7041
SELECT ALL + + col2 - + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7042
SELECT + + col1 * CAST( col1 AS SIGNED ) * + col1 + + col1 AS col2 FROM tab1 AS cor0
----
1010
17602
2210

skipif mysql # not compatible
query I rowsort label-7042
SELECT + + col1 * CAST ( col1 AS INTEGER ) * + col1 + + col1 AS col2 FROM tab1 AS cor0
----
1010
17602
2210

query I rowsort
SELECT ALL + + cor0.col2 + + col1 FROM tab2 cor0
----
55
58
85

query I rowsort
SELECT + cor0.col1 - 66 * col2 FROM tab1 AS cor0
----
-3538
-3752
-6323

onlyif mysql # use DIV operator for integer division
query I rowsort label-7045
SELECT DISTINCT col0 DIV + 91 + col0 + + col0 FROM tab0 AS cor0
----
178
48
70

skipif mysql # not compatible
query I rowsort label-7045
SELECT DISTINCT col0 / + 91 + col0 + + col0 FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT DISTINCT + cor0.col0 + + cor0.col1 AS col2 FROM tab2, tab2 cor0, tab0 AS cor1
----
137
38
96

query I rowsort
SELECT ALL - ( 78 ) * - col0 FROM tab1 AS cor0
----
234
4992
6240

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 80 col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94

query I rowsort
SELECT 39 + + col1 AS col2 FROM tab1 AS cor0
----
49
52
65

onlyif mysql # use DIV operator for integer division
query I rowsort label-7050
SELECT ALL + 95 + col1 DIV - col2 FROM tab1 AS cor0
----
95
95
95

skipif mysql # not compatible
query I rowsort label-7050
SELECT ALL + 95 + col1 / - col2 FROM tab1 AS cor0
----
95
95
95

query I rowsort
SELECT - 9 * - col2 AS col1 FROM tab0 AS cor0
----
297
738
9

query I rowsort
SELECT DISTINCT - col0 * + col1 + col1 + cor0.col1 AS col1 FROM tab0 AS cor0
----
-1892
-3201
-7917

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0, tab0 cor1, tab2, tab1 AS cor2
----
3645 values hashing to d8caf2ef7d9c405db0aec8c013a5107c

onlyif mysql # use DIV operator for integer division
query I rowsort label-7054
SELECT ALL 51 * col1 + col0 DIV + col1 + col2 col0 FROM tab1 AS cor0
----
1380
573
765

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7054
SELECT ALL 51 * col1 + col0 / + col1 + col2 col0 FROM tab1 AS cor0
----
1380
573
765

query I rowsort
SELECT DISTINCT - - cor0.col0 * + col0 + - col1 FROM tab0 cor0
----
1128
490
7830

query I rowsort
SELECT + tab1.col2 + + col2 AS col1 FROM tab1
----
108
114
192

onlyif mysql # use DIV operator for integer division
query I rowsort label-7057
SELECT + col0 DIV 2 AS col0 FROM tab1 cor0
----
1
32
40

skipif mysql # not compatible
query I rowsort label-7057
SELECT + col0 / 2 AS col0 FROM tab1 cor0
----
1
32
40

query I rowsort
SELECT 82 * col2 + 0 AS col2 FROM tab0
----
2706
6724
82

query I rowsort
SELECT + col0 + - col1 * col2 FROM tab0
----
-2814
-62
-7373

query I rowsort
SELECT - 85 FROM tab0, tab0 AS cor0, tab1 cor1
----
27 values hashing to 91e44ead5e72fa22f87a57243e232ede

query I rowsort
SELECT - - col2 + + ( 19 ) * - col1 FROM tab2 cor0
----
-1095
-285
-562

onlyif mysql # use DIV operator for integer division
query I rowsort label-7062
SELECT DISTINCT + - col2 DIV col0 AS col1 FROM tab2 AS cor0
----
-3
0

skipif mysql # not compatible
query I rowsort label-7062
SELECT DISTINCT + - col2 / col0 AS col1 FROM tab2 AS cor0
----
-3
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-7063
SELECT DISTINCT - col1 * + 56 + - cor0.col2 DIV + 64 FROM tab0 AS cor0
----
-4816
-5097
-5432

skipif mysql # not compatible
query I rowsort label-7063
SELECT DISTINCT - col1 * + 56 + - cor0.col2 / + 64 FROM tab0 AS cor0
----
-4816
-5097
-5432

query I rowsort
SELECT - - col1 - + cor0.col2 * + col0 FROM tab0 AS cor0
----
-706
-7207
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + col0 * - col1 col0 FROM tab2 AS cor0
----
-1305
-190
-4576

query I rowsort
SELECT - col1 * + 64 FROM tab2 cor0
----
-1088
-1984
-3776

query I rowsort
SELECT DISTINCT + cor0.col1 * + col2 FROM tab0 cor0
----
2838
7462
97

query I rowsort
SELECT + 97 * + col1 - col1 FROM tab2 AS cor0
----
1632
2976
5664

query I rowsort
SELECT ALL 62 + 38 AS col2 FROM tab0 AS cor0
----
100
100
100

query I rowsort
SELECT + 55 * col1 + cor0.col1 FROM tab0 AS cor0
----
4816
5096
5432

query I rowsort
SELECT - + 59 * col2 * 75 AS col0 FROM tab2 AS cor0
----
-115050
-119475
-168150

query I rowsort
SELECT 76 * - 75 FROM tab1, tab2 AS cor0, tab1 cor1
----
27 values hashing to 74e935da2a05b2d8d727da5351e964a5

onlyif mysql # use DIV operator for integer division
query I rowsort label-7073
SELECT - + 32 DIV col1 AS col1 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7073
SELECT - + 32 / col1 AS col1 FROM tab0 cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-7074
SELECT + 27 DIV col1 AS col2 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7074
SELECT + 27 / col1 AS col2 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT - 16 + - col2 FROM tab2 AS cor0
----
-42
-43
-54

query I rowsort
SELECT + - 27 + cor0.col0 FROM tab1 cor0
----
-24
37
53

query I rowsort
SELECT ALL - - 74 * + 40 AS col2 FROM tab2 cor0
----
2960
2960
2960

query I rowsort
SELECT ALL 76 * + cor0.col0 FROM tab2 AS cor0
----
532
5928
6004

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7079
SELECT - CAST( NULL AS DECIMAL ) * col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7079
SELECT - CAST ( NULL AS REAL ) * col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 19 AS col1 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 86c53e8567a17c8d91fc5aff119e0498

query I rowsort
SELECT - col1 * 92 + + col1 AS col0 FROM tab0 AS cor0
----
-7826
-8281
-8827

query I rowsort
SELECT DISTINCT col0 - - col1 * 6 FROM tab2
----
181
193
432

query I rowsort
SELECT DISTINCT ( 18 ) + col2 AS col2 FROM tab0
----
100
19
51

query I rowsort
SELECT tab2.col0 + - col0 * - col2 AS col1 FROM tab2
----
196
2106
3081

onlyif mysql # use DIV operator for integer division
query I rowsort label-7085
SELECT + 74 DIV + col0 + col2 * - tab1.col0 + - col1 * col1 FROM tab1
----
-3747
-7849
-814

skipif mysql # not compatible
query I rowsort label-7085
SELECT + 74 / + col0 + col2 * - tab1.col0 + - col1 * col1 FROM tab1
----
-3747
-7849
-814

query I rowsort
SELECT 48 * col0 AS col0 FROM tab1
----
144
3072
3840

onlyif mysql # use DIV operator for integer division
query I rowsort label-7087
SELECT DISTINCT - col0 + 16 * col1 DIV + CAST( col1 AS SIGNED ) col0 FROM tab2
----
-62
-63
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7087
SELECT DISTINCT - col0 + 16 * col1 / + CAST ( col1 AS INTEGER ) col0 FROM tab2
----
-62
-63
9

query I rowsort
SELECT DISTINCT - - ( - col2 ) + + col0 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT cor0.col0 + 23 AS col0 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 6aa6fb682caf2cd908a2a2b5243dfdbe

onlyif mysql # use DIV operator for integer division
query I rowsort label-7090
SELECT ALL 60 DIV - col0 + col1 col0 FROM tab0
----
84
91
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7090
SELECT ALL 60 / - col0 + col1 col0 FROM tab0
----
84
91
96

query I rowsort
SELECT ALL + ( col0 ) * - col0 AS col0 FROM tab0
----
-1225
-576
-7921

query I rowsort
SELECT DISTINCT + - col0 + ( col1 ) AS col0 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT ALL - col0 * 58 AS col2 FROM tab2 AS cor0
----
-406
-4524
-4582

query I rowsort
SELECT - col0 * ( + 74 ) AS col0 FROM tab0 AS cor0
----
-1776
-2590
-6586

query I rowsort
SELECT ALL col0 + cor0.col2 + cor0.col2 AS col2 FROM tab0 cor0
----
253
37
90

query I rowsort
SELECT DISTINCT 40 FROM tab2, tab0, tab0 AS cor0
----
40

onlyif mysql # use DIV operator for integer division
query I rowsort label-7097
SELECT ALL col2 * col2 DIV col1 AS col1 FROM tab0
----
0
12
73

skipif mysql # not compatible
query I rowsort label-7097
SELECT ALL col2 * col2 / col1 AS col1 FROM tab0
----
0
12
73

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7098
SELECT - - col2 + + CAST( NULL AS SIGNED ) * 58 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7098
SELECT - - col2 + + CAST ( NULL AS INTEGER ) * 58 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7099
SELECT DISTINCT + col1 * CAST( NULL AS SIGNED ) * 92 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7099
SELECT DISTINCT + col1 * CAST ( NULL AS INTEGER ) * 92 FROM tab2 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-7100
SELECT ALL - + col2 * 60 DIV cor0.col0 AS col2 FROM tab2 AS cor0
----
-20
-231
-28

skipif mysql # not compatible
query I rowsort label-7100
SELECT ALL - + col2 * 60 / cor0.col0 AS col2 FROM tab2 AS cor0
----
-20
-231
-28

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7101
SELECT + + col2 * - CAST( + ( col0 ) AS SIGNED ) FROM tab1 AS cor0
----
-162
-3648
-7680

skipif mysql # not compatible
query I rowsort label-7101
SELECT + + col2 * - CAST ( + ( col0 ) AS INTEGER ) FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT ALL + col2 * 13 AS col0 FROM tab2
----
338
351
494

query I rowsort
SELECT DISTINCT + col1 + + 26 FROM tab0 AS cor0
----
112
117
123

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - col2 * 32 + - col1 col2 FROM tab1 cor0
----
-116746
-245773
-5210

query I rowsort
SELECT DISTINCT - col1 * col2 + + ( col1 * - col1 ) FROM tab2 AS cor0
----
-1798
-5015
-935

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7106
SELECT col2 * + CAST( NULL AS SIGNED ) + 66 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7106
SELECT col2 * + CAST ( NULL AS INTEGER ) + 66 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - col1 col0 FROM tab2 cor0
----
-1343
-217
-4602

query I rowsort
SELECT ALL - + 26 * col2 FROM tab0 AS cor0
----
-2132
-26
-858

query I rowsort
SELECT + ( - 84 ) * + col1 + 32 + + col0 FROM tab0 AS cor0
----
-7168
-7523
-8081

query I rowsort
SELECT ALL - ( col0 ) + - cor0.col1 FROM tab2 cor0
----
-137
-38
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-7111
SELECT tab0.col0 DIV - col1 AS col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7111
SELECT tab0.col0 / - col1 AS col1 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL ( col1 ) * + col2 AS col2 FROM tab2 cor0
----
1534
646
837

query I rowsort
SELECT ALL - ( 74 ) AS col1 FROM tab2 AS cor0
----
-74
-74
-74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( 85 ) + + cor0.col1 + col0 col0 FROM tab0 AS cor0
----
25
47
95

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7115
SELECT - CAST( NULL AS SIGNED ) * - col2 - col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7115
SELECT - CAST ( NULL AS INTEGER ) * - col2 - col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ( 90 ) * col1 * col2 + col2 + col2 * + col0 FROM tab0 AS cor0
----
256245
678960
8766

query I rowsort
SELECT + 67 * col1 + 67 * - col2 + - cor0.col0 AS col1 FROM tab2 AS cor0
----
-1486
2133
261

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 57 * col2 col0 FROM tab2 AS cor0
----
1482
1539
2166

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 25 col2 FROM tab2 AS cor0
----
25
25
25

query I rowsort
SELECT + + col0 * + col0 + col1 AS col0 FROM tab1 AS cor0
----
35
4106
6413

query I rowsort
SELECT DISTINCT 85 + col2 AS col1 FROM tab0 AS cor0
----
118
167
86

query I rowsort
SELECT DISTINCT - col1 + col0 * col2 AS col0 FROM tab1 AS cor0
----
136
3638
7667

onlyif mysql # use DIV operator for integer division
query I rowsort label-7123
SELECT ALL - col0 + - cor0.col2 DIV - 55 - + col0 FROM tab1 AS cor0
----
-127
-159
-6

skipif mysql # not compatible
query I rowsort label-7123
SELECT ALL - col0 + - cor0.col2 / - 55 - + col0 FROM tab1 AS cor0
----
-127
-159
-6

query I rowsort
SELECT DISTINCT - col0 * cor0.col0 - col2 AS col2 FROM tab0 AS cor0
----
-1226
-609
-8003

query I rowsort
SELECT - 12 + col1 * col2 FROM tab1 AS cor0
----
1236
1392
558

onlyif mysql # use DIV operator for integer division
query I rowsort label-7126
SELECT ALL + + col2 * + col0 + 74 * col1 DIV col2 + ( col1 ) AS col2 FROM tab0 AS cor0
----
1070
7310
7471

skipif mysql # not compatible
query I rowsort label-7126
SELECT ALL + + col2 * + col0 + 74 * col1 / col2 + ( col1 ) AS col2 FROM tab0 AS cor0
----
1070
7310
7471

onlyif mysql # use DIV operator for integer division
query I rowsort label-7127
SELECT DISTINCT 66 + + col1 DIV col1 AS col1 FROM tab1 cor0
----
67

skipif mysql # not compatible
query I rowsort label-7127
SELECT DISTINCT 66 + + col1 / col1 AS col1 FROM tab1 cor0
----
67

query I rowsort
SELECT ALL ( - col2 ) * col0 - + col0 AS col1 FROM tab1 AS cor0
----
-165
-3712
-7760

query I rowsort
SELECT 14 + - col0 AS col2 FROM tab1 AS cor0
----
-50
-66
11

query I rowsort
SELECT + cor0.col2 * - ( + 81 ) * col2 FROM tab1 cor0
----
-236196
-263169
-746496

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 + + 20 col0 FROM tab0 AS cor0
----
109
44
55

query I rowsort
SELECT + col2 * 17 AS col0 FROM tab1 cor0
----
1632
918
969

query I rowsort
SELECT + 55 + + col0 FROM tab1
----
119
135
58

query I rowsort
SELECT ALL 97 AS col2 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to c73fa6978df8525c99d6bc792bb27123

query I rowsort
SELECT col2 + col1 * 96 FROM tab1 AS cor0
----
1017
1344
2550

query I rowsort
SELECT + ( cor0.col0 ) + - cor0.col2 AS col1 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT DISTINCT cor0.col0 AS col1 FROM tab0, tab1 cor0, tab0 AS cor1
----
3
64
80

query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab1, tab2 cor0, tab0 cor1
----
972 values hashing to 9a5ab925af18e11f7748f3b2e722ff3d

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 61 col1 FROM tab0
----
61
61
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 col1 FROM tab2, tab2 cor0, tab2 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT DISTINCT 76 * + tab1.col0 AS col0 FROM tab1
----
228
4864
6080

query I rowsort
SELECT ALL tab2.col2 * 58 * + 46 FROM tab2, tab1 AS cor0
----
9 values hashing to f599e758456b35ea8f3b8387f8b43a46

query I rowsort
SELECT tab1.col1 * 64 * tab1.col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 84ef021153236fb4a3c1ab67146648e8

query I rowsort
SELECT + - col0 + + col2 * ( - cor0.col0 ) FROM tab1 AS cor0
----
-165
-3712
-7760

query I rowsort
SELECT + col1 * + col1 * + col2 AS col2 FROM tab0 cor0
----
244068
679042
9409

query I rowsort
SELECT ALL + cor1.col0 + + 46 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 028ec7a3ec611943d199f681981bcdda

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7147
SELECT + - col0 + CAST( NULL AS SIGNED ) * - col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7147
SELECT + - col0 + CAST ( NULL AS INTEGER ) * - col2 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-7148
SELECT ALL - - col0 + + ( - 97 ) DIV + col2 AS col1 FROM tab1 cor0
----
2
63
79

skipif mysql # not compatible
query I rowsort label-7148
SELECT ALL - - col0 + + ( - 97 ) / + col2 AS col1 FROM tab1 cor0
----
2
63
79

query I rowsort
SELECT DISTINCT col1 * + col0 + col2 * col0 AS col2 FROM tab2 AS cor0
----
406
4345
6630

query I rowsort
SELECT + col1 * + 35 AS col1 FROM tab0 AS cor0
----
3010
3185
3395

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 79 col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f

onlyif mysql # use DIV operator for integer division
query I rowsort label-7152
SELECT DISTINCT - col2 DIV 14 + + col1 * col1 AS col0 FROM tab1 AS cor0
----
163
673
96

skipif mysql # not compatible
query I rowsort label-7152
SELECT DISTINCT - col2 / 14 + + col1 * col1 AS col0 FROM tab1 AS cor0
----
163
673
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7153
SELECT - CAST( + 89 AS SIGNED ) * + col1 AS col1 FROM tab2 AS cor0
----
-1513
-2759
-5251

skipif mysql # not compatible
query I rowsort label-7153
SELECT - CAST ( + 89 AS INTEGER ) * + col1 AS col1 FROM tab2 AS cor0
----
-1513
-2759
-5251

query I rowsort
SELECT DISTINCT - + 56 FROM tab2, tab0, tab0 AS cor0
----
-56

query I rowsort
SELECT + col1 + + 95 AS col1 FROM tab1 AS cor0
----
105
108
121

query I rowsort
SELECT 71 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0

query I rowsort
SELECT ALL + col2 * col1 + + col0 * col2 AS col0 FROM tab2
----
1026
3562
3648

query I rowsort
SELECT DISTINCT + col2 + + 44 FROM tab0
----
126
45
77

query I rowsort
SELECT - - col0 * col0 + - col2 FROM tab1 AS cor0
----
-45
4039
6304

query I rowsort
SELECT + col2 + 93 AS col2 FROM tab1 AS cor0
----
147
150
189

query I rowsort
SELECT 57 + cor0.col0 * col1 AS col1 FROM tab0 AS cor0
----
2121
3452
8156

query I rowsort
SELECT - 83 * + ( col2 ) FROM tab1 AS cor0
----
-4482
-4731
-7968

query I rowsort
SELECT DISTINCT 97 AS col0 FROM tab2 cor0
----
97

query I rowsort
SELECT - - col1 * col1 * + col0 AS col1 FROM tab2 AS cor0
----
22831
271518
6727

query I rowsort
SELECT DISTINCT 28 * col0 FROM tab1 cor0
----
1792
2240
84

query I rowsort
SELECT ALL 10 AS col0 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 0fe3e45a9ecd49584c2ab442100d5176

onlyif mysql # use DIV operator for integer division
query I rowsort label-7167
SELECT ALL - col2 * cor0.col1 DIV 98 FROM tab0 AS cor0
----
-28
-76
0

skipif mysql # not compatible
query I rowsort label-7167
SELECT ALL - col2 * cor0.col1 / 98 FROM tab0 AS cor0
----
-28
-76
0

query I rowsort
SELECT ALL - - col1 * + col1 + col2 FROM tab2 AS cor0
----
327
3507
988

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 37 col1 FROM tab2 cor0
----
-37
-37
-37

query I rowsort
SELECT ALL - + col0 + - cor0.col1 * 61 FROM tab2 AS cor0
----
-1116
-1898
-3677

query I rowsort
SELECT - col1 * 72 + col2 * + col0 * + col0 FROM tab0 AS cor0
----
-5759
12816
642970

query I rowsort
SELECT DISTINCT tab1.col2 AS col0 FROM tab1, tab0, tab1 AS cor0
----
54
57
96

query I rowsort
SELECT ALL - 82 + - cor0.col2 AS col0 FROM tab0 AS cor0
----
-115
-164
-83

query I rowsort
SELECT DISTINCT - 60 * + 74 * + cor0.col1 AS col1 FROM tab1 AS cor0
----
-115440
-44400
-57720

query I rowsort
SELECT DISTINCT + - 8 * - 9 + - col2 * col2 AS col0 FROM tab1 cor0
----
-2844
-3177
-9144

query I rowsort
SELECT + ( 27 ) * col1 * col2 + col0 FROM tab2 cor0
----
17521
22606
41496

query I rowsort
SELECT ALL - - 59 FROM tab1 AS cor0
----
59
59
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-7178
SELECT ( 72 ) DIV col2 + col0 FROM tab1 AS cor0
----
4
65
80

skipif mysql # not compatible
query I rowsort label-7178
SELECT ( 72 ) / col2 + col0 FROM tab1 AS cor0
----
4
65
80

query I rowsort
SELECT DISTINCT - + cor0.col0 + 91 FROM tab2 AS cor0
----
12
13
84

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7180
SELECT DISTINCT + ( - col1 ) + col1 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7180
SELECT DISTINCT + ( - col1 ) + col1 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - 44 * - 24 FROM tab0 AS cor0
----
1056
1056
1056

query I rowsort
SELECT - - 29 + - ( - cor0.col1 ) FROM tab0 AS cor0
----
115
120
126

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7183
SELECT ALL - + CAST( NULL AS DECIMAL ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7183
SELECT ALL - + CAST ( NULL AS REAL ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 - col1 * 16 col1 FROM tab0
----
-1400
-1545
-1587

query I rowsort
SELECT tab0.col1 * + ( col1 ) AS col1 FROM tab0
----
7396
8281
9409

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7186
SELECT ALL 30 + col0 * + CAST( NULL AS SIGNED ) + - col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7186
SELECT ALL 30 + col0 * + CAST ( NULL AS INTEGER ) + - col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - ( cor0.col2 ) * - col1 + - col0 FROM tab2 cor0
----
1456
567
830

query I rowsort
SELECT 9 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to ebef7303942834ca1e6ca8604ec18a07

query I rowsort
SELECT DISTINCT - 70 * + col1 + col1 FROM tab1 AS cor0
----
-1794
-690
-897

query I rowsort
SELECT 90 + - col0 + + col2 * + ( + col0 * + col1 ) FROM tab1
----
36506
4299
99850

query I rowsort
SELECT ALL + ( col0 ) * col2 + - col2 + col2 * col2 AS col0 FROM tab2 AS cor0
----
2678
4408
891

query I rowsort
SELECT DISTINCT - + ( - col2 ) * col1 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT DISTINCT - col2 * + col2 - - 32 * + col1 AS col2 FROM tab1 AS cor0
----
-2084
-2929
-8800

onlyif mysql # use DIV operator for integer division
query I rowsort label-7194
SELECT DISTINCT - + col1 + 7 DIV - cor0.col0 FROM tab1 AS cor0
----
-10
-13
-28

skipif mysql # not compatible
query I rowsort label-7194
SELECT DISTINCT - + col1 + 7 / - cor0.col0 FROM tab1 AS cor0
----
-10
-13
-28

query I rowsort
SELECT col1 + 64 AS col0 FROM tab2 AS cor0
----
123
81
95

query I rowsort
SELECT ALL + + col1 * 30 FROM tab1 AS cor0
----
300
390
780

query I rowsort
SELECT ALL col1 * - col2 - - 89 FROM tab1
----
-1159
-1315
-481

query I rowsort
SELECT DISTINCT + col2 + + 34 AS col2 FROM tab1 AS cor0
----
130
88
91

query I rowsort
SELECT ALL + col2 + 68 * - col0 AS col1 FROM tab1 cor0
----
-150
-4295
-5344

onlyif mysql # use DIV operator for integer division
query I rowsort label-7200
SELECT + col0 * CAST( - col0 AS SIGNED ) DIV col0 + + col0 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7200
SELECT + col0 * CAST ( - col0 AS INTEGER ) / col0 + + col0 FROM tab0 cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + + col2 col0 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT - + col0 * 34 + col2 AS col0 FROM tab2 AS cor0
----
-211
-2626
-2648

skipif mysql # not compatible
query I rowsort
SELECT ALL + col1 * - CAST ( col0 AS REAL ) + - col0 FROM tab2 AS cor0
----
-1422
-224
-4680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7204
SELECT - col0 + - CAST( col1 AS SIGNED ) * col0 AS col1 FROM tab1 AS cor0
----
-1120
-704
-81

skipif mysql # not compatible
query I rowsort label-7204
SELECT - col0 + - CAST ( col1 AS INTEGER ) * col0 AS col1 FROM tab1 AS cor0
----
-1120
-704
-81

query I rowsort
SELECT ALL - col0 * + 89 AS col2 FROM tab0 cor0
----
-2136
-3115
-7921

query I rowsort
SELECT 18 * + tab1.col0 * col0 + + col2 + col1 AS col1 FROM tab1
----
115309
242
73795

query I rowsort
SELECT DISTINCT + col1 + + col1 * col0 AS col0 FROM tab2
----
1360
248
4661

query I rowsort
SELECT col1 + - tab1.col0 + tab1.col0 FROM tab1
----
10
13
26

query I rowsort
SELECT ALL 68 * col2 * + 75 - - col1 * col0 FROM tab0
----
170364
426299
8495

query I rowsort
SELECT DISTINCT + 74 FROM tab2, tab1, tab0 AS cor0
----
74

query I rowsort
SELECT DISTINCT col1 + + col1 AS col0 FROM tab0 cor0
----
172
182
194

query I rowsort
SELECT - ( - 12 ) AS col0 FROM tab1 cor0
----
12
12
12

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7213
SELECT ALL - CAST( 57 AS SIGNED ) - col0 * - 27 AS col2 FROM tab0 AS cor0
----
2346
591
888

skipif mysql # not compatible
query I rowsort label-7213
SELECT ALL - CAST ( 57 AS INTEGER ) - col0 * - 27 AS col2 FROM tab0 AS cor0
----
2346
591
888

query I rowsort
SELECT ALL + ( col0 ) * + cor0.col1 + cor0.col2 + - 86 * + col1 AS col1 FROM tab2 cor0
----
-2422
-446
-81

query I rowsort
SELECT DISTINCT + ( col2 ) + col0 * col2 FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT DISTINCT col1 * - 57 AS col2 FROM tab0 AS cor0
----
-4902
-5187
-5529

query I rowsort
SELECT ALL + - ( - ( col1 ) ) * + col0 AS col2 FROM tab0 AS cor0
----
2064
3395
8099

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7218
SELECT DISTINCT - ( + col2 ) + col1 * CAST( NULL AS SIGNED ) * col1 + col2 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7218
SELECT DISTINCT - ( + col2 ) + col1 * CAST ( NULL AS INTEGER ) * col1 + col2 FROM tab0 cor0
----
NULL

query I rowsort
SELECT + col0 * + 8 FROM tab2
----
56
624
632

query I rowsort
SELECT + col0 * col1 - - col2 * - col0 FROM tab2
----
-1659
2574
28

query I rowsort
SELECT DISTINCT + tab1.col0 + 15 FROM tab1
----
18
79
95

skipif mysql # not compatible
query I rowsort
SELECT CAST ( + col1 AS REAL ) + col2 AS col0 FROM tab0
----
119
173
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor1.col2 col2 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
-26
-27
-38

query I rowsort
SELECT tab1.col1 FROM tab2, tab2 AS cor0 CROSS JOIN tab1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT + 4 * - 98 + - tab0.col2 AS col2 FROM tab0
----
-393
-425
-474

query I rowsort
SELECT ALL - ( - col2 ) * + col1 * + col1 AS col2 FROM tab1
----
16224
36504
5700

query I rowsort
SELECT + + col0 + - col1 * col1 * col0 FROM tab2 AS cor0
----
-22752
-271440
-6720

query I rowsort
SELECT ALL 22 * - 35 FROM tab0
----
-770
-770
-770

query I rowsort
SELECT ALL ( + 75 ) FROM tab2
----
75
75
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 22 * - col1 col0 FROM tab2 AS cor0
----
-1298
-374
-682

query I rowsort
SELECT - 7 * cor0.col1 FROM tab2 AS cor0
----
-119
-217
-413

query I rowsort
SELECT ALL - + 2 * + col2 FROM tab2 cor0
----
-52
-54
-76

onlyif mysql # use DIV operator for integer division
query I rowsort label-7233
SELECT - - col2 DIV - cor0.col2 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7233
SELECT - - col2 / - cor0.col2 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL + cor0.col1 * - cor0.col1 FROM tab2 cor0
----
-289
-3481
-961

onlyif mysql # use DIV operator for integer division
query I rowsort label-7235
SELECT ALL col1 * 59 + 90 DIV tab1.col2 col0 FROM tab1
----
1535
591
767

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7235
SELECT ALL col1 * 59 + 90 / tab1.col2 col0 FROM tab1
----
1535
591
767

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7236
SELECT DISTINCT + col1 + + CAST( col0 AS SIGNED ) * - col0 + col1 * - col0 FROM tab0
----
-15929
-2554
-4523

skipif mysql # not compatible
query I rowsort label-7236
SELECT DISTINCT + col1 + + CAST ( col0 AS INTEGER ) * - col0 + col1 * - col0 FROM tab0
----
-15929
-2554
-4523

query I rowsort
SELECT ALL 6 + tab1.col1 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 702cde6a0a4787bd5582b1ca2ac26fc4

query I rowsort
SELECT DISTINCT + - cor0.col2 + col0 AS col0 FROM tab2 cor0
----
-20
41
52

query I rowsort
SELECT DISTINCT + col0 + + 96 AS col1 FROM tab1 AS cor0
----
160
176
99

query I rowsort
SELECT ALL - col0 - + col1 * - col2 AS col1 FROM tab1 cor0
----
1168
1401
506

query I rowsort
SELECT + cor0.col2 + - col2 AS col1 FROM tab0 cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-7242
SELECT ALL col1 * 4 DIV 34 AS col1 FROM tab0 AS cor0
----
10
10
11

skipif mysql # not compatible
query I rowsort label-7242
SELECT ALL col1 * 4 / 34 AS col1 FROM tab0 AS cor0
----
10
10
11

query I rowsort
SELECT + col2 * ( - cor0.col2 ) + + col1 * col0 AS col2 FROM tab1 AS cor0
----
-2609
-2838
-8176

query I rowsort
SELECT ALL - col0 * - 8 * col0 FROM tab0 AS cor0
----
4608
63368
9800

query I rowsort
SELECT + col1 * ( - col2 * col1 ) + col0 * + col1 FROM tab0 AS cor0
----
-242004
-6014
-670943

query I rowsort
SELECT DISTINCT + col1 + 60 AS col2 FROM tab1 AS cor0
----
70
73
86

query I rowsort
SELECT ( + col1 ) * + col2 * col0 FROM tab1 AS cor0
----
36480
4212
99840

onlyif mysql # use DIV operator for integer division
query I rowsort label-7248
SELECT ALL - + col2 DIV + cor0.col1 FROM tab2 cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-7248
SELECT ALL - + col2 / + cor0.col1 FROM tab2 cor0
----
-2
0
0

query I rowsort
SELECT DISTINCT 66 + col0 * + col2 AS col1 FROM tab2 AS cor0
----
2094
255
3068

query I rowsort
SELECT ALL - 86 FROM tab0, tab1 AS cor0
----
9 values hashing to 9ac806793c03d3a6b5e3a3029d20e4da

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7251
SELECT ALL CAST( - 10 AS SIGNED ) * - col2 AS col1 FROM tab2 AS cor0
----
260
270
380

skipif mysql # not compatible
query I rowsort label-7251
SELECT ALL CAST ( - 10 AS INTEGER ) * - col2 AS col1 FROM tab2 AS cor0
----
260
270
380

onlyif mysql # use DIV operator for integer division
query I rowsort label-7252
SELECT + + cor0.col0 DIV - ( col0 + + col0 ) AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7252
SELECT + + cor0.col0 / - ( col0 + + col0 ) AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + 84 AS col0 FROM tab1 AS cor0
----
84
84
84

query I rowsort
SELECT + col2 + 20 FROM tab0 AS cor0
----
102
21
53

query I rowsort
SELECT ALL + 14 * + col1 AS col0 FROM tab0
----
1204
1274
1358

query I rowsort
SELECT - + col0 * ( - col1 ) FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT col1 + 58 * cor0.col1 AS col1 FROM tab0 AS cor0
----
5074
5369
5723

query I rowsort
SELECT - col0 + col0 * 65 AS col1 FROM tab0 AS cor0
----
1536
2240
5696

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 85 col2 FROM tab1
----
-85

query I rowsort
SELECT DISTINCT 26 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab1.col1 col2 FROM tab1, tab1 cor0
----
-10
-13
-26

query I rowsort
SELECT - + ( - 83 ) FROM tab0, tab0 cor0
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c

query I rowsort
SELECT DISTINCT 57 * + col0 AS col1 FROM tab1
----
171
3648
4560

query I rowsort
SELECT DISTINCT + 63 * col1 AS col2 FROM tab2
----
1071
1953
3717

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 + col2 * - col1 + - cor0.col2 AS col0 FROM tab2 AS cor0
----
-1560
-684
-864

query I rowsort
SELECT tab0.col2 * + col0 * ( 5 ) AS col1 FROM tab0
----
175
36490
3960

query I rowsort
SELECT + + col1 * + ( - col1 ) AS col2 FROM tab2 AS cor0
----
-289
-3481
-961

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - cor0.col1 ) col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f

query I rowsort
SELECT DISTINCT 5 AS col0 FROM tab0, tab2 AS cor0
----
5

query I rowsort
SELECT ALL col2 + - col1 + - col2 * + col0 FROM tab2
----
-193
-2061
-2981

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * ( - col0 * col2 ) + tab2.col2 col0 FROM tab2
----
-1296
-158158
-237120

query I rowsort
SELECT ALL col2 + ( + col2 + + col1 ) FROM tab2
----
111
85
93

query I rowsort
SELECT + col1 * ( + 97 ) AS col2 FROM tab0
----
8342
8827
9409

query I rowsort
SELECT 52 AS col2 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 76100d10f51995d20efdeb657e444d3c

onlyif mysql # use DIV operator for integer division
query I rowsort label-7276
SELECT - - col1 DIV 59 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7276
SELECT - - col1 / 59 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + - col0 col0 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT col0 * - 10 FROM tab2 AS cor0
----
-70
-780
-790

query I rowsort
SELECT DISTINCT + col0 + ( col0 ) AS col0 FROM tab0 AS cor0
----
178
48
70

onlyif mysql # use DIV operator for integer division
query I rowsort label-7280
SELECT ALL - 42 DIV col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7280
SELECT ALL - 42 / col1 FROM tab0
----
0
0
0

query I rowsort
SELECT + cor0.col0 AS col0 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT + col1 * - col0 + ( cor0.col2 ) FROM tab2 AS cor0
----
-1305
-190
-4576

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * col2 col1 FROM tab2 cor0
----
189
2028
3002

query I rowsort
SELECT DISTINCT + col0 * cor0.col0 + col2 FROM tab2 AS cor0
----
6110
6279
76

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7285
SELECT - + col0 * - col2 + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7285
SELECT - + col0 * - col2 + CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 27 AS col0 FROM tab1
----
27

onlyif mysql # use DIV operator for integer division
query I rowsort label-7287
SELECT + ( col1 + col1 ) DIV + 61 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-7287
SELECT + ( col1 + col1 ) / + 61 FROM tab2
----
0
1
1

query I rowsort
SELECT DISTINCT + col1 + col2 + - col0 * + col1 * col1 AS col1 FROM tab1 AS cor0
----
-13411
-1948
-6333

query I rowsort
SELECT + col0 + col2 * + col0 - + col1 AS col0 FROM tab2 AS cor0
----
165
2047
3064

query I rowsort
SELECT ALL - col0 + - col2 * col1 AS col0 FROM tab1 AS cor0
----
-1328
-1407
-634

query I rowsort
SELECT ALL - 22 + col2 AS col2 FROM tab2 AS cor0
----
16
4
5

query I rowsort
SELECT + col0 * cor0.col1 - - 6 AS col0 FROM tab1 AS cor0
----
1046
646
84

query I rowsort
SELECT DISTINCT - col0 * + tab1.col2 + - col0 FROM tab1
----
-165
-3712
-7760

query I rowsort
SELECT + 48 * - col1 FROM tab1
----
-1248
-480
-624

query I rowsort
SELECT ALL 10 * 1 FROM tab2 AS cor0
----
10
10
10

onlyif mysql # use DIV operator for integer division
query I rowsort label-7296
SELECT + 96 DIV + col1 AS col2 FROM tab2 AS cor0
----
1
3
5

skipif mysql # not compatible
query I rowsort label-7296
SELECT + 96 / + col1 AS col2 FROM tab2 AS cor0
----
1
3
5

query I rowsort
SELECT ALL + - 11 FROM tab2 AS cor0
----
-11
-11
-11

query I rowsort
SELECT + ( - 86 ) + cor0.col2 + cor0.col2 FROM tab0 AS cor0
----
-20
-84
78

query I rowsort
SELECT DISTINCT - - 66 + + col2 * + col2 + + cor0.col1 AS col2 FROM tab1 AS cor0
----
3008
3325
9295

query I rowsort
SELECT 31 * 36 AS col0 FROM tab0 AS cor0
----
1116
1116
1116

query I rowsort
SELECT ALL - - col2 * - ( col0 ) AS col1 FROM tab0 AS cor0
----
-35
-7298
-792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 14 + - col2 * + col2 col0 FROM tab1 AS cor0
----
-2902
-3235
-9202

query I rowsort
SELECT DISTINCT col1 * + col1 - cor0.col0 FROM tab0 AS cor0
----
7372
8192
9374

query I rowsort
SELECT - + 63 * + col2 AS col1 FROM tab0 cor0
----
-2079
-5166
-63

query I rowsort
SELECT ALL + col2 + col1 * + 28 FROM tab2 cor0
----
1678
514
895

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7306
SELECT DISTINCT + col2 + - col1 / - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7306
SELECT DISTINCT + col2 + - col1 / - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col2 + - 39 AS col0 FROM tab0
----
-38
-6
43

query I rowsort
SELECT ALL + cor0.col2 * cor1.col0 AS col1 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 5a783d04f27f5464428a0aa6e48e0e25

query I rowsort
SELECT DISTINCT + col1 * + col1 + col2 AS col2 FROM tab1 AS cor0
----
157
265
730

query I rowsort
SELECT DISTINCT + cor0.col0 * 65 AS col0 FROM tab2 AS cor0
----
455
5070
5135

query I rowsort
SELECT DISTINCT - 58 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
-58

query I rowsort
SELECT + + col1 * + col1 + - cor0.col2 AS col1 FROM tab2 AS cor0
----
251
3455
934

onlyif mysql # use DIV operator for integer division
query I rowsort label-7313
SELECT DISTINCT + 85 DIV + col2 FROM tab0 AS cor0
----
1
2
85

skipif mysql # not compatible
query I rowsort label-7313
SELECT DISTINCT + 85 / + col2 FROM tab0 AS cor0
----
1
2
85

query I rowsort
SELECT + 68 * cor0.col1 * cor0.col1 FROM tab0 AS cor0
----
502928
563108
639812

onlyif mysql # use DIV operator for integer division
query I rowsort label-7315
SELECT 38 + - cor0.col2 + cor0.col0 DIV - ( col1 + col0 ) FROM tab0 cor0
----
-44
37
5

skipif mysql # not compatible
query I rowsort label-7315
SELECT 38 + - cor0.col2 + cor0.col0 / - ( col1 + col0 ) FROM tab0 cor0
----
-44
37
5

query I rowsort
SELECT DISTINCT - col2 * - 78 FROM tab0 AS cor0
----
2574
6396
78

query I rowsort
SELECT - col1 * - 3 FROM tab2 AS cor0
----
177
51
93

query I rowsort
SELECT DISTINCT col2 + - col1 + - cor0.col1 AS col2 FROM tab1 AS cor0
----
2
37
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 67 col1 FROM tab0 AS cor0
----
-67
-67
-67

query I rowsort
SELECT + - ( 54 ) * - col0 AS col2 FROM tab2 AS cor0
----
378
4212
4266

query I rowsort
SELECT ALL col2 * + ( cor0.col2 ) * col2 FROM tab0 AS cor0
----
1
35937
551368

query I rowsort
SELECT DISTINCT 52 + col0 FROM tab0 AS cor0
----
141
76
87

query I rowsort
SELECT col0 * col0 - - col1 AS col1 FROM tab2
----
6143
6258
80

query I rowsort
SELECT ALL col1 * col1 + + 63 FROM tab1
----
163
232
739

query I rowsort
SELECT tab2.col1 + + 46 AS col0 FROM tab2
----
105
63
77

query I rowsort
SELECT + 17 + 65 * - col0 FROM tab0 cor0
----
-1543
-2258
-5768

query I rowsort
SELECT DISTINCT - col0 + tab1.col1 * col1 FROM tab1
----
36
673
89

query I rowsort
SELECT - col1 + 19 * 58 AS col0 FROM tab0
----
1005
1011
1016

query I rowsort
SELECT + ( col2 ) * + col1 AS col0 FROM tab1
----
1248
1404
570

query I rowsort
SELECT ALL col1 * ( - col2 ) + 69 * - cor0.col2 AS col0 FROM tab0 AS cor0
----
-13120
-166
-5115

query I rowsort
SELECT DISTINCT + 98 * col2 + - col2 + + col1 FROM tab2 AS cor0
----
2581
2650
3703

query I rowsort
SELECT ALL cor0.col2 * - 50 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to fa152e7b63e0bbdf47a6c4fad903b281

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7333
SELECT DISTINCT + CAST( - col1 AS SIGNED ) AS col0 FROM tab2
----
-17
-31
-59

skipif mysql # not compatible
query I rowsort label-7333
SELECT DISTINCT + CAST ( - col1 AS INTEGER ) AS col0 FROM tab2
----
-17
-31
-59

query I rowsort
SELECT ALL - col2 * col2 - - ( col0 ) FROM tab2
----
-1365
-598
-722

query I rowsort
SELECT ALL + + col0 * - cor0.col0 AS col0 FROM tab1 AS cor0
----
-4096
-6400
-9

query I rowsort
SELECT + + col1 - col0 FROM tab2 cor0
----
-19
-62
24

query I rowsort
SELECT DISTINCT - - col2 + + 54 FROM tab1 AS cor0
----
108
111
150

query I rowsort
SELECT DISTINCT - - col0 * cor0.col1 AS col0 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT col0 * col2 + col0 + + col2 * + 99 FROM tab1 AS cor0
----
17264
5511
9355

query I rowsort
SELECT - + col1 * + 39 - - col0 * col0 FROM tab1 cor0
----
-1005
3706
5893

query I rowsort
SELECT + - col0 + cor0.col0 + col1 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT ALL - 83 * col0 - 67 FROM tab1
----
-316
-5379
-6707

query I rowsort
SELECT 67 AS col2 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to eea8a0738728ea55e4e7ba1506c9905a

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab0, tab1 cor2
----
3645 values hashing to 77ce60d8d42550cc1b5a38c7d1dc5d13

query I rowsort
SELECT + col2 + col2 * + cor0.col2 AS col2 FROM tab1 AS cor0
----
2970
3306
9312

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 - - col2 col1 FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT DISTINCT - - col0 * + 8 AS col1 FROM tab0 AS cor0
----
192
280
712

query I rowsort
SELECT col0 + 99 AS col1 FROM tab0 AS cor0
----
123
134
188

query I rowsort
SELECT DISTINCT + col1 * col2 + 75 AS col0 FROM tab0 AS cor0
----
172
2913
7537

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7350
SELECT ALL - cor0.col2 * CAST( + 76 AS SIGNED ) - col0 * - cor0.col2 AS col2 FROM tab1 AS cor0
----
-3942
-684
384

skipif mysql # not compatible
query I rowsort label-7350
SELECT ALL - cor0.col2 * CAST ( + 76 AS INTEGER ) - col0 * - cor0.col2 AS col2 FROM tab1 AS cor0
----
-3942
-684
384

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * col0 col1 FROM tab0
----
2064
3395
8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-7352
SELECT DISTINCT + 94 DIV + col1 AS col0 FROM tab2
----
1
3
5

skipif mysql # not compatible
query I rowsort label-7352
SELECT DISTINCT + 94 / + col1 AS col0 FROM tab2
----
1
3
5

query I rowsort
SELECT - 45 + + col2 AS col0 FROM tab0 AS cor0
----
-12
-44
37

query I rowsort
SELECT + col0 * + col0 + 29 AS col0 FROM tab2 cor0
----
6113
6270
78

query I rowsort
SELECT DISTINCT col0 + - col1 - col1 AS col0 FROM tab1
----
-49
44
54

query I rowsort
SELECT - - ( + col0 ) * - 33 AS col0 FROM tab2 cor0
----
-231
-2574
-2607

query I rowsort
SELECT - col2 * ( + 90 ) * + col0 FROM tab2 AS cor0
----
-17010
-182520
-270180

onlyif mysql # use DIV operator for integer division
query I rowsort label-7358
SELECT col2 DIV 59 AS col0 FROM tab1 cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7358
SELECT col2 / 59 AS col0 FROM tab1 cor0
----
0
0
1

query I rowsort
SELECT + cor0.col2 * - ( - col0 ) AS col0 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT ALL 92 * col2 AS col2 FROM tab1
----
4968
5244
8832

query I rowsort
SELECT ALL + col0 * tab0.col1 AS col1 FROM tab0
----
2064
3395
8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 * - 0 col2 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col2 * 56 + - 41 col2 FROM tab0 cor0
----
-1889
-4633
-97

query I rowsort
SELECT - cor0.col1 * - col2 + - col2 FROM tab1 AS cor0
----
1152
1350
513

query I rowsort
SELECT - col2 * cor0.col0 * + col1 AS col2 FROM tab2 AS cor0
----
-119652
-51034
-5859

query I rowsort
SELECT DISTINCT - ( col0 ) - col2 * + ( col0 ) FROM tab2 AS cor0
----
-196
-2106
-3081

query I rowsort
SELECT DISTINCT - col1 * + 79 AS col0 FROM tab2 AS cor0
----
-1343
-2449
-4661

query I rowsort
SELECT + col0 * - col0 * col2 - 72 FROM tab1 AS cor0
----
-233544
-558
-614472

query I rowsort
SELECT ALL + col0 * - ( col0 ) + + ( + col0 + - cor0.col0 * + col2 ) FROM tab2 AS cor0
----
-231
-8034
-9164

query I rowsort
SELECT ( 92 ) FROM tab0 AS cor0
----
92
92
92

query I rowsort
SELECT ( 28 ) AS col0 FROM tab2 AS cor0
----
28
28
28

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7372
SELECT - CAST( - 50 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
50
50
50

skipif mysql # not compatible
query I rowsort label-7372
SELECT - CAST ( - 50 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
50
50
50

onlyif mysql # use DIV operator for integer division
query I rowsort label-7373
SELECT + ( - tab2.col1 ) DIV + col1 AS col0 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7373
SELECT + ( - tab2.col1 ) / + col1 AS col0 FROM tab2
----
-1
-1
-1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7374
SELECT ALL - CAST( NULL AS SIGNED ) * - 39 FROM tab1, tab2 AS cor0 CROSS JOIN tab0, tab0 cor1, tab1 AS cor2
----
243 values hashing to 76933ee8cce600e48802fbdea2376d45

skipif mysql # not compatible
query I rowsort label-7374
SELECT ALL - CAST ( NULL AS INTEGER ) * - 39 FROM tab1, tab2 AS cor0 CROSS JOIN tab0, tab0 cor1, tab1 AS cor2
----
243 values hashing to 76933ee8cce600e48802fbdea2376d45

onlyif mysql # use DIV operator for integer division
query I rowsort label-7375
SELECT - col0 + col1 DIV 30 FROM tab2 AS cor0
----
-6
-77
-79

skipif mysql # not compatible
query I rowsort label-7375
SELECT - col0 + col1 / 30 FROM tab2 AS cor0
----
-6
-77
-79

onlyif mysql # use DIV operator for integer division
query I rowsort label-7376
SELECT ALL + - 56 DIV col1 FROM tab1 cor0
----
-2
-4
-5

skipif mysql # not compatible
query I rowsort label-7376
SELECT ALL + - 56 / col1 FROM tab1 cor0
----
-2
-4
-5

query I rowsort
SELECT ALL ( cor0.col1 ) + col1 AS col0 FROM tab2 AS cor0
----
118
34
62

query I rowsort
SELECT + col2 * - cor0.col0 + - 2 FROM tab1 AS cor0
----
-164
-3650
-7682

query I rowsort
SELECT DISTINCT - col1 + + cor0.col1 * ( + col1 ) AS col2 FROM tab2 AS cor0
----
272
3422
930

query I rowsort
SELECT ALL - col2 + col1 * 65 * - col0 FROM tab1 AS cor0
----
-41657
-5124
-67696

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( - col2 ) * col1 col2 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT 4 + + col1 FROM tab1 cor0
----
14
17
30

query I rowsort
SELECT ALL + cor0.col2 * col2 * + 62 AS col0 FROM tab1 AS cor0
----
180792
201438
571392

onlyif mysql # use DIV operator for integer division
query I rowsort label-7384
SELECT DISTINCT - + cor0.col2 DIV + col0 AS col1 FROM tab0 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-7384
SELECT DISTINCT - + cor0.col2 / + col0 AS col1 FROM tab0 AS cor0
----
-1
0

query I rowsort
SELECT ALL - 13 * - cor0.col2 + cor0.col0 * col2 FROM tab2 AS cor0
----
2366
3496
540

query I rowsort
SELECT ALL + - 32 + cor0.col2 AS col2 FROM tab2 AS cor0
----
-5
-6
6

query I rowsort
SELECT DISTINCT col0 * col2 * tab0.col0 AS col0 FROM tab0
----
1225
19008
649522

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 64 - - col0 col1 FROM tab1
----
-61
0
16

query I rowsort
SELECT DISTINCT + - 84 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-84

onlyif mysql # use DIV operator for integer division
query I rowsort label-7390
SELECT ALL cor0.col0 + - cor0.col1 DIV cor0.col0 FROM tab2 AS cor0
----
3
78
79

skipif mysql # not compatible
query I rowsort label-7390
SELECT ALL cor0.col0 + - cor0.col1 / cor0.col0 FROM tab2 AS cor0
----
3
78
79

query I rowsort
SELECT DISTINCT cor0.col2 + cor0.col0 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT ALL - col0 * - tab0.col2 + 10 * col2 FROM tab0
----
1122
45
8118

query I rowsort
SELECT DISTINCT + 30 - col2 AS col0 FROM tab1
----
-24
-27
-66

query I rowsort
SELECT 39 + cor0.col1 FROM tab1 cor0
----
49
52
65

onlyif mysql # use DIV operator for integer division
query I rowsort label-7395
SELECT ALL + 19 + col1 DIV - col0 FROM tab0 cor0
----
16
17
18

skipif mysql # not compatible
query I rowsort label-7395
SELECT ALL + 19 + col1 / - col0 FROM tab0 cor0
----
16
17
18

onlyif mysql # use DIV operator for integer division
query I rowsort label-7396
SELECT - 90 * + col0 - col0 DIV 57 AS col2 FROM tab1
----
-270
-5761
-7201

skipif mysql # not compatible
query I rowsort label-7396
SELECT - 90 * + col0 - col0 / 57 AS col2 FROM tab1
----
-270
-5761
-7201

query I rowsort
SELECT - 29 * col0 FROM tab1 AS cor0
----
-1856
-2320
-87

query I rowsort
SELECT DISTINCT - + cor0.col2 * 64 FROM tab1 AS cor0
----
-3456
-3648
-6144

query I rowsort
SELECT ALL - col2 + - 57 FROM tab1 AS cor0
----
-111
-114
-153

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7400
SELECT + CAST( + col1 AS SIGNED ) * - col1 AS col1 FROM tab1 AS cor0
----
-100
-169
-676

skipif mysql # not compatible
query I rowsort label-7400
SELECT + CAST ( + col1 AS INTEGER ) * - col1 AS col1 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT + - 87 + 24 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5a7845ef6e239561caf9a17a28e274b5

query I rowsort
SELECT ALL - - col0 * 59 - 71 * - col0 * + 9 FROM tab0 AS cor0
----
16752
24430
62122

onlyif mysql # use DIV operator for integer division
query I rowsort label-7403
SELECT col2 * col0 * + col2 + col2 DIV ( 30 ) AS col2 FROM tab2
----
114077
5103
52728

skipif mysql # not compatible
query I rowsort label-7403
SELECT col2 * col0 * + col2 + col2 / ( 30 ) AS col2 FROM tab2
----
114077
5103
52728

query I rowsort
SELECT DISTINCT + col2 + + ( + cor0.col0 ) FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT ALL - + cor0.col0 * + col2 + - col2 AS col2 FROM tab1 cor0
----
-216
-3705
-7776

query I rowsort
SELECT ALL cor0.col0 + - ( col0 ) + - col0 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT ALL col2 * + col2 * col2 FROM tab1 cor0
----
157464
185193
884736

query I rowsort
SELECT ALL - 59 AS col0 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 582c5aa5e5b4fc3f2ea27e7637992d1f

query I rowsort
SELECT DISTINCT - 68 FROM tab1, tab0 cor0
----
-68

query I rowsort
SELECT ALL - col0 - - ( col2 ) AS col2 FROM tab2
----
-41
-52
20

query I rowsort
SELECT - col1 + - col0 - - col1 FROM tab0
----
-24
-35
-89

query I rowsort
SELECT ( - col0 ) * col2 + 64 - + 54 AS col1 FROM tab1 AS cor0
----
-152
-3638
-7670

query I rowsort
SELECT col2 + - col0 * + col0 AS col0 FROM tab0 AS cor0
----
-1224
-543
-7839

query I rowsort
SELECT ALL 10 + 21 FROM tab2 AS cor0
----
31
31
31

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7415
SELECT + + CAST( NULL AS SIGNED ) * cor0.col1 - - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7415
SELECT + + CAST ( NULL AS INTEGER ) * cor0.col1 - - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ( tab2.col0 ) * tab2.col2 + col1 + col1 AS col0 FROM tab2
----
2146
251
3036

onlyif mysql # use DIV operator for integer division
query I rowsort label-7417
SELECT 80 * col0 DIV + tab1.col2 AS col0 FROM tab1
----
4
66
89

skipif mysql # not compatible
query I rowsort label-7417
SELECT 80 * col0 / + tab1.col2 AS col0 FROM tab1
----
4
66
89

query I rowsort
SELECT + col1 + - 64 * + col1 - 69 AS col1 FROM tab1 AS cor0
----
-1707
-699
-888

query I rowsort
SELECT DISTINCT - col2 + col1 * - col2 AS col2 FROM tab0 AS cor0
----
-2871
-7544
-98

query I rowsort
SELECT + - 51 * col1 * + ( + col1 ) AS col0 FROM tab1 AS cor0
----
-34476
-5100
-8619

query I rowsort
SELECT ALL + 41 AS col1 FROM tab1 cor0
----
41
41
41

query I rowsort
SELECT - col1 * - col2 + col0 + cor0.col2 * col2 * col1 FROM tab0 AS cor0
----
229
619435
96516

query I rowsort
SELECT ALL - + col0 * + cor0.col0 AS col0 FROM tab1 cor0
----
-4096
-6400
-9

query I rowsort
SELECT ALL + col0 * - col2 + cor0.col2 * - col1 FROM tab2 AS cor0
----
-1026
-3562
-3648

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7425
SELECT + - cor0.col2 * col0 + - CAST( col0 AS SIGNED ) col0 FROM tab0 AS cor0
----
-70
-7387
-816

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7425
SELECT + - cor0.col2 * col0 + - CAST ( col0 AS INTEGER ) col0 FROM tab0 AS cor0
----
-70
-7387
-816

query I rowsort
SELECT - 61 + col0 - - 36 FROM tab1 AS cor0
----
-22
39
55

onlyif mysql # use DIV operator for integer division
query I rowsort label-7427
SELECT + + col1 DIV col0 AS col0 FROM tab0 cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-7427
SELECT + + col1 / col0 AS col0 FROM tab0 cor0
----
1
2
3

query I rowsort
SELECT col2 + col0 + ( col2 ) * col1 AS col1 FROM tab1 AS cor0
----
1424
1461
691

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - cor0.col1 + col0 col1 FROM tab0 cor0
----
110
132
180

query I rowsort
SELECT ALL + + col2 + - cor0.col2 * col1 AS col0 FROM tab0 AS cor0
----
-2805
-7380
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-7431
SELECT DISTINCT - - col2 DIV cor0.col1 FROM tab1 AS cor0
----
2
5
7

skipif mysql # not compatible
query I rowsort label-7431
SELECT DISTINCT - - col2 / cor0.col1 FROM tab1 AS cor0
----
2
5
7

query I rowsort
SELECT ALL 94 AS col1 FROM tab1
----
94
94
94

query I rowsort
SELECT ( col1 * + 1 ) AS col1 FROM tab2
----
17
31
59

query I rowsort
SELECT + cor0.col2 + - col1 AS col1 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT DISTINCT + + cor0.col1 * col2 + col2 FROM tab2 AS cor0
----
1560
684
864

onlyif mysql # use DIV operator for integer division
query I rowsort label-7436
SELECT ALL + + 36 DIV col0 FROM tab2 AS cor0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-7436
SELECT ALL + + 36 / col0 FROM tab2 AS cor0
----
0
0
5

query I rowsort
SELECT - col1 * - 19 + 32 * col2 AS col0 FROM tab0 cor0
----
1875
2690
4353

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 78 * col2 col2 FROM tab2
----
-2028
-2106
-2964

query I rowsort
SELECT 21 * col2 AS col1 FROM tab2
----
546
567
798

query I rowsort
SELECT ALL col2 * + col0 * col0 + col2 AS col2 FROM tab1
----
233529
540
614496

query I rowsort
SELECT col1 * 82 FROM tab2 AS cor0
----
1394
2542
4838

query I rowsort
SELECT DISTINCT col2 + + col0 * - col2 AS col0 FROM tab2 AS cor0
----
-162
-2002
-2964

query I rowsort
SELECT DISTINCT - cor0.col0 + 50 * cor0.col1 * 3 FROM tab1 AS cor0
----
1436
1870
3897

query I rowsort
SELECT ALL 62 + col2 + - col1 AS col2 FROM tab1 AS cor0
----
109
145
90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7445
SELECT - - CAST( NULL AS SIGNED ) col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7445
SELECT - - CAST ( NULL AS INTEGER ) col2 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 + col0 * cor0.col1 * - col0 AS col1 FROM tab0 AS cor0
----
-118790
-49512
-720722

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + - CAST ( col1 AS REAL ) FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT ALL cor0.col1 + + 22 FROM tab0 AS cor0
----
108
113
119

query I rowsort
SELECT ALL - 12 * ( col1 ) - + 87 FROM tab2 AS cor0
----
-291
-459
-795

query I rowsort
SELECT + - 49 + col0 * + col1 FROM tab2 cor0
----
1294
168
4553

query I rowsort
SELECT ALL - + col0 * col1 + col1 FROM tab1 AS cor0
----
-1027
-52
-630

query I rowsort
SELECT ALL + ( 90 ) * - col1 + - 11 AS col1 FROM tab1 AS cor0
----
-1181
-2351
-911

query I rowsort
SELECT + 75 FROM tab2, tab2 cor0
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7454
SELECT - CAST( - col2 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-7454
SELECT - CAST ( - col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT + ( 27 ) + col1 * - col1 AS col1 FROM tab1
----
-142
-649
-73

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7456
SELECT - 8 * cor0.col1 + CAST( + col0 AS SIGNED ) FROM tab1 AS cor0
----
-16
-205
-24

skipif mysql # not compatible
query I rowsort label-7456
SELECT - 8 * cor0.col1 + CAST ( + col0 AS INTEGER ) FROM tab1 AS cor0
----
-16
-205
-24

skipif mysql # not compatible
query I rowsort
SELECT ALL + - CAST ( + col2 AS REAL ) AS col0 FROM tab1 AS cor0
----
-54
-57
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-7458
SELECT DISTINCT + - ( cor0.col1 ) DIV col2 + cor0.col2 * - 46 + + col0 FROM tab1 cor0
----
-2481
-2558
-4336

skipif mysql # not compatible
query I rowsort label-7458
SELECT DISTINCT + - ( cor0.col1 ) / col2 + cor0.col2 * - 46 + + col0 FROM tab1 cor0
----
-2481
-2558
-4336

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7459
SELECT ALL + CAST( NULL AS SIGNED ) AS col2 FROM tab1, tab0, tab2 AS cor0, tab2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

skipif mysql # not compatible
query I rowsort label-7459
SELECT ALL + CAST ( NULL AS INTEGER ) AS col2 FROM tab1, tab0, tab2 AS cor0, tab2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

query I rowsort
SELECT DISTINCT col0 + - 39 * + col1 AS col0 FROM tab0 AS cor0
----
-3330
-3460
-3748

query I rowsort
SELECT ALL + - 64 AS col0 FROM tab0 cor0
----
-64
-64
-64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 29 - col0 col1 FROM tab1 AS cor0
----
-35
-51
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( 51 ) * - cor0.col1 col1 FROM tab0 AS cor0
----
4386
4641
4947

query I rowsort
SELECT DISTINCT - col0 * col1 + col2 + col2 FROM tab2
----
-1267
-163
-4550

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7465
SELECT DISTINCT CAST( cor0.col2 AS SIGNED ) AS col0 FROM tab2, tab2 AS cor0
----
26
27
38

skipif mysql # not compatible
query I rowsort label-7465
SELECT DISTINCT CAST ( cor0.col2 AS INTEGER ) AS col0 FROM tab2, tab2 AS cor0
----
26
27
38

query I rowsort
SELECT - 36 * 42 FROM tab1, tab0 cor0
----
9 values hashing to 6f22649a14c6ec4c0b3736403a15b037

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + 38 col0 FROM tab0 cor0
----
120
39
71

query I rowsort
SELECT ALL - 74 - cor0.col1 FROM tab2, tab2 cor0
----
9 values hashing to 7c58263c42d5fe5fd64b0f2ebad42a17

query I rowsort
SELECT ( cor0.col1 ) + + col1 AS col1 FROM tab0 cor0
----
172
182
194

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * 21 - col2 col2 FROM tab1 AS cor0
----
153
177
492

query I rowsort
SELECT + 77 + col0 FROM tab1 AS cor0
----
141
157
80

query I rowsort
SELECT cor0.col0 + cor0.col2 * - col0 + + 59 FROM tab1 AS cor0
----
-100
-3525
-7541

query I rowsort
SELECT cor0.col2 * 8 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 8183d8703260333a722164772e992e55

query I rowsort
SELECT ALL - ( col0 ) * - col2 AS col0 FROM tab2
----
189
2028
3002

query I rowsort
SELECT col1 + + cor0.col0 * + 53 AS col2 FROM tab2 AS cor0
----
402
4193
4204

query I rowsort
SELECT ALL 14 * col0 + col2 * + col1 AS col2 FROM tab2 AS cor0
----
1752
2626
935

query I rowsort
SELECT DISTINCT - 10 * + cor0.col2 + + ( col1 ) * - cor0.col1 FROM tab2 AS cor0
----
-1231
-3741
-669

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7478
SELECT cor0.col2 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7478
SELECT cor0.col2 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 56 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to a228dfb9ede9780b082a5a3dfb2fca80

onlyif mysql # use DIV operator for integer division
query I rowsort label-7480
SELECT - + cor0.col2 DIV + 38 col0 FROM tab2 cor0
----
-1
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7480
SELECT - + cor0.col2 / + 38 col0 FROM tab2 cor0
----
-1
0
0

query I rowsort
SELECT ALL 83 * cor0.col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 47021682fe5b14eee98b09ebbfe1c404

query I rowsort
SELECT ALL col1 - + cor0.col2 * + col0 FROM tab1 AS cor0
----
-136
-3638
-7667

query I rowsort
SELECT DISTINCT cor0.col1 * + cor0.col0 + col0 FROM tab0 AS cor0
----
2088
3430
8188

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * 96 + + cor0.col1 col2 FROM tab0 AS cor0
----
8342
8827
9409

query I rowsort
SELECT ALL + + col1 - ( + col0 + - col2 * 48 ) AS col0 FROM tab1 AS cor0
----
2615
2682
4541

query I rowsort
SELECT DISTINCT - + cor0.col0 * + ( col2 ) FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT ALL + - col0 + 17 * - 82 FROM tab2 AS cor0
----
-1401
-1472
-1473

query I rowsort
SELECT - - col1 * col0 + col1 AS col1 FROM tab1 AS cor0
----
104
1053
650

query I rowsort
SELECT DISTINCT + cor0.col0 + ( - cor0.col2 + + col2 ) FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT + 41 * 75 AS col2 FROM tab2 AS cor0
----
3075
3075
3075

query I rowsort
SELECT ALL - - col2 * 27 FROM tab0 AS cor0
----
2214
27
891

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 1 + col1 * + col2 col1 FROM tab0 AS cor0
----
2839
7463
98

query I rowsort
SELECT + cor2.col0 AS col0 FROM tab1, tab2 AS cor0, tab1 cor1, tab0 AS cor2
----
81 values hashing to 2304fcc140e955eb2d1ee28ab1eea994

query I rowsort
SELECT DISTINCT col1 + 99 FROM tab2 AS cor0
----
116
130
158

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7495
SELECT DISTINCT - CAST( + col1 AS SIGNED ) AS col2 FROM tab0 cor0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-7495
SELECT DISTINCT - CAST ( + col1 AS INTEGER ) AS col2 FROM tab0 cor0
----
-86
-91
-97

query I rowsort
SELECT - col0 - - ( col1 * col2 ) AS col1 FROM tab1
----
1168
1401
506

query I rowsort
SELECT DISTINCT + - 68 + cor0.col2 FROM tab1 AS cor0
----
-11
-14
28

query I rowsort
SELECT col2 * - col0 + - col2 AS col1 FROM tab2 AS cor0
----
-2054
-216
-3040

query I rowsort
SELECT ALL 57 + - 23 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 4e2ca147a59e0d5661c28cf3e5431caa

query I rowsort
SELECT - 77 AS col0 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to c7e5f48ecd3843d54a76808ed1f43ff6

query I rowsort
SELECT - col1 + col0 * - col0 AS col2 FROM tab1 AS cor0
----
-35
-4106
-6413

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7502
SELECT - CAST( NULL AS SIGNED ) AS col1 FROM tab0, tab2 AS cor0, tab0 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-7502
SELECT - CAST ( NULL AS INTEGER ) AS col1 FROM tab0, tab2 AS cor0, tab0 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7503
SELECT - col0 * - col1 + - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7503
SELECT - col0 * - col1 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - cor0.col0 + + 57 * + col2 AS col0 FROM tab1 AS cor0
----
3075
3185
5392

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7505
SELECT + CAST( 48 AS SIGNED ) - col2 * col2 FROM tab0 cor0
----
-1041
-6676
47

skipif mysql # not compatible
query I rowsort label-7505
SELECT + CAST ( 48 AS INTEGER ) - col2 * col2 FROM tab0 cor0
----
-1041
-6676
47

query I rowsort
SELECT ALL + cor0.col0 * 90 * col1 + ( col1 ) FROM tab2 AS cor0
----
120887
19561
414239

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7507
SELECT DISTINCT - CAST( col0 AS SIGNED ) - + cor0.col1 AS col2 FROM tab2 cor0
----
-137
-38
-96

skipif mysql # not compatible
query I rowsort label-7507
SELECT DISTINCT - CAST ( col0 AS INTEGER ) - + cor0.col1 AS col2 FROM tab2 cor0
----
-137
-38
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * col2 col2 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT ALL + col0 * - col2 + - col0 AS col1 FROM tab0 cor0
----
-70
-7387
-816

query I rowsort
SELECT - - ( col1 ) + col2 FROM tab2 cor0
----
55
58
85

query I rowsort
SELECT DISTINCT + ( + col0 ) * col2 FROM tab0 AS cor0
----
35
7298
792

onlyif mysql # use DIV operator for integer division
query I rowsort label-7512
SELECT + 61 DIV 74 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7512
SELECT + 61 / 74 AS col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-7513
SELECT DISTINCT - + col2 DIV 14 FROM tab1 AS cor0
----
-3
-4
-6

skipif mysql # not compatible
query I rowsort label-7513
SELECT DISTINCT - + col2 / 14 FROM tab1 AS cor0
----
-3
-4
-6

query I rowsort
SELECT ALL + + 92 + col2 * col2 FROM tab2 AS cor0
----
1536
768
821

query I rowsort
SELECT ALL + cor0.col2 - + col1 AS col0 FROM tab0 AS cor0
----
-53
-9
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-7516
SELECT ALL col2 - - col2 DIV tab1.col0 AS col1 FROM tab1
----
57
72
97

skipif mysql # not compatible
query I rowsort label-7516
SELECT ALL col2 - - col2 / tab1.col0 AS col1 FROM tab1
----
57
72
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-7517
SELECT ALL - col2 + - col2 DIV - col1 FROM tab2 AS cor0
----
-26
-27
-36

skipif mysql # not compatible
query I rowsort label-7517
SELECT ALL - col2 + - col2 / - col1 FROM tab2 AS cor0
----
-26
-27
-36

query I rowsort
SELECT + col0 * - 98 - - col0 FROM tab1 AS cor0
----
-291
-6208
-7760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 - + 74 col2 FROM tab1 AS cor0
----
-48
-61
-64

onlyif mysql # use DIV operator for integer division
query I rowsort label-7520
SELECT ALL + ( 40 ) DIV + col0 + 82 FROM tab0 AS cor0
----
82
83
83

skipif mysql # not compatible
query I rowsort label-7520
SELECT ALL + ( 40 ) / + col0 + 82 FROM tab0 AS cor0
----
82
83
83

query I rowsort
SELECT col0 + - ( - col0 ) AS col0 FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT col0 * col1 + col1 * + col0 FROM tab0 AS cor0
----
16198
4128
6790

query I rowsort
SELECT col0 * 14 FROM tab2 AS cor0
----
1092
1106
98

query I rowsort
SELECT ALL - col2 * col2 - + cor0.col1 FROM tab0 AS cor0
----
-1175
-6815
-98

query I rowsort
SELECT ALL - col0 * col2 - col2 FROM tab2 AS cor0
----
-2054
-216
-3040

query I rowsort
SELECT DISTINCT + tab1.col1 + col0 AS col2 FROM tab1
----
29
74
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-7527
SELECT + col2 DIV ( - col0 ) - + col1 col0 FROM tab2
----
-17
-34
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7527
SELECT + col2 / ( - col0 ) - + col1 col0 FROM tab2
----
-17
-34
-59

query I rowsort
SELECT DISTINCT - col0 + col2 * - col0 AS col1 FROM tab0
----
-70
-7387
-816

query I rowsort
SELECT DISTINCT col1 - ( - col1 + col0 ) FROM tab0 AS cor0
----
148
159
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + + cor0.col0 col2 FROM tab0 AS cor0
----
171
36
57

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 + - col2 - col2 col0 FROM tab0 AS cor0
----
-2904
-7626
-99

query I rowsort
SELECT col2 + - col0 + - 70 FROM tab2
----
-111
-122
-50

query I rowsort
SELECT col2 * + 81 AS col0 FROM tab1 AS cor0
----
4374
4617
7776

query I rowsort
SELECT DISTINCT col1 * col2 + + 8 + - cor0.col2 AS col0 FROM tab2 AS cor0
----
1516
616
818

query I rowsort
SELECT - col0 + ( col1 ) * - col0 FROM tab1
----
-1120
-704
-81

onlyif mysql # use DIV operator for integer division
query I rowsort label-7537
SELECT - - col1 + + 9 * col2 DIV + col1 FROM tab1 AS cor0
----
44
61
79

skipif mysql # not compatible
query I rowsort label-7537
SELECT - - col1 + + 9 * col2 / + col1 FROM tab1 AS cor0
----
44
61
79

query I rowsort
SELECT ALL + 24 * col1 AS col1 FROM tab2 AS cor0
----
1416
408
744

onlyif mysql # use DIV operator for integer division
query I rowsort label-7539
SELECT col0 DIV + tab2.col1 AS col2 FROM tab2
----
0
1
4

skipif mysql # not compatible
query I rowsort label-7539
SELECT col0 / + tab2.col1 AS col2 FROM tab2
----
0
1
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col0 ) * col1 col2 FROM tab1
----
1040
640
78

query I rowsort
SELECT ALL 58 * col2 AS col1 FROM tab1
----
3132
3306
5568

query I rowsort
SELECT - ( + 92 ) * col1 FROM tab2 AS cor0
----
-1564
-2852
-5428

query I rowsort
SELECT ALL + + col2 + col0 * - col2 * + col2 FROM tab2 AS cor0
----
-114038
-5076
-52702

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + col1 * - col1 col2 FROM tab2
----
-205379
-29791
-4913

query I rowsort
SELECT ALL + 57 * col2 FROM tab2
----
1482
1539
2166

onlyif mysql # use DIV operator for integer division
query I rowsort label-7546
SELECT DISTINCT - + col1 DIV col1 col0 FROM tab0 AS cor0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7546
SELECT DISTINCT - + col1 / col1 col0 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT - - col0 + cor0.col2 * + col1 * - col2 + + col1 FROM tab1 cor0
----
-119715
-32416
-75787

query I rowsort
SELECT ALL + 61 * col2 * + col0 FROM tab0 cor0
----
2135
445178
48312

query I rowsort
SELECT - - 46 * col0 + col1 AS col1 FROM tab0 AS cor0
----
1190
1707
4185

query I rowsort
SELECT - + 35 * col2 AS col2 FROM tab1 AS cor0
----
-1890
-1995
-3360

query I rowsort
SELECT DISTINCT col2 * - col0 * + ( 43 ) FROM tab1
----
-156864
-330240
-6966

query I rowsort
SELECT 46 * - col2 FROM tab0 AS cor0
----
-1518
-3772
-46

query I rowsort
SELECT ALL - + 72 * - col1 FROM tab0 AS cor0
----
6192
6552
6984

query I rowsort
SELECT col1 * + 83 FROM tab1 AS cor0
----
1079
2158
830

query I rowsort
SELECT ALL col0 + ( + 20 ) AS col0 FROM tab2 AS cor0
----
27
98
99

query I rowsort
SELECT cor0.col1 * + col2 AS col2 FROM tab1 cor0
----
1248
1404
570

query I rowsort
SELECT - col1 * ( + 15 ) AS col2 FROM tab2 AS cor0
----
-255
-465
-885

query I rowsort
SELECT - 41 + 87 AS col1 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 2f97924b57b73102233df7c9ce8ad602

query I rowsort
SELECT ALL 31 * col0 FROM tab0
----
1085
2759
744

onlyif mysql # use DIV operator for integer division
query I rowsort label-7560
SELECT ALL - tab1.col2 DIV col2 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7560
SELECT ALL - tab1.col2 / col2 FROM tab1
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - col0 col0 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT - - 95 * - col2 FROM tab2 AS cor0
----
-2470
-2565
-3610

query I rowsort
SELECT DISTINCT - - 36 * cor0.col0 + 37 AS col1 FROM tab2 AS cor0
----
2845
2881
289

query I rowsort
SELECT DISTINCT + cor0.col2 * cor0.col0 + - cor0.col1 * - col2 AS col2 FROM tab0 cor0
----
132
14760
3630

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col2 + - col2 col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - col0 * - ( col2 ) * + col1 + + ( col1 ) FROM tab2 AS cor0
----
119711
51051
5890

query I rowsort
SELECT ALL 92 AS col1 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to c64cb7a81da51f4be0b6906a223e8817

query I rowsort
SELECT ALL - ( col2 + - col2 ) * 24 FROM tab0
----
0
0
0

query I rowsort
SELECT - 61 * - col1 AS col1 FROM tab0 cor0
----
5246
5551
5917

query I rowsort
SELECT col2 * + 56 FROM tab2 AS cor0
----
1456
1512
2128

query I rowsort
SELECT 1 * + cor0.col1 + col2 AS col0 FROM tab0 cor0
----
119
173
98

query I rowsort
SELECT DISTINCT + tab2.col2 * + 32 FROM tab2
----
1216
832
864

query I rowsort
SELECT tab0.col1 * ( + col2 ) FROM tab0
----
2838
7462
97

query I rowsort
SELECT tab1.col1 * + col2 + col0 * ( + col0 ) AS col2 FROM tab1
----
1413
4666
7648

onlyif mysql # use DIV operator for integer division
query I rowsort label-7575
SELECT ALL + 23 DIV + 73 + col1 AS col1 FROM tab2
----
17
31
59

skipif mysql # not compatible
query I rowsort label-7575
SELECT ALL + 23 / + 73 + col1 AS col1 FROM tab2
----
17
31
59

query I rowsort
SELECT col2 * + 70 FROM tab2 AS cor0
----
1820
1890
2660

query I rowsort
SELECT + ( - col1 ) * - col1 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT + ( 25 ) FROM tab1 AS cor0
----
25
25
25

query I rowsort
SELECT 80 * ( col0 ) + col2 * + col0 AS col1 FROM tab2 AS cor0
----
749
8268
9322

query I rowsort
SELECT - ( 88 ) + col1 FROM tab1 AS cor0
----
-62
-75
-78

query I rowsort
SELECT - col1 + 38 * col0 AS col0 FROM tab0
----
1233
3291
826

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7582
SELECT ALL - CAST( + col2 AS SIGNED ) AS col2 FROM tab2
----
-26
-27
-38

skipif mysql # not compatible
query I rowsort label-7582
SELECT ALL - CAST ( + col2 AS INTEGER ) AS col2 FROM tab2
----
-26
-27
-38

query I rowsort
SELECT - 12 AS col1 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 3983bffe2adf88cb2efc3be93ee620c0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 23 col1 FROM tab1
----
23
23
23

query I rowsort
SELECT - ( - 58 + - col0 ) FROM tab1
----
122
138
61

query I rowsort
SELECT DISTINCT - ( - col1 ) * col0 + 9 AS col0 FROM tab2
----
1352
226
4611

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 97 + + 53 * col2 + 12 * + col1 col1 FROM tab2
----
1900
2183
2315

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7588
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + 30 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7588
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + 30 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT 24 AS col0 FROM tab1, tab0 AS cor0
----
24

query I rowsort
SELECT ( 82 ) + + col2 AS col1 FROM tab1
----
136
139
178

onlyif mysql # use DIV operator for integer division
query I rowsort label-7591
SELECT ALL col0 DIV + col1 + - col2 FROM tab0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-7591
SELECT ALL col0 / + col1 + - col2 FROM tab0
----
-1
-33
-82

query I rowsort
SELECT DISTINCT 49 + + col1 FROM tab0
----
135
140
146

query I rowsort
SELECT DISTINCT col2 + col2 + 87 FROM tab1 AS cor0
----
195
201
279

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 85 col0 FROM tab1 AS cor0
----
-85
-85
-85

query I rowsort
SELECT DISTINCT - 22 + - col2 AS col1 FROM tab2 AS cor0
----
-48
-49
-60

query I rowsort
SELECT + 28 * + cor0.col2 FROM tab1 cor0
----
1512
1596
2688

query I rowsort
SELECT DISTINCT ( - col0 ) * - cor0.col2 FROM tab0 cor0
----
35
7298
792

query I rowsort
SELECT DISTINCT + 30 AS col2 FROM tab0 AS cor0
----
30

query I rowsort
SELECT DISTINCT + cor0.col2 + + col2 * col1 AS col1 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT ALL col2 * col0 + + col0 + - ( col2 * col1 ) AS col0 FROM tab1 AS cor0
----
-1239
3142
6512

query I rowsort
SELECT DISTINCT - - col1 - - col1 FROM tab1 AS cor0
----
20
26
52

query I rowsort
SELECT DISTINCT + - col1 * - col1 AS col0 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT ALL - 77 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 3a24155cb91ceff1e67bb51c07b72107

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + ( 42 ) * col1 - + col2 col2 FROM tab1
----
1041
427
530

query I rowsort
SELECT - col0 * 44 * col1 - col1 AS col2 FROM tab1 cor0
----
-28170
-3458
-45773

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT col1 * CAST ( col2 AS REAL ) FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT - col0 + col1 * - 15 FROM tab0 AS cor0
----
-1314
-1454
-1490

query I rowsort
SELECT ALL - + col1 * - 58 + - col0 * col1 FROM tab0 AS cor0
----
-2821
2231
2924

onlyif mysql # use DIV operator for integer division
query I rowsort label-7609
SELECT - col0 * + 40 + ( + col1 ) DIV 17 FROM tab2 AS cor0
----
-279
-3117
-3159

skipif mysql # not compatible
query I rowsort label-7609
SELECT - col0 * + 40 + ( + col1 ) / 17 FROM tab2 AS cor0
----
-279
-3117
-3159

query I rowsort
SELECT ALL + col2 * col1 * - col2 + + col0 + col1 AS col2 FROM tab2 AS cor0
----
-22561
-24452
-39747

query I rowsort
SELECT DISTINCT col2 + col2 * - col0 FROM tab2 AS cor0
----
-162
-2002
-2964

query I rowsort
SELECT + col2 * - 13 + col2 - + col1 AS col2 FROM tab0 AS cor0
----
-1075
-109
-482

query I rowsort
SELECT col2 + - 6 - - cor0.col0 FROM tab1 cor0
----
115
170
51

query I rowsort
SELECT ALL - col2 * - 95 * cor0.col2 AS col2 FROM tab0 AS cor0
----
103455
638780
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 * - 16 col0 FROM tab0 AS cor0
----
1376
1456
1552

onlyif mysql # use DIV operator for integer division
query I rowsort label-7616
SELECT ( ( col2 ) ) DIV - col1 FROM tab2 AS cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-7616
SELECT ( ( col2 ) ) / - col1 FROM tab2 AS cor0
----
-2
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-7617
SELECT col0 DIV 56 col1 FROM tab2
----
0
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7617
SELECT col0 / 56 col1 FROM tab2
----
0
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-7618
SELECT DISTINCT col0 + 75 - col2 DIV col0 AS col1 FROM tab2
----
153
154
79

skipif mysql # not compatible
query I rowsort label-7618
SELECT DISTINCT col0 + 75 - col2 / col0 AS col1 FROM tab2
----
153
154
79

query I rowsort
SELECT DISTINCT tab0.col0 * + 39 FROM tab0
----
1365
3471
936

query I rowsort
SELECT - col2 * ( + 72 ) FROM tab0
----
-2376
-5904
-72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * ( - col1 ) col1 FROM tab0
----
2838
7462
97

query I rowsort
SELECT DISTINCT col2 * - 1 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT DISTINCT 75 FROM tab2, tab2 AS cor0
----
75

onlyif mysql # use DIV operator for integer division
query I rowsort label-7624
SELECT ALL - col1 * - col2 + - ( - col2 ) DIV 15 FROM tab1 AS cor0
----
1254
1407
573

skipif mysql # not compatible
query I rowsort label-7624
SELECT ALL - col1 * - col2 + - ( - col2 ) / 15 FROM tab1 AS cor0
----
1254
1407
573

query I rowsort
SELECT ALL cor0.col2 + - col1 + + col2 FROM tab0 cor0
----
-20
-95
73

onlyif mysql # use DIV operator for integer division
query I rowsort label-7626
SELECT ALL col0 DIV - cor0.col2 + col2 FROM tab1 AS cor0
----
54
56
96

skipif mysql # not compatible
query I rowsort label-7626
SELECT ALL col0 / - cor0.col2 + col2 FROM tab1 AS cor0
----
54
56
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-7627
SELECT + col0 * col1 DIV - 99 FROM tab1 AS cor0
----
-10
-6
0

skipif mysql # not compatible
query I rowsort label-7627
SELECT + col0 * col1 / - 99 FROM tab1 AS cor0
----
-10
-6
0

query I rowsort
SELECT - + col0 * 79 FROM tab2 AS cor0
----
-553
-6162
-6241

query I rowsort
SELECT DISTINCT - cor0.col1 * cor0.col2 AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT ALL - - 49 AS col0 FROM tab2 cor0
----
49
49
49

query I rowsort
SELECT DISTINCT + - 3 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT + ( + col0 ) + col0 - col0 AS col1 FROM tab1 cor0
----
3
64
80

query I rowsort
SELECT ALL ( tab2.col2 ) AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

query I rowsort
SELECT + - ( cor0.col1 ) AS col0 FROM tab0 cor0 CROSS JOIN tab2, tab1 AS cor1
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84

query I rowsort
SELECT + cor0.col0 + 1 FROM tab1, tab1 AS cor0
----
9 values hashing to 5e068ef952ed56550cc6520d5d49d8e7

query I rowsort
SELECT DISTINCT - col2 * 14 - - col2 AS col1 FROM tab2
----
-338
-351
-494

query I rowsort
SELECT ALL + 46 + - col1 AS col0 FROM tab0 AS cor0
----
-40
-45
-51

query I rowsort
SELECT ALL + 49 + - col0 AS col2 FROM tab2 AS cor0
----
-29
-30
42

query I rowsort
SELECT 66 * - cor0.col0 FROM tab2 cor0
----
-462
-5148
-5214

query I rowsort
SELECT DISTINCT cor0.col1 + - col0 AS col1 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT col1 * - col0 * - col0 + - col2 AS col1 FROM tab2
----
106059
1492
358930

query I rowsort
SELECT DISTINCT - col1 + + col2 * col2 AS col1 FROM tab1
----
2890
3239
9203

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab0.col1 + + col1 col0 FROM tab0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-7644
SELECT DISTINCT + 53 + + col2 DIV 99 AS col0 FROM tab1 cor0
----
53

skipif mysql # not compatible
query I rowsort label-7644
SELECT DISTINCT + 53 + + col2 / 99 AS col0 FROM tab1 cor0
----
53

query I rowsort
SELECT DISTINCT - col0 * - col0 + col1 + - col2 FROM tab2 AS cor0
----
53
6117
6220

query I rowsort
SELECT + col2 * - col1 + 26 FROM tab0 AS cor0
----
-2812
-71
-7436

query I rowsort
SELECT ALL - col1 * col0 + + ( 23 ) AS col2 FROM tab0 AS cor0
----
-2041
-3372
-8076

query I rowsort
SELECT 88 + tab2.col0 AS col1 FROM tab2
----
166
167
95

query I rowsort
SELECT ALL 42 AS col1 FROM tab1, tab2, tab1 cor0
----
27 values hashing to 325aada2239b6fe1fe2d843515ae8c5e

query I rowsort
SELECT DISTINCT - col1 * ( 71 ) + + col2 FROM tab0 AS cor0
----
-6073
-6379
-6886

query I rowsort
SELECT col1 * ( cor0.col0 ) AS col0 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT 72 AS col1 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
72

query I rowsort
SELECT DISTINCT cor2.col1 FROM tab1, tab0 AS cor0, tab0 cor1, tab0 AS cor2
----
86
91
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-7654
SELECT DISTINCT cor0.col2 DIV - 56 AS col2 FROM tab2, tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-7654
SELECT DISTINCT cor0.col2 / - 56 AS col2 FROM tab2, tab1 AS cor0
----
-1
0

query I rowsort
SELECT tab1.col1 AS col0 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7656
SELECT DISTINCT CAST( NULL AS SIGNED ) + 81 FROM tab1, tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7656
SELECT DISTINCT CAST ( NULL AS INTEGER ) + 81 FROM tab1, tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + + cor0.col0 * - 78 + - 47 AS col0 FROM tab1 AS cor0
----
-281
-5039
-6287

query I rowsort
SELECT + col1 * + 21 FROM tab0 AS cor0
----
1806
1911
2037

query I rowsort
SELECT DISTINCT + + col0 + - ( col2 ) * - col0 + + col2 FROM tab2 AS cor0
----
2132
223
3119

query I rowsort
SELECT 79 * - col0 * col2 AS col0 FROM tab0
----
-2765
-576542
-62568

query I rowsort
SELECT ( 5 ) + + col1 FROM tab1
----
15
18
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + col0 col1 FROM tab0
----
-9
34
7

query I rowsort
SELECT + - 87 + - col2 + ( col2 + col1 ) FROM tab1 AS cor0
----
-61
-74
-77

onlyif mysql # use DIV operator for integer division
query I rowsort label-7664
SELECT - col2 DIV - ( - col2 ) + + 2 col0 FROM tab1
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7664
SELECT - col2 / - ( - col2 ) + + 2 col0 FROM tab1
----
1
1
1

query I rowsort
SELECT ( col2 ) + + col0 + col2 FROM tab0
----
253
37
90

query I rowsort
SELECT ALL + 34 * - col2 FROM tab0
----
-1122
-2788
-34

query I rowsort
SELECT + + 35 * col0 * ( + col1 + - col1 ) FROM tab2 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7668
SELECT - 78 + col0 * + CAST( 79 AS SIGNED ) FROM tab0 AS cor0
----
1818
2687
6953

skipif mysql # not compatible
query I rowsort label-7668
SELECT - 78 + col0 * + CAST ( 79 AS INTEGER ) FROM tab0 AS cor0
----
1818
2687
6953

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col1 col2 FROM tab1 cor0
----
-1248
-1404
-570

onlyif mysql # use DIV operator for integer division
query I rowsort label-7670
SELECT + + 89 DIV + col0 FROM tab0 AS cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-7670
SELECT + + 89 / + col0 FROM tab0 AS cor0
----
1
2
3

query I rowsort
SELECT 35 + - cor0.col0 * + ( - col1 ) AS col0 FROM tab1 AS cor0
----
1075
113
675

onlyif mysql # use DIV operator for integer division
query I rowsort label-7672
SELECT + 47 + col2 DIV ( cor0.col0 ) AS col2 FROM tab0 AS cor0
----
47
47
48

skipif mysql # not compatible
query I rowsort label-7672
SELECT + 47 + col2 / ( cor0.col0 ) AS col2 FROM tab0 AS cor0
----
47
47
48

query I rowsort
SELECT DISTINCT + col1 - col0 FROM tab1 cor0
----
-54
-67
23

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7674
SELECT + - ( - col2 ) + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7674
SELECT + - ( - col2 ) + 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-7675
SELECT col0 + col1 DIV + col2 AS col2 FROM tab1
----
3
64
80

skipif mysql # not compatible
query I rowsort label-7675
SELECT col0 + col1 / + col2 AS col2 FROM tab1
----
3
64
80

query I rowsort
SELECT - col2 - - col1 AS col2 FROM tab0
----
53
9
96

query I rowsort
SELECT DISTINCT + col1 + - col2 * col2 * col2 FROM tab2
----
-17517
-19652
-54855

query I rowsort
SELECT - tab0.col1 - col0 * + col2 AS col0 FROM tab0
----
-132
-7389
-878

query I rowsort
SELECT col0 + + col0 AS col2 FROM tab2 cor0
----
14
156
158

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * - col1 col2 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT + cor0.col1 * + col0 * col1 AS col1 FROM tab0 AS cor0
----
177504
329315
737009

query I rowsort
SELECT ALL col1 * + col2 * col1 + + col1 FROM tab2 AS cor0
----
10999
25978
90565

query I rowsort
SELECT - cor0.col0 FROM tab2 AS cor0 WHERE col0 * - col0 <> ( col0 ) OR NOT col0 * + col2 NOT IN ( - col1 )
----
-7
-78
-79

query IIIIII rowsort
SELECT * FROM tab2, tab1 cor0 WHERE NOT NULL <= ( NULL )
----

query I rowsort
SELECT - col1 * + col1 * col2 + - col0 AS col2 FROM tab2 AS cor0
----
-11061
-25954
-90584

query I rowsort
SELECT - - 25 + cor0.col2 AS col2 FROM tab0 AS cor0
----
107
26
58

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7687
SELECT CAST( NULL AS SIGNED ) * 74 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7687
SELECT CAST ( NULL AS INTEGER ) * 74 AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + ( col1 * col2 ) AS col2 FROM tab1
----
1248
1404
570

query I rowsort
SELECT DISTINCT + 80 * - 82 FROM tab1
----
-6560

query I rowsort
SELECT ( - tab1.col1 * col0 ) FROM tab1
----
-1040
-640
-78

onlyif mysql # use DIV operator for integer division
query I rowsort label-7691
SELECT DISTINCT col1 DIV 98 + - col0 FROM tab1
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-7691
SELECT DISTINCT col1 / 98 + - col0 FROM tab1
----
-3
-64
-80

query I rowsort
SELECT 70 * + col2 AS col1 FROM tab0
----
2310
5740
70

query I rowsort
SELECT DISTINCT - col0 + cor0.col0 + cor0.col1 FROM tab0 cor0
----
86
91
97

query I rowsort
SELECT col1 * - col1 + col1 FROM tab1 AS cor0
----
-156
-650
-90

onlyif mysql # use DIV operator for integer division
query I rowsort label-7695
SELECT - + col0 DIV cor0.col1 + col0 AS col0 FROM tab2 AS cor0
----
7
75
77

skipif mysql # not compatible
query I rowsort label-7695
SELECT - + col0 / cor0.col1 + col0 AS col0 FROM tab2 AS cor0
----
7
75
77

onlyif mysql # use DIV operator for integer division
query I rowsort label-7696
SELECT ALL col2 * tab2.col0 + - col1 * - col1 DIV + col1 AS col2 FROM tab2
----
2087
220
3019

skipif mysql # not compatible
query I rowsort label-7696
SELECT ALL col2 * tab2.col0 + - col1 * - col1 / + col1 AS col2 FROM tab2
----
2087
220
3019

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL < - col1 * col2
----

query I rowsort
SELECT DISTINCT col0 + col2 * col1 FROM tab1
----
1328
1407
634

query I rowsort
SELECT col2 FROM tab0 WHERE NOT NULL >= col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + tab1.col0 - col1 * + col0 col2 FROM tab1
----
-101
-586
-973

onlyif mysql # use DIV operator for integer division
query I rowsort label-7701
SELECT ALL col0 * tab2.col1 DIV tab2.col0 AS col0 FROM tab2
----
17
31
59

skipif mysql # not compatible
query I rowsort label-7701
SELECT ALL col0 * tab2.col1 / tab2.col0 AS col0 FROM tab2
----
17
31
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-7702
SELECT col2 + col2 DIV + col1 - + col1 AS col0 FROM tab0
----
-53
-9
-96

skipif mysql # not compatible
query I rowsort label-7702
SELECT col2 + col2 / + col1 - + col1 AS col0 FROM tab0
----
-53
-9
-96

query I rowsort
SELECT DISTINCT + col1 + col0 * tab1.col2 - - col2 * - col1 FROM tab1
----
-1216
3088
6445

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + col2 * col0 + + col2 col0 FROM tab0
----
26169
36
598518

query III rowsort
SELECT * FROM tab1 WHERE + col1 - + col2 IN ( col2 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 * + col1 - - col1 IN ( col0 * + col1 * - col0 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

onlyif mysql # use DIV operator for integer division
query I rowsort label-7707
SELECT ALL - col0 + - col0 DIV + col0 FROM tab1
----
-4
-65
-81

skipif mysql # not compatible
query I rowsort label-7707
SELECT ALL - col0 + - col0 / + col0 FROM tab1
----
-4
-65
-81

query I rowsort
SELECT ALL col1 * - col1 + col2 FROM tab2
----
-251
-3455
-934

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 col1 FROM tab0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND col2 * - col0
----

query I rowsort
SELECT ALL + col0 FROM tab2 WHERE NOT NULL IN ( + col1 )
----

query I rowsort
SELECT DISTINCT - col2 + - col0 * + col2 AS col2 FROM tab1
----
-216
-3705
-7776

query I rowsort
SELECT col1 * + col2 * - col1 FROM tab1
----
-16224
-36504
-5700

query I rowsort
SELECT - col0 * col1 + + col0 AS col1 FROM tab0
----
-2040
-3360
-8010

query I rowsort
SELECT DISTINCT col1 - + col0 * - tab2.col1 AS col1 FROM tab2
----
1360
248
4661

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) NOT IN ( - col1 + col2 - - col2 )
----

query I rowsort
SELECT col2 - col1 * - tab1.col1 AS col0 FROM tab1 WHERE ( + tab1.col2 * - col1 + - tab1.col1 ) NOT BETWEEN NULL AND - col0
----

query I rowsort
SELECT ALL tab0.col2 * + col2 * col2 FROM tab0 WHERE ( col0 ) >= - col0 + - col2
----
1
35937
551368

query I rowsort
SELECT DISTINCT + tab2.col2 * + col1 * + col1 AS col0 FROM tab2
----
10982
25947
90506

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 + - col2 + + col2 < NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-7720
SELECT ALL + col2 DIV + col0 AS col2 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7720
SELECT ALL + col2 / + col0 AS col2 FROM tab0
----
0
0
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-7721
SELECT + col0 DIV - col2 AS col0 FROM tab1 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-7721
SELECT + col0 / - col2 AS col0 FROM tab1 cor0
----
-1
0
0

query I rowsort
SELECT cor0.col2 AS col2 FROM tab2 AS cor0 WHERE ( - col1 * col0 ) NOT IN ( - cor0.col0 )
----
26
27
38

query I rowsort
SELECT DISTINCT - tab1.col2 * - col1 AS col1 FROM tab1
----
1248
1404
570

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( - col0 * + col1 ) IN ( col1 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

query I rowsort
SELECT col1 + - cor0.col0 + + col0 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT 7 * + col2 - - tab0.col0 FROM tab0
----
255
42
663

query I rowsort
SELECT + 38 FROM tab0, tab2 cor0
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7

query I rowsort
SELECT - + ( - col1 ) * - 96 AS col1 FROM tab1 AS cor0
----
-1248
-2496
-960

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 38 col1 FROM tab1
----
38
38
38

query I rowsort
SELECT - 14 + - tab0.col0 AS col1 FROM tab0
----
-103
-38
-49

query I rowsort
SELECT ALL - 93 * 69 FROM tab0
----
-6417
-6417
-6417

query I rowsort
SELECT ALL col0 + + col0 * col0 * ( + col2 ) AS col2 FROM tab2 AS cor0
----
1330
158262
237237

query I rowsort
SELECT DISTINCT + col1 + - col1 + - ( col0 ) FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT ALL + 28 * + col0 FROM tab0 AS cor0
----
2492
672
980

query I rowsort
SELECT - - ( - col1 ) * - col1 * cor0.col1 FROM tab2 AS cor0
----
205379
29791
4913

query I rowsort
SELECT ALL col0 + - col1 + - col1 * - col1 FROM tab0 AS cor0
----
7334
8279
9347

query I rowsort
SELECT DISTINCT - ( - col0 ) * 98 FROM tab0 AS cor0
----
2352
3430
8722

query I rowsort
SELECT ALL col0 * cor0.col2 AS col2 FROM tab0 cor0
----
35
7298
792

query I rowsort
SELECT ALL + - 96 * + col2 + 47 FROM tab2 AS cor0
----
-2449
-2545
-3601

query I rowsort
SELECT + ( - col0 ) + cor0.col1 FROM tab0 AS cor0
----
2
62
62

query I rowsort
SELECT DISTINCT 75 + cor0.col2 FROM tab0 AS cor0
----
108
157
76

onlyif mysql # use DIV operator for integer division
query I rowsort label-7742
SELECT DISTINCT - col1 DIV tab2.col0 + - ( - col2 ) * + ( col2 ) AS col2 FROM tab2
----
1444
676
725

skipif mysql # not compatible
query I rowsort label-7742
SELECT DISTINCT - col1 / tab2.col0 + - ( - col2 ) * + ( col2 ) AS col2 FROM tab2
----
1444
676
725

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab1 AS cor2, tab1 AS cor3
----
3645 values hashing to bce5cbf48f4a41569415c085ae91ae7c

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7744
SELECT CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-7744
SELECT CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + cor0.col2 * col1 col1 FROM tab1 AS cor0
----
1328
1407
634

skipif mysql # not compatible
query I rowsort
SELECT - col0 * CAST ( + col2 AS REAL ) + col1 AS col1 FROM tab1 AS cor0
----
-136
-3638
-7667

onlyif mysql # use DIV operator for integer division
query I rowsort label-7747
SELECT ALL - col0 + col1 DIV - col0 FROM tab2 cor0
----
-11
-78
-79

skipif mysql # not compatible
query I rowsort label-7747
SELECT ALL - col0 + col1 / - col0 FROM tab2 cor0
----
-11
-78
-79

query I rowsort
SELECT DISTINCT cor0.col1 * + 93 FROM tab1 AS cor0
----
1209
2418
930

query I rowsort
SELECT + col2 - + 68 AS col2 FROM tab1 AS cor0
----
-11
-14
28

onlyif mysql # use DIV operator for integer division
query I rowsort label-7750
SELECT ALL + 28 DIV - col0 col2 FROM tab2 AS cor0
----
-4
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7750
SELECT ALL + 28 / - col0 col2 FROM tab2 AS cor0
----
-4
0
0

query I rowsort
SELECT + cor0.col1 + + 61 FROM tab1 AS cor0
----
71
74
87

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7752
SELECT ALL + CAST( 52 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
52
52
52

skipif mysql # not compatible
query I rowsort label-7752
SELECT ALL + CAST ( 52 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
52
52
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-7753
SELECT ALL - col0 * ( col2 ) * CAST( + col2 AS SIGNED ) + col0 DIV ( + col1 ) FROM tab1 AS cor0
----
-207930
-737274
-8748

skipif mysql # not compatible
query I rowsort label-7753
SELECT ALL - col0 * ( col2 ) * CAST ( + col2 AS INTEGER ) + col0 / ( + col1 ) FROM tab1 AS cor0
----
-207930
-737274
-8748

query I rowsort
SELECT DISTINCT - 25 * col0 AS col2 FROM tab1 AS cor0
----
-1600
-2000
-75

query I rowsort
SELECT - col1 * + 25 + col2 * col1 AS col1 FROM tab2 AS cor0
----
221
59
62

query I rowsort
SELECT ALL - col1 + + ( col1 ) + col0 * + col0 AS col1 FROM tab2
----
49
6084
6241

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7757
SELECT ALL + CAST( 74 AS SIGNED ) + + col0 AS col0 FROM tab2 AS cor0
----
152
153
81

skipif mysql # not compatible
query I rowsort label-7757
SELECT ALL + CAST ( 74 AS INTEGER ) + + col0 AS col0 FROM tab2 AS cor0
----
152
153
81

query I rowsort
SELECT - + 24 * col0 + + col0 FROM tab2 AS cor0
----
-161
-1794
-1817

query I rowsort
SELECT ( col1 ) + col2 AS col0 FROM tab1 cor0
----
109
67
80

query I rowsort
SELECT - + 18 * - col0 + cor0.col2 * 81 AS col2 FROM tab1 AS cor0
----
4428
5769
9216

query I rowsort
SELECT ALL - col2 * + ( + col1 ) FROM tab2 AS cor0
----
-1534
-646
-837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 + col1 col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + 93 * col0 AS col2 FROM tab1 cor0
----
279
5952
7440

query I rowsort
SELECT - col2 + col1 + col1 * col1 FROM tab1 AS cor0
----
53
648
86

query I rowsort
SELECT - ( - 1 ) AS col1 FROM tab0, tab1 AS cor0 CROSS JOIN tab2
----
27 values hashing to da8a72a7967c0c73d91239275230aed9

query I rowsort
SELECT + col0 * 97 + - col2 FROM tab1 AS cor0
----
237
6151
7664

query I rowsort
SELECT - cor0.col1 * col0 * col1 FROM tab0 AS cor0
----
-177504
-329315
-737009

query I rowsort
SELECT + col0 * - 32 + + col2 FROM tab0 AS cor0
----
-1119
-2766
-735

onlyif mysql # use DIV operator for integer division
query I rowsort label-7769
SELECT cor0.col0 DIV + col2 col1 FROM tab1 AS cor0
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7769
SELECT cor0.col0 / + col2 col1 FROM tab1 AS cor0
----
0
0
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-7770
SELECT DISTINCT + ( col0 + col0 ) DIV - col1 col1 FROM tab0
----
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7770
SELECT DISTINCT + ( col0 + col0 ) / - col1 col1 FROM tab0
----
-1
0

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab0 AS cor2
----
3645 values hashing to e6082e644debd74dcf1042b918d79199

onlyif mysql # use DIV operator for integer division
query I rowsort label-7772
SELECT DISTINCT col2 DIV 5 FROM tab0 AS cor0
----
0
16
6

skipif mysql # not compatible
query I rowsort label-7772
SELECT DISTINCT col2 / 5 FROM tab0 AS cor0
----
0
16
6

query I rowsort
SELECT - cor0.col0 * + 66 + + col0 * col1 FROM tab0 AS cor0
----
1085
2225
480

query I rowsort
SELECT DISTINCT 93 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
93

query I rowsort
SELECT DISTINCT col2 + - 42 AS col0 FROM tab0
----
-41
-9
40

query I rowsort
SELECT + tab2.col2 * - 37 FROM tab2
----
-1406
-962
-999

onlyif mysql # use DIV operator for integer division
query I rowsort label-7777
SELECT col0 DIV col1 + col2 * - cor0.col2 FROM tab0 cor0
----
-1
-1089
-6724

skipif mysql # not compatible
query I rowsort label-7777
SELECT col0 / col1 + col2 * - cor0.col2 FROM tab0 cor0
----
-1
-1089
-6724

query I rowsort
SELECT col2 * + 33 FROM tab0
----
1089
2706
33

onlyif mysql # use DIV operator for integer division
query I rowsort label-7779
SELECT ALL col1 DIV + 9 + - col1 * - col1 FROM tab0 AS cor0
----
7405
8291
9419

skipif mysql # not compatible
query I rowsort label-7779
SELECT ALL col1 / + 9 + - col1 * - col1 FROM tab0 AS cor0
----
7405
8291
9419

query I rowsort
SELECT - col2 * tab2.col1 * col1 AS col2 FROM tab2
----
-10982
-25947
-90506

query I rowsort
SELECT 3 * + col1 AS col1 FROM tab0
----
258
273
291

query I rowsort
SELECT - 49 * - col2 AS col2 FROM tab1 AS cor0
----
2646
2793
4704

query I rowsort
SELECT col2 + tab2.col2 + + col2 AS col0 FROM tab2
----
114
78
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-7784
SELECT DISTINCT col0 DIV CAST( + col0 * + col1 AS SIGNED ) + ( - 43 ) * + col2 AS col0 FROM tab2
----
-1118
-1161
-1634

skipif mysql # not compatible
query I rowsort label-7784
SELECT DISTINCT col0 / CAST ( + col0 * + col1 AS INTEGER ) + ( - 43 ) * + col2 AS col0 FROM tab2
----
-1118
-1161
-1634

query I rowsort
SELECT col2 + ( col1 ) * col1 AS col1 FROM tab0
----
7429
8363
9410

query I rowsort
SELECT ALL - ( cor0.col1 ) FROM tab0, tab0 cor0, tab2 AS cor1
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84

query I rowsort
SELECT ALL - col2 * + col0 + + col1 * col0 FROM tab1 AS cor0
----
-3008
-6640
-84

query I rowsort
SELECT - col2 * - cor0.col1 AS col2 FROM tab0 cor0
----
2838
7462
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-7789
SELECT + 36 DIV 65 + + col0 FROM tab2
----
7
78
79

skipif mysql # not compatible
query I rowsort label-7789
SELECT + 36 / 65 + + col0 FROM tab2
----
7
78
79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7790
SELECT - CAST( - col0 AS SIGNED ) * cor0.col0 FROM tab1 AS cor0
----
4096
6400
9

skipif mysql # not compatible
query I rowsort label-7790
SELECT - CAST ( - col0 AS INTEGER ) * cor0.col0 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT ALL 76 + col2 AS col0 FROM tab2 cor0
----
102
103
114

query I rowsort
SELECT cor0.col1 + cor0.col0 * + col1 AS col1 FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT + - col2 * + col1 - + col0 FROM tab0 AS cor0
----
-132
-2862
-7551

query I rowsort
SELECT + cor0.col2 + - col2 * + 70 + col0 FROM tab2 AS cor0
----
-1716
-1856
-2543

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 39 * + col2 + ( + cor0.col2 ) + col0 col1 FROM tab1 AS cor0
----
2163
2344
3920

onlyif mysql # use DIV operator for integer division
query I rowsort label-7796
SELECT - col2 + + col1 * - CAST( + col0 AS SIGNED ) - col2 DIV col2 FROM tab1 AS cor0
----
-1137
-133
-698

skipif mysql # not compatible
query I rowsort label-7796
SELECT - col2 + + col1 * - CAST ( + col0 AS INTEGER ) - col2 / col2 FROM tab1 AS cor0
----
-1137
-133
-698

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 7 col1 FROM tab1, tab2 cor0
----
9 values hashing to ba940cd66e21e94e95aada5f28e1faf5

query I rowsort
SELECT ALL 74 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

query I rowsort
SELECT - 57 * tab2.col0 * col1 FROM tab2
----
-12369
-262314
-76551

query I rowsort
SELECT DISTINCT col2 * + col0 * - col0 FROM tab1
----
-233472
-486
-614400

query I rowsort
SELECT DISTINCT + ( - col0 ) * col2 - - 91 AS col1 FROM tab2 AS cor0
----
-1937
-2911
-98

query I rowsort
SELECT + cor0.col1 * - col0 - - 71 * 20 * - col1 FROM tab2 AS cor0
----
-25483
-44237
-88382

query I rowsort
SELECT - ( - 70 ) * + col1 FROM tab2
----
1190
2170
4130

query I rowsort
SELECT DISTINCT - col1 * cor0.col0 + + cor0.col2 * cor0.col0 + col0 FROM tab1 AS cor0
----
3072
6720
87

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7805
SELECT DISTINCT - - col1 - - col0 * + CAST( + 76 + - col0 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-1066
1334
1532

skipif mysql # not compatible
query I rowsort label-7805
SELECT DISTINCT - - col1 - - col0 * + CAST ( + 76 + - col0 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-1066
1334
1532

query I rowsort
SELECT col1 - col1 * col1 FROM tab1 AS cor0
----
-156
-650
-90

query I rowsort
SELECT ( 79 ) FROM tab1, tab1 AS cor0, tab2 cor1
----
27 values hashing to 4857f2e1b1dbd184de4827f145dd02a1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 20 * col0 col0 FROM tab1
----
-1280
-1600
-60

query I rowsort
SELECT + col0 * col1 * col0 - - cor0.col1 FROM tab2 AS cor0
----
106114
1550
359015

query I rowsort
SELECT DISTINCT + col2 + col0 * - col0 AS col0 FROM tab2 AS cor0
----
-22
-6058
-6203

query I rowsort
SELECT DISTINCT + cor0.col0 FROM tab2, tab2 AS cor0, tab0 AS cor1, tab1, tab0 cor2
----
7
78
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-7812
SELECT + - 28 * col0 DIV - col2 FROM tab0 AS cor0
----
20
30
980

skipif mysql # not compatible
query I rowsort label-7812
SELECT + - 28 * col0 / - col2 FROM tab0 AS cor0
----
20
30
980

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7813
SELECT ALL + ( + col2 ) + CAST( + col2 AS SIGNED ) FROM tab1 AS cor0
----
108
114
192

skipif mysql # not compatible
query I rowsort label-7813
SELECT ALL + ( + col2 ) + CAST ( + col2 AS INTEGER ) FROM tab1 AS cor0
----
108
114
192

query I rowsort
SELECT DISTINCT - col2 * col1 + col1 AS col2 FROM tab1 cor0
----
-1235
-1378
-560

query I rowsort
SELECT DISTINCT + col0 + ( cor0.col0 ) FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT col1 + 25 * col0 * + cor0.col0 FROM tab2 AS cor0
----
1256
152159
156042

onlyif mysql # use DIV operator for integer division
query I rowsort label-7817
SELECT + cor0.col0 * 82 DIV + 23 FROM tab1 cor0
----
10
228
285

skipif mysql # not compatible
query I rowsort label-7817
SELECT + cor0.col0 * 82 / + 23 FROM tab1 cor0
----
10
228
285

onlyif mysql # use DIV operator for integer division
query I rowsort label-7818
SELECT DISTINCT - col0 + - col0 DIV - col0 FROM tab1 AS cor0
----
-2
-63
-79

skipif mysql # not compatible
query I rowsort label-7818
SELECT DISTINCT - col0 + - col0 / - col0 FROM tab1 AS cor0
----
-2
-63
-79

query I rowsort
SELECT ALL + + col2 + 35 FROM tab1 AS cor0
----
131
89
92

query I rowsort
SELECT - col1 * + col1 + + 39 * - col0 - + cor0.col1 FROM tab1 AS cor0
----
-2606
-3302
-819

query I rowsort
SELECT ALL - col2 + col0 + + col0 AS col1 FROM tab1
----
-48
64
71

query I rowsort
SELECT ALL + 55 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 832128adb1ddc65c3105e29cc2c8b3a3

onlyif mysql # use DIV operator for integer division
query I rowsort label-7823
SELECT - ( tab0.col0 ) DIV 87 AS col0 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-7823
SELECT - ( tab0.col0 ) / 87 AS col0 FROM tab0
----
-1
0
0

query I rowsort
SELECT DISTINCT tab2.col1 + col1 + 14 FROM tab2
----
132
48
76

query I rowsort
SELECT cor0.col1 + cor0.col0 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to c3106673b5165f666b99e75c964d6287

query I rowsort
SELECT DISTINCT - + col0 * - col0 * + col0 - 54 FROM tab2 cor0
----
289
474498
492985

onlyif mysql # use DIV operator for integer division
query I rowsort label-7827
SELECT DISTINCT - col2 DIV col2 + - col1 AS col0 FROM tab1 AS cor0
----
-11
-14
-27

skipif mysql # not compatible
query I rowsort label-7827
SELECT DISTINCT - col2 / col2 + - col1 AS col0 FROM tab1 AS cor0
----
-11
-14
-27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 69 * - ( col2 ) col0 FROM tab0 AS cor0
----
-2277
-5658
-69

onlyif mysql # use DIV operator for integer division
query I rowsort label-7829
SELECT ALL + - col1 + col1 DIV - col0 AS col0 FROM tab0 AS cor0
----
-89
-92
-99

skipif mysql # not compatible
query I rowsort label-7829
SELECT ALL + - col1 + col1 / - col0 AS col0 FROM tab0 AS cor0
----
-89
-92
-99

query I rowsort
SELECT + - ( col0 ) * - col2 AS col0 FROM tab1 AS cor0
----
162
3648
7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * cor0.col1 - cor0.col1 col2 FROM tab0 AS cor0
----
0
2752
7371

query I rowsort
SELECT ALL - + ( + col2 ) * + col0 + 73 FROM tab1 AS cor0
----
-3575
-7607
-89

query I rowsort
SELECT ALL - 14 + - 48 * + col0 + ( + ( - col0 ) ) AS col2 FROM tab0 AS cor0
----
-1190
-1729
-4375

onlyif mysql # use DIV operator for integer division
query I rowsort label-7834
SELECT 51 DIV - tab1.col1 FROM tab1, tab1 AS cor0
----
9 values hashing to a39a83f1a4bed9d2485462ed9c76d7e9

skipif mysql # not compatible
query I rowsort label-7834
SELECT 51 / - tab1.col1 FROM tab1, tab1 AS cor0
----
9 values hashing to a39a83f1a4bed9d2485462ed9c76d7e9

query I rowsort
SELECT + col1 * - col0 - - 73 AS col2 FROM tab0
----
-1991
-3322
-8026

query I rowsort
SELECT + 35 FROM tab2, tab1 AS cor0
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29

query I rowsort
SELECT DISTINCT col1 + - 69 * col0 FROM tab0 cor0
----
-1570
-2318
-6050

query I rowsort
SELECT ( + col1 ) + - tab1.col0 * col0 AS col0 FROM tab1
----
-4086
-6387
17

query I rowsort
SELECT + col1 * - col1 - + tab1.col1 AS col0 FROM tab1
----
-110
-182
-702

query I rowsort
SELECT DISTINCT + ( col0 * col0 ) FROM tab1
----
4096
6400
9

query I rowsort
SELECT DISTINCT col1 + col2 + - col0 * ( col0 * col0 ) FROM tab1 AS cor0
----
-262077
-511891
53

query I rowsort
SELECT ALL 76 * cor0.col1 + col1 AS col0 FROM tab1 AS cor0
----
1001
2002
770

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * ( - col0 ) * col1 col1 FROM tab1
----
36480
4212
99840

query I rowsort
SELECT 68 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990

query I rowsort
SELECT col2 + - col1 * col1 * + cor0.col1 FROM tab2 AS cor0
----
-205353
-29764
-4875

query I rowsort
SELECT + col0 * - cor0.col2 + 71 AS col1 FROM tab0 AS cor0
----
-721
-7227
36

query I rowsort
SELECT col2 * 9 + cor0.col0 * - col1 AS col1 FROM tab0 AS cor0
----
-1767
-3386
-7361

query I rowsort
SELECT DISTINCT + - col1 + + 16 AS col1 FROM tab2 cor0
----
-1
-15
-43

query I rowsort
SELECT DISTINCT col0 * col0 - 48 FROM tab1 AS cor0
----
-39
4048
6352

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col0 * col2 col1 FROM tab0 AS cor0
----
35
7298
792

onlyif mysql # use DIV operator for integer division
query I rowsort label-7851
SELECT ALL - col1 DIV 55 + cor0.col1 FROM tab0 AS cor0
----
85
90
96

skipif mysql # not compatible
query I rowsort label-7851
SELECT ALL - col1 / 55 + cor0.col1 FROM tab0 AS cor0
----
85
90
96

query I rowsort
SELECT tab0.col1 + col0 + col0 * col2 * col0 AS col2 FROM tab0
----
1357
19118
649702

query I rowsort
SELECT tab0.col2 * col0 + col2 + col1 AS col2 FROM tab0
----
133
7471
911

query I rowsort
SELECT DISTINCT 3 + - tab0.col1 FROM tab0
----
-83
-88
-94

query I rowsort
SELECT ( + tab0.col1 ) + - col1 AS col2 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL - + col1 + col2 FROM tab0 cor0
----
-53
-9
-96

query I rowsort
SELECT DISTINCT - col0 * 47 AS col0 FROM tab1 AS cor0
----
-141
-3008
-3760

query I rowsort
SELECT ALL - col2 * + cor0.col1 + - col2 FROM tab2 cor0
----
-1560
-684
-864

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7859
SELECT DISTINCT - col0 / - CAST( NULL AS DECIMAL ) + col0 - - col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7859
SELECT DISTINCT - col0 / - CAST ( NULL AS REAL ) + col0 - - col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - col2 + - col1 * ( - col1 ) * + col2 AS col2 FROM tab0
----
244035
678960
9408

query I rowsort
SELECT DISTINCT - col1 * - col2 * + col2 - col0 * - 84 FROM tab2
----
23187
31184
46436

query I rowsort
SELECT + 35 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29

onlyif mysql # use DIV operator for integer division
query I rowsort label-7863
SELECT DISTINCT - 82 DIV tab1.col2 + + col0 FROM tab1
----
2
63
80

skipif mysql # not compatible
query I rowsort label-7863
SELECT DISTINCT - 82 / tab1.col2 + + col0 FROM tab1
----
2
63
80

query I rowsort
SELECT ALL tab1.col0 * col2 + col2 AS col1 FROM tab1
----
216
3705
7776

query I rowsort
SELECT + ( col0 ) * + tab0.col2 FROM tab0
----
35
7298
792

query I rowsort
SELECT ALL 10 + col2 FROM tab2
----
36
37
48

query I rowsort
SELECT ALL 69 AS col0 FROM tab0, tab0 AS cor0, tab0 cor1
----
27 values hashing to 2810c3097fe4771e273cfff903357b40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * cor0.col0 + + col0 col2 FROM tab2 AS cor0
----
196
2106
3081

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2 cor0, tab0 cor1, tab2, tab2 AS cor2
----
3645 values hashing to 489dc4a89dc53914f025e2426f93a929

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 82 col2 FROM tab2 cor0
----
-82
-82
-82

query I rowsort
SELECT DISTINCT col1 * col1 * - tab2.col1 AS col2 FROM tab2
----
-205379
-29791
-4913

onlyif mysql # use DIV operator for integer division
query I rowsort label-7872
SELECT + 0 * col0 DIV col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7872
SELECT + 0 * col0 / col2 FROM tab0
----
0
0
0

query I rowsort
SELECT col1 + col1 + + col0 * - 40 AS col2 FROM tab0 AS cor0
----
-1206
-3378
-788

query I rowsort
SELECT ALL - col2 + col0 * + 48 * cor0.col0 FROM tab1 AS cor0
----
196551
307104
378

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + col2 col2 FROM tab1 cor0
----
109
67
80

query I rowsort
SELECT DISTINCT - cor0.col1 + col0 FROM tab0 cor0
----
-2
-62

query I rowsort
SELECT ALL + + 61 AS col0 FROM tab2 AS cor0
----
61
61
61

query I rowsort
SELECT + - col0 + col1 * col0 * + col1 AS col2 FROM tab1 cor0
----
13440
2025
6336

query I rowsort
SELECT ALL col0 * + ( + col1 + - col1 * + ( 2 ) ) FROM tab2
----
-1343
-217
-4602

query I rowsort
SELECT col1 + 82 FROM tab2 AS cor0
----
113
141
99

query I rowsort
SELECT ALL col1 + + col2 * 28 FROM tab1
----
1538
1606
2701

query I rowsort
SELECT + cor0.col2 + col2 AS col1 FROM tab1 AS cor0
----
108
114
192

query I rowsort
SELECT - col1 + 40 AS col0 FROM tab2 cor0
----
-19
23
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-7884
SELECT DISTINCT - col2 DIV cor0.col1 + - col2 FROM tab0 AS cor0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-7884
SELECT DISTINCT - col2 / cor0.col1 + - col2 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT + ( 21 ) AS col1 FROM tab1 AS cor0
----
21
21
21

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7886
SELECT DISTINCT ( col2 ) * cor0.col2 + - CAST( col0 AS SIGNED ) FROM tab0 AS cor0
----
-34
1065
6635

skipif mysql # not compatible
query I rowsort label-7886
SELECT DISTINCT ( col2 ) * cor0.col2 + - CAST ( col0 AS INTEGER ) FROM tab0 AS cor0
----
-34
1065
6635

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 40 col1 FROM tab1, tab2 AS cor0
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3

query I rowsort
SELECT ALL ( - cor0.col0 ) FROM tab1, tab2 AS cor0
----
9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b

query I rowsort
SELECT - col1 + - col1 * col1 + - col1 * 24 FROM tab2 AS cor0
----
-1736
-4956
-714

onlyif mysql # use DIV operator for integer division
query I rowsort label-7890
SELECT DISTINCT + 56 DIV ( col0 ) FROM tab0 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-7890
SELECT DISTINCT + 56 / ( col0 ) FROM tab0 AS cor0
----
0
1
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor1.col2 col0 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT ALL 8 * ( col1 ) AS col2 FROM tab0 AS cor0
----
688
728
776

query I rowsort
SELECT ( col1 ) * + tab2.col1 + ( - col2 ) AS col0 FROM tab2
----
251
3455
934

query I rowsort
SELECT + 36 * col2 AS col1 FROM tab2
----
1368
936
972

query I rowsort
SELECT ALL - ( col0 * tab0.col1 ) FROM tab0
----
-2064
-3395
-8099

query I rowsort
SELECT DISTINCT 1 + + cor0.col1 FROM tab0, tab1, tab1 AS cor0
----
11
14
27

skipif mysql # not compatible
query I rowsort
SELECT - cor0.col1 - + 49 * + col2 * CAST ( col0 AS REAL ) AS col2 FROM tab0 AS cor0
----
-1812
-357693
-38894

query I rowsort
SELECT ALL 45 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 14cec871edc37b5056cda01c8331fdca

onlyif mysql # use DIV operator for integer division
query I rowsort label-7899
SELECT DISTINCT col0 * tab0.col2 DIV + ( + col2 ) col0 FROM tab0
----
24
35
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7899
SELECT DISTINCT col0 * tab0.col2 / + ( + col2 ) col0 FROM tab0
----
24
35
89

query I rowsort
SELECT - 68 * cor0.col1 AS col1 FROM tab0 AS cor0
----
-5848
-6188
-6596

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 37 + col0 * - col1 col2 FROM tab0 AS cor0
----
-2027
-3358
-8062

onlyif mysql # use DIV operator for integer division
query I rowsort label-7902
SELECT - 38 DIV - col1 FROM tab2 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-7902
SELECT - 38 / - col1 FROM tab2 AS cor0
----
0
1
2

query I rowsort
SELECT + - cor0.col1 * cor0.col0 AS col1 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT - col0 * - ( - col0 ) AS col1 FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT - col0 * 94 AS col0 FROM tab2 AS cor0
----
-658
-7332
-7426

query I rowsort
SELECT ALL tab0.col1 * + ( col0 + - col2 ) FROM tab0
----
-774
3298
637

query I rowsort
SELECT + col0 * + 36 FROM tab1 AS cor0
----
108
2304
2880

query I rowsort
SELECT DISTINCT + col0 + 11 + - col2 * - col2 AS col1 FROM tab1 AS cor0
----
2930
3324
9307

onlyif mysql # use DIV operator for integer division
query I rowsort label-7909
SELECT + col2 DIV cor0.col1 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7909
SELECT + col2 / cor0.col1 AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT 60 AS col0 FROM tab1, tab2 cor0, tab2 AS cor1
----
27 values hashing to 1d2ab302ae60f95b15e68cf89083b162

onlyif mysql # use DIV operator for integer division
query I rowsort label-7911
SELECT + - cor0.col1 DIV ( - col2 ) FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7911
SELECT + - cor0.col1 / ( - col2 ) FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT ALL + - cor0.col2 * col1 AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT 77 + col0 * - cor0.col0 FROM tab2 cor0
----
-6007
-6164
28

query I rowsort
SELECT - 30 * + col2 FROM tab2 AS cor0
----
-1140
-780
-810

query I rowsort
SELECT ALL col0 + ( col1 ) * + col1 FROM tab1 AS cor0
----
164
249
679

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - CAST ( + col0 AS REAL ) * + col1 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT 19 + 66 AS col1 FROM tab2 AS cor0
----
85
85
85

query I rowsort
SELECT + 39 * + cor0.col1 AS col1 FROM tab2 AS cor0
----
1209
2301
663

query I rowsort
SELECT DISTINCT + 23 + 75 * + col2 FROM tab1 AS cor0
----
4073
4298
7223

onlyif mysql # use DIV operator for integer division
query I rowsort label-7920
SELECT DISTINCT col2 * 46 DIV + 29 AS col1 FROM tab0
----
1
130
52

skipif mysql # not compatible
query I rowsort label-7920
SELECT DISTINCT col2 * 46 / + 29 AS col1 FROM tab0
----
1
130
52

query I rowsort
SELECT + ( - 83 ) FROM tab1, tab2 cor0
----
9 values hashing to d55748f39f403ec273099c0d87b0bfbb

query I rowsort
SELECT ALL col0 * + 17 FROM tab1
----
1088
1360
51

query I rowsort
SELECT ( col2 ) * - cor0.col2 * 97 FROM tab1 AS cor0
----
-282852
-315153
-893952

query I rowsort
SELECT ALL + ( 93 ) FROM tab2 AS cor0
----
93
93
93

query I rowsort
SELECT ALL + col0 * cor0.col2 AS col0 FROM tab1 AS cor0
----
162
3648
7680

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + CAST ( + ( col1 ) AS REAL ) AS col2 FROM tab1 AS cor0
----
10
13
26

onlyif mysql # use DIV operator for integer division
query I rowsort label-7927
SELECT - + col2 DIV col2 + - ( + cor0.col2 ) + cor0.col2 FROM tab1 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7927
SELECT - + col2 / col2 + - ( + cor0.col2 ) + cor0.col2 FROM tab1 cor0
----
-1
-1
-1

query I rowsort
SELECT ALL - 52 * col1 AS col1 FROM tab0 AS cor0
----
-4472
-4732
-5044

query I rowsort
SELECT ( col0 ) * cor0.col1 FROM tab2 cor0
----
1343
217
4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 + + col1 col2 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT ALL + - col1 + col2 + + col1 FROM tab2 AS cor0
----
26
27
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-7932
SELECT col1 * col0 DIV - 52 AS col1 FROM tab1 cor0
----
-1
-12
-20

skipif mysql # not compatible
query I rowsort label-7932
SELECT col1 * col0 / - 52 AS col1 FROM tab1 cor0
----
-1
-12
-20

query I rowsort
SELECT ALL col0 * - cor0.col0 * ( + col2 ) + col1 FROM tab1 AS cor0
----
-233462
-460
-614387

onlyif mysql # use DIV operator for integer division
query I rowsort label-7934
SELECT ALL - 49 + + col1 DIV - col1 FROM tab2 AS cor0
----
-50
-50
-50

skipif mysql # not compatible
query I rowsort label-7934
SELECT ALL - 49 + + col1 / - col1 FROM tab2 AS cor0
----
-50
-50
-50

query I rowsort
SELECT ALL - col0 + - 70 + cor0.col2 FROM tab0 cor0
----
-104
-61
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + col1 ) * col1 * + col1 + + tab1.col2 col0 FROM tab1
----
1057
17630
2293

query I rowsort
SELECT ( - tab2.col1 ) AS col2 FROM tab2, tab0 cor0, tab2 AS cor1
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2

query I rowsort
SELECT - + 12 * col0 AS col0 FROM tab1 AS cor0
----
-36
-768
-960

query I rowsort
SELECT ALL - + 49 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 01b1fa22fee872a7ba64f90d6046ffae

onlyif mysql # use DIV operator for integer division
query I rowsort label-7940
SELECT ALL 80 + + col0 * - 48 + col2 DIV - col0 FROM tab2 AS cor0
----
-259
-3664
-3712

skipif mysql # not compatible
query I rowsort label-7940
SELECT ALL 80 + + col0 * - 48 + col2 / - col0 FROM tab2 AS cor0
----
-259
-3664
-3712

query I rowsort
SELECT col0 + - col2 - + col2 FROM tab1 AS cor0
----
-105
-112
-50

onlyif mysql # use DIV operator for integer division
query I rowsort label-7942
SELECT - col2 * col1 + - 77 * - col0 DIV + col0 FROM tab2 AS cor0
----
-1457
-569
-760

skipif mysql # not compatible
query I rowsort label-7942
SELECT - col2 * col1 + - 77 * - col0 / + col0 FROM tab2 AS cor0
----
-1457
-569
-760

query I rowsort
SELECT - - col2 * + col0 + - 62 * col1 AS col0 FROM tab0 AS cor0
----
-4540
-5979
1656

query I rowsort
SELECT 2 * col0 + - col0 AS col1 FROM tab0
----
24
35
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-7945
SELECT DISTINCT + col0 + tab1.col0 DIV + col2 FROM tab1
----
3
65
80

skipif mysql # not compatible
query I rowsort label-7945
SELECT DISTINCT + col0 + tab1.col0 / + col2 FROM tab1
----
3
65
80

query I rowsort
SELECT + 42 + col2 FROM tab1
----
138
96
99

query I rowsort
SELECT + col0 * col2 + 93 AS col2 FROM tab2 AS cor0
----
2121
282
3095

query I rowsort
SELECT 36 * - col1 AS col2 FROM tab2
----
-1116
-2124
-612

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7949
SELECT col1 + col2 * + ( 6 + + tab2.col2 ) * - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7949
SELECT col1 + col2 * + ( 6 + + tab2.col2 ) * - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 * - col2 - col1 AS col2 FROM tab0
----
-132
-7389
-878

query I rowsort
SELECT ALL col0 AS col2 FROM tab0 WHERE NOT ( NULL ) < NULL
----

query I rowsort
SELECT + col2 + col0 * + col1 FROM tab1
----
1136
132
697

query I rowsort
SELECT ALL col1 * - col2 - + tab2.col1 AS col0 FROM tab2
----
-1593
-663
-868

query III rowsort
SELECT * FROM tab0 WHERE - col0 IN ( tab0.col2 * - col1 )
----

query I rowsort
SELECT DISTINCT - col0 + tab0.col2 * + col1 AS col0 FROM tab0
----
2814
62
7373

query I rowsort
SELECT ALL - col0 + - col1 + + col2 * tab2.col1 FROM tab2
----
1397
550
799

query I rowsort
SELECT - tab1.col2 FROM tab1 WHERE NOT NULL NOT IN ( - col0 * col2 )
----

query I rowsort
SELECT ALL + col2 + col1 * + tab1.col0 + + col2 AS col0 FROM tab1
----
1232
186
754

onlyif mysql # use DIV operator for integer division
query I rowsort label-7959
SELECT - tab0.col2 + - col1 DIV col0 FROM tab0
----
-3
-36
-83

skipif mysql # not compatible
query I rowsort label-7959
SELECT - tab0.col2 + - col1 / col0 FROM tab0
----
-3
-36
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + + col0 + - col0 col0 FROM tab2
----
26
27
38

query I rowsort
SELECT - col1 - col2 * + tab1.col2 FROM tab1
----
-2942
-3259
-9229

query I rowsort
SELECT col1 * + col0 * + col2 + - col0 - col0 FROM tab0
----
3325
663940
68064

query I rowsort
SELECT ALL ( cor0.col0 ) AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

query I rowsort
SELECT - col1 * - tab1.col0 - col1 FROM tab1
----
1027
52
630

query I rowsort
SELECT ALL + col0 + tab2.col2 * - col1 AS col0 FROM tab2
----
-1456
-567
-830

query I rowsort
SELECT DISTINCT - col2 FROM tab2 WHERE NULL BETWEEN - col0 AND NULL
----

query I rowsort
SELECT - tab0.col2 + + cor0.col1 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to be991a59f14759117ef2f271c2d2216f

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 39 col2 FROM tab0
----
39
39
39

onlyif mysql # use DIV operator for integer division
query I rowsort label-7969
SELECT DISTINCT + col2 * col1 DIV 13 AS col1 FROM tab2
----
118
49
64

skipif mysql # not compatible
query I rowsort label-7969
SELECT DISTINCT + col2 * col1 / 13 AS col1 FROM tab2
----
118
49
64

query I rowsort
SELECT + col1 + + tab0.col0 + + 63 FROM tab0
----
173
195
243

query I rowsort
SELECT + col2 * col1 - - col1 AS col2 FROM tab1 cor0
----
1261
1430
580

query I rowsort
SELECT - col1 * + ( col2 + + col1 ) AS col1 FROM tab0 AS cor0
----
-10234
-15743
-9506

query I rowsort
SELECT DISTINCT - col0 * - ( + col1 ) AS col0 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT ALL - col1 * 97 AS col2 FROM tab1 AS cor0
----
-1261
-2522
-970

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab2 AS cor2, tab1 AS cor3
----
3645 values hashing to d8caf2ef7d9c405db0aec8c013a5107c

query I rowsort
SELECT 86 + col0 * - cor0.col2 AS col2 FROM tab0 AS cor0
----
-706
-7212
51

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7977
SELECT DISTINCT - cor0.col2 + + CAST( NULL AS SIGNED ) FROM tab2, tab0 AS cor0, tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-7977
SELECT DISTINCT - cor0.col2 + + CAST ( NULL AS INTEGER ) FROM tab2, tab0 AS cor0, tab0 AS cor1
----
NULL

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0, tab0 AS cor1, tab1, tab1 cor2
----
3645 values hashing to 76903cfa3a27727fd541d9dcdf362a4c

query I rowsort
SELECT DISTINCT col1 * + 92 AS col2 FROM tab2
----
1564
2852
5428

query I rowsort
SELECT + - 1 * - col1 + - col1 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + + ( cor0.col2 ) + + col1 * + 93 FROM tab0 AS cor0
----
8031
8545
9022

query I rowsort
SELECT ( - tab1.col1 ) + col2 FROM tab1
----
28
47
83

query I rowsort
SELECT ALL + + col2 + + col2 * col0 AS col2 FROM tab2 AS cor0
----
2054
216
3040

query I rowsort
SELECT DISTINCT - 64 + - cor0.col0 * cor0.col0 + cor0.col2 AS col1 FROM tab1 AS cor0
----
-19
-4103
-6368

query I rowsort
SELECT DISTINCT 0 + - cor0.col1 AS col1 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT ALL + 38 * col2 AS col0 FROM tab1 AS cor0
----
2052
2166
3648

query I rowsort
SELECT ALL + col1 + col1 * cor0.col2 AS col2 FROM tab2 AS cor0
----
1593
663
868

onlyif mysql # use DIV operator for integer division
query I rowsort label-7988
SELECT + + 90 DIV col2 AS col2 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-7988
SELECT + + 90 / col2 AS col2 FROM tab1 AS cor0
----
0
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-7989
SELECT col1 DIV col1 AS col0 FROM tab2 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7989
SELECT col1 / col1 AS col0 FROM tab2 cor0
----
1
1
1

query I rowsort
SELECT ALL + col2 * col1 * cor0.col0 AS col1 FROM tab0 AS cor0
----
3395
664118
68112

query I rowsort
SELECT ALL - - 61 + 15 AS col0 FROM tab1 cor0
----
76
76
76

query I rowsort
SELECT DISTINCT 91 AS col1 FROM tab0, tab2 cor0
----
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + - col0 + cor0.col1 col2 FROM tab1 cor0
----
10
13
26

query I rowsort
SELECT + 53 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to fede6033dee346dbd272085c05724fda

onlyif mysql # use DIV operator for integer division
query I rowsort label-7995
SELECT DISTINCT - col2 DIV - ( + col2 ) AS col2 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-7995
SELECT DISTINCT - col2 / - ( + col2 ) AS col2 FROM tab0
----
1

query I rowsort
SELECT + tab0.col0 * 53 AS col1 FROM tab0
----
1272
1855
4717

onlyif mysql # use DIV operator for integer division
query I rowsort label-7997
SELECT DISTINCT col2 + tab2.col2 DIV + tab2.col1 AS col2 FROM tab2
----
26
27
40

skipif mysql # not compatible
query I rowsort label-7997
SELECT DISTINCT col2 + tab2.col2 / + tab2.col1 AS col2 FROM tab2
----
26
27
40

onlyif mysql # use DIV operator for integer division
query I rowsort label-7998
SELECT col2 * 20 DIV col1 - + col1 * + col2 AS col1 FROM tab1
----
-1101
-1363
-456

skipif mysql # not compatible
query I rowsort label-7998
SELECT col2 * 20 / col1 - + col1 * + col2 AS col1 FROM tab1
----
-1101
-1363
-456

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( tab2.col1 ) col1 FROM tab2
----
-17
-31
-59

query I rowsort
SELECT + ( 71 ) AS col1 FROM tab1 cor0
----
71
71
71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 74 + col2 col0 FROM tab1
----
128
131
170

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8002
SELECT ALL CAST( NULL AS DECIMAL ) * col0 + col2 + - col2 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8002
SELECT ALL CAST ( NULL AS REAL ) * col0 + col2 + - col2 AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 9 FROM tab2, tab1 AS cor0
----
9 values hashing to caf28657beb43049740febe1fa9ded5a

query I rowsort
SELECT DISTINCT + tab0.col2 + + 40 FROM tab0
----
122
41
73

query I rowsort
SELECT col0 + - col2 * - col2 FROM tab0
----
1113
36
6813

query I rowsort
SELECT ALL + col2 + + col2 * col0 FROM tab2 AS cor0
----
2054
216
3040

onlyif mysql # use DIV operator for integer division
query I rowsort label-8007
SELECT DISTINCT cor0.col0 DIV col1 - - col2 col1 FROM tab1 AS cor0
----
102
54
63

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8007
SELECT DISTINCT cor0.col0 / col1 - - col2 col1 FROM tab1 AS cor0
----
102
54
63

query I rowsort
SELECT cor0.col1 + col0 * - cor0.col2 * col1 AS col0 FROM tab1 AS cor0
----
-36470
-4186
-99827

query I rowsort
SELECT DISTINCT + col2 * col2 + col1 * - col0 AS col0 FROM tab2 AS cor0
----
-3926
101
512

onlyif mysql # use DIV operator for integer division
query I rowsort label-8010
SELECT ALL + col2 DIV tab2.col0 + - col1 * + col2 AS col1 FROM tab2
----
-1534
-646
-834

skipif mysql # not compatible
query I rowsort label-8010
SELECT ALL + col2 / tab2.col0 + - col1 * + col2 AS col1 FROM tab2
----
-1534
-646
-834

query I rowsort
SELECT DISTINCT + tab2.col2 * + col1 + col1 AS col2 FROM tab2
----
1593
663
868

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL > col0 + + col2 + - col0
----

query I rowsort
SELECT ALL - col0 - - tab1.col1 FROM tab1
----
-54
-67
23

query I rowsort
SELECT + col0 AS col2 FROM tab1 WHERE NOT - tab1.col1 >= - col1 - + col0
----

query I rowsort
SELECT DISTINCT tab2.col0 * col1 - - col2 FROM tab2
----
1381
244
4628

query I rowsort
SELECT DISTINCT + col1 * - col1 * col2 + + col0 * + col0 AS col1 FROM tab1 AS cor0
----
-1604
-36495
-9824

query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 AS cor0 WHERE NOT NULL NOT IN ( - cor0.col2 )
----

query I rowsort
SELECT + col1 + + col0 + col1 * tab0.col0 AS col1 FROM tab0
----
2174
3527
8279

query I rowsort
SELECT tab2.col1 + - col1 * - col2 + + tab2.col0 AS col1 FROM tab2
----
1671
742
875

query I rowsort
SELECT DISTINCT + col0 * - col0 + col2 + col0 FROM tab0
----
-1189
-519
-7750

onlyif mysql # use DIV operator for integer division
query I rowsort label-8021
SELECT ALL + col2 * tab0.col0 - - col0 DIV tab0.col1 AS col1 FROM tab0
----
35
7298
792

skipif mysql # not compatible
query I rowsort label-8021
SELECT ALL + col2 * tab0.col0 - - col0 / tab0.col1 AS col1 FROM tab0
----
35
7298
792

query I rowsort
SELECT - col0 * cor0.col1 - - col2 * col0 FROM tab0 AS cor0
----
-1272
-3360
-801

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - tab0.col1 col0 FROM tab0
----
-53
-9
-96

query I rowsort
SELECT - cor0.col1 + - col0 * + col0 FROM tab2 AS cor0
----
-6143
-6258
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - cor0.col1 col1 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT ALL + col0 * - col1 AS col2 FROM tab1 cor0
----
-1040
-640
-78

query I rowsort
SELECT cor0.col2 * - col0 + - col2 FROM tab2 AS cor0
----
-2054
-216
-3040

query I rowsort
SELECT DISTINCT + - col0 * col1 - - col2 FROM tab0 AS cor0
----
-2031
-3394
-8017

query I rowsort
SELECT - col2 + + cor0.col1 + col1 * + col0 AS col1 FROM tab0 cor0
----
2117
3491
8108

query I rowsort
SELECT DISTINCT - col2 * + col2 * - col2 AS col0 FROM tab2 AS cor0
----
17576
19683
54872

query I rowsort
SELECT ALL + + col1 * col0 - - col1 AS col0 FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT ALL - cor0.col1 + - col2 + + col0 AS col1 FROM tab2 AS cor0
----
-51
-7
24

onlyif mysql # use DIV operator for integer division
query I rowsort label-8033
SELECT DISTINCT col2 DIV - col0 + + cor0.col1 * col1 AS col1 FROM tab0 AS cor0
----
7395
8281
9409

skipif mysql # not compatible
query I rowsort label-8033
SELECT DISTINCT col2 / - col0 + + cor0.col1 * col1 AS col1 FROM tab0 AS cor0
----
7395
8281
9409

query I rowsort
SELECT DISTINCT col2 * cor0.col0 - col0 * cor0.col1 FROM tab2 AS cor0
----
-2574
-28
1659

query I rowsort
SELECT + col2 * col1 + col0 AS col0 FROM tab0 cor0
----
132
2862
7551

query I rowsort
SELECT DISTINCT - col2 * + col2 + col1 * col1 * col0 AS col2 FROM tab0 AS cor0
----
176415
329314
730285

query I rowsort
SELECT DISTINCT col2 * + 81 AS col1 FROM tab0
----
2673
6642
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-8038
SELECT ALL col1 DIV ( - col1 ) FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8038
SELECT ALL col1 / ( - col1 ) FROM tab2
----
-1
-1
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-8039
SELECT ALL col2 DIV - 24 + + tab0.col0 * - col0 FROM tab0
----
-1225
-577
-7924

skipif mysql # not compatible
query I rowsort label-8039
SELECT ALL col2 / - 24 + + tab0.col0 * - col0 FROM tab0
----
-1225
-577
-7924

query I rowsort
SELECT - ( - 93 * - tab1.col2 ) FROM tab1, tab0 cor0
----
9 values hashing to 422f4e2f0985cdf768ce4b415c3c42a5

skipif mysql # not compatible
query I rowsort
SELECT - col1 * + CAST ( - ( cor0.col2 ) AS REAL ) FROM tab1 cor0
----
1248
1404
570

query I rowsort
SELECT ALL + cor0.col1 * 18 FROM tab0 AS cor0
----
1548
1638
1746

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * 94 col1 FROM tab2 AS cor0
----
2444
2538
3572

onlyif mysql # use DIV operator for integer division
query I rowsort label-8044
SELECT ALL 24 DIV 57 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-8044
SELECT ALL 24 / 57 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT DISTINCT - col1 * 92 FROM tab1 AS cor0
----
-1196
-2392
-920

query I rowsort
SELECT ALL - 29 * + col1 FROM tab2 AS cor0
----
-1711
-493
-899

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 + col0 + + cor0.col2 col1 FROM tab0 AS cor0
----
-29
-61
80

query I rowsort
SELECT - - 82 * col0 AS col2 FROM tab2 AS cor0
----
574
6396
6478

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8049
SELECT DISTINCT - - 89 + - 56 * cor0.col1 * CAST( NULL AS DECIMAL ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8049
SELECT DISTINCT - - 89 + - 56 * cor0.col1 * CAST ( NULL AS REAL ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + col0 * - ( col2 ) - ( + col0 ) FROM tab0 AS cor0
----
-70
-7387
-816

query I rowsort
SELECT DISTINCT - 37 AS col1 FROM tab1 AS cor0
----
-37

query I rowsort
SELECT ALL col1 + 46 AS col2 FROM tab2 AS cor0
----
105
63
77

onlyif mysql # use DIV operator for integer division
query I rowsort label-8053
SELECT col2 DIV 35 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8053
SELECT col2 / 35 FROM tab2
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 32 * - 91 col2 FROM tab2 AS cor0
----
2912
2912
2912

query I rowsort
SELECT - - 77 + - cor0.col1 AS col0 FROM tab2 AS cor0
----
18
46
60

query I rowsort
SELECT - - ( col0 ) * - col1 + 28 * + col1 AS col1 FROM tab2 AS cor0
----
-2950
-867
651

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8057
SELECT ALL - col0 + + CAST( NULL AS SIGNED ) - + col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8057
SELECT ALL - col0 + + CAST ( NULL AS INTEGER ) - + col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + - col2 - - col2 * cor0.col0 AS col0 FROM tab0 cor0
----
34
7216
759

query I rowsort
SELECT - col1 + + 19 AS col2 FROM tab0 AS cor0
----
-67
-72
-78

query I rowsort
SELECT + 8 + col1 AS col0 FROM tab2 AS cor0
----
25
39
67

query I rowsort
SELECT ALL - + col0 * + cor0.col2 + col0 + + 75 * - col1 FROM tab2 AS cor0
----
-2507
-4198
-6375

query I rowsort
SELECT ALL ( + col1 ) + + 41 * col2 AS col2 FROM tab1 AS cor0
----
2240
2347
3949

query I rowsort
SELECT 69 * col2 AS col2 FROM tab1 AS cor0
----
3726
3933
6624

query I rowsort
SELECT DISTINCT + + cor0.col2 * + col2 + - ( col1 ) + - col0 AS col0 FROM tab2 AS cor0
----
1348
539
691

query I rowsort
SELECT - 98 - 41 AS col2 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 992e947bf869670f953a03f5a4dc95f8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 10 col1 FROM tab0 AS cor0
----
10

onlyif mysql # use DIV operator for integer division
query I rowsort label-8067
SELECT - + col0 DIV + cor0.col1 + col2 AS col0 FROM tab2 AS cor0
----
25
27
34

skipif mysql # not compatible
query I rowsort label-8067
SELECT - + col0 / + cor0.col1 + col2 AS col0 FROM tab2 AS cor0
----
25
27
34

onlyif mysql # use DIV operator for integer division
query I rowsort label-8068
SELECT 10 + col1 DIV ( - col2 ) AS col2 FROM tab1 AS cor0
----
10
10
10

skipif mysql # not compatible
query I rowsort label-8068
SELECT 10 + col1 / ( - col2 ) AS col2 FROM tab1 AS cor0
----
10
10
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 27 * + col0 col2 FROM tab0 AS cor0
----
2403
648
945

query I rowsort
SELECT ALL col1 * + col0 * 24 FROM tab1 AS cor0
----
15360
1872
24960

onlyif mysql # use DIV operator for integer division
query I rowsort label-8071
SELECT + - col2 DIV - col2 AS col2 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8071
SELECT + - col2 / - col2 AS col2 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT - col2 * - ( 78 ) AS col1 FROM tab2 cor0
----
2028
2106
2964

query I rowsort
SELECT col2 * + ( ( + col0 ) ) FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT DISTINCT 26 + + 89 FROM tab1, tab0 AS cor0, tab0 cor1
----
115

query IIIIIIIII rowsort
SELECT * FROM tab0, tab1, tab0 AS cor0 WHERE NOT ( NULL ) = NULL
----

query I rowsort
SELECT col0 * - ( col2 ) * + col1 AS col1 FROM tab2 AS cor0
----
-119652
-51034
-5859

query I rowsort
SELECT - col0 + + 28 * - ( col1 ) FROM tab1 AS cor0
----
-344
-444
-731

query I rowsort
SELECT - cor0.col1 * col2 * - col1 FROM tab2 AS cor0
----
10982
25947
90506

query I rowsort
SELECT ALL col0 + ( col1 ) * - 19 AS col2 FROM tab2 cor0
----
-1043
-244
-582

query I rowsort
SELECT DISTINCT cor0.col1 FROM tab2, tab1 AS cor0, tab0 cor1
----
10
13
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 83 col2 FROM tab2, tab2 AS cor0
----
9 values hashing to d55748f39f403ec273099c0d87b0bfbb

query I rowsort
SELECT - 14 + col0 * 65 AS col0 FROM tab0 AS cor0
----
1546
2261
5771

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab0 AS cor0 CROSS JOIN tab1, tab1 cor1, tab0 cor2
----
3645 values hashing to e660b5944e34dd8d75740286862b3252

query I rowsort
SELECT ( 12 ) FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 702478c53caf2f7ebb9fff96d800f5a6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col0 + - col0 * ( col1 ) col0 FROM tab2 AS cor0
----
-1422
-224
-4680

query I rowsort
SELECT - + ( col0 ) AS col1 FROM tab0 cor0
----
-24
-35
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 52 col1 FROM tab0 AS cor0
----
52
52
52

query I rowsort
SELECT + ( + cor0.col2 ) * cor0.col1 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT 21 * col2 + + cor0.col0 FROM tab1 AS cor0
----
1137
1261
2096

query I rowsort
SELECT + + 24 + - 33 * - col1 FROM tab2 AS cor0
----
1047
1971
585

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - cor0.col0 ) col0 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT - + 18 + cor0.col2 AS col2 FROM tab2 AS cor0
----
20
8
9

query I rowsort
SELECT - - 92 AS col2 FROM tab2 AS cor0
----
92
92
92

onlyif mysql # use DIV operator for integer division
query I rowsort label-8094
SELECT DISTINCT + - cor0.col2 + col1 DIV 7 AS col0 FROM tab1 cor0
----
-51
-56
-95

skipif mysql # not compatible
query I rowsort label-8094
SELECT DISTINCT + - cor0.col2 + col1 / 7 AS col0 FROM tab1 cor0
----
-51
-56
-95

query I rowsort
SELECT col0 + - col2 * + ( - col1 ) AS col2 FROM tab2 AS cor0
----
1612
725
844

query I rowsort
SELECT DISTINCT 92 * + cor0.col1 - ( + 46 ) * - cor0.col2 * + col0 FROM tab0 AS cor0
----
10534
344080
44344

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( col1 ) + 84 - col0 col0 FROM tab2 cor0
----
-12
-53
46

query I rowsort
SELECT DISTINCT + cor0.col2 * + col0 AS col1 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT col1 * - ( col0 ) * col1 FROM tab1 cor0
----
-13520
-2028
-6400

onlyif mysql # use DIV operator for integer division
query I rowsort label-8100
SELECT - cor0.col0 DIV + cor0.col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8100
SELECT - cor0.col0 / + cor0.col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ( 6 ) + col1 * 92 AS col2 FROM tab0 AS cor0
----
7918
8378
8930

query I rowsort
SELECT DISTINCT + col1 + - ( - col1 ) FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT + 28 * col0 AS col1 FROM tab2 AS cor0
----
196
2184
2212

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8104
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - cor0.col0 * - col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8104
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - cor0.col0 * - col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8105
SELECT - - CAST( NULL AS SIGNED ) * cor0.col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8105
SELECT - - CAST ( NULL AS INTEGER ) * cor0.col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-8106
SELECT - ( - col0 ) DIV + col2 AS col0 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8106
SELECT - ( - col0 ) / + col2 AS col0 FROM tab1 AS cor0
----
0
0
1

query I rowsort
SELECT ( cor0.col0 ) * col1 * + col1 FROM tab2 AS cor0
----
22831
271518
6727

query I rowsort
SELECT ALL - - 88 + cor0.col2 FROM tab1 cor0
----
142
145
184

query I rowsort
SELECT DISTINCT - col0 * - 50 * - 20 + + col2 + 10 FROM tab0
----
-23957
-34989
-88908

query I rowsort
SELECT - ( - 81 ) AS col1 FROM tab1 AS cor0
----
81
81
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 61 + col0 col1 FROM tab1 cor0
----
-58
19
3

query I rowsort
SELECT DISTINCT - ( - col2 ) + cor0.col0 * col1 AS col1 FROM tab1 AS cor0
----
1136
132
697

onlyif mysql # use DIV operator for integer division
query I rowsort label-8113
SELECT - col1 * 68 + + col1 * cor0.col1 DIV + col0 FROM tab1 AS cor0
----
-1543
-679
-882

skipif mysql # not compatible
query I rowsort label-8113
SELECT - col1 * 68 + + col1 * cor0.col1 / + col0 FROM tab1 AS cor0
----
-1543
-679
-882

query I rowsort
SELECT DISTINCT col1 - 81 AS col0 FROM tab2
----
-22
-50
-64

query I rowsort
SELECT - col1 + - ( col0 ) - + col1 FROM tab1
----
-106
-55
-84

query I rowsort
SELECT DISTINCT - col0 + col1 * - col1 FROM tab0 cor0
----
-7420
-8370
-9444

query I rowsort
SELECT cor0.col0 + + col1 + cor0.col0 * + 6 AS col1 FROM tab1 cor0
----
458
47
573

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - 92 col0 FROM tab0
----
-7912
-8372
-8924

query I rowsort
SELECT DISTINCT - 7 FROM tab1, tab2 AS cor0
----
-7

query I rowsort
SELECT ( - 29 ) + + col2 * + 29 FROM tab1
----
1537
1624
2755

query I rowsort
SELECT 36 + - 70 FROM tab1
----
-34
-34
-34

onlyif mysql # use DIV operator for integer division
query I rowsort label-8122
SELECT DISTINCT - ( - col1 + tab2.col0 ) DIV col1 AS col1 FROM tab2
----
-3
0

skipif mysql # not compatible
query I rowsort label-8122
SELECT DISTINCT - ( - col1 + tab2.col0 ) / col1 AS col1 FROM tab2
----
-3
0

query I rowsort
SELECT - cor1.col1 + ( 92 + - cor0.col1 ) * 94 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to fa2900605edca8fb96b63befff093a2e

query I rowsort
SELECT ALL + col1 * + 42 AS col2 FROM tab0 AS cor0
----
3612
3822
4074

query I rowsort
SELECT DISTINCT + col2 * ( + col2 ) - - col0 AS col1 FROM tab0 AS cor0
----
1113
36
6813

query I rowsort
SELECT ALL - col1 * col1 - col0 AS col2 FROM tab2 AS cor0
----
-3559
-368
-968

query I rowsort
SELECT DISTINCT - col0 * + col2 + 32 FROM tab2 cor0
----
-157
-1996
-2970

query I rowsort
SELECT + 48 + col1 * ( col1 ) FROM tab0
----
7444
8329
9457

query I rowsort
SELECT ( col2 ) + col2 AS col2 FROM tab0
----
164
2
66

query I rowsort
SELECT + col1 * col2 + col2 * + col0 * - col1 FROM tab1
----
-2808
-35910
-98592

onlyif mysql # use DIV operator for integer division
query I rowsort label-8131
SELECT + - col2 DIV 35 - - col1 col2 FROM tab0 AS cor0
----
86
89
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8131
SELECT + - col2 / 35 - - col1 col2 FROM tab0 AS cor0
----
86
89
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8132
SELECT + + col0 - - CAST( col1 + - col1 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-8132
SELECT + + col0 - - CAST ( col1 + - col1 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT DISTINCT + - col1 - 40 * - cor0.col2 AS col0 FROM tab0 AS cor0
----
-57
1234
3189

query I rowsort
SELECT DISTINCT - col1 * cor0.col0 + - col2 FROM tab0 AS cor0
----
-2097
-3396
-8181

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * col1 + col1 col0 FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT DISTINCT col1 + 35 * col0 FROM tab0 AS cor0
----
1322
3206
926

query I rowsort
SELECT col1 - + col0 * + ( col0 ) FROM tab0 AS cor0
----
-1128
-490
-7830

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 + 44 * + col1 col2 FROM tab1 AS cor0
----
1147
504
652

query I rowsort
SELECT DISTINCT col0 * + cor0.col2 + col2 AS col1 FROM tab2 AS cor0
----
2054
216
3040

query I rowsort
SELECT cor0.col0 + - cor0.col0 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT - col2 + - 60 AS col2 FROM tab1
----
-114
-117
-156

query I rowsort
SELECT ALL + - col1 + col0 * col0 FROM tab2 AS cor0
----
18
6025
6224

onlyif mysql # use DIV operator for integer division
query I rowsort label-8143
SELECT + 55 DIV - col0 FROM tab2 cor0
----
-7
0
0

skipif mysql # not compatible
query I rowsort label-8143
SELECT + 55 / - col0 FROM tab2 cor0
----
-7
0
0

query I rowsort
SELECT DISTINCT - col2 + - ( 56 ) + - col0 * col2 * + tab2.col1 AS col2 FROM tab2
----
-119734
-51128
-5942

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * - ( + col2 ) + - col2 * - col1 col2 FROM tab2
----
-2356
-494
648

query I rowsort
SELECT + + 59 * - 65 + col1 * 50 AS col2 FROM tab1 AS cor0
----
-2535
-3185
-3335

query I rowsort
SELECT DISTINCT col0 + ( col0 ) AS col2 FROM tab2
----
14
156
158

query I rowsort
SELECT DISTINCT + col0 - - ( + col0 ) FROM tab0 AS cor0
----
178
48
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab2.col0 col0 FROM tab2, tab1, tab0 AS cor0
----
7
78
79

query I rowsort
SELECT tab0.col2 * + 29 * - col1 AS col0 FROM tab0
----
-216398
-2813
-82302

query I rowsort
SELECT + ( + 64 ) FROM tab2, tab2 AS cor0
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e

query I rowsort
SELECT ALL - col0 + - col0 - + col1 FROM tab1 AS cor0
----
-138
-173
-32

query I rowsort
SELECT cor0.col1 * 82 AS col0 FROM tab2 AS cor0
----
1394
2542
4838

query I rowsort
SELECT DISTINCT col2 * col0 + col2 FROM tab0 cor0
----
36
7380
825

query I rowsort
SELECT ALL + - col0 - + col2 AS col2 FROM tab0 AS cor0
----
-171
-36
-57

query I rowsort
SELECT ALL cor0.col1 * ( col0 ) * col0 - col1 FROM tab2 AS cor0
----
106080
1488
358897

query I rowsort
SELECT DISTINCT 71 * col1 FROM tab1 AS cor0
----
1846
710
923

query I rowsort
SELECT - 56 * - col0 AS col0 FROM tab1 cor0
----
168
3584
4480

query I rowsort
SELECT ALL ( - 57 ) FROM tab1 AS cor0
----
-57
-57
-57

query I rowsort
SELECT ALL 68 * - col2 FROM tab0
----
-2244
-5576
-68

query I rowsort
SELECT DISTINCT 58 + + col2 FROM tab1
----
112
115
154

query I rowsort
SELECT ALL + + cor0.col0 FROM tab0, tab1 AS cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870

onlyif mysql # use DIV operator for integer division
query I rowsort label-8163
SELECT + 3 DIV - col1 + col0 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-8163
SELECT + 3 / - col1 + col0 FROM tab0 AS cor0
----
24
35
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 73 + + col0 col1 FROM tab1 cor0
----
137
153
76

onlyif mysql # use DIV operator for integer division
query I rowsort label-8165
SELECT DISTINCT - col2 * cor0.col1 DIV + col0 - cor0.col0 FROM tab1 AS cor0
----
-471
-72
-95

skipif mysql # not compatible
query I rowsort label-8165
SELECT DISTINCT - col2 * cor0.col1 / + col0 - cor0.col0 FROM tab1 AS cor0
----
-471
-72
-95

query I rowsort
SELECT DISTINCT 21 AS col1 FROM tab0, tab2, tab1 AS cor0
----
21

query I rowsort
SELECT ALL - - cor0.col0 + - col2 AS col1 FROM tab0 cor0
----
-9
34
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col2 * col2 col2 FROM tab1 cor0
----
2916
3249
9216

query I rowsort
SELECT ALL - + 64 AS col0 FROM tab0 AS cor0
----
-64
-64
-64

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8170
SELECT - col0 * col2 + CAST( NULL AS SIGNED ) / + 33 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-8170
SELECT - col0 * col2 + CAST ( NULL AS INTEGER ) / + 33 col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 71 + col1 * - 95 FROM tab0 AS cor0
----
-8241
-8716
-9286

query I rowsort
SELECT col0 * col1 - col2 AS col2 FROM tab1 AS cor0
----
24
583
944

query I rowsort
SELECT - + col2 + col1 - + col2 FROM tab2 AS cor0
----
-23
-59
7

query I rowsort
SELECT + col0 * 43 + cor0.col0 FROM tab0 AS cor0
----
1056
1540
3916

query I rowsort
SELECT col2 + col0 + cor0.col0 FROM tab0 AS cor0
----
260
71
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + col1 * + col2 col2 FROM tab0 AS cor0
----
2871
7544
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - 2 col2 FROM tab2 AS cor0
----
-52
-54
-76

query I rowsort
SELECT DISTINCT cor0.col2 * - 84 FROM tab0 cor0
----
-2772
-6888
-84

query I rowsort
SELECT - 32 + 18 * - col2 + col2 FROM tab2 AS cor0
----
-474
-491
-678

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 1 * - 62 col0 FROM tab1, tab0 cor0
----
9 values hashing to f0e93f6ff5fc3cf50a14e276206dad5c

query I rowsort
SELECT ALL - col0 + + cor0.col0 * + 10 * col0 AS col0 FROM tab2 AS cor0
----
483
60762
62331

query I rowsort
SELECT ALL + col1 * + col2 + - 9 AS col0 FROM tab0 AS cor0
----
2829
7453
88

onlyif mysql # use DIV operator for integer division
query I rowsort label-8183
SELECT col2 * + 4 + + col0 DIV col1 FROM tab2 AS cor0
----
105
108
156

skipif mysql # not compatible
query I rowsort label-8183
SELECT col2 * + 4 + + col0 / col1 FROM tab2 AS cor0
----
105
108
156

query I rowsort
SELECT DISTINCT col2 * + cor0.col1 + - col1 * col1 FROM tab1 AS cor0
----
1079
470
728

query I rowsort
SELECT ALL - col1 + - 49 * cor0.col1 AS col0 FROM tab2 AS cor0
----
-1550
-2950
-850

onlyif mysql # use DIV operator for integer division
query I rowsort label-8186
SELECT DISTINCT - col1 DIV cor0.col0 + + cor0.col2 * + col1 + - col0 FROM tab0 AS cor0
----
2811
60
7372

skipif mysql # not compatible
query I rowsort label-8186
SELECT DISTINCT - col1 / cor0.col0 + + cor0.col2 * + col1 + - col0 FROM tab0 AS cor0
----
2811
60
7372

query I rowsort
SELECT col2 * - ( col0 ) AS col2 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT ALL col0 + - col1 * col2 FROM tab1 cor0
----
-1168
-1401
-506

onlyif mysql # use DIV operator for integer division
query I rowsort label-8189
SELECT ALL 30 DIV + col0 + ( - tab2.col2 + col2 ) AS col0 FROM tab2
----
0
0
4

skipif mysql # not compatible
query I rowsort label-8189
SELECT ALL 30 / + col0 + ( - tab2.col2 + col2 ) AS col0 FROM tab2
----
0
0
4

query I rowsort
SELECT ( - col0 ) * 28 * + 84 FROM tab0
----
-209328
-56448
-82320

query I rowsort
SELECT ALL + col2 + col1 * - 17 AS col2 FROM tab1
----
-113
-125
-388

onlyif mysql # use DIV operator for integer division
query I rowsort label-8192
SELECT ALL col2 DIV - col2 - - ( - col0 * col2 ) FROM tab1
----
-163
-3649
-7681

skipif mysql # not compatible
query I rowsort label-8192
SELECT ALL col2 / - col2 - - ( - col0 * col2 ) FROM tab1
----
-163
-3649
-7681

query I rowsort
SELECT ALL + tab1.col0 * col0 - col1 * tab1.col1 AS col0 FROM tab1
----
-667
3996
6231

onlyif mysql # use DIV operator for integer division
query I rowsort label-8194
SELECT col0 + col2 DIV col0 FROM tab2
----
10
78
79

skipif mysql # not compatible
query I rowsort label-8194
SELECT col0 + col2 / col0 FROM tab2
----
10
78
79

query I rowsort
SELECT - cor0.col0 * - col2 * - col1 FROM tab1 AS cor0
----
-36480
-4212
-99840

query I rowsort
SELECT ALL + - col1 * - col1 + 4 FROM tab2 AS cor0
----
293
3485
965

onlyif mysql # use DIV operator for integer division
query I rowsort label-8197
SELECT ALL col0 + + 5 DIV col0 AS col2 FROM tab1 AS cor0
----
4
64
80

skipif mysql # not compatible
query I rowsort label-8197
SELECT ALL col0 + + 5 / col0 AS col2 FROM tab1 AS cor0
----
4
64
80

query I rowsort
SELECT DISTINCT - col0 + 82 * 79 * cor0.col2 AS col1 FROM tab1 AS cor0
----
349809
369182
621808

query I rowsort
SELECT + col2 * col0 + cor0.col1 * + col2 FROM tab1 AS cor0
----
1566
4218
8928

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8200
SELECT ALL - col0 * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8200
SELECT ALL - col0 * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + cor0.col1 * col2 + col2 FROM tab2 AS cor0
----
1560
684
864

query I rowsort
SELECT ALL 55 * - col0 FROM tab0
----
-1320
-1925
-4895

query I rowsort
SELECT + + col0 + + col2 * col1 * + col1 AS col1 FROM tab2 AS cor0
----
11061
25954
90584

query I rowsort
SELECT - col0 + col0 * - 24 + - col2 FROM tab0
----
-2307
-633
-876

query I rowsort
SELECT DISTINCT - ( + col0 ) + ( + 68 ) * col0 AS col0 FROM tab1 cor0
----
201
4288
5360

onlyif mysql # use DIV operator for integer division
query I rowsort label-8206
SELECT ALL + 77 DIV + col0 FROM tab2 AS cor0
----
0
0
11

skipif mysql # not compatible
query I rowsort label-8206
SELECT ALL + 77 / + col0 FROM tab2 AS cor0
----
0
0
11

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8207
SELECT ALL CAST( 72 AS SIGNED ) FROM tab0
----
72
72
72

skipif mysql # not compatible
query I rowsort label-8207
SELECT ALL CAST ( 72 AS INTEGER ) FROM tab0
----
72
72
72

query I rowsort
SELECT DISTINCT + - col1 * col0 + - 84 FROM tab0 AS cor0
----
-2148
-3479
-8183

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 94 * + col1 + - ( + 35 ) * + col2 * col0 + col1 col0 FROM tab1
----
-126730
-267565
-3200

query I rowsort
SELECT ALL + 21 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * - col2 col0 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT DISTINCT + 45 * col1 AS col0 FROM tab0 AS cor0
----
3870
4095
4365

query I rowsort
SELECT ALL + 48 + - col1 FROM tab1 AS cor0
----
22
35
38

query I rowsort
SELECT DISTINCT - 49 * col1 FROM tab2 AS cor0
----
-1519
-2891
-833

onlyif mysql # use DIV operator for integer division
query I rowsort label-8215
SELECT DISTINCT col0 + + col2 DIV + col0 col1 FROM tab2 AS cor0
----
10
78
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8215
SELECT DISTINCT col0 + + col2 / + col0 col1 FROM tab2 AS cor0
----
10
78
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 12 * cor0.col2 col2 FROM tab2 AS cor0
----
-312
-324
-456

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( cor0.col2 ) + col0 * - col2 * - col0 col2 FROM tab0 AS cor0
----
1224
18975
649440

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 97 col1 FROM tab1 AS cor0
----
97

query I rowsort
SELECT DISTINCT 94 * col2 + 68 AS col2 FROM tab2 AS cor0
----
2512
2606
3640

query I rowsort
SELECT DISTINCT + 43 + col2 FROM tab2 AS cor0
----
69
70
81

query I rowsort
SELECT + ( col1 ) + + col2 * ( col0 * col0 ) AS col2 FROM tab0 cor0
----
1322
19094
649613

query I rowsort
SELECT + col2 + + 64 AS col2 FROM tab1 AS cor0
----
118
121
160

query I rowsort
SELECT ALL + col2 * + 81 AS col1 FROM tab0 cor0
----
2673
6642
81

query I rowsort
SELECT tab0.col2 + tab0.col1 - - col1 FROM tab0
----
195
205
264

query I rowsort
SELECT ALL + 4 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b

query I rowsort
SELECT DISTINCT + 21 * col1 - + col1 AS col0 FROM tab2
----
1180
340
620

query I rowsort
SELECT ALL - ( 88 ) * + cor0.col0 + + 17 AS col0 FROM tab0 AS cor0
----
-2095
-3063
-7815

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 33 + 47 * col1 + - col1 col0 FROM tab2 AS cor0
----
1459
2747
815

query I rowsort
SELECT + ( 93 ) * - cor0.col2 AS col0 FROM tab2 cor0
----
-2418
-2511
-3534

onlyif mysql # use DIV operator for integer division
query I rowsort label-8230
SELECT DISTINCT - col0 DIV - cor0.col1 + - col0 AS col2 FROM tab2 AS cor0
----
-7
-75
-77

skipif mysql # not compatible
query I rowsort label-8230
SELECT DISTINCT - col0 / - cor0.col1 + - col0 AS col2 FROM tab2 AS cor0
----
-7
-75
-77

query I rowsort
SELECT + + 97 * cor0.col1 FROM tab1 AS cor0
----
1261
2522
970

onlyif mysql # use DIV operator for integer division
query I rowsort label-8232
SELECT ALL - + col0 DIV - 28 AS col1 FROM tab2 AS cor0
----
0
2
2

skipif mysql # not compatible
query I rowsort label-8232
SELECT ALL - + col0 / - 28 AS col1 FROM tab2 AS cor0
----
0
2
2

query I rowsort
SELECT col0 - 20 FROM tab0
----
15
4
69

query I rowsort
SELECT DISTINCT col1 * - 53 + - col2 AS col0 FROM tab2 AS cor0
----
-1670
-3153
-939

onlyif mysql # use DIV operator for integer division
query I rowsort label-8235
SELECT - col0 * col1 + + col2 DIV - 92 AS col1 FROM tab2 cor0
----
-1343
-217
-4602

skipif mysql # not compatible
query I rowsort label-8235
SELECT - col0 * col1 + + col2 / - 92 AS col1 FROM tab2 cor0
----
-1343
-217
-4602

query I rowsort
SELECT DISTINCT + 60 AS col0 FROM tab0, tab2 AS cor0
----
60

query I rowsort
SELECT DISTINCT - 42 * col0 + col2 - + col0 AS col2 FROM tab1 AS cor0
----
-2695
-3344
-75

onlyif mysql # use DIV operator for integer division
query I rowsort label-8238
SELECT - 85 DIV + 16 FROM tab2 cor0
----
-5
-5
-5

skipif mysql # not compatible
query I rowsort label-8238
SELECT - 85 / + 16 FROM tab2 cor0
----
-5
-5
-5

query I rowsort
SELECT ALL - ( col2 ) * col2 FROM tab0 cor0
----
-1
-1089
-6724

query I rowsort
SELECT ALL - cor1.col1 AS col2 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6

query I rowsort
SELECT DISTINCT cor0.col2 * - col1 AS col1 FROM tab1 cor0
----
-1248
-1404
-570

query I rowsort
SELECT ALL - cor0.col2 * + 88 AS col2 FROM tab2 AS cor0
----
-2288
-2376
-3344

query I rowsort
SELECT - - col1 * cor0.col0 * col0 AS col2 FROM tab0 AS cor0
----
118825
49536
720811

query I rowsort
SELECT - col2 * col1 + col2 AS col0 FROM tab2
----
-1508
-608
-810

query I rowsort
SELECT DISTINCT + 90 FROM tab1, tab0 AS cor0
----
90

skipif mysql # not compatible
query I rowsort
SELECT CAST ( + 48 AS REAL ) FROM tab2, tab1 AS cor0
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b

query I rowsort
SELECT ALL - tab2.col1 * + ( col0 ) AS col2 FROM tab2
----
-1343
-217
-4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-8248
SELECT ALL + col0 * CAST( 86 AS SIGNED ) DIV + col2 AS col2 FROM tab0
----
3010
62
93

skipif mysql # not compatible
query I rowsort label-8248
SELECT ALL + col0 * CAST ( 86 AS INTEGER ) / + col2 AS col2 FROM tab0
----
3010
62
93

query I rowsort
SELECT + col2 * 38 AS col2 FROM tab1
----
2052
2166
3648

query I rowsort
SELECT ALL col0 * + col1 * - col0 AS col2 FROM tab2
----
-106097
-1519
-358956

query I rowsort
SELECT tab2.col2 * ( 16 ) * + col1 AS col2 FROM tab2
----
10336
13392
24544

query I rowsort
SELECT - ( - col2 ) * + 40 FROM tab0 AS cor0
----
1320
3280
40

query I rowsort
SELECT ALL col2 - + col1 * col2 AS col1 FROM tab0
----
-2805
-7380
-96

query I rowsort
SELECT DISTINCT - 47 FROM tab1 cor0
----
-47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 60 * + col2 + col0 * col0 col1 FROM tab1 AS cor0
----
-3231
640
676

query I rowsort
SELECT - - 49 FROM tab0 cor0
----
49
49
49

query I rowsort
SELECT - + col0 * - col0 + 1 * - cor0.col2 FROM tab1 AS cor0
----
-45
4039
6304

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8258
SELECT DISTINCT CAST( - col1 AS SIGNED ) col1 FROM tab2
----
-17
-31
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8258
SELECT DISTINCT CAST ( - col1 AS INTEGER ) col1 FROM tab2
----
-17
-31
-59

query I rowsort
SELECT ALL + col0 + col0 * + tab1.col0 FROM tab1
----
12
4160
6480

onlyif mysql # use DIV operator for integer division
query I rowsort label-8260
SELECT ALL ( col2 * - col0 ) + col0 DIV 8 FROM tab0
----
-31
-7287
-789

skipif mysql # not compatible
query I rowsort label-8260
SELECT ALL ( col2 * - col0 ) + col0 / 8 FROM tab0
----
-31
-7287
-789

query I rowsort
SELECT DISTINCT - 84 * col0 * tab1.col0 + - tab1.col2 FROM tab1
----
-344121
-537696
-810

query I rowsort
SELECT - col0 * - ( col2 ) + - col2 + tab0.col1 AS col1 FROM tab0
----
131
7307
845

query I rowsort
SELECT + col1 + - col2 * - 36 + - col0 AS col1 FROM tab0
----
1250
2954
98

query I rowsort
SELECT + 67 * col0 + + ( - 20 ) FROM tab1 AS cor0
----
181
4268
5340

onlyif mysql # use DIV operator for integer division
query I rowsort label-8265
SELECT + cor0.col2 DIV col0 + + 44 AS col1 FROM tab1 AS cor0
----
44
45
62

skipif mysql # not compatible
query I rowsort label-8265
SELECT + cor0.col2 / col0 + + 44 AS col1 FROM tab1 AS cor0
----
44
45
62

query I rowsort
SELECT - - cor0.col1 + + col1 FROM tab0 cor0
----
172
182
194

query I rowsort
SELECT ALL col1 + col1 * - 94 AS col1 FROM tab1 AS cor0
----
-1209
-2418
-930

query I rowsort
SELECT DISTINCT + + col1 * + col2 * 55 + - col0 * + col0 FROM tab2 AS cor0
----
29289
45986
78286

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + col0 * - 73 col0 FROM tab0 AS cor0
----
-1728
-2520
-6408

query I rowsort
SELECT ALL col0 + + cor0.col1 AS col2 FROM tab2 AS cor0
----
137
38
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 * + col1 col0 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT - 2 * - col0 - - cor0.col1 AS col0 FROM tab2 AS cor0
----
175
215
45

onlyif mysql # use DIV operator for integer division
query I rowsort label-8273
SELECT 60 DIV tab0.col1 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8273
SELECT 60 / tab0.col1 AS col2 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT tab1.col0 * + col1 * - ( col1 ) FROM tab1
----
-13520
-2028
-6400

query I rowsort
SELECT - col0 + ( - 30 ) * + cor0.col0 AS col1 FROM tab0 AS cor0
----
-1085
-2759
-744

query I rowsort
SELECT ALL col2 + - cor0.col0 + 1 FROM tab2 AS cor0
----
-40
-51
21

query I rowsort
SELECT DISTINCT + col1 + cor0.col0 FROM tab1 cor0
----
29
74
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-8278
SELECT DISTINCT col1 DIV col1 + 94 FROM tab2
----
95

skipif mysql # not compatible
query I rowsort label-8278
SELECT DISTINCT col1 / col1 + 94 FROM tab2
----
95

query I rowsort
SELECT - col2 * + 18 + col1 AS col1 FROM tab1 AS cor0
----
-1016
-1715
-946

query I rowsort
SELECT - + cor0.col0 * + 9 - cor0.col1 * col2 FROM tab0 cor0
----
-3054
-412
-8263

query I rowsort
SELECT col1 + + 40 FROM tab1 AS cor0
----
50
53
66

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8282
SELECT ALL - CAST( - 35 AS SIGNED ) * + col2 AS col2 FROM tab0
----
1155
2870
35

skipif mysql # not compatible
query I rowsort label-8282
SELECT ALL - CAST ( - 35 AS INTEGER ) * + col2 AS col2 FROM tab0
----
1155
2870
35

query I rowsort
SELECT ALL + 66 AS col1 FROM tab2, tab0 cor0
----
9 values hashing to 29794915b585eea848ad670075452c88

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8284
SELECT - CAST( NULL AS SIGNED ) / + col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8284
SELECT - CAST ( NULL AS INTEGER ) / + col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ( 98 ) AS col1 FROM tab1 AS cor0
----
98
98
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 46 - - col1 col2 FROM tab0 AS cor0
----
132
137
143

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 44 col1 FROM tab2
----
-44
-44
-44

onlyif mysql # use DIV operator for integer division
query I rowsort label-8288
SELECT - ( col1 ) DIV col1 - col2 * col2 FROM tab2 AS cor0
----
-1445
-677
-730

skipif mysql # not compatible
query I rowsort label-8288
SELECT - ( col1 ) / col1 - col2 * col2 FROM tab2 AS cor0
----
-1445
-677
-730

query I rowsort
SELECT DISTINCT - 31 + cor0.col2 + + col1 * - ( col0 ) AS col1 FROM tab2 AS cor0
----
-1336
-221
-4607

query I rowsort
SELECT ALL + - 15 + - col2 FROM tab2 AS cor0
----
-41
-42
-53

query I rowsort
SELECT DISTINCT + 80 * ( col1 ) + col0 FROM tab2 AS cor0
----
1439
2487
4798

query I rowsort
SELECT DISTINCT + 27 * cor0.col2 + col2 FROM tab1 AS cor0
----
1512
1596
2688

query I rowsort
SELECT - + col2 * - col1 + col2 AS col0 FROM tab2 AS cor0
----
1560
684
864

query I rowsort
SELECT - col2 * cor0.col0 + - cor0.col0 AS col2 FROM tab0 AS cor0
----
-70
-7387
-816

query I rowsort
SELECT ALL - + ( col0 ) + + col2 FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT + + col2 * col0 + col2 - + col0 * col0 FROM tab1 AS cor0
----
-391
1376
207

query I rowsort
SELECT DISTINCT - 11 + col1 FROM tab2 AS cor0
----
20
48
6

query I rowsort
SELECT 64 * 81 FROM tab2
----
5184
5184
5184

query I rowsort
SELECT DISTINCT 4 - + col1 * col0 FROM tab0
----
-2060
-3391
-8095

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 AS cor0 CROSS JOIN tab2, tab1 cor1, tab2 AS cor2
----
3645 values hashing to a6775d4c5b4880512ff9492a52ee0905

query I rowsort
SELECT col0 * - tab2.col2 + + tab2.col2 * + ( ( + col0 ) ) - + 26 AS col2 FROM tab2
----
-26
-26
-26

query I rowsort
SELECT ALL + col2 + + col0 + col2 * - col0 * col0 FROM tab1
----
-233351
-429
-614224

query I rowsort
SELECT + cor0.col0 * col2 + cor0.col1 + col2 * 80 FROM tab2 AS cor0
----
2380
4167
6059

query I rowsort
SELECT DISTINCT ( ( col1 ) ) * - col1 * - ( col2 ) + + 25 + + col1 FROM tab1
----
16262
36555
5735

query I rowsort
SELECT ALL + col2 + - col0 * ( col0 ) FROM tab1 AS cor0
----
-4039
-6304
45

onlyif mysql # use DIV operator for integer division
query I rowsort label-8306
SELECT DISTINCT col2 DIV col0 - + col0 FROM tab0 AS cor0
----
-23
-35
-89

skipif mysql # not compatible
query I rowsort label-8306
SELECT DISTINCT col2 / col0 - + col0 FROM tab0 AS cor0
----
-23
-35
-89

query I rowsort
SELECT + 57 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a

query I rowsort
SELECT DISTINCT - 46 AS col0 FROM tab2, tab1 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort
SELECT + col1 + CAST ( col0 AS REAL ) FROM tab1
----
29
74
93

query I rowsort
SELECT ALL - col0 + cor0.col1 * + col1 AS col2 FROM tab1 AS cor0
----
36
673
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-8311
SELECT ALL - - col1 DIV + col2 + + 97 + cor0.col1 * 3 FROM tab0 AS cor0
----
357
371
485

skipif mysql # not compatible
query I rowsort label-8311
SELECT ALL - - col1 / + col2 + + 97 + cor0.col1 * 3 FROM tab0 AS cor0
----
357
371
485

skipif mysql # not compatible
query I rowsort
SELECT - - col0 + + CAST ( - col1 AS REAL ) * col1 FROM tab2 AS cor0
----
-210
-3403
-954

query I rowsort
SELECT DISTINCT - 57 AS col0 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
-57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab2.col1 * 75 + col1 col0 FROM tab2
----
1292
2356
4484

query I rowsort
SELECT - col0 + ( + 75 + col0 ) AS col1 FROM tab0
----
75
75
75

query I rowsort
SELECT ALL - col0 + + 23 FROM tab1 AS cor0
----
-41
-57
20

query I rowsort
SELECT ALL - col2 + - 19 + col0 * col0 AS col0 FROM tab2 AS cor0
----
3
6039
6184

onlyif mysql # use DIV operator for integer division
query I rowsort label-8318
SELECT DISTINCT + col2 DIV - col0 + + cor0.col2 - + col1 FROM tab1 AS cor0
----
10
47
82

skipif mysql # not compatible
query I rowsort label-8318
SELECT DISTINCT + col2 / - col0 + + cor0.col2 - + col1 FROM tab1 AS cor0
----
10
47
82

query I rowsort
SELECT DISTINCT + + col0 - 86 FROM tab0 AS cor0
----
-51
-62
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * 14 col1 FROM tab1 AS cor0
----
-1344
-756
-798

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * 44 col0 FROM tab2 AS cor0
----
308
3432
3476

query I rowsort
SELECT DISTINCT col1 + 74 * col0 FROM tab2 AS cor0
----
549
5831
5863

query I rowsort
SELECT DISTINCT col0 * col1 * col2 AS col2 FROM tab1 cor0
----
36480
4212
99840

onlyif mysql # use DIV operator for integer division
query I rowsort label-8324
SELECT ALL col2 DIV - col2 - - col2 FROM tab0 AS cor0
----
0
32
81

skipif mysql # not compatible
query I rowsort label-8324
SELECT ALL col2 / - col2 - - col2 FROM tab0 AS cor0
----
0
32
81

query I rowsort
SELECT + - cor0.col1 * + 71 AS col0 FROM tab2 AS cor0
----
-1207
-2201
-4189

query I rowsort
SELECT DISTINCT col2 * 24 AS col0 FROM tab1 AS cor0
----
1296
1368
2304

query I rowsort
SELECT ALL - col1 + 56 AS col0 FROM tab1 AS cor0
----
30
43
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - 31 col0 FROM tab2 AS cor0
----
-1178
-806
-837

query I rowsort
SELECT - + 32 + + 90 FROM tab0 AS cor0
----
58
58
58

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8330
SELECT DISTINCT - - CAST( col2 AS SIGNED ) * cor0.col1 col0 FROM tab1 cor0
----
1248
1404
570

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8330
SELECT DISTINCT - - CAST ( col2 AS INTEGER ) * cor0.col1 col0 FROM tab1 cor0
----
1248
1404
570

onlyif mysql # use DIV operator for integer division
query I rowsort label-8331
SELECT DISTINCT - col1 DIV + ( - cor0.col2 ) - 35 AS col2 FROM tab0 AS cor0
----
-33
-34
62

skipif mysql # not compatible
query I rowsort label-8331
SELECT DISTINCT - col1 / + ( - cor0.col2 ) - 35 AS col2 FROM tab0 AS cor0
----
-33
-34
62

query I rowsort
SELECT ALL 65 + - cor0.col0 * col1 AS col0 FROM tab0 AS cor0
----
-1999
-3330
-8034

onlyif mysql # use DIV operator for integer division
query I rowsort label-8333
SELECT ALL 25 DIV col0 FROM tab1
----
0
0
8

skipif mysql # not compatible
query I rowsort label-8333
SELECT ALL 25 / col0 FROM tab1
----
0
0
8

onlyif mysql # use DIV operator for integer division
query I rowsort label-8334
SELECT + 14 DIV col0 + - ( col0 ) col2 FROM tab0
----
-24
-35
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8334
SELECT + 14 / col0 + - ( col0 ) col2 FROM tab0
----
-24
-35
-89

query I rowsort
SELECT ALL + ( cor0.col2 ) * 38 FROM tab2 AS cor0
----
1026
1444
988

query I rowsort
SELECT + ( col2 ) - - col0 * ( col1 * + tab0.col0 + - col1 ) FROM tab0
----
115431
47505
712794

query I rowsort
SELECT + 84 + tab2.col1 FROM tab2
----
101
115
143

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * col1 + + ( col1 ) + col2 col0 FROM tab0
----
195
2957
7635

onlyif mysql # use DIV operator for integer division
query I rowsort label-8339
SELECT DISTINCT + col2 DIV col2 + + tab1.col2 FROM tab1
----
55
58
97

skipif mysql # not compatible
query I rowsort label-8339
SELECT DISTINCT + col2 / col2 + + tab1.col2 FROM tab1
----
55
58
97

query I rowsort
SELECT - - cor0.col2 * + tab0.col1 AS col1 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 644c5ead65c52a5710ebe2f03958c49a

query I rowsort
SELECT + - cor0.col1 + cor0.col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-8342
SELECT ALL + + col0 DIV 53 AS col0 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-8342
SELECT ALL + + col0 / 53 AS col0 FROM tab1 AS cor0
----
0
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-8343
SELECT ALL + col1 DIV + 69 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8343
SELECT ALL + col1 / + 69 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + + col2 * col2 + - col0 AS col1 FROM tab2 AS cor0
----
1365
598
722

query I rowsort
SELECT DISTINCT - cor0.col1 + 88 AS col2 FROM tab2 AS cor0
----
29
57
71

onlyif mysql # use DIV operator for integer division
query I rowsort label-8346
SELECT ALL - cor0.col0 DIV 13 FROM tab0 AS cor0
----
-1
-2
-6

skipif mysql # not compatible
query I rowsort label-8346
SELECT ALL - cor0.col0 / 13 FROM tab0 AS cor0
----
-1
-2
-6

query I rowsort
SELECT DISTINCT - col2 * ( - col0 ) AS col0 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT DISTINCT - cor0.col1 * + col0 FROM tab0 cor0
----
-2064
-3395
-8099

query I rowsort
SELECT ALL col1 * - 89 FROM tab0 AS cor0
----
-7654
-8099
-8633

query I rowsort
SELECT - + col2 + - col1 * - col0 AS col2 FROM tab1 AS cor0
----
24
583
944

query I rowsort
SELECT DISTINCT + col2 * col0 + col2 + + 55 AS col2 FROM tab1
----
271
3760
7831

query I rowsort
SELECT ALL col2 * + col0 + col1 FROM tab1
----
188
3658
7693

query I rowsort
SELECT + tab2.col1 - col1 * 45 * col1 AS col2 FROM tab2
----
-12988
-156586
-43214

onlyif mysql # use DIV operator for integer division
query I rowsort label-8354
SELECT - col0 * col0 + + ( col0 ) * - col1 DIV ( col1 ) AS col1 FROM tab1
----
-12
-4160
-6480

skipif mysql # not compatible
query I rowsort label-8354
SELECT - col0 * col0 + + ( col0 ) * - col1 / ( col1 ) AS col1 FROM tab1
----
-12
-4160
-6480

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab0.col1 * col0 + - tab0.col1 col2 FROM tab0
----
1978
3298
8008

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 0 col0 FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 63 - - cor0.col0 col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
141
142
70

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8358
SELECT ALL 92 / + col0 + - CAST( 24 AS SIGNED ) * + tab1.col1 * ( - col2 * + tab1.col2 + CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8358
SELECT ALL 92 / + col0 + - CAST ( 24 AS INTEGER ) * + tab1.col1 * ( - col2 * + tab1.col2 + CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 48 * + col0 AS col2 FROM tab0 AS cor0
----
1152
1680
4272

query I rowsort
SELECT ALL - col0 * col2 - + ( + ( col2 ) ) * 22 AS col0 FROM tab2 AS cor0
----
-2600
-3838
-783

onlyif mysql # use DIV operator for integer division
query I rowsort label-8361
SELECT 80 DIV col1 AS col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8361
SELECT 80 / col1 AS col1 FROM tab0
----
0
0
0

query I rowsort
SELECT + + ( col1 ) * col0 AS col0 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT DISTINCT - col2 * - col2 AS col2 FROM tab0 cor0
----
1
1089
6724

onlyif mysql # use DIV operator for integer division
query I rowsort label-8364
SELECT - col1 DIV CAST( ( col2 ) AS SIGNED ) + cor0.col1 AS col2 FROM tab0 AS cor0
----
0
84
90

skipif mysql # not compatible
query I rowsort label-8364
SELECT - col1 / CAST ( ( col2 ) AS INTEGER ) + cor0.col1 AS col2 FROM tab0 AS cor0
----
0
84
90

query I rowsort
SELECT - cor0.col1 * - col1 + col0 FROM tab0 AS cor0
----
7420
8370
9444

query I rowsort
SELECT DISTINCT tab2.col0 + - 70 FROM tab2
----
-63
8
9

query I rowsort
SELECT + cor0.col1 * + cor0.col0 + col1 * - col1 FROM tab1 AS cor0
----
-598
540
871

query I rowsort
SELECT col0 * col0 + - col2 * + col0 * col0 + cor0.col2 FROM tab1 AS cor0
----
-229319
-423
-607904

query I rowsort
SELECT ALL - 51 * col0 FROM tab0 cor0
----
-1224
-1785
-4539

query I rowsort
SELECT DISTINCT - 55 AS col2 FROM tab2, tab2 cor0
----
-55

query I rowsort
SELECT - 28 * - 63 AS col1 FROM tab0 AS cor0
----
1764
1764
1764

query I rowsort
SELECT col1 + + col2 * col0 AS col0 FROM tab0 AS cor0
----
132
7389
878

query I rowsort
SELECT DISTINCT 72 + cor0.col1 + + col0 FROM tab1 AS cor0
----
101
146
165

onlyif mysql # use DIV operator for integer division
query I rowsort label-8374
SELECT + - col0 DIV col1 FROM tab1 AS cor0
----
-6
-6
0

skipif mysql # not compatible
query I rowsort label-8374
SELECT + - col0 / col1 FROM tab1 AS cor0
----
-6
-6
0

query I rowsort
SELECT DISTINCT + - cor0.col0 AS col2 FROM tab2, tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT + - col1 + - col0 * col1 + - cor0.col0 FROM tab1 AS cor0
----
-107
-1133
-714

query I rowsort
SELECT + - 20 * col1 AS col2 FROM tab0 AS cor0
----
-1720
-1820
-1940

query I rowsort
SELECT + 31 - col0 FROM tab0 AS cor0
----
-4
-58
7

query I rowsort
SELECT + - col0 - col2 * ( col0 ) FROM tab1 AS cor0
----
-165
-3712
-7760

query I rowsort
SELECT col2 * col2 + 87 FROM tab1 AS cor0
----
3003
3336
9303

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8381
SELECT ALL + CAST( NULL AS SIGNED ) / 43 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8381
SELECT ALL + CAST ( NULL AS INTEGER ) / 43 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col2 * col1 + - ( col2 + - col0 ) * + col1 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT 85 * + col0 * + col1 FROM tab1
----
54400
6630
88400

onlyif mysql # use DIV operator for integer division
query I rowsort label-8384
SELECT + col0 DIV - 63 - + cor0.col2 FROM tab0 AS cor0
----
-1
-33
-83

skipif mysql # not compatible
query I rowsort label-8384
SELECT + col0 / - 63 - + cor0.col2 FROM tab0 AS cor0
----
-1
-33
-83

query I rowsort
SELECT ALL - - cor0.col2 * + cor0.col2 AS col0 FROM tab0 AS cor0
----
1
1089
6724

onlyif mysql # use DIV operator for integer division
query I rowsort label-8386
SELECT DISTINCT + col0 DIV col0 FROM tab0 cor0
----
1

skipif mysql # not compatible
query I rowsort label-8386
SELECT DISTINCT + col0 / col0 FROM tab0 cor0
----
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-8387
SELECT DISTINCT - col2 + + 32 DIV 72 FROM tab1 AS cor0
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-8387
SELECT DISTINCT - col2 + + 32 / 72 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT 35 * col2 + 98 - col0 FROM tab0
----
1229
2879
98

query I rowsort
SELECT 27 - - col0 FROM tab0
----
116
51
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-8390
SELECT ALL + - col2 + - 46 DIV + cor0.col0 AS col2 FROM tab2 cor0
----
-26
-33
-38

skipif mysql # not compatible
query I rowsort label-8390
SELECT ALL + - col2 + - 46 / + cor0.col0 AS col2 FROM tab2 cor0
----
-26
-33
-38

query I rowsort
SELECT 2 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8392
SELECT + - CAST( - ( col2 ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-8392
SELECT + - CAST ( - ( col2 ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT + 75 + 29 * col0 AS col0 FROM tab2 AS cor0
----
2337
2366
278

query I rowsort
SELECT DISTINCT col0 * - col2 + col1 * cor0.col2 AS col1 FROM tab2 AS cor0
----
-2356
-494
648

query I rowsort
SELECT ALL - col2 * + 67 AS col0 FROM tab2
----
-1742
-1809
-2546

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( col0 ) col2 FROM tab2 cor0
----
7
78
79

query I rowsort
SELECT ( + col1 ) * col2 + col0 FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT ALL col1 * + col2 * - tab1.col0 AS col1 FROM tab1
----
-36480
-4212
-99840

query I rowsort
SELECT - col1 * 58 - - col2 AS col0 FROM tab1
----
-1454
-523
-658

query I rowsort
SELECT DISTINCT col1 * + 61 FROM tab0
----
5246
5551
5917

query I rowsort
SELECT col0 + 67 AS col2 FROM tab1
----
131
147
70

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8402
SELECT CAST( - cor0.col0 AS SIGNED ) AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b

skipif mysql # not compatible
query I rowsort label-8402
SELECT CAST ( - cor0.col0 AS INTEGER ) AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8403
SELECT DISTINCT - + cor0.col0 - + CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8403
SELECT DISTINCT - + cor0.col0 - + CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL

query I rowsort
SELECT DISTINCT - col2 * col2 * + col2 AS col2 FROM tab0 AS cor0
----
-1
-35937
-551368

query I rowsort
SELECT - - ( + col2 ) + col1 AS col0 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT ALL + + 89 * cor0.col0 - cor0.col1 AS col0 FROM tab0 cor0
----
2050
3018
7830

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8407
SELECT CAST( NULL AS SIGNED ) * + 0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8407
SELECT CAST ( NULL AS INTEGER ) * + 0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8408
SELECT ALL CAST( NULL AS DECIMAL ) * 68 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8408
SELECT ALL CAST ( NULL AS REAL ) * 68 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + ( col0 ) * + cor0.col0 * + ( + col1 ) AS col1 FROM tab1 AS cor0
----
234
40960
83200

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8410
SELECT CAST( NULL AS SIGNED ) + - cor0.col1 * col0 * col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8410
SELECT CAST ( NULL AS INTEGER ) + - cor0.col1 * col0 * col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col1 + + col2 * col1 AS col2 FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT ALL col0 - 88 * col0 FROM tab0 cor0
----
-2088
-3045
-7743

query I rowsort
SELECT + col1 + - ( 53 ) AS col2 FROM tab1
----
-27
-40
-43

query I rowsort
SELECT col2 * 86 + ( col1 ) AS col1 FROM tab2
----
2295
2353
3285

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - cor0.col0 ) * + cor0.col1 col1 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT ALL + cor0.col2 * 58 AS col1 FROM tab0 cor0
----
1914
4756
58

query I rowsort
SELECT ( + 87 ) + col0 FROM tab1 cor0
----
151
167
90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8418
SELECT ALL + CAST( NULL AS SIGNED ) + col1 * cor0.col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8418
SELECT ALL + CAST ( NULL AS INTEGER ) + col1 * cor0.col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 99 + + col0 * col0 AS col2 FROM tab1 AS cor0
----
108
4195
6499

query I rowsort
SELECT DISTINCT col2 * col2 + - col1 * ( col2 ) AS col0 FROM tab0 cor0
----
-1749
-738
-96

query I rowsort
SELECT - + col0 + col1 * ( + col1 ) * cor0.col0 AS col1 FROM tab0 AS cor0
----
177480
329280
736920

query I rowsort
SELECT DISTINCT + 46 + + col1 AS col0 FROM tab1 AS cor0
----
56
59
72

query I rowsort
SELECT - - col0 * + 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-8424
SELECT ALL 92 + - col0 * - CAST( NULL AS SIGNED ) * + col2 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8424
SELECT ALL 92 + - col0 * - CAST ( NULL AS INTEGER ) * + col2 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-8425
SELECT ALL + col2 DIV 27 col2 FROM tab0
----
0
1
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8425
SELECT ALL + col2 / 27 col2 FROM tab0
----
0
1
3

query I rowsort
SELECT 98 * - col1 + ( - ( + cor0.col1 ) ) AS col2 FROM tab1 cor0
----
-1287
-2574
-990

onlyif mysql # use DIV operator for integer division
query I rowsort label-8427
SELECT ALL col1 * col0 DIV + col2 FROM tab0 AS cor0
----
3395
62
98

skipif mysql # not compatible
query I rowsort label-8427
SELECT ALL col1 * col0 / + col2 FROM tab0 AS cor0
----
3395
62
98

query I rowsort
SELECT 97 * col1 + + col1 FROM tab0 AS cor0
----
8428
8918
9506

query I rowsort
SELECT DISTINCT - col0 + col1 * - 28 FROM tab0 AS cor0
----
-2432
-2637
-2751

query I rowsort
SELECT ALL + 50 * cor0.col0 FROM tab0 AS cor0
----
1200
1750
4450

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col2 + 59 col1 FROM tab0 cor0
----
1148
60
6783

query I rowsort
SELECT DISTINCT - col2 + col2 * 96 AS col0 FROM tab0 AS cor0
----
3135
7790
95

query I rowsort
SELECT + ( - 48 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 31c94943c073954e4ca20b170ab61f8c

query I rowsort
SELECT - - cor0.col1 * + ( + col1 ) AS col1 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT ALL col0 * ( col1 ) * - col1 FROM tab0 cor0
----
-177504
-329315
-737009

query I rowsort
SELECT + col0 + - tab2.col1 AS col0 FROM tab2
----
-24
19
62

query I rowsort
SELECT ALL col2 * + tab0.col0 + + ( col2 * col2 ) AS col0 FROM tab0
----
14022
1881
36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 * cor0.col1 col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 0cea1be551fb4bd88f4da0b7d676ee2f

query I rowsort
SELECT - col2 * col1 * + col0 AS col0 FROM tab2 AS cor0
----
-119652
-51034
-5859

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8440
SELECT DISTINCT + col2 + + CAST( col0 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
171
36
57

skipif mysql # not compatible
query I rowsort label-8440
SELECT DISTINCT + col2 + + CAST ( col0 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
171
36
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-8441
SELECT - + col1 DIV + ( 94 ) AS col0 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8441
SELECT - + col1 / + ( 94 ) AS col0 FROM tab0 AS cor0
----
-1
0
0

query I rowsort
SELECT ALL + col0 * + ( + col1 ) FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT DISTINCT col1 * - col2 + - 10 + col0 AS col1 FROM tab0 cor0
----
-2824
-72
-7383

query I rowsort
SELECT + cor0.col2 * - ( 88 ) AS col0 FROM tab2 AS cor0
----
-2288
-2376
-3344

query I rowsort
SELECT DISTINCT col2 * tab0.col1 + - tab0.col1 FROM tab0
----
0
2752
7371

onlyif mysql # use DIV operator for integer division
query I rowsort label-8446
SELECT + col0 DIV col0 + 88 * col0 FROM tab0
----
2113
3081
7833

skipif mysql # not compatible
query I rowsort label-8446
SELECT + col0 / col0 + 88 * col0 FROM tab0
----
2113
3081
7833

query I rowsort
SELECT DISTINCT tab1.col1 * - col0 + - col0 FROM tab1
----
-1120
-704
-81

query I rowsort
SELECT + cor0.col1 + 28 AS col0 FROM tab2 AS cor0
----
45
59
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 67 + tab1.col2 col1 FROM tab1
----
121
124
163

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab0, tab0 AS cor2
----
3645 values hashing to 53ea9df66efbebef5063fb0b15c25baa

query I rowsort
SELECT ALL - col2 * + ( 81 ) FROM tab0 AS cor0
----
-2673
-6642
-81

query I rowsort
SELECT col2 + + 11 * col2 + cor0.col0 FROM tab0 AS cor0
----
1073
420
47

query I rowsort
SELECT DISTINCT + col1 + 15 FROM tab0 cor0
----
101
106
112

query I rowsort
SELECT - 4 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5784540a5af6ca2be84399d314acd2fd

query I rowsort
SELECT - 90 FROM tab2, tab0 AS cor0
----
9 values hashing to f6f26b9a04da14807208b93d507095c5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 70 * col1 col1 FROM tab2
----
1190
2170
4130

query I rowsort
SELECT + - cor1.col2 AS col0 FROM tab2, tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6

query I rowsort
SELECT - 10 + col0 - - col1 FROM tab0
----
100
122
170

query I rowsort
SELECT 92 AS col2 FROM tab2, tab0 cor0 CROSS JOIN tab1, tab2 cor1
----
81 values hashing to cfcf012ce1a8dd60a7428b4ef6b95843

query I rowsort
SELECT 94 + + col0 AS col1 FROM tab0 AS cor0
----
118
129
183

query I rowsort
SELECT DISTINCT + 14 * col1 FROM tab2 cor0
----
238
434
826

query I rowsort
SELECT ALL + cor0.col1 - cor0.col0 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to c99cbeca6e6fdb3507b2e08470c1cda6

onlyif mysql # use DIV operator for integer division
query I rowsort label-8463
SELECT DISTINCT 10 + col1 * ( - col2 ) DIV col0 AS col1 FROM tab0
----
-108
-73
8

skipif mysql # not compatible
query I rowsort label-8463
SELECT DISTINCT 10 + col1 * ( - col2 ) / col0 AS col1 FROM tab0
----
-108
-73
8

query I rowsort
SELECT - col1 * col1 + tab2.col1 FROM tab2
----
-272
-3422
-930

onlyif mysql # use DIV operator for integer division
query I rowsort label-8465
SELECT ALL - col2 + col0 + + 98 DIV cor0.col0 FROM tab2 AS cor0
----
-6
42
53

skipif mysql # not compatible
query I rowsort label-8465
SELECT ALL - col2 + col0 + + 98 / cor0.col0 FROM tab2 AS cor0
----
-6
42
53

query I rowsort
SELECT + + ( col1 ) + + col0 FROM tab2 AS cor0
----
137
38
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8467
SELECT - + CAST( + col0 AS SIGNED ) + + col0 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8467
SELECT - + CAST ( + col0 AS INTEGER ) + + col0 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - 14 * + 17 + col1 * + ( - col1 ) AS col0 FROM tab2 cor0
----
-1199
-3719
-527

query I rowsort
SELECT ALL + 41 FROM tab0, tab2 cor0
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e

query I rowsort
SELECT DISTINCT + cor0.col2 AS col2 FROM tab2, tab1, tab2 AS cor0
----
26
27
38

query I rowsort
SELECT + ( col2 ) * cor0.col2 + col0 FROM tab1 AS cor0
----
2919
3313
9296

query I rowsort
SELECT ( + col0 + col2 ) FROM tab2
----
104
117
34

query I rowsort
SELECT 7 * tab0.col1 * - 31 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to f20f936bbb1209972f993622ac745b74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col2 - - col0 col1 FROM tab2 AS cor0
----
-1456
-567
-830

query I rowsort
SELECT - 63 + col1 AS col0 FROM tab1 AS cor0
----
-37
-50
-53

onlyif mysql # use DIV operator for integer division
query I rowsort label-8476
SELECT ALL cor0.col0 DIV 56 AS col2 FROM tab2, tab0 cor0
----
9 values hashing to 14fcfa6c11198893073049d94262832c

skipif mysql # not compatible
query I rowsort label-8476
SELECT ALL cor0.col0 / 56 AS col2 FROM tab2, tab0 cor0
----
9 values hashing to 14fcfa6c11198893073049d94262832c

query I rowsort
SELECT ALL - col0 * col1 * + tab0.col0 FROM tab0
----
-118825
-49536
-720811

query I rowsort
SELECT DISTINCT col2 + col1 + - col1 * + col0 AS col1 FROM tab0 AS cor0
----
-1945
-3297
-7926

query I rowsort
SELECT ALL - cor0.col0 * 83 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 8a9e6de455cd4a1e9d5248cc1ec144f5

onlyif mysql # use DIV operator for integer division
query I rowsort label-8480
SELECT + col1 + + col1 DIV col0 FROM tab1 AS cor0
----
10
13
34

skipif mysql # not compatible
query I rowsort label-8480
SELECT + col1 + + col1 / col0 FROM tab1 AS cor0
----
10
13
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 * + col2 col1 FROM tab2 AS cor0
----
1444
676
729

onlyif mysql # use DIV operator for integer division
query I rowsort label-8482
SELECT col1 + col0 DIV - col0 FROM tab1 AS cor0
----
12
25
9

skipif mysql # not compatible
query I rowsort label-8482
SELECT col1 + col0 / - col0 FROM tab1 AS cor0
----
12
25
9

query I rowsort
SELECT + col1 * 10 FROM tab0 AS cor0
----
860
910
970

query I rowsort
SELECT - col1 * - 98 FROM tab2 AS cor0
----
1666
3038
5782

query I rowsort
SELECT cor0.col0 * + 39 FROM tab0 AS cor0
----
1365
3471
936

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 - cor0.col1 col0 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT + col1 * - 86 AS col1 FROM tab1 AS cor0
----
-1118
-2236
-860

query I rowsort
SELECT ALL col0 + col0 * cor0.col2 + col2 AS col2 FROM tab2 AS cor0
----
2132
223
3119

onlyif mysql # use DIV operator for integer division
query I rowsort label-8489
SELECT + col2 DIV 56 AS col1 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-8489
SELECT + col2 / 56 AS col1 FROM tab1 AS cor0
----
0
1
1

query I rowsort
SELECT col1 * 93 AS col0 FROM tab0 AS cor0
----
7998
8463
9021

query I rowsort
SELECT DISTINCT + tab1.col1 * - col0 FROM tab1
----
-1040
-640
-78

query I rowsort
SELECT col0 + ( tab2.col2 ) FROM tab2
----
104
117
34

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8493
SELECT DISTINCT col0 * CAST( - col2 AS SIGNED ) FROM tab1
----
-162
-3648
-7680

skipif mysql # not compatible
query I rowsort label-8493
SELECT DISTINCT col0 * CAST ( - col2 AS INTEGER ) FROM tab1
----
-162
-3648
-7680

query I rowsort
SELECT - tab2.col0 + - col2 * - col0 FROM tab2
----
182
1950
2923

onlyif mysql # use DIV operator for integer division
query I rowsort label-8495
SELECT cor0.col1 + 5 * 66 DIV cor0.col1 + col0 AS col1 FROM tab1 AS cor0
----
107
118
41

skipif mysql # not compatible
query I rowsort label-8495
SELECT cor0.col1 + 5 * 66 / cor0.col1 + col0 AS col1 FROM tab1 AS cor0
----
107
118
41

onlyif mysql # use DIV operator for integer division
query I rowsort label-8496
SELECT col0 * col2 + col0 * col1 DIV - col0 AS col2 FROM tab2 AS cor0
----
158
1969
2985

skipif mysql # not compatible
query I rowsort label-8496
SELECT col0 * col2 + col0 * col1 / - col0 AS col2 FROM tab2 AS cor0
----
158
1969
2985

query I rowsort
SELECT - - cor0.col2 * col0 + 46 FROM tab1 AS cor0
----
208
3694
7726

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8498
SELECT DISTINCT CAST( NULL AS SIGNED ) + + ( cor0.col0 ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8498
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + ( cor0.col0 ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT ( 67 ) FROM tab2 AS cor0
----
67

query I rowsort
SELECT - 10 * - cor1.col0 FROM tab1, tab1 AS cor0, tab1 cor1
----
27 values hashing to f236f6e743698207a097cbd226c1e04a

onlyif mysql # use DIV operator for integer division
query I rowsort label-8501
SELECT - 78 + + cor0.col2 DIV - col1 AS col1 FROM tab2 AS cor0
----
-78
-78
-80

skipif mysql # not compatible
query I rowsort label-8501
SELECT - 78 + + cor0.col2 / - col1 AS col1 FROM tab2 AS cor0
----
-78
-78
-80

query I rowsort
SELECT DISTINCT - ( 94 ) AS col0 FROM tab1
----
-94

query I rowsort
SELECT ( + col2 * - col0 ) AS col1 FROM tab0
----
-35
-7298
-792

query I rowsort
SELECT - - cor0.col2 + - col1 AS col1 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT cor0.col0 - tab0.col1 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 4881f9f877f017ef0e22b1425444736c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + + tab0.col2 + + col2 col2 FROM tab0
----
253
37
90

query I rowsort
SELECT 73 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496

query I rowsort
SELECT - col1 * cor0.col1 * + 59 FROM tab0 AS cor0
----
-436364
-488579
-555131

query I rowsort
SELECT + - col0 * + col2 + col2 + col2 AS col2 FROM tab2 AS cor0
----
-135
-1976
-2926

query I rowsort
SELECT + ( - cor0.col1 ) * col0 + - col1 AS col0 FROM tab1 AS cor0
----
-104
-1053
-650

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8511
SELECT CAST( col0 AS SIGNED ) + col1 * col0 FROM tab0
----
2088
3430
8188

skipif mysql # not compatible
query I rowsort label-8511
SELECT CAST ( col0 AS INTEGER ) + col1 * col0 FROM tab0
----
2088
3430
8188

query I rowsort
SELECT + col1 * 57 AS col0 FROM tab0
----
4902
5187
5529

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8513
SELECT CAST( NULL AS SIGNED ) * - ( - col1 ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8513
SELECT CAST ( NULL AS INTEGER ) * - ( - col1 ) AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + tab1.col1 + 47 AS col1 FROM tab1
----
57
60
73

query I rowsort
SELECT + 74 * + col2 FROM tab0
----
2442
6068
74

query I rowsort
SELECT + ( - col2 ) - col0 AS col1 FROM tab0
----
-171
-36
-57

onlyif mysql # use DIV operator for integer division
query I rowsort label-8517
SELECT DISTINCT + 34 * 77 DIV tab0.col1 + - col2 * col1 FROM tab0
----
-2808
-71
-7434

skipif mysql # not compatible
query I rowsort label-8517
SELECT DISTINCT + 34 * 77 / tab0.col1 + - col2 * col1 FROM tab0
----
-2808
-71
-7434

query I rowsort
SELECT ALL + + col2 * - col1 AS col0 FROM tab0 cor0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT 70 + - col2 AS col0 FROM tab1 AS cor0
----
-26
13
16

query I rowsort
SELECT DISTINCT + - col2 * + col1 - + col2 * + col0 FROM tab2 AS cor0
----
-1026
-3562
-3648

query I rowsort
SELECT ALL - - col2 * - cor0.col1 AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8522
SELECT CAST( NULL AS SIGNED ) FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-8522
SELECT CAST ( NULL AS INTEGER ) FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT + ( col0 + - 15 ) FROM tab0
----
20
74
9

query I rowsort
SELECT ALL + col1 + col2 * + ( 70 * + col1 ) FROM tab1 AS cor0
----
39910
87373
98306

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 29 * cor0.col0 col1 FROM tab1 AS cor0
----
1856
2320
87

query I rowsort
SELECT DISTINCT - + col1 * col2 + + col0 AS col2 FROM tab2 AS cor0
----
-1456
-567
-830

query I rowsort
SELECT ALL - 81 + col1 FROM tab1 cor0
----
-55
-68
-71

query I rowsort
SELECT DISTINCT - 34 * - col2 + col1 FROM tab1 AS cor0
----
1862
1948
3277

query I rowsort
SELECT ALL 31 - - col2 FROM tab1 AS cor0
----
127
85
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * col0 col2 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT DISTINCT - - 8 * - col2 + 19 FROM tab2 cor0
----
-189
-197
-285

query I rowsort
SELECT DISTINCT - col2 * - col2 * - col0 AS col1 FROM tab0 AS cor0
----
-26136
-35
-598436

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab1 cor2
----
972 values hashing to 635619591835474e6aa6acdff4ab166c

query I rowsort
SELECT ALL cor0.col2 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1, tab1 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * + ( - col1 ) + col0 col1 FROM tab0 AS cor0
----
-2814
-62
-7373

query I rowsort
SELECT + col1 + + col2 - col0 AS col0 FROM tab0
----
63
84
95

query I rowsort
SELECT col2 * + col1 + + col1 FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT DISTINCT col1 * - 89 AS col1 FROM tab1 AS cor0
----
-1157
-2314
-890

query I rowsort
SELECT + - col2 * 10 AS col2 FROM tab2 cor0
----
-260
-270
-380

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8540
SELECT + cor0.col0 + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8540
SELECT + cor0.col0 + 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-8541
SELECT - col2 DIV col1 + + 79 - col1 * + col1 AS col0 FROM tab2 AS cor0
----
-212
-3402
-882

skipif mysql # not compatible
query I rowsort label-8541
SELECT - col2 / col1 + + 79 - col1 * + col1 AS col0 FROM tab2 AS cor0
----
-212
-3402
-882

query I rowsort
SELECT col0 - + 30 FROM tab0 AS cor0
----
-6
5
59

query I rowsort
SELECT - col1 + + cor0.col0 * col0 AS col0 FROM tab1 AS cor0
----
-17
4086
6387

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8544
SELECT ALL CAST( NULL AS SIGNED ) * - 65 + - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8544
SELECT ALL CAST ( NULL AS INTEGER ) * - 65 + - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8545
SELECT + col2 * - 20 + - cor0.col1 * CAST( - col2 AS SIGNED ) FROM tab1 AS cor0
----
-570
-672
324

skipif mysql # not compatible
query I rowsort label-8545
SELECT + col2 * - 20 + - cor0.col1 * CAST ( - col2 AS INTEGER ) FROM tab1 AS cor0
----
-570
-672
324

query I rowsort
SELECT DISTINCT cor0.col1 + - 34 FROM tab1 AS cor0
----
-21
-24
-8

query I rowsort
SELECT + 34 FROM tab0, tab1 AS cor0, tab1 AS cor1, tab1 AS cor2
----
81 values hashing to 6cda47a564e8ee9e9e7915815a3a7769

query I rowsort
SELECT ALL - + ( + 68 ) + cor0.col1 FROM tab1 AS cor0
----
-42
-55
-58

query I rowsort
SELECT - col2 * 60 AS col0 FROM tab1
----
-3240
-3420
-5760

query I rowsort
SELECT DISTINCT + col0 * - 96 * + col1 FROM tab1
----
-61440
-7488
-99840

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8551
SELECT DISTINCT CAST( NULL AS SIGNED ) / cor0.col1 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8551
SELECT DISTINCT CAST ( NULL AS INTEGER ) / cor0.col1 FROM tab0 cor0
----
NULL

query I rowsort
SELECT + - col1 * 11 + + col0 * 25 AS col2 FROM tab0 AS cor0
----
-192
-346
1224

onlyif mysql # use DIV operator for integer division
query I rowsort label-8553
SELECT 38 DIV - 35 AS col2 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8553
SELECT 38 / - 35 AS col2 FROM tab0 AS cor0
----
-1
-1
-1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8554
SELECT DISTINCT CAST( NULL AS SIGNED ) * cor0.col2 AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8554
SELECT DISTINCT CAST ( NULL AS INTEGER ) * cor0.col2 AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8555
SELECT DISTINCT + + CAST( NULL AS SIGNED ) / - col1 + + col2 * + col0 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8555
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) / - col1 + + col2 * + col0 AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + 42 FROM tab0 cor0
----
42
42
42

query I rowsort
SELECT + cor0.col0 * + col0 + col0 AS col2 FROM tab2 AS cor0
----
56
6162
6320

query I rowsort
SELECT DISTINCT + col1 + - 63 FROM tab1 AS cor0
----
-37
-50
-53

onlyif mysql # use DIV operator for integer division
query I rowsort label-8559
SELECT col2 DIV cor0.col2 AS col2 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8559
SELECT col2 / cor0.col2 AS col2 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT + + ( + 39 ) + col0 AS col0 FROM tab0 AS cor0
----
128
63
74

query I rowsort
SELECT cor0.col0 * + col2 - cor0.col2 FROM tab0 AS cor0
----
34
7216
759

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8562
SELECT ALL - col2 - - CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8562
SELECT ALL - col2 - - CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8563
SELECT ALL col0 - - CAST( + 78 AS SIGNED ) col2 FROM tab0
----
102
113
167

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8563
SELECT ALL col0 - - CAST ( + 78 AS INTEGER ) col2 FROM tab0
----
102
113
167

query I rowsort
SELECT DISTINCT + + 9 * 14 + - col2 FROM tab1 AS cor0
----
30
69
72

query I rowsort
SELECT + col2 + + 22 FROM tab0 AS cor0
----
104
23
55

onlyif mysql # use DIV operator for integer division
query I rowsort label-8566
SELECT ALL + col2 + + 7 + col2 DIV col1 AS col2 FROM tab0 AS cor0
----
40
8
89

skipif mysql # not compatible
query I rowsort label-8566
SELECT ALL + col2 + + 7 + col2 / col1 AS col2 FROM tab0 AS cor0
----
40
8
89

query I rowsort
SELECT DISTINCT - col0 + 62 FROM tab0 AS cor0
----
-27
27
38

query I rowsort
SELECT - - ( - col2 ) + 68 AS col2 FROM tab1 AS cor0
----
-28
11
14

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8569
SELECT ALL + CAST( col1 AS SIGNED ) + + tab0.col0 + - col0 FROM tab0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-8569
SELECT ALL + CAST ( col1 AS INTEGER ) + + tab0.col0 + - col0 FROM tab0
----
86
91
97

query I rowsort
SELECT ALL - 46 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 491ad1fb79fec0b5715ea54949d1aa2d

query I rowsort
SELECT 50 AS col1 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 314aace40e704c20a6be06204a329f80

query I rowsort
SELECT ALL - 80 * 43 + col2 + ( 59 ) FROM tab1
----
-3285
-3324
-3327

query I rowsort
SELECT ALL - col1 * 72 + col2 * + col1 * col2 AS col2 FROM tab0
----
-6887
605332
87462

query I rowsort
SELECT DISTINCT col1 + + col1 * col0 AS col1 FROM tab0
----
2150
3492
8190

query I rowsort
SELECT ALL col1 + + col2 * + col1 * + col0 FROM tab2
----
119711
51051
5890

query I rowsort
SELECT ALL - col2 + 80 FROM tab2 AS cor0
----
42
53
54

query I rowsort
SELECT DISTINCT col1 * ( - 66 ) FROM tab0 AS cor0
----
-5676
-6006
-6402

query I rowsort
SELECT ALL + col1 + + ( col2 ) * - col1 * cor0.col1 + col1 AS col0 FROM tab2 AS cor0
----
-10948
-25885
-90388

query I rowsort
SELECT DISTINCT - col2 + ( col1 * col2 ) AS col1 FROM tab0
----
2805
7380
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8580
SELECT + - col0 + CAST( NULL AS SIGNED ) - cor0.col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8580
SELECT + - col0 + CAST ( NULL AS INTEGER ) - cor0.col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 - 84 FROM tab2 AS cor0
----
-46
-57
-58

onlyif mysql # use DIV operator for integer division
query I rowsort label-8582
SELECT - 41 * col1 DIV + cor0.col0 AS col1 FROM tab0 cor0
----
-113
-146
-41

skipif mysql # not compatible
query I rowsort label-8582
SELECT - 41 * col1 / + cor0.col0 AS col1 FROM tab0 cor0
----
-113
-146
-41

query I rowsort
SELECT col2 * col0 + + col2 + cor0.col1 AS col0 FROM tab1 AS cor0
----
242
3715
7789

query I rowsort
SELECT ALL + col2 * 90 AS col0 FROM tab1 AS cor0
----
4860
5130
8640

query I rowsort
SELECT ALL ( col2 ) * - 39 AS col1 FROM tab1
----
-2106
-2223
-3744

query I rowsort
SELECT - 98 * - tab1.col2 + + tab1.col1 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 62329fe7e9da562b4ae22911fa16d97d

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 88 col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37

onlyif mysql # use DIV operator for integer division
query I rowsort label-8588
SELECT col0 DIV col1 + + col1 DIV - cor0.col2 col2 FROM tab1 AS cor0
----
0
6
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8588
SELECT col0 / col1 + + col1 / - cor0.col2 col2 FROM tab1 AS cor0
----
0
6
6

query I rowsort
SELECT ALL + cor1.col2 AS col0 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT - ( + 53 ) FROM tab0, tab0 AS cor0
----
9 values hashing to fee5c00ad71c23e23683a32c71fe6e7d

query I rowsort
SELECT + 49 * cor0.col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 6ffb716b0738bb1128918bbf0cb3458b

onlyif mysql # use DIV operator for integer division
query I rowsort label-8592
SELECT - cor0.col2 + + col2 + col2 DIV ( col0 * cor0.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-8592
SELECT - cor0.col2 + + col2 + col2 / ( col0 * cor0.col0 ) col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT 47 * + col0 * - col0 AS col0 FROM tab0
----
-27072
-372287
-57575

query I rowsort
SELECT ALL + - ( + 67 ) * - col1 + 37 FROM tab0 AS cor0
----
5799
6134
6536

query I rowsort
SELECT ALL + 21 + - col1 * - ( - col0 ) FROM tab0 AS cor0
----
-2043
-3374
-8078

query I rowsort
SELECT col0 * - col2 + - col0 AS col1 FROM tab2 AS cor0
----
-196
-2106
-3081

query I rowsort
SELECT 84 * col1 * + tab2.col1 FROM tab2
----
24276
292404
80724

query I rowsort
SELECT DISTINCT + 89 + col0 * col0 FROM tab2
----
138
6173
6330

query I rowsort
SELECT - 23 * ( col1 ) FROM tab0 AS cor0
----
-1978
-2093
-2231

onlyif mysql # use DIV operator for integer division
query I rowsort label-8600
SELECT DISTINCT + 9 + - col0 DIV - col2 FROM tab0
----
10
44
9

skipif mysql # not compatible
query I rowsort label-8600
SELECT DISTINCT + 9 + - col0 / - col2 FROM tab0
----
10
44
9

query I rowsort
SELECT 45 * col1 FROM tab0 cor0
----
3870
4095
4365

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 39 col2 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
-39

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT col0 + col1 * CAST ( tab1.col2 AS REAL ) AS col0 FROM tab1
----
1328
1407
634

query I rowsort
SELECT ( col0 ) + + tab2.col2 AS col1 FROM tab2
----
104
117
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 col2 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2

query I rowsort
SELECT 12 + + cor0.col0 FROM tab1 AS cor0
----
15
76
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 67 + + col2 * 14 + col1 col2 FROM tab2 AS cor0
----
476
490
616

query I rowsort
SELECT DISTINCT 16 FROM tab1, tab1 cor0, tab2 AS cor1
----
16

onlyif mysql # use DIV operator for integer division
query I rowsort label-8609
SELECT ALL - - col0 + - col0 + + cor0.col2 DIV 3 AS col2 FROM tab0 AS cor0
----
0
11
27

skipif mysql # not compatible
query I rowsort label-8609
SELECT ALL - - col0 + - col0 + + cor0.col2 / 3 AS col2 FROM tab0 AS cor0
----
0
11
27

query I rowsort
SELECT - 55 FROM tab2, tab1 cor0, tab0 AS cor1
----
27 values hashing to b90e74bece5521b514096c5b6e105fde

query I rowsort
SELECT DISTINCT 73 - + col1 AS col0 FROM tab2 AS cor0
----
14
42
56

query I rowsort
SELECT - - 62 + col1 AS col1 FROM tab0 cor0
----
148
153
159

query I rowsort
SELECT ALL + 13 + - col2 FROM tab2 AS cor0
----
-13
-14
-25

query I rowsort
SELECT DISTINCT col2 - 8 FROM tab0
----
-7
25
74

query I rowsort
SELECT - tab2.col2 + col1 * col0 + col0 AS col0 FROM tab2
----
1384
197
4654

query I rowsort
SELECT + col0 + + col0 * 75 AS col0 FROM tab1 cor0
----
228
4864
6080

onlyif mysql # use DIV operator for integer division
query I rowsort label-8617
SELECT ALL 51 DIV cor0.col2 - + 81 FROM tab1, tab1 cor0, tab1 AS cor1
----
27 values hashing to d0bfe8494f52235d9fcafb5ac5de3f81

skipif mysql # not compatible
query I rowsort label-8617
SELECT ALL 51 / cor0.col2 - + 81 FROM tab1, tab1 cor0, tab1 AS cor1
----
27 values hashing to d0bfe8494f52235d9fcafb5ac5de3f81

query I rowsort
SELECT - col0 + + ( - col2 ) * - col1 FROM tab1 AS cor0
----
1168
1401
506

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8619
SELECT - col2 * CAST( + col2 * col0 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-26136
-35
-598436

skipif mysql # not compatible
query I rowsort label-8619
SELECT - col2 * CAST ( + col2 * col0 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-26136
-35
-598436

query I rowsort
SELECT DISTINCT + 83 * col2 + - col1 AS col2 FROM tab1 AS cor0
----
4456
4721
7955

query I rowsort
SELECT DISTINCT + ( 64 ) + - col2 * col2 FROM tab2 AS cor0
----
-1380
-612
-665

query I rowsort
SELECT - - col0 + 17 FROM tab1 AS cor0
----
20
81
97

query I rowsort
SELECT + + 16 + col2 AS col1 FROM tab2 AS cor0
----
42
43
54

query I rowsort
SELECT ALL ( - 76 * tab0.col1 + cor0.col1 ) AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 76f63263067bb81785139cfec6223460

query I rowsort
SELECT ( - col1 ) - - col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - ( + 19 ) * + col0 AS col0 FROM tab2 AS cor0
----
-133
-1482
-1501

query I rowsort
SELECT DISTINCT + 66 AS col2 FROM tab2 AS cor0
----
66

onlyif mysql # use DIV operator for integer division
query I rowsort label-8628
SELECT - col1 DIV - col0 + + col2 col0 FROM tab1 AS cor0
----
57
62
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8628
SELECT - col1 / - col0 + + col2 col0 FROM tab1 AS cor0
----
57
62
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8629
SELECT CAST( NULL AS SIGNED ) * cor0.col1 AS col1 FROM tab1, tab2 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-8629
SELECT CAST ( NULL AS INTEGER ) * cor0.col1 AS col1 FROM tab1, tab2 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # use DIV operator for integer division
query I rowsort label-8630
SELECT - col1 DIV CAST( + col2 AS SIGNED ) + col2 AS col2 FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-8630
SELECT - col1 / CAST ( + col2 AS INTEGER ) + col2 AS col2 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT ALL + col2 + 32 FROM tab0 AS cor0
----
114
33
65

query I rowsort
SELECT DISTINCT col0 * + col0 + 25 * col1 FROM tab2 AS cor0
----
6666
7559
824

query I rowsort
SELECT DISTINCT - col2 * ( col1 ) AS col0 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT cor0.col2 + 38 * col0 AS col1 FROM tab1 AS cor0
----
168
2489
3136

query I rowsort
SELECT DISTINCT + ( - col0 ) - + col2 FROM tab1
----
-121
-176
-57

query I rowsort
SELECT + 95 * + col1 AS col1 FROM tab1
----
1235
2470
950

onlyif mysql # use DIV operator for integer division
query I rowsort label-8637
SELECT DISTINCT col0 DIV - CAST( - col0 * - col2 AS SIGNED ) + + tab0.col1 DIV - col1 FROM tab0
----
-1
-2

skipif mysql # not compatible
query I rowsort label-8637
SELECT DISTINCT col0 / - CAST ( - col0 * - col2 AS INTEGER ) + + tab0.col1 / - col1 FROM tab0
----
-1
-2

query I rowsort
SELECT DISTINCT - col2 * + tab1.col0 + col1 + - col0 FROM tab1
----
-139
-3702
-7747

onlyif mysql # use DIV operator for integer division
query I rowsort label-8639
SELECT - col0 + - col0 DIV 22 FROM tab1
----
-3
-66
-83

skipif mysql # not compatible
query I rowsort label-8639
SELECT - col0 + - col0 / 22 FROM tab1
----
-3
-66
-83

query I rowsort
SELECT ALL col2 * - 98 + col2 AS col0 FROM tab1
----
-5238
-5529
-9312

query I rowsort
SELECT ALL + cor1.col1 + + cor0.col0 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 047cb866c2bb7959119c6506cdc28687

query I rowsort
SELECT ALL + col2 * - 92 * ( + col1 * + col0 ) + col1 AS col1 FROM tab2
----
-11007925
-4695111
-538997

skipif mysql # not compatible
query I rowsort
SELECT col1 * + col1 + - col0 + - col0 * CAST ( + col2 AS REAL ) * - col1 FROM tab2
----
123055
51244
6813

onlyif mysql # use DIV operator for integer division
query I rowsort label-8644
SELECT + col0 * col1 + col0 DIV col1 col0 FROM tab1
----
1046
646
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8644
SELECT + col0 * col1 + col0 / col1 col0 FROM tab1
----
1046
646
78

query I rowsort
SELECT DISTINCT tab2.col2 + + 1 + - col2 FROM tab2
----
1

query I rowsort
SELECT - col2 * - 97 FROM tab0
----
3201
7954
97

query I rowsort
SELECT ALL + col0 * + col0 + - 26 FROM tab1 AS cor0
----
-17
4070
6374

query I rowsort
SELECT - col0 + col0 * cor0.col1 AS col1 FROM tab2 AS cor0
----
1264
210
4524

query I rowsort
SELECT ALL + col1 + - col2 * + col1 AS col1 FROM tab0 AS cor0
----
-2752
-7371
0

query I rowsort
SELECT ALL + 73 * + col2 + 73 AS col2 FROM tab2 AS cor0
----
1971
2044
2847

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 29 col0 FROM tab2
----
29
29
29

onlyif mysql # use DIV operator for integer division
query I rowsort label-8652
SELECT col2 DIV + 95 + - col0 AS col0 FROM tab0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-8652
SELECT col2 / + 95 + - col0 AS col0 FROM tab0
----
-24
-35
-89

query I rowsort
SELECT + col1 * - col2 - - col2 AS col2 FROM tab2 AS cor0
----
-1508
-608
-810

onlyif mysql # use DIV operator for integer division
query I rowsort label-8654
SELECT DISTINCT - col0 * col0 + + 60 DIV col0 + col0 AS col0 FROM tab2
----
-34
-6006
-6162

skipif mysql # not compatible
query I rowsort label-8654
SELECT DISTINCT - col0 * col0 + + 60 / col0 + col0 AS col0 FROM tab2
----
-34
-6006
-6162

query I rowsort
SELECT ALL + col1 + + col2 - col1 AS col0 FROM tab0 AS cor0
----
1
33
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - cor0.col0 col0 FROM tab1 AS cor0
----
-121
-176
-57

query I rowsort
SELECT ALL col1 + - cor0.col1 + - cor0.col2 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT + col1 * - col0 + col2 AS col0 FROM tab0 cor0
----
-2031
-3394
-8017

query I rowsort
SELECT DISTINCT + + 11 * + col0 AS col2 FROM tab0 AS cor0
----
264
385
979

query I rowsort
SELECT ALL + col2 * col0 + + cor0.col2 + + cor0.col0 AS col0 FROM tab2 AS cor0
----
2132
223
3119

skipif mysql # not compatible
query I rowsort
SELECT col2 * - cor0.col1 + CAST ( + col0 AS REAL ) FROM tab0 cor0
----
-2814
-62
-7373

onlyif mysql # use DIV operator for integer division
query I rowsort label-8662
SELECT ALL - - col1 DIV col1 + col0 + col0 FROM tab1 cor0
----
129
161
7

skipif mysql # not compatible
query I rowsort label-8662
SELECT ALL - - col1 / col1 + col0 + col0 FROM tab1 cor0
----
129
161
7

query I rowsort
SELECT - - ( cor0.col2 ) + col1 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT DISTINCT col1 + col2 + cor0.col2 FROM tab0 AS cor0
----
152
255
99

query I rowsort
SELECT + col1 * + col0 + col0 AS col2 FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT DISTINCT col2 * col0 + + col0 AS col0 FROM tab2 cor0
----
196
2106
3081

query I rowsort
SELECT + tab1.col2 + col0 + ( col1 * col2 ) AS col0 FROM tab1
----
1424
1461
691

query I rowsort
SELECT ALL 95 + col0 AS col2 FROM tab2
----
102
173
174

query I rowsort
SELECT DISTINCT - - 63 + col1 FROM tab2 AS cor0
----
122
80
94

onlyif mysql # use DIV operator for integer division
query I rowsort label-8670
SELECT ALL + ( col0 ) DIV col2 AS col0 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8670
SELECT ALL + ( col0 ) / col2 AS col0 FROM tab1 AS cor0
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 + cor0.col0 col1 FROM tab2 cor0
----
104
117
34

onlyif mysql # use DIV operator for integer division
query I rowsort label-8672
SELECT ALL - cor0.col0 DIV + cor0.col1 + 73 AS col2 FROM tab2 AS cor0
----
69
72
73

skipif mysql # not compatible
query I rowsort label-8672
SELECT ALL - cor0.col0 / + cor0.col1 + 73 AS col2 FROM tab2 AS cor0
----
69
72
73

query I rowsort
SELECT ALL + cor0.col1 * - 95 + col1 AS col1 FROM tab0 AS cor0
----
-8084
-8554
-9118

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8674
SELECT DISTINCT col2 / + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8674
SELECT DISTINCT col2 / + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT col1 - + col1 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + cor0.col1 * - ( col1 * col2 ) + 61 FROM tab2 AS cor0
----
-10921
-25886
-90445

query I rowsort
SELECT col0 + - ( 50 ) + - col2 * ( cor0.col0 ) AS col0 FROM tab2 AS cor0
----
-2000
-232
-2973

onlyif mysql # use DIV operator for integer division
query I rowsort label-8678
SELECT col0 - col0 DIV col0 AS col0 FROM tab2 AS cor0
----
6
77
78

skipif mysql # not compatible
query I rowsort label-8678
SELECT col0 - col0 / col0 AS col0 FROM tab2 AS cor0
----
6
77
78

query I rowsort
SELECT - col1 + ( cor0.col2 ) * col2 FROM tab0 AS cor0
----
-96
1003
6633

query I rowsort
SELECT + cor0.col2 * cor0.col0 - - col1 AS col0 FROM tab2 AS cor0
----
2087
220
3019

query I rowsort
SELECT + col2 * 9 - + col2 FROM tab0 cor0
----
264
656
8

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8682
SELECT + col2 + 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-8682
SELECT + col2 + CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 + - 23 * col2 * col0 FROM tab2 AS cor0
----
-4316
-46585
-69029

query I rowsort
SELECT ALL col2 * + 5 FROM tab2 cor0
----
130
135
190

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8685
SELECT ALL + CAST( NULL AS SIGNED ) + col2 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-8685
SELECT ALL + CAST ( NULL AS INTEGER ) + col2 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - 93 * - cor0.col0 FROM tab1 AS cor0
----
279
5952
7440

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8687
SELECT DISTINCT - CAST( NULL AS SIGNED ) / - 80 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8687
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / - 80 AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + - 28 * + col1 * + col1 + col0 * + 7 AS col1 FROM tab1 AS cor0
----
-18907
-2352
-4172

query I rowsort
SELECT + - ( + cor0.col1 ) + - col2 FROM tab1 AS cor0
----
-109
-67
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 20 + ( col0 ) col2 FROM tab2 AS cor0
----
-13
58
59

query I rowsort
SELECT - ( + ( + col2 ) ) * col2 FROM tab1 AS cor0
----
-2916
-3249
-9216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 + - cor0.col0 * + col2 col1 FROM tab2 AS cor0
----
-2087
-220
-3019

query I rowsort
SELECT - - col2 * + col2 * + col2 FROM tab0 cor0
----
1
35937
551368

onlyif mysql # use DIV operator for integer division
query I rowsort label-8694
SELECT ALL cor0.col2 * + col2 - - 17 DIV col1 AS col1 FROM tab2 AS cor0
----
1445
676
729

skipif mysql # not compatible
query I rowsort label-8694
SELECT ALL cor0.col2 * + col2 - - 17 / col1 AS col1 FROM tab2 AS cor0
----
1445
676
729

query I rowsort
SELECT ALL tab0.col2 - + col2 AS col1 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL tab1.col0 * - col0 * col2 FROM tab1
----
-233472
-486
-614400

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + col2 - - col2 col2 FROM tab0
----
-33
42
75

query I rowsort
SELECT tab2.col2 * - col0 + + tab2.col0 * + col2 AS col1 FROM tab2
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( - col0 * - col2 ) > NULL
----

query I rowsort
SELECT ALL + col1 * - tab2.col2 FROM tab2
----
-1534
-646
-837

onlyif mysql # use DIV operator for integer division
query I rowsort label-8701
SELECT col0 * col0 DIV - col2 AS col2 FROM tab0
----
-1225
-17
-96

skipif mysql # not compatible
query I rowsort label-8701
SELECT col0 * col0 / - col2 AS col2 FROM tab0
----
-1225
-17
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - col2 col0 FROM tab2 WHERE NOT NULL NOT BETWEEN ( NULL ) AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col1 + + col2 * col1 * col1 NOT IN ( col2 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN ( - col2 + col2 + col1 * col0 ) AND NULL
----

query I rowsort
SELECT ALL tab0.col2 + + col1 AS col1 FROM tab0
----
119
173
98

query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE NOT NULL NOT BETWEEN ( NULL ) AND + col0 * col0
----

query I rowsort
SELECT col0 * tab2.col1 - - col2 * tab2.col2 AS col0 FROM tab2
----
2787
5278
946

query I rowsort
SELECT col0 AS col2 FROM tab0 WHERE NULL BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT DISTINCT + tab2.col2 + + col1 + col1 AS col2 FROM tab2
----
144
72
89

query I rowsort
SELECT - col1 + + col1 + col0 FROM tab1
----
3
64
80

query I rowsort
SELECT DISTINCT + col0 + col2 + + col0 * - col2 AS col0 FROM tab0
----
-7127
-735
1

query I rowsort
SELECT DISTINCT col2 + tab0.col1 * col0 + + col2 * + col0 * col0 FROM tab0
----
21105
4621
657703

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - + tab2.col1 * + col0 col2 FROM tab2
----
-1305
-190
-4576

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col1 ) NOT BETWEEN col1 * col2 AND NULL
----

query I rowsort
SELECT DISTINCT tab2.col1 * col0 + col0 AS col0 FROM tab2
----
1422
224
4680

query I rowsort
SELECT - col2 * + cor0.col1 + col2 - col1 AS col0 FROM tab0 AS cor0
----
-193
-2891
-7471

onlyif mysql # use DIV operator for integer division
query I rowsort label-8717
SELECT + col1 DIV col1 + col1 * + col1 col2 FROM tab0 AS cor0
----
7397
8282
9410

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8717
SELECT + col1 / col1 + col1 * + col1 col2 FROM tab0 AS cor0
----
7397
8282
9410

query I rowsort
SELECT ALL - col1 * col2 AS col2 FROM tab2 WHERE NOT NULL NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT DISTINCT tab0.col1 * + col2 * + col0 + col2 FROM tab0
----
3396
664200
68145

onlyif mysql # use DIV operator for integer division
query I rowsort label-8720
SELECT DISTINCT + tab2.col2 * col0 + - col1 DIV col1 AS col1 FROM tab2
----
188
2027
3001

skipif mysql # not compatible
query I rowsort label-8720
SELECT DISTINCT + tab2.col2 * col0 + - col1 / col1 AS col1 FROM tab2
----
188
2027
3001

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + col1 + col1 col0 FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT + col0 * + col2 + + col0 FROM tab0
----
70
7387
816

onlyif mysql # use DIV operator for integer division
query I rowsort label-8723
SELECT col2 + - col0 DIV tab1.col1 AS col1 FROM tab1
----
51
54
90

skipif mysql # not compatible
query I rowsort label-8723
SELECT col2 + - col0 / tab1.col1 AS col1 FROM tab1
----
51
54
90

query I rowsort
SELECT ALL col2 * - col1 FROM tab2 WHERE NOT ( - col2 + col0 ) NOT IN ( - tab2.col0 * col0 )
----

query I rowsort
SELECT DISTINCT + tab0.col0 + - col0 * - tab0.col0 FROM tab0 WHERE NOT - tab0.col2 + + col2 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT col0 * col2 + col0 * - col2 FROM tab1
----
0
0
0

query I rowsort
SELECT + col2 * col0 + col2 FROM tab2
----
2054
216
3040

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col2 * col1 <= ( col1 )
----

query I rowsort
SELECT col1 * col2 + tab2.col0 FROM tab2
----
1612
725
844

query I rowsort
SELECT ALL + - col2 + + 53 FROM tab1 AS cor0
----
-1
-4
-43

onlyif mysql # use DIV operator for integer division
query I rowsort label-8731
SELECT + - 77 DIV col1 + col1 AS col2 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-8731
SELECT + - 77 / col1 + col1 AS col2 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort
SELECT ALL 12 + + cor0.col2 * col1 * CAST ( col2 AS REAL ) AS col0 FROM tab2 AS cor0
----
22611
24560
39896

onlyif mysql # use DIV operator for integer division
query I rowsort label-8733
SELECT ALL - col2 DIV ( - col2 ) AS col2 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8733
SELECT ALL - col2 / ( - col2 ) AS col2 FROM tab0
----
1
1
1

query I rowsort
SELECT ALL 75 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea

query I rowsort
SELECT DISTINCT - col2 * + 80 - - 50 FROM tab0
----
-2590
-30
-6510

query I rowsort
SELECT ALL 23 * + tab0.col0 * - col1 + 67 * - col0 + col1 AS col0 FROM tab0
----
-192149
-48994
-80333

query I rowsort
SELECT + col1 * + col0 + col2 AS col0 FROM tab2
----
1381
244
4628

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8738
SELECT ALL CAST( NULL AS SIGNED ) * - col2 * col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8738
SELECT ALL CAST ( NULL AS INTEGER ) * - col2 * col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8739
SELECT ALL CAST( - col0 AS SIGNED ) + col2 - + tab2.col0 AS col1 FROM tab2
----
-120
-130
13

skipif mysql # not compatible
query I rowsort label-8739
SELECT ALL CAST ( - col0 AS INTEGER ) + col2 - + tab2.col0 AS col1 FROM tab2
----
-120
-130
13

query I rowsort
SELECT ALL + 98 * + tab2.col1 AS col2 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 3e4820f1f0d2ac1dc31037fe975c9a6f

query I rowsort
SELECT DISTINCT + tab2.col2 * + col0 AS col2 FROM tab2
----
189
2028
3002

query I rowsort
SELECT col1 + + col2 * + col1 * + 51 FROM tab2
----
32963
42718
78293

query I rowsort
SELECT DISTINCT 0 * col1 * + col1 AS col0 FROM tab1
----
0

query I rowsort
SELECT col1 + + col1 * ( col2 ) AS col2 FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT - col1 * ( - 13 ) FROM tab1 AS cor0
----
130
169
338

query I rowsort
SELECT + - col1 * - 35 FROM tab2 AS cor0
----
1085
2065
595

query I rowsort
SELECT - col1 + - 47 - - 77 AS col1 FROM tab1
----
17
20
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col0 - - col1 col1 FROM tab2
----
137
38
96

query I rowsort
SELECT + - col1 * + ( - cor0.col1 ) FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT DISTINCT + col2 * col1 * + col1 AS col0 FROM tab2 AS cor0
----
10982
25947
90506

onlyif mysql # use DIV operator for integer division
query I rowsort label-8751
SELECT DISTINCT - + col0 * col2 DIV + 65 + cor0.col0 + 16 * cor0.col1 FROM tab2 AS cor0
----
305
501
991

skipif mysql # not compatible
query I rowsort label-8751
SELECT DISTINCT - + col0 * col2 / + 65 + cor0.col0 + 16 * cor0.col1 FROM tab2 AS cor0
----
305
501
991

query I rowsort
SELECT DISTINCT - col1 * ( - col2 * col1 ) + ( col1 ) AS col1 FROM tab1 cor0
----
16237
36530
5710

query I rowsort
SELECT - col1 * + ( cor0.col1 ) + + col2 FROM tab1 AS cor0
----
-43
-622
-73

query I rowsort
SELECT ALL ( 28 ) * col1 AS col0 FROM tab1 AS cor0
----
280
364
728

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 91 - + 11 * col0 col1 FROM tab0 AS cor0
----
-173
-294
-888

query I rowsort
SELECT ALL + ( + col1 ) + + col0 AS col1 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT tab0.col1 * - 45 FROM tab0
----
-3870
-4095
-4365

query I rowsort
SELECT - col2 + - tab0.col0 + col0 AS col1 FROM tab0
----
-1
-33
-82

query I rowsort
SELECT cor0.col1 + col2 - - col1 AS col1 FROM tab1 AS cor0
----
106
122
77

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8760
SELECT ALL - CAST( NULL AS SIGNED ) + - col2 * col2 * cor0.col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8760
SELECT ALL - CAST ( NULL AS INTEGER ) + - col2 * col2 * cor0.col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 48 * 37 col1 FROM tab0 AS cor0
----
1776
1776
1776

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 88 col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 467301f887614eb7beda22c561b0fad2

query I rowsort
SELECT DISTINCT - 50 * + col2 AS col0 FROM tab0 AS cor0
----
-1650
-4100
-50

onlyif mysql # use DIV operator for integer division
query I rowsort label-8764
SELECT - cor0.col1 DIV + col2 - + col0 FROM tab0 AS cor0
----
-132
-26
-90

skipif mysql # not compatible
query I rowsort label-8764
SELECT - cor0.col1 / + col2 - + col0 FROM tab0 AS cor0
----
-132
-26
-90

onlyif mysql # use DIV operator for integer division
query I rowsort label-8765
SELECT DISTINCT + 53 + col0 DIV - col1 AS col1 FROM tab1 AS cor0
----
47
53

skipif mysql # not compatible
query I rowsort label-8765
SELECT DISTINCT + 53 + col0 / - col1 AS col1 FROM tab1 AS cor0
----
47
53

query I rowsort
SELECT DISTINCT 67 + col1 AS col0 FROM tab0 AS cor0
----
153
158
164

query I rowsort
SELECT ALL + 60 AS col2 FROM tab2 cor0
----
60
60
60

query I rowsort
SELECT + 62 + col0 FROM tab2 AS cor0
----
140
141
69

query I rowsort
SELECT - 36 + - 88 + col0 AS col0 FROM tab2
----
-117
-45
-46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 * cor0.col2 - + col2 col2 FROM tab1 AS cor0
----
1152
1350
513

query I rowsort
SELECT DISTINCT + 48 - + col2 AS col0 FROM tab0 AS cor0
----
-34
15
47

query I rowsort
SELECT ALL + 50 + cor0.col0 FROM tab1 AS cor0
----
114
130
53

query I rowsort
SELECT + + col1 * col2 - - col1 AS col1 FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT DISTINCT ( col2 ) * cor0.col1 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT ALL ( col2 ) + col1 * col2 + col0 FROM tab1
----
1424
1461
691

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8776
SELECT ALL - CAST( NULL AS SIGNED ) / col0 + - col2 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8776
SELECT ALL - CAST ( NULL AS INTEGER ) / col0 + - col2 AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 43 + 75 * - col1 FROM tab1
----
-1907
-707
-932

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + + col2 col0 FROM tab2
----
0

query I rowsort
SELECT ALL 44 + col1 - + col2 FROM tab0
----
140
53
97

query I rowsort
SELECT ALL + col2 + 47 - + col0 AS col0 FROM tab1
----
40
63
98

query I rowsort
SELECT ALL + cor0.col1 + - cor0.col2 * - col2 FROM tab0 AS cor0
----
1175
6815
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8782
SELECT ALL + col1 + CAST( 65 * col0 AS SIGNED ) FROM tab0 AS cor0
----
1646
2372
5876

skipif mysql # not compatible
query I rowsort label-8782
SELECT ALL + col1 + CAST ( 65 * col0 AS INTEGER ) FROM tab0 AS cor0
----
1646
2372
5876

query I rowsort
SELECT + cor0.col1 * col0 + - col0 * col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + col1 + 24 FROM tab2 cor0
----
41
55
83

query I rowsort
SELECT col1 * - 94 * col2 AS col1 FROM tab0 AS cor0
----
-266772
-701428
-9118

onlyif mysql # use DIV operator for integer division
query I rowsort label-8786
SELECT ALL + col0 DIV - cor0.col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8786
SELECT ALL + col0 / - cor0.col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + + col2 * ( cor0.col0 ) AS col0 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT DISTINCT - col2 + col2 * 2 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT DISTINCT + - cor0.col0 + - col2 * + col0 AS col1 FROM tab2 cor0
----
-196
-2106
-3081

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8790
SELECT - col2 * CAST( col2 AS SIGNED ) * cor0.col1 col2 FROM tab0 AS cor0
----
-611884
-93654
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8790
SELECT - col2 * CAST ( col2 AS INTEGER ) * cor0.col1 col2 FROM tab0 AS cor0
----
-611884
-93654
-97

query I rowsort
SELECT tab0.col2 - col2 * - 48 AS col2 FROM tab0
----
1617
4018
49

query I rowsort
SELECT + 57 - col1 FROM tab2
----
-2
26
40

query I rowsort
SELECT ALL - - 50 * tab2.col2 AS col1 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 4d7afd25215a425cd08c88d7b6124676

query I rowsort
SELECT + col1 * ( - 86 ) + col2 FROM tab0
----
-7363
-7744
-8341

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 89 col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743

query I rowsort
SELECT DISTINCT col2 * + tab1.col0 AS col0 FROM tab1
----
162
3648
7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-8797
SELECT - - col2 DIV 2 FROM tab0 AS cor0
----
0
16
41

skipif mysql # not compatible
query I rowsort label-8797
SELECT - - col2 / 2 FROM tab0 AS cor0
----
0
16
41

query I rowsort
SELECT - col0 + + 76 * col1 AS col1 FROM tab1 AS cor0
----
1973
696
908

query I rowsort
SELECT ALL col1 + 7 AS col0 FROM tab0 cor0
----
104
93
98

query I rowsort
SELECT + col0 + - ( ( col2 ) * col2 ) AS col1 FROM tab0
----
-1065
-6635
34

onlyif mysql # use DIV operator for integer division
query I rowsort label-8801
SELECT col2 + tab0.col2 DIV col0 AS col2 FROM tab0
----
1
34
82

skipif mysql # not compatible
query I rowsort label-8801
SELECT col2 + tab0.col2 / col0 AS col2 FROM tab0
----
1
34
82

query I rowsort
SELECT - + col0 * col2 AS col2 FROM tab1 cor0
----
-162
-3648
-7680

query I rowsort
SELECT DISTINCT col0 * + col2 + cor0.col2 * + col1 + + col1 FROM tab0 AS cor0
----
14851
229
3716

query I rowsort
SELECT - tab0.col0 * col2 * col1 AS col1 FROM tab0 WHERE NOT NULL IN ( - col1 )
----

query I rowsort
SELECT ALL + col2 * col0 * + col0 FROM tab2
----
1323
158184
237158

query I rowsort
SELECT - col1 * - col0 + col2 * col1 FROM tab2
----
1054
1989
6136

query I rowsort
SELECT ALL col0 + + col0 + + col0 FROM tab2 cor0
----
21
234
237

query I rowsort
SELECT + col2 + col2 * col1 * + col1 AS col2 FROM tab0 AS cor0
----
244101
679124
9410

onlyif mysql # use DIV operator for integer division
query I rowsort label-8809
SELECT cor0.col2 DIV - cor0.col0 FROM tab2 AS cor0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-8809
SELECT cor0.col2 / - cor0.col0 FROM tab2 AS cor0
----
-3
0
0

query I rowsort
SELECT DISTINCT col2 * - col2 * col2 + col0 + col1 AS col1 FROM tab1 AS cor0
----
-157435
-185119
-884643

query I rowsort
SELECT ALL + - col0 * + col1 - - col2 FROM tab0 AS cor0
----
-2031
-3394
-8017

onlyif mysql # use DIV operator for integer division
query I rowsort label-8812
SELECT ALL + col2 DIV col0 + col1 * + tab0.col0 * col2 col0 FROM tab0
----
3395
664118
68113

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8812
SELECT ALL + col2 / col0 + col1 * + tab0.col0 * col2 col0 FROM tab0
----
3395
664118
68113

query I rowsort
SELECT DISTINCT + + col2 * - col0 * col0 FROM tab2 AS cor0
----
-1323
-158184
-237158

query I rowsort
SELECT ALL col0 * + cor0.col2 * col1 + - col0 FROM tab2 cor0
----
119574
50955
5852

query I rowsort
SELECT DISTINCT + - col1 * + col1 + - col1 FROM tab1 AS cor0
----
-110
-182
-702

query I rowsort
SELECT + - col1 + cor0.col2 * cor0.col1 + - col2 FROM tab1 AS cor0
----
1139
1324
503

onlyif mysql # use DIV operator for integer division
query I rowsort label-8817
SELECT DISTINCT + 72 + col0 DIV + col0 AS col0 FROM tab2 cor0
----
73

skipif mysql # not compatible
query I rowsort label-8817
SELECT DISTINCT + 72 + col0 / + col0 AS col0 FROM tab2 cor0
----
73

query I rowsort
SELECT ALL + 85 * - col0 FROM tab1 AS cor0
----
-255
-5440
-6800

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * col2 + + col0 col2 FROM tab2 cor0
----
196
2106
3081

query I rowsort
SELECT DISTINCT + col1 * + col0 - - col0 * - col2 AS col2 FROM tab2 cor0
----
-1659
2574
28

query I rowsort
SELECT DISTINCT - col0 * + col1 + - col2 AS col2 FROM tab0 AS cor0
----
-2097
-3396
-8181

onlyif mysql # use DIV operator for integer division
query I rowsort label-8822
SELECT DISTINCT - cor0.col1 + + col2 DIV - col0 FROM tab2 AS cor0
----
-17
-34
-59

skipif mysql # not compatible
query I rowsort label-8822
SELECT DISTINCT - cor0.col1 + + col2 / - col0 FROM tab2 AS cor0
----
-17
-34
-59

query I rowsort
SELECT ALL - col0 * + col2 * col1 + col1 FROM tab1 AS cor0
----
-36470
-4186
-99827

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * + col2 col0 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT DISTINCT 52 + col1 * col1 FROM tab0
----
7448
8333
9461

query IIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-8827
SELECT col1 + + cor0.col1 DIV - col0 AS col2 FROM tab2 AS cor0
----
17
27
59

skipif mysql # not compatible
query I rowsort label-8827
SELECT col1 + + cor0.col1 / - col0 AS col2 FROM tab2 AS cor0
----
17
27
59

query I rowsort
SELECT - col1 * + 90 * - col1 + cor0.col0 AS col2 FROM tab2 AS cor0
----
26089
313368
86497

query I rowsort
SELECT + col0 * + col0 + cor0.col1 * - col2 FROM tab0 AS cor0
----
-2262
1128
459

query I rowsort
SELECT ALL - cor0.col0 + + 66 FROM tab1 AS cor0
----
-14
2
63

query I rowsort
SELECT 40 + cor0.col0 AS col1 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 55a1ede2e4a3181ddb1d5c1c1dc85e87

query I rowsort
SELECT ALL - 13 * - col0 * col2 - + ( - col1 * col1 + col1 ) AS col2 FROM tab1
----
2756
47514
99996

query I rowsort
SELECT + col2 * col0 * 14 - - 64 FROM tab2 AS cor0
----
2710
28456
42092

onlyif mysql # use DIV operator for integer division
query I rowsort label-8834
SELECT + col0 * col0 DIV - 18 + col1 * col1 FROM tab2 cor0
----
-57
3143
959

skipif mysql # not compatible
query I rowsort label-8834
SELECT + col0 * col0 / - 18 + col1 * col1 FROM tab2 cor0
----
-57
3143
959

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8835
SELECT - col1 * - CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8835
SELECT - col1 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 * + 16 + cor0.col1 FROM tab2 cor0
----
1003
289
527

query I rowsort
SELECT - - 16 * ( col2 + + cor0.col1 ) FROM tab0 AS cor0
----
1568
1904
2768

query I rowsort
SELECT + ( cor0.col0 ) * col0 AS col0 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT + col1 * - ( + col1 ) * + 53 AS col0 FROM tab0 cor0
----
-391988
-438893
-498677

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 9 col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b

query I rowsort
SELECT 80 + col0 AS col2 FROM tab2
----
158
159
87

onlyif mysql # use DIV operator for integer division
query I rowsort label-8842
SELECT ALL - ( col2 ) DIV - col1 FROM tab1 cor0
----
2
5
7

skipif mysql # not compatible
query I rowsort label-8842
SELECT ALL - ( col2 ) / - col1 FROM tab1 cor0
----
2
5
7

query I rowsort
SELECT DISTINCT - col1 * - col0 - - cor0.col2 AS col2 FROM tab2 cor0
----
1381
244
4628

query I rowsort
SELECT - ( - col0 ) * + ( col0 ) AS col1 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT DISTINCT 18 * cor0.col2 FROM tab0 AS cor0
----
1476
18
594

query I rowsort
SELECT DISTINCT + + 24 * col1 AS col0 FROM tab2 AS cor0
----
1416
408
744

query I rowsort
SELECT - cor0.col1 + - ( cor0.col2 * col1 ) FROM tab0 AS cor0
----
-194
-2924
-7553

onlyif mysql # use DIV operator for integer division
query I rowsort label-8848
SELECT ALL + col2 DIV + col0 col2 FROM tab2 cor0
----
0
0
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8848
SELECT ALL + col2 / + col0 col2 FROM tab2 cor0
----
0
0
3

query I rowsort
SELECT 90 * 7 FROM tab0, tab1 AS cor0
----
9 values hashing to eafdd55eba409aef07eeaf3fefb16130

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - 88 * + col0 col0 FROM tab2 cor0
----
-585
-6805
-6935

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + + col1 * - cor0.col0 col2 FROM tab0 AS cor0
----
-2040
-3360
-8010

query I rowsort
SELECT DISTINCT - cor0.col2 * ( + col1 * + cor0.col0 ) + col1 AS col1 FROM tab0 AS cor0
----
-3298
-664027
-68026

query I rowsort
SELECT + 54 AS col1 FROM tab0 cor0
----
54
54
54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * col1 + - col0 col1 FROM tab1 AS cor0
----
1168
1401
506

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col0 ) - col0 col2 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL ( col0 + col0 ) * col2 * col0 AS col2 FROM tab2
----
2646
316368
474316

query I rowsort
SELECT ALL + 46 * - col1 AS col1 FROM tab2
----
-1426
-2714
-782

onlyif mysql # use DIV operator for integer division
query I rowsort label-8858
SELECT DISTINCT ( tab0.col2 ) DIV col2 AS col1 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-8858
SELECT DISTINCT ( tab0.col2 ) / col2 AS col1 FROM tab0
----
1

query I rowsort
SELECT ALL - 39 AS col1 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 504d14939d58aeb4a14f31c80de5b53e

query I rowsort
SELECT cor0.col2 * + 75 FROM tab2 cor0
----
1950
2025
2850

query I rowsort
SELECT DISTINCT + cor0.col1 * 46 FROM tab0 AS cor0
----
3956
4186
4462

onlyif mysql # use DIV operator for integer division
query I rowsort label-8862
SELECT ALL - col1 * ( cor0.col2 ) DIV col2 AS col0 FROM tab0 cor0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-8862
SELECT ALL - col1 * ( cor0.col2 ) / col2 AS col0 FROM tab0 cor0
----
-86
-91
-97

query I rowsort
SELECT DISTINCT + 73 + cor0.col2 FROM tab2 cor0
----
100
111
99

query I rowsort
SELECT col0 + - col1 * - col0 AS col1 FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT ALL + + 7 + + col1 AS col2 FROM tab1 AS cor0
----
17
20
33

onlyif mysql # use DIV operator for integer division
query I rowsort label-8866
SELECT DISTINCT - ( col0 ) + col1 DIV - 5 + col0 FROM tab0 AS cor0
----
-17
-18
-19

skipif mysql # not compatible
query I rowsort label-8866
SELECT DISTINCT - ( col0 ) + col1 / - 5 + col0 FROM tab0 AS cor0
----
-17
-18
-19

query I rowsort
SELECT + cor0.col2 * - 14 + col0 FROM tab1 AS cor0
----
-1264
-734
-753

query I rowsort
SELECT + - col1 * 69 FROM tab0 cor0
----
-5934
-6279
-6693

query I rowsort
SELECT DISTINCT - 24 * col0 + col2 AS col1 FROM tab2 cor0
----
-141
-1846
-1858

query I rowsort
SELECT DISTINCT + ( tab1.col2 ) + - tab1.col0 * 92 AS col2 FROM tab1
----
-222
-5831
-7264

query I rowsort
SELECT ALL - col1 + - col2 + col1 AS col1 FROM tab2 AS cor0
----
-26
-27
-38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 - - col2 col2 FROM tab0 cor0
----
119
173
98

query I rowsort
SELECT - - col2 + 81 FROM tab2 AS cor0
----
107
108
119

query I rowsort
SELECT ALL - 36 * - col2 AS col0 FROM tab1 cor0
----
1944
2052
3456

query I rowsort
SELECT DISTINCT col1 * + col0 + + 27 * col1 FROM tab1
----
1391
780
910

query I rowsort
SELECT ALL 10 + col1 FROM tab0 AS cor0
----
101
107
96

query I rowsort
SELECT - col1 * col0 + - ( col2 ) AS col1 FROM tab2 cor0
----
-1381
-244
-4628

query I rowsort
SELECT - 14 * - col0 FROM tab2 cor0
----
1092
1106
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-8879
SELECT ALL - + col1 DIV + col1 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8879
SELECT ALL - + col1 / + col1 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort
SELECT - col2 + CAST ( 68 AS REAL ) * col0 AS col1 FROM tab1 AS cor0
----
150
4295
5344

query I rowsort
SELECT DISTINCT col2 * 63 * cor0.col2 + + col0 AS col0 FROM tab0 AS cor0
----
423701
68631
98

query I rowsort
SELECT DISTINCT - col0 - - col1 * col2 FROM tab2 AS cor0
----
1456
567
830

query I rowsort
SELECT ALL col2 * + 80 - + col0 AS col0 FROM tab0 AS cor0
----
2616
45
6471

query I rowsort
SELECT ALL + - cor0.col2 * col0 + 89 AS col0 FROM tab0 AS cor0
----
-703
-7209
54

query I rowsort
SELECT ALL + col1 + - cor0.col0 * col0 + col1 * - cor0.col1 * col0 FROM tab1 AS cor0
----
-10486
-19907
-2011

query I rowsort
SELECT ALL + - cor0.col2 + 17 * + 73 FROM tab2 AS cor0
----
1203
1214
1215

query I rowsort
SELECT col1 + + cor0.col0 * - col2 AS col1 FROM tab0 AS cor0
----
-706
-7207
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 30 col2 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 6c98840ed134c765d56389f4150075f0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8889
SELECT + col0 * ( col2 * cor0.col0 ) + - CAST( NULL AS SIGNED ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8889
SELECT + col0 * ( col2 * cor0.col0 ) + - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8890
SELECT - col1 + CAST( NULL AS SIGNED ) * col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8890
SELECT - col1 + CAST ( NULL AS INTEGER ) * col2 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - col2 + 75 * - col1 AS col1 FROM tab1 AS cor0
----
-1071
-2004
-807

query I rowsort
SELECT ALL + 45 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050

query I rowsort
SELECT - + cor0.col1 + col2 * - 65 AS col1 FROM tab2 cor0
----
-1749
-1786
-2487

query I rowsort
SELECT + + col1 * + col1 * cor0.col2 + - col2 * - col2 FROM tab1 AS cor0
----
25440
39420
8949

onlyif mysql # use DIV operator for integer division
query I rowsort label-8895
SELECT col2 DIV + 34 FROM tab2 cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8895
SELECT col2 / + 34 FROM tab2 cor0
----
0
0
1

query I rowsort
SELECT - col2 + + tab2.col2 * - 50 FROM tab2
----
-1326
-1377
-1938

query I rowsort
SELECT + - 26 FROM tab0 cor0
----
-26
-26
-26

query I rowsort
SELECT 34 AS col1 FROM tab0, tab0 cor0
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039

query I rowsort
SELECT + cor0.col2 * - col0 + + col1 * + cor0.col0 - - col1 FROM tab0 AS cor0
----
1358
3457
892

query I rowsort
SELECT + col2 + - cor0.col0 + + cor0.col0 * + 47 AS col2 FROM tab1 AS cor0
----
192
3001
3776

onlyif mysql # use DIV operator for integer division
query I rowsort label-8901
SELECT - + col1 DIV + col1 AS col2 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8901
SELECT - + col1 / + col1 AS col2 FROM tab1 AS cor0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 98 * - col2 + - col1 col1 FROM tab2
----
-2607
-2677
-3741

query I rowsort
SELECT + - col2 * + col0 + col2 FROM tab1 cor0
----
-108
-3591
-7584

onlyif mysql # use DIV operator for integer division
query I rowsort label-8904
SELECT + col2 + + col1 DIV - col2 FROM tab0 AS cor0
----
-96
31
81

skipif mysql # not compatible
query I rowsort label-8904
SELECT + col2 + + col1 / - col2 FROM tab0 AS cor0
----
-96
31
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-8905
SELECT + - cor0.col2 * col2 DIV + 74 FROM tab1 AS cor0
----
-124
-39
-43

skipif mysql # not compatible
query I rowsort label-8905
SELECT + - cor0.col2 * col2 / + 74 FROM tab1 AS cor0
----
-124
-39
-43

query I rowsort
SELECT - ( 61 ) FROM tab0
----
-61
-61
-61

query I rowsort
SELECT ALL - col0 + col0 + - col1 AS col1 FROM tab1
----
-10
-13
-26

query I rowsort
SELECT + - col2 * col0 + ( + 65 ) AS col1 FROM tab0 AS cor0
----
-7233
-727
30

query I rowsort
SELECT DISTINCT 87 + + cor0.col2 FROM tab2 AS cor0
----
113
114
125

query I rowsort
SELECT - - 76 - - col0 AS col1 FROM tab1 cor0
----
140
156
79

query I rowsort
SELECT ALL + col1 * col0 + col2 AS col1 FROM tab1 AS cor0
----
1136
132
697

query I rowsort
SELECT col0 * - col2 + - col0 AS col0 FROM tab2 AS cor0
----
-196
-2106
-3081

query I rowsort
SELECT DISTINCT 6 * col0 AS col2 FROM tab1 cor0
----
18
384
480

query I rowsort
SELECT col1 + + 35 AS col2 FROM tab0 AS cor0
----
121
126
132

query I rowsort
SELECT ALL - 5 + col2 * col1 FROM tab0 AS cor0
----
2833
7457
92

query I rowsort
SELECT ALL col2 * 23 * + col2 AS col1 FROM tab0
----
154652
23
25047

query I rowsort
SELECT ALL cor0.col2 AS col2 FROM tab1, tab0, tab0 cor0
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT + - col0 * - col0 * - col0 - - 65 * cor0.col0 FROM tab1 AS cor0
----
-257984
-506800
168

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - ( - col2 ) + ( ( col2 ) ) col1 FROM tab1 AS cor0
----
111
178
272

query I rowsort
SELECT ALL + ( cor0.col0 ) AS col2 FROM tab0, tab1 cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870

onlyif mysql # use DIV operator for integer division
query I rowsort label-8921
SELECT - 21 DIV + 92 AS col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8921
SELECT - 21 / + 92 AS col1 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT - cor0.col0 * + cor0.col2 AS col0 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT ALL col0 * - col2 + + cor0.col0 + cor0.col0 AS col1 FROM tab1 AS cor0
----
-156
-3520
-7520

onlyif mysql # use DIV operator for integer division
query I rowsort label-8924
SELECT DISTINCT + col2 DIV cor0.col1 AS col2 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-8924
SELECT DISTINCT + col2 / cor0.col1 AS col2 FROM tab0 cor0
----
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8925
SELECT + col2 + + CAST( 55 AS SIGNED ) FROM tab0 AS cor0
----
137
56
88

skipif mysql # not compatible
query I rowsort label-8925
SELECT + col2 + + CAST ( 55 AS INTEGER ) FROM tab0 AS cor0
----
137
56
88

query I rowsort
SELECT ALL + cor1.col1 AS col2 FROM tab0, tab0 AS cor0, tab0 cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT + cor0.col0 * ( + col2 ) FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT ALL 40 AS col1 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to e4d10f7d6c34a281f524e45e82ebd2a0

query I rowsort
SELECT + - col1 * + 94 AS col1 FROM tab2 AS cor0
----
-1598
-2914
-5546

query I rowsort
SELECT ALL col1 - col2 * col0 AS col1 FROM tab1 AS cor0
----
-136
-3638
-7667

query I rowsort
SELECT + col1 * + 3 FROM tab2 AS cor0
----
177
51
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-8932
SELECT ALL - ( + ( cor0.col2 ) ) * - col1 + 68 * col0 DIV - 64 AS col1 FROM tab2 cor0
----
1452
563
830

skipif mysql # not compatible
query I rowsort label-8932
SELECT ALL - ( + ( cor0.col2 ) ) * - col1 + 68 * col0 / - 64 AS col1 FROM tab2 cor0
----
1452
563
830

query I rowsort
SELECT - + ( 96 ) FROM tab0 AS cor0
----
-96
-96
-96

query I rowsort
SELECT col0 + 38 AS col1 FROM tab2 AS cor0
----
116
117
45

query I rowsort
SELECT DISTINCT + col0 * cor0.col1 + col0 * - col2 + col2 FROM tab1 AS cor0
----
-2951
-30
-6544

query I rowsort
SELECT DISTINCT ( + 83 ) * col0 - + 62 AS col0 FROM tab2 AS cor0
----
519
6412
6495

query I rowsort
SELECT DISTINCT 6 AS col0 FROM tab2, tab1 AS cor0
----
6

onlyif mysql # use DIV operator for integer division
query I rowsort label-8938
SELECT DISTINCT + ( col0 ) * col2 + ( 24 ) DIV col0 FROM tab1 AS cor0
----
170
3648
7680

skipif mysql # not compatible
query I rowsort label-8938
SELECT DISTINCT + ( col0 ) * col2 + ( 24 ) / col0 FROM tab1 AS cor0
----
170
3648
7680

query I rowsort
SELECT DISTINCT 34 AS col0 FROM tab2, tab1 AS cor0
----
34

query I rowsort
SELECT DISTINCT - ( ( cor0.col0 ) ) FROM tab2, tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT ALL + col2 * cor0.col1 * 73 AS col2 FROM tab1 AS cor0
----
102492
41610
91104

query I rowsort
SELECT cor0.col0 * col1 + + cor0.col1 * col2 FROM tab0 cor0
----
15561
3492
4902

query I rowsort
SELECT DISTINCT col2 * - col1 + - 17 FROM tab2 AS cor0
----
-1551
-663
-854

query I rowsort
SELECT DISTINCT 4 + - cor0.col1 FROM tab2, tab1 AS cor0
----
-22
-6
-9

query I rowsort
SELECT DISTINCT 64 + 35 FROM tab1, tab1 cor0, tab2 AS cor1
----
99

query I rowsort
SELECT ALL col2 * 91 AS col2 FROM tab1 AS cor0
----
4914
5187
8736

query I rowsort
SELECT + cor0.col1 + + 75 * cor0.col2 AS col1 FROM tab2 AS cor0
----
2009
2056
2867

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 - + 42 * - col0 col0 FROM tab2 AS cor0
----
287
3198
3239

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8949
SELECT ALL + col0 + CAST( col1 AS SIGNED ) AS col2 FROM tab2 cor0
----
137
38
96

skipif mysql # not compatible
query I rowsort label-8949
SELECT ALL + col0 + CAST ( col1 AS INTEGER ) AS col2 FROM tab2 cor0
----
137
38
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8950
SELECT DISTINCT col1 * CAST( NULL AS SIGNED ) + col2 * - col2 * - col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8950
SELECT DISTINCT col1 * CAST ( NULL AS INTEGER ) + col2 * - col2 * - col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL - col1 * - col2 - + col0 * col0 AS col2 FROM tab1 AS cor0
----
-3526
-5152
1395

query I rowsort
SELECT - - col0 * col0 + - cor0.col0 AS col0 FROM tab0 AS cor0
----
1190
552
7832

query I rowsort
SELECT ALL + - col2 * col0 + + 32 AS col2 FROM tab2 AS cor0
----
-157
-1996
-2970

query I rowsort
SELECT - col1 * 24 FROM tab1 cor0
----
-240
-312
-624

onlyif mysql # use DIV operator for integer division
query I rowsort label-8955
SELECT DISTINCT col2 - + 52 DIV 83 AS col1 FROM tab2 AS cor0
----
26
27
38

skipif mysql # not compatible
query I rowsort label-8955
SELECT DISTINCT col2 - + 52 / 83 AS col1 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT 64 * - col2 * + col2 + + 93 * col1 - 40 * - col1 FROM tab1
----
-183166
-206606
-588095

query I rowsort
SELECT ALL - cor0.col0 * ( 69 ) AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to ba2588fb4253ddf38413b89598457b77

query I rowsort
SELECT ALL - 71 * + tab1.col0 FROM tab1
----
-213
-4544
-5680

query I rowsort
SELECT DISTINCT 28 AS col2 FROM tab0, tab1 AS cor0, tab0 cor1
----
28

query I rowsort
SELECT ALL 18 - cor1.col2 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 4aeacdeb01551577e26c6af293dc3e9f

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8961
SELECT ( col2 ) + col0 * - CAST( col2 AS SIGNED ) FROM tab1
----
-108
-3591
-7584

skipif mysql # not compatible
query I rowsort label-8961
SELECT ( col2 ) + col0 * - CAST ( col2 AS INTEGER ) FROM tab1
----
-108
-3591
-7584

onlyif mysql # use DIV operator for integer division
query I rowsort label-8962
SELECT + col0 + + col1 * - cor0.col1 * col0 + col2 DIV - col0 AS col1 FROM tab2 AS cor0
----
-22752
-271440
-6723

skipif mysql # not compatible
query I rowsort label-8962
SELECT + col0 + + col1 * - cor0.col1 * col0 + col2 / - col0 AS col1 FROM tab2 AS cor0
----
-22752
-271440
-6723

query I rowsort
SELECT + 47 * col2 AS col0 FROM tab0 cor0
----
1551
3854
47

onlyif mysql # use DIV operator for integer division
query I rowsort label-8964
SELECT ALL col1 + + 97 DIV - tab0.col1 col1 FROM tab0
----
85
90
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8964
SELECT ALL col1 + + 97 / - tab0.col1 col1 FROM tab0
----
85
90
96

query I rowsort
SELECT ALL - ( + tab1.col1 ) * - ( tab1.col2 ) AS col1 FROM tab1
----
1248
1404
570

query I rowsort
SELECT - 92 AS col0 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to a0e6b76227d870d10c4d9f46545a7c83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 18 + - col0 col0 FROM tab0 AS cor0
----
-17
-6
-71

query I rowsort
SELECT col0 * + col2 * - 90 FROM tab0 AS cor0
----
-3150
-656820
-71280

query I rowsort
SELECT ALL - - 26 * + col0 AS col2 FROM tab2 AS cor0
----
182
2028
2054

onlyif mysql # use DIV operator for integer division
query I rowsort label-8970
SELECT ALL - 15 + col2 DIV 30 AS col1 FROM tab1 AS cor0
----
-12
-14
-14

skipif mysql # not compatible
query I rowsort label-8970
SELECT ALL - 15 + col2 / 30 AS col1 FROM tab1 AS cor0
----
-12
-14
-14

onlyif mysql # use DIV operator for integer division
query I rowsort label-8971
SELECT ALL tab2.col2 + ( - tab2.col2 ) * col2 DIV + 51 FROM tab2
----
10
13
13

skipif mysql # not compatible
query I rowsort label-8971
SELECT ALL tab2.col2 + ( - tab2.col2 ) * col2 / + 51 FROM tab2
----
10
13
13

query I rowsort
SELECT - col0 * ( + col1 ) FROM tab0 AS cor0
----
-2064
-3395
-8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 - + ( + cor0.col1 ) col2 FROM tab2 AS cor0
----
-137
-38
-96

query I rowsort
SELECT 35 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 0d13dfd4c4a9d51ace3582c31cadcdbc

query I rowsort
SELECT ALL - col1 * col1 + col0 * + tab2.col0 FROM tab2
----
-912
2603
5952

query I rowsort
SELECT 51 * - 50 FROM tab0, tab0 AS cor0
----
9 values hashing to 26c303b2428418ad661c726d334bc160

query I rowsort
SELECT + col2 * 65 - cor0.col0 FROM tab2 cor0
----
1612
1748
2391

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8978
SELECT DISTINCT CAST( NULL AS SIGNED ) * - col1 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8978
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - col1 FROM tab2 cor0
----
NULL

query I rowsort
SELECT DISTINCT ( col2 ) * + col0 + 52 * - 73 FROM tab1 cor0
----
-148
-3634
3884

query I rowsort
SELECT + col0 * + 50 + col1 FROM tab0 AS cor0
----
1286
1847
4541

query I rowsort
SELECT ALL + + ( cor0.col2 ) + - col1 * - 87 + + col0 * + cor0.col1 FROM tab0 AS cor0
----
11835
16098
9579

query I rowsort
SELECT ALL - - 29 - 8 AS col0 FROM tab1 AS cor0
----
21
21
21

query I rowsort
SELECT ALL + + 92 + col1 FROM tab0 AS cor0
----
178
183
189

query I rowsort
SELECT + col1 * col2 * cor0.col1 + col0 FROM tab1 AS cor0
----
16304
36507
5764

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( 84 ) col2 FROM tab0 AS cor0
----
-84
-84
-84

query I rowsort
SELECT DISTINCT col2 + - 88 FROM tab1 AS cor0
----
-31
-34
8

query I rowsort
SELECT ALL 33 - - ( col2 * + 50 + 55 ) AS col0 FROM tab2 AS cor0
----
1388
1438
1988

query I rowsort
SELECT - + 41 + col2 FROM tab0 AS cor0
----
-40
-8
41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 40 * cor0.col1 + col2 col1 FROM tab0 AS cor0
----
3473
3722
3881

query I rowsort
SELECT DISTINCT + + ( ( - col0 ) ) + col0 * - 17 FROM tab0 AS cor0
----
-1602
-432
-630

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 64 col0 FROM tab2 AS cor0
----
64
64
64

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8992
SELECT DISTINCT CAST( NULL AS SIGNED ) * col0 * - col1 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8992
SELECT DISTINCT CAST ( NULL AS INTEGER ) * col0 * - col1 FROM tab0 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - ( col2 ) col0 FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT + col1 - ( + 55 ) * col0 FROM tab1
----
-139
-3510
-4387

query I rowsort
SELECT + ( col0 ) + + col0 AS col0 FROM tab1 AS cor0
----
128
160
6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8996
SELECT ALL - CAST( - col0 AS SIGNED ) + + col2 FROM tab0 AS cor0
----
171
36
57

skipif mysql # not compatible
query I rowsort label-8996
SELECT ALL - CAST ( - col0 AS INTEGER ) + + col2 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT DISTINCT + col0 * + 40 + cor0.col0 + ( col1 ) AS col1 FROM tab1 AS cor0
----
149
2634
3293

query I rowsort
SELECT ALL 5 + - col2 + col2 AS col0 FROM tab0 AS cor0
----
5
5
5

query I rowsort
SELECT DISTINCT - ( + col0 ) - - col1 FROM tab0 AS cor0
----
2
62

query I rowsort
SELECT - col1 * ( - col2 + + col2 * col2 ) AS col0 FROM tab2
----
-21762
-23902
-38350

query I rowsort
SELECT + 30 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89

query I rowsort
SELECT DISTINCT + ( + col2 ) + col2 AS col1 FROM tab2 AS cor0
----
52
54
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 8 + + col1 * + 13 col1 FROM tab2 AS cor0
----
229
411
775

query I rowsort
SELECT - cor0.col1 * cor0.col0 + 2 AS col0 FROM tab0 cor0
----
-2062
-3393
-8097

onlyif mysql # use DIV operator for integer division
query I rowsort label-9005
SELECT DISTINCT + col1 DIV col2 + - col1 + + col0 AS col1 FROM tab1
----
-23
54
67

skipif mysql # not compatible
query I rowsort label-9005
SELECT DISTINCT + col1 / col2 + - col1 + + col0 AS col1 FROM tab1
----
-23
54
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col2 ) * - col2 col1 FROM tab0
----
-1
-1089
-6724

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9007
SELECT DISTINCT CAST( + col1 AS SIGNED ) + col1 AS col2 FROM tab2
----
118
34
62

skipif mysql # not compatible
query I rowsort label-9007
SELECT DISTINCT CAST ( + col1 AS INTEGER ) + col1 AS col2 FROM tab2
----
118
34
62

query I rowsort
SELECT DISTINCT col2 * - col0 * - col1 FROM tab0
----
3395
664118
68112

query I rowsort
SELECT + 18 * - col2 * + col0 FROM tab1
----
-138240
-2916
-65664

query I rowsort
SELECT + + col1 * - cor0.col1 AS col0 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT DISTINCT col2 * col2 + - col1 * ( + tab1.col2 ) + - tab1.col0 FROM tab1
----
1509
2615
7888

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 65 * col0 col0 FROM tab1
----
195
4160
5200

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - 77 * ( + col2 ) * - 85 col2 FROM tab0 AS cor0
----
216018
536772
6546

query I rowsort
SELECT DISTINCT col1 * - 50 FROM tab1 AS cor0
----
-1300
-500
-650

onlyif mysql # use DIV operator for integer division
query I rowsort label-9015
SELECT - cor0.col1 DIV ( + 96 ) FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9015
SELECT - cor0.col1 / ( + 96 ) FROM tab0 AS cor0
----
-1
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9016
SELECT - col0 * CAST( NULL AS SIGNED ) * - cor0.col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9016
SELECT - col0 * CAST ( NULL AS INTEGER ) * - cor0.col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col1 * + col1 * col0 AS col1 FROM tab1 AS cor0
----
13520
2028
6400

query I rowsort
SELECT ALL + + col1 * 70 FROM tab1 cor0
----
1820
700
910

query I rowsort
SELECT col1 * col0 * col0 AS col1 FROM tab1 AS cor0
----
234
40960
83200

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9020
SELECT DISTINCT + col0 + - CAST( NULL AS SIGNED ) col0 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9020
SELECT DISTINCT + col0 + - CAST ( NULL AS INTEGER ) col0 FROM tab0
----
NULL

query I rowsort
SELECT - col2 + 96 * + col1 AS col0 FROM tab2
----
1594
2949
5638

query I rowsort
SELECT DISTINCT + col0 * - col2 * - col2 + - col1 * 43 FROM tab0
----
-4136
22438
594523

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9023
SELECT DISTINCT col1 + CAST( NULL AS SIGNED ) + + col2 * col1 * - col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9023
SELECT DISTINCT col1 + CAST ( NULL AS INTEGER ) + + col2 * col1 * - col1 FROM tab1
----
NULL

query I rowsort
SELECT col2 - tab2.col1 * + col1 AS col2 FROM tab2
----
-251
-3455
-934

query I rowsort
SELECT DISTINCT col2 + col0 AS col1 FROM tab2 WHERE NOT NULL NOT IN ( col0 + - col1 )
----

query I rowsort
SELECT col2 + col2 + col2 * col1 FROM tab1
----
1440
1512
684

query I rowsort
SELECT ALL col2 FROM tab1 AS cor0 WHERE NULL IN ( - col1 )
----

query I rowsort
SELECT + col0 + col0 * cor0.col2 AS col0 FROM tab0 AS cor0
----
70
7387
816

onlyif mysql # use DIV operator for integer division
query I rowsort label-9029
SELECT ALL - col0 DIV - col2 + + col1 FROM tab1
----
11
13
26

skipif mysql # not compatible
query I rowsort label-9029
SELECT ALL - col0 / - col2 + + col1 FROM tab1
----
11
13
26

query I rowsort
SELECT - tab2.col2 + + tab2.col0 * - tab2.col0 FROM tab2
----
-6110
-6279
-76

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col2 > NULL
----

query I rowsort
SELECT DISTINCT col2 + col1 AS col0 FROM tab0 WHERE NULL NOT BETWEEN NULL AND + col0
----

query I rowsort
SELECT DISTINCT col2 * - col2 + + col1 AS col2 FROM tab0
----
-1003
-6633
96

query I rowsort
SELECT DISTINCT col1 - - tab2.col0 * col2 FROM tab2
----
2087
220
3019

query I rowsort
SELECT ALL tab1.col2 - - col0 AS col1 FROM tab1
----
121
176
57

query I rowsort
SELECT col0 AS col0 FROM tab2 WHERE NOT col2 BETWEEN + col0 AND NULL
----
78
79

query I rowsort
SELECT col2 * + col0 + col1 AS col2 FROM tab0 AS cor0
----
132
7389
878

query I rowsort
SELECT - col2 * - col0 + + col0 * col1 FROM tab2 cor0
----
406
4345
6630

onlyif mysql # use DIV operator for integer division
query I rowsort label-9039
SELECT - - col2 DIV + col0 + col0 col1 FROM tab0 AS cor0
----
25
35
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9039
SELECT - - col2 / + col0 + col0 col1 FROM tab0 AS cor0
----
25
35
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-9040
SELECT col1 * col1 DIV - col1 AS col0 FROM tab2
----
-17
-31
-59

skipif mysql # not compatible
query I rowsort label-9040
SELECT col1 * col1 / - col1 AS col0 FROM tab2
----
-17
-31
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col2 + - cor0.col2 col1 FROM tab0, tab2 AS cor0
----
0

query I rowsort
SELECT + + cor0.col1 * cor0.col1 + col0 + col2 FROM tab1 AS cor0
----
221
345
733

query I rowsort
SELECT DISTINCT - + col0 * 15 + col1 FROM tab1 AS cor0
----
-1187
-19
-950

query I rowsort
SELECT ALL cor0.col2 * 47 FROM tab2 AS cor0
----
1222
1269
1786

query I rowsort
SELECT ALL col0 * - 85 + + col1 FROM tab1 AS cor0
----
-229
-5430
-6787

query I rowsort
SELECT + col0 + col2 + - col0 * + col0 AS col0 FROM tab2 cor0
----
-15
-5980
-6124

query I rowsort
SELECT DISTINCT + col2 + - col2 * - ( col0 ) FROM tab1 AS cor0
----
216
3705
7776

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9048
SELECT + col1 * - CAST( col2 AS SIGNED ) FROM tab1 AS cor0
----
-1248
-1404
-570

skipif mysql # not compatible
query I rowsort label-9048
SELECT + col1 * - CAST ( col2 AS INTEGER ) FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT ALL + col1 * col0 * 98 FROM tab2 AS cor0
----
131614
21266
450996

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1, tab2 cor1, tab1 AS cor2
----
972 values hashing to dd771e0c15d524f62127686e9bd43f9a

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0, tab1 cor1, tab2 AS cor2, tab0 AS cor3
----
3645 values hashing to ca4c79a162f92454e0544707b897521a

query I rowsort
SELECT DISTINCT - col1 * + 19 * 9 + + cor0.col1 * + 32 FROM tab1 AS cor0
----
-1390
-1807
-3614

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9053
SELECT ALL - - col2 * CAST( col0 AS SIGNED ) + cor0.col0 FROM tab1 AS cor0
----
165
3712
7760

skipif mysql # not compatible
query I rowsort label-9053
SELECT ALL - - col2 * CAST ( col0 AS INTEGER ) + cor0.col0 FROM tab1 AS cor0
----
165
3712
7760

query I rowsort
SELECT ALL + col1 * ( col2 + col1 ) * cor0.col1 AS col1 FROM tab1 AS cor0
----
18421
54080
6700

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9055
SELECT - - cor0.col1 + - CAST( NULL AS SIGNED ) + ( + col2 * - ( col1 ) ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9055
SELECT - - cor0.col1 + - CAST ( NULL AS INTEGER ) + ( + col2 * - ( col1 ) ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + 22 + + 15 col0 FROM tab2 AS cor0
----
169
1731
1753

query I rowsort
SELECT col0 * col2 * + tab1.col2 FROM tab1
----
207936
737280
8748

onlyif mysql # use DIV operator for integer division
query I rowsort label-9058
SELECT DISTINCT + tab0.col0 DIV col0 AS col2 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-9058
SELECT DISTINCT + tab0.col0 / col0 AS col2 FROM tab0
----
1

query I rowsort
SELECT col1 * + col1 + col2 AS col2 FROM tab1
----
157
265
730

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT IN ( + tab1.col1 + + col2 * col1 )
----

query I rowsort
SELECT ALL col1 + + col2 * + col0 + tab2.col1 FROM tab2
----
2146
251
3036

query I rowsort
SELECT + col1 FROM tab0 WHERE - col1 <= col0 * + col0 + col1 * col2
----
86
91
97

query I rowsort
SELECT ALL col2 * col2 + - col2 AS col2 FROM tab1
----
2862
3192
9120

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NULL ) NOT IN ( + col0 * - col0 )
----

query I rowsort
SELECT DISTINCT col0 - col2 * col1 * col2 AS col0 FROM tab1
----
-119728
-32426
-75813

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NULL ) IN ( col1 + - col1 + + col2 )
----

query I rowsort
SELECT DISTINCT tab2.col0 * + col2 * col2 + - col1 FROM tab2
----
114059
5072
52669

query III rowsort
SELECT * FROM tab2 WHERE ( col0 ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL col2 * col1 + 51 FROM tab1
----
1299
1455
621

query I rowsort
SELECT DISTINCT - 81 AS col2 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
-81

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9071
SELECT DISTINCT + + col1 + cor0.col0 * CAST( NULL AS DECIMAL ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9071
SELECT DISTINCT + + col1 + cor0.col0 * CAST ( NULL AS REAL ) FROM tab2 cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-9072
SELECT col2 + - col0 DIV col2 AS col1 FROM tab0
----
-34
33
81

skipif mysql # not compatible
query I rowsort label-9072
SELECT col2 + - col0 / col2 AS col1 FROM tab0
----
-34
33
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-9073
SELECT ALL - 72 DIV col2 FROM tab1 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-9073
SELECT ALL - 72 / col2 FROM tab1 AS cor0
----
-1
-1
0

query I rowsort
SELECT + - 24 + + col0 * col2 AS col0 FROM tab1 AS cor0
----
138
3624
7656

query I rowsort
SELECT DISTINCT - 23 * cor0.col2 + - col0 AS col2 FROM tab1 AS cor0
----
-1245
-1375
-2288

query I rowsort
SELECT DISTINCT cor0.col1 * + col0 + 44 FROM tab0 cor0
----
2108
3439
8143

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * + 59 col1 FROM tab2 AS cor0
----
1534
1593
2242

query I rowsort
SELECT DISTINCT - - col1 + 51 FROM tab1 AS cor0
----
61
64
77

query I rowsort
SELECT ALL - - col1 * + ( - col0 ) FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT col1 + + col2 * 53 AS col0 FROM tab2 cor0
----
1437
1462
2031

query I rowsort
SELECT + + col1 * + ( 21 + col2 ) AS col0 FROM tab2 cor0
----
1003
1488
2773

query I rowsort
SELECT ALL - col2 + cor0.col1 * - col0 FROM tab0 AS cor0
----
-2097
-3396
-8181

query I rowsort
SELECT cor0.col0 + col1 * col2 FROM tab0 AS cor0
----
132
2862
7551

query I rowsort
SELECT ALL - - col2 + 38 AS col0 FROM tab2 AS cor0
----
64
65
76

onlyif mysql # use DIV operator for integer division
query I rowsort label-9085
SELECT + cor0.col2 + - 94 * col0 DIV + col0 + + col1 FROM tab0 AS cor0
----
25
4
79

skipif mysql # not compatible
query I rowsort label-9085
SELECT + cor0.col2 + - 94 * col0 / + col0 + + col1 FROM tab0 AS cor0
----
25
4
79

query I rowsort
SELECT DISTINCT col2 * ( - col2 ) FROM tab0 cor0
----
-1
-1089
-6724

query I rowsort
SELECT - col2 * - 94 AS col1 FROM tab2 cor0
----
2444
2538
3572

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 48 + 88 * + col1 col0 FROM tab0 cor0
----
7616
8056
8584

onlyif mysql # use DIV operator for integer division
query I rowsort label-9089
SELECT DISTINCT + 15 DIV + 30 FROM tab2, tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9089
SELECT DISTINCT + 15 / + 30 FROM tab2, tab1 AS cor0
----
0

query I rowsort
SELECT - 78 * col2 + - col1 AS col2 FROM tab0 AS cor0
----
-175
-2660
-6487

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9091
SELECT DISTINCT col2 / + CAST( NULL AS DECIMAL ) + + 97 AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9091
SELECT DISTINCT col2 / + CAST ( NULL AS REAL ) + + 97 AS col1 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - cor0.col0 col1 FROM tab2 AS cor0
----
-1343
-217
-4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-9093
SELECT - cor0.col2 * col1 DIV + col1 FROM tab0 AS cor0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-9093
SELECT - cor0.col2 * col1 / + col1 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT + col1 * + col0 * - col0 FROM tab2 AS cor0
----
-106097
-1519
-358956

onlyif mysql # use DIV operator for integer division
query I rowsort label-9095
SELECT ALL + col2 DIV - col0 + 18 * ( col2 ) FROM tab2 AS cor0
----
468
483
684

skipif mysql # not compatible
query I rowsort label-9095
SELECT ALL + col2 / - col0 + 18 * ( col2 ) FROM tab2 AS cor0
----
468
483
684

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 92 col0 FROM tab1 AS cor0
----
92

query I rowsort
SELECT ALL + 5 FROM tab0 cor0
----
5
5
5

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9098
SELECT DISTINCT - CAST( col1 AS SIGNED ) col0 FROM tab0
----
-86
-91
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9098
SELECT DISTINCT - CAST ( col1 AS INTEGER ) col0 FROM tab0
----
-86
-91
-97

query I rowsort
SELECT ALL - col0 + col1 * tab2.col1 AS col2 FROM tab2
----
210
3403
954

query I rowsort
SELECT col0 * + col0 + 64 * col0 + col0 FROM tab2
----
11154
11376
504

onlyif mysql # use DIV operator for integer division
query I rowsort label-9101
SELECT DISTINCT col0 * cor0.col1 DIV 58 + col1 FROM tab0 AS cor0
----
121
155
230

skipif mysql # not compatible
query I rowsort label-9101
SELECT DISTINCT col0 * cor0.col1 / 58 + col1 FROM tab0 AS cor0
----
121
155
230

query I rowsort
SELECT DISTINCT - col0 * - col0 + 3 + 59 FROM tab2 AS cor0
----
111
6146
6303

query I rowsort
SELECT cor0.col0 + - col0 - 12 * - col0 FROM tab1 cor0
----
36
768
960

query I rowsort
SELECT DISTINCT + ( col2 ) + - ( - col2 ) AS col0 FROM tab0 AS cor0
----
164
2
66

query I rowsort
SELECT - 94 - col1 * 65 AS col1 FROM tab2 AS cor0
----
-1199
-2109
-3929

query I rowsort
SELECT - - 57 - col2 FROM tab1 AS cor0
----
-39
0
3

query I rowsort
SELECT - 59 + ( col0 ) * + col2 FROM tab1
----
103
3589
7621

query I rowsort
SELECT + col0 * - 2 + col2 AS col1 FROM tab0 AS cor0
----
-15
-69
-96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9109
SELECT CAST( NULL AS SIGNED ) * 13 + + col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9109
SELECT CAST ( NULL AS INTEGER ) * 13 + + col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 28 * col0 FROM tab1
----
1792
2240
84

onlyif mysql # use DIV operator for integer division
query I rowsort label-9111
SELECT DISTINCT + 45 DIV - 33 AS col0 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-9111
SELECT DISTINCT + 45 / - 33 AS col0 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT - - 97 * col2 AS col2 FROM tab0 AS cor0
----
3201
7954
97

query I rowsort
SELECT ALL + col1 * + col1 + - col0 FROM tab0 cor0
----
7372
8192
9374

onlyif mysql # use DIV operator for integer division
query I rowsort label-9114
SELECT ALL col1 * + col2 DIV col2 FROM tab1 cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-9114
SELECT ALL col1 * + col2 / col2 FROM tab1 cor0
----
10
13
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 53 col1 FROM tab0, tab1 AS cor0
----
53

query I rowsort
SELECT + - 20 + + col1 FROM tab1 cor0
----
-10
-7
6

onlyif mysql # use DIV operator for integer division
query I rowsort label-9117
SELECT ALL 76 + col2 DIV + col2 AS col0 FROM tab0
----
77
77
77

skipif mysql # not compatible
query I rowsort label-9117
SELECT ALL 76 + col2 / + col2 AS col0 FROM tab0
----
77
77
77

query I rowsort
SELECT + 67 * cor0.col2 FROM tab0 AS cor0
----
2211
5494
67

query I rowsort
SELECT DISTINCT - + 40 * - col0 - col0 AS col1 FROM tab0 AS cor0
----
1365
3471
936

query I rowsort
SELECT ALL ( col0 ) + - ( + col1 ) AS col1 FROM tab2 AS cor0
----
-24
19
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 * + cor0.col2 col2 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT ALL - cor0.col1 * + col0 + + col1 * col2 AS col2 FROM tab0 AS cor0
----
-3298
-637
774

query I rowsort
SELECT DISTINCT - + col2 + + col1 * + ( col0 ) FROM tab0 AS cor0
----
2031
3394
8017

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9124
SELECT - - ( col1 ) + - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9124
SELECT - - ( col1 ) + - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + col2 + - cor0.col1 * + col1 AS col0 FROM tab1 AS cor0
----
-43
-622
-73

onlyif mysql # use DIV operator for integer division
query I rowsort label-9126
SELECT col2 + cor0.col1 DIV - 79 AS col0 FROM tab2 cor0
----
26
27
38

skipif mysql # not compatible
query I rowsort label-9126
SELECT col2 + cor0.col1 / - 79 AS col0 FROM tab2 cor0
----
26
27
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor1.col2 col2 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

onlyif mysql # use DIV operator for integer division
query I rowsort label-9128
SELECT + col2 * 0 DIV - 32 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9128
SELECT + col2 * 0 / - 32 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + col0 * col0 - 71 FROM tab2 AS cor0
----
-22
6013
6170

query I rowsort
SELECT col2 * 39 AS col2 FROM tab2 cor0
----
1014
1053
1482

query I rowsort
SELECT + col1 + col2 * cor0.col0 AS col1 FROM tab0 AS cor0
----
132
7389
878

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9132
SELECT DISTINCT + 47 * + col1 * col2 + - CAST( NULL AS SIGNED ) / - col0 col0 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9132
SELECT DISTINCT + 47 * + col1 * col2 + - CAST ( NULL AS INTEGER ) / - col0 col0 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 44 col1 FROM tab2, tab2 AS cor0
----
44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + cor0.col0 col0 FROM tab1, tab1 cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870

query I rowsort
SELECT - + ( cor0.col1 ) + + col0 AS col0 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT - + ( + 12 ) * + col0 + 29 FROM tab2 AS cor0
----
-55
-907
-919

query I rowsort
SELECT col2 + col2 - + col2 * + 39 FROM tab2 cor0
----
-1406
-962
-999

query I rowsort
SELECT + + 94 * 93 * col1 + 7 * cor0.col1 * col2 FROM tab2 AS cor0
----
153136
276861
526516

query I rowsort
SELECT ALL - + col1 + - col0 * - col0 FROM tab1 cor0
----
-17
4086
6387

query I rowsort
SELECT - - ( col1 ) + + col0 - - 41 FROM tab1 AS cor0
----
115
134
70

query I rowsort
SELECT - col1 * + 17 FROM tab0
----
-1462
-1547
-1649

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 76 col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9143
SELECT col0 * CAST( + col0 AS SIGNED ) AS col2 FROM tab2
----
49
6084
6241

skipif mysql # not compatible
query I rowsort label-9143
SELECT col0 * CAST ( + col0 AS INTEGER ) AS col2 FROM tab2
----
49
6084
6241

query I rowsort
SELECT + ( + col2 ) + + cor0.col2 + col2 AS col0 FROM tab1 AS cor0
----
162
171
288

query I rowsort
SELECT ALL - + col0 * - 45 + + col1 * 22 + + col0 FROM tab2 AS cor0
----
1004
4008
4886

query I rowsort
SELECT ALL - 0 AS col0 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT + 10 * + col0 * - col2 AS col2 FROM tab2 AS cor0
----
-1890
-20280
-30020

query I rowsort
SELECT DISTINCT + col1 + - col1 * + cor0.col2 FROM tab1 AS cor0
----
-1235
-1378
-560

onlyif mysql # use DIV operator for integer division
query I rowsort label-9149
SELECT DISTINCT - col1 * ( + 62 ) DIV col1 AS col2 FROM tab0
----
-62

skipif mysql # not compatible
query I rowsort label-9149
SELECT DISTINCT - col1 * ( + 62 ) / col1 AS col2 FROM tab0
----
-62

query I rowsort
SELECT DISTINCT col1 + 89 + + col0 AS col2 FROM tab0
----
199
221
269

onlyif mysql # use DIV operator for integer division
query I rowsort label-9151
SELECT CAST( + col1 AS SIGNED ) * col0 * - ( 60 ) + col1 DIV col1 - - 90 AS col0 FROM tab1
----
-38309
-4589
-62309

skipif mysql # not compatible
query I rowsort label-9151
SELECT CAST ( + col1 AS INTEGER ) * col0 * - ( 60 ) + col1 / col1 - - 90 AS col0 FROM tab1
----
-38309
-4589
-62309

query I rowsort
SELECT DISTINCT col1 * + cor0.col0 + col2 * + 46 * col0 FROM tab1 AS cor0
----
168448
354320
7530

onlyif mysql # use DIV operator for integer division
query I rowsort label-9153
SELECT ALL col0 + + col2 - + ( - col0 ) * cor0.col2 DIV - ( col1 ) AS col2 FROM tab2 AS cor0
----
-59
28
70

skipif mysql # not compatible
query I rowsort label-9153
SELECT ALL col0 + + col2 - + ( - col0 ) * cor0.col2 / - ( col1 ) AS col2 FROM tab2 AS cor0
----
-59
28
70

query I rowsort
SELECT ALL 66 + - col0 AS col2 FROM tab2 AS cor0
----
-12
-13
59

query I rowsort
SELECT + ( - 7 ) * col0 AS col0 FROM tab2
----
-49
-546
-553

onlyif mysql # use DIV operator for integer division
query I rowsort label-9156
SELECT + 17 DIV 79 col0 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9156
SELECT + 17 / 79 col0 FROM tab1
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9157
SELECT + ( tab1.col0 * CAST( + col2 AS SIGNED ) ) AS col1 FROM tab1
----
162
3648
7680

skipif mysql # not compatible
query I rowsort label-9157
SELECT + ( tab1.col0 * CAST ( + col2 AS INTEGER ) ) AS col1 FROM tab1
----
162
3648
7680

query I rowsort
SELECT + col1 + col1 * cor0.col0 * col2 FROM tab1 AS cor0
----
36490
4238
99853

query I rowsort
SELECT + - col0 * 19 AS col0 FROM tab0 AS cor0
----
-1691
-456
-665

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + col2 + - col2 col2 FROM tab1 cor0
----
1152
1350
513

query I rowsort
SELECT DISTINCT col2 * 48 + + 29 * + col2 AS col2 FROM tab2 AS cor0
----
2002
2079
2926

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * ( 14 ) col2 FROM tab1 AS cor0
----
1344
756
798

onlyif mysql # use DIV operator for integer division
query I rowsort label-9163
SELECT ALL tab0.col2 DIV - col0 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9163
SELECT ALL tab0.col2 / - col0 FROM tab0
----
-1
0
0

query I rowsort
SELECT col2 * col2 * + col1 + col0 AS col0 FROM tab1
----
119888
32554
75819

query I rowsort
SELECT - col1 + 30 FROM tab1
----
17
20
4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9166
SELECT col0 + CAST( NULL AS SIGNED ) * col1 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9166
SELECT col0 + CAST ( NULL AS INTEGER ) * col1 AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-9167
SELECT + col2 DIV 32 + - col1 FROM tab2
----
-16
-31
-59

skipif mysql # not compatible
query I rowsort label-9167
SELECT + col2 / 32 + - col1 FROM tab2
----
-16
-31
-59

onlyif mysql # use DIV operator for integer division
query I rowsort label-9168
SELECT ALL + cor0.col2 DIV + 62 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 14fcfa6c11198893073049d94262832c

skipif mysql # not compatible
query I rowsort label-9168
SELECT ALL + cor0.col2 / + 62 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 14fcfa6c11198893073049d94262832c

query I rowsort
SELECT + col2 + - 61 AS col0 FROM tab1 AS cor0
----
-4
-7
35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 50 * col1 * - 29 + 70 col0 FROM tab0
----
-124630
-131880
-140580

query I rowsort
SELECT ALL + ( col1 ) * - 5 AS col0 FROM tab2 AS cor0
----
-155
-295
-85

onlyif mysql # use DIV operator for integer division
query I rowsort label-9172
SELECT + col0 + col0 DIV - ( 60 ) AS col0 FROM tab1 AS cor0
----
3
63
79

skipif mysql # not compatible
query I rowsort label-9172
SELECT + col0 + col0 / - ( 60 ) AS col0 FROM tab1 AS cor0
----
3
63
79

query I rowsort
SELECT ALL 92 * - col0 AS col2 FROM tab1 AS cor0
----
-276
-5888
-7360

query I rowsort
SELECT DISTINCT + 2 * - col1 - col2 FROM tab0 AS cor0
----
-195
-205
-264

query I rowsort
SELECT + - cor0.col0 - + col0 FROM tab2 cor0
----
-14
-156
-158

query I rowsort
SELECT ALL 11 * col2 AS col2 FROM tab0 AS cor0
----
11
363
902

onlyif mysql # use DIV operator for integer division
query I rowsort label-9177
SELECT - col1 DIV - ( 99 ) + + col1 FROM tab0 cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-9177
SELECT - col1 / - ( 99 ) + + col1 FROM tab0 cor0
----
86
91
97

query I rowsort
SELECT - ( + col0 ) * col1 + 87 + col1 FROM tab1
----
-543
-940
35

query I rowsort
SELECT + 41 + + col0 + + col2 FROM tab0
----
212
77
98

query I rowsort
SELECT + 76 - 88 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to e698dd57d3aac30af14ce35da434bb45

query I rowsort
SELECT DISTINCT + 9 + - 6 AS col1 FROM tab2 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + 2 col1 FROM tab2 cor0
----
-14
-156
-158

query I rowsort
SELECT DISTINCT - ( cor0.col2 ) * - col2 * - 71 - + 48 AS col0 FROM tab0 AS cor0
----
-119
-477452
-77367

query I rowsort
SELECT ALL cor0.col2 AS col1 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT DISTINCT 18 * 89 AS col2 FROM tab2 AS cor0
----
1602

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9186
SELECT - col0 + + CAST( col1 AS SIGNED ) AS col0 FROM tab1
----
-54
-67
23

skipif mysql # not compatible
query I rowsort label-9186
SELECT - col0 + + CAST ( col1 AS INTEGER ) AS col0 FROM tab1
----
-54
-67
23

query I rowsort
SELECT DISTINCT col2 + col2 * col1 AS col1 FROM tab1 AS cor0
----
1344
1458
627

onlyif mysql # use DIV operator for integer division
query I rowsort label-9188
SELECT + - cor0.col1 DIV 34 FROM tab0 AS cor0
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-9188
SELECT + - cor0.col1 / 34 FROM tab0 AS cor0
----
-2
-2
-2

query I rowsort
SELECT ALL - - col1 + + 23 FROM tab2 AS cor0
----
40
54
82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9190
SELECT CAST( NULL AS SIGNED ) * - 25 FROM tab2, tab2 AS cor0, tab1 AS cor1, tab0 cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

skipif mysql # not compatible
query I rowsort label-9190
SELECT CAST ( NULL AS INTEGER ) * - 25 FROM tab2, tab2 AS cor0, tab1 AS cor1, tab0 cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

query I rowsort
SELECT - ( - col0 ) + col1 FROM tab0
----
110
132
180

query I rowsort
SELECT ALL - col2 + col0 * + cor0.col2 FROM tab0 AS cor0
----
34
7216
759

query I rowsort
SELECT - - 43 * - tab2.col0 AS col2 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to d7c1852acd1e27f562dfe29f4df4a39b

query I rowsort
SELECT ALL + 94 AS col1 FROM tab2
----
94
94
94

query I rowsort
SELECT 92 * col0 FROM tab1 AS cor0
----
276
5888
7360

query I rowsort
SELECT ALL - 41 FROM tab2, tab1 cor0 CROSS JOIN tab1
----
27 values hashing to 47b9ef972839428f4f71d9f5b0944edf

query I rowsort
SELECT DISTINCT - + 88 FROM tab2 AS cor0
----
-88

query I rowsort
SELECT DISTINCT col0 + + col1 * 20 AS col0 FROM tab0 AS cor0
----
1744
1909
1975

onlyif mysql # use DIV operator for integer division
query I rowsort label-9199
SELECT DISTINCT + col2 DIV cor0.col2 + col2 * 60 * cor0.col0 AS col2 FROM tab1 AS cor0
----
218881
460801
9721

skipif mysql # not compatible
query I rowsort label-9199
SELECT DISTINCT + col2 / cor0.col2 + col2 * 60 * cor0.col0 AS col2 FROM tab1 AS cor0
----
218881
460801
9721

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 75 + + col0 * - col1 col2 FROM tab2 cor0
----
-1268
-142
-4527

query I rowsort
SELECT + + 1 FROM tab2, tab1, tab0 cor0
----
27 values hashing to da8a72a7967c0c73d91239275230aed9

onlyif mysql # use DIV operator for integer division
query I rowsort label-9202
SELECT col0 + col1 DIV - col0 AS col1 FROM tab0
----
21
33
88

skipif mysql # not compatible
query I rowsort label-9202
SELECT col0 + col1 / - col0 AS col1 FROM tab0
----
21
33
88

query I rowsort
SELECT ALL - col1 * - col1 + ( tab2.col2 + + col2 ) FROM tab2
----
1015
3533
365

query I rowsort
SELECT + - col0 + col1 + col0 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT ALL + col1 * col0 + 17 * col2 FROM tab1
----
1609
2672
996

query I rowsort
SELECT ALL - col0 + col1 + 45 AS col0 FROM tab1
----
-22
-9
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + ( col2 ) * - cor0.col0 col2 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT ALL + + col0 + 20 + col0 * - col0 FROM tab2 AS cor0
----
-22
-5986
-6142

query I rowsort
SELECT - col0 * - 78 FROM tab1 AS cor0
----
234
4992
6240

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9210
SELECT + CAST( NULL AS SIGNED ) + 68 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9210
SELECT + CAST ( NULL AS INTEGER ) + 68 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 80 + col2 * - cor0.col0 col0 FROM tab1 cor0
----
-3568
-7600
-82

onlyif mysql # use DIV operator for integer division
query I rowsort label-9212
SELECT + 57 DIV col2 + - col2 * ( + col1 * + col1 ) FROM tab0 AS cor0
----
-244067
-679042
-9352

skipif mysql # not compatible
query I rowsort label-9212
SELECT + 57 / col2 + - col2 * ( + col1 * + col1 ) FROM tab0 AS cor0
----
-244067
-679042
-9352

skipif mysql # not compatible
query I rowsort
SELECT - CAST ( + 20 AS REAL ) AS col2 FROM tab1
----
-20
-20
-20

query I rowsort
SELECT cor1.col1 * ( - 29 ) FROM tab1 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 2f8c0124c2f3e70e2fd3f07596e28df0

query I rowsort
SELECT + col2 + 20 * - col2 FROM tab0 AS cor0
----
-1558
-19
-627

query I rowsort
SELECT DISTINCT - 24 + + col2 + col2 FROM tab1 AS cor0
----
168
84
90

query I rowsort
SELECT - - col2 * - 82 + + col0 FROM tab0 AS cor0
----
-2682
-47
-6635

query I rowsort
SELECT + 94 * + col1 + col2 FROM tab1 AS cor0
----
1318
2498
997

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9219
SELECT - col0 / CAST( NULL AS SIGNED ) + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9219
SELECT - col0 / CAST ( NULL AS INTEGER ) + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 67 AS col1 FROM tab2
----
-67
-67
-67

onlyif mysql # use DIV operator for integer division
query I rowsort label-9221
SELECT col1 DIV 25 FROM tab2 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-9221
SELECT col1 / 25 FROM tab2 AS cor0
----
0
1
2

onlyif mysql # use DIV operator for integer division
query I rowsort label-9222
SELECT + col2 DIV 48 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9222
SELECT + col2 / 48 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - col1 * ( + col0 ) FROM tab0
----
-2064
-3395
-8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-9224
SELECT DISTINCT col0 + tab0.col1 DIV 22 AS col1 FROM tab0
----
27
39
93

skipif mysql # not compatible
query I rowsort label-9224
SELECT DISTINCT col0 + tab0.col1 / 22 AS col1 FROM tab0
----
27
39
93

query I rowsort
SELECT ALL + col2 + col0 + - col0 * col0 AS col1 FROM tab0
----
-1189
-519
-7750

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 96 col0 FROM tab2
----
-96
-96
-96

query I rowsort
SELECT ALL - 99 AS col2 FROM tab2
----
-99
-99
-99

query I rowsort
SELECT - 55 AS col1 FROM tab0, tab0 cor0
----
9 values hashing to ac76841ceecd2311e80c621d15bacdd3

query I rowsort
SELECT + ( col1 ) * + col0 FROM tab1 cor0
----
1040
640
78

query I rowsort
SELECT - - col0 + cor0.col0 - cor0.col2 FROM tab1 AS cor0
----
-48
64
71

onlyif mysql # use DIV operator for integer division
query I rowsort label-9231
SELECT - col0 * col1 DIV - CAST( col0 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-9231
SELECT - col0 * col1 / - CAST ( col0 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
10
13
26

onlyif mysql # use DIV operator for integer division
query I rowsort label-9232
SELECT + col0 + col2 DIV tab1.col2 AS col1 FROM tab1
----
4
65
81

skipif mysql # not compatible
query I rowsort label-9232
SELECT + col0 + col2 / tab1.col2 AS col1 FROM tab1
----
4
65
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-9233
SELECT DISTINCT col0 + + col0 - col2 DIV + col2 AS col0 FROM tab0
----
177
47
69

skipif mysql # not compatible
query I rowsort label-9233
SELECT DISTINCT col0 + + col0 - col2 / + col2 AS col0 FROM tab0
----
177
47
69

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9234
SELECT ALL + 61 + col2 + - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9234
SELECT ALL + 61 + col2 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col0 * + col1 * - 36 + col1 + col0 AS col2 FROM tab0 AS cor0
----
-122088
-291384
-74194

onlyif mysql # use DIV operator for integer division
query I rowsort label-9236
SELECT DISTINCT + col2 * col2 + + col1 DIV - cor0.col0 col2 FROM tab1 AS cor0
----
2908
3249
9216

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9236
SELECT DISTINCT + col2 * col2 + + col1 / - cor0.col0 col2 FROM tab1 AS cor0
----
2908
3249
9216

query I rowsort
SELECT - 61 * cor0.col1 FROM tab2 AS cor0
----
-1037
-1891
-3599

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 65 col0 FROM tab2 cor0
----
-65
-65
-65

query I rowsort
SELECT ALL 86 + cor0.col1 * col0 FROM tab1 AS cor0
----
1126
164
726

query I rowsort
SELECT DISTINCT col2 * col2 + - 31 AS col2 FROM tab2 AS cor0
----
1413
645
698

query I rowsort
SELECT - ( - col2 ) * 2 AS col1 FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT cor0.col1 * ( - cor0.col2 ) FROM tab0, tab0 AS cor0
----
9 values hashing to 86c8e75d83d283b29460c020ab5988af

query I rowsort
SELECT ALL 36 AS col2 FROM tab2 AS cor0
----
36
36
36

query I rowsort
SELECT - - 96 + + col2 FROM tab0 AS cor0
----
129
178
97

query I rowsort
SELECT ALL col0 + cor0.col0 - - col2 FROM tab1 AS cor0
----
185
256
60

query I rowsort
SELECT ALL - col0 + col1 * 19 FROM tab0 AS cor0
----
1610
1640
1808

query I rowsort
SELECT DISTINCT + + col2 * + 1 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT ALL cor0.col0 * col2 + - col1 FROM tab1 AS cor0
----
136
3638
7667

query I rowsort
SELECT ALL - col2 * 96 AS col0 FROM tab2 AS cor0
----
-2496
-2592
-3648

query I rowsort
SELECT + col0 * - ( - col0 * col0 ) - - col1 * - col2 FROM tab2 AS cor0
----
-494
473018
492393

onlyif mysql # use DIV operator for integer division
query I rowsort label-9251
SELECT DISTINCT + col1 DIV - 90 + 60 AS col1 FROM tab1 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-9251
SELECT DISTINCT + col1 / - 90 + 60 AS col1 FROM tab1 AS cor0
----
60

query I rowsort
SELECT DISTINCT - cor0.col2 * col0 + - col1 FROM tab1 AS cor0
----
-188
-3658
-7693

query I rowsort
SELECT DISTINCT cor0.col2 + 27 FROM tab1 AS cor0
----
123
81
84

onlyif mysql # use DIV operator for integer division
query I rowsort label-9254
SELECT DISTINCT - col0 DIV col2 + col2 + - col0 FROM tab1 AS cor0
----
-8
16
51

skipif mysql # not compatible
query I rowsort label-9254
SELECT DISTINCT - col0 / col2 + col2 + - col0 FROM tab1 AS cor0
----
-8
16
51

query I rowsort
SELECT ALL col2 * + col0 + 57 + + col2 AS col0 FROM tab1 AS cor0
----
273
3762
7833

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 + - ( cor0.col2 ) * + col0 - cor0.col0 * cor0.col1 col0 FROM tab1 AS cor0
----
-186
-4231
-8624

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col0 col0 FROM tab1, tab1 AS cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870

query I rowsort
SELECT + 96 + col0 FROM tab2
----
103
174
175

query I rowsort
SELECT ALL - - col0 * + ( + col0 ) AS col1 FROM tab2 cor0
----
49
6084
6241

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 + col2 col0 FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT DISTINCT + col2 * - col2 * + col0 + - cor0.col2 FROM tab0 AS cor0
----
-26169
-36
-598518

query I rowsort
SELECT ( col0 ) - col2 FROM tab2
----
-20
41
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 38 col0 FROM tab0 AS cor0
----
-38

query I rowsort
SELECT + - col0 + cor0.col2 * - col0 AS col0 FROM tab0 AS cor0
----
-70
-7387
-816

query I rowsort
SELECT ALL + + 95 * col2 + col0 AS col0 FROM tab1 AS cor0
----
5133
5479
9200

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9266
SELECT CAST( ( col0 ) AS SIGNED ) AS col2 FROM tab1 cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-9266
SELECT CAST ( ( col0 ) AS INTEGER ) AS col2 FROM tab1 cor0
----
3
64
80

query I rowsort
SELECT - 70 * + col2 + col1 * col1 AS col1 FROM tab1 AS cor0
----
-3104
-3890
-6551

query I rowsort
SELECT ( - 50 ) + - col0 * 98 FROM tab2 AS cor0
----
-736
-7694
-7792

query I rowsort
SELECT DISTINCT + + col2 * + col2 AS col0 FROM tab0 cor0
----
1
1089
6724

onlyif mysql # use DIV operator for integer division
query I rowsort label-9270
SELECT + cor0.col1 DIV cor0.col1 AS col0 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9270
SELECT + cor0.col1 / cor0.col1 AS col0 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT 9 AS col2 FROM tab0, tab2 cor0
----
9

query I rowsort
SELECT col1 + col0 * col2 * 19 FROM tab0 AS cor0
----
138753
15134
762

query I rowsort
SELECT ALL + ( 68 ) FROM tab0 AS cor0
----
68
68
68

query I rowsort
SELECT ALL 80 * 35 FROM tab2 AS cor0
----
2800
2800
2800

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 + col1 * col0 * - cor0.col2 col1 FROM tab0 AS cor0
----
-3298
-664027
-68026

query I rowsort
SELECT DISTINCT col2 * 31 AS col2 FROM tab1 AS cor0
----
1674
1767
2976

query I rowsort
SELECT ALL - + ( - 27 ) AS col2 FROM tab2 AS cor0
----
27
27
27

onlyif mysql # use DIV operator for integer division
query I rowsort label-9278
SELECT DISTINCT - col2 - + col0 DIV ( 3 ) FROM tab1 AS cor0
----
-122
-55
-78

skipif mysql # not compatible
query I rowsort label-9278
SELECT DISTINCT - col2 - + col0 / ( 3 ) FROM tab1 AS cor0
----
-122
-55
-78

query I rowsort
SELECT + ( - tab1.col2 * - col2 ) FROM tab1
----
2916
3249
9216

query I rowsort
SELECT 12 AS col0 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 702478c53caf2f7ebb9fff96d800f5a6

query I rowsort
SELECT DISTINCT + cor0.col2 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
26
27
38

query I rowsort
SELECT ALL - + 78 AS col2 FROM tab2 AS cor0
----
-78
-78
-78

query I rowsort
SELECT - - 34 * 64 FROM tab0 cor0
----
2176
2176
2176

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9284
SELECT ALL - CAST( 77 AS SIGNED ) * + col0 AS col1 FROM tab0 AS cor0
----
-1848
-2695
-6853

skipif mysql # not compatible
query I rowsort label-9284
SELECT ALL - CAST ( 77 AS INTEGER ) * + col0 AS col1 FROM tab0 AS cor0
----
-1848
-2695
-6853

onlyif mysql # use DIV operator for integer division
query I rowsort label-9285
SELECT DISTINCT + + ( - 13 ) * col1 + + col0 DIV + cor0.col0 AS col2 FROM tab1 AS cor0
----
-129
-168
-337

skipif mysql # not compatible
query I rowsort label-9285
SELECT DISTINCT + + ( - 13 ) * col1 + + col0 / + cor0.col0 AS col2 FROM tab1 AS cor0
----
-129
-168
-337

query I rowsort
SELECT + ( + col1 ) * col0 AS col0 FROM tab2 cor0
----
1343
217
4602

query I rowsort
SELECT ALL + 52 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 7f4ae30893ab330784829711032ae599

query I rowsort
SELECT - col2 * col2 + ( - col1 ) FROM tab1
----
-2942
-3259
-9229

onlyif mysql # use DIV operator for integer division
query I rowsort label-9289
SELECT DISTINCT + - col1 + + col2 - - ( + col2 ) DIV + col0 FROM tab1 AS cor0
----
46
47
84

skipif mysql # not compatible
query I rowsort label-9289
SELECT DISTINCT + - col1 + + col2 - - ( + col2 ) / + col0 FROM tab1 AS cor0
----
46
47
84

query I rowsort
SELECT + 98 * - col1 + col1 AS col2 FROM tab1 AS cor0
----
-1261
-2522
-970

query I rowsort
SELECT DISTINCT col1 + col1 + ( col1 * + col0 ) AS col0 FROM tab2 AS cor0
----
1377
279
4720

query I rowsort
SELECT ALL + col1 - col0 * - col0 * col2 FROM tab2 AS cor0
----
1354
158243
237175

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9293
SELECT - ( col1 ) / CAST( NULL AS SIGNED ) + col1 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-9293
SELECT - ( col1 ) / CAST ( NULL AS INTEGER ) + col1 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 47 + col1 * - 6 * - col1 AS col1 FROM tab1 AS cor0
----
4009
553
967

query I rowsort
SELECT - 49 * - col1 AS col2 FROM tab2 AS cor0
----
1519
2891
833

query I rowsort
SELECT ALL col1 + col1 * + col2 AS col1 FROM tab1 AS cor0
----
1261
1430
580

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 + + col1 col0 FROM tab1 AS cor0
----
20
26
52

query I rowsort
SELECT cor0.col0 * - col1 AS col2 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT + col2 * - 84 AS col1 FROM tab2 AS cor0
----
-2184
-2268
-3192

query I rowsort
SELECT ALL col1 * - col2 + + col2 * col1 * col0 + 3 FROM tab2 AS cor0
----
118121
5025
50391

query I rowsort
SELECT - 38 AS col2 FROM tab0, tab1 AS cor0, tab1 cor1
----
27 values hashing to e8c064543bf0f2e57329db1bb0a411e3

query I rowsort
SELECT - - col2 * - col0 * cor0.col1 AS col0 FROM tab1 AS cor0
----
-36480
-4212
-99840

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9303
SELECT col0 + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9303
SELECT col0 + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 * ( + 26 ) + col0 FROM tab0 cor0
----
2403
648
945

query I rowsort
SELECT + 62 FROM tab0 AS cor0 CROSS JOIN tab2, tab0 AS cor1
----
27 values hashing to 4911b1417a3797d23dd8f38b6ed05c1b

query I rowsort
SELECT + col2 * - col0 + col1 FROM tab0 AS cor0
----
-706
-7207
62

query I rowsort
SELECT DISTINCT - cor1.col2 AS col2 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
-1
-33
-82

onlyif mysql # use DIV operator for integer division
query I rowsort label-9308
SELECT - - col1 * - col1 + col0 DIV + col0 FROM tab0 AS cor0
----
-7395
-8280
-9408

skipif mysql # not compatible
query I rowsort label-9308
SELECT - - col1 * - col1 + col0 / + col0 FROM tab0 AS cor0
----
-7395
-8280
-9408

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9309
SELECT - - cor0.col0 * CAST( + 92 AS SIGNED ) FROM tab1 AS cor0
----
276
5888
7360

skipif mysql # not compatible
query I rowsort label-9309
SELECT - - cor0.col0 * CAST ( + 92 AS INTEGER ) FROM tab1 AS cor0
----
276
5888
7360

onlyif mysql # use DIV operator for integer division
query I rowsort label-9310
SELECT + col2 + + col2 DIV ( + col2 ) FROM tab0 AS cor0
----
2
34
83

skipif mysql # not compatible
query I rowsort label-9310
SELECT + col2 + + col2 / ( + col2 ) FROM tab0 AS cor0
----
2
34
83

query I rowsort
SELECT - cor0.col2 + - cor0.col1 * 92 FROM tab2 AS cor0
----
-1602
-2879
-5454

query I rowsort
SELECT + col2 * - 43 AS col2 FROM tab2 AS cor0
----
-1118
-1161
-1634

query I rowsort
SELECT - cor0.col0 AS col0 FROM tab0, tab0 cor0, tab2 AS cor1
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8

query I rowsort
SELECT ALL - col0 * + col0 + + col2 FROM tab2 AS cor0
----
-22
-6058
-6203

query I rowsort
SELECT col1 * - col2 + + col0 AS col0 FROM tab2 AS cor0
----
-1456
-567
-830

query I rowsort
SELECT - col1 + - col0 + + col2 FROM tab0
----
-131
-77
-98

query I rowsort
SELECT - + col0 * col1 + - col0 * - col1 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - col1 + 48 AS col0 FROM tab1 AS cor0
----
22
35
38

query I rowsort
SELECT - col2 * tab0.col0 AS col0 FROM tab0
----
-35
-7298
-792

query I rowsort
SELECT col1 * - 33 FROM tab0 AS cor0
----
-2838
-3003
-3201

query I rowsort
SELECT DISTINCT - col2 + 47 * - col1 * col2 FROM tab0 AS cor0
----
-133419
-350796
-4560

query I rowsort
SELECT DISTINCT col2 * 90 FROM tab0
----
2970
7380
90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9323
SELECT DISTINCT + CAST( NULL AS SIGNED ) * ( - col0 ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9323
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * ( - col0 ) AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT cor0.col2 AS col2 FROM tab1, tab0 cor0
----
1
33
82

query I rowsort
SELECT DISTINCT col0 * 17 FROM tab1
----
1088
1360
51

onlyif mysql # use DIV operator for integer division
query I rowsort label-9326
SELECT + - col0 + - col1 + - col1 DIV ( + col1 ) AS col1 FROM tab1 AS cor0
----
-30
-75
-94

skipif mysql # not compatible
query I rowsort label-9326
SELECT + - col0 + - col1 + - col1 / ( + col1 ) AS col1 FROM tab1 AS cor0
----
-30
-75
-94

query I rowsort
SELECT - + ( - col1 ) * 18 AS col1 FROM tab2 AS cor0
----
1062
306
558

query I rowsort
SELECT DISTINCT - col2 + - col0 * ( - col0 ) * - col0 AS col2 FROM tab0 cor0
----
-13857
-42876
-705051

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9329
SELECT + - 14 * + col2 - CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9329
SELECT + - 14 * + col2 - CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 53 - - tab1.col0 AS col1 FROM tab1
----
-50
11
27

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9331
SELECT ALL CAST( NULL AS SIGNED ) - - 34 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9331
SELECT ALL CAST ( NULL AS INTEGER ) - - 34 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-9332
SELECT DISTINCT + col0 DIV + ( col0 ) AS col0 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-9332
SELECT DISTINCT + col0 / + ( col0 ) AS col0 FROM tab2
----
1

query I rowsort
SELECT col2 * tab0.col0 + + tab0.col0 FROM tab0
----
70
7387
816

query I rowsort
SELECT ALL - ( 0 ) * - col1 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT + + ( 39 ) + - cor0.col2 FROM tab2, tab1, tab2 AS cor0
----
1
12
13

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9336
SELECT DISTINCT CAST( - col0 AS SIGNED ) * + col2 - 36 AS col2 FROM tab1
----
-198
-3684
-7716

skipif mysql # not compatible
query I rowsort label-9336
SELECT DISTINCT CAST ( - col0 AS INTEGER ) * + col2 - 36 AS col2 FROM tab1
----
-198
-3684
-7716

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9337
SELECT tab2.col1 * col0 - - col0 * - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9337
SELECT tab2.col1 * col0 - - col0 * - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT col1 * 7 * col0 - col1 * col0 AS col2 FROM tab0
----
12384
20370
48594

query I rowsort
SELECT ALL col2 + 19 * col1 FROM tab2 AS cor0
----
1147
361
616

query I rowsort
SELECT DISTINCT + 75 * - col0 FROM tab1
----
-225
-4800
-6000

onlyif mysql # use DIV operator for integer division
query I rowsort label-9341
SELECT ALL + col0 * col1 DIV CAST( col2 AS SIGNED ) AS col2 FROM tab1
----
1
10
11

skipif mysql # not compatible
query I rowsort label-9341
SELECT ALL + col0 * col1 / CAST ( col2 AS INTEGER ) AS col2 FROM tab1
----
1
10
11

query I rowsort
SELECT + + col1 + 2 + cor0.col0 AS col2 FROM tab0 AS cor0
----
112
134
182

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + col2 col1 FROM tab2 cor0
----
-1444
-676
-729

query I rowsort
SELECT + - col0 * ( col1 ) AS col1 FROM tab2 cor0
----
-1343
-217
-4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 64 col2 FROM tab0
----
64
64
64

query I rowsort
SELECT - 71 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 3907e0aa4f29c002120742c4abb3e23a

query I rowsort
SELECT + col1 * 13 AS col2 FROM tab2 AS cor0
----
221
403
767

query I rowsort
SELECT + col0 * + 3 AS col0 FROM tab2 AS cor0
----
21
234
237

query I rowsort
SELECT col1 * + 3 FROM tab1 AS cor0
----
30
39
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-9350
SELECT col1 DIV ( - col1 + - col0 * + col2 ) AS col0 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9350
SELECT col1 / ( - col1 + - col0 * + col2 ) AS col0 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT ALL + col2 * - col0 + col0 * col0 AS col0 FROM tab2
----
-140
3239
4056

query I rowsort
SELECT DISTINCT col2 + + 48 + tab2.col1 * - col0 * ( col0 + col1 ) FROM tab2
----
-128842
-630400
-8171

query I rowsort
SELECT + col1 * - 63 AS col2 FROM tab1
----
-1638
-630
-819

query I rowsort
SELECT 10 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to a47194429f3e0358a3aebffd5f050113

onlyif mysql # use DIV operator for integer division
query I rowsort label-9355
SELECT ( + cor0.col1 ) DIV col2 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9355
SELECT ( + cor0.col1 ) / col2 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL 21 * + 51 + + col2 FROM tab1 cor0
----
1125
1128
1167

query I rowsort
SELECT DISTINCT ( col0 ) * col2 AS col0 FROM tab2 AS cor0
----
189
2028
3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-9358
SELECT DISTINCT - - cor1.col1 DIV cor1.col1 + 38 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
39

skipif mysql # not compatible
query I rowsort label-9358
SELECT DISTINCT - - cor1.col1 / cor1.col1 + 38 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 + cor0.col0 col2 FROM tab2 AS cor0
----
137
38
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-9360
SELECT ALL - 82 DIV + cor0.col0 FROM tab2 cor0
----
-1
-1
-11

skipif mysql # not compatible
query I rowsort label-9360
SELECT ALL - 82 / + cor0.col0 FROM tab2 cor0
----
-1
-1
-11

query I rowsort
SELECT DISTINCT cor0.col2 + col0 * - col1 AS col1 FROM tab0 AS cor0
----
-2031
-3394
-8017

query I rowsort
SELECT ALL + + 34 + col0 * - col2 FROM tab1 AS cor0
----
-128
-3614
-7646

query I rowsort
SELECT ALL + ( 47 ) * col2 + + col1 AS col1 FROM tab0 AS cor0
----
144
1637
3945

query I rowsort
SELECT DISTINCT + 75 * cor0.col2 FROM tab2 AS cor0
----
1950
2025
2850

query I rowsort
SELECT - - ( + col0 ) + + col0 FROM tab0 AS cor0
----
178
48
70

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9366
SELECT DISTINCT + tab0.col2 + + tab0.col1 + - CAST( NULL AS SIGNED ) * + col0 AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9366
SELECT DISTINCT + tab0.col2 + + tab0.col1 + - CAST ( NULL AS INTEGER ) * + col0 AS col2 FROM tab0
----
NULL

query I rowsort
SELECT ALL - col2 + col0 * col0 * + col0 AS col2 FROM tab0
----
13791
42874
704887

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 57 * + col0 col0 FROM tab0 AS cor0
----
-1368
-1995
-5073

onlyif mysql # use DIV operator for integer division
query I rowsort label-9369
SELECT - 67 + - col0 DIV col0 AS col2 FROM tab2 cor0
----
-68
-68
-68

skipif mysql # not compatible
query I rowsort label-9369
SELECT - 67 + - col0 / col0 AS col2 FROM tab2 cor0
----
-68
-68
-68

query I rowsort
SELECT + - 8 + col0 + cor0.col1 FROM tab0 cor0
----
102
124
172

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - col0 ) col2 FROM tab1 cor0
----
3
64
80

query I rowsort
SELECT + - 85 - col0 * + col2 FROM tab1 cor0
----
-247
-3733
-7765

onlyif mysql # use DIV operator for integer division
query I rowsort label-9373
SELECT - + col2 DIV - col1 + - col0 * - col0 AS col0 FROM tab0 AS cor0
----
1225
576
7921

skipif mysql # not compatible
query I rowsort label-9373
SELECT - + col2 / - col1 + - col0 * - col0 AS col0 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT DISTINCT - - col0 + 35 FROM tab1 AS cor0
----
115
38
99

query I rowsort
SELECT + col0 + 84 * - 63 AS col0 FROM tab2 AS cor0
----
-5213
-5214
-5285

query I rowsort
SELECT DISTINCT + + col2 * 27 AS col0 FROM tab2 AS cor0
----
1026
702
729

query I rowsort
SELECT 78 + - tab1.col1 + + col0 FROM tab1
----
132
145
55

query I rowsort
SELECT DISTINCT + - 82 * cor0.col0 FROM tab2 AS cor0
----
-574
-6396
-6478

query I rowsort
SELECT + col2 + + cor0.col0 FROM tab1 cor0
----
121
176
57

query I rowsort
SELECT col0 * - col0 + col1 AS col0 FROM tab1 AS cor0
----
-4086
-6387
17

onlyif mysql # use DIV operator for integer division
query I rowsort label-9381
SELECT - 32 DIV col0 AS col2 FROM tab2 AS cor0
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-9381
SELECT - 32 / col0 AS col2 FROM tab2 AS cor0
----
-4
0
0

query I rowsort
SELECT DISTINCT col1 * - col2 + + col1 AS col0 FROM tab1
----
-1235
-1378
-560

onlyif mysql # use DIV operator for integer division
query I rowsort label-9383
SELECT DISTINCT col2 DIV col1 + - col2 + + col1 col1 FROM tab1
----
-26
-42
-76

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9383
SELECT DISTINCT col2 / col1 + - col2 + + col1 col1 FROM tab1
----
-26
-42
-76

query I rowsort
SELECT - 45 * - col0 FROM tab0 cor0
----
1080
1575
4005

query I rowsort
SELECT + 62 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0

query I rowsort
SELECT DISTINCT col2 + - col0 + col0 * col1 * - col1 AS col0 FROM tab0
----
-177495
-329349
-737016

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * - col0 + + 20 col1 FROM tab0
----
-15
-7278
-772

query I rowsort
SELECT ALL cor0.col2 * + col1 * col1 AS col2 FROM tab2 AS cor0
----
10982
25947
90506

onlyif mysql # use DIV operator for integer division
query I rowsort label-9389
SELECT - col0 DIV - tab1.col1 + + col2 + col0 * col0 FROM tab1
----
4159
63
6502

skipif mysql # not compatible
query I rowsort label-9389
SELECT - col0 / - tab1.col1 + + col2 + col0 * col0 FROM tab1
----
4159
63
6502

query I rowsort
SELECT ( - col2 + col0 ) AS col2 FROM tab1
----
-16
-51
7

query I rowsort
SELECT - col0 * col0 * col0 + + col0 FROM tab2 AS cor0
----
-336
-474474
-492960

query I rowsort
SELECT ALL ( 99 ) FROM tab1 AS cor0
----
99
99
99

onlyif mysql # use DIV operator for integer division
query I rowsort label-9393
SELECT - col2 * col1 + + col2 DIV + col2 + + col0 AS col1 FROM tab0 AS cor0
----
-2813
-61
-7372

skipif mysql # not compatible
query I rowsort label-9393
SELECT - col2 * col1 + + col2 / + col2 + + col0 AS col1 FROM tab0 AS cor0
----
-2813
-61
-7372

query I rowsort
SELECT ALL - ( col1 ) + + col1 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 61 col1 FROM tab0 AS cor0
----
61

query I rowsort
SELECT - + 4 + col1 FROM tab2 AS cor0
----
13
27
55

query I rowsort
SELECT + col0 + ( col0 * col2 ) AS col2 FROM tab1 cor0
----
165
3712
7760

query I rowsort
SELECT - 8 - - col2 AS col0 FROM tab1 AS cor0
----
46
49
88

query I rowsort
SELECT DISTINCT + + col2 * 76 + cor0.col1 FROM tab0 cor0
----
173
2594
6323

query I rowsort
SELECT + 90 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 5d25a546acf3ae171e731e50adc0112e

query I rowsort
SELECT + 25 * col0 * - col0 FROM tab0 AS cor0
----
-14400
-198025
-30625

query I rowsort
SELECT - + 16 + - col2 FROM tab1 AS cor0
----
-112
-70
-73

query I rowsort
SELECT + col1 + + col1 * 72 * col2 AS col0 FROM tab1 cor0
----
101114
41050
89869

query I rowsort
SELECT + + cor0.col0 * + col0 + col0 * - 86 FROM tab2 AS cor0
----
-553
-553
-624

query I rowsort
SELECT ALL 26 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584

onlyif mysql # use DIV operator for integer division
query I rowsort label-9406
SELECT - col2 + col0 DIV - col1 FROM tab2 AS cor0
----
-27
-27
-42

skipif mysql # not compatible
query I rowsort label-9406
SELECT - col2 + col0 / - col1 FROM tab2 AS cor0
----
-27
-27
-42

query I rowsort
SELECT ALL col0 + - col0 * + col1 * col0 FROM tab0 cor0
----
-118790
-49512
-720722

query I rowsort
SELECT DISTINCT col2 + + 6 * col1 AS col2 FROM tab0 AS cor0
----
549
583
628

onlyif mysql # use DIV operator for integer division
query I rowsort label-9409
SELECT ALL col2 * col2 DIV - col1 - cor0.col1 FROM tab1 AS cor0
----
-138
-334
-721

skipif mysql # not compatible
query I rowsort label-9409
SELECT ALL col2 * col2 / - col1 - cor0.col1 FROM tab1 AS cor0
----
-138
-334
-721

query I rowsort
SELECT 21 AS col1 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 312c166f4dc412730c43555105b1f44b

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9411
SELECT - cor0.col2 * - col1 - + cor0.col2 * + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9411
SELECT - cor0.col2 * - col1 - + cor0.col2 * + CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 + - ( col2 * - 70 ) FROM tab1 AS cor0
----
3783
4054
6800

query I rowsort
SELECT ALL - tab1.col1 + 2 AS col0 FROM tab1
----
-11
-24
-8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 26 col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( 75 ) + - tab2.col0 col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 05202cf4ca814bb5bd72302936a8c979

query IIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1, tab1 AS cor1 WHERE NULL >= NULL
----

query I rowsort
SELECT + col0 + + cor0.col1 AS col2 FROM tab1 cor0
----
29
74
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-9418
SELECT ALL + + col2 * col2 DIV 20 + + col1 * + col2 AS col2 FROM tab1 AS cor0
----
1549
1708
732

skipif mysql # not compatible
query I rowsort label-9418
SELECT ALL + + col2 * col2 / 20 + + col1 * + col2 AS col2 FROM tab1 AS cor0
----
1549
1708
732

query I rowsort
SELECT ALL - cor0.col1 * 35 + col0 FROM tab1 AS cor0
----
-286
-375
-907

query I rowsort
SELECT - 92 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 1af709a79a3e56281ffdce4d931d5965

query I rowsort
SELECT ALL - 29 * + col0 FROM tab0 AS cor0
----
-1015
-2581
-696

query I rowsort
SELECT DISTINCT - ( + 13 ) FROM tab0 AS cor0
----
-13

query I rowsort
SELECT DISTINCT - col0 * + 50 + cor0.col2 * col2 FROM tab2 AS cor0
----
-2506
-3224
379

query I rowsort
SELECT 92 + + col0 AS col2 FROM tab1 AS cor0
----
156
172
95

query I rowsort
SELECT - tab0.col1 FROM tab0, tab2, tab2 AS cor0, tab1
----
81 values hashing to 786a240f80bef6f9c6a190e92cd4f9e8

query I rowsort
SELECT - col0 * + col2 + tab1.col2 + - tab1.col0 * - tab1.col1 * 20 FROM tab1
----
13216
1452
9209

query I rowsort
SELECT col2 + col1 * tab0.col2 FROM tab0
----
2871
7544
98

query I rowsort
SELECT - col1 * + col2 + + ( - ( - col1 ) * - 89 ) AS col2 FROM tab2 AS cor0
----
-2159
-3596
-6785

onlyif mysql # use DIV operator for integer division
query I rowsort label-9429
SELECT + - col0 + col0 DIV - ( + cor0.col1 ) + col2 FROM tab1 AS cor0
----
-13
10
51

skipif mysql # not compatible
query I rowsort label-9429
SELECT + - col0 + col0 / - ( + cor0.col1 ) + col2 FROM tab1 AS cor0
----
-13
10
51

query I rowsort
SELECT DISTINCT + ( cor0.col2 ) * - col0 AS col0 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT ALL ( col0 ) * cor0.col1 + col0 * col2 * col0 AS col0 FROM tab1 AS cor0
----
234112
564
615440

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9432
SELECT DISTINCT col0 / CAST( NULL AS SIGNED ) + col2 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9432
SELECT DISTINCT col0 / CAST ( NULL AS INTEGER ) + col2 AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - col1 + 81 FROM tab2 AS cor0
----
22
50
64

query I rowsort
SELECT ALL cor0.col2 * - 35 FROM tab1 AS cor0
----
-1890
-1995
-3360

query I rowsort
SELECT DISTINCT - col1 * - col2 + + cor0.col0 FROM tab2 AS cor0
----
1612
725
844

query I rowsort
SELECT ALL - col1 * + ( + cor0.col0 * + col0 ) AS col0 FROM tab1 AS cor0
----
-234
-40960
-83200

query I rowsort
SELECT DISTINCT - col1 + - 85 AS col0 FROM tab1 AS cor0
----
-111
-95
-98

query I rowsort
SELECT DISTINCT + + col0 * + cor0.col2 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT ALL - col0 * + 40 AS col0 FROM tab1 cor0
----
-120
-2560
-3200

query I rowsort
SELECT ALL 46 AS col0 FROM tab1
----
46
46
46

query I rowsort
SELECT DISTINCT col2 + - ( col2 + - cor0.col2 ) AS col0 FROM tab2 cor0
----
26
27
38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9442
SELECT + - col2 + - CAST( NULL AS SIGNED ) * 83 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9442
SELECT + - col2 + - CAST ( NULL AS INTEGER ) * 83 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 * ( + 20 ) * + col0 + cor0.col1 AS col2 FROM tab0 AS cor0
----
11606
158511
24597

query I rowsort
SELECT ( + 45 ) FROM tab0, tab2 AS cor0
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + ( 75 ) + col0 col1 FROM tab1 AS cor0
----
4053
4339
7280

query I rowsort
SELECT ALL + col0 * + col1 * ( + col0 ) AS col2 FROM tab0 AS cor0
----
118825
49536
720811

query I rowsort
SELECT + col2 * - ( + ( + cor0.col0 ) ) + 21 AS col0 FROM tab0 cor0
----
-14
-7277
-771

query I rowsort
SELECT DISTINCT col1 * col0 + - 75 * col0 * - 80 FROM tab0
----
146064
213395
542099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - cor0.col2 ) * col1 + col2 col0 FROM tab2 AS cor0
----
1560
684
864

query I rowsort
SELECT + col0 + - 52 * + col0 FROM tab0
----
-1224
-1785
-4539

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + 38 col2 FROM tab0
----
1254
3116
38

query I rowsort
SELECT ALL 23 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 546d49aa433406dd83ea19885588e658

query I rowsort
SELECT ALL + col0 * 65 AS col2 FROM tab2 AS cor0
----
455
5070
5135

query I rowsort
SELECT DISTINCT tab0.col2 * 75 FROM tab0
----
2475
6150
75

query I rowsort
SELECT ALL + 48 - 16 * col1 AS col0 FROM tab0
----
-1328
-1408
-1504

query I rowsort
SELECT + col2 * - ( tab0.col2 ) + - tab0.col2 FROM tab0
----
-1122
-2
-6806

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9457
SELECT DISTINCT + col1 + col1 * - CAST( col2 AS SIGNED ) + col1 FROM tab0 AS cor0
----
-2666
-7280
97

skipif mysql # not compatible
query I rowsort label-9457
SELECT DISTINCT + col1 + col1 * - CAST ( col2 AS INTEGER ) + col1 FROM tab0 AS cor0
----
-2666
-7280
97

query I rowsort
SELECT - + 30 + col2 * col2 FROM tab2 AS cor0
----
1414
646
699

query I rowsort
SELECT DISTINCT + 36 * col2 + + cor0.col0 * - 37 FROM tab1 cor0
----
-316
1833
496

query I rowsort
SELECT - + col2 * col2 + - ( - 18 * col0 ) AS col2 FROM tab0 AS cor0
----
-5122
-657
629

query I rowsort
SELECT DISTINCT + col2 * col1 + - 35 * - col1 * col0 FROM tab0 AS cor0
----
118922
290927
75078

query I rowsort
SELECT - 28 + col0 * col0 * 30 FROM tab2
----
1442
182492
187202

query I rowsort
SELECT ALL ( + col1 + - col2 ) AS col0 FROM tab2
----
-21
33
4

query I rowsort
SELECT DISTINCT cor0.col0 + cor0.col2 AS col2 FROM tab2, tab1, tab2 AS cor0
----
104
117
34

query I rowsort
SELECT DISTINCT - 72 + col1 FROM tab0
----
14
19
25

query I rowsort
SELECT DISTINCT + col1 * + col1 * + cor0.col1 FROM tab0 AS cor0
----
636056
753571
912673

query I rowsort
SELECT DISTINCT col2 * - col2 + tab0.col1 * - col0 + + col1 AS col0 FROM tab0
----
-14732
-3067
-3299

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9468
SELECT 14 * + col1 / - CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9468
SELECT 14 * + col1 / - CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-9469
SELECT ALL ( - col0 ) DIV - col0 FROM tab1 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9469
SELECT ALL ( - col0 ) / - col0 FROM tab1 cor0
----
1
1
1

query I rowsort
SELECT DISTINCT - ( col0 ) + - col2 AS col0 FROM tab0 AS cor0
----
-171
-36
-57

query I rowsort
SELECT col1 + + col0 - + col2 AS col2 FROM tab0 cor0
----
131
77
98

query I rowsort
SELECT 25 * - tab1.col0 FROM tab1
----
-1600
-2000
-75

query I rowsort
SELECT - col0 * + col0 + - col2 AS col2 FROM tab2
----
-6110
-6279
-76

query I rowsort
SELECT + 98 + 46 * + col1 AS col0 FROM tab1 AS cor0
----
1294
558
696

query I rowsort
SELECT ALL - col1 + col0 * + col2 AS col0 FROM tab2 AS cor0
----
158
1969
2985

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 - + col1 col2 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT ( - col1 ) + col1 * - 90 AS col1 FROM tab2 AS cor0
----
-1547
-2821
-5369

query I rowsort
SELECT - 39 + + col0 * + col0 FROM tab2 AS cor0
----
10
6045
6202

query I rowsort
SELECT - + 69 * + col0 FROM tab1 cor0
----
-207
-4416
-5520

query I rowsort
SELECT 35 * - tab2.col2 FROM tab2
----
-1330
-910
-945

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 7 col0 FROM tab0
----
-7

query I rowsort
SELECT - tab2.col0 * - 77 FROM tab2
----
539
6006
6083

query I rowsort
SELECT - - col0 * + 84 FROM tab1 cor0
----
252
5376
6720

query I rowsort
SELECT col0 * 12 AS col0 FROM tab0 AS cor0
----
1068
288
420

query I rowsort
SELECT ALL col2 + col2 * - col1 FROM tab1 AS cor0
----
-1152
-1350
-513

query I rowsort
SELECT - + cor0.col1 * + ( + col0 * cor0.col2 ) AS col0 FROM tab1 AS cor0
----
-36480
-4212
-99840

query I rowsort
SELECT DISTINCT col1 + 6 * col2 AS col2 FROM tab2 AS cor0
----
193
215
245

query I rowsort
SELECT DISTINCT - - col1 + + 13 AS col2 FROM tab1 AS cor0
----
23
26
39

query I rowsort
SELECT - col2 - col0 * + col2 FROM tab1
----
-216
-3705
-7776

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9490
SELECT - col2 * + CAST( col0 AS SIGNED ) FROM tab1 AS cor0
----
-162
-3648
-7680

skipif mysql # not compatible
query I rowsort label-9490
SELECT - col2 * + CAST ( col0 AS INTEGER ) FROM tab1 AS cor0
----
-162
-3648
-7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 * - col1 col0 FROM tab0 AS cor0
----
2838
7462
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-9492
SELECT ALL tab0.col1 DIV - col2 + col0 FROM tab0
----
-62
22
88

skipif mysql # not compatible
query I rowsort label-9492
SELECT ALL tab0.col1 / - col2 + col0 FROM tab0
----
-62
22
88

query I rowsort
SELECT DISTINCT - ( + cor0.col1 ) FROM tab0, tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT + + 79 * - 35 + + cor1.col2 * 83 FROM tab1 AS cor0 CROSS JOIN tab1, tab2 AS cor1
----
27 values hashing to e57b53359dd2fbaf20e3d7ff3bfd2db0

query I rowsort
SELECT - ( col2 ) + col1 * col1 FROM tab0 AS cor0
----
7363
8199
9408

query I rowsort
SELECT - col0 * + col1 + tab2.col1 + - col0 FROM tab2
----
-1405
-193
-4621

query I rowsort
SELECT - ( - 26 ) FROM tab2, tab2 AS cor0
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584

onlyif mysql # use DIV operator for integer division
query I rowsort label-9498
SELECT tab2.col1 DIV ( + 56 * col1 ) AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9498
SELECT tab2.col1 / ( + 56 * col1 ) AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT cor0.col0 FROM tab2 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab1, tab0 cor2
----
243 values hashing to 455e4df3bf7b0fa681c56e89df1a761f

query I rowsort
SELECT col0 * 40 FROM tab1 AS cor0
----
120
2560
3200

query I rowsort
SELECT - col0 + + col0 * col1 AS col2 FROM tab0 AS cor0
----
2040
3360
8010

query I rowsort
SELECT DISTINCT - ( - col2 ) + - cor0.col0 FROM tab2 AS cor0
----
-41
-52
20

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9503
SELECT - + col1 * - ( col2 ) * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9503
SELECT - + col1 * - ( col2 ) * + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 + + 20 + - col0 AS col0 FROM tab2 AS cor0
----
20
20
20

query I rowsort
SELECT + + col1 * 70 AS col0 FROM tab0 AS cor0
----
6020
6370
6790

query I rowsort
SELECT 56 * 71 AS col1 FROM tab1 AS cor0
----
3976
3976
3976

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9507
SELECT ALL CAST( + 81 AS SIGNED ) * + tab2.col2 FROM tab2, tab0 cor0
----
9 values hashing to cca91d34f9210d3c6fb2f754277569f1

skipif mysql # not compatible
query I rowsort label-9507
SELECT ALL CAST ( + 81 AS INTEGER ) * + tab2.col2 FROM tab2, tab0 cor0
----
9 values hashing to cca91d34f9210d3c6fb2f754277569f1

query I rowsort
SELECT - ( - col0 ) - col2 AS col2 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT 43 + col1 + - col1 FROM tab0 cor0
----
43
43
43

query I rowsort
SELECT - 64 * col2 + + col0 + col0 FROM tab2 cor0
----
-1508
-1714
-2274

query I rowsort
SELECT - cor1.col0 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0

query I rowsort
SELECT DISTINCT + - col1 + col0 * ( cor0.col2 ) AS col2 FROM tab0 AS cor0
----
-62
706
7207

query I rowsort
SELECT + col2 + - 36 FROM tab0
----
-3
-35
46

onlyif mysql # use DIV operator for integer division
query I rowsort label-9514
SELECT ALL + col1 DIV + ( - col0 ) FROM tab1
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-9514
SELECT ALL + col1 / + ( - col0 ) FROM tab1
----
-8
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9515
SELECT + - col1 * CAST( NULL AS DECIMAL ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9515
SELECT + - col1 * CAST ( NULL AS REAL ) FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + col2 * + col0 * col0 FROM tab1 AS cor0
----
-233472
-486
-614400

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * 11 col2 FROM tab0 AS cor0
----
-11
-363
-902

query I rowsort
SELECT + col2 - 3 * col1 FROM tab1
----
-24
27
57

query I rowsort
SELECT ALL + - col1 * col0 * col1 + - col1 + - col0 * - col0 FROM tab0 AS cor0
----
-177014
-328187
-729179

query I rowsort
SELECT DISTINCT - + cor0.col0 + - col0 AS col0 FROM tab2 cor0
----
-14
-156
-158

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - col2 + col0 col0 FROM tab1
----
-2913
-3185
-9136

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 66 col2 FROM tab2
----
66
66
66

query I rowsort
SELECT DISTINCT + cor0.col0 * - tab0.col1 FROM tab0, tab1, tab1 AS cor0
----
9 values hashing to ec78515ecc610830fe02f4a5c8d4e4d5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col1 col1 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT + 1 + col1 FROM tab0
----
87
92
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + col0 col2 FROM tab2
----
137
38
96

query I rowsort
SELECT + col1 + col1 * ( + col1 + - col0 ) * - col0 FROM tab2
----
-5177
83283
87497

query I rowsort
SELECT - cor0.col0 + col0 + col1 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT DISTINCT + + 77 + - col2 FROM tab1 AS cor0
----
-19
20
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 43 + col0 col2 FROM tab2 AS cor0
----
-36
35
36

query I rowsort
SELECT + col2 + col2 * - col0 * - 16 + col0 * + cor0.col1 AS col0 FROM tab2 AS cor0
----
3268
37076
49413

query I rowsort
SELECT DISTINCT + - 6 + col0 AS col1 FROM tab1 AS cor0
----
-3
58
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 2 col2 FROM tab1, tab1 AS cor0
----
9 values hashing to ec11209ab257030053484fc13a1f6d17

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9534
SELECT DISTINCT - CAST( - 97 AS SIGNED ) FROM tab0, tab2 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-9534
SELECT DISTINCT - CAST ( - 97 AS INTEGER ) FROM tab0, tab2 AS cor0
----
97

query I rowsort
SELECT DISTINCT - col1 * - 5 AS col2 FROM tab0
----
430
455
485

onlyif mysql # use DIV operator for integer division
query I rowsort label-9536
SELECT DISTINCT + tab0.col0 * + col1 - + col2 DIV - col1 FROM tab0
----
2064
3395
8099

skipif mysql # not compatible
query I rowsort label-9536
SELECT DISTINCT + tab0.col0 * + col1 - + col2 / - col1 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT + 94 AS col2 FROM tab0, tab1 cor0, tab0 AS cor1
----
27 values hashing to a4d239626cf0546ac1b2f57bb8407089

query I rowsort
SELECT col2 + - ( ( cor0.col1 ) ) * col2 AS col0 FROM tab2 AS cor0
----
-1508
-608
-810

query I rowsort
SELECT + col1 * col2 - 37 * col2 AS col2 FROM tab0 cor0
----
1617
4428
60

query I rowsort
SELECT col0 + col2 + col0 AS col1 FROM tab2 AS cor0
----
182
196
41

query I rowsort
SELECT + 78 - - col0 * col1 AS col0 FROM tab0 AS cor0
----
2142
3473
8177

query I rowsort
SELECT DISTINCT + + col2 * - ( + cor0.col0 ) AS col2 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT + 97 * + cor0.col0 FROM tab2 cor0
----
679
7566
7663

query I rowsort
SELECT col1 * - 7 AS col2 FROM tab1
----
-182
-70
-91

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9545
SELECT DISTINCT - col0 * CAST( col2 AS SIGNED ) FROM tab1
----
-162
-3648
-7680

skipif mysql # not compatible
query I rowsort label-9545
SELECT DISTINCT - col0 * CAST ( col2 AS INTEGER ) FROM tab1
----
-162
-3648
-7680

query I rowsort
SELECT tab2.col1 * - 80 AS col2 FROM tab2
----
-1360
-2480
-4720

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - cor0.col2 ) * - col0 * col1 + + 69 * + col1 col2 FROM tab2 cor0
----
123723
52207
7998

query I rowsort
SELECT DISTINCT - col0 + - 57 FROM tab1 AS cor0
----
-121
-137
-60

query I rowsort
SELECT - ( - col1 ) * col2 - + col1 AS col1 FROM tab2 AS cor0
----
1475
629
806

query I rowsort
SELECT ALL + + ( 23 ) - cor0.col0 FROM tab1 AS cor0
----
-41
-57
20

query I rowsort
SELECT DISTINCT + 0 * + 71 AS col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL - 93 + + col1 * col1 FROM tab2 AS cor0
----
196
3388
868

query I rowsort
SELECT DISTINCT - ( 36 ) + - col2 * ( col2 ) AS col2 FROM tab0 AS cor0
----
-1125
-37
-6760

query I rowsort
SELECT DISTINCT + 17 AS col1 FROM tab2, tab2 AS cor0
----
17

query I rowsort
SELECT - - 66 + col2 AS col1 FROM tab0 AS cor0
----
148
67
99

query I rowsort
SELECT ALL - - cor0.col2 * cor0.col2 AS col0 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT - 5 * - ( col0 ) AS col0 FROM tab1 cor0
----
15
320
400

query I rowsort
SELECT ALL + + col0 * + 33 FROM tab0 AS cor0
----
1155
2937
792

query I rowsort
SELECT DISTINCT 35 + + col1 AS col0 FROM tab2 AS cor0
----
52
66
94

query I rowsort
SELECT ALL - - col2 + - col1 * col1 FROM tab1 AS cor0
----
-43
-622
-73

query I rowsort
SELECT + 95 + + col1 FROM tab2 cor0
----
112
126
154

query I rowsort
SELECT DISTINCT - col0 + tab2.col0 * - col0 * - col2 AS col1 FROM tab2
----
1316
158106
237079

query I rowsort
SELECT ALL ( 10 ) * col1 + ( + 83 ) * col2 + col1 FROM tab1
----
4768
4841
8111

query I rowsort
SELECT DISTINCT col0 + 67 AS col1 FROM tab2
----
145
146
74

query I rowsort
SELECT ALL col1 * + tab0.col1 * col1 + ( col2 ) * col0 AS col0 FROM tab0
----
636848
760869
912708

query I rowsort
SELECT DISTINCT + 4 + + tab0.col0 AS col1 FROM tab0
----
28
39
93

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9567
SELECT ALL + CAST( NULL AS SIGNED ) / - col0 + - col1 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9567
SELECT ALL + CAST ( NULL AS INTEGER ) / - col0 + - col1 AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT col2 * + col0 * + col2 FROM tab0 AS cor0
----
26136
35
598436

query I rowsort
SELECT ALL col1 * - 69 + - 93 FROM tab0 AS cor0
----
-6027
-6372
-6786

onlyif mysql # use DIV operator for integer division
query I rowsort label-9570
SELECT - cor0.col2 + 33 DIV + cor0.col1 FROM tab0 cor0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-9570
SELECT - cor0.col2 + 33 / + cor0.col1 FROM tab0 cor0
----
-1
-33
-82

query I rowsort
SELECT ALL - col1 * + cor0.col0 + - col2 AS col1 FROM tab1 AS cor0
----
-1136
-132
-697

onlyif mysql # use DIV operator for integer division
query I rowsort label-9572
SELECT DISTINCT + col2 DIV + col0 AS col1 FROM tab2 cor0
----
0
3

skipif mysql # not compatible
query I rowsort label-9572
SELECT DISTINCT + col2 / + col0 AS col1 FROM tab2 cor0
----
0
3

query I rowsort
SELECT DISTINCT cor0.col1 * - col2 AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT ALL - - 62 * cor0.col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d8c0f02de1722cd24bfd0311399d94be

query I rowsort
SELECT + tab0.col0 * + 1 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 62 col2 FROM tab2, tab2 cor0, tab1 cor1
----
27 values hashing to 4911b1417a3797d23dd8f38b6ed05c1b

query I rowsort
SELECT ALL ( col1 ) * ( 98 ) + - col0 FROM tab2
----
1587
3031
5704

query I rowsort
SELECT ALL + col2 - col0 * - cor0.col2 FROM tab2 cor0
----
2054
216
3040

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9579
SELECT ( col2 + CAST( col0 AS SIGNED ) ) AS col0 FROM tab0
----
171
36
57

skipif mysql # not compatible
query I rowsort label-9579
SELECT ( col2 + CAST ( col0 AS INTEGER ) ) AS col0 FROM tab0
----
171
36
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 * + cor0.col2 + cor0.col1 col2 FROM tab0 AS cor0
----
-706
-7207
62

query I rowsort
SELECT DISTINCT col0 * 8 AS col0 FROM tab1 AS cor0
----
24
512
640

query I rowsort
SELECT - cor0.col1 * + 81 - 22 FROM tab0 AS cor0
----
-6988
-7393
-7879

onlyif mysql # use DIV operator for integer division
query I rowsort label-9583
SELECT + cor0.col0 DIV ( col1 ) + col1 * 10 AS col1 FROM tab2 cor0
----
174
310
591

skipif mysql # not compatible
query I rowsort label-9583
SELECT + cor0.col0 / ( col1 ) + col1 * 10 AS col1 FROM tab2 cor0
----
174
310
591

query I rowsort
SELECT col0 * col0 * - col1 AS col2 FROM tab2 AS cor0
----
-106097
-1519
-358956

query I rowsort
SELECT DISTINCT col1 + ( - 12 ) AS col0 FROM tab0 AS cor0
----
74
79
85

onlyif mysql # use DIV operator for integer division
query I rowsort label-9586
SELECT ALL - col1 + + ( + 70 ) DIV - col0 FROM tab0 AS cor0
----
-88
-91
-99

skipif mysql # not compatible
query I rowsort label-9586
SELECT ALL - col1 + + ( + 70 ) / - col0 FROM tab0 AS cor0
----
-88
-91
-99

query I rowsort
SELECT ( col0 ) + col0 + 50 * col2 AS col2 FROM tab0
----
120
1698
4278

query I rowsort
SELECT - col1 + - 82 FROM tab0 cor0
----
-168
-173
-179

query I rowsort
SELECT + + col0 * + 82 + cor0.col0 * - col2 FROM tab2 AS cor0
----
3476
385
4368

query I rowsort
SELECT + col0 * + cor0.col1 + - ( + col0 ) AS col1 FROM tab0 cor0
----
2040
3360
8010

query I rowsort
SELECT ALL + 97 * ( + col2 ) AS col1 FROM tab0 AS cor0
----
3201
7954
97

query I rowsort
SELECT 96 + 4 FROM tab2 AS cor0
----
100
100
100

query I rowsort
SELECT ALL + + col1 + 53 + cor0.col1 FROM tab1 AS cor0
----
105
73
79

query I rowsort
SELECT DISTINCT 71 + - col2 FROM tab2 AS cor0
----
33
44
45

query I rowsort
SELECT ALL - 2 FROM tab0 cor0
----
-2
-2
-2

query I rowsort
SELECT ALL cor0.col2 * col0 + - col1 AS col0 FROM tab2 cor0
----
158
1969
2985

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - 3 + col1 col0 FROM tab1 AS cor0
----
181
188
301

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * 7 - + col2 col1 FROM tab1 AS cor0
----
-33
391
464

query I rowsort
SELECT DISTINCT + cor0.col1 * + col2 + - col0 + col2 FROM tab2 AS cor0
----
1482
605
857

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 - - 91 col0 FROM tab0 AS cor0
----
-6
0
5

query I rowsort
SELECT DISTINCT col0 + 41 + col0 FROM tab1 AS cor0
----
169
201
47

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9602
SELECT ALL + CAST( NULL AS DECIMAL ) - ( - cor0.col1 * - ( col2 ) ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9602
SELECT ALL + CAST ( NULL AS REAL ) - ( - cor0.col1 * - ( col2 ) ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + ( 56 ) FROM tab1 AS cor0
----
56

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 - 81 AS col2 FROM tab1 AS cor0
----
-81
-81
-81

query I rowsort
SELECT DISTINCT + 37 + col2 - col0 FROM tab2 cor0
----
-15
-4
57

query I rowsort
SELECT DISTINCT + + col1 - + col1 FROM tab0 AS cor0
----
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9608
SELECT cor0.col1 + + col0 * + CAST( - col1 AS SIGNED ) * + col2 FROM tab2 cor0
----
-119593
-51017
-5828

skipif mysql # not compatible
query I rowsort label-9608
SELECT cor0.col1 + + col0 * + CAST ( - col1 AS INTEGER ) * + col2 FROM tab2 cor0
----
-119593
-51017
-5828

query I rowsort
SELECT ALL + 99 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db

query I rowsort
SELECT - 28 * + col0 FROM tab1 AS cor0
----
-1792
-2240
-84

query I rowsort
SELECT 99 * - col1 AS col2 FROM tab1 AS cor0
----
-1287
-2574
-990

query I rowsort
SELECT + + 42 * + col0 FROM tab1 AS cor0
----
126
2688
3360

query I rowsort
SELECT DISTINCT + col1 * - col0 * - 84 FROM tab1 cor0
----
53760
6552
87360

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 + + 53 col1 FROM tab1 AS cor0
----
107
110
149

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 * ( + col2 ) col0 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT ALL - 38 FROM tab2, tab0 cor0, tab0 AS cor1
----
27 values hashing to e8c064543bf0f2e57329db1bb0a411e3

onlyif mysql # use DIV operator for integer division
query I rowsort label-9617
SELECT DISTINCT - col2 DIV - 29 col2 FROM tab2 AS cor0
----
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9617
SELECT DISTINCT - col2 / - 29 col2 FROM tab2 AS cor0
----
0
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9618
SELECT ALL col0 * col1 * CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9618
SELECT ALL col0 * col1 * CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + 55 AS col0 FROM tab2, tab2 cor0
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

onlyif mysql # use DIV operator for integer division
query I rowsort label-9620
SELECT - 21 DIV col1 + - col0 col1 FROM tab2 AS cor0
----
-7
-78
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9620
SELECT - 21 / col1 + - col0 col1 FROM tab2 AS cor0
----
-7
-78
-80

query I rowsort
SELECT 49 + 31 FROM tab0 AS cor0 CROSS JOIN tab2, tab2 AS cor1
----
27 values hashing to 6dd5038be71dffa82f5ceba787caab91

query I rowsort
SELECT DISTINCT 63 FROM tab1, tab1 AS cor0
----
63

query I rowsort
SELECT ALL col2 * 60 AS col0 FROM tab0
----
1980
4920
60

query I rowsort
SELECT ALL 45 * - ( col1 ) AS col1 FROM tab0
----
-3870
-4095
-4365

query I rowsort
SELECT 33 FROM tab1, tab0 cor0
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - cor0.col0 col2 FROM tab2, tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT - + 41 * + 38 FROM tab0 AS cor0
----
-1558
-1558
-1558

query I rowsort
SELECT ALL - ( - 28 ) AS col2 FROM tab0
----
28
28
28

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9629
SELECT ALL + CAST( + 6 AS SIGNED ) * col1 AS col1 FROM tab2 AS cor0
----
102
186
354

skipif mysql # not compatible
query I rowsort label-9629
SELECT ALL + CAST ( + 6 AS INTEGER ) * col1 AS col1 FROM tab2 AS cor0
----
102
186
354

query I rowsort
SELECT + 57 + + 36 * col0 AS col0 FROM tab1 AS cor0
----
165
2361
2937

query I rowsort
SELECT DISTINCT + col2 * col0 + + 49 AS col2 FROM tab0 AS cor0
----
7347
84
841

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9632
SELECT ALL + col0 * col2 * + 64 - col1 * CAST( col0 AS SIGNED ) * - cor0.col2 col0 FROM tab1 AS cor0
----
14580
269952
591360

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9632
SELECT ALL + col0 * col2 * + 64 - col1 * CAST ( col0 AS INTEGER ) * - cor0.col2 col0 FROM tab1 AS cor0
----
14580
269952
591360

query I rowsort
SELECT ALL + cor0.col0 + 46 + + cor0.col0 FROM tab2 AS cor0
----
202
204
60

query I rowsort
SELECT + col0 * - col1 + - 49 AS col1 FROM tab1 AS cor0
----
-1089
-127
-689

query I rowsort
SELECT - col1 * + cor0.col1 * + col1 + col1 + 9 FROM tab2 cor0
----
-205311
-29751
-4887

skipif mysql # not compatible
query I rowsort
SELECT ALL col2 * CAST ( 73 AS REAL ) AS col1 FROM tab1 cor0
----
3942
4161
7008

query I rowsort
SELECT DISTINCT col0 * - col1 AS col0 FROM tab1 cor0
----
-1040
-640
-78

onlyif mysql # use DIV operator for integer division
query I rowsort label-9638
SELECT - col2 DIV col0 - col1 FROM tab0 AS cor0
----
-87
-91
-97

skipif mysql # not compatible
query I rowsort label-9638
SELECT - col2 / col0 - col1 FROM tab0 AS cor0
----
-87
-91
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 - col0 * col1 * - col1 col2 FROM tab2 AS cor0
----
22910
271596
6734

query I rowsort
SELECT col0 + cor0.col0 * + col1 AS col2 FROM tab2 AS cor0
----
1422
224
4680

query I rowsort
SELECT ALL cor0.col0 + + ( cor0.col0 ) * + col2 AS col0 FROM tab0 AS cor0
----
70
7387
816

query I rowsort
SELECT - col1 * + 96 FROM tab1
----
-1248
-2496
-960

query I rowsort
SELECT DISTINCT - col1 * 45 + - 61 FROM tab2
----
-1456
-2716
-826

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 * - col2 col0 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT - 39 * - col2 + + col0 AS col1 FROM tab2 AS cor0
----
1060
1092
1561

query I rowsort
SELECT ALL 11 + col0 * 9 FROM tab0 AS cor0
----
227
326
812

query I rowsort
SELECT DISTINCT + col2 + col2 * - col0 AS col0 FROM tab1 AS cor0
----
-108
-3591
-7584

query I rowsort
SELECT + col1 + + cor0.col2 * - cor0.col1 FROM tab2 cor0
----
-1475
-629
-806

query I rowsort
SELECT ALL - ( col0 ) * 2 * col2 AS col0 FROM tab1
----
-15360
-324
-7296

query I rowsort
SELECT 20 + col1 AS col0 FROM tab1
----
30
33
46

query I rowsort
SELECT DISTINCT col2 - - col0 * col2 AS col2 FROM tab1
----
216
3705
7776

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 96 - - tab2.col0 * - tab2.col1 col1 FROM tab2
----
-121
-1247
-4506

query I rowsort
SELECT ALL - col1 - col1 * + col2 AS col0 FROM tab1
----
-1261
-1430
-580

query I rowsort
SELECT + col2 * col1 * ( + 47 ) FROM tab0
----
133386
350714
4559

query I rowsort
SELECT 31 - col2 * + col1 FROM tab2
----
-1503
-615
-806

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 74 * col1 col1 FROM tab2 cor0
----
1258
2294
4366

query I rowsort
SELECT DISTINCT + col2 + + col0 * col2 FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT DISTINCT - - col0 * col2 + col0 FROM tab0 AS cor0
----
70
7387
816

query I rowsort
SELECT ALL - col2 * col2 * 33 + + col1 + ( 90 ) FROM tab0 AS cor0
----
-221711
-35761
154

query I rowsort
SELECT ALL col0 * ( 96 ) AS col0 FROM tab0 AS cor0
----
2304
3360
8544

query I rowsort
SELECT DISTINCT cor1.col1 FROM tab2, tab0 AS cor0, tab0 AS cor1, tab2 cor2
----
86
91
97

query I rowsort
SELECT ALL 69 FROM tab2, tab1 cor0, tab1 AS cor1
----
27 values hashing to 2810c3097fe4771e273cfff903357b40

query I rowsort
SELECT DISTINCT col2 + - col2 + + col1 * + col1 * col2 AS col0 FROM tab1
----
16224
36504
5700

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9664
SELECT col0 * + CAST( NULL AS SIGNED ) * + cor0.col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9664
SELECT col0 * + CAST ( NULL AS INTEGER ) * + cor0.col1 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 9 + + 20 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00

query I rowsort
SELECT + - col1 + + 78 * ( + col1 ) FROM tab1 AS cor0
----
1001
2002
770

query I rowsort
SELECT - ( - 59 * col1 ) FROM tab1
----
1534
590
767

query I rowsort
SELECT ALL + col2 * 68 + - col2 * col2 FROM tab0 AS cor0
----
-1148
1155
67

query I rowsort
SELECT DISTINCT - 5 - - cor0.col1 FROM tab1 AS cor0
----
21
5
8

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9670
SELECT - CAST( NULL AS SIGNED ) + col2 col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9670
SELECT - CAST ( NULL AS INTEGER ) + col2 col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 * + 57 + + col2 FROM tab0 AS cor0
----
4935
5269
5530

query I rowsort
SELECT ALL + + 92 * - col1 + - ( col2 + col1 ) AS col2 FROM tab1 AS cor0
----
-1305
-2472
-987

query I rowsort
SELECT DISTINCT - - 88 AS col0 FROM tab2 AS cor0
----
88

query I rowsort
SELECT ALL + col2 + - col1 * + 61 AS col1 FROM tab1 cor0
----
-1532
-553
-697

onlyif mysql # use DIV operator for integer division
query I rowsort label-9675
SELECT DISTINCT - - col2 + - col1 DIV ( - col1 ) AS col2 FROM tab0 AS cor0
----
2
34
83

skipif mysql # not compatible
query I rowsort label-9675
SELECT DISTINCT - - col2 + - col1 / ( - col1 ) AS col2 FROM tab0 AS cor0
----
2
34
83

query I rowsort
SELECT DISTINCT 7 + - col1 AS col2 FROM tab0 cor0
----
-79
-84
-90

query I rowsort
SELECT + 93 * - col1 AS col2 FROM tab0 AS cor0
----
-7998
-8463
-9021

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9678
SELECT ALL + col1 * cor0.col1 - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9678
SELECT ALL + col1 * cor0.col1 - CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-9679
SELECT DISTINCT col0 DIV - col2 AS col2 FROM tab0 cor0
----
-1
-35
0

skipif mysql # not compatible
query I rowsort label-9679
SELECT DISTINCT col0 / - col2 AS col2 FROM tab0 cor0
----
-1
-35
0

query I rowsort
SELECT ALL - 53 * + cor0.col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 08eec2f4af81e972921fa9803f84ec5e

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9681
SELECT + CAST( 16 AS SIGNED ) AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3

skipif mysql # not compatible
query I rowsort label-9681
SELECT + CAST ( 16 AS INTEGER ) AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3

query I rowsort
SELECT + + 1 * - col0 AS col0 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT + ( + col2 ) + + cor0.col1 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT - tab0.col2 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc

query I rowsort
SELECT ALL 43 + col0 AS col1 FROM tab2
----
121
122
50

query I rowsort
SELECT DISTINCT - 49 * tab2.col0 * - col1 FROM tab2
----
10633
225498
65807

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9687
SELECT DISTINCT 19 * + col2 / CAST( NULL AS SIGNED ) AS col2 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9687
SELECT DISTINCT 19 * + col2 / CAST ( NULL AS INTEGER ) AS col2 FROM tab1 cor0
----
NULL

query I rowsort
SELECT tab2.col2 AS col1 FROM tab2, tab1 AS cor0, tab1 cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT DISTINCT + ( col1 + col0 ) AS col0 FROM tab2
----
137
38
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - ( col2 ) col0 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT col2 * + ( + col2 ) * col2 FROM tab1 AS cor0
----
157464
185193
884736

query I rowsort
SELECT + cor0.col1 * + ( cor0.col1 ) + - col1 * + 67 AS col0 FROM tab2 AS cor0
----
-1116
-472
-850

query I rowsort
SELECT ALL col1 * 59 AS col2 FROM tab2 AS cor0
----
1003
1829
3481

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9694
SELECT - col2 + - CAST( NULL AS SIGNED ) * col2 + + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9694
SELECT - col2 + - CAST ( NULL AS INTEGER ) * col2 + + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9695
SELECT - + col2 * - CAST( + col0 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
35
7298
792

skipif mysql # not compatible
query I rowsort label-9695
SELECT - + col2 * - CAST ( + col0 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT + col0 * + 47 * + 87 + cor0.col1 FROM tab2 AS cor0
----
28654
319001
323048

query I rowsort
SELECT ALL - 33 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 8035c665a75d22be5922be1a4e574e03

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9698
SELECT + - col0 * CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9698
SELECT + - col0 * CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab2.col0 + + 27 col0 FROM tab2
----
-51
-52
20

query I rowsort
SELECT + ( 93 ) FROM tab1 AS cor0
----
93
93
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-9701
SELECT col0 + 63 * col0 DIV col2 FROM tab0 AS cor0
----
157
2240
69

skipif mysql # not compatible
query I rowsort label-9701
SELECT col0 + 63 * col0 / col2 FROM tab0 AS cor0
----
157
2240
69

query I rowsort
SELECT 34 * - 70 FROM tab0 AS cor0
----
-2380
-2380
-2380

query I rowsort
SELECT DISTINCT 67 + 84 AS col1 FROM tab1 AS cor0
----
151

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - 27 ) col1 FROM tab1 cor0
----
-27
-27
-27

query I rowsort
SELECT + ( col0 ) + col0 + col2 FROM tab0 AS cor0
----
260
71
81

query I rowsort
SELECT DISTINCT col2 * ( col2 ) AS col0 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT + - col1 * - 52 + + col1 * + col0 + col1 * col0 * cor0.col1 FROM tab1 AS cor0
----
15236
3458
7560

query I rowsort
SELECT DISTINCT cor0.col1 + + col1 + cor0.col2 FROM tab1 AS cor0
----
106
122
77

onlyif mysql # use DIV operator for integer division
query I rowsort label-9709
SELECT - 74 * - col2 DIV col2 FROM tab0 AS cor0
----
74
74
74

skipif mysql # not compatible
query I rowsort label-9709
SELECT - 74 * - col2 / col2 FROM tab0 AS cor0
----
74
74
74

query I rowsort
SELECT DISTINCT + - col2 * 10 FROM tab0 AS cor0
----
-10
-330
-820

query I rowsort
SELECT - 82 * + col1 AS col2 FROM tab1 AS cor0
----
-1066
-2132
-820

query I rowsort
SELECT cor0.col0 + - col2 * - col0 AS col2 FROM tab1 AS cor0
----
165
3712
7760

query I rowsort
SELECT col2 * + col2 - + ( - col2 ) FROM tab2 AS cor0
----
1482
702
756

query I rowsort
SELECT 11 - + cor0.col2 FROM tab0 cor0
----
-22
-71
10

query I rowsort
SELECT - + col0 + col0 * + ( - 58 ) AS col1 FROM tab2 AS cor0
----
-413
-4602
-4661

query I rowsort
SELECT DISTINCT - col0 + cor0.col2 + cor0.col1 FROM tab0 AS cor0
----
63
84
95

query I rowsort
SELECT ALL - col0 + + 36 * + col0 FROM tab2 AS cor0
----
245
2730
2765

query I rowsort
SELECT + col0 * - col2 + - ( + col0 ) FROM tab2 AS cor0
----
-196
-2106
-3081

query I rowsort
SELECT + col0 * + col0 - + col0 AS col1 FROM tab1
----
4032
6
6320

query I rowsort
SELECT - tab1.col1 + col1 * + col0 FROM tab1
----
1027
52
630

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * col1 - col0 col2 FROM tab0 AS cor0
----
-132
-2862
-7551

query I rowsort
SELECT ALL + col1 + + col2 * - col0 FROM tab2 AS cor0
----
-158
-1969
-2985

query I rowsort
SELECT DISTINCT + - col0 + cor0.col2 * cor0.col1 FROM tab2 cor0
----
1456
567
830

query I rowsort
SELECT ALL + col1 * col0 + col2 FROM tab2 AS cor0
----
1381
244
4628

query I rowsort
SELECT DISTINCT col1 + col2 * col2 - - col1 * col1 AS col2 FROM tab0 AS cor0
----
15096
8571
9507

query I rowsort
SELECT DISTINCT - col0 * col1 + - col1 FROM tab2 cor0
----
-1360
-248
-4661

query I rowsort
SELECT + cor0.col0 + col1 * - col0 FROM tab2 AS cor0
----
-1264
-210
-4524

query I rowsort
SELECT ALL - cor0.col0 * col2 AS col1 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN col0 * col1 * - col1 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col0 NOT IN ( + col1 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

query I rowsort
SELECT ALL + col0 * col1 * + cor0.col0 + col0 AS col0 FROM tab2 AS cor0
----
106176
1526
359034

query III rowsort
SELECT * FROM tab1 WHERE + col0 * + col1 <= NULL
----

query I rowsort
SELECT ALL + col2 - + tab2.col0 * - tab2.col1 FROM tab2
----
1381
244
4628

query I rowsort
SELECT DISTINCT col2 * - col0 - + col2 FROM tab2 AS cor0
----
-2054
-216
-3040

onlyif mysql # use DIV operator for integer division
query I rowsort label-9734
SELECT + col0 DIV - col2 col1 FROM tab1 AS cor0
----
-1
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9734
SELECT + col0 / - col2 col1 FROM tab1 AS cor0
----
-1
0
0

query I rowsort
SELECT DISTINCT - col1 * col1 + + cor0.col0 FROM tab1 cor0
----
-36
-673
-89

query I rowsort
SELECT + col2 * col0 * + col1 AS col1 FROM tab2 cor0
----
119652
51034
5859

query I rowsort
SELECT tab0.col0 + + col0 * col1 FROM tab0
----
2088
3430
8188

query I rowsort
SELECT + 91 * cor0.col1 + ( - 7 ) FROM tab0 AS cor0
----
7819
8274
8820

query I rowsort
SELECT DISTINCT col2 * col2 * - col0 FROM tab0
----
-26136
-35
-598436

query III rowsort
SELECT * FROM tab2 WHERE NULL >= ( col0 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-9741
SELECT + tab0.col0 DIV + col2 AS col0 FROM tab0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-9741
SELECT + tab0.col0 / + col2 AS col0 FROM tab0
----
0
1
35

query I rowsort
SELECT + 65 * col0 AS col0 FROM tab0 AS cor0
----
1560
2275
5785

query I rowsort
SELECT col0 + col0 + col0 FROM tab2 WHERE NOT - col1 / col1 NOT IN ( col1 + - col1 + col1 * col2 )
----

query I rowsort
SELECT DISTINCT + tab2.col1 + + col2 AS col2 FROM tab2
----
55
58
85

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col1 BETWEEN + col1 AND NULL
----

query I rowsort
SELECT DISTINCT col1 + col1 * + col0 FROM tab2
----
1360
248
4661

query I rowsort
SELECT tab1.col1 * col2 + + tab1.col0 * col0 * col0 FROM tab1
----
1431
262714
513248

query I rowsort
SELECT + 15 + + col0 FROM tab2
----
22
93
94

onlyif mysql # use DIV operator for integer division
query I rowsort label-9749
SELECT ALL + col2 * col2 DIV col1 AS col1 FROM tab0
----
0
12
73

skipif mysql # not compatible
query I rowsort label-9749
SELECT ALL + col2 * col2 / col1 AS col1 FROM tab0
----
0
12
73

query I rowsort
SELECT ALL - - ( - col1 ) * col2 + + 95 * + cor0.col0 + + col1 FROM tab2 AS cor0
----
-141
5935
6876

query I rowsort
SELECT - col0 + col2 AS col0 FROM tab2 WHERE NULL < ( NULL )
----

query I rowsort
SELECT DISTINCT - col2 * col1 * col1 FROM tab0
----
-244068
-679042
-9409

query I rowsort
SELECT ALL + col0 + + col1 * + col0 * - col1 + - col1 * col2 FROM tab1
----
-14688
-3429
-6906

query I rowsort
SELECT - col1 + col1 + - col2 FROM tab0 WHERE NULL NOT IN ( - tab0.col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL IN ( tab1.col1 )
----

query I rowsort
SELECT DISTINCT - col2 + col1 - col0 * col1 FROM tab0
----
-2011
-3299
-8090

query I rowsort
SELECT DISTINCT - col1 + col1 + - col0 * col2 * - col2 AS col2 FROM tab1
----
207936
737280
8748

query I rowsort
SELECT + col0 - + col0 * - tab1.col2 FROM tab1
----
165
3712
7760

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE ( + col1 * + col1 + col0 ) BETWEEN NULL AND ( col0 * col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - col2 col1 FROM tab1 AS cor0
----
-2916
-3249
-9216

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL > ( col2 + col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col1 * col0 + + col1 * col0 col1 FROM tab2
----
-104754
-1302
-354354

query I rowsort
SELECT + tab1.col0 * col1 + - col1 * - col0 FROM tab1
----
1280
156
2080

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab0 WHERE col2 * col2 < NULL
----

query I rowsort
SELECT col2 * - col0 * col2 + - col1 * col0 AS col0 FROM tab1
----
-208576
-738320
-8826

query I rowsort
SELECT ALL tab2.col2 + col2 * + col2 AS col1 FROM tab2
----
1482
702
756

query I rowsort
SELECT DISTINCT col1 * col2 - - col2 FROM tab0
----
2871
7544
98

query I rowsort
SELECT ALL + col1 AS col0 FROM tab2 WHERE ( - col2 ) IN ( col1 * - tab2.col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col1 + tab1.col0 col2 FROM tab1
----
-1168
-1401
-506

query I rowsort
SELECT DISTINCT col2 * + col2 + - col2 FROM tab2
----
1406
650
702

query I rowsort
SELECT DISTINCT col1 + + col1 * tab0.col0 AS col2 FROM tab0
----
2150
3492
8190

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 70 * + cor0.col1 col0 FROM tab1 AS cor0
----
-1820
-700
-910

query I rowsort
SELECT DISTINCT + + cor0.col0 * cor0.col0 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT + cor0.col1 AS col0 FROM tab2, tab1 AS cor0, tab1 cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT - col1 * + col0 + cor0.col2 FROM tab0 AS cor0
----
-2031
-3394
-8017

query I rowsort
SELECT - col0 + - 52 FROM tab1 AS cor0
----
-116
-132
-55

query I rowsort
SELECT + col2 + + col2 * ( col2 * col2 ) AS col2 FROM tab0
----
2
35970
551450

query I rowsort
SELECT - cor0.col1 * - 55 AS col0 FROM tab2 AS cor0
----
1705
3245
935

query I rowsort
SELECT DISTINCT 18 + - tab2.col0 FROM tab2, tab0, tab1 AS cor0
----
-60
-61
11

query I rowsort
SELECT DISTINCT - cor0.col2 + 67 + 71 FROM tab2, tab1 AS cor0
----
42
81
84

query I rowsort
SELECT - - col1 * 76 + col2 FROM tab2 AS cor0
----
1330
2383
4510

onlyif mysql # use DIV operator for integer division
query I rowsort label-9782
SELECT + - 26 * 77 DIV cor0.col1 AS col1 FROM tab1 AS cor0
----
-154
-200
-77

skipif mysql # not compatible
query I rowsort label-9782
SELECT + - 26 * 77 / cor0.col1 AS col1 FROM tab1 AS cor0
----
-154
-200
-77

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9783
SELECT + CAST( NULL AS SIGNED ) / + col1 + cor0.col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9783
SELECT + CAST ( NULL AS INTEGER ) / + col1 + cor0.col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT cor0.col0 * 38 + col2 FROM tab1 AS cor0
----
168
2489
3136

query I rowsort
SELECT ALL tab1.col1 + - ( col1 ) AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT - col0 * + 50 + col2 * col0 AS col0 FROM tab1 AS cor0
----
12
3680
448

query I rowsort
SELECT - ( 71 ) * col0 + 94 + 98 FROM tab0 AS cor0
----
-1512
-2293
-6127

query I rowsort
SELECT 84 * - col0 AS col1 FROM tab2 AS cor0
----
-588
-6552
-6636

query I rowsort
SELECT 58 AS col1 FROM tab2, tab1 cor0
----
9 values hashing to ef6e63aeed2581a168f07646d258f666

onlyif mysql # use DIV operator for integer division
query I rowsort label-9790
SELECT ALL col2 + + col0 DIV + col2 + tab1.col1 FROM tab1
----
109
68
80

skipif mysql # not compatible
query I rowsort label-9790
SELECT ALL col2 + + col0 / + col2 + tab1.col1 FROM tab1
----
109
68
80

query I rowsort
SELECT col2 * - 41 FROM tab2
----
-1066
-1107
-1558

query I rowsort
SELECT ALL 47 FROM tab0, tab2 cor0
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

query I rowsort
SELECT ALL col1 * col0 + col0 * + col0 * col1 + col1 FROM tab0
----
122317
51686
729001

query I rowsort
SELECT - ( cor0.col2 ) * + tab1.col0 AS col1 FROM tab2, tab1 AS cor0 CROSS JOIN tab1, tab2 cor1
----
81 values hashing to 701b71c9d7ad1b73b47dee3356d11983

query I rowsort
SELECT + 25 * cor0.col1 AS col1 FROM tab1 AS cor0
----
250
325
650

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9796
SELECT - - col0 + ( - col2 ) * 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-9796
SELECT - - col0 + ( - col2 ) * CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 51 * + col0 FROM tab0 AS cor0
----
1224
1785
4539

query I rowsort
SELECT ALL cor0.col1 + col2 * cor0.col2 FROM tab2 AS cor0
----
1461
735
760

query I rowsort
SELECT DISTINCT - + col0 * - col2 AS col0 FROM tab2 AS cor0
----
189
2028
3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 + + col2 col1 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT DISTINCT - + col1 * + col0 * - col2 AS col0 FROM tab1 AS cor0
----
36480
4212
99840

query I rowsort
SELECT ALL + + col0 + 29 AS col2 FROM tab1 AS cor0
----
109
32
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-9803
SELECT + cor0.col0 + col2 DIV + col2 + ( + col0 ) * col2 FROM tab0 AS cor0
----
71
7388
817

skipif mysql # not compatible
query I rowsort label-9803
SELECT + cor0.col0 + col2 / + col2 + ( + col0 ) * col2 FROM tab0 AS cor0
----
71
7388
817

query I rowsort
SELECT DISTINCT - ( 45 ) FROM tab2 AS cor0
----
-45

query I rowsort
SELECT - + 22 * ( - col0 ) AS col2 FROM tab2 AS cor0
----
154
1716
1738

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 72 * col1 col2 FROM tab1 AS cor0
----
-1872
-720
-936

query I rowsort
SELECT + 14 * col2 AS col0 FROM tab1
----
1344
756
798

query I rowsort
SELECT tab0.col2 * ( + col1 ) AS col2 FROM tab0
----
2838
7462
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-9809
SELECT col1 DIV - tab1.col2 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9809
SELECT col1 / - tab1.col2 AS col0 FROM tab1
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-9810
SELECT DISTINCT tab2.col2 DIV - 83 col2 FROM tab2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9810
SELECT DISTINCT tab2.col2 / - 83 col2 FROM tab2
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-9811
SELECT DISTINCT - + ( + col2 ) DIV + col2 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-9811
SELECT DISTINCT - + ( + col2 ) / + col2 FROM tab1 AS cor0
----
-1

query I rowsort
SELECT + col1 * col0 + + col0 AS col1 FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT ALL - + cor0.col2 * col2 AS col2 FROM tab1 cor0
----
-2916
-3249
-9216

query I rowsort
SELECT DISTINCT - 18 * + col2 + - cor0.col0 FROM tab0 cor0
----
-1565
-53
-618

query I rowsort
SELECT + 15 + col2 AS col2 FROM tab1 AS cor0
----
111
69
72

onlyif mysql # use DIV operator for integer division
query I rowsort label-9816
SELECT - col1 DIV - cor0.col0 - + col0 AS col1 FROM tab1 AS cor0
----
-64
-80
5

skipif mysql # not compatible
query I rowsort label-9816
SELECT - col1 / - cor0.col0 - + col0 AS col1 FROM tab1 AS cor0
----
-64
-80
5

query I rowsort
SELECT DISTINCT - ( col0 + - col1 * col2 ) AS col0 FROM tab2
----
1456
567
830

onlyif mysql # use DIV operator for integer division
query I rowsort label-9818
SELECT ALL tab0.col0 DIV col2 - col2 AS col0 FROM tab0
----
-33
-81
34

skipif mysql # not compatible
query I rowsort label-9818
SELECT ALL tab0.col0 / col2 - col2 AS col0 FROM tab0
----
-33
-81
34

query I rowsort
SELECT ( + col0 ) + col1 * col1 AS col0 FROM tab1
----
164
249
679

query I rowsort
SELECT - ( + 3 + - tab0.col1 ) AS col2 FROM tab0
----
83
88
94

query I rowsort
SELECT + 55 * tab0.col2 FROM tab0
----
1815
4510
55

query I rowsort
SELECT DISTINCT + ( tab2.col1 ) FROM tab2, tab2 cor0
----
17
31
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-9823
SELECT DISTINCT - col1 DIV tab1.col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9823
SELECT DISTINCT - col1 / tab1.col2 FROM tab1
----
0

query I rowsort
SELECT - 71 + + col2 AS col0 FROM tab1
----
-14
-17
25

query I rowsort
SELECT - - cor1.col2 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

query I rowsort
SELECT DISTINCT - 43 * col1 + + col2 FROM tab2
----
-1306
-2511
-693

query I rowsort
SELECT + - col2 + col2 - + col1 FROM tab0 AS cor0
----
-86
-91
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-9828
SELECT - 65 + cor0.col1 * col2 DIV col0 AS col0 FROM tab0 AS cor0
----
-63
18
53

skipif mysql # not compatible
query I rowsort label-9828
SELECT - 65 + cor0.col1 * col2 / col0 AS col0 FROM tab0 AS cor0
----
-63
18
53

query I rowsort
SELECT - ( + col0 ) * col0 FROM tab1 AS cor0
----
-4096
-6400
-9

onlyif mysql # use DIV operator for integer division
query I rowsort label-9830
SELECT col0 + col2 DIV col0 FROM tab0 AS cor0
----
25
35
89

skipif mysql # not compatible
query I rowsort label-9830
SELECT col0 + col2 / col0 FROM tab0 AS cor0
----
25
35
89

query I rowsort
SELECT ( col0 ) * col0 + - col2 AS col1 FROM tab1 AS cor0
----
-45
4039
6304

onlyif mysql # use DIV operator for integer division
query I rowsort label-9832
SELECT - - 24 DIV - col2 + col0 * - col0 - + col1 * col1 FROM tab1 AS cor0
----
-4196
-6569
-685

skipif mysql # not compatible
query I rowsort label-9832
SELECT - - 24 / - col2 + col0 * - col0 - + col1 * col1 FROM tab1 AS cor0
----
-4196
-6569
-685

query I rowsort
SELECT + col0 * + 27 AS col1 FROM tab0 AS cor0
----
2403
648
945

query I rowsort
SELECT - 81 + col1 * - cor0.col0 FROM tab2 AS cor0
----
-1424
-298
-4683

query I rowsort
SELECT - col1 + - 26 FROM tab1
----
-36
-39
-52

query I rowsort
SELECT ALL + col0 + col1 + col0 AS col1 FROM tab2 AS cor0
----
175
215
45

query I rowsort
SELECT - cor0.col1 * 75 AS col0 FROM tab2 AS cor0
----
-1275
-2325
-4425

query I rowsort
SELECT col1 + + 14 AS col2 FROM tab1
----
24
27
40

query I rowsort
SELECT col1 * 82 + col0 AS col0 FROM tab1
----
1146
2135
884

onlyif mysql # use DIV operator for integer division
query I rowsort label-9840
SELECT DISTINCT - 70 DIV + col2 FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-9840
SELECT DISTINCT - 70 / + col2 FROM tab1 AS cor0
----
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 34 ) * - col1 col2 FROM tab2 AS cor0
----
-1054
-2006
-578

query I rowsort
SELECT DISTINCT - col2 * ( - col0 ) + col1 * cor0.col1 FROM tab1 AS cor0
----
3748
7849
838

query I rowsort
SELECT ALL 65 FROM tab2 cor0
----
65
65
65

query I rowsort
SELECT DISTINCT + - col2 + 49 FROM tab2 AS cor0
----
11
22
23

query I rowsort
SELECT + col0 * cor0.col2 + col0 FROM tab1 AS cor0
----
165
3712
7760

query I rowsort
SELECT DISTINCT 99 * ( col0 ) AS col2 FROM tab1 cor0
----
297
6336
7920

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9847
SELECT - - CAST( - cor0.col0 AS SIGNED ) * col2 * col2 AS col2 FROM tab1 AS cor0
----
-207936
-737280
-8748

skipif mysql # not compatible
query I rowsort label-9847
SELECT - - CAST ( - cor0.col0 AS INTEGER ) * col2 * col2 AS col2 FROM tab1 AS cor0
----
-207936
-737280
-8748

query I rowsort
SELECT ALL + 41 * cor0.col1 FROM tab1 AS cor0
----
1066
410
533

skipif mysql # not compatible
query I rowsort
SELECT ALL - + CAST ( 97 AS REAL ) AS col0 FROM tab1 AS cor0
----
-97
-97
-97

query I rowsort
SELECT - cor0.col2 * 24 FROM tab2 cor0
----
-624
-648
-912

query I rowsort
SELECT DISTINCT - col0 * - 16 AS col2 FROM tab2 AS cor0
----
112
1248
1264

query I rowsort
SELECT ALL col2 * - col0 * col1 FROM tab2 AS cor0
----
-119652
-51034
-5859

query I rowsort
SELECT - 14 * - col0 AS col1 FROM tab1 AS cor0
----
1120
42
896

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 11 * + tab2.col1 + + col2 col0 FROM tab2
----
225
368
675

onlyif mysql # use DIV operator for integer division
query I rowsort label-9855
SELECT DISTINCT - 2 * - cor0.col0 + col2 DIV 91 col1 FROM tab0 AS cor0
----
178
48
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9855
SELECT DISTINCT - 2 * - cor0.col0 + col2 / 91 col1 FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT ALL + ( - col1 ) + - 99 FROM tab2 AS cor0
----
-116
-130
-158

query I rowsort
SELECT - + col0 * col2 + col1 FROM tab0 AS cor0
----
-706
-7207
62

query I rowsort
SELECT DISTINCT - 70 * - cor0.col1 + + col0 FROM tab0 AS cor0
----
6044
6459
6825

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 1 + col1 col0 FROM tab2 AS cor0
----
16
30
58

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9860
SELECT ALL + col2 * + col0 - - CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9860
SELECT ALL + col2 * + col0 - - CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - ( col2 ) * + ( col0 ) * + cor0.col2 - col0 AS col0 FROM tab0 AS cor0
----
-26160
-598525
-70

query I rowsort
SELECT DISTINCT + cor0.col0 + - col0 AS col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL + + cor0.col0 * + col1 * cor0.col0 AS col0 FROM tab0 AS cor0
----
118825
49536
720811

onlyif mysql # use DIV operator for integer division
query I rowsort label-9864
SELECT + col1 DIV - cor0.col2 + - col2 * + col0 AS col1 FROM tab1 cor0
----
-162
-3648
-7680

skipif mysql # not compatible
query I rowsort label-9864
SELECT + col1 / - cor0.col2 + - col2 * + col0 AS col1 FROM tab1 cor0
----
-162
-3648
-7680

query I rowsort
SELECT DISTINCT col0 + - 4 AS col1 FROM tab2 AS cor0
----
3
74
75

query I rowsort
SELECT DISTINCT - - col0 + + cor0.col0 + cor0.col0 AS col1 FROM tab1 AS cor0
----
192
240
9

query I rowsort
SELECT ALL - - col2 * col2 + + 76 FROM tab1 AS cor0
----
2992
3325
9292

query I rowsort
SELECT ALL col2 + + ( + col0 + col1 ) * 11 AS col2 FROM tab0 AS cor0
----
1243
1453
2062

onlyif mysql # use DIV operator for integer division
query I rowsort label-9869
SELECT DISTINCT + col1 + + col0 DIV 94 FROM tab2
----
17
31
59

skipif mysql # not compatible
query I rowsort label-9869
SELECT DISTINCT + col1 + + col0 / 94 FROM tab2
----
17
31
59

query I rowsort
SELECT col1 + 7 * col2 FROM tab0 AS cor0
----
104
317
665

onlyif mysql # use DIV operator for integer division
query I rowsort label-9871
SELECT DISTINCT - + col2 DIV + ( 27 * col2 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9871
SELECT DISTINCT - + col2 / + ( 27 * col2 ) FROM tab0 AS cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-9872
SELECT ALL 26 * tab0.col0 DIV 70 FROM tab0
----
13
33
8

skipif mysql # not compatible
query I rowsort label-9872
SELECT ALL 26 * tab0.col0 / 70 FROM tab0
----
13
33
8

query I rowsort
SELECT col1 + - col1 * + 7 * col1 FROM tab1 AS cor0
----
-1170
-4706
-690

query I rowsort
SELECT - + col0 + + 90 AS col0 FROM tab0 AS cor0
----
1
55
66

query I rowsort
SELECT col1 + ( + 34 ) + - col0 FROM tab1 AS cor0
----
-20
-33
57

query I rowsort
SELECT ALL - col0 + + ( col2 * + col0 ) - + col0 AS col0 FROM tab2 AS cor0
----
175
1872
2844

onlyif mysql # use DIV operator for integer division
query I rowsort label-9877
SELECT + col0 * - 11 - cor0.col0 DIV + col1 AS col2 FROM tab1 AS cor0
----
-33
-710
-886

skipif mysql # not compatible
query I rowsort label-9877
SELECT + col0 * - 11 - cor0.col0 / + col1 AS col2 FROM tab1 AS cor0
----
-33
-710
-886

query I rowsort
SELECT + col2 - ( - col2 ) * col1 * col0 AS col1 FROM tab0 AS cor0
----
3396
664200
68145

skipif mysql # not compatible
query I rowsort
SELECT - col0 * - CAST ( - ( - col0 ) AS REAL ) FROM tab0 AS cor0
----
1225
576
7921

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9880
SELECT col0 + CAST( col1 + - col0 AS SIGNED ) FROM tab2 cor0
----
17
31
59

skipif mysql # not compatible
query I rowsort label-9880
SELECT col0 + CAST ( col1 + - col0 AS INTEGER ) FROM tab2 cor0
----
17
31
59

query I rowsort
SELECT + 38 * - 50 FROM tab0, tab1 AS cor0
----
9 values hashing to e63d153a637174d16b51f2b75e7c086e

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab2 AS cor2, tab2 AS cor3
----
3645 values hashing to b62c1ebc681aca72d13feadb888b3be7

query I rowsort
SELECT 46 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 2f97924b57b73102233df7c9ce8ad602

query I rowsort
SELECT ALL + col0 * - col1 * 27 AS col1 FROM tab2 AS cor0
----
-124254
-36261
-5859

query I rowsort
SELECT DISTINCT 13 AS col2 FROM tab1, tab0 cor0, tab2 AS cor1, tab0, tab1 AS cor2
----
13

query I rowsort
SELECT + 67 + - cor0.col2 * 97 FROM tab2 AS cor0
----
-2455
-2552
-3619

query I rowsort
SELECT ALL + 72 + + col0 AS col2 FROM tab0 cor0
----
107
161
96

query I rowsort
SELECT DISTINCT ( col1 ) * + col2 * cor0.col1 FROM tab1 AS cor0
----
16224
36504
5700

query I rowsort
SELECT - col2 * - col0 + - col0 + + 25 * col2 FROM tab0 AS cor0
----
1593
25
9259

query I rowsort
SELECT + 3 + + col1 AS col0 FROM tab1
----
13
16
29

query I rowsort
SELECT - col0 + col1 + ( col1 ) * col1 * 10 FROM tab0
----
74022
82812
94152

query I rowsort
SELECT ALL - - col1 * + col1 FROM tab0 cor0
----
7396
8281
9409

query I rowsort
SELECT 56 * cor1.col0 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 7090d6af660b50dfbd30028349de68af

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9894
SELECT ( - col0 ) * + col1 / CAST( NULL AS SIGNED ) + col1 + col2 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9894
SELECT ( - col0 ) * + col1 / CAST ( NULL AS INTEGER ) + col1 + col2 AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-9895
SELECT 60 * + col1 DIV col1 FROM tab2 AS cor0
----
60
60
60

skipif mysql # not compatible
query I rowsort label-9895
SELECT 60 * + col1 / col1 FROM tab2 AS cor0
----
60
60
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * 26 col1 FROM tab0 AS cor0
----
2314
624
910

query I rowsort
SELECT ALL col0 * col1 + - col0 * col1 + col0 AS col2 FROM tab1
----
3
64
80

query I rowsort
SELECT - cor0.col0 * cor0.col2 FROM tab0, tab2 cor0
----
9 values hashing to 9bb5096fcd17e3f131152e7a67a5338f

onlyif mysql # use DIV operator for integer division
query I rowsort label-9899
SELECT col0 + col2 DIV col2 AS col0 FROM tab1 AS cor0
----
4
65
81

skipif mysql # not compatible
query I rowsort label-9899
SELECT col0 + col2 / col2 AS col0 FROM tab1 AS cor0
----
4
65
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-9900
SELECT ALL + - ( col2 ) * - col0 + 96 DIV - col2 FROM tab1 AS cor0
----
161
3647
7679

skipif mysql # not compatible
query I rowsort label-9900
SELECT ALL + - ( col2 ) * - col0 + 96 / - col2 FROM tab1 AS cor0
----
161
3647
7679

query I rowsort
SELECT 45 * col1 * 24 + col0 * - cor0.col2 AS col1 FROM tab1 AS cor0
----
27918
6360
7152

query I rowsort
SELECT - 27 * - col2 + col0 AS col0 FROM tab2 AS cor0
----
1105
736
780

query I rowsort
SELECT ALL + cor0.col1 + + col1 - col0 FROM tab0 AS cor0
----
148
159
93

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9904
SELECT + - CAST( 85 AS SIGNED ) + col1 AS col1 FROM tab1 AS cor0
----
-59
-72
-75

skipif mysql # not compatible
query I rowsort label-9904
SELECT + - CAST ( 85 AS INTEGER ) + col1 AS col1 FROM tab1 AS cor0
----
-59
-72
-75

onlyif mysql # use DIV operator for integer division
query I rowsort label-9905
SELECT - 23 DIV col1 + + col0 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-9905
SELECT - 23 / col1 + + col0 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT - ( col2 ) * col0 - + 85 * - 82 FROM tab0 AS cor0
----
-328
6178
6935

query I rowsort
SELECT + 33 + cor0.col0 * col0 AS col1 FROM tab1 AS cor0
----
4129
42
6433

query I rowsort
SELECT ( + 44 ) - col1 AS col1 FROM tab0 AS cor0
----
-42
-47
-53

query I rowsort
SELECT ALL col0 * col1 + col1 * + col2 * col1 FROM tab0
----
12804
246132
687141

query I rowsort
SELECT ( + 65 * - cor0.col2 ) - + 35 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 3ca7d65df2276529787d91fe6de8248b

query I rowsort
SELECT ALL 87 FROM tab0, tab0 AS cor0, tab2 AS cor1, tab2 AS cor2
----
81 values hashing to 969f31ae779866644763e8a07f1ec501

query I rowsort
SELECT - - ( 0 ) * col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + - 68 * + 0 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - - 7 + + col1 * + col1 FROM tab0 AS cor0
----
7403
8288
9416

query I rowsort
SELECT ALL - col0 * - col1 + - col1 FROM tab1 AS cor0
----
1027
52
630

onlyif mysql # use DIV operator for integer division
query I rowsort label-9916
SELECT - ( ( col1 ) ) DIV col1 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9916
SELECT - ( ( col1 ) ) / col1 FROM tab2
----
-1
-1
-1

query I rowsort
SELECT DISTINCT + cor0.col0 * - col1 * + col0 AS col0 FROM tab1 AS cor0
----
-234
-40960
-83200

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * col1 col2 FROM tab0 cor0
----
7396
8281
9409

query I rowsort
SELECT + - cor0.col1 * cor0.col2 * ( - 35 * col0 ) - ( 70 ) FROM tab0 AS cor0
----
118755
23244060
2383850

query I rowsort
SELECT DISTINCT col0 * - col1 - - ( - 81 ) FROM tab2 AS cor0
----
-1424
-298
-4683

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9921
SELECT ALL - CAST( NULL AS DECIMAL ) AS col2 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-9921
SELECT ALL - CAST ( NULL AS REAL ) AS col2 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT ALL 42 - 45 FROM tab0
----
-3
-3
-3

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9923
SELECT - CAST( + col1 AS SIGNED ) - col1 AS col1 FROM tab0
----
-172
-182
-194

skipif mysql # not compatible
query I rowsort label-9923
SELECT - CAST ( + col1 AS INTEGER ) - col1 AS col1 FROM tab0
----
-172
-182
-194

query I rowsort
SELECT + 30 * col1 AS col0 FROM tab0
----
2580
2730
2910

query I rowsort
SELECT DISTINCT col2 * - 3 FROM tab1 AS cor0
----
-162
-171
-288

query I rowsort
SELECT - - col2 * + ( + cor0.col0 ) FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT 82 AS col1 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 99920d9f7cd9cdccef99cfa459ae6944

query I rowsort
SELECT ALL + ( col0 ) * - col0 FROM tab1
----
-4096
-6400
-9

query I rowsort
SELECT DISTINCT + tab2.col0 * - col1 * - 74 FROM tab2
----
16058
340548
99382

query I rowsort
SELECT - + col2 * + ( 23 ) AS col1 FROM tab1 AS cor0
----
-1242
-1311
-2208

query I rowsort
SELECT ALL + 75 * col0 + col2 * + ( cor0.col2 ) FROM tab2 AS cor0
----
1254
6526
7369

query I rowsort
SELECT ALL - col2 + col2 * 19 FROM tab2 AS cor0
----
468
486
684

query I rowsort
SELECT ALL + col1 * col2 + + ( col1 ) AS col2 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT + col1 + - col2 * - 41 AS col0 FROM tab2 cor0
----
1125
1138
1575

query I rowsort
SELECT DISTINCT + cor0.col1 * - cor0.col1 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT + ( + 57 * col1 + + ( col0 ) * - col2 ) FROM tab2
----
-2033
1335
1578

query I rowsort
SELECT DISTINCT + - 77 * col1 FROM tab2 AS cor0
----
-1309
-2387
-4543

onlyif mysql # use DIV operator for integer division
query I rowsort label-9938
SELECT DISTINCT ( + col1 ) DIV col1 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9938
SELECT DISTINCT ( + col1 ) / col1 FROM tab1 AS cor0
----
1

query I rowsort
SELECT ALL - - 43 * - cor0.col0 AS col1 FROM tab1 AS cor0
----
-129
-2752
-3440

query I rowsort
SELECT - - col2 * col0 + + col0 FROM tab2 AS cor0
----
196
2106
3081

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9941
SELECT ALL CAST( - ( + tab1.col0 ) AS SIGNED ) + + tab1.col2 AS col2 FROM tab1
----
-7
16
51

skipif mysql # not compatible
query I rowsort label-9941
SELECT ALL CAST ( - ( + tab1.col0 ) AS INTEGER ) + + tab1.col2 AS col2 FROM tab1
----
-7
16
51

query I rowsort
SELECT DISTINCT - tab0.col1 + + col2 * - col1 * + 43 FROM tab0
----
-122120
-320957
-4268

query I rowsort
SELECT ALL - 49 * tab1.col2 + - col1 FROM tab1
----
-2672
-2803
-4717

query I rowsort
SELECT DISTINCT 56 - cor1.col1 FROM tab1, tab2 AS cor0, tab1 cor1
----
30
43
46

query I rowsort
SELECT - col0 * - col0 + ( + ( col0 ) + col2 ) FROM tab2
----
6188
6358
83

query I rowsort
SELECT ALL - - cor0.col1 + + col2 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT DISTINCT - 75 AS col2 FROM tab0 AS cor0
----
-75

query I rowsort
SELECT - col2 + col0 * col1 AS col2 FROM tab0 cor0
----
2031
3394
8017

query I rowsort
SELECT ALL - + 81 AS col1 FROM tab2 AS cor0
----
-81
-81
-81

query I rowsort
SELECT + 85 * cor0.col2 FROM tab1 AS cor0
----
4590
4845
8160

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 0 col1 FROM tab1, tab1 AS cor0
----
0

query I rowsort
SELECT + + cor0.col0 * + 9 FROM tab1 AS cor0
----
27
576
720

query I rowsort
SELECT + col2 + 4 AS col1 FROM tab2 AS cor0
----
30
31
42

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9954
SELECT + CAST( NULL AS SIGNED ) + col1 / col0 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9954
SELECT + CAST ( NULL AS INTEGER ) + col1 / col0 AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9955
SELECT ALL CAST( NULL AS SIGNED ) + col1 + col1 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9955
SELECT ALL CAST ( NULL AS INTEGER ) + col1 + col1 AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 48 + col1 FROM tab2 AS cor0
----
107
65
79

query I rowsort
SELECT ALL - tab0.col0 * 91 AS col2 FROM tab0
----
-2184
-3185
-8099

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9958
SELECT DISTINCT + ( ( - col1 ) ) * CAST( col1 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

skipif mysql # not compatible
query I rowsort label-9958
SELECT DISTINCT + ( ( - col1 ) ) * CAST ( col1 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT + col0 * + col0 + + col0 AS col1 FROM tab1 AS cor0
----
12
4160
6480

query I rowsort
SELECT DISTINCT col2 * + col2 + col0 FROM tab0
----
1113
36
6813

onlyif mysql # use DIV operator for integer division
query I rowsort label-9961
SELECT - 83 DIV + 92 AS col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9961
SELECT - 83 / + 92 AS col1 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL + 84 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8

query I rowsort
SELECT col2 + 38 * - col0 + + 59 FROM tab0
----
-1270
-3241
-820

query I rowsort
SELECT ALL + 5 + col1 AS col0 FROM tab0 AS cor0
----
102
91
96

query I rowsort
SELECT DISTINCT + col2 * + col1 + col0 FROM tab0 AS cor0
----
132
2862
7551

query I rowsort
SELECT ALL + col0 * col0 - col0 FROM tab2 cor0
----
42
6006
6162

query I rowsort
SELECT DISTINCT + - 55 FROM tab2 AS cor0
----
-55

query I rowsort
SELECT + - cor0.col2 * + col1 + col1 FROM tab1 AS cor0
----
-1235
-1378
-560

query I rowsort
SELECT ALL + 12 + - col1 FROM tab0 AS cor0
----
-74
-79
-85

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9970
SELECT DISTINCT + CAST( col2 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
26
27
38

skipif mysql # not compatible
query I rowsort label-9970
SELECT DISTINCT + CAST ( col2 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT DISTINCT - cor0.col0 + + 95 FROM tab1 AS cor0
----
15
31
92

query I rowsort
SELECT - + 60 * + col1 + col2 FROM tab2 AS cor0
----
-1833
-3514
-982

onlyif mysql # use DIV operator for integer division
query I rowsort label-9973
SELECT ( col1 ) DIV + col2 - col2 FROM tab0 AS cor0
----
-31
-81
96

skipif mysql # not compatible
query I rowsort label-9973
SELECT ( col1 ) / + col2 - col2 FROM tab0 AS cor0
----
-31
-81
96

query I rowsort
SELECT DISTINCT - + col1 + - cor0.col2 * col0 AS col2 FROM tab1 AS cor0
----
-188
-3658
-7693

query I rowsort
SELECT - 84 + col0 AS col2 FROM tab0 AS cor0
----
-49
-60
5

query I rowsort
SELECT + ( + ( tab2.col2 ) ) AS col1 FROM tab0, tab2 cor0 CROSS JOIN tab2
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT ( col1 ) + col0 + col0 AS col0 FROM tab2
----
175
215
45

query I rowsort
SELECT ALL - col2 * col0 + col0 * - col2 AS col1 FROM tab1
----
-15360
-324
-7296

onlyif mysql # use DIV operator for integer division
query I rowsort label-9979
SELECT ALL col1 DIV ( + 7 ) FROM tab0 AS cor0
----
12
13
13

skipif mysql # not compatible
query I rowsort label-9979
SELECT ALL col1 / ( + 7 ) FROM tab0 AS cor0
----
12
13
13

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9980
SELECT + col1 * - CAST( 38 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-380
-494
-988

skipif mysql # not compatible
query I rowsort label-9980
SELECT + col1 * - CAST ( 38 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-380
-494
-988

query I rowsort
SELECT DISTINCT - cor0.col0 * - col2 + col1 * + col2 + + 57 FROM tab2 AS cor0
----
1083
3619
3705

query I rowsort
SELECT + 48 * + ( cor0.col2 ) AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 9dbb7335072836c20ba6bd2689b474b1

query I rowsort
SELECT DISTINCT + - col2 * col0 AS col1 FROM tab0 cor0
----
-35
-7298
-792

query I rowsort
SELECT DISTINCT 75 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 51 col1 FROM tab1, tab1 AS cor0
----
-51

query I rowsort
SELECT - ( - col1 ) * - tab0.col1 - - 65 AS col2 FROM tab0
----
-7331
-8216
-9344

query I rowsort
SELECT DISTINCT + + col2 * + col2 - - col2 FROM tab1 cor0
----
2970
3306
9312

query I rowsort
SELECT DISTINCT 68 AS col0 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
68

query I rowsort
SELECT ALL - col1 + - 91 - + 55 FROM tab1 cor0
----
-156
-159
-172

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9990
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col1 FROM tab0, tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9990
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1 FROM tab0, tab2 cor0
----
NULL

query I rowsort
SELECT + col1 + 77 FROM tab0
----
163
168
174

query I rowsort
SELECT col0 - col2 * col1 * + col0 FROM tab2
----
-119574
-50955
-5852

query I rowsort
SELECT + + cor0.col1 * - col0 AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT DISTINCT col2 * + tab0.col1 + + 4 * col1 FROM tab0
----
3182
485
7826

query I rowsort
SELECT - col0 * col2 * + col0 + col1 * + ( col1 ) + col1 AS col0 FROM tab2 AS cor0
----
-154644
-236852
-331

query I rowsort
SELECT DISTINCT + col0 * - tab0.col1 AS col0 FROM tab0
----
-2064
-3395
-8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-9997
SELECT ALL tab1.col0 DIV 38 FROM tab1
----
0
1
2

skipif mysql # not compatible
query I rowsort label-9997
SELECT ALL tab1.col0 / 38 FROM tab1
----
0
1
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * 25 col0 FROM tab1
----
-1350
-1425
-2400

query I rowsort
SELECT + 7 FROM tab1, tab0 AS cor0, tab1 cor1
----
27 values hashing to 4e72e9e33dacac757f48d0ce46094607