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 ALL 52 AS col2 FROM tab2
----
52
52
52

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-2
SELECT - col0 + col2 + + col2 DIV - 2 FROM tab1 cor0
----
-32
-35
24

skipif mysql # not compatible
query I rowsort label-2
SELECT - col0 + col2 + + col2 / - 2 FROM tab1 cor0
----
-32
-35
24

query I rowsort
SELECT ALL - 12 * - 27 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5a5579836de27ded95f20962e158b1f6

query I rowsort
SELECT - - col2 * col1 - - 85 * 58 AS col1 FROM tab1 cor0
----
5500
6178
6334

query I rowsort
SELECT - + col2 + + col2 * col0 + col1 * - col0 FROM tab1 cor0
----
2951
30
6544

query I rowsort
SELECT + col2 * - 53 AS col2 FROM tab0 AS cor0
----
-1749
-4346
-53

query I rowsort
SELECT ALL + col1 * - 58 FROM tab1 AS cor0
----
-1508
-580
-754

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

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 + 72 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49

query I rowsort
SELECT ALL + - col0 + - 45 FROM tab1 AS cor0
----
-109
-125
-48

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

query I rowsort
SELECT + - col0 + - ( col1 * + 64 + 89 ) AS col2 FROM tab0 AS cor0
----
-5617
-6002
-6332

query I rowsort
SELECT ALL + - ( - 12 ) * + col2 AS col1 FROM tab1 AS cor0
----
1152
648
684

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-16
SELECT ALL - col0 + col0 DIV tab0.col1 AS col0 FROM tab0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-16
SELECT ALL - col0 + col0 / tab0.col1 AS col0 FROM tab0
----
-24
-35
-89

query I rowsort
SELECT - col2 + + cor0.col2 * - cor0.col1 AS col0 FROM tab1 cor0
----
-1344
-1458
-627

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

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

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

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

query I rowsort
SELECT ALL + 44 * - 6 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to c09ac5ee5d19f6680a85cc9b9165ec3b

query I rowsort
SELECT DISTINCT - 46 + - ( + col1 ) + + col1 FROM tab2
----
-46

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

skipif mysql # not compatible
query I rowsort label-23
SELECT ALL - CAST ( + col2 AS INTEGER ) + col0 AS col2 FROM tab2
----
-20
41
52

query I rowsort
SELECT DISTINCT + 77 AS col1 FROM tab2
----
77

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

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

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

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

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

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

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

query I rowsort
SELECT 71 * + 97 AS col1 FROM tab2
----
6887
6887
6887

onlyif mysql # use DIV operator for integer division
query I rowsort label-31
SELECT ALL tab1.col2 + + 81 DIV - col0 + + 75 FROM tab1
----
102
131
170

skipif mysql # not compatible
query I rowsort label-31
SELECT ALL tab1.col2 + + 81 / - col0 + + 75 FROM tab1
----
102
131
170

query I rowsort
SELECT ALL - + cor0.col1 * 9 FROM tab0 AS cor0
----
-774
-819
-873

query I rowsort
SELECT DISTINCT col1 * - 1 + col1 * + col2 + ( col0 ) AS col1 FROM tab1 AS cor0
----
1315
1381
624

query I rowsort
SELECT + - 14 * col0 FROM tab0 AS cor0
----
-1246
-336
-490

query I rowsort
SELECT - col0 * + col2 + col0 * col0 AS col2 FROM tab2
----
-140
3239
4056

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

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

query I rowsort
SELECT - col1 + 20 - col2 FROM tab2 AS cor0
----
-35
-38
-65

onlyif mysql # use DIV operator for integer division
query I rowsort label-38
SELECT + + col0 DIV - col1 - - col0 col1 FROM tab0 cor0
----
24
35
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-38
SELECT + + col0 / - col1 - - col0 col1 FROM tab0 cor0
----
24
35
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * 71 col0 FROM tab2 AS cor0
----
1846
1917
2698

query I rowsort
SELECT - col0 + - ( ( + col1 ) ) - - col0 FROM tab0 cor0
----
-86
-91
-97

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

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

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

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

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

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

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

query I rowsort
SELECT - ( - 72 ) FROM tab0, tab0 AS cor0
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49

query I rowsort
SELECT + col1 + 5 FROM tab1 AS cor0
----
15
18
31

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

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

query I rowsort
SELECT DISTINCT - col2 + - 94 * 87 FROM tab1 AS cor0
----
-8232
-8235
-8274

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

query I rowsort
SELECT + 34 - col1 FROM tab1 cor0
----
21
24
8

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

query I rowsort
SELECT + + col1 - 64 FROM tab0 cor0
----
22
27
33

onlyif mysql # use DIV operator for integer division
query I rowsort label-54
SELECT DISTINCT col0 DIV ( col0 * col1 ) FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-54
SELECT DISTINCT col0 / ( col0 * col1 ) FROM tab2 cor0
----
0

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

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

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

query I rowsort
SELECT + 4 * + 96 + col0 FROM tab2 AS cor0
----
391
462
463

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-58
SELECT ALL + - CAST ( - col0 AS INTEGER ) + col2 col0 FROM tab1 AS cor0
----
121
176
57

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

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

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

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

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

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

query I rowsort
SELECT 86 AS col1 FROM tab2, tab0 AS cor0, tab0 cor1
----
27 values hashing to ed1a39c2752ca3723602e4a92c54bbc4

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-66
SELECT ALL col2 DIV - col0 - col2 * + col0 FROM tab0
----
-35
-7298
-793

skipif mysql # not compatible
query I rowsort label-66
SELECT ALL col2 / - col0 - col2 * + col0 FROM tab0
----
-35
-7298
-793

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-67
SELECT col2 + CAST( + ( col2 ) AS SIGNED ) FROM tab2
----
52
54
76

skipif mysql # not compatible
query I rowsort label-67
SELECT col2 + CAST ( + ( col2 ) AS INTEGER ) FROM tab2
----
52
54
76

query I rowsort
SELECT - col0 * - 84 + - 81 + - col2 * col0 * col1 FROM tab1
----
-31185
-4041
-93201

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

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

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

skipif mysql # not compatible
query I rowsort label-71
SELECT - col1 + + col2 / + 87 FROM tab0 AS cor0
----
-86
-91
-97

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

query I rowsort
SELECT + - col2 + - col1 * - 29 AS col1 FROM tab1 AS cor0
----
233
281
700

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-75
SELECT DISTINCT + 1 + + col0 DIV 62 AS col0 FROM tab0 AS cor0
----
1
2

skipif mysql # not compatible
query I rowsort label-75
SELECT DISTINCT + 1 + + col0 / 62 AS col0 FROM tab0 AS cor0
----
1
2

onlyif mysql # use DIV operator for integer division
query I rowsort label-76
SELECT ALL + ( + col0 ) - col2 DIV 50 FROM tab1 AS cor0
----
2
63
79

skipif mysql # not compatible
query I rowsort label-76
SELECT ALL + ( + col0 ) - col2 / 50 FROM tab1 AS cor0
----
2
63
79

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

query I rowsort
SELECT DISTINCT col2 * col1 - ( col2 ) FROM tab0 AS cor0
----
2805
7380
96

query I rowsort
SELECT ALL + col1 * cor0.col2 * 21 AS col2 FROM tab1 AS cor0
----
11970
26208
29484

query I rowsort
SELECT ALL 76 * col2 + - col1 FROM tab0
----
-21
2422
6141

query I rowsort
SELECT ALL - col1 + - col1 * + col2 + + col2 FROM tab0 AS cor0
----
-193
-2891
-7471

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

query I rowsort
SELECT - + col1 * col0 + 35 AS col2 FROM tab2 AS cor0
----
-1308
-182
-4567

query I rowsort
SELECT ALL col1 * + col1 + 60 * - cor0.col1 FROM tab1 AS cor0
----
-500
-611
-884

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

query I rowsort
SELECT + col2 * - 76 AS col1 FROM tab1
----
-4104
-4332
-7296

query I rowsort
SELECT ALL + ( tab1.col0 ) FROM tab1
----
3
64
80

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

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

query I rowsort
SELECT - - col2 * 16 FROM tab0 cor0
----
1312
16
528

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

query I rowsort
SELECT ALL - 56 + col0 FROM tab2 AS cor0
----
-49
22
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 * - 13 + + col2 col0 FROM tab2 AS cor0
----
1040
1065
118

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

skipif mysql # not compatible
query I rowsort label-94
SELECT ALL - col2 + col0 / + col0 AS col2 FROM tab0 AS cor0
----
-32
-81
0

query I rowsort
SELECT DISTINCT + + 26 * + col0 + + col2 FROM tab1 AS cor0
----
132
1721
2176

query I rowsort
SELECT ALL + 56 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa

query I rowsort
SELECT ALL + col2 * 70 + col0 * - col2 AS col2 FROM tab2
----
-208
-342
1701

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-98
SELECT + CAST( - col0 AS SIGNED ) * + col2 + col0 * + 93 FROM tab0 AS cor0
----
1440
3220
979

skipif mysql # not compatible
query I rowsort label-98
SELECT + CAST ( - col0 AS INTEGER ) * + col2 + col0 * + 93 FROM tab0 AS cor0
----
1440
3220
979

query I rowsort
SELECT + ( 74 * - col2 + + tab1.col1 ) FROM tab1
----
-3970
-4208
-7091

query I rowsort
SELECT + 45 FROM tab1, tab0 AS cor0, tab0, tab2 AS cor1
----
81 values hashing to 8a6d20810140ea088e8e0fd74ffb8339

query I rowsort
SELECT - 28 AS col1 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to eac00a95d734c7071360ed392c3f39bc

query I rowsort
SELECT - 96 + cor0.col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 5656dc398576867efcf63b8e2d750fa5

query I rowsort
SELECT ( 57 ) * col1 FROM tab0
----
4902
5187
5529

query I rowsort
SELECT DISTINCT + + 89 + col2 AS col1 FROM tab0 AS cor0
----
122
171
90

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

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

query I rowsort
SELECT + + cor0.col2 + + 71 - + 92 FROM tab2 AS cor0
----
17
5
6

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab2.col0 * tab2.col0 - tab2.col1 * - col1 * + col0 col2 FROM tab2
----
277602
29072
6776

query I rowsort
SELECT - + col2 * col1 + - 85 - col0 * col0 AS col2 FROM tab0 AS cor0
----
-1407
-15468
-3499

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-110
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-110
SELECT + CAST ( NULL AS INTEGER ) FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

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

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

query I rowsort
SELECT DISTINCT - - cor0.col0 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
24
35
89

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

skipif mysql # not compatible
query I rowsort label-113
SELECT DISTINCT col2 / + 90 + 11 AS col2 FROM tab1
----
11
12

query I rowsort
SELECT + col1 * - ( col2 ) + + col0 + col1 FROM tab0
----
-2728
-7282
35

query I rowsort
SELECT + 55 * + 68 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 65c9ae6c67bc1ffeb0d12f1a2efbeebd

onlyif mysql # use DIV operator for integer division
query I rowsort label-116
SELECT ALL - tab0.col1 DIV + 44 + 50 * + col2 * - tab0.col2 FROM tab0
----
-336202
-52
-54451

skipif mysql # not compatible
query I rowsort label-116
SELECT ALL - tab0.col1 / + 44 + 50 * + col2 * - tab0.col2 FROM tab0
----
-336202
-52
-54451

query I rowsort
SELECT DISTINCT - 99 AS col2 FROM tab1, tab1 cor0, tab1 AS cor1
----
-99

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

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

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

skipif mysql # not compatible
query I rowsort
SELECT + cor0.col0 * CAST ( - col1 AS REAL ) + col0 AS col1 FROM tab1 cor0
----
-576
-75
-960

query I rowsort
SELECT DISTINCT 68 * + cor0.col2 FROM tab2, tab2 AS cor0
----
1768
1836
2584

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

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

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

query I rowsort
SELECT - tab1.col1 * - ( - 7 ) FROM tab1
----
-182
-70
-91

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

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

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

query I rowsort
SELECT ALL + + col2 + - 53 + + 18 * - col0 FROM tab1 AS cor0
----
-1148
-1397
-53

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

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

query I rowsort
SELECT - 34 - - 20 FROM tab2
----
-14
-14
-14

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

query I rowsort
SELECT - col0 * + cor0.col1 + col1 * + ( + col0 ) * col2 AS col2 FROM tab2 AS cor0
----
115050
49691
5642

onlyif mysql # use DIV operator for integer division
query I rowsort label-135
SELECT + col0 DIV 40 + - col1 AS col1 FROM tab2 AS cor0
----
-16
-31
-58

skipif mysql # not compatible
query I rowsort label-135
SELECT + col0 / 40 + - col1 AS col1 FROM tab2 AS cor0
----
-16
-31
-58

query I rowsort
SELECT ALL + - 68 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 6fbba7db5bccb533a35aa5125a231f88

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-138
SELECT DISTINCT + - 29 - col1 DIV + 58 FROM tab0 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-138
SELECT DISTINCT + - 29 - col1 / + 58 FROM tab0 AS cor0
----
-30

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-140
SELECT + col2 + ( 50 ) DIV cor0.col2 FROM tab0 AS cor0
----
34
51
82

skipif mysql # not compatible
query I rowsort label-140
SELECT + col2 + ( 50 ) / cor0.col2 FROM tab0 AS cor0
----
34
51
82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-141
SELECT + col2 * col1 + - CAST( + 73 AS SIGNED ) AS col2 FROM tab1
----
1175
1331
497

skipif mysql # not compatible
query I rowsort label-141
SELECT + col2 * col1 + - CAST ( + 73 AS INTEGER ) AS col2 FROM tab1
----
1175
1331
497

onlyif mysql # use DIV operator for integer division
query I rowsort label-142
SELECT ALL 25 DIV cor0.col0 AS col2 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 0a35ad941cb1878fb87082ac21ea8241

skipif mysql # not compatible
query I rowsort label-142
SELECT ALL 25 / cor0.col0 AS col2 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 0a35ad941cb1878fb87082ac21ea8241

query I rowsort
SELECT + col2 * - col2 + ( - col0 * - col1 ) FROM tab2 AS cor0
----
-101
-512
3926

query I rowsort
SELECT - cor0.col2 * col2 + 81 + + cor0.col2 AS col1 FROM tab0 cor0
----
-6561
-975
81

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

query I rowsort
SELECT ALL + - 47 * + cor0.col2 AS col2 FROM tab0 AS cor0
----
-1551
-3854
-47

query I rowsort
SELECT + 35 * col1 + cor0.col1 * + col1 AS col1 FROM tab2 AS cor0
----
2046
5546
884

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

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

query I rowsort
SELECT ALL tab0.col0 * - 69 AS col0 FROM tab0
----
-1656
-2415
-6141

query I rowsort
SELECT ALL col1 * - 35 AS col2 FROM tab2
----
-1085
-2065
-595

query I rowsort
SELECT + col1 * - tab1.col0 * - col0 AS col2 FROM tab1
----
234
40960
83200

query I rowsort
SELECT ALL - 55 * + col2 - + 10 AS col0 FROM tab0
----
-1825
-4520
-65

query I rowsort
SELECT DISTINCT 52 - - col2 * - 60 FROM tab0
----
-1928
-4868
-8

query I rowsort
SELECT ALL 44 - - tab0.col0 FROM tab0
----
133
68
79

query I rowsort
SELECT DISTINCT 77 * 1 FROM tab0, tab1 AS cor0
----
77

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-157
SELECT CAST( 43 AS SIGNED ) * col1 + - col1 * col2 FROM tab2 AS cor0
----
1003
496
85

skipif mysql # not compatible
query I rowsort label-157
SELECT CAST ( 43 AS INTEGER ) * col1 + - col1 * col2 FROM tab2 AS cor0
----
1003
496
85

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 DISTINCT 50 * col0 FROM tab2 AS cor0
----
350
3900
3950

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

query I rowsort
SELECT + 34 FROM tab0, tab0 AS cor0
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039

onlyif mysql # use DIV operator for integer division
query I rowsort label-162
SELECT ALL - col1 DIV + ( col0 ) FROM tab1
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-162
SELECT ALL - col1 / + ( col0 ) FROM tab1
----
-8
0
0

query I rowsort
SELECT DISTINCT col2 + ( 76 + col2 ) AS col1 FROM tab2
----
128
130
152

query I rowsort
SELECT - col1 - ( 27 * col0 ) AS col1 FROM tab2
----
-2150
-2165
-220

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-166
SELECT - col1 DIV col1 + - 34 FROM tab0 AS cor0
----
-35
-35
-35

skipif mysql # not compatible
query I rowsort label-166
SELECT - col1 / col1 + - 34 FROM tab0 AS cor0
----
-35
-35
-35

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

query I rowsort
SELECT ALL cor0.col1 - 82 FROM tab2, tab0 cor0
----
9 values hashing to 2b4d2a1a9f2ff64e6a9c687087a291d2

query I rowsort
SELECT DISTINCT cor0.col0 * + ( 96 ) AS col2 FROM tab1, tab0, tab1 AS cor0
----
288
6144
7680

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

skipif mysql # not compatible
query I rowsort label-170
SELECT - col0 / 75 FROM tab2 AS cor0
----
-1
-1
0

query I rowsort
SELECT + cor0.col2 * - 91 AS col1 FROM tab1 AS cor0
----
-4914
-5187
-8736

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

query I rowsort
SELECT - - col0 * cor0.col0 * col1 AS col0 FROM tab1 AS cor0
----
234
40960
83200

query I rowsort
SELECT 48 + col2 * col1 FROM tab1 AS cor0
----
1296
1452
618

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + 53 ) * col1 col0 FROM tab1 AS cor0
----
-1378
-530
-689

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT - cor0.col2 + + col1 * - col1 FROM tab1 AS cor0
----
-157
-265
-730

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

query I rowsort
SELECT - 84 + - 54 AS col1 FROM tab2
----
-138
-138
-138

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

query I rowsort
SELECT ALL - - 15 AS col2 FROM tab0 cor0
----
15
15
15

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

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

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

query I rowsort
SELECT ALL - cor0.col0 * + col2 + ( col0 ) * + col0 AS col1 FROM tab0 AS cor0
----
-216
1190
623

query I rowsort
SELECT ALL + cor0.col0 + + col2 * + 78 FROM tab0 cor0
----
113
2598
6485

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + + cor0.col2 * + ( col0 ) col2 FROM tab1 AS cor0
----
216
3705
7776

query I rowsort
SELECT DISTINCT + - col2 * + col2 + - 76 * cor0.col0 AS col0 FROM tab0 AS cor0
----
-13488
-2661
-2913

query I rowsort
SELECT ALL - - ( + cor0.col1 ) FROM tab0 AS cor0
----
86
91
97

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

query I rowsort
SELECT - col2 * - tab1.col0 - - col1 FROM tab1
----
188
3658
7693

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

skipif mysql # not compatible
query I rowsort label-195
SELECT ALL 2 / - col0 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT + - 56 * - col0 FROM tab2 AS cor0
----
392
4368
4424

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

query I rowsort
SELECT DISTINCT + 87 + col0 AS col2 FROM tab2 AS cor0
----
165
166
94

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

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

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

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

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

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

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

query I rowsort
SELECT ALL + + col0 + + 76 AS col2 FROM tab0 AS cor0
----
100
111
165

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

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

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

query I rowsort
SELECT DISTINCT + col1 * cor0.col2 + 25 AS col1 FROM tab1 AS cor0
----
1273
1429
595

query I rowsort
SELECT ALL + + col1 * 26 AS col1 FROM tab2 cor0
----
1534
442
806

query I rowsort
SELECT ALL - 87 * col2 AS col0 FROM tab1 AS cor0
----
-4698
-4959
-8352

query I rowsort
SELECT + + 94 * + 40 + + col0 AS col0 FROM tab2 AS cor0
----
3767
3838
3839

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 6 * - 22 col0 FROM tab0 AS cor0
----
-132

onlyif mysql # use DIV operator for integer division
query I rowsort label-213
SELECT ALL + col1 * col2 - col1 DIV ( + col2 * + cor0.col2 + + col2 * + ( col1 ) ) FROM tab0 AS cor0
----
2838
7462
97

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

query I rowsort
SELECT DISTINCT + 2 + + 83 FROM tab1, tab2 AS cor0
----
85

query I rowsort
SELECT DISTINCT + col2 FROM tab2 WHERE NOT col2 >= NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-216
SELECT col2 DIV + tab1.col0 - - col0 col2 FROM tab1
----
21
64
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-216
SELECT col2 / + tab1.col0 - - col0 col2 FROM tab1
----
21
64
81

query I rowsort
SELECT DISTINCT + col2 * col2 FROM tab0 WHERE ( NULL ) >= NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-218
SELECT - col2 DIV col2 - - col2 FROM tab1
----
53
56
95

skipif mysql # not compatible
query I rowsort label-218
SELECT - col2 / col2 - - col2 FROM tab1
----
53
56
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * col1 col0 FROM tab2
----
289
3481
961

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

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

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

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

query I rowsort
SELECT - col2 + + col1 + col1 * col1 * + col0 AS col2 FROM tab1
----
13437
2000
6353

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

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

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

query I rowsort
SELECT + col2 * - col1 + + col1 AS col0 FROM tab1
----
-1235
-1378
-560

query I rowsort
SELECT - tab1.col1 * - col1 + + col1 * - col0 AS col1 FROM tab1
----
-540
-871
598

query I rowsort
SELECT + col2 * + tab1.col2 * - col0 FROM tab1
----
-207936
-737280
-8748

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-232
SELECT ALL + col2 DIV col0 + - col0 AS col2 FROM tab2 AS cor0
----
-4
-78
-79

skipif mysql # not compatible
query I rowsort label-232
SELECT ALL + col2 / col0 + - col0 AS col2 FROM tab2 AS cor0
----
-4
-78
-79

query I rowsort
SELECT DISTINCT - col0 * - col1 + + col2 - + col1 AS col1 FROM tab2 AS cor0
----
1364
213
4569

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-235
SELECT ALL - - col2 + col0 * col0 DIV col0 AS col2 FROM tab2 AS cor0
----
104
117
34

skipif mysql # not compatible
query I rowsort label-235
SELECT ALL - - col2 + col0 * col0 / col0 AS col2 FROM tab2 AS cor0
----
104
117
34

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col2 * col2 * + col0 + tab2.col1 col0 FROM tab2
----
114093
5134
52787

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

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

query I rowsort
SELECT + col0 + col1 * col1 * + col0 FROM tab0
----
177528
329350
737098

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

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

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

query I rowsort
SELECT ALL col2 * ( 24 ) AS col2 FROM tab1 AS cor0
----
1296
1368
2304

query I rowsort
SELECT + 12 AS col0 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 702478c53caf2f7ebb9fff96d800f5a6

query I rowsort
SELECT ALL - 10 AS col0 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to bb7f754a7a056e665155ed52a63f5bc0

query I rowsort
SELECT ( col2 + 67 ) FROM tab2
----
105
93
94

query I rowsort
SELECT ALL - - 31 + col1 * - col1 FROM tab1 AS cor0
----
-138
-645
-69

query I rowsort
SELECT 46 + - cor0.col1 * + col2 FROM tab2 AS cor0
----
-1488
-600
-791

onlyif mysql # use DIV operator for integer division
query I rowsort label-249
SELECT + col0 DIV - 15 AS col2 FROM tab1
----
-4
-5
0

skipif mysql # not compatible
query I rowsort label-249
SELECT + col0 / - 15 AS col2 FROM tab1
----
-4
-5
0

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

skipif mysql # not compatible
query I rowsort label-250
SELECT col1 / 65 AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT 6 AS col2 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to f1e8f0199f3714ee8fcc24ce0cc3ea04

query I rowsort
SELECT DISTINCT - ( cor0.col2 ) FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-1
-33
-82

query I rowsort
SELECT - cor0.col1 + + 33 AS col0 FROM tab1 AS cor0
----
20
23
7

query I rowsort
SELECT ALL - col2 * col2 - col2 FROM tab2
----
-1482
-702
-756

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

query I rowsort
SELECT ALL col0 + - tab1.col0 AS col1 FROM tab1 WHERE NOT ( NULL ) >= NULL
----

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

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

query I rowsort
SELECT + - col0 * + col0 + - 11 * cor0.col1 FROM tab0 AS cor0
----
-1522
-2292
-8922

query I rowsort
SELECT - 3 + cor0.col2 * + col1 + + col1 FROM tab2 AS cor0
----
1590
660
865

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-265
SELECT col2 / 91 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + col1 * - 13 FROM tab2 AS cor0
----
-221
-403
-767

onlyif mysql # use DIV operator for integer division
query I rowsort label-267
SELECT ALL - - col1 DIV + 71 + + col0 AS col1 FROM tab0 AS cor0
----
25
36
90

skipif mysql # not compatible
query I rowsort label-267
SELECT ALL - - col1 / + 71 + + col0 AS col1 FROM tab0 AS cor0
----
25
36
90

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

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

query I rowsort
SELECT DISTINCT + col2 + - 84 FROM tab1 AS cor0
----
-27
-30
12

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

skipif mysql # not compatible
query I rowsort label-270
SELECT DISTINCT col2 / + ( 18 ) FROM tab0 AS cor0
----
0
1
4

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

query I rowsort
SELECT ALL - 30 AS col2 FROM tab0 AS cor0
----
-30
-30
-30

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

skipif mysql # not compatible
query I rowsort
SELECT - CAST ( 53 AS REAL ) AS col1 FROM tab2 AS cor0
----
-53
-53
-53

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-277
SELECT DISTINCT - + CAST( + col0 AS SIGNED ) 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-277
SELECT DISTINCT - + CAST ( + col0 AS INTEGER ) col1 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT ALL - + col2 + - col2 + col0 * cor0.col1 AS col0 FROM tab0 AS cor0
----
1998
3393
7935

query I rowsort
SELECT col1 * + col0 + 54 AS col0 FROM tab2 AS cor0
----
1397
271
4656

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

query I rowsort
SELECT DISTINCT ( col0 ) - cor0.col2 * col2 FROM tab1 AS cor0
----
-2913
-3185
-9136

query I rowsort
SELECT - 35 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 6d967b3bac2e01a0318865f682f9a97b

query I rowsort
SELECT - cor0.col2 + + cor0.col1 * 96 FROM tab2 AS cor0
----
1594
2949
5638

query I rowsort
SELECT ALL - col0 * col2 + ( - col1 + + col0 ) AS col2 FROM tab2 AS cor0
----
-2009
-213
-2940

query I rowsort
SELECT - col2 * col2 + - ( col1 ) AS col0 FROM tab0 cor0
----
-1175
-6815
-98

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + + 81 * 84 col1 FROM tab1 AS cor0
----
6807
6868
6884

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

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

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

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

query I rowsort
SELECT DISTINCT tab2.col0 * + col1 + + col2 AS col1 FROM tab2
----
1381
244
4628

onlyif mysql # use DIV operator for integer division
query I rowsort label-293
SELECT ALL tab2.col1 * - tab2.col2 + tab2.col1 * col2 DIV + tab2.col1 col2 FROM tab2
----
-1508
-608
-810

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-293
SELECT ALL tab2.col1 * - tab2.col2 + tab2.col1 * col2 / + tab2.col1 col2 FROM tab2
----
-1508
-608
-810

query I rowsort
SELECT ALL 90 + col0 * + 96 AS col0 FROM tab2
----
7578
762
7674

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

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

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

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

query I rowsort
SELECT ALL - col1 - + col2 AS col0 FROM tab1 AS cor0
----
-109
-67
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * col1 + - cor0.col2 col1 FROM tab1 AS cor0
----
-1136
-132
-697

query I rowsort
SELECT tab0.col0 * 21 + + col0 + + col2 FROM tab0
----
2040
561
771

query I rowsort
SELECT DISTINCT + ( - 32 ) - col2 AS col0 FROM tab2
----
-58
-59
-70

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

query I rowsort
SELECT DISTINCT col2 + + 20 - + col0 FROM tab0
----
-14
13
29

query I rowsort
SELECT ALL - col0 + + col1 - col1 FROM tab2
----
-7
-78
-79

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

query I rowsort
SELECT DISTINCT - ( + col2 * col2 ) + col1 * + col2 - - col0 FROM tab1
----
-1509
-2615
-7888

query I rowsort
SELECT 27 + col2 - - col2 * - col0 FROM tab1
----
-3564
-7557
-81

onlyif mysql # use DIV operator for integer division
query I rowsort label-309
SELECT ALL ( - col2 ) * col1 - col1 DIV col1 FROM tab2
----
-1535
-647
-838

skipif mysql # not compatible
query I rowsort label-309
SELECT ALL ( - col2 ) * col1 - col1 / col1 FROM tab2
----
-1535
-647
-838

query I rowsort
SELECT DISTINCT - col0 - col0 FROM tab2
----
-14
-156
-158

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 11 + col1 * col2 + + col0 * + col2 * col0 col2 FROM tab0
----
1333
21857
656995

onlyif mysql # use DIV operator for integer division
query I rowsort label-313
SELECT ALL + ( col2 ) + col2 DIV - col2 FROM tab0
----
0
32
81

skipif mysql # not compatible
query I rowsort label-313
SELECT ALL + ( col2 ) + col2 / - col2 FROM tab0
----
0
32
81

query I rowsort
SELECT 68 * cor0.col1 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 25bc26fe35016b54badcd69beb396bf5

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

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

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

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

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

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

query I rowsort
SELECT col0 + col2 * + col1 FROM tab1 cor0
----
1328
1407
634

onlyif mysql # use DIV operator for integer division
query I rowsort label-321
SELECT - - col0 + col0 DIV - col1 FROM tab0 cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-321
SELECT - - col0 + col0 / - col1 FROM tab0 cor0
----
24
35
89

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

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

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

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

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

query I rowsort
SELECT DISTINCT + 76 + - cor0.col2 FROM tab2 AS cor0
----
38
49
50

onlyif mysql # use DIV operator for integer division
query I rowsort label-328
SELECT DISTINCT + 78 DIV col1 col0 FROM tab1
----
3
6
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-328
SELECT DISTINCT + 78 / col1 col0 FROM tab1
----
3
6
7

query I rowsort
SELECT DISTINCT 8 * tab1.col0 AS col2 FROM tab1
----
24
512
640

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

query I rowsort
SELECT ALL - 81 AS col1 FROM tab0
----
-81
-81
-81

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

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

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

query I rowsort
SELECT DISTINCT 40 + cor0.col2 * - ( - col1 ) * + col0 FROM tab0 AS cor0
----
3435
664158
68152

onlyif mysql # use DIV operator for integer division
query I rowsort label-335
SELECT col2 * - col1 - col1 DIV - col2 AS col2 FROM tab0 AS cor0
----
-2836
-7461
0

skipif mysql # not compatible
query I rowsort label-335
SELECT col2 * - col1 - col1 / - col2 AS col2 FROM tab0 AS cor0
----
-2836
-7461
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * col0 + - col0 col0 FROM tab1 AS cor0
----
-165
-3712
-7760

query I rowsort
SELECT DISTINCT cor0.col0 * 90 AS col0 FROM tab1 AS cor0
----
270
5760
7200

query I rowsort
SELECT DISTINCT col0 * - ( - 25 ) * - cor0.col0 AS col2 FROM tab2 cor0
----
-1225
-152100
-156025

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

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

query I rowsort
SELECT DISTINCT - col1 * col0 + - col1 * - cor0.col2 AS col2 FROM tab1 AS cor0
----
-70
1326
208

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

skipif mysql # not compatible
query I rowsort label-341
SELECT DISTINCT + col1 / 7 FROM tab1 AS cor0
----
1
3

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

skipif mysql # not compatible
query I rowsort label-342
SELECT - col1 * CAST ( col1 AS INTEGER ) + col0 * 3 FROM tab0 AS cor0
----
-7324
-8014
-9304

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

query I rowsort
SELECT ALL col1 - - col0 AS col0 FROM tab2 AS cor0
----
137
38
96

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

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

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

query I rowsort
SELECT - - cor0.col0 * + 7 FROM tab2 AS cor0
----
49
546
553

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

query I rowsort
SELECT DISTINCT 79 + + col0 * col0 AS col0 FROM tab2 cor0
----
128
6163
6320

query I rowsort
SELECT ALL - - 62 + - col2 FROM tab0 AS cor0
----
-20
29
61

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

skipif mysql # not compatible
query I rowsort label-351
SELECT DISTINCT 89 + col2 / col2 FROM tab1 AS cor0
----
90

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

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

query I rowsort
SELECT col0 - - col0 * col2 * col0 AS col0 FROM tab2
----
1330
158262
237237

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

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

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

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

query I rowsort
SELECT + 10 * - col0 + + col2 FROM tab2 AS cor0
----
-43
-752
-754

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

query I rowsort
SELECT ALL - - ( col1 ) * 93 AS col0 FROM tab0 AS cor0
----
7998
8463
9021

query I rowsort
SELECT DISTINCT + 58 * + col0 + 55 FROM tab2 AS cor0
----
4579
461
4637

query I rowsort
SELECT ALL + - 90 + - col1 FROM tab0 AS cor0
----
-176
-181
-187

query I rowsort
SELECT ( + col2 * col0 + + col0 * + tab1.col0 ) FROM tab1
----
14080
171
7744

query I rowsort
SELECT ALL ( + 80 ) AS col0 FROM tab1, tab0 AS cor0 CROSS JOIN tab2
----
27 values hashing to 6dd5038be71dffa82f5ceba787caab91

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

query I rowsort
SELECT + col1 + + 19 * - 65 * col2 FROM tab0 cor0
----
-101179
-1138
-40669

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

query I rowsort
SELECT - - col1 * + cor0.col1 - - col0 AS col0 FROM tab1 AS cor0
----
164
249
679

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * col0 col1 FROM tab0
----
-1225
-576
-7921

query I rowsort
SELECT - 57 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 520dc393896969e02a72ab6c5d92126b

query I rowsort
SELECT ALL + 46 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39

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

skipif mysql # not compatible
query I rowsort label-373
SELECT col0 - col2 / + tab0.col0 AS col1 FROM tab0
----
23
35
89

query I rowsort
SELECT DISTINCT 41 + + col1 * col1 FROM tab0
----
7437
8322
9450

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

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

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

query I rowsort
SELECT ALL 25 AS col1 FROM tab0 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 525a55d5ed224a62da65df36731881a7

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col0 * 75 * 89 col1 FROM tab2 AS cor0
----
-46725
-520650
-527325

query I rowsort
SELECT ALL + col1 * col0 + - 55 FROM tab1 AS cor0
----
23
585
985

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

query I rowsort
SELECT + col2 + ( + col0 ) * col1 + + ( ( col0 ) ) * cor0.col0 FROM tab0 cor0
----
16102
2673
4621

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

skipif mysql # not compatible
query I rowsort
SELECT ALL cor0.col2 * CAST ( col1 AS REAL ) * - col1 AS col1 FROM tab0 AS cor0
----
-244068
-679042
-9409

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-387
SELECT ALL col1 + - col0 DIV col0 AS col2 FROM tab2
----
16
30
58

skipif mysql # not compatible
query I rowsort label-387
SELECT ALL col1 + - col0 / col0 AS col2 FROM tab2
----
16
30
58

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

query I rowsort
SELECT ALL + - 21 * 93 AS col2 FROM tab1 AS cor0
----
-1953
-1953
-1953

onlyif mysql # use DIV operator for integer division
query I rowsort label-390
SELECT cor0.col2 * 73 - + col2 DIV 95 FROM tab2 AS cor0
----
1898
1971
2774

skipif mysql # not compatible
query I rowsort label-390
SELECT cor0.col2 * 73 - + col2 / 95 FROM tab2 AS cor0
----
1898
1971
2774

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

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

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

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

query I rowsort
SELECT DISTINCT - - col0 * col0 + col2 + - ( + 18 ) AS col2 FROM tab1 AS cor0
----
4135
45
6478

query I rowsort
SELECT ALL 61 + col0 + col1 FROM tab1 AS cor0
----
135
154
90

query I rowsort
SELECT ALL - + 26 + - cor0.col1 + - col1 FROM tab2 AS cor0
----
-144
-60
-88

query I rowsort
SELECT 91 + - cor0.col1 AS col1 FROM tab1 AS cor0
----
65
78
81

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

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

query I rowsort
SELECT ALL - - 95 + + col1 AS col0 FROM tab2 AS cor0
----
112
126
154

query I rowsort
SELECT ALL + + 8 AS col2 FROM tab2 cor0
----
8
8
8

query I rowsort
SELECT 2 - col1 FROM tab0
----
-84
-89
-95

query I rowsort
SELECT DISTINCT - 32 * + col0 * + col2 + 92 * + col1 * - cor0.col2 AS col2 FROM tab1 AS cor0
----
-134352
-169176
-360576

onlyif mysql # use DIV operator for integer division
query I rowsort label-404
SELECT + col0 + col0 DIV 85 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-404
SELECT + col0 + col0 / 85 FROM tab1 AS cor0
----
3
64
80

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

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

query I rowsort
SELECT DISTINCT + 71 * col2 + 21 * 75 FROM tab2 AS cor0
----
3421
3492
4273

query I rowsort
SELECT col2 + - col0 * - 15 AS col1 FROM tab2 AS cor0
----
1196
1223
132

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

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

query I rowsort
SELECT ALL - + 46 AS col1 FROM tab1 AS cor0
----
-46
-46
-46

query I rowsort
SELECT + 26 + col2 * cor0.col0 FROM tab2 AS cor0
----
2054
215
3028

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

query I rowsort
SELECT ALL col1 + - col1 * tab2.col1 FROM tab2
----
-272
-3422
-930

query I rowsort
SELECT ALL - col0 + + col0 * col0 FROM tab2
----
42
6006
6162

query I rowsort
SELECT DISTINCT 55 + - tab0.col0 FROM tab0
----
-34
20
31

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

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

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

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

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

query I rowsort
SELECT DISTINCT + 15 + 48 * col0 FROM tab1 AS cor0
----
159
3087
3855

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

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

query I rowsort
SELECT - 97 * + cor0.col2 FROM tab1 AS cor0
----
-5238
-5529
-9312

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - col0 ) + - col1 * col1 col1 FROM tab1 AS cor0
----
-164
-249
-679

query I rowsort
SELECT + - 38 AS col2 FROM tab1 AS cor0
----
-38
-38
-38

query I rowsort
SELECT ALL - 9 + col1 AS col0 FROM tab0 AS cor0
----
77
82
88

query I rowsort
SELECT ALL - - 24 + 45 * + col2 * - col2 + - cor0.col0 FROM tab1 AS cor0
----
-131199
-146245
-414776

query I rowsort
SELECT DISTINCT 11 - col0 FROM tab2 AS cor0
----
-67
-68
4

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

query I rowsort
SELECT DISTINCT + col2 * col0 + + col0 * - 51 FROM tab0 cor0
----
-1750
-432
2759

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

query I rowsort
SELECT DISTINCT + 5 * col0 AS col0 FROM tab1 AS cor0
----
15
320
400

query I rowsort
SELECT - col1 * ( - 73 + + col0 ) FROM tab2 AS cor0
----
-102
-295
2046

query I rowsort
SELECT - ( ( col1 ) ) AS col1 FROM tab0 AS cor0
----
-86
-91
-97

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

query I rowsort
SELECT ALL col0 * col1 + - col2 FROM tab0 AS cor0
----
2031
3394
8017

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-438
SELECT ALL + 84 DIV + col1 + + col2 * - 92 * - col1 AS col2 FROM tab1
----
114822
129171
52448

skipif mysql # not compatible
query I rowsort label-438
SELECT ALL + 84 / + col1 + + col2 * - 92 * - col1 AS col2 FROM tab1
----
114822
129171
52448

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

query I rowsort
SELECT DISTINCT + ( 15 ) FROM tab2
----
15

query I rowsort
SELECT + ( col0 + + col2 ) * 62 AS col1 FROM tab0
----
10602
2232
3534

query I rowsort
SELECT - col0 + col1 * tab0.col2 + - col0 AS col2 FROM tab0
----
27
2790
7284

query I rowsort
SELECT 17 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 43298e43365fccb5146ea32003753c92

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

query I rowsort
SELECT + 80 + col2 * - 65 * + ( col0 ) FROM tab1 AS cor0
----
-10450
-237040
-499120

query I rowsort
SELECT + - col1 + + col2 * 16 FROM tab1 AS cor0
----
1523
838
902

query I rowsort
SELECT 19 * - col2 AS col0 FROM tab2 AS cor0
----
-494
-513
-722

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

query I rowsort
SELECT DISTINCT - 25 * cor0.col2 FROM tab1 AS cor0
----
-1350
-1425
-2400

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

query I rowsort
SELECT 31 * col2 + 96 * col2 FROM tab1 AS cor0
----
12192
6858
7239

query I rowsort
SELECT ALL + ( + col0 * col0 ) FROM tab2
----
49
6084
6241

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

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

query I rowsort
SELECT DISTINCT + 85 * - col0 * - col2 FROM tab2
----
16065
172380
255170

query I rowsort
SELECT DISTINCT + 27 * - col2 * - ( ( + col0 ) * + 40 ) AS col1 FROM tab0
----
37800
7881840
855360

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 + - col1 * + 51 + - cor0.col2 col0 FROM tab0 AS cor0
----
-4395
-4634
-4913

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-458
SELECT col0 DIV col1 + + col2 AS col2 FROM tab1
----
102
54
63

skipif mysql # not compatible
query I rowsort label-458
SELECT col0 / col1 + + col2 AS col2 FROM tab1
----
102
54
63

query I rowsort
SELECT ALL 51 - - col2 AS col2 FROM tab0
----
133
52
84

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-461
SELECT + + col2 * col2 + + 26 DIV + col2 + col2 FROM tab1 AS cor0
----
2970
3306
9312

skipif mysql # not compatible
query I rowsort label-461
SELECT + + col2 * col2 + + 26 / + col2 + col2 FROM tab1 AS cor0
----
2970
3306
9312

query I rowsort
SELECT DISTINCT - ( - cor0.col0 ) + - 19 AS col1 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
-16
45
61

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

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

query I rowsort
SELECT - + col2 + 43 FROM tab2 cor0
----
16
17
5

query I rowsort
SELECT ALL - col2 + ( - col2 ) * col0 + col1 AS col0 FROM tab1 cor0
----
-190
-3695
-7763

query I rowsort
SELECT ALL - + col2 * + col0 + - cor0.col0 * col2 FROM tab1 AS cor0
----
-15360
-324
-7296

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

query I rowsort
SELECT + col2 + 80 + - col0 FROM tab2 cor0
----
100
28
39

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - ( - ( col2 ) ) + - col1 col0 FROM tab2 AS cor0
----
158
1969
2985

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

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

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

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

query I rowsort
SELECT ALL + 38 FROM tab1, tab0 AS cor0
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7

query I rowsort
SELECT + 50 * + col1 AS col0 FROM tab2 AS cor0
----
1550
2950
850

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

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

skipif mysql # not compatible
query I rowsort label-477
SELECT + - CAST ( + col0 AS INTEGER ) * + col2 AS col2 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT + + 21 * 51 AS col1 FROM tab1 AS cor0
----
1071
1071
1071

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

query I rowsort
SELECT + 65 - - cor0.col1 AS col2 FROM tab0 AS cor0
----
151
156
162

query I rowsort
SELECT DISTINCT - col2 * col0 + + 61 AS col0 FROM tab0 cor0
----
-7237
-731
26

query I rowsort
SELECT DISTINCT cor0.col0 + col0 * ( - 18 ) AS col1 FROM tab2 AS cor0
----
-119
-1326
-1343

query I rowsort
SELECT + col1 * + cor0.col1 - 79 FROM tab0 AS cor0
----
7317
8202
9330

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

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

query I rowsort
SELECT col1 + col1 + col0 AS col1 FROM tab1
----
106
55
84

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

query I rowsort
SELECT DISTINCT - 16 + + cor0.col1 FROM tab2 AS cor0
----
1
15
43

query I rowsort
SELECT ALL - col0 - + 98 FROM tab2 AS cor0
----
-105
-176
-177

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

skipif mysql # not compatible
query I rowsort label-489
SELECT - - CAST ( + col0 AS INTEGER ) * - col1 * 91 + + col0 AS col2 FROM tab1 AS cor0
----
-58176
-7095
-94560

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-492
SELECT ALL col2 + col2 DIV - col1 - + 91 FROM tab1 cor0
----
-2
-39
-39

skipif mysql # not compatible
query I rowsort label-492
SELECT ALL col2 + col2 / - col1 - + 91 FROM tab1 cor0
----
-2
-39
-39

query I rowsort
SELECT DISTINCT col2 * - 67 + col0 AS col0 FROM tab2 AS cor0
----
-1664
-1802
-2467

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

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

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

query I rowsort
SELECT ALL + ( - 35 ) * - col0 FROM tab2 AS cor0
----
245
2730
2765

query I rowsort
SELECT DISTINCT col1 * + col1 + - col1 FROM tab2 AS cor0
----
272
3422
930

query I rowsort
SELECT DISTINCT cor0.col1 + - col2 * + cor0.col2 * 43 AS col2 FROM tab2 AS cor0
----
-29009
-31316
-62075

query I rowsort
SELECT ( + 45 ) + + cor0.col0 FROM tab1 AS cor0
----
109
125
48

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

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

query I rowsort
SELECT DISTINCT col2 * col0 * + col2 - ( - col2 ) * + cor0.col0 FROM tab1 AS cor0
----
211584
744960
8910

onlyif mysql # use DIV operator for integer division
query I rowsort label-503
SELECT - col0 * tab0.col2 DIV 98 FROM tab0
----
-74
-8
0

skipif mysql # not compatible
query I rowsort label-503
SELECT - col0 * tab0.col2 / 98 FROM tab0
----
-74
-8
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-504
SELECT 77 DIV cor0.col2 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 43a387ef4ba85927dc3d9d573afc12c9

skipif mysql # not compatible
query I rowsort label-504
SELECT 77 / cor0.col2 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 43a387ef4ba85927dc3d9d573afc12c9

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

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

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

query I rowsort
SELECT DISTINCT col2 - + col0 * col1 FROM tab0
----
-2031
-3394
-8017

query I rowsort
SELECT DISTINCT tab1.col2 * + col1 + 66 - - col2 FROM tab1
----
1410
1524
693

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + 71 col1 FROM tab2
----
149
150
78

query I rowsort
SELECT DISTINCT - ( - tab1.col0 ) * col1 + - ( 82 ) * col0 AS col2 FROM tab1
----
-168
-4608
-5520

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

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

query I rowsort
SELECT - 48 AS col2 FROM tab0, tab2 AS cor0, tab2, tab1 AS cor1
----
81 values hashing to 70b0cff913cec85654af0aaf3f5f6d85

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT - 11 * 34 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-374

query I rowsort
SELECT ALL - 1 * col1 FROM tab1
----
-10
-13
-26

query I rowsort
SELECT DISTINCT 17 * col1 * col0 FROM tab0
----
137683
35088
57715

onlyif mysql # use DIV operator for integer division
query I rowsort label-521
SELECT ALL + col1 DIV 59 + tab1.col0 FROM tab1
----
3
64
80

skipif mysql # not compatible
query I rowsort label-521
SELECT ALL + col1 / 59 + tab1.col0 FROM tab1
----
3
64
80

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

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

query I rowsort
SELECT ALL - + col1 + + col2 * + cor0.col2 + col0 AS col0 FROM tab1 cor0
----
2893
3303
9283

query I rowsort
SELECT ALL + + cor0.col0 * + col0 + - 5 * col2 FROM tab2 AS cor0
----
-86
5954
6051

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

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

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

skipif mysql # not compatible
query I rowsort label-527
SELECT ALL col2 - - col0 / - 93 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT ALL - col1 * - ( - 76 ) FROM tab1 cor0
----
-1976
-760
-988

query I rowsort
SELECT ALL + + col2 + - 62 * 56 FROM tab2 AS cor0
----
-3434
-3445
-3446

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

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

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

query I rowsort
SELECT - - cor0.col2 + - 51 FROM tab1 AS cor0
----
3
45
6

query I rowsort
SELECT ALL cor0.col1 + 30 * - col2 FROM tab1 AS cor0
----
-1594
-1700
-2867

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

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

query I rowsort
SELECT ALL + col0 * - col2 + col0 + + col1 FROM tab0 cor0
----
-682
-7118
97

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

query I rowsort
SELECT + ( - 62 ) + col0 AS col1 FROM tab2 AS cor0
----
-55
16
17

query I rowsort
SELECT - 28 + + col0 * - cor0.col1 AS col1 FROM tab0 AS cor0
----
-2092
-3423
-8127

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

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

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

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

skipif mysql # not compatible
query I rowsort label-544
SELECT ALL - - CAST ( + col2 AS INTEGER ) * col0 AS col0 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT ALL - col0 * col0 + col1 - + col0 * tab0.col1 FROM tab0
----
-15929
-2554
-4523

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-548
SELECT - + 94 + + col1 DIV + 50 FROM tab2 cor0
----
-93
-94
-94

skipif mysql # not compatible
query I rowsort label-548
SELECT - + 94 + + col1 / + 50 FROM tab2 cor0
----
-93
-94
-94

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-551
SELECT col1 - + 58 DIV col1 FROM tab0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-551
SELECT col1 - + 58 / col1 FROM tab0
----
86
91
97

query I rowsort
SELECT DISTINCT - ( + col0 ) * + 3 FROM tab2 AS cor0
----
-21
-234
-237

onlyif mysql # use DIV operator for integer division
query I rowsort label-553
SELECT DISTINCT - 72 DIV + col1 - + ( ( + col2 ) ) col0 FROM tab0 AS cor0
----
-1
-33
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-553
SELECT DISTINCT - 72 / + col1 - + ( ( + col2 ) ) col0 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT ALL - col2 * col2 - + ( col1 * col2 ) AS col2 FROM tab2 AS cor0
----
-1566
-2090
-2210

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab2.col2 * + tab2.col2 + + col2 col1 FROM tab2
----
1482
702
756

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-556
SELECT col0 / - ( + 58 ) col0 FROM tab0 AS cor0
----
-1
0
0

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

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

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

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-561
SELECT DISTINCT + 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-561
SELECT DISTINCT + CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0
----
NULL

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

query I rowsort
SELECT + + ( 20 ) * col2 AS col1 FROM tab0 AS cor0
----
1640
20
660

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

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

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

query I rowsort
SELECT + ( 40 ) * + col0 + 76 * col1 AS col1 FROM tab2 AS cor0
----
2636
4452
7604

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-569
SELECT + col1 DIV col1 + ( 94 + - col1 ) FROM tab2 AS cor0
----
36
64
78

skipif mysql # not compatible
query I rowsort label-569
SELECT + col1 / col1 + ( 94 + - col1 ) FROM tab2 AS cor0
----
36
64
78

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

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

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

query I rowsort
SELECT + - cor0.col0 + 88 AS col2 FROM tab2 cor0
----
10
81
9

query I rowsort
SELECT + + col1 * - 51 + + col2 * - col0 AS col1 FROM tab0 AS cor0
----
-11939
-4982
-5178

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

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

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

query I rowsort
SELECT + col2 * + col0 + col0 * - 61 FROM tab2
----
-1817
-238
-2730

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

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

query I rowsort
SELECT ALL + - col0 * col2 + - 62 * - col1 + col1 AS col2 FROM tab1 AS cor0
----
-3018
-6861
1476

query I rowsort
SELECT DISTINCT - col2 * col1 - + ( + col2 ) FROM tab1 cor0
----
-1344
-1458
-627

query I rowsort
SELECT + cor0.col2 + ( - 14 ) FROM tab0 cor0
----
-13
19
68

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

query I rowsort
SELECT - - ( ( - col0 ) ) * 9 FROM tab2 cor0
----
-63
-702
-711

query I rowsort
SELECT DISTINCT - col2 * + col1 + cor0.col1 FROM tab1 cor0
----
-1235
-1378
-560

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

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

query I rowsort
SELECT DISTINCT + tab1.col0 * - 98 AS col1 FROM tab1
----
-294
-6272
-7840

query I rowsort
SELECT col1 * + 18 FROM tab0
----
1548
1638
1746

query I rowsort
SELECT ALL - tab1.col0 AS col2 FROM tab1, tab1 cor0, tab0 cor1
----
27 values hashing to 729c1edda9332398299f39cd174ed840

query I rowsort
SELECT 99 + - col2 AS col0 FROM tab0
----
17
66
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-591
SELECT + CAST( 13 AS SIGNED ) + + col1 * col1 DIV + col1 FROM tab1 AS cor0
----
23
26
39

skipif mysql # not compatible
query I rowsort label-591
SELECT + CAST ( 13 AS INTEGER ) + + col1 * col1 / + col1 FROM tab1 AS cor0
----
23
26
39

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

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

query I rowsort
SELECT + cor0.col1 + - 19 * col1 - 8 * - col1 AS col2 FROM tab0 AS cor0
----
-860
-910
-970

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

query I rowsort
SELECT - ( - 61 ) + col0 AS col1 FROM tab0 AS cor0
----
150
85
96

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

query I rowsort
SELECT - 73 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 84ab9db5468b4a1781bd8d5c8e0e77fc

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

query I rowsort
SELECT + 90 * col2 * col0 AS col2 FROM tab1 AS cor0
----
14580
328320
691200

query I rowsort
SELECT + ( + cor0.col1 ) * - 1 FROM tab0 AS cor0
----
-86
-91
-97

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

query I rowsort
SELECT + col2 * ( 72 ) * col0 AS col0 FROM tab0 cor0
----
2520
525456
57024

query I rowsort
SELECT DISTINCT col1 * + 36 FROM tab0
----
3096
3276
3492

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

query I rowsort
SELECT ALL col0 + 31 * - col0 AS col0 FROM tab2 AS cor0
----
-210
-2340
-2370

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

query I rowsort
SELECT ALL + - 1 * - col1 + 19 FROM tab0 cor0
----
105
110
116

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * col0 + 8 + - col0 col2 FROM tab0 AS cor0
----
2048
3368
8018

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

query I rowsort
SELECT - - ( - cor0.col0 ) FROM tab2 cor0
----
-7
-78
-79

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

skipif mysql # not compatible
query I rowsort label-612
SELECT DISTINCT - col0 / - col1 + - ( - cor0.col2 ) FROM tab0 cor0
----
1
33
82

query I rowsort
SELECT DISTINCT - + 74 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
-74

query I rowsort
SELECT + - col1 * col1 * - 16 + col2 FROM tab2 AS cor0
----
15403
4662
55722

onlyif mysql # use DIV operator for integer division
query I rowsort label-615
SELECT + + col2 DIV - cor0.col1 + - ( + col0 ) AS col1 FROM tab0 AS cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-615
SELECT + + col2 / - cor0.col1 + - ( + col0 ) AS col1 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT ALL + - col2 + col0 * + 57 FROM tab2 AS cor0
----
372
4420
4465

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-618
SELECT ALL 83 DIV col1 AS col2 FROM tab1 AS cor0
----
3
6
8

skipif mysql # not compatible
query I rowsort label-618
SELECT ALL 83 / col1 AS col2 FROM tab1 AS cor0
----
3
6
8

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

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

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

query I rowsort
SELECT ALL + col2 + - col0 * + col2 * col2 FROM tab2 AS cor0
----
-114038
-5076
-52702

query I rowsort
SELECT DISTINCT col0 * + col2 + col2 FROM tab1
----
216
3705
7776

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

query I rowsort
SELECT + + 56 * - col1 FROM tab0 AS cor0
----
-4816
-5096
-5432

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

query I rowsort
SELECT + + 62 * + 14 FROM tab0 AS cor0
----
868
868
868

query I rowsort
SELECT + col0 * 44 FROM tab2 AS cor0
----
308
3432
3476

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

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

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

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

query I rowsort
SELECT col2 * col2 - col1 FROM tab0
----
-96
1003
6633

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-632
SELECT - CAST( - 24 AS SIGNED ) - - tab2.col2 * + tab2.col2 FROM tab2
----
1468
700
753

skipif mysql # not compatible
query I rowsort label-632
SELECT - CAST ( - 24 AS INTEGER ) - - tab2.col2 * + tab2.col2 FROM tab2
----
1468
700
753

query I rowsort
SELECT col1 + + col1 * - col0 AS col2 FROM tab1
----
-1027
-52
-630

query I rowsort
SELECT - ( 95 ) + col0 AS col1 FROM tab1 AS cor0
----
-15
-31
-92

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

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

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

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

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

query I rowsort
SELECT ALL cor0.col0 + + cor0.col2 FROM tab0, tab0 cor0
----
9 values hashing to 0a9ba7ddbb78279db2d78308414e03c9

query I rowsort
SELECT ALL - 60 * + tab0.col0 FROM tab0
----
-1440
-2100
-5340

query I rowsort
SELECT ALL - col1 * + col0 * col1 FROM tab1
----
-13520
-2028
-6400

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

skipif mysql # not compatible
query I rowsort label-641
SELECT ALL - ( 59 ) / + cor0.col1 AS col0 FROM tab2 cor0
----
-1
-1
-3

query I rowsort
SELECT ( 66 ) * col0 AS col2 FROM tab0 AS cor0
----
1584
2310
5874

query I rowsort
SELECT - - ( col2 ) * ( + 74 ) AS col1 FROM tab0 AS cor0
----
2442
6068
74

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

query I rowsort
SELECT - 36 + - col0 * cor0.col0 FROM tab1 AS cor0
----
-4132
-45
-6436

onlyif mysql # use DIV operator for integer division
query I rowsort label-646
SELECT ALL + + cor0.col2 DIV col2 + 68 * col2 * - col2 AS col0 FROM tab1 AS cor0
----
-198287
-220931
-626687

skipif mysql # not compatible
query I rowsort label-646
SELECT ALL + + cor0.col2 / col2 + 68 * col2 * - col2 AS col0 FROM tab1 AS cor0
----
-198287
-220931
-626687

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

query I rowsort
SELECT 61 + - col0 FROM tab1 AS cor0
----
-19
-3
58

query I rowsort
SELECT DISTINCT col2 + 26 AS col1 FROM tab2
----
52
53
64

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

query I rowsort
SELECT DISTINCT - col2 + col2 * col2 + col1 FROM tab1
----
2888
3202
9133

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-653
SELECT ALL - col0 * ( + 14 ) DIV col2 FROM tab1 cor0
----
-11
-15
0

skipif mysql # not compatible
query I rowsort label-653
SELECT ALL - col0 * ( + 14 ) / col2 FROM tab1 cor0
----
-11
-15
0

query I rowsort
SELECT DISTINCT - col1 * 73 + col0 FROM tab2 AS cor0
----
-1162
-2256
-4229

query I rowsort
SELECT + col2 + - col0 * 60 + col2 FROM tab0 cor0
----
-1374
-2098
-5176

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 + 32 col2 FROM tab0 AS cor0
----
118
123
129

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-659
SELECT - 72 * col2 DIV + cor0.col0 col1 FROM tab0 AS cor0
----
-2
-66
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-659
SELECT - 72 * col2 / + cor0.col0 col1 FROM tab0 AS cor0
----
-2
-66
-99

query I rowsort
SELECT ALL - - 3 + col1 FROM tab1 AS cor0
----
13
16
29

query I rowsort
SELECT + + 17 FROM tab1 AS cor0
----
17
17
17

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

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

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

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

query I rowsort
SELECT DISTINCT - + cor0.col1 * + col1 AS col2 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT + - 31 * + col0 AS col1 FROM tab0 cor0
----
-1085
-2759
-744

query I rowsort
SELECT DISTINCT + 80 + ( - col1 ) AS col0 FROM tab1 AS cor0
----
54
67
70

query I rowsort
SELECT DISTINCT 21 * + col1 AS col1 FROM tab0 AS cor0
----
1806
1911
2037

query I rowsort
SELECT ALL - + 20 * - col0 * + cor0.col0 FROM tab0 AS cor0
----
11520
158420
24500

query I rowsort
SELECT ALL + 68 AS col2 FROM tab2, tab2 cor0
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-672
SELECT ALL + CAST( + col2 AS SIGNED ) * + col2 + - ( 63 * cor0.col0 ) FROM tab1 AS cor0
----
-783
2727
4176

skipif mysql # not compatible
query I rowsort label-672
SELECT ALL + CAST ( + col2 AS INTEGER ) * + col2 + - ( 63 * cor0.col0 ) FROM tab1 AS cor0
----
-783
2727
4176

onlyif mysql # use DIV operator for integer division
query I rowsort label-673
SELECT DISTINCT 92 DIV - 82 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-673
SELECT DISTINCT 92 / - 82 FROM tab2 AS cor0
----
-1

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

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

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

query I rowsort
SELECT - - col1 + - col1 * + col0 FROM tab1 AS cor0
----
-1027
-52
-630

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

query I rowsort
SELECT + col0 + + tab1.col1 + col2 * - col1 AS col0 FROM tab1
----
-1155
-1375
-496

query I rowsort
SELECT - 11 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 05cc989122d7724c7abefaba9625ef3d

query I rowsort
SELECT 15 + - col1 * - cor0.col2 * + col0 FROM tab0 AS cor0
----
3410
664133
68127

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

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

query I rowsort
SELECT + col2 * + col1 + col0 FROM tab1 AS cor0
----
1328
1407
634

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - col2 + col0 * - ( col2 ) * col1 col2 FROM tab2 AS cor0
----
-121680
-54036
-6048

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

query I rowsort
SELECT + 10 + col0 FROM tab0 AS cor0
----
34
45
99

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

query I rowsort
SELECT ALL cor0.col2 * col0 + + 54 AS col0 FROM tab0 AS cor0
----
7352
846
89

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

query I rowsort
SELECT - 63 * - col2 AS col2 FROM tab0 AS cor0
----
2079
5166
63

query I rowsort
SELECT DISTINCT - 21 FROM tab0, tab0 AS cor0, tab1 AS cor1, tab0 AS cor2
----
-21

onlyif mysql # use DIV operator for integer division
query I rowsort label-692
SELECT - cor0.col0 + 42 DIV + col1 FROM tab1 AS cor0
----
-2
-60
-77

skipif mysql # not compatible
query I rowsort label-692
SELECT - cor0.col0 + 42 / + col1 FROM tab1 AS cor0
----
-2
-60
-77

query I rowsort
SELECT + col2 * + 90 * col0 AS col1 FROM tab2 AS cor0
----
17010
182520
270180

query I rowsort
SELECT - + cor0.col2 + ( + 18 ) * + col1 AS col0 FROM tab2 AS cor0
----
1036
268
531

query I rowsort
SELECT 79 + tab2.col1 * - col1 FROM tab2
----
-210
-3402
-882

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

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

query I rowsort
SELECT DISTINCT + - col1 * - ( + 41 * col0 ) + - col1 AS col0 FROM tab0 cor0
----
139098
331968
84538

query I rowsort
SELECT DISTINCT - 18 * 38 + col2 AS col0 FROM tab0 cor0
----
-602
-651
-683

query I rowsort
SELECT ALL 70 * col1 AS col1 FROM tab0 AS cor0
----
6020
6370
6790

query I rowsort
SELECT ALL + + 9 FROM tab0 AS cor0
----
9
9
9

query I rowsort
SELECT DISTINCT + tab0.col1 + + tab0.col2 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
119
173
98

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

query I rowsort
SELECT ALL + col1 + + 38 * col2 * - col2 FROM tab0 AS cor0
----
-255421
-41296
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-705
SELECT + - cor0.col2 DIV + 48 AS col1 FROM tab1 AS cor0
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-705
SELECT + - cor0.col2 / + 48 AS col1 FROM tab1 AS cor0
----
-1
-1
-2

query I rowsort
SELECT DISTINCT + ( 95 ) + - cor0.col2 AS col1 FROM tab1 AS cor0
----
-1
38
41

query I rowsort
SELECT col2 - + ( 27 ) FROM tab0
----
-26
55
6

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

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

query I rowsort
SELECT DISTINCT + col1 + col2 * + cor0.col1 + 77 AS col1 FROM tab1 AS cor0
----
1338
1507
657

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

query I rowsort
SELECT ALL + 9 * cor0.col0 FROM tab2 AS cor0
----
63
702
711

query I rowsort
SELECT DISTINCT - 9 + col0 AS col2 FROM tab2 AS cor0
----
-2
69
70

query I rowsort
SELECT ALL - 37 FROM tab2, tab1 AS cor0
----
9 values hashing to ed4644af7729c2425ea6cc3d84c6504f

query I rowsort
SELECT 83 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-719
SELECT DISTINCT + 97 + - col1 DIV 35 AS col0 FROM tab0
----
95

skipif mysql # not compatible
query I rowsort label-719
SELECT DISTINCT + 97 + - col1 / 35 AS col0 FROM tab0
----
95

onlyif mysql # use DIV operator for integer division
query I rowsort label-720
SELECT - 60 DIV col0 + - col0 AS col0 FROM tab1
----
-23
-64
-80

skipif mysql # not compatible
query I rowsort label-720
SELECT - 60 / col0 + - col0 AS col0 FROM tab1
----
-23
-64
-80

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

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

query I rowsort
SELECT + 58 + 32 FROM tab1
----
90
90
90

query I rowsort
SELECT DISTINCT 87 * - tab1.col0 AS col0 FROM tab1
----
-261
-5568
-6960

query I rowsort
SELECT + tab2.col1 * col1 * - tab2.col2 + 8 AS col2 FROM tab2
----
-10974
-25939
-90498

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

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

query I rowsort
SELECT DISTINCT - 32 * - cor0.col0 FROM tab1 AS cor0
----
2048
2560
96

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-728
SELECT cor0.col0 DIV - cor0.col0 + col2 FROM tab1 AS cor0
----
53
56
95

skipif mysql # not compatible
query I rowsort label-728
SELECT cor0.col0 / - cor0.col0 + col2 FROM tab1 AS cor0
----
53
56
95

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

query I rowsort
SELECT DISTINCT - col1 * - col1 AS col1 FROM tab1 cor0
----
100
169
676

query I rowsort
SELECT DISTINCT - 62 * col2 + col1 FROM tab0 AS cor0
----
-1960
-4993
35

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + - 28 * - col2 col0 FROM tab2 AS cor0
----
1081
787

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-739
SELECT ALL + 42 + - col2 DIV - col0 FROM tab1 AS cor0
----
42
43
60

skipif mysql # not compatible
query I rowsort label-739
SELECT ALL + 42 + - col2 / - col0 FROM tab1 AS cor0
----
42
43
60

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-740
SELECT ALL + + 68 * col0 + CAST( + col1 AS SIGNED ) * cor0.col2 AS col1 FROM tab1 AS cor0
----
1608
4922
6688

skipif mysql # not compatible
query I rowsort label-740
SELECT ALL + + 68 * col0 + CAST ( + col1 AS INTEGER ) * cor0.col2 AS col1 FROM tab1 AS cor0
----
1608
4922
6688

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

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

query I rowsort
SELECT + + 24 * col0 FROM tab2 AS cor0
----
168
1872
1896

query I rowsort
SELECT + + 35 * col2 FROM tab1 cor0
----
1890
1995
3360

query I rowsort
SELECT ALL - + 44 AS col1 FROM tab2 AS cor0
----
-44
-44
-44

query I rowsort
SELECT col2 + + cor0.col1 * 0 FROM tab0 AS cor0
----
1
33
82

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

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-752
SELECT DISTINCT + col1 + 59 / - 67 FROM tab1 AS cor0
----
10
13
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * 19 col0 FROM tab2
----
1121
323
589

query I rowsort
SELECT DISTINCT + + col1 + 29 + - col1 * - col1 AS col1 FROM tab0 cor0
----
7511
8401
9535

query I rowsort
SELECT DISTINCT - col1 * + 92 AS col1 FROM tab0 AS cor0
----
-7912
-8372
-8924

query I rowsort
SELECT DISTINCT - cor0.col0 * col2 + col0 AS col1 FROM tab0 AS cor0
----
-7209
-768
0

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

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

query I rowsort
SELECT DISTINCT cor0.col1 + col1 + 40 FROM tab1 AS cor0
----
60
66
92

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

query I rowsort
SELECT + cor0.col0 + - cor0.col1 * - col2 FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT ALL - + col0 * cor0.col0 * + cor0.col0 + + col0 FROM tab0 AS cor0
----
-13800
-42840
-704880

query I rowsort
SELECT DISTINCT + col1 + 80 FROM tab1 AS cor0
----
106
90
93

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

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

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

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

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

query I rowsort
SELECT ALL + - 4 * - cor0.col1 * cor0.col0 AS col1 FROM tab1 AS cor0
----
2560
312
4160

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

query I rowsort
SELECT ALL - col1 + + 30 * + col2 AS col2 FROM tab2 AS cor0
----
1123
721
779

query I rowsort
SELECT + 82 + col1 AS col1 FROM tab0 AS cor0
----
168
173
179

query I rowsort
SELECT DISTINCT + - col1 + + 8 FROM tab1 AS cor0
----
-18
-2
-5

query I rowsort
SELECT - 33 * + col2 AS col1 FROM tab2 AS cor0
----
-1254
-858
-891

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

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

query I rowsort
SELECT ( - col1 ) * cor0.col2 + col1 + + 1 AS col1 FROM tab1 AS cor0
----
-1234
-1377
-559

query I rowsort
SELECT ALL - - 76 FROM tab0 AS cor0
----
76
76
76

query I rowsort
SELECT DISTINCT + col0 * 84 + - col0 AS col1 FROM tab1 AS cor0
----
249
5312
6640

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-780
SELECT DISTINCT col2 * + 35 + - col2 DIV - col0 FROM tab0 cor0
----
1156
2870
35

skipif mysql # not compatible
query I rowsort label-780
SELECT DISTINCT col2 * + 35 + - col2 / - col0 FROM tab0 cor0
----
1156
2870
35

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

skipif mysql # not compatible
query I rowsort
SELECT CAST ( col0 AS REAL ) * col2 FROM tab2 AS cor0
----
189
2028
3002

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-783
SELECT CAST( + col1 AS SIGNED ) * + col0 + - 79 FROM tab1 AS cor0
----
-1
561
961

skipif mysql # not compatible
query I rowsort label-783
SELECT CAST ( + col1 AS INTEGER ) * + col0 + - 79 FROM tab1 AS cor0
----
-1
561
961

query I rowsort
SELECT 74 + col0 * + cor0.col1 FROM tab1 AS cor0
----
1114
152
714

query I rowsort
SELECT + col0 + + col0 * - col0 AS col0 FROM tab0 AS cor0
----
-1190
-552
-7832

query I rowsort
SELECT 73 + + col2 * col0 + col0 FROM tab2
----
2179
269
3154

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

skipif mysql # not compatible
query I rowsort label-787
SELECT col1 + + ( 1 ) / + col1 AS col2 FROM tab0 AS cor0
----
86
91
97

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

query I rowsort
SELECT col2 + col0 * 74 AS col1 FROM tab1 AS cor0
----
276
4793
6016

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

query I rowsort
SELECT ALL - + col2 + - ( + 69 ) * col1 FROM tab1 AS cor0
----
-1848
-747
-993

query I rowsort
SELECT ALL - col0 * - col0 + - col0 + col2 AS col1 FROM tab1 AS cor0
----
4089
60
6416

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

query I rowsort
SELECT ALL - col1 + - ( - 85 ) AS col2 FROM tab0 AS cor0
----
-1
-12
-6

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

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

query I rowsort
SELECT 64 FROM tab2, tab1 cor0
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e

query I rowsort
SELECT - tab1.col2 + 58 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 639d0807e3c161f9477cc531a9afc1d8

query I rowsort
SELECT - col0 + col2 * - col2 - + col1 FROM tab2
----
-1540
-767
-813

query I rowsort
SELECT DISTINCT - col1 * - 28 FROM tab2
----
1652
476
868

query I rowsort
SELECT - ( 85 ) AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 8ebc8ffafb1517ea04e3a6fc4059d88a

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-803
SELECT DISTINCT - + col1 DIV ( - 26 ) FROM tab2 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-803
SELECT DISTINCT - + col1 / ( - 26 ) FROM tab2 AS cor0
----
0
1
2

query I rowsort
SELECT + col0 * - col1 + col1 + + col0 AS col0 FROM tab1 AS cor0
----
-49
-566
-947

query I rowsort
SELECT - col2 + ( col2 ) + + col1 * ( + 26 ) FROM tab1 AS cor0
----
260
338
676

query I rowsort
SELECT DISTINCT - - col1 * 30 AS col0 FROM tab2 AS cor0
----
1770
510
930

query I rowsort
SELECT col2 * + 32 * col2 FROM tab1
----
103968
294912
93312

onlyif mysql # use DIV operator for integer division
query I rowsort label-808
SELECT DISTINCT col1 DIV 71 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-808
SELECT DISTINCT col1 / 71 FROM tab0
----
1

query I rowsort
SELECT DISTINCT col2 + ( + col0 ) * col0 AS col2 FROM tab0 AS cor0
----
1226
609
8003

query I rowsort
SELECT + 14 + + 68 * + col2 FROM tab1 AS cor0
----
3686
3890
6542

query I rowsort
SELECT ( - 28 + - col0 ) FROM tab0
----
-117
-52
-63

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

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

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

query I rowsort
SELECT - + ( col1 ) * col2 * + col1 FROM tab1 AS cor0
----
-16224
-36504
-5700

query I rowsort
SELECT - tab1.col1 * col2 - col2 FROM tab1
----
-1344
-1458
-627

query I rowsort
SELECT ALL 54 AS col2 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 81150d59d6c3fc48b4ef5a4a5495bc7a

query I rowsort
SELECT ALL - ( col1 ) + + tab1.col0 * - 99 FROM tab1
----
-323
-6346
-7933

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

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

query I rowsort
SELECT - - 1 * + col1 + col1 + 22 AS col2 FROM tab1 AS cor0
----
42
48
74

query I rowsort
SELECT DISTINCT - cor0.col2 * - ( col1 ) * col1 + col0 FROM tab0 AS cor0
----
244092
679131
9444

query I rowsort
SELECT DISTINCT 84 + 71 * - cor2.col1 AS col2 FROM tab0, tab2 AS cor0, tab1 cor1, tab0 AS cor2
----
-6022
-6377
-6803

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

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

query I rowsort
SELECT - cor1.col1 * 46 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 6a869c0ed9dc9279ceadcbdd9263f520

onlyif mysql # use DIV operator for integer division
query I rowsort label-825
SELECT DISTINCT - + 97 DIV cor0.col0 AS col0 FROM tab1 AS cor0
----
-1
-32

skipif mysql # not compatible
query I rowsort label-825
SELECT DISTINCT - + 97 / cor0.col0 AS col0 FROM tab1 AS cor0
----
-1
-32

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

query I rowsort
SELECT ALL + + col0 * + cor0.col0 + ( cor0.col0 ) * cor0.col0 AS col0 FROM tab1 AS cor0
----
12800
18
8192

query I rowsort
SELECT ALL + 69 * 35 FROM tab1
----
2415
2415
2415

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col1 + cor0.col2 col2 FROM tab0 AS cor0
----
119
173
98

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

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

query I rowsort
SELECT ALL + ( + cor0.col2 ) + + 51 FROM tab1 AS cor0
----
105
108
147

query I rowsort
SELECT DISTINCT - - 22 AS col2 FROM tab1 AS cor0
----
22

query I rowsort
SELECT + + col1 + - ( + 53 ) FROM tab0 AS cor0
----
33
38
44

query I rowsort
SELECT + + col1 + 85 FROM tab2 AS cor0
----
102
116
144

query I rowsort
SELECT col2 + col0 * 55 AS col0 FROM tab0 AS cor0
----
1353
1926
4977

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

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

query I rowsort
SELECT DISTINCT + + col0 * 20 FROM tab1 cor0
----
1280
1600
60

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

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

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

query I rowsort
SELECT ALL + tab2.col2 * col2 + ( col0 * col1 ) AS col1 FROM tab2
----
2787
5278
946

query I rowsort
SELECT + cor0.col0 * + 46 FROM tab2 AS cor0
----
322
3588
3634

onlyif mysql # use DIV operator for integer division
query I rowsort label-842
SELECT DISTINCT + col0 DIV + col1 - col1 AS col0 FROM tab1 AS cor0
----
-26
-4
-7

skipif mysql # not compatible
query I rowsort label-842
SELECT DISTINCT + col0 / + col1 - col1 AS col0 FROM tab1 AS cor0
----
-26
-4
-7

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + 58 + col1 col0 FROM tab2 AS cor0
----
1567
1597
2221

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

query I rowsort
SELECT cor0.col0 + - 66 * col2 * + col0 + - col1 * cor0.col2 AS col2 FROM tab0 AS cor0
----
-2372
-489041
-55086

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

query I rowsort
SELECT ALL - 91 FROM tab0, tab1 AS cor0
----
9 values hashing to 745d1c3a09d935465cad552325c5c945

query I rowsort
SELECT DISTINCT - 49 FROM tab1, tab1 AS cor0, tab1 cor1
----
-49

query I rowsort
SELECT ALL - col1 * - col1 + - 76 AS col2 FROM tab1
----
24
600
93

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

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

query I rowsort
SELECT ALL + ( col0 ) * col2 + + col0 * - col2 + 13 AS col0 FROM tab2
----
13
13
13

query I rowsort
SELECT DISTINCT + + col0 * + col2 + 65 AS col2 FROM tab2 AS cor0
----
2093
254
3067

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * - col1 - 53 col2 FROM tab2 AS cor0
----
-1014
-342
-3534

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

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

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

query I rowsort
SELECT + col1 * + ( + 85 ) + + col1 FROM tab2 AS cor0
----
1462
2666
5074

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

query I rowsort
SELECT tab0.col2 * col0 + - 65 FROM tab0
----
-30
7233
727

query I rowsort
SELECT DISTINCT col2 * col2 + - col1 FROM tab0
----
-96
1003
6633

onlyif mysql # use DIV operator for integer division
query I rowsort label-862
SELECT ALL 83 + col1 * ( col1 ) DIV + col2 FROM tab0
----
183
307
9492

skipif mysql # not compatible
query I rowsort label-862
SELECT ALL 83 + col1 * ( col1 ) / + col2 FROM tab0
----
183
307
9492

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

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

skipif mysql # not compatible
query I rowsort label-864
SELECT - - col0 + + col0 / col1 AS col0 FROM tab2 AS cor0
----
7
79
83

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

query I rowsort
SELECT - col0 + + 77 AS col1 FROM tab2 AS cor0
----
-1
-2
70

onlyif mysql # use DIV operator for integer division
query I rowsort label-867
SELECT ALL - col2 + - col1 * col0 - col2 DIV + ( - col1 ) FROM tab1 AS cor0
----
-1129
-130
-692

skipif mysql # not compatible
query I rowsort label-867
SELECT ALL - col2 + - col1 * col0 - col2 / + ( - col1 ) FROM tab1 AS cor0
----
-1129
-130
-692

query I rowsort
SELECT DISTINCT - col1 + 11 * col0 FROM tab1 AS cor0
----
694
7
867

query I rowsort
SELECT DISTINCT col0 * + 46 * - 67 AS col2 FROM tab2 AS cor0
----
-21574
-240396
-243478

query I rowsort
SELECT DISTINCT ( - 40 * - col0 ) + tab2.col1 * tab2.col1 * + col1 FROM tab2
----
208499
30071
8073

query I rowsort
SELECT + col1 * - cor0.col1 * - col2 + 4 AS col1 FROM tab0 AS cor0
----
244072
679046
9413

query I rowsort
SELECT DISTINCT 84 + + 81 * - col0 AS col2 FROM tab1 AS cor0
----
-159
-5100
-6396

query I rowsort
SELECT 80 * ( + col0 ) + + col2 FROM tab0 cor0
----
1953
2801
7202

query I rowsort
SELECT - + col0 * - 89 * + col2 + - ( + 54 ) * col1 * - col0 FROM tab1 AS cor0
----
18630
359232
739680

query I rowsort
SELECT ALL + 68 * + col0 + col2 FROM tab1 AS cor0
----
258
4409
5536

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-877
SELECT DISTINCT ( cor0.col0 ) + 69 DIV - col0 FROM tab1 AS cor0
----
-20
63
80

skipif mysql # not compatible
query I rowsort label-877
SELECT DISTINCT ( cor0.col0 ) + 69 / - col0 FROM tab1 AS cor0
----
-20
63
80

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

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

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

query I rowsort
SELECT DISTINCT - 67 * 84 AS col0 FROM tab1
----
-5628

query I rowsort
SELECT ALL - ( + col2 ) * col1 - + col0 AS col0 FROM tab1
----
-1328
-1407
-634

query I rowsort
SELECT col2 * col1 + ( + col2 ) FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT ALL col2 * - col0 + - ( + col2 ) AS col0 FROM tab0 cor0
----
-36
-7380
-825

query I rowsort
SELECT cor0.col1 * col0 - 10 AS col2 FROM tab2 AS cor0
----
1333
207
4592

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-887
SELECT + 33 DIV 7 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b

skipif mysql # not compatible
query I rowsort label-887
SELECT + 33 / 7 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b

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

query I rowsort
SELECT + 77 * - cor0.col2 + - cor0.col1 * - col0 AS col0 FROM tab1 AS cor0
----
-3749
-4080
-6352

query I rowsort
SELECT col2 * cor0.col0 + 78 * 81 * col1 FROM tab0 AS cor0
----
544140
582236
612881

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * - col0 - 46 col2 FROM tab0 AS cor0
----
1179
530
7875

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

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

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

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

query I rowsort
SELECT col0 + col2 * - col1 * + col1 FROM tab0
----
-244044
-678953
-9374

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

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

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

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

query I rowsort
SELECT ALL 36 + cor0.col2 AS col1 FROM tab0 AS cor0
----
118
37
69

query I rowsort
SELECT col1 + col2 * col1 * col1 FROM tab0
----
244154
679133
9506

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

query I rowsort
SELECT ALL ( col1 ) * - col1 - ( col1 + col0 ) AS col1 FROM tab2
----
-3618
-385
-999

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

query I rowsort
SELECT 24 + - 85 * + col1 AS col2 FROM tab1
----
-1081
-2186
-826

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

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

query I rowsort
SELECT - ( + col2 ) + col1 - 67 FROM tab0
----
-14
-58
29

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab0 cor0, tab0 cor1, tab0, tab0 AS cor2
----
3645 values hashing to 04ab51615fd2c7e492de6a59e98226e1

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

query I rowsort
SELECT col2 + + 5 * col2 AS col0 FROM tab0
----
198
492
6

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

skipif mysql # not compatible
query I rowsort label-910
SELECT + + cor0.col0 * col1 / + col0 FROM tab1 cor0
----
10
13
26

onlyif mysql # use DIV operator for integer division
query I rowsort label-911
SELECT ALL + col2 DIV 84 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-911
SELECT ALL + col2 / 84 AS col2 FROM tab0
----
0
0
0

query I rowsort
SELECT + ( - 63 ) * + tab2.col0 * - cor1.col2 FROM tab2, tab2 AS cor0, tab1, tab0 AS cor1
----
81 values hashing to 131a28bcdd79a37c4a77602531a9b7e6

query I rowsort
SELECT DISTINCT col0 + 32 * cor0.col2 AS col1 FROM tab0 AS cor0
----
1080
2713
67

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

query I rowsort
SELECT - cor0.col2 + 95 AS col0 FROM tab1 cor0
----
-1
38
41

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

query I rowsort
SELECT - 37 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to ed4644af7729c2425ea6cc3d84c6504f

query I rowsort
SELECT ALL - 22 FROM tab0, tab1 cor0
----
9 values hashing to fae46f8148b02964f7145eb6ed5819f9

query I rowsort
SELECT DISTINCT - cor1.col1 * + ( 89 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-1157
-2314
-890

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

query I rowsort
SELECT DISTINCT 35 FROM tab1, tab2 AS cor0 CROSS JOIN tab2
----
35

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

query I rowsort
SELECT DISTINCT 59 + - 47 AS col1 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
12

query I rowsort
SELECT + - 71 AS col2 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 3907e0aa4f29c002120742c4abb3e23a

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

query I rowsort
SELECT ( col2 ) + 89 AS col1 FROM tab1 AS cor0
----
143
146
185

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

query I rowsort
SELECT + ( - 2 ) FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 20c9213316527d507e26425041e08387

query I rowsort
SELECT + col1 * - 87 + - 61 FROM tab1 AS cor0
----
-1192
-2323
-931

query I rowsort
SELECT DISTINCT + + col1 * cor0.col0 - + ( col2 ) FROM tab0 AS cor0
----
2031
3394
8017

query I rowsort
SELECT ALL ( - 29 ) AS col1 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 0cc9ddad93fc783055518ae4b6be054b

query I rowsort
SELECT - 98 FROM tab1, tab2 AS cor0
----
9 values hashing to f17b7008a7deae1eb5a2e707ec237638

query I rowsort
SELECT ALL - tab0.col1 * - 15 + + 17 * + col2 FROM tab0
----
1472
1851
2759

query I rowsort
SELECT DISTINCT - col2 + + 67 AS col2 FROM tab2
----
29
40
41

query I rowsort
SELECT ( - 37 ) AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to ed4644af7729c2425ea6cc3d84c6504f

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-936
SELECT col2 - CAST( + col0 AS SIGNED ) * tab0.col0 * 18 FROM tab0
----
-10335
-142496
-22049

skipif mysql # not compatible
query I rowsort label-936
SELECT col2 - CAST ( + col0 AS INTEGER ) * tab0.col0 * 18 FROM tab0
----
-10335
-142496
-22049

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

query I rowsort
SELECT - + col0 + - 20 * - 60 FROM tab2 AS cor0
----
1121
1122
1193

query I rowsort
SELECT ALL - col2 * - 18 AS col2 FROM tab0 AS cor0
----
1476
18
594

query I rowsort
SELECT 71 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 95a6ff35b7b8f00868fb58bcaa32d0c2

query I rowsort
SELECT ALL + col0 * col1 + col1 FROM tab0 cor0
----
2150
3492
8190

query I rowsort
SELECT ALL col1 + + col2 * - ( + col2 ) FROM tab2 AS cor0
----
-1427
-617
-698

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

query I rowsort
SELECT 43 - ( + col2 ) * + col2 AS col2 FROM tab2
----
-1401
-633
-686

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - col0 col0 FROM tab0
----
-1225
-576
-7921

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

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

query I rowsort
SELECT - 26 - - tab1.col0 * col2 AS col2 FROM tab1
----
136
3622
7654

onlyif mysql # use DIV operator for integer division
query I rowsort label-951
SELECT + 30 DIV 41 + - col2 col2 FROM tab0
----
-1
-33
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-951
SELECT + 30 / 41 + - col2 col2 FROM tab0
----
-1
-33
-82

query I rowsort
SELECT col0 * 57 FROM tab2 AS cor0
----
399
4446
4503

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

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

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

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

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

query I rowsort
SELECT DISTINCT + 80 + col0 FROM tab1 AS cor0
----
144
160
83

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

query I rowsort
SELECT DISTINCT - 79 * - col0 FROM tab0 AS cor0
----
1896
2765
7031

onlyif mysql # use DIV operator for integer division
query I rowsort label-960
SELECT ALL + col0 + 67 DIV + cor0.col0 FROM tab2 cor0
----
16
78
79

skipif mysql # not compatible
query I rowsort label-960
SELECT ALL + col0 + 67 / + cor0.col0 FROM tab2 cor0
----
16
78
79

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

query I rowsort
SELECT 32 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to d30a2acbf33c88274474306936d3227b

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

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

query I rowsort
SELECT cor0.col1 + 24 * col2 AS col2 FROM tab1 AS cor0
----
1322
1378
2317

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

query I rowsort
SELECT DISTINCT + cor0.col0 * - 53 + col0 + + col0 * + col2 * - col2 FROM tab0 AS cor0
----
-1855
-27384
-603064

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 88 * + col2 col1 FROM tab1 AS cor0
----
4752
5016
8448

query I rowsort
SELECT + + cor0.col2 + + cor0.col0 * col0 * 55 FROM tab1 AS cor0
----
225337
352096
549

query I rowsort
SELECT col1 * + 36 + col0 + + ( col1 * - cor0.col2 ) AS col2 FROM tab0 AS cor0
----
-4097
282
3430

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

query I rowsort
SELECT ALL col0 - + ( 12 ) AS col0 FROM tab1
----
-9
52
68

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

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

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

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

query I rowsort
SELECT cor0.col1 + + col1 + + 95 FROM tab2 AS cor0
----
129
157
213

onlyif mysql # use DIV operator for integer division
query I rowsort label-977
SELECT - + 2 DIV + col0 + + col0 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-977
SELECT - + 2 / + col0 + + col0 FROM tab1 AS cor0
----
3
64
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-978
SELECT + CAST( col2 + col1 AS SIGNED ) * + col1 AS col1 FROM tab1
----
1417
2080
670

skipif mysql # not compatible
query I rowsort label-978
SELECT + CAST ( col2 + col1 AS INTEGER ) * + col1 AS col1 FROM tab1
----
1417
2080
670

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

query I rowsort
SELECT ALL + col2 + 84 FROM tab1
----
138
141
180

onlyif mysql # use DIV operator for integer division
query I rowsort label-981
SELECT DISTINCT col0 + col1 * + col1 DIV col1 AS col1 FROM tab0 AS cor0
----
110
132
180

skipif mysql # not compatible
query I rowsort label-981
SELECT DISTINCT col0 + col1 * + col1 / col1 AS col1 FROM tab0 AS cor0
----
110
132
180

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

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

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

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

query I rowsort
SELECT ALL + - cor0.col0 * - 10 FROM tab0 cor0
----
240
350
890

query I rowsort
SELECT DISTINCT - col2 + 8 AS col1 FROM tab1 AS cor0
----
-46
-49
-88

query I rowsort
SELECT ALL col2 * 92 AS col2 FROM tab1 AS cor0
----
4968
5244
8832

query I rowsort
SELECT ALL + + col0 * - 38 + + col0 * + col0 * col0 AS col2 FROM tab0 AS cor0
----
12912
41545
701587

query I rowsort
SELECT - + col0 * + 98 AS col0 FROM tab1 AS cor0
----
-294
-6272
-7840

query I rowsort
SELECT col1 + 14 * 72 AS col2 FROM tab0
----
1094
1099
1105

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

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

query I rowsort
SELECT DISTINCT + col0 + ( 7 * col2 + + tab2.col2 ) AS col2 FROM tab2
----
223
286
383

onlyif mysql # use DIV operator for integer division
query I rowsort label-993
SELECT DISTINCT + - col2 * ( col1 + col2 ) DIV + 8 AS col0 FROM tab2 AS cor0
----
-195
-261
-276

skipif mysql # not compatible
query I rowsort label-993
SELECT DISTINCT + - col2 * ( col1 + col2 ) / + 8 AS col0 FROM tab2 AS cor0
----
-195
-261
-276

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

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

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

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

query I rowsort
SELECT DISTINCT + col1 - 71 AS col1 FROM tab0 AS cor0
----
15
20
26

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

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

query I rowsort
SELECT ALL col0 - - col2 * col0 FROM tab1 cor0
----
165
3712
7760

query I rowsort
SELECT col0 * col1 + 70 AS col1 FROM tab2 AS cor0
----
1413
287
4672

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + col1 * 19 + col0 col2 FROM tab1 AS cor0
----
264
340
523

query I rowsort
SELECT cor0.col1 + - 45 * + col1 AS col2 FROM tab1 AS cor0
----
-1144
-440
-572

query I rowsort
SELECT ALL + 89 FROM tab2, tab1 AS cor0
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743

onlyif mysql # use DIV operator for integer division
query I rowsort label-1004
SELECT - col1 DIV col1 + - 5 AS col0 FROM tab0
----
-6
-6
-6

skipif mysql # not compatible
query I rowsort label-1004
SELECT - col1 / col1 + - 5 AS col0 FROM tab0
----
-6
-6
-6

query I rowsort
SELECT ALL - 54 FROM tab2, tab0 AS cor0
----
9 values hashing to 4ecdb0f1b85f0d4fdc3a826efd9f2342

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1007
SELECT DISTINCT + 73 * - col2 + col2 DIV - 57 + - col2 FROM tab2 AS cor0
----
-1924
-1998
-2812

skipif mysql # not compatible
query I rowsort label-1007
SELECT DISTINCT + 73 * - col2 + col2 / - 57 + - col2 FROM tab2 AS cor0
----
-1924
-1998
-2812

query I rowsort
SELECT ALL + 15 * - cor0.col2 + cor0.col0 - - col2 AS col1 FROM tab1 AS cor0
----
-1264
-734
-753

query I rowsort
SELECT + 11 + 34 AS col2 FROM tab0 AS cor0
----
45
45
45

query I rowsort
SELECT ALL - cor0.col1 - - 89 AS col2 FROM tab0 AS cor0
----
-2
-8
3

query I rowsort
SELECT ALL cor0.col2 + + cor0.col2 * + col2 * - 7 FROM tab0 AS cor0
----
-46986
-6
-7590

query I rowsort
SELECT 52 FROM tab1, tab0 AS cor0
----
9 values hashing to 7f4ae30893ab330784829711032ae599

query I rowsort
SELECT + col0 * 53 + col2 - 35 FROM tab2 AS cor0
----
363
4125
4190

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT CAST ( - col2 AS REAL ) + - col2 col0 FROM tab0 AS cor0
----
-164
-2
-66

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

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

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

query I rowsort
SELECT ALL + 55 * cor0.col1 FROM tab1 AS cor0
----
1430
550
715

query I rowsort
SELECT DISTINCT + 56 + - col0 FROM tab1 cor0
----
-24
-8
53

query I rowsort
SELECT - + col2 * cor0.col1 + ( + 47 ) AS col2 FROM tab1 AS cor0
----
-1201
-1357
-523

onlyif mysql # use DIV operator for integer division
query I rowsort label-1020
SELECT - col1 + + col2 * col2 DIV col0 FROM tab2 AS cor0
----
-51
1
73

skipif mysql # not compatible
query I rowsort label-1020
SELECT - col1 + + col2 * col2 / col0 FROM tab2 AS cor0
----
-51
1
73

query I rowsort
SELECT ALL 13 + cor0.col1 + ( ( + col1 ) * - ( + col2 ) ) FROM tab2 AS cor0
----
-1462
-616
-793

query I rowsort
SELECT ALL + col2 * cor0.col0 + + 94 FROM tab2 AS cor0
----
2122
283
3096

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

query I rowsort
SELECT ALL + col0 * cor0.col1 + 58 AS col0 FROM tab2 cor0
----
1401
275
4660

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 84 * col0 + cor0.col0 * + col2 col0 FROM tab2 AS cor0
----
-3634
-399
-4524

onlyif mysql # use DIV operator for integer division
query I rowsort label-1026
SELECT - + 99 DIV - col0 FROM tab2 AS cor0
----
1
1
14

skipif mysql # not compatible
query I rowsort label-1026
SELECT - + 99 / - col0 FROM tab2 AS cor0
----
1
1
14

query I rowsort
SELECT DISTINCT + 48 * - col1 FROM tab0 AS cor0
----
-4128
-4368
-4656

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

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

query I rowsort
SELECT col0 * ( col2 + + col2 ) * col0 FROM tab2 AS cor0
----
2646
316368
474316

query I rowsort
SELECT + col1 * - 41 FROM tab1 AS cor0
----
-1066
-410
-533

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

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

query I rowsort
SELECT 33 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5

query I rowsort
SELECT DISTINCT + col0 * col1 * col1 FROM tab2 WHERE + col0 + col2 * + col2 NOT IN ( - col2 )
----
22831
271518
6727

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

query I rowsort
SELECT + col0 * + col1 * cor0.col1 + col2 + col0 FROM tab1 AS cor0
----
13696
2085
6521

query I rowsort
SELECT col0 + col0 + + cor0.col1 AS col2 FROM tab2 AS cor0
----
175
215
45

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

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

query I rowsort
SELECT + col0 + - cor0.col2 * - col0 + col0 * col0 * - col2 AS col1 FROM tab2 AS cor0
----
-1127
-156078
-234077

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

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

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

query I rowsort
SELECT cor0.col0 FROM tab0 AS cor0 WHERE NOT col2 BETWEEN col0 AND NULL
----
35
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-1043
SELECT col2 * col1 + - col0 * col2 DIV col0 + col0 DIV col2 AS col2 FROM tab1 AS cor0
----
1152
1350
514

skipif mysql # not compatible
query I rowsort label-1043
SELECT col2 * col1 + - col0 * col2 / col0 + col0 / col2 AS col2 FROM tab1 AS cor0
----
1152
1350
514

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col0 <= ( NULL )
----

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

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

query I rowsort
SELECT ALL 70 * - col1 FROM tab2
----
-1190
-2170
-4130

query I rowsort
SELECT col1 * col0 + - col2 * tab1.col0 + col2 FROM tab1
----
-2951
-30
-6544

query I rowsort
SELECT ALL - col2 + - col2 + col1 FROM tab2
----
-23
-59
7

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

skipif mysql # not compatible
query I rowsort label-1050
SELECT - + col0 / col1 + cor0.col1 + col1 AS col2 FROM tab1 AS cor0
----
14
20
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 + col0 * col0 col2 FROM tab2 AS cor0
----
22
6058
6203

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

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

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

skipif mysql # not compatible
query I rowsort label-1054
SELECT + tab1.col0 / col0 AS col2 FROM tab1
----
1
1
1

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

skipif mysql # not compatible
query I rowsort label-1055
SELECT - tab0.col1 / - tab0.col2 FROM tab0
----
1
2
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 + + col1 col0 FROM tab0 AS cor0
----
119
173
98

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

query I rowsort
SELECT - 51 + - col1 FROM tab0 AS cor0
----
-137
-142
-148

query I rowsort
SELECT ALL + 6 * - col2 * 18 FROM tab0 cor0
----
-108
-3564
-8856

query I rowsort
SELECT DISTINCT - col1 + + col2 * + col2 + cor0.col0 * col1 FROM tab0 AS cor0
----
14732
3067
3299

query I rowsort
SELECT DISTINCT - col1 - col1 * col2 * - col0 AS col1 FROM tab1
----
36470
4186
99827

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

query I rowsort
SELECT ALL - col0 * + col1 * col1 - col0 AS col1 FROM tab0
----
-177528
-329350
-737098

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

query I rowsort
SELECT DISTINCT + 68 * col0 - - col2 AS col1 FROM tab0
----
1665
2381
6134

query I rowsort
SELECT 34 + - col2 FROM tab1
----
-20
-23
-62

query I rowsort
SELECT 95 + + col0 + + col1 * - 82 AS col2 FROM tab0
----
-6933
-7278
-7824

query I rowsort
SELECT 56 * - tab0.col1 AS col2 FROM tab0
----
-4816
-5096
-5432

query I rowsort
SELECT DISTINCT col0 - tab2.col0 FROM tab2
----
0

query I rowsort
SELECT cor0.col2 * + col2 + 15 FROM tab0 AS cor0
----
1104
16
6739

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

query I rowsort
SELECT DISTINCT col1 FROM tab2 WHERE col0 <= NULL
----

query I rowsort
SELECT ALL col0 + + col0 AS col2 FROM tab0 WHERE col0 * col1 = NULL
----

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

query I rowsort
SELECT DISTINCT col2 * col2 + tab2.col2 AS col1 FROM tab2
----
1482
702
756

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - col1 col0 FROM tab0
----
-2
-62
-62

query I rowsort
SELECT col0 + - tab2.col0 * col0 + + tab2.col2 AS col1 FROM tab2
----
-15
-5980
-6124

onlyif mysql # use DIV operator for integer division
query I rowsort label-1081
SELECT col2 DIV + tab0.col0 + tab0.col1 + col2 AS col0 FROM tab0
----
120
173
98

skipif mysql # not compatible
query I rowsort label-1081
SELECT col2 / + tab0.col0 + tab0.col1 + col2 AS col0 FROM tab0
----
120
173
98

query I rowsort
SELECT col1 + + col2 AS col0 FROM tab2 WHERE NOT - col0 NOT IN ( + col1 + - col0 )
----

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

skipif mysql # not compatible
query I rowsort label-1083
SELECT tab0.col2 / col2 FROM tab0
----
1
1
1

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1086
SELECT col1 DIV tab1.col0 + col2 + - col0 FROM tab1
----
-7
16
59

skipif mysql # not compatible
query I rowsort label-1086
SELECT col1 / tab1.col0 + col2 + - col0 FROM tab1
----
-7
16
59

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

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 IN ( col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + col2 * tab1.col0 col2 FROM tab1
----
216
3705
7776

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

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

query I rowsort
SELECT ALL + 2 + + col1 * - col0 * + col0 AS col1 FROM tab2 cor0
----
-106095
-1517
-358954

query I rowsort
SELECT ALL - 39 * col1 + - 65 + - col0 AS col2 FROM tab1
----
-1082
-519
-652

query I rowsort
SELECT DISTINCT + 49 + - col1 AS col1 FROM tab1 AS cor0
----
23
36
39

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1097
SELECT DISTINCT + - col0 DIV + CAST( col0 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-1097
SELECT DISTINCT + - col0 / + CAST ( col0 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-1

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

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

query I rowsort
SELECT ALL + col2 - col2 * ( col0 ) FROM tab1
----
-108
-3591
-7584

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col0 + + col2 * col2 col2 FROM tab2 AS cor0
----
2787
5278
946

query I rowsort
SELECT DISTINCT - 17 * - col1 - 19 FROM tab0
----
1443
1528
1630

query I rowsort
SELECT DISTINCT tab1.col0 * col1 + - tab1.col0 * - col2 - col2 FROM tab1
----
186
4231
8624

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1105
SELECT - 9 DIV + tab1.col1 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1105
SELECT - 9 / + tab1.col1 AS col1 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 88 * cor0.col1 + cor0.col2 col1 FROM tab2 cor0
----
-1458
-2701
-5166

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1107
SELECT ALL - CAST ( NULL AS INTEGER ) * 73 col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

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

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

query I rowsort
SELECT DISTINCT - col2 * + col0 + - col1 * col2 * + cor0.col2 FROM tab2 AS cor0
----
-22788
-27550
-41912

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

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

query I rowsort
SELECT + - 49 * + col0 FROM tab0 AS cor0
----
-1176
-1715
-4361

query I rowsort
SELECT ALL + col0 + 38 * col1 AS col0 FROM tab2
----
1185
2320
725

query I rowsort
SELECT DISTINCT 26 * 79 * - col0 + cor0.col0 * cor0.col0 FROM tab0 cor0
----
-174885
-48720
-70665

query I rowsort
SELECT ALL + cor0.col0 * - 68 - + cor0.col0 * col0 FROM tab1 AS cor0
----
-11840
-213
-8448

query I rowsort
SELECT ALL - - col0 * col1 - col2 FROM tab0 AS cor0
----
2031
3394
8017

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 66 col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 29794915b585eea848ad670075452c88

skipif mysql # not compatible
query I rowsort
SELECT ( + col2 ) * - col1 + CAST ( - col0 AS REAL ) AS col0 FROM tab1
----
-1328
-1407
-634

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 90 * col2 + - col2 * + 21 col2 FROM tab1
----
-10656
-5994
-6327

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 72 * col2 col0 FROM tab0 AS cor0
----
-2376
-5904
-72

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

query I rowsort
SELECT + ( + 86 ) + cor0.col1 * + col0 * - col2 FROM tab1 AS cor0
----
-36394
-4126
-99754

query I rowsort
SELECT DISTINCT - ( - cor0.col0 ) AS col2 FROM tab2 AS cor0
----
7
78
79

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1128
SELECT 67 DIV col1 + col0 FROM tab0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-1128
SELECT 67 / col1 + col0 FROM tab0
----
24
35
89

query I rowsort
SELECT tab0.col1 + - 40 * col1 AS col0 FROM tab0
----
-3354
-3549
-3783

query I rowsort
SELECT DISTINCT - ( - 8 ) * col1 * col1 AS col0 FROM tab1
----
1352
5408
800

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1131
SELECT - CAST( 83 AS SIGNED ) FROM tab2
----
-83
-83
-83

skipif mysql # not compatible
query I rowsort label-1131
SELECT - CAST ( 83 AS INTEGER ) FROM tab2
----
-83
-83
-83

query I rowsort
SELECT + 92 + col0 AS col2 FROM tab1
----
156
172
95

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1133
SELECT ALL - CAST( - col2 AS SIGNED ) * - tab0.col2 * + col0 AS col2 FROM tab0
----
-26136
-35
-598436

skipif mysql # not compatible
query I rowsort label-1133
SELECT ALL - CAST ( - col2 AS INTEGER ) * - tab0.col2 * + col0 AS col2 FROM tab0
----
-26136
-35
-598436

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

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

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

query I rowsort
SELECT ALL - - cor0.col2 * col0 + - cor0.col0 - - col2 FROM tab2 cor0
----
1976
209
2961

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + col2 * col1 col2 FROM tab0 AS cor0
----
2871
7544
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 - col2 * + col2 col0 FROM tab0 cor0
----
-1113
-36
-6813

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

query I rowsort
SELECT DISTINCT 96 FROM tab1, tab1 AS cor0
----
96

query I rowsort
SELECT DISTINCT - cor0.col0 * - col2 * - ( col0 ) FROM tab2 cor0
----
-1323
-158184
-237158

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

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

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

query I rowsort
SELECT + - col1 * ( col1 ) + + col1 AS col1 FROM tab1 AS cor0
----
-156
-650
-90

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

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

query I rowsort
SELECT + + col0 * - 81 AS col0 FROM tab0 AS cor0
----
-1944
-2835
-7209

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1150
SELECT DISTINCT + CAST( + col1 AS SIGNED ) DIV - col1 - - cor0.col0 FROM tab2 AS cor0
----
6
77
78

skipif mysql # not compatible
query I rowsort label-1150
SELECT DISTINCT + CAST ( + col1 AS INTEGER ) / - col1 - - cor0.col0 FROM tab2 AS cor0
----
6
77
78

query I rowsort
SELECT ( 41 ) + + cor0.col2 * - cor0.col2 FROM tab0 AS cor0
----
-1048
-6683
40

query I rowsort
SELECT - 60 + 59 AS col0 FROM tab2 AS cor0
----
-1
-1
-1

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

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

query I rowsort
SELECT - 33 * - col1 FROM tab0
----
2838
3003
3201

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

query I rowsort
SELECT ALL + 88 * col0 FROM tab0 AS cor0
----
2112
3080
7832

query I rowsort
SELECT ALL - col0 * col1 * cor0.col1 + - col1 AS col2 FROM tab1 AS cor0
----
-13533
-2054
-6410

query I rowsort
SELECT col2 * col1 + col0 * - 11 * + 38 AS col2 FROM tab0 AS cor0
----
-14533
-29740
-7194

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

query I rowsort
SELECT + 30 + 4 FROM tab1 AS cor0
----
34
34
34

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

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

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

query I rowsort
SELECT 93 + + ( col2 ) FROM tab1 AS cor0
----
147
150
189

query I rowsort
SELECT DISTINCT + 75 + + ( - col1 ) + + cor0.col0 * + col0 * + col1 AS col2 FROM tab0 AS cor0
----
118803
49525
720795

onlyif mysql # use DIV operator for integer division
query I rowsort label-1166
SELECT ALL + tab1.col0 DIV col2 - tab1.col0 AS col2 FROM tab1
----
-3
-63
-80

skipif mysql # not compatible
query I rowsort label-1166
SELECT ALL + tab1.col0 / col2 - tab1.col0 AS col2 FROM tab1
----
-3
-63
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-1167
SELECT - col1 + col2 * + col1 DIV col1 FROM tab1 AS cor0
----
28
47
83

skipif mysql # not compatible
query I rowsort label-1167
SELECT - col1 + col2 * + col1 / col1 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT - 45 + + col0 AS col2 FROM tab1 AS cor0
----
-42
19
35

query I rowsort
SELECT DISTINCT + col1 + col1 * tab0.col1 * 18 AS col0 FROM tab0
----
133214
149149
169459

skipif mysql # not compatible
query I rowsort
SELECT CAST ( + 9 AS REAL ) - + col1 / - col0 AS col2 FROM tab1 AS cor0
----
17
9
9

query I rowsort
SELECT - - 45 + - col1 * - col1 FROM tab2 AS cor0
----
1006
334
3526

query I rowsort
SELECT DISTINCT - cor0.col2 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-1
-33
-82

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

query I rowsort
SELECT - + col0 + + col1 * + ( - ( - col0 ) * + col0 ) AS col1 FROM tab0 AS cor0
----
118790
49512
720722

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

query I rowsort
SELECT col0 + ( + 20 + + col1 ) FROM tab0
----
130
152
200

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

skipif mysql # not compatible
query I rowsort label-1177
SELECT col1 + + 94 / col0 AS col0 FROM tab1 AS cor0
----
11
14
57

query I rowsort
SELECT 43 AS col0 FROM tab0, tab1 cor0
----
9 values hashing to 199105619049271147956de52e7f5ed4

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

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

query I rowsort
SELECT DISTINCT col2 + 45 FROM tab2 AS cor0
----
71
72
83

query I rowsort
SELECT ALL col1 + col0 * - col0 * col0 FROM tab2 AS cor0
----
-312
-474493
-493022

query I rowsort
SELECT + cor0.col2 + 63 AS col1 FROM tab2 AS cor0
----
101
89
90

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1184
SELECT ALL - col0 + + CAST( + 46 AS SIGNED ) FROM tab1 AS cor0
----
-18
-34
43

skipif mysql # not compatible
query I rowsort label-1184
SELECT ALL - col0 + + CAST ( + 46 AS INTEGER ) FROM tab1 AS cor0
----
-18
-34
43

query I rowsort
SELECT + cor0.col0 + 79 * col0 AS col2 FROM tab0 AS cor0
----
1920
2800
7120

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-1187
SELECT ALL col2 * CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT ALL - - 14 + 1 AS col2 FROM tab2 AS cor0
----
15
15
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 44 * 13 * + col2 col1 FROM tab0 AS cor0
----
-18876
-46904
-572

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

query I rowsort
SELECT - 94 + cor0.col2 FROM tab1 AS cor0
----
-37
-40
2

query I rowsort
SELECT ALL - + ( col1 ) + col1 * + col2 * - col1 AS col2 FROM tab0 AS cor0
----
-244154
-679133
-9506

onlyif mysql # use DIV operator for integer division
query I rowsort label-1200
SELECT ALL + col0 DIV - col0 + 89 FROM tab2 AS cor0
----
88
88
88

skipif mysql # not compatible
query I rowsort label-1200
SELECT ALL + col0 / - col0 + 89 FROM tab2 AS cor0
----
88
88
88

query I rowsort
SELECT - col1 * col2 + 68 FROM tab1 cor0
----
-1180
-1336
-502

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

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

query I rowsort
SELECT DISTINCT - col2 * + col2 * 89 AS col1 FROM tab1 AS cor0
----
-259524
-289161
-820224

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + col2 * + col0 col0 FROM tab1 AS cor0
----
165
3712
7760

query I rowsort
SELECT cor0.col2 * 73 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to daf10d9637c518d6046fbb04e953ce70

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

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

query I rowsort
SELECT ALL - col1 * 96 FROM tab2 AS cor0
----
-1632
-2976
-5664

query I rowsort
SELECT ALL 57 + - col1 AS col0 FROM tab0
----
-29
-34
-40

query I rowsort
SELECT ALL + 34 * - col0 FROM tab0
----
-1190
-3026
-816

onlyif mysql # use DIV operator for integer division
query I rowsort label-1211
SELECT col0 + 63 DIV col0 FROM tab0 AS cor0
----
26
36
89

skipif mysql # not compatible
query I rowsort label-1211
SELECT col0 + 63 / col0 FROM tab0 AS cor0
----
26
36
89

query I rowsort
SELECT DISTINCT + + col2 - col0 * + 2 FROM tab1 AS cor0
----
-64
-71
48

query I rowsort
SELECT 39 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to ed2ebd9def3e2c38aa46cb3af60fe229

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

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

query I rowsort
SELECT col0 * + ( 62 ) * - col0 + - tab2.col1 AS col2 FROM tab2
----
-3069
-377267
-386959

onlyif mysql # use DIV operator for integer division
query I rowsort label-1217
SELECT col2 * col1 DIV col1 + - tab2.col2 + col1 * col2 FROM tab2
----
1534
646
837

skipif mysql # not compatible
query I rowsort label-1217
SELECT col2 * col1 / col1 + - tab2.col2 + col1 * col2 FROM tab2
----
1534
646
837

query I rowsort
SELECT ALL + tab0.col2 * + col2 * 72 + + col1 AS col1 FROM tab0
----
169
484219
78494

query I rowsort
SELECT + - col0 + - 62 * - col0 FROM tab1 AS cor0
----
183
3904
4880

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + - col2 col0 FROM tab0 AS cor0
----
-119
-173
-98

query I rowsort
SELECT ALL 91 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to deebbcfb9c7803a34dca6bd860849afe

query I rowsort
SELECT - + cor0.col2 + + col2 + ( - cor0.col0 + + 4 ) * - col0 FROM tab0 AS cor0
----
1085
480
7565

onlyif mysql # use DIV operator for integer division
query I rowsort label-1224
SELECT ALL 26 DIV col0 + - cor0.col1 DIV + 48 FROM tab0 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-1224
SELECT ALL 26 / col0 + - cor0.col1 / + 48 FROM tab0 AS cor0
----
-1
-2
0

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1227
SELECT ALL - - CAST( col0 AS SIGNED ) * + col0 + 32 DIV - col1 FROM tab1 AS cor0
----
4093
6398
8

skipif mysql # not compatible
query I rowsort label-1227
SELECT ALL - - CAST ( col0 AS INTEGER ) * + col0 + 32 / - col1 FROM tab1 AS cor0
----
4093
6398
8

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

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

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

query I rowsort
SELECT - - 89 * + col1 + - col1 + col2 AS col2 FROM tab1 AS cor0
----
1240
2342
937

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

skipif mysql # not compatible
query I rowsort label-1231
SELECT ALL - col1 * + col2 + - col1 / col2 AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570

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

query I rowsort
SELECT DISTINCT - - 54 * + col2 + + col1 AS col1 FROM tab0 AS cor0
----
151
1868
4519

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

query I rowsort
SELECT ALL - ( 22 ) * + col1 + + cor0.col1 - + col2 * + col0 AS col1 FROM tab0 AS cor0
----
-2072
-2598
-9209

query I rowsort
SELECT ALL + - col1 + + 73 * col0 * col1 AS col1 FROM tab1 AS cor0
----
46710
5668
75907

query I rowsort
SELECT - 99 + + col0 FROM tab0 cor0
----
-10
-64
-75

query I rowsort
SELECT DISTINCT col1 * col2 * col1 + col2 AS col1 FROM tab2
----
11020
25974
90532

onlyif mysql # use DIV operator for integer division
query I rowsort label-1239
SELECT ALL + col0 + col2 + - 95 * col2 DIV - ( col2 + col1 ) AS col2 FROM tab0
----
216
36
83

skipif mysql # not compatible
query I rowsort label-1239
SELECT ALL + col0 + col2 + - 95 * col2 / - ( col2 + col1 ) AS col2 FROM tab0
----
216
36
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-1240
SELECT + - 79 * - col2 + - col1 DIV cor0.col2 FROM tab0 cor0
----
-18
2605
6477

skipif mysql # not compatible
query I rowsort label-1240
SELECT + - 79 * - col2 + - col1 / cor0.col2 FROM tab0 cor0
----
-18
2605
6477

query I rowsort
SELECT cor0.col1 * 38 FROM tab1 AS cor0
----
380
494
988

query I rowsort
SELECT col0 + 12 + - col1 * + col2 FROM tab1 AS cor0
----
-1156
-1389
-494

query I rowsort
SELECT ALL + 11 * col0 FROM tab2 AS cor0
----
77
858
869

skipif mysql # not compatible
query I rowsort
SELECT + CAST ( + ( col1 ) AS REAL ) + col2 + col0 FROM tab0 cor0
----
133
143
262

query I rowsort
SELECT - + 26 * col1 + + cor0.col2 FROM tab2 AS cor0
----
-1508
-404
-779

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

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1250
SELECT ALL 41 DIV 97 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1250
SELECT ALL 41 / 97 AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL 90 * - col1 AS col0 FROM tab1
----
-1170
-2340
-900

onlyif mysql # use DIV operator for integer division
query I rowsort label-1252
SELECT ( + col2 ) * col0 DIV col2 + 99 FROM tab0
----
123
134
188

skipif mysql # not compatible
query I rowsort label-1252
SELECT ( + col2 ) * col0 / col2 + 99 FROM tab0
----
123
134
188

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

query I rowsort
SELECT - col2 * 40 AS col0 FROM tab0 AS cor0
----
-1320
-3280
-40

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

query I rowsort
SELECT DISTINCT col2 * + 63 * + 54 FROM tab2 AS cor0
----
129276
88452
91854

query I rowsort
SELECT + + col0 * 44 * col1 + - col2 + - ( 52 ) AS col0 FROM tab2 AS cor0
----
202410
59002
9469

query I rowsort
SELECT col2 * - col1 - - 72 AS col0 FROM tab0 AS cor0
----
-25
-2766
-7390

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

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

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

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

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

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

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

query I rowsort
SELECT ( tab0.col2 ) FROM tab0, tab1 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

query I rowsort
SELECT DISTINCT + - 42 * col0 + + col2 FROM tab2 AS cor0
----
-267
-3250
-3280

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col1 + - 14 col2 FROM tab2, tab0 cor0, tab1 AS cor1
----
27 values hashing to 1f4837136aa7425d92964bc219f85c0c

query I rowsort
SELECT DISTINCT 39 + cor0.col2 FROM tab1 cor0
----
135
93
96

query I rowsort
SELECT ALL col2 + + col2 * 72 AS col0 FROM tab1 AS cor0
----
3942
4161
7008

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1272
SELECT DISTINCT - - col2 DIV - col0 + col0 * col1 AS col2 FROM tab2 AS cor0
----
1343
214
4602

skipif mysql # not compatible
query I rowsort label-1272
SELECT DISTINCT - - col2 / - col0 + col0 * col1 AS col2 FROM tab2 AS cor0
----
1343
214
4602

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

query I rowsort
SELECT DISTINCT 22 AS col0 FROM tab0
----
22

query I rowsort
SELECT ALL - 20 - 22 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 9894093f29c0defae91347934f060329

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

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

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

query I rowsort
SELECT 83 * - col1 AS col0 FROM tab1 AS cor0
----
-1079
-2158
-830

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

query I rowsort
SELECT ALL - 64 AS col1 FROM tab2
----
-64
-64
-64

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

query I rowsort
SELECT + cor0.col0 * 74 + - col2 AS col2 FROM tab1 AS cor0
----
168
4679
5824

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

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

query I rowsort
SELECT DISTINCT + col2 + ( col1 ) * + 99 + + ( col2 ) FROM tab0
----
8580
9173
9605

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 * - cor0.col0 * + col0 col2 FROM tab1 AS cor0
----
-234
-40960
-83200

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

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

query I rowsort
SELECT tab2.col2 + - col1 * 88 AS col0 FROM tab2
----
-1458
-2701
-5166

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 16 + - cor0.col0 col1 FROM tab0 AS cor0
----
-19
-73
-8

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

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

query I rowsort
SELECT + col2 * + col0 + + 56 + col0 * ( - col2 ) * - col1 AS col1 FROM tab2
----
121736
54092
6104

query I rowsort
SELECT DISTINCT col1 * col2 + col0 + col0 FROM tab0
----
167
2886
7640

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * 91 + - 55 col1 FROM tab1 cor0
----
218
5769
7225

query I rowsort
SELECT ALL col1 + - 77 * + col2 * - col2 FROM tab2 AS cor0
----
111205
52111
56164

query I rowsort
SELECT ALL - col0 * 55 AS col0 FROM tab2 AS cor0
----
-385
-4290
-4345

query I rowsort
SELECT ALL - cor0.col0 AS col2 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 729c1edda9332398299f39cd174ed840

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

query I rowsort
SELECT col2 * - 49 + + ( col1 ) FROM tab1 AS cor0
----
-2620
-2783
-4691

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

query I rowsort
SELECT + - cor0.col2 * - cor0.col0 + - cor0.col0 FROM tab0 AS cor0
----
0
7209
768

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

query I rowsort
SELECT DISTINCT - - 16 * + col0 AS col2 FROM tab2 AS cor0
----
112
1248
1264

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 61 * + col1 + - col2 * - col0 + ( + col0 ) col2 FROM tab0 AS cor0
----
12938
5987
6062

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1305
SELECT - 48 + col1 DIV col1 FROM tab2 AS cor0
----
-47
-47
-47

skipif mysql # not compatible
query I rowsort label-1305
SELECT - 48 + col1 / col1 FROM tab2 AS cor0
----
-47
-47
-47

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

query I rowsort
SELECT ALL + 49 * cor0.col2 + cor0.col0 AS col1 FROM tab1 AS cor0
----
2649
2857
4784

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

query I rowsort
SELECT 52 + + col1 * + col2 AS col0 FROM tab1 AS cor0
----
1300
1456
622

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

query I rowsort
SELECT DISTINCT col0 * ( col0 ) AS col2 FROM tab1
----
4096
6400
9

query I rowsort
SELECT - col0 * - 75 AS col1 FROM tab0
----
1800
2625
6675

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1317
SELECT DISTINCT col2 DIV 64 + 59 col1 FROM tab1 AS cor0
----
59
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1317
SELECT DISTINCT col2 / 64 + 59 col1 FROM tab1 AS cor0
----
59
60

query I rowsort
SELECT - col1 * 51 + col1 FROM tab1 AS cor0
----
-1300
-500
-650

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

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

query I rowsort
SELECT DISTINCT - - col0 * cor0.col1 - col1 AS col0 FROM tab1 cor0
----
1027
52
630

query I rowsort
SELECT DISTINCT + col2 * 31 + + col2 AS col2 FROM tab0 AS cor0
----
1056
2624
32

query I rowsort
SELECT ALL - col0 * col0 + + 42 * - col0 FROM tab1 AS cor0
----
-135
-6784
-9760

query I rowsort
SELECT ALL ( - 52 ) AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 9500afe5646d620d5e8943351a29d082

query I rowsort
SELECT DISTINCT + - col0 * - 96 - col2 FROM tab2 AS cor0
----
645
7462
7546

query I rowsort
SELECT ALL - cor0.col1 + + col0 + + col1 FROM tab1 cor0
----
3
64
80

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1328
SELECT col0 + col0 + col1 / ( - col0 ) AS col0 FROM tab0
----
177
45
68

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1332
SELECT col1 * col0 DIV col2 FROM tab0
----
3395
62
98

skipif mysql # not compatible
query I rowsort label-1332
SELECT col1 * col0 / col2 FROM tab0
----
3395
62
98

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

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

query I rowsort
SELECT + col2 * col0 + col0 * - col1 AS col2 FROM tab2 AS cor0
----
-2574
-28
1659

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1336
SELECT DISTINCT + 41 DIV - col2 + ( - ( - col2 ) + - col1 ) AS col0 FROM tab0 cor0
----
-137
-54
-9

skipif mysql # not compatible
query I rowsort label-1336
SELECT DISTINCT + 41 / - col2 + ( - ( - col2 ) + - col1 ) AS col0 FROM tab0 cor0
----
-137
-54
-9

query I rowsort
SELECT - - 20 + col0 FROM tab2 AS cor0
----
27
98
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 67 - col0 col1 FROM tab2 AS cor0
----
-11
-12
60

query I rowsort
SELECT DISTINCT + col0 * + col0 + - 68 FROM tab1 cor0
----
-59
4028
6332

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

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

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

query I rowsort
SELECT ALL + ( - col1 ) * 76 FROM tab1 AS cor0
----
-1976
-760
-988

onlyif mysql # use DIV operator for integer division
query I rowsort label-1343
SELECT + col0 * col2 - ( + 61 ) DIV - col0 FROM tab1 AS cor0
----
182
3648
7680

skipif mysql # not compatible
query I rowsort label-1343
SELECT + col0 * col2 - ( + 61 ) / - col0 FROM tab1 AS cor0
----
182
3648
7680

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-1345
SELECT + 67 * col2 + + 72 DIV cor0.col1 FROM tab0 AS cor0
----
2211
5494
67

skipif mysql # not compatible
query I rowsort label-1345
SELECT + 67 * col2 + + 72 / cor0.col1 FROM tab0 AS cor0
----
2211
5494
67

query I rowsort
SELECT DISTINCT - + 47 * + col1 FROM tab1 AS cor0
----
-1222
-470
-611

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 80 + + col2 col0 FROM tab2 AS cor0
----
106
107
118

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

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

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

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

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

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

query I rowsort
SELECT + + col1 * 50 + cor0.col0 FROM tab2 AS cor0
----
1557
3028
929

query I rowsort
SELECT - col2 + + col0 * 86 AS col1 FROM tab0 AS cor0
----
2031
3009
7572

query I rowsort
SELECT col2 + - 29 * - 10 * + col0 AS col0 FROM tab0 AS cor0
----
10151
25892
6993

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

query I rowsort
SELECT + col0 + col1 * col0 * 86 FROM tab0 AS cor0
----
177528
292005
696603

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

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

query I rowsort
SELECT DISTINCT - 10 * col2 FROM tab2 AS cor0
----
-260
-270
-380

query I rowsort
SELECT DISTINCT 40 + - col1 FROM tab1 AS cor0
----
14
27
30

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

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT ( 12 ) * - col1 FROM tab2 AS cor0
----
-204
-372
-708

query I rowsort
SELECT ALL + 7 * col1 AS col2 FROM tab1 AS cor0
----
182
70
91

query I rowsort
SELECT 78 * col0 + col0 AS col2 FROM tab0 AS cor0
----
1896
2765
7031

query I rowsort
SELECT ALL col0 * - col0 * col2 AS col1 FROM tab2
----
-1323
-158184
-237158

query I rowsort
SELECT ALL 45 FROM tab2, tab0 cor0, tab2 AS cor1
----
27 values hashing to 14cec871edc37b5056cda01c8331fdca

onlyif mysql # use DIV operator for integer division
query I rowsort label-1374
SELECT DISTINCT - 13 * + col0 DIV - col0 AS col1 FROM tab0
----
13

skipif mysql # not compatible
query I rowsort label-1374
SELECT DISTINCT - 13 * + col0 / - col0 AS col1 FROM tab0
----
13

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

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

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

query IIIIII rowsort
SELECT ALL * FROM tab0, tab2 cor0 WHERE NOT ( + cor0.col0 ) <> NULL
----

query I rowsort
SELECT ALL col0 + - col0 * col0 * + cor0.col1 AS col0 FROM tab0 AS cor0
----
-118790
-49512
-720722

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

query I rowsort
SELECT DISTINCT + col1 * + col2 + col2 AS col2 FROM tab1 cor0
----
1344
1458
627

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

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL IN ( col0 ) OR NULL > ( col0 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-1384
SELECT DISTINCT col2 * + col0 DIV col0 + col1 * col2 AS col1 FROM tab2 AS cor0
----
1560
684
864

skipif mysql # not compatible
query I rowsort label-1384
SELECT DISTINCT col2 * + col0 / col0 + col1 * col2 AS col1 FROM tab2 AS cor0
----
1560
684
864

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

query I rowsort
SELECT ALL - 92 AS col0 FROM tab2
----
-92
-92
-92

query I rowsort
SELECT + col0 + - col0 * col0 AS col1 FROM tab0 AS cor0
----
-1190
-552
-7832

onlyif mysql # use DIV operator for integer division
query I rowsort label-1388
SELECT + + 85 DIV cor0.col1 - + col1 AS col2 FROM tab2 cor0
----
-12
-29
-58

skipif mysql # not compatible
query I rowsort label-1388
SELECT + + 85 / cor0.col1 - + col1 AS col2 FROM tab2 cor0
----
-12
-29
-58

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

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

query I rowsort
SELECT ALL - 1 + + col0 AS col1 FROM tab2 AS cor0
----
6
77
78

query I rowsort
SELECT - - 7 * + col0 + col0 FROM tab0 AS cor0
----
192
280
712

query I rowsort
SELECT col1 - - tab0.col0 * + col0 AS col0 FROM tab0 WHERE ( - col2 ) > NULL
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + col1 * + col1 * col1 col1 FROM tab1
----
17550
2184
990

query I rowsort
SELECT DISTINCT col0 + tab0.col0 * tab0.col2 AS col0 FROM tab0 WHERE + tab0.col2 > ( NULL )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-1397
SELECT ALL col1 + + col2 DIV - col1 - col2 AS col1 FROM tab1
----
-30
-52
-90

skipif mysql # not compatible
query I rowsort label-1397
SELECT ALL col1 + + col2 / - col1 - col2 AS col1 FROM tab1
----
-30
-52
-90

query I rowsort
SELECT col0 * + col2 * - col1 + - col1 FROM tab0
----
-3492
-664209
-68198

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + col0 + col2 col1 FROM tab1
----
131
189
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-1400
SELECT col2 * tab0.col1 + col1 DIV + tab0.col1 + + col1 AS col0 FROM tab0
----
195
2925
7554

skipif mysql # not compatible
query I rowsort label-1400
SELECT col2 * tab0.col1 + col1 / + tab0.col1 + + col1 AS col0 FROM tab0
----
195
2925
7554

onlyif mysql # use DIV operator for integer division
query I rowsort label-1401
SELECT + col1 * + tab1.col1 + col2 DIV - col2 + col0 col0 FROM tab1
----
163
248
678

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1401
SELECT + col1 * + tab1.col1 + col2 / - col2 + col0 col0 FROM tab1
----
163
248
678

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

query I rowsort
SELECT DISTINCT col1 * col1 * + col2 FROM tab0
----
244068
679042
9409

query I rowsort
SELECT tab0.col1 + col0 * col0 * col2 FROM tab0
----
1322
19094
649613

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

query I rowsort
SELECT col1 * col1 AS col2 FROM tab2 WHERE NULL BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT DISTINCT col0 + - col2 * - col2 FROM tab1
----
2919
3313
9296

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

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

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

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

query I rowsort
SELECT ALL col0 + col1 AS col2 FROM tab1 WHERE NOT ( - col1 + col1 + col2 ) NOT IN ( col0 )
----

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

query I rowsort
SELECT col2 * - col0 * col0 - + tab2.col2 AS col0 FROM tab2
----
-1350
-158210
-237196

query I rowsort
SELECT + tab2.col0 * col0 * col1 - + col0 AS col1 FROM tab2
----
106018
1512
358878

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

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

query I rowsort
SELECT col1 * col2 FROM tab0 WHERE col2 <= - col1 - col1
----

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

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 + col2 <> NULL
----

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1423
SELECT ALL col2 DIV col0 + - col2 + col1 FROM tab1
----
-10
-47
-82

skipif mysql # not compatible
query I rowsort label-1423
SELECT ALL col2 / col0 + - col2 + col1 FROM tab1
----
-10
-47
-82

query I rowsort
SELECT col0 * + col1 + col2 + col0 FROM tab0
----
2121
3431
8270

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND ( col1 + col0 + + col1 )
----

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL >= + col2 / col2
----

query I rowsort
SELECT - 38 + col2 * col0 * + col2 AS col2 FROM tab2 AS cor0
----
114038
5065
52690

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 23 + col1 col0 FROM tab1 cor0
----
33
36
49

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1431
SELECT ALL - + col0 / 34 col2 FROM tab1 AS cor0
----
-1
-2
0

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1434
SELECT ALL CAST( + col1 AS SIGNED ) * col1 * tab2.col0 FROM tab2
----
22831
271518
6727

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

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

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

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

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

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

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

query I rowsort
SELECT - - 61 + + cor0.col0 AS col0 FROM tab0 AS cor0
----
150
85
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-1441
SELECT 66 DIV col2 + col2 FROM tab1 AS cor0
----
55
58
96

skipif mysql # not compatible
query I rowsort label-1441
SELECT 66 / col2 + col2 FROM tab1 AS cor0
----
55
58
96

query I rowsort
SELECT - - 8 + col1 FROM tab1 AS cor0
----
18
21
34

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

query I rowsort
SELECT - ( 43 ) FROM tab2, tab1 AS cor0 CROSS JOIN tab0
----
27 values hashing to 2f72bd9cab68c8d8c38874510a290a3c

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col2 - ( 71 ) col2 FROM tab0
----
-70
1018
6653

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + 86 col1 FROM tab0
----
119
168
87

query I rowsort
SELECT DISTINCT col0 + - 90 AS col1 FROM tab2
----
-11
-12
-83

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1451
SELECT col1 + CAST ( NULL AS INTEGER ) + - col0 col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-1452
SELECT + col1 DIV 36 FROM tab0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-1452
SELECT + col1 / 36 FROM tab0
----
2
2
2

query I rowsort
SELECT tab2.col2 * - 75 + col2 * + col2 - + col2 FROM tab2
----
-1300
-1323
-1444

query I rowsort
SELECT DISTINCT + col2 + col0 * - ( + col0 + 25 ) AS col1 FROM tab2
----
-197
-8008
-8178

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + - col2 + + ( + col0 * - col2 + 70 ) col2 FROM tab0
----
-669
-7219
131

query I rowsort
SELECT + col1 + 95 * - ( col2 * col2 ) FROM tab0
----
-103369
-638689
2

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

query I rowsort
SELECT DISTINCT - col1 + - col2 * col1 * col0 FROM tab1
----
-36490
-4238
-99853

query I rowsort
SELECT - - 5 + - 95 FROM tab2 AS cor0
----
-90
-90
-90

query I rowsort
SELECT ALL + + cor1.col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

onlyif mysql # use DIV operator for integer division
query I rowsort label-1461
SELECT ALL + col0 DIV 4 FROM tab2
----
1
19
19

skipif mysql # not compatible
query I rowsort label-1461
SELECT ALL + col0 / 4 FROM tab2
----
1
19
19

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

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

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

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

query I rowsort
SELECT DISTINCT + 32 AS col2 FROM tab1, tab0 AS cor0, tab1 cor1
----
32

query I rowsort
SELECT DISTINCT - 78 * tab2.col2 * 86 AS col0 FROM tab2
----
-174408
-181116
-254904

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

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

query I rowsort
SELECT DISTINCT + col2 * - 45 * ( col2 * col1 ) FROM tab2
----
-1016955
-1104660
-1794780

query I rowsort
SELECT - - col2 + 60 AS col1 FROM tab2 cor0
----
86
87
98

query I rowsort
SELECT ALL - + col2 + ( + ( col0 ) * - col0 ) FROM tab1 cor0
----
-4153
-63
-6496

query I rowsort
SELECT + col2 + 78 * col1 AS col2 FROM tab1 AS cor0
----
1110
2082
837

query I rowsort
SELECT tab1.col1 * - col2 * 61 FROM tab1
----
-34770
-76128
-85644

query I rowsort
SELECT ALL 74 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to dc22979e6d261795bd3ce2990fdbbf82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + col1 * col0 col2 FROM tab1 cor0
----
24
583
944

query I rowsort
SELECT + col2 * + col1 + ( col0 ) * - col0 FROM tab0
----
-1128
-459
2262

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - tab0.col1 + tab0.col0 - + col1 col0 FROM tab0
----
2002
3333
8097

query I rowsort
SELECT - col2 + - col0 * 89 FROM tab1
----
-321
-5753
-7216

query I rowsort
SELECT ALL 43 + tab0.col2 * col2 + col1 * - col0 FROM tab0
----
-1332
-3351
-932

query I rowsort
SELECT col0 + + 98 * - col0 FROM tab0 cor0
----
-2328
-3395
-8633

query I rowsort
SELECT - - col2 + 80 AS col2 FROM tab1 AS cor0
----
134
137
176

query I rowsort
SELECT DISTINCT + col2 * - ( 6 ) + + col1 * - ( - col1 ) FROM tab0
----
7198
7789
9403

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 + col1 col0 FROM tab0 cor0
----
53
9
96

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

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

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

query I rowsort
SELECT col2 * - col0 + + 95 FROM tab0 AS cor0
----
-697
-7203
60

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

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

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

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

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

query I rowsort
SELECT DISTINCT - cor0.col2 FROM tab1 cor0 CROSS JOIN tab0 cor1
----
-54
-57
-96

query I rowsort
SELECT - 19 + - col1 FROM tab0 AS cor0
----
-105
-110
-116

query I rowsort
SELECT - ( col1 ) + - col2 * 25 FROM tab0 cor0
----
-122
-2141
-911

query I rowsort
SELECT DISTINCT 94 * col2 AS col1 FROM tab2 AS cor0
----
2444
2538
3572

onlyif mysql # use DIV operator for integer division
query I rowsort label-1495
SELECT + + col2 DIV - col0 + - 43 FROM tab0 AS cor0
----
-43
-43
-44

skipif mysql # not compatible
query I rowsort label-1495
SELECT + + col2 / - col0 + - 43 FROM tab0 AS cor0
----
-43
-43
-44

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1496
SELECT + 72 * + col2 + + CAST( 57 AS SIGNED ) FROM tab1 AS cor0
----
3945
4161
6969

skipif mysql # not compatible
query I rowsort label-1496
SELECT + 72 * + col2 + + CAST ( 57 AS INTEGER ) FROM tab1 AS cor0
----
3945
4161
6969

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

query I rowsort
SELECT DISTINCT - 31 * + col0 AS col0 FROM tab0 AS cor0
----
-1085
-2759
-744

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

query I rowsort
SELECT DISTINCT + 95 AS col2 FROM tab2
----
95

query I rowsort
SELECT DISTINCT 40 FROM tab1, tab2 cor0
----
40

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1504
SELECT DISTINCT + + col2 + col1 DIV - ( 53 ) FROM tab2 AS cor0
----
25
27
38

skipif mysql # not compatible
query I rowsort label-1504
SELECT DISTINCT + + col2 + col1 / - ( 53 ) FROM tab2 AS cor0
----
25
27
38

query I rowsort
SELECT DISTINCT 11 * + col0 + col0 AS col0 FROM tab1 AS cor0
----
36
768
960

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

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

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

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

query I rowsort
SELECT - 34 + + col1 * cor0.col1 * col0 AS col2 FROM tab0 AS cor0
----
177470
329281
736975

query I rowsort
SELECT + 15 * col1 AS col2 FROM tab2 AS cor0
----
255
465
885

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 6 + + col0 * + col0 col0 FROM tab1 AS cor0
----
3
4090
6394

query I rowsort
SELECT - + 55 - col0 * - ( - col1 ) AS col2 FROM tab2 AS cor0
----
-1398
-272
-4657

query I rowsort
SELECT DISTINCT + col2 * - col1 + 34 AS col1 FROM tab1 AS cor0
----
-1214
-1370
-536

query I rowsort
SELECT ALL tab2.col2 * col0 - + col2 FROM tab2
----
162
2002
2964

query I rowsort
SELECT ALL col1 + - 88 AS col1 FROM tab0 AS cor0
----
-2
3
9

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1520
SELECT DISTINCT tab0.col2 * tab0.col0 + col0 DIV - ( col2 + - 86 ) AS col0 FROM tab0
----
35
7320
792

skipif mysql # not compatible
query I rowsort label-1520
SELECT DISTINCT tab0.col2 * tab0.col0 + col0 / - ( col2 + - 86 ) AS col0 FROM tab0
----
35
7320
792

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 13 + col2 col2 FROM tab1 cor0
----
109
67
70

onlyif mysql # use DIV operator for integer division
query I rowsort label-1523
SELECT ALL - ( col0 ) + col2 DIV - 93 AS col0 FROM tab2 AS cor0
----
-7
-78
-79

skipif mysql # not compatible
query I rowsort label-1523
SELECT ALL - ( col0 ) + col2 / - 93 AS col0 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT DISTINCT + col0 * - 48 AS col2 FROM tab2 cor0
----
-336
-3744
-3792

query I rowsort
SELECT ALL + + 87 AS col0 FROM tab0 AS cor0
----
87
87
87

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1526
SELECT col1 - + col0 / tab1.col2 col0 FROM tab1
----
13
26
9

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 10 * col2 - + col1 * ( + ( + col0 ) ) * - col2 col1 FROM tab1
----
100800
37050
4752

query I rowsort
SELECT 77 * + col0 + - col2 AS col1 FROM tab2
----
512
5980
6045

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

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

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

query I rowsort
SELECT - 27 + cor0.col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 409681be1ab4afe2482b1919dc701aac

query I rowsort
SELECT DISTINCT + tab2.col2 * - ( col1 + col0 ) FROM tab2
----
-1026
-3562
-3648

query I rowsort
SELECT - 18 FROM tab1, tab2 AS cor0
----
9 values hashing to 09afafec657a5e9f082beb6a16ec85de

query I rowsort
SELECT + col0 + 73 AS col1 FROM tab0
----
108
162
97

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

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

query I rowsort
SELECT ALL - col1 * 52 AS col2 FROM tab2 AS cor0
----
-1612
-3068
-884

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

query I rowsort
SELECT - - col2 * 94 * col1 AS col2 FROM tab1 AS cor0
----
117312
131976
53580

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

query I rowsort
SELECT tab0.col2 AS col2 FROM tab0, tab1 AS cor0, tab1 cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT - - col1 * - 7 FROM tab2 cor0
----
-119
-217
-413

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

query I rowsort
SELECT - + ( col0 ) * - col1 + ( col1 ) * + col0 FROM tab1 AS cor0
----
1280
156
2080

query I rowsort
SELECT DISTINCT - 43 + col0 AS col1 FROM tab1 AS cor0
----
-40
21
37

query I rowsort
SELECT + ( 79 ) + - col2 AS col1 FROM tab0 AS cor0
----
-3
46
78

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

skipif mysql # not compatible
query I rowsort label-1549
SELECT ALL CAST ( + 78 AS INTEGER ) * col1 FROM tab0 AS cor0
----
6708
7098
7566

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

query I rowsort
SELECT + 0 + - 95 * col0 AS col0 FROM tab0 AS cor0
----
-2280
-3325
-8455

query I rowsort
SELECT ALL - ( - 53 ) + + col1 AS col2 FROM tab1 AS cor0
----
63
66
79

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

query I rowsort
SELECT ALL - 3 * col2 AS col1 FROM tab1 cor0
----
-162
-171
-288

query I rowsort
SELECT + 87 * + col0 FROM tab0 AS cor0
----
2088
3045
7743

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col1 * + col1 + ( - 71 ) * + tab2.col2 col1 FROM tab2
----
-2409
-956
1635

query I rowsort
SELECT DISTINCT - - 89 + col1 * - ( col0 ) FROM tab0 AS cor0
----
-1975
-3306
-8010

query I rowsort
SELECT 88 - + cor1.col0 AS col2 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to c7b5fca144d1c7175d90aaba117fa2bd

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 - col2 * col2 * - col0 col1 FROM tab2
----
114093
5134
52787

onlyif mysql # use DIV operator for integer division
query I rowsort label-1560
SELECT ( - cor0.col2 ) DIV - col1 AS col1 FROM tab2 cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-1560
SELECT ( - cor0.col2 ) / - col1 AS col1 FROM tab2 cor0
----
0
0
2

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

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

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

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

query I rowsort
SELECT - col0 * 31 * + cor0.col2 FROM tab1 AS cor0
----
-113088
-238080
-5022

query I rowsort
SELECT DISTINCT + col1 - col0 * + 65 FROM tab1 cor0
----
-169
-4150
-5187

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

query I rowsort
SELECT - 69 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to ca5f4bc365dc2c6b14187d6ffc83a01d

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

query I rowsort
SELECT - 35 FROM tab1, tab2 cor0, tab1 cor1
----
27 values hashing to 6d967b3bac2e01a0318865f682f9a97b

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

query I rowsort
SELECT + col1 + - col1 * - ( - col0 ) AS col0 FROM tab0
----
-1978
-3298
-8008

onlyif mysql # use DIV operator for integer division
query I rowsort label-1572
SELECT DISTINCT col2 DIV + CAST( - col1 AS SIGNED ) AS col1 FROM tab1
----
-2
-5
-7

skipif mysql # not compatible
query I rowsort label-1572
SELECT DISTINCT col2 / + CAST ( - col1 AS INTEGER ) AS col1 FROM tab1
----
-2
-5
-7

query I rowsort
SELECT ALL + 90 * - 23 AS col1 FROM tab2 AS cor0
----
-2070
-2070
-2070

query I rowsort
SELECT + 34 AS col1 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 4e2ca147a59e0d5661c28cf3e5431caa

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1576
SELECT DISTINCT - ( col2 ) DIV col0 + - col2 FROM tab1
----
-57
-72
-97

skipif mysql # not compatible
query I rowsort label-1576
SELECT DISTINCT - ( col2 ) / col0 + - col2 FROM tab1
----
-57
-72
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab1.col0 * col1 + col2 col0 FROM tab1
----
1136
132
697

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

query I rowsort
SELECT + 76 + col2 AS col1 FROM tab1 AS cor0
----
130
133
172

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

query I rowsort
SELECT 8 + - cor0.col0 FROM tab2 cor0
----
-70
-71
1

query I rowsort
SELECT - col0 * cor0.col1 + 88 FROM tab1 AS cor0
----
-552
-952
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 * - col0 + 44 col1 FROM tab1 AS cor0
----
206
3692
7724

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

query I rowsort
SELECT ALL + + 44 + col0 AS col1 FROM tab2 AS cor0
----
122
123
51

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

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

query I rowsort
SELECT ALL - - 80 AS col1 FROM tab2 AS cor0
----
80
80
80

query I rowsort
SELECT col1 * col1 * col1 + + col1 AS col0 FROM tab0 AS cor0
----
636142
753662
912770

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

query I rowsort
SELECT DISTINCT - col1 * ( col2 ) + - col0 FROM tab1 AS cor0
----
-1328
-1407
-634

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1593
SELECT DISTINCT CAST( - 72 AS SIGNED ) + + col0 AS col1 FROM tab0 AS cor0
----
-37
-48
17

skipif mysql # not compatible
query I rowsort label-1593
SELECT DISTINCT CAST ( - 72 AS INTEGER ) + + col0 AS col1 FROM tab0 AS cor0
----
-37
-48
17

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

skipif mysql # not compatible
query I rowsort
SELECT - col1 / - CAST ( - col1 AS REAL ) AS col2 FROM tab0
----
-1
-1
-1

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1598
SELECT + 74 * col0 DIV tab0.col0 + 57 AS col2 FROM tab0
----
131
131
131

skipif mysql # not compatible
query I rowsort label-1598
SELECT + 74 * col0 / tab0.col0 + 57 AS col2 FROM tab0
----
131
131
131

skipif mysql # not compatible
query I rowsort
SELECT CAST ( ( + col1 ) AS REAL ) * + col1 * - 54 - col0 AS col2 FROM tab1
----
-36507
-5464
-9206

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + ( - col2 ) col1 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT 54 AS col2 FROM tab2, tab2 cor0
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09

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

query I rowsort
SELECT ALL 65 + col0 * tab2.col2 * col0 FROM tab2
----
1388
158249
237223

query I rowsort
SELECT + 3 FROM tab1, tab1 AS cor0
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba

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

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

query I rowsort
SELECT DISTINCT cor0.col0 + - 98 - + col2 FROM tab1 AS cor0
----
-114
-149
-91

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

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

query I rowsort
SELECT ALL 55 FROM tab2, tab2 cor0
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

query I rowsort
SELECT ALL - col1 * 33 + cor0.col0 - col2 FROM tab2 cor0
----
-1043
-1895
-520

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

skipif mysql # not compatible
query I rowsort label-1611
SELECT ALL + col2 + - col2 / cor0.col2 FROM tab0 AS cor0
----
0
32
81

query I rowsort
SELECT ALL + col0 + + 95 AS col1 FROM tab2 cor0
----
102
173
174

query I rowsort
SELECT DISTINCT + + col0 + + 33 * col0 * cor0.col1 AS col2 FROM tab2 AS cor0
----
151944
44398
7168

query I rowsort
SELECT ALL - cor0.col0 * cor0.col0 + col2 FROM tab2 AS cor0
----
-22
-6058
-6203

query I rowsort
SELECT col1 * - ( ( col1 ) ) + - 88 * 22 AS col2 FROM tab2 cor0
----
-2225
-2897
-5417

query I rowsort
SELECT ALL col2 * 50 FROM tab2
----
1300
1350
1900

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

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

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

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

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

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1625
SELECT DISTINCT col0 * 38 DIV col2 FROM tab1 cor0
----
2
31
42

skipif mysql # not compatible
query I rowsort label-1625
SELECT DISTINCT col0 * 38 / col2 FROM tab1 cor0
----
2
31
42

query I rowsort
SELECT ALL 28 * 96 + + col0 * col1 AS col2 FROM tab2 AS cor0
----
2905
4031
7290

query I rowsort
SELECT ALL 28 + + col0 AS col1 FROM tab0 AS cor0
----
117
52
63

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

query I rowsort
SELECT ALL - + 22 * + col0 FROM tab2 AS cor0
----
-154
-1716
-1738

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

query I rowsort
SELECT DISTINCT - + 61 AS col0 FROM tab2 cor0
----
-61

query I rowsort
SELECT ALL + 66 FROM tab2 AS cor0
----
66
66
66

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

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

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

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

query I rowsort
SELECT ALL + 13 + + col1 * - col1 FROM tab1 cor0
----
-156
-663
-87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + + cor0.col2 * + cor0.col1 col2 FROM tab2 AS cor0
----
1456
567
830

query I rowsort
SELECT DISTINCT col0 * - 73 * + col0 FROM tab2 AS cor0
----
-3577
-444132
-455593

query I rowsort
SELECT 52 * ( col1 ) FROM tab1 AS cor0
----
1352
520
676

query I rowsort
SELECT DISTINCT - - 7 * col0 - col2 AS col2 FROM tab1 AS cor0
----
-33
391
464

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

skipif mysql # not compatible
query I rowsort label-1641
SELECT ALL - 99 * - col0 + + col0 * 97 * col0 + + col0 * CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT DISTINCT + 91 * col2 AS col0 FROM tab1 AS cor0
----
4914
5187
8736

query I rowsort
SELECT col0 + + col1 + + ( - cor0.col1 ) * + col1 * col2 FROM tab1 AS cor0
----
-16131
-36475
-5626

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

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

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

query I rowsort
SELECT - + ( col0 ) * col2 + 4 + col2 FROM tab1 cor0
----
-104
-3587
-7580

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

query I rowsort
SELECT DISTINCT col2 + + ( 67 ) * col2 AS col2 FROM tab0 AS cor0
----
2244
5576
68

query I rowsort
SELECT col0 * + 44 * + 28 FROM tab1 AS cor0
----
3696
78848
98560

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

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

query I rowsort
SELECT + 56 FROM tab2, tab0 AS cor0
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa

query I rowsort
SELECT ALL - - col0 * ( 79 ) + cor0.col0 * ( - ( - col0 ) ) * col0 - 61 FROM tab1 AS cor0
----
203
267139
518259

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( - 61 ) col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 07149905a72bd87553381f34d19ed290

onlyif mysql # use DIV operator for integer division
query I rowsort label-1656
SELECT DISTINCT col0 + + col0 DIV 76 AS col0 FROM tab2
----
7
79
80

skipif mysql # not compatible
query I rowsort label-1656
SELECT DISTINCT col0 + + col0 / 76 AS col0 FROM tab2
----
7
79
80

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

skipif mysql # not compatible
query I rowsort label-1657
SELECT + - 97 / cor0.col2 AS col0 FROM tab1 cor0
----
-1
-1
-1

query I rowsort
SELECT ( + col1 ) * - 20 AS col2 FROM tab0 AS cor0
----
-1720
-1820
-1940

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 36 col1 FROM tab0 AS cor0
----
36
36
36

query I rowsort
SELECT 54 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09

query I rowsort
SELECT - 74 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 5a567947d14593676e3825756f8e6130

query I rowsort
SELECT DISTINCT - ( + cor0.col0 ) FROM tab1, tab2 AS cor0
----
-7
-78
-79

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( col0 * + col0 + col2 AS REAL ) AS col0 FROM tab2
----
6110
6279
76

query I rowsort
SELECT DISTINCT + - 98 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-98

query I rowsort
SELECT 73 * - col2 AS col1 FROM tab1 cor0
----
-3942
-4161
-7008

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1666
SELECT - ( col0 + CAST( 25 AS SIGNED ) * col1 ) FROM tab2
----
-1553
-504
-782

skipif mysql # not compatible
query I rowsort label-1666
SELECT - ( col0 + CAST ( 25 AS INTEGER ) * col1 ) FROM tab2
----
-1553
-504
-782

query I rowsort
SELECT ALL + col0 + col0 * 66 FROM tab2 AS cor0
----
469
5226
5293

query I rowsort
SELECT DISTINCT + - 92 AS col1 FROM tab0 AS cor0
----
-92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + - col1 col1 FROM tab0 cor0
----
-172
-182
-194

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1670
SELECT DISTINCT + CAST( + 71 AS SIGNED ) + - cor0.col0 AS col2 FROM tab2, tab0 AS cor0
----
-18
36
47

skipif mysql # not compatible
query I rowsort label-1670
SELECT DISTINCT + CAST ( + 71 AS INTEGER ) + - cor0.col0 AS col2 FROM tab2, tab0 AS cor0
----
-18
36
47

query I rowsort
SELECT DISTINCT - 82 AS col2 FROM tab0, tab2 AS cor0
----
-82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1672
SELECT ALL + - col1 + CAST( NULL AS DECIMAL ) / - ( col2 * - 33 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1672
SELECT ALL + - col1 + CAST ( NULL AS REAL ) / - ( col2 * - 33 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 * - 26 AS col2 FROM tab2
----
-1534
-442
-806

query I rowsort
SELECT - + cor0.col1 - - 69 * - col0 FROM tab1 AS cor0
----
-233
-4426
-5533

query I rowsort
SELECT ALL + - 96 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c89b545346f99713888a7934e4caa539

query I rowsort
SELECT col2 * + ( + col0 * - col0 ) FROM tab1
----
-233472
-486
-614400

onlyif mysql # use DIV operator for integer division
query I rowsort label-1677
SELECT + cor0.col0 + 73 DIV col0 FROM tab2 AS cor0
----
17
78
79

skipif mysql # not compatible
query I rowsort label-1677
SELECT + cor0.col0 + 73 / col0 FROM tab2 AS cor0
----
17
78
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 33 + 59 col2 FROM tab0 AS cor0
----
26

query I rowsort
SELECT ALL + + col0 + ( + col0 ) * + col0 FROM tab2 AS cor0
----
56
6162
6320

onlyif mysql # use DIV operator for integer division
query I rowsort label-1680
SELECT + 46 * + cor0.col1 + - col1 DIV col0 AS col2 FROM tab0 AS cor0
----
3953
4185
4460

skipif mysql # not compatible
query I rowsort label-1680
SELECT + 46 * + cor0.col1 + - col1 / col0 AS col2 FROM tab0 AS cor0
----
3953
4185
4460

query I rowsort
SELECT - 7 * - 35 FROM tab2
----
245
245
245

query I rowsort
SELECT + ( 76 * + col1 ) AS col1 FROM tab2
----
1292
2356
4484

query I rowsort
SELECT 36 FROM tab1, tab0 AS cor0
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752

query I rowsort
SELECT - col0 * col2 + + col2 FROM tab0 cor0
----
-34
-7216
-759

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + cor0.col0 * col1 col1 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT - + ( col1 ) + col1 * 65 * - col2 FROM tab2 AS cor0
----
-42007
-54436
-99769

query I rowsort
SELECT - 62 * - col1 FROM tab1 AS cor0
----
1612
620
806

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1688
SELECT CAST( + cor0.col1 AS SIGNED ) + - col1 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1688
SELECT CAST ( + cor0.col1 AS INTEGER ) + - col1 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT - - ( + col0 ) + cor0.col1 AS col2 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT - ( + col2 ) * + col1 AS col0 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT 48 * + col1 + - col2 * - 88 * + 91 + - col1 * col2 FROM tab1 AS cor0
----
432276
456366
768144

query I rowsort
SELECT - - 66 + col2 FROM tab2 AS cor0
----
104
92
93

query I rowsort
SELECT DISTINCT 45 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
45

query I rowsort
SELECT 80 + col1 AS col1 FROM tab2 AS cor0
----
111
139
97

query I rowsort
SELECT ALL + 85 AS col0 FROM tab2
----
85
85
85

query I rowsort
SELECT DISTINCT col2 * + col2 * 10 - - col0 * col1 FROM tab2 AS cor0
----
11362
15783
7507

query I rowsort
SELECT 46 + col1 FROM tab2 cor0
----
105
63
77

query I rowsort
SELECT ALL - col0 * col0 - ( col0 ) AS col0 FROM tab1 AS cor0
----
-12
-4160
-6480

query I rowsort
SELECT DISTINCT + col1 + col0 + col0 FROM tab2 AS cor0
----
175
215
45

query I rowsort
SELECT - col0 + - 71 AS col0 FROM tab1 AS cor0
----
-135
-151
-74

query I rowsort
SELECT col0 * - ( col1 ) AS col0 FROM tab0
----
-2064
-3395
-8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-1702
SELECT ALL + + col0 DIV + ( cor0.col0 ) AS col0 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1702
SELECT ALL + + col0 / + ( cor0.col0 ) AS col0 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT 43 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to ee5108f6248be48c54e069545f81c5d9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - 96 + + col0 * - col2 col1 FROM tab1 AS cor0
----
0
126
2496

query I rowsort
SELECT DISTINCT + 76 FROM tab1, tab1 AS cor0
----
76

query I rowsort
SELECT - - col1 * - col1 + col0 FROM tab0 AS cor0
----
-7372
-8192
-9374

query I rowsort
SELECT - + col0 + + ( 89 + col0 * - col0 ) AS col2 FROM tab1 AS cor0
----
-4071
-6391
77

query I rowsort
SELECT col1 + - cor0.col1 * cor0.col2 FROM tab0 AS cor0
----
-2752
-7371
0

query I rowsort
SELECT - + ( - cor0.col2 ) - + col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + ( col2 ) - - col2 AS col0 FROM tab2 AS cor0
----
52
54
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - col2 col0 FROM tab1
----
-1248
-1404
-570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 93 col1 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 85ef191bf1b307f300b3fd49992fcae7

query I rowsort
SELECT - ( col1 ) * + col1 + 93 FROM tab1 cor0
----
-583
-7
-76

query I rowsort
SELECT + 43 * - col2 AS col1 FROM tab2 AS cor0
----
-1118
-1161
-1634

query I rowsort
SELECT + + col2 * col2 + cor0.col0 * + col0 AS col2 FROM tab1 AS cor0
----
15616
2925
7345

onlyif mysql # use DIV operator for integer division
query I rowsort label-1716
SELECT + 99 * + cor0.col0 + col2 DIV + 72 + col1 AS col1 FROM tab1 AS cor0
----
323
6346
7934

skipif mysql # not compatible
query I rowsort label-1716
SELECT + 99 * + cor0.col0 + col2 / + 72 + col1 AS col1 FROM tab1 AS cor0
----
323
6346
7934

query I rowsort
SELECT DISTINCT - col0 * - ( col0 ) AS col0 FROM tab2
----
49
6084
6241

query I rowsort
SELECT col1 * ( - 1 ) AS col1 FROM tab1
----
-10
-13
-26

query I rowsort
SELECT DISTINCT - cor0.col0 * - 26 FROM tab2, tab1, tab2 AS cor0
----
182
2028
2054

query I rowsort
SELECT + 71 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 95a6ff35b7b8f00868fb58bcaa32d0c2

query I rowsort
SELECT DISTINCT ( 28 ) FROM tab1, tab2 AS cor0
----
28

query I rowsort
SELECT + col1 * 92 AS col0 FROM tab1
----
1196
2392
920

query I rowsort
SELECT ALL + - 32 AS col0 FROM tab0 cor0
----
-32
-32
-32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 85 col1 FROM tab2
----
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 17 col2 FROM tab0 AS cor0
----
17
17
17

query I rowsort
SELECT ALL 64 * col2 FROM tab0 cor0
----
2112
5248
64

query I rowsort
SELECT + col0 * cor0.col0 * + cor0.col1 AS col2 FROM tab0 AS cor0
----
118825
49536
720811

query I rowsort
SELECT + - ( + col1 ) * + cor0.col2 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT DISTINCT - 1 * col2 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT + col0 * col0 - + 67 AS col1 FROM tab1 AS cor0
----
-58
4029
6333

query I rowsort
SELECT DISTINCT - col0 * + col0 + col2 - col1 AS col2 FROM tab1 AS cor0
----
-4049
-6317
19

query I rowsort
SELECT cor0.col2 + + col1 AS col2 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT ALL + - col2 * - col2 * - col2 FROM tab2 AS cor0
----
-17576
-19683
-54872

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1734
SELECT - + col1 + - col2 - 7 * + col0 * - CAST( NULL AS SIGNED ) AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1734
SELECT - + col1 + - col2 - 7 * + col0 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col0 + + col1 * 60 + + col2 FROM tab1 AS cor0
----
1611
593
796

query I rowsort
SELECT + + col2 + col2 * col2 AS col1 FROM tab2 AS cor0
----
1482
702
756

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - 63 * col2 col1 FROM tab2 AS cor0
----
-1579
-1670
-2377

query I rowsort
SELECT DISTINCT + + col1 * + 31 + col0 AS col1 FROM tab1 AS cor0
----
374
483
809

query I rowsort
SELECT DISTINCT 74 AS col0 FROM tab1
----
74

query I rowsort
SELECT - 95 - col0 * - col0 FROM tab0
----
1130
481
7826

query I rowsort
SELECT ALL + 71 * col2 AS col1 FROM tab2
----
1846
1917
2698

query I rowsort
SELECT + cor0.col2 * + 22 + - col2 AS col0 FROM tab1 AS cor0
----
1134
1197
2016

query I rowsort
SELECT DISTINCT + + 79 AS col1 FROM tab2 AS cor0
----
79

query I rowsort
SELECT ALL 41 AS col0 FROM tab0 AS cor0
----
41
41
41

onlyif mysql # use DIV operator for integer division
query I rowsort label-1745
SELECT - col0 * - ( cor0.col2 ) + col1 DIV - col2 FROM tab0 AS cor0
----
-62
7297
790

skipif mysql # not compatible
query I rowsort label-1745
SELECT - col0 * - ( cor0.col2 ) + col1 / - col2 FROM tab0 AS cor0
----
-62
7297
790

query I rowsort
SELECT - ( 17 ) AS col2 FROM tab2 AS cor0
----
-17
-17
-17

query I rowsort
SELECT ALL + - ( col2 ) * - cor0.col0 FROM tab1 AS cor0
----
162
3648
7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * tab1.col0 col2 FROM tab1
----
162
3648
7680

query I rowsort
SELECT - col2 * 86 FROM tab2
----
-2236
-2322
-3268

query I rowsort
SELECT col2 * - 90 FROM tab2
----
-2340
-2430
-3420

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1751
SELECT col2 * CAST( + col1 AS SIGNED ) AS col0 FROM tab2
----
1534
646
837

skipif mysql # not compatible
query I rowsort label-1751
SELECT col2 * CAST ( + col1 AS INTEGER ) AS col0 FROM tab2
----
1534
646
837

query I rowsort
SELECT - col0 * + 10 AS col1 FROM tab2
----
-70
-780
-790

query I rowsort
SELECT DISTINCT cor1.col0 FROM tab1, tab0 AS cor0, tab0 cor1
----
24
35
89

query I rowsort
SELECT DISTINCT 48 * 56 FROM tab1
----
2688

query I rowsort
SELECT DISTINCT - 66 * col2 * + col1 FROM tab1
----
-37620
-82368
-92664

query I rowsort
SELECT + + col1 * col1 AS col1 FROM tab2 cor0
----
289
3481
961

query I rowsort
SELECT - col0 * col0 + col2 AS col0 FROM tab1 AS cor0
----
-4039
-6304
45

query I rowsort
SELECT - ( - 2 ) * - col2 + + col2 AS col2 FROM tab1
----
-54
-57
-96

query I rowsort
SELECT + 86 AS col2 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to ed1a39c2752ca3723602e4a92c54bbc4

query I rowsort
SELECT 23 + - col1 AS col2 FROM tab2
----
-36
-8
6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1761
SELECT ALL CAST( NULL AS DECIMAL ) + + 53 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1761
SELECT ALL CAST ( NULL AS REAL ) + + 53 AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 1 + col2 * - col2 FROM tab1
----
-2917
-3250
-9217

query I rowsort
SELECT DISTINCT - + 54 * - col1 - + col1 * 85 FROM tab2 AS cor0
----
-1829
-527
-961

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col1 ) * + cor0.col2 col0 FROM tab1 cor0
----
-1248
-1404
-570

query I rowsort
SELECT ALL + - 17 * col0 AS col0 FROM tab1 AS cor0
----
-1088
-1360
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 96 col1 FROM tab1 AS cor0
----
-96
-96
-96

query I rowsort
SELECT DISTINCT + col2 * col1 * col0 + col1 + col1 FROM tab0 AS cor0
----
3589
664300
68284

query I rowsort
SELECT ALL - col2 * + col0 + - col0 AS col2 FROM tab1
----
-165
-3712
-7760

query I rowsort
SELECT - 55 + + col1 AS col1 FROM tab2 AS cor0
----
-24
-38
4

query I rowsort
SELECT - col2 * + cor0.col0 + + cor0.col2 FROM tab2 AS cor0
----
-162
-2002
-2964

query I rowsort
SELECT DISTINCT 99 + col2 * col0 AS col1 FROM tab0 AS cor0
----
134
7397
891

query I rowsort
SELECT DISTINCT + cor0.col2 + - col1 AS col0 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT ALL - + col2 * col1 - - cor0.col2 FROM tab0 AS cor0
----
-2805
-7380
-96

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab2 AS cor2, tab1 cor3
----
3645 values hashing to 15ae1b54cae2dcf5c6eef7f1d15689eb

query I rowsort
SELECT DISTINCT col1 * ( col0 * col1 ) + ( + tab0.col0 ) FROM tab0
----
177528
329350
737098

query I rowsort
SELECT col2 - + ( 23 ) * col1 AS col2 FROM tab0 AS cor0
----
-1945
-2011
-2230

query I rowsort
SELECT DISTINCT + - col0 * 36 FROM tab2 AS cor0
----
-252
-2808
-2844

onlyif mysql # use DIV operator for integer division
query I rowsort label-1778
SELECT + cor0.col2 DIV + col0 AS col1 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-1778
SELECT + cor0.col2 / + col0 AS col1 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT col0 + - 75 - - col1 AS col1 FROM tab1 cor0
----
-1
-46
18

query I rowsort
SELECT - col1 * + 96 + col1 AS col0 FROM tab0 AS cor0
----
-8170
-8645
-9215

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1781
SELECT ALL - col2 + CAST( 46 AS SIGNED ) FROM tab1 AS cor0
----
-11
-50
-8

skipif mysql # not compatible
query I rowsort label-1781
SELECT ALL - col2 + CAST ( 46 AS INTEGER ) FROM tab1 AS cor0
----
-11
-50
-8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab0.col2 + - col0 col0 FROM tab0
----
-34
-7
9

query I rowsort
SELECT + col1 * 8 * cor0.col0 FROM tab1 cor0
----
5120
624
8320

query I rowsort
SELECT + ( 14 ) + col1 FROM tab2 cor0
----
31
45
73

query I rowsort
SELECT DISTINCT + col0 * - 20 + - col2 AS col1 FROM tab1 cor0
----
-114
-1337
-1696

query I rowsort
SELECT DISTINCT - + col0 - - ( - col0 ) AS col0 FROM tab0 AS cor0
----
-178
-48
-70

query I rowsort
SELECT col0 * - col2 + col0 FROM tab1 AS cor0
----
-159
-3584
-7600

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1788
SELECT ALL - CAST( NULL AS DECIMAL ) - + col2 / col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1788
SELECT ALL - CAST ( NULL AS REAL ) - + col2 / col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - col2 + ( cor0.col1 ) FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT DISTINCT + + 80 AS col0 FROM tab1 AS cor0
----
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-1791
SELECT DISTINCT 64 DIV - cor0.col2 + + col1 col1 FROM tab1 cor0
----
13
25
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1791
SELECT DISTINCT 64 / - cor0.col2 + + col1 col1 FROM tab1 cor0
----
13
25
9

query I rowsort
SELECT ALL - - cor0.col0 * - col2 + col1 FROM tab1 AS cor0
----
-136
-3638
-7667

onlyif mysql # use DIV operator for integer division
query I rowsort label-1793
SELECT - cor0.col1 + + col1 DIV cor0.col0 FROM tab1 AS cor0
----
-10
-13
-18

skipif mysql # not compatible
query I rowsort label-1793
SELECT - cor0.col1 + + col1 / cor0.col0 FROM tab1 AS cor0
----
-10
-13
-18

query I rowsort
SELECT ALL ( + col1 ) + + col2 AS col0 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT col2 * col0 - + tab2.col0 * col1 FROM tab2
----
-2574
-28
1659

onlyif mysql # use DIV operator for integer division
query I rowsort label-1796
SELECT DISTINCT 6 DIV col2 + - col2 col0 FROM tab1 cor0
----
-54
-57
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1796
SELECT DISTINCT 6 / col2 + - col2 col0 FROM tab1 cor0
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( - 83 AS REAL ) * col0 FROM tab1 AS cor0
----
-249
-5312
-6640

query I rowsort
SELECT - - ( - col1 ) * cor0.col2 AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT ALL col0 * + ( col0 ) FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT ALL + - col1 * 90 + col2 FROM tab0 cor0
----
-7707
-8108
-8729

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1801
SELECT + col0 + - CAST( + col2 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-9
34
7

skipif mysql # not compatible
query I rowsort label-1801
SELECT + col0 + - CAST ( + col2 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-9
34
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-1802
SELECT ALL col0 DIV + ( 80 ) + col0 FROM tab0 AS cor0
----
24
35
90

skipif mysql # not compatible
query I rowsort label-1802
SELECT ALL col0 / + ( 80 ) + col0 FROM tab0 AS cor0
----
24
35
90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1803
SELECT DISTINCT cor0.col2 + + CAST( - 84 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-2
-51
-83

skipif mysql # not compatible
query I rowsort label-1803
SELECT DISTINCT cor0.col2 + + CAST ( - 84 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-2
-51
-83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1804
SELECT DISTINCT col1 + col1 / CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1804
SELECT DISTINCT col1 + col1 / CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query I rowsort
SELECT col2 * + 91 + ( + col0 ) * ( + col2 ) + col0 * 11 AS col0 FROM tab0 AS cor0
----
15739
4059
511

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + ( col1 ) col1 FROM tab0 AS cor0
----
110
132
180

onlyif mysql # use DIV operator for integer division
query I rowsort label-1807
SELECT + col0 DIV - 94 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1807
SELECT + col0 / - 94 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT + - col2 + 67 + - col2 FROM tab0 AS cor0
----
-97
1
65

query I rowsort
SELECT col2 * + 3 AS col2 FROM tab1 cor0
----
162
171
288

onlyif mysql # use DIV operator for integer division
query I rowsort label-1810
SELECT ALL - col2 + - col2 DIV - 96 AS col2 FROM tab0 AS cor0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-1810
SELECT ALL - col2 + - col2 / - 96 AS col2 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT - + col1 * - col2 AS col2 FROM tab1 cor0
----
1248
1404
570

query I rowsort
SELECT DISTINCT cor0.col1 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
86
91
97

query I rowsort
SELECT col2 + col2 * 12 * col2 + - col0 AS col0 FROM tab0 AS cor0
----
-22
13077
80681

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab0 cor0 CROSS JOIN tab1, tab2 AS cor1, tab2 AS cor2
----
3645 values hashing to a05c004695d644bdc7d07542d29e2010

query I rowsort
SELECT + 66 FROM tab0, tab2 AS cor0
----
9 values hashing to 29794915b585eea848ad670075452c88

query I rowsort
SELECT + 69 FROM tab1, tab0 AS cor0
----
9 values hashing to 85d9b90a03b9def161891b13085271f7

query I rowsort
SELECT 64 + + tab1.col0 AS col2 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to bcca0abf572d1e525e516481899aea93

query I rowsort
SELECT DISTINCT - 12 * col2 * col1 FROM tab1
----
-14976
-16848
-6840

query I rowsort
SELECT col2 * + col2 * + ( col1 ) FROM tab2
----
22599
24548
39884

query I rowsort
SELECT 41 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to f6a440b478f0d00f8326a8c51fe094b8

onlyif mysql # use DIV operator for integer division
query I rowsort label-1821
SELECT - + col1 * + col0 + ( - col2 ) DIV cor0.col2 FROM tab0 AS cor0
----
-2065
-3396
-8100

skipif mysql # not compatible
query I rowsort label-1821
SELECT - + col1 * + col0 + ( - col2 ) / cor0.col2 FROM tab0 AS cor0
----
-2065
-3396
-8100

query I rowsort
SELECT DISTINCT - 78 + - col1 FROM tab2 AS cor0
----
-109
-137
-95

onlyif mysql # use DIV operator for integer division
query I rowsort label-1823
SELECT - - col2 * col2 + ( 90 ) DIV col1 FROM tab1 AS cor0
----
2919
3258
9222

skipif mysql # not compatible
query I rowsort label-1823
SELECT - - col2 * col2 + ( 90 ) / col1 FROM tab1 AS cor0
----
2919
3258
9222

query I rowsort
SELECT DISTINCT - col2 * col1 + - col2 FROM tab0 AS cor0
----
-2871
-7544
-98

onlyif mysql # use DIV operator for integer division
query I rowsort label-1825
SELECT ALL - - col2 DIV col1 + - cor0.col0 + 25 AS col0 FROM tab0 AS cor0
----
-10
-64
1

skipif mysql # not compatible
query I rowsort label-1825
SELECT ALL - - col2 / col1 + - cor0.col0 + 25 AS col0 FROM tab0 AS cor0
----
-10
-64
1

query I rowsort
SELECT ALL + - col1 + - col1 * - ( col0 ) FROM tab2 AS cor0
----
1326
186
4543

onlyif mysql # use DIV operator for integer division
query I rowsort label-1827
SELECT DISTINCT + + 54 + col0 * + 16 + col2 DIV - col2 FROM tab0 cor0
----
1477
437
613

skipif mysql # not compatible
query I rowsort label-1827
SELECT DISTINCT + + 54 + col0 * + 16 + col2 / - col2 FROM tab0 cor0
----
1477
437
613

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 72 col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49

query I rowsort
SELECT + cor0.col0 + - col1 AS col1 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT col0 * col0 + + 58 AS col2 FROM tab1 cor0
----
4154
6458
67

query I rowsort
SELECT 39 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf

query I rowsort
SELECT + cor0.col1 * - 37 FROM tab0, tab2 AS cor0
----
9 values hashing to 4f3c6a9d7dceed416fc2f007769035c0

query I rowsort
SELECT - - col0 * - col2 * + col1 + col2 AS col1 FROM tab2 AS cor0
----
-119626
-50996
-5832

query I rowsort
SELECT - col0 + col0 AS col1 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT - + cor0.col1 * + ( col2 ) + col0 FROM tab2 cor0
----
-1456
-567
-830

query I rowsort
SELECT ALL col2 + col2 * + col2 AS col0 FROM tab2 AS cor0
----
1482
702
756

query I rowsort
SELECT col0 * col0 + + col0 * col2 FROM tab1 cor0
----
14080
171
7744

query I rowsort
SELECT DISTINCT - cor0.col2 - + col1 AS col2 FROM tab2 AS cor0
----
-55
-58
-85

query I rowsort
SELECT + ( 58 ) + cor0.col2 AS col2 FROM tab0 AS cor0
----
140
59
91

onlyif mysql # use DIV operator for integer division
query I rowsort label-1840
SELECT - - cor0.col1 DIV ( col0 ) FROM tab2 AS cor0
----
0
0
4

skipif mysql # not compatible
query I rowsort label-1840
SELECT - - cor0.col1 / ( col0 ) FROM tab2 AS cor0
----
0
0
4

query I rowsort
SELECT + - cor0.col2 * + cor0.col1 AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 - + col0 col1 FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT DISTINCT - col1 * tab2.col2 AS col0 FROM tab2
----
-1534
-646
-837

query I rowsort
SELECT DISTINCT ( - tab0.col1 + + col2 ) AS col0 FROM tab0
----
-53
-9
-96

query I rowsort
SELECT + 54 * - tab1.col2 + col1 AS col1 FROM tab1
----
-2890
-3068
-5171

query I rowsort
SELECT ALL + - cor1.col1 * + 47 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ed8508692c9cb3f608b21123213e3a03

query I rowsort
SELECT + col1 * + 69 + cor0.col2 FROM tab1 AS cor0
----
1848
747
993

query I rowsort
SELECT ALL - 31 * 94 FROM tab2 AS cor0
----
-2914
-2914
-2914

onlyif mysql # use DIV operator for integer division
query I rowsort label-1849
SELECT ( col2 ) DIV - 36 AS col0 FROM tab0 AS cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-1849
SELECT ( col2 ) / - 36 AS col0 FROM tab0 AS cor0
----
-2
0
0

query I rowsort
SELECT 61 + col2 * cor0.col0 AS col0 FROM tab0 AS cor0
----
7359
853
96

query I rowsort
SELECT DISTINCT 0 * col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL + 62 * cor0.col1 + 44 FROM tab0 AS cor0
----
5376
5686
6058

query I rowsort
SELECT DISTINCT - 76 AS col1 FROM tab2, tab2 AS cor0
----
-76

query I rowsort
SELECT ALL + - col2 + - col2 + col0 FROM tab2 AS cor0
----
-47
26
3

query I rowsort
SELECT ALL - 31 * cor0.col0 FROM tab0 AS cor0
----
-1085
-2759
-744

query I rowsort
SELECT DISTINCT - - col1 * col0 * cor0.col0 + col0 AS col0 FROM tab1 AS cor0
----
237
41024
83280

query I rowsort
SELECT col0 + col0 * 89 FROM tab0 AS cor0
----
2160
3150
8010

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1858
SELECT col1 * CAST( col1 AS SIGNED ) - col2 * col1 FROM tab2
----
-357
124
1947

skipif mysql # not compatible
query I rowsort label-1858
SELECT col1 * CAST ( col1 AS INTEGER ) - col2 * col1 FROM tab2
----
-357
124
1947

query I rowsort
SELECT ALL ( - 80 ) AS col1 FROM tab0, tab2 cor0
----
9 values hashing to 4dde3bd5652d30396b9cadd0e2cfb680

onlyif mysql # use DIV operator for integer division
query I rowsort label-1860
SELECT DISTINCT col1 * + ( 86 ) + - tab0.col1 DIV - 75 AS col1 FROM tab0
----
7397
7827
8343

skipif mysql # not compatible
query I rowsort label-1860
SELECT DISTINCT col1 * + ( 86 ) + - tab0.col1 / - 75 AS col1 FROM tab0
----
7397
7827
8343

query I rowsort
SELECT ALL - col0 + - 41 + col1 FROM tab1
----
-108
-18
-95

query I rowsort
SELECT DISTINCT + col2 + 82 FROM tab0 AS cor0
----
115
164
83

query I rowsort
SELECT - cor0.col1 * col1 - - col1 AS col2 FROM tab1 cor0
----
-156
-650
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 62 + + 40 + + col0 * col0 col1 FROM tab2 AS cor0
----
27
6062
6219

query I rowsort
SELECT DISTINCT 86 + col2 * - col0 * col2 FROM tab0 AS cor0
----
-26050
-598350
51

query I rowsort
SELECT DISTINCT + + col1 * col0 + + col0 * cor0.col0 AS col2 FROM tab0 AS cor0
----
16020
2640
4620

query I rowsort
SELECT ALL + ( + col1 ) * + col2 * + ( + col0 + col1 ) AS col2 FROM tab2 AS cor0
----
210158
31806
62016

onlyif mysql # use DIV operator for integer division
query I rowsort label-1868
SELECT ALL - + col1 DIV col2 AS col2 FROM tab0 AS cor0
----
-1
-2
-97

skipif mysql # not compatible
query I rowsort label-1868
SELECT ALL - + col1 / col2 AS col2 FROM tab0 AS cor0
----
-1
-2
-97

query I rowsort
SELECT + - ( col1 ) * col1 + 37 FROM tab0 AS cor0
----
-7359
-8244
-9372

query I rowsort
SELECT ALL + col1 * + 24 AS col2 FROM tab0 AS cor0
----
2064
2184
2328

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1871
SELECT - + CAST( NULL AS SIGNED ) * - cor0.col1 * col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1871
SELECT - + CAST ( NULL AS INTEGER ) * - cor0.col1 * col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT tab1.col1 * 38 + col2 AS col0 FROM tab1
----
1042
437
590

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1873
SELECT DISTINCT + col1 + + CAST( + col0 AS SIGNED ) FROM tab1
----
29
74
93

skipif mysql # not compatible
query I rowsort label-1873
SELECT DISTINCT + col1 + + CAST ( + col0 AS INTEGER ) FROM tab1
----
29
74
93

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1874
SELECT tab2.col2 + CAST( 23 AS SIGNED ) AS col0 FROM tab2
----
49
50
61

skipif mysql # not compatible
query I rowsort label-1874
SELECT tab2.col2 + CAST ( 23 AS INTEGER ) AS col0 FROM tab2
----
49
50
61

query I rowsort
SELECT col1 * ( 10 + col0 ) FROM tab1
----
1170
338
740

onlyif mysql # use DIV operator for integer division
query I rowsort label-1876
SELECT col1 + col0 DIV - col2 FROM tab1 AS cor0
----
13
26
9

skipif mysql # not compatible
query I rowsort label-1876
SELECT col1 + col0 / - col2 FROM tab1 AS cor0
----
13
26
9

query I rowsort
SELECT ALL + 32 * - 60 * col2 FROM tab2 AS cor0
----
-49920
-51840
-72960

query I rowsort
SELECT + - 17 + col2 AS col2 FROM tab2 cor0
----
10
21
9

query I rowsort
SELECT DISTINCT + 68 + + col2 FROM tab1 AS cor0
----
122
125
164

query I rowsort
SELECT - 15 + col2 + cor0.col2 FROM tab1 AS cor0
----
177
93
99

query I rowsort
SELECT ALL - + 17 FROM tab2 AS cor0
----
-17
-17
-17

query I rowsort
SELECT DISTINCT - col2 + - col0 AS col2 FROM tab1 AS cor0
----
-121
-176
-57

query I rowsort
SELECT - cor0.col2 * 98 + col0 FROM tab2 AS cor0
----
-2470
-2639
-3645

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1884
SELECT tab2.col1 / CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1884
SELECT tab2.col1 / CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 * - 24 + col1 AS col1 FROM tab1 cor0
----
-230
-299
-598

query I rowsort
SELECT col1 + - col2 + - col0 FROM tab2 AS cor0
----
-100
-3
-45

query I rowsort
SELECT - col1 + + 35 AS col1 FROM tab1 cor0
----
22
25
9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1888
SELECT ALL + CAST( col1 AS SIGNED ) + - col1 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1888
SELECT ALL + CAST ( col1 AS INTEGER ) + - col1 AS col0 FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + col2 col0 FROM tab0
----
119
173
98

query I rowsort
SELECT + col1 + - cor0.col0 * col2 FROM tab2 AS cor0
----
-158
-1969
-2985

query I rowsort
SELECT - 25 * - col1 + + 55 AS col1 FROM tab1 AS cor0
----
305
380
705

onlyif mysql # use DIV operator for integer division
query I rowsort label-1892
SELECT + - col0 * col1 + 87 * ( col0 ) + + cor0.col0 DIV col0 FROM tab2 AS cor0
----
2185
393
5531

skipif mysql # not compatible
query I rowsort label-1892
SELECT + - col0 * col1 + 87 * ( col0 ) + + cor0.col0 / col0 FROM tab2 AS cor0
----
2185
393
5531

query I rowsort
SELECT ALL 66 * - col1 + - col2 AS col2 FROM tab2
----
-1160
-2073
-3920

query I rowsort
SELECT ALL cor0.col2 + - col2 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + col0 * + ( col1 * col1 ) AS col0 FROM tab0 AS cor0
----
177504
329315
737009

onlyif mysql # use DIV operator for integer division
query I rowsort label-1896
SELECT ALL - col1 DIV col0 + + col0 FROM tab0 AS cor0
----
21
33
88

skipif mysql # not compatible
query I rowsort label-1896
SELECT ALL - col1 / col0 + + col0 FROM tab0 AS cor0
----
21
33
88

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1897
SELECT DISTINCT col0 * + CAST( NULL AS SIGNED ) + - 46 * - cor0.col1 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1897
SELECT DISTINCT col0 * + CAST ( NULL AS INTEGER ) + - 46 * - cor0.col1 AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + - col2 + + cor0.col0 FROM tab0 cor0
----
-9
34
7

query I rowsort
SELECT DISTINCT - + col0 * - col1 + col1 FROM tab1 cor0
----
104
1053
650

query I rowsort
SELECT ALL - col0 * - ( - col0 ) FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT DISTINCT col0 + - 59 AS col0 FROM tab0 AS cor0
----
-24
-35
30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 32 col2 FROM tab0
----
-32
-32
-32

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1903
SELECT ALL + ( - col1 + + CAST( 29 AS SIGNED ) ) * + col0 FROM tab0
----
-1368
-2380
-5518

skipif mysql # not compatible
query I rowsort label-1903
SELECT ALL + ( - col1 + + CAST ( 29 AS INTEGER ) ) * + col0 FROM tab0
----
-1368
-2380
-5518

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1904
SELECT col0 * - CAST( NULL AS SIGNED ) + col1 * + col0 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1904
SELECT col0 * - CAST ( NULL AS INTEGER ) + col1 * + col0 AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 * + col1 + - col0 FROM tab0
----
2814
62
7373

query I rowsort
SELECT ALL - col2 + 76 FROM tab1
----
-20
19
22

query I rowsort
SELECT ALL - col2 * ( col1 ) + - col0 FROM tab1 AS cor0
----
-1328
-1407
-634

onlyif mysql # use DIV operator for integer division
query I rowsort label-1908
SELECT - col0 * col0 DIV col0 FROM tab0 AS cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-1908
SELECT - col0 * col0 / col0 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT DISTINCT + - col2 * + 45 AS col1 FROM tab0 AS cor0
----
-1485
-3690
-45

query I rowsort
SELECT - - col1 * col1 + cor0.col0 AS col2 FROM tab1 cor0
----
164
249
679

query I rowsort
SELECT ALL - - col0 + + 5 FROM tab0 AS cor0
----
29
40
94

query I rowsort
SELECT - col0 * - 33 + col0 * col2 FROM tab1 AS cor0
----
10320
261
5760

query I rowsort
SELECT DISTINCT + - col0 + 67 FROM tab1 AS cor0
----
-13
3
64

query I rowsort
SELECT + col2 + + col0 * 65 + col1 FROM tab0 AS cor0
----
1679
2373
5958

query I rowsort
SELECT ALL cor0.col2 * + 88 FROM tab2 AS cor0
----
2288
2376
3344

query I rowsort
SELECT DISTINCT + col0 + - col2 * - col0 AS col0 FROM tab0 AS cor0
----
70
7387
816

query I rowsort
SELECT - col1 * - cor0.col0 + ( - col2 ) * + col1 AS col2 FROM tab2 AS cor0
----
-620
3068
697

onlyif mysql # use DIV operator for integer division
query I rowsort label-1918
SELECT ALL + col0 DIV col2 + + col1 AS col1 FROM tab0 AS cor0
----
132
86
92

skipif mysql # not compatible
query I rowsort label-1918
SELECT ALL + col0 / col2 + + col1 AS col1 FROM tab0 AS cor0
----
132
86
92

query I rowsort
SELECT + col1 + + 22 AS col1 FROM tab2 AS cor0
----
39
53
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 9 * - tab1.col1 col0 FROM tab1
----
-117
-234
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * - col1 + + 60 col2 FROM tab2 AS cor0
----
1403
277
4662

skipif mysql # not compatible
query I rowsort
SELECT 66 / col2 + CAST ( col0 + col1 AS REAL ) AS col0 FROM tab1 cor0
----
30
75
93

query I rowsort
SELECT 65 * cor0.col0 - 20 AS col0 FROM tab0 cor0
----
1540
2255
5765

query I rowsort
SELECT ALL - cor0.col1 * - col1 + col2 AS col1 FROM tab0 AS cor0
----
7429
8363
9410

query I rowsort
SELECT DISTINCT + cor0.col0 AS col0 FROM tab1, tab2 cor0, tab2 AS cor1
----
7
78
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col0 col1 FROM tab0, tab1 AS cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870

query I rowsort
SELECT + tab0.col2 * tab0.col2 AS col0 FROM tab0
----
1
1089
6724

query I rowsort
SELECT cor0.col2 * col2 + + 34 FROM tab2 AS cor0
----
1478
710
763

query I rowsort
SELECT - col2 + - 73 AS col0 FROM tab0 cor0
----
-106
-155
-74

query I rowsort
SELECT DISTINCT col1 * - col1 - + col2 FROM tab2
----
-327
-3507
-988

query I rowsort
SELECT col0 + - tab1.col0 + col0 AS col0 FROM tab1
----
3
64
80

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) <= + col1 / - col1
----

query I rowsort
SELECT ALL col1 + col0 * col1 FROM tab0
----
2150
3492
8190

query I rowsort
SELECT col2 + + col1 + - tab2.col2 / col0 FROM tab2 WHERE NOT - col1 * col1 NOT BETWEEN col0 + col1 AND NULL
----

query I rowsort
SELECT - col0 + col0 * col1 FROM tab2 WHERE NULL BETWEEN NULL AND col1 * tab2.col1
----

query I rowsort
SELECT ALL tab1.col1 FROM tab1 WHERE - col1 BETWEEN ( + col0 ) AND ( + col1 + col1 + - col2 * col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col0 + + col0 <= ( - col1 + - col1 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL IN ( col2 / + col2 + col2 + - col0 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 = - col0 * - col1 + - col0
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

query I rowsort
SELECT DISTINCT + col0 + - col2 * + col1 AS col2 FROM tab0
----
-2814
-62
-7373

query I rowsort
SELECT ALL col0 * col2 * - col0 FROM tab1
----
-233472
-486
-614400

query III rowsort
SELECT * FROM tab1 WHERE + col1 * + col1 * + col2 > col2
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

query I rowsort
SELECT col2 + - tab2.col0 * col0 AS col2 FROM tab2
----
-22
-6058
-6203

query I rowsort
SELECT + + col2 * + col0 * + col1 FROM tab2 AS cor0
----
119652
51034
5859

query I rowsort
SELECT ALL + + col0 + cor0.col2 * + col1 AS col2 FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT + ( + col0 ) * + col1 FROM tab1 cor0
----
1040
640
78

query I rowsort
SELECT + 2 AS col2 FROM tab1
----
2
2
2

query I rowsort
SELECT ALL - 53 * - col2 + - col0 FROM tab1 AS cor0
----
2859
2957
5008

query I rowsort
SELECT cor0.col0 * col2 + 25 - col2 * 11 AS col1 FROM tab0 cor0
----
454
49
6421

query I rowsort
SELECT DISTINCT - col0 + - 26 FROM tab1 AS cor0
----
-106
-29
-90

query I rowsort
SELECT - col0 + - 62 * 23 AS col2 FROM tab2 AS cor0
----
-1433
-1504
-1505

onlyif mysql # use DIV operator for integer division
query I rowsort label-1952
SELECT - col0 * col1 DIV - 5 col2 FROM tab0
----
1619
412
679

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1952
SELECT - col0 * col1 / - 5 col2 FROM tab0
----
1619
412
679

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 63 col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5a7845ef6e239561caf9a17a28e274b5

query I rowsort
SELECT col0 * - col0 * + 79 FROM tab2 AS cor0
----
-3871
-480636
-493039

query I rowsort
SELECT ALL - 19 FROM tab0, tab2 AS cor0
----
9 values hashing to 339c9d62143bf2f7566b89a1b56eeeb4

query I rowsort
SELECT - 21 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 631fbd1fd929405aba54a22c2a06c757

query I rowsort
SELECT tab0.col1 AS col1 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

onlyif mysql # use DIV operator for integer division
query I rowsort label-1958
SELECT col2 DIV - 50 AS col2 FROM tab1 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1958
SELECT col2 / - 50 AS col2 FROM tab1 cor0
----
-1
-1
-1

query I rowsort
SELECT + + ( + col1 ) * - col1 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT + 36 * - col2 AS col0 FROM tab0 AS cor0
----
-1188
-2952
-36

query I rowsort
SELECT - 31 AS col2 FROM tab0 AS cor0
----
-31
-31
-31

query I rowsort
SELECT DISTINCT + ( cor1.col0 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
24
35
89

query I rowsort
SELECT ALL - 22 AS col0 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 647e567609c5ada1d3454d2102819bfe

query I rowsort
SELECT ALL - cor0.col0 - 63 FROM tab2 cor0
----
-141
-142
-70

skipif mysql # not compatible
query I rowsort
SELECT - tab2.col1 + + CAST ( col1 AS REAL ) * col0 FROM tab2
----
1326
186
4543

query I rowsort
SELECT - col0 * - col0 + - 30 * cor0.col2 AS col0 FROM tab0 AS cor0
----
-414
1195
5461

query I rowsort
SELECT DISTINCT cor0.col1 * + 74 + ( col1 ) FROM tab1 AS cor0
----
1950
750
975

query I rowsort
SELECT DISTINCT + col0 * + 37 + + cor0.col2 FROM tab0 AS cor0
----
1296
3375
921

query I rowsort
SELECT ALL col0 + 34 AS col2 FROM tab0 AS cor0
----
123
58
69

onlyif mysql # use DIV operator for integer division
query I rowsort label-1970
SELECT - col1 + CAST( + col0 + + cor0.col0 AS SIGNED ) DIV ( - col0 ) FROM tab2 AS cor0
----
-19
-33
-61

skipif mysql # not compatible
query I rowsort label-1970
SELECT - col1 + CAST ( + col0 + + cor0.col0 AS INTEGER ) / ( - col0 ) FROM tab2 AS cor0
----
-19
-33
-61

query I rowsort
SELECT DISTINCT col0 + 12 * col2 FROM tab1 AS cor0
----
1232
651
748

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1972
SELECT ALL - cor0.col0 * CAST( 5 AS SIGNED ) FROM tab2 AS cor0
----
-35
-390
-395

skipif mysql # not compatible
query I rowsort label-1972
SELECT ALL - cor0.col0 * CAST ( 5 AS INTEGER ) FROM tab2 AS cor0
----
-35
-390
-395

query I rowsort
SELECT - 71 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to e72f95c346714d3065a96d67a6fd5062

onlyif mysql # use DIV operator for integer division
query I rowsort label-1974
SELECT DISTINCT - 28 DIV + tab2.col0 AS col0 FROM tab2, tab0 AS cor0
----
-4
0

skipif mysql # not compatible
query I rowsort label-1974
SELECT DISTINCT - 28 / + tab2.col0 AS col0 FROM tab2, tab0 AS cor0
----
-4
0

query I rowsort
SELECT ALL - 31 AS col0 FROM tab1, tab1 cor0
----
9 values hashing to f4b05206ee2fc0cf8007d9c3514885fa

query I rowsort
SELECT ( 3 ) FROM tab2 AS cor0
----
3
3
3

query I rowsort
SELECT - 64 * tab2.col1 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 7060e81e9722c5b16ce7c41b2300d337

query I rowsort
SELECT - col0 * col1 + col1 AS col2 FROM tab0 AS cor0
----
-1978
-3298
-8008

query I rowsort
SELECT ALL cor0.col0 + col1 + - 27 AS col1 FROM tab2 AS cor0
----
11
110
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col0 + + col1 col0 FROM tab0 AS cor0
----
110
132
180

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 73 + col2 col0 FROM tab1 cor0
----
127
130
169

query I rowsort
SELECT DISTINCT - - 88 FROM tab0 AS cor0
----
88

query I rowsort
SELECT - - ( col0 ) * - 51 AS col0 FROM tab0 AS cor0
----
-1224
-1785
-4539

query I rowsort
SELECT + col1 - + col2 * col0 * col0 AS col0 FROM tab2 AS cor0
----
-1292
-158125
-237141

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 19 - col1 col2 FROM tab0 AS cor0
----
-67
-72
-78

query I rowsort
SELECT ALL - 27 + - col2 FROM tab2 AS cor0
----
-53
-54
-65

query I rowsort
SELECT - 33 * + col0 AS col1 FROM tab1 AS cor0
----
-2112
-2640
-99

query I rowsort
SELECT DISTINCT + 22 AS col1 FROM tab0 AS cor0
----
22

query I rowsort
SELECT ALL ( - col1 ) * cor0.col2 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT ALL + 14 * + col1 + ( 73 ) * - col2 + + ( - col2 ) FROM tab1 AS cor0
----
-3632
-4078
-6922

query I rowsort
SELECT + + cor0.col1 * col1 * + col2 - col0 * - col2 FROM tab0 AS cor0
----
244860
686340
9444

query I rowsort
SELECT tab2.col1 + - col1 * col0 * tab2.col1 + col2 AS col2 FROM tab2
----
-22776
-271433
-6669

query I rowsort
SELECT DISTINCT + 76 AS col2 FROM tab1, tab2 AS cor0
----
76

query I rowsort
SELECT + col2 * + col0 + + tab1.col0 + - col2 FROM tab1
----
111
3655
7664

query I rowsort
SELECT ALL tab1.col1 AS col1 FROM tab1, tab2 cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

query I rowsort
SELECT DISTINCT - - col2 + col0 * ( - col2 * col1 ) AS col2 FROM tab1 AS cor0
----
-36423
-4158
-99744

query I rowsort
SELECT DISTINCT 57 * col2 AS col1 FROM tab0 AS cor0
----
1881
4674
57

query I rowsort
SELECT ALL + 63 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 38764a6e696d1a6b5095e29ef84959c0

query I rowsort
SELECT + - col0 * col1 + 29 AS col1 FROM tab0 AS cor0
----
-2035
-3366
-8070

query I rowsort
SELECT ALL col1 * + 40 + col2 FROM tab2 AS cor0
----
1267
2386
718

onlyif mysql # use DIV operator for integer division
query I rowsort label-2001
SELECT - col2 DIV + 28 + - cor0.col1 FROM tab1 AS cor0
----
-12
-16
-27

skipif mysql # not compatible
query I rowsort label-2001
SELECT - col2 / + 28 + - cor0.col1 FROM tab1 AS cor0
----
-12
-16
-27

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2002
SELECT - col2 + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2002
SELECT - col2 + CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2003
SELECT col2 + 78 DIV + col0 AS col2 FROM tab0 cor0
----
3
36
82

skipif mysql # not compatible
query I rowsort label-2003
SELECT col2 + 78 / + col0 AS col2 FROM tab0 cor0
----
3
36
82

query I rowsort
SELECT ALL - col2 + + 41 FROM tab0 AS cor0
----
-41
40
8

query I rowsort
SELECT DISTINCT col1 * ( col1 ) FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT + col2 * 56 + col2 FROM tab2 AS cor0
----
1482
1539
2166

query I rowsort
SELECT + - col1 * ( col0 ) FROM tab0 AS cor0
----
-2064
-3395
-8099

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2008
SELECT DISTINCT tab0.col2 * - col1 * CAST( NULL AS DECIMAL ) + col0 * - col1 AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2008
SELECT DISTINCT tab0.col2 * - col1 * CAST ( NULL AS REAL ) + col0 * - col1 AS col0 FROM tab0
----
NULL

query I rowsort
SELECT 73 + col1 AS col2 FROM tab2
----
104
132
90

query I rowsort
SELECT + 90 AS col1 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 5d25a546acf3ae171e731e50adc0112e

onlyif mysql # use DIV operator for integer division
query I rowsort label-2011
SELECT - col2 DIV - tab2.col1 AS col2 FROM tab2
----
0
0
2

skipif mysql # not compatible
query I rowsort label-2011
SELECT - col2 / - tab2.col1 AS col2 FROM tab2
----
0
0
2

query I rowsort
SELECT ALL + + 49 * - cor0.col2 * col1 AS col1 FROM tab1 AS cor0
----
-27930
-61152
-68796

query I rowsort
SELECT DISTINCT - ( + col1 ) * + col2 AS col0 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT - + 62 AS col1 FROM tab0 cor0
----
-62

query I rowsort
SELECT DISTINCT + 67 * col1 AS col2 FROM tab2 AS cor0
----
1139
2077
3953

query I rowsort
SELECT + ( col0 ) * + col0 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT ALL + - cor0.col1 + - col1 FROM tab1 AS cor0
----
-20
-26
-52

query I rowsort
SELECT DISTINCT - col2 * 94 FROM tab2 AS cor0
----
-2444
-2538
-3572

query I rowsort
SELECT ALL + - 49 * + 37 + col2 FROM tab1 AS cor0
----
-1717
-1756
-1759

query I rowsort
SELECT col2 + col1 * + col2 FROM tab0
----
2871
7544
98

query I rowsort
SELECT cor0.col1 * - 89 FROM tab1 cor0
----
-1157
-2314
-890

query I rowsort
SELECT DISTINCT - 64 + + col2 * + col2 * 25 FROM tab0 AS cor0
----
-39
168036
27161

query I rowsort
SELECT DISTINCT + 66 * - col1 + cor0.col1 FROM tab1 AS cor0
----
-1690
-650
-845

onlyif mysql # use DIV operator for integer division
query I rowsort label-2024
SELECT ALL col2 DIV 70 AS col2 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2024
SELECT ALL col2 / 70 AS col2 FROM tab1
----
0
0
1

query I rowsort
SELECT DISTINCT 44 * - 33 FROM tab2
----
-1452

onlyif mysql # use DIV operator for integer division
query I rowsort label-2026
SELECT + 59 + - 86 DIV - col2 FROM tab1
----
59
60
60

skipif mysql # not compatible
query I rowsort label-2026
SELECT + 59 + - 86 / - col2 FROM tab1
----
59
60
60

query I rowsort
SELECT col2 * cor0.col0 * col0 FROM tab0 AS cor0
----
1225
19008
649522

query I rowsort
SELECT DISTINCT - ( 37 ) * col0 AS col2 FROM tab1
----
-111
-2368
-2960

onlyif mysql # use DIV operator for integer division
query I rowsort label-2029
SELECT - - 92 * col2 DIV cor0.col1 FROM tab1 AS cor0
----
191
524
679

skipif mysql # not compatible
query I rowsort label-2029
SELECT - - 92 * col2 / cor0.col1 FROM tab1 AS cor0
----
191
524
679

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 95 col1 FROM tab0 AS cor0
----
95
95
95

onlyif mysql # use DIV operator for integer division
query I rowsort label-2031
SELECT DISTINCT + 4 DIV - 82 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2031
SELECT DISTINCT + 4 / - 82 FROM tab0
----
0

query I rowsort
SELECT col0 + 76 * col0 AS col1 FROM tab0
----
1848
2695
6853

query I rowsort
SELECT col1 * - col1 * - 31 + - col2 FROM tab2
----
107885
29764
8921

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0, tab1 cor1, tab0, tab2 cor2
----
3645 values hashing to d2c0c94b38e721d8cf9f7df226475a2f

query I rowsort
SELECT + col1 * 85 FROM tab1 cor0
----
1105
2210
850

query I rowsort
SELECT DISTINCT col1 * - ( - col0 ) * - cor0.col0 AS col2 FROM tab0 AS cor0
----
-118825
-49536
-720811

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab1.col2 col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

query I rowsort
SELECT + 34 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 36 * 60 col0 FROM tab1 AS cor0
----
2160
2160
2160

query I rowsort
SELECT - - 17 * - col2 * col2 AS col0 FROM tab0 AS cor0
----
-114308
-17
-18513

query I rowsort
SELECT DISTINCT - 80 * ( col2 ) + 61 AS col0 FROM tab1 AS cor0
----
-4259
-4499
-7619

query I rowsort
SELECT DISTINCT + 37 + cor0.col2 FROM tab2 AS cor0
----
63
64
75

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2043
SELECT CAST( - 80 AS SIGNED ) - col1 FROM tab0 AS cor0
----
-166
-171
-177

skipif mysql # not compatible
query I rowsort label-2043
SELECT CAST ( - 80 AS INTEGER ) - col1 FROM tab0 AS cor0
----
-166
-171
-177

query I rowsort
SELECT 5 * + col0 + col0 FROM tab0 cor0
----
144
210
534

query I rowsort
SELECT - ( + 86 ) FROM tab0 AS cor0
----
-86
-86
-86

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2046
SELECT CAST( + col0 AS SIGNED ) * col1 + + 36 FROM tab2 AS cor0
----
1379
253
4638

skipif mysql # not compatible
query I rowsort label-2046
SELECT CAST ( + col0 AS INTEGER ) * col1 + + 36 FROM tab2 AS cor0
----
1379
253
4638

onlyif mysql # use DIV operator for integer division
query I rowsort label-2047
SELECT ALL - + cor0.col0 DIV - col1 AS col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2047
SELECT ALL - + cor0.col0 / - col1 AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + 53 * + col0 AS col1 FROM tab1 AS cor0
----
159
3392
4240

onlyif mysql # use DIV operator for integer division
query I rowsort label-2049
SELECT ALL 83 * col2 + + ( - 17 ) DIV col0 - - cor0.col1 * + col2 AS col1 FROM tab2 AS cor0
----
3076
3692
3800

skipif mysql # not compatible
query I rowsort label-2049
SELECT ALL 83 * col2 + + ( - 17 ) / col0 - - cor0.col1 * + col2 AS col1 FROM tab2 AS cor0
----
3076
3692
3800

query I rowsort
SELECT ALL - - col0 + cor0.col2 AS col1 FROM tab2 cor0
----
104
117
34

query I rowsort
SELECT col1 + + col2 * - col2 FROM tab2 AS cor0
----
-1427
-617
-698

query I rowsort
SELECT DISTINCT + 7 AS col1 FROM tab1 AS cor0
----
7

query I rowsort
SELECT DISTINCT 79 AS col0 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
79

skipif mysql # not compatible
query I rowsort
SELECT - - col2 * CAST ( + ( col2 ) AS REAL ) FROM tab0 cor0
----
1
1089
6724

query I rowsort
SELECT - 27 AS col1 FROM tab0, tab2 AS cor0, tab0 AS cor1, tab2, tab0 AS cor2
----
243 values hashing to b12a0ecf0f54932a5c657f851b1962ae

query I rowsort
SELECT - - col1 * 13 FROM tab1 AS cor0
----
130
169
338

query I rowsort
SELECT col0 * + ( col0 ) * + col2 + col2 AS col2 FROM tab2 AS cor0
----
1350
158210
237196

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2058
SELECT + col1 * + CAST( NULL AS SIGNED ) * col1 + - col2 * + CAST( col0 AS SIGNED ) * col0 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2058
SELECT + col1 * + CAST ( NULL AS INTEGER ) * col1 + - col2 * + CAST ( col0 AS INTEGER ) * col0 AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 * - 23 + + col0 + col1 AS col1 FROM tab1 AS cor0
----
1271
1385
2301

query I rowsort
SELECT col2 * col0 * col2 AS col0 FROM tab2 AS cor0
----
114076
5103
52728

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 + 33 col2 FROM tab0 AS cor0
----
-53
-58
-64

query I rowsort
SELECT - + col0 + - ( - col2 * col0 ) AS col1 FROM tab2 AS cor0
----
182
1950
2923

query I rowsort
SELECT - - col1 * col1 AS col1 FROM tab1 cor0
----
100
169
676

query I rowsort
SELECT + 65 + - col0 * col1 * + cor0.col0 FROM tab2 AS cor0
----
-106032
-1454
-358891

query I rowsort
SELECT ALL - + col0 * + 91 + col1 FROM tab1 AS cor0
----
-247
-5814
-7267

query I rowsort
SELECT ALL tab0.col1 * 70 FROM tab0
----
6020
6370
6790

onlyif mysql # use DIV operator for integer division
query I rowsort label-2067
SELECT DISTINCT 39 DIV 91 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2067
SELECT DISTINCT 39 / 91 FROM tab1 AS cor0
----
0

query I rowsort
SELECT 35 * ( col0 * + col0 ) AS col1 FROM tab2 AS cor0
----
1715
212940
218435

query I rowsort
SELECT cor0.col1 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1, tab0 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT ALL col2 * 1 AS col2 FROM tab2
----
26
27
38

query I rowsort
SELECT - cor0.col0 * - col0 AS col1 FROM tab1 AS cor0
----
4096
6400
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-2072
SELECT - + 4 - col2 DIV col1 AS col0 FROM tab1 AS cor0
----
-11
-6
-9

skipif mysql # not compatible
query I rowsort label-2072
SELECT - + 4 - col2 / col1 AS col0 FROM tab1 AS cor0
----
-11
-6
-9

query I rowsort
SELECT col0 + - col1 + col1 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT 98 + - col2 FROM tab0 AS cor0
----
16
65
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-2075
SELECT col1 * - col2 - col0 DIV 38 FROM tab1 AS cor0
----
-1250
-1404
-571

skipif mysql # not compatible
query I rowsort label-2075
SELECT col1 * - col2 - col0 / 38 FROM tab1 AS cor0
----
-1250
-1404
-571

query I rowsort
SELECT - ( tab1.col1 ) FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6

query I rowsort
SELECT + col1 + col0 * ( + col1 ) + + col0 AS col1 FROM tab2 AS cor0
----
1439
255
4739

onlyif mysql # use DIV operator for integer division
query I rowsort label-2078
SELECT + col1 DIV - col1 - 48 AS col1 FROM tab1
----
-49
-49
-49

skipif mysql # not compatible
query I rowsort label-2078
SELECT + col1 / - col1 - 48 AS col1 FROM tab1
----
-49
-49
-49

onlyif mysql # use DIV operator for integer division
query I rowsort label-2079
SELECT - 64 DIV + 98 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2079
SELECT - 64 / + 98 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - col1 + col2 * col0 + - ( col2 ) FROM tab0 cor0
----
-63
673
7125

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2081
SELECT DISTINCT - CAST( NULL AS SIGNED ) col2 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2081
SELECT DISTINCT - CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + col1 + - 9 AS col0 FROM tab2 AS cor0
----
22
50
8

query I rowsort
SELECT DISTINCT - col2 + - 21 FROM tab2 AS cor0
----
-47
-48
-59

query I rowsort
SELECT col0 - + col2 AS col2 FROM tab0 cor0
----
-9
34
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-2085
SELECT ALL + 17 + col0 * col2 DIV col0 col0 FROM tab2 AS cor0
----
43
44
55

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2085
SELECT ALL + 17 + col0 * col2 / col0 col0 FROM tab2 AS cor0
----
43
44
55

query I rowsort
SELECT ALL + 96 + - col0 FROM tab0 AS cor0
----
61
7
72

query I rowsort
SELECT ALL - + ( + col1 ) FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT + col2 + - 88 * - col0 FROM tab0 AS cor0
----
2145
3081
7914

query I rowsort
SELECT DISTINCT + 70 + + col2 FROM tab2 cor0
----
108
96
97

query I rowsort
SELECT 67 * - 94 FROM tab0 AS cor0
----
-6298
-6298
-6298

query I rowsort
SELECT + cor0.col1 * - col2 + col1 * cor0.col1 FROM tab1 cor0
----
-1079
-470
-728

query I rowsort
SELECT ALL - + ( - col1 ) * col0 AS col2 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT 92 + - col0 FROM tab1 cor0
----
12
28
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-2094
SELECT DISTINCT col2 DIV + cor0.col2 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2094
SELECT DISTINCT col2 / + cor0.col2 FROM tab0 AS cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 + col0 col0 FROM tab2 AS cor0
----
14
156
158

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + col0 * 6 col0 FROM tab0 AS cor0
----
120
175
445

query I rowsort
SELECT DISTINCT col2 * col1 + col2 AS col1 FROM tab1
----
1344
1458
627

query I rowsort
SELECT col1 * 89 AS col1 FROM tab2
----
1513
2759
5251

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 56 * - 24 col0 FROM tab1
----
1344
1344
1344

query I rowsort
SELECT ALL - cor1.col2 * 94 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to fac3ae1610e9f3cd3dfc30552461cbb4

query I rowsort
SELECT DISTINCT + + cor0.col0 + + col0 FROM tab2 AS cor0
----
14
156
158

query I rowsort
SELECT - - col2 + + cor0.col2 FROM tab2 cor0
----
52
54
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 27 + 27 col1 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
0

query I rowsort
SELECT DISTINCT 83 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
83

query I rowsort
SELECT DISTINCT - 64 * + col0 * col0 FROM tab2
----
-3136
-389376
-399424

query I rowsort
SELECT DISTINCT cor0.col2 * cor0.col1 AS col0 FROM tab1, tab2, tab1 cor0
----
1248
1404
570

query I rowsort
SELECT ALL ( + 88 ) AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor1.col2 col1 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
26
27
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 8 col2 FROM tab0 AS cor0
----
8
8
8

query I rowsort
SELECT DISTINCT col2 + col2 + col1 AS col1 FROM tab1 AS cor0
----
124
134
205

query I rowsort
SELECT ALL 38 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7

query I rowsort
SELECT DISTINCT ( + col0 ) * + col1 FROM tab2 cor0
----
1343
217
4602

query I rowsort
SELECT DISTINCT + 90 * 95 FROM tab1, tab2 AS cor0, tab0 AS cor1, tab0 AS cor2
----
8550

query I rowsort
SELECT DISTINCT - 22 * + col2 FROM tab0
----
-1804
-22
-726

query I rowsort
SELECT + 29 AS col0 FROM tab0, tab2, tab1 cor0
----
27 values hashing to 4c56285992bcb76e1aac22e6d23d1318

query I rowsort
SELECT ALL + col0 * cor0.col0 + 97 AS col0 FROM tab0 AS cor0
----
1322
673
8018

query I rowsort
SELECT - 36 * + col0 + + cor0.col0 * + cor0.col1 * col2 AS col2 FROM tab0 AS cor0
----
2135
660914
67248

query I rowsort
SELECT DISTINCT 39 + cor0.col0 AS col2 FROM tab0 AS cor0
----
128
63
74

query I rowsort
SELECT DISTINCT - - col1 + + col2 * col1 AS col0 FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT DISTINCT 64 + col0 * - 61 + + col0 AS col1 FROM tab2 AS cor0
----
-356
-4616
-4676

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 30 + + col0 col2 FROM tab0 AS cor0
----
-6
5
59

query I rowsort
SELECT DISTINCT - + cor0.col0 * - 45 + 32 * col1 FROM tab1 AS cor0
----
3200
4016
967

query I rowsort
SELECT + col1 * + ( + col0 ) FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT ALL + cor0.col0 + + cor0.col2 AS col2 FROM tab1 AS cor0
----
121
176
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 + col0 col1 FROM tab2 cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 * ( - col2 * col0 ) - + ( - 90 ) * col1 col1 FROM tab0 AS cor0
----
26748
657712
9955

onlyif mysql # use DIV operator for integer division
query I rowsort label-2127
SELECT ALL + col2 - col2 DIV + cor0.col1 FROM tab1 AS cor0
----
52
52
89

skipif mysql # not compatible
query I rowsort label-2127
SELECT ALL + col2 - col2 / + cor0.col1 FROM tab1 AS cor0
----
52
52
89

query I rowsort
SELECT + + cor0.col2 + - cor0.col2 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col2 + + col2 * - 81 FROM tab1 cor0
----
-4428
-4674
-7872

onlyif mysql # use DIV operator for integer division
query I rowsort label-2130
SELECT DISTINCT - - col1 DIV col0 + - col2 FROM tab2 AS cor0
----
-23
-26
-38

skipif mysql # not compatible
query I rowsort label-2130
SELECT DISTINCT - - col1 / col0 + - col2 FROM tab2 AS cor0
----
-23
-26
-38

query I rowsort
SELECT ALL col2 + col0 * 78 AS col2 FROM tab2
----
573
6110
6200

query I rowsort
SELECT DISTINCT - ( col1 ) + ( col2 ) AS col2 FROM tab2
----
-33
-4
21

query I rowsort
SELECT ALL 68 * col2 + 36 FROM tab0
----
104
2280
5612

query I rowsort
SELECT col1 * ( + 31 ) AS col2 FROM tab0 AS cor0
----
2666
2821
3007

query I rowsort
SELECT - 13 * col2 AS col1 FROM tab0 AS cor0
----
-1066
-13
-429

query I rowsort
SELECT col1 * col0 * col2 FROM tab1 AS cor0
----
36480
4212
99840

query I rowsort
SELECT DISTINCT + 91 AS col1 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
91

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2138
SELECT ALL - col1 / + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2138
SELECT ALL - col1 / + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * 28 col0 FROM tab2 AS cor0
----
1652
476
868

query I rowsort
SELECT ALL - col0 * col2 * + col1 AS col0 FROM tab0
----
-3395
-664118
-68112

query I rowsort
SELECT DISTINCT - col0 + 2 * - col0 FROM tab1
----
-192
-240
-9

query I rowsort
SELECT - ( + cor0.col2 ) AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba

query I rowsort
SELECT ALL col0 + + col1 * - col1 AS col1 FROM tab2
----
-210
-3403
-954

query I rowsort
SELECT - - 59 FROM tab0 AS cor0
----
59
59
59

query I rowsort
SELECT - 69 + - tab2.col1 FROM tab2, tab0 cor0, tab0 AS cor1
----
27 values hashing to d4f2a12c20b25562e51fcee11cf8be82

query I rowsort
SELECT DISTINCT 22 AS col1 FROM tab1, tab2 AS cor0
----
22

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2147
SELECT 96 * - ( + col2 ) + - ( + col1 ) + + col2 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2147
SELECT 96 * - ( + col2 ) + - ( + col1 ) + + col2 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2148
SELECT + ( - col2 ) * col1 DIV - col1 FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-2148
SELECT + ( - col2 ) * col1 / - col1 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT 87 + - cor0.col0 + - cor0.col0 * + col0 FROM tab2 AS cor0
----
-6075
-6233
31

query I rowsort
SELECT + ( 19 ) + cor0.col2 AS col2 FROM tab1 AS cor0
----
115
73
76

query I rowsort
SELECT + 98 * + col1 FROM tab0
----
8428
8918
9506

query I rowsort
SELECT ALL - 34 * - col1 FROM tab1 AS cor0
----
340
442
884

query I rowsort
SELECT DISTINCT + ( ( tab0.col2 ) * + col0 ) AS col2 FROM tab0
----
35
7298
792

query I rowsort
SELECT - col2 + 55 FROM tab2
----
17
28
29

query I rowsort
SELECT DISTINCT + 15 + 59 * col2 AS col2 FROM tab1
----
3201
3378
5679

query I rowsort
SELECT DISTINCT - col0 * - 48 + col1 * 55 FROM tab2
----
2041
4727
6989

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 91 col2 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to deebbcfb9c7803a34dca6bd860849afe

onlyif mysql # use DIV operator for integer division
query I rowsort label-2158
SELECT DISTINCT + col2 DIV col1 + ( 12 ) AS col0 FROM tab1 AS cor0
----
14
17
19

skipif mysql # not compatible
query I rowsort label-2158
SELECT DISTINCT + col2 / col1 + ( 12 ) AS col0 FROM tab1 AS cor0
----
14
17
19

query I rowsort
SELECT + cor0.col2 + cor0.col2 * - col1 * + col1 FROM tab1 AS cor0
----
-16128
-36450
-5643

query I rowsort
SELECT DISTINCT + col1 + col1 * 69 AS col2 FROM tab0 AS cor0
----
6020
6370
6790

query I rowsort
SELECT ALL + ( col1 ) * 29 AS col0 FROM tab2 AS cor0
----
1711
493
899

query I rowsort
SELECT - cor1.col1 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2, tab2 cor1
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2

query I rowsort
SELECT - - col2 + + 57 - - ( col1 ) AS col1 FROM tab0 AS cor0
----
155
176
230

skipif mysql # not compatible
query I rowsort
SELECT cor0.col2 * CAST ( - col2 AS REAL ) AS col1 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT - col2 * 3 * + col0 AS col0 FROM tab2 AS cor0
----
-567
-6084
-9006

query I rowsort
SELECT ALL - - 91 * - col1 AS col1 FROM tab1 cor0
----
-1183
-2366
-910

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 9 * + col0 col0 FROM tab1 AS cor0
----
27
576
720

query I rowsort
SELECT ALL - 86 + col1 AS col0 FROM tab0 AS cor0
----
0
11
5

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2169
SELECT - + CAST( - 32 AS SIGNED ) + + cor0.col0 FROM tab2 AS cor0
----
110
111
39

skipif mysql # not compatible
query I rowsort label-2169
SELECT - + CAST ( - 32 AS INTEGER ) + + cor0.col0 FROM tab2 AS cor0
----
110
111
39

onlyif mysql # use DIV operator for integer division
query I rowsort label-2170
SELECT col1 DIV + 2 FROM tab0
----
43
45
48

skipif mysql # not compatible
query I rowsort label-2170
SELECT col1 / + 2 FROM tab0
----
43
45
48

query I rowsort
SELECT ALL - 16 FROM tab2, tab0 AS cor0
----
9 values hashing to be22ac76b42c6f7212ecc0ba7c89eb34

query I rowsort
SELECT DISTINCT - - 34 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
34

query I rowsort
SELECT + 19 - - col2 * col1 * + col2 FROM tab1
----
119827
32509
75835

query I rowsort
SELECT DISTINCT + 21 AS col1 FROM tab2 AS cor0
----
21

query I rowsort
SELECT + + 7 * col2 * + col0 FROM tab1 AS cor0
----
1134
25536
53760

onlyif mysql # use DIV operator for integer division
query I rowsort label-2176
SELECT ALL + col0 + + col1 DIV col0 col0 FROM tab2 AS cor0
----
11
78
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2176
SELECT ALL + col0 + + col1 / col0 col0 FROM tab2 AS cor0
----
11
78
79

query I rowsort
SELECT ALL + 83 * col1 + - col2 AS col2 FROM tab2 cor0
----
1373
2546
4871

query I rowsort
SELECT DISTINCT + + col2 + col1 * - col0 FROM tab2 cor0
----
-1305
-190
-4576

onlyif mysql # use DIV operator for integer division
query I rowsort label-2179
SELECT DISTINCT col1 DIV - col0 - col0 AS col0 FROM tab1 AS cor0
----
-11
-64
-80

skipif mysql # not compatible
query I rowsort label-2179
SELECT DISTINCT col1 / - col0 - col0 AS col0 FROM tab1 AS cor0
----
-11
-64
-80

query I rowsort
SELECT ALL - 91 + col0 AS col1 FROM tab0 AS cor0
----
-2
-56
-67

query I rowsort
SELECT ALL - cor0.col1 + col2 * + col1 FROM tab0 AS cor0
----
0
2752
7371

query I rowsort
SELECT + - col1 * + cor0.col1 * - col0 - + col0 FROM tab0 AS cor0
----
177480
329280
736920

query I rowsort
SELECT + cor0.col0 + col2 * cor0.col0 FROM tab1 AS cor0
----
165
3712
7760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 * col0 col2 FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT DISTINCT - col2 * + col0 AS col1 FROM tab1
----
-162
-3648
-7680

query I rowsort
SELECT DISTINCT - col2 * - col2 + col1 FROM tab2 AS cor0
----
1461
735
760

query I rowsort
SELECT - 63 + cor0.col2 * - col1 FROM tab2 AS cor0
----
-1597
-709
-900

query I rowsort
SELECT DISTINCT - - col1 + col2 + cor0.col2 FROM tab1 cor0
----
124
134
205

query I rowsort
SELECT + col0 + - cor0.col1 + - col0 AS col0 FROM tab0 AS cor0
----
-86
-91
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-2190
SELECT DISTINCT - - col2 DIV - ( col1 ) FROM tab2 AS cor0
----
-2
0

skipif mysql # not compatible
query I rowsort label-2190
SELECT DISTINCT - - col2 / - ( col1 ) FROM tab2 AS cor0
----
-2
0

query I rowsort
SELECT col0 * + col2 + + col2 * + col1 + col2 FROM tab2 AS cor0
----
1053
3588
3686

onlyif mysql # use DIV operator for integer division
query I rowsort label-2192
SELECT - - 96 * + col1 DIV - col1 AS col0 FROM tab1 AS cor0
----
-96
-96
-96

skipif mysql # not compatible
query I rowsort label-2192
SELECT - - 96 * + col1 / - col1 AS col0 FROM tab1 AS cor0
----
-96
-96
-96

query I rowsort
SELECT col2 + col2 * col2 + + col2 AS col0 FROM tab0 AS cor0
----
1155
3
6888

onlyif mysql # use DIV operator for integer division
query I rowsort label-2194
SELECT ALL ( + col2 ) DIV - col2 AS col2 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2194
SELECT ALL ( + col2 ) / - col2 AS col2 FROM tab1 AS cor0
----
-1
-1
-1

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab0, tab1 AS cor2
----
3645 values hashing to b8435223668db186a5012e4112253f28

query I rowsort
SELECT ( ( + col1 ) ) + col0 * + col1 + + col2 FROM tab0 AS cor0
----
2183
3493
8272

query I rowsort
SELECT DISTINCT + ( + 98 ) * - col2 AS col0 FROM tab2 AS cor0
----
-2548
-2646
-3724

query I rowsort
SELECT ALL cor0.col0 + + 11 AS col1 FROM tab2 AS cor0
----
18
89
90

query I rowsort
SELECT + 14 + - cor0.col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 6c8e0965c675d69b605dd8f5ee836301

query I rowsort
SELECT ( 54 ) FROM tab0
----
54
54
54

query I rowsort
SELECT - + ( col2 ) * col1 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT 88 * col0 AS col0 FROM tab2 AS cor0
----
616
6864
6952

query I rowsort
SELECT ALL + 7 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

query I rowsort
SELECT ALL + 37 + col2 FROM tab1
----
133
91
94

query I rowsort
SELECT DISTINCT col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( - cor0.col2 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN col0 * col1 + col2 AND ( NULL )
----

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE ( - col2 ) = - cor0.col2 * col0
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 NOT IN ( - col2 )
----

query IIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0 WHERE NULL < NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND col1 * + col0 * col2
----

query I rowsort
SELECT col1 + - col2 * col2 AS col0 FROM tab0
----
-1003
-6633
96

query I rowsort
SELECT DISTINCT col1 + + col0 * col1 AS col2 FROM tab2
----
1360
248
4661

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) NOT IN ( - col1 )
----

query I rowsort
SELECT DISTINCT - col2 - - col0 AS col0 FROM tab0
----
-9
34
7

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND col1
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT IN ( col1 - - col0 )
----

query I rowsort
SELECT ALL col0 * + cor0.col2 * col0 AS col0 FROM tab2 AS cor0
----
1323
158184
237158

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + + col1 col1 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT col0 + col0 * + col2 * tab1.col2 AS col1 FROM tab1
----
208000
737360
8751

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col2 / + col1 BETWEEN col1 - + col0 AND NULL
----
3
26
54

query I rowsort
SELECT col1 + tab0.col0 - tab0.col2 FROM tab0
----
131
77
98

query I rowsort
SELECT + col2 + - col2 * col1 - col1 FROM tab1
----
-1165
-1376
-523

query I rowsort
SELECT + + cor0.col1 + - col0 AS col0 FROM tab0 AS cor0
----
2
62
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-2224
SELECT ALL col1 - - col1 DIV + col2 FROM tab1
----
10
13
26

skipif mysql # not compatible
query I rowsort label-2224
SELECT ALL col1 - - col1 / + col2 FROM tab1
----
10
13
26

query I rowsort
SELECT DISTINCT - col0 * col0 - col1 FROM tab1
----
-35
-4106
-6413

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * col2 * - col0 - + tab2.col2 col0 FROM tab2
----
114038
5076
52702

onlyif mysql # use DIV operator for integer division
query I rowsort label-2227
SELECT + col1 DIV - col1 + - col2 + col2 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2227
SELECT + col1 / - col1 + - col2 + col2 FROM tab0
----
-1
-1
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-2228
SELECT ALL col1 DIV - col2 + col1 AS col1 FROM tab0
----
0
84
90

skipif mysql # not compatible
query I rowsort label-2228
SELECT ALL col1 / - col2 + col1 AS col1 FROM tab0
----
0
84
90

query I rowsort
SELECT ALL + cor0.col2 * - cor0.col2 + + col1 FROM tab0 AS cor0
----
-1003
-6633
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-2230
SELECT - tab1.col0 DIV tab1.col2 AS col1 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2230
SELECT - tab1.col0 / tab1.col2 AS col1 FROM tab1
----
-1
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + - col1 col2 FROM tab2
----
-24
19
62

query I rowsort
SELECT DISTINCT + col0 - col0 AS col2 FROM tab0 AS cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2233
SELECT DISTINCT - cor0.col1 DIV col0 FROM tab0 AS cor0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-2233
SELECT DISTINCT - cor0.col1 / col0 FROM tab0 AS cor0
----
-1
-2
-3

onlyif mysql # use DIV operator for integer division
query I rowsort label-2234
SELECT - col0 DIV col2 + col1 FROM tab1 AS cor0
----
13
26
9

skipif mysql # not compatible
query I rowsort label-2234
SELECT - col0 / col2 + col1 FROM tab1 AS cor0
----
13
26
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-2235
SELECT ALL + - cor0.col1 DIV col2 + + cor0.col1 * col2 * col0 + + col0 FROM tab1 AS cor0
----
36544
4215
99920

skipif mysql # not compatible
query I rowsort label-2235
SELECT ALL + - cor0.col1 / col2 + + cor0.col1 * col2 * col0 + + col0 FROM tab1 AS cor0
----
36544
4215
99920

query I rowsort
SELECT ALL cor0.col1 * col1 + + cor0.col2 * + col2 FROM tab0 cor0
----
15005
8485
9410

query I rowsort
SELECT DISTINCT - col1 * - cor0.col0 + - col2 + cor0.col0 FROM tab0 AS cor0
----
2055
3429
8106

query I rowsort
SELECT DISTINCT + col0 + - col1 + - col0 AS col2 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT + - col2 * - col1 + - col2 * - col2 * col0 FROM tab1 AS cor0
----
10152
208506
738528

query I rowsort
SELECT + - col0 * + col2 - + col0 FROM tab1 AS cor0
----
-165
-3712
-7760

query I rowsort
SELECT DISTINCT + col1 * col2 + col0 * cor0.col1 FROM tab2 AS cor0
----
1054
1989
6136

onlyif mysql # use DIV operator for integer division
query I rowsort label-2242
SELECT + - col0 DIV cor0.col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2242
SELECT + - col0 / cor0.col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + - cor0.col2 * + col0 FROM tab1 AS cor0
----
-162
-3648
-7680

skipif mysql # not compatible
query I rowsort
SELECT + col1 + - CAST ( + 95 AS REAL ) + - col1 AS col2 FROM tab0 AS cor0
----
-95
-95
-95

onlyif mysql # use DIV operator for integer division
query I rowsort label-2245
SELECT - + col1 * - ( col1 ) + col1 DIV 6 + + col1 AS col1 FROM tab2 cor0
----
308
3549
997

skipif mysql # not compatible
query I rowsort label-2245
SELECT - + col1 * - ( col1 ) + col1 / 6 + + col1 AS col1 FROM tab2 cor0
----
308
3549
997

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab1 cor0, tab1 AS cor1, tab0, tab1 AS cor2
----
3645 values hashing to f9101173abc9e524c6310e6c0eeefb0c

query I rowsort
SELECT tab1.col0 * 98 AS col2 FROM tab1
----
294
6272
7840

query I rowsort
SELECT DISTINCT - col0 * ( col0 ) * + col2 AS col2 FROM tab1
----
-233472
-486
-614400

query I rowsort
SELECT DISTINCT tab2.col2 * + col1 AS col0 FROM tab2
----
1534
646
837

query I rowsort
SELECT - col0 * - ( col1 ) * - col2 + col0 * col2 FROM tab0 AS cor0
----
-3360
-656820
-67320

query I rowsort
SELECT - col1 + + col2 * 3 FROM tab2 AS cor0
----
19
50
97

query I rowsort
SELECT ( 42 ) * + col2 AS col0 FROM tab0 AS cor0
----
1386
3444
42

query I rowsort
SELECT + - 82 * + col0 FROM tab1 AS cor0
----
-246
-5248
-6560

query I rowsort
SELECT - - 77 * - col0 FROM tab2 AS cor0
----
-539
-6006
-6083

query I rowsort
SELECT DISTINCT - col0 * + ( + col0 + col2 ) * ( - col0 + - col1 ) FROM tab2
----
1111344
887328
9044

query I rowsort
SELECT col0 * - 97 FROM tab2
----
-679
-7566
-7663

query I rowsort
SELECT 96 - - col1 FROM tab1 cor0
----
106
109
122

query I rowsort
SELECT - col2 * col2 * ( 25 ) AS col0 FROM tab1 AS cor0
----
-230400
-72900
-81225

onlyif mysql # use DIV operator for integer division
query I rowsort label-2259
SELECT + col1 + col1 * col0 DIV + col1 FROM tab2 AS cor0
----
137
38
96

skipif mysql # not compatible
query I rowsort label-2259
SELECT + col1 + col1 * col0 / + col1 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT DISTINCT col2 + tab0.col0 * col0 FROM tab0
----
1226
609
8003

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2261
SELECT ALL - CAST( col0 AS SIGNED ) * + tab1.col0 + - 91 * - col2 FROM tab1
----
1091
2336
4905

skipif mysql # not compatible
query I rowsort label-2261
SELECT ALL - CAST ( col0 AS INTEGER ) * + tab1.col0 + - 91 * - col2 FROM tab1
----
1091
2336
4905

query I rowsort
SELECT - col0 + + 41 * + col2 AS col1 FROM tab1
----
2211
2273
3856

query I rowsort
SELECT DISTINCT col2 + ( col2 ) * ( tab2.col0 ) + col0 * - 10 FROM tab2
----
1274
146
2250

query I rowsort
SELECT DISTINCT + col1 + col1 * - 36 AS col1 FROM tab2
----
-1085
-2065
-595

onlyif mysql # use DIV operator for integer division
query I rowsort label-2265
SELECT + 79 * + col1 + CAST( - col2 AS SIGNED ) DIV - col1 AS col1 FROM tab1
----
1034
2056
795

skipif mysql # not compatible
query I rowsort label-2265
SELECT + 79 * + col1 + CAST ( - col2 AS INTEGER ) / - col1 AS col1 FROM tab1
----
1034
2056
795

query I rowsort
SELECT ALL - + ( + col1 ) AS col0 FROM tab2 AS cor0
----
-17
-31
-59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2267
SELECT + col2 * - col1 - - CAST( NULL AS SIGNED ) * - cor0.col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2267
SELECT + col2 * - col1 - - CAST ( NULL AS INTEGER ) * - cor0.col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - col1 * 25 - + col2 AS col2 FROM tab1 AS cor0
----
193
229
596

query I rowsort
SELECT - + col1 + + col0 AS col0 FROM tab2 cor0
----
-24
19
62

query I rowsort
SELECT ALL - + col2 * 21 + col2 AS col0 FROM tab1 cor0
----
-1080
-1140
-1920

query I rowsort
SELECT DISTINCT - + col1 + col0 * - cor0.col1 FROM tab1 AS cor0
----
-104
-1053
-650

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 ALL + cor0.col2 + - cor0.col1 * col2 FROM tab0 AS cor0
----
-2805
-7380
-96

query I rowsort
SELECT - col0 - ( + 13 ) FROM tab1 AS cor0
----
-16
-77
-93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - col2 col2 FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT ALL + + col0 * col1 AS col1 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT DISTINCT - col2 * + ( col2 ) + + col0 * col1 + - col2 * col2 * + col0 AS col2 FROM tab1 cor0
----
-11586
-210545
-745456

query I rowsort
SELECT - col0 + + col2 * col1 - col1 * - col1 AS col0 FROM tab0
----
10210
15654
9471

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2279
SELECT - col1 * col1 - - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2279
SELECT - col1 * col1 - - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + tab2.col2 + 46 AS col2 FROM tab2
----
72
73
84

query I rowsort
SELECT + col1 + + 63 FROM tab1
----
73
76
89

query I rowsort
SELECT ALL col2 + + ( ( + col2 ) ) FROM tab1
----
108
114
192

query I rowsort
SELECT ALL + col2 * col0 + + col1 FROM tab2
----
2087
220
3019

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2284
SELECT col0 / + CAST( NULL AS DECIMAL ) + - col2 + - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2284
SELECT col0 / + CAST ( NULL AS REAL ) + - col2 + - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2285
SELECT - + col1 * CAST( col1 AS SIGNED ) + + col2 FROM tab1 AS cor0
----
-43
-622
-73

skipif mysql # not compatible
query I rowsort label-2285
SELECT - + col1 * CAST ( col1 AS INTEGER ) + + col2 FROM tab1 AS cor0
----
-43
-622
-73

query I rowsort
SELECT - col1 * - 13 - col0 AS col2 FROM tab0 AS cor0
----
1094
1094
1226

query I rowsort
SELECT + - col0 + + ( - col2 ) + col0 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT + + col2 + + col0 * col2 + + col0 FROM tab0 AS cor0
----
71
7469
849

query I rowsort
SELECT - col2 * col0 + + col1 + col0 * col0 * col1 AS col0 FROM tab2 AS cor0
----
103112
1361
356987

query I rowsort
SELECT + 74 FROM tab0 cor0
----
74
74
74

query I rowsort
SELECT ALL 32 * tab0.col1 * col2 - - 6 FROM tab0
----
238790
3110
90822

query I rowsort
SELECT + col1 + - 46 FROM tab2
----
-15
-29
13

query I rowsort
SELECT ALL + 39 + col2 AS col1 FROM tab2 AS cor0
----
65
66
77

query I rowsort
SELECT ALL 92 * + col0 + ( + 10 ) FROM tab2 AS cor0
----
654
7186
7278

query I rowsort
SELECT DISTINCT 28 + + cor0.col1 * col1 AS col2 FROM tab2 AS cor0
----
317
3509
989

query I rowsort
SELECT ALL - cor0.col1 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 col1 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * cor0.col1 col1 FROM tab1 AS cor0
----
1248
1404
570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 + + col0 col1 FROM tab1 cor0
----
-16
-51
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-2300
SELECT cor0.col0 + col2 DIV + 85 FROM tab2 AS cor0
----
7
78
79

skipif mysql # not compatible
query I rowsort label-2300
SELECT cor0.col0 + col2 / + 85 FROM tab2 AS cor0
----
7
78
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + cor0.col2 * col2 col2 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT cor0.col2 * - col0 * + col0 FROM tab0 cor0
----
-1225
-19008
-649522

query I rowsort
SELECT DISTINCT - col0 + cor0.col2 * 35 AS col1 FROM tab2 AS cor0
----
1251
832
938

query I rowsort
SELECT ALL - col0 + ( - col1 ) AS col0 FROM tab0
----
-110
-132
-180

query I rowsort
SELECT + - col0 + 56 * + ( col0 ) AS col2 FROM tab1 AS cor0
----
165
3520
4400

query I rowsort
SELECT - col0 - + col0 * - col2 AS col0 FROM tab0 AS cor0
----
0
7209
768

onlyif mysql # use DIV operator for integer division
query I rowsort label-2307
SELECT DISTINCT + col0 + ( col0 ) * + cor0.col2 DIV col2 AS col0 FROM tab1 AS cor0
----
128
160
6

skipif mysql # not compatible
query I rowsort label-2307
SELECT DISTINCT + col0 + ( col0 ) * + cor0.col2 / col2 AS col0 FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT DISTINCT + col1 * col0 + ( col2 ) * - col2 AS col0 FROM tab1 AS cor0
----
-2609
-2838
-8176

query I rowsort
SELECT ALL - col0 * col0 - - col0 * + col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2310
SELECT - col2 * + col2 + + 81 DIV + col2 AS col1 FROM tab1 AS cor0
----
-2915
-3248
-9216

skipif mysql # not compatible
query I rowsort label-2310
SELECT - col2 * + col2 + + 81 / + col2 AS col1 FROM tab1 AS cor0
----
-2915
-3248
-9216

onlyif mysql # use DIV operator for integer division
query I rowsort label-2311
SELECT DISTINCT col0 DIV - cor0.col0 + - col1 AS col2 FROM tab0 AS cor0
----
-87
-92
-98

skipif mysql # not compatible
query I rowsort label-2311
SELECT DISTINCT col0 / - cor0.col0 + - col1 AS col2 FROM tab0 AS cor0
----
-87
-92
-98

query I rowsort
SELECT ALL - col2 + col0 * - 54 FROM tab1
----
-216
-3513
-4416

query I rowsort
SELECT + + col1 + 45 FROM tab2 AS cor0
----
104
62
76

query I rowsort
SELECT DISTINCT 60 + - 64 - col1 * + col1 AS col0 FROM tab1 AS cor0
----
-104
-173
-680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2315
SELECT - + CAST( - 72 AS SIGNED ) * - col2 + col0 FROM tab1 AS cor0
----
-3885
-4040
-6832

skipif mysql # not compatible
query I rowsort label-2315
SELECT - + CAST ( - 72 AS INTEGER ) * - col2 + col0 FROM tab1 AS cor0
----
-3885
-4040
-6832

query I rowsort
SELECT + cor1.col2 FROM tab0, tab1 AS cor0, tab1 cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT DISTINCT - col1 + ( col2 ) AS col0 FROM tab0 cor0
----
-53
-9
-96

query I rowsort
SELECT DISTINCT + col1 + 79 + col2 AS col2 FROM tab2 AS cor0
----
134
137
164

query I rowsort
SELECT ALL - 63 * 27 + - col2 + col2 AS col0 FROM tab1 cor0
----
-1701
-1701
-1701

onlyif mysql # use DIV operator for integer division
query I rowsort label-2320
SELECT - - 43 DIV 57 AS col0 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2320
SELECT - - 43 / 57 AS col0 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT 66 + col2 * + cor0.col2 AS col0 FROM tab1 AS cor0
----
2982
3315
9282

query I rowsort
SELECT - + ( col0 ) * col0 + + col0 * 29 * - col1 AS col2 FROM tab0 cor0
----
-242792
-60432
-99680

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + CAST ( + cor0.col1 AS REAL ) + + col1 AS col2 FROM tab1 cor0
----
20
26
52

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2324
SELECT ALL CAST( NULL AS SIGNED ) + + col2 * - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2324
SELECT ALL CAST ( NULL AS INTEGER ) + + col2 * - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col2 * - 93 * col0 AS col2 FROM tab1 AS cor0
----
-15066
-339264
-714240

query I rowsort
SELECT ( ( - col0 ) ) * ( + cor0.col2 ) FROM tab0 AS cor0
----
-35
-7298
-792

onlyif mysql # use DIV operator for integer division
query I rowsort label-2327
SELECT DISTINCT + + col2 DIV + col0 FROM tab0 cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-2327
SELECT DISTINCT + + col2 / + col0 FROM tab0 cor0
----
0
1

query I rowsort
SELECT ALL - - col2 + + col1 * col1 FROM tab0 AS cor0
----
7429
8363
9410

query I rowsort
SELECT + col0 + - col0 * - col2 FROM tab1 AS cor0
----
165
3712
7760

query I rowsort
SELECT col1 * - col1 * + col2 + col2 AS col2 FROM tab1 AS cor0
----
-16128
-36450
-5643

query I rowsort
SELECT DISTINCT - 27 + + col0 * col1 AS col2 FROM tab0 AS cor0
----
2037
3368
8072

query I rowsort
SELECT - + 80 AS col1 FROM tab0 AS cor0
----
-80
-80
-80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2333
SELECT DISTINCT - CAST( col0 AS SIGNED ) + col1 AS col2 FROM tab1 AS cor0
----
-54
-67
23

skipif mysql # not compatible
query I rowsort label-2333
SELECT DISTINCT - CAST ( col0 AS INTEGER ) + col1 AS col2 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT - 47 + + col1 AS col2 FROM tab0 AS cor0
----
39
44
50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + ( col1 ) col2 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT - col1 + - col0 * - ( col0 ) AS col2 FROM tab0 AS cor0
----
1128
490
7830

query I rowsort
SELECT - col2 + + 72 * + col1 * col1 FROM tab1 AS cor0
----
12072
48618
7143

query I rowsort
SELECT DISTINCT + col0 + col2 + col1 FROM tab2
----
134
163
65

query I rowsort
SELECT + col1 + - col2 * + 69 + + col2 FROM tab0
----
-2158
-5485
29

query I rowsort
SELECT col1 + + ( col1 ) + + tab1.col0 FROM tab1
----
106
55
84

query I rowsort
SELECT tab0.col1 * 39 AS col0 FROM tab0
----
3354
3549
3783

query I rowsort
SELECT DISTINCT 42 FROM tab2, tab0 AS cor0
----
42

query I rowsort
SELECT - cor0.col2 * + 45 FROM tab0, tab0 AS cor0
----
9 values hashing to 2f0ff29bd8e7e5dc132cdf49fffe4886

query I rowsort
SELECT DISTINCT + col0 + - ( col1 ) AS col1 FROM tab2
----
-24
19
62

query I rowsort
SELECT DISTINCT col0 * + col2 + col1 FROM tab2
----
2087
220
3019

onlyif mysql # use DIV operator for integer division
query I rowsort label-2346
SELECT + tab1.col1 DIV - col0 FROM tab1
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-2346
SELECT + tab1.col1 / - col0 FROM tab1
----
-8
0
0

query I rowsort
SELECT ALL - cor1.col2 AS col0 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - 51 * col0 * col1 col1 FROM tab2
----
-11040
-234676
-68455

query I rowsort
SELECT ALL + col0 + + col2 + - ( col0 ) FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT + 27 * col2 + + col2 AS col0 FROM tab1 AS cor0
----
1512
1596
2688

query I rowsort
SELECT 76 * - col1 * 33 FROM tab1
----
-25080
-32604
-65208

query I rowsort
SELECT + - 57 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 520dc393896969e02a72ab6c5d92126b

onlyif mysql # use DIV operator for integer division
query I rowsort label-2353
SELECT DISTINCT col1 + + col1 DIV 26 FROM tab1
----
10
13
27

skipif mysql # not compatible
query I rowsort label-2353
SELECT DISTINCT col1 + + col1 / 26 FROM tab1
----
10
13
27

query I rowsort
SELECT DISTINCT - cor0.col1 * - cor0.col2 + cor0.col2 FROM tab1, tab2 AS cor0
----
1560
684
864

query I rowsort
SELECT - col0 * ( + cor0.col1 ) * col0 + col1 AS col0 FROM tab0 AS cor0
----
-118728
-49450
-720720

query I rowsort
SELECT DISTINCT - col0 + + col2 + + col0 * col1 AS col1 FROM tab1
----
1056
129
633

query I rowsort
SELECT col0 + 0 * + col0 FROM tab0
----
24
35
89

query I rowsort
SELECT + col1 * + col0 * - col0 + + col0 + - col1 FROM tab0 AS cor0
----
-118887
-49598
-720813

query I rowsort
SELECT DISTINCT col0 * - col2 * col2 + cor0.col0 AS col2 FROM tab1 AS cor0
----
-207872
-737200
-8745

query I rowsort
SELECT ALL - col2 + - cor0.col0 FROM tab1 cor0
----
-121
-176
-57

query I rowsort
SELECT + - col1 * - 35 + + col2 + + col2 * ( - col1 ) FROM tab2 AS cor0
----
-13
275
557

query I rowsort
SELECT ALL 27 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 1a3cef5c33b8f87ffeded378fd207753

onlyif mysql # use DIV operator for integer division
query I rowsort label-2363
SELECT + col0 + 46 DIV - cor0.col0 AS col0 FROM tab0 AS cor0
----
23
34
89

skipif mysql # not compatible
query I rowsort label-2363
SELECT + col0 + 46 / - cor0.col0 AS col0 FROM tab0 AS cor0
----
23
34
89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2364
SELECT ALL CAST( 42 AS SIGNED ) FROM tab0 cor0
----
42
42
42

skipif mysql # not compatible
query I rowsort label-2364
SELECT ALL CAST ( 42 AS INTEGER ) FROM tab0 cor0
----
42
42
42

query I rowsort
SELECT DISTINCT + tab1.col0 AS col2 FROM tab1, tab0, tab1 AS cor0
----
3
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - ( - cor2.col0 ) + ( ( + cor2.col2 ) ) ) col0 FROM tab0, tab2 AS cor0, tab2 cor1, tab0 AS cor2
----
171
36
57

query I rowsort
SELECT - col2 * + col2 * col0 AS col1 FROM tab2 AS cor0
----
-114076
-5103
-52728

query I rowsort
SELECT + + cor0.col1 * col1 + col0 * col2 AS col2 FROM tab1 cor0
----
3748
7849
838

skipif mysql # not compatible
query I rowsort
SELECT col2 - + col0 * CAST ( - col2 AS REAL ) FROM tab2 AS cor0
----
2054
216
3040

query I rowsort
SELECT + - col1 * + cor0.col0 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT - col1 + - col2 * - col0 AS col2 FROM tab2
----
158
1969
2985

query I rowsort
SELECT + + ( cor0.col1 ) * + 4 FROM tab0 AS cor0
----
344
364
388

query I rowsort
SELECT ALL + + 79 * col0 FROM tab0 cor0
----
1896
2765
7031

query I rowsort
SELECT col0 + col0 * + col2 FROM tab0
----
70
7387
816

query I rowsort
SELECT + 82 AS col2 FROM tab0 AS cor0
----
82
82
82

query I rowsort
SELECT + 32 * col1 FROM tab1 AS cor0
----
320
416
832

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab0 AS cor0 CROSS JOIN tab0, tab0 cor1, tab2 AS cor2
----
3645 values hashing to fa0488bdae83f58c7ffa92505e928570

query I rowsort
SELECT ALL - ( col1 ) * ( 29 ) * - col2 AS col2 FROM tab1 AS cor0
----
16530
36192
40716

onlyif mysql # use DIV operator for integer division
query I rowsort label-2379
SELECT ALL - col2 DIV col1 + + 85 + col1 FROM tab1 AS cor0
----
109
90
91

skipif mysql # not compatible
query I rowsort label-2379
SELECT ALL - col2 / col1 + + 85 + col1 FROM tab1 AS cor0
----
109
90
91

query I rowsort
SELECT ALL + - col0 * ( - col2 ) FROM tab0 AS cor0
----
35
7298
792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - col1 col0 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT ALL + ( + col0 ) * - col1 * col2 FROM tab1
----
-36480
-4212
-99840

query I rowsort
SELECT tab1.col1 FROM tab1, tab2, tab0 cor0
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 + - 17 col2 FROM tab1 AS cor0
----
-113
-71
-74

query I rowsort
SELECT DISTINCT + col2 * col1 + - col1 + + col0 FROM tab1 AS cor0
----
1315
1381
624

query I rowsort
SELECT ALL + cor0.col2 * - col1 FROM tab1 cor0
----
-1248
-1404
-570

query I rowsort
SELECT ALL cor0.col0 * - col2 - + 75 * + col2 FROM tab2 AS cor0
----
-2214
-3978
-5852

query I rowsort
SELECT - col2 + col2 * 80 FROM tab1 AS cor0
----
4266
4503
7584

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + col1 * - col2 col1 FROM tab1 AS cor0
----
-1152
-1350
-513

query I rowsort
SELECT DISTINCT + ( + col1 ) * col0 + col2 FROM tab2 AS cor0
----
1381
244
4628

query I rowsort
SELECT ALL - col0 * + col2 AS col0 FROM tab0 cor0
----
-35
-7298
-792

query I rowsort
SELECT - ( + 34 ) + - col2 FROM tab2 AS cor0
----
-60
-61
-72

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2393
SELECT DISTINCT + 77 * + col2 + + cor0.col1 * CAST( ( - col1 ) AS SIGNED ) FROM tab0 AS cor0
----
-1967
-4855
-9332

skipif mysql # not compatible
query I rowsort label-2393
SELECT DISTINCT + 77 * + col2 + + cor0.col1 * CAST ( ( - col1 ) AS INTEGER ) FROM tab0 AS cor0
----
-1967
-4855
-9332

query I rowsort
SELECT DISTINCT - + col1 + - 22 * - col1 * 52 + col1 FROM tab2 AS cor0
----
19448
35464
67496

query I rowsort
SELECT DISTINCT + col2 + 81 AS col2 FROM tab2 AS cor0
----
107
108
119

onlyif mysql # use DIV operator for integer division
query I rowsort label-2396
SELECT + 2 DIV 87 col0 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2396
SELECT + 2 / 87 col0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2397
SELECT + cor0.col1 + - col2 + col1 DIV - 55 AS col1 FROM tab2 AS cor0
----
-21
32
4

skipif mysql # not compatible
query I rowsort label-2397
SELECT + cor0.col1 + - col2 + col1 / - 55 AS col1 FROM tab2 AS cor0
----
-21
32
4

query I rowsort
SELECT ALL col2 * - 10 AS col2 FROM tab0
----
-10
-330
-820

query I rowsort
SELECT col1 * - ( col1 + col2 ) * 53 AS col0 FROM tab2
----
-265795
-49555
-95294

query I rowsort
SELECT col0 * 86 FROM tab0
----
2064
3010
7654

query I rowsort
SELECT DISTINCT + col2 * + 76 FROM tab0
----
2508
6232
76

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2402
SELECT ALL + CAST( NULL AS SIGNED ) * col1 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2402
SELECT ALL + CAST ( NULL AS INTEGER ) * col1 AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT 66 + col1 * col1 FROM tab0
----
7462
8347
9475

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab2.col2 - tab2.col0 * col0 col0 FROM tab2
----
-6110
-6279
-76

query I rowsort
SELECT + col1 * + 31 + - 29 AS col2 FROM tab1 AS cor0
----
281
374
777

query I rowsort
SELECT ALL + cor0.col1 + col2 AS col1 FROM tab2 AS cor0
----
55
58
85

skipif mysql # not compatible
query I rowsort
SELECT - + cor0.col2 * - CAST ( 84 AS REAL ) + col0 AS col1 FROM tab2 AS cor0
----
2262
2275
3271

query I rowsort
SELECT DISTINCT + col1 + + 2 + col2 * col2 AS col2 FROM tab0 AS cor0
----
100
1177
6817

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + 98 * + col2 col0 FROM tab1 AS cor0
----
5318
5596
9421

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2410
SELECT DISTINCT - cor0.col1 + + CAST( NULL AS DECIMAL ) col1 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2410
SELECT DISTINCT - cor0.col1 + + CAST ( NULL AS REAL ) col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col1 + 92 AS col0 FROM tab1 AS cor0
----
102
105
118

query I rowsort
SELECT - + col0 + 62 + + col2 AS col2 FROM tab2 AS cor0
----
10
21
82

query I rowsort
SELECT ALL + cor0.col0 * - ( col2 ) FROM tab0 cor0
----
-35
-7298
-792

query I rowsort
SELECT tab2.col1 * + tab2.col2 + tab2.col1 + 47 FROM tab2
----
1640
710
915

query I rowsort
SELECT - 35 AS col0 FROM tab0
----
-35
-35
-35

onlyif mysql # use DIV operator for integer division
query I rowsort label-2416
SELECT DISTINCT col2 * 76 DIV 12 FROM tab1 AS cor0
----
342
361
608

skipif mysql # not compatible
query I rowsort label-2416
SELECT DISTINCT col2 * 76 / 12 FROM tab1 AS cor0
----
342
361
608

query I rowsort
SELECT col2 * - tab2.col1 * col2 AS col1 FROM tab2
----
-22599
-24548
-39884

query I rowsort
SELECT DISTINCT + 73 + col0 * - col0 AS col0 FROM tab0
----
-1152
-503
-7848

query I rowsort
SELECT DISTINCT col1 + + tab1.col0 * + col0 + col1 FROM tab1
----
4116
61
6426

query I rowsort
SELECT - + col2 * - col0 + + ( col2 ) AS col1 FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT ALL + - col0 * + col0 AS col1 FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT col1 * - 48 AS col2 FROM tab2
----
-1488
-2832
-816

query I rowsort
SELECT - col2 + + 15 FROM tab2
----
-11
-12
-23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 54 col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + col2 * 33 col0 FROM tab1
----
18810
41184
46332

query I rowsort
SELECT - col2 - + ( - col1 ) FROM tab0
----
53
9
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-2427
SELECT - 69 - col0 DIV cor0.col2 col1 FROM tab1 AS cor0
----
-69
-69
-70

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2427
SELECT - 69 - col0 / cor0.col2 col1 FROM tab1 AS cor0
----
-69
-69
-70

onlyif mysql # use DIV operator for integer division
query I rowsort label-2428
SELECT + 61 DIV + col0 FROM tab2
----
0
0
8

skipif mysql # not compatible
query I rowsort label-2428
SELECT + 61 / + col0 FROM tab2
----
0
0
8

query I rowsort
SELECT ALL - tab1.col2 + tab1.col1 * col1 FROM tab1
----
43
622
73

query I rowsort
SELECT - + col1 * col1 + ( col2 ) AS col0 FROM tab2 AS cor0
----
-251
-3455
-934

query I rowsort
SELECT col0 * col1 * 76 + cor0.col2 FROM tab1 AS cor0
----
48697
5982
79136

query I rowsort
SELECT ALL + col0 + + col2 AS col0 FROM tab1
----
121
176
57

query I rowsort
SELECT col2 + + col2 - - 46 FROM tab2
----
100
122
98

query I rowsort
SELECT DISTINCT + 32 * - col1 FROM tab2 AS cor0
----
-1888
-544
-992

onlyif mysql # use DIV operator for integer division
query I rowsort label-2435
SELECT ALL - + col0 DIV col1 AS col0 FROM tab1 AS cor0
----
-6
-6
0

skipif mysql # not compatible
query I rowsort label-2435
SELECT ALL - + col0 / col1 AS col0 FROM tab1 AS cor0
----
-6
-6
0

query I rowsort
SELECT - 56 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to a228dfb9ede9780b082a5a3dfb2fca80

query I rowsort
SELECT - 17 + col0 FROM tab1 cor0
----
-14
47
63

onlyif mysql # use DIV operator for integer division
query I rowsort label-2438
SELECT + ( + col0 ) DIV CAST( col0 * + col0 AS SIGNED ) - cor0.col1 FROM tab2 AS cor0
----
-17
-31
-59

skipif mysql # not compatible
query I rowsort label-2438
SELECT + ( + col0 ) / CAST ( col0 * + col0 AS INTEGER ) - cor0.col1 FROM tab2 AS cor0
----
-17
-31
-59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2439
SELECT - 18 + - col2 * CAST( NULL AS SIGNED ) + + cor0.col1 * cor0.col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2439
SELECT - 18 + - col2 * CAST ( NULL AS INTEGER ) + + cor0.col1 * cor0.col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - ( - col2 ) + - 66 FROM tab0
----
-33
-65
16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( 76 ) col2 FROM tab2, tab0 cor0, tab0 AS cor1
----
76

query I rowsort
SELECT DISTINCT col1 + cor0.col1 + + col0 FROM tab0 AS cor0
----
196
229
271

query I rowsort
SELECT ALL + 0 - col2 * col1 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT cor0.col0 * col2 + - col2 * 12 FROM tab1 AS cor0
----
-486
2964
6528

query I rowsort
SELECT DISTINCT + 67 * col1 + + 57 * + col1 AS col2 FROM tab0 AS cor0
----
10664
11284
12028

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2446
SELECT DISTINCT + + col0 * col1 + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2446
SELECT DISTINCT + + col0 * col1 + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2447
SELECT ALL + col2 * + col0 + col2 + col1 DIV - cor0.col0 FROM tab1 cor0
----
208
3705
7776

skipif mysql # not compatible
query I rowsort label-2447
SELECT ALL + col2 * + col0 + col2 + col1 / - cor0.col0 FROM tab1 cor0
----
208
3705
7776

query I rowsort
SELECT DISTINCT col0 * - 25 * cor0.col1 + col1 AS col2 FROM tab0 AS cor0
----
-202384
-51514
-84778

query I rowsort
SELECT ALL - col0 * 10 + + col0 AS col1 FROM tab1 AS cor0
----
-27
-576
-720

query I rowsort
SELECT + - col2 * 74 + - 79 AS col1 FROM tab1 AS cor0
----
-4075
-4297
-7183

query I rowsort
SELECT 83 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 + ( - 13 ) col2 FROM tab1 AS cor0
----
41
44
83

query I rowsort
SELECT DISTINCT + col1 + - 26 * col0 FROM tab1 AS cor0
----
-1654
-2067
-52

query I rowsort
SELECT + cor0.col0 - col0 * + 45 * cor0.col1 FROM tab1 AS cor0
----
-28736
-3507
-46720

query I rowsort
SELECT DISTINCT col1 + + col0 * - col2 FROM tab2
----
-158
-1969
-2985

query I rowsort
SELECT col1 - - cor0.col2 AS col1 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT + col2 - - 96 * cor0.col0 FROM tab1 AS cor0
----
342
6201
7776

query I rowsort
SELECT - cor0.col2 + - col1 * col1 AS col0 FROM tab2 AS cor0
----
-327
-3507
-988

query I rowsort
SELECT cor0.col0 * + 24 + + col2 * cor0.col2 AS col1 FROM tab1 AS cor0
----
11136
2988
4785

query I rowsort
SELECT cor1.col0 FROM tab2, tab2 cor0, tab0 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT DISTINCT - + 56 AS col2 FROM tab2 AS cor0
----
-56

query I rowsort
SELECT ALL - ( col2 ) * + col1 - 53 AS col1 FROM tab1 AS cor0
----
-1301
-1457
-623

query I rowsort
SELECT DISTINCT - 3 * + col1 AS col1 FROM tab1
----
-30
-39
-78

query I rowsort
SELECT DISTINCT ( col1 ) + col1 * - cor0.col0 * - 36 FROM tab2 AS cor0
----
165731
48365
7843

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 - col0 * cor0.col1 col1 FROM tab0 AS cor0
----
-1978
-3298
-8008

query I rowsort
SELECT DISTINCT - col1 + - 4 * col1 * col1 AS col0 FROM tab2 AS cor0
----
-1173
-13983
-3875

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 73 col1 FROM tab0 AS cor0
----
73
73
73

query I rowsort
SELECT DISTINCT 21 * col2 FROM tab1 cor0
----
1134
1197
2016

query I rowsort
SELECT - - 13 * + col0 + col1 FROM tab0 AS cor0
----
1248
398
552

query I rowsort
SELECT + - 23 AS col1 FROM tab1 AS cor0
----
-23
-23
-23

query I rowsort
SELECT + + col2 + - col2 * + cor0.col2 AS col0 FROM tab1 AS cor0
----
-2862
-3192
-9120

query I rowsort
SELECT DISTINCT + - 87 AS col1 FROM tab0 AS cor0
----
-87

query I rowsort
SELECT - 13 FROM tab1, tab1 AS cor0
----
9 values hashing to e95f5f4bd0f480397cced5f5e8a23792

query I rowsort
SELECT ALL - 3 FROM tab0, tab1 cor0
----
9 values hashing to 95b6b9b4aae5cc2d9545db9f8940b2dc

query I rowsort
SELECT DISTINCT + ( 93 ) FROM tab1
----
93

query I rowsort
SELECT cor0.col1 AS col1 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2477
SELECT - CAST( NULL AS SIGNED ) / - ( + col0 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2477
SELECT - CAST ( NULL AS INTEGER ) / - ( + col0 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ( - ( - col0 ) ) * - col0 + col0 AS col0 FROM tab0 AS cor0
----
-1190
-552
-7832

query I rowsort
SELECT col1 + + col2 * col1 FROM tab0
----
194
2924
7553

query I rowsort
SELECT DISTINCT + col2 * col0 + - col1 AS col0 FROM tab2 AS cor0
----
158
1969
2985

query IIIIII rowsort
SELECT ALL * FROM tab2, tab2 AS cor0 WHERE NOT ( - cor0.col1 ) <> NULL
----

query I rowsort
SELECT 15 + cor0.col1 FROM tab1 AS cor0
----
25
28
41

query I rowsort
SELECT ALL - - col1 + col1 AS col1 FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT DISTINCT - - col1 * - cor0.col2 AS col0 FROM tab1 cor0
----
-1248
-1404
-570

onlyif mysql # use DIV operator for integer division
query I rowsort label-2485
SELECT + col1 DIV - CAST( - col2 * col1 + + cor0.col1 AS SIGNED ) AS col2 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2485
SELECT + col1 / - CAST ( - col2 * col1 + + cor0.col1 AS INTEGER ) AS col2 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT - col2 + + col2 AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT + cor0.col0 + - cor0.col2 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 1c0f12b2ac8c8b522b92205460500f94

query I rowsort
SELECT ALL col2 * cor0.col2 - + cor0.col2 FROM tab2 AS cor0
----
1406
650
702

query I rowsort
SELECT ALL 93 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde

query I rowsort
SELECT col2 * + 56 + - col0 AS col1 FROM tab1 AS cor0
----
3021
3128
5296

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2491
SELECT - col1 + CAST( - 4 AS SIGNED ) FROM tab1 AS cor0
----
-14
-17
-30

skipif mysql # not compatible
query I rowsort label-2491
SELECT - col1 + CAST ( - 4 AS INTEGER ) FROM tab1 AS cor0
----
-14
-17
-30

query I rowsort
SELECT DISTINCT + - cor0.col2 - cor0.col1 AS col1 FROM tab0 AS cor0
----
-119
-173
-98

onlyif mysql # use DIV operator for integer division
query I rowsort label-2493
SELECT DISTINCT - cor0.col0 DIV 10 + + cor0.col2 AS col1 FROM tab1 AS cor0
----
51
54
88

skipif mysql # not compatible
query I rowsort label-2493
SELECT DISTINCT - cor0.col0 / 10 + + cor0.col2 AS col1 FROM tab1 AS cor0
----
51
54
88

query I rowsort
SELECT ALL - + 45 * - col1 AS col2 FROM tab2 AS cor0
----
1395
2655
765

query I rowsort
SELECT DISTINCT - - col0 * 72 + col1 FROM tab0 cor0
----
1814
2617
6499

onlyif mysql # use DIV operator for integer division
query I rowsort label-2496
SELECT DISTINCT - 1 DIV cor0.col1 + col2 col1 FROM tab0 AS cor0
----
1
33
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2496
SELECT DISTINCT - 1 / cor0.col1 + col2 col1 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT ALL 14 * col2 FROM tab1 AS cor0
----
1344
756
798

onlyif mysql # use DIV operator for integer division
query I rowsort label-2498
SELECT DISTINCT - 38 DIV cor0.col0 FROM tab1 AS cor0
----
-12
0

skipif mysql # not compatible
query I rowsort label-2498
SELECT DISTINCT - 38 / cor0.col0 FROM tab1 AS cor0
----
-12
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 + 88 col2 FROM tab0 cor0
----
174
179
185

query I rowsort
SELECT DISTINCT col0 * - 52 - - cor0.col2 FROM tab2 AS cor0
----
-337
-4030
-4070

query I rowsort
SELECT 7 * ( cor0.col1 ) FROM tab0 AS cor0
----
602
637
679

query I rowsort
SELECT DISTINCT + ( + 34 ) + col2 AS col1 FROM tab0 AS cor0
----
116
35
67

query I rowsort
SELECT + ( 70 ) * + col2 FROM tab2 AS cor0
----
1820
1890
2660

query I rowsort
SELECT DISTINCT + 30 * col0 + - col0 * 73 + + col1 FROM tab1 AS cor0
----
-103
-2742
-3427

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2505
SELECT DISTINCT 12 + - ( - col2 ) + CAST( + 24 AS SIGNED ) * col2 * cor0.col2 FROM tab0 AS cor0
----
161470
26181
37

skipif mysql # not compatible
query I rowsort label-2505
SELECT DISTINCT 12 + - ( - col2 ) + CAST ( + 24 AS INTEGER ) * col2 * cor0.col2 FROM tab0 AS cor0
----
161470
26181
37

query I rowsort
SELECT ( - 28 ) + - cor0.col0 AS col2 FROM tab1 AS cor0
----
-108
-31
-92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + col1 * ( col1 ) * col2 + ( - col0 ) col1 FROM tab1 AS cor0
----
16157
36527
5646

onlyif mysql # use DIV operator for integer division
query I rowsort label-2508
SELECT - col2 + + col1 + + 32 DIV cor0.col0 col0 FROM tab1 cor0
----
-18
-47
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2508
SELECT - col2 + + col1 + + 32 / cor0.col0 col0 FROM tab1 cor0
----
-18
-47
-83

query I rowsort
SELECT 45 * - cor0.col1 * col2 FROM tab2 AS cor0
----
-29070
-37665
-69030

query I rowsort
SELECT 72 + - col2 * 0 * + col0 AS col2 FROM tab1 AS cor0
----
72
72
72

query I rowsort
SELECT - 28 + - col0 * - ( - col1 + - col1 ) * 88 FROM tab0 AS cor0
----
-1425452
-363292
-597548

query I rowsort
SELECT ALL tab2.col1 * + ( col2 ) FROM tab2
----
1534
646
837

query I rowsort
SELECT + cor0.col1 * - col2 + + col2 AS col1 FROM tab2 AS cor0
----
-1508
-608
-810

query I rowsort
SELECT + + col0 + - cor0.col0 FROM tab0 cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - col2 col0 FROM tab2 AS cor0
----
-52
-54
-76

query I rowsort
SELECT DISTINCT - + 97 * col1 FROM tab0 AS cor0
----
-8342
-8827
-9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 61 col0 FROM tab1
----
61
61
61

onlyif mysql # use DIV operator for integer division
query I rowsort label-2518
SELECT 1 DIV col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2518
SELECT 1 / col1 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 + col2 * col0 col0 FROM tab2 AS cor0
----
182
1950
2923

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 85 + col0 * - col1 col0 FROM tab2 AS cor0
----
-1258
-132
-4517

onlyif mysql # use DIV operator for integer division
query I rowsort label-2521
SELECT 11 DIV - col1 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2521
SELECT 11 / - col1 AS col2 FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - ( - col2 ) col0 FROM tab1
----
1248
1404
570

query I rowsort
SELECT DISTINCT - ( - col2 ) + - col2 * - tab1.col2 AS col0 FROM tab1
----
2970
3306
9312

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2524
SELECT ALL CAST( - col2 AS SIGNED ) + col1 col0 FROM tab0
----
53
9
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2524
SELECT ALL CAST ( - col2 AS INTEGER ) + col1 col0 FROM tab0
----
53
9
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-2525
SELECT ALL + CAST( col2 AS SIGNED ) DIV + col1 + col0 * col2 AS col1 FROM tab1
----
164
3653
7687

skipif mysql # not compatible
query I rowsort label-2525
SELECT ALL + CAST ( col2 AS INTEGER ) / + col1 + col0 * col2 AS col1 FROM tab1
----
164
3653
7687

query I rowsort
SELECT DISTINCT 81 FROM tab2, tab0 AS cor0
----
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-2527
SELECT ALL ( - col1 ) * + col0 + col0 DIV col2 FROM tab1 AS cor0
----
-1040
-639
-78

skipif mysql # not compatible
query I rowsort label-2527
SELECT ALL ( - col1 ) * + col0 + col0 / col2 FROM tab1 AS cor0
----
-1040
-639
-78

onlyif mysql # use DIV operator for integer division
query I rowsort label-2528
SELECT DISTINCT 59 DIV col1 + col1 * - col2 FROM tab1 AS cor0
----
-1244
-1402
-565

skipif mysql # not compatible
query I rowsort label-2528
SELECT DISTINCT 59 / col1 + col1 * - col2 FROM tab1 AS cor0
----
-1244
-1402
-565

query I rowsort
SELECT ALL - 7 + + col0 * + col1 AS col1 FROM tab2 AS cor0
----
1336
210
4595

query I rowsort
SELECT 61 * col2 - col0 * cor0.col0 * col1 FROM tab2 AS cor0
----
-103779
-357370
128

query I rowsort
SELECT + col2 - col2 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - col2 * + cor0.col2 + col2 AS col2 FROM tab2 AS cor0
----
-1406
-650
-702

onlyif mysql # use DIV operator for integer division
query I rowsort label-2533
SELECT - col0 + - col2 DIV col2 FROM tab0 AS cor0
----
-25
-36
-90

skipif mysql # not compatible
query I rowsort label-2533
SELECT - col0 + - col2 / col2 FROM tab0 AS cor0
----
-25
-36
-90

query I rowsort
SELECT DISTINCT col0 * col2 + col0 * - col2 AS col2 FROM tab2 cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( col1 ) * col0 col1 FROM tab0 AS cor0
----
2064
3395
8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + col0 + col0 col0 FROM tab2 AS cor0
----
196
2106
3081

query I rowsort
SELECT ALL + cor0.col2 + - cor0.col2 - col1 * + col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT DISTINCT tab2.col0 + + 80 * col2 * + col2 AS col2 FROM tab2
----
115599
54158
58327

query I rowsort
SELECT col2 + + col1 + tab0.col1 FROM tab0
----
195
205
264

query I rowsort
SELECT DISTINCT + col1 + tab1.col0 * col2 * + col2 FROM tab1
----
207946
737293
8774

onlyif mysql # use DIV operator for integer division
query I rowsort label-2541
SELECT + col1 + col2 DIV + col0 + col1 FROM tab1
----
20
27
70

skipif mysql # not compatible
query I rowsort label-2541
SELECT + col1 + col2 / + col0 + col1 FROM tab1
----
20
27
70

query I rowsort
SELECT - col0 * + col2 + col2 * col0 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - ( + 76 ) * tab0.col1 + + tab0.col2 AS col1 FROM tab0
----
-6503
-6834
-7371

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2544
SELECT DISTINCT CAST( col2 AS SIGNED ) * + col1 * tab0.col0 + + col1 AS col0 FROM tab0
----
3492
664209
68198

skipif mysql # not compatible
query I rowsort label-2544
SELECT DISTINCT CAST ( col2 AS INTEGER ) * + col1 * tab0.col0 + + col1 AS col0 FROM tab0
----
3492
664209
68198

query I rowsort
SELECT - col0 + + col2 - - col2 FROM tab1
----
105
112
50

query I rowsort
SELECT 76 * + col1 FROM tab2
----
1292
2356
4484

onlyif mysql # use DIV operator for integer division
query I rowsort label-2547
SELECT DISTINCT - col0 DIV + ( + col2 + col1 ) AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2547
SELECT DISTINCT - col0 / + ( + col2 + col1 ) AS col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL - col1 * + cor0.col2 AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT col2 - + col2 AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT - 11 AS col1 FROM tab2
----
-11

query I rowsort
SELECT ALL - + cor0.col2 * col2 * ( - col2 + - col1 ) FROM tab0 AS cor0
----
1163252
129591
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-2552
SELECT ALL + col1 + - ( + col1 ) DIV col2 FROM tab1 AS cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-2552
SELECT ALL + col1 + - ( + col1 ) / col2 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT col0 + col0 * + 94 AS col2 FROM tab0 AS cor0
----
2280
3325
8455

query I rowsort
SELECT DISTINCT - col2 * + col1 * - col0 + col0 FROM tab1 AS cor0
----
36544
4215
99920

query I rowsort
SELECT col0 + - 2 * col0 FROM tab2
----
-7
-78
-79

query I rowsort
SELECT + cor0.col2 * + cor0.col0 FROM tab2, tab2 cor0
----
9 values hashing to 41d4c126bfd4bfab59ba5e83427c98e0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2557
SELECT + - CAST( NULL AS SIGNED ) * 44 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-2557
SELECT + - CAST ( NULL AS INTEGER ) * 44 col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 61 AS col0 FROM tab2, tab2 cor0
----
9 values hashing to 07149905a72bd87553381f34d19ed290

query I rowsort
SELECT col0 * ( ( col1 ) + - col2 ) FROM tab1 cor0
----
-3008
-6640
-84

onlyif mysql # use DIV operator for integer division
query I rowsort label-2560
SELECT + + cor0.col0 DIV + col0 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2560
SELECT + + cor0.col0 / + col0 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT - col0 FROM tab2 WHERE ( - col0 ) IN ( tab2.col2 + + col1 * col0 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL = + col1 - col0
----

query I rowsort
SELECT - tab1.col0 + cor0.col0 FROM tab2, tab1 AS cor0 CROSS JOIN tab1
----
27 values hashing to e8dd2959e2228f8723e3078da7a875e6

query I rowsort
SELECT ALL - - col1 + col2 * + col1 FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT + col1 + + col1 * - col1 * - col1 AS col2 FROM tab2 cor0
----
205438
29822
4930

query I rowsort
SELECT ALL + tab1.col1 * col0 / tab1.col0 FROM tab1 WHERE - col1 IN ( + col1 )
----

query I rowsort
SELECT ALL - + col2 + col0 * col2 AS col2 FROM tab1 AS cor0
----
108
3591
7584

onlyif mysql # use DIV operator for integer division
query I rowsort label-2568
SELECT ALL col0 + col0 DIV + col0 AS col0 FROM tab0
----
25
36
90

skipif mysql # not compatible
query I rowsort label-2568
SELECT ALL col0 + col0 / + col0 AS col0 FROM tab0
----
25
36
90

query I rowsort
SELECT DISTINCT - cor0.col0 + + col1 * - col0 AS col1 FROM tab1 AS cor0
----
-1120
-704
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 6 * + col1 + - cor0.col1 * - col0 col0 FROM tab0 cor0
----
2580
3977
8645

query I rowsort
SELECT - + col2 + + col2 * col2 FROM tab2 AS cor0
----
1406
650
702

query I rowsort
SELECT ALL - col1 + - col2 * - cor0.col0 FROM tab2 AS cor0
----
158
1969
2985

query I rowsort
SELECT DISTINCT + col2 + cor0.col1 FROM tab0 cor0
----
119
173
98

query I rowsort
SELECT DISTINCT ( + col1 ) * + col0 + + col0 * cor0.col1 * + col0 AS col1 FROM tab2 AS cor0
----
107440
1736
363558

query I rowsort
SELECT ALL - col2 * cor0.col1 + cor0.col2 FROM tab0 AS cor0
----
-2805
-7380
-96

query I rowsort
SELECT DISTINCT - - col1 + col0 FROM tab2 cor0
----
137
38
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col0 + + col2 col1 FROM tab1 AS cor0
----
-4039
-6304
45

query I rowsort
SELECT DISTINCT - col0 * tab1.col2 AS col2 FROM tab1
----
-162
-3648
-7680

query I rowsort
SELECT tab0.col1 * + tab0.col2 + - col1 FROM tab0 WHERE NOT - col1 - + col0 <> NULL AND + col0 NOT BETWEEN - col2 * col2 AND NULL
----

query I rowsort
SELECT DISTINCT col0 + - col1 * col1 FROM tab2 cor0
----
-210
-3403
-954

query I rowsort
SELECT - col2 * - col1 * cor0.col1 AS col1 FROM tab1 AS cor0
----
16224
36504
5700

query I rowsort
SELECT 60 * + col0 FROM tab1 AS cor0
----
180
3840
4800

query I rowsort
SELECT ALL + 52 - col0 * col0 AS col1 FROM tab1 AS cor0
----
-4044
-6348
43

query I rowsort
SELECT DISTINCT - 52 + - col1 FROM tab1 AS cor0
----
-62
-65
-78

query I rowsort
SELECT ALL - + col2 * + cor0.col0 - - col2 AS col0 FROM tab2 AS cor0
----
-162
-2002
-2964

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT cor0.col1 * - CAST ( col1 AS REAL ) + + col2 AS col2 FROM tab0 AS cor0
----
-7363
-8199
-9408

query I rowsort
SELECT + - col2 + ( cor0.col0 ) FROM tab1 cor0
----
-16
-51
7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2588
SELECT DISTINCT col0 * CAST( NULL AS SIGNED ) - - col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2588
SELECT DISTINCT col0 * CAST ( NULL AS INTEGER ) - - col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2589
SELECT ALL - col0 + 28 DIV - 94 FROM tab2 AS cor0
----
-7
-78
-79

skipif mysql # not compatible
query I rowsort label-2589
SELECT ALL - col0 + 28 / - 94 FROM tab2 AS cor0
----
-7
-78
-79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2590
SELECT DISTINCT - + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-2590
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

query I rowsort
SELECT col2 * col2 + col2 * + ( + col2 ) + + col2 FROM tab1 AS cor0
----
18528
5886
6555

query I rowsort
SELECT - - col1 * col2 * col1 + col0 FROM tab0 AS cor0
----
244092
679131
9444

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2593
SELECT DISTINCT CAST( NULL AS DECIMAL ) * col0 * tab0.col2 col0 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2593
SELECT DISTINCT CAST ( NULL AS REAL ) * col0 * tab0.col2 col0 FROM tab0
----
NULL

query I rowsort
SELECT ( - 65 * col0 + - col0 ) AS col0 FROM tab0
----
-1584
-2310
-5874

query I rowsort
SELECT ALL ( - ( col2 ) ) AS col2 FROM tab1
----
-54
-57
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * 21 * col0 col1 FROM tab0
----
-12096
-166341
-25725

query I rowsort
SELECT DISTINCT ( + col1 ) * col0 AS col2 FROM tab2
----
1343
217
4602

query I rowsort
SELECT ALL 8 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 33069adc3c1142d31511ec88fcfa40af

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 col1 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
3
64
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-2600
SELECT col2 * tab1.col0 - - col1 DIV + col0 AS col0 FROM tab1
----
170
3648
7680

skipif mysql # not compatible
query I rowsort label-2600
SELECT col2 * tab1.col0 - - col1 / + col0 AS col0 FROM tab1
----
170
3648
7680

query I rowsort
SELECT + col1 * - 94 * + col2 - - ( - col2 ) FROM tab0
----
-266805
-701510
-9119

query I rowsort
SELECT DISTINCT - cor0.col0 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
-24
-35
-89

query I rowsort
SELECT + col2 + 78 FROM tab1 AS cor0
----
132
135
174

onlyif mysql # use DIV operator for integer division
query I rowsort label-2604
SELECT DISTINCT col2 * 26 DIV - col0 FROM tab2
----
-100
-12
-8

skipif mysql # not compatible
query I rowsort label-2604
SELECT DISTINCT col2 * 26 / - col0 FROM tab2
----
-100
-12
-8

onlyif mysql # use DIV operator for integer division
query I rowsort label-2605
SELECT col1 DIV col2 + col2 AS col2 FROM tab1
----
54
57
96

skipif mysql # not compatible
query I rowsort label-2605
SELECT col1 / col2 + col2 AS col2 FROM tab1
----
54
57
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-2606
SELECT DISTINCT - - col1 DIV col1 AS col1 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2606
SELECT DISTINCT - - col1 / col1 AS col1 FROM tab2 AS cor0
----
1

query I rowsort
SELECT ALL + 47 + col1 * + col1 AS col2 FROM tab2
----
1008
336
3528

query I rowsort
SELECT col0 * col0 + - col2 AS col0 FROM tab0
----
1224
543
7839

query I rowsort
SELECT tab2.col2 + - col0 * ( - tab2.col0 ) FROM tab2
----
6110
6279
76

query I rowsort
SELECT ALL - 20 * col0 FROM tab2 AS cor0
----
-140
-1560
-1580

query I rowsort
SELECT cor0.col0 AS col0 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT - + cor0.col2 * - col2 * - 32 + - col2 FROM tab0 AS cor0
----
-215250
-33
-34881

query I rowsort
SELECT DISTINCT - 14 * + col0 AS col2 FROM tab1 AS cor0
----
-1120
-42
-896

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 - 61 col2 FROM tab2
----
-54
17
18

query I rowsort
SELECT - col1 * + col2 + - col2 + col0 FROM tab2
----
-1482
-605
-857

onlyif mysql # use DIV operator for integer division
query I rowsort label-2616
SELECT DISTINCT - col1 DIV + col2 - + col0 * + tab0.col1 FROM tab0
----
-2066
-3492
-8100

skipif mysql # not compatible
query I rowsort label-2616
SELECT DISTINCT - col1 / + col2 - + col0 * + tab0.col1 FROM tab0
----
-2066
-3492
-8100

onlyif mysql # use DIV operator for integer division
query I rowsort label-2617
SELECT DISTINCT col2 DIV col2 - + col2 AS col0 FROM tab1
----
-53
-56
-95

skipif mysql # not compatible
query I rowsort label-2617
SELECT DISTINCT col2 / col2 - + col2 AS col0 FROM tab1
----
-53
-56
-95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 * col0 + - cor0.col2 col0 FROM tab0 AS cor0
----
-36
-7380
-825

query I rowsort
SELECT DISTINCT - col0 - - ( + col0 ) AS col2 FROM tab2
----
0

query I rowsort
SELECT + ( col2 ) + + col1 * + col2 * col1 FROM tab1 AS cor0
----
16320
36558
5757

query I rowsort
SELECT - cor0.col1 + col1 * - col0 FROM tab2 AS cor0
----
-1360
-248
-4661

query I rowsort
SELECT - 11 + 25 * - col0 AS col0 FROM tab1 AS cor0
----
-1611
-2011
-86

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2623
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + col2 + col2 + cor0.col0 * col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2623
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + col2 + col2 + cor0.col0 * col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL col0 - - col1 AS col2 FROM tab2 cor0
----
137
38
96

query I rowsort
SELECT DISTINCT + 75 FROM tab1, tab0 cor0
----
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 81 - - cor0.col2 * cor0.col2 col1 FROM tab1 AS cor0
----
2997
3330
9297

query I rowsort
SELECT ALL - cor0.col0 * col1 + - col2 FROM tab2 AS cor0
----
-1381
-244
-4628

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + col2 * col0 * col2 col1 FROM tab2 AS cor0
----
114114
5130
52754

onlyif mysql # use DIV operator for integer division
query I rowsort label-2629
SELECT DISTINCT 53 DIV + 21 AS col1 FROM tab0 cor0
----
2

skipif mysql # not compatible
query I rowsort label-2629
SELECT DISTINCT 53 / + 21 AS col1 FROM tab0 cor0
----
2

query I rowsort
SELECT ALL - 92 + + col2 FROM tab0 AS cor0
----
-10
-59
-91

query I rowsort
SELECT 71 * - ( - col2 * col0 ) + - col2 + + col2 * cor0.col0 AS col2 FROM tab2 AS cor0
----
13581
145990
216106

query I rowsort
SELECT - + col2 + - cor0.col0 * col1 AS col1 FROM tab1 AS cor0
----
-1136
-132
-697

query I rowsort
SELECT DISTINCT col2 * cor0.col1 + cor0.col0 FROM tab0 AS cor0
----
132
2862
7551

query I rowsort
SELECT ALL 67 + + cor0.col2 FROM tab1 AS cor0
----
121
124
163

query I rowsort
SELECT - col2 + col2 * col0 + col1 FROM tab2 AS cor0
----
193
2061
2981

query I rowsort
SELECT DISTINCT + ( col2 ) * + cor0.col0 + ( cor0.col0 ) AS col1 FROM tab2 AS cor0
----
196
2106
3081

query I rowsort
SELECT ( - 12 ) + col1 + cor0.col0 FROM tab0 AS cor0
----
120
168
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-2638
SELECT ALL + cor0.col1 DIV + 27 + 33 + col2 * + 9 * + cor0.col1 FROM tab2 AS cor0
----
13841
5847
7567

skipif mysql # not compatible
query I rowsort label-2638
SELECT ALL + cor0.col1 / + 27 + 33 + col2 * + 9 * + cor0.col1 FROM tab2 AS cor0
----
13841
5847
7567

query I rowsort
SELECT ALL + col2 + 57 * col1 * col1 AS col2 FROM tab1 AS cor0
----
38586
5757
9729

query I rowsort
SELECT DISTINCT cor0.col0 * - col0 FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT ALL - ( + cor0.col0 ) AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 76 + cor0.col0 col1 FROM tab1 AS cor0
----
140
156
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-2643
SELECT + + 45 DIV 34 - + col0 FROM tab2 AS cor0
----
-6
-77
-78

skipif mysql # not compatible
query I rowsort label-2643
SELECT + + 45 / 34 - + col0 FROM tab2 AS cor0
----
-6
-77
-78

query I rowsort
SELECT ALL col1 * col2 * col0 AS col2 FROM tab1 AS cor0
----
36480
4212
99840

query I rowsort
SELECT ALL - - 30 * - ( col2 ) * - col1 FROM tab2 AS cor0
----
19380
25110
46020

query I rowsort
SELECT DISTINCT col1 * col1 + col1 AS col1 FROM tab2 AS cor0
----
306
3540
992

query I rowsort
SELECT DISTINCT - ( 85 ) + - cor0.col2 AS col1 FROM tab2 AS cor0
----
-111
-112
-123

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 40 - + col0 * col0 col1 FROM tab0 AS cor0
----
-1185
-536
-7881

query I rowsort
SELECT - + cor0.col0 + + 34 * - col2 FROM tab0 AS cor0
----
-1146
-2877
-69

query I rowsort
SELECT - 41 * col1 - col0 FROM tab1 AS cor0
----
-1069
-474
-613

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2651
SELECT DISTINCT - CAST( NULL AS DECIMAL ) + col0 * - col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2651
SELECT DISTINCT - CAST ( NULL AS REAL ) + col0 * - col0 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 44 * col2 col0 FROM tab2 AS cor0
----
1144
1188
1672

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( 24 ) col1 FROM tab2 cor0
----
24
24
24

query I rowsort
SELECT + 57 + col1 * - col1 AS col0 FROM tab0 AS cor0
----
-7339
-8224
-9352

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2655
SELECT DISTINCT - - CAST( NULL AS SIGNED ) + col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2655
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) + col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL 78 AS col1 FROM tab1 AS cor0
----
78
78
78

query I rowsort
SELECT + - col2 * cor0.col0 AS col1 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT DISTINCT + 74 AS col2 FROM tab1 AS cor0
----
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 53 * col0 + + col2 col1 FROM tab1 cor0
----
-105
-3335
-4144

query I rowsort
SELECT DISTINCT + - 5 * col1 AS col2 FROM tab0 AS cor0
----
-430
-455
-485

query I rowsort
SELECT ALL + col0 * col1 + - ( col0 ) * + col1 + + col2 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT + - col1 * + cor0.col1 + cor0.col1 AS col1 FROM tab2 AS cor0
----
-272
-3422
-930

onlyif mysql # use DIV operator for integer division
query I rowsort label-2663
SELECT ALL + col0 * col1 + 26 DIV + col0 FROM tab1 AS cor0
----
1040
640
86

skipif mysql # not compatible
query I rowsort label-2663
SELECT ALL + col0 * col1 + 26 / + col0 FROM tab1 AS cor0
----
1040
640
86

query I rowsort
SELECT ALL - 9 + col2 * - col1 AS col2 FROM tab1 AS cor0
----
-1257
-1413
-579

query I rowsort
SELECT ALL + - col0 - + col2 AS col1 FROM tab1 AS cor0
----
-121
-176
-57

query I rowsort
SELECT DISTINCT - 56 + col1 AS col1 FROM tab2 AS cor0
----
-25
-39
3

query I rowsort
SELECT ALL + - 73 - - col0 FROM tab0 AS cor0
----
-38
-49
16

query I rowsort
SELECT + col0 + col1 * 43 AS col0 FROM tab1 AS cor0
----
1121
494
639

query I rowsort
SELECT DISTINCT ( - col2 ) * + cor0.col2 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT DISTINCT - cor0.col0 + + col0 AS col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT tab2.col1 * - col0 * tab2.col2 FROM tab2
----
-119652
-51034
-5859

query I rowsort
SELECT col2 + + ( - col1 ) * cor0.col1 AS col1 FROM tab0 AS cor0
----
-7363
-8199
-9408

query I rowsort
SELECT col2 * - col2 + + cor0.col2 * cor0.col0 + - 89 * + col2 AS col2 FROM tab2 AS cor0
----
-1824
-2943
-962

query I rowsort
SELECT - col1 * 88 FROM tab0 AS cor0
----
-7568
-8008
-8536

onlyif mysql # use DIV operator for integer division
query I rowsort label-2675
SELECT DISTINCT + + col1 DIV + 95 AS col1 FROM tab0 cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-2675
SELECT DISTINCT + + col1 / + 95 AS col1 FROM tab0 cor0
----
0
1

query I rowsort
SELECT - col0 * + ( - col0 + col2 ) FROM tab2 cor0
----
-140
3239
4056

query I rowsort
SELECT ALL - col0 + - ( cor0.col2 ) * + col1 FROM tab0 AS cor0
----
-132
-2862
-7551

query I rowsort
SELECT + col2 * 22 AS col1 FROM tab1 cor0
----
1188
1254
2112

query I rowsort
SELECT - cor0.col1 * 16 * col2 + col2 FROM tab0 AS cor0
----
-119310
-1551
-45375

query I rowsort
SELECT ALL + + col1 * 54 + 16 FROM tab2 AS cor0
----
1690
3202
934

query I rowsort
SELECT - col2 + ( - col2 ) + - col2 * + cor0.col0 AS col0 FROM tab2 cor0
----
-2080
-243
-3078

query I rowsort
SELECT DISTINCT + 6 + - col0 FROM tab1
----
-58
-74
3

query I rowsort
SELECT - + col2 * - col0 * - ( col2 ) + + ( + 12 + col0 ) * + col1 * col2 AS col0 FROM tab0 AS cor0
----
155226
4524
76032

query I rowsort
SELECT DISTINCT col0 * ( + 13 ) AS col0 FROM tab2
----
1014
1027
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - 7 col2 FROM tab1 AS cor0
----
182
70
91

query I rowsort
SELECT + cor0.col2 * 26 FROM tab2, tab0 AS cor0
----
9 values hashing to 461c22d854be0001e8f8005306ff5d99

skipif mysql # not compatible
query I rowsort
SELECT ALL col0 * CAST ( col1 AS REAL ) AS col2 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT ALL - 2 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to ec11209ab257030053484fc13a1f6d17

query I rowsort
SELECT - 51 + col1 FROM tab2 AS cor0
----
-20
-34
8

query I rowsort
SELECT + + cor0.col0 - - col0 AS col2 FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT DISTINCT tab1.col2 * 82 + - col1 * + ( col1 ) AS col2 FROM tab1
----
3752
4574
7703

query I rowsort
SELECT - 78 * + cor0.col0 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to e60fc34518a0ae53f07f2224a0e2af55

query I rowsort
SELECT ALL - 99 * col0 FROM tab0
----
-2376
-3465
-8811

onlyif mysql # use DIV operator for integer division
query I rowsort label-2694
SELECT ALL 4 DIV - col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2694
SELECT ALL 4 / - col1 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT + cor0.col0 + 12 AS col2 FROM tab2, tab2 AS cor0
----
19
90
91

query I rowsort
SELECT ALL + col2 + col1 + - 76 AS col0 FROM tab2
----
-18
-21
9

query I rowsort
SELECT + - 12 * col2 * + col0 FROM tab2 AS cor0
----
-2268
-24336
-36024

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2698
SELECT + + 27 * col2 * - ( - col2 ) + + col0 * - CAST( - col0 AS SIGNED ) + col2 FROM tab0 AS cor0
----
1253
189551
30012

skipif mysql # not compatible
query I rowsort label-2698
SELECT + + 27 * col2 * - ( - col2 ) + + col0 * - CAST ( - col0 AS INTEGER ) + col2 FROM tab0 AS cor0
----
1253
189551
30012

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT BETWEEN ( NULL ) AND ( + col1 )
----

query I rowsort
SELECT DISTINCT - col0 * col1 * col2 FROM tab1
----
-36480
-4212
-99840

query I rowsort
SELECT col0 + - tab0.col1 + + tab0.col1 * col2 AS col2 FROM tab0
----
2776
35
7460

query I rowsort
SELECT col1 * - col0 * + tab1.col1 + - col0 * col2 + col1 AS col1 FROM tab1
----
-10038
-21187
-2164

query I rowsort
SELECT ALL + tab0.col0 + col2 - col2 AS col1 FROM tab0
----
24
35
89

query I rowsort
SELECT col0 * - col1 * - col0 AS col1 FROM tab1 WHERE NULL NOT IN ( col0 + + col2 )
----

query I rowsort
SELECT DISTINCT col1 * + tab1.col2 * col2 - + col2 * - col0 AS col0 FROM tab1
----
127488
36138
75978

query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab1 WHERE ( NULL ) < ( - col1 - + col2 )
----

query III rowsort
SELECT * FROM tab2 WHERE NULL IN ( + col2 + + col1 )
----

query I rowsort
SELECT DISTINCT col1 * + col1 - tab1.col1 AS col2 FROM tab1
----
156
650
90

query I rowsort
SELECT ALL - tab2.col2 * + col2 FROM tab2
----
-1444
-676
-729

query I rowsort
SELECT col1 * + col2 + + col1 AS col0 FROM tab0
----
194
2924
7553

onlyif mysql # use DIV operator for integer division
query I rowsort label-2711
SELECT + col2 DIV col2 col2 FROM tab0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2711
SELECT + col2 / col2 col2 FROM tab0
----
1
1
1

query I rowsort
SELECT DISTINCT + col0 + col0 - col1 FROM tab1
----
-20
118
147

query I rowsort
SELECT ALL cor0.col1 + cor0.col0 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to d994d266bacb99d3939b70b2c7903ce8

query I rowsort
SELECT DISTINCT + col1 + + col2 * + col2 AS col2 FROM tab2 cor0
----
1461
735
760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * col2 + col1 * col0 col2 FROM tab0
----
15561
3492
4902

query I rowsort
SELECT DISTINCT cor0.col2 + - col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT - col2 + col1 * - cor0.col2 AS col1 FROM tab0 AS cor0
----
-2871
-7544
-98

query I rowsort
SELECT - col1 * - col2 * - col0 + - col1 AS col1 FROM tab1 AS cor0
----
-36490
-4238
-99853

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 - - col0 col0 FROM tab1
----
128
160
6

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col1 + col2 IN ( - col0 + - col1 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

query I rowsort
SELECT - col0 * - col2 * + col2 FROM tab0
----
26136
35
598436

query I rowsort
SELECT DISTINCT - col0 * + tab2.col2 * + col0 FROM tab2
----
-1323
-158184
-237158

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + - tab1.col1 col0 FROM tab1
----
-109
-67
-80

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL BETWEEN NULL AND NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-2725
SELECT DISTINCT + col2 * col1 DIV col1 + - col2 * col1 AS col0 FROM tab1
----
-1152
-1350
-513

skipif mysql # not compatible
query I rowsort label-2725
SELECT DISTINCT + col2 * col1 / col1 + - col2 * col1 AS col0 FROM tab1
----
-1152
-1350
-513

query I rowsort
SELECT ALL col1 * col0 * col1 FROM tab0 WHERE NOT col1 <= NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-2727
SELECT - col1 DIV col0 + col2 FROM tab2
----
23
26
38

skipif mysql # not compatible
query I rowsort label-2727
SELECT - col1 / col0 + col2 FROM tab2
----
23
26
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col1 + - col1 * col1 * col2 col1 FROM tab0
----
-242004
-6014
-670943

query III rowsort
SELECT ALL * FROM tab2 WHERE col0 IN ( col2 )
----

query I rowsort
SELECT DISTINCT - ( - col1 ) AS col0 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT + 34 + + cor0.col2 FROM tab0 AS cor0
----
116
35
67

query I rowsort
SELECT col1 * + col1 + + col2 FROM tab2 AS cor0
----
327
3507
988

query I rowsort
SELECT ALL - ( col0 ) + + col2 AS col0 FROM tab1 AS cor0
----
-7
16
51

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 - col0 * - tab0.col2 + tab0.col2 - + col1 col1 FROM tab0
----
-61
7289
739

query I rowsort
SELECT ALL - - ( + col2 ) + col0 * - 98 FROM tab0 AS cor0
----
-2319
-3429
-8640

onlyif mysql # use DIV operator for integer division
query I rowsort label-2737
SELECT col1 DIV 36 AS col2 FROM tab0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-2737
SELECT col1 / 36 AS col2 FROM tab0
----
2
2
2

query I rowsort
SELECT DISTINCT + col1 * - col1 + + col1 FROM tab2
----
-272
-3422
-930

query I rowsort
SELECT ( col1 ) * + col0 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT ( 70 + col2 ) FROM tab1
----
124
127
166

query I rowsort
SELECT ALL - col0 * 27 + col1 + + col0 * - 56 FROM tab1
----
-223
-5302
-6627

query I rowsort
SELECT + 21 * - 67 FROM tab0
----
-1407
-1407
-1407

query I rowsort
SELECT DISTINCT col1 + - 71 AS col1 FROM tab1
----
-45
-58
-61

query I rowsort
SELECT ALL + col0 + 89 FROM tab0 AS cor0
----
113
124
178

query I rowsort
SELECT DISTINCT - col2 * + 13 * - col1 + cor0.col1 AS col1 FROM tab0 cor0
----
1358
36980
97097

query I rowsort
SELECT ALL + - col1 + col0 + cor0.col0 AS col0 FROM tab2 AS cor0
----
-17
141
97

query I rowsort
SELECT ALL - col2 * tab0.col0 * - col2 AS col0 FROM tab0
----
26136
35
598436

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab1.col1 col2 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6

query I rowsort
SELECT cor0.col1 * ( 71 ) AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to f5a86f1c31aa425cec3174d68a2ecc19

query I rowsort
SELECT - col1 + - 13 FROM tab2 AS cor0
----
-30
-44
-72

onlyif mysql # use DIV operator for integer division
query I rowsort label-2751
SELECT - col1 DIV 30 AS col0 FROM tab2 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-2751
SELECT - col1 / 30 AS col0 FROM tab2 AS cor0
----
-1
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + 65 + - col2 col2 FROM tab1 AS cor0
----
-15
-2
-44

query I rowsort
SELECT DISTINCT - col1 * + col1 * + ( col1 ) AS col2 FROM tab1 AS cor0
----
-1000
-17576
-2197

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - col2 col1 FROM tab1 cor0
----
-2916
-3249
-9216

query I rowsort
SELECT - + col2 + col1 + - ( - col0 + - col1 ) FROM tab2 AS cor0
----
170
42
75

query I rowsort
SELECT - + cor0.col1 + - col0 FROM tab1 AS cor0
----
-29
-74
-93

onlyif mysql # use DIV operator for integer division
query I rowsort label-2757
SELECT DISTINCT 42 DIV - cor0.col2 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
-1
-42
0

skipif mysql # not compatible
query I rowsort label-2757
SELECT DISTINCT 42 / - cor0.col2 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
-1
-42
0

query I rowsort
SELECT + 60 + + col2 * - cor0.col0 FROM tab2 AS cor0
----
-129
-1968
-2942

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 col1 FROM tab0, tab1 AS cor0 CROSS JOIN tab1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT DISTINCT tab2.col1 + - col2 AS col2 FROM tab2
----
-21
33
4

query I rowsort
SELECT 27 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 1a3cef5c33b8f87ffeded378fd207753

query I rowsort
SELECT + 21 * col0 + 50 FROM tab1
----
113
1394
1730

query I rowsort
SELECT - 70 AS col2 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to c2a2994a4e94583683ccda2cc098c58f

query I rowsort
SELECT DISTINCT - col1 * - col1 - + 6 FROM tab1 AS cor0
----
163
670
94

query I rowsort
SELECT ALL + col2 + col1 * ( + cor0.col2 ) AS col2 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT ( - col1 ) + + 39 * ( col1 + - 57 ) * - cor0.col1 FROM tab2 AS cor0
----
-4661
26503
31403

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 71 col1 FROM tab0
----
-71

onlyif mysql # use DIV operator for integer division
query I rowsort label-2768
SELECT DISTINCT - col0 DIV - col0 AS col1 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-2768
SELECT DISTINCT - col0 / - col0 AS col1 FROM tab2
----
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-2769
SELECT col1 * col0 DIV col0 + - col1 + + col1 AS col0 FROM tab1
----
10
13
26

skipif mysql # not compatible
query I rowsort label-2769
SELECT col1 * col0 / col0 + - col1 + + col1 AS col0 FROM tab1
----
10
13
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + - 38 col2 FROM tab1
----
-12
-25
-28

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2771
SELECT + col1 + CAST( tab1.col2 AS SIGNED ) FROM tab1
----
109
67
80

skipif mysql # not compatible
query I rowsort label-2771
SELECT + col1 + CAST ( tab1.col2 AS INTEGER ) FROM tab1
----
109
67
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-2772
SELECT DISTINCT + col2 DIV + 12 + col0 col2 FROM tab2
----
80
82
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2772
SELECT DISTINCT + col2 / + 12 + col0 col2 FROM tab2
----
80
82
9

query I rowsort
SELECT DISTINCT - col1 + - 34 AS col0 FROM tab1
----
-44
-47
-60

query I rowsort
SELECT - col1 * + ( tab0.col2 ) FROM tab0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT + col0 + - col0 * + col0 AS col1 FROM tab1 AS cor0
----
-4032
-6
-6320

query I rowsort
SELECT col0 + + col0 * 26 + col1 FROM tab0
----
1042
2494
734

query I rowsort
SELECT col0 * + 25 + - col1 AS col2 FROM tab0
----
2134
514
778

query I rowsort
SELECT DISTINCT + col0 * ( + col1 ) + tab1.col2 AS col2 FROM tab1
----
1136
132
697

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2779
SELECT ALL col0 + - CAST( col2 AS SIGNED ) AS col2 FROM tab2
----
-20
41
52

skipif mysql # not compatible
query I rowsort label-2779
SELECT ALL col0 + - CAST ( col2 AS INTEGER ) AS col2 FROM tab2
----
-20
41
52

query I rowsort
SELECT + 87 + + col2 + col2 FROM tab1 AS cor0
----
195
201
279

query I rowsort
SELECT + + cor0.col0 + col0 + + col2 FROM tab0 cor0
----
260
71
81

query I rowsort
SELECT DISTINCT - 29 + + 2 AS col2 FROM tab0 AS cor0
----
-27

query I rowsort
SELECT - col2 + 15 + col1 AS col1 FROM tab1 AS cor0
----
-13
-32
-68

query I rowsort
SELECT ALL + cor0.col0 + - cor0.col2 * - col0 + + col2 AS col2 FROM tab1 AS cor0
----
219
3769
7856

onlyif mysql # use DIV operator for integer division
query I rowsort label-2785
SELECT - cor0.col1 + 39 DIV - col1 FROM tab0 AS cor0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-2785
SELECT - cor0.col1 + 39 / - col1 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT DISTINCT - 5 AS col1 FROM tab1 cor0
----
-5

query I rowsort
SELECT DISTINCT + col2 * + 45 * col0 FROM tab1
----
164160
345600
7290

query I rowsort
SELECT ALL + col2 * 73 AS col2 FROM tab1
----
3942
4161
7008

query I rowsort
SELECT + 86 + + col1 + + col1 AS col2 FROM tab1 AS cor0
----
106
112
138

query I rowsort
SELECT DISTINCT + + 45 AS col0 FROM tab0 AS cor0
----
45

query I rowsort
SELECT - - 47 * - col2 FROM tab0 AS cor0
----
-1551
-3854
-47

onlyif mysql # use DIV operator for integer division
query I rowsort label-2792
SELECT ALL 50 + + col2 DIV col2 + - 65 AS col1 FROM tab0 AS cor0
----
-14
-14
-14

skipif mysql # not compatible
query I rowsort label-2792
SELECT ALL 50 + + col2 / col2 + - 65 AS col1 FROM tab0 AS cor0
----
-14
-14
-14

query I rowsort
SELECT - ( + ( cor0.col0 ) ) FROM tab0 cor0
----
-24
-35
-89

onlyif mysql # use DIV operator for integer division
query I rowsort label-2794
SELECT DISTINCT - cor0.col2 DIV col2 col2 FROM tab1 AS cor0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2794
SELECT DISTINCT - cor0.col2 / col2 col2 FROM tab1 AS cor0
----
-1

query I rowsort
SELECT - col2 * 24 + col2 FROM tab2 AS cor0
----
-598
-621
-874

query I rowsort
SELECT - 77 + - cor0.col0 AS col1 FROM tab2 AS cor0
----
-155
-156
-84

query I rowsort
SELECT + - 20 + + col1 FROM tab2 AS cor0
----
-3
11
39

query I rowsort
SELECT DISTINCT + tab0.col2 * - col0 AS col1 FROM tab0
----
-35
-7298
-792

query I rowsort
SELECT DISTINCT - col0 + - col0 * + col1 FROM tab1 AS cor0
----
-1120
-704
-81

query I rowsort
SELECT + + 66 + col0 * col2 FROM tab0 cor0
----
101
7364
858

query I rowsort
SELECT - 36 * + col1 * col0 FROM tab0
----
-122220
-291564
-74304

query I rowsort
SELECT DISTINCT 76 AS col2 FROM tab2, tab1, tab0 AS cor0
----
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 75 col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 258bc565c64924d905a55eaaa6e57547

query I rowsort
SELECT 56 * + col1 FROM tab0
----
4816
5096
5432

query I rowsort
SELECT col1 + 84 * - tab0.col1 AS col1 FROM tab0
----
-7138
-7553
-8051

query I rowsort
SELECT ALL col2 + 18 * - 70 AS col1 FROM tab1 AS cor0
----
-1164
-1203
-1206

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + ( col0 + col0 ) col0 FROM tab0 AS cor0
----
-16198
-4128
-6790

query I rowsort
SELECT DISTINCT + + cor1.col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
86
91
97

query I rowsort
SELECT DISTINCT + + col2 * 88 FROM tab0 AS cor0
----
2904
7216
88

onlyif mysql # use DIV operator for integer division
query I rowsort label-2810
SELECT ALL - + col2 DIV ( - col1 ) + + cor0.col1 * 50 + col0 FROM tab1 AS cor0
----
1305
569
737

skipif mysql # not compatible
query I rowsort label-2810
SELECT ALL - + col2 / ( - col1 ) + + cor0.col1 * 50 + col0 FROM tab1 AS cor0
----
1305
569
737

query I rowsort
SELECT + + cor0.col0 * 75 FROM tab1 AS cor0
----
225
4800
6000

query IIIIIIIII rowsort
SELECT * FROM tab0, tab2, tab0 AS cor0 WHERE NULL NOT IN ( tab0.col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + ( + col1 ) * col0 col0 FROM tab1 AS cor0
----
234
40960
83200

query I rowsort
SELECT + + col2 * + col2 * - col1 AS col2 FROM tab2 AS cor0
----
-22599
-24548
-39884

query I rowsort
SELECT + + col2 + - col2 * + ( col2 * + ( col0 ) ) FROM tab0 AS cor0
----
-26103
-34
-598354

query I rowsort
SELECT + col0 - + 24 FROM tab2 AS cor0
----
-17
54
55

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab0 AS cor2, tab1 AS cor3
----
3645 values hashing to 71d467ba3372dfdd21847af1687c92e7

onlyif mysql # use DIV operator for integer division
query I rowsort label-2818
SELECT ALL col0 + 11 * 27 DIV + col0 col1 FROM tab2
----
49
81
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2818
SELECT ALL col0 + 11 * 27 / + col0 col1 FROM tab2
----
49
81
82

query IIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0 WHERE NULL BETWEEN ( cor0.col2 ) AND NULL
----

query I rowsort
SELECT DISTINCT - + col1 * col1 AS col2 FROM tab1 AS cor0
----
-100
-169
-676

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + ( + cor0.col0 ) col1 FROM tab0 AS cor0
----
35
7298
792

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2822
SELECT ALL col1 * CAST( NULL AS SIGNED ) * col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2822
SELECT ALL col1 * CAST ( NULL AS INTEGER ) * col0 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 * - ( + col1 ) * - col0 AS col2 FROM tab1 AS cor0
----
13520
2028
6400

skipif mysql # not compatible
query I rowsort
SELECT ALL + col1 + - CAST ( col1 AS REAL ) * col1 FROM tab1 AS cor0
----
-156
-650
-90

query I rowsort
SELECT + col0 - 34 FROM tab2 AS cor0
----
-27
44
45

onlyif mysql # use DIV operator for integer division
query I rowsort label-2826
SELECT ALL - - col1 DIV + col1 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2826
SELECT ALL - - col1 / + col1 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT + col0 * + col0 + - col1 FROM tab1 AS cor0
----
-17
4086
6387

query I rowsort
SELECT + ( + col1 * col0 ) + ( - tab0.col1 ) * col2 FROM tab0
----
-774
3298
637

query I rowsort
SELECT ALL 79 - - col2 * col0 FROM tab1
----
241
3727
7759

query I rowsort
SELECT - cor0.col1 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2

query I rowsort
SELECT - + 32 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 7106326ae056e78044adc0aef747ef08

query I rowsort
SELECT ALL col2 * tab2.col0 + col0 * col0 FROM tab2
----
238
8112
9243

query I rowsort
SELECT ALL + cor1.col1 AS col0 FROM tab1, tab0 AS cor0, tab0, tab1 AS cor1
----
81 values hashing to d7d3fabcafbed14f0d6ffd37195c971c

query I rowsort
SELECT 89 AS col1 FROM tab1, tab2 cor0
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743

query I rowsort
SELECT col1 + - 62 AS col0 FROM tab0 AS cor0
----
24
29
35

query I rowsort
SELECT DISTINCT + 76 + - 33 FROM tab2 AS cor0 CROSS JOIN tab0, tab2 AS cor1
----
43

query I rowsort
SELECT col1 * - cor0.col2 * - col1 - - cor0.col1 FROM tab1 AS cor0
----
16237
36530
5710

query I rowsort
SELECT - col2 * ( - 42 ) FROM tab1 AS cor0
----
2268
2394
4032

query I rowsort
SELECT + 59 + - col0 FROM tab0 AS cor0
----
-30
24
35

query I rowsort
SELECT ( - col0 ) AS col2 FROM tab0 cor0
----
-24
-35
-89

query I rowsort
SELECT + - 17 + col1 + col1 AS col2 FROM tab1 AS cor0
----
3
35
9

query I rowsort
SELECT DISTINCT ( - col1 ) - 26 AS col2 FROM tab1
----
-36
-39
-52

query I rowsort
SELECT - col2 + + col1 AS col2 FROM tab0 cor0
----
53
9
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-2844
SELECT DISTINCT - col2 DIV cor0.col1 + col1 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-2844
SELECT DISTINCT - col2 / cor0.col1 + col1 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT + ( + cor0.col1 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

query I rowsort
SELECT - - 3 * col1 AS col2 FROM tab2 AS cor0
----
177
51
93

query I rowsort
SELECT - 66 AS col2 FROM tab1 cor0
----
-66
-66
-66

onlyif mysql # use DIV operator for integer division
query I rowsort label-2848
SELECT DISTINCT + + 41 + col0 DIV col2 AS col1 FROM tab0 AS cor0
----
41
42
76

skipif mysql # not compatible
query I rowsort label-2848
SELECT DISTINCT + + 41 + col0 / col2 AS col1 FROM tab0 AS cor0
----
41
42
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col1 ) col0 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT ALL col0 + col2 * - col2 AS col2 FROM tab2 AS cor0
----
-1365
-598
-722

onlyif mysql # use DIV operator for integer division
query I rowsort label-2851
SELECT ALL + 56 - - col1 DIV col0 AS col1 FROM tab2 AS cor0
----
56
56
60

skipif mysql # not compatible
query I rowsort label-2851
SELECT ALL + 56 - - col1 / col0 AS col1 FROM tab2 AS cor0
----
56
56
60

onlyif mysql # use DIV operator for integer division
query I rowsort label-2852
SELECT DISTINCT cor0.col0 + col1 DIV + cor0.col1 FROM tab2 AS cor0
----
79
8
80

skipif mysql # not compatible
query I rowsort label-2852
SELECT DISTINCT cor0.col0 + col1 / + cor0.col1 FROM tab2 AS cor0
----
79
8
80

query I rowsort
SELECT ALL - - col1 - col2 FROM tab2 cor0
----
-21
33
4

query I rowsort
SELECT 72 * col0 FROM tab2 AS cor0
----
504
5616
5688

query I rowsort
SELECT ALL + cor0.col1 - col1 * + ( 29 ) AS col1 FROM tab0 AS cor0
----
-2408
-2548
-2716

onlyif mysql # use DIV operator for integer division
query I rowsort label-2856
SELECT DISTINCT - 26 + - col1 * cor0.col1 DIV + col0 AS col2 FROM tab0 AS cor0
----
-119
-294
-334

skipif mysql # not compatible
query I rowsort label-2856
SELECT DISTINCT - 26 + - col1 * cor0.col1 / + col0 AS col2 FROM tab0 AS cor0
----
-119
-294
-334

query I rowsort
SELECT + col0 - + cor0.col0 * - col0 * col1 AS col0 FROM tab2 AS cor0
----
106176
1526
359034

query I rowsort
SELECT DISTINCT col1 + 40 + - 70 AS col0 FROM tab2 AS cor0
----
-13
1
29

query I rowsort
SELECT DISTINCT cor0.col2 FROM tab1, tab2 AS cor0, tab1 cor1
----
26
27
38

query I rowsort
SELECT DISTINCT - col1 + - 15 AS col1 FROM tab1 AS cor0
----
-25
-28
-41

query I rowsort
SELECT ALL col0 * 92 FROM tab2 cor0
----
644
7176
7268

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 26 col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584

query I rowsort
SELECT DISTINCT + 38 AS col0 FROM tab1
----
38

query I rowsort
SELECT ALL - col2 * 70 + - col2 FROM tab1 AS cor0
----
-3834
-4047
-6816

query I rowsort
SELECT DISTINCT - ( col1 ) + cor0.col1 AS col0 FROM tab2 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 col0 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT DISTINCT cor0.col1 AS col1 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
10
13
26

onlyif mysql # use DIV operator for integer division
query I rowsort label-2868
SELECT col2 + - 98 DIV cor0.col1 FROM tab1 AS cor0
----
48
51
89

skipif mysql # not compatible
query I rowsort label-2868
SELECT col2 + - 98 / cor0.col1 FROM tab1 AS cor0
----
48
51
89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2869
SELECT CAST( cor0.col2 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
26
27
38

skipif mysql # not compatible
query I rowsort label-2869
SELECT CAST ( cor0.col2 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
26
27
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 53 col2 FROM tab0, tab2 AS cor0
----
9 values hashing to fede6033dee346dbd272085c05724fda

query I rowsort
SELECT DISTINCT ( col1 ) * - cor0.col1 + col0 FROM tab2 AS cor0
----
-210
-3403
-954

query I rowsort
SELECT col0 * col2 + col0 * col0 * 25 FROM tab0
----
15192
205323
30660

query I rowsort
SELECT ALL - 88 * col2 + + col1 FROM tab1 AS cor0
----
-4726
-5006
-8435

query I rowsort
SELECT DISTINCT - + 17 * + col1 FROM tab2 cor0
----
-1003
-289
-527

query I rowsort
SELECT ALL + cor0.col2 + cor0.col0 * cor0.col2 * + 18 AS col1 FROM tab2 AS cor0
----
3429
36530
54074

query I rowsort
SELECT DISTINCT - col1 * col1 - + col0 AS col0 FROM tab0 AS cor0
----
-7420
-8370
-9444

query I rowsort
SELECT ALL col0 * - 39 FROM tab1
----
-117
-2496
-3120

query I rowsort
SELECT - 32 AS col0 FROM tab0, tab0 cor0
----
9 values hashing to ef8f93119983b962f4c81381ebf4b1e6

query I rowsort
SELECT col2 * - cor0.col2 + col0 FROM tab2 AS cor0
----
-1365
-598
-722

query I rowsort
SELECT + col2 * + 2 + 23 * col0 * + col2 AS col2 FROM tab1 cor0
----
176832
3834
84018

query I rowsort
SELECT - col2 * - 10 * + cor0.col2 FROM tab1 AS cor0
----
29160
32490
92160

onlyif mysql # use DIV operator for integer division
query I rowsort label-2882
SELECT - col0 DIV ( - col1 ) + col1 * - col0 + - col1 FROM tab2 AS cor0
----
-1356
-248
-4660

skipif mysql # not compatible
query I rowsort label-2882
SELECT - col0 / ( - col1 ) + col1 * - col0 + - col1 FROM tab2 AS cor0
----
-1356
-248
-4660

query I rowsort
SELECT + + col2 * - cor0.col1 + + col0 FROM tab1 cor0
----
-1168
-1401
-506

onlyif mysql # use DIV operator for integer division
query I rowsort label-2884
SELECT - cor0.col0 DIV 63 FROM tab0, tab1 AS cor0
----
9 values hashing to b2e225572af74ba853e10fb5414ea67f

skipif mysql # not compatible
query I rowsort label-2884
SELECT - cor0.col0 / 63 FROM tab0, tab1 AS cor0
----
9 values hashing to b2e225572af74ba853e10fb5414ea67f

query I rowsort
SELECT ALL tab0.col1 AS col0 FROM tab0, tab0 cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + col0 col1 FROM tab2 AS cor0
----
189
2028
3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-2887
SELECT + cor0.col1 * 16 + - col1 DIV - col2 AS col0 FROM tab1 AS cor0
----
160
208
416

skipif mysql # not compatible
query I rowsort label-2887
SELECT + cor0.col1 * 16 + - col1 / - col2 AS col0 FROM tab1 AS cor0
----
160
208
416

query I rowsort
SELECT - col2 * cor0.col1 - col2 FROM tab2 AS cor0
----
-1560
-684
-864

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2889
SELECT col1 + + CAST( NULL AS SIGNED ) * + col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2889
SELECT col1 + + CAST ( NULL AS INTEGER ) * + col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col2 * - 30 + - tab1.col1 * - col1 FROM tab1
----
1810
2296
3049

query I rowsort
SELECT DISTINCT col1 + 38 FROM tab0
----
124
129
135

query I rowsort
SELECT - col2 * + ( - cor0.col1 ) + + 40 FROM tab1 AS cor0
----
1288
1444
610

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2893
SELECT col0 * CAST( NULL AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2893
SELECT col0 * CAST ( NULL AS REAL ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 21 * - col2 FROM tab1
----
1134
1197
2016

query I rowsort
SELECT - ( col2 ) * + 44 + 11 * - col1 FROM tab1 AS cor0
----
-2618
-2662
-4367

query I rowsort
SELECT - 72 * col2 - 57 * + cor0.col0 FROM tab0 AS cor0
----
-10977
-2067
-3744

query I rowsort
SELECT - col0 + + cor0.col0 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col0 * col1 col0 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT col1 + + tab2.col0 * col2 FROM tab2
----
2087
220
3019

query I rowsort
SELECT ( tab0.col1 ) FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2901
SELECT CAST( NULL AS SIGNED ) * - cor0.col1 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2901
SELECT CAST ( NULL AS INTEGER ) * - cor0.col1 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL col2 * + col2 * 90 + + col2 * - col2 * + col0 FROM tab0
----
55
6724
71874

query I rowsort
SELECT ALL 67 * col1 AS col0 FROM tab1 AS cor0
----
1742
670
871

query I rowsort
SELECT - 96 + cor0.col0 * col2 FROM tab1 AS cor0
----
3552
66
7584

onlyif mysql # use DIV operator for integer division
query I rowsort label-2905
SELECT DISTINCT + 24 DIV col2 FROM tab0 AS cor0
----
0
24

skipif mysql # not compatible
query I rowsort label-2905
SELECT DISTINCT + 24 / col2 FROM tab0 AS cor0
----
0
24

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2906
SELECT + 35 * col1 - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2906
SELECT + 35 * col1 - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - col2 * col1 - + 17 AS col2 FROM tab0 AS cor0
----
2821
7445
80

query I rowsort
SELECT - cor0.col0 + - col2 - col2 FROM tab1 AS cor0
----
-111
-178
-272

query I rowsort
SELECT ALL - 18 * - col0 AS col2 FROM tab0 AS cor0
----
1602
432
630

query I rowsort
SELECT + col1 + 69 * col1 FROM tab2 AS cor0
----
1190
2170
4130

query I rowsort
SELECT - + col2 - col0 * ( - cor0.col0 ) * - col1 AS col0 FROM tab0 AS cor0
----
-118826
-49569
-720893

query I rowsort
SELECT cor0.col2 * - 86 FROM tab2, tab1 AS cor0
----
9 values hashing to d17498ac0e257bcfabe8c52fbb5bd89d

query I rowsort
SELECT + tab0.col0 AS col1 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT ALL 6 * col0 FROM tab2
----
42
468
474

query I rowsort
SELECT ALL - 84 * - cor0.col0 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 554aea498e53294e17a49d873f5c68f8

query I rowsort
SELECT DISTINCT - col2 + col1 AS col1 FROM tab2 cor0
----
-21
33
4

query I rowsort
SELECT + - cor0.col2 + - ( 17 ) * - col2 + + 10 AS col2 FROM tab0 AS cor0
----
1322
26
538

onlyif mysql # use DIV operator for integer division
query I rowsort label-2918
SELECT - - col1 DIV + col0 FROM tab0 AS cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-2918
SELECT - - col1 / + col0 FROM tab0 AS cor0
----
1
2
3

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2919
SELECT + cor0.col0 + - CAST( col0 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2919
SELECT + cor0.col0 + - CAST ( col0 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * ( col0 * col0 + - col1 ) col2 FROM tab2 cor0
----
-126
-469950
-491696

query I rowsort
SELECT 75 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea

query I rowsort
SELECT DISTINCT + 39 + col1 + - col2 * ( - cor0.col2 ) AS col2 FROM tab1 AS cor0
----
2981
3298
9268

query I rowsort
SELECT 15 * - col0 + col1 FROM tab1 AS cor0
----
-1187
-19
-950

query I rowsort
SELECT ALL + 65 + col2 FROM tab2 AS cor0
----
103
91
92

onlyif mysql # use DIV operator for integer division
query I rowsort label-2925
SELECT ALL - - ( - ( cor0.col1 ) ) * - 13 - 93 DIV + col0 AS col1 FROM tab1 AS cor0
----
129
168
307

skipif mysql # not compatible
query I rowsort label-2925
SELECT ALL - - ( - ( cor0.col1 ) ) * - 13 - 93 / + col0 AS col1 FROM tab1 AS cor0
----
129
168
307

query I rowsort
SELECT DISTINCT - col0 * - 72 FROM tab2 AS cor0
----
504
5616
5688

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + col0 ) + + col0 col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL col2 * - 15 AS col0 FROM tab2 cor0
----
-390
-405
-570

query I rowsort
SELECT DISTINCT - ( cor0.col0 ) * col1 AS col0 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT - - col1 + cor0.col0 FROM tab1 AS cor0
----
29
74
93

skipif mysql # not compatible
query I rowsort
SELECT CAST ( 49 AS REAL ) FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to a40d8754a5be3ce2309c61bfd3e00197

query I rowsort
SELECT DISTINCT - 18 AS col0 FROM tab1 AS cor0
----
-18

query I rowsort
SELECT DISTINCT + 99 AS col1 FROM tab2, tab2 AS cor0, tab0 AS cor1, tab1 AS cor2
----
99

query I rowsort
SELECT + ( + ( col2 ) ) FROM tab0
----
1
33
82

query I rowsort
SELECT DISTINCT - ( - col2 ) * + col1 + col0 FROM tab0 AS cor0
----
132
2862
7551

query I rowsort
SELECT col2 + 8 AS col2 FROM tab2 AS cor0
----
34
35
46

query I rowsort
SELECT + - 74 AS col0 FROM tab1 AS cor0
----
-74
-74
-74

query I rowsort
SELECT - - col1 * 50 FROM tab1 AS cor0
----
1300
500
650

onlyif mysql # use DIV operator for integer division
query I rowsort label-2939
SELECT + col0 + + col2 DIV cor0.col0 FROM tab1 AS cor0
----
21
64
81

skipif mysql # not compatible
query I rowsort label-2939
SELECT + col0 + + col2 / cor0.col0 FROM tab1 AS cor0
----
21
64
81

query I rowsort
SELECT - 37 * 40 FROM tab1 AS cor0
----
-1480
-1480
-1480

query I rowsort
SELECT DISTINCT - + 63 + cor0.col1 * + ( + col0 + col1 ) * col2 AS col1 FROM tab1 AS cor0
----
116001
40653
42117

onlyif mysql # use DIV operator for integer division
query I rowsort label-2942
SELECT ALL + - col2 DIV col0 AS col1 FROM tab1 AS cor0
----
-1
-18
0

skipif mysql # not compatible
query I rowsort label-2942
SELECT ALL + - col2 / col0 AS col1 FROM tab1 AS cor0
----
-1
-18
0

query I rowsort
SELECT DISTINCT - cor0.col2 * - cor0.col2 FROM tab1, tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT + tab2.col1 - 12 FROM tab2
----
19
47
5

onlyif mysql # use DIV operator for integer division
query I rowsort label-2945
SELECT + col0 - - tab1.col1 DIV - col0 AS col1 FROM tab1
----
-5
64
80

skipif mysql # not compatible
query I rowsort label-2945
SELECT + col0 - - tab1.col1 / - col0 AS col1 FROM tab1
----
-5
64
80

query I rowsort
SELECT DISTINCT tab0.col0 FROM tab1, tab2 AS cor0 CROSS JOIN tab0
----
24
35
89

query I rowsort
SELECT ALL col0 - tab0.col0 AS col0 FROM tab0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2948
SELECT + + col2 + col1 DIV + col0 AS col0 FROM tab1 AS cor0
----
57
62
96

skipif mysql # not compatible
query I rowsort label-2948
SELECT + + col2 + col1 / + col0 AS col0 FROM tab1 AS cor0
----
57
62
96

query I rowsort
SELECT DISTINCT - col0 * - 35 FROM tab1 AS cor0
----
105
2240
2800

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + col2 + - 82 ) col2 FROM tab0
----
0
49
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-2951
SELECT ALL - col1 DIV tab1.col2 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2951
SELECT ALL - col1 / tab1.col2 AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL - tab0.col2 * + ( tab0.col0 ) FROM tab0
----
-35
-7298
-792

query I rowsort
SELECT + col2 * ( col2 ) FROM tab1 cor0
----
2916
3249
9216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - ( + col2 ) * col2 + col1 col2 FROM tab2
----
-114059
-5072
-52669

query I rowsort
SELECT DISTINCT + cor0.col0 + - 27 AS col2 FROM tab1, tab2 AS cor0
----
-20
51
52

query I rowsort
SELECT col0 + col1 * - col0 * - col2 AS col2 FROM tab2 cor0
----
119730
51113
5866

query I rowsort
SELECT DISTINCT - + col2 * + cor0.col0 + + col2 * cor0.col0 * + col2 FROM tab1 AS cor0
----
204288
729600
8586

query I rowsort
SELECT ALL - - col2 * - ( col2 ) FROM tab0 AS cor0
----
-1
-1089
-6724

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - col1 * col1 + - col2 col1 FROM tab2 AS cor0
----
205353
29764
4875

query I rowsort
SELECT DISTINCT - - col2 * col0 * - ( - col2 ) + ( col0 ) FROM tab0 AS cor0
----
26160
598525
70

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab0 cor2, tab0 cor3
----
3645 values hashing to 2270901c73a658a63f841c68db8155ba

query I rowsort
SELECT DISTINCT + ( - cor0.col2 ) AS col2 FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT 60 + col0 FROM tab2
----
138
139
67

query I rowsort
SELECT - ( - cor0.col2 ) * + col0 * ( col1 ) AS col2 FROM tab2 AS cor0
----
119652
51034
5859

query I rowsort
SELECT ALL + 21 + - col2 * + col2 FROM tab0 cor0
----
-1068
-6703
20

query I rowsort
SELECT DISTINCT 77 * 66 FROM tab0 AS cor0
----
5082

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * - col0 col2 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT ALL 57 FROM tab1 AS cor0
----
57
57
57

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab1 cor0, tab2 cor1, tab2, tab1 AS cor2
----
3645 values hashing to 1b06ddc48fd89ff2b1df6d82072316da

query I rowsort
SELECT col2 + - col0 + + 39 FROM tab2
----
-13
-2
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col1 + - col2 * + col0 col1 FROM tab2 AS cor0
----
-2087
-220
-3019

query I rowsort
SELECT + col2 * + col0 - + ( ( col0 ) ) FROM tab0 AS cor0
----
0
7209
768

onlyif mysql # use DIV operator for integer division
query I rowsort label-2973
SELECT DISTINCT + col1 * + col1 - - col1 DIV - col1 AS col1 FROM tab2 AS cor0
----
288
3480
960

skipif mysql # not compatible
query I rowsort label-2973
SELECT DISTINCT + col1 * + col1 - - col1 / - col1 AS col1 FROM tab2 AS cor0
----
288
3480
960

onlyif mysql # use DIV operator for integer division
query I rowsort label-2974
SELECT - col2 DIV cor0.col0 + + 65 FROM tab1 AS cor0
----
47
64
65

skipif mysql # not compatible
query I rowsort label-2974
SELECT - col2 / cor0.col0 + + 65 FROM tab1 AS cor0
----
47
64
65

query I rowsort
SELECT + + col2 + col0 * + 62 AS col0 FROM tab2 AS cor0
----
461
4862
4936

query I rowsort
SELECT ALL - ( col2 ) + + col0 AS col0 FROM tab0 cor0
----
-9
34
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 - + col1 col2 FROM tab2 AS cor0
----
-137
-38
-96

query I rowsort
SELECT ALL + col1 + + col2 * + col1 * col0 FROM tab0 AS cor0
----
3492
664209
68198

onlyif mysql # use DIV operator for integer division
query I rowsort label-2979
SELECT - col0 * + 84 + col1 DIV col2 AS col0 FROM tab0 AS cor0
----
-2014
-2843
-7475

skipif mysql # not compatible
query I rowsort label-2979
SELECT - col0 * + 84 + col1 / col2 AS col0 FROM tab0 AS cor0
----
-2014
-2843
-7475

query I rowsort
SELECT DISTINCT - + col1 * 60 + col1 * + col1 + col0 FROM tab0 AS cor0
----
2260
2910
3624

query I rowsort
SELECT DISTINCT + + col1 * col0 + + col0 FROM tab2 cor0
----
1422
224
4680

query I rowsort
SELECT + col1 * - ( col0 ) AS col0 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT ALL + cor0.col1 - - ( + col0 ) AS col0 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT DISTINCT col1 + tab1.col0 * 74 FROM tab1
----
248
4746
5933

query I rowsort
SELECT DISTINCT - + col1 - 73 FROM tab1 AS cor0
----
-83
-86
-99

query I rowsort
SELECT ALL 79 AS col0 FROM tab0
----
79
79
79

query I rowsort
SELECT ALL + col0 * col2 + cor0.col2 * - col2 FROM tab0 AS cor0
----
-297
34
574

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2988
SELECT DISTINCT - col0 - + col1 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2988
SELECT DISTINCT - col0 - + col1 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - + cor0.col2 + + col2 * + 40 FROM tab0 AS cor0
----
1287
3198
39

onlyif mysql # use DIV operator for integer division
query I rowsort label-2990
SELECT + col0 DIV + col0 AS col1 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2990
SELECT + col0 / + col0 AS col1 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT ALL + col0 * + col2 * col2 + col0 * - col1 FROM tab0 AS cor0
----
-3360
24072
590337

onlyif mysql # use DIV operator for integer division
query I rowsort label-2992
SELECT - col2 DIV cor0.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-2992
SELECT - col2 / cor0.col1 col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2993
SELECT DISTINCT - col1 DIV + cor0.col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2993
SELECT DISTINCT - col1 / + cor0.col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL - ( col1 ) + - col2 FROM tab1 cor0
----
-109
-67
-80

query I rowsort
SELECT ALL - + 28 + cor0.col1 + cor1.col2 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to f0b00ecceacf6672876670a43c4273dc

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col1 ) * + ( - ( col0 ) ) col0 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT ALL + col0 + cor0.col1 * col2 AS col1 FROM tab2 AS cor0
----
1612
725
844

query I rowsort
SELECT - - col1 * + col2 + col2 AS col0 FROM tab1 AS cor0
----
1344
1458
627

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2999
SELECT - col1 + - CAST( col2 AS SIGNED ) + col2 AS col0 FROM tab2 cor0
----
-17
-31
-59

skipif mysql # not compatible
query I rowsort label-2999
SELECT - col1 + - CAST ( col2 AS INTEGER ) + col2 AS col0 FROM tab2 cor0
----
-17
-31
-59

query I rowsort
SELECT + col0 * + 82 * + col2 + - col0 FROM tab1 AS cor0
----
13281
299072
629680

query I rowsort
SELECT ALL col2 * 76 AS col2 FROM tab2
----
1976
2052
2888

query I rowsort
SELECT + + col0 * ( + col1 * cor0.col2 ) FROM tab1 AS cor0
----
36480
4212
99840

onlyif mysql # use DIV operator for integer division
query I rowsort label-3003
SELECT DISTINCT + tab0.col1 DIV - tab0.col1 AS col0 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-3003
SELECT DISTINCT + tab0.col1 / - tab0.col1 AS col0 FROM tab0
----
-1

query I rowsort
SELECT - col2 * 55 + 93 + + col2 FROM tab2 AS cor0
----
-1311
-1365
-1959

query I rowsort
SELECT ALL - - col1 * cor0.col0 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT DISTINCT - + ( + col2 ) - col2 AS col2 FROM tab2 AS cor0
----
-52
-54
-76

onlyif mysql # use DIV operator for integer division
query I rowsort label-3007
SELECT ALL - 12 + + col2 DIV + col2 FROM tab1 AS cor0
----
-11
-11
-11

skipif mysql # not compatible
query I rowsort label-3007
SELECT ALL - 12 + + col2 / + col2 FROM tab1 AS cor0
----
-11
-11
-11

query I rowsort
SELECT cor0.col0 AS col1 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT ALL + - ( col2 ) - col2 FROM tab0 cor0
----
-164
-2
-66

query I rowsort
SELECT - 70 * col1 FROM tab0 AS cor0
----
-6020
-6370
-6790

onlyif mysql # use DIV operator for integer division
query I rowsort label-3011
SELECT DISTINCT + + 20 * col1 DIV - col0 AS col1 FROM tab0 AS cor0
----
-20
-55
-71

skipif mysql # not compatible
query I rowsort label-3011
SELECT DISTINCT + + 20 * col1 / - col0 AS col1 FROM tab0 AS cor0
----
-20
-55
-71

query I rowsort
SELECT DISTINCT + + cor0.col2 + cor0.col1 FROM tab0 AS cor0
----
119
173
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 68 col0 FROM tab2
----
68

query I rowsort
SELECT - + cor0.col1 + + col0 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT col1 * - col0 * + ( - col0 ) FROM tab2 cor0
----
106097
1519
358956

query I rowsort
SELECT + - 6 * col2 AS col2 FROM tab2 AS cor0
----
-156
-162
-228

query I rowsort
SELECT DISTINCT + 24 * - col0 FROM tab1
----
-1536
-1920
-72

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3018
SELECT ALL - col0 * CAST( NULL AS SIGNED ) + col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3018
SELECT ALL - col0 * CAST ( NULL AS INTEGER ) + col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort
SELECT - cor0.col1 * CAST ( + col1 AS REAL ) AS col1 FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT DISTINCT - - cor0.col1 * 29 AS col0 FROM tab0 AS cor0
----
2494
2639
2813

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 + 12 col1 FROM tab0 AS cor0
----
101
36
47

onlyif mysql # use DIV operator for integer division
query I rowsort label-3022
SELECT + ( + col1 ) DIV cor0.col2 + cor0.col1 + 93 FROM tab0 cor0
----
181
185
287

skipif mysql # not compatible
query I rowsort label-3022
SELECT + ( + col1 ) / cor0.col2 + cor0.col1 + 93 FROM tab0 cor0
----
181
185
287

query I rowsort
SELECT - 53 * - col0 AS col2 FROM tab0 AS cor0
----
1272
1855
4717

query I rowsort
SELECT + col0 + - col2 + col0 FROM tab1 AS cor0
----
-48
64
71

query I rowsort
SELECT - col0 + 19 FROM tab0 cor0
----
-16
-5
-70

query I rowsort
SELECT ALL - col2 * col0 * - 4 FROM tab1
----
14592
30720
648

query I rowsort
SELECT ALL col0 * + 65 AS col0 FROM tab1
----
195
4160
5200

query I rowsort
SELECT ALL tab1.col0 * + col0 AS col1 FROM tab1
----
4096
6400
9

query I rowsort
SELECT ( + 87 ) + col2 AS col1 FROM tab2 AS cor0
----
113
114
125

query I rowsort
SELECT DISTINCT 26 * col2 + - cor0.col1 FROM tab2 AS cor0
----
617
671
971

query I rowsort
SELECT - col0 + col1 + col1 * - col2 * tab1.col0 FROM tab1
----
-36534
-4189
-99907

query I rowsort
SELECT ALL col2 AS col0 FROM tab0 WHERE NOT col0 <> NULL
----

query I rowsort
SELECT col2 + + col0 * col0 FROM tab2
----
6110
6279
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + col1 * tab1.col2 + - col0 col0 FROM tab1
----
1072
1347
449

query I rowsort
SELECT DISTINCT col1 * - tab0.col0 FROM tab0 WHERE col0 > NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND ( + col1 / col1 )
----

query I rowsort
SELECT ALL - col1 FROM tab1 cor0 WHERE col0 IN ( col1 * + col1 + + col2 )
----

query I rowsort
SELECT col1 + + cor0.col1 * col2 AS col1 FROM tab0 cor0
----
194
2924
7553

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + cor0.col1 <> NULL
----

query I rowsort
SELECT - col0 + col2 * + col2 AS col1 FROM tab0 AS cor0
----
-34
1065
6635

query I rowsort
SELECT ALL - col1 AS col0 FROM tab2 WHERE col2 > - col1 - col1
----
-17
-31
-59

query I rowsort
SELECT tab1.col0 + + tab1.col2 FROM tab1
----
121
176
57

query I rowsort
SELECT - col2 + - col2 AS col2 FROM tab0
----
-164
-2
-66

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col2 / col2 IN ( - col1 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) <= col2 * col1
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-3046
SELECT col2 + tab0.col2 * col2 DIV col0 AS col2 FROM tab0
----
1
157
78

skipif mysql # not compatible
query I rowsort label-3046
SELECT col2 + tab0.col2 * col2 / col0 AS col2 FROM tab0
----
1
157
78

query III rowsort
SELECT * FROM tab1 WHERE NULL <= - col1 * + col2
----

query I rowsort
SELECT ALL + col1 * tab1.col0 - + col1 FROM tab1
----
1027
52
630

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL = col2
----

query I rowsort
SELECT ALL col0 * - tab1.col1 * + col2 - + tab1.col1 FROM tab1
----
-36490
-4238
-99853

onlyif mysql # use DIV operator for integer division
query I rowsort label-3051
SELECT ALL col1 + col1 DIV col2 AS col2 FROM tab0
----
194
88
92

skipif mysql # not compatible
query I rowsort label-3051
SELECT ALL col1 + col1 / col2 AS col2 FROM tab0
----
194
88
92

onlyif mysql # use DIV operator for integer division
query I rowsort label-3052
SELECT ALL + col0 * col2 DIV + col0 AS col1 FROM tab2 AS cor0
----
26
27
38

skipif mysql # not compatible
query I rowsort label-3052
SELECT ALL + col0 * col2 / + col0 AS col1 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT + + col2 * - col2 + col1 FROM tab1 AS cor0
----
-2890
-3239
-9203

query I rowsort
SELECT - col2 * col2 + + col1 AS col1 FROM tab2 cor0
----
-1427
-617
-698

query I rowsort
SELECT col2 * - cor0.col0 + + col2 FROM tab0 AS cor0
----
-34
-7216
-759

onlyif mysql # use DIV operator for integer division
query I rowsort label-3056
SELECT + + col1 + col1 DIV col0 AS col1 FROM tab2 cor0
----
17
35
59

skipif mysql # not compatible
query I rowsort label-3056
SELECT + + col1 + col1 / col0 AS col1 FROM tab2 cor0
----
17
35
59

query I rowsort
SELECT DISTINCT + - col2 + - col1 * col2 * + cor0.col1 FROM tab2 AS cor0
----
-11020
-25974
-90532

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col1 IN ( col1 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 >= NULL
----

query I rowsort
SELECT ALL col0 + + col0 * col1 AS col2 FROM tab0
----
2088
3430
8188

query I rowsort
SELECT - + cor0.col1 * 39 + + col2 AS col1 FROM tab2 cor0
----
-1182
-2275
-625

query I rowsort
SELECT + col1 * col0 + col1 * col2 FROM tab2 AS cor0
----
1054
1989
6136

query I rowsort
SELECT + col2 * cor0.col1 * 56 FROM tab1 AS cor0
----
31920
69888
78624

query I rowsort
SELECT + col1 * - col0 + ( + cor0.col0 ) * - 93 + ( - col2 ) AS col0 FROM tab1 AS cor0
----
-411
-6649
-8576

query I rowsort
SELECT ALL col0 * 44 FROM tab2 AS cor0
----
308
3432
3476

query I rowsort
SELECT DISTINCT + col0 + + ( + col0 ) * + col1 * + ( - col1 * + col0 ) AS col2 FROM tab0 AS cor0
----
-11525990
-4260072
-65593712

query I rowsort
SELECT col0 * - col0 + - cor0.col2 AS col1 FROM tab2 AS cor0
----
-6110
-6279
-76

query I rowsort
SELECT + tab2.col1 * + col0 - 98 FROM tab2
----
119
1245
4504

query I rowsort
SELECT DISTINCT + 12 + + tab1.col1 FROM tab1
----
22
25
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-3070
SELECT DISTINCT + 14 + + col0 DIV - col2 AS col1 FROM tab0
----
-21
13
14

skipif mysql # not compatible
query I rowsort label-3070
SELECT DISTINCT + 14 + + col0 / - col2 AS col1 FROM tab0
----
-21
13
14

onlyif mysql # use DIV operator for integer division
query I rowsort label-3071
SELECT ALL + ( - col2 ) + - 44 * col2 * col2 + 48 * col0 DIV - col1 AS col0 FROM tab0
----
-295984
-47962
-62

skipif mysql # not compatible
query I rowsort label-3071
SELECT ALL + ( - col2 ) + - 44 * col2 * col2 + 48 * col0 / - col1 AS col0 FROM tab0
----
-295984
-47962
-62

query I rowsort
SELECT + 3 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 6 col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

query I rowsort
SELECT ALL + 61 * + 86 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 06a7b5373a0bcacb2d92c018bbc2f069

query I rowsort
SELECT DISTINCT col2 * - 66 + col1 * + col2 FROM tab2 AS cor0
----
-182
-1862
-945

query I rowsort
SELECT ALL + + col1 + + ( + col1 ) AS col1 FROM tab2 AS cor0
----
118
34
62

query I rowsort
SELECT cor0.col1 * col0 + + 14 * col2 AS col2 FROM tab0 cor0
----
2526
3409
9247

onlyif mysql # use DIV operator for integer division
query I rowsort label-3078
SELECT + col1 * - col0 DIV col0 AS col0 FROM tab1
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-3078
SELECT + col1 * - col0 / col0 AS col0 FROM tab1
----
-10
-13
-26

onlyif mysql # use DIV operator for integer division
query I rowsort label-3079
SELECT DISTINCT + col2 DIV - col1 AS col1 FROM tab1
----
-2
-5
-7

skipif mysql # not compatible
query I rowsort label-3079
SELECT DISTINCT + col2 / - col1 AS col1 FROM tab1
----
-2
-5
-7

onlyif mysql # use DIV operator for integer division
query I rowsort label-3080
SELECT col0 DIV col1 + col2 AS col1 FROM tab0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-3080
SELECT col0 / col1 + col2 AS col1 FROM tab0
----
1
33
82

query I rowsort
SELECT ALL col2 * col0 + - col1 + col2 FROM tab1
----
190
3695
7763

onlyif mysql # use DIV operator for integer division
query I rowsort label-3082
SELECT DISTINCT - tab0.col2 DIV col1 + - col2 - col0 * + col2 FROM tab0
----
-36
-7380
-825

skipif mysql # not compatible
query I rowsort label-3082
SELECT DISTINCT - tab0.col2 / col1 + - col2 - col0 * + col2 FROM tab0
----
-36
-7380
-825

query I rowsort
SELECT ALL col1 * + col0 - col0 AS col2 FROM tab2
----
1264
210
4524

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL > + col0
----

query III rowsort
SELECT * FROM tab2 WHERE col2 * + col1 IN ( col2 )
----

query I rowsort
SELECT tab1.col2 AS col0 FROM tab1 WHERE NULL = NULL
----

query I rowsort
SELECT DISTINCT col2 * - tab0.col1 * - col2 + col0 AS col1 FROM tab0
----
132
611973
93678

query I rowsort
SELECT col0 AS col0 FROM tab2 WHERE NULL > NULL
----

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3089
SELECT DISTINCT + col0 * + col2 * - CAST( NULL AS SIGNED ) AS col0 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3089
SELECT DISTINCT + col0 * + col2 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 cor0
----
NULL

query I rowsort
SELECT DISTINCT 70 * col1 + 59 * col1 FROM tab1
----
1290
1677
3354

query I rowsort
SELECT col2 * col2 * + ( 51 ) + - col0 AS col0 FROM tab0
----
16
342835
55515

onlyif mysql # use DIV operator for integer division
query I rowsort label-3092
SELECT tab0.col0 DIV - col1 + + ( + col2 * col2 ) + + col0 col2 FROM tab0
----
1113
36
6813

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3092
SELECT tab0.col0 / - col1 + + ( + col2 * col2 ) + + col0 col2 FROM tab0
----
1113
36
6813

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - col2 * col1 col0 FROM tab0 AS cor0
----
-2805
-7380
-96

query I rowsort
SELECT - ( - col0 ) * - cor0.col1 + col1 AS col1 FROM tab0 AS cor0
----
-1978
-3298
-8008

query I rowsort
SELECT ALL + 33 AS col0 FROM tab2, tab0 AS cor0, tab1 cor1, tab2 AS cor2
----
81 values hashing to 5b9acd68f8a2078394b8b32da4e0a18f

onlyif mysql # use DIV operator for integer division
query I rowsort label-3096
SELECT - + 67 DIV col0 - + ( col0 ) FROM tab0 AS cor0
----
-26
-36
-89

skipif mysql # not compatible
query I rowsort label-3096
SELECT - + 67 / col0 - + ( col0 ) FROM tab0 AS cor0
----
-26
-36
-89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3097
SELECT DISTINCT + col1 * col2 + CAST( NULL AS SIGNED ) / col0 col2 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3097
SELECT DISTINCT + col1 * col2 + CAST ( NULL AS INTEGER ) / col0 col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL cor0.col0 AS col1 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT - - 51 + ( col0 ) * - 95 FROM tab1 AS cor0
----
-234
-6029
-7549

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 col0 FROM tab0 AS cor0 CROSS JOIN tab2, tab1 AS cor1
----
24
35
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 20 * col2 col0 FROM tab2
----
-520
-540
-760

query I rowsort
SELECT DISTINCT 12 * 21 FROM tab1
----
252

query I rowsort
SELECT ALL 71 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 95a6ff35b7b8f00868fb58bcaa32d0c2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col1 * - col2 + + ( col1 ) col2 FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT DISTINCT + 17 * col1 * col0 + 46 FROM tab0 cor0
----
137729
35134
57761

query I rowsort
SELECT + ( col2 ) + + cor0.col2 * + 25 AS col2 FROM tab2 AS cor0
----
676
702
988

query I rowsort
SELECT + col0 + - col2 * + ( - col1 ) * + col0 FROM tab0 AS cor0
----
3430
664207
68136

query I rowsort
SELECT DISTINCT + col1 * + col2 + ( col2 ) FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT + cor0.col2 * col1 + + 32 AS col1 FROM tab0 AS cor0
----
129
2870
7494

query I rowsort
SELECT DISTINCT col2 - col1 * + col0 AS col0 FROM tab2 AS cor0
----
-1305
-190
-4576

query I rowsort
SELECT ALL + + col1 * + ( - col1 ) + + cor0.col2 * - col2 FROM tab0 AS cor0
----
-15005
-8485
-9410

query I rowsort
SELECT col1 + ( col2 ) * + cor0.col1 FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT DISTINCT + col1 + col1 * ( col0 * col1 ) AS col0 FROM tab2 cor0
----
22848
271577
6758

query I rowsort
SELECT ALL - + col0 * + col0 * col2 FROM tab2 AS cor0
----
-1323
-158184
-237158

query I rowsort
SELECT ALL col1 + - ( - 46 ) AS col2 FROM tab0 AS cor0
----
132
137
143

onlyif mysql # use DIV operator for integer division
query I rowsort label-3116
SELECT - col2 DIV 45 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3116
SELECT - col2 / 45 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col0 * col0 col1 FROM tab0 AS cor0
----
13824
42875
704969

query I rowsort
SELECT ALL + - col1 + - cor0.col2 AS col0 FROM tab1 AS cor0
----
-109
-67
-80

query I rowsort
SELECT ALL - tab2.col0 * 18 AS col0 FROM tab2
----
-126
-1404
-1422

skipif mysql # not compatible
query I rowsort
SELECT - - col2 * + CAST ( + col0 AS REAL ) AS col1 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT - + 62 + + cor0.col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 3bbd800c0e95cb5fdca41ddcd2e0ef4c

query I rowsort
SELECT - col0 * col1 + 1 * + cor0.col2 FROM tab1 AS cor0
----
-24
-583
-944

query I rowsort
SELECT + - ( - 7 ) * col1 FROM tab0 cor0
----
602
637
679

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3124
SELECT - CAST( - 58 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
58
58
58

skipif mysql # not compatible
query I rowsort label-3124
SELECT - CAST ( - 58 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
58
58
58

query I rowsort
SELECT - 5 * - col2 AS col0 FROM tab1 AS cor0
----
270
285
480

query I rowsort
SELECT col0 * + col2 * col2 FROM tab1 AS cor0
----
207936
737280
8748

query I rowsort
SELECT ( col1 ) * + ( 28 ) + col2 AS col0 FROM tab0 cor0
----
2441
2630
2717

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 + - col1 col0 FROM tab1 AS cor0
----
-29
-74
-93

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3129
SELECT - 48 * - col2 + - CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3129
SELECT - 48 * - col2 + - CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 * col2 - col1 AS col2 FROM tab2 AS cor0
----
1427
617
698

onlyif mysql # use DIV operator for integer division
query I rowsort label-3131
SELECT 32 DIV col0 AS col0 FROM tab2
----
0
0
4

skipif mysql # not compatible
query I rowsort label-3131
SELECT 32 / col0 AS col0 FROM tab2
----
0
0
4

query I rowsort
SELECT DISTINCT 71 + col1 FROM tab0
----
157
162
168

query I rowsort
SELECT DISTINCT - col2 * 72 + - col2 FROM tab0
----
-2409
-5986
-73

query I rowsort
SELECT + ( - col2 ) * ( - 0 ) - col2 AS col1 FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT - - 2 * + col1 AS col0 FROM tab1 AS cor0
----
20
26
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-3136
SELECT DISTINCT col0 * + col0 + tab2.col0 DIV ( + col0 ) FROM tab2
----
50
6085
6242

skipif mysql # not compatible
query I rowsort label-3136
SELECT DISTINCT col0 * + col0 + tab2.col0 / ( + col0 ) FROM tab2
----
50
6085
6242

query I rowsort
SELECT + cor0.col1 + - ( - col1 + col2 ) AS col1 FROM tab2 AS cor0
----
-4
35
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 5 col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 74665fbb47d5b17da011bca567195b21

query I rowsort
SELECT DISTINCT + 32 FROM tab2 cor0
----
32

query I rowsort
SELECT - + 61 * col0 - - col1 * col0 AS col2 FROM tab1 AS cor0
----
-105
-3264
-3840

query I rowsort
SELECT DISTINCT col1 - cor0.col2 AS col0 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT - tab2.col0 * col0 * - 9 AS col0 FROM tab2
----
441
54756
56169

query I rowsort
SELECT ALL 75 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea

onlyif mysql # use DIV operator for integer division
query I rowsort label-3144
SELECT - col1 + col0 + + col1 DIV - 88 col2 FROM tab1 AS cor0
----
-23
54
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3144
SELECT - col1 + col0 + + col1 / - 88 col2 FROM tab1 AS cor0
----
-23
54
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 87 + col1 col1 FROM tab2
----
104
118
146

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - tab0.col0 col2 FROM tab0
----
-178
-48
-70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 66 col1 FROM tab1
----
66
66
66

query I rowsort
SELECT DISTINCT col2 + + col1 * tab2.col1 * col2 FROM tab2
----
11020
25974
90532

onlyif mysql # use DIV operator for integer division
query I rowsort label-3149
SELECT + cor0.col2 DIV col2 AS col1 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3149
SELECT + cor0.col2 / col2 AS col1 FROM tab0 AS cor0
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-3150
SELECT 68 DIV col1 + - col1 * + col1 AS col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

skipif mysql # not compatible
query I rowsort label-3150
SELECT 68 / col1 + - col1 * + col1 AS col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT - 47 - + tab2.col1 * + col2 * - col0 AS col2 FROM tab2
----
119605
50987
5812

query I rowsort
SELECT ALL - - col1 * cor0.col2 + + col2 AS col1 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT DISTINCT + col0 * cor0.col2 AS col1 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT DISTINCT + - 21 + - col1 FROM tab2 AS cor0
----
-38
-52
-80

query I rowsort
SELECT + 24 * - col2 + ( col0 * col0 ) + + cor0.col2 AS col1 FROM tab1 AS cor0
----
-1233
2785
4192

query I rowsort
SELECT ALL 50 * col0 FROM tab1 AS cor0
----
150
3200
4000

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3157
SELECT - + 10 * col1 + CAST( col2 AS SIGNED ) col2 FROM tab1 AS cor0
----
-206
-34
-43

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3157
SELECT - + 10 * col1 + CAST ( col2 AS INTEGER ) col2 FROM tab1 AS cor0
----
-206
-34
-43

query I rowsort
SELECT 96 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 cor0, tab0, tab2 AS cor1
----
972 values hashing to e486ce227b61d9db6f8414f9d6361094

query I rowsort
SELECT ALL tab0.col0 - col2 * - tab0.col0 FROM tab0
----
70
7387
816

query I rowsort
SELECT - - cor0.col1 * 84 - col1 AS col2 FROM tab1 AS cor0
----
1079
2158
830

query I rowsort
SELECT + + col0 + + col0 FROM tab0 cor0
----
178
48
70

query I rowsort
SELECT - col2 * + 65 + - col0 * col0 * col0 AS col2 FROM tab0
----
-15969
-42940
-710299

query I rowsort
SELECT - - col2 + + 85 FROM tab2 cor0
----
111
112
123

query I rowsort
SELECT DISTINCT col1 * 74 + col1 * + col1 + ( - col0 ) AS col2 FROM tab0 AS cor0
----
13736
14926
16552

query I rowsort
SELECT - col1 - - col1 * + col1 * col1 FROM tab1 AS cor0
----
17550
2184
990

query I rowsort
SELECT DISTINCT ( col2 ) + col2 AS col0 FROM tab0 AS cor0
----
164
2
66

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3168
SELECT CAST( NULL AS DECIMAL ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3168
SELECT CAST ( NULL AS REAL ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3169
SELECT DISTINCT - CAST( - col0 AS SIGNED ) * + col1 * col0 + + col1 * + col0 AS col0 FROM tab1 AS cor0
----
312
41600
84240

skipif mysql # not compatible
query I rowsort label-3169
SELECT DISTINCT - CAST ( - col0 AS INTEGER ) * + col1 * col0 + + col1 * + col0 AS col0 FROM tab1 AS cor0
----
312
41600
84240

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3170
SELECT ALL - - CAST( + col1 AS SIGNED ) FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-3170
SELECT ALL - - CAST ( + col1 AS INTEGER ) FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT DISTINCT - col0 + - col0 + - col1 FROM tab0 AS cor0
----
-134
-167
-269

query I rowsort
SELECT DISTINCT + col0 + col2 AS col1 FROM tab2 cor0
----
104
117
34

query I rowsort
SELECT ALL - ( + col0 ) + - col0 FROM tab1 cor0
----
-128
-160
-6

query I rowsort
SELECT ALL - col2 - - col1 AS col1 FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT ALL ( col1 ) + col2 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT DISTINCT - + col1 * - 11 - + col1 FROM tab0 AS cor0
----
860
910
970

query I rowsort
SELECT + 78 * col1 AS col0 FROM tab0 cor0
----
6708
7098
7566

query I rowsort
SELECT DISTINCT - + 59 * - ( + col2 ) FROM tab2 AS cor0
----
1534
1593
2242

query I rowsort
SELECT DISTINCT - - ( col2 ) + + col2 AS col2 FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT + 38 - 13 FROM tab1 AS cor0
----
25
25
25

query I rowsort
SELECT DISTINCT col0 * tab0.col2 + col2 FROM tab0
----
36
7380
825

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3182
SELECT CAST( NULL AS SIGNED ) * 80 + + col2 * 77 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3182
SELECT CAST ( NULL AS INTEGER ) * 80 + + col2 * 77 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( col0 ) + - col0 AS col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT - - col0 - 50 AS col1 FROM tab2 AS cor0
----
-43
28
29

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3185
SELECT ALL + CAST( NULL AS DECIMAL ) + + col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3185
SELECT ALL + CAST ( NULL AS REAL ) + + col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 20 * col1 + + col2 - col2 FROM tab2 cor0
----
1180
340
620

skipif mysql # not compatible
query I rowsort
SELECT + CAST ( col0 AS REAL ) * + col2 + + col1 FROM tab0 cor0
----
132
7389
878

query I rowsort
SELECT DISTINCT + - 23 AS col0 FROM tab0 AS cor0
----
-23

query I rowsort
SELECT col1 * 75 + + col1 - col1 FROM tab2 cor0
----
1275
2325
4425

query I rowsort
SELECT ALL + 18 AS col2 FROM tab0 AS cor0
----
18
18
18

onlyif mysql # use DIV operator for integer division
query I rowsort label-3191
SELECT col1 DIV - col1 + col2 * 20 - - 59 DIV col1 FROM tab0 AS cor0
----
1639
19
659

skipif mysql # not compatible
query I rowsort label-3191
SELECT col1 / - col1 + col2 * 20 - - 59 / col1 FROM tab0 AS cor0
----
1639
19
659

query I rowsort
SELECT + ( - 97 ) * col1 + col2 * cor0.col0 - col1 FROM tab2 cor0
----
-2849
-3754
1336

query I rowsort
SELECT DISTINCT + cor0.col0 * - col1 FROM tab0 cor0
----
-2064
-3395
-8099

query I rowsort
SELECT + 19 + col1 AS col1 FROM tab2 AS cor0
----
36
50
78

query I rowsort
SELECT 53 + cor0.col2 FROM tab0 AS cor0
----
135
54
86

query I rowsort
SELECT ALL - + cor1.col2 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75

query I rowsort
SELECT ALL cor0.col1 + + col0 AS col2 FROM tab2 cor0
----
137
38
96

query I rowsort
SELECT ALL ( col0 * tab2.col0 ) + 11 FROM tab2
----
60
6095
6252

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * col0 * + col2 col0 FROM tab1 AS cor0
----
207936
737280
8748

query I rowsort
SELECT - cor0.col2 * + col1 AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT + col2 * + ( + 68 ) AS col0 FROM tab1 AS cor0
----
3672
3876
6528

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3202
SELECT - cor0.col2 * - CAST( NULL AS SIGNED ) + - col0 * col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3202
SELECT - cor0.col2 * - CAST ( NULL AS INTEGER ) + - col0 * col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 * - 67 AS col0 FROM tab0 AS cor0
----
-2211
-5494
-67

query I rowsort
SELECT - tab1.col2 + - 25 AS col1 FROM tab1
----
-121
-79
-82

query I rowsort
SELECT ALL - col1 * + 10 FROM tab2 cor0
----
-170
-310
-590

query I rowsort
SELECT DISTINCT - col1 * - col1 - col2 * - col0 AS col0 FROM tab2 AS cor0
----
1150
3291
5509

query I rowsort
SELECT ALL + + col1 * ( col2 ) FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT DISTINCT + col0 + + col1 * col1 FROM tab1 AS cor0
----
164
249
679

query I rowsort
SELECT + + 39 * + col2 + col0 AS col0 FROM tab0 AS cor0
----
1311
3287
74

onlyif mysql # use DIV operator for integer division
query I rowsort label-3210
SELECT DISTINCT col2 DIV col1 + + col1 AS col1 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-3210
SELECT DISTINCT col2 / col1 + + col1 AS col1 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT + - col2 + col1 * col1 * col2 FROM tab1 AS cor0
----
16128
36450
5643

query I rowsort
SELECT - ( tab0.col2 + + col2 ) * 40 * 52 FROM tab0
----
-137280
-341120
-4160

query I rowsort
SELECT - col2 + + cor0.col2 + col1 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT ALL ( col1 ) * - tab1.col1 FROM tab1
----
-100
-169
-676

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + ( - 51 ) col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 3 * + 51 - - col1 * - cor0.col2 col1 FROM tab2 cor0
----
-1381
-493
-684

query I rowsort
SELECT - col1 * col2 + - col2 FROM tab0 AS cor0
----
-2871
-7544
-98

query I rowsort
SELECT col0 * + ( col2 ) + + col1 AS col2 FROM tab2 cor0
----
2087
220
3019

query I rowsort
SELECT ALL + col0 + 58 AS col0 FROM tab2
----
136
137
65

onlyif mysql # use DIV operator for integer division
query I rowsort label-3220
SELECT tab0.col1 + - col2 DIV + col1 AS col2 FROM tab0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-3220
SELECT tab0.col1 + - col2 / + col1 AS col2 FROM tab0
----
86
91
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3221
SELECT + - ( - col2 ) * cor0.col2 + CAST( NULL AS SIGNED ) * - 93 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3221
SELECT + - ( - col2 ) * cor0.col2 + CAST ( NULL AS INTEGER ) * - 93 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3222
SELECT DISTINCT - 40 DIV + col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3222
SELECT DISTINCT - 40 / + col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL + ( ( - cor0.col1 ) ) * + col0 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT DISTINCT + cor0.col1 * cor0.col0 AS col1 FROM tab1, tab1 cor0
----
1040
640
78

query I rowsort
SELECT DISTINCT cor1.col1 + 30 * 23 FROM tab1, tab1 cor0, tab1 AS cor1
----
700
703
716

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + 83 * col2 col2 FROM tab2 AS cor0
----
-119852
-56108
-60507

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - col1 col0 FROM tab2
----
-1343
-217
-4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 4 col2 FROM tab2, tab1 cor0
----
-4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3229
SELECT + cor0.col1 + col0 + + CAST( col0 AS SIGNED ) FROM tab2 AS cor0
----
175
215
45

skipif mysql # not compatible
query I rowsort label-3229
SELECT + cor0.col1 + col0 + + CAST ( col0 AS INTEGER ) FROM tab2 AS cor0
----
175
215
45

query I rowsort
SELECT DISTINCT 71 * col2 * + ( col2 ) + + col0 FROM tab2
----
102603
48074
51766

query I rowsort
SELECT DISTINCT col2 * - col2 + tab1.col2 AS col1 FROM tab1
----
-2862
-3192
-9120

query I rowsort
SELECT DISTINCT col2 + + col0 + + 83 AS col2 FROM tab0
----
119
140
254

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 DISTINCT - cor0.col0 col2 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
-3
-64
-80

query I rowsort
SELECT DISTINCT + col1 * col1 + + col2 AS col2 FROM tab0 AS cor0
----
7429
8363
9410

query I rowsort
SELECT + + col0 * col0 + 71 * + col0 + - col1 FROM tab2 AS cor0
----
11563
11833
515

query I rowsort
SELECT ALL + 30 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 6c98840ed134c765d56389f4150075f0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3238
SELECT 91 * - col0 / col0 - CAST( NULL AS DECIMAL ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3238
SELECT 91 * - col0 / col0 - CAST ( NULL AS REAL ) FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 77 * + col0 + - col2 * cor0.col1 + col1 FROM tab2 AS cor0
----
-1345
-6712
-7481

query I rowsort
SELECT col0 + + ( + col1 ) AS col2 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT - 31 * col2 AS col0 FROM tab1 AS cor0
----
-1674
-1767
-2976

query I rowsort
SELECT - col0 - + col2 * col0 AS col1 FROM tab1 AS cor0
----
-165
-3712
-7760

onlyif mysql # use DIV operator for integer division
query I rowsort label-3243
SELECT DISTINCT - col1 DIV + col1 col0 FROM tab0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3243
SELECT DISTINCT - col1 / + col1 col0 FROM tab0
----
-1

query I rowsort
SELECT - + col0 + - 34 FROM tab1 AS cor0
----
-114
-37
-98

query I rowsort
SELECT DISTINCT 65 * - col0 * + cor0.col1 FROM tab1 AS cor0
----
-41600
-5070
-67600

query I rowsort
SELECT - - 52 * col0 - + col2 FROM tab2 AS cor0
----
337
4030
4070

query I rowsort
SELECT ALL + col0 + ( - col2 * 45 ) AS col0 FROM tab1 AS cor0
----
-2427
-2501
-4240

query I rowsort
SELECT DISTINCT + 61 * - cor0.col2 FROM tab1, tab0 AS cor0
----
-2013
-5002
-61

query I rowsort
SELECT DISTINCT - col1 * + col0 + 13 FROM tab1 AS cor0
----
-1027
-627
-65

query I rowsort
SELECT DISTINCT - col2 - + ( col0 ) AS col1 FROM tab0 AS cor0
----
-171
-36
-57

query I rowsort
SELECT DISTINCT - col2 + - 38 * col1 AS col0 FROM tab0 AS cor0
----
-3301
-3540
-3687

query I rowsort
SELECT DISTINCT col0 + 49 AS col0 FROM tab1 AS cor0
----
113
129
52

query I rowsort
SELECT ALL + col0 * + ( + col2 ) + col0 FROM tab0 cor0
----
70
7387
816

query I rowsort
SELECT col1 * col1 + + col2 AS col0 FROM tab2 cor0
----
327
3507
988

query I rowsort
SELECT + - 56 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 3d3dab400eef93c098acbbba3fc9bdc6

query I rowsort
SELECT - cor0.col2 * + col2 - col2 FROM tab1 AS cor0
----
-2970
-3306
-9312

query I rowsort
SELECT col1 + col2 + + col1 FROM tab1
----
106
122
77

query I rowsort
SELECT tab0.col1 + 26 - - col2 FROM tab0
----
124
145
199

query I rowsort
SELECT ALL col2 * col0 * - cor0.col0 AS col1 FROM tab1 AS cor0
----
-233472
-486
-614400

query I rowsort
SELECT + + 74 + + 63 * - col2 FROM tab1 AS cor0
----
-3328
-3517
-5974

query I rowsort
SELECT col0 + - col1 + 6 FROM tab1
----
-17
60
73

query I rowsort
SELECT ALL - tab1.col1 + + 62 AS col2 FROM tab1
----
36
49
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col0 * - col0 col0 FROM tab1
----
-4096
-6400
-9

query I rowsort
SELECT + - col0 + col0 * - cor0.col2 FROM tab0 AS cor0
----
-70
-7387
-816

onlyif mysql # use DIV operator for integer division
query I rowsort label-3265
SELECT - + col1 + + 71 DIV - col2 AS col1 FROM tab1 AS cor0
----
-11
-13
-27

skipif mysql # not compatible
query I rowsort label-3265
SELECT - + col1 + + 71 / - col2 AS col1 FROM tab1 AS cor0
----
-11
-13
-27

query I rowsort
SELECT - 2 FROM tab2, tab1 AS cor0
----
9 values hashing to ec11209ab257030053484fc13a1f6d17

query I rowsort
SELECT DISTINCT col1 + + 30 AS col0 FROM tab2
----
47
61
89

query I rowsort
SELECT - - 31 * - col0 AS col1 FROM tab0 AS cor0
----
-1085
-2759
-744

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 + col0 * col0 col2 FROM tab1 AS cor0
----
12
4160
6480

query I rowsort
SELECT + ( col2 * - col0 ) AS col2 FROM tab1
----
-162
-3648
-7680

query I rowsort
SELECT ALL + 61 * col2 AS col2 FROM tab0
----
2013
5002
61

onlyif mysql # use DIV operator for integer division
query I rowsort label-3272
SELECT ALL col1 * col0 DIV tab1.col1 FROM tab1
----
3
64
80

skipif mysql # not compatible
query I rowsort label-3272
SELECT ALL col1 * col0 / tab1.col1 FROM tab1
----
3
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 19 col2 FROM tab2
----
19
19
19

query I rowsort
SELECT ( col2 ) - - tab2.col2 * - col0 AS col1 FROM tab2
----
-162
-2002
-2964

query I rowsort
SELECT + - 61 + 83 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

onlyif mysql # use DIV operator for integer division
query I rowsort label-3276
SELECT + col0 DIV + col1 + 25 AS col2 FROM tab0
----
25
25
25

skipif mysql # not compatible
query I rowsort label-3276
SELECT + col0 / + col1 + 25 AS col2 FROM tab0
----
25
25
25

query I rowsort
SELECT + col2 * col0 * col1 + + ( + col2 + col0 ) AS col1 FROM tab0
----
3431
664289
68169

query I rowsort
SELECT DISTINCT - 80 - col0 FROM tab1
----
-144
-160
-83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3279
SELECT ALL col2 / col1 + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3279
SELECT ALL col2 / col1 + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 74 AS col0 FROM tab0 AS cor0
----
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - col1 * - col1 * - col0 col1 FROM tab2 AS cor0
----
-22793
-271492
-6700

query I rowsort
SELECT - 77 + + col2 * - ( col1 ) * - col0 AS col1 FROM tab2 AS cor0
----
119575
50957
5782

onlyif mysql # use DIV operator for integer division
query I rowsort label-3283
SELECT ALL - - ( - cor0.col1 ) * col2 * + col2 + col1 DIV ( - col0 ) AS col0 FROM tab1 cor0
----
-119808
-32490
-75824

skipif mysql # not compatible
query I rowsort label-3283
SELECT ALL - - ( - cor0.col1 ) * col2 * + col2 + col1 / ( - col0 ) AS col0 FROM tab1 cor0
----
-119808
-32490
-75824

query I rowsort
SELECT + - col0 * - cor0.col2 AS col0 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT ALL - + 3 FROM tab1 AS cor0
----
-3
-3
-3

query I rowsort
SELECT + 20 + cor0.col0 * 5 FROM tab1 cor0
----
340
35
420

query I rowsort
SELECT DISTINCT + - col2 + + col1 * + col2 AS col2 FROM tab0 AS cor0
----
2805
7380
96

query I rowsort
SELECT ALL + 18 * col1 * col0 FROM tab1
----
11520
1404
18720

query I rowsort
SELECT ALL - 60 * + col0 * - tab2.col1 FROM tab2
----
13020
276120
80580

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - col0 col0 FROM tab0
----
1225
576
7921

query I rowsort
SELECT DISTINCT + + col1 + col1 + - col1 AS col0 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT DISTINCT - + 80 AS col1 FROM tab2 AS cor0
----
-80

query I rowsort
SELECT ALL ( col0 ) - 28 FROM tab2 AS cor0
----
-21
50
51

query I rowsort
SELECT ALL + 50 * col0 FROM tab2 AS cor0
----
350
3900
3950

query I rowsort
SELECT DISTINCT - ( col1 + - col1 * + col2 ) AS col1 FROM tab0
----
0
2752
7371

onlyif mysql # use DIV operator for integer division
query I rowsort label-3296
SELECT ALL cor0.col2 DIV + cor0.col2 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3296
SELECT ALL cor0.col2 / + cor0.col2 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT - col0 * - 81 AS col1 FROM tab1 cor0
----
243
5184
6480

query I rowsort
SELECT ALL - + col0 * - 25 FROM tab2 AS cor0
----
175
1950
1975

query I rowsort
SELECT ALL + cor0.col1 * + 0 AS col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3300
SELECT DISTINCT col1 * CAST( NULL AS SIGNED ) col0 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3300
SELECT DISTINCT col1 * CAST ( NULL AS INTEGER ) col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + cor0.col2 + + col2 AS col1 FROM tab0 AS cor0
----
164
2
66

query I rowsort
SELECT ALL col1 + cor0.col1 * + cor0.col0 FROM tab2 AS cor0
----
1360
248
4661

onlyif mysql # use DIV operator for integer division
query I rowsort label-3303
SELECT - col0 - 89 DIV 68 FROM tab0 AS cor0
----
-25
-36
-90

skipif mysql # not compatible
query I rowsort label-3303
SELECT - col0 - 89 / 68 FROM tab0 AS cor0
----
-25
-36
-90

onlyif mysql # use DIV operator for integer division
query I rowsort label-3304
SELECT + + col2 + + ( + 60 ) DIV col1 AS col1 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-3304
SELECT + + col2 + + ( + 60 ) / col1 AS col1 FROM tab0 AS cor0
----
1
33
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-3305
SELECT DISTINCT + col2 DIV + 12 FROM tab2 AS cor0
----
2
3

skipif mysql # not compatible
query I rowsort label-3305
SELECT DISTINCT + col2 / + 12 FROM tab2 AS cor0
----
2
3

onlyif mysql # use DIV operator for integer division
query I rowsort label-3306
SELECT cor0.col0 * col1 DIV 22 FROM tab2 AS cor0
----
209
61
9

skipif mysql # not compatible
query I rowsort label-3306
SELECT cor0.col0 * col1 / 22 FROM tab2 AS cor0
----
209
61
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-3307
SELECT DISTINCT - 47 + ( + cor0.col1 ) DIV ( ( + col1 ) ) FROM tab0 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-3307
SELECT DISTINCT - 47 + ( + cor0.col1 ) / ( ( + col1 ) ) FROM tab0 AS cor0
----
-46

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab1 AS cor0 CROSS JOIN tab2, tab1 cor1, tab2 AS cor2
----
3645 values hashing to 5d28fbab8377f7a8b08a31395cb11d94

query I rowsort
SELECT DISTINCT - - col1 * - col0 AS col2 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT + 70 + + 47 AS col1 FROM tab0 AS cor0
----
117
117
117

query I rowsort
SELECT ALL + 50 + - col0 AS col1 FROM tab1 AS cor0
----
-14
-30
47

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3312
SELECT CAST( NULL AS SIGNED ) + - ( + col1 ) * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3312
SELECT CAST ( NULL AS INTEGER ) + - ( + col1 ) * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + col2 + + 90 AS col0 FROM tab0 cor0
----
57
8
89

query I rowsort
SELECT DISTINCT + - 95 * col2 AS col0 FROM tab2 AS cor0
----
-2470
-2565
-3610

query I rowsort
SELECT col0 * col0 + col0 AS col0 FROM tab0
----
1260
600
8010

query I rowsort
SELECT ( + col1 ) + col2 * col1 FROM tab1 cor0
----
1261
1430
580

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3317
SELECT CAST( + col2 AS SIGNED ) AS col0 FROM tab0 cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-3317
SELECT CAST ( + col2 AS INTEGER ) AS col0 FROM tab0 cor0
----
1
33
82

query I rowsort
SELECT DISTINCT ( + col0 ) + - col1 * col1 FROM tab1 AS cor0
----
-36
-673
-89

onlyif mysql # use DIV operator for integer division
query I rowsort label-3319
SELECT ALL col0 + - col0 DIV - col0 FROM tab1 AS cor0
----
4
65
81

skipif mysql # not compatible
query I rowsort label-3319
SELECT ALL col0 + - col0 / - col0 FROM tab1 AS cor0
----
4
65
81

query I rowsort
SELECT DISTINCT + ( ( - col2 ) ) * - col1 - + col0 FROM tab1 AS cor0
----
1168
1401
506

query I rowsort
SELECT DISTINCT - ( + col1 ) * + col2 + + col0 FROM tab0 AS cor0
----
-2814
-62
-7373

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3322
SELECT DISTINCT - + CAST( NULL AS DECIMAL ) * + col1 - col1 * + col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3322
SELECT DISTINCT - + CAST ( NULL AS REAL ) * + col1 - col1 * + col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT col0 * + col0 AS col1 FROM tab1 cor0
----
4096
6400
9

query I rowsort
SELECT + + cor0.col0 * col1 + cor0.col1 AS col2 FROM tab1 AS cor0
----
104
1053
650

query I rowsort
SELECT ALL - ( + col0 ) + + col2 AS col0 FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT DISTINCT col2 * - ( + 48 ) FROM tab0 AS cor0
----
-1584
-3936
-48

query I rowsort
SELECT - col0 * - col1 + - col1 AS col0 FROM tab0 AS cor0
----
1978
3298
8008

query I rowsort
SELECT DISTINCT + cor0.col0 + ( - col0 ) AS col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT - + col0 * + 1 + col1 AS col1 FROM tab0 AS cor0
----
2
62
62

query I rowsort
SELECT + + col0 * + ( ( + cor0.col2 ) ) + cor0.col0 FROM tab1 AS cor0
----
165
3712
7760

onlyif mysql # use DIV operator for integer division
query I rowsort label-3331
SELECT ALL - col2 DIV - col1 + col1 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-3331
SELECT ALL - col2 / - col1 + col1 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT DISTINCT + col0 * + col2 - col2 AS col0 FROM tab0 AS cor0
----
34
7216
759

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col0 + - cor0.col2 col0 FROM tab1 cor0
----
-45
4039
6304

query I rowsort
SELECT DISTINCT + col1 * 69 + col1 FROM tab1 AS cor0
----
1820
700
910

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3335
SELECT ALL + col2 * CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3335
SELECT ALL + col2 * CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 + 38 AS col1 FROM tab0 AS cor0
----
124
129
135

query I rowsort
SELECT + col1 + + ( + col2 ) FROM tab1 cor0
----
109
67
80

query I rowsort
SELECT - col0 * + cor0.col0 FROM tab2 cor0
----
-49
-6084
-6241

query I rowsort
SELECT DISTINCT cor0.col1 * col1 * 85 AS col1 FROM tab0 AS cor0
----
628660
703885
799765

query I rowsort
SELECT ALL - col2 + col0 * - ( cor0.col0 ) FROM tab2 AS cor0
----
-6110
-6279
-76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 90 * col0 + + ( cor0.col1 * col2 ) col2 FROM tab2 AS cor0
----
1467
7756
8554

onlyif mysql # use DIV operator for integer division
query I rowsort label-3342
SELECT DISTINCT 10 DIV - tab0.col0 AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3342
SELECT DISTINCT 10 / - tab0.col0 AS col2 FROM tab0
----
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3343
SELECT cor0.col2 + col2 * + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3343
SELECT cor0.col2 + col2 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - 73 * + col1 * 52 FROM tab2 AS cor0
----
117676
223964
64532

query I rowsort
SELECT ( - col1 * col0 ) - col2 AS col2 FROM tab0
----
-2097
-3396
-8181

query I rowsort
SELECT DISTINCT ( + col1 * - col0 ) + + col2 * + col0 AS col1 FROM tab1
----
3008
6640
84

query I rowsort
SELECT + 5 + + col1 + ( - tab0.col2 ) AS col1 FROM tab0
----
101
14
58

onlyif mysql # use DIV operator for integer division
query I rowsort label-3348
SELECT DISTINCT tab1.col0 DIV col0 + col0 * col1 AS col2 FROM tab1
----
1041
641
79

skipif mysql # not compatible
query I rowsort label-3348
SELECT DISTINCT tab1.col0 / col0 + col0 * col1 AS col2 FROM tab1
----
1041
641
79

query I rowsort
SELECT ALL - 59 * - col2 + + ( col2 ) AS col2 FROM tab1
----
3240
3420
5760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab2.col0 col1 FROM tab2, tab0 AS cor0
----
-7
-78
-79

query I rowsort
SELECT 9 * + col0 FROM tab0
----
216
315
801

query I rowsort
SELECT tab0.col1 + col0 + col1 FROM tab0
----
196
229
271

query I rowsort
SELECT DISTINCT + - col2 + + cor0.col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT - 96 AS col2 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to a7b3e5dd01c8929180b7ffda67f79798

query I rowsort
SELECT - ( - col2 ) * col2 AS col1 FROM tab2
----
1444
676
729

query I rowsort
SELECT ALL + tab2.col2 + - tab2.col0 + + ( col2 ) * + col2 FROM tab2
----
1403
624
749

onlyif mysql # use DIV operator for integer division
query I rowsort label-3357
SELECT col2 DIV - tab0.col2 AS col1 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3357
SELECT col2 / - tab0.col2 AS col1 FROM tab0
----
-1
-1
-1

query I rowsort
SELECT ALL + col1 + col0 * - col2 FROM tab2 AS cor0
----
-158
-1969
-2985

query I rowsort
SELECT + cor0.col2 - col0 * - col1 AS col2 FROM tab2 AS cor0
----
1381
244
4628

query I rowsort
SELECT ALL - col0 + - col2 - - col0 FROM tab0
----
-1
-33
-82

onlyif mysql # use DIV operator for integer division
query I rowsort label-3361
SELECT tab1.col2 DIV tab1.col0 - + col1 * col2 AS col2 FROM tab1
----
-1247
-1386
-570

skipif mysql # not compatible
query I rowsort label-3361
SELECT tab1.col2 / tab1.col0 - + col1 * col2 AS col2 FROM tab1
----
-1247
-1386
-570

query I rowsort
SELECT DISTINCT + col0 - col1 AS col1 FROM tab1
----
-23
54
67

query I rowsort
SELECT ALL + ( - cor0.col0 ) AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 87 col1 FROM tab2
----
-87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 26 * col0 * col2 col0 FROM tab1
----
199680
4212
94848

onlyif mysql # use DIV operator for integer division
query I rowsort label-3366
SELECT DISTINCT - 17 DIV tab2.col0 AS col1 FROM tab2
----
-2
0

skipif mysql # not compatible
query I rowsort label-3366
SELECT DISTINCT - 17 / tab2.col0 AS col1 FROM tab2
----
-2
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 63 col0 FROM tab2
----
-63
-63
-63

onlyif mysql # use DIV operator for integer division
query I rowsort label-3368
SELECT ALL + col0 - col2 DIV - col2 FROM tab0 cor0
----
25
36
90

skipif mysql # not compatible
query I rowsort label-3368
SELECT ALL + col0 - col2 / - col2 FROM tab0 cor0
----
25
36
90

query I rowsort
SELECT ALL - - ( - col1 ) * - col1 + col1 AS col1 FROM tab1 AS cor0
----
110
182
702

query I rowsort
SELECT + col1 * - 76 AS col0 FROM tab1 AS cor0
----
-1976
-760
-988

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 * + col2 + + col1 col1 FROM tab0 cor0
----
132
7389
878

query I rowsort
SELECT - 68 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 5febf382d36d6e0191889c41b928786f

query I rowsort
SELECT + + 54 + col1 FROM tab2 AS cor0
----
113
71
85

query I rowsort
SELECT col0 + + col0 * + col0 AS col0 FROM tab2 AS cor0
----
56
6162
6320

query I rowsort
SELECT + + ( - col0 ) + cor0.col1 * + col2 AS col2 FROM tab1 AS cor0
----
1168
1401
506

query IIIIII rowsort
SELECT ALL * FROM tab0, tab2 AS cor0 WHERE ( NULL ) < NULL
----

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3377
SELECT ( cor0.col1 * CAST( NULL AS SIGNED ) ) - + 37 FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-3377
SELECT ( cor0.col1 * CAST ( NULL AS INTEGER ) ) - + 37 FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT - col1 * col0 + - col2 * ( col0 + col2 ) FROM tab1
----
-17936
-3156
-7537

query I rowsort
SELECT - 23 + 41 FROM tab0
----
18
18
18

query I rowsort
SELECT + ( - 65 ) + col2 AS col2 FROM tab0
----
-32
-64
17

onlyif mysql # use DIV operator for integer division
query I rowsort label-3381
SELECT DISTINCT + col0 DIV - col1 + cor0.col1 AS col1 FROM tab1 AS cor0
----
26
4
7

skipif mysql # not compatible
query I rowsort label-3381
SELECT DISTINCT + col0 / - col1 + cor0.col1 AS col1 FROM tab1 AS cor0
----
26
4
7

query I rowsort
SELECT DISTINCT - + 55 * + col0 + col0 AS col2 FROM tab0 cor0
----
-1296
-1890
-4806

query I rowsort
SELECT - col1 + + col1 * - col2 FROM tab1 AS cor0
----
-1261
-1430
-580

query I rowsort
SELECT ALL - - 66 AS col1 FROM tab1 AS cor0
----
66
66
66

query I rowsort
SELECT DISTINCT - ( + col1 ) + col2 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT col1 * - col1 - col1 AS col2 FROM tab1 AS cor0
----
-110
-182
-702

query I rowsort
SELECT ALL + 61 * col0 AS col1 FROM tab2 AS cor0
----
427
4758
4819

query I rowsort
SELECT DISTINCT col0 * cor0.col1 + col0 AS col2 FROM tab0 AS cor0
----
2088
3430
8188

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 4 * col2 col2 FROM tab0 AS cor0
----
132
328
4

query I rowsort
SELECT ALL + col1 + - col0 AS col2 FROM tab1 cor0
----
-54
-67
23

query I rowsort
SELECT - ( col0 ) * col2 + + col0 + col1 AS col0 FROM tab0 cor0
----
-682
-7118
97

query I rowsort
SELECT DISTINCT ( cor0.col0 ) + + cor0.col2 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT DISTINCT - + 25 AS col1 FROM tab0 AS cor0
----
-25

query I rowsort
SELECT ALL + - 53 * - cor0.col2 FROM tab2 AS cor0
----
1378
1431
2014

onlyif mysql # use DIV operator for integer division
query I rowsort label-3395
SELECT - ( - col2 ) - - col2 DIV + 35 FROM tab2 AS cor0
----
26
27
39

skipif mysql # not compatible
query I rowsort label-3395
SELECT - ( - col2 ) - - col2 / + 35 FROM tab2 AS cor0
----
26
27
39

query I rowsort
SELECT ALL - col1 * col0 + ( col2 ) + col0 FROM tab1 AS cor0
----
-21
-519
-864

query I rowsort
SELECT DISTINCT - - col2 * - 49 FROM tab1 AS cor0
----
-2646
-2793
-4704

query I rowsort
SELECT + + col0 + 37 FROM tab0 AS cor0
----
126
61
72

query I rowsort
SELECT ALL - col2 * 40 AS col0 FROM tab2 AS cor0
----
-1040
-1080
-1520

query I rowsort
SELECT ALL + col0 + + 7 * col1 FROM tab2 AS cor0
----
198
224
491

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3401
SELECT + + col0 * CAST( - col0 AS SIGNED ) AS col0 FROM tab2 cor0
----
-49
-6084
-6241

skipif mysql # not compatible
query I rowsort label-3401
SELECT + + col0 * CAST ( - col0 AS INTEGER ) AS col0 FROM tab2 cor0
----
-49
-6084
-6241

query I rowsort
SELECT ALL col0 * col2 + - col2 FROM tab2 AS cor0
----
162
2002
2964

query I rowsort
SELECT + - col1 * col1 + cor0.col0 FROM tab0 AS cor0
----
-7372
-8192
-9374

query I rowsort
SELECT DISTINCT - col0 * 41 FROM tab0 AS cor0
----
-1435
-3649
-984

query I rowsort
SELECT col1 + 19 AS col2 FROM tab2 cor0
----
36
50
78

query I rowsort
SELECT - col1 * col1 * col1 AS col0 FROM tab1
----
-1000
-17576
-2197

query I rowsort
SELECT 98 * - col0 AS col0 FROM tab0
----
-2352
-3430
-8722

query I rowsort
SELECT ALL + 48 * col2 AS col1 FROM tab2
----
1248
1296
1824

query I rowsort
SELECT + + col0 + col1 * ( - cor0.col1 * ( - col2 ) ) FROM tab2 cor0
----
11061
25954
90584

query I rowsort
SELECT + col2 * ( - cor0.col2 ) AS col2 FROM tab0 AS cor0
----
-1
-1089
-6724

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab0, tab2 cor1, tab1, tab2 AS cor2
----
3645 values hashing to 6193516da5556fc054f35e0d2f4e5372

query I rowsort
SELECT tab2.col0 + 54 FROM tab2
----
132
133
61

onlyif mysql # use DIV operator for integer division
query I rowsort label-3413
SELECT DISTINCT col0 DIV 9 FROM tab1
----
0
7
8

skipif mysql # not compatible
query I rowsort label-3413
SELECT DISTINCT col0 / 9 FROM tab1
----
0
7
8

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 DISTINCT + col0 * + 59 FROM tab1
----
177
3776
4720

query I rowsort
SELECT DISTINCT + cor0.col0 * - 7 AS col2 FROM tab0 AS cor0
----
-168
-245
-623

query I rowsort
SELECT - 54 + + cor0.col1 * + col0 AS col1 FROM tab2 cor0
----
1289
163
4548

query I rowsort
SELECT + + ( col1 ) * + col1 AS col1 FROM tab2 cor0
----
289
3481
961

query I rowsort
SELECT DISTINCT - col1 * - col2 * col1 FROM tab2 AS cor0
----
10982
25947
90506

query I rowsort
SELECT + ( - cor0.col1 ) AS col2 FROM tab0 AS cor0
----
-86
-91
-97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3421
SELECT + CAST( NULL AS SIGNED ) + col0 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3421
SELECT + CAST ( NULL AS INTEGER ) + col0 AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3422
SELECT DISTINCT - + col0 DIV - col0 AS col1 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3422
SELECT DISTINCT - + col0 / - col0 AS col1 FROM tab1 AS cor0
----
1

query I rowsort
SELECT ALL - 33 + ( + col0 ) * - col0 AS col0 FROM tab1 AS cor0
----
-4129
-42
-6433

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3424
SELECT + CAST( NULL AS SIGNED ) * 93 * - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3424
SELECT + CAST ( NULL AS INTEGER ) * 93 * - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 35 * + col0 FROM tab2 AS cor0
----
245
2730
2765

onlyif mysql # use DIV operator for integer division
query I rowsort label-3426
SELECT ( col2 ) DIV col0 AS col1 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3426
SELECT ( col2 ) / col0 AS col1 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT col0 * 69 * col0 FROM tab2 AS cor0
----
3381
419796
430629

query I rowsort
SELECT ALL + + 86 * - col0 FROM tab0 cor0
----
-2064
-3010
-7654

query I rowsort
SELECT + col0 * - ( col0 ) AS col1 FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT ALL 42 + col0 AS col0 FROM tab0
----
131
66
77

query I rowsort
SELECT DISTINCT - 75 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-75

query I rowsort
SELECT + 67 * 41 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d563d4e131b82032cfd2d50715eb7c5d

query I rowsort
SELECT DISTINCT + - 80 * + col1 FROM tab1 AS cor0
----
-1040
-2080
-800

query I rowsort
SELECT ALL - + 41 + col0 FROM tab1 AS cor0
----
-38
23
39

onlyif mysql # use DIV operator for integer division
query I rowsort label-3435
SELECT ALL - col1 * col1 * col1 + col2 DIV col2 - 87 AS col0 FROM tab1 AS cor0
----
-1086
-17662
-2283

skipif mysql # not compatible
query I rowsort label-3435
SELECT ALL - col1 * col1 * col1 + col2 / col2 - 87 AS col0 FROM tab1 AS cor0
----
-1086
-17662
-2283

query I rowsort
SELECT - ( col1 ) + + col0 * + col1 AS col2 FROM tab1 AS cor0
----
1027
52
630

query I rowsort
SELECT ALL + col2 * col2 + ( col0 ) FROM tab0 AS cor0
----
1113
36
6813

query I rowsort
SELECT cor0.col2 + ( cor0.col0 ) AS col0 FROM tab2 cor0
----
104
117
34

onlyif mysql # use DIV operator for integer division
query I rowsort label-3439
SELECT col1 + - col2 DIV + 55 AS col2 FROM tab2 AS cor0
----
17
31
59

skipif mysql # not compatible
query I rowsort label-3439
SELECT col1 + - col2 / + 55 AS col2 FROM tab2 AS cor0
----
17
31
59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3440
SELECT + cor0.col2 * CAST( NULL AS SIGNED ) + - col0 + col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3440
SELECT + cor0.col2 * CAST ( NULL AS INTEGER ) + - col0 + col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - col2 + ( col0 ) FROM tab0 AS cor0
----
171
36
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + ( col2 ) * col1 col2 FROM tab2 AS cor0
----
1560
684
864

query I rowsort
SELECT + col1 + - col0 * - ( col1 ) + col1 * col2 FROM tab1 AS cor0
----
1220
1508
2301

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0, tab0 cor1, tab1, tab0 AS cor2
----
3645 values hashing to 2566f3fa788816c8bfc482e730aaed74

query I rowsort
SELECT ALL col0 * - col1 + col2 FROM tab1 AS cor0
----
-24
-583
-944

query I rowsort
SELECT ALL + cor0.col2 + - col1 * - col1 FROM tab2 AS cor0
----
327
3507
988

onlyif mysql # use DIV operator for integer division
query I rowsort label-3447
SELECT ALL 80 + col0 DIV - col1 FROM tab0
----
80
80
80

skipif mysql # not compatible
query I rowsort label-3447
SELECT ALL 80 + col0 / - col1 FROM tab0
----
80
80
80

query I rowsort
SELECT DISTINCT + 9 + + col0 * + tab2.col0 AS col1 FROM tab2
----
58
6093
6250

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 54 + tab1.col2 col1 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 309938a008d4422aaa277970018fc252

query I rowsort
SELECT ALL + + 9 AS col1 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to ebef7303942834ca1e6ca8604ec18a07

query I rowsort
SELECT + + cor0.col0 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63

query I rowsort
SELECT - cor0.col2 * col1 + 41 + col0 FROM tab1 AS cor0
----
-1127
-1360
-465

query I rowsort
SELECT col1 + cor0.col2 FROM tab0 cor0
----
119
173
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - ( col0 ) + - cor0.col0 col2 FROM tab1 AS cor0
----
-165
-3712
-7760

query I rowsort
SELECT - col0 + - col1 * 98 FROM tab2 AS cor0
----
-1745
-3045
-5860

onlyif mysql # use DIV operator for integer division
query I rowsort label-3456
SELECT col2 * + CAST( + 88 AS SIGNED ) - col0 DIV col2 col1 FROM tab0 AS cor0
----
2904
53
7215

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3456
SELECT col2 * + CAST ( + 88 AS INTEGER ) - col0 / col2 col1 FROM tab0 AS cor0
----
2904
53
7215

query I rowsort
SELECT - 23 + + col0 FROM tab2
----
-16
55
56

query I rowsort
SELECT DISTINCT + cor0.col0 + 98 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
122
133
187

query I rowsort
SELECT + + col2 * + 4 + - col0 FROM tab2 AS cor0
----
101
26
73

query I rowsort
SELECT - - 24 FROM tab1 AS cor0
----
24
24
24

query I rowsort
SELECT ALL + 96 * 26 + - col1 + 9 AS col0 FROM tab1 AS cor0
----
2479
2492
2495

query I rowsort
SELECT - + col2 + cor0.col2 AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - cor0.col0 * + col1 + + col2 AS col1 FROM tab1 AS cor0
----
-24
-583
-944

query I rowsort
SELECT ALL - - 49 AS col2 FROM tab2 cor0
----
49
49
49

query I rowsort
SELECT + 14 + col1 AS col0 FROM tab1 cor0
----
24
27
40

query I rowsort
SELECT DISTINCT + col2 + + col2 * + col2 FROM tab2 AS cor0
----
1482
702
756

query I rowsort
SELECT DISTINCT - cor0.col2 + - col2 AS col0 FROM tab1 AS cor0
----
-108
-114
-192

query I rowsort
SELECT ALL - + 48 AS col0 FROM tab0 cor0
----
-48
-48
-48

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3469
SELECT CAST( + col1 AS SIGNED ) * tab1.col0 + col0 AS col1 FROM tab1
----
1120
704
81

skipif mysql # not compatible
query I rowsort label-3469
SELECT CAST ( + col1 AS INTEGER ) * tab1.col0 + col0 AS col1 FROM tab1
----
1120
704
81

query I rowsort
SELECT ALL 63 FROM tab0, tab0 AS cor0
----
9 values hashing to c3eea92c46f2c49716f386a58b575025

query I rowsort
SELECT + 81 * + col1 AS col2 FROM tab1 cor0
----
1053
2106
810

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 47 + + cor0.col2 col0 FROM tab2 cor0
----
73
74
85

query I rowsort
SELECT DISTINCT + col2 + - cor0.col0 AS col0 FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT ALL + 20 * - col1 + + col1 * - cor0.col2 * col2 FROM tab1 AS cor0
----
-120068
-32690
-76336

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 * - cor0.col1 col1 FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT ALL + ( - col0 ) + 90 AS col1 FROM tab1 AS cor0
----
10
26
87

query I rowsort
SELECT DISTINCT 8 * + col1 AS col2 FROM tab2 AS cor0
----
136
248
472

onlyif mysql # use DIV operator for integer division
query I rowsort label-3478
SELECT ALL col0 + col1 DIV - 15 AS col2 FROM tab0 AS cor0
----
19
29
83

skipif mysql # not compatible
query I rowsort label-3478
SELECT ALL col0 + col1 / - 15 AS col2 FROM tab0 AS cor0
----
19
29
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 51 col2 FROM tab1 AS cor0
----
-51
-51
-51

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3480
SELECT ALL - col1 * - CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3480
SELECT ALL - col1 * - CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort
SELECT + CAST ( col1 AS REAL ) + col1 FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT - 45 * cor0.col1 + + col0 FROM tab0 AS cor0
----
-3846
-4006
-4330

query IIIIIIIIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab0, tab2 cor1, tab0 AS cor2
----
972 values hashing to 86dbd337f00ab84c613ad03d6fc06e28

query I rowsort
SELECT DISTINCT col1 * tab2.col0 * col0 FROM tab2
----
106097
1519
358956

query I rowsort
SELECT + tab0.col2 * ( + 61 + + col0 ) * tab0.col2 AS col2 FROM tab0
----
1008600
92565
96

query I rowsort
SELECT - 70 + cor0.col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 15eede86ef0be714ffd88317951618ea

query I rowsort
SELECT ALL + 17 AS col0 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to e0dd9155e4d67132637a04c18ef46b2a

query I rowsort
SELECT + col1 * - 49 AS col1 FROM tab1
----
-1274
-490
-637

query I rowsort
SELECT ALL col1 + col0 * col2 * - 31 FROM tab1
----
-113078
-238067
-4996

query I rowsort
SELECT - col1 + col2 + cor0.col0 FROM tab1 AS cor0
----
111
163
31

query I rowsort
SELECT ALL - tab2.col1 + 2 AS col2 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to e45ec0008d8d1a476348f8004239b045

query I rowsort
SELECT - col0 * + ( + col1 ) + col1 AS col1 FROM tab0
----
-1978
-3298
-8008

query I rowsort
SELECT col2 * col2 + + col2 FROM tab1
----
2970
3306
9312

query I rowsort
SELECT DISTINCT ( col0 ) + col0 FROM tab0
----
178
48
70

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3495
SELECT CAST( - col0 * + col0 AS SIGNED ) - + col2 FROM tab0
----
-1226
-609
-8003

skipif mysql # not compatible
query I rowsort label-3495
SELECT CAST ( - col0 * + col0 AS INTEGER ) - + col2 FROM tab0
----
-1226
-609
-8003

query I rowsort
SELECT + 74 + tab1.col1 * + col1 AS col0 FROM tab1
----
174
243
750

query I rowsort
SELECT ALL - tab0.col2 * col1 * - col1 FROM tab0
----
244068
679042
9409

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab1, tab0 cor1, tab0, tab0 AS cor2
----
3645 values hashing to 42ae2eaa7bed53d316a0590d597db470

query I rowsort
SELECT + col0 * cor0.col2 AS col2 FROM tab0 cor0
----
35
7298
792

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3500
SELECT ALL - col0 * CAST( NULL AS SIGNED ) + + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3500
SELECT ALL - col0 * CAST ( NULL AS INTEGER ) + + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col1 * - cor0.col2 * - 25 + cor0.col2 * col2 FROM tab0 AS cor0
----
-179826
-2424
-69861

onlyif mysql # use DIV operator for integer division
query I rowsort label-3502
SELECT - col1 + + col2 DIV + col1 AS col2 FROM tab2 AS cor0
----
-15
-31
-59

skipif mysql # not compatible
query I rowsort label-3502
SELECT - col1 + + col2 / + col1 AS col2 FROM tab2 AS cor0
----
-15
-31
-59

query I rowsort
SELECT DISTINCT 9 * - cor0.col0 * cor0.col2 FROM tab0 cor0
----
-315
-65682
-7128

query I rowsort
SELECT - + ( + col2 ) * - col2 FROM tab1 cor0
----
2916
3249
9216

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3505
SELECT ALL - + CAST( + col1 AS SIGNED ) * col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

skipif mysql # not compatible
query I rowsort label-3505
SELECT ALL - + CAST ( + col1 AS INTEGER ) * col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT 0 * + ( col0 ) + - col1 AS col2 FROM tab1
----
-10
-13
-26

query I rowsort
SELECT + 91 + col1 * col2 AS col0 FROM tab1 AS cor0
----
1339
1495
661

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3508
SELECT + - CAST( NULL AS SIGNED ) / col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3508
SELECT + - CAST ( NULL AS INTEGER ) / col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3509
SELECT DISTINCT - + col0 DIV col0 AS col0 FROM tab0 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3509
SELECT DISTINCT - + col0 / col0 AS col0 FROM tab0 cor0
----
-1

query I rowsort
SELECT DISTINCT 98 AS col1 FROM tab2, tab0 cor0, tab0 cor1, tab0 AS cor2
----
98

query I rowsort
SELECT ALL - 87 * col1 FROM tab2 AS cor0
----
-1479
-2697
-5133

query I rowsort
SELECT ALL + ( - col2 ) * + col2 + - cor0.col2 AS col2 FROM tab0 AS cor0
----
-1122
-2
-6806

query I rowsort
SELECT DISTINCT - cor0.col2 * + 71 AS col0 FROM tab1 AS cor0
----
-3834
-4047
-6816

query I rowsort
SELECT DISTINCT + - ( - 95 ) FROM tab0 AS cor0
----
95

onlyif mysql # use DIV operator for integer division
query I rowsort label-3515
SELECT - ( - col0 ) DIV + cor0.col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3515
SELECT - ( - col0 ) / + cor0.col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ( col2 ) * 71 + col0 FROM tab2
----
1924
1924
2777

onlyif mysql # use DIV operator for integer division
query I rowsort label-3517
SELECT - + cor0.col2 + col1 DIV + col0 FROM tab2 AS cor0
----
-23
-26
-38

skipif mysql # not compatible
query I rowsort label-3517
SELECT - + cor0.col2 + col1 / + col0 FROM tab2 AS cor0
----
-23
-26
-38

query I rowsort
SELECT - 17 - col0 FROM tab2
----
-24
-95
-96

query I rowsort
SELECT col1 + + tab0.col1 * ( col2 ) + col2 FROM tab0
----
195
2957
7635

query I rowsort
SELECT DISTINCT - col2 + + col2 + + col2 FROM tab0
----
1
33
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-3521
SELECT DISTINCT 17 DIV + tab0.col1 + - col1 AS col2 FROM tab0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-3521
SELECT DISTINCT 17 / + tab0.col1 + - col1 AS col2 FROM tab0
----
-86
-91
-97

query I rowsort
SELECT + cor0.col2 + 89 AS col0 FROM tab1, tab0, tab1 cor0, tab2
----
81 values hashing to 9304556ffd15aa3b7a89290a5a598614

query I rowsort
SELECT ALL + 76 * + col2 + col0 FROM tab0 AS cor0
----
111
2532
6321

query I rowsort
SELECT DISTINCT - col0 - col1 * 32 AS col2 FROM tab2 cor0
----
-1966
-623
-999

query I rowsort
SELECT + cor0.col0 + col2 * col0 FROM tab0 cor0
----
70
7387
816

query I rowsort
SELECT col0 * ( cor0.col0 + + col2 ) AS col1 FROM tab0 AS cor0
----
1260
1368
15219

query I rowsort
SELECT DISTINCT col0 * ( col2 ) AS col0 FROM tab0 AS cor0
----
35
7298
792

onlyif mysql # use DIV operator for integer division
query I rowsort label-3528
SELECT DISTINCT - + col2 * col2 + - col0 DIV + col1 AS col2 FROM tab2 AS cor0
----
-1448
-677
-729

skipif mysql # not compatible
query I rowsort label-3528
SELECT DISTINCT - + col2 * col2 + - col0 / + col1 AS col2 FROM tab2 AS cor0
----
-1448
-677
-729

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + 73 col0 FROM tab0 cor0
----
108
162
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-3530
SELECT ALL + cor0.col2 DIV col1 FROM tab2 AS cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-3530
SELECT ALL + cor0.col2 / col1 FROM tab2 AS cor0
----
0
0
2

query I rowsort
SELECT ALL - col2 * - 16 + - col2 FROM tab2 AS cor0
----
390
405
570

query I rowsort
SELECT DISTINCT - col0 + 33 * col1 AS col0 FROM tab2 AS cor0
----
1016
1869
482

query I rowsort
SELECT ALL col2 * 27 AS col2 FROM tab2 AS cor0
----
1026
702
729

query I rowsort
SELECT ALL col0 * + cor0.col2 AS col2 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT + col1 * ( + 75 * col0 ) AS col0 FROM tab2 AS cor0
----
100725
16275
345150

onlyif mysql # use DIV operator for integer division
query I rowsort label-3536
SELECT ALL col0 DIV col1 + 84 FROM tab0
----
84
84
84

skipif mysql # not compatible
query I rowsort label-3536
SELECT ALL col0 / col1 + 84 FROM tab0
----
84
84
84

query I rowsort
SELECT DISTINCT - 49 + col0 AS col1 FROM tab1
----
-46
15
31

query I rowsort
SELECT col2 * tab1.col0 + + col0 + + col0 AS col2 FROM tab1
----
168
3776
7840

query I rowsort
SELECT + - col1 * + col1 + ( col0 ) AS col0 FROM tab2 AS cor0
----
-210
-3403
-954

query I rowsort
SELECT ALL - col0 * - ( + col0 ) FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT - cor0.col0 * cor0.col1 + 41 + + cor0.col1 * - col2 AS col0 FROM tab2 AS cor0
----
-1013
-1948
-6095

onlyif mysql # use DIV operator for integer division
query I rowsort label-3542
SELECT DISTINCT + + cor0.col2 * - col1 + col1 DIV + col2 FROM tab0 AS cor0
----
-2836
-7461
0

skipif mysql # not compatible
query I rowsort label-3542
SELECT DISTINCT + + cor0.col2 * - col1 + col1 / + col2 FROM tab0 AS cor0
----
-2836
-7461
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3543
SELECT + col0 + col1 DIV - col0 col1 FROM tab2
----
3
78
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3543
SELECT + col0 + col1 / - col0 col1 FROM tab2
----
3
78
79

query I rowsort
SELECT ALL + - col1 * + col2 + - col2 AS col2 FROM tab1 AS cor0
----
-1344
-1458
-627

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - col1 + cor0.col0 col1 FROM tab1 AS cor0
----
-576
-75
-960

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3546
SELECT DISTINCT + col2 * CAST( NULL AS SIGNED ) + col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3546
SELECT DISTINCT + col2 * CAST ( NULL AS INTEGER ) + col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - - col2 * 16 AS col1 FROM tab1 AS cor0
----
1536
864
912

query I rowsort
SELECT DISTINCT - cor2.col0 AS col1 FROM tab1, tab1 AS cor0, tab0 AS cor1, tab0, tab2 AS cor2
----
-7
-78
-79

query I rowsort
SELECT col2 + - 34 * col1 AS col0 FROM tab1 cor0
----
-283
-346
-830

query I rowsort
SELECT col2 * + 13 AS col2 FROM tab1
----
1248
702
741

query I rowsort
SELECT ALL - 81 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 205b3ff2d7b1817c98d7980b8c17e6c1

query I rowsort
SELECT col0 * col2 + 39 AS col2 FROM tab2
----
2067
228
3041

onlyif mysql # use DIV operator for integer division
query I rowsort label-3553
SELECT ( col1 ) DIV - col2 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3553
SELECT ( col1 ) / - col2 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + ( col1 ) + + col2 * - ( col1 ) FROM tab2 cor0
----
-1475
-629
-806

onlyif mysql # use DIV operator for integer division
query I rowsort label-3555
SELECT cor0.col1 + col2 - + col1 DIV + 80 FROM tab1 AS cor0
----
109
67
80

skipif mysql # not compatible
query I rowsort label-3555
SELECT cor0.col1 + col2 - + col1 / + 80 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT 86 + - col0 FROM tab0 AS cor0
----
-3
51
62

query I rowsort
SELECT ALL 19 FROM tab1 AS cor0
----
19
19
19

query I rowsort
SELECT DISTINCT - + 65 + col2 FROM tab2 AS cor0
----
-27
-38
-39

query I rowsort
SELECT + 65 * + col1 * + 61 + - col0 AS col1 FROM tab1 AS cor0
----
103087
39586
51465

query I rowsort
SELECT ALL - + ( col2 ) + col0 FROM tab0 cor0
----
-9
34
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-3561
SELECT DISTINCT + cor0.col2 + - col0 DIV + ( + 3 + + col1 ) FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-3561
SELECT DISTINCT + cor0.col2 + - col0 / + ( + 3 + + col1 ) FROM tab0 AS cor0
----
1
33
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 62 col2 FROM tab1 AS cor0
----
62

query I rowsort
SELECT DISTINCT + - ( cor0.col0 ) + 67 AS col1 FROM tab2 AS cor0
----
-11
-12
60

onlyif mysql # use DIV operator for integer division
query I rowsort label-3564
SELECT ALL - col2 DIV col0 - col1 FROM tab1 AS cor0
----
-10
-14
-44

skipif mysql # not compatible
query I rowsort label-3564
SELECT ALL - col2 / col0 - col1 FROM tab1 AS cor0
----
-10
-14
-44

query I rowsort
SELECT + 61 * col0 + col2 FROM tab0 AS cor0
----
1497
2136
5511

query I rowsort
SELECT + 13 * - 67 * col2 + - col0 FROM tab0
----
-28767
-71511
-906

query I rowsort
SELECT DISTINCT - 68 FROM tab0, tab1, tab0 AS cor0
----
-68

query I rowsort
SELECT ALL ( 56 ) AS col0 FROM tab0
----
56
56
56

query I rowsort
SELECT ALL + col2 + + col2 * - col2 FROM tab2
----
-1406
-650
-702

query I rowsort
SELECT ALL + - cor0.col2 + col2 * + col1 FROM tab1 AS cor0
----
1152
1350
513

query I rowsort
SELECT + 50 + col1 * ( - cor0.col0 ) AS col2 FROM tab0 AS cor0
----
-2014
-3345
-8049

query I rowsort
SELECT ALL 35 * col0 AS col0 FROM tab0 AS cor0
----
1225
3115
840

query I rowsort
SELECT col1 * + col0 + 67 AS col1 FROM tab1 AS cor0
----
1107
145
707

query I rowsort
SELECT ALL - ( col0 ) * 11 AS col1 FROM tab1 AS cor0
----
-33
-704
-880

query I rowsort
SELECT + + col0 - - col0 * col0 AS col2 FROM tab1 AS cor0
----
12
4160
6480

query I rowsort
SELECT + - 60 + cor0.col2 FROM tab0 AS cor0
----
-27
-59
22

query I rowsort
SELECT - - col1 * - 93 AS col2 FROM tab0 AS cor0
----
-7998
-8463
-9021

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3578
SELECT + - CAST( ( col1 ) AS SIGNED ) FROM tab2 AS cor0
----
-17
-31
-59

skipif mysql # not compatible
query I rowsort label-3578
SELECT + - CAST ( ( col1 ) AS INTEGER ) FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT ALL col2 * ( 68 ) FROM tab1
----
3672
3876
6528

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 20 * col1 col0 FROM tab1
----
-200
-260
-520

query I rowsort
SELECT + + col0 * + 7 FROM tab0 cor0
----
168
245
623

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3582
SELECT CAST( ( col1 ) AS SIGNED ) * + ( col2 ) AS col0 FROM tab0 AS cor0
----
2838
7462
97

skipif mysql # not compatible
query I rowsort label-3582
SELECT CAST ( ( col1 ) AS INTEGER ) * + ( col2 ) AS col0 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT + + ( col0 ) + cor0.col0 * col0 AS col1 FROM tab1 cor0
----
12
4160
6480

query I rowsort
SELECT DISTINCT - + 55 + col1 AS col0 FROM tab0 AS cor0
----
31
36
42

query I rowsort
SELECT DISTINCT + col1 + cor0.col2 * + col0 AS col1 FROM tab2 AS cor0
----
2087
220
3019

query I rowsort
SELECT ALL + - 83 * col0 FROM tab2 cor0
----
-581
-6474
-6557

onlyif mysql # use DIV operator for integer division
query I rowsort label-3587
SELECT + col0 DIV - col1 + + col1 * 18 AS col0 FROM tab0 AS cor0
----
1548
1638
1746

skipif mysql # not compatible
query I rowsort label-3587
SELECT + col0 / - col1 + + col1 * 18 AS col0 FROM tab0 AS cor0
----
1548
1638
1746

query I rowsort
SELECT ALL + 64 * col0 + + ( + cor0.col1 ) * - col0 * - col0 AS col1 FROM tab2 AS cor0
----
111153
1967
363948

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3589
SELECT 72 + col2 * CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3589
SELECT 72 + col2 * CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col1 * + col0 AS col1 FROM tab0
----
-2064
-3395
-8099

query I rowsort
SELECT - col2 * col2 * 63 + - col1 * cor0.col1 * + col1 AS col0 FROM tab0 AS cor0
----
-1177183
-704663
-912736

query I rowsort
SELECT + - col2 * 32 FROM tab1 AS cor0
----
-1728
-1824
-3072

onlyif mysql # use DIV operator for integer division
query I rowsort label-3593
SELECT - cor0.col2 * ( col2 + + cor0.col2 ) DIV + col1 AS col1 FROM tab2 AS cor0
----
-169
-22
-47

skipif mysql # not compatible
query I rowsort label-3593
SELECT - cor0.col2 * ( col2 + + cor0.col2 ) / + col1 AS col1 FROM tab2 AS cor0
----
-169
-22
-47

query I rowsort
SELECT DISTINCT + col0 * 91 FROM tab1
----
273
5824
7280

query I rowsort
SELECT + col1 + 43 AS col0 FROM tab2 AS cor0
----
102
60
74

query I rowsort
SELECT ALL + tab1.col0 + col2 * col2 AS col1 FROM tab1
----
2919
3313
9296

query I rowsort
SELECT - cor0.col0 * col2 + 12 FROM tab2 AS cor0
----
-177
-2016
-2990

query I rowsort
SELECT DISTINCT ( - 70 ) * + col2 AS col0 FROM tab1 AS cor0
----
-3780
-3990
-6720

query I rowsort
SELECT ALL + cor0.col0 * + col0 FROM tab2 cor0
----
49
6084
6241

query I rowsort
SELECT - ( - col1 ) + 53 * + col0 AS col2 FROM tab2 AS cor0
----
402
4193
4204

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 67 col1 FROM tab0, tab2 AS cor0
----
-67

skipif mysql # not compatible
query I rowsort
SELECT col1 * - cor0.col2 + CAST ( + 55 AS REAL ) AS col0 FROM tab0 AS cor0
----
-2783
-42
-7407

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3603
SELECT 40 - - col0 / + CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3603
SELECT 40 - - col0 / + CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + 86 * + cor0.col2 + - ( col1 * + col1 ) AS col1 FROM tab1 AS cor0
----
-5002
-5320
-8425

query I rowsort
SELECT - - col0 + col1 * - col2 FROM tab0 AS cor0
----
-2814
-62
-7373

query I rowsort
SELECT col0 * - col2 + - col2 * + col0 FROM tab1 AS cor0
----
-15360
-324
-7296

query I rowsort
SELECT ALL col2 * ( col2 ) + col0 FROM tab0 AS cor0
----
1113
36
6813

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 col0 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

query I rowsort
SELECT + ( - col1 ) * - col0 AS col2 FROM tab2
----
1343
217
4602

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3610
SELECT cor0.col0 + CAST( NULL AS SIGNED ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3610
SELECT cor0.col0 + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 + + ( - col2 ) FROM tab0 AS cor0
----
-171
-36
-57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3612
SELECT ALL ( col1 + CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3612
SELECT ALL ( col1 + CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + cor0.col2 * tab1.col2 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 994244f565b077d9bfe0a9efd8b9bf4b

query I rowsort
SELECT - col1 + col2 * - col1 FROM tab0 AS cor0
----
-194
-2924
-7553

query I rowsort
SELECT DISTINCT + col0 + col2 * 99 - - col0 FROM tab2 AS cor0
----
2687
2730
3920

query I rowsort
SELECT ALL - + 62 * col1 * - col1 FROM tab0 AS cor0
----
458552
513422
583358

query I rowsort
SELECT DISTINCT ( col0 ) * - col2 + + 78 * col1 FROM tab1
----
-2868
-6666
1866

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3618
SELECT ALL CAST( NULL AS SIGNED ) + 28 + col1 * col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3618
SELECT ALL CAST ( NULL AS INTEGER ) + 28 + col1 * col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - ( ( col2 ) ) * col1 + 5 AS col2 FROM tab2
----
-1529
-641
-832

onlyif mysql # use DIV operator for integer division
query I rowsort label-3620
SELECT - col1 DIV - col0 + col1 * 97 * tab1.col1 FROM tab1
----
16393
65580
9700

skipif mysql # not compatible
query I rowsort label-3620
SELECT - col1 / - col0 + col1 * 97 * tab1.col1 FROM tab1
----
16393
65580
9700

query I rowsort
SELECT cor0.col2 + + col2 + col0 FROM tab0 AS cor0
----
253
37
90

query I rowsort
SELECT + 67 + + col0 + + 74 AS col1 FROM tab0 AS cor0
----
165
176
230

query I rowsort
SELECT ALL col2 + - 27 - col2 AS col2 FROM tab2
----
-27
-27
-27

query I rowsort
SELECT ALL - tab0.col1 + + col1 - col1 AS col2 FROM tab0
----
-86
-91
-97

query I rowsort
SELECT ALL col1 + col2 - + col1 AS col1 FROM tab1
----
54
57
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-3626
SELECT ALL col2 DIV - 63 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3626
SELECT ALL col2 / - 63 FROM tab0
----
-1
0
0

query I rowsort
SELECT DISTINCT col1 - + tab1.col0 AS col1 FROM tab1
----
-54
-67
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 50 * + col0 * col0 + + 15 + - 36 col1 FROM tab1 cor0
----
-204821
-320021
-471

query I rowsort
SELECT DISTINCT + ( + col0 ) * col0 + - col0 AS col0 FROM tab2 AS cor0
----
42
6006
6162

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3630
SELECT - ( + cor0.col0 ) * col2 + - CAST( NULL AS SIGNED ) + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3630
SELECT - ( + cor0.col0 ) * col2 + - CAST ( NULL AS INTEGER ) + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - cor0.col2 * col1 + - col1 * + 50 FROM tab0 AS cor0
----
-12012
-4947
-7138

query I rowsort
SELECT ALL - + cor0.col2 * - 1 AS col1 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT DISTINCT cor0.col0 * col0 AS col0 FROM tab2 cor0
----
49
6084
6241

query I rowsort
SELECT - 17 + - 76 AS col0 FROM tab0 cor0
----
-93
-93
-93

query I rowsort
SELECT col2 + + col2 * - col2 FROM tab1 cor0
----
-2862
-3192
-9120

query I rowsort
SELECT ALL + ( + cor0.col1 ) * col1 + + col0 AS col0 FROM tab2 AS cor0
----
3559
368
968

query I rowsort
SELECT + col2 * + ( cor0.col0 ) + - cor0.col1 + cor0.col2 FROM tab0 AS cor0
----
-61
7289
739

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3638
SELECT DISTINCT + - CAST( NULL AS SIGNED ) * - cor0.col0 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3638
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) * - cor0.col0 AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3639
SELECT DISTINCT + col0 + + 22 * - col0 * CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3639
SELECT DISTINCT + col0 + + 22 * - col0 * CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL

query I rowsort
SELECT + + 39 * col1 AS col2 FROM tab2 AS cor0
----
1209
2301
663

query I rowsort
SELECT + - ( 83 ) * + col1 * col0 AS col0 FROM tab0 cor0
----
-171312
-281785
-672217

onlyif mysql # use DIV operator for integer division
query I rowsort label-3642
SELECT - col2 DIV - 56 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3642
SELECT - col2 / - 56 FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - ( - col0 ) col0 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT ALL - cor1.col1 FROM tab1, tab1 AS cor0, tab1 cor1
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6

query I rowsort
SELECT + col2 + col2 * + col2 * cor0.col1 FROM tab1 cor0
----
119904
32547
75870

query I rowsort
SELECT col1 + - 85 + - tab2.col2 * + col2 AS col0 FROM tab2
----
-1512
-702
-783

query I rowsort
SELECT + ( - col2 + col0 ) * col2 AS col1 FROM tab2
----
-540
1352
1558

query I rowsort
SELECT DISTINCT 94 * + col1 + col2 FROM tab1
----
1318
2498
997

query I rowsort
SELECT ALL 85 + - col2 + + col2 FROM tab2 AS cor0
----
85
85
85

query I rowsort
SELECT ALL 51 + 68 * - col0 + ( col0 ) AS col2 FROM tab1 AS cor0
----
-150
-4237
-5309

query I rowsort
SELECT DISTINCT - 28 + + ( + col0 ) * col1 * col2 + - col2 AS col0 FROM tab1 AS cor0
----
36395
4130
99716

query I rowsort
SELECT - - col0 + 85 * cor0.col1 FROM tab2 AS cor0
----
1524
2642
5093

query I rowsort
SELECT DISTINCT + ( + cor0.col1 ) + col1 * cor0.col1 AS col1 FROM tab1 AS cor0
----
110
182
702

query I rowsort
SELECT ALL + ( + col2 ) * cor0.col2 + - col1 * col0 * - col0 + - 83 FROM tab2 AS cor0
----
107458
2165
359549

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3655
SELECT DISTINCT - CAST( - col2 AS SIGNED ) FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-3655
SELECT DISTINCT - CAST ( - col2 AS INTEGER ) FROM tab0 AS cor0
----
1
33
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-3656
SELECT - col0 DIV col0 + col0 * - col1 + - col2 * cor0.col0 * - cor0.col0 AS col1 FROM tab2 AS cor0
----
1105
153581
235814

skipif mysql # not compatible
query I rowsort label-3656
SELECT - col0 / col0 + col0 * - col1 + - col2 * cor0.col0 * - cor0.col0 AS col1 FROM tab2 AS cor0
----
1105
153581
235814

query I rowsort
SELECT + col1 + col0 + - col2 FROM tab2 cor0
----
11
111
58

onlyif mysql # use DIV operator for integer division
query I rowsort label-3658
SELECT col1 DIV - col1 + + col2 + col0 AS col1 FROM tab2 AS cor0
----
103
116
33

skipif mysql # not compatible
query I rowsort label-3658
SELECT col1 / - col1 + + col2 + col0 AS col1 FROM tab2 AS cor0
----
103
116
33

query I rowsort
SELECT ALL + 71 * col1 * + ( col2 ) FROM tab0 AS cor0
----
201498
529802
6887

query I rowsort
SELECT DISTINCT + 54 + col1 FROM tab1 cor0
----
64
67
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col0 * col1 col0 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT + 62 + - col2 AS col2 FROM tab0 AS cor0
----
-20
29
61

onlyif mysql # use DIV operator for integer division
query I rowsort label-3663
SELECT DISTINCT ( + col2 ) + col2 DIV + 44 AS col0 FROM tab1
----
55
58
98

skipif mysql # not compatible
query I rowsort label-3663
SELECT DISTINCT ( + col2 ) + col2 / + 44 AS col0 FROM tab1
----
55
58
98

query I rowsort
SELECT DISTINCT + col0 + col0 * col2 FROM tab0
----
70
7387
816

query I rowsort
SELECT + tab1.col1 + + 37 + col0 AS col0 FROM tab1
----
111
130
66

query I rowsort
SELECT 98 + col2 * col2 AS col1 FROM tab2
----
1542
774
827

query I rowsort
SELECT - col1 * + col1 + - cor0.col2 FROM tab1 AS cor0
----
-157
-265
-730

query I rowsort
SELECT + col2 + - col0 AS col0 FROM tab1 cor0
----
-7
16
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + 77 col2 FROM tab0
----
163
168
174

query I rowsort
SELECT - - cor0.col0 + 3 FROM tab0 AS cor0
----
27
38
92

query I rowsort
SELECT DISTINCT + - col1 * - cor0.col2 + ( col1 * col0 ) FROM tab1 AS cor0
----
1210
1482
2288

onlyif mysql # use DIV operator for integer division
query I rowsort label-3672
SELECT DISTINCT - col1 DIV - cor0.col2 + 99 FROM tab0 AS cor0
----
100
101
196

skipif mysql # not compatible
query I rowsort label-3672
SELECT DISTINCT - col1 / - cor0.col2 + 99 FROM tab0 AS cor0
----
100
101
196

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 + + cor0.col2 col0 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT ALL - - cor0.col2 + + ( col0 ) FROM tab0 cor0
----
171
36
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-3675
SELECT ALL + - col1 DIV cor0.col0 + + 99 * col2 * cor0.col0 AS col1 FROM tab2 AS cor0
----
18707
200772
297198

skipif mysql # not compatible
query I rowsort label-3675
SELECT ALL + - col1 / cor0.col0 + + 99 * col2 * cor0.col0 AS col1 FROM tab2 AS cor0
----
18707
200772
297198

query I rowsort
SELECT + ( - col1 ) + col1 * col0 AS col1 FROM tab0
----
1978
3298
8008

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3677
SELECT - cor0.col1 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3677
SELECT - cor0.col1 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + col1 + - cor0.col0 AS col1 FROM tab0 AS cor0
----
-110
-132
-180

query I rowsort
SELECT + + 22 AS col0 FROM tab0 AS cor0
----
22
22
22

query I rowsort
SELECT col0 + + ( - col2 ) AS col1 FROM tab1
----
-16
-51
7

query I rowsort
SELECT - - col0 * - col0 + col2 * + col2 AS col0 FROM tab1 AS cor0
----
-847
2816
2907

query I rowsort
SELECT 83 AS col1 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 002a717a3d902d97220759065fb107c3

query I rowsort
SELECT DISTINCT col0 * col1 * - 56 FROM tab0
----
-115584
-190120
-453544

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3684
SELECT DISTINCT + CAST( NULL AS SIGNED ) FROM tab1, tab1 AS cor0, tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-3684
SELECT DISTINCT + CAST ( NULL AS INTEGER ) FROM tab1, tab1 AS cor0, tab1 AS cor1
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3685
SELECT DISTINCT + col1 * + CAST( col1 * col2 + + col2 AS SIGNED ) FROM tab1 AS cor0
----
17472
37908
6270

skipif mysql # not compatible
query I rowsort label-3685
SELECT DISTINCT + col1 * + CAST ( col1 * col2 + + col2 AS INTEGER ) FROM tab1 AS cor0
----
17472
37908
6270

onlyif mysql # use DIV operator for integer division
query I rowsort label-3686
SELECT ALL - col2 DIV col0 FROM tab2 cor0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-3686
SELECT ALL - col2 / col0 FROM tab2 cor0
----
-3
0
0

query I rowsort
SELECT + + cor0.col2 * - ( - col2 + col2 ) AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - col0 * + cor0.col2 * - 92 FROM tab0 AS cor0
----
3220
671416
72864

query I rowsort
SELECT DISTINCT - - col0 * 20 FROM tab0 AS cor0
----
1780
480
700

query I rowsort
SELECT + 96 * - cor0.col2 - + col1 AS col1 FROM tab1 cor0
----
-5210
-5482
-9229

query I rowsort
SELECT - 33 * + col1 AS col1 FROM tab0 AS cor0
----
-2838
-3003
-3201

query I rowsort
SELECT - cor0.col1 + cor0.col0 * - col2 FROM tab2 AS cor0
----
-2087
-220
-3019

query I rowsort
SELECT + ( 82 ) AS col1 FROM tab2 AS cor0
----
82
82
82

query I rowsort
SELECT + col2 + - cor0.col2 * + col1 AS col0 FROM tab2 AS cor0
----
-1508
-608
-810

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3695
SELECT col2 + CAST( NULL AS SIGNED ) * col0 * col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3695
SELECT col2 + CAST ( NULL AS INTEGER ) * col0 * col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3696
SELECT ALL - col0 DIV + ( + col1 ) + col0 FROM tab2
----
7
75
77

skipif mysql # not compatible
query I rowsort label-3696
SELECT ALL - col0 / + ( + col1 ) + col0 FROM tab2
----
7
75
77

query I rowsort
SELECT DISTINCT + col1 + - col2 * 7 FROM tab0
----
-145
-483
90

query I rowsort
SELECT - 24 FROM tab0 cor0
----
-24
-24
-24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 + col0 * - col1 * col1 col1 FROM tab0 AS cor0
----
-177418
-329218
-736918

query I rowsort
SELECT + 65 * col1 AS col1 FROM tab1 AS cor0
----
1690
650
845

query I rowsort
SELECT ALL 72 * - 50 * + col1 FROM tab0
----
-309600
-327600
-349200

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - 33 ) col2 FROM tab1
----
-33
-33
-33

query I rowsort
SELECT ALL + 32 * - cor0.col2 + - col1 AS col2 FROM tab0 AS cor0
----
-1142
-129
-2715

query I rowsort
SELECT ALL - col1 * col1 - - col1 FROM tab1 AS cor0
----
-156
-650
-90

query I rowsort
SELECT DISTINCT + ( - col2 ) + - col1 + - col1 AS col0 FROM tab2 AS cor0
----
-144
-72
-89

onlyif mysql # use DIV operator for integer division
query I rowsort label-3706
SELECT ALL 52 DIV cor0.col0 - + col1 AS col2 FROM tab0 AS cor0
----
-84
-91
-96

skipif mysql # not compatible
query I rowsort label-3706
SELECT ALL 52 / cor0.col0 - + col1 AS col2 FROM tab0 AS cor0
----
-84
-91
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-3707
SELECT col0 + col1 DIV - cor0.col0 AS col1 FROM tab1 cor0
----
-5
64
80

skipif mysql # not compatible
query I rowsort label-3707
SELECT col0 + col1 / - cor0.col0 AS col1 FROM tab1 cor0
----
-5
64
80

query I rowsort
SELECT - 87 * col2 FROM tab0 AS cor0
----
-2871
-7134
-87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * col0 * + col2 - col0 col0 FROM tab1 AS cor0
----
-233536
-489
-614480

query I rowsort
SELECT + col1 + - cor0.col1 * col0 * - cor0.col1 FROM tab2 AS cor0
----
22848
271577
6758

onlyif mysql # use DIV operator for integer division
query I rowsort label-3711
SELECT DISTINCT - 82 DIV - col2 AS col2 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-3711
SELECT DISTINCT - 82 / - col2 AS col2 FROM tab1 AS cor0
----
0
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3712
SELECT ALL + CAST( + col1 AS SIGNED ) AS col0 FROM tab1
----
10
13
26

skipif mysql # not compatible
query I rowsort label-3712
SELECT ALL + CAST ( + col1 AS INTEGER ) AS col0 FROM tab1
----
10
13
26

query I rowsort
SELECT - + cor0.col1 + col1 * + col2 * col0 FROM tab2 AS cor0
----
119593
51017
5828

query I rowsort
SELECT - + cor0.col1 * cor0.col2 + col0 FROM tab2 AS cor0
----
-1456
-567
-830

query I rowsort
SELECT ALL 2 - + 34 * - tab1.col2 FROM tab1
----
1838
1940
3266

query I rowsort
SELECT col2 * + col1 + + col2 AS col0 FROM tab0
----
2871
7544
98

query I rowsort
SELECT ( + col2 ) * col1 FROM tab1
----
1248
1404
570

query I rowsort
SELECT ALL + 42 * + col1 FROM tab0
----
3612
3822
4074

query I rowsort
SELECT ALL + ( 90 * + col2 ) FROM tab0
----
2970
7380
90

query I rowsort
SELECT ALL - col2 + col1 * - col0 FROM tab1
----
-1136
-132
-697

query I rowsort
SELECT ALL col1 * col1 + - col0 FROM tab1
----
36
673
89

query I rowsort
SELECT DISTINCT tab1.col1 * col0 + + col2 * + tab1.col2 * + col1 FROM tab1
----
120848
33130
75894

query I rowsort
SELECT - col2 * col0 + col1 * - col1 AS col0 FROM tab1 AS cor0
----
-3748
-7849
-838

query I rowsort
SELECT + - 67 + col2 * col0 FROM tab2 AS cor0
----
122
1961
2935

query I rowsort
SELECT - 31 * + col1 FROM tab1 AS cor0
----
-310
-403
-806

query I rowsort
SELECT ALL col1 * - col1 * 3 AS col2 FROM tab1
----
-2028
-300
-507

query I rowsort
SELECT DISTINCT 48 AS col2 FROM tab1, tab1 AS cor0
----
48

onlyif mysql # use DIV operator for integer division
query I rowsort label-3728
SELECT ALL + col1 DIV ( - col2 ) AS col0 FROM tab0
----
-1
-2
-97

skipif mysql # not compatible
query I rowsort label-3728
SELECT ALL + col1 / ( - col2 ) AS col0 FROM tab0
----
-1
-2
-97

query I rowsort
SELECT - - col0 * ( - col2 ) * cor0.col1 AS col0 FROM tab0 cor0
----
-3395
-664118
-68112

onlyif mysql # use DIV operator for integer division
query I rowsort label-3730
SELECT - col1 DIV + 77 FROM tab0 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3730
SELECT - col1 / + 77 FROM tab0 cor0
----
-1
-1
-1

query I rowsort
SELECT - col1 + col1 AS col0 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT col2 * + col1 + col2 AS col0 FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT + + 16 + cor0.col0 FROM tab2 AS cor0
----
23
94
95

query I rowsort
SELECT + col1 * + ( col1 ) AS col2 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT - col1 * - col0 + col1 AS col1 FROM tab2 AS cor0
----
1360
248
4661

query I rowsort
SELECT ALL 99 - 75 AS col1 FROM tab2
----
24
24
24

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3737
SELECT - CAST( NULL AS SIGNED ) + col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3737
SELECT - CAST ( NULL AS INTEGER ) + col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3738
SELECT DISTINCT - - CAST( - ( col0 ) AS SIGNED ) * + col2 AS col1 FROM tab0 AS cor0
----
-35
-7298
-792

skipif mysql # not compatible
query I rowsort label-3738
SELECT DISTINCT - - CAST ( - ( col0 ) AS INTEGER ) * + col2 AS col1 FROM tab0 AS cor0
----
-35
-7298
-792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 39 * + 27 * - col2 col1 FROM tab1 AS cor0
----
-101088
-56862
-60021

query I rowsort
SELECT - col0 - + ( col2 + col2 ) AS col1 FROM tab0 AS cor0
----
-253
-37
-90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3741
SELECT ALL - CAST( - col2 AS SIGNED ) * + col1 AS col0 FROM tab1 AS cor0
----
1248
1404
570

skipif mysql # not compatible
query I rowsort label-3741
SELECT ALL - CAST ( - col2 AS INTEGER ) * + col1 AS col0 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT + col2 * 92 FROM tab1 AS cor0
----
4968
5244
8832

query I rowsort
SELECT + cor0.col2 - cor0.col0 FROM tab0 cor0
----
-34
-7
9

query I rowsort
SELECT ALL col1 * cor0.col2 * ( col0 ) FROM tab2 AS cor0
----
119652
51034
5859

query I rowsort
SELECT DISTINCT + - col2 + - ( - cor0.col0 ) AS col2 FROM tab2 cor0
----
-20
41
52

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3746
SELECT DISTINCT - col2 + CAST( NULL AS SIGNED ) * + col0 + + col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3746
SELECT DISTINCT - col2 + CAST ( NULL AS INTEGER ) * + col0 + + col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + col1 * - col0 + - 42 FROM tab0
----
-2106
-3437
-8141

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3748
SELECT ALL - col1 + - CAST( - col2 AS SIGNED ) * - col1 AS col0 FROM tab0 AS cor0
----
-194
-2924
-7553

skipif mysql # not compatible
query I rowsort label-3748
SELECT ALL - col1 + - CAST ( - col2 AS INTEGER ) * - col1 AS col0 FROM tab0 AS cor0
----
-194
-2924
-7553

query I rowsort
SELECT DISTINCT + - col1 * col2 + 57 FROM tab0 AS cor0
----
-2781
-40
-7405

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3750
SELECT + col0 + + CAST( - col2 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-20
41
52

skipif mysql # not compatible
query I rowsort label-3750
SELECT + col0 + + CAST ( - col2 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT col2 + - 92 AS col1 FROM tab2 cor0
----
-54
-65
-66

query I rowsort
SELECT ALL col1 + col2 * col1 FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT ALL + col0 - col0 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + col1 + ( 27 ) * - col2 * 29 FROM tab2 AS cor0
----
-20299
-21110
-29737

query I rowsort
SELECT + col0 * + col1 * cor0.col2 + col2 FROM tab1 cor0
----
36537
4266
99936

query I rowsort
SELECT ALL + col2 + - 87 AS col2 FROM tab1 AS cor0
----
-30
-33
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-3757
SELECT - - col1 + 35 DIV ( + col1 ) FROM tab2 AS cor0
----
19
32
59

skipif mysql # not compatible
query I rowsort label-3757
SELECT - - col1 + 35 / ( + col1 ) FROM tab2 AS cor0
----
19
32
59

query I rowsort
SELECT DISTINCT col0 + - 10 * - col2 AS col0 FROM tab0 AS cor0
----
354
45
909

query I rowsort
SELECT DISTINCT - cor0.col0 * + col2 * - col1 AS col1 FROM tab2 cor0
----
119652
51034
5859

query I rowsort
SELECT DISTINCT cor0.col0 * - col2 + + col1 + - col0 * cor0.col2 * col2 AS col1 FROM tab2 AS cor0
----
-117061
-5261
-54697

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3761
SELECT ALL - col2 + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3761
SELECT ALL - col2 + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( col0 ) * - col0 + - col1 * + col2 FROM tab0 AS cor0
----
-1322
-15383
-3414

query I rowsort
SELECT DISTINCT - 7 + col2 * - col2 FROM tab0 AS cor0
----
-1096
-6731
-8

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab0 AS cor0, tab2 cor1, tab0 cor2
----
972 values hashing to 86dbd337f00ab84c613ad03d6fc06e28

query I rowsort
SELECT DISTINCT - - col1 * 9 + + col0 + col0 AS col0 FROM tab1 AS cor0
----
218
240
277

onlyif mysql # use DIV operator for integer division
query I rowsort label-3766
SELECT + tab0.col1 DIV cor0.col0 col0 FROM tab0, tab2 AS cor0
----
9 values hashing to f3d88e3644305d9c1fb9121beeb7a10f

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3766
SELECT + tab0.col1 / cor0.col0 col0 FROM tab0, tab2 AS cor0
----
9 values hashing to f3d88e3644305d9c1fb9121beeb7a10f

query I rowsort
SELECT ALL - col1 * col1 + cor0.col0 + + 38 FROM tab0 AS cor0
----
-7334
-8154
-9336

query I rowsort
SELECT ALL - 16 AS col0 FROM tab1 AS cor0
----
-16
-16
-16

query I rowsort
SELECT ALL - + ( + col1 ) * + col0 + 16 AS col2 FROM tab0 AS cor0
----
-2048
-3379
-8083

query I rowsort
SELECT DISTINCT col1 * - cor0.col2 AS col0 FROM tab1 cor0
----
-1248
-1404
-570

onlyif mysql # use DIV operator for integer division
query I rowsort label-3771
SELECT ALL - + col0 DIV - col0 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3771
SELECT ALL - + col0 / - col0 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT ALL 27 * - col1 AS col0 FROM tab2
----
-1593
-459
-837

query I rowsort
SELECT col1 * tab0.col1 + col0 * col2 + col1 AS col1 FROM tab0
----
15670
8274
9541

query I rowsort
SELECT ALL + col1 - + col1 * + col1 FROM tab2
----
-272
-3422
-930

query I rowsort
SELECT DISTINCT ( + tab0.col2 ) * 45 AS col1 FROM tab0
----
1485
3690
45

query I rowsort
SELECT 48 + tab0.col2 FROM tab0
----
130
49
81

query I rowsort
SELECT + col0 + 84 FROM tab1 AS cor0
----
148
164
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 80 col2 FROM tab2
----
-80
-80
-80

query I rowsort
SELECT - tab0.col0 * + 26 AS col0 FROM tab0, tab0 cor0
----
9 values hashing to 05345c0a7504347ad1ae4cd031ccb226

onlyif mysql # use DIV operator for integer division
query I rowsort label-3780
SELECT + col0 DIV + 73 AS col0 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-3780
SELECT + col0 / + 73 AS col0 FROM tab2
----
0
1
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3781
SELECT ALL + col2 * CAST( 94 * col2 AS SIGNED ) FROM tab2 AS cor0
----
135736
63544
68526

skipif mysql # not compatible
query I rowsort label-3781
SELECT ALL + col2 * CAST ( 94 * col2 AS INTEGER ) FROM tab2 AS cor0
----
135736
63544
68526

query I rowsort
SELECT DISTINCT - col2 + + ( tab2.col2 ) * - col0 FROM tab2
----
-2054
-216
-3040

query I rowsort
SELECT col1 * + 67 FROM tab2
----
1139
2077
3953

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + col1 col1 FROM tab2 cor0
----
289
3481
961

query I rowsort
SELECT + 55 FROM tab1, tab2 AS cor0
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col1 col2 FROM tab1, tab0 AS cor0, tab2 AS cor1, tab0 cor2
----
-86
-91
-97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3787
SELECT ALL - col0 * CAST( NULL AS SIGNED ) + - col0 * + col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3787
SELECT ALL - col0 * CAST ( NULL AS INTEGER ) + - col0 * + col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + + col1 * col2 AS col0 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT - 44 + - col2 FROM tab1
----
-101
-140
-98

query I rowsort
SELECT ALL 93 * + ( col1 * col2 ) FROM tab0
----
263934
693966
9021

onlyif mysql # use DIV operator for integer division
query I rowsort label-3791
SELECT ALL + col1 DIV - col1 AS col2 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3791
SELECT ALL + col1 / - col1 AS col2 FROM tab1
----
-1
-1
-1

query I rowsort
SELECT + col2 + col1 * + col1 AS col0 FROM tab0
----
7429
8363
9410

query I rowsort
SELECT ( 53 ) * + col2 FROM tab0
----
1749
4346
53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 40 * cor0.col0 + col1 col1 FROM tab2 AS cor0
----
311
3177
3179

query I rowsort
SELECT ALL 6 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

query I rowsort
SELECT ALL + col2 + 77 AS col0 FROM tab2 cor0
----
103
104
115

query I rowsort
SELECT DISTINCT - ( col0 ) + + col0 * 74 FROM tab0 AS cor0
----
1752
2555
6497

query I rowsort
SELECT DISTINCT - - ( col2 ) + 57 * col1 FROM tab1 AS cor0
----
1536
627
837

query I rowsort
SELECT DISTINCT col1 + cor0.col0 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT - 78 * + col0 * + col2 FROM tab1 AS cor0
----
-12636
-284544
-599040

query I rowsort
SELECT + + col1 * + cor0.col1 AS col1 FROM tab0 AS cor0
----
7396
8281
9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-3802
SELECT 37 DIV - col1 AS col2 FROM tab2 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-3802
SELECT 37 / - col1 AS col2 FROM tab2 AS cor0
----
-1
-2
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3803
SELECT ALL CAST( NULL AS DECIMAL ) * - col2 * col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3803
SELECT ALL CAST ( NULL AS REAL ) * - col2 * col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - 2 * + col0 FROM tab0
----
-178
-48
-70

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3805
SELECT ALL + CAST( NULL AS SIGNED ) * - ( + col0 + + col0 ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3805
SELECT ALL + CAST ( NULL AS INTEGER ) * - ( + col0 + + col0 ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT 91 AS col2 FROM tab0, tab2 cor0
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

query I rowsort
SELECT + col2 * cor0.col2 + col0 * - col1 + col1 AS col1 FROM tab0 AS cor0
----
-1284
-3297
-889

query I rowsort
SELECT + - col2 * col2 + col0 * col1 * col2 AS col1 FROM tab2 AS cor0
----
118976
49590
5130

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * + col0 * - col2 col0 FROM tab0 AS cor0
----
-1225
-19008
-649522

query I rowsort
SELECT col0 * col2 * - col1 FROM tab1 AS cor0
----
-36480
-4212
-99840

query I rowsort
SELECT - 74 * col1 + + col0 FROM tab0
----
-6340
-6645
-7143

query I rowsort
SELECT ALL + cor0.col1 * + cor0.col0 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT cor0.col0 * col1 + 90 + cor0.col1 AS col2 FROM tab0 AS cor0
----
2240
3582
8280

query I rowsort
SELECT + ( + cor0.col2 ) * - col1 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT + col0 + - 82 AS col0 FROM tab2 AS cor0
----
-3
-4
-75

query I rowsort
SELECT - + col1 + ( 75 ) FROM tab2 AS cor0
----
16
44
58

onlyif mysql # use DIV operator for integer division
query I rowsort label-3817
SELECT DISTINCT col2 + 78 * col1 DIV - cor0.col1 AS col1 FROM tab2 AS cor0
----
-40
-51
-52

skipif mysql # not compatible
query I rowsort label-3817
SELECT DISTINCT col2 + 78 * col1 / - cor0.col1 AS col1 FROM tab2 AS cor0
----
-40
-51
-52

query I rowsort
SELECT + + 32 - 77 FROM tab1 AS cor0 CROSS JOIN tab0, tab2 AS cor1
----
27 values hashing to 63e2b488a204f83ec8c063dafdfd4371

query I rowsort
SELECT cor0.col1 * 98 FROM tab1 cor0
----
1274
2548
980

query I rowsort
SELECT - col2 + ( - col1 ) FROM tab1 cor0
----
-109
-67
-80

query I rowsort
SELECT - 32 - ( col1 ) * - col0 FROM tab2 AS cor0
----
1311
185
4570

onlyif mysql # use DIV operator for integer division
query I rowsort label-3822
SELECT - ( + col2 ) * + col1 - + col0 DIV 63 AS col1 FROM tab0 AS cor0
----
-2838
-7463
-97

skipif mysql # not compatible
query I rowsort label-3822
SELECT - ( + col2 ) * + col1 - + col0 / 63 AS col1 FROM tab0 AS cor0
----
-2838
-7463
-97

query I rowsort
SELECT ALL 14 + col2 AS col1 FROM tab2 AS cor0
----
40
41
52

query I rowsort
SELECT - - 87 AS col2 FROM tab1 cor0
----
87
87
87

query I rowsort
SELECT DISTINCT + - col1 * col2 * col0 + + col2 + col0 * col0 AS col1 FROM tab1 AS cor0
----
-32327
-4149
-93344

query I rowsort
SELECT - + ( col2 ) + + col2 * col2 AS col1 FROM tab1 AS cor0
----
2862
3192
9120

query I rowsort
SELECT DISTINCT cor0.col1 * + col1 - - col1 FROM tab1 AS cor0
----
110
182
702

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 + ( + col0 ) * 91 col0 FROM tab0 AS cor0
----
2151
3184
8017

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + 11 col0 FROM tab0
----
1001
1067
946

query I rowsort
SELECT DISTINCT - ( + 39 ) + - col0 * - col0 * + col0 FROM tab0 AS cor0
----
13785
42836
704930

query I rowsort
SELECT ALL + 19 - + col0 FROM tab1 AS cor0
----
-45
-61
16

query I rowsort
SELECT - col2 * col0 * + col2 AS col2 FROM tab0 AS cor0
----
-26136
-35
-598436

query I rowsort
SELECT DISTINCT col0 * 75 FROM tab2
----
525
5850
5925

query I rowsort
SELECT col2 * - 68 AS col2 FROM tab1 AS cor0
----
-3672
-3876
-6528

onlyif mysql # use DIV operator for integer division
query I rowsort label-3835
SELECT - tab1.col2 DIV col1 AS col0 FROM tab1
----
-2
-5
-7

skipif mysql # not compatible
query I rowsort label-3835
SELECT - tab1.col2 / col1 AS col0 FROM tab1
----
-2
-5
-7

query I rowsort
SELECT ALL + col1 * - col2 + col1 FROM tab1 AS cor0
----
-1235
-1378
-560

query IIIIIIIII rowsort
SELECT ALL * FROM tab2, tab1 cor0 CROSS JOIN tab1 AS cor1
----
243 values hashing to 89e3b35a4a4f02d7b83645addb9dcdc3

query I rowsort
SELECT ALL col0 - + 22 AS col1 FROM tab1
----
-19
42
58

onlyif mysql # use DIV operator for integer division
query I rowsort label-3839
SELECT DISTINCT - col2 DIV 4 FROM tab0 AS cor0
----
-20
-8
0

skipif mysql # not compatible
query I rowsort label-3839
SELECT DISTINCT - col2 / 4 FROM tab0 AS cor0
----
-20
-8
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3840
SELECT ALL col2 + col0 DIV cor0.col0 FROM tab1 AS cor0
----
55
58
97

skipif mysql # not compatible
query I rowsort label-3840
SELECT ALL col2 + col0 / cor0.col0 FROM tab1 AS cor0
----
55
58
97

query I rowsort
SELECT ALL col2 + col0 * - col1 * - col1 + - tab1.col0 * col0 * + col2 FROM tab1
----
-227015
-600784
1596

query I rowsort
SELECT DISTINCT + 35 * - col1 FROM tab2
----
-1085
-2065
-595

onlyif mysql # use DIV operator for integer division
query I rowsort label-3843
SELECT col2 DIV + col0 + + tab1.col1 AS col2 FROM tab1
----
10
14
44

skipif mysql # not compatible
query I rowsort label-3843
SELECT col2 / + col0 + + tab1.col1 AS col2 FROM tab1
----
10
14
44

skipif mysql # not compatible
query I rowsort
SELECT col2 + - CAST ( - col2 AS REAL ) * + col1 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT DISTINCT - cor0.col2 FROM tab1 AS cor0 CROSS JOIN tab1
----
-54
-57
-96

query I rowsort
SELECT col1 FROM tab2 WHERE ( NULL ) = - col2
----

query I rowsort
SELECT col0 + - tab0.col1 * col2 FROM tab0
----
-2814
-62
-7373

onlyif mysql # use DIV operator for integer division
query I rowsort label-3848
SELECT col2 DIV - col1 + - col0 * col0 FROM tab0
----
-1225
-576
-7921

skipif mysql # not compatible
query I rowsort label-3848
SELECT col2 / - col1 + - col0 * col0 FROM tab0
----
-1225
-576
-7921

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * col1 + - cor0.col1 col0 FROM tab2 cor0
----
1326
186
4543

onlyif mysql # use DIV operator for integer division
query I rowsort label-3850
SELECT DISTINCT - col2 * col0 DIV col1 + + col1 + + col1 AS col0 FROM tab0 AS cor0
----
102
163
194

skipif mysql # not compatible
query I rowsort label-3850
SELECT DISTINCT - col2 * col0 / col1 + + col1 + + col1 AS col0 FROM tab0 AS cor0
----
102
163
194

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * + col2 + + cor0.col2 * col0 col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + col0 - - col0 AS col1 FROM tab2 AS cor0
----
14
156
158

query I rowsort
SELECT - cor0.col1 * cor0.col1 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT ALL - col0 * cor0.col0 * col2 + col0 + col1 FROM tab2 AS cor0
----
-1285
-158047
-237062

query I rowsort
SELECT ALL + col2 + + col1 * - col1 FROM tab0 AS cor0
----
-7363
-8199
-9408

query I rowsort
SELECT - - col0 * + col2 AS col1 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT cor0.col0 + - cor0.col0 FROM tab0 cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col2 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( col0 )
----

query I rowsort
SELECT + col1 * cor0.col2 + col2 AS col2 FROM tab0 AS cor0
----
2871
7544
98

query IIIIII rowsort
SELECT ALL * FROM tab2, tab1 AS cor0 WHERE NULL BETWEEN - cor0.col0 AND NULL
----

query I rowsort
SELECT col0 * col2 + + tab2.col1 + - col1 FROM tab2
----
189
2028
3002

query I rowsort
SELECT tab2.col1 - col2 AS col2 FROM tab2
----
-21
33
4

query I rowsort
SELECT ALL + col1 + col2 - col1 * + col0 AS col0 FROM tab1
----
-573
-931
2

query I rowsort
SELECT ALL col0 + col0 AS col0 FROM tab2 cor0
----
14
156
158

query I rowsort
SELECT ALL - - col2 * cor0.col1 - - col0 * - col0 FROM tab0 AS cor0
----
-1128
-459
2262

query I rowsort
SELECT + cor0.col0 + cor0.col0 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 10977325261681ddca962e0a5d2b348b

query I rowsort
SELECT ALL + + col2 + + col1 AS col1 FROM tab1 cor0
----
109
67
80

query I rowsort
SELECT - col2 * + col0 + - col2 * col1 AS col1 FROM tab1 AS cor0
----
-1566
-4218
-8928

onlyif mysql # use DIV operator for integer division
query I rowsort label-3869
SELECT DISTINCT col1 DIV - tab1.col0 AS col2 FROM tab1
----
-8
0

skipif mysql # not compatible
query I rowsort label-3869
SELECT DISTINCT col1 / - tab1.col0 AS col2 FROM tab1
----
-8
0

query I rowsort
SELECT - col0 - - col1 AS col1 FROM tab1
----
-54
-67
23

query I rowsort
SELECT col2 + tab2.col1 * col0 FROM tab2
----
1381
244
4628

query I rowsort
SELECT ALL col0 * - cor0.col2 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT DISTINCT col1 * col1 * - col0 AS col2 FROM tab2 AS cor0
----
-22831
-271518
-6727

query I rowsort
SELECT - col0 - col1 * + col1 * + col2 FROM tab2
----
-11061
-25954
-90584

query I rowsort
SELECT - col2 * + tab2.col1 + - tab2.col1 AS col1 FROM tab2
----
-1593
-663
-868

query I rowsort
SELECT ALL + cor0.col1 + + col0 * + col0 FROM tab2 AS cor0
----
6143
6258
80

query I rowsort
SELECT - cor0.col2 * 44 FROM tab1, tab1 AS cor0, tab0 cor1
----
27 values hashing to 45fe8abbdbe0665423a929cff09bf608

query I rowsort
SELECT col2 - col1 * col0 * tab2.col0 FROM tab2
----
-106059
-1492
-358930

onlyif mysql # use DIV operator for integer division
query I rowsort label-3879
SELECT tab2.col2 + col0 * col2 DIV + col0 AS col1 FROM tab2
----
52
54
76

skipif mysql # not compatible
query I rowsort label-3879
SELECT tab2.col2 + col0 * col2 / + col0 AS col1 FROM tab2
----
52
54
76

query I rowsort
SELECT ALL col1 + col1 * tab0.col2 FROM tab0
----
194
2924
7553

query I rowsort
SELECT DISTINCT - 98 * + cor0.col2 AS col2 FROM tab2, tab1, tab2 AS cor0
----
-2548
-2646
-3724

onlyif mysql # use DIV operator for integer division
query I rowsort label-3882
SELECT DISTINCT 36 DIV col0 col0 FROM tab2 AS cor0
----
0
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3882
SELECT DISTINCT 36 / col0 col0 FROM tab2 AS cor0
----
0
5

query I rowsort
SELECT DISTINCT + + col1 * cor0.col1 AS col2 FROM tab2 cor0
----
289
3481
961

query I rowsort
SELECT + - ( + col0 ) * + col1 FROM tab0 cor0
----
-2064
-3395
-8099

query I rowsort
SELECT - col2 FROM tab0 WHERE NOT + col1 * + col0 + col0 * + col0 <> NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE ( col0 + col1 ) = col0 + - col1
----

query I rowsort
SELECT col2 + col2 * + col2 FROM tab2
----
1482
702
756

query I rowsort
SELECT col2 + col2 + col1 FROM tab2
----
111
85
93

query I rowsort
SELECT DISTINCT col2 + tab1.col0 * - col0 + col2 FROM tab1
----
-3982
-6208
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + col2 - + col0 col0 FROM tab2
----
-120
-130
13

query I rowsort
SELECT + col1 + col0 + tab2.col2 FROM tab2
----
134
163
65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab1.col2 * + col0 col2 FROM tab1
----
162
3648
7680

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT IN ( col2 * + col2 - + col0 )
----

query I rowsort
SELECT ALL - tab1.col1 * col1 FROM tab1
----
-100
-169
-676

query I rowsort
SELECT - col1 AS col1 FROM tab2 cor0 WHERE NOT NULL IN ( cor0.col1 )
----

query I rowsort
SELECT DISTINCT + col2 * col1 * - col2 FROM tab1
----
-119808
-32490
-75816

query I rowsort
SELECT tab2.col1 * tab2.col2 AS col2 FROM tab2
----
1534
646
837

query I rowsort
SELECT ALL + col1 + col1 * col2 FROM tab1
----
1261
1430
580

query I rowsort
SELECT col0 + col0 AS col0 FROM tab2 WHERE NOT ( col1 * col0 * col1 ) NOT IN ( + col0 + - col0 )
----

query I rowsort
SELECT + col0 * + col2 FROM tab0 WHERE ( col1 ) <= NULL
----

query I rowsort
SELECT ALL col2 - + col2 AS col1 FROM tab0
----
0
0
0

query I rowsort
SELECT - col1 * col0 + + col0 FROM tab1
----
-576
-75
-960

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + col1 col0 FROM tab2 WHERE NULL BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT col2 * col0 * + col2 + - col0 FROM tab2
----
113997
5096
52650

query I rowsort
SELECT + tab0.col2 * + col2 + + col2 AS col2 FROM tab0
----
1122
2
6806

query I rowsort
SELECT ALL + col0 * - col0 + - col1 - - col2 AS col2 FROM tab2
----
-53
-6117
-6220

query I rowsort
SELECT ALL col1 + + tab2.col2 * col1 * + tab2.col0 FROM tab2
----
119711
51051
5890

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col0 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + - col0 * - col1 * + col0 + cor0.col2 + 78 * 89 * col1 FROM tab1 AS cor0
----
110437
173542
180780

onlyif mysql # use DIV operator for integer division
query I rowsort label-3910
SELECT - + col0 * + ( - 66 * cor0.col0 ) - + ( - 81 ) DIV col2 FROM tab0 AS cor0
----
38018
522786
80931

skipif mysql # not compatible
query I rowsort label-3910
SELECT - + col0 * + ( - 66 * cor0.col0 ) - + ( - 81 ) / col2 FROM tab0 AS cor0
----
38018
522786
80931

query I rowsort
SELECT ALL - col2 * + 83 + - col2 * - col0 AS col0 FROM tab2 AS cor0
----
-130
-152
-2052

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3912
SELECT + col1 * + col2 + - ( col0 + - CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3912
SELECT + col1 * + col2 + - ( col0 + - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 * col0 * - col2 AS col0 FROM tab2
----
-1323
-158184
-237158

query I rowsort
SELECT ALL 24 * 33 FROM tab1
----
792
792
792

query I rowsort
SELECT + + col1 + cor0.col2 * + col2 AS col1 FROM tab0 cor0
----
1175
6815
98

query I rowsort
SELECT + col0 * - 86 + col0 * + cor0.col2 AS col2 FROM tab1 AS cor0
----
-1856
-96
800

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3917
SELECT DISTINCT - CAST( NULL AS DECIMAL ) col2 FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3917
SELECT DISTINCT - CAST ( NULL AS REAL ) col2 FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 8 + - col0 col0 FROM tab1
----
-56
-72
5

query I rowsort
SELECT - col2 + + col2 * ( + col2 ) FROM tab2 cor0
----
1406
650
702

query I rowsort
SELECT + col0 * + cor0.col1 * col0 AS col2 FROM tab1 AS cor0
----
234
40960
83200

query I rowsort
SELECT 16 * col1 * - col0 FROM tab2 AS cor0
----
-21488
-3472
-73632

query I rowsort
SELECT + 29 * cor0.col2 FROM tab1 AS cor0
----
1566
1653
2784

query I rowsort
SELECT ALL + + col1 * col1 + + ( col2 ) AS col0 FROM tab0 AS cor0
----
7429
8363
9410

query I rowsort
SELECT + + cor0.col0 * + col1 FROM tab2 cor0
----
1343
217
4602

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3925
SELECT ALL + cor0.col0 * - CAST( NULL AS DECIMAL ) * col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3925
SELECT ALL + cor0.col0 * - CAST ( NULL AS REAL ) * col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col0 * ( col1 ) AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT DISTINCT + col1 + ( 28 ) FROM tab1 AS cor0
----
38
41
54

query I rowsort
SELECT DISTINCT - col1 + ( col1 ) AS col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT + col2 * - cor0.col1 + - col1 * col0 + 24 FROM tab1 AS cor0
----
-1186
-1458
-2264

query I rowsort
SELECT ALL + col2 * + ( + cor0.col1 ) AS col1 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT ALL - + col0 - - col0 * cor0.col0 * col1 AS col0 FROM tab1 AS cor0
----
231
40896
83120

onlyif mysql # use DIV operator for integer division
query I rowsort label-3932
SELECT col2 * col0 DIV col1 - tab1.col0 AS col0 FROM tab1
----
3
300
510

skipif mysql # not compatible
query I rowsort label-3932
SELECT col2 * col0 / col1 - tab1.col0 AS col0 FROM tab1
----
3
300
510

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * - 13 * col1 col2 FROM tab1 AS cor0
----
16224
18252
7410

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3934
SELECT - + col2 * CAST( col1 AS SIGNED ) FROM tab0 AS cor0
----
-2838
-7462
-97

skipif mysql # not compatible
query I rowsort label-3934
SELECT - + col2 * CAST ( col1 AS INTEGER ) FROM tab0 AS cor0
----
-2838
-7462
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-3935
SELECT + 71 DIV 12 AS col0 FROM tab0 AS cor0
----
5
5
5

skipif mysql # not compatible
query I rowsort label-3935
SELECT + 71 / 12 AS col0 FROM tab0 AS cor0
----
5
5
5

query I rowsort
SELECT - cor0.col0 + + col2 * + col1 + col1 AS col1 FROM tab2 AS cor0
----
1515
584
861

query I rowsort
SELECT col1 + 26 AS col1 FROM tab0 AS cor0
----
112
117
123

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * - col1 col1 FROM tab1 cor0
----
1040
640
78

query I rowsort
SELECT ( + cor0.col0 ) + col0 AS col0 FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT 6 + 36 * cor0.col2 FROM tab0 AS cor0
----
1194
2958
42

query I rowsort
SELECT + + 46 * col2 + - cor0.col0 AS col1 FROM tab2 AS cor0
----
1118
1235
1669

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3942
SELECT DISTINCT + col0 * - col2 + col0 * - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3942
SELECT DISTINCT + col0 * - col2 + col0 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + - col0 * 31 FROM tab2 AS cor0
----
-217
-2418
-2449

query I rowsort
SELECT DISTINCT + col1 * - col1 + cor0.col1 AS col2 FROM tab2 AS cor0
----
-272
-3422
-930

query I rowsort
SELECT ALL 91 FROM tab0 cor0
----
91
91
91

onlyif mysql # use DIV operator for integer division
query I rowsort label-3946
SELECT ALL + col1 + - col1 DIV cor0.col2 col0 FROM tab0 AS cor0
----
0
84
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3946
SELECT ALL + col1 + - col1 / cor0.col2 col0 FROM tab0 AS cor0
----
0
84
90

query I rowsort
SELECT ( col0 ) * cor0.col2 AS col1 FROM tab0 cor0
----
35
7298
792

query I rowsort
SELECT ALL cor0.col1 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT DISTINCT - - col1 * - cor0.col2 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT - 54 * + cor0.col1 FROM tab2 AS cor0
----
-1674
-3186
-918

query I rowsort
SELECT DISTINCT - + col2 * col2 AS col1 FROM tab0 cor0
----
-1
-1089
-6724

query I rowsort
SELECT - 47 * col1 AS col2 FROM tab1 cor0
----
-1222
-470
-611

query I rowsort
SELECT DISTINCT - + ( + col1 ) FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT ALL cor0.col1 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

query I rowsort
SELECT + - ( - 92 ) AS col1 FROM tab1 AS cor0
----
92
92
92

query I rowsort
SELECT col0 * - tab2.col1 + col1 FROM tab2
----
-1326
-186
-4543

query I rowsort
SELECT - col2 * + 61 AS col1 FROM tab2 AS cor0
----
-1586
-1647
-2318

query I rowsort
SELECT - - 52 * 57 FROM tab2 AS cor0
----
2964
2964
2964

query I rowsort
SELECT DISTINCT - ( 30 ) FROM tab1
----
-30

query I rowsort
SELECT + 77 AS col0 FROM tab1, tab2 cor0
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622

query I rowsort
SELECT DISTINCT - ( + 78 ) * + col0 FROM tab1
----
-234
-4992
-6240

query I rowsort
SELECT ALL + col0 + col2 * - col2 FROM tab0 AS cor0
----
-1065
-6635
34

query I rowsort
SELECT + + col1 * + col1 AS col2 FROM tab2 cor0
----
289
3481
961

query I rowsort
SELECT ALL + ( + 83 ) * col0 * col0 + col2 * col1 FROM tab1 AS cor0
----
2151
340538
532448

query I rowsort
SELECT - + 88 + col2 * + cor0.col1 AS col1 FROM tab0 AS cor0
----
2750
7374
9

query I rowsort
SELECT DISTINCT + ( + 49 ) AS col2 FROM tab2 AS cor0
----
49

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3967
SELECT DISTINCT + CAST( col1 AS SIGNED ) + col0 * 31 FROM tab2 AS cor0
----
2466
2477
248

skipif mysql # not compatible
query I rowsort label-3967
SELECT DISTINCT + CAST ( col1 AS INTEGER ) + col0 * 31 FROM tab2 AS cor0
----
2466
2477
248

query I rowsort
SELECT ALL - + 38 + + col2 AS col2 FROM tab1 AS cor0
----
16
19
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col0 * - col1 col2 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT - - 30 + + col1 FROM tab0 AS cor0
----
116
121
127

onlyif mysql # use DIV operator for integer division
query I rowsort label-3971
SELECT DISTINCT + + col2 + + cor0.col0 DIV + col1 + + CAST( - col1 AS SIGNED ) DIV col0 AS col1 FROM tab2 AS cor0
----
23
27
42

skipif mysql # not compatible
query I rowsort label-3971
SELECT DISTINCT + + col2 + + cor0.col0 / + col1 + + CAST ( - col1 AS INTEGER ) / col0 AS col1 FROM tab2 AS cor0
----
23
27
42

query I rowsort
SELECT DISTINCT - 79 + col1 FROM tab2 AS cor0
----
-20
-48
-62

query I rowsort
SELECT ALL + cor0.col1 - cor0.col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3974
SELECT + CAST( - 64 AS SIGNED ) FROM tab2 cor0
----
-64
-64
-64

skipif mysql # not compatible
query I rowsort label-3974
SELECT + CAST ( - 64 AS INTEGER ) FROM tab2 cor0
----
-64
-64
-64

query I rowsort
SELECT DISTINCT + cor0.col2 + col2 AS col0 FROM tab1 AS cor0
----
108
114
192

query I rowsort
SELECT DISTINCT + + 26 AS col2 FROM tab2 AS cor0
----
26

query I rowsort
SELECT ALL - + ( + col0 ) * - cor0.col2 + ( col2 * - col1 ) AS col2 FROM tab2 AS cor0
----
-648
2356
494

query I rowsort
SELECT - - 15 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

query I rowsort
SELECT 42 * col2 + col1 FROM tab2
----
1151
1165
1613

onlyif mysql # use DIV operator for integer division
query I rowsort label-3980
SELECT - ( - col0 ) DIV + cor0.col2 - 9 AS col2 FROM tab0 AS cor0
----
-8
-9
26

skipif mysql # not compatible
query I rowsort label-3980
SELECT - ( - col0 ) / + cor0.col2 - 9 AS col2 FROM tab0 AS cor0
----
-8
-9
26

onlyif mysql # use DIV operator for integer division
query I rowsort label-3981
SELECT DISTINCT 13 DIV + col2 FROM tab0 AS cor0
----
0
13

skipif mysql # not compatible
query I rowsort label-3981
SELECT DISTINCT 13 / + col2 FROM tab0 AS cor0
----
0
13

query I rowsort
SELECT DISTINCT + col2 + - col2 * - col1 * - cor0.col1 AS col1 FROM tab2 AS cor0
----
-10944
-25920
-90480

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3983
SELECT + - col1 + + cor0.col0 + + CAST( + ( - col1 ) * - col2 AS SIGNED ) FROM tab1 AS cor0
----
1315
1381
624

skipif mysql # not compatible
query I rowsort label-3983
SELECT + - col1 + + cor0.col0 + + CAST ( + ( - col1 ) * - col2 AS INTEGER ) FROM tab1 AS cor0
----
1315
1381
624

query I rowsort
SELECT ALL ( col2 ) * col0 AS col2 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT - col0 - cor0.col1 * - 86 AS col2 FROM tab1 AS cor0
----
1038
2233
796

onlyif mysql # use DIV operator for integer division
query I rowsort label-3986
SELECT ALL col1 + cor0.col1 DIV col2 FROM tab1 AS cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-3986
SELECT ALL col1 + cor0.col1 / col2 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT - 67 * + col2 FROM tab0 cor0
----
-2211
-5494
-67

query I rowsort
SELECT ALL + - col1 * - col0 + + col0 * col0 AS col1 FROM tab1 AS cor0
----
4736
7440
87

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3989
SELECT + - col2 * + CAST( NULL AS SIGNED ) + - col2 * + col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3989
SELECT + - col2 * + CAST ( NULL AS INTEGER ) + - col2 * + col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - cor0.col1 * + 59 * - 86 FROM tab2 cor0
----
157294
299366
86258

query I rowsort
SELECT ALL - col2 + 64 * - 79 AS col2 FROM tab1 AS cor0
----
-5110
-5113
-5152

query I rowsort
SELECT ALL + 77 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622

query I rowsort
SELECT cor0.col2 + - 69 FROM tab2, tab2 cor0
----
9 values hashing to c4fd1f293c1bbc59da5de2ac18edeb40

query I rowsort
SELECT - + col0 * col2 + + cor0.col1 FROM tab1 AS cor0
----
-136
-3638
-7667

query I rowsort
SELECT ALL - col1 * col2 * - col2 FROM tab1 cor0
----
119808
32490
75816

query I rowsort
SELECT + + col1 * cor0.col2 + + col1 + + col2 AS col2 FROM tab2 AS cor0
----
1619
701
895

query I rowsort
SELECT DISTINCT - + cor0.col2 + + ( 45 ) * col1 FROM tab1 AS cor0
----
1116
393
489

query I rowsort
SELECT DISTINCT - - col2 * 12 FROM tab1 AS cor0
----
1152
648
684

query I rowsort
SELECT - + col0 * - col2 + - 46 + - col1 * cor0.col0 AS col0 FROM tab2 AS cor0
----
-2620
-74
1613

query I rowsort
SELECT 31 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to c3c6f92f0ca72d71793339f88a57e336

query I rowsort
SELECT - + col1 - 42 * 88 AS col1 FROM tab0 AS cor0
----
-3782
-3787
-3793

query I rowsort
SELECT - - col0 * + cor0.col1 AS col0 FROM tab1 AS cor0
----
1040
640
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col2 + cor0.col2 col1 FROM tab0 AS cor0
----
-1056
-6642
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 + - col2 col2 FROM tab2 AS cor0
----
-52
-54
-76

query I rowsort
SELECT DISTINCT - col0 * + 53 AS col1 FROM tab0 AS cor0
----
-1272
-1855
-4717

query I rowsort
SELECT + col0 * - ( 15 ) + + col1 + + col0 FROM tab2 AS cor0
----
-1033
-1089
-67

query I rowsort
SELECT + cor0.col1 * - 98 AS col2 FROM tab1 AS cor0
----
-1274
-2548
-980

query I rowsort
SELECT + ( 92 ) * + col0 * col2 AS col0 FROM tab1 AS cor0
----
14904
335616
706560

query I rowsort
SELECT - 15 + - 25 FROM tab2 AS cor0
----
-40
-40
-40

onlyif mysql # use DIV operator for integer division
query I rowsort label-4010
SELECT col0 DIV - col2 col2 FROM tab1 AS cor0
----
-1
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4010
SELECT col0 / - col2 col2 FROM tab1 AS cor0
----
-1
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4011
SELECT - ( 6 ) DIV - col1 + - col0 + 33 * - col1 AS col0 FROM tab0 AS cor0
----
-2862
-3092
-3236

skipif mysql # not compatible
query I rowsort label-4011
SELECT - ( 6 ) / - col1 + - col0 + 33 * - col1 AS col0 FROM tab0 AS cor0
----
-2862
-3092
-3236

query I rowsort
SELECT - + 56 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 3d3dab400eef93c098acbbba3fc9bdc6

query I rowsort
SELECT col1 * ( - ( col0 ) + 17 ) AS col2 FROM tab0
----
-1746
-602
-6552

query I rowsort
SELECT 90 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 96f7a90428db93f472e0d219bab64853

onlyif mysql # use DIV operator for integer division
query I rowsort label-4015
SELECT ALL + col0 + + col2 DIV + col1 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-4015
SELECT ALL + col0 + + col2 / + col1 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT - cor1.col2 FROM tab2, tab0 cor0, tab2 AS cor1
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4017
SELECT + CAST( NULL AS SIGNED ) FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-4017
SELECT + CAST ( NULL AS INTEGER ) FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT + - 80 + col1 FROM tab0 AS cor0
----
11
17
6

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0, tab2 cor1, tab2, tab1 AS cor2
----
3645 values hashing to 9b60cb1db2fb2fa5700b0e572b4b6546

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4020
SELECT DISTINCT - col2 * col1 + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4020
SELECT DISTINCT - col2 * col1 + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - ( col2 * - col2 ) FROM tab1
----
2916
3249
9216

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4022
SELECT DISTINCT - col0 * tab1.col1 + CAST( NULL AS SIGNED ) * - col1 AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4022
SELECT DISTINCT - col0 * tab1.col1 + CAST ( NULL AS INTEGER ) * - col1 AS col1 FROM tab1
----
NULL

query I rowsort
SELECT ALL 8 + col2 AS col1 FROM tab0
----
41
9
90

query I rowsort
SELECT tab1.col1 * col2 * ( tab1.col0 ) FROM tab1
----
36480
4212
99840

onlyif mysql # use DIV operator for integer division
query I rowsort label-4025
SELECT ALL - col0 DIV + col1 + ( + col0 ) FROM tab1 AS cor0
----
3
58
74

skipif mysql # not compatible
query I rowsort label-4025
SELECT ALL - col0 / + col1 + ( + col0 ) FROM tab1 AS cor0
----
3
58
74

query I rowsort
SELECT DISTINCT + col0 + - tab1.col1 * + col2 FROM tab1
----
-1168
-1401
-506

query I rowsort
SELECT col2 + col0 * - ( + 66 ) FROM tab2
----
-435
-5122
-5176

onlyif mysql # use DIV operator for integer division
query I rowsort label-4028
SELECT + 90 DIV col1 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4028
SELECT + 90 / col1 FROM tab0
----
0
0
1

query I rowsort
SELECT + + ( cor0.col1 ) + col0 * + col0 AS col0 FROM tab0 AS cor0
----
1322
662
8012

query I rowsort
SELECT - + 56 * + col2 FROM tab2 AS cor0
----
-1456
-1512
-2128

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 76 col0 FROM tab2 AS cor0
----
-76
-76
-76

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4032
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4032
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - 54 * - col1 + + cor0.col0 * col2 AS col1 FROM tab0 cor0
----
12212
5273
5436

query I rowsort
SELECT col0 + - 3 FROM tab0 AS cor0
----
21
32
86

query I rowsort
SELECT DISTINCT + 47 FROM tab1, tab0, tab1 AS cor0
----
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * col0 * 14 col0 FROM tab0 AS cor0
----
102172
11088
490

query I rowsort
SELECT col0 + + col2 + col0 * col0 FROM tab2 cor0
----
6188
6358
83

query I rowsort
SELECT 30 AS col2 FROM tab1
----
30
30
30

query I rowsort
SELECT - 64 * col1 * tab1.col0 FROM tab1
----
-40960
-4992
-66560

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col0 ) * 93 * + col1 col1 FROM tab2
----
124899
20181
427986

query I rowsort
SELECT + tab2.col1 FROM tab2, tab1, tab1 cor0
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

query I rowsort
SELECT DISTINCT - col2 * - tab0.col1 AS col2 FROM tab0
----
2838
7462
97

query I rowsort
SELECT DISTINCT 18 AS col1 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
18

query I rowsort
SELECT - col0 * col1 + - 17 FROM tab0 AS cor0
----
-2081
-3412
-8116

query I rowsort
SELECT - + col2 * col2 + ( + col1 ) + + 93 FROM tab2 AS cor0
----
-1334
-524
-605

query I rowsort
SELECT - 14 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d321461994ba49c3a70fa6373032fc94

query I rowsort
SELECT ALL + 1 * - tab2.col2 FROM tab2, tab1 cor0
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75

query I rowsort
SELECT ALL col0 + ( - col1 ) * cor0.col1 AS col1 FROM tab1 cor0
----
-36
-673
-89

query I rowsort
SELECT - cor0.col0 * col0 + - cor0.col1 + 61 * 28 FROM tab0 AS cor0
----
-6304
1046
386

query I rowsort
SELECT ALL col0 * 76 FROM tab1
----
228
4864
6080

query I rowsort
SELECT - col2 * col2 * col0 + tab0.col2 FROM tab0
----
-26103
-34
-598354

query I rowsort
SELECT + col0 + col2 + - 20 AS col2 FROM tab1 AS cor0
----
101
156
37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab1.col0 + col1 * + tab1.col0 col1 FROM tab1
----
1120
704
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-4054
SELECT DISTINCT col0 + - 61 * ( - col1 * tab2.col0 ) + + col0 DIV - tab2.col0 AS col1 FROM tab2
----
13243
280799
82001

skipif mysql # not compatible
query I rowsort label-4054
SELECT DISTINCT col0 + - 61 * ( - col1 * tab2.col0 ) + + col0 / - tab2.col0 AS col1 FROM tab2
----
13243
280799
82001

query I rowsort
SELECT + - 18 + 94 AS col1 FROM tab2 AS cor0
----
76
76
76

query I rowsort
SELECT - col2 + + 36 AS col1 FROM tab0 AS cor0
----
-46
3
35

query I rowsort
SELECT ALL 68 * - tab1.col1 AS col1 FROM tab1
----
-1768
-680
-884

query I rowsort
SELECT DISTINCT + ( 73 ) * - col0 AS col1 FROM tab1 AS cor0
----
-219
-4672
-5840

query I rowsort
SELECT DISTINCT + 62 AS col0 FROM tab1 cor0
----
62

query I rowsort
SELECT DISTINCT - col1 * - 43 FROM tab0 AS cor0
----
3698
3913
4171

query I rowsort
SELECT + col1 * - 37 * col2 AS col2 FROM tab1 AS cor0
----
-21090
-46176
-51948

query I rowsort
SELECT ALL + 70 FROM tab1 cor0
----
70
70
70

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4063
SELECT DISTINCT - - CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4063
SELECT DISTINCT - - CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - ( + ( cor0.col2 ) ) AS col2 FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT - + col1 * col1 + col0 AS col1 FROM tab1 AS cor0
----
-36
-673
-89

query I rowsort
SELECT cor0.col2 * - col0 AS col2 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT ALL - + cor0.col0 + col0 * col1 FROM tab2 AS cor0
----
1264
210
4524

query I rowsort
SELECT DISTINCT + - 43 * col1 FROM tab2 cor0
----
-1333
-2537
-731

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4069
SELECT - + 69 + col2 + CAST( col0 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-12
107
52

skipif mysql # not compatible
query I rowsort label-4069
SELECT - + 69 + col2 + CAST ( col0 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-12
107
52

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4070
SELECT 32 + - col2 * CAST( + col2 AS SIGNED ) * + col0 FROM tab1
----
-207904
-737248
-8716

skipif mysql # not compatible
query I rowsort label-4070
SELECT 32 + - col2 * CAST ( + col2 AS INTEGER ) * + col0 FROM tab1
----
-207904
-737248
-8716

query I rowsort
SELECT DISTINCT + cor0.col1 * col1 + - 51 AS col0 FROM tab0 cor0
----
7345
8230
9358

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 * + col1 * col1 + col0 * cor0.col0 col2 FROM tab0 AS cor0
----
-243492
-671121
-8184

query I rowsort
SELECT 99 * col0 + col0 FROM tab2 AS cor0
----
700
7800
7900

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + col1 ) + - col1 + col0 col2 FROM tab1 AS cor0
----
-49
44
54

query I rowsort
SELECT - 5 - col2 * + col1 FROM tab0 cor0
----
-102
-2843
-7467

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4076
SELECT col1 + - cor0.col1 * col1 * col2 + CAST( col2 AS SIGNED ) FROM tab1 AS cor0
----
-16115
-36424
-5633

skipif mysql # not compatible
query I rowsort label-4076
SELECT col1 + - cor0.col1 * col1 * col2 + CAST ( col2 AS INTEGER ) FROM tab1 AS cor0
----
-16115
-36424
-5633

query I rowsort
SELECT - - cor0.col0 - col2 * - col1 FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT ALL - col0 + 87 * + col1 FROM tab1 AS cor0
----
1051
2259
806

query I rowsort
SELECT cor0.col0 + - col0 * col0 + - col2 * col2 FROM tab0 cor0
----
-1191
-14556
-1641

query I rowsort
SELECT ALL + col2 * 92 AS col2 FROM tab0 AS cor0
----
3036
7544
92

query I rowsort
SELECT col0 * 54 + - ( + col1 ) AS col1 FROM tab1 AS cor0
----
136
3446
4307

query I rowsort
SELECT ALL - ( 19 ) AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 339c9d62143bf2f7566b89a1b56eeeb4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4083
SELECT - col0 * CAST( col2 AS SIGNED ) + - col1 col1 FROM tab0 AS cor0
----
-132
-7389
-878

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4083
SELECT - col0 * CAST ( col2 AS INTEGER ) + - col1 col1 FROM tab0 AS cor0
----
-132
-7389
-878

query I rowsort
SELECT - col0 + ( - 31 ) + + col1 * + ( col1 ) AS col0 FROM tab0 AS cor0
----
7341
8161
9343

query I rowsort
SELECT cor0.col1 + 68 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 13a62a262ff42dba1597e34a62a13e54

query I rowsort
SELECT + + tab0.col0 FROM tab0, tab0 AS cor0, tab1, tab0 AS cor1
----
81 values hashing to 2304fcc140e955eb2d1ee28ab1eea994

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4087
SELECT DISTINCT + + ( col0 ) * + col1 + + ( cor0.col0 ) / CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4087
SELECT DISTINCT + + ( col0 ) * + col1 + + ( cor0.col0 ) / CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - + col0 * - cor0.col0 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT ALL + - col0 - - col2 AS col2 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT - ( cor0.col2 ) + ( col2 ) * - col2 FROM tab0 AS cor0
----
-1122
-2
-6806

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4091
SELECT DISTINCT 28 * cor0.col1 / CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4091
SELECT DISTINCT 28 * cor0.col1 / CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - ( + cor0.col0 ) - tab1.col0 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to f5813810d749d6fa4045bb063ea6a385

query I rowsort
SELECT 75 + col2 FROM tab1
----
129
132
171

query I rowsort
SELECT ( - 82 ) * + col1 + col2 AS col1 FROM tab2
----
-1356
-2515
-4812

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4095
SELECT DISTINCT CAST( NULL AS DECIMAL ) / + col0 + + col1 / - col0 AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4095
SELECT DISTINCT CAST ( NULL AS REAL ) / + col0 + + col1 / - col0 AS col0 FROM tab0
----
NULL

query I rowsort
SELECT - 23 - - col1 * col1 FROM tab1
----
146
653
77

query I rowsort
SELECT DISTINCT 72 + + col1 AS col2 FROM tab0
----
158
163
169

query I rowsort
SELECT tab0.col1 * + col2 + + col1 FROM tab0
----
194
2924
7553

query I rowsort
SELECT - 51 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 08d3853e39924d3c636260a6dd856837

query I rowsort
SELECT DISTINCT + cor0.col2 FROM tab1, tab1 AS cor0, tab2 cor1
----
54
57
96

query I rowsort
SELECT - 83 + + cor0.col1 AS col1 FROM tab2 AS cor0
----
-24
-52
-66

query I rowsort
SELECT - col0 * col2 + - col1 * - col1 AS col0 FROM tab2 cor0
----
-2713
1453
772

query I rowsort
SELECT DISTINCT col2 * - cor0.col1 * col2 + col0 AS col2 FROM tab1 cor0
----
-119728
-32426
-75813

query I rowsort
SELECT - + 72 * - col0 AS col0 FROM tab0 AS cor0
----
1728
2520
6408

query I rowsort
SELECT ALL - 22 - col0 * col0 FROM tab2 AS cor0
----
-6106
-6263
-71

query I rowsort
SELECT - 49 AS col0 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to adfccb10c9468825d9961e3613140f89

query I rowsort
SELECT - - 12 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d4f5a8e032294c3b9342821617800972

query I rowsort
SELECT + col2 * col2 + - col0 * + col2 FROM tab2
----
-1352
-1558
540

onlyif mysql # use DIV operator for integer division
query I rowsort label-4109
SELECT col1 DIV 12 - + 5 FROM tab1
----
-3
-4
-5

skipif mysql # not compatible
query I rowsort label-4109
SELECT col1 / 12 - + 5 FROM tab1
----
-3
-4
-5

query I rowsort
SELECT ALL - ( 94 ) AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to a95bfa539191d3f72f6548147d7efb9e

query I rowsort
SELECT DISTINCT + tab2.col2 - - col0 AS col0 FROM tab2
----
104
117
34

onlyif mysql # use DIV operator for integer division
query I rowsort label-4112
SELECT 61 DIV 58 + - col0 + + ( - col0 ) DIV - col0 FROM tab2
----
-5
-76
-77

skipif mysql # not compatible
query I rowsort label-4112
SELECT 61 / 58 + - col0 + + ( - col0 ) / - col0 FROM tab2
----
-5
-76
-77

onlyif mysql # use DIV operator for integer division
query I rowsort label-4113
SELECT DISTINCT col0 DIV 21 + col2 * + ( col2 ) * + col0 AS col1 FROM tab0
----
26137
36
598440

skipif mysql # not compatible
query I rowsort label-4113
SELECT DISTINCT col0 / 21 + col2 * + ( col2 ) * + col0 AS col1 FROM tab0
----
26137
36
598440

query I rowsort
SELECT ALL + col0 + col1 * col2 * ( col0 ) FROM tab1 AS cor0
----
36544
4215
99920

onlyif mysql # use DIV operator for integer division
query I rowsort label-4115
SELECT + 81 DIV 62 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to da8a72a7967c0c73d91239275230aed9

skipif mysql # not compatible
query I rowsort label-4115
SELECT + 81 / 62 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to da8a72a7967c0c73d91239275230aed9

query I rowsort
SELECT DISTINCT + col0 + - 41 * - col1 FROM tab0
----
3550
3820
4012

query I rowsort
SELECT ( col1 ) + + col1 AS col0 FROM tab2
----
118
34
62

query I rowsort
SELECT 80 + tab1.col1 * tab1.col2 + - col1 AS col2 FROM tab1
----
1315
1458
640

query I rowsort
SELECT DISTINCT 81 + - tab0.col2 + col2 * - 24 AS col1 FROM tab0
----
-1969
-744
56

query I rowsort
SELECT 65 * col2 AS col0 FROM tab2
----
1690
1755
2470

query I rowsort
SELECT ( 43 ) * col2 + col1 FROM tab2 AS cor0
----
1177
1192
1651

query I rowsort
SELECT ALL + col1 + + col2 * col0 * - 20 AS col2 FROM tab2 AS cor0
----
-3749
-40501
-60023

query I rowsort
SELECT ALL + + 34 AS col1 FROM tab2 AS cor0
----
34
34
34

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4124
SELECT ALL ( col2 ) + - col0 * CAST( NULL AS SIGNED ) AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4124
SELECT ALL ( col2 ) + - col0 * CAST ( NULL AS INTEGER ) AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + col1 - + 38 FROM tab1 AS cor0
----
-12
-25
-28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 * + col1 col1 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT + ( + col0 ) + + col1 AS col1 FROM tab0 AS cor0
----
110
132
180

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4128
SELECT ALL + tab1.col2 * col1 * col0 + + CAST( + 68 + - col1 AS SIGNED ) FROM tab1
----
36538
4254
99895

skipif mysql # not compatible
query I rowsort label-4128
SELECT ALL + tab1.col2 * col1 * col0 + + CAST ( + 68 + - col1 AS INTEGER ) FROM tab1
----
36538
4254
99895

query I rowsort
SELECT col1 * - 31 + + col2 FROM tab1
----
-253
-307
-752

query I rowsort
SELECT DISTINCT + 84 AS col0 FROM tab0, tab2 AS cor0
----
84

onlyif mysql # use DIV operator for integer division
query I rowsort label-4131
SELECT ALL - ( col1 ) DIV - col2 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4131
SELECT ALL - ( col1 ) / - col2 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - col1 * + 50 - + col1 FROM tab0 AS cor0
----
-4386
-4641
-4947

onlyif mysql # use DIV operator for integer division
query I rowsort label-4133
SELECT 10 DIV + col1 + col0 FROM tab1 AS cor0
----
3
65
80

skipif mysql # not compatible
query I rowsort label-4133
SELECT 10 / + col1 + col0 FROM tab1 AS cor0
----
3
65
80

query I rowsort
SELECT DISTINCT - 62 + ( col0 * - cor0.col1 ) FROM tab1 AS cor0
----
-1102
-140
-702

skipif mysql # not compatible
query I rowsort
SELECT ALL - CAST ( + 37 AS INTEGER ) + - cor0.col1 * CAST ( - col0 + - col0 AS REAL ) AS col2 FROM tab1 AS cor0
----
119
1243
2043

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 46 * - col0 col2 FROM tab0 AS cor0
----
-1104
-1610
-4094

query I rowsort
SELECT 90 AS col1 FROM tab1
----
90
90
90

query I rowsort
SELECT DISTINCT col1 * - 8 FROM tab1 AS cor0
----
-104
-208
-80

query I rowsort
SELECT + 86 + + col0 FROM tab2 AS cor0
----
164
165
93

query I rowsort
SELECT + col2 * col1 + - 86 AS col0 FROM tab0 AS cor0
----
11
2752
7376

query I rowsort
SELECT 6 * cor0.col0 + 16 AS col1 FROM tab1 AS cor0
----
34
400
496

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 1 * + col2 col2 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT DISTINCT - cor0.col1 * col2 - cor0.col1 FROM tab1 AS cor0
----
-1261
-1430
-580

query I rowsort
SELECT + col0 * col2 + + ( - 86 + + col1 ) * ( 65 ) AS col2 FROM tab0 AS cor0
----
750
7623
792

query I rowsort
SELECT col0 * + cor0.col1 AS col1 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT + ( col1 ) * - col1 * + 51 - - col2 FROM tab1 AS cor0
----
-34422
-5043
-8523

onlyif mysql # use DIV operator for integer division
query I rowsort label-4147
SELECT - col1 DIV + col2 - col0 FROM tab1 AS cor0
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-4147
SELECT - col1 / + col2 - col0 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT ALL - col2 + + 30 + 50 * col2 FROM tab1 AS cor0
----
2676
2823
4734

query I rowsort
SELECT DISTINCT + col0 + + 41 FROM tab2 AS cor0
----
119
120
48

query I rowsort
SELECT - - cor0.col0 * col0 + col2 AS col0 FROM tab0 cor0
----
1226
609
8003

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 AS cor0, tab1 AS cor1, tab2, tab1 AS cor2
----
3645 values hashing to 731e4a6549b312ba21c2e61ca9bede27

query I rowsort
SELECT - + 3 * col2 * - col1 FROM tab1 AS cor0
----
1710
3744
4212

query I rowsort
SELECT ALL 52 + - 77 AS col2 FROM tab0 AS cor0
----
-25
-25
-25

query I rowsort
SELECT - - 21 AS col2 FROM tab0 AS cor0
----
21
21
21

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab1, tab1 cor1, tab2 cor2
----
972 values hashing to 72eb3d4d523f5d0c69d1b855edd18f4a

query I rowsort
SELECT DISTINCT 84 AS col2 FROM tab1, tab2 cor0, tab0 AS cor1
----
84

query I rowsort
SELECT + cor0.col0 + + 91 * ( col1 ) FROM tab2 AS cor0
----
1626
2828
5447

onlyif mysql # use DIV operator for integer division
query I rowsort label-4158
SELECT + col2 * col0 DIV - col1 AS col0 FROM tab1 AS cor0
----
-364
-590
-6

skipif mysql # not compatible
query I rowsort label-4158
SELECT + col2 * col0 / - col1 AS col0 FROM tab1 AS cor0
----
-364
-590
-6

query I rowsort
SELECT cor0.col2 + - ( - cor0.col2 ) + col0 * + col1 AS col1 FROM tab2 AS cor0
----
1419
271
4654

query I rowsort
SELECT ALL + 36 FROM tab0, tab2 AS cor0
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752

query I rowsort
SELECT DISTINCT + 41 * - 16 FROM tab1
----
-656

query I rowsort
SELECT - 45 FROM tab0, tab1 AS cor0, tab0 AS cor1, tab1 cor2
----
81 values hashing to 1f0df66b2151954f18c5f227a321bf0c

onlyif mysql # use DIV operator for integer division
query I rowsort label-4163
SELECT ALL - col2 DIV + col2 AS col0 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4163
SELECT ALL - col2 / + col2 AS col0 FROM tab1 AS cor0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + + col1 * col2 col1 FROM tab0 AS cor0
----
132
2862
7551

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 * 79 - - cor1.col2 col2 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 8508a9d309e700d8e731c661c3c115be

onlyif mysql # use DIV operator for integer division
query I rowsort label-4166
SELECT cor0.col1 DIV + col1 + - ( cor0.col1 + cor0.col1 ) * + col1 FROM tab0 AS cor0
----
-14791
-16561
-18817

skipif mysql # not compatible
query I rowsort label-4166
SELECT cor0.col1 / + col1 + - ( cor0.col1 + cor0.col1 ) * + col1 FROM tab0 AS cor0
----
-14791
-16561
-18817

query I rowsort
SELECT - 20 + col2 + - ( + col1 ) FROM tab1 AS cor0
----
27
63
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col2 ) + + col2 col1 FROM tab0
----
164
2
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( 3 ) col1 FROM tab0, tab0 cor0, tab1 AS cor1
----
27 values hashing to 3e22859a313d85a6146c6df5f23d77cf

query I rowsort
SELECT + 75 * - col0 + col1 FROM tab1 AS cor0
----
-199
-4790
-5987

query I rowsort
SELECT DISTINCT + col2 * col0 + col1 AS col2 FROM tab1 AS cor0
----
188
3658
7693

query I rowsort
SELECT - cor0.col0 + - col0 + + col0 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT col2 + col1 + + col1 * cor0.col0 * - col0 FROM tab1 AS cor0
----
-154
-40893
-83091

query I rowsort
SELECT DISTINCT col2 * 38 + + col1 AS col2 FROM tab2 AS cor0
----
1047
1057
1461

onlyif mysql # use DIV operator for integer division
query I rowsort label-4175
SELECT ALL - + cor0.col0 DIV + col0 + - col2 + col0 AS col2 FROM tab0 cor0
----
-10
33
6

skipif mysql # not compatible
query I rowsort label-4175
SELECT ALL - + cor0.col0 / + col0 + - col2 + col0 AS col2 FROM tab0 cor0
----
-10
33
6

query I rowsort
SELECT - - cor0.col0 + + ( col1 ) FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT ALL - col1 * 56 FROM tab0 AS cor0
----
-4816
-5096
-5432

onlyif mysql # use DIV operator for integer division
query I rowsort label-4178
SELECT - col2 * + col1 + - col1 DIV + col1 AS col0 FROM tab2 AS cor0
----
-1535
-647
-838

skipif mysql # not compatible
query I rowsort label-4178
SELECT - col2 * + col1 + - col1 / + col1 AS col0 FROM tab2 AS cor0
----
-1535
-647
-838

query I rowsort
SELECT DISTINCT col2 * 66 AS col1 FROM tab2 AS cor0
----
1716
1782
2508

query I rowsort
SELECT ALL + 28 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 8a39580587f2831072e93c319ff94bbf

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4181
SELECT DISTINCT - col0 + + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4181
SELECT DISTINCT - col0 + + CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4182
SELECT col2 * col1 DIV + 87 + + col1 AS col2 FROM tab2 AS cor0
----
24
40
76

skipif mysql # not compatible
query I rowsort label-4182
SELECT col2 * col1 / + 87 + + col1 AS col2 FROM tab2 AS cor0
----
24
40
76

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4183
SELECT DISTINCT - col2 * - CAST( NULL AS SIGNED ) * 10 - col1 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4183
SELECT DISTINCT - col2 * - CAST ( NULL AS INTEGER ) * 10 - col1 AS col0 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - + col1 col0 FROM tab0 AS cor0
----
-2
-62
-62

onlyif mysql # use DIV operator for integer division
query I rowsort label-4185
SELECT DISTINCT - cor0.col1 DIV - 30 FROM tab0 AS cor0
----
2
3

skipif mysql # not compatible
query I rowsort label-4185
SELECT DISTINCT - cor0.col1 / - 30 FROM tab0 AS cor0
----
2
3

query I rowsort
SELECT DISTINCT - col0 + 32 * - col0 + + cor0.col0 FROM tab0 cor0
----
-1120
-2848
-768

query I rowsort
SELECT + col0 + 80 * ( col0 ) AS col1 FROM tab2 AS cor0
----
567
6318
6399

query I rowsort
SELECT ALL + col0 + 45 * cor0.col2 AS col2 FROM tab0 AS cor0
----
1509
3779
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-4189
SELECT DISTINCT - col0 DIV cor0.col1 + + cor0.col0 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-4189
SELECT DISTINCT - col0 / cor0.col1 + + cor0.col0 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT - col2 + 76 AS col0 FROM tab1 AS cor0
----
-20
19
22

query I rowsort
SELECT + + 97 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

query I rowsort
SELECT - ( col1 ) + - ( 5 ) * col2 FROM tab0
----
-102
-251
-501

query I rowsort
SELECT DISTINCT - cor0.col0 * + col1 + 7 FROM tab2 AS cor0
----
-1336
-210
-4595

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + cor0.col0 col2 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT DISTINCT + col0 + - tab2.col2 AS col2 FROM tab2
----
-20
41
52

query I rowsort
SELECT ALL + col0 + + 89 FROM tab2 cor0
----
167
168
96

query I rowsort
SELECT DISTINCT col0 * - 16 AS col0 FROM tab0 AS cor0
----
-1424
-384
-560

onlyif mysql # use DIV operator for integer division
query I rowsort label-4198
SELECT ALL col1 DIV tab1.col0 + - col1 FROM tab1
----
-10
-13
-18

skipif mysql # not compatible
query I rowsort label-4198
SELECT ALL col1 / tab1.col0 + - col1 FROM tab1
----
-10
-13
-18

onlyif mysql # use DIV operator for integer division
query I rowsort label-4199
SELECT col0 * ( + col1 ) DIV col1 AS col0 FROM tab0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-4199
SELECT col0 * ( + col1 ) / col1 AS col0 FROM tab0
----
24
35
89

query I rowsort
SELECT ALL + col0 * - col1 + - col1 FROM tab0 AS cor0
----
-2150
-3492
-8190

query I rowsort
SELECT DISTINCT - col0 * col0 * + col1 + - col0 FROM tab0
----
-118860
-49560
-720900

query I rowsort
SELECT ALL + 5 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 6797d40099023779b89feb627d94a3e7

onlyif mysql # use DIV operator for integer division
query I rowsort label-4203
SELECT DISTINCT col2 DIV - 75 + + col0 AS col0 FROM tab1
----
3
64
79

skipif mysql # not compatible
query I rowsort label-4203
SELECT DISTINCT col2 / - 75 + + col0 AS col0 FROM tab1
----
3
64
79

query I rowsort
SELECT col1 * 5 AS col0 FROM tab0
----
430
455
485

query I rowsort
SELECT - - ( + cor0.col2 ) * - col0 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT DISTINCT + cor0.col0 + + col0 AS col1 FROM tab2 AS cor0
----
14
156
158

query I rowsort
SELECT ALL + + 17 AS col0 FROM tab2 AS cor0
----
17
17
17

query I rowsort
SELECT DISTINCT ( + col1 ) * - col2 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT ( - col2 ) + + col2 FROM tab0
----
0
0
0

query I rowsort
SELECT + ( col1 ) + + tab0.col2 FROM tab0
----
119
173
98

query I rowsort
SELECT 32 + + col0 FROM tab2
----
110
111
39

query I rowsort
SELECT 76 - - col2 * col2 AS col1 FROM tab0
----
1165
6800
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab1.col2 col0 FROM tab1, tab2 AS cor0
----
54
57
96

query I rowsort
SELECT + col2 * col1 - + col2 AS col2 FROM tab0 AS cor0
----
2805
7380
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4215
SELECT DISTINCT - col2 * + col0 + CAST( + 91 * col2 AS SIGNED ) col1 FROM tab0 AS cor0
----
164
2211
56

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4215
SELECT DISTINCT - col2 * + col0 + CAST ( + 91 * col2 AS INTEGER ) col1 FROM tab0 AS cor0
----
164
2211
56

query I rowsort
SELECT + - 50 AS col0 FROM tab2 cor0
----
-50
-50
-50

onlyif mysql # use DIV operator for integer division
query I rowsort label-4217
SELECT ALL - 63 * col0 - - cor0.col2 DIV col2 col0 FROM tab1 AS cor0
----
-188
-4031
-5039

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4217
SELECT ALL - 63 * col0 - - cor0.col2 / col2 col0 FROM tab1 AS cor0
----
-188
-4031
-5039

query I rowsort
SELECT DISTINCT - - 57 AS col2 FROM tab2 AS cor0
----
57

query I rowsort
SELECT DISTINCT - col2 + col2 * ( col1 ) FROM tab0 cor0
----
2805
7380
96

query I rowsort
SELECT 18 * col2 + - col0 * + col0 FROM tab1 AS cor0
----
-3070
-4672
963

query I rowsort
SELECT + + cor0.col1 * col0 + - col2 + - col2 AS col0 FROM tab2 AS cor0
----
1267
163
4550

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab2.col1 * + col1 * - col1 + - col1 * col2 col0 FROM tab2
----
203845
28954
4267

onlyif mysql # use DIV operator for integer division
query I rowsort label-4223
SELECT col1 DIV - col1 AS col0 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4223
SELECT col1 / - col1 AS col0 FROM tab1
----
-1
-1
-1

query I rowsort
SELECT DISTINCT + col2 + tab2.col2 FROM tab2
----
52
54
76

query I rowsort
SELECT + col2 * + col2 * col0 FROM tab2
----
114076
5103
52728

query I rowsort
SELECT DISTINCT + col0 * cor0.col0 AS col2 FROM tab0 AS cor0
----
1225
576
7921

onlyif mysql # use DIV operator for integer division
query I rowsort label-4227
SELECT DISTINCT col2 + + col0 DIV + col0 FROM tab2 AS cor0
----
27
28
39

skipif mysql # not compatible
query I rowsort label-4227
SELECT DISTINCT col2 + + col0 / + col0 FROM tab2 AS cor0
----
27
28
39

query I rowsort
SELECT + col0 + - cor0.col0 * col0 + + col0 FROM tab1 AS cor0
----
-3
-3968
-6240

query I rowsort
SELECT ALL - - col0 * + col0 AS col0 FROM tab1 cor0
----
4096
6400
9

query I rowsort
SELECT + + cor0.col1 * + col2 + col1 * col2 FROM tab1 AS cor0
----
1140
2496
2808

query I rowsort
SELECT + - cor0.col1 * col2 + - col1 * col0 AS col0 FROM tab0 AS cor0
----
-15561
-3492
-4902

query I rowsort
SELECT cor0.col0 + - col0 + + col0 FROM tab2 AS cor0
----
7
78
79

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 - cor0.col1 * col0 + col0 + - col1 FROM tab2 AS cor0
----
-1281
-241
-4583

query I rowsort
SELECT col1 + col1 + col2 FROM tab0 AS cor0
----
195
205
264

onlyif mysql # use DIV operator for integer division
query I rowsort label-4236
SELECT col1 DIV + tab1.col1 + col0 + col1 * - col2 col2 FROM tab1
----
-1167
-1400
-505

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4236
SELECT col1 / + tab1.col1 + col0 + col1 * - col2 col2 FROM tab1
----
-1167
-1400
-505

query I rowsort
SELECT DISTINCT - col1 * col1 + - col0 AS col2 FROM tab0
----
-7420
-8370
-9444

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT IN ( - tab2.col1 * + col2 - - tab2.col1 * col0 ) AND NOT - col1 IN ( - col1 - col2 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-4239
SELECT col0 * - col1 + - col2 * col0 DIV col2 FROM tab1
----
-1120
-704
-81

skipif mysql # not compatible
query I rowsort label-4239
SELECT col0 * - col1 + - col2 * col0 / col2 FROM tab1
----
-1120
-704
-81

query I rowsort
SELECT DISTINCT tab1.col0 + - col2 * - tab1.col2 + - col2 * + col2 FROM tab1
----
3
64
80

query I rowsort
SELECT ALL - - 72 + - col1 - col0 AS col2 FROM tab1 AS cor0
----
-2
-21
43

query I rowsort
SELECT ALL + - col1 + + col1 AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT 96 AS col2 FROM tab2 AS cor0
----
96

query I rowsort
SELECT DISTINCT - - 78 AS col2 FROM tab0 cor0
----
78

query I rowsort
SELECT ALL - - col1 + col0 + col0 AS col0 FROM tab0 cor0
----
134
167
269

query I rowsort
SELECT - 36 + col1 AS col1 FROM tab1 AS cor0
----
-10
-23
-26

query I rowsort
SELECT ALL + - col2 + + col2 * col2 AS col2 FROM tab1 AS cor0
----
2862
3192
9120

query I rowsort
SELECT DISTINCT + - cor0.col1 * - col1 FROM tab1 AS cor0
----
100
169
676

onlyif mysql # use DIV operator for integer division
query I rowsort label-4249
SELECT DISTINCT + - col1 DIV - col1 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4249
SELECT DISTINCT + - col1 / - col1 FROM tab1 AS cor0
----
1

query I rowsort
SELECT + 13 + col1 AS col2 FROM tab1
----
23
26
39

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4251
SELECT CAST( + col2 + col1 AS SIGNED ) FROM tab2
----
55
58
85

skipif mysql # not compatible
query I rowsort label-4251
SELECT CAST ( + col2 + col1 AS INTEGER ) FROM tab2
----
55
58
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 66 + + col1 + col1 col1 FROM tab0 AS cor0
----
238
248
260

query I rowsort
SELECT - + cor0.col1 + + col1 * - col0 AS col0 FROM tab1 AS cor0
----
-104
-1053
-650

query I rowsort
SELECT ALL + cor0.col2 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

query I rowsort
SELECT DISTINCT - col1 + - cor0.col1 * + col2 AS col2 FROM tab2 AS cor0
----
-1593
-663
-868

query I rowsort
SELECT - col0 * + tab1.col1 AS col1 FROM tab1
----
-1040
-640
-78

query I rowsort
SELECT ALL + col2 - col2 FROM tab0
----
0
0
0

query I rowsort
SELECT - col1 * + col2 + tab2.col0 / - col0 FROM tab2 WHERE NOT NULL IN ( col1 )
----

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT IN ( col2 + + col1 )
----

query I rowsort
SELECT - col0 + + col0 / col2 + col0 FROM tab0 WHERE NOT NULL NOT IN ( - col2 )
----

query I rowsort
SELECT DISTINCT - col2 * - col2 - - tab0.col2 * - tab0.col1 FROM tab0
----
-1749
-738
-96

query I rowsort
SELECT col1 + col0 * + col2 + col2 FROM tab0
----
133
7471
911

query I rowsort
SELECT DISTINCT + col0 + - col2 * - col1 * col1 FROM tab1
----
16304
36507
5764

query III rowsort
SELECT ALL * FROM tab2 WHERE - col0 IN ( + col0 )
----

query I rowsort
SELECT ALL col2 * col2 + - col0 AS col2 FROM tab2
----
1365
598
722

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 / col2 col1 FROM tab0 WHERE NOT + col1 / - col1 <= + col1
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-4267
SELECT col1 DIV col1 - - col1 FROM tab2
----
18
32
60

skipif mysql # not compatible
query I rowsort label-4267
SELECT col1 / col1 - - col1 FROM tab2
----
18
32
60

onlyif mysql # use DIV operator for integer division
query I rowsort label-4268
SELECT ALL - col0 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-4268
SELECT ALL - col0 / col1 + + col2 col0 FROM tab0
----
1
33
82

query I rowsort
SELECT DISTINCT + col2 * col1 * tab1.col1 - - col2 AS col1 FROM tab1
----
16320
36558
5757

query I rowsort
SELECT col2 * + col0 + col2 + col2 * col2 AS col0 FROM tab2
----
2730
4484
945

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 BETWEEN NULL AND NULL
----

query I rowsort
SELECT col2 * + col0 * + tab0.col0 FROM tab0
----
1225
19008
649522

query I rowsort
SELECT col0 + - col2 * - col0 FROM tab2 AS cor0
----
196
2106
3081

query I rowsort
SELECT - col0 * + col2 + + col1 + - col0 FROM tab0 AS cor0
----
-7296
-730
27

query I rowsort
SELECT DISTINCT - col0 * - col0 * col1 FROM tab0
----
118825
49536
720811

query I rowsort
SELECT tab0.col0 + + col2 * col2 AS col1 FROM tab0
----
1113
36
6813

onlyif mysql # use DIV operator for integer division
query I rowsort label-4277
SELECT ALL col1 DIV col0 AS col0 FROM tab1 AS cor0
----
0
0
8

skipif mysql # not compatible
query I rowsort label-4277
SELECT ALL col1 / col0 AS col0 FROM tab1 AS cor0
----
0
0
8

query I rowsort
SELECT ALL - col2 + - col2 - - col2 AS col1 FROM tab0 cor0
----
-1
-33
-82

query I rowsort
SELECT ALL col0 FROM tab0 AS cor0 WHERE NOT ( col2 * col2 ) IN ( + col2 + + col2 * col2 * + col2 )
----
24
35
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-4280
SELECT + col2 DIV + col1 AS col2 FROM tab1 cor0 WHERE NOT ( col1 ) <= cor0.col2 - + col0
----
5

skipif mysql # not compatible
query I rowsort label-4280
SELECT + col2 / + col1 AS col2 FROM tab1 cor0 WHERE NOT ( col1 ) <= cor0.col2 - + col0
----
5

query I rowsort
SELECT DISTINCT 46 FROM tab2, tab2 cor0, tab0 AS cor1
----
46

query I rowsort
SELECT ALL + tab2.col0 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

query I rowsort
SELECT col1 * + col1 * col2 + + col2 FROM tab1
----
16320
36558
5757

query I rowsort
SELECT DISTINCT - 84 AS col1 FROM tab2, tab1 AS cor0
----
-84

query I rowsort
SELECT - col1 * cor0.col2 - col1 FROM tab2 cor0
----
-1593
-663
-868

query I rowsort
SELECT - col0 * + 90 + cor0.col2 + cor0.col2 FROM tab2 AS cor0
----
-576
-6968
-7034

query I rowsort
SELECT - + col2 * col2 + col1 AS col1 FROM tab1 AS cor0
----
-2890
-3239
-9203

query I rowsort
SELECT DISTINCT 15 AS col1 FROM tab1, tab1 AS cor0
----
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col0 ) * col0 col1 FROM tab2
----
-49
-6084
-6241

query I rowsort
SELECT cor1.col0 + 75 AS col0 FROM tab2 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 3538ff97af75b51f578c59e58e600ceb

query I rowsort
SELECT col0 * col2 + - 16 AS col2 FROM tab2
----
173
2012
2986

onlyif mysql # use DIV operator for integer division
query I rowsort label-4292
SELECT DISTINCT - col1 + col2 DIV - 54 AS col2 FROM tab0
----
-86
-92
-97

skipif mysql # not compatible
query I rowsort label-4292
SELECT DISTINCT - col1 + col2 / - 54 AS col2 FROM tab0
----
-86
-92
-97

query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2, tab1 cor0, tab2 AS cor1
----
972 values hashing to 2507aa9f48c3db94de9fec065edf3731

query I rowsort
SELECT DISTINCT col1 + - col0 * - ( - 84 ) * + col0 FROM tab0
----
-102803
-48298
-665273

query I rowsort
SELECT DISTINCT 83 + col1 AS col2 FROM tab1
----
109
93
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + col0 col2 FROM tab2
----
-20
41
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( cor1.col1 ) col2 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

query I rowsort
SELECT 56 AS col1 FROM tab0, tab2 cor0, tab1 AS cor1
----
27 values hashing to b5ba4b44e3deadce1edb30e76df61200

query I rowsort
SELECT 19 * + col1 + col1 AS col0 FROM tab2 AS cor0
----
1180
340
620

query I rowsort
SELECT DISTINCT 96 AS col2 FROM tab2, tab2 cor0
----
96

query I rowsort
SELECT ( + cor0.col0 ) FROM tab2, tab0 AS cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 + 56 col1 FROM tab1 AS cor0
----
110
113
152

onlyif mysql # use DIV operator for integer division
query I rowsort label-4303
SELECT + 81 * - cor0.col2 + col2 DIV col0 AS col2 FROM tab2 cor0
----
-2106
-2184
-3078

skipif mysql # not compatible
query I rowsort label-4303
SELECT + 81 * - cor0.col2 + col2 / col0 AS col2 FROM tab2 cor0
----
-2106
-2184
-3078

onlyif mysql # use DIV operator for integer division
query I rowsort label-4304
SELECT + + CAST( col2 AS SIGNED ) * col0 + + 35 DIV - 29 FROM tab0 AS cor0
----
34
7297
791

skipif mysql # not compatible
query I rowsort label-4304
SELECT + + CAST ( col2 AS INTEGER ) * col0 + + 35 / - 29 FROM tab0 AS cor0
----
34
7297
791

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( + cor0.col2 ) * - cor0.col0 col1 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT col0 * - cor0.col1 AS col2 FROM tab1 AS cor0
----
-1040
-640
-78

onlyif mysql # use DIV operator for integer division
query I rowsort label-4307
SELECT - 31 DIV 29 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4307
SELECT - 31 / 29 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT - 20 + 50 FROM tab2, tab0 AS cor0
----
30

query I rowsort
SELECT DISTINCT - 43 FROM tab0, tab1 cor0
----
-43

onlyif mysql # use DIV operator for integer division
query I rowsort label-4310
SELECT DISTINCT col1 + tab2.col0 DIV 75 + col1 AS col0 FROM tab2
----
119
35
62

skipif mysql # not compatible
query I rowsort label-4310
SELECT DISTINCT col1 + tab2.col0 / 75 + col1 AS col0 FROM tab2
----
119
35
62

query I rowsort
SELECT 87 AS col2 FROM tab2, tab2 cor0
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

query I rowsort
SELECT + 24 FROM tab0, tab1 cor0
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef

query I rowsort
SELECT 13 * + tab0.col1 FROM tab0, tab1 AS cor0
----
9 values hashing to cd0941f76340a899089095efa7c05a52

query I rowsort
SELECT 90 * - 85 - cor0.col2 AS col0 FROM tab1 AS cor0
----
-7704
-7707
-7746

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4315
SELECT ALL + + CAST( 19 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
19
19
19

skipif mysql # not compatible
query I rowsort label-4315
SELECT ALL + + CAST ( 19 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
19
19
19

query I rowsort
SELECT DISTINCT - 39 * - col1 FROM tab2 AS cor0
----
1209
2301
663

onlyif mysql # use DIV operator for integer division
query I rowsort label-4317
SELECT + col0 + 76 DIV - col0 FROM tab0 cor0
----
21
33
89

skipif mysql # not compatible
query I rowsort label-4317
SELECT + col0 + 76 / - col0 FROM tab0 cor0
----
21
33
89

query I rowsort
SELECT - col1 + 43 + col1 FROM tab0
----
43
43
43

query I rowsort
SELECT ALL - - col0 * col0 + - cor0.col1 FROM tab0 AS cor0
----
1128
490
7830

query I rowsort
SELECT ALL - - cor0.col0 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63

query I rowsort
SELECT DISTINCT + + col0 + + cor0.col0 AS col1 FROM tab2 AS cor0
----
14
156
158

query I rowsort
SELECT + - ( col1 ) * col1 AS col2 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT ALL col1 * + ( col0 ) FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT DISTINCT + + ( col2 ) AS col0 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT ALL - col2 * - cor0.col2 + col0 FROM tab0 AS cor0
----
1113
36
6813

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + cor0.col2 col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - - cor0.col0 + col1 AS col1 FROM tab1 cor0
----
29
74
93

query I rowsort
SELECT - 65 + - col1 + 59 AS col1 FROM tab1 AS cor0
----
-16
-19
-32

query I rowsort
SELECT - 43 * + col1 - col0 FROM tab1 AS cor0
----
-1121
-494
-639

query I rowsort
SELECT ALL + col1 + - col1 * - col2 FROM tab1 cor0
----
1261
1430
580

query I rowsort
SELECT + + col0 * col2 + col2 AS col1 FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT ALL 83 + col2 AS col1 FROM tab2 AS cor0
----
109
110
121

query I rowsort
SELECT - - 8 + col2 FROM tab1 AS cor0
----
104
62
65

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4334
SELECT ALL - - 94 * + col0 + - CAST( NULL AS SIGNED ) + + col0 * + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4334
SELECT ALL - - 94 * + col0 + - CAST ( NULL AS INTEGER ) + + col0 * + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 30 * - col2 AS col2 FROM tab2 AS cor0
----
-1140
-780
-810

query I rowsort
SELECT ALL + + 50 * - col1 + - col2 FROM tab1 AS cor0
----
-1354
-557
-746

query I rowsort
SELECT + 29 + + col1 AS col0 FROM tab0 AS cor0
----
115
120
126

onlyif mysql # use DIV operator for integer division
query I rowsort label-4338
SELECT ALL - col1 DIV ( + tab0.col2 ) - - 97 * col1 * col0 FROM tab0
----
200206
329218
785602

skipif mysql # not compatible
query I rowsort label-4338
SELECT ALL - col1 / ( + tab0.col2 ) - - 97 * col1 * col0 FROM tab0
----
200206
329218
785602

query I rowsort
SELECT + cor1.col1 AS col1 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

query I rowsort
SELECT ALL col0 - ( tab1.col1 * + 32 ) FROM tab1
----
-256
-336
-829

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4341
SELECT CAST( NULL AS SIGNED ) / 55 - col1 * col1 / + col2 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4341
SELECT CAST ( NULL AS INTEGER ) / 55 - col1 * col1 / + col2 AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4342
SELECT DISTINCT + + col0 DIV 76 + 31 AS col2 FROM tab0 AS cor0
----
31
32

skipif mysql # not compatible
query I rowsort label-4342
SELECT DISTINCT + + col0 / 76 + 31 AS col2 FROM tab0 AS cor0
----
31
32

query I rowsort
SELECT ALL - col2 - ( cor0.col2 ) FROM tab0 AS cor0
----
-164
-2
-66

query I rowsort
SELECT DISTINCT - + cor0.col1 * col2 * col0 + col2 FROM tab2 AS cor0
----
-119626
-50996
-5832

query I rowsort
SELECT ALL - cor0.col2 + col1 - cor0.col1 * col1 AS col1 FROM tab2 AS cor0
----
-310
-3448
-957

query I rowsort
SELECT ALL + + col1 * + col1 + 67 AS col1 FROM tab2 cor0
----
1028
3548
356

query I rowsort
SELECT - + col1 * - 42 AS col2 FROM tab2 cor0
----
1302
2478
714

onlyif mysql # use DIV operator for integer division
query I rowsort label-4348
SELECT ALL col1 DIV + col1 AS col1 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4348
SELECT ALL col1 / + col1 AS col1 FROM tab2
----
1
1
1

query I rowsort
SELECT + col1 * + col2 * 81 FROM tab2 AS cor0
----
124254
52326
67797

query I rowsort
SELECT DISTINCT 75 * + tab0.col0 * col0 FROM tab0
----
43200
594075
91875

query I rowsort
SELECT DISTINCT + col1 * cor0.col1 * + 72 AS col2 FROM tab1 AS cor0
----
12168
48672
7200

query I rowsort
SELECT DISTINCT cor0.col1 * + cor0.col0 FROM tab0 cor0
----
2064
3395
8099

query I rowsort
SELECT ALL - - col0 - ( col2 + + cor0.col1 ) AS col2 FROM tab0 AS cor0
----
-63
-84
-95

onlyif mysql # use DIV operator for integer division
query I rowsort label-4354
SELECT - cor0.col0 - - col0 DIV col2 AS col2 FROM tab0 AS cor0
----
-24
-88
0

skipif mysql # not compatible
query I rowsort label-4354
SELECT - cor0.col0 - - col0 / col2 AS col2 FROM tab0 AS cor0
----
-24
-88
0

query I rowsort
SELECT DISTINCT + + col0 + + col2 * col2 - col0 AS col0 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT ALL + - col2 + col1 AS col0 FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT ALL + col1 + ( + col0 ) FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT - - col0 * - 84 FROM tab1 AS cor0
----
-252
-5376
-6720

query I rowsort
SELECT DISTINCT + col0 - + ( 91 + + col1 ) FROM tab0 cor0
----
-153
-93

query I rowsort
SELECT col0 * 10 - cor0.col2 AS col0 FROM tab2 cor0
----
43
752
754

query I rowsort
SELECT + 4 * col1 + col1 FROM tab1 AS cor0
----
130
50
65

query I rowsort
SELECT ALL + - 19 FROM tab0 AS cor0
----
-19
-19
-19

query I rowsort
SELECT DISTINCT col0 * 31 AS col0 FROM tab2 AS cor0
----
217
2418
2449

query I rowsort
SELECT ALL + - ( - 24 ) * + col0 * + col0 FROM tab1 AS cor0
----
153600
216
98304

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * 10 * - col0 col2 FROM tab0 cor0
----
12250
5760
79210

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4366
SELECT ALL CAST( NULL AS SIGNED ) + - cor0.col1 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4366
SELECT ALL CAST ( NULL AS INTEGER ) + - cor0.col1 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + ( - cor0.col2 ) AS col1 FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT ALL - - ( col0 ) * + col0 + col0 AS col2 FROM tab2 AS cor0
----
56
6162
6320

query I rowsort
SELECT ALL + col0 + - cor0.col0 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + col1 * col0 * col0 FROM tab1 AS cor0
----
234
40960
83200

query I rowsort
SELECT ALL 31 + + 17 FROM tab1 AS cor0
----
48
48
48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 4 col0 FROM tab2 AS cor0
----
-4
-4
-4

query I rowsort
SELECT ALL - + 50 FROM tab0 AS cor0
----
-50
-50
-50

query I rowsort
SELECT DISTINCT - - 89 FROM tab2 AS cor0
----
89

query I rowsort
SELECT - + 59 + + col0 * col1 AS col1 FROM tab1 AS cor0
----
19
581
981

query I rowsort
SELECT DISTINCT + - col2 + - col0 * - col0 AS col2 FROM tab1 cor0
----
-45
4039
6304

query I rowsort
SELECT - - 62 * - col2 AS col2 FROM tab2 AS cor0
----
-1612
-1674
-2356

query I rowsort
SELECT DISTINCT - + cor0.col0 * 59 AS col2 FROM tab1 AS cor0
----
-177
-3776
-4720

onlyif mysql # use DIV operator for integer division
query I rowsort label-4379
SELECT + col0 DIV - 23 + cor0.col0 FROM tab1 AS cor0
----
3
62
77

skipif mysql # not compatible
query I rowsort label-4379
SELECT + col0 / - 23 + cor0.col0 FROM tab1 AS cor0
----
3
62
77

query I rowsort
SELECT DISTINCT col2 + col1 * col0 * col1 AS col2 FROM tab0 AS cor0
----
177537
329316
737091

query I rowsort
SELECT - ( col2 ) + 97 * col0 * + col1 FROM tab1 AS cor0
----
100784
62023
7512

query I rowsort
SELECT ALL + + 60 * col2 FROM tab0 AS cor0
----
1980
4920
60

query I rowsort
SELECT - cor1.col2 AS col1 FROM tab2, tab0 AS cor0 CROSS JOIN tab1, tab1 AS cor1
----
81 values hashing to 2df272448a67587d4635afedff278dcc

query I rowsort
SELECT + ( + col1 ) - - col1 FROM tab2
----
118
34
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-4385
SELECT - col0 DIV col1 col0 FROM tab0 cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4385
SELECT - col0 / col1 col0 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT ALL - + col2 * col2 * - col1 + col0 AS col1 FROM tab1 AS cor0
----
119888
32554
75819

onlyif mysql # use DIV operator for integer division
query I rowsort label-4387
SELECT - col0 * col2 DIV + col2 + + col2 AS col0 FROM tab0
----
-34
-7
9

skipif mysql # not compatible
query I rowsort label-4387
SELECT - col0 * col2 / + col2 + + col2 AS col0 FROM tab0
----
-34
-7
9

query I rowsort
SELECT - ( + 29 ) FROM tab1
----
-29
-29
-29

query I rowsort
SELECT - + 49 + col1 AS col0 FROM tab1 AS cor0
----
-23
-36
-39

query I rowsort
SELECT + 13 FROM tab0
----
13
13
13

query I rowsort
SELECT + 53 * + 46 FROM tab0 AS cor0
----
2438
2438
2438

query I rowsort
SELECT col0 * + 46 - col2 FROM tab0 AS cor0
----
1071
1609
4012

query I rowsort
SELECT - + cor0.col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b

onlyif mysql # use DIV operator for integer division
query I rowsort label-4394
SELECT ALL + 57 DIV + 55 + tab0.col1 + + cor0.col2 FROM tab0, tab0 AS cor0
----
9 values hashing to fe1d2dd83fbea4ca50e36a57736b0cfc

skipif mysql # not compatible
query I rowsort label-4394
SELECT ALL + 57 / + 55 + tab0.col1 + + cor0.col2 FROM tab0, tab0 AS cor0
----
9 values hashing to fe1d2dd83fbea4ca50e36a57736b0cfc

query I rowsort
SELECT 3 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab2.col0 + col2 col2 FROM tab2
----
104
117
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab0.col1 * col2 * - col0 + + tab0.col1 col0 FROM tab0
----
-3298
-664027
-68026

query IIIIIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2 cor0 CROSS JOIN tab0, tab2 AS cor1, tab2, tab0 AS cor2, tab1 AS cor3
----
13122 values hashing to eb9a1a775f9a92b309a2132aecff3523

query I rowsort
SELECT DISTINCT + + col2 + + 11 AS col0 FROM tab0 cor0
----
12
44
93

query I rowsort
SELECT cor0.col1 + + 0 AS col1 FROM tab1 AS cor0
----
10
13
26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4401
SELECT + col1 + ( col2 ) * - CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4401
SELECT + col1 + ( col2 ) * - CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + col1 * - col1 col1 FROM tab1 AS cor0
----
-156
-650
-90

query I rowsort
SELECT ALL col0 + + 50 FROM tab0 AS cor0
----
139
74
85

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2 AS cor0, tab0 cor1, tab0 AS cor2
----
972 values hashing to 09b120a8ff13ebafea7af10c2152241b

query I rowsort
SELECT ALL + col0 + 33 AS col2 FROM tab1 AS cor0
----
113
36
97

query I rowsort
SELECT + - col1 * col2 - - col1 FROM tab0 AS cor0
----
-2752
-7371
0

query I rowsort
SELECT ALL col1 - col1 * col0 AS col0 FROM tab1 AS cor0
----
-1027
-52
-630

query I rowsort
SELECT DISTINCT col2 + + ( col0 ) FROM tab1 cor0
----
121
176
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 * ( ( + col2 ) ) + col0 col1 FROM tab1 AS cor0
----
165
3712
7760

query I rowsort
SELECT + col2 * - col2 + - col0 FROM tab2 AS cor0
----
-1523
-736
-754

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + col1 - - col1 col0 FROM tab0 AS cor0
----
194
2924
7553

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 32 col1 FROM tab1
----
32
32
32

query I rowsort
SELECT DISTINCT + + cor0.col1 * - col2 AS col0 FROM tab2 cor0
----
-1534
-646
-837

query I rowsort
SELECT ALL col0 * + col0 + - 67 FROM tab0 AS cor0
----
1158
509
7854

query I rowsort
SELECT col1 + - 35 FROM tab1 AS cor0
----
-22
-25
-9

query I rowsort
SELECT + col2 * + 96 + col0 AS col2 FROM tab2 AS cor0
----
2574
2599
3727

query IIIIIIIIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0, tab1 cor1, tab1, tab1 AS cor2, tab2
----
13122 values hashing to 2a23a2efbd7482492eade70ce0528c27

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4418
SELECT - col2 - CAST( - 66 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-30
12
9

skipif mysql # not compatible
query I rowsort label-4418
SELECT - col2 - CAST ( - 66 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-30
12
9

query I rowsort
SELECT - 74 AS col2 FROM tab0 cor0
----
-74
-74
-74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 40 col2 FROM tab1 AS cor0
----
40
40
40

query I rowsort
SELECT DISTINCT + 81 * - col0 AS col1 FROM tab0 AS cor0
----
-1944
-2835
-7209

query I rowsort
SELECT + - 31 * + col1 AS col0 FROM tab1 cor0
----
-310
-403
-806

query I rowsort
SELECT DISTINCT 26 AS col0 FROM tab0, tab1 AS cor0
----
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab0.col0 col0 FROM tab0, tab2 AS cor0
----
24
35
89

query I rowsort
SELECT ( - col2 ) - col1 FROM tab1
----
-109
-67
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 87 col2 FROM tab0
----
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 42 col2 FROM tab1
----
42
42
42

onlyif mysql # use DIV operator for integer division
query I rowsort label-4428
SELECT DISTINCT + 71 + + cor0.col2 DIV + 38 AS col0 FROM tab2 AS cor0
----
71
72

skipif mysql # not compatible
query I rowsort label-4428
SELECT DISTINCT + 71 + + cor0.col2 / + 38 AS col0 FROM tab2 AS cor0
----
71
72

query I rowsort
SELECT DISTINCT col2 + cor0.col0 * + ( - 92 ) AS col0 FROM tab2 AS cor0
----
-617
-7150
-7230

query I rowsort
SELECT ALL 95 + + col2 FROM tab0 cor0
----
128
177
96

query I rowsort
SELECT ALL - + col1 + + 92 * col2 FROM tab1 AS cor0
----
4942
5234
8819

onlyif mysql # use DIV operator for integer division
query I rowsort label-4432
SELECT DISTINCT + col0 * 48 DIV 48 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-4432
SELECT DISTINCT + col0 * 48 / 48 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT + col1 * + ( cor0.col2 ) FROM tab0 AS cor0
----
2838
7462
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + ( + 50 ) * cor0.col0 col0 FROM tab2 AS cor0
----
377
3926
3988

query I rowsort
SELECT ALL 79 + - 68 FROM tab2, tab1 cor0
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4436
SELECT DISTINCT - col0 + CAST( NULL AS SIGNED ) * + col1 * col2 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4436
SELECT DISTINCT - col0 + CAST ( NULL AS INTEGER ) * + col1 * col2 AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + col1 - - ( - col2 ) AS col0 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT + col1 * + 11 + + cor0.col0 FROM tab0 AS cor0
----
1090
1102
970

query I rowsort
SELECT + + cor0.col2 * + 62 FROM tab2 AS cor0
----
1612
1674
2356

query I rowsort
SELECT ALL - - col0 + - col1 * col0 FROM tab0 cor0
----
-2040
-3360
-8010

query I rowsort
SELECT DISTINCT + col2 + + ( ( col2 ) ) + ( 29 ) * - col0 * + 57 AS col1 FROM tab0 cor0
----
-146953
-39606
-57853

query I rowsort
SELECT DISTINCT + - col1 * - col1 + col2 * col1 * - col0 AS col0 FROM tab1 AS cor0
----
-3536
-36380
-99671

query I rowsort
SELECT + 4 * 67 FROM tab1
----
268
268
268

query I rowsort
SELECT DISTINCT 20 + col2 AS col2 FROM tab2
----
46
47
58

query I rowsort
SELECT 89 + + 59 FROM tab0 AS cor0
----
148
148
148

query I rowsort
SELECT + ( + col0 ) * col2 * - col2 AS col1 FROM tab1
----
-207936
-737280
-8748

query I rowsort
SELECT DISTINCT col1 + col0 + col0 AS col2 FROM tab0
----
134
167
269

onlyif mysql # use DIV operator for integer division
query I rowsort label-4448
SELECT ALL + col0 DIV 79 AS col2 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4448
SELECT ALL + col0 / 79 AS col2 FROM tab2 AS cor0
----
0
0
1

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab0 cor0, tab2 AS cor1, tab1, tab0 AS cor2
----
3645 values hashing to b225d3765f33551c12574f545c8c91eb

query I rowsort
SELECT DISTINCT - ( - cor0.col1 ) + col0 * col1 FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT ALL - - ( 2 ) * cor0.col2 + ( col2 ) FROM tab2 AS cor0
----
114
78
81

query I rowsort
SELECT + 28 * col1 + col2 FROM tab0 AS cor0
----
2441
2630
2717

query I rowsort
SELECT ALL + 2 AS col0 FROM tab0 AS cor0
----
2
2
2

onlyif mysql # use DIV operator for integer division
query I rowsort label-4454
SELECT ALL + + col0 + col2 DIV col1 AS col1 FROM tab2 AS cor0
----
7
78
81

skipif mysql # not compatible
query I rowsort label-4454
SELECT ALL + + col0 + col2 / col1 AS col1 FROM tab2 AS cor0
----
7
78
81

query I rowsort
SELECT ALL - 55 * col2 * col1 FROM tab1 AS cor0
----
-31350
-68640
-77220

onlyif mysql # use DIV operator for integer division
query I rowsort label-4456
SELECT - - col0 DIV cor0.col2 AS col0 FROM tab0 cor0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-4456
SELECT - - col0 / cor0.col2 AS col0 FROM tab0 cor0
----
0
1
35

query I rowsort
SELECT ALL col0 * - col2 * 95 FROM tab2 AS cor0
----
-17955
-192660
-285190

query I rowsort
SELECT + ( - tab1.col0 ) - + col0 AS col0 FROM tab1
----
-128
-160
-6

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab2, tab1 cor2
----
3645 values hashing to 1c1b1a313871216b88e662d7d3078b12

query I rowsort
SELECT - 73 * tab1.col1 + cor0.col0 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 5e74ba38f6cbcf66a3207db8b4fd6109

query I rowsort
SELECT ( - col1 * col1 ) AS col2 FROM tab1
----
-100
-169
-676

query I rowsort
SELECT ( col2 ) + + col1 FROM tab2
----
55
58
85

query I rowsort
SELECT col0 + col1 * col2 AS col2 FROM tab0
----
132
2862
7551

query I rowsort
SELECT DISTINCT - + col0 * col2 + - col0 FROM tab2 AS cor0
----
-196
-2106
-3081

query I rowsort
SELECT ALL + col1 * + col2 + col1 + ( - cor0.col0 ) FROM tab1 AS cor0
----
1181
1427
516

query I rowsort
SELECT DISTINCT - col1 + + tab2.col1 AS col1 FROM tab2
----
0

query I rowsort
SELECT DISTINCT + tab2.col1 + col2 + - ( - 15 ) FROM tab2
----
100
70
73

query I rowsort
SELECT + 4 * tab2.col2 FROM tab2
----
104
108
152

query I rowsort
SELECT + + 94 + + cor0.col0 * cor0.col1 FROM tab1 AS cor0
----
1134
172
734

query I rowsort
SELECT ( col0 ) * 45 + + col1 + + col1 FROM tab2
----
3589
3628
377

query I rowsort
SELECT - 56 AS col2 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to a228dfb9ede9780b082a5a3dfb2fca80

query I rowsort
SELECT 94 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to a4d239626cf0546ac1b2f57bb8407089

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab1.col1 col2 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT ALL - col2 + col1 * col0 AS col2 FROM tab0 AS cor0
----
2031
3394
8017

query I rowsort
SELECT + tab0.col1 * col1 * 10 + - col1 FROM tab0
----
73874
82719
93993

query I rowsort
SELECT + 83 + 61 FROM tab1 AS cor0 CROSS JOIN tab1, tab2 cor1
----
27 values hashing to 3c0aa9b5ec9df595bcb1b06b56de3514

query I rowsort
SELECT DISTINCT - col0 + + col0 * + col0 FROM tab1 AS cor0
----
4032
6
6320

query I rowsort
SELECT + col0 + 68 * col1 AS col1 FROM tab1 AS cor0
----
1771
744
964

query I rowsort
SELECT col0 * ( 8 ) AS col1 FROM tab0 AS cor0
----
192
280
712

query I rowsort
SELECT DISTINCT + - cor0.col2 * ( - col0 ) AS col2 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT ALL + + col1 * cor0.col1 AS col0 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT - col1 + + col0 * + cor0.col1 AS col0 FROM tab1 AS cor0
----
1027
52
630

query I rowsort
SELECT ALL + - cor0.col1 + 54 + col2 AS col2 FROM tab0 AS cor0
----
-42
1
45

query I rowsort
SELECT DISTINCT col1 + col0 * + col0 FROM tab0 cor0
----
1322
662
8012

query I rowsort
SELECT DISTINCT col0 - ( - col0 + + col2 ) AS col2 FROM tab1 AS cor0
----
-48
64
71

query I rowsort
SELECT + + col2 * cor0.col2 + cor0.col1 FROM tab0 AS cor0
----
1175
6815
98

query I rowsort
SELECT ALL - 12 FROM tab0, tab0 cor0, tab2 AS cor1
----
27 values hashing to 3983bffe2adf88cb2efc3be93ee620c0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 5 col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 6035628694bdea36f584f3649088551d

query I rowsort
SELECT DISTINCT col2 * + col0 * - col0 FROM tab2
----
-1323
-158184
-237158

query I rowsort
SELECT + col0 * 3 * col1 FROM tab0
----
10185
24297
6192

onlyif mysql # use DIV operator for integer division
query I rowsort label-4491
SELECT ALL + col1 DIV - 3 AS col1 FROM tab0
----
-28
-30
-32

skipif mysql # not compatible
query I rowsort label-4491
SELECT ALL + col1 / - 3 AS col1 FROM tab0
----
-28
-30
-32

query I rowsort
SELECT DISTINCT + 24 * - tab2.col2 AS col0 FROM tab2, tab1 AS cor0
----
-624
-648
-912

query I rowsort
SELECT - cor0.col1 + + col2 + col1 AS col0 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT + col1 + + 22 * + col2 AS col0 FROM tab0 AS cor0
----
119
1895
812

skipif mysql # not compatible
query I rowsort
SELECT + CAST ( - 27 AS REAL ) FROM tab2 AS cor0
----
-27
-27
-27

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4496
SELECT ( - ( + col1 ) ) * - CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4496
SELECT ( - ( + col1 ) ) * - CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 * 84 FROM tab0 AS cor0
----
2016
2940
7476

query I rowsort
SELECT col2 + - cor0.col0 FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT DISTINCT + + 17 + 57 AS col2 FROM tab0 AS cor0
----
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col0 + ( + col2 * + col1 ) col0 FROM tab2
----
1612
725
844

query I rowsort
SELECT + col2 * tab1.col2 * 85 AS col0 FROM tab1
----
247860
276165
783360

query I rowsort
SELECT col2 + + 54 FROM tab0 AS cor0
----
136
55
87

query I rowsort
SELECT DISTINCT 14 + col1 AS col1 FROM tab1 AS cor0
----
24
27
40

query I rowsort
SELECT + + ( - col2 ) * - col2 FROM tab0 AS cor0
----
1
1089
6724

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 6 col0 FROM tab2 AS cor0
----
-6
-6
-6

onlyif mysql # use DIV operator for integer division
query I rowsort label-4506
SELECT 34 + - col2 DIV ( - 22 ) FROM tab2 AS cor0
----
35
35
35

skipif mysql # not compatible
query I rowsort label-4506
SELECT 34 + - col2 / ( - 22 ) FROM tab2 AS cor0
----
35
35
35

query I rowsort
SELECT 2 * - col0 AS col2 FROM tab2 AS cor0
----
-14
-156
-158

query I rowsort
SELECT + 92 FROM tab1 cor0
----
92
92
92

query I rowsort
SELECT - 56 * cor0.col0 AS col2 FROM tab2 AS cor0
----
-392
-4368
-4424

query I rowsort
SELECT - col0 * 79 - col1 * + col1 * + col2 AS col2 FROM tab0 AS cor0
----
-12174
-245964
-686073

query I rowsort
SELECT + - col2 * col1 + cor0.col0 + - col2 AS col2 FROM tab1 AS cor0
----
-1264
-1455
-563

onlyif mysql # use DIV operator for integer division
query I rowsort label-4512
SELECT + 50 + cor0.col0 DIV + col1 FROM tab1 AS cor0
----
50
56
56

skipif mysql # not compatible
query I rowsort label-4512
SELECT + 50 + cor0.col0 / + col1 FROM tab1 AS cor0
----
50
56
56

query I rowsort
SELECT ALL + col2 * 13 + - col1 AS col1 FROM tab1 AS cor0
----
1235
676
731

query I rowsort
SELECT DISTINCT cor0.col0 * + col2 * col0 AS col1 FROM tab2 AS cor0
----
1323
158184
237158

query I rowsort
SELECT DISTINCT - cor0.col2 + + cor0.col2 + - col2 FROM tab0 cor0
----
-1
-33
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col1 + + col0 col1 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT ALL + ( 40 ) * cor0.col1 FROM tab1 AS cor0
----
1040
400
520

onlyif mysql # use DIV operator for integer division
query I rowsort label-4518
SELECT - col2 DIV col2 AS col2 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4518
SELECT - col2 / col2 AS col2 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL - col0 * col0 + - col2 AS col2 FROM tab0 AS cor0
----
-1226
-609
-8003

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col0 + col1 ) col2 FROM tab2
----
137
38
96

query I rowsort
SELECT DISTINCT - + col2 + - cor0.col1 FROM tab1 AS cor0
----
-109
-67
-80

query I rowsort
SELECT - col0 + 11 FROM tab1 AS cor0
----
-53
-69
8

query I rowsort
SELECT DISTINCT + 58 FROM tab2, tab1 AS cor0
----
58

query I rowsort
SELECT ALL - - col0 + col0 AS col2 FROM tab2 AS cor0
----
14
156
158

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab0.col1 col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

query I rowsort
SELECT ALL - 14 + + col0 FROM tab0 cor0
----
10
21
75

query I rowsort
SELECT ALL + col2 + col1 * col0 FROM tab0 AS cor0
----
2097
3396
8181

query I rowsort
SELECT ALL cor0.col1 AS col2 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT tab1.col0 + - ( + col2 ) * col2 AS col0 FROM tab1
----
-2913
-3185
-9136

query I rowsort
SELECT col0 + - 61 * + col2 FROM tab0
----
-1989
-26
-4913

query I rowsort
SELECT DISTINCT 59 * - col1 AS col2 FROM tab0 AS cor0
----
-5074
-5369
-5723

query I rowsort
SELECT ALL - 10 * col2 - col2 FROM tab1 AS cor0
----
-1056
-594
-627

query I rowsort
SELECT DISTINCT - col1 * - ( col2 ) AS col0 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT cor0.col1 + - 81 AS col1 FROM tab0 AS cor0
----
10
16
5

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4535
SELECT DISTINCT - CAST( - 71 AS SIGNED ) + + col2 AS col1 FROM tab2 AS cor0
----
109
97
98

skipif mysql # not compatible
query I rowsort label-4535
SELECT DISTINCT - CAST ( - 71 AS INTEGER ) + + col2 AS col1 FROM tab2 AS cor0
----
109
97
98

query I rowsort
SELECT 47 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 3f991632e9c7c5142e1d80857cd10a2d

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - col1 + col1 col0 FROM tab2
----
-1326
-186
-4543

query I rowsort
SELECT ALL ( col1 + - col2 * col0 ) FROM tab1
----
-136
-3638
-7667

query I rowsort
SELECT DISTINCT + 82 AS col2 FROM tab0
----
82

query I rowsort
SELECT - 18 + + 20 FROM tab1
----
2
2
2

query I rowsort
SELECT ALL + 83 + col0 AS col0 FROM tab0 AS cor0
----
107
118
172

query I rowsort
SELECT ALL + ( col2 ) + + col0 + - cor0.col1 FROM tab0 AS cor0
----
-29
-61
80

query I rowsort
SELECT DISTINCT + 84 AS col0 FROM tab0 cor0
----
84

query I rowsort
SELECT - - ( col0 ) + + col2 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT ALL + col2 - col1 AS col0 FROM tab2
----
-33
-4
21

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4546
SELECT ALL + tab1.col0 + + tab1.col2 - - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4546
SELECT ALL + tab1.col0 + + tab1.col2 - - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4547
SELECT DISTINCT - col2 DIV + col1 - 67 FROM tab1
----
-69
-72
-74

skipif mysql # not compatible
query I rowsort label-4547
SELECT DISTINCT - col2 / + col1 - 67 FROM tab1
----
-69
-72
-74

query I rowsort
SELECT ALL col2 + - tab2.col2 - - col2 FROM tab2
----
26
27
38

query I rowsort
SELECT + - col1 * - col0 + col1 * - 57 FROM tab2 AS cor0
----
-1550
1239
374

query I rowsort
SELECT tab2.col0 * + col0 + col0 AS col1 FROM tab2
----
56
6162
6320

onlyif mysql # use DIV operator for integer division
query I rowsort label-4551
SELECT ALL col2 + CAST( + 43 AS SIGNED ) DIV cor0.col1 FROM tab2 AS cor0
----
26
28
40

skipif mysql # not compatible
query I rowsort label-4551
SELECT ALL col2 + CAST ( + 43 AS INTEGER ) / cor0.col1 FROM tab2 AS cor0
----
26
28
40

query I rowsort
SELECT DISTINCT - col1 + + 64 * col1 FROM tab2 cor0
----
1071
1953
3717

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4553
SELECT - col0 + - CAST( col2 AS SIGNED ) * - col0 AS col2 FROM tab0 AS cor0
----
0
7209
768

skipif mysql # not compatible
query I rowsort label-4553
SELECT - col0 + - CAST ( col2 AS INTEGER ) * - col0 AS col2 FROM tab0 AS cor0
----
0
7209
768

query I rowsort
SELECT DISTINCT - col1 + + col1 * col0 + cor0.col0 FROM tab2 AS cor0
----
1405
193
4621

query I rowsort
SELECT ALL + col0 - + ( - col0 + cor0.col1 ) * col0 * col0 AS col1 FROM tab2 AS cor0
----
-1169
115674
387021

query I rowsort
SELECT ALL + col1 * col0 - - col2 FROM tab0 cor0
----
2097
3396
8181

onlyif mysql # use DIV operator for integer division
query I rowsort label-4557
SELECT ALL - col1 DIV + CAST( + 29 AS SIGNED ) col0 FROM tab2 AS cor0
----
-1
-2
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4557
SELECT ALL - col1 / + CAST ( + 29 AS INTEGER ) col0 FROM tab2 AS cor0
----
-1
-2
0

query I rowsort
SELECT - + cor0.col1 - - col2 AS col0 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT DISTINCT - col2 * - 73 AS col1 FROM tab2 AS cor0
----
1898
1971
2774

onlyif mysql # use DIV operator for integer division
query I rowsort label-4560
SELECT + col1 * - 16 + - 62 DIV col0 FROM tab2 AS cor0
----
-272
-504
-944

skipif mysql # not compatible
query I rowsort label-4560
SELECT + col1 * - 16 + - 62 / col0 FROM tab2 AS cor0
----
-272
-504
-944

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + col0 col2 FROM tab0
----
1225
576
7921

query I rowsort
SELECT ALL - col0 * 90 + + col2 FROM tab0 cor0
----
-2127
-3149
-7928

query I rowsort
SELECT + col0 * 71 FROM tab0 AS cor0
----
1704
2485
6319

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col0 * - col1 * col1 - - col1 col1 FROM tab2 AS cor0
----
-22814
-271459
-6696

onlyif mysql # use DIV operator for integer division
query I rowsort label-4565
SELECT ALL + col2 DIV ( col1 ) + col2 AS col2 FROM tab2 AS cor0
----
26
27
40

skipif mysql # not compatible
query I rowsort label-4565
SELECT ALL + col2 / ( col1 ) + col2 AS col2 FROM tab2 AS cor0
----
26
27
40

query I rowsort
SELECT - cor0.col1 + - 78 * col2 FROM tab2 AS cor0
----
-2087
-2137
-2981

query I rowsort
SELECT ALL + - col0 * cor0.col1 + 64 * - col2 + - col1 * col2 FROM tab0 cor0
----
-20809
-3556
-7014

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 18 + + col0 col1 FROM tab2 AS cor0
----
-11
60
61

query I rowsort
SELECT DISTINCT - cor0.col2 * col1 + col1 FROM tab1 AS cor0
----
-1235
-1378
-560

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4570
SELECT DISTINCT + + col1 + - cor0.col1 * CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4570
SELECT DISTINCT + + col1 + - cor0.col1 * CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + col0 + cor0.col2 * 12 AS col2 FROM tab1 AS cor0
----
1232
651
748

query I rowsort
SELECT DISTINCT + - col0 + col2 + - col2 AS col1 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT 87 * cor0.col2 FROM tab1 AS cor0
----
4698
4959
8352

query I rowsort
SELECT ALL ( + 83 ) + col1 AS col2 FROM tab0
----
169
174
180

query I rowsort
SELECT + col0 * - 97 + col0 * + col1 FROM tab2
----
-2964
-462
-6320

onlyif mysql # use DIV operator for integer division
query I rowsort label-4576
SELECT - col1 DIV - col1 + - col0 + + col0 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4576
SELECT - col1 / - col1 + - col0 + + col0 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT - 90 + + col2 + + col2 * 39 FROM tab2 AS cor0
----
1430
950
990

query I rowsort
SELECT ALL cor1.col2 AS col2 FROM tab0, tab1, tab0 AS cor0, tab1 AS cor1
----
81 values hashing to 9d355f1f2edc347a359dad00d2d3f886

query I rowsort
SELECT ( col1 * + 18 ) + 60 FROM tab1
----
240
294
528

query I rowsort
SELECT + 18 + + tab0.col1 AS col0 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to c20540cd8118f7f814eb949c69a86f8d

query I rowsort
SELECT DISTINCT - ( - col0 ) FROM tab0
----
24
35
89

query I rowsort
SELECT - + col1 + ( + col2 ) * col1 FROM tab0 cor0
----
0
2752
7371

query I rowsort
SELECT - + col2 + - col0 * - 73 * col2 AS col1 FROM tab2 AS cor0
----
13770
148018
219108

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab0.col0 * col1 col2 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT - col2 * + col1 + col1 FROM tab1
----
-1235
-1378
-560

query I rowsort
SELECT - + col0 * ( col2 ) + + ( + col0 ) AS col2 FROM tab1 AS cor0
----
-159
-3584
-7600

query I rowsort
SELECT ALL - col1 - ( tab0.col1 + + col0 ) * ( + ( col0 ) + + col0 * col0 ) FROM tab0
----
-1441891
-166417
-66086

query I rowsort
SELECT col1 - 87 AS col1 FROM tab0 AS cor0
----
-1
10
4

query I rowsort
SELECT ALL + + ( - col1 ) + - col0 AS col0 FROM tab1 AS cor0
----
-29
-74
-93

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4590
SELECT DISTINCT CAST( NULL AS SIGNED ) / - col2 - col2 AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4590
SELECT DISTINCT CAST ( NULL AS INTEGER ) / - col2 - col2 AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - 38 + col2 + - col1 FROM tab0 AS cor0
----
-134
-47
-91

query I rowsort
SELECT - - cor0.col0 * + col2 + + col2 AS col2 FROM tab1 AS cor0
----
216
3705
7776

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4593
SELECT ALL - CAST( NULL AS SIGNED ) + col0 * - col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4593
SELECT ALL - CAST ( NULL AS INTEGER ) + col0 * - col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - - ( 90 ) + + cor0.col0 AS col1 FROM tab1 AS cor0
----
154
170
93

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4595
SELECT ALL - + CAST( NULL AS SIGNED ) + + col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4595
SELECT ALL - + CAST ( NULL AS INTEGER ) + + col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + + col1 - col1 * col1 AS col2 FROM tab2 AS cor0
----
-272
-3422
-930

query I rowsort
SELECT + col2 + + ( + col2 ) FROM tab2
----
52
54
76

query I rowsort
SELECT col2 * ( - 2 ) + - col0 - col0 AS col0 FROM tab0
----
-114
-342
-72

query I rowsort
SELECT ALL col0 + ( - col0 ) FROM tab0
----
0
0
0

query I rowsort
SELECT ( - col0 ) + tab1.col1 * col0 FROM tab1
----
576
75
960

query I rowsort
SELECT ALL ( - 20 ) + col2 AS col0 FROM tab1
----
34
37
76

query I rowsort
SELECT - 96 + col1 FROM tab2
----
-37
-65
-79

query I rowsort
SELECT ALL + + ( + 52 ) + - col0 * - col0 AS col1 FROM tab0 AS cor0
----
1277
628
7973

query I rowsort
SELECT ALL + col1 * col1 + col1 * + col1 + - col2 FROM tab1 AS cor0
----
1298
143
242

onlyif mysql # use DIV operator for integer division
query I rowsort label-4605
SELECT ALL - - ( 89 ) + + col1 DIV - 67 FROM tab0 cor0
----
88
88
88

skipif mysql # not compatible
query I rowsort label-4605
SELECT ALL - - ( 89 ) + + col1 / - 67 FROM tab0 cor0
----
88
88
88

query I rowsort
SELECT ALL cor0.col2 + 64 FROM tab0 AS cor0
----
146
65
97

query I rowsort
SELECT ALL + 54 * 12 + + col2 AS col1 FROM tab1 AS cor0
----
702
705
744

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + ( - col0 + - 71 ) col2 FROM tab0 AS cor0
----
-181
-203
-251

onlyif mysql # use DIV operator for integer division
query I rowsort label-4609
SELECT col2 DIV - col0 + col2 AS col2 FROM tab1 AS cor0
----
36
57
95

skipif mysql # not compatible
query I rowsort label-4609
SELECT col2 / - col0 + col2 AS col2 FROM tab1 AS cor0
----
36
57
95

query I rowsort
SELECT DISTINCT + - col2 * 58 AS col1 FROM tab2 AS cor0
----
-1508
-1566
-2204

query I rowsort
SELECT DISTINCT - - 38 + ( col1 ) FROM tab0 cor0
----
124
129
135

onlyif mysql # use DIV operator for integer division
query I rowsort label-4612
SELECT ALL 30 * col1 DIV col2 + - ( ( col0 ) ) * col1 FROM tab0
----
-1986
-485
-8066

skipif mysql # not compatible
query I rowsort label-4612
SELECT ALL 30 * col1 / col2 + - ( ( col0 ) ) * col1 FROM tab0
----
-1986
-485
-8066

query I rowsort
SELECT ALL - col2 * col1 + col1 + col1 FROM tab1
----
-1222
-1352
-550

onlyif mysql # use DIV operator for integer division
query I rowsort label-4614
SELECT DISTINCT 16 DIV 86 AS col1 FROM tab1, tab2, tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4614
SELECT DISTINCT 16 / 86 AS col1 FROM tab1, tab2, tab0 AS cor0
----
0

query I rowsort
SELECT + col0 * col2 * 55 AS col0 FROM tab1 AS cor0
----
200640
422400
8910

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4616
SELECT CAST( NULL AS DECIMAL ) FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-4616
SELECT CAST ( NULL AS REAL ) FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

onlyif mysql # use DIV operator for integer division
query I rowsort label-4617
SELECT col1 DIV + 30 FROM tab0
----
2
3
3

skipif mysql # not compatible
query I rowsort label-4617
SELECT col1 / + 30 FROM tab0
----
2
3
3

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4618
SELECT - CAST( NULL AS DECIMAL ) * - tab0.col1 / tab0.col2 col0 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4618
SELECT - CAST ( NULL AS REAL ) * - tab0.col1 / tab0.col2 col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 - col0 * 60 AS col1 FROM tab1
----
-126
-3783
-4704

query I rowsort
SELECT - col1 * + cor0.col2 - + col1 FROM tab2 AS cor0
----
-1593
-663
-868

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4621
SELECT + col1 * col1 + CAST( + 92 AS SIGNED ) FROM tab0 AS cor0
----
7488
8373
9501

skipif mysql # not compatible
query I rowsort label-4621
SELECT + col1 * col1 + CAST ( + 92 AS INTEGER ) FROM tab0 AS cor0
----
7488
8373
9501

query I rowsort
SELECT 78 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4

onlyif mysql # use DIV operator for integer division
query I rowsort label-4623
SELECT - cor0.col0 DIV 14 AS col0 FROM tab2 AS cor0
----
-5
-5
0

skipif mysql # not compatible
query I rowsort label-4623
SELECT - cor0.col0 / 14 AS col0 FROM tab2 AS cor0
----
-5
-5
0

query I rowsort
SELECT + col2 * - col2 * cor0.col2 FROM tab0 AS cor0
----
-1
-35937
-551368

query I rowsort
SELECT + - 21 * 43 AS col0 FROM tab2 AS cor0
----
-903
-903
-903

query I rowsort
SELECT - 31 + + col0 FROM tab2 AS cor0
----
-24
47
48

query I rowsort
SELECT ALL + 85 + + cor0.col2 * - 30 AS col2 FROM tab0, tab0 cor0
----
9 values hashing to ca02a66931fe6a13c4a6cb7bd9271c69

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4628
SELECT + col1 * - 98 + + col1 * col1 / CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4628
SELECT + col1 * - 98 + + col1 * col1 / CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 * + col1 - - 80 AS col1 FROM tab1
----
180
249
756

onlyif mysql # use DIV operator for integer division
query I rowsort label-4630
SELECT col1 - col0 DIV + tab0.col0 FROM tab0
----
85
90
96

skipif mysql # not compatible
query I rowsort label-4630
SELECT col1 - col0 / + tab0.col0 FROM tab0
----
85
90
96

query I rowsort
SELECT ALL + col1 - - col2 FROM tab1 cor0
----
109
67
80

query I rowsort
SELECT + 3 + col1 FROM tab0 cor0
----
100
89
94

query I rowsort
SELECT ALL col2 * 12 FROM tab1
----
1152
648
684

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4634
SELECT ALL col1 * CAST( + 63 AS SIGNED ) AS col0 FROM tab2
----
1071
1953
3717

skipif mysql # not compatible
query I rowsort label-4634
SELECT ALL col1 * CAST ( + 63 AS INTEGER ) AS col0 FROM tab2
----
1071
1953
3717

query I rowsort
SELECT col1 * - ( col2 + col1 ) AS col0 FROM tab0
----
-10234
-15743
-9506

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * 31 col0 FROM tab1 AS cor0
----
1984
2480
93

query I rowsort
SELECT + - cor0.col0 + + col2 FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT DISTINCT - col0 + 75 * 12 AS col1 FROM tab2
----
821
822
893

query I rowsort
SELECT DISTINCT - col2 + ( + col0 ) FROM tab1
----
-16
-51
7

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab0 AS cor2
----
3645 values hashing to 01eead0dd25d3467de7ffefe027bc35f

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4641
SELECT + - CAST( NULL AS SIGNED ) * + col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4641
SELECT + - CAST ( NULL AS INTEGER ) * + col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 42 * - ( col0 ) * 19 FROM tab1 AS cor0
----
-2394
-51072
-63840

onlyif mysql # use DIV operator for integer division
query I rowsort label-4643
SELECT - 86 + - col2 DIV + col1 AS col1 FROM tab2
----
-86
-86
-88

skipif mysql # not compatible
query I rowsort label-4643
SELECT - 86 + - col2 / + col1 AS col1 FROM tab2
----
-86
-86
-88

onlyif mysql # use DIV operator for integer division
query I rowsort label-4644
SELECT + 62 * + ( - col1 * + col1 ) + + col2 DIV col1 AS col2 FROM tab1 cor0
----
-10471
-41910
-6195

skipif mysql # not compatible
query I rowsort label-4644
SELECT + 62 * + ( - col1 * + col1 ) + + col2 / col1 AS col2 FROM tab1 cor0
----
-10471
-41910
-6195

query I rowsort
SELECT ALL + 15 * - cor0.col0 + + col1 AS col2 FROM tab2 AS cor0
----
-1111
-1168
-74

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4646
SELECT CAST( 7 AS SIGNED ) FROM tab2 AS cor0
----
7
7
7

skipif mysql # not compatible
query I rowsort label-4646
SELECT CAST ( 7 AS INTEGER ) FROM tab2 AS cor0
----
7
7
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-4647
SELECT DISTINCT - col1 * col0 DIV - col0 col2 FROM tab1 cor0
----
10
13
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4647
SELECT DISTINCT - col1 * col0 / - col0 col2 FROM tab1 cor0
----
10
13
26

query I rowsort
SELECT ALL + 84 * + cor0.col1 + cor0.col1 FROM tab2 AS cor0
----
1445
2635
5015

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 + col1 * + col1 - col1 col1 FROM tab0 AS cor0
----
7224
8099
9215

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4650
SELECT DISTINCT - CAST( col0 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-4650
SELECT DISTINCT - CAST ( col0 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-3
-64
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * ( - col1 ) col2 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT 17 + + 62 AS col1 FROM tab1 AS cor0
----
79
79
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 67 + col2 col2 FROM tab2 AS cor0
----
105
93
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col1 ) * col0 col1 FROM tab1 AS cor0
----
1040
640
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-4655
SELECT DISTINCT + col2 DIV 9 AS col2 FROM tab0 cor0
----
0
3
9

skipif mysql # not compatible
query I rowsort label-4655
SELECT DISTINCT + col2 / 9 AS col2 FROM tab0 cor0
----
0
3
9

query I rowsort
SELECT DISTINCT - - ( - 82 ) FROM tab2 cor0
----
-82

query I rowsort
SELECT ALL ( - col2 ) + col0 AS col0 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT DISTINCT - 23 AS col0 FROM tab1 AS cor0
----
-23

query I rowsort
SELECT DISTINCT 55 * + 83 * cor1.col2 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
118690
123255
173470

query I rowsort
SELECT DISTINCT + tab2.col2 - col0 AS col2 FROM tab2
----
-41
-52
20

query I rowsort
SELECT + col0 + - col1 * + col1 FROM tab0 AS cor0
----
-7372
-8192
-9374

query I rowsort
SELECT ALL + col2 * + col1 * + col1 AS col0 FROM tab2 cor0
----
10982
25947
90506

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4663
SELECT + col0 * - col0 * + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4663
SELECT + col0 * - col0 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 * - cor0.col2 + + 26 + + 25 FROM tab0 AS cor0
----
148
2889
7513

onlyif mysql # use DIV operator for integer division
query I rowsort label-4665
SELECT ALL + col1 DIV 12 FROM tab1 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-4665
SELECT ALL + col1 / 12 FROM tab1 AS cor0
----
0
1
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col0 + col1 * + col2 col1 FROM tab1 AS cor0
----
-3526
-5152
1395

query I rowsort
SELECT + col0 * 37 AS col1 FROM tab1 AS cor0
----
111
2368
2960

query I rowsort
SELECT DISTINCT col1 + + cor0.col1 * + cor0.col2 FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT ALL + - col1 * + col0 + col1 FROM tab1 AS cor0
----
-1027
-52
-630

skipif mysql # not compatible
query I rowsort
SELECT - + col2 * + CAST ( 55 AS REAL ) + col0 AS col2 FROM tab0 AS cor0
----
-1791
-20
-4421

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4671
SELECT - ( - cor0.col2 ) + 12 * ( cor0.col1 ) + CAST( NULL AS SIGNED ) AS col2 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-4671
SELECT - ( - cor0.col2 ) + 12 * ( cor0.col1 ) + CAST ( NULL AS INTEGER ) AS col2 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

onlyif mysql # use DIV operator for integer division
query I rowsort label-4672
SELECT - col2 * 77 + cor0.col1 DIV - col0 AS col1 FROM tab0 AS cor0
----
-2544
-6315
-79

skipif mysql # not compatible
query I rowsort label-4672
SELECT - col2 * 77 + cor0.col1 / - col0 AS col1 FROM tab0 AS cor0
----
-2544
-6315
-79

query I rowsort
SELECT ALL - + col2 + + col0 * - col1 AS col1 FROM tab2 AS cor0
----
-1381
-244
-4628

query I rowsort
SELECT ALL + cor0.col0 * 43 + 74 FROM tab0 AS cor0
----
1106
1579
3901

query I rowsort
SELECT ALL + cor0.col2 + 54 * 44 + cor0.col2 * + ( col1 ) FROM tab0 AS cor0
----
2474
5247
9920

query I rowsort
SELECT DISTINCT - cor0.col2 * - 25 FROM tab0 AS cor0
----
2050
25
825

query I rowsort
SELECT + col0 - ( col1 ) FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT ALL + col1 * 32 AS col2 FROM tab0 AS cor0
----
2752
2912
3104

onlyif mysql # use DIV operator for integer division
query I rowsort label-4679
SELECT DISTINCT + col0 DIV ( col1 ) + col2 col0 FROM tab1 AS cor0
----
102
54
63

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4679
SELECT DISTINCT + col0 / ( col1 ) + col2 col0 FROM tab1 AS cor0
----
102
54
63

query I rowsort
SELECT DISTINCT + cor0.col0 * ( col1 ) FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT ALL cor0.col1 + - col1 AS col0 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT - - col1 + + 44 FROM tab0 AS cor0
----
130
135
141

query I rowsort
SELECT ALL + col0 * col1 AS col2 FROM tab2 cor0
----
1343
217
4602

query I rowsort
SELECT DISTINCT + col2 + + col2 * - col1 FROM tab2 cor0
----
-1508
-608
-810

query I rowsort
SELECT + + 65 + col2 + cor0.col2 AS col2 FROM tab2 AS cor0
----
117
119
141

query I rowsort
SELECT ALL 59 * col2 + + 67 FROM tab1 AS cor0
----
3253
3430
5731

query I rowsort
SELECT ALL - 90 * + cor0.col2 * ( 43 ) + + col0 * + 95 FROM tab2 AS cor0
----
-103825
-139555
-93210

query I rowsort
SELECT DISTINCT - cor0.col2 - col0 * col2 FROM tab1 AS cor0
----
-216
-3705
-7776

query I rowsort
SELECT DISTINCT + col2 * col1 + col1 AS col0 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT - + 42 AS col2 FROM tab0 AS cor0
----
-42
-42
-42

query I rowsort
SELECT DISTINCT - + ( - col1 ) * ( + 34 ) + col2 FROM tab2 AS cor0
----
1081
2032
616

query I rowsort
SELECT col0 * col0 + col2 + - col1 AS col0 FROM tab0
----
1129
523
7912

query I rowsort
SELECT ALL + cor0.col1 + - col2 * - ( col0 ) FROM tab2 cor0
----
2087
220
3019

query I rowsort
SELECT ALL - + 57 * - col0 FROM tab1 AS cor0
----
171
3648
4560

query I rowsort
SELECT ALL - ( col1 ) + - col1 * col0 FROM tab1
----
-104
-1053
-650

query I rowsort
SELECT 18 AS col1 FROM tab2, tab0 cor0
----
9 values hashing to b95bafa733666df39c5d3f94760d010f

query I rowsort
SELECT ( col0 * col0 + ( + col0 ) ) FROM tab1
----
12
4160
6480

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4698
SELECT ALL CAST( NULL AS SIGNED ) - col1 * col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4698
SELECT ALL CAST ( NULL AS INTEGER ) - col1 * col0 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - ( col1 ) * + cor0.col2 + col0 FROM tab0 AS cor0
----
-2814
-62
-7373

query I rowsort
SELECT DISTINCT col1 * + 85 + col1 * - col1 FROM tab2 AS cor0
----
1156
1534
1674

query I rowsort
SELECT + + col1 + + col1 * col2 FROM tab1 AS cor0
----
1261
1430
580

onlyif mysql # use DIV operator for integer division
query I rowsort label-4702
SELECT ALL + - col1 + - col2 DIV + col1 AS col0 FROM tab0 AS cor0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-4702
SELECT ALL + - col1 + - col2 / + col1 AS col0 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT + col0 - - col1 * - cor0.col1 * - 70 AS col1 FROM tab2 AS cor0
----
20309
243748
67277

onlyif mysql # use DIV operator for integer division
query I rowsort label-4704
SELECT - col0 + cor0.col2 DIV col0 AS col1 FROM tab0 AS cor0
----
-23
-35
-89

skipif mysql # not compatible
query I rowsort label-4704
SELECT - col0 + cor0.col2 / col0 AS col1 FROM tab0 AS cor0
----
-23
-35
-89

query I rowsort
SELECT + cor0.col0 * col1 + 3 * + col2 AS col0 FROM tab1 AS cor0
----
1328
240
811

query I rowsort
SELECT col0 * col1 + col1 FROM tab2 cor0
----
1360
248
4661

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 16 + - col0 col2 FROM tab1 AS cor0
----
-19
-80
-96

query I rowsort
SELECT + col0 * col1 + 52 * 56 * - cor0.col1 AS col0 FROM tab2 AS cor0
----
-167206
-48161
-90055

query I rowsort
SELECT DISTINCT - col1 + - ( - 72 * col2 ) FROM tab2 cor0
----
1813
1913
2719

query I rowsort
SELECT DISTINCT + col2 * - ( col1 ) * + col1 FROM tab0
----
-244068
-679042
-9409

query I rowsort
SELECT ALL + col2 + + ( + 61 ) AS col1 FROM tab0 cor0
----
143
62
94

query I rowsort
SELECT 23 AS col2 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 546d49aa433406dd83ea19885588e658

onlyif mysql # use DIV operator for integer division
query I rowsort label-4713
SELECT ALL col0 * tab1.col2 DIV - 6 FROM tab1
----
-1280
-27
-608

skipif mysql # not compatible
query I rowsort label-4713
SELECT ALL col0 * tab1.col2 / - 6 FROM tab1
----
-1280
-27
-608

query I rowsort
SELECT DISTINCT cor1.col0 + - tab1.col0 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
9 values hashing to b24ecd0e424d2b21b31092e4a9b94f1c

query I rowsort
SELECT - + col2 + cor0.col2 * + 51 AS col1 FROM tab0 cor0
----
1650
4100
50

query I rowsort
SELECT - + col1 + col0 * + col2 * col2 AS col1 FROM tab0 AS cor0
----
-62
26050
598345

onlyif mysql # use DIV operator for integer division
query I rowsort label-4717
SELECT + - cor0.col2 DIV col0 AS col2 FROM tab1 AS cor0
----
-1
-18
0

skipif mysql # not compatible
query I rowsort label-4717
SELECT + - cor0.col2 / col0 AS col2 FROM tab1 AS cor0
----
-1
-18
0

query I rowsort
SELECT + - 87 AS col0 FROM tab1 AS cor0
----
-87
-87
-87

query I rowsort
SELECT + - 19 * - 7 + col2 - cor0.col0 AS col1 FROM tab0 AS cor0
----
126
142
99

onlyif mysql # use DIV operator for integer division
query I rowsort label-4720
SELECT col2 DIV + 81 AS col2 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4720
SELECT col2 / + 81 AS col2 FROM tab1 AS cor0
----
0
0
1

query I rowsort
SELECT ALL col0 * + 23 AS col2 FROM tab0
----
2047
552
805

query I rowsort
SELECT - ( - 77 ) * + col0 FROM tab0 cor0
----
1848
2695
6853

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + 9 * + cor0.col1 * 75 col0 FROM tab2 AS cor0
----
11458
20894
39766

query I rowsort
SELECT ALL + col1 + - 37 AS col2 FROM tab2 AS cor0
----
-20
-6
22

query I rowsort
SELECT ALL + ( + col2 ) * col1 AS col0 FROM tab0 AS cor0
----
2838
7462
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-4726
SELECT ALL tab1.col0 DIV 97 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4726
SELECT ALL tab1.col0 / 97 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * - ( col2 * + col0 ) col0 FROM tab1
----
-207936
-737280
-8748

query I rowsort
SELECT + 89 AS col0 FROM tab0
----
89
89
89

query I rowsort
SELECT + col1 * ( col2 ) FROM tab2 cor0
----
1534
646
837

skipif mysql # not compatible
query I rowsort
SELECT + col1 + + CAST ( 71 * cor0.col0 AS REAL ) AS col1 FROM tab1 AS cor0
----
239
4554
5693

query I rowsort
SELECT - col1 * 33 AS col2 FROM tab2 cor0
----
-1023
-1947
-561

query I rowsort
SELECT - col1 * + ( 80 ) FROM tab2 AS cor0
----
-1360
-2480
-4720

query I rowsort
SELECT ALL - 88 AS col1 FROM tab1
----
-88
-88
-88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 + ( col2 ) col1 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT col0 + + cor0.col1 * - cor0.col0 AS col0 FROM tab2 AS cor0
----
-1264
-210
-4524

query I rowsort
SELECT ALL - 15 * col2 + ( + col2 ) * - col2 FROM tab1 AS cor0
----
-10656
-3726
-4104

query I rowsort
SELECT DISTINCT - col0 * + col0 - + col2 AS col0 FROM tab1 AS cor0
----
-4153
-63
-6496

query I rowsort
SELECT ALL + cor0.col2 * - cor0.col1 FROM tab1 cor0
----
-1248
-1404
-570

query I rowsort
SELECT ALL 90 AS col0 FROM tab1
----
90
90
90

query I rowsort
SELECT DISTINCT 60 * - col1 AS col0 FROM tab0 AS cor0
----
-5160
-5460
-5820

query I rowsort
SELECT ALL - 79 + col1 * - col1 FROM tab1 AS cor0
----
-179
-248
-755

query I rowsort
SELECT ( - col2 ) + + 42 * - 22 AS col2 FROM tab1 AS cor0
----
-1020
-978
-981

query I rowsort
SELECT + col2 * col0 + col0 AS col0 FROM tab1 AS cor0
----
165
3712
7760

query I rowsort
SELECT DISTINCT - 82 + - col1 * cor0.col0 FROM tab2 AS cor0
----
-1425
-299
-4684

query I rowsort
SELECT - 92 * - 3 AS col1 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to b68f4dbe73d977ccbdea7630fec2628e

query I rowsort
SELECT col1 + + 83 + col1 FROM tab2
----
117
145
201

query I rowsort
SELECT - ( tab2.col1 ) * - col2 AS col0 FROM tab2
----
1534
646
837

query I rowsort
SELECT ALL - col0 - + col1 FROM tab0
----
-110
-132
-180

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 55 * + col0 col1 FROM tab2
----
385
4290
4345

onlyif mysql # use DIV operator for integer division
query I rowsort label-4750
SELECT DISTINCT col1 DIV - col2 + ( - col2 ) * - col2 FROM tab0
----
-96
1087
6723

skipif mysql # not compatible
query I rowsort label-4750
SELECT DISTINCT col1 / - col2 + ( - col2 ) * - col2 FROM tab0
----
-96
1087
6723

query I rowsort
SELECT - + col2 + col1 AS col0 FROM tab2 AS cor0
----
-21
33
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 29 col1 FROM tab0 AS cor0
----
-29

query I rowsort
SELECT DISTINCT + ( - col0 ) + + col0 FROM tab1 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + col1 * + col1 + col0 col1 FROM tab1
----
221
345
733

onlyif mysql # use DIV operator for integer division
query I rowsort label-4755
SELECT col1 DIV col2 + ( + col1 ) col1 FROM tab1 cor0
----
10
13
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4755
SELECT col1 / col2 + ( + col1 ) col1 FROM tab1 cor0
----
10
13
26

query I rowsort
SELECT + 81 FROM tab1, tab1 cor0
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267

query I rowsort
SELECT - col0 + ( col0 ) * - col0 AS col2 FROM tab0 AS cor0
----
-1260
-600
-8010

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * cor0.col1 col2 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT col1 * - col1 + + col0 AS col2 FROM tab0 AS cor0
----
-7372
-8192
-9374

query I rowsort
SELECT + col2 * col2 + - col1 AS col2 FROM tab0 cor0
----
-96
1003
6633

query I rowsort
SELECT col2 + - tab1.col2 + col2 FROM tab1
----
54
57
96

query I rowsort
SELECT ALL + 49 - - col1 AS col0 FROM tab0
----
135
140
146

query I rowsort
SELECT DISTINCT 16 AS col1 FROM tab1, tab1 AS cor0
----
16

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4764
SELECT CAST( cor0.col2 AS SIGNED ) * - col0 * ( - cor0.col0 ) + - col2 * col0 FROM tab1 AS cor0
----
229824
324
606720

skipif mysql # not compatible
query I rowsort label-4764
SELECT CAST ( cor0.col2 AS INTEGER ) * - col0 * ( - cor0.col0 ) + - col2 * col0 FROM tab1 AS cor0
----
229824
324
606720

query I rowsort
SELECT ALL + - 44 - + col2 AS col2 FROM tab2 AS cor0
----
-70
-71
-82

onlyif mysql # use DIV operator for integer division
query I rowsort label-4766
SELECT ALL col0 - + col2 DIV - col1 FROM tab1 AS cor0
----
5
69
87

skipif mysql # not compatible
query I rowsort label-4766
SELECT ALL col0 - + col2 / - col1 FROM tab1 AS cor0
----
5
69
87

query I rowsort
SELECT ALL - - cor0.col1 + + col0 * col0 - 94 FROM tab2 AS cor0
----
-14
6049
6164

query I rowsort
SELECT col0 * + 66 + cor0.col2 FROM tab1 AS cor0
----
252
4281
5376

query I rowsort
SELECT DISTINCT + - 95 + + col1 FROM tab0 AS cor0
----
-4
-9
2

query I rowsort
SELECT - 51 + + 64 FROM tab2 AS cor0
----
13
13
13

onlyif mysql # use DIV operator for integer division
query I rowsort label-4771
SELECT + cor0.col2 - 21 DIV col1 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-4771
SELECT + cor0.col2 - 21 / col1 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT DISTINCT - 36 + col1 AS col0 FROM tab1 AS cor0
----
-10
-23
-26

onlyif mysql # use DIV operator for integer division
query I rowsort label-4773
SELECT - 58 DIV col1 FROM tab2
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-4773
SELECT - 58 / col1 FROM tab2
----
-1
-3
0

query I rowsort
SELECT ( col0 ) + - col0 FROM tab1
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4775
SELECT + - CAST( + col2 AS SIGNED ) * col0 AS col1 FROM tab0 AS cor0
----
-35
-7298
-792

skipif mysql # not compatible
query I rowsort label-4775
SELECT + - CAST ( + col2 AS INTEGER ) * col0 AS col1 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT col2 * + cor0.col0 * + col2 FROM tab1 cor0
----
207936
737280
8748

query I rowsort
SELECT ALL + cor0.col2 * 40 * - cor0.col0 AS col1 FROM tab1 AS cor0
----
-145920
-307200
-6480

query I rowsort
SELECT DISTINCT - col1 + + 28 FROM tab0 AS cor0
----
-58
-63
-69

query I rowsort
SELECT DISTINCT - + 74 FROM tab2 cor0
----
-74

query I rowsort
SELECT ( + 88 ) * col2 AS col1 FROM tab1 AS cor0
----
4752
5016
8448

query I rowsort
SELECT ALL - ( cor0.col1 ) AS col0 FROM tab0 cor0
----
-86
-91
-97

query I rowsort
SELECT - 16 * - ( + cor0.col2 + ( + col2 ) ) * col2 FROM tab0 AS cor0
----
215168
32
34848

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 col0 + - col2 * + col2 AS col2 FROM tab1 cor0
----
-2913
-3185
-9136

query I rowsort
SELECT DISTINCT 93 * col1 FROM tab0 AS cor0
----
7998
8463
9021

query I rowsort
SELECT - col0 + col2 - ( - cor0.col1 * - col0 ) AS col1 FROM tab0 cor0
----
-2055
-3429
-8106

query I rowsort
SELECT + cor0.col0 * cor0.col0 - col1 * 66 FROM tab0 AS cor0
----
-5100
-5177
1915

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 + col1 col1 FROM tab2 cor0
----
137
38
96

query I rowsort
SELECT 37 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to c023509f63faa044d654943e6df55ca2

query I rowsort
SELECT + 49 - col1 * col1 FROM tab0 AS cor0
----
-7347
-8232
-9360

query I rowsort
SELECT - col2 * 16 + col1 FROM tab0 AS cor0
----
-1221
-442
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + col1 - 79 col0 FROM tab1 AS cor0
----
-1
561
961

query I rowsort
SELECT DISTINCT col2 * col2 * - ( col0 ) AS col2 FROM tab2 AS cor0
----
-114076
-5103
-52728

query I rowsort
SELECT DISTINCT cor0.col0 * + cor0.col2 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT ALL - col1 + 92 FROM tab0 AS cor0
----
-5
1
6

query I rowsort
SELECT ALL + + col0 + + ( - 67 ) * cor0.col2 AS col2 FROM tab1 AS cor0
----
-3615
-3755
-6352

query I rowsort
SELECT DISTINCT - col1 + + 9 * cor0.col2 AS col2 FROM tab2 cor0
----
175
212
325

query I rowsort
SELECT ALL - 15 + 68 + + cor0.col0 AS col0 FROM tab1 AS cor0
----
117
133
56

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4799
SELECT col2 * CAST( col0 * + col1 AS SIGNED ) - + tab2.col0 FROM tab2
----
119574
50955
5852

skipif mysql # not compatible
query I rowsort label-4799
SELECT col2 * CAST ( col0 * + col1 AS INTEGER ) - + tab2.col0 FROM tab2
----
119574
50955
5852

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4800
SELECT col2 + - CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4800
SELECT col2 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + 34 FROM tab2 cor0
----
34
34
34

query I rowsort
SELECT ALL - - col2 * - 57 AS col2 FROM tab1 AS cor0
----
-3078
-3249
-5472

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4803
SELECT ALL - col0 * col0 + - col1 * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4803
SELECT ALL - col0 * col0 + - col1 * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4804
SELECT DISTINCT + 23 + col0 DIV col0 AS col0 FROM tab2 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-4804
SELECT DISTINCT + 23 + col0 / col0 AS col0 FROM tab2 AS cor0
----
24

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4805
SELECT CAST( NULL AS DECIMAL ) / - 86 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4805
SELECT CAST ( NULL AS REAL ) / - 86 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - tab1.col2 * - 31 FROM tab1
----
1674
1767
2976

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * col2 col2 FROM tab1
----
1248
1404
570

query I rowsort
SELECT + col1 + 92 AS col1 FROM tab0
----
178
183
189

query I rowsort
SELECT DISTINCT + tab0.col2 * - 14 FROM tab0, tab1, tab0 cor0
----
-1148
-14
-462

query I rowsort
SELECT + col2 * - cor0.col0 * - col2 AS col0 FROM tab1 AS cor0
----
207936
737280
8748

query I rowsort
SELECT 56 + - 28 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97

query I rowsort
SELECT DISTINCT ( cor0.col2 ) FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
26
27
38

query I rowsort
SELECT DISTINCT + tab2.col1 FROM tab2, tab1, tab2 AS cor0
----
17
31
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-4814
SELECT tab1.col0 DIV - 57 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-4814
SELECT tab1.col0 / - 57 FROM tab1
----
-1
-1
0

query I rowsort
SELECT DISTINCT cor0.col2 + col0 + + col1 * cor0.col1 AS col1 FROM tab1 cor0
----
221
345
733

query I rowsort
SELECT - tab1.col1 * 26 FROM tab1
----
-260
-338
-676

query I rowsort
SELECT col1 * 11 * - col2 AS col2 FROM tab1
----
-13728
-15444
-6270

query I rowsort
SELECT + cor0.col0 + + 97 FROM tab2 AS cor0
----
104
175
176

query I rowsort
SELECT + col2 * 45 + - ( - cor0.col1 ) * - col0 FROM tab1 AS cor0
----
1925
2352
3280

query I rowsort
SELECT DISTINCT col1 * + ( + 37 ) + cor0.col0 + col0 FROM tab2 AS cor0
----
1161
2339
787

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 34 * - 90 col1 FROM tab2
----
-3060
-3060
-3060

query I rowsort
SELECT DISTINCT + 38 * - 10 AS col1 FROM tab0, tab2, tab1 cor0
----
-380

query I rowsort
SELECT DISTINCT + 70 + cor0.col1 * ( 29 ) AS col2 FROM tab2, tab2 cor0
----
1781
563
969

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4824
SELECT CAST( NULL AS SIGNED ) * tab1.col1 + col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4824
SELECT CAST ( NULL AS INTEGER ) * tab1.col1 + col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ( col0 ) * - col2 + 96 + 9 * + col0 * - col2 FROM tab2 AS cor0
----
-1794
-20184
-29924

query I rowsort
SELECT + ( - col0 ) * col2 + - col0 FROM tab0 cor0
----
-70
-7387
-816

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab2.col1 * - col0 * + col0 col2 FROM tab2
----
-106097
-1519
-358956

query I rowsort
SELECT ALL - col0 * ( - col1 ) - - ( col2 ) FROM tab1 AS cor0
----
1136
132
697

query I rowsort
SELECT DISTINCT + - 11 * col0 FROM tab2 AS cor0
----
-77
-858
-869

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 * col0 col2 FROM tab0 AS cor0
----
1225
576
7921

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col0 ) * col1 * - col0 col0 FROM tab1 AS cor0
----
234
40960
83200

query I rowsort
SELECT ALL - + 75 + + cor0.col1 FROM tab1 AS cor0
----
-49
-62
-65

query I rowsort
SELECT DISTINCT col1 * cor0.col2 * + 83 - col2 * col1 * 25 FROM tab1 AS cor0
----
33060
72384
81432

query I rowsort
SELECT ALL + - 88 AS col0 FROM tab0 AS cor0
----
-88
-88
-88

query I rowsort
SELECT - col0 * - col0 * - col0 AS col1 FROM tab0 AS cor0
----
-13824
-42875
-704969

query I rowsort
SELECT + cor0.col2 * col2 AS col0 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT - 3 + col0 AS col2 FROM tab0
----
21
32
86

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4838
SELECT DISTINCT - col1 * col2 * CAST( NULL AS SIGNED ) + - col2 + col0 * + 19 AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4838
SELECT DISTINCT - col1 * col2 * CAST ( NULL AS INTEGER ) + - col2 + col0 * + 19 AS col0 FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab1.col2 * tab1.col0 col0 FROM tab1
----
-162
-3648
-7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-4840
SELECT + 37 DIV col2 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-4840
SELECT + 37 / col2 col1 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4841
SELECT - col0 DIV + cor0.col2 FROM tab1 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4841
SELECT - col0 / + cor0.col2 FROM tab1 cor0
----
-1
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 * + col1 col1 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT ALL - col1 * 61 AS col2 FROM tab1 AS cor0
----
-1586
-610
-793

onlyif mysql # use DIV operator for integer division
query I rowsort label-4844
SELECT DISTINCT - col1 DIV - ( ( - col2 ) ) AS col1 FROM tab0 AS cor0
----
-1
-2
-97

skipif mysql # not compatible
query I rowsort label-4844
SELECT DISTINCT - col1 / - ( ( - col2 ) ) AS col1 FROM tab0 AS cor0
----
-1
-2
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-4845
SELECT + cor0.col1 DIV 24 col0 FROM tab1 AS cor0
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4845
SELECT + cor0.col1 / 24 col0 FROM tab1 AS cor0
----
0
0
1

query I rowsort
SELECT col2 + - ( + col1 ) * col0 AS col2 FROM tab0 AS cor0
----
-2031
-3394
-8017

query I rowsort
SELECT 33 FROM tab0, tab2 AS cor0, tab2 cor1
----
27 values hashing to 76da8bc7cae18ecf856438f872430c80

query I rowsort
SELECT ALL - 28 FROM tab2
----
-28
-28
-28

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4849
SELECT CAST( - col0 AS SIGNED ) * - col1 + - 16 FROM tab2 AS cor0
----
1327
201
4586

skipif mysql # not compatible
query I rowsort label-4849
SELECT CAST ( - col0 AS INTEGER ) * - col1 + - 16 FROM tab2 AS cor0
----
1327
201
4586

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 35 col1 FROM tab1 AS cor0
----
35
35
35

onlyif mysql # use DIV operator for integer division
query I rowsort label-4851
SELECT col1 + - col0 DIV - col0 FROM tab0 cor0
----
87
92
98

skipif mysql # not compatible
query I rowsort label-4851
SELECT col1 + - col0 / - col0 FROM tab0 cor0
----
87
92
98

query I rowsort
SELECT cor0.col1 + - 20 FROM tab0 cor0
----
66
71
77

onlyif mysql # use DIV operator for integer division
query I rowsort label-4853
SELECT ALL col0 DIV - col0 + col2 FROM tab2
----
25
26
37

skipif mysql # not compatible
query I rowsort label-4853
SELECT ALL col0 / - col0 + col2 FROM tab2
----
25
26
37

query I rowsort
SELECT + tab2.col0 * + tab2.col1 FROM tab2
----
1343
217
4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-4855
SELECT col1 * tab1.col2 DIV tab1.col0 AS col1 FROM tab1
----
15
468
8

skipif mysql # not compatible
query I rowsort label-4855
SELECT col1 * tab1.col2 / tab1.col0 AS col1 FROM tab1
----
15
468
8

query I rowsort
SELECT - - 11 * + col1 FROM tab2 AS cor0
----
187
341
649

query I rowsort
SELECT - col1 + - col0 + cor0.col2 AS col0 FROM tab0 AS cor0
----
-131
-77
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * 14 * - 38 col0 FROM tab1
----
-13832
-5320
-6916

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 22 col2 FROM tab2, tab0 AS cor0 CROSS JOIN tab1, tab0, tab1 AS cor1
----
243 values hashing to f10165a092a8197ed57ae9ede3983477

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab2 AS cor0, tab0 cor1, tab1, tab1 AS cor2
----
3645 values hashing to 76903cfa3a27727fd541d9dcdf362a4c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 69 + - col0 col1 FROM tab1 AS cor0
----
-11
5
66

query I rowsort
SELECT DISTINCT col0 + cor0.col0 AS col2 FROM tab2 AS cor0
----
14
156
158

query I rowsort
SELECT ALL - + 1 AS col0 FROM tab2 AS cor0
----
-1
-1
-1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4864
SELECT + CAST( col1 AS SIGNED ) col1 FROM tab2 AS cor0
----
17
31
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4864
SELECT + CAST ( col1 AS INTEGER ) col1 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT DISTINCT + 81 AS col1 FROM tab1, tab1 AS cor0
----
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-4866
SELECT - - col2 + col2 DIV - ( col0 + - cor0.col2 ) FROM tab1 AS cor0
----
102
49
55

skipif mysql # not compatible
query I rowsort label-4866
SELECT - - col2 + col2 / - ( col0 + - cor0.col2 ) FROM tab1 AS cor0
----
102
49
55

query I rowsort
SELECT DISTINCT + cor0.col1 * 61 FROM tab0 AS cor0
----
5246
5551
5917

query I rowsort
SELECT DISTINCT + cor0.col0 * + col1 + - col1 FROM tab0 AS cor0
----
1978
3298
8008

query I rowsort
SELECT ALL col1 + 3 AS col0 FROM tab1 AS cor0
----
13
16
29

query I rowsort
SELECT - + col1 * 0 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + - cor0.col2 * + cor0.col0 FROM tab2 cor0
----
-189
-2028
-3002

query I rowsort
SELECT DISTINCT + - col0 + + ( + col1 ) AS col1 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT + - ( + col0 ) + + col0 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - col2 * ( col0 ) * + col0 FROM tab1 AS cor0
----
-233472
-486
-614400

query I rowsort
SELECT ALL - - col0 * - col0 FROM tab0 cor0
----
-1225
-576
-7921

onlyif mysql # use DIV operator for integer division
query I rowsort label-4876
SELECT + col0 DIV 77 AS col1 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4876
SELECT + col0 / 77 AS col1 FROM tab1
----
0
0
1

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 ) * + col2 + col0 * + col2 col2 FROM tab1 AS cor0
----
-1242
3078
6432

query I rowsort
SELECT DISTINCT col1 * - 54 FROM tab0 AS cor0
----
-4644
-4914
-5238

query I rowsort
SELECT DISTINCT + + col0 * + ( col2 ) FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT cor0.col1 * - col0 + - cor0.col2 * ( col1 ) + col2 FROM tab2 cor0
----
-1027
-1951
-6110

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4882
SELECT - CAST( - cor0.col0 AS SIGNED ) * + col1 FROM tab1 AS cor0
----
1040
640
78

skipif mysql # not compatible
query I rowsort label-4882
SELECT - CAST ( - cor0.col0 AS INTEGER ) * + col1 FROM tab1 AS cor0
----
1040
640
78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4883
SELECT DISTINCT - CAST( NULL AS SIGNED ) * col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4883
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + col0 - + 40 FROM tab2
----
-33
38
39

query I rowsort
SELECT col0 + 64 + + col1 FROM tab1
----
138
157
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-4886
SELECT ALL col2 DIV + ( - tab0.col2 ) - - col1 AS col2 FROM tab0
----
85
90
96

skipif mysql # not compatible
query I rowsort label-4886
SELECT ALL col2 / + ( - tab0.col2 ) - - col1 AS col2 FROM tab0
----
85
90
96

query I rowsort
SELECT + col1 + 44 * - tab2.col2 AS col2 FROM tab2
----
-1085
-1157
-1655

onlyif mysql # use DIV operator for integer division
query I rowsort label-4888
SELECT tab1.col2 DIV col0 + + 25 FROM tab1
----
25
26
43

skipif mysql # not compatible
query I rowsort label-4888
SELECT tab1.col2 / col0 + + 25 FROM tab1
----
25
26
43

query I rowsort
SELECT ALL - col1 + - col0 + - col2 * - 54 FROM tab0 cor0
----
-78
1672
4248

query I rowsort
SELECT DISTINCT - - 46 + - col1 AS col2 FROM tab2 AS cor0
----
-13
15
29

query I rowsort
SELECT - + ( + col2 ) + 3 * - cor0.col2 AS col2 FROM tab2 AS cor0
----
-104
-108
-152

query I rowsort
SELECT DISTINCT + cor0.col0 + + col0 AS col1 FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT DISTINCT + 68 * - col2 FROM tab0 AS cor0
----
-2244
-5576
-68

query I rowsort
SELECT ALL col0 * col1 + ( col1 ) * + col1 AS col2 FROM tab1 cor0
----
1209
740
754

query I rowsort
SELECT ALL - + 37 + + col0 FROM tab2 AS cor0
----
-30
41
42

onlyif mysql # use DIV operator for integer division
query I rowsort label-4896
SELECT ALL - + col0 DIV - col2 + col0 FROM tab1 AS cor0
----
3
65
80

skipif mysql # not compatible
query I rowsort label-4896
SELECT ALL - + col0 / - col2 + col0 FROM tab1 AS cor0
----
3
65
80

query I rowsort
SELECT ( tab0.col2 * 20 ) FROM tab0, tab0 AS cor0
----
9 values hashing to 61750a266aac002ba6895f3cb3ead128

onlyif mysql # use DIV operator for integer division
query I rowsort label-4898
SELECT - ( + col1 ) DIV + col1 col2 FROM tab0 AS cor0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4898
SELECT - ( + col1 ) / + col1 col2 FROM tab0 AS cor0
----
-1
-1
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-4899
SELECT 69 DIV - col1 - col0 FROM tab2
----
-79
-83
-9

skipif mysql # not compatible
query I rowsort label-4899
SELECT 69 / - col1 - col0 FROM tab2
----
-79
-83
-9

query I rowsort
SELECT + col1 + col0 * ( tab0.col2 ) FROM tab0
----
132
7389
878

onlyif mysql # use DIV operator for integer division
query I rowsort label-4901
SELECT - col2 + - col2 DIV col1 col2 FROM tab1
----
-103
-56
-62

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4901
SELECT - col2 + - col2 / col1 col2 FROM tab1
----
-103
-56
-62

query I rowsort
SELECT - col2 * - col0 + ( + col1 ) FROM tab1
----
188
3658
7693

onlyif mysql # use DIV operator for integer division
query I rowsort label-4903
SELECT - col0 + - ( col1 + + col1 ) DIV tab2.col1 FROM tab2
----
-80
-81
-9

skipif mysql # not compatible
query I rowsort label-4903
SELECT - col0 + - ( col1 + + col1 ) / tab2.col1 FROM tab2
----
-80
-81
-9

onlyif mysql # use DIV operator for integer division
query I rowsort label-4904
SELECT + cor0.col0 + col1 DIV col1 AS col1 FROM tab0 AS cor0
----
25
36
90

skipif mysql # not compatible
query I rowsort label-4904
SELECT + cor0.col0 + col1 / col1 AS col1 FROM tab0 AS cor0
----
25
36
90

query I rowsort
SELECT DISTINCT - col2 + 72 + - col2 FROM tab0 AS cor0
----
-92
6
70

query I rowsort
SELECT ALL col1 * + 9 FROM tab0 AS cor0
----
774
819
873

query I rowsort
SELECT DISTINCT - col2 * col2 + col0 AS col2 FROM tab2 AS cor0
----
-1365
-598
-722

query I rowsort
SELECT ALL + cor0.col2 + - 94 AS col2 FROM tab0 AS cor0
----
-12
-61
-93

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4909
SELECT - col1 * + CAST( + 84 AS SIGNED ) AS col0 FROM tab2 cor0
----
-1428
-2604
-4956

skipif mysql # not compatible
query I rowsort label-4909
SELECT - col1 * + CAST ( + 84 AS INTEGER ) AS col0 FROM tab2 cor0
----
-1428
-2604
-4956

query I rowsort
SELECT ALL 18 AS col2 FROM tab1, tab2 cor0
----
9 values hashing to b95bafa733666df39c5d3f94760d010f

query I rowsort
SELECT DISTINCT + tab0.col0 + 76 FROM tab0
----
100
111
165

query I rowsort
SELECT DISTINCT 11 FROM tab2, tab0 AS cor0
----
11

query I rowsort
SELECT DISTINCT - col2 + - cor0.col2 + col1 AS col2 FROM tab0 AS cor0
----
-73
20
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 64 * col0 + - col1 col2 FROM tab1 AS cor0
----
166
4086
5107

onlyif mysql # use DIV operator for integer division
query I rowsort label-4915
SELECT ALL - col2 * + 91 - col2 DIV 96 AS col1 FROM tab1 cor0
----
-4914
-5187
-8737

skipif mysql # not compatible
query I rowsort label-4915
SELECT ALL - col2 * + 91 - col2 / 96 AS col1 FROM tab1 cor0
----
-4914
-5187
-8737

query I rowsort
SELECT 16 + + 1 FROM tab2 cor0
----
17
17
17

query I rowsort
SELECT ALL + 5 * - col2 AS col0 FROM tab1 AS cor0
----
-270
-285
-480

onlyif mysql # use DIV operator for integer division
query I rowsort label-4918
SELECT ALL col0 * col0 + col1 DIV col2 FROM tab1
----
4096
6400
9

skipif mysql # not compatible
query I rowsort label-4918
SELECT ALL col0 * col0 + col1 / col2 FROM tab1
----
4096
6400
9

query I rowsort
SELECT DISTINCT + - ( cor0.col0 ) * + col2 FROM tab0 AS cor0
----
-35
-7298
-792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab1.col0 col1 FROM tab1, tab2 AS cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870

query I rowsort
SELECT DISTINCT + + 15 * + col0 AS col0 FROM tab2 AS cor0
----
105
1170
1185

query I rowsort
SELECT - col1 * - col0 + - col2 AS col1 FROM tab0 AS cor0
----
2031
3394
8017

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4923
SELECT DISTINCT + 28 * + col0 + CAST( NULL AS DECIMAL ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4923
SELECT DISTINCT + 28 * + col0 + CAST ( NULL AS REAL ) AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - 3 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 95b6b9b4aae5cc2d9545db9f8940b2dc

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4925
SELECT - CAST( NULL AS SIGNED ) * + 49 * cor1.col1 AS col2 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-4925
SELECT - CAST ( NULL AS INTEGER ) * + 49 * cor1.col1 AS col2 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

onlyif mysql # use DIV operator for integer division
query I rowsort label-4926
SELECT col2 + cor0.col2 DIV cor0.col1 AS col1 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-4926
SELECT col2 + cor0.col2 / cor0.col1 AS col1 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT DISTINCT cor0.col1 * - 68 FROM tab0 AS cor0
----
-5848
-6188
-6596

query I rowsort
SELECT + 22 + col1 * col0 FROM tab1 AS cor0
----
100
1062
662

query I rowsort
SELECT ( - 39 ) FROM tab0 cor0
----
-39
-39
-39

onlyif mysql # use DIV operator for integer division
query I rowsort label-4930
SELECT 69 DIV col0 FROM tab1 AS cor0
----
0
1
23

skipif mysql # not compatible
query I rowsort label-4930
SELECT 69 / col0 FROM tab1 AS cor0
----
0
1
23

onlyif mysql # use DIV operator for integer division
query I rowsort label-4931
SELECT + cor0.col1 DIV 6 + col1 * 35 FROM tab1 AS cor0
----
351
457
914

skipif mysql # not compatible
query I rowsort label-4931
SELECT + cor0.col1 / 6 + col1 * 35 FROM tab1 AS cor0
----
351
457
914

query I rowsort
SELECT ALL 22 * col2 FROM tab0
----
1804
22
726

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 49 col1 FROM tab0
----
49
49
49

query I rowsort
SELECT - + col2 * cor0.col0 + ( - col2 ) AS col0 FROM tab0 AS cor0
----
-36
-7380
-825

query I rowsort
SELECT - + col2 + col2 AS col0 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT ALL - 97 + col1 * + ( col1 ) FROM tab2
----
192
3384
864

onlyif mysql # use DIV operator for integer division
query I rowsort label-4937
SELECT DISTINCT + col0 DIV col0 AS col0 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-4937
SELECT DISTINCT + col0 / col0 AS col0 FROM tab1
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 18 col0 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 903ac227935c1532300db45a8537c595

onlyif mysql # use DIV operator for integer division
query I rowsort label-4939
SELECT - col1 DIV 21 + - col0 AS col2 FROM tab0
----
-28
-39
-93

skipif mysql # not compatible
query I rowsort label-4939
SELECT - col1 / 21 + - col0 AS col2 FROM tab0
----
-28
-39
-93

query I rowsort
SELECT - cor0.col2 + + ( cor0.col2 ) FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - 10 FROM tab1, tab2 AS cor0
----
-10

query I rowsort
SELECT DISTINCT col1 + - 71 AS col1 FROM tab2
----
-12
-40
-54

query I rowsort
SELECT - + cor0.col1 * - col2 AS col1 FROM tab2 cor0
----
1534
646
837

query I rowsort
SELECT - 67 + col2 AS col1 FROM tab2 AS cor0
----
-29
-40
-41

query I rowsort
SELECT DISTINCT - col2 + tab1.col1 * + col2 FROM tab1
----
1152
1350
513

query I rowsort
SELECT + cor0.col2 * col1 + cor0.col2 AS col2 FROM tab0 AS cor0
----
2871
7544
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4947
SELECT ALL CAST( NULL AS SIGNED ) + + col0 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4947
SELECT ALL CAST ( NULL AS INTEGER ) + + col0 AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 * - col2 + col1 FROM tab0
----
-1003
-6633
96

query I rowsort
SELECT ( col1 * + tab1.col1 ) - + tab1.col2 * + col0 AS col0 FROM tab1
----
-3548
-7511
514

query I rowsort
SELECT - 10 * - 89 + col1 FROM tab2 AS cor0
----
907
921
949

query I rowsort
SELECT ALL - col1 + col1 AS col0 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT - cor0.col1 + 21 FROM tab2 AS cor0
----
-10
-38
4

query I rowsort
SELECT - 97 AS col2 FROM tab1
----
-97
-97
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-4954
SELECT DISTINCT 87 DIV + col2 AS col1 FROM tab0
----
1
2
87

skipif mysql # not compatible
query I rowsort label-4954
SELECT DISTINCT 87 / + col2 AS col1 FROM tab0
----
1
2
87

onlyif mysql # use DIV operator for integer division
query I rowsort label-4955
SELECT col2 DIV tab1.col1 AS col2 FROM tab1
----
2
5
7

skipif mysql # not compatible
query I rowsort label-4955
SELECT col2 / tab1.col1 AS col2 FROM tab1
----
2
5
7

query I rowsort
SELECT DISTINCT 46 * col0 AS col0 FROM tab1
----
138
2944
3680

skipif mysql # not compatible
query I rowsort
SELECT col2 - + CAST ( col1 AS REAL ) AS col0 FROM tab2 cor0
----
-33
-4
21

query I rowsort
SELECT + - col1 * 36 + col1 FROM tab0 AS cor0
----
-3010
-3185
-3395

onlyif mysql # use DIV operator for integer division
query I rowsort label-4959
SELECT - col0 DIV + 72 + + 49 DIV - cor0.col1 AS col2 FROM tab0 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4959
SELECT - col0 / + 72 + + 49 / - cor0.col1 AS col2 FROM tab0 cor0
----
-1
0
0

query I rowsort
SELECT + col1 * cor0.col0 - + 19 AS col2 FROM tab2 AS cor0
----
1324
198
4583

query I rowsort
SELECT - cor0.col1 * - 58 FROM tab1 AS cor0
----
1508
580
754

query I rowsort
SELECT + col1 * + ( col1 * col1 + col0 ) AS col2 FROM tab2 cor0
----
209981
30008
6256

query I rowsort
SELECT - + col0 * - col0 - col0 * col2 AS col2 FROM tab0 AS cor0
----
-216
1190
623

onlyif mysql # use DIV operator for integer division
query I rowsort label-4964
SELECT + col1 + + col1 * col2 DIV col0 col1 FROM tab1
----
18
28
494

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4964
SELECT + col1 + + col1 * col2 / col0 col1 FROM tab1
----
18
28
494

query I rowsort
SELECT + ( + col2 ) * 23 AS col1 FROM tab1
----
1242
1311
2208

query I rowsort
SELECT + 46 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 2f97924b57b73102233df7c9ce8ad602

query I rowsort
SELECT ALL col1 * + col2 * + col0 AS col0 FROM tab2
----
119652
51034
5859

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4968
SELECT ALL + + col2 * CAST( - col2 AS SIGNED ) FROM tab2 AS cor0
----
-1444
-676
-729

skipif mysql # not compatible
query I rowsort label-4968
SELECT ALL + + col2 * CAST ( - col2 AS INTEGER ) FROM tab2 AS cor0
----
-1444
-676
-729

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + - 37 col1 FROM tab2 AS cor0
----
-30
41
42

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4970
SELECT ALL col0 * + CAST( NULL AS SIGNED ) * col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4970
SELECT ALL col0 * + CAST ( NULL AS INTEGER ) * col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4971
SELECT ALL - + col0 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4971
SELECT ALL - + col0 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4972
SELECT + 88 DIV + 83 + + tab2.col1 AS col1 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to cae4c504d9c5e398c8bc76ed7b60ac96

skipif mysql # not compatible
query I rowsort label-4972
SELECT + 88 / + 83 + + tab2.col1 AS col1 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to cae4c504d9c5e398c8bc76ed7b60ac96

query I rowsort
SELECT tab0.col2 - - col2 AS col0 FROM tab0
----
164
2
66

query I rowsort
SELECT + 29 FROM tab2, tab1, tab2 cor0
----
27 values hashing to 4c56285992bcb76e1aac22e6d23d1318

query I rowsort
SELECT DISTINCT + cor0.col2 AS col1 FROM tab1, tab2, tab1 cor0
----
54
57
96

query I rowsort
SELECT - cor0.col0 * + col0 * + 17 AS col0 FROM tab1 AS cor0
----
-108800
-153
-69632

query I rowsort
SELECT cor0.col1 * 2 FROM tab1 AS cor0
----
20
26
52

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4978
SELECT DISTINCT - col2 / CAST( NULL AS SIGNED ) AS col1 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4978
SELECT DISTINCT - col2 / CAST ( NULL AS INTEGER ) AS col1 FROM tab1 cor0
----
NULL

query I rowsort
SELECT - col0 + ( ( - col2 ) ) AS col0 FROM tab0 cor0
----
-171
-36
-57

query I rowsort
SELECT DISTINCT + 63 AS col1 FROM tab1
----
63

query I rowsort
SELECT - + col1 * + col1 * + 59 FROM tab2 AS cor0
----
-17051
-205379
-56699

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + col2 * + col2 col2 FROM tab1 AS cor0
----
2942
3259
9229

query I rowsort
SELECT ALL + - col2 * - 89 - col0 AS col0 FROM tab0 AS cor0
----
2913
54
7209

query I rowsort
SELECT col2 - + col0 * + col1 FROM tab2
----
-1305
-190
-4576

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT IN ( col1 / - col1 )
----

query I rowsort
SELECT col1 AS col1 FROM tab1 WHERE NOT NULL >= NULL
----

query I rowsort
SELECT - col1 * - col1 + col2 AS col1 FROM tab2
----
327
3507
988

query I rowsort
SELECT ALL col2 AS col2 FROM tab1 WHERE NOT col1 * - col2 + - col2 + - col1 * col0 NOT IN ( col0 + + col2 * + col1 )
----

query I rowsort
SELECT - tab1.col1 + - col1 + + col0 * col2 FROM tab1
----
110
3628
7654

query I rowsort
SELECT col2 AS col1 FROM tab0 WHERE col0 * + col1 IN ( col2 )
----

query I rowsort
SELECT ALL + col0 FROM tab1 WHERE NOT + col1 / - col0 IN ( col2 * tab1.col1 )
----
3
64
80

query III rowsort
SELECT ALL * FROM tab2 WHERE ( col2 ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT col0 * col0 + + col2 * + tab1.col2 FROM tab1
----
15616
2925
7345

query I rowsort
SELECT tab2.col2 AS col1 FROM tab2 WHERE ( NULL ) > NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-4995
SELECT ALL + col2 * col2 DIV + col1 AS col2 FROM tab1 AS cor0
----
112
324
708

skipif mysql # not compatible
query I rowsort label-4995
SELECT ALL + col2 * col2 / + col1 AS col2 FROM tab1 AS cor0
----
112
324
708

query I rowsort
SELECT col1 + - col0 * - tab0.col0 FROM tab0
----
1322
662
8012

query I rowsort
SELECT - col2 * + col2 + + col1 * - col1 AS col0 FROM tab1
----
-3349
-3592
-9385

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) BETWEEN NULL AND col2 / - col0
----

query I rowsort
SELECT DISTINCT col2 + + col0 * col2 FROM tab1
----
216
3705
7776

query I rowsort
SELECT col1 + col0 * cor0.col1 AS col0 FROM tab1 AS cor0
----
104
1053
650

query I rowsort
SELECT ALL + - col2 + cor0.col1 * + 73 AS col0 FROM tab1 AS cor0
----
1844
673
853

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col0 * cor0.col0 col0 FROM tab0 AS cor0
----
-13824
-42875
-704969

query I rowsort
SELECT DISTINCT - - cor0.col0 * cor0.col1 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT - col0 * - col0 * - tab1.col1 FROM tab1
----
-234
-40960
-83200

query I rowsort
SELECT col0 * + col2 * col1 FROM tab0 WHERE NOT NULL > ( NULL )
----

query I rowsort
SELECT + col1 AS col2 FROM tab0 WHERE col0 + col2 * + col1 >= col0 * col2 * - col2
----
86
91
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * tab2.col0 col2 FROM tab2
----
1343
217
4602

query I rowsort
SELECT ALL + col1 * col1 * - col0 FROM tab0
----
-177504
-329315
-737009

query I rowsort
SELECT DISTINCT - col0 * col1 * + col2 AS col0 FROM tab1
----
-36480
-4212
-99840

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col2 FROM tab1 WHERE NOT NULL >= NULL
----

query I rowsort
SELECT + col1 + + col1 + col2 * tab1.col1 AS col2 FROM tab1
----
1274
1456
590

query I rowsort
SELECT DISTINCT col0 * col0 / - col1 - - col2 FROM tab1 WHERE NULL IN ( col1 )
----

query I rowsort
SELECT DISTINCT - + 59 * - col0 + - cor0.col1 * + col2 FROM tab0 cor0
----
-1422
-2211
1968

query I rowsort
SELECT DISTINCT - ( col2 ) * 33 + - col1 FROM tab0 AS cor0
----
-1175
-130
-2797

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + cor0.col0 + + col0 col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL - 91 * col1 AS col0 FROM tab2 AS cor0
----
-1547
-2821
-5369

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col0 ) + col2 col0 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT col1 * + col1 + - ( col0 ) FROM tab1 AS cor0
----
36
673
89

query I rowsort
SELECT DISTINCT - + col0 * col0 + col2 FROM tab2 cor0
----
-22
-6058
-6203

query I rowsort
SELECT ALL + col0 * col0 + ( - col1 ) * col2 FROM tab0 AS cor0
----
-2262
1128
459

query I rowsort
SELECT DISTINCT - cor0.col1 * - col2 AS col0 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT ALL ( + col0 ) * + 40 AS col1 FROM tab2 AS cor0
----
280
3120
3160

onlyif mysql # use DIV operator for integer division
query I rowsort label-5023
SELECT DISTINCT + ( + col1 ) DIV 36 + col2 * - col2 AS col0 FROM tab2 AS cor0
----
-1444
-675
-729

skipif mysql # not compatible
query I rowsort label-5023
SELECT DISTINCT + ( + col1 ) / 36 + col2 * - col2 AS col0 FROM tab2 AS cor0
----
-1444
-675
-729

query I rowsort
SELECT + 29 * + col1 AS col0 FROM tab1
----
290
377
754

query I rowsort
SELECT ALL - col0 + col1 AS col0 FROM tab0
----
2
62
62

query I rowsort
SELECT - col0 * + 62 + col0 FROM tab2
----
-427
-4758
-4819

query I rowsort
SELECT ALL ( - col2 ) + col0 FROM tab1
----
-16
-51
7

query I rowsort
SELECT ALL + 37 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to a10b03e72860b949bdff53827700a9a8

query I rowsort
SELECT ALL col0 * + col1 * - col2 AS col0 FROM tab2
----
-119652
-51034
-5859

onlyif mysql # use DIV operator for integer division
query I rowsort label-5030
SELECT ALL + + col2 DIV col1 + + 76 * + col0 FROM tab0 AS cor0
----
1824
2660
6764

skipif mysql # not compatible
query I rowsort label-5030
SELECT ALL + + col2 / col1 + + 76 * + col0 FROM tab0 AS cor0
----
1824
2660
6764

onlyif mysql # use DIV operator for integer division
query I rowsort label-5031
SELECT col2 + cor0.col1 DIV col1 AS col1 FROM tab2 AS cor0
----
27
28
39

skipif mysql # not compatible
query I rowsort label-5031
SELECT col2 + cor0.col1 / col1 AS col1 FROM tab2 AS cor0
----
27
28
39

query I rowsort
SELECT DISTINCT - col1 * + col1 * ( col0 ) AS col2 FROM tab0 AS cor0
----
-177504
-329315
-737009

query I rowsort
SELECT ALL + 36 * col2 + col2 FROM tab1 cor0
----
1998
2109
3552

onlyif mysql # use DIV operator for integer division
query I rowsort label-5034
SELECT DISTINCT + col2 - - cor0.col1 DIV - col2 FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-5034
SELECT DISTINCT + col2 - - cor0.col1 / - col2 FROM tab1 AS cor0
----
54
57
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( col2 ) * + col1 col1 FROM tab1 AS cor0
----
-1248
-1404
-570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 40 col2 FROM tab0, tab1 AS cor0
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3

query I rowsort
SELECT ALL col0 + + col0 * col0 AS col2 FROM tab1
----
12
4160
6480

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 - + col0 * col1 col2 FROM tab2
----
-1264
-210
-4524

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + CAST ( col2 AS REAL ) + col0 FROM tab0 cor0
----
171
36
57

query I rowsort
SELECT - col0 + 21 * + col0 * + col1 FROM tab2 AS cor0
----
28124
4550
96564

query I rowsort
SELECT ALL - - ( - col0 ) + col0 * + ( col2 * col1 ) FROM tab2 AS cor0
----
119574
50955
5852

query I rowsort
SELECT + - 91 + + 71 FROM tab1 AS cor0
----
-20
-20
-20

query I rowsort
SELECT ALL 82 * col1 * - col2 + + col0 AS col2 FROM tab2 AS cor0
----
-125710
-52893
-68627

query I rowsort
SELECT ALL ( - col0 ) * cor0.col1 + + 49 + 68 AS col0 FROM tab1 cor0
----
-523
-923
39

query I rowsort
SELECT DISTINCT + + cor0.col2 * col0 + col0 AS col1 FROM tab2 AS cor0
----
196
2106
3081

query I rowsort
SELECT + + 85 + + col2 AS col0 FROM tab1 AS cor0
----
139
142
181

query I rowsort
SELECT DISTINCT + col1 * col0 + + col0 + col2 * - col1 FROM tab2 AS cor0
----
-613
3146
776

query I rowsort
SELECT col2 + 92 * - col0 * 59 FROM tab2 AS cor0
----
-37969
-423358
-428774

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5049
SELECT - col2 * 29 - col2 * CAST( + col2 + col1 AS SIGNED ) * 69 FROM tab2 AS cor0
----
-108837
-145312
-153244

skipif mysql # not compatible
query I rowsort label-5049
SELECT - col2 * 29 - col2 * CAST ( + col2 + col1 AS INTEGER ) * 69 FROM tab2 AS cor0
----
-108837
-145312
-153244

query I rowsort
SELECT DISTINCT + 34 AS col2 FROM tab1 AS cor0
----
34

query I rowsort
SELECT + 62 * tab0.col2 * col2 FROM tab0
----
416888
62
67518

query I rowsort
SELECT + col0 + col1 + + col2 * col1 AS col0 FROM tab0 AS cor0
----
229
2948
7642

query I rowsort
SELECT 36 * col0 AS col0 FROM tab0
----
1260
3204
864

query I rowsort
SELECT - col0 * col1 + - col1 + + cor0.col0 FROM tab1 AS cor0
----
-101
-586
-973

query I rowsort
SELECT + cor0.col2 * + col0 + col2 * col2 AS col2 FROM tab2 AS cor0
----
2704
4446
918

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + cor0.col1 col2 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT 19 + col0 AS col2 FROM tab0 AS cor0
----
108
43
54

onlyif mysql # use DIV operator for integer division
query I rowsort label-5058
SELECT + col1 * col0 DIV col0 FROM tab2 AS cor0
----
17
31
59

skipif mysql # not compatible
query I rowsort label-5058
SELECT + col1 * col0 / col0 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT - cor0.col0 + col0 * col1 AS col2 FROM tab1 AS cor0
----
576
75
960

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col1 ) col1 FROM tab2 cor0
----
17
31
59

query I rowsort
SELECT DISTINCT - 89 AS col1 FROM tab2 cor0
----
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 * + col2 * cor0.col1 + col0 + + col2 col0 FROM tab0 cor0
----
-3359
-663947
-68055

onlyif mysql # use DIV operator for integer division
query I rowsort label-5063
SELECT ALL - col1 DIV 66 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5063
SELECT ALL - col1 / 66 FROM tab0
----
-1
-1
-1

query I rowsort
SELECT - col1 + + 40 FROM tab2
----
-19
23
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + + col0 + tab2.col0 col1 FROM tab2
----
21
234
237

query I rowsort
SELECT - col0 + col2 + - col1 AS col0 FROM tab0 AS cor0
----
-131
-77
-98

query I rowsort
SELECT col0 * col0 + col2 AS col0 FROM tab0 cor0
----
1226
609
8003

onlyif mysql # use DIV operator for integer division
query I rowsort label-5068
SELECT ALL ( tab0.col1 ) DIV col1 + col2 + col2 AS col2 FROM tab0
----
165
3
67

skipif mysql # not compatible
query I rowsort label-5068
SELECT ALL ( tab0.col1 ) / col1 + col2 + col2 AS col2 FROM tab0
----
165
3
67

onlyif mysql # use DIV operator for integer division
query I rowsort label-5069
SELECT DISTINCT + 35 DIV + col0 col1 FROM tab1
----
0
11

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5069
SELECT DISTINCT + 35 / + col0 col1 FROM tab1
----
0
11

query I rowsort
SELECT DISTINCT col1 + col2 * col0 * col0 AS col0 FROM tab0
----
1322
19094
649613

onlyif mysql # use DIV operator for integer division
query I rowsort label-5071
SELECT - ( - col1 ) DIV tab2.col1 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5071
SELECT - ( - col1 ) / tab2.col1 FROM tab2
----
1
1
1

query I rowsort
SELECT tab0.col0 * 18 * col0 FROM tab0
----
10368
142578
22050

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 - col1 col1 FROM tab2 cor0
----
-137
-38
-96

query I rowsort
SELECT ALL col0 * + col1 + col0 * col2 FROM tab2 AS cor0
----
406
4345
6630

query I rowsort
SELECT ALL + col0 * + col1 + - col0 FROM tab0 cor0
----
2040
3360
8010

query I rowsort
SELECT ALL + cor0.col0 AS col2 FROM tab0, tab1 cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870

query I rowsort
SELECT col1 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN ( + col2 ) AND + col1
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-5078
SELECT - col0 - + cor0.col1 DIV col2 AS col2 FROM tab0 cor0
----
-132
-26
-90

skipif mysql # not compatible
query I rowsort label-5078
SELECT - col0 - + cor0.col1 / col2 AS col2 FROM tab0 cor0
----
-132
-26
-90

query I rowsort
SELECT DISTINCT col0 + - col0 * col0 + - col1 * + col1 AS col2 FROM tab0 cor0
----
-10599
-16113
-7948

query III rowsort
SELECT * FROM tab2 WHERE NULL < + col1 * col1
----

query I rowsort
SELECT ALL + col0 * - col0 + col0 FROM tab0
----
-1190
-552
-7832

onlyif mysql # use DIV operator for integer division
query I rowsort label-5082
SELECT ALL - col0 * + tab0.col0 DIV + col0 FROM tab0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-5082
SELECT ALL - col0 * + tab0.col0 / + col0 FROM tab0
----
-24
-35
-89

query I rowsort
SELECT + col2 * - tab2.col0 * + col0 AS col1 FROM tab2
----
-1323
-158184
-237158

query I rowsort
SELECT col1 + col2 * - col1 - tab1.col0 FROM tab1
----
-1315
-1381
-624

onlyif mysql # use DIV operator for integer division
query I rowsort label-5085
SELECT ALL + col2 DIV - col1 AS col1 FROM tab2
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-5085
SELECT ALL + col2 / - col1 AS col1 FROM tab2
----
-2
0
0

query I rowsort
SELECT DISTINCT - col2 * - col1 AS col1 FROM tab2 WHERE NULL NOT IN ( col0 * col1 )
----

query I rowsort
SELECT ALL - col1 * - col0 / + col2 FROM tab0 WHERE col2 <= ( NULL )
----

query I rowsort
SELECT col2 * + col2 + col1 AS col1 FROM tab1
----
2942
3259
9229

query I rowsort
SELECT DISTINCT + col2 FROM tab1 WHERE col0 NOT IN ( + col1 * tab1.col0 + col0 )
----
54
57
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-5090
SELECT DISTINCT + col2 * col1 DIV col2 AS col0 FROM tab1
----
10
13
26

skipif mysql # not compatible
query I rowsort label-5090
SELECT DISTINCT + col2 * col1 / col2 AS col0 FROM tab1
----
10
13
26

query I rowsort
SELECT ALL col2 + - tab1.col2 * - col2 + col2 AS col1 FROM tab1
----
3024
3363
9408

query III rowsort
SELECT ALL * FROM tab0 WHERE col0 * col2 * - col1 + + col1 / - col2 - - col2 * + col2 IN ( - col1 * col0 )
----

query I rowsort
SELECT ALL + col1 * tab0.col1 AS col2 FROM tab0
----
7396
8281
9409

query I rowsort
SELECT col1 + - col0 * col0 FROM tab1 AS cor0
----
-4086
-6387
17

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL IN ( col1 ) OR col0 >= + col1 + col1
----

query I rowsort
SELECT + col2 + col2 * col2 * tab0.col1 AS col2 FROM tab0
----
611966
93687
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-5097
SELECT + col1 DIV + ( + col0 ) - - col2 FROM tab0
----
3
36
83

skipif mysql # not compatible
query I rowsort label-5097
SELECT + col1 / + ( + col0 ) - - col2 FROM tab0
----
3
36
83

query I rowsort
SELECT DISTINCT col1 * - 25 AS col1 FROM tab1 AS cor0
----
-250
-325
-650

query I rowsort
SELECT ALL - - col0 * col0 + + col2 AS col2 FROM tab2 AS cor0
----
6110
6279
76

query I rowsort
SELECT - + 95 * + 13 FROM tab1 cor0
----
-1235
-1235
-1235

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab0 cor2
----
972 values hashing to b2fa3f9d060540fe1eb4ad1c0754e163

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5102
SELECT ALL + col0 + + CAST( NULL AS SIGNED ) / col0 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5102
SELECT ALL + col0 + + CAST ( NULL AS INTEGER ) / col0 AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col1 + + ( - col1 ) * col2 * ( tab0.col1 ) FROM tab0
----
-244154
-679133
-9506

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - col0 ) col1 FROM tab0
----
24
35
89

query I rowsort
SELECT ( col2 * col1 ) AS col1 FROM tab2
----
1534
646
837

query I rowsort
SELECT ALL - 60 FROM tab2, tab2 AS cor0
----
9 values hashing to 067a4b5daf8747042e3b07ca8459859f

onlyif mysql # use DIV operator for integer division
query I rowsort label-5107
SELECT DISTINCT + ( tab2.col1 ) DIV col0 AS col2 FROM tab2
----
0
4

skipif mysql # not compatible
query I rowsort label-5107
SELECT DISTINCT + ( tab2.col1 ) / col0 AS col2 FROM tab2
----
0
4

query I rowsort
SELECT ALL col0 * 95 FROM tab2 AS cor0
----
665
7410
7505

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5109
SELECT CAST( col2 AS SIGNED ) * col2 FROM tab2
----
1444
676
729

skipif mysql # not compatible
query I rowsort label-5109
SELECT CAST ( col2 AS INTEGER ) * col2 FROM tab2
----
1444
676
729

query I rowsort
SELECT ALL - + 76 * col2 AS col2 FROM tab1 AS cor0
----
-4104
-4332
-7296

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5111
SELECT ALL - CAST( col0 AS SIGNED ) * - col2 + cor0.col2 FROM tab2 AS cor0
----
2054
216
3040

skipif mysql # not compatible
query I rowsort label-5111
SELECT ALL - CAST ( col0 AS INTEGER ) * - col2 + cor0.col2 FROM tab2 AS cor0
----
2054
216
3040

query I rowsort
SELECT DISTINCT - + 42 + - col2 FROM tab0 AS cor0
----
-124
-43
-75

query I rowsort
SELECT ALL tab2.col2 - - col0 AS col2 FROM tab2
----
104
117
34

query I rowsort
SELECT + + 86 AS col1 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to ed1a39c2752ca3723602e4a92c54bbc4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 74 col0 FROM tab1
----
74

onlyif mysql # use DIV operator for integer division
query I rowsort label-5116
SELECT col0 * col0 + - cor0.col0 DIV + col0 FROM tab0 AS cor0
----
1224
575
7920

skipif mysql # not compatible
query I rowsort label-5116
SELECT col0 * col0 + - cor0.col0 / + col0 FROM tab0 AS cor0
----
1224
575
7920

query I rowsort
SELECT ( - col2 ) + - col1 FROM tab1
----
-109
-67
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-5118
SELECT DISTINCT + - col0 DIV ( - col0 ) + + col1 FROM tab0 AS cor0
----
87
92
98

skipif mysql # not compatible
query I rowsort label-5118
SELECT DISTINCT + - col0 / ( - col0 ) + + col1 FROM tab0 AS cor0
----
87
92
98

query I rowsort
SELECT DISTINCT + col2 * - cor0.col2 AS col2 FROM tab0 AS cor0
----
-1
-1089
-6724

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + col0 * 27 col0 FROM tab2 AS cor0
----
2132
216
2171

query I rowsort
SELECT ALL + + col2 - + ( + ( col2 ) ) FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + cor0.col0 + + col0 AS col2 FROM tab2 AS cor0
----
14
156
158

query I rowsort
SELECT - - col1 * ( col1 ) + - col1 FROM tab1 AS cor0
----
156
650
90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5124
SELECT ALL - col1 * CAST( + 57 AS SIGNED ) FROM tab2 AS cor0
----
-1767
-3363
-969

skipif mysql # not compatible
query I rowsort label-5124
SELECT ALL - col1 * CAST ( + 57 AS INTEGER ) FROM tab2 AS cor0
----
-1767
-3363
-969

query I rowsort
SELECT cor0.col2 * 63 + col1 FROM tab0 AS cor0
----
160
2165
5257

query I rowsort
SELECT DISTINCT - + cor0.col0 + - cor0.col0 AS col0 FROM tab1 AS cor0
----
-128
-160
-6

query I rowsort
SELECT ALL + - col2 + + col1 AS col0 FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT + col0 * col0 * + ( col1 ) + col1 * - col1 FROM tab0 AS cor0
----
109416
42140
712530

query I rowsort
SELECT ALL + col1 * 20 AS col2 FROM tab2 AS cor0
----
1180
340
620

query I rowsort
SELECT DISTINCT col2 * - 62 FROM tab1 AS cor0
----
-3348
-3534
-5952

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5131
SELECT DISTINCT - col1 + CAST( NULL AS SIGNED ) * + 34 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5131
SELECT DISTINCT - col1 + CAST ( NULL AS INTEGER ) * + 34 FROM tab0 cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5132
SELECT DISTINCT + col1 DIV + cor0.col1 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5132
SELECT DISTINCT + col1 / + cor0.col1 FROM tab1 AS cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * ( col1 ) + + col1 col2 FROM tab2 AS cor0
----
1593
663
868

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5134
SELECT col2 * - CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5134
SELECT col2 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 + ( cor0.col0 ) FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT DISTINCT + + col2 * ( col1 ) FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT - col1 * - 79 FROM tab0 cor0
----
6794
7189
7663

query I rowsort
SELECT ALL + col1 * ( 64 + col1 ) FROM tab2 cor0
----
1377
2945
7257

query I rowsort
SELECT col0 * + 45 AS col1 FROM tab1
----
135
2880
3600

query I rowsort
SELECT col1 * + 48 AS col0 FROM tab0
----
4128
4368
4656

onlyif mysql # use DIV operator for integer division
query I rowsort label-5141
SELECT col2 DIV ( + ( + col0 ) ) AS col0 FROM tab1
----
0
1
18

skipif mysql # not compatible
query I rowsort label-5141
SELECT col2 / ( + ( + col0 ) ) AS col0 FROM tab1
----
0
1
18

query I rowsort
SELECT DISTINCT + col0 * + ( col1 ) FROM tab0 cor0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT - tab1.col0 * col1 AS col2 FROM tab1
----
-1040
-640
-78

query I rowsort
SELECT - col0 * + 88 FROM tab1
----
-264
-5632
-7040

query I rowsort
SELECT DISTINCT - col2 - + col1 * col1 * col1 FROM tab0 AS cor0
----
-636089
-753653
-912674

query I rowsort
SELECT DISTINCT col1 * ( col0 ) + col1 AS col1 FROM tab1 AS cor0
----
104
1053
650

query I rowsort
SELECT cor0.col2 + + col2 * + col0 FROM tab2 AS cor0
----
2054
216
3040

onlyif mysql # use DIV operator for integer division
query I rowsort label-5148
SELECT ALL col0 DIV cor0.col0 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5148
SELECT ALL col0 / cor0.col0 FROM tab1 AS cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + 26 col2 FROM tab1 AS cor0
----
0
13
16

onlyif mysql # use DIV operator for integer division
query I rowsort label-5150
SELECT + - cor0.col1 DIV + cor0.col1 FROM tab1 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5150
SELECT + - cor0.col1 / + cor0.col1 FROM tab1 cor0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col0 * col2 - col1 col2 FROM tab1 AS cor0
----
36470
4186
99827

query I rowsort
SELECT ALL + - col1 + col1 * - col2 FROM tab2 AS cor0
----
-1593
-663
-868

query I rowsort
SELECT + + col0 + - 34 FROM tab1 cor0
----
-31
30
46

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5154
SELECT CAST( NULL AS SIGNED ) * ( cor0.col0 ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5154
SELECT CAST ( NULL AS INTEGER ) * ( cor0.col0 ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col0 ) * cor0.col1 + col1 col2 FROM tab2 AS cor0
----
1360
248
4661

query I rowsort
SELECT DISTINCT col0 * - col1 + col0 FROM tab2 AS cor0
----
-1264
-210
-4524

query I rowsort
SELECT DISTINCT + - 25 + col2 + + cor0.col2 * col2 FROM tab1 AS cor0
----
2945
3281
9287

query I rowsort
SELECT ALL - col0 - - col2 * col0 AS col2 FROM tab0 AS cor0
----
0
7209
768

query I rowsort
SELECT + + 63 + col0 * - col2 AS col2 FROM tab2 AS cor0
----
-126
-1965
-2939

query I rowsort
SELECT ALL + col1 + 33 AS col2 FROM tab1
----
43
46
59

query I rowsort
SELECT tab2.col1 * ( col1 ) + + col2 + 76 FROM tab2
----
1064
3583
403

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5162
SELECT - CAST( + 35 AS SIGNED ) AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to c12e8bdd687c9040a5600dab3b6adf5b

skipif mysql # not compatible
query I rowsort label-5162
SELECT - CAST ( + 35 AS INTEGER ) AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to c12e8bdd687c9040a5600dab3b6adf5b

onlyif mysql # use DIV operator for integer division
query I rowsort label-5163
SELECT + 27 DIV cor0.col2 + - col0 AS col1 FROM tab1 cor0
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-5163
SELECT + 27 / cor0.col2 + - col0 AS col1 FROM tab1 cor0
----
-3
-64
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-5164
SELECT + col0 * col0 + cor0.col0 + - ( col1 ) DIV col1 AS col0 FROM tab2 AS cor0
----
55
6161
6319

skipif mysql # not compatible
query I rowsort label-5164
SELECT + col0 * col0 + cor0.col0 + - ( col1 ) / col1 AS col0 FROM tab2 AS cor0
----
55
6161
6319

onlyif mysql # use DIV operator for integer division
query I rowsort label-5165
SELECT - + col2 * + col1 DIV col1 FROM tab0 AS cor0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-5165
SELECT - + col2 * + col1 / col1 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT DISTINCT + cor0.col2 * - cor0.col2 AS col0 FROM tab2 cor0
----
-1444
-676
-729

query I rowsort
SELECT ALL - - 49 * + col2 AS col1 FROM tab0 AS cor0
----
1617
4018
49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 * - col2 col0 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT ALL + - col2 * + col1 AS col0 FROM tab0 cor0
----
-2838
-7462
-97

query I rowsort
SELECT ALL + 74 * - col1 FROM tab1 AS cor0
----
-1924
-740
-962

query I rowsort
SELECT ALL + - 35 AS col2 FROM tab0 cor0
----
-35
-35
-35

onlyif mysql # use DIV operator for integer division
query I rowsort label-5172
SELECT 47 DIV + col0 - - col1 AS col0 FROM tab1
----
10
13
41

skipif mysql # not compatible
query I rowsort label-5172
SELECT 47 / + col0 - - col1 AS col0 FROM tab1
----
10
13
41

query I rowsort
SELECT ALL - 88 + + col0 FROM tab2 cor0
----
-10
-81
-9

query I rowsort
SELECT DISTINCT ( col2 ) + cor0.col0 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT DISTINCT cor0.col1 * - col1 + ( - col2 ) AS col1 FROM tab0 AS cor0
----
-7429
-8363
-9410

onlyif mysql # use DIV operator for integer division
query I rowsort label-5176
SELECT 67 DIV + col1 + - col2 * col1 FROM tab0
----
-2838
-7462
-97

skipif mysql # not compatible
query I rowsort label-5176
SELECT 67 / + col1 + - col2 * col1 FROM tab0
----
-2838
-7462
-97

query I rowsort
SELECT 3 * - col1 * + col2 AS col0 FROM tab0
----
-22386
-291
-8514

query I rowsort
SELECT DISTINCT col0 * 85 + col2 AS col2 FROM tab1
----
309
5497
6896

query I rowsort
SELECT DISTINCT ( tab1.col1 * + col1 ) FROM tab1
----
100
169
676

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5180
SELECT + cor0.col2 - col0 * - CAST( + col2 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
216
3705
7776

skipif mysql # not compatible
query I rowsort label-5180
SELECT + cor0.col2 - col0 * - CAST ( + col2 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
216
3705
7776

query I rowsort
SELECT ALL - - 82 FROM tab1 AS cor0
----
82
82
82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5182
SELECT CAST( NULL AS SIGNED ) / 55 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5182
SELECT CAST ( NULL AS INTEGER ) / 55 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5183
SELECT + CAST( + col0 AS SIGNED ) * col2 FROM tab2
----
189
2028
3002

skipif mysql # not compatible
query I rowsort label-5183
SELECT + CAST ( + col0 AS INTEGER ) * col2 FROM tab2
----
189
2028
3002

query I rowsort
SELECT - col2 * + 50 FROM tab1
----
-2700
-2850
-4800

query I rowsort
SELECT tab2.col1 * + tab2.col1 * col2 AS col2 FROM tab2
----
10982
25947
90506

query I rowsort
SELECT DISTINCT 11 * tab2.col1 AS col1 FROM tab2
----
187
341
649

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 75 col1 FROM tab0
----
-75
-75
-75

query I rowsort
SELECT ( - col0 ) * col0 FROM tab0
----
-1225
-576
-7921

query I rowsort
SELECT DISTINCT - 36 FROM tab1
----
-36

query I rowsort
SELECT + col1 * col2 * - tab0.col2 FROM tab0
----
-611884
-93654
-97

query I rowsort
SELECT - 78 * + col1 FROM tab0
----
-6708
-7098
-7566

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5192
SELECT DISTINCT ( col2 + + CAST( NULL AS DECIMAL ) ) * - tab1.col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5192
SELECT DISTINCT ( col2 + + CAST ( NULL AS REAL ) ) * - tab1.col2 FROM tab1
----
NULL

query I rowsort
SELECT ( - col0 ) + - col0 * - col0 * col1 AS col1 FROM tab2 cor0
----
106018
1512
358878

query I rowsort
SELECT + - col1 * - col1 - + ( + 55 ) AS col2 FROM tab1 AS cor0
----
114
45
621

query I rowsort
SELECT - + cor0.col2 + + cor0.col0 AS col0 FROM tab2 cor0
----
-20
41
52

query I rowsort
SELECT - - ( cor0.col0 ) + + col2 FROM tab2 AS cor0
----
104
117
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 17 * cor0.col1 col1 FROM tab2 AS cor0
----
1003
289
527

query I rowsort
SELECT ALL 59 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

query I rowsort
SELECT + + col1 * ( col0 ) AS col2 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT + col1 * + ( cor0.col0 ) AS col1 FROM tab0 cor0
----
2064
3395
8099

query I rowsort
SELECT ALL + col1 * + 75 FROM tab0 AS cor0
----
6450
6825
7275

query I rowsort
SELECT ALL - - col0 * - 17 AS col1 FROM tab0 AS cor0
----
-1513
-408
-595

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab0 cor0, tab2 AS cor1, tab1, tab1 AS cor2
----
3645 values hashing to 199388980dc5177ebebcfdbc0408ba02

query I rowsort
SELECT - + cor0.col2 * 76 AS col2 FROM tab1 AS cor0
----
-4104
-4332
-7296

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5205
SELECT + tab2.col0 + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5205
SELECT + tab2.col0 + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ( - cor0.col2 ) AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75

query I rowsort
SELECT - - ( - col0 ) * + col0 FROM tab1 cor0
----
-4096
-6400
-9

query I rowsort
SELECT - col1 * ( col1 + ( + 69 ) ) FROM tab2 AS cor0
----
-1462
-3100
-7552

onlyif mysql # use DIV operator for integer division
query I rowsort label-5209
SELECT + + col2 DIV + col0 AS col1 FROM tab1 cor0
----
0
1
18

skipif mysql # not compatible
query I rowsort label-5209
SELECT + + col2 / + col0 AS col1 FROM tab1 cor0
----
0
1
18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( 98 ) * - col0 col2 FROM tab1 AS cor0
----
-294
-6272
-7840

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 4 * + 11 col0 FROM tab1 AS cor0
----
-44
-44
-44

query I rowsort
SELECT + col1 * - 48 * + col1 FROM tab1 AS cor0
----
-32448
-4800
-8112

query I rowsort
SELECT DISTINCT ( + 9 ) FROM tab2 AS cor0
----
9

query I rowsort
SELECT ALL + + col2 + + col1 * col0 FROM tab1 AS cor0
----
1136
132
697

query I rowsort
SELECT + ( + col0 ) * col1 * 72 FROM tab2 AS cor0
----
15624
331344
96696

onlyif mysql # use DIV operator for integer division
query I rowsort label-5216
SELECT + 94 + - cor0.col0 DIV col0 AS col0 FROM tab1 cor0
----
93
93
93

skipif mysql # not compatible
query I rowsort label-5216
SELECT + 94 + - cor0.col0 / col0 AS col0 FROM tab1 cor0
----
93
93
93

query I rowsort
SELECT + 14 * + 35 AS col0 FROM tab2 AS cor0
----
490
490
490

onlyif mysql # use DIV operator for integer division
query I rowsort label-5218
SELECT DISTINCT - - col2 + col1 DIV + col0 FROM tab1 AS cor0
----
57
62
96

skipif mysql # not compatible
query I rowsort label-5218
SELECT DISTINCT - - col2 + col1 / + col0 FROM tab1 AS cor0
----
57
62
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col0 * 13 col0 FROM tab1 AS cor0
----
1014
13520
8320

query I rowsort
SELECT col0 * - col1 * ( col2 + + col1 ) AS col1 FROM tab1 AS cor0
----
-113360
-42880
-6240

onlyif mysql # use DIV operator for integer division
query I rowsort label-5221
SELECT DISTINCT 95 DIV col2 + col2 FROM tab1 AS cor0
----
55
58
96

skipif mysql # not compatible
query I rowsort label-5221
SELECT DISTINCT 95 / col2 + col2 FROM tab1 AS cor0
----
55
58
96

query I rowsort
SELECT ALL + + 11 * cor0.col2 + cor0.col0 AS col1 FROM tab0 AS cor0
----
387
46
991

query I rowsort
SELECT - col0 * - cor0.col2 + - col2 FROM tab2 cor0
----
162
2002
2964

query I rowsort
SELECT ALL + col0 + + col1 * ( - col2 * + col2 ) - + 37 FROM tab2 AS cor0
----
-22629
-24506
-39843

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 73 - - col1 col1 FROM tab1 AS cor0
----
83
86
99

query I rowsort
SELECT ALL + - col0 + + cor0.col1 AS col1 FROM tab0 AS cor0
----
2
62
62

query I rowsort
SELECT ALL ( - 41 ) FROM tab1
----
-41
-41
-41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 48 col1 FROM tab2, tab0 AS cor0 CROSS JOIN tab1, tab1 AS cor1
----
81 values hashing to df6d12001a34fdcf5cfb2ca3a4a22108

query I rowsort
SELECT + col0 * ( cor0.col0 ) * col0 AS col2 FROM tab1 AS cor0
----
262144
27
512000

query I rowsort
SELECT col0 + ( col0 ) * cor0.col0 FROM tab0 AS cor0
----
1260
600
8010

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 col0 FROM tab2, tab0 AS cor0
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e

query I rowsort
SELECT - - col0 + 24 + - col0 AS col1 FROM tab1 AS cor0
----
24
24
24

query I rowsort
SELECT DISTINCT - + col1 + ( col1 ) FROM tab0 AS cor0
----
0

query I rowsort
SELECT + 75 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea

query I rowsort
SELECT DISTINCT + + ( - col0 ) * + col0 FROM tab2 AS cor0
----
-49
-6084
-6241

onlyif mysql # use DIV operator for integer division
query I rowsort label-5236
SELECT DISTINCT 5 DIV - col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5236
SELECT DISTINCT 5 / - col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT col0 * + ( tab0.col1 ) + col0 AS col2 FROM tab0
----
2088
3430
8188

query I rowsort
SELECT col0 + tab1.col2 * + 90 FROM tab1
----
4863
5194
8720

query I rowsort
SELECT ALL + tab1.col0 + + 90 FROM tab1
----
154
170
93

query I rowsort
SELECT col0 * - tab0.col0 - - 68 AS col2 FROM tab0
----
-1157
-508
-7853

onlyif mysql # use DIV operator for integer division
query I rowsort label-5241
SELECT + col1 * - col0 DIV - col0 + - col0 FROM tab0 AS cor0
----
2
62
62

skipif mysql # not compatible
query I rowsort label-5241
SELECT + col1 * - col0 / - col0 + - col0 FROM tab0 AS cor0
----
2
62
62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5242
SELECT ALL col2 * col1 + CAST( NULL AS SIGNED ) * col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5242
SELECT ALL col2 * col1 + CAST ( NULL AS INTEGER ) * col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5243
SELECT ALL + 59 + + col0 DIV col0 + col0 * col0 FROM tab1 AS cor0
----
4156
6460
69

skipif mysql # not compatible
query I rowsort label-5243
SELECT ALL + 59 + + col0 / col0 + col0 * col0 FROM tab1 AS cor0
----
4156
6460
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 44 col2 FROM tab0 AS cor0
----
44
44
44

query I rowsort
SELECT DISTINCT + 69 + - col1 * col0 * - col2 FROM tab0 AS cor0
----
3464
664187
68181

query I rowsort
SELECT + col2 + cor0.col2 + - col2 * col0 AS col1 FROM tab1 cor0
----
-3534
-54
-7488

query I rowsort
SELECT - + col2 + cor0.col1 - 30 AS col2 FROM tab2 AS cor0
----
-26
-51
3

query I rowsort
SELECT DISTINCT + 97 + col1 * - cor0.col0 AS col2 FROM tab1 AS cor0
----
-543
-943
19

query I rowsort
SELECT DISTINCT col2 + - col2 + - col0 * - cor0.col1 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT col1 - + 47 AS col1 FROM tab1
----
-21
-34
-37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 * - col1 + col1 * col1 col1 FROM tab0 cor0
----
4558
819
9312

query I rowsort
SELECT + 81 - + col2 FROM tab0 AS cor0
----
-1
48
80

query I rowsort
SELECT - cor0.col0 * + 51 FROM tab2, tab0 cor0
----
9 values hashing to 8916678cc80c308aeeed27caba930f9a

onlyif mysql # use DIV operator for integer division
query I rowsort label-5254
SELECT col2 * - col1 - tab2.col1 DIV col0 AS col2 FROM tab2
----
-1534
-646
-841

skipif mysql # not compatible
query I rowsort label-5254
SELECT col2 * - col1 - tab2.col1 / col0 AS col2 FROM tab2
----
-1534
-646
-841

query I rowsort
SELECT DISTINCT col1 * - col0 * - 3 AS col2 FROM tab1 AS cor0
----
1920
234
3120

onlyif mysql # use DIV operator for integer division
query I rowsort label-5256
SELECT DISTINCT - col0 DIV - 54 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-5256
SELECT DISTINCT - col0 / - 54 FROM tab1 AS cor0
----
0
1

query I rowsort
SELECT + - col1 + col0 * col2 * col1 AS col0 FROM tab0 AS cor0
----
3298
664027
68026

query I rowsort
SELECT DISTINCT - cor0.col0 * - 66 FROM tab1, tab2 AS cor0
----
462
5148
5214

query I rowsort
SELECT tab0.col0 * - col2 + 92 * - col2 FROM tab0
----
-127
-14842
-3828

query I rowsort
SELECT DISTINCT 44 + col2 + col0 AS col1 FROM tab1
----
101
165
220

query I rowsort
SELECT + col2 * col0 + + ( 68 ) + cor0.col1 AS col1 FROM tab0 AS cor0
----
200
7457
946

onlyif mysql # use DIV operator for integer division
query I rowsort label-5262
SELECT DISTINCT + 65 DIV - cor0.col1 AS col1 FROM tab1 AS cor0
----
-2
-5
-6

skipif mysql # not compatible
query I rowsort label-5262
SELECT DISTINCT + 65 / - cor0.col1 AS col1 FROM tab1 AS cor0
----
-2
-5
-6

query I rowsort
SELECT DISTINCT tab2.col2 + - col1 AS col0 FROM tab2
----
-33
-4
21

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5264
SELECT + 89 + - col1 / - CAST( NULL AS SIGNED ) + + col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5264
SELECT + 89 + - col1 / - CAST ( NULL AS INTEGER ) + + col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - ( + ( + col1 ) ) * col1 + + 20 * - col2 AS col1 FROM tab2 AS cor0
----
-471
2961
421

query I rowsort
SELECT ALL + - col1 * + 24 FROM tab0 cor0
----
-2064
-2184
-2328

query I rowsort
SELECT + col1 * col2 + + 2 FROM tab2
----
1536
648
839

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - + 43 * 22 col0 FROM tab0
----
-857
-911
-922

query I rowsort
SELECT col0 * + 12 - + col1 FROM tab2
----
53
877
931

query I rowsort
SELECT ( + col2 * tab0.col1 ) AS col1 FROM tab0
----
2838
7462
97

query I rowsort
SELECT 37 * 62 FROM tab2
----
2294
2294
2294

query I rowsort
SELECT col2 * ( - col0 ) FROM tab0
----
-35
-7298
-792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 - col2 col2 FROM tab0
----
53
9
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-5274
SELECT ALL - col2 DIV 10 + + col2 FROM tab0 AS cor0
----
1
30
74

skipif mysql # not compatible
query I rowsort label-5274
SELECT ALL - col2 / 10 + + col2 FROM tab0 AS cor0
----
1
30
74

query I rowsort
SELECT DISTINCT col1 * col2 * + col0 AS col2 FROM tab0 AS cor0
----
3395
664118
68112

query I rowsort
SELECT - 5 - - 98 FROM tab2 AS cor0
----
93
93
93

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5277
SELECT ALL - CAST( NULL AS SIGNED ) / + 79 col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5277
SELECT ALL - CAST ( NULL AS INTEGER ) / + 79 col0 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + 95 * col0 AS col0 FROM tab2 AS cor0
----
-665
-7410
-7505

query I rowsort
SELECT ALL + - col1 * - col2 FROM tab0 cor0
----
2838
7462
97

query I rowsort
SELECT DISTINCT + 37 + col0 AS col2 FROM tab0 AS cor0
----
126
61
72

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5281
SELECT + + CAST( col1 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
17
31
59

skipif mysql # not compatible
query I rowsort label-5281
SELECT + + CAST ( col1 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT - col2 - 22 FROM tab1 cor0
----
-118
-76
-79

query I rowsort
SELECT - + col2 * + 2 + col2 + ( 80 ) FROM tab0 cor0
----
-2
47
79

query I rowsort
SELECT DISTINCT - - col0 + - 93 FROM tab2 AS cor0
----
-14
-15
-86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 85 col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 8ebc8ffafb1517ea04e3a6fc4059d88a

query I rowsort
SELECT ALL + 63 * 59 FROM tab0
----
3717
3717
3717

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor1.col2 col0 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT ALL - col0 * + ( cor0.col1 ) + col1 FROM tab2 AS cor0
----
-1326
-186
-4543

query I rowsort
SELECT ALL - 74 * - tab2.col0 AS col2 FROM tab2, tab1 cor0
----
9 values hashing to f3382ae349243c43d2dbe2a3c6c042f1

query I rowsort
SELECT ( col0 + - col0 ) AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL ( 50 * + col0 ) FROM tab2
----
350
3900
3950

query I rowsort
SELECT DISTINCT + - col2 * - col1 + col1 + 38 AS col1 FROM tab2 AS cor0
----
1631
701
906

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5293
SELECT DISTINCT col1 * - col1 + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5293
SELECT DISTINCT col1 * - col1 + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + 52 - col0 FROM tab2 AS cor0
----
-26
-27
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + col2 col0 FROM tab2 cor0
----
-33
-4
21

query I rowsort
SELECT DISTINCT col2 * + cor0.col2 + col0 * + 19 * col0 AS col1 FROM tab2 AS cor0
----
116272
120023
1660

query I rowsort
SELECT ALL col1 * - col2 + 67 FROM tab2 AS cor0
----
-1467
-579
-770

onlyif mysql # use DIV operator for integer division
query I rowsort label-5298
SELECT + 16 + col2 DIV ( + col0 + col1 ) FROM tab0 AS cor0
----
16
16
16

skipif mysql # not compatible
query I rowsort label-5298
SELECT + 16 + col2 / ( + col0 + col1 ) FROM tab0 AS cor0
----
16
16
16

query I rowsort
SELECT col1 + + col1 * - 74 FROM tab2 AS cor0
----
-1241
-2263
-4307

query I rowsort
SELECT - 53 + cor0.col0 * + col0 AS col1 FROM tab1 AS cor0
----
-44
4043
6347

query I rowsort
SELECT DISTINCT + 56 + - col0 AS col0 FROM tab1 AS cor0
----
-24
-8
53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 + - col0 col1 FROM tab2 AS cor0
----
-14
-156
-158

query I rowsort
SELECT + - 63 + + col2 AS col1 FROM tab1 AS cor0
----
-6
-9
33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + + col0 col2 FROM tab2 AS cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5305
SELECT + col1 * col0 DIV - col2 FROM tab1 AS cor0
----
-1
-10
-11

skipif mysql # not compatible
query I rowsort label-5305
SELECT + col1 * col0 / - col2 FROM tab1 AS cor0
----
-1
-10
-11

query I rowsort
SELECT ALL - col1 * + 29 FROM tab0 cor0
----
-2494
-2639
-2813

onlyif mysql # use DIV operator for integer division
query I rowsort label-5307
SELECT DISTINCT + - cor0.col0 DIV - col0 AS col0 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5307
SELECT DISTINCT + - cor0.col0 / - col0 AS col0 FROM tab0 AS cor0
----
1

query I rowsort
SELECT - col1 * + col1 * cor0.col0 AS col1 FROM tab2 cor0
----
-22831
-271518
-6727

query I rowsort
SELECT + - col2 + + ( + cor0.col0 ) FROM tab1 AS cor0
----
-16
-51
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * 14 col1 FROM tab1 AS cor0
----
1120
42
896

query I rowsort
SELECT + col1 + + ( 9 ) * - col1 + + col2 FROM tab2 AS cor0
----
-221
-446
-98

onlyif mysql # use DIV operator for integer division
query I rowsort label-5312
SELECT - - cor0.col1 DIV - cor0.col0 AS col2 FROM tab0 AS cor0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-5312
SELECT - - cor0.col1 / - cor0.col0 AS col2 FROM tab0 AS cor0
----
-1
-2
-3

query I rowsort
SELECT DISTINCT + col2 + + 25 * col0 * + col1 FROM tab1 AS cor0
----
16057
2004
26096

query I rowsort
SELECT - col1 + + col1 + - col1 AS col0 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT ALL - + col2 * - cor0.col2 * + ( - cor0.col1 ) AS col0 FROM tab2 AS cor0
----
-22599
-24548
-39884

query I rowsort
SELECT - col0 * 88 * col1 FROM tab0 AS cor0
----
-181632
-298760
-712712

query I rowsort
SELECT + cor0.col2 + col2 * col0 FROM tab1 AS cor0
----
216
3705
7776

query I rowsort
SELECT + 94 + ( col2 ) AS col2 FROM tab2 AS cor0
----
120
121
132

query I rowsort
SELECT + 54 * + col0 AS col2 FROM tab0 AS cor0
----
1296
1890
4806

query I rowsort
SELECT ALL - - 95 + col0 + cor0.col2 AS col1 FROM tab1 AS cor0
----
152
216
271

query I rowsort
SELECT - - col0 * 71 AS col0 FROM tab1 AS cor0
----
213
4544
5680

query I rowsort
SELECT col0 * + cor0.col2 AS col2 FROM tab2 cor0
----
189
2028
3002

query I rowsort
SELECT ALL 4 AS col2 FROM tab2
----
4
4
4

query I rowsort
SELECT ALL cor0.col1 AS col1 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT + col1 + tab1.col2 + + tab1.col1 AS col2 FROM tab1
----
106
122
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 38 col0 FROM tab1, tab2 AS cor0
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7

query I rowsort
SELECT - - col0 * col1 * col1 AS col0 FROM tab2 AS cor0
----
22831
271518
6727

query I rowsort
SELECT ALL - 71 FROM tab1, tab1 AS cor0
----
9 values hashing to e72f95c346714d3065a96d67a6fd5062

query I rowsort
SELECT DISTINCT - 42 FROM tab0, tab0 AS cor0
----
-42

query I rowsort
SELECT ALL + 76 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab2 AS cor2
----
3645 values hashing to 5d28fbab8377f7a8b08a31395cb11d94

query I rowsort
SELECT ALL col0 + - cor0.col1 FROM tab1 cor0
----
-23
54
67

query I rowsort
SELECT DISTINCT col1 + - 49 * col0 * - col1 AS col1 FROM tab2 AS cor0
----
10664
225557
65824

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5334
SELECT ALL CAST( + 40 AS SIGNED ) col1 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to e4d10f7d6c34a281f524e45e82ebd2a0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5334
SELECT ALL CAST ( + 40 AS INTEGER ) col1 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to e4d10f7d6c34a281f524e45e82ebd2a0

query I rowsort
SELECT DISTINCT col1 * col0 - - cor0.col0 FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT - - col0 + col1 * + ( col2 ) AS col2 FROM tab2 AS cor0
----
1612
725
844

query I rowsort
SELECT ALL 91 AS col0 FROM tab2, tab0 AS cor0, tab2 AS cor1, tab0, tab2 AS cor2
----
243 values hashing to d6f0339e9f022f317c10dc07cb55927b

query I rowsort
SELECT DISTINCT tab1.col0 AS col1 FROM tab1, tab2 AS cor0
----
3
64
80

query I rowsort
SELECT + - cor0.col2 * - col1 + col2 * 54 + + col2 FROM tab2 AS cor0
----
2322
2736
2964

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 82 col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5341
SELECT - cor0.col0 * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5341
SELECT - cor0.col0 * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 + - ( + col0 ) FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT - + col2 + + 70 FROM tab2 AS cor0
----
32
43
44

query I rowsort
SELECT ALL 87 AS col0 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 8661ffbd1a72897c495405c53b816e50

query I rowsort
SELECT ALL - - col2 * ( - col1 ) + cor0.col1 AS col0 FROM tab1 AS cor0
----
-1235
-1378
-560

onlyif mysql # use DIV operator for integer division
query I rowsort label-5346
SELECT ALL + col0 + - col1 DIV col0 FROM tab0 cor0
----
21
33
88

skipif mysql # not compatible
query I rowsort label-5346
SELECT ALL + col0 + - col1 / col0 FROM tab0 cor0
----
21
33
88

query I rowsort
SELECT - 84 + + 18 * - col1 * - col0 FROM tab1 AS cor0
----
11436
1320
18636

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 86 col0 FROM tab1, tab1 AS cor0, tab1 AS cor1, tab1 AS cor2
----
81 values hashing to e219687f6f4ab6f7ee442792edcebca9

query I rowsort
SELECT col0 * + col2 - col2 * + cor0.col1 * + 5 FROM tab1 cor0
----
-6858
1440
798

query I rowsort
SELECT - col0 * - tab1.col2 * col2 AS col2 FROM tab1
----
207936
737280
8748

query I rowsort
SELECT - ( - col1 ) - - col1 * - col2 * + 93 AS col2 FROM tab2 AS cor0
----
-142603
-60061
-77810

query I rowsort
SELECT - + col0 * col1 * col0 FROM tab1 AS cor0
----
-234
-40960
-83200

query I rowsort
SELECT ALL 74 + col2 AS col2 FROM tab0 AS cor0
----
107
156
75

query I rowsort
SELECT ( col2 ) - + cor0.col0 FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT - col1 * + 42 - col1 * + 53 AS col0 FROM tab2 AS cor0
----
-1615
-2945
-5605

query I rowsort
SELECT - + ( + 10 ) * col1 + col2 AS col0 FROM tab2 AS cor0
----
-132
-283
-564

query I rowsort
SELECT + - 54 + + 47 FROM tab1 cor0
----
-7
-7
-7

query I rowsort
SELECT cor0.col0 * + cor1.col0 AS col0 FROM tab0, tab1 AS cor0, tab2 cor1
----
27 values hashing to 5f0d3c96eb7e6285a2259b8e887cbdfe

query I rowsort
SELECT + col0 + - cor0.col2 FROM tab1 cor0
----
-16
-51
7

query I rowsort
SELECT DISTINCT + - col0 * cor0.col2 AS col0 FROM tab1 cor0
----
-162
-3648
-7680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5361
SELECT CAST( NULL AS SIGNED ) * + col1 * col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5361
SELECT CAST ( NULL AS INTEGER ) * + col1 * col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 * col1 + + ( col1 ) * col1 FROM tab2 cor0
----
-1054
-1121
744

query I rowsort
SELECT + + 53 * col2 AS col0 FROM tab2 AS cor0
----
1378
1431
2014

query I rowsort
SELECT ALL - - col0 + col2 * - 70 AS col2 FROM tab1 AS cor0
----
-3777
-3926
-6640

query I rowsort
SELECT DISTINCT - ( - 77 ) * + col2 * tab0.col2 AS col2 FROM tab0
----
517748
77
83853

onlyif mysql # use DIV operator for integer division
query I rowsort label-5366
SELECT ALL + tab0.col0 + col1 * col2 * col1 + col0 DIV + col0 FROM tab0
----
244093
679132
9445

skipif mysql # not compatible
query I rowsort label-5366
SELECT ALL + tab0.col0 + col1 * col2 * col1 + col0 / + col0 FROM tab0
----
244093
679132
9445

query I rowsort
SELECT ALL - col2 FROM tab0 WHERE NOT ( - col1 + - col0 ) IN ( - col1 )
----
-1
-33
-82

onlyif mysql # use DIV operator for integer division
query I rowsort label-5368
SELECT DISTINCT - col0 * col1 DIV col1 AS col0 FROM tab1
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-5368
SELECT DISTINCT - col0 * col1 / col1 AS col0 FROM tab1
----
-3
-64
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-5369
SELECT tab2.col2 + + col1 * col2 + tab2.col2 DIV col0 AS col0 FROM tab2
----
1560
684
867

skipif mysql # not compatible
query I rowsort label-5369
SELECT tab2.col2 + + col1 * col2 + tab2.col2 / col0 AS col0 FROM tab2
----
1560
684
867

query III rowsort
SELECT ALL * FROM tab1 WHERE ( + col1 * col0 + col2 * + col0 ) IN ( tab1.col2 + col1 * - col0 * - col0 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL BETWEEN ( NULL ) AND ( NULL )
----

query I rowsort
SELECT ALL col2 * col2 + - col1 + + tab1.col1 * col1 AS col2 FROM tab1
----
3339
3566
9372

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL > ( - col2 )
----

query I rowsort
SELECT ALL + col0 - - col2 FROM tab2
----
104
117
34

query I rowsort
SELECT ALL col0 AS col0 FROM tab2 WHERE - col2 <= - col0
----
7

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL <= + col2 * col0 + + col2
----

query I rowsort
SELECT col0 + col0 * + col0 AS col1 FROM tab1
----
12
4160
6480

onlyif mysql # use DIV operator for integer division
query I rowsort label-5378
SELECT DISTINCT - col2 DIV - col2 + - col0 FROM tab1 AS cor0
----
-2
-63
-79

skipif mysql # not compatible
query I rowsort label-5378
SELECT DISTINCT - col2 / - col2 + - col0 FROM tab1 AS cor0
----
-2
-63
-79

query I rowsort
SELECT DISTINCT + col1 * col1 - - col1 * col0 AS col2 FROM tab0 AS cor0
----
12804
16380
9460

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5380
SELECT 63 * col1 + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5380
SELECT 63 * col1 + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 * col2 + - 54 FROM tab0 AS cor0
----
-53
1035
6670

query I rowsort
SELECT DISTINCT + 16 + col2 FROM tab1 AS cor0
----
112
70
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * col1 - - ( + col0 ) col0 FROM tab1 AS cor0
----
-576
-75
-960

query I rowsort
SELECT ALL + col1 * col2 + 7 AS col2 FROM tab0 AS cor0
----
104
2845
7469

query I rowsort
SELECT + 95 + - col0 AS col0 FROM tab1 AS cor0
----
15
31
92

query I rowsort
SELECT ALL - ( col2 ) + ( col1 * + col2 + + 97 ) AS col2 FROM tab2 AS cor0
----
1605
705
907

query I rowsort
SELECT col0 * - tab0.col0 * - col0 AS col0 FROM tab0
----
13824
42875
704969

onlyif mysql # use DIV operator for integer division
query I rowsort label-5388
SELECT ALL - col0 DIV - tab1.col2 col2 FROM tab1
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5388
SELECT ALL - col0 / - tab1.col2 col2 FROM tab1
----
0
0
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-5389
SELECT ALL + col2 * col2 DIV + col1 AS col0 FROM tab2
----
11
23
84

skipif mysql # not compatible
query I rowsort label-5389
SELECT ALL + col2 * col2 / + col1 AS col0 FROM tab2
----
11
23
84

query I rowsort
SELECT - 73 AS col1 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 2931474b870c05694e446771031a6949

onlyif mysql # use DIV operator for integer division
query I rowsort label-5391
SELECT tab0.col1 * col0 DIV col2 AS col2 FROM tab0
----
3395
62
98

skipif mysql # not compatible
query I rowsort label-5391
SELECT tab0.col1 * col0 / col2 AS col2 FROM tab0
----
3395
62
98

query I rowsort
SELECT ALL + col2 * - col2 * + cor0.col0 AS col2 FROM tab2 AS cor0
----
-114076
-5103
-52728

query I rowsort
SELECT col1 * - col2 / col0 AS col1 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( - col2 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 * col1 <= col2
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-5395
SELECT DISTINCT col1 DIV col2 AS col2 FROM tab1 cor0 WHERE col0 IN ( col0 )
----
0

skipif mysql # not compatible
query I rowsort label-5395
SELECT DISTINCT col1 / col2 AS col2 FROM tab1 cor0 WHERE col0 IN ( col0 )
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5396
SELECT col2 * + col2 DIV - col2 FROM tab0 AS cor0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-5396
SELECT col2 * + col2 / - col2 FROM tab0 AS cor0
----
-1
-33
-82

onlyif mysql # use DIV operator for integer division
query I rowsort label-5397
SELECT ALL col2 DIV - col1 AS col2 FROM tab2 cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-5397
SELECT ALL col2 / - col1 AS col2 FROM tab2 cor0
----
-2
0
0

query I rowsort
SELECT - col0 + + col1 * col0 AS col2 FROM tab2
----
1264
210
4524

query I rowsort
SELECT - col1 - tab0.col2 FROM tab0 WHERE - col1 >= ( NULL )
----

query I rowsort
SELECT tab2.col1 FROM tab2 WHERE NOT NULL BETWEEN + col0 AND NULL
----

query I rowsort
SELECT ALL col1 - col1 * col0 FROM tab2
----
-1326
-186
-4543

query I rowsort
SELECT + ( col1 ) * + col0 * col1 FROM tab2 AS cor0
----
22831
271518
6727

query I rowsort
SELECT + 80 * col0 FROM tab2 AS cor0
----
560
6240
6320

query I rowsort
SELECT 50 FROM tab2, tab2 AS cor0, tab0 cor1
----
27 values hashing to 314aace40e704c20a6be06204a329f80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col1 ) * + col0 col0 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT DISTINCT + 60 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
60

query I rowsort
SELECT + 46 * + col2 + col0 FROM tab2
----
1249
1274
1827

query I rowsort
SELECT DISTINCT cor0.col2 * cor0.col0 AS col1 FROM tab2, tab0, tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT DISTINCT + col0 + col1 * col1 AS col0 FROM tab0 AS cor0
----
7420
8370
9444

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 94 * + col1 col0 FROM tab1 AS cor0
----
1222
2444
940

query I rowsort
SELECT ALL + - 34 FROM tab2 cor0
----
-34
-34
-34

query I rowsort
SELECT DISTINCT - 52 * + 8 FROM tab2
----
-416

query I rowsort
SELECT DISTINCT 16 AS col0 FROM tab1, tab1 AS cor0
----
16

query I rowsort
SELECT ALL - ( - col1 ) + col0 AS col2 FROM tab0
----
110
132
180

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5415
SELECT DISTINCT + tab2.col1 * tab2.col1 + - CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5415
SELECT DISTINCT + tab2.col1 * tab2.col1 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT - 37 + tab2.col1 AS col2 FROM tab2
----
-20
-6
22

onlyif mysql # use DIV operator for integer division
query I rowsort label-5417
SELECT col2 DIV - col0 + tab0.col1 * col1 * - col0 AS col1 FROM tab0
----
-177505
-329315
-737009

skipif mysql # not compatible
query I rowsort label-5417
SELECT col2 / - col0 + tab0.col1 * col1 * - col0 AS col1 FROM tab0
----
-177505
-329315
-737009

onlyif mysql # use DIV operator for integer division
query I rowsort label-5418
SELECT - col2 DIV + col1 + + col2 FROM tab2
----
26
27
36

skipif mysql # not compatible
query I rowsort label-5418
SELECT - col2 / + col1 + + col2 FROM tab2
----
26
27
36

query I rowsort
SELECT ALL col0 + + col2 * + col1 * col2 FROM tab1 AS cor0
----
119888
32554
75819

query I rowsort
SELECT ALL + + cor0.col0 + - col1 FROM tab0 AS cor0
----
-2
-62
-62

query I rowsort
SELECT col2 * - col2 * - 72 + - col2 AS col2 FROM tab1 AS cor0
----
209898
233871
663456

onlyif mysql # use DIV operator for integer division
query I rowsort label-5422
SELECT + - col1 DIV + col1 FROM tab1 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5422
SELECT + - col1 / + col1 FROM tab1 cor0
----
-1
-1
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-5423
SELECT + col0 DIV + 57 FROM tab2 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-5423
SELECT + col0 / + 57 FROM tab2 AS cor0
----
0
1
1

query I rowsort
SELECT DISTINCT col2 + + cor0.col2 FROM tab1 AS cor0
----
108
114
192

onlyif mysql # use DIV operator for integer division
query I rowsort label-5425
SELECT DISTINCT - - col1 DIV ( - col0 ) + - col0 DIV col1 + col2 * + col0 FROM tab2 AS cor0
----
185
2027
2998

skipif mysql # not compatible
query I rowsort label-5425
SELECT DISTINCT - - col1 / ( - col0 ) + - col0 / col1 + col2 * + col0 FROM tab2 AS cor0
----
185
2027
2998

query I rowsort
SELECT ALL - - col0 + + cor0.col2 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT DISTINCT - col1 * col1 * - 78 FROM tab0 AS cor0
----
576888
645918
733902

query I rowsort
SELECT DISTINCT - col0 * 81 * 67 - col2 FROM tab1 AS cor0
----
-16335
-347385
-434256

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * 2 col0 FROM tab1 AS cor0
----
108
114
192

onlyif mysql # use DIV operator for integer division
query I rowsort label-5430
SELECT ALL - col2 + col0 DIV + col1 FROM tab1 cor0
----
-51
-54
-90

skipif mysql # not compatible
query I rowsort label-5430
SELECT ALL - col2 + col0 / + col1 FROM tab1 cor0
----
-51
-54
-90

query I rowsort
SELECT DISTINCT ( col1 * - tab1.col0 ) + col0 AS col2 FROM tab1
----
-576
-75
-960

query I rowsort
SELECT - 42 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 9894093f29c0defae91347934f060329

query I rowsort
SELECT col1 + 60 AS col0 FROM tab2 AS cor0
----
119
77
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 35 col2 FROM tab2
----
35
35
35

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5435
SELECT ALL CAST( NULL AS SIGNED ) * col1 / col0 + col2 * + col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5435
SELECT ALL CAST ( NULL AS INTEGER ) * col1 / col0 + col2 * + col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5436
SELECT - CAST( + 22 AS SIGNED ) * - col2 AS col2 FROM tab2 AS cor0
----
572
594
836

skipif mysql # not compatible
query I rowsort label-5436
SELECT - CAST ( + 22 AS INTEGER ) * - col2 AS col2 FROM tab2 AS cor0
----
572
594
836

query I rowsort
SELECT + 6 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

query I rowsort
SELECT + - cor0.col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0

query I rowsort
SELECT + + col2 * + cor0.col1 AS col2 FROM tab0 AS cor0
----
2838
7462
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-5440
SELECT col0 * + col2 * - col2 + + col0 DIV + col1 FROM tab2 AS cor0
----
-114072
-5103
-52727

skipif mysql # not compatible
query I rowsort label-5440
SELECT col0 * + col2 * - col2 + + col0 / + col1 FROM tab2 AS cor0
----
-114072
-5103
-52727

query I rowsort
SELECT - col2 * 22 AS col2 FROM tab2 AS cor0
----
-572
-594
-836

query I rowsort
SELECT DISTINCT col1 + + col0 * col1 FROM tab0 cor0
----
2150
3492
8190

query I rowsort
SELECT ALL - col0 - - col1 * col1 FROM tab0 AS cor0
----
7372
8192
9374

query I rowsort
SELECT ALL - col2 * - col1 - col1 FROM tab1 cor0
----
1235
1378
560

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - col2 * col2 col0 FROM tab2 AS cor0
----
-1406
-650
-702

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5446
SELECT ALL + CAST( ( - col2 ) AS SIGNED ) AS col1 FROM tab1
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-5446
SELECT ALL + CAST ( ( - col2 ) AS INTEGER ) AS col1 FROM tab1
----
-54
-57
-96

query I rowsort
SELECT DISTINCT 8 * cor0.col0 AS col0 FROM tab2, tab2 AS cor0
----
56
624
632

query I rowsort
SELECT + col1 * col0 * cor0.col0 FROM tab0 cor0
----
118825
49536
720811

query I rowsort
SELECT col2 + 35 + - 98 AS col1 FROM tab2 AS cor0
----
-25
-36
-37

query I rowsort
SELECT col1 * - 23 - - col0 * + col2 AS col1 FROM tab1 AS cor0
----
-436
3418
7381

query I rowsort
SELECT + col2 * col1 + ( cor0.col0 ) + + cor0.col2 * col2 AS col1 FROM tab2 AS cor0
----
1573
2169
2288

query I rowsort
SELECT - col1 + + col0 * - 56 + + col1 FROM tab1 AS cor0
----
-168
-3584
-4480

query I rowsort
SELECT col0 + - col0 * col1 + col2 AS col0 FROM tab2 AS cor0
----
-1226
-183
-4498

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - col0 + - 41 col0 FROM tab2
----
-41
-41
-41

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5455
SELECT - col2 * CAST( NULL AS SIGNED ) + col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5455
SELECT - col2 * CAST ( NULL AS INTEGER ) + col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col1 + col1 * + ( col2 ) * col0 FROM tab2
----
119593
51017
5828

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2 cor0 CROSS JOIN tab1, tab0 AS cor1, tab0 cor2
----
972 values hashing to 8b4fcda7f1ca76bad7c7d728f54a51e0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + ( col2 ) col0 FROM tab2
----
189
2028
3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col1 col1 FROM tab2 cor0
----
-17
-31
-59

query I rowsort
SELECT DISTINCT + cor0.col1 + + col0 + - col0 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT ALL col0 * + col0 + col1 AS col2 FROM tab1 AS cor0
----
35
4106
6413

query I rowsort
SELECT - + cor0.col0 + col2 * - col0 AS col1 FROM tab0 cor0
----
-70
-7387
-816

onlyif mysql # use DIV operator for integer division
query I rowsort label-5463
SELECT DISTINCT - col1 + - col0 DIV - col1 FROM tab1 AS cor0
----
-26
-4
-7

skipif mysql # not compatible
query I rowsort label-5463
SELECT DISTINCT - col1 + - col0 / - col1 FROM tab1 AS cor0
----
-26
-4
-7

query I rowsort
SELECT DISTINCT + col0 * col2 + col1 * cor0.col0 * cor0.col1 FROM tab0 AS cor0
----
178296
329350
744307

query I rowsort
SELECT + col2 * + col0 + - col2 + col1 FROM tab1 cor0
----
134
3601
7597

onlyif mysql # use DIV operator for integer division
query I rowsort label-5466
SELECT - + cor0.col2 * col2 DIV col1 AS col0 FROM tab2 AS cor0
----
-11
-23
-84

skipif mysql # not compatible
query I rowsort label-5466
SELECT - + cor0.col2 * col2 / col1 AS col0 FROM tab2 AS cor0
----
-11
-23
-84

query I rowsort
SELECT ALL - + cor0.col2 * col2 FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT ALL col1 - + col0 FROM tab1
----
-54
-67
23

query I rowsort
SELECT ALL col0 + + col2 - col0 AS col1 FROM tab0
----
1
33
82

query I rowsort
SELECT DISTINCT - col1 - tab0.col0 AS col1 FROM tab0
----
-110
-132
-180

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col0 * - col2 IN ( tab2.col0 * tab2.col0 * col0 + - col1 * + col0 ) AND NOT NULL NOT IN ( - col2 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-5472
SELECT ALL - col1 + col2 DIV col2 + col0 FROM tab1
----
-22
55
68

skipif mysql # not compatible
query I rowsort label-5472
SELECT ALL - col1 + col2 / col2 + col0 FROM tab1
----
-22
55
68

query I rowsort
SELECT - col2 + - col2 * - col0 FROM tab1
----
108
3591
7584

query I rowsort
SELECT ALL - tab1.col0 + - col2 * - col0 * col1 FROM tab1
----
36416
4209
99760

query I rowsort
SELECT DISTINCT tab0.col0 + + tab0.col2 * - col2 + col2 * col0 * - col1 FROM tab0
----
-3361
-670753
-69177

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + col2 * + col0 col2 FROM tab0 AS cor0
----
70
7387
816

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 + - col2 * col1 col1 FROM tab1 AS cor0
----
-1152
-1350
-513

query I rowsort
SELECT DISTINCT + col1 * + col0 AS col1 FROM tab0 cor0
----
2064
3395
8099

query I rowsort
SELECT ALL ( col2 + col0 ) FROM tab2
----
104
117
34

onlyif mysql # use DIV operator for integer division
query I rowsort label-5480
SELECT - 30 DIV col1 FROM tab1
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-5480
SELECT - 30 / col1 FROM tab1
----
-1
-2
-3

query I rowsort
SELECT - col0 + - cor0.col0 AS col0 FROM tab2 AS cor0
----
-14
-156
-158

query I rowsort
SELECT - + cor0.col0 + + col2 AS col2 FROM tab0 AS cor0
----
-34
-7
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-5483
SELECT - col1 DIV - col2 + + col2 FROM tab0 AS cor0
----
35
83
98

skipif mysql # not compatible
query I rowsort label-5483
SELECT - col1 / - col2 + + col2 FROM tab0 AS cor0
----
35
83
98

query I rowsort
SELECT ALL - col0 + + col1 * col2 AS col0 FROM tab1
----
1168
1401
506

onlyif mysql # use DIV operator for integer division
query I rowsort label-5485
SELECT ALL - - cor0.col0 DIV - col2 + + cor0.col1 * - col1 + + col0 FROM tab0 AS cor0
----
-7372
-8193
-9409

skipif mysql # not compatible
query I rowsort label-5485
SELECT ALL - - cor0.col0 / - col2 + + cor0.col1 * - col1 + + col0 FROM tab0 AS cor0
----
-7372
-8193
-9409

query I rowsort
SELECT DISTINCT - col1 * - cor0.col1 - + col1 * + cor0.col0 FROM tab0 AS cor0
----
182
5332
6014

onlyif mysql # use DIV operator for integer division
query I rowsort label-5487
SELECT DISTINCT + - col1 + + col0 DIV col0 FROM tab1 cor0
----
-12
-25
-9

skipif mysql # not compatible
query I rowsort label-5487
SELECT DISTINCT + - col1 + + col0 / col0 FROM tab1 cor0
----
-12
-25
-9

query I rowsort
SELECT col0 * col2 + col0 AS col0 FROM tab2 cor0
----
196
2106
3081

query I rowsort
SELECT + - cor0.col0 - - col0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5490
SELECT ALL + cor0.col2 * cor0.col2 + col2 DIV - col2 + col0 AS col2 FROM tab1 AS cor0
----
2918
3312
9295

skipif mysql # not compatible
query I rowsort label-5490
SELECT ALL + cor0.col2 * cor0.col2 + col2 / - col2 + col0 AS col2 FROM tab1 AS cor0
----
2918
3312
9295

query I rowsort
SELECT ALL - - col1 * - cor0.col0 + cor0.col0 * col0 AS col2 FROM tab0 AS cor0
----
-1488
-178
-2170

query I rowsort
SELECT DISTINCT col1 * col1 + - col2 + - col0 * + col0 AS col0 FROM tab1 cor0
----
-4053
-6327
613

query I rowsort
SELECT col0 * - col2 + 40 * + 7 FROM tab2
----
-1748
-2722
91

query I rowsort
SELECT DISTINCT - 32 * - col0 + cor0.col0 + cor0.col0 FROM tab0 AS cor0
----
1190
3026
816

query I rowsort
SELECT + 14 + col1 * ( - col0 + col0 ) AS col2 FROM tab0 AS cor0
----
14
14
14

query I rowsort
SELECT DISTINCT cor0.col0 + cor0.col2 FROM tab2 AS cor0
----
104
117
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + cor0.col0 ) * ( + ( col1 ) ) - ( - col2 ) * - col2 col2 FROM tab2 AS cor0
----
-2787
-5278
-946

query I rowsort
SELECT - tab2.col1 * col1 + 30 * - ( + col2 * col1 ) AS col0 FROM tab2
----
-19669
-26071
-49501

query I rowsort
SELECT ALL + ( - 56 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 3d3dab400eef93c098acbbba3fc9bdc6

query I rowsort
SELECT - cor2.col1 FROM tab1, tab1 AS cor0, tab1 AS cor1, tab0 AS cor2
----
81 values hashing to 786a240f80bef6f9c6a190e92cd4f9e8

query I rowsort
SELECT + + col2 * + ( cor0.col1 ) FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT DISTINCT - col2 * - 10 AS col0 FROM tab0 AS cor0
----
10
330
820

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5503
SELECT ALL + col0 / CAST( NULL AS DECIMAL ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5503
SELECT ALL + col0 / CAST ( NULL AS REAL ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * 82 + 96 * - col2 col2 FROM tab0 AS cor0
----
-1148
-14
-462

query I rowsort
SELECT DISTINCT col2 * + 89 * col0 FROM tab1 AS cor0
----
14418
324672
683520

query I rowsort
SELECT ALL + + col2 * + col1 AS col1 FROM tab0 cor0
----
2838
7462
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 + col1 * col0 * cor0.col1 col0 FROM tab0 AS cor0
----
177480
329280
736920

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * col0 col0 FROM tab2 AS cor0
----
49
6084
6241

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + - col0 col1 FROM tab2 cor0
----
-19
-62
24

onlyif mysql # use DIV operator for integer division
query I rowsort label-5510
SELECT cor1.col1 DIV - 90 AS col1 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

skipif mysql # not compatible
query I rowsort label-5510
SELECT cor1.col1 / - 90 AS col1 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

query I rowsort
SELECT col2 * 53 AS col0 FROM tab2
----
1378
1431
2014

query I rowsort
SELECT col2 + + col0 * col0 + col1 * - cor0.col0 AS col0 FROM tab0 AS cor0
----
-1455
-2169
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-5513
SELECT DISTINCT - + col2 * col0 - col0 DIV 61 FROM tab2 AS cor0
----
-189
-2029
-3003

skipif mysql # not compatible
query I rowsort label-5513
SELECT DISTINCT - + col2 * col0 - col0 / 61 FROM tab2 AS cor0
----
-189
-2029
-3003

query I rowsort
SELECT - + col2 + - 68 FROM tab2 cor0
----
-106
-94
-95

query I rowsort
SELECT - cor0.col2 FROM tab0, tab0 AS cor0, tab0 AS cor1, tab0 cor2
----
81 values hashing to 87af467938ef355540b8de24db1bf3b8

query I rowsort
SELECT DISTINCT + cor0.col2 - col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT + col0 * - col0 + col0 * 83 * col0 + col1 * + col0 AS col0 FROM tab2 AS cor0
----
4235
503490
513105

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( col0 ) + + col0 col2 FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT DISTINCT - - ( 24 ) FROM tab2 AS cor0
----
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col0 * + col0 + col2 + - ( cor0.col2 + - col0 ) col0 FROM tab2 AS cor0
----
-42
-6006
-6162

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 - col2 * cor0.col0 col1 FROM tab2 AS cor0
----
-2087
-220
-3019

query I rowsort
SELECT ALL ( - col0 ) + - cor0.col0 FROM tab0 AS cor0
----
-178
-48
-70

onlyif mysql # use DIV operator for integer division
query I rowsort label-5523
SELECT ALL + 13 DIV - col0 AS col2 FROM tab1 AS cor0
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-5523
SELECT ALL + 13 / - col0 AS col2 FROM tab1 AS cor0
----
-4
0
0

query I rowsort
SELECT - - 86 * col0 + 27 * col0 FROM tab0 cor0
----
10057
2712
3955

query I rowsort
SELECT DISTINCT - - 41 * - col2 + - col1 FROM tab0 AS cor0
----
-138
-1439
-3453

query I rowsort
SELECT ALL + ( col1 ) * - 29 FROM tab1 AS cor0
----
-290
-377
-754

query I rowsort
SELECT ALL ( + col0 ) * + 85 FROM tab1 AS cor0
----
255
5440
6800

query I rowsort
SELECT ALL col1 * + col2 + 29 - + 13 * col0 AS col0 FROM tab2 AS cor0
----
-352
549
775

query I rowsort
SELECT ALL col1 * col2 - - col0 * + cor0.col2 FROM tab1 AS cor0
----
1566
4218
8928

query I rowsort
SELECT DISTINCT + - col1 * - col1 + col2 FROM tab0 AS cor0
----
7429
8363
9410

query I rowsort
SELECT + + 56 * + col2 AS col1 FROM tab2 AS cor0
----
1456
1512
2128

query I rowsort
SELECT - 30 + + 92 FROM tab2
----
62
62
62

query I rowsort
SELECT DISTINCT + col1 * + col0 + - col2 FROM tab0
----
2031
3394
8017

query I rowsort
SELECT DISTINCT 79 + + ( - tab1.col2 ) AS col0 FROM tab1
----
-17
22
25

query I rowsort
SELECT DISTINCT 21 * col1 AS col1 FROM tab0 AS cor0
----
1806
1911
2037

query I rowsort
SELECT ALL - 41 AS col2 FROM tab0 AS cor0
----
-41
-41
-41

query I rowsort
SELECT DISTINCT + - cor0.col1 * cor0.col2 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT ALL + tab0.col0 * - 31 AS col0 FROM tab0
----
-1085
-2759
-744

onlyif mysql # use DIV operator for integer division
query I rowsort label-5539
SELECT DISTINCT - cor0.col0 DIV col0 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5539
SELECT DISTINCT - cor0.col0 / col0 FROM tab2 AS cor0
----
-1

query I rowsort
SELECT DISTINCT + 74 * cor0.col0 AS col1 FROM tab1 AS cor0
----
222
4736
5920

query I rowsort
SELECT + 51 + col2 AS col2 FROM tab2 AS cor0
----
77
78
89

query I rowsort
SELECT ALL - 77 * + col1 FROM tab2 AS cor0
----
-1309
-2387
-4543

onlyif mysql # use DIV operator for integer division
query I rowsort label-5543
SELECT + - col0 + + col0 DIV col2 + col2 FROM tab1 AS cor0
----
-6
16
51

skipif mysql # not compatible
query I rowsort label-5543
SELECT + - col0 + + col0 / col2 + col2 FROM tab1 AS cor0
----
-6
16
51

onlyif mysql # use DIV operator for integer division
query I rowsort label-5544
SELECT DISTINCT + col0 * - col0 + - col1 DIV + col2 FROM tab0
----
-1322
-578
-7922

skipif mysql # not compatible
query I rowsort label-5544
SELECT DISTINCT + col0 * - col0 + - col1 / + col2 FROM tab0
----
-1322
-578
-7922

query I rowsort
SELECT + + cor0.col1 * col2 * col1 + + ( - col0 ) * - col2 + col2 FROM tab1 AS cor0
----
24000
36720
9405

query I rowsort
SELECT DISTINCT - 21 FROM tab0, tab2 AS cor0
----
-21

query I rowsort
SELECT - ( col1 * + col2 ) FROM tab2
----
-1534
-646
-837

onlyif mysql # use DIV operator for integer division
query I rowsort label-5548
SELECT - 42 DIV col1 + col2 * col2 FROM tab1
----
2915
3245
9213

skipif mysql # not compatible
query I rowsort label-5548
SELECT - 42 / col1 + col2 * col2 FROM tab1
----
2915
3245
9213

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab1.col1 * col0 col1 FROM tab1
----
-1040
-640
-78

query I rowsort
SELECT ALL + tab2.col1 * col1 * + ( + col0 ) AS col0 FROM tab2
----
22831
271518
6727

query I rowsort
SELECT + col1 + + 27 + col2 FROM tab0 AS cor0
----
125
146
200

query I rowsort
SELECT ALL 3 AS col2 FROM tab0 AS cor0
----
3
3
3

query I rowsort
SELECT 96 * - 99 - col0 FROM tab1 cor0
----
-9507
-9568
-9584

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + ( col0 ) col0 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT col0 * 2 + - col0 * - col1 + 60 FROM tab0 AS cor0
----
2172
3525
8337

query I rowsort
SELECT + - tab2.col0 AS col0 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to c82df1de3cb666224690a83f3d790d79

query I rowsort
SELECT ALL col0 * 3 AS col1 FROM tab2
----
21
234
237

query I rowsort
SELECT - col2 + 37 + - col1 AS col1 FROM tab1
----
-30
-43
-72

query I rowsort
SELECT DISTINCT + 33 + col0 AS col0 FROM tab0
----
122
57
68

query I rowsort
SELECT ALL - - 2 FROM tab0 AS cor0
----
2
2
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 * + col1 col0 FROM tab1 cor0
----
100
169
676

query I rowsort
SELECT ALL - 13 AS col2 FROM tab1 AS cor0
----
-13
-13
-13

query I rowsort
SELECT DISTINCT + ( + 42 ) AS col1 FROM tab1 AS cor0
----
42

query I rowsort
SELECT + + ( + col1 ) - - col1 FROM tab1 cor0
----
20
26
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - col2 col1 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT ALL - col0 * cor0.col2 AS col1 FROM tab0 cor0
----
-35
-7298
-792

query I rowsort
SELECT 9 AS col1 FROM tab1, tab1 AS cor0, tab0, tab1 cor1
----
81 values hashing to b7e6b25481699c3a4ee7381c7eae0817

query I rowsort
SELECT ALL + 51 FROM tab2, tab0 AS cor0
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752

query I rowsort
SELECT ALL + 4 AS col2 FROM tab0 AS cor0
----
4
4
4

query I rowsort
SELECT DISTINCT + 81 + col2 * - col1 FROM tab0 AS cor0
----
-16
-2757
-7381

skipif mysql # not compatible
query I rowsort
SELECT CAST ( 44 AS REAL ) + cor0.col1 FROM tab1 AS cor0
----
54
57
70

query I rowsort
SELECT - col2 * 33 FROM tab0
----
-1089
-2706
-33

query I rowsort
SELECT ALL + col2 * 66 AS col1 FROM tab0
----
2178
5412
66

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5574
SELECT + CAST( 65 AS SIGNED ) * + tab1.col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 1bef3b3725360b6cb7970d1b611ca310

skipif mysql # not compatible
query I rowsort label-5574
SELECT + CAST ( 65 AS INTEGER ) * + tab1.col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 1bef3b3725360b6cb7970d1b611ca310

query I rowsort
SELECT col0 + ( - col1 ) AS col1 FROM tab0 AS cor0
----
-2
-62
-62

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2 cor0, tab1 AS cor1, tab0, tab2 cor2
----
3645 values hashing to 149298fc0224e93f3bc2df24a3ebeeb8

query I rowsort
SELECT + col2 + + cor0.col2 * - col2 FROM tab2 AS cor0
----
-1406
-650
-702

query I rowsort
SELECT - ( + col2 ) * col2 + col1 FROM tab0 AS cor0
----
-1003
-6633
96

skipif mysql # not compatible
query I rowsort
SELECT - + CAST ( 55 AS REAL ) * - col0 + 5 / - 34 FROM tab2 AS cor0
----
385
4290
4345

query I rowsort
SELECT - - 68 * 29 FROM tab0 AS cor0
----
1972
1972
1972

query I rowsort
SELECT DISTINCT - 42 * cor0.col2 AS col0 FROM tab0 AS cor0
----
-1386
-3444
-42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - col2 ) + - col1 col0 FROM tab1 cor0
----
-109
-67
-80

query I rowsort
SELECT DISTINCT + 94 + col0 FROM tab0 AS cor0
----
118
129
183

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + + CAST ( col1 AS REAL ) * - col2 + + col2 AS col0 FROM tab0 AS cor0
----
-2805
-7380
-96

query I rowsort
SELECT + - 43 * col0 FROM tab1 AS cor0
----
-129
-2752
-3440

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5586
SELECT - CAST( - ( + col1 ) AS SIGNED ) + - CAST( - cor0.col0 AS SIGNED ) * - cor0.col0 * 24 FROM tab0 AS cor0
----
-13738
-190013
-29303

skipif mysql # not compatible
query I rowsort label-5586
SELECT - CAST ( - ( + col1 ) AS INTEGER ) + - CAST ( - cor0.col0 AS INTEGER ) * - cor0.col0 * 24 FROM tab0 AS cor0
----
-13738
-190013
-29303

query I rowsort
SELECT - + 88 + col0 AS col2 FROM tab0 AS cor0
----
-53
-64
1

query I rowsort
SELECT 40 * - col1 FROM tab2 AS cor0
----
-1240
-2360
-680

query I rowsort
SELECT DISTINCT - 82 * - col1 FROM tab1 AS cor0
----
1066
2132
820

onlyif mysql # use DIV operator for integer division
query I rowsort label-5590
SELECT + - col2 - - col1 DIV - col1 FROM tab0 cor0
----
-2
-34
-83

skipif mysql # not compatible
query I rowsort label-5590
SELECT + - col2 - - col1 / - col1 FROM tab0 cor0
----
-2
-34
-83

query I rowsort
SELECT + col0 + - col2 * col2 - - col2 AS col1 FROM tab2 AS cor0
----
-1327
-572
-695

query I rowsort
SELECT - 61 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 51f53697966a79d306a4570537cd91a1

query I rowsort
SELECT 57 + col0 AS col1 FROM tab2 AS cor0
----
135
136
64

query I rowsort
SELECT + 98 * col1 * col0 FROM tab0 AS cor0
----
202272
332710
793702

onlyif mysql # use DIV operator for integer division
query I rowsort label-5595
SELECT - col0 - + cor0.col2 DIV + col1 FROM tab2 AS cor0
----
-7
-78
-81

skipif mysql # not compatible
query I rowsort label-5595
SELECT - col0 - + cor0.col2 / + col1 FROM tab2 AS cor0
----
-7
-78
-81

query I rowsort
SELECT + - col1 * + col2 AS col1 FROM tab0 cor0
----
-2838
-7462
-97

query I rowsort
SELECT + col0 + 66 FROM tab2 AS cor0
----
144
145
73

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5598
SELECT DISTINCT CAST( NULL AS SIGNED ) + - 90 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-5598
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - 90 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

query I rowsort
SELECT - col0 + - 77 * + col1 AS col1 FROM tab2 AS cor0
----
-1388
-2394
-4621

query I rowsort
SELECT ALL + cor0.col0 + - col2 * col1 FROM tab1 AS cor0
----
-1168
-1401
-506

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 + col2 * cor0.col2 col1 FROM tab2 AS cor0
----
1427
617
698

query I rowsort
SELECT DISTINCT + - col1 * + 21 FROM tab0 AS cor0
----
-1806
-1911
-2037

query I rowsort
SELECT DISTINCT cor0.col1 + 81 AS col2 FROM tab1 AS cor0
----
107
91
94

query I rowsort
SELECT - col0 + col0 * - ( col2 ) + - col0 FROM tab1 cor0
----
-168
-3776
-7840

query I rowsort
SELECT + - col1 + - 2 FROM tab2 AS cor0
----
-19
-33
-61

query I rowsort
SELECT + col1 * - cor0.col1 AS col1 FROM tab1 cor0
----
-100
-169
-676

query I rowsort
SELECT DISTINCT - 40 AS col2 FROM tab2
----
-40

query I rowsort
SELECT ALL + 15 AS col0 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 71dda9a71fc978ea7b0ac5d8cd2ef1f0

query I rowsort
SELECT col0 * col1 * ( - col0 ) FROM tab1 AS cor0
----
-234
-40960
-83200

query I rowsort
SELECT - col0 * - col0 - col1 FROM tab2 AS cor0
----
18
6025
6224

query I rowsort
SELECT DISTINCT + cor0.col1 + + 40 AS col2 FROM tab1 AS cor0
----
50
53
66

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5612
SELECT ALL - col0 * CAST( ( - col0 ) AS SIGNED ) FROM tab2 AS cor0
----
49
6084
6241

skipif mysql # not compatible
query I rowsort label-5612
SELECT ALL - col0 * CAST ( ( - col0 ) AS INTEGER ) FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT + col0 + 29 * + col0 AS col2 FROM tab0 AS cor0
----
1050
2670
720

query I rowsort
SELECT DISTINCT col1 * 16 + - col1 * col1 * col2 FROM tab2 cor0
----
-10710
-25451
-89562

query I rowsort
SELECT ALL col1 * col2 + 65 FROM tab0 AS cor0
----
162
2903
7527

query I rowsort
SELECT ALL - - col0 + col0 AS col1 FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT DISTINCT - 85 AS col1 FROM tab1, tab1 AS cor0
----
-85

query I rowsort
SELECT DISTINCT + col2 - col2 * - tab0.col1 FROM tab0
----
2871
7544
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-5619
SELECT ALL + 37 + - col2 DIV + col0 FROM tab2 cor0
----
34
37
37

skipif mysql # not compatible
query I rowsort label-5619
SELECT ALL + 37 + - col2 / + col0 FROM tab2 cor0
----
34
37
37

query I rowsort
SELECT DISTINCT - ( col1 ) * cor0.col2 AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT ALL ( - cor0.col0 ) * + cor0.col2 FROM tab2, tab1 AS cor0
----
9 values hashing to f7e57a354e4e5925116b9650d1011609

query I rowsort
SELECT DISTINCT - 59 FROM tab1
----
-59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5623
SELECT col1 - - col0 * - CAST( + 38 AS SIGNED ) FROM tab0
----
-1233
-3291
-826

skipif mysql # not compatible
query I rowsort label-5623
SELECT col1 - - col0 * - CAST ( + 38 AS INTEGER ) FROM tab0
----
-1233
-3291
-826

query I rowsort
SELECT 64 + col2 * - 50 FROM tab1
----
-2636
-2786
-4736

query I rowsort
SELECT - + cor0.col0 + + col0 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - - cor0.col0 * + col1 * col1 AS col0 FROM tab0 AS cor0
----
177504
329315
737009

query I rowsort
SELECT DISTINCT 76 AS col1 FROM tab0 AS cor0
----
76

query I rowsort
SELECT DISTINCT - 32 + cor0.col2 FROM tab1 AS cor0
----
22
25
64

query I rowsort
SELECT - - ( - cor0.col0 ) * - col2 * - col0 FROM tab0 AS cor0
----
-1225
-19008
-649522

query I rowsort
SELECT DISTINCT ( + col1 ) * cor0.col0 AS col1 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT DISTINCT - - 66 * + col1 AS col1 FROM tab0 AS cor0
----
5676
6006
6402

query I rowsort
SELECT ALL + 37 + + col2 AS col0 FROM tab0 AS cor0
----
119
38
70

query I rowsort
SELECT + ( + col2 ) * + col1 + - 0 * cor0.col0 AS col1 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT col1 * - ( + col1 ) * - col1 + 23 FROM tab2
----
205402
29814
4936

query I rowsort
SELECT DISTINCT + col0 * - ( + col0 ) + ( - 9 ) AS col0 FROM tab1 AS cor0
----
-18
-4105
-6409

query I rowsort
SELECT + col2 * - col0 * - col2 + col0 FROM tab2 cor0
----
114155
5110
52806

query I rowsort
SELECT + ( - col1 ) * - col1 + ( col2 + - col0 ) FROM tab1 AS cor0
----
185
727
93

query I rowsort
SELECT + 81 * + 22 FROM tab2 AS cor0
----
1782
1782
1782

query I rowsort
SELECT + cor0.col1 * - ( cor0.col2 ) + col0 * + 4 - - col1 FROM tab1 cor0
----
-1366
-304
-915

query I rowsort
SELECT - col1 + 54 * - col1 FROM tab0 cor0
----
-4730
-5005
-5335

onlyif mysql # use DIV operator for integer division
query I rowsort label-5641
SELECT DISTINCT + + cor0.col2 * 21 DIV - col2 + cor0.col2 col0 FROM tab1 AS cor0
----
33
36
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5641
SELECT DISTINCT + + cor0.col2 * 21 / - col2 + cor0.col2 col0 FROM tab1 AS cor0
----
33
36
75

onlyif mysql # use DIV operator for integer division
query I rowsort label-5642
SELECT cor0.col0 * + col2 + - col2 * col1 + col2 DIV col1 AS col1 FROM tab1 AS cor0
----
-1240
3083
6439

skipif mysql # not compatible
query I rowsort label-5642
SELECT cor0.col0 * + col2 + - col2 * col1 + col2 / col1 AS col1 FROM tab1 AS cor0
----
-1240
3083
6439

query I rowsort
SELECT col0 * + col1 * + col2 FROM tab1
----
36480
4212
99840

onlyif mysql # use DIV operator for integer division
query I rowsort label-5644
SELECT + col2 DIV 78 + 61 col2 FROM tab2
----
61
61
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5644
SELECT + col2 / 78 + 61 col2 FROM tab2
----
61
61
61

query I rowsort
SELECT DISTINCT - col0 * col2 * + tab2.col0 AS col0 FROM tab2
----
-1323
-158184
-237158

query I rowsort
SELECT col1 * ( - col1 * + col2 ) FROM tab1
----
-16224
-36504
-5700

query I rowsort
SELECT ALL col1 + col0 * + col2 AS col0 FROM tab0
----
132
7389
878

query I rowsort
SELECT DISTINCT - col1 + ( - 1 ) * col1 + + ( col1 * col0 ) FROM tab2
----
1309
155
4484

query I rowsort
SELECT DISTINCT - col0 + 64 FROM tab1
----
-16
0
61

query I rowsort
SELECT DISTINCT + col0 * ( + col2 ) + col2 FROM tab2 AS cor0
----
2054
216
3040

query I rowsort
SELECT - cor0.col1 * + cor0.col1 + col0 * - col1 FROM tab1 AS cor0
----
-1209
-740
-754

query I rowsort
SELECT DISTINCT - col1 * + col0 + ( col1 ) AS col1 FROM tab1 AS cor0
----
-1027
-52
-630

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5653
SELECT DISTINCT + col1 * ( 51 ) * + col2 + CAST( NULL AS SIGNED ) + - col0 * - col1 AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5653
SELECT DISTINCT + col1 * ( 51 ) * + col2 + CAST ( NULL AS INTEGER ) + - col0 * - col1 AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + col1 + ( + col1 + - col1 ) AS col0 FROM tab0 AS cor0
----
86
91
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5655
SELECT DISTINCT - col1 * CAST( NULL AS SIGNED ) AS col2 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5655
SELECT DISTINCT - col1 * CAST ( NULL AS INTEGER ) AS col2 FROM tab2 cor0
----
NULL

query I rowsort
SELECT ALL + + col0 + 15 FROM tab2 AS cor0
----
22
93
94

onlyif mysql # use DIV operator for integer division
query I rowsort label-5657
SELECT col2 + col0 DIV - col0 col1 FROM tab2 AS cor0
----
25
26
37

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5657
SELECT col2 + col0 / - col0 col1 FROM tab2 AS cor0
----
25
26
37

query I rowsort
SELECT ALL - col1 * ( 80 + - col1 ) FROM tab0 cor0
----
1001
1649
516

query I rowsort
SELECT + cor0.col0 - ( - ( col0 ) ) FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT ALL + col2 * - 53 + + ( - col2 ) FROM tab2 AS cor0
----
-1404
-1458
-2052

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5661
SELECT CAST( + 39 AS SIGNED ) AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf

skipif mysql # not compatible
query I rowsort label-5661
SELECT CAST ( + 39 AS INTEGER ) AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 - col0 col0 FROM tab0 AS cor0
----
-178
-48
-70

query I rowsort
SELECT DISTINCT - col2 * col2 * 4 FROM tab1 AS cor0
----
-11664
-12996
-36864

query I rowsort
SELECT - cor0.col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0

query I rowsort
SELECT - + 56 * + 98 FROM tab2 AS cor0 CROSS JOIN tab1, tab2 AS cor1
----
27 values hashing to b0e13ea0339c6125903a7227974ff191

query I rowsort
SELECT DISTINCT col2 * + ( col2 ) - col0 * - cor0.col0 * 72 FROM tab1 AS cor0
----
298161
3564
470016

onlyif mysql # use DIV operator for integer division
query I rowsort label-5667
SELECT ALL ( + col1 + col2 ) DIV - tab1.col1 AS col0 FROM tab1
----
-3
-6
-8

skipif mysql # not compatible
query I rowsort label-5667
SELECT ALL ( + col1 + col2 ) / - tab1.col1 AS col0 FROM tab1
----
-3
-6
-8

query I rowsort
SELECT ALL + ( 99 * col2 ) FROM tab1
----
5346
5643
9504

onlyif mysql # use DIV operator for integer division
query I rowsort label-5669
SELECT ALL - ( - 7 ) * + col2 DIV - col2 AS col0 FROM tab0
----
-7
-7
-7

skipif mysql # not compatible
query I rowsort label-5669
SELECT ALL - ( - 7 ) * + col2 / - col2 AS col0 FROM tab0
----
-7
-7
-7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5670
SELECT - + CAST( + 26 AS SIGNED ) + cor0.col1 FROM tab1 AS cor0
----
-13
-16
0

skipif mysql # not compatible
query I rowsort label-5670
SELECT - + CAST ( + 26 AS INTEGER ) + cor0.col1 FROM tab1 AS cor0
----
-13
-16
0

query I rowsort
SELECT + - ( + 9 ) * - col2 * - col2 + + col2 FROM tab0 AS cor0
----
-60434
-8
-9768

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5672
SELECT + CAST( NULL AS SIGNED ) * - col2 - + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5672
SELECT + CAST ( NULL AS INTEGER ) * - col2 - + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + cor2.col0 FROM tab0, tab2 AS cor0, tab0 AS cor1, tab2, tab2 AS cor2
----
243 values hashing to 455e4df3bf7b0fa681c56e89df1a761f

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5674
SELECT - 12 + col0 / CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5674
SELECT - 12 + col0 / CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - ( - col1 ) * - 85 AS col2 FROM tab0 cor0
----
-7310
-7735
-8245

query I rowsort
SELECT DISTINCT - - 5 * col1 AS col0 FROM tab0 AS cor0
----
430
455
485

query I rowsort
SELECT - cor0.col1 * - 71 - - 47 FROM tab1 AS cor0
----
1893
757
970

query I rowsort
SELECT - col0 - ( col2 * col0 ) FROM tab1 AS cor0
----
-165
-3712
-7760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + col0 - + 23 col2 FROM tab0 AS cor0
----
-58
-7321
-815

query I rowsort
SELECT - + col1 + - col1 AS col2 FROM tab0 cor0
----
-172
-182
-194

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5681
SELECT CAST( NULL AS SIGNED ) FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-5681
SELECT CAST ( NULL AS INTEGER ) FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT + tab1.col1 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

query I rowsort
SELECT ALL + + col1 + - cor0.col0 AS col0 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT + col0 * - col1 - col1 AS col2 FROM tab2 AS cor0
----
-1360
-248
-4661

query I rowsort
SELECT - + col2 + + col1 + cor0.col1 FROM tab1 cor0
----
-2
-37
-70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col2 + cor0.col2 col2 FROM tab0 cor0
----
1122
2
6806

query I rowsort
SELECT ALL + col2 - tab2.col0 FROM tab2
----
-41
-52
20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col1 + 22 col0 FROM tab0 AS cor0
----
194
204
216

query I rowsort
SELECT col0 * col0 + - col0 * - 67 FROM tab2 AS cor0
----
11310
11534
518

onlyif mysql # use DIV operator for integer division
query I rowsort label-5690
SELECT ALL col1 * - col2 + 87 DIV + col1 + - col0 FROM tab0
----
-132
-2861
-7551

skipif mysql # not compatible
query I rowsort label-5690
SELECT ALL col1 * - col2 + 87 / + col1 + - col0 FROM tab0
----
-132
-2861
-7551

query I rowsort
SELECT 62 - cor1.col1 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to f6fe354acdb39e0d178c0589038fdb20

query I rowsort
SELECT DISTINCT + + col1 * + col1 + cor0.col1 FROM tab1 AS cor0
----
110
182
702

query I rowsort
SELECT + col1 + col0 * + col1 AS col2 FROM tab2 AS cor0
----
1360
248
4661

onlyif mysql # use DIV operator for integer division
query I rowsort label-5694
SELECT + - col1 DIV + col2 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5694
SELECT + - col1 / + col2 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + 62 * + col1 AS col1 FROM tab1
----
1612
620
806

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5696
SELECT ALL - CAST( NULL AS SIGNED ) + + 81 * col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5696
SELECT ALL - CAST ( NULL AS INTEGER ) + + 81 * col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 22 + + col2 AS col2 FROM tab2 AS cor0
----
48
49
60

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5698
SELECT CAST( NULL AS DECIMAL ) * cor0.col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5698
SELECT CAST ( NULL AS REAL ) * cor0.col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 61 - + col1 AS col0 FROM tab1
----
35
48
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - col2 * col1 ) col2 FROM tab2
----
1534
646
837

query I rowsort
SELECT + 18 + col1 * col1 FROM tab1 AS cor0
----
118
187
694

query I rowsort
SELECT DISTINCT 53 + col2 FROM tab2 AS cor0
----
79
80
91

query I rowsort
SELECT ALL col1 * + cor0.col0 AS col2 FROM tab2 AS cor0
----
1343
217
4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + - col2 * - 26 * col2 col2 FROM tab1 AS cor0
----
239712
75870
84531

query I rowsort
SELECT ALL 66 * - col0 + + col2 * + col0 + - col2 FROM tab2 AS cor0
----
-2250
-300
-3146

query I rowsort
SELECT ALL - col0 - - col2 AS col0 FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT DISTINCT + cor0.col1 + - cor0.col2 AS col2 FROM tab1 AS cor0
----
-28
-47
-83

onlyif mysql # use DIV operator for integer division
query I rowsort label-5708
SELECT + col1 - + col1 DIV - ( col1 ) FROM tab2 AS cor0
----
18
32
60

skipif mysql # not compatible
query I rowsort label-5708
SELECT + col1 - + col1 / - ( col1 ) FROM tab2 AS cor0
----
18
32
60

query I rowsort
SELECT ALL - cor0.col2 * col0 AS col1 FROM tab1 AS cor0
----
-162
-3648
-7680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5710
SELECT DISTINCT + col1 * col2 + + CAST( + col0 AS SIGNED ) * + col2 col1 FROM tab2 AS cor0
----
1026
3562
3648

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5710
SELECT DISTINCT + col1 * col2 + + CAST ( + col0 AS INTEGER ) * + col2 col1 FROM tab2 AS cor0
----
1026
3562
3648

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 78 col2 FROM tab2 AS cor0
----
78
78
78

query I rowsort
SELECT ALL - cor0.col2 * - col2 FROM tab1 cor0
----
2916
3249
9216

query I rowsort
SELECT DISTINCT + - col2 - - col2 FROM tab1 cor0
----
0

query I rowsort
SELECT + 89 * + cor0.col1 FROM tab0 AS cor0
----
7654
8099
8633

query I rowsort
SELECT ALL + col1 * cor0.col2 * col0 FROM tab1 AS cor0
----
36480
4212
99840

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5716
SELECT - CAST( - col1 * - col2 AS SIGNED ) - - col1 AS col1 FROM tab0
----
-2752
-7371
0

skipif mysql # not compatible
query I rowsort label-5716
SELECT - CAST ( - col1 * - col2 AS INTEGER ) - - col1 AS col1 FROM tab0
----
-2752
-7371
0

query I rowsort
SELECT DISTINCT col0 * col2 * - col0 FROM tab0 AS cor0
----
-1225
-19008
-649522

query I rowsort
SELECT DISTINCT + 10 * + cor0.col2 FROM tab1 cor0
----
540
570
960

query I rowsort
SELECT ALL col1 * + col0 * + cor0.col1 + - 57 FROM tab2 AS cor0
----
22774
271461
6670

query I rowsort
SELECT - col0 * 90 AS col0 FROM tab0 AS cor0
----
-2160
-3150
-8010

query I rowsort
SELECT + cor0.col2 + + col0 * - ( - col0 ) * - ( cor0.col1 * col2 ) AS col1 FROM tab0 AS cor0
----
-118824
-1634655
-59106420

query I rowsort
SELECT ALL col0 * col0 + - col2 * tab0.col2 * col2 FROM tab0
----
-35361
-543447
1224

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 0 col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT col0 + + ( 31 ) * col2 AS col0 FROM tab1 AS cor0
----
1677
1831
3056

onlyif mysql # use DIV operator for integer division
query I rowsort label-5725
SELECT col0 + 88 * col1 DIV - col0 + col0 AS col2 FROM tab0 AS cor0
----
-173
-267
89

skipif mysql # not compatible
query I rowsort label-5725
SELECT col0 + 88 * col1 / - col0 + col0 AS col2 FROM tab0 AS cor0
----
-173
-267
89

query I rowsort
SELECT ALL + cor0.col0 * + ( col2 ) + + col0 + - col0 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT + col0 * 21 FROM tab2 AS cor0
----
147
1638
1659

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - col0 col0 FROM tab0 cor0
----
1225
576
7921

query I rowsort
SELECT - - col0 + ( - 37 ) * col0 + col1 FROM tab2 AS cor0
----
-221
-2749
-2827

onlyif mysql # use DIV operator for integer division
query I rowsort label-5730
SELECT DISTINCT - col1 DIV + 66 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5730
SELECT DISTINCT - col1 / + 66 FROM tab1 AS cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5731
SELECT col1 + col2 DIV - col2 + + col0 AS col0 FROM tab0 AS cor0
----
109
131
179

skipif mysql # not compatible
query I rowsort label-5731
SELECT col1 + col2 / - col2 + + col0 AS col0 FROM tab0 AS cor0
----
109
131
179

query I rowsort
SELECT + col2 * ( - col0 ) + col1 + + ( - col0 * cor0.col2 ) FROM tab2 AS cor0
----
-347
-3997
-5987

query I rowsort
SELECT DISTINCT - col2 + - col1 * col1 * - 77 FROM tab0 AS cor0
----
569459
637555
724492

query I rowsort
SELECT + + 24 AS col1 FROM tab2 AS cor0
----
24
24
24

query I rowsort
SELECT DISTINCT + - ( 39 ) + - cor0.col2 * + cor0.col0 FROM tab1 AS cor0
----
-201
-3687
-7719

query I rowsort
SELECT DISTINCT - 11 AS col2 FROM tab1, tab2 AS cor0
----
-11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 32 * col2 + - col1 col0 FROM tab1 AS cor0
----
-1754
-1834
-3085

onlyif mysql # use DIV operator for integer division
query I rowsort label-5738
SELECT ALL + + col2 * - ( col0 ) DIV - col0 FROM tab1 cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-5738
SELECT ALL + + col2 * - ( col0 ) / - col0 FROM tab1 cor0
----
54
57
96

query I rowsort
SELECT + col2 - ( col0 ) AS col0 FROM tab1
----
-7
16
51

query I rowsort
SELECT DISTINCT 42 * + cor0.col2 * + col0 AS col1 FROM tab2 AS cor0
----
126084
7938
85176

onlyif mysql # use DIV operator for integer division
query I rowsort label-5741
SELECT ALL - ( + cor0.col2 ) DIV col0 FROM tab2 cor0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-5741
SELECT ALL - ( + cor0.col2 ) / col0 FROM tab2 cor0
----
-3
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5742
SELECT + col1 * - cor0.col0 + cor0.col0 DIV - 95 FROM tab2 AS cor0
----
-1343
-217
-4602

skipif mysql # not compatible
query I rowsort label-5742
SELECT + col1 * - cor0.col0 + cor0.col0 / - 95 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT DISTINCT + 70 + - cor0.col1 * + col1 AS col2 FROM tab0 AS cor0
----
-7326
-8211
-9339

query I rowsort
SELECT cor0.col0 * col0 + + col0 + - col2 FROM tab2 AS cor0
----
29
6136
6282

query I rowsort
SELECT ALL cor0.col0 + - col0 AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - 1 + + col0 * 38 AS col1 FROM tab0 AS cor0
----
1329
3381
911

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5747
SELECT - - 28 - col0 * - CAST( col2 AS SIGNED ) FROM tab1 AS cor0
----
190
3676
7708

skipif mysql # not compatible
query I rowsort label-5747
SELECT - - 28 - col0 * - CAST ( col2 AS INTEGER ) FROM tab1 AS cor0
----
190
3676
7708

query I rowsort
SELECT DISTINCT + 10 * col1 + 44 FROM tab2 AS cor0
----
214
354
634

query I rowsort
SELECT - col1 * + col1 + cor0.col2 AS col1 FROM tab2 AS cor0
----
-251
-3455
-934

query I rowsort
SELECT - ( col2 ) - col1 * - col0 AS col0 FROM tab2 AS cor0
----
1305
190
4576

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 62 col1 FROM tab2 cor0
----
-62
-62
-62

onlyif mysql # use DIV operator for integer division
query I rowsort label-5752
SELECT - col1 DIV cor0.col2 AS col2 FROM tab0 AS cor0
----
-1
-2
-97

skipif mysql # not compatible
query I rowsort label-5752
SELECT - col1 / cor0.col2 AS col2 FROM tab0 AS cor0
----
-1
-2
-97

query I rowsort
SELECT ALL - - 20 AS col1 FROM tab2 AS cor0
----
20
20
20

query I rowsort
SELECT - col2 * + col1 + 29 AS col1 FROM tab1 AS cor0
----
-1219
-1375
-541

query I rowsort
SELECT + col0 * col0 + col1 * - col0 FROM tab0 AS cor0
----
-1488
-178
-2170

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + + col0 col0 FROM tab1
----
-16
-51
7

query I rowsort
SELECT + col0 * col1 + - col0 AS col2 FROM tab0 AS cor0
----
2040
3360
8010

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * + col2 + col0 * - col1 col0 FROM tab1 AS cor0
----
3008
6640
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - col1 col0 FROM tab0 cor0
----
-2064
-3395
-8099

query I rowsort
SELECT 82 + - col0 AS col2 FROM tab0
----
-7
47
58

query I rowsort
SELECT col0 * col0 + - 56 AS col2 FROM tab0
----
1169
520
7865

query I rowsort
SELECT ALL 86 * col1 FROM tab2 AS cor0
----
1462
2666
5074

query I rowsort
SELECT ALL 79 AS col2 FROM tab2 AS cor0
----
79
79
79

query I rowsort
SELECT DISTINCT + 10 AS col0 FROM tab1 AS cor0
----
10

query I rowsort
SELECT DISTINCT + 36 + - col0 * - col1 + - col1 AS col0 FROM tab0 AS cor0
----
2014
3334
8044

query I rowsort
SELECT ALL + col0 + - tab2.col2 AS col0 FROM tab2
----
-20
41
52

skipif mysql # not compatible
query I rowsort
SELECT ALL - CAST ( ( col1 ) AS REAL ) - - 79 * col2 FROM tab2
----
1995
2102
2985

query I rowsort
SELECT - tab0.col2 * - ( + col2 ) + - 0 FROM tab0
----
1
1089
6724

query I rowsort
SELECT DISTINCT + + cor0.col1 + col1 * col2 AS col1 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT DISTINCT - ( + col1 ) + col2 AS col2 FROM tab2 AS cor0
----
-33
-4
21

onlyif mysql # use DIV operator for integer division
query I rowsort label-5771
SELECT ALL + - col2 DIV + col0 col1 FROM tab1 AS cor0
----
-1
-18
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5771
SELECT ALL + - col2 / + col0 col1 FROM tab1 AS cor0
----
-1
-18
0

query I rowsort
SELECT ALL - col1 + ( col0 ) + 76 FROM tab2
----
138
52
95

query I rowsort
SELECT - ( - 29 ) * col1 FROM tab1
----
290
377
754

query I rowsort
SELECT ALL + ( col1 ) * - col0 + - col1 FROM tab0
----
-2150
-3492
-8190

query I rowsort
SELECT 88 * + tab2.col2 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 42e2b192b128b1913667eeefc9e4befc

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + col0 * col2 col0 FROM tab1
----
216
3705
7776

query I rowsort
SELECT DISTINCT - col1 * + col2 + - col2 * col2 FROM tab2
----
-1566
-2090
-2210

query I rowsort
SELECT ( + 7 ) AS col2 FROM tab0
----
7
7
7

query I rowsort
SELECT ALL - 51 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 08d3853e39924d3c636260a6dd856837

query I rowsort
SELECT DISTINCT - 81 AS col2 FROM tab2
----
-81

onlyif mysql # use DIV operator for integer division
query I rowsort label-5781
SELECT - col0 DIV - col2 - col1 DIV col0 AS col0 FROM tab1 AS cor0
----
-8
0
1

skipif mysql # not compatible
query I rowsort label-5781
SELECT - col0 / - col2 - col1 / col0 AS col0 FROM tab1 AS cor0
----
-8
0
1

query I rowsort
SELECT 36 + - col1 FROM tab1 AS cor0
----
10
23
26

query I rowsort
SELECT + col1 + cor0.col2 * + col1 FROM tab2 AS cor0
----
1593
663
868

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5784
SELECT ALL + col1 * col2 * CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5784
SELECT ALL + col1 * col2 * CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 * - col1 + - col2 AS col2 FROM tab2 cor0
----
-1560
-684
-864

query I rowsort
SELECT DISTINCT col1 * - 26 AS col0 FROM tab0
----
-2236
-2366
-2522

query I rowsort
SELECT col0 * + 89 + - 52 * + col0 * + 81 AS col1 FROM tab1
----
-12369
-263872
-329840

query I rowsort
SELECT ( 47 ) FROM tab0, tab1 AS cor0
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

query I rowsort
SELECT + col0 * - col2 * col0 AS col0 FROM tab1
----
-233472
-486
-614400

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 44 * - cor0.col1 col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 0bbf80f5d746e367205412446be24232

query I rowsort
SELECT ALL col0 * + ( + 81 ) * - tab0.col1 AS col0 FROM tab0
----
-167184
-274995
-656019

query I rowsort
SELECT + col0 + - col0 * + 15 AS col2 FROM tab1 AS cor0
----
-1120
-42
-896

query I rowsort
SELECT ALL - col2 * + col2 + col2 FROM tab1 AS cor0
----
-2862
-3192
-9120

query I rowsort
SELECT DISTINCT - + cor0.col2 * + 16 AS col0 FROM tab1 AS cor0
----
-1536
-864
-912

query I rowsort
SELECT DISTINCT - col0 + 29 AS col2 FROM tab1 AS cor0
----
-35
-51
26

query I rowsort
SELECT DISTINCT + ( 53 ) FROM tab2 AS cor0
----
53

query I rowsort
SELECT DISTINCT cor0.col0 * - 53 + col0 FROM tab0 AS cor0
----
-1248
-1820
-4628

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 93 col0 FROM tab1 AS cor0
----
93
93
93

query I rowsort
SELECT + 48 * + 27 AS col2 FROM tab1 AS cor0
----
1296
1296
1296

query I rowsort
SELECT - col2 * - col0 * 4 AS col1 FROM tab1 AS cor0
----
14592
30720
648

query I rowsort
SELECT - cor0.col0 * + 46 AS col2 FROM tab2 AS cor0
----
-322
-3588
-3634

query I rowsort
SELECT - col0 + 87 FROM tab0 cor0
----
-2
52
63

query I rowsort
SELECT + + cor0.col1 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

query I rowsort
SELECT + - col1 * - ( col2 + col2 ) AS col1 FROM tab2 AS cor0
----
1292
1674
3068

query I rowsort
SELECT DISTINCT - col0 * - 13 AS col2 FROM tab2 cor0
----
1014
1027
91

query I rowsort
SELECT ALL + col1 * col0 * + col0 FROM tab0
----
118825
49536
720811

query I rowsort
SELECT ALL + col1 * - ( col0 ) FROM tab0
----
-2064
-3395
-8099

query I rowsort
SELECT ALL - cor0.col1 * + col2 * - col2 + - 64 FROM tab0 AS cor0
----
33
611820
93590

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5809
SELECT - col0 * cor0.col1 + + col1 * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5809
SELECT - col0 * cor0.col1 + + col1 * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL ( col0 ) * col2 + - col2 FROM tab1 cor0
----
108
3591
7584

query I rowsort
SELECT - col2 - 73 AS col1 FROM tab1 AS cor0
----
-127
-130
-169

query I rowsort
SELECT + col2 - col1 * col2 AS col1 FROM tab0
----
-2805
-7380
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-5813
SELECT DISTINCT + col1 * 1 DIV - col1 col2 FROM tab1
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5813
SELECT DISTINCT + col1 * 1 / - col1 col2 FROM tab1
----
-1

query I rowsort
SELECT - ( 15 ) AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 1172c9a62bdad7db0def9205c06ee1f2

query I rowsort
SELECT DISTINCT col2 * ( col0 ) AS col1 FROM tab1
----
162
3648
7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-5816
SELECT - 24 * - col2 + + ( + col2 + + col0 ) DIV - ( - col1 * + col0 ) FROM tab2 AS cor0
----
624
648
912

skipif mysql # not compatible
query I rowsort label-5816
SELECT - 24 * - col2 + + ( + col2 + + col0 ) / - ( - col1 * + col0 ) FROM tab2 AS cor0
----
624
648
912

query I rowsort
SELECT + + cor0.col2 + - cor0.col1 * - 63 AS col2 FROM tab2 AS cor0
----
1109
1980
3743

query I rowsort
SELECT - + 69 * col1 FROM tab1 AS cor0
----
-1794
-690
-897

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 38 col1 FROM tab2
----
38
38
38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5820
SELECT - CAST( + 64 AS SIGNED ) * - cor0.col0 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 759ce99d9a10bab9dbb85b0716df8ee9

skipif mysql # not compatible
query I rowsort label-5820
SELECT - CAST ( + 64 AS INTEGER ) * - cor0.col0 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 759ce99d9a10bab9dbb85b0716df8ee9

query I rowsort
SELECT DISTINCT - 89 * col1 AS col2 FROM tab0
----
-7654
-8099
-8633

query I rowsort
SELECT 42 * col1 AS col1 FROM tab1
----
1092
420
546

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 59 col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

query I rowsort
SELECT - + 18 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 09afafec657a5e9f082beb6a16ec85de

query I rowsort
SELECT - 33 + col1 FROM tab2 cor0
----
-16
-2
26

query I rowsort
SELECT - 9 * + tab2.col2 + 73 * + tab2.col1 * col2 AS col2 FROM tab2
----
111748
46816
60858

query I rowsort
SELECT DISTINCT - cor1.col2 FROM tab1, tab0, tab0 AS cor0, tab1 AS cor1
----
-54
-57
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-5828
SELECT DISTINCT col1 DIV - col0 + - col2 AS col0 FROM tab2
----
-26
-31
-38

skipif mysql # not compatible
query I rowsort label-5828
SELECT DISTINCT col1 / - col0 + - col2 AS col0 FROM tab2
----
-26
-31
-38

query I rowsort
SELECT DISTINCT col0 + - col0 * - 52 * - 87 AS col1 FROM tab2
----
-31661
-352794
-357317

query I rowsort
SELECT DISTINCT ( tab1.col0 ) + col2 FROM tab1
----
121
176
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab1.col0 * col0 + + col2 col1 FROM tab1
----
4153
63
6496

onlyif mysql # use DIV operator for integer division
query I rowsort label-5832
SELECT - col0 DIV col1 + col2 DIV col0 AS col2 FROM tab1
----
-5
-6
18

skipif mysql # not compatible
query I rowsort label-5832
SELECT - col0 / col1 + col2 / col0 AS col2 FROM tab1
----
-5
-6
18

query I rowsort
SELECT DISTINCT - col2 + 17 + col1 FROM tab1 AS cor0
----
-11
-30
-66

query I rowsort
SELECT ALL - - col0 * - 54 + 14 * cor0.col1 FROM tab1 cor0
----
-3316
-4138
202

query I rowsort
SELECT ALL + col1 + + ( - col2 ) AS col0 FROM tab2 cor0
----
-21
33
4

query I rowsort
SELECT ALL - col1 + ( - col1 ) FROM tab2 AS cor0
----
-118
-34
-62

query I rowsort
SELECT DISTINCT - - col1 * + col2 + + col0 FROM tab1 cor0
----
1328
1407
634

query I rowsort
SELECT DISTINCT col0 + col1 + col1 * col1 FROM tab1 cor0
----
174
262
705

query I rowsort
SELECT ALL col2 * + col0 + 0 - col1 AS col2 FROM tab2 AS cor0
----
158
1969
2985

query I rowsort
SELECT - - cor0.col0 * col0 AS col0 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT DISTINCT - 51 + - 33 AS col1 FROM tab1
----
-84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - tab0.col2 ) + + col1 * 83 col2 FROM tab0
----
7105
7471
8050

query I rowsort
SELECT + 62 + - col2 * col1 AS col2 FROM tab2 AS cor0
----
-1472
-584
-775

onlyif mysql # use DIV operator for integer division
query I rowsort label-5844
SELECT ( col1 ) DIV + cor0.col2 FROM tab0 AS cor0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-5844
SELECT ( col1 ) / + cor0.col2 FROM tab0 AS cor0
----
1
2
97

query I rowsort
SELECT DISTINCT ( + ( + col1 ) ) + + ( + 80 ) FROM tab1 AS cor0
----
106
90
93

query I rowsort
SELECT + 3 * col0 AS col0 FROM tab0 AS cor0
----
105
267
72

onlyif mysql # use DIV operator for integer division
query I rowsort label-5847
SELECT ALL + col0 DIV - col0 - + col1 * + col0 * + col2 FROM tab2 AS cor0
----
-119653
-51035
-5860

skipif mysql # not compatible
query I rowsort label-5847
SELECT ALL + col0 / - col0 - + col1 * + col0 * + col2 FROM tab2 AS cor0
----
-119653
-51035
-5860

query I rowsort
SELECT + col1 * - col1 + - col2 AS col1 FROM tab0 cor0
----
-7429
-8363
-9410

query I rowsort
SELECT col1 + + col0 * - cor0.col1 AS col0 FROM tab0 AS cor0
----
-1978
-3298
-8008

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5850
SELECT ( 69 ) + - col2 * + CAST( col2 AS SIGNED ) * + col2 FROM tab2 AS cor0
----
-17507
-19614
-54803

skipif mysql # not compatible
query I rowsort label-5850
SELECT ( 69 ) + - col2 * + CAST ( col2 AS INTEGER ) * + col2 FROM tab2 AS cor0
----
-17507
-19614
-54803

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 + col0 col1 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT DISTINCT - cor0.col2 - col0 AS col1 FROM tab2 AS cor0
----
-104
-117
-34

query I rowsort
SELECT DISTINCT - col1 - - col0 AS col2 FROM tab2 AS cor0
----
-24
19
62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5854
SELECT + - 19 * col0 * + CAST( NULL AS SIGNED ) + col2 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5854
SELECT + - 19 * col0 * + CAST ( NULL AS INTEGER ) + col2 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5855
SELECT + - col0 + + col1 DIV col1 AS col1 FROM tab1 AS cor0
----
-2
-63
-79

skipif mysql # not compatible
query I rowsort label-5855
SELECT + - col0 + + col1 / col1 AS col1 FROM tab1 AS cor0
----
-2
-63
-79

query I rowsort
SELECT ALL + ( col0 ) * + ( col2 ) + col1 AS col1 FROM tab0 AS cor0
----
132
7389
878

query I rowsort
SELECT - col2 + - col2 * 22 AS col2 FROM tab0 AS cor0
----
-1886
-23
-759

query I rowsort
SELECT + 58 * - col1 FROM tab0 AS cor0
----
-4988
-5278
-5626

query I rowsort
SELECT ALL + col2 * col0 - 32 * col0 AS col1 FROM tab1 AS cor0
----
1600
5120
66

query I rowsort
SELECT DISTINCT col1 * + col1 AS col0 FROM tab1 cor0
----
100
169
676

query I rowsort
SELECT DISTINCT - col0 * ( + col0 * + 53 ) - - col0 FROM tab1
----
-217024
-339120
-474

query I rowsort
SELECT DISTINCT + 10 + col1 * + col2 AS col2 FROM tab1
----
1258
1414
580

onlyif mysql # use DIV operator for integer division
query I rowsort label-5863
SELECT DISTINCT 36 + col2 DIV col2 + tab1.col1 AS col1 FROM tab1
----
47
50
63

skipif mysql # not compatible
query I rowsort label-5863
SELECT DISTINCT 36 + col2 / col2 + tab1.col1 AS col1 FROM tab1
----
47
50
63

onlyif mysql # use DIV operator for integer division
query I rowsort label-5864
SELECT ALL ( + tab2.col0 ) + col0 * col2 DIV - 39 FROM tab2
----
26
3
3

skipif mysql # not compatible
query I rowsort label-5864
SELECT ALL ( + tab2.col0 ) + col0 * col2 / - 39 FROM tab2
----
26
3
3

query I rowsort
SELECT DISTINCT 0 AS col1 FROM tab1, tab0 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 10 col1 FROM tab1, tab2 AS cor0
----
9 values hashing to f68f33032846e21ee6b2c668fc10355e

query I rowsort
SELECT DISTINCT + + col1 + col1 FROM tab0 AS cor0
----
172
182
194

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5868
SELECT ALL + CAST( + col1 AS SIGNED ) AS col1 FROM tab2 cor0
----
17
31
59

skipif mysql # not compatible
query I rowsort label-5868
SELECT ALL + CAST ( + col1 AS INTEGER ) AS col1 FROM tab2 cor0
----
17
31
59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5869
SELECT DISTINCT - + CAST( + cor0.col0 AS SIGNED ) FROM tab2, tab0, tab0 AS cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-5869
SELECT DISTINCT - + CAST ( + cor0.col0 AS INTEGER ) FROM tab2, tab0, tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT - 46 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 491ad1fb79fec0b5715ea54949d1aa2d

query I rowsort
SELECT + + cor0.col1 * + col2 + ( 78 ) + col1 FROM tab0 AS cor0
----
272
3002
7631

query I rowsort
SELECT DISTINCT + + col2 + - col1 * - col0 AS col1 FROM tab2 AS cor0
----
1381
244
4628

query I rowsort
SELECT DISTINCT col0 + cor0.col1 AS col1 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT - 1 AS col1 FROM tab1 AS cor0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + col1 + col1 * col1 + col1 col2 FROM tab2 cor0
----
1209
1649
8142

query I rowsort
SELECT DISTINCT + 0 + col0 * - cor0.col2 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT - cor0.col0 * + col2 - - 41 FROM tab1 AS cor0
----
-121
-3607
-7639

query I rowsort
SELECT ALL + cor0.col2 * cor0.col0 + + cor0.col1 AS col1 FROM tab0 cor0
----
132
7389
878

query I rowsort
SELECT - ( - cor0.col2 ) - - 10 FROM tab1 AS cor0
----
106
64
67

query I rowsort
SELECT ALL col2 + 57 AS col0 FROM tab0 AS cor0
----
139
58
90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5881
SELECT ALL col2 * + CAST( NULL AS SIGNED ) + - ( + col2 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5881
SELECT ALL col2 * + CAST ( NULL AS INTEGER ) + - ( + col2 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5882
SELECT ALL - col2 - col2 DIV + col0 FROM tab1 AS cor0
----
-57
-72
-97

skipif mysql # not compatible
query I rowsort label-5882
SELECT ALL - col2 - col2 / + col0 FROM tab1 AS cor0
----
-57
-72
-97

query I rowsort
SELECT - col2 * + 45 + + 17 AS col0 FROM tab0 AS cor0
----
-1468
-28
-3673

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col1 col0 FROM tab1 cor0
----
-10
-13
-26

query I rowsort
SELECT DISTINCT cor0.col1 * + 28 FROM tab0 AS cor0
----
2408
2548
2716

query I rowsort
SELECT ALL + + col0 * - ( - col1 + + col1 ) AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + - cor0.col0 * - ( - col1 ) FROM tab1 AS cor0
----
-1040
-640
-78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5888
SELECT + col0 + CAST( + 5 AS SIGNED ) * + col0 FROM tab1 AS cor0
----
18
384
480

skipif mysql # not compatible
query I rowsort label-5888
SELECT + col0 + CAST ( + 5 AS INTEGER ) * + col0 FROM tab1 AS cor0
----
18
384
480

query I rowsort
SELECT ALL - - col2 + 96 AS col1 FROM tab0 AS cor0
----
129
178
97

query I rowsort
SELECT DISTINCT - col1 * + col1 + col0 - - col0 AS col1 FROM tab0 AS cor0
----
-7348
-8103
-9339

onlyif mysql # use DIV operator for integer division
query I rowsort label-5891
SELECT - col2 + - 31 DIV + col1 AS col2 FROM tab0 AS cor0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-5891
SELECT - col2 + - 31 / + col1 AS col2 FROM tab0 AS cor0
----
-1
-33
-82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5892
SELECT DISTINCT col2 * - CAST( col0 AS SIGNED ) AS col1 FROM tab0 cor0
----
-35
-7298
-792

skipif mysql # not compatible
query I rowsort label-5892
SELECT DISTINCT col2 * - CAST ( col0 AS INTEGER ) AS col1 FROM tab0 cor0
----
-35
-7298
-792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * 98 * col0 col1 FROM tab2 AS cor0
----
-4802
-596232
-611618

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5894
SELECT - CAST( 60 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-60
-60
-60

skipif mysql # not compatible
query I rowsort label-5894
SELECT - CAST ( 60 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-60
-60
-60

query I rowsort
SELECT DISTINCT + ( + cor0.col0 ) + col2 FROM tab1 cor0
----
121
176
57

query I rowsort
SELECT DISTINCT - cor0.col1 * 3 AS col2 FROM tab2 AS cor0
----
-177
-51
-93

query I rowsort
SELECT ALL - 21 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 631fbd1fd929405aba54a22c2a06c757

skipif mysql # not compatible
query I rowsort
SELECT + CAST ( + 84 AS REAL ) * - col2 FROM tab0 AS cor0
----
-2772
-6888
-84

query I rowsort
SELECT - ( + 11 ) AS col2 FROM tab2 cor0
----
-11
-11
-11

query I rowsort
SELECT - col2 * - 62 AS col0 FROM tab0 AS cor0
----
2046
5084
62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5901
SELECT ( + col1 ) + - col1 * CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5901
SELECT ( + col1 ) + - col1 * CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + 18 - col2 AS col0 FROM tab1 cor0
----
-114
-72
-75

query I rowsort
SELECT + col1 + - col2 * cor0.col0 AS col2 FROM tab0 AS cor0
----
-706
-7207
62

query I rowsort
SELECT 47 * col2 AS col2 FROM tab2 AS cor0
----
1222
1269
1786

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 19 col0 FROM tab0, tab1 cor0
----
9 values hashing to 339c9d62143bf2f7566b89a1b56eeeb4

query I rowsort
SELECT - 32 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to ef8f93119983b962f4c81381ebf4b1e6

query I rowsort
SELECT + - col2 + + col0 * - 73 FROM tab2 AS cor0
----
-538
-5720
-5805

query I rowsort
SELECT + col2 + col0 + ( col1 ) * cor0.col0 FROM tab0 AS cor0
----
2121
3431
8270

query I rowsort
SELECT DISTINCT col2 + tab1.col0 AS col2 FROM tab1
----
121
176
57

query I rowsort
SELECT 15 + col1 AS col2 FROM tab0
----
101
106
112

query I rowsort
SELECT ALL col1 * + 83 AS col1 FROM tab0
----
7138
7553
8051

query I rowsort
SELECT DISTINCT 90 AS col1 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
90

query I rowsort
SELECT DISTINCT col1 * 86 AS col2 FROM tab1
----
1118
2236
860

query I rowsort
SELECT col0 * 8 AS col1 FROM tab0
----
192
280
712

query I rowsort
SELECT - 96 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to c89b545346f99713888a7934e4caa539

query I rowsort
SELECT + col0 * + 87 + col2 + col0 FROM tab1 cor0
----
318
5689
7136

query I rowsort
SELECT 65 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 1c9d0bf96cd3361942fadad668138b9c

onlyif mysql # use DIV operator for integer division
query I rowsort label-5918
SELECT ALL - tab0.col2 DIV 91 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5918
SELECT ALL - tab0.col2 / 91 AS col2 FROM tab0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5919
SELECT col1 * col2 DIV 32 FROM tab0 AS cor0
----
233
3
88

skipif mysql # not compatible
query I rowsort label-5919
SELECT col1 * col2 / 32 FROM tab0 AS cor0
----
233
3
88

query I rowsort
SELECT DISTINCT - 21 * - col0 + col2 AS col1 FROM tab1
----
117
1401
1776

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 + + col1 col0 FROM tab2 cor0
----
-19
-62
24

onlyif mysql # use DIV operator for integer division
query I rowsort label-5922
SELECT ALL - 54 DIV - col2 + + 31 * - tab1.col0 FROM tab1
----
-1984
-2480
-92

skipif mysql # not compatible
query I rowsort label-5922
SELECT ALL - 54 / - col2 + + 31 * - tab1.col0 FROM tab1
----
-1984
-2480
-92

query I rowsort
SELECT - + col2 * - cor0.col0 + col2 FROM tab1 AS cor0
----
216
3705
7776

query I rowsort
SELECT DISTINCT + + col0 * - cor0.col0 AS col0 FROM tab0 cor0
----
-1225
-576
-7921

query I rowsort
SELECT DISTINCT - + col1 + col2 * - 69 FROM tab2 AS cor0
----
-1853
-1894
-2639

query I rowsort
SELECT ALL cor0.col0 + - cor0.col1 AS col1 FROM tab0 AS cor0
----
-2
-62
-62

query I rowsort
SELECT - col2 * - 10 AS col0 FROM tab2 AS cor0
----
260
270
380

query I rowsort
SELECT - 10 * + col0 * col2 - 83 FROM tab0 AS cor0
----
-433
-73063
-8003

query I rowsort
SELECT DISTINCT + col2 * + ( + col0 ) + - tab0.col0 FROM tab0
----
0
7209
768

query I rowsort
SELECT - - col0 * + col0 + - col1 FROM tab0 AS cor0
----
1128
490
7830

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 57 * col1 col2 FROM tab1 AS cor0
----
-1482
-570
-741

query I rowsort
SELECT DISTINCT + 72 * col2 * - col1 AS col0 FROM tab0 cor0
----
-204336
-537264
-6984

query I rowsort
SELECT ALL + 92 * + col0 + ( - col1 ) AS col1 FROM tab1 cor0
----
250
5878
7347

query I rowsort
SELECT ALL + + col2 * col1 + - cor0.col2 AS col0 FROM tab1 cor0
----
1152
1350
513

query I rowsort
SELECT DISTINCT 91 + + col2 AS col2 FROM tab1 AS cor0
----
145
148
187

query I rowsort
SELECT 6 + col1 AS col1 FROM tab2 AS cor0
----
23
37
65

query I rowsort
SELECT ALL + + col2 * col0 * ( + 12 ) AS col1 FROM tab2 AS cor0
----
2268
24336
36024

query I rowsort
SELECT ALL col0 + col2 * - col2 * - col1 + - col2 FROM tab0 AS cor0
----
131
611891
93645

query I rowsort
SELECT - ( 89 ) AS col1 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to c36e597b7bc5727536f5bb580e6cebbc

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5940
SELECT ALL - - 33 * cor0.col0 + + CAST( NULL AS SIGNED ) + - 20 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5940
SELECT ALL - - 33 * cor0.col0 + + CAST ( NULL AS INTEGER ) + - 20 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 + col0 * col2 AS col2 FROM tab2 AS cor0
----
196
2106
3081

query I rowsort
SELECT ALL col2 * - col2 * + col0 + + col2 * + col1 AS col1 FROM tab2
----
-113430
-4266
-51194

query I rowsort
SELECT DISTINCT + col1 * 57 FROM tab2
----
1767
3363
969

onlyif mysql # use DIV operator for integer division
query I rowsort label-5944
SELECT ALL + cor0.col1 DIV col2 FROM tab0 AS cor0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-5944
SELECT ALL + cor0.col1 / col2 FROM tab0 AS cor0
----
1
2
97

query I rowsort
SELECT ALL + + col0 * + col0 + - 86 AS col1 FROM tab2 AS cor0
----
-37
5998
6155

onlyif mysql # use DIV operator for integer division
query I rowsort label-5946
SELECT DISTINCT + col0 * + col1 + col0 + + 67 DIV + col1 AS col0 FROM tab0 AS cor0
----
2088
3430
8188

skipif mysql # not compatible
query I rowsort label-5946
SELECT DISTINCT + col0 * + col1 + col0 + + 67 / + col1 AS col0 FROM tab0 AS cor0
----
2088
3430
8188

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5947
SELECT ALL - CAST( col1 AS SIGNED ) * col0 - + col2 * + ( + col1 + + 45 ) * 71 FROM tab2
----
-145909
-168619
-196586

skipif mysql # not compatible
query I rowsort label-5947
SELECT ALL - CAST ( col1 AS INTEGER ) * col0 - + col2 * + ( + col1 + + 45 ) * 71 FROM tab2
----
-145909
-168619
-196586

query I rowsort
SELECT ALL + col2 * - col0 * + tab1.col0 + + tab1.col2 AS col2 FROM tab1
----
-233415
-432
-614304

query I rowsort
SELECT DISTINCT - 7 + col1 FROM tab2
----
10
24
52

query I rowsort
SELECT - 59 AS col2 FROM tab0
----
-59
-59
-59

query I rowsort
SELECT 99 + + col2 + - tab0.col0 FROM tab0
----
108
65
92

query I rowsort
SELECT + 90 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 5d25a546acf3ae171e731e50adc0112e

query I rowsort
SELECT DISTINCT 21 + + col1 + + 34 FROM tab2
----
114
72
86

query I rowsort
SELECT - 23 FROM tab2, tab1 cor0, tab0 AS cor1
----
27 values hashing to 9bd721f99d79dce21b1de2860fd51ed5

query I rowsort
SELECT DISTINCT - + col0 + - col2 * + col0 FROM tab2 AS cor0
----
-196
-2106
-3081

query I rowsort
SELECT DISTINCT - ( 12 ) FROM tab2 AS cor0
----
-12

query I rowsort
SELECT ALL col0 + cor0.col0 AS col1 FROM tab0 AS cor0
----
178
48
70

onlyif mysql # use DIV operator for integer division
query I rowsort label-5958
SELECT - col2 + col2 DIV + col1 FROM tab2 AS cor0
----
-26
-27
-36

skipif mysql # not compatible
query I rowsort label-5958
SELECT - col2 + col2 / + col1 FROM tab2 AS cor0
----
-26
-27
-36

query IIIIIIIII rowsort
SELECT * FROM tab1, tab0, tab1 AS cor0 WHERE NOT ( NULL ) > NULL
----

skipif mysql # not compatible
query I rowsort
SELECT - col0 - CAST ( col1 * + col2 + + 5 AS REAL ) AS col0 FROM tab2
----
-1617
-730
-849

onlyif mysql # use DIV operator for integer division
query I rowsort label-5961
SELECT ( col1 ) DIV col2 - col1 * cor0.col2 FROM tab0 AS cor0
----
-2836
-7461
0

skipif mysql # not compatible
query I rowsort label-5961
SELECT ( col1 ) / col2 - col1 * cor0.col2 FROM tab0 AS cor0
----
-2836
-7461
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5962
SELECT - CAST( NULL AS SIGNED ) * + col1 + tab0.col0 * - col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5962
SELECT - CAST ( NULL AS INTEGER ) * + col1 + tab0.col0 * - col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - - 4 + - col2 FROM tab0 cor0
----
-29
-78
3

query I rowsort
SELECT + + 84 * + 56 + col1 FROM tab2 AS cor0
----
4721
4735
4763

query I rowsort
SELECT DISTINCT ( - col0 ) + col1 FROM tab0 AS cor0
----
2
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + 33 * col0 col0 FROM tab1 AS cor0
----
2048
2560
96

query I rowsort
SELECT ALL col0 + - 16 * + col2 AS col0 FROM tab2 AS cor0
----
-338
-425
-529

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5968
SELECT + col2 * 97 + + col1 * CAST( col2 * - col1 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-240867
-671088
-9312

skipif mysql # not compatible
query I rowsort label-5968
SELECT + col2 * 97 + + col1 * CAST ( col2 * - col1 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-240867
-671088
-9312

query I rowsort
SELECT - ( cor0.col2 ) + + col2 AS col0 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 70 * + col1 * - col1 col0 FROM tab2 AS cor0
----
-20230
-243670
-67270

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 * + cor0.col0 col0 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT col2 * - cor0.col2 - col2 AS col2 FROM tab0 AS cor0
----
-1122
-2
-6806

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5973
SELECT ALL CAST( NULL AS SIGNED ) AS col1 FROM tab1, tab2 cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-5973
SELECT ALL CAST ( NULL AS INTEGER ) AS col1 FROM tab1, tab2 cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT + tab2.col2 + + 53 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to bb09ceb5fc305675d4b1299565bd5a58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab2.col2 + col0 * col2 col2 FROM tab2
----
2054
216
3040

query I rowsort
SELECT DISTINCT cor1.col1 AS col1 FROM tab0, tab0 cor0, tab2 AS cor1
----
17
31
59

query I rowsort
SELECT + ( + tab2.col2 * ( + 71 ) ) + tab2.col1 * + 17 FROM tab2
----
2444
2849
2987

query I rowsort
SELECT ( col0 ) * + 76 * ( col2 ) + 45 * + 2 FROM tab2
----
14454
154218
228242

query I rowsort
SELECT DISTINCT - 2 AS col0 FROM tab1
----
-2

query I rowsort
SELECT + + 87 AS col2 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

query I rowsort
SELECT ALL - cor0.col1 * tab2.col2 AS col0 FROM tab2, tab1 cor0
----
9 values hashing to e4fd9d16116443b7eee5ff68e1d13137

query I rowsort
SELECT ALL + + cor0.col2 + 9 FROM tab0 AS cor0
----
10
42
91

query I rowsort
SELECT ALL col0 + col0 * 54 AS col0 FROM tab2 AS cor0
----
385
4290
4345

query I rowsort
SELECT DISTINCT col1 * ( col2 ) * + col2 AS col1 FROM tab0 cor0
----
611884
93654
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5985
SELECT ALL + + col2 + CAST( NULL AS SIGNED ) * + cor0.col0 + - col0 col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5985
SELECT ALL + + col2 + CAST ( NULL AS INTEGER ) * + cor0.col0 + - col0 col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5986
SELECT + cor0.col1 * - CAST( ( col1 ) AS SIGNED ) + 27 AS col0 FROM tab2 AS cor0
----
-262
-3454
-934

skipif mysql # not compatible
query I rowsort label-5986
SELECT + cor0.col1 * - CAST ( ( col1 ) AS INTEGER ) + 27 AS col0 FROM tab2 AS cor0
----
-262
-3454
-934

query I rowsort
SELECT - col1 + + col0 * col2 AS col1 FROM tab0 AS cor0
----
-62
706
7207

query I rowsort
SELECT ALL col1 * + cor0.col2 + - 96 + + col1 * 46 FROM tab0 AS cor0
----
11552
4463
6698

query I rowsort
SELECT - col1 * - 66 FROM tab2 AS cor0
----
1122
2046
3894

query I rowsort
SELECT DISTINCT + 77 FROM tab1, tab1 AS cor0
----
77

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5991
SELECT CAST( NULL AS SIGNED ) * 87 AS col2 FROM tab2, tab1 AS cor0 CROSS JOIN tab0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-5991
SELECT CAST ( NULL AS INTEGER ) * 87 AS col2 FROM tab2, tab1 AS cor0 CROSS JOIN tab0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT col2 - - 92 * tab1.col1 FROM tab1
----
1292
2446
977

query I rowsort
SELECT 25 * 73 + - col2 FROM tab1
----
1729
1768
1771

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 - - cor0.col2 col1 FROM tab0 AS cor0
----
-34
-7
9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5995
SELECT ALL CAST( - col0 AS SIGNED ) + col1 AS col0 FROM tab1 AS cor0
----
-54
-67
23

skipif mysql # not compatible
query I rowsort label-5995
SELECT ALL CAST ( - col0 AS INTEGER ) + col1 AS col0 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT DISTINCT - col2 * + col1 + cor0.col2 AS col1 FROM tab1 AS cor0
----
-1152
-1350
-513

query I rowsort
SELECT + 36 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752

onlyif mysql # use DIV operator for integer division
query I rowsort label-5998
SELECT DISTINCT - col0 + 99 + col1 * 88 DIV - cor0.col1 AS col0 FROM tab1 cor0
----
-53
-69
8

skipif mysql # not compatible
query I rowsort label-5998
SELECT DISTINCT - col0 + 99 + col1 * 88 / - cor0.col1 AS col0 FROM tab1 cor0
----
-53
-69
8

onlyif mysql # use DIV operator for integer division
query I rowsort label-5999
SELECT DISTINCT - col2 DIV cor0.col0 + 23 AS col2 FROM tab2 AS cor0
----
20
23

skipif mysql # not compatible
query I rowsort label-5999
SELECT DISTINCT - col2 / cor0.col0 + 23 AS col2 FROM tab2 AS cor0
----
20
23

query I rowsort
SELECT ALL 72 AS col1 FROM tab0 cor0
----
72
72
72

query I rowsort
SELECT - - col2 + col1 * 20 FROM tab2 AS cor0
----
1206
378
647

query I rowsort
SELECT DISTINCT 51 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
51

query I rowsort
SELECT - - cor0.col0 * col2 + - 74 FROM tab1 AS cor0
----
3574
7606
88

query I rowsort
SELECT ALL - col1 * col1 + + cor0.col0 + cor0.col1 AS col2 FROM tab1 AS cor0
----
-26
-647
-76

onlyif mysql # use DIV operator for integer division
query I rowsort label-6005
SELECT DISTINCT + ( + col0 ) DIV col2 - col0 AS col0 FROM tab1 cor0
----
-3
-63
-80

skipif mysql # not compatible
query I rowsort label-6005
SELECT DISTINCT + ( + col0 ) / col2 - col0 AS col0 FROM tab1 cor0
----
-3
-63
-80

query I rowsort
SELECT cor1.col0 FROM tab1, tab0 AS cor0, tab2 cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT ALL cor1.col1 + 37 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 3d08bced210cf89a9724c588bef0c828

query I rowsort
SELECT - col2 * - col2 + 36 + + col1 FROM tab1 AS cor0
----
2978
3295
9265

query I rowsort
SELECT - + ( col2 ) + col1 * - col0 * col0 FROM tab0 cor0
----
-118826
-49569
-720893

query I rowsort
SELECT - col1 + cor0.col2 + 5 FROM tab1 AS cor0
----
33
52
88

query I rowsort
SELECT 86 * col1 + + 92 * col0 AS col0 FROM tab0
----
11562
16014
9604

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6012
SELECT + - CAST( col0 AS SIGNED ) * - col1 * - ( + 56 ) AS col0 FROM tab2 AS cor0
----
-12152
-257712
-75208

skipif mysql # not compatible
query I rowsort label-6012
SELECT + - CAST ( col0 AS INTEGER ) * - col1 * - ( + 56 ) AS col0 FROM tab2 AS cor0
----
-12152
-257712
-75208

query I rowsort
SELECT DISTINCT + col0 + ( - cor0.col0 ) * col2 * col0 + + cor0.col0 FROM tab2 AS cor0
----
-1309
-158028
-237000

query I rowsort
SELECT ALL + col1 * - 72 - col2 FROM tab2 AS cor0
----
-1262
-2259
-4274

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 73 * - 72 + - col1 col1 FROM tab1 AS cor0
----
5230
5243
5246

query I rowsort
SELECT - cor0.col0 * col1 - col1 FROM tab2 AS cor0
----
-1360
-248
-4661

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 36 + + col2 col1 FROM tab0
----
118
37
69

query I rowsort
SELECT ALL + col2 * + col1 + + col2 * + ( + 3 ) * col1 FROM tab0
----
11352
29848
388

query I rowsort
SELECT - 21 FROM tab0, tab2 AS cor0
----
9 values hashing to 631fbd1fd929405aba54a22c2a06c757

query I rowsort
SELECT - ( - col1 ) * col0 + col0 FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT - + col0 + cor0.col2 AS col1 FROM tab0 cor0
----
-34
-7
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-6022
SELECT DISTINCT + ( tab1.col1 ) DIV - tab1.col1 AS col0 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-6022
SELECT DISTINCT + ( tab1.col1 ) / - tab1.col1 AS col0 FROM tab1
----
-1

query I rowsort
SELECT ALL - 81 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 205b3ff2d7b1817c98d7980b8c17e6c1

query I rowsort
SELECT 92 * col0 FROM tab0
----
2208
3220
8188

onlyif mysql # use DIV operator for integer division
query I rowsort label-6025
SELECT + + ( - cor0.col1 ) DIV col0 AS col1 FROM tab0 AS cor0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-6025
SELECT + + ( - cor0.col1 ) / col0 AS col1 FROM tab0 AS cor0
----
-1
-2
-3

onlyif mysql # use DIV operator for integer division
query I rowsort label-6026
SELECT DISTINCT ( 78 ) * col2 DIV col0 + col2 FROM tab0 AS cor0
----
140
153
3

skipif mysql # not compatible
query I rowsort label-6026
SELECT DISTINCT ( 78 ) * col2 / col0 + col2 FROM tab0 AS cor0
----
140
153
3

query I rowsort
SELECT DISTINCT 67 * 78 FROM tab2
----
5226

query I rowsort
SELECT DISTINCT 70 AS col1 FROM tab2, tab1, tab1 AS cor0
----
70

query I rowsort
SELECT DISTINCT 26 * ( tab1.col2 ) AS col0 FROM tab1
----
1404
1482
2496

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 3 col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba

query I rowsort
SELECT + + ( - ( col1 ) ) + col2 * - col1 FROM tab2 AS cor0
----
-1593
-663
-868

query I rowsort
SELECT DISTINCT - ( + col2 ) + col1 * 14 * col0 FROM tab0 AS cor0
----
113304
28863
47529

query I rowsort
SELECT DISTINCT 64 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
64

query I rowsort
SELECT - col2 + col0 * + col1 * col2 + + col2 FROM tab1
----
36480
4212
99840

query I rowsort
SELECT ALL - 84 + - cor0.col0 * - 10 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5e83382bb7ecf34c257e61c24d57be11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + col0 col2 FROM tab2
----
49
6084
6241

query I rowsort
SELECT + ( + col0 ) + cor0.col0 AS col2 FROM tab2 AS cor0
----
14
156
158

query I rowsort
SELECT DISTINCT - 33 + + 33 AS col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT - 63 * - col0 + - col1 AS col2 FROM tab2 AS cor0
----
410
4855
4960

query I rowsort
SELECT col1 + col1 - col1 FROM tab1
----
10
13
26

query I rowsort
SELECT DISTINCT + 18 - col0 AS col2 FROM tab2
----
-60
-61
11

query I rowsort
SELECT - 68 + col0 AS col0 FROM tab1 AS cor0
----
-4
-65
12

query I rowsort
SELECT - - col2 - + ( + col1 ) FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT + col0 + ( + ( col1 ) * + col2 ) FROM tab2 AS cor0
----
1612
725
844

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6045
SELECT + col0 + + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6045
SELECT + col0 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6046
SELECT - col1 + - cor0.col1 * 75 DIV - cor0.col1 FROM tab0 AS cor0
----
-11
-16
-22

skipif mysql # not compatible
query I rowsort label-6046
SELECT - col1 + - cor0.col1 * 75 / - cor0.col1 FROM tab0 AS cor0
----
-11
-16
-22

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6047
SELECT - + col2 + CAST( col2 AS SIGNED ) FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6047
SELECT - + col2 + CAST ( col2 AS INTEGER ) FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - col2 * 7 - col1 AS col2 FROM tab2 AS cor0
----
-220
-241
-283

query I rowsort
SELECT - col0 * + 91 * + col1 - - col1 FROM tab1 AS cor0
----
-58230
-7072
-94627

query I rowsort
SELECT ALL col1 * + ( col2 ) + + col1 FROM tab1 cor0
----
1261
1430
580

query I rowsort
SELECT + col2 * - col2 + 68 AS col2 FROM tab1 AS cor0
----
-2848
-3181
-9148

query I rowsort
SELECT DISTINCT - + col2 * 78 + - col2 AS col2 FROM tab1 AS cor0
----
-4266
-4503
-7584

onlyif mysql # use DIV operator for integer division
query I rowsort label-6053
SELECT + col0 DIV + col1 FROM tab1 cor0
----
0
6
6

skipif mysql # not compatible
query I rowsort label-6053
SELECT + col0 / + col1 FROM tab1 cor0
----
0
6
6

onlyif mysql # use DIV operator for integer division
query I rowsort label-6054
SELECT + + col2 + col0 DIV - col0 FROM tab1 AS cor0
----
53
56
95

skipif mysql # not compatible
query I rowsort label-6054
SELECT + + col2 + col0 / - col0 FROM tab1 AS cor0
----
53
56
95

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6055
SELECT col0 * - CAST( NULL AS DECIMAL ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6055
SELECT col0 * - CAST ( NULL AS REAL ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL ( + col1 ) * - cor0.col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 74 + col1 col1 FROM tab1 cor0
----
100
84
87

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6058
SELECT DISTINCT CAST( - 22 AS SIGNED ) * + col1 * - ( + cor0.col0 ) AS col1 FROM tab1 AS cor0
----
14080
1716
22880

skipif mysql # not compatible
query I rowsort label-6058
SELECT DISTINCT CAST ( - 22 AS INTEGER ) * + col1 * - ( + cor0.col0 ) AS col1 FROM tab1 AS cor0
----
14080
1716
22880

query I rowsort
SELECT + col2 * - 44 + col0 FROM tab0 AS cor0
----
-1428
-3519
-9

query I rowsort
SELECT DISTINCT 41 - - col2 * + col1 FROM tab0 AS cor0
----
138
2879
7503

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - 95 + col2 col0 FROM tab1 AS cor0
----
-1139
-2416
-893

query I rowsort
SELECT ALL + + col0 * col2 + - col2 FROM tab0 AS cor0
----
34
7216
759

query I rowsort
SELECT DISTINCT ( cor0.col1 ) * col2 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT ALL - 67 + - col2 * - cor0.col2 AS col1 FROM tab1 cor0
----
2849
3182
9149

query I rowsort
SELECT ALL ( - col1 ) * col0 + col2 * - col2 AS col0 FROM tab2 AS cor0
----
-2787
-5278
-946

query I rowsort
SELECT DISTINCT col1 * + col2 - - col0 * - col2 FROM tab0 AS cor0
----
164
2046
62

query I rowsort
SELECT + - col2 * - col0 - - col0 FROM tab1 AS cor0
----
165
3712
7760

query I rowsort
SELECT ALL + col2 + col1 * col1 AS col0 FROM tab0
----
7429
8363
9410

query I rowsort
SELECT col2 * col2 + col1 AS col2 FROM tab0
----
1175
6815
98

query I rowsort
SELECT ALL - + 67 FROM tab0 AS cor0
----
-67
-67
-67

query I rowsort
SELECT + 52 * + cor0.col0 AS col2 FROM tab0 AS cor0
----
1248
1820
4628

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6072
SELECT ALL col1 * - col0 * + CAST( cor0.col2 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-119652
-51034
-5859

skipif mysql # not compatible
query I rowsort label-6072
SELECT ALL col1 * - col0 * + CAST ( cor0.col2 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-119652
-51034
-5859

query I rowsort
SELECT DISTINCT - col2 * col2 * ( 86 ) AS col1 FROM tab2 AS cor0
----
-124184
-58136
-62694

onlyif mysql # use DIV operator for integer division
query I rowsort label-6074
SELECT DISTINCT + col0 DIV col1 AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6074
SELECT DISTINCT + col0 / col1 AS col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT - - cor0.col0 * col2 AS col2 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT ( + col1 ) + - 7 AS col1 FROM tab1 AS cor0
----
19
3
6

query I rowsort
SELECT ALL col1 * + col2 * col0 FROM tab0 AS cor0
----
3395
664118
68112

query I rowsort
SELECT DISTINCT - 91 AS col0 FROM tab2 cor0
----
-91

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6079
SELECT ALL - - col2 + + col0 * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6079
SELECT ALL - - col2 + + col0 * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6080
SELECT + cor0.col0 DIV col2 col2 FROM tab0 AS cor0
----
0
1
35

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6080
SELECT + cor0.col0 / col2 col2 FROM tab0 AS cor0
----
0
1
35

onlyif mysql # use DIV operator for integer division
query I rowsort label-6081
SELECT ALL + col1 DIV ( col2 + - 28 ) FROM tab2
----
-29
-31
1

skipif mysql # not compatible
query I rowsort label-6081
SELECT ALL + col1 / ( col2 + - 28 ) FROM tab2
----
-29
-31
1

query I rowsort
SELECT ALL col2 * ( col1 ) + + 41 - col2 FROM tab2 AS cor0
----
1549
649
851

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6083
SELECT CAST( col0 AS SIGNED ) + col0 AS col1 FROM tab2 AS cor0
----
14
156
158

skipif mysql # not compatible
query I rowsort label-6083
SELECT CAST ( col0 AS INTEGER ) + col0 AS col1 FROM tab2 AS cor0
----
14
156
158

query I rowsort
SELECT ALL + - 36 * - col2 + col0 * + col2 FROM tab1 AS cor0
----
11136
2106
5700

query I rowsort
SELECT ALL + + col1 + ( col2 ) * col1 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT cor0.col1 + + col0 * - col0 * 55 AS col1 FROM tab0 AS cor0
----
-31594
-435564
-67278

query I rowsort
SELECT col1 * col0 + + col1 AS col0 FROM tab1
----
104
1053
650

query I rowsort
SELECT - ( ( col0 ) ) + + col1 AS col2 FROM tab1
----
-54
-67
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + col1 col1 FROM tab1
----
100
169
676

query I rowsort
SELECT + ( - 59 ) FROM tab1
----
-59
-59
-59

query I rowsort
SELECT - col1 * + 68 * - col0 AS col2 FROM tab2
----
14756
312936
91324

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6092
SELECT cor0.col2 * CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6092
SELECT cor0.col2 * CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + col2 * + 29 FROM tab1 AS cor0
----
-1566
-1653
-2784

query I rowsort
SELECT - - cor0.col0 - + 11 FROM tab0 AS cor0
----
13
24
78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6095
SELECT + col1 * CAST( col1 + cor0.col2 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
1798
5015
935

skipif mysql # not compatible
query I rowsort label-6095
SELECT + col1 * CAST ( col1 + cor0.col2 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
1798
5015
935

query I rowsort
SELECT DISTINCT - col2 + + ( - col1 ) FROM tab1 AS cor0
----
-109
-67
-80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6097
SELECT + col2 - + CAST( NULL AS SIGNED ) / - col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6097
SELECT + col2 - + CAST ( NULL AS INTEGER ) / - col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6098
SELECT ALL + cor0.col2 * + 90 + col1 DIV + col2 FROM tab0 AS cor0
----
187
2972
7381

skipif mysql # not compatible
query I rowsort label-6098
SELECT ALL + cor0.col2 * + 90 + col1 / + col2 FROM tab0 AS cor0
----
187
2972
7381

query I rowsort
SELECT ALL 0 + - col0 + ( 96 ) FROM tab0
----
61
7
72

query I rowsort
SELECT DISTINCT + - tab0.col1 AS col0 FROM tab0, tab1, tab1 cor0
----
-86
-91
-97

query I rowsort
SELECT ( + tab1.col0 ) * 81 + + col1 + + col0 AS col1 FROM tab1
----
272
5258
6573

query I rowsort
SELECT + col2 + + ( tab1.col0 ) AS col0 FROM tab1
----
121
176
57

query I rowsort
SELECT DISTINCT - col1 + 24 * col1 FROM tab0
----
1978
2093
2231

query I rowsort
SELECT DISTINCT tab0.col1 + + col1 * - col1 FROM tab0
----
-7310
-8190
-9312

onlyif mysql # use DIV operator for integer division
query I rowsort label-6105
SELECT DISTINCT - col1 DIV - col1 AS col1 FROM tab2 cor0
----
1

skipif mysql # not compatible
query I rowsort label-6105
SELECT DISTINCT - col1 / - col1 AS col1 FROM tab2 cor0
----
1

query I rowsort
SELECT + col0 * + ( - col0 ) AS col0 FROM tab1 AS cor0
----
-4096
-6400
-9

query I rowsort
SELECT - + cor0.col0 + cor0.col2 FROM tab1 AS cor0
----
-7
16
51

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6108
SELECT ALL + col2 * - CAST( col0 AS SIGNED ) FROM tab0
----
-35
-7298
-792

skipif mysql # not compatible
query I rowsort label-6108
SELECT ALL + col2 * - CAST ( col0 AS INTEGER ) FROM tab0
----
-35
-7298
-792

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6109
SELECT ALL - col1 * - col2 * ( col2 * CAST( NULL AS SIGNED ) ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6109
SELECT ALL - col1 * - col2 * ( col2 * CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6110
SELECT DISTINCT - col0 DIV + col2 AS col0 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-6110
SELECT DISTINCT - col0 / + col2 AS col0 FROM tab1
----
-1
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6111
SELECT + col2 + cor0.col1 DIV - col0 AS col0 FROM tab1 AS cor0
----
46
57
96

skipif mysql # not compatible
query I rowsort label-6111
SELECT + col2 + cor0.col1 / - col0 AS col0 FROM tab1 AS cor0
----
46
57
96

query I rowsort
SELECT ALL + 86 + col0 AS col1 FROM tab0 AS cor0
----
110
121
175

query I rowsort
SELECT tab2.col1 * col0 * + tab2.col1 AS col2 FROM tab2
----
22831
271518
6727

query I rowsort
SELECT ALL - 72 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to ad521144c976ff25e77cdf10a84d1dc6

query I rowsort
SELECT + tab0.col1 * 33 AS col1 FROM tab0
----
2838
3003
3201

query I rowsort
SELECT - col2 * ( + col0 ) * col0 FROM tab0
----
-1225
-19008
-649522

onlyif mysql # use DIV operator for integer division
query I rowsort label-6117
SELECT + col1 DIV + 52 AS col1 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6117
SELECT + col1 / + 52 AS col1 FROM tab2
----
0
0
1

query I rowsort
SELECT + ( + col1 ) * + col0 * ( + 2 ) FROM tab0
----
16198
4128
6790

query I rowsort
SELECT 51 * col0 FROM tab2
----
357
3978
4029

query I rowsort
SELECT - - ( col1 ) + cor0.col1 * col0 * 78 + col2 * + col0 AS col2 FROM tab0 AS cor0
----
161870
264942
639111

onlyif mysql # use DIV operator for integer division
query I rowsort label-6121
SELECT - 34 + + 0 + + col1 DIV col2 AS col2 FROM tab0 AS cor0
----
-32
-33
63

skipif mysql # not compatible
query I rowsort label-6121
SELECT - 34 + + 0 + + col1 / col2 AS col2 FROM tab0 AS cor0
----
-32
-33
63

onlyif mysql # use DIV operator for integer division
query I rowsort label-6122
SELECT - + 39 * cor0.col1 + col1 DIV col0 FROM tab1 AS cor0
----
-1006
-390
-507

skipif mysql # not compatible
query I rowsort label-6122
SELECT - + 39 * cor0.col1 + col1 / col0 FROM tab1 AS cor0
----
-1006
-390
-507

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6123
SELECT + - CAST( NULL AS SIGNED ) + col2 + + col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6123
SELECT + - CAST ( NULL AS INTEGER ) + col2 + + col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + col1 * - cor0.col2 + col2 + col1 FROM tab2 AS cor0
----
-1449
-591
-779

query I rowsort
SELECT DISTINCT - 88 * col1 + + ( + 98 ) AS col2 FROM tab1 AS cor0
----
-1046
-2190
-782

query I rowsort
SELECT DISTINCT - 72 AS col1 FROM tab0 AS cor0
----
-72

onlyif mysql # use DIV operator for integer division
query I rowsort label-6127
SELECT ALL + col0 + - col1 DIV 89 FROM tab2 cor0
----
7
78
79

skipif mysql # not compatible
query I rowsort label-6127
SELECT ALL + col0 + - col1 / 89 FROM tab2 cor0
----
7
78
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-6128
SELECT col1 DIV + col1 + + col1 + - col1 AS col1 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6128
SELECT col1 / + col1 + + col1 + - col1 AS col1 FROM tab1 AS cor0
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-6129
SELECT + col2 DIV + 51 col0 FROM tab1 AS cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6129
SELECT + col2 / + 51 col0 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT + cor0.col2 - - cor0.col0 * col2 FROM tab2 AS cor0
----
2054
216
3040

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * - col2 + - col0 col1 FROM tab1 cor0
----
-1328
-1407
-634

query I rowsort
SELECT - 15 * + col0 AS col1 FROM tab2 AS cor0
----
-105
-1170
-1185

query I rowsort
SELECT DISTINCT + - col2 * col2 - + 94 AS col1 FROM tab0 AS cor0
----
-1183
-6818
-95

query I rowsort
SELECT + col2 * col0 + 76 FROM tab1 cor0
----
238
3724
7756

onlyif mysql # use DIV operator for integer division
query I rowsort label-6135
SELECT ALL - col2 + col0 DIV 33 AS col2 FROM tab2 AS cor0
----
-24
-27
-36

skipif mysql # not compatible
query I rowsort label-6135
SELECT ALL - col2 + col0 / 33 AS col2 FROM tab2 AS cor0
----
-24
-27
-36

query I rowsort
SELECT col2 - - col2 AS col2 FROM tab1 AS cor0
----
108
114
192

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + col2 * 32 + - col0 col1 FROM tab2 AS cor0
----
21554
23321
46129

query I rowsort
SELECT ALL - 98 AS col2 FROM tab1 AS cor0
----
-98
-98
-98

query I rowsort
SELECT - 66 * - col1 * col1 - ( - col0 * col1 ) AS col0 FROM tab2 AS cor0
----
20417
234348
63643

query I rowsort
SELECT + col2 + - cor0.col2 * col1 AS col2 FROM tab1 cor0
----
-1152
-1350
-513

query I rowsort
SELECT ALL + col0 + + col1 * 49 AS col1 FROM tab2 AS cor0
----
1526
2969
912

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 29 * col1 col2 FROM tab0 AS cor0
----
2494
2639
2813

onlyif mysql # use DIV operator for integer division
query I rowsort label-6143
SELECT + tab1.col1 DIV - col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6143
SELECT + tab1.col1 / - col2 FROM tab1
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6144
SELECT CAST( + 32 AS SIGNED ) * col2 col1 FROM tab0
----
1056
2624
32

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6144
SELECT CAST ( + 32 AS INTEGER ) * col2 col1 FROM tab0
----
1056
2624
32

query I rowsort
SELECT ALL - col0 * - col0 * col1 FROM tab2 AS cor0
----
106097
1519
358956

query I rowsort
SELECT + ( col1 ) * 46 - - 54 AS col2 FROM tab1 AS cor0
----
1250
514
652

query I rowsort
SELECT DISTINCT - 37 * - col1 FROM tab2 AS cor0
----
1147
2183
629

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - col0 col2 FROM tab2
----
-41
-52
20

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6149
SELECT ALL + col1 + CAST( NULL AS SIGNED ) col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6149
SELECT ALL + col1 + CAST ( NULL AS INTEGER ) col2 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 + col2 * - ( col0 ) FROM tab2
----
-158
-1969
-2985

query I rowsort
SELECT ALL ( - 14 ) AS col2 FROM tab2 AS cor0
----
-14
-14
-14

query I rowsort
SELECT ALL + cor0.col1 * - col1 AS col2 FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT DISTINCT + 59 AS col0 FROM tab2, tab1 AS cor0
----
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-6154
SELECT DISTINCT + 38 + - col2 DIV - col1 AS col0 FROM tab1 cor0
----
40
43
45

skipif mysql # not compatible
query I rowsort label-6154
SELECT DISTINCT + 38 + - col2 / - col1 AS col0 FROM tab1 cor0
----
40
43
45

query I rowsort
SELECT ALL - + ( col0 ) * cor0.col0 FROM tab1 AS cor0
----
-4096
-6400
-9

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 cor0 CROSS JOIN tab1, tab0 AS cor1, tab2, tab2 AS cor2
----
3645 values hashing to 17ceecc141378b185d60a17e53464c26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6157
SELECT CAST( NULL AS SIGNED ) + col1 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6157
SELECT CAST ( NULL AS INTEGER ) + col1 AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 56 * col0 AS col0 FROM tab1
----
-168
-3584
-4480

query I rowsort
SELECT ( tab2.col0 ) * ( + 19 ) FROM tab2, tab1 cor0
----
9 values hashing to 699296a3061c930701cf2dc6d47c8cae

query I rowsort
SELECT + 16 - col1 FROM tab0
----
-70
-75
-81

onlyif mysql # use DIV operator for integer division
query I rowsort label-6161
SELECT DISTINCT col2 DIV 67 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-6161
SELECT DISTINCT col2 / 67 FROM tab2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - cor0.col2 * col2 col2 FROM tab1 AS cor0
----
-2916
-3249
-9216

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6163
SELECT - ( + col0 ) * - col0 - CAST( col2 AS SIGNED ) FROM tab1
----
-45
4039
6304

skipif mysql # not compatible
query I rowsort label-6163
SELECT - ( + col0 ) * - col0 - CAST ( col2 AS INTEGER ) FROM tab1
----
-45
4039
6304

query I rowsort
SELECT + ( col2 ) * + col2 - 42 AS col0 FROM tab1
----
2874
3207
9174

query I rowsort
SELECT DISTINCT ( 41 ) AS col0 FROM tab2 AS cor0
----
41

query I rowsort
SELECT ALL - 85 * - col1 + col0 + - col0 * + col2 AS col0 FROM tab1 AS cor0
----
-2734
-6495
2051

query I rowsort
SELECT ALL - + col1 + ( + col1 ) - - 3 FROM tab2 cor0
----
3
3
3

query I rowsort
SELECT - 82 + - 6 FROM tab1 AS cor0
----
-88
-88
-88

query I rowsort
SELECT DISTINCT - 3 * 88 AS col1 FROM tab0 AS cor0
----
-264

query I rowsort
SELECT DISTINCT tab0.col0 AS col2 FROM tab0, tab1 AS cor0
----
24
35
89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6171
SELECT + tab2.col1 * CAST( NULL AS SIGNED ) AS col1 FROM tab2, tab0 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-6171
SELECT + tab2.col1 * CAST ( NULL AS INTEGER ) AS col1 FROM tab2, tab0 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # use DIV operator for integer division
query I rowsort label-6172
SELECT DISTINCT + col0 + + col0 DIV - col1 AS col2 FROM tab1 AS cor0
----
3
58
74

skipif mysql # not compatible
query I rowsort label-6172
SELECT DISTINCT + col0 + + col0 / - col1 AS col2 FROM tab1 AS cor0
----
3
58
74

query I rowsort
SELECT ALL + 34 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 4e2ca147a59e0d5661c28cf3e5431caa

query I rowsort
SELECT ALL - 68 AS col2 FROM tab0 cor0
----
-68
-68
-68

query I rowsort
SELECT DISTINCT + - cor0.col2 + + col0 AS col2 FROM tab2 cor0
----
-20
41
52

query I rowsort
SELECT DISTINCT col0 + col2 * - col2 FROM tab0
----
-1065
-6635
34

query I rowsort
SELECT ALL - tab2.col2 + col2 AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT - col0 + 2 AS col2 FROM tab1
----
-1
-62
-78

query I rowsort
SELECT ALL - + col0 * - cor0.col0 - + col1 AS col1 FROM tab2 AS cor0
----
18
6025
6224

query I rowsort
SELECT - col0 * - col2 + col0 * col1 FROM tab2 AS cor0
----
406
4345
6630

query I rowsort
SELECT DISTINCT + col2 + col1 + 77 AS col0 FROM tab2 cor0
----
132
135
162

query I rowsort
SELECT ALL + - col2 - cor0.col0 AS col0 FROM tab2 AS cor0
----
-104
-117
-34

query I rowsort
SELECT DISTINCT - + col2 + cor0.col1 FROM tab0 cor0
----
53
9
96

query I rowsort
SELECT - 89 * 87 AS col0 FROM tab2 AS cor0
----
-7743
-7743
-7743

query I rowsort
SELECT ALL - + col1 + - col2 * + col2 + - 5 FROM tab0 AS cor0
----
-103
-1180
-6820

query I rowsort
SELECT ALL ( + ( + col0 ) ) AS col2 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT DISTINCT + - 74 AS col2 FROM tab2 AS cor0
----
-74

query I rowsort
SELECT DISTINCT 24 + col2 * cor0.col1 AS col0 FROM tab0 AS cor0
----
121
2862
7486

query I rowsort
SELECT ALL - - 14 * + col0 FROM tab0 cor0
----
1246
336
490

query I rowsort
SELECT col1 * - col0 + + col1 FROM tab2 AS cor0
----
-1326
-186
-4543

query I rowsort
SELECT DISTINCT - + col2 - col2 FROM tab2 cor0
----
-52
-54
-76

query I rowsort
SELECT DISTINCT - 6 * ( cor0.col1 ) FROM tab2 AS cor0
----
-102
-186
-354

query I rowsort
SELECT ALL - - ( + col2 ) + - col2 + col2 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT DISTINCT - + ( - cor0.col0 ) + col2 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT ALL - col1 + - 95 AS col2 FROM tab0
----
-181
-186
-192

query I rowsort
SELECT ALL col0 * col0 + col2 FROM tab0
----
1226
609
8003

query I rowsort
SELECT ALL + col1 * - 42 + + col2 * + col2 FROM tab2
----
-1802
-573
730

query I rowsort
SELECT DISTINCT + col1 * + ( - cor0.col1 ) + + col2 + + 63 * + cor0.col1 FROM tab2 AS cor0
----
1019
262
820

query I rowsort
SELECT DISTINCT + col2 + + col1 * col0 FROM tab2 AS cor0
----
1381
244
4628

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 45 col1 FROM tab0 AS cor0
----
45
45
45

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6201
SELECT - + CAST( 84 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-84
-84
-84

skipif mysql # not compatible
query I rowsort label-6201
SELECT - + CAST ( 84 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-84
-84
-84

query I rowsort
SELECT ALL col0 * col1 * col2 + + col2 * ( col0 ) FROM tab0
----
3430
671416
68904

query I rowsort
SELECT - col1 * col2 AS col0 FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN NULL AND col0 * - col1 * col2
----

query I rowsort
SELECT col1 FROM tab1 WHERE col1 = NULL
----

query I rowsort
SELECT + col1 * col1 + + col1 FROM tab0
----
7482
8372
9506

query I rowsort
SELECT + col0 * col1 + col0 AS col2 FROM tab0
----
2088
3430
8188

query I rowsort
SELECT col2 * + col1 - col1 FROM tab1 AS cor0
----
1235
1378
560

query I rowsort
SELECT DISTINCT cor0.col2 / - cor0.col0 AS col0 FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT + col1 + - col1 * cor0.col0 FROM tab1 AS cor0
----
-1027
-52
-630

query I rowsort
SELECT DISTINCT + cor0.col1 + + col0 * col0 AS col2 FROM tab2 AS cor0
----
6143
6258
80

query I rowsort
SELECT ALL + cor0.col2 * col2 + - col0 FROM tab1 cor0
----
2913
3185
9136

query I rowsort
SELECT DISTINCT col2 * col2 + + col2 AS col0 FROM tab2 AS cor0
----
1482
702
756

query I rowsort
SELECT ALL + cor0.col2 - col0 AS col0 FROM tab2 AS cor0
----
-41
-52
20

onlyif mysql # use DIV operator for integer division
query I rowsort label-6214
SELECT - tab0.col1 DIV + col2 FROM tab0
----
-1
-2
-97

skipif mysql # not compatible
query I rowsort label-6214
SELECT - tab0.col1 / + col2 FROM tab0
----
-1
-2
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 col0 FROM tab1 WHERE NULL BETWEEN ( col0 ) AND ( col2 * col2 )
----

query I rowsort
SELECT - col2 + col2 FROM tab1 WHERE + col0 / col2 + col2 = - col1 * col2
----

query I rowsort
SELECT DISTINCT tab2.col2 AS col2 FROM tab2 WHERE NOT NULL NOT BETWEEN ( NULL ) AND - col0 * col1
----

query I rowsort
SELECT col1 * - col2 * col0 AS col1 FROM tab2
----
-119652
-51034
-5859

query I rowsort
SELECT ALL - col2 * + tab0.col0 * col1 FROM tab0
----
-3395
-664118
-68112

onlyif mysql # use DIV operator for integer division
query I rowsort label-6220
SELECT ALL + col1 DIV col0 + col0 * + col0 * + col2 FROM tab1
----
233472
494
614400

skipif mysql # not compatible
query I rowsort label-6220
SELECT ALL + col1 / col0 + col0 * + col0 * + col2 FROM tab1
----
233472
494
614400

query I rowsort
SELECT - col2 * col2 - + col2 * col0 * tab0.col0 FROM tab0 WHERE NULL BETWEEN NULL AND + col2
----

query I rowsort
SELECT col1 FROM tab1 WHERE NOT ( NULL ) <= ( - col1 / + col0 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL IN ( col1 * col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT + col0 + tab2.col1 * - col0 FROM tab2
----
-1264
-210
-4524

query I rowsort
SELECT col0 * col2 * col1 + col2 FROM tab0
----
3396
664200
68145

query I rowsort
SELECT + col0 * - col2 + col1 FROM tab1
----
-136
-3638
-7667

query I rowsort
SELECT + col2 * col2 * - col1 FROM tab2
----
-22599
-24548
-39884

query I rowsort
SELECT ALL - col2 - col0 * + col0 FROM tab0
----
-1226
-609
-8003

query I rowsort
SELECT col2 + - col0 * col2 FROM tab0 AS cor0
----
-34
-7216
-759

query I rowsort
SELECT ALL + col0 * + col1 * + col0 + col2 FROM tab1 AS cor0
----
288
41017
83296

onlyif mysql # use DIV operator for integer division
query I rowsort label-6232
SELECT DISTINCT - + cor0.col1 DIV + col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6232
SELECT DISTINCT - + cor0.col1 / + col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT - cor0.col0 * cor0.col2 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT ALL col0 * col2 * col1 FROM tab0 AS cor0
----
3395
664118
68112

query I rowsort
SELECT ALL col1 + col2 + col1 FROM tab0 AS cor0
----
195
205
264

query I rowsort
SELECT col0 * col2 * - cor0.col0 FROM tab0 cor0
----
-1225
-19008
-649522

query I rowsort
SELECT + + col0 * + col2 + + col1 AS col1 FROM tab1 cor0
----
188
3658
7693

onlyif mysql # use DIV operator for integer division
query I rowsort label-6238
SELECT + col2 + col2 DIV col0 col2 FROM tab1
----
57
72
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6238
SELECT + col2 + col2 / col0 col2 FROM tab1
----
57
72
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-6239
SELECT + col0 DIV + col1 + + col0 AS col1 FROM tab0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-6239
SELECT + col0 / + col1 + + col0 AS col1 FROM tab0
----
24
35
89

query I rowsort
SELECT col2 * col2 + + tab1.col0 AS col2 FROM tab1
----
2919
3313
9296

query I rowsort
SELECT DISTINCT - col1 + + col2 * col1 FROM tab1 AS cor0
----
1235
1378
560

query I rowsort
SELECT cor0.col1 - col1 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT col2 FROM tab1 WHERE NOT ( NULL ) = col1 + col1 * - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab1.col0 col1 FROM tab1 AS cor0 CROSS JOIN tab1
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870

query I rowsort
SELECT + col1 + + col0 * col2 FROM tab0
----
132
7389
878

query I rowsort
SELECT + col1 * 45 * 39 AS col1 FROM tab0 AS cor0
----
150930
159705
170235

query I rowsort
SELECT + - cor0.col1 * 27 FROM tab0 AS cor0
----
-2322
-2457
-2619

query I rowsort
SELECT col0 + - 59 FROM tab0 AS cor0
----
-24
-35
30

query I rowsort
SELECT - + cor0.col1 * - cor0.col2 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT DISTINCT + 70 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
70

query I rowsort
SELECT + + col2 * col0 + col1 * col2 FROM tab1 cor0
----
1566
4218
8928

onlyif mysql # use DIV operator for integer division
query I rowsort label-6252
SELECT - col2 DIV 86 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6252
SELECT - col2 / 86 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - col1 * col0 * + col1 FROM tab0 AS cor0
----
-177504
-329315
-737009

query I rowsort
SELECT col1 * - tab1.col2 + col0 AS col0 FROM tab1
----
-1168
-1401
-506

query I rowsort
SELECT col2 * tab0.col2 + + col2 AS col2 FROM tab0
----
1122
2
6806

query I rowsort
SELECT DISTINCT col0 + - col1 FROM tab1 WHERE NOT col2 <= NULL
----

query I rowsort
SELECT ALL col2 FROM tab1 WHERE NULL <> NULL
----

query I rowsort
SELECT ALL tab1.col2 * + col1 + - tab1.col2 * col0 * col0 AS col2 FROM tab1
----
-232902
-613152
918

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col0 FROM tab2 WHERE NOT ( NULL ) <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab0.col1 + col0 * + col2 col0 FROM tab0
----
132
7389
878

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NULL ) <> - col1 / - col1
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-6262
SELECT DISTINCT col1 - - col1 DIV col0 FROM tab1
----
10
13
34

skipif mysql # not compatible
query I rowsort label-6262
SELECT DISTINCT col1 - - col1 / col0 FROM tab1
----
10
13
34

query I rowsort
SELECT + tab2.col0 - col2 * col2 FROM tab2
----
-1365
-598
-722

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + col0 + - col0 col1 FROM tab0
----
2040
3360
8010

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 46 col1 FROM tab0
----
46
46
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 6 * + col2 col2 FROM tab0 AS cor0
----
198
492
6

query I rowsort
SELECT DISTINCT ( col0 ) + 45 AS col0 FROM tab0 AS cor0
----
134
69
80

query I rowsort
SELECT DISTINCT + + 25 AS col1 FROM tab2, tab0, tab0 AS cor0
----
25

query I rowsort
SELECT DISTINCT - cor0.col1 + - col0 * 57 FROM tab1 AS cor0
----
-197
-3658
-4573

query I rowsort
SELECT - col2 + - ( - col2 ) * - col1 FROM tab0 cor0
----
-2871
-7544
-98

onlyif mysql # use DIV operator for integer division
query I rowsort label-6271
SELECT ALL + col0 DIV 57 AS col1 FROM tab2 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-6271
SELECT ALL + col0 / 57 AS col1 FROM tab2 AS cor0
----
0
1
1

query I rowsort
SELECT DISTINCT cor0.col2 * col1 FROM tab2 cor0
----
1534
646
837

query I rowsort
SELECT DISTINCT - + col0 - + 12 FROM tab2 cor0
----
-19
-90
-91

onlyif mysql # use DIV operator for integer division
query I rowsort label-6274
SELECT ALL + - col0 + col2 DIV col0 FROM tab2 AS cor0
----
-4
-78
-79

skipif mysql # not compatible
query I rowsort label-6274
SELECT ALL + - col0 + col2 / col0 FROM tab2 AS cor0
----
-4
-78
-79

query I rowsort
SELECT ALL + cor0.col0 + col2 * col0 FROM tab0 AS cor0
----
70
7387
816

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6276
SELECT DISTINCT - CAST( + col2 AS SIGNED ) + - col2 col1 FROM tab0 cor0
----
-164
-2
-66

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6276
SELECT DISTINCT - CAST ( + col2 AS INTEGER ) + - col2 col1 FROM tab0 cor0
----
-164
-2
-66

query I rowsort
SELECT + + col2 * 3 - - col1 FROM tab1 AS cor0
----
181
188
301

query I rowsort
SELECT ALL + col2 * 67 + + col0 * + col2 FROM tab1 AS cor0
----
14112
3780
7467

query I rowsort
SELECT ALL + - col2 * + 41 FROM tab2 cor0
----
-1066
-1107
-1558

query I rowsort
SELECT DISTINCT + col2 * - cor0.col0 + - col1 AS col2 FROM tab2 AS cor0
----
-2087
-220
-3019

query I rowsort
SELECT DISTINCT - ( col0 ) * - col0 + cor0.col2 FROM tab2 AS cor0
----
6110
6279
76

query IIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2, tab0 cor1, tab2 AS cor2
----
972 values hashing to 89714dd446b7a97f8787d5744bdbf323

query I rowsort
SELECT - cor0.col0 * + 84 FROM tab1, tab0 cor0
----
9 values hashing to 2027acce54418cd6be1f9bdb349717c0

query I rowsort
SELECT ALL + 39 * - col1 + col0 * - col2 AS col0 FROM tab2 AS cor0
----
-1398
-3665
-4329

query I rowsort
SELECT DISTINCT - - 29 FROM tab0 AS cor0
----
29

query I rowsort
SELECT - 74 * - col2 FROM tab0 AS cor0
----
2442
6068
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 * + col2 col2 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT ALL col0 * 35 AS col1 FROM tab0 AS cor0
----
1225
3115
840

query I rowsort
SELECT 1 + - tab0.col1 FROM tab0
----
-85
-90
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-6290
SELECT ALL + 91 DIV tab1.col2 + + 28 FROM tab1
----
28
29
29

skipif mysql # not compatible
query I rowsort label-6290
SELECT ALL + 91 / tab1.col2 + + 28 FROM tab1
----
28
29
29

query I rowsort
SELECT DISTINCT - col1 * + cor0.col0 AS col2 FROM tab2 AS cor0
----
-1343
-217
-4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-6292
SELECT - col0 DIV col1 + col2 AS col1 FROM tab2
----
25
27
34

skipif mysql # not compatible
query I rowsort label-6292
SELECT - col0 / col1 + col2 AS col1 FROM tab2
----
25
27
34

query I rowsort
SELECT DISTINCT + col2 + + col1 + col1 * - col0 * + tab2.col0 FROM tab2
----
-106042
-1461
-358871

onlyif mysql # use DIV operator for integer division
query I rowsort label-6294
SELECT DISTINCT tab2.col1 DIV + col0 FROM tab2
----
0
4

skipif mysql # not compatible
query I rowsort label-6294
SELECT DISTINCT tab2.col1 / + col0 FROM tab2
----
0
4

query I rowsort
SELECT DISTINCT - col2 * - col1 * col0 FROM tab2
----
119652
51034
5859

query I rowsort
SELECT - col2 * - col1 + - col2 AS col1 FROM tab1
----
1152
1350
513

query I rowsort
SELECT DISTINCT + - col1 * col0 + col2 * - cor0.col1 AS col2 FROM tab0 cor0
----
-15561
-3492
-4902

onlyif mysql # use DIV operator for integer division
query I rowsort label-6298
SELECT + 20 * col0 DIV col1 AS col2 FROM tab2
----
26
4
92

skipif mysql # not compatible
query I rowsort label-6298
SELECT + 20 * col0 / col1 AS col2 FROM tab2
----
26
4
92

query I rowsort
SELECT - 99 - - tab0.col2 FROM tab0
----
-17
-66
-98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6300
SELECT ALL CAST( + col1 AS SIGNED ) - - col2 * - col0 FROM tab2
----
-158
-1969
-2985

skipif mysql # not compatible
query I rowsort label-6300
SELECT ALL CAST ( + col1 AS INTEGER ) - - col2 * - col0 FROM tab2
----
-158
-1969
-2985

query I rowsort
SELECT + ( - col0 ) + col0 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT + tab2.col1 * - tab2.col2 - col0 AS col1 FROM tab2
----
-1612
-725
-844

query I rowsort
SELECT ALL + tab2.col0 * + 47 + tab2.col0 - col1 FROM tab2
----
305
3685
3775

query I rowsort
SELECT - + col1 + ( + col0 ) AS col2 FROM tab0 AS cor0
----
-2
-62
-62

query I rowsort
SELECT ALL + 1 + + col0 * - cor0.col0 AS col2 FROM tab0 AS cor0
----
-1224
-575
-7920

query I rowsort
SELECT tab2.col2 + - 18 AS col0 FROM tab2
----
20
8
9

query I rowsort
SELECT DISTINCT - cor0.col0 * col0 AS col2 FROM tab2 AS cor0
----
-49
-6084
-6241

onlyif mysql # use DIV operator for integer division
query I rowsort label-6308
SELECT + col0 DIV + col1 + + col0 FROM tab1 AS cor0
----
3
70
86

skipif mysql # not compatible
query I rowsort label-6308
SELECT + col0 / + col1 + + col0 FROM tab1 AS cor0
----
3
70
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 80 col0 FROM tab0 AS cor0
----
-80

query I rowsort
SELECT + + col0 * col1 + col1 FROM tab1 cor0
----
104
1053
650

query I rowsort
SELECT ALL + 60 * col2 + col0 + col1 FROM tab2 AS cor0
----
1658
1697
2376

query I rowsort
SELECT - 50 + col0 * col0 AS col2 FROM tab0 AS cor0
----
1175
526
7871

query I rowsort
SELECT - col1 * col2 + + col1 + col1 AS col0 FROM tab0 AS cor0
----
-2666
-7280
97

query I rowsort
SELECT ALL col1 * + col0 + cor0.col1 FROM tab2 AS cor0
----
1360
248
4661

query I rowsort
SELECT + col2 * col2 * - col0 + + col0 FROM tab2 AS cor0
----
-113997
-5096
-52650

query I rowsort
SELECT - - cor0.col1 + - col0 AS col0 FROM tab2 AS cor0
----
-19
-62
24

onlyif mysql # use DIV operator for integer division
query I rowsort label-6317
SELECT ALL cor0.col2 * col1 DIV cor0.col0 AS col1 FROM tab2 AS cor0
----
119
19
8

skipif mysql # not compatible
query I rowsort label-6317
SELECT ALL cor0.col2 * col1 / cor0.col0 AS col1 FROM tab2 AS cor0
----
119
19
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + col2 + col0 * col2 col1 FROM tab0 AS cor0
----
-164
-2046
-62

onlyif mysql # use DIV operator for integer division
query I rowsort label-6319
SELECT ALL + ( + col0 ) DIV - col0 + col1 * - cor0.col0 AS col1 FROM tab1 AS cor0
----
-1041
-641
-79

skipif mysql # not compatible
query I rowsort label-6319
SELECT ALL + ( + col0 ) / - col0 + col1 * - cor0.col0 AS col1 FROM tab1 AS cor0
----
-1041
-641
-79

query I rowsort
SELECT ALL cor0.col0 * col1 FROM tab0 cor0
----
2064
3395
8099

query I rowsort
SELECT ALL + 2 + + col1 * cor0.col1 FROM tab2 AS cor0
----
291
3483
963

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 + - col2 col0 FROM tab1 AS cor0
----
-121
-176
-57

query I rowsort
SELECT ALL - col2 + + col2 AS col2 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col1 + + col0 * col1 + + col1 * - col2 FROM tab1 AS cor0
----
-1300
-195
80

query I rowsort
SELECT ALL + 22 AS col1 FROM tab1
----
22
22
22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - tab0.col2 ) col2 FROM tab0
----
-1
-33
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 27 ) col1 FROM tab1
----
27
27
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 88 * - col1 col1 FROM tab2
----
-1496
-2728
-5192

query I rowsort
SELECT - 38 * col1 * tab1.col2 AS col0 FROM tab1
----
-21660
-47424
-53352

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6330
SELECT DISTINCT - 54 + - tab0.col1 * - CAST( NULL AS SIGNED ) AS col1 FROM tab0, tab1, tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6330
SELECT DISTINCT - 54 + - tab0.col1 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab0, tab1, tab0 AS cor0
----
NULL

query I rowsort
SELECT 96 * - col2 * - 71 AS col1 FROM tab1
----
368064
388512
654336

query I rowsort
SELECT ALL + col1 + - col0 * - 27 AS col2 FROM tab0 AS cor0
----
1042
2494
734

query I rowsort
SELECT col2 * col0 + + ( col0 + - cor0.col1 ) FROM tab2 AS cor0
----
165
2047
3064

query I rowsort
SELECT + 50 * col2 + + col0 * + cor0.col0 AS col1 FROM tab1 AS cor0
----
11200
2709
6946

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col1 + col0 col0 FROM tab2 AS cor0
----
113
196
69

query I rowsort
SELECT DISTINCT - 60 FROM tab0, tab2 AS cor0
----
-60

query I rowsort
SELECT - col2 + - ( tab1.col0 + + col0 ) AS col1 FROM tab1
----
-185
-256
-60

query I rowsort
SELECT - col0 + + 65 FROM tab1
----
-15
1
62

query I rowsort
SELECT ALL - col0 * ( col1 ) FROM tab0 AS cor0
----
-2064
-3395
-8099

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-6341
SELECT + - CAST( cor0.col1 AS SIGNED ) FROM tab0 AS cor0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-6341
SELECT + - CAST ( cor0.col1 AS INTEGER ) FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT ALL + 39 AS col1 FROM tab1 cor0
----
39
39
39

query I rowsort
SELECT col1 + col2 * + col2 FROM tab0 AS cor0
----
1175
6815
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * 96 + + col0 * + ( 97 ) * + col0 col0 FROM tab2 AS cor0
----
5425
597636
612961

query I rowsort
SELECT DISTINCT 23 AS col1 FROM tab0 AS cor0
----
23

query I rowsort
SELECT ALL ( 18 ) * cor0.col0 FROM tab1 cor0
----
1152
1440
54

query I rowsort
SELECT - ( cor0.col0 ) FROM tab2, tab1 AS cor0
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 * 83 col0 FROM tab1 cor0
----
4482
4731
7968

onlyif mysql # use DIV operator for integer division
query I rowsort label-6349
SELECT cor0.col1 DIV ( col1 ) AS col1 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6349
SELECT cor0.col1 / ( col1 ) AS col1 FROM tab1 AS cor0
----
1
1
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6350
SELECT DISTINCT CAST( 6 + tab1.col1 AS SIGNED ) AS col2 FROM tab1
----
16
19
32

skipif mysql # not compatible
query I rowsort label-6350
SELECT DISTINCT CAST ( 6 + tab1.col1 AS INTEGER ) AS col2 FROM tab1
----
16
19
32

query I rowsort
SELECT ( col0 ) - col1 * col2 FROM tab0
----
-2814
-62
-7373

query I rowsort
SELECT + col2 + ( col2 ) AS col0 FROM tab2
----
52
54
76

query I rowsort
SELECT DISTINCT - 72 AS col2 FROM tab1, tab0 cor0
----
-72

query I rowsort
SELECT + - col0 * + cor0.col0 AS col0 FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT 66 AS col0 FROM tab0 cor0
----
66
66
66

onlyif mysql # use DIV operator for integer division
query I rowsort label-6356
SELECT - 69 DIV col0 FROM tab0 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-6356
SELECT - 69 / col0 FROM tab0 AS cor0
----
-1
-2
0

query I rowsort
SELECT ALL - col0 * cor0.col2 + - ( 42 ) + col2 * 19 AS col2 FROM tab2 AS cor0
----
-1576
-2322
282

query I rowsort
SELECT DISTINCT ( col2 ) AS col0 FROM tab0 cor0
----
1
33
82

query I rowsort
SELECT - 84 * col0 FROM tab0 cor0
----
-2016
-2940
-7476

query I rowsort
SELECT DISTINCT - ( + 18 ) FROM tab2
----
-18

query I rowsort
SELECT ALL + 53 * col2 + + 34 FROM tab0 AS cor0
----
1783
4380
87

query I rowsort
SELECT DISTINCT col1 + col1 * + col1 * + col2 + - col2 * + col0 AS col1 FROM tab0 AS cor0
----
243362
671835
9471

query I rowsort
SELECT - 17 AS col0 FROM tab0
----
-17
-17
-17

query I rowsort
SELECT cor0.col1 + + cor0.col2 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT - col0 * col0 + + col1 * + col0 FROM tab2 AS cor0
----
-1482
-4898
168

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6366
SELECT + - cor0.col0 * CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6366
SELECT + - cor0.col0 * CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6367
SELECT cor0.col2 + 77 DIV col0 FROM tab2 AS cor0
----
26
38
38

skipif mysql # not compatible
query I rowsort label-6367
SELECT cor0.col2 + 77 / col0 FROM tab2 AS cor0
----
26
38
38

query I rowsort
SELECT - col2 * 39 + - 15 + col1 AS col1 FROM tab0 cor0
----
-1216
-3122
43

query I rowsort
SELECT cor0.col0 * 91 + ( + col2 ) * col2 AS col1 FROM tab2 AS cor0
----
1366
7774
8633

skipif mysql # not compatible
query I rowsort
SELECT ALL tab1.col1 + + col0 + CAST ( + col0 AS REAL ) AS col0 FROM tab1
----
138
173
32

onlyif mysql # use DIV operator for integer division
query I rowsort label-6371
SELECT - + cor0.col0 DIV - col0 + 71 + col2 * col2 FROM tab1 AS cor0
----
2988
3321
9288

skipif mysql # not compatible
query I rowsort label-6371
SELECT - + cor0.col0 / - col0 + 71 + col2 * col2 FROM tab1 AS cor0
----
2988
3321
9288

query I rowsort
SELECT + + 40 AS col2 FROM tab1, tab0 cor0, tab0, tab1 AS cor1
----
81 values hashing to 09624b9180d40f03a4dda4b4c17356c0

query I rowsort
SELECT DISTINCT - col1 * col1 * + col0 FROM tab2
----
-22831
-271518
-6727

onlyif mysql # use DIV operator for integer division
query I rowsort label-6374
SELECT ALL 38 + col1 + tab1.col0 DIV - col2 FROM tab1
----
47
51
64

skipif mysql # not compatible
query I rowsort label-6374
SELECT ALL 38 + col1 + tab1.col0 / - col2 FROM tab1
----
47
51
64

query I rowsort
SELECT - cor0.col0 + - 6 AS col1 FROM tab2 AS cor0
----
-13
-84
-85

query I rowsort
SELECT DISTINCT - - col0 + col1 * 81 AS col1 FROM tab1 cor0
----
1133
2109
874

query I rowsort
SELECT ALL col0 * + 3 + col1 FROM tab1 AS cor0
----
202
253
35

onlyif mysql # use DIV operator for integer division
query I rowsort label-6378
SELECT ALL - col1 + col1 DIV - ( col1 ) FROM tab1
----
-11
-14
-27

skipif mysql # not compatible
query I rowsort label-6378
SELECT ALL - col1 + col1 / - ( col1 ) FROM tab1
----
-11
-14
-27

query I rowsort
SELECT ALL + 92 + - col2 AS col0 FROM tab1
----
-4
35
38

query I rowsort
SELECT ALL 45 + - col0 * + tab0.col1 + ( - col2 ) FROM tab0
----
-2052
-3351
-8136

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 58 + col1 col2 FROM tab1
----
68
71
84

query I rowsort
SELECT - col0 * col2 + ( col2 ) AS col2 FROM tab0
----
-34
-7216
-759

query I rowsort
SELECT + col2 + - ( 3 ) * + cor0.col0 AS col2 FROM tab2 AS cor0
----
-199
-208
6

query I rowsort
SELECT col2 * + ( col1 ) * col1 FROM tab1 AS cor0
----
16224
36504
5700

query I rowsort
SELECT ALL + - col1 * ( - col2 + col2 * - 86 ) FROM tab2 AS cor0
----
133458
56202
72819

query I rowsort
SELECT DISTINCT + + col2 * col0 + + col1 FROM tab2 AS cor0
----
2087
220
3019

onlyif mysql # use DIV operator for integer division
query I rowsort label-6387
SELECT ALL + - col2 DIV + ( + col1 ) FROM tab1 AS cor0
----
-2
-5
-7

skipif mysql # not compatible
query I rowsort label-6387
SELECT ALL + - col2 / + ( + col1 ) FROM tab1 AS cor0
----
-2
-5
-7

onlyif mysql # use DIV operator for integer division
query I rowsort label-6388
SELECT + - col0 DIV + col2 FROM tab0 cor0
----
-1
-35
0

skipif mysql # not compatible
query I rowsort label-6388
SELECT + - col0 / + col2 FROM tab0 cor0
----
-1
-35
0

query I rowsort
SELECT DISTINCT col2 * - col0 + + col1 AS col2 FROM tab2 AS cor0
----
-158
-1969
-2985

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * 17 col1 FROM tab2 AS cor0
----
119
1326
1343

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col1 * 66 col0 FROM tab1 AS cor0
----
1716
660
858

query I rowsort
SELECT - col0 * ( col0 * col2 ) AS col2 FROM tab2 AS cor0
----
-1323
-158184
-237158

onlyif mysql # use DIV operator for integer division
query I rowsort label-6393
SELECT ALL - + col1 DIV col1 AS col2 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6393
SELECT ALL - + col1 / col1 AS col2 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT + cor0.col2 + - 88 * 49 AS col1 FROM tab1 AS cor0
----
-4216
-4255
-4258

query I rowsort
SELECT 95 - + tab2.col1 * + col2 AS col2 FROM tab2
----
-1439
-551
-742

query I rowsort
SELECT - + col1 * + col0 AS col1 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT - ( + 72 ) * cor0.col2 * + col2 - 21 AS col2 FROM tab2 AS cor0
----
-103989
-48693
-52509

query I rowsort
SELECT DISTINCT 25 + col0 - col0 FROM tab1 AS cor0
----
25

onlyif mysql # use DIV operator for integer division
query I rowsort label-6399
SELECT DISTINCT - + col2 + col2 DIV + col0 AS col0 FROM tab2 AS cor0
----
-24
-26
-38

skipif mysql # not compatible
query I rowsort label-6399
SELECT DISTINCT - + col2 + col2 / + col0 AS col0 FROM tab2 AS cor0
----
-24
-26
-38

query I rowsort
SELECT - + ( 47 ) * col0 + - 14 FROM tab1 AS cor0
----
-155
-3022
-3774

query I rowsort
SELECT 85 AS col0 FROM tab0 AS cor0
----
85
85
85

query I rowsort
SELECT ALL + + 62 * - col2 FROM tab1 AS cor0
----
-3348
-3534
-5952

onlyif mysql # use DIV operator for integer division
query I rowsort label-6403
SELECT col2 * col1 + - 17 DIV + col2 FROM tab1 AS cor0
----
1248
1404
570

skipif mysql # not compatible
query I rowsort label-6403
SELECT col2 * col1 + - 17 / + col2 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT ALL + cor0.col0 - + col0 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - 9 + col2 + - col1 AS col1 FROM tab0 AS cor0
----
-105
-18
-62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 75 col0 FROM tab1 AS cor0
----
75
75
75

query I rowsort
SELECT 10 + - col1 AS col0 FROM tab1 AS cor0
----
-16
-3
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6408
SELECT DISTINCT col1 + col1 DIV + 91 FROM tab0 AS cor0
----
86
92
98

skipif mysql # not compatible
query I rowsort label-6408
SELECT DISTINCT col1 + col1 / + 91 FROM tab0 AS cor0
----
86
92
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-6409
SELECT + + 99 * col0 + 85 DIV - 39 FROM tab1 AS cor0
----
295
6334
7918

skipif mysql # not compatible
query I rowsort label-6409
SELECT + + 99 * col0 + 85 / - 39 FROM tab1 AS cor0
----
295
6334
7918

query I rowsort
SELECT DISTINCT + - col2 + col0 * - col1 AS col1 FROM tab2 AS cor0
----
-1381
-244
-4628

query I rowsort
SELECT DISTINCT + 16 AS col1 FROM tab2 cor0
----
16

query I rowsort
SELECT - 47 + col0 * 7 FROM tab1 AS cor0
----
-26
401
513

query I rowsort
SELECT ALL - col0 * col2 + 51 AS col1 FROM tab0 AS cor0
----
-7247
-741
16

query I rowsort
SELECT - col0 + + col0 AS col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6415
SELECT + col2 DIV - col1 - - col1 AS col1 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-6415
SELECT + col2 / - col1 - - col1 AS col1 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT ALL + col0 - col1 FROM tab2 cor0
----
-24
19
62

query I rowsort
SELECT + + col2 * + col1 + + col2 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT ALL + + 3 FROM tab1 AS cor0
----
3
3
3

onlyif mysql # use DIV operator for integer division
query I rowsort label-6419
SELECT DISTINCT + col1 DIV cor0.col2 + 65 FROM tab0 AS cor0
----
162
66
67

skipif mysql # not compatible
query I rowsort label-6419
SELECT DISTINCT + col1 / cor0.col2 + 65 FROM tab0 AS cor0
----
162
66
67

query I rowsort
SELECT ALL + - 94 * col1 - + col2 * + col0 FROM tab2 cor0
----
-3103
-4600
-7574

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6421
SELECT DISTINCT col1 * col2 + - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6421
SELECT DISTINCT col1 * col2 + - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT - col2 * 63 FROM tab0 AS cor0
----
-2079
-5166
-63

query I rowsort
SELECT - col1 * + col2 + + col2 AS col1 FROM tab2 AS cor0
----
-1508
-608
-810

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - col1 + col2 * + col2 col2 FROM tab2
----
-232
-2805
1155

query I rowsort
SELECT - + 12 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to e698dd57d3aac30af14ce35da434bb45

onlyif mysql # use DIV operator for integer division
query I rowsort label-6426
SELECT DISTINCT + tab2.col1 DIV - col0 + - col1 FROM tab2
----
-17
-35
-59

skipif mysql # not compatible
query I rowsort label-6426
SELECT DISTINCT + tab2.col1 / - col0 + - col1 FROM tab2
----
-17
-35
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col2 ) col0 FROM tab2 AS cor0
----
-26
-27
-38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6428
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - col2 + - col1 / + 34 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6428
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - col2 + - col1 / + 34 AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL - cor0.col1 FROM tab2, tab0 cor0, tab2 AS cor1
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84

query I rowsort
SELECT DISTINCT - 43 + col1 FROM tab2 AS cor0
----
-12
-26
16

query I rowsort
SELECT ALL + 43 * + col2 AS col0 FROM tab2 AS cor0
----
1118
1161
1634

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6432
SELECT + CAST( NULL AS SIGNED ) * col1 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6432
SELECT + CAST ( NULL AS INTEGER ) * col1 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6433
SELECT DISTINCT - tab1.col0 DIV - ( - col2 ) FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-6433
SELECT DISTINCT - tab1.col0 / - ( - col2 ) FROM tab1
----
-1
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6434
SELECT ALL col2 DIV 49 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6434
SELECT ALL col2 / 49 AS col0 FROM tab2
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6435
SELECT ALL + col2 * + CAST( 46 AS SIGNED ) FROM tab0
----
1518
3772
46

skipif mysql # not compatible
query I rowsort label-6435
SELECT ALL + col2 * + CAST ( 46 AS INTEGER ) FROM tab0
----
1518
3772
46

onlyif mysql # use DIV operator for integer division
query I rowsort label-6436
SELECT col1 DIV 55 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6436
SELECT col1 / 55 FROM tab2
----
0
0
1

query I rowsort
SELECT ALL tab2.col0 - col0 * + col1 FROM tab2
----
-1264
-210
-4524

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 98 ) * + col2 + + col1 - - col0 col2 FROM tab2
----
2684
2685
3820

query I rowsort
SELECT DISTINCT 4 + + col1 AS col2 FROM tab2
----
21
35
63

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6440
SELECT ALL - CAST( NULL AS SIGNED ) + - 73 * col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6440
SELECT ALL - CAST ( NULL AS INTEGER ) + - 73 * col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col2 * - col1 + + 19 FROM tab1 AS cor0
----
-1229
-1385
-551

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6442
SELECT - cor0.col2 + + CAST( NULL AS SIGNED ) * - col2 * col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6442
SELECT - cor0.col2 + + CAST ( NULL AS INTEGER ) * - col2 * col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 * ( 50 ) * + col2 AS col1 FROM tab2 AS cor0
----
33800
36450
72200

query I rowsort
SELECT cor1.col0 AS col2 FROM tab1, tab2 AS cor0, tab0 cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT col1 + 77 * cor0.col0 FROM tab1 AS cor0
----
257
4938
6173

query I rowsort
SELECT col0 * - cor0.col2 * + 76 AS col0 FROM tab1 cor0
----
-12312
-277248
-583680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6447
SELECT DISTINCT + tab0.col1 - CAST( NULL AS SIGNED ) FROM tab0, tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6447
SELECT DISTINCT + tab0.col1 - CAST ( NULL AS INTEGER ) FROM tab0, tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + ( + 16 ) AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6449
SELECT - CAST( NULL AS SIGNED ) * - col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6449
SELECT - CAST ( NULL AS INTEGER ) * - col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 88 + - col1 * col0 + - col2 FROM tab1
----
-1048
-44
-609

onlyif mysql # use DIV operator for integer division
query I rowsort label-6451
SELECT ALL col2 DIV + col1 + + col0 FROM tab1
----
5
69
87

skipif mysql # not compatible
query I rowsort label-6451
SELECT ALL col2 / + col1 + + col0 FROM tab1
----
5
69
87

query I rowsort
SELECT 71 + col0 FROM tab1 cor0
----
135
151
74

onlyif mysql # use DIV operator for integer division
query I rowsort label-6453
SELECT + 28 DIV - tab0.col1 AS col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6453
SELECT + 28 / - tab0.col1 AS col1 FROM tab0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6454
SELECT cor0.col1 DIV - 24 + + col1 DIV col2 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6454
SELECT cor0.col1 / - 24 + + col1 / col2 FROM tab1 AS cor0
----
-1
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6455
SELECT DISTINCT + col0 + col0 DIV + col1 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-6455
SELECT DISTINCT + col0 + col0 / + col1 FROM tab0 AS cor0
----
24
35
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-6456
SELECT col0 * col1 + col2 DIV CAST( 27 AS SIGNED ) AS col0 FROM tab0
----
2065
3395
8102

skipif mysql # not compatible
query I rowsort label-6456
SELECT col0 * col1 + col2 / CAST ( 27 AS INTEGER ) AS col0 FROM tab0
----
2065
3395
8102

query I rowsort
SELECT + col1 + col2 * 79 * cor0.col2 FROM tab0 AS cor0
----
176
531287
86117

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * col2 col2 FROM tab2 cor0
----
189
2028
3002

query I rowsort
SELECT + + 81 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267

query I rowsort
SELECT col0 * cor0.col0 * ( col1 + cor0.col2 ) FROM tab0 AS cor0
----
120050
1370333
68544

query I rowsort
SELECT + 38 * - col1 + + col2 FROM tab0 AS cor0
----
-3235
-3376
-3685

query I rowsort
SELECT ALL + col2 + + col1 * + cor0.col2 AS col0 FROM tab0 AS cor0
----
2871
7544
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6463
SELECT ALL ( col2 ) * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6463
SELECT ALL ( col2 ) * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col1 * + col0 + col0 FROM tab2 cor0
----
1422
224
4680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6465
SELECT + ( col1 ) + CAST( + col1 AS SIGNED ) FROM tab1 AS cor0
----
20
26
52

skipif mysql # not compatible
query I rowsort label-6465
SELECT + ( col1 ) + CAST ( + col1 AS INTEGER ) FROM tab1 AS cor0
----
20
26
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-6466
SELECT + + 57 DIV + col1 AS col1 FROM tab1 AS cor0
----
2
4
5

skipif mysql # not compatible
query I rowsort label-6466
SELECT + + 57 / + col1 AS col1 FROM tab1 AS cor0
----
2
4
5

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6467
SELECT DISTINCT + col0 * + col1 + CAST( ( + col0 ) AS SIGNED ) FROM tab0 cor0
----
2088
3430
8188

skipif mysql # not compatible
query I rowsort label-6467
SELECT DISTINCT + col0 * + col1 + CAST ( ( + col0 ) AS INTEGER ) FROM tab0 cor0
----
2088
3430
8188

query I rowsort
SELECT + ( col1 ) * - 30 FROM tab2
----
-1770
-510
-930

query I rowsort
SELECT - 51 * + col2 AS col1 FROM tab1
----
-2754
-2907
-4896

query I rowsort
SELECT + 10 * + tab0.col1 FROM tab0
----
860
910
970

query I rowsort
SELECT DISTINCT + 31 AS col0 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
31

query I rowsort
SELECT DISTINCT - + tab2.col2 AS col1 FROM tab2, tab0, tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT - ( + cor0.col1 ) + + ( + col2 ) FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT - - col2 + + col0 AS col2 FROM tab2 AS cor0
----
104
117
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 30 col1 FROM tab1, tab0, tab1 AS cor0
----
30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col1 + + col2 * col0 ) col1 FROM tab0
----
-62
706
7207

query I rowsort
SELECT + + cor0.col1 * + col0 + - col1 * + col1 * - col1 FROM tab2 AS cor0
----
209981
30008
6256

onlyif mysql # use DIV operator for integer division
query I rowsort label-6478
SELECT col1 DIV + ( - col2 ) AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6478
SELECT col1 / + ( - col2 ) AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - + cor0.col1 * - col2 + + col1 FROM tab1 cor0
----
1261
1430
580

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col2 + - col2 col0 FROM tab0 AS cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6481
SELECT - - col0 DIV + ( + col0 * col2 ) FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6481
SELECT - - col0 / + ( + col0 * col2 ) FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT ALL cor0.col0 + - 64 FROM tab1 AS cor0
----
-61
0
16

query I rowsort
SELECT DISTINCT + col1 * + 77 * col2 FROM tab2 AS cor0
----
118118
49742
64449

query I rowsort
SELECT ( 54 ) FROM tab1 AS cor0
----
54
54
54

query I rowsort
SELECT DISTINCT 56 * 44 + + col2 + - col0 * + col2 AS col2 FROM tab2 AS cor0
----
-500
2302
462

query I rowsort
SELECT + 17 - + col2 * - col2 FROM tab2 AS cor0
----
1461
693
746

onlyif mysql # use DIV operator for integer division
query I rowsort label-6487
SELECT - + ( + col1 ) * col0 + 59 DIV + 75 FROM tab0 AS cor0
----
-2064
-3395
-8099

skipif mysql # not compatible
query I rowsort label-6487
SELECT - + ( + col1 ) * col0 + 59 / + 75 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT 1 * - col0 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT - col1 * - col0 * col2 AS col1 FROM tab2 AS cor0
----
119652
51034
5859

query I rowsort
SELECT + col2 + - cor0.col2 * col2 FROM tab2 AS cor0
----
-1406
-650
-702

query I rowsort
SELECT + cor0.col1 * + 74 * col0 AS col1 FROM tab1 AS cor0
----
47360
5772
76960

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 58 + + col2 col0 FROM tab1 AS cor0
----
112
115
154

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6493
SELECT + CAST( NULL AS SIGNED ) * ( + col1 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6493
SELECT + CAST ( NULL AS INTEGER ) * ( + col1 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - 1 - col0 * col1 FROM tab0 AS cor0
----
-2065
-3396
-8100

query I rowsort
SELECT - cor0.col2 * + col1 + 58 * + 78 FROM tab0 cor0
----
-2938
1686
4427

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - col1 + - ( col1 ) col1 FROM tab2 AS cor0
----
1326
186
4543

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 17 * col2 col2 FROM tab2 AS cor0
----
442
459
646

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * - col1 * col1 + col0 col1 FROM tab2 AS cor0
----
-22752
-271440
-6720

query I rowsort
SELECT DISTINCT - + 23 * col0 AS col2 FROM tab2 cor0
----
-161
-1794
-1817

query I rowsort
SELECT - ( 64 ) FROM tab0 AS cor0
----
-64
-64
-64

query I rowsort
SELECT DISTINCT + ( 22 ) FROM tab2 AS cor0
----
22

query I rowsort
SELECT ALL cor0.col2 * - col2 AS col1 FROM tab0 cor0
----
-1
-1089
-6724

query I rowsort
SELECT ALL + - 50 * col2 FROM tab1 AS cor0
----
-2700
-2850
-4800

query I rowsort
SELECT ALL + col1 * ( col0 ) AS col1 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT ALL + col0 + - col2 * - col2 + col0 AS col2 FROM tab2 AS cor0
----
1602
743
832

query I rowsort
SELECT - ( + col1 ) * col1 AS col1 FROM tab0 cor0
----
-7396
-8281
-9409

query I rowsort
SELECT ALL + + col0 * + 56 FROM tab1 AS cor0
----
168
3584
4480

query I rowsort
SELECT ALL - cor0.col1 + ( - col0 ) FROM tab1 AS cor0
----
-29
-74
-93

query I rowsort
SELECT DISTINCT + col2 - ( - col0 ) AS col1 FROM tab0
----
171
36
57

query I rowsort
SELECT 95 AS col0 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 14faa6dda52e3dfe1f5db2579c274a7e

query I rowsort
SELECT col1 * + 63 + col2 AS col2 FROM tab1
----
1692
687
915

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col0 * col0 col0 FROM tab2
----
-1323
-158184
-237158

query I rowsort
SELECT DISTINCT 57 + - col1 + - tab0.col1 AS col1 FROM tab0
----
-115
-125
-137

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6514
SELECT DISTINCT + CAST( NULL AS SIGNED ) + tab2.col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6514
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + tab2.col0 FROM tab2
----
NULL

query I rowsort
SELECT - col0 + + 30 AS col0 FROM tab2 AS cor0
----
-48
-49
23

query I rowsort
SELECT ALL - 81 * col1 AS col0 FROM tab1
----
-1053
-2106
-810

query I rowsort
SELECT ALL - col1 + + ( 81 ) FROM tab0 AS cor0
----
-10
-16
-5

query I rowsort
SELECT + col1 + - cor0.col2 * ( col0 ) AS col2 FROM tab1 AS cor0
----
-136
-3638
-7667

query I rowsort
SELECT - col2 * - 54 * + col0 FROM tab1 AS cor0
----
196992
414720
8748

query I rowsort
SELECT col0 + col0 + 81 FROM tab1 AS cor0
----
209
241
87

query I rowsort
SELECT col1 + - 85 FROM tab0 AS cor0
----
1
12
6

query I rowsort
SELECT - 87 FROM tab0, tab1 AS cor0
----
9 values hashing to 84bcab58a965cc8ae97b39d2d01b3d23

onlyif mysql # use DIV operator for integer division
query I rowsort label-6523
SELECT ALL + col1 DIV col1 + col2 * col1 FROM tab0
----
2839
7463
98

skipif mysql # not compatible
query I rowsort label-6523
SELECT ALL + col1 / col1 + col2 * col1 FROM tab0
----
2839
7463
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab1.col0 * col0 * - tab1.col2 col1 FROM tab1
----
-233472
-486
-614400

query I rowsort
SELECT - cor0.col2 * + 54 + - cor0.col1 * col2 + + 56 FROM tab1 AS cor0
----
-3592
-4264
-6376

query I rowsort
SELECT DISTINCT + col2 * - ( - 75 + cor0.col1 ) * + col1 FROM tab0 AS cor0
----
-119392
-2134
-31218

query I rowsort
SELECT DISTINCT - + col0 * 63 * - 33 + - col1 FROM tab2 AS cor0
----
14522
162103
164224

query I rowsort
SELECT ALL + col0 * 51 + col2 AS col0 FROM tab1 AS cor0
----
207
3321
4176

query I rowsort
SELECT ALL + col1 + - col0 * - col2 * + col0 FROM tab1 AS cor0
----
233482
512
614413

query I rowsort
SELECT - col0 * - 21 + - col0 * col0 + col0 FROM tab1 AS cor0
----
-2688
-4640
57

query I rowsort
SELECT - + col1 - - col2 * - 28 AS col1 FROM tab0 AS cor0
----
-1010
-125
-2387

query I rowsort
SELECT + tab0.col2 + - ( + col0 ) AS col1 FROM tab0
----
-34
-7
9

query I rowsort
SELECT ALL cor0.col1 + col0 FROM tab2 cor0
----
137
38
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * ( - col1 ) - col2 col1 FROM tab2 AS cor0
----
-1560
-684
-864

query I rowsort
SELECT ALL - cor0.col1 - col1 AS col0 FROM tab0 AS cor0
----
-172
-182
-194

query I rowsort
SELECT DISTINCT - col1 * col1 + + col2 + + col2 FROM tab0 AS cor0
----
-7330
-8117
-9407

query I rowsort
SELECT DISTINCT - col0 * + 46 + + col2 + - col1 AS col0 FROM tab1 AS cor0
----
-110
-2897
-3597

query I rowsort
SELECT DISTINCT + cor0.col0 - + col1 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT ALL col0 * + col2 + + col0 * col2 * col0 FROM tab0 cor0
----
1260
19800
656820

query I rowsort
SELECT ALL + col2 * + col2 + + col1 FROM tab0 AS cor0
----
1175
6815
98

query I rowsort
SELECT ALL - col1 * ( - col0 ) FROM tab2 cor0
----
1343
217
4602

query I rowsort
SELECT ALL + col2 * + col0 + + col2 + col0 * col2 FROM tab2 AS cor0
----
405
4082
6042

query I rowsort
SELECT ALL + cor0.col0 * - col0 AS col0 FROM tab0 AS cor0
----
-1225
-576
-7921

onlyif mysql # use DIV operator for integer division
query I rowsort label-6544
SELECT + col2 + - col0 DIV - cor0.col1 + - col1 col2 FROM tab2 AS cor0
----
-32
-4
25

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6544
SELECT + col2 + - col0 / - cor0.col1 + - col1 col2 FROM tab2 AS cor0
----
-32
-4
25

query I rowsort
SELECT ALL + ( 12 ) + col1 + 20 * 69 * + col2 FROM tab0 cor0
----
113263
1489
45638

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6546
SELECT + col0 + + 54 + cor0.col1 * - CAST( col2 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-1402
-513
-776

skipif mysql # not compatible
query I rowsort label-6546
SELECT + col0 + + 54 + cor0.col1 * - CAST ( col2 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-1402
-513
-776

query I rowsort
SELECT ( ( col0 ) ) AS col1 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT DISTINCT + - ( + col2 ) * + col1 + col1 FROM tab1 cor0
----
-1235
-1378
-560

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + + col2 * + col1 + col0 col1 FROM tab2 AS cor0
----
1638
763
871

query I rowsort
SELECT ALL 39 + ( col2 ) AS col1 FROM tab0 AS cor0
----
121
40
72

query I rowsort
SELECT 60 * - cor0.col1 + - col2 AS col0 FROM tab1 AS cor0
----
-1614
-657
-876

query I rowsort
SELECT - 31 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to f4b05206ee2fc0cf8007d9c3514885fa

onlyif mysql # use DIV operator for integer division
query I rowsort label-6553
SELECT col2 * - cor0.col0 - + col0 DIV 34 AS col0 FROM tab0 AS cor0
----
-36
-7300
-792

skipif mysql # not compatible
query I rowsort label-6553
SELECT col2 * - cor0.col0 - + col0 / 34 AS col0 FROM tab0 AS cor0
----
-36
-7300
-792

onlyif mysql # use DIV operator for integer division
query I rowsort label-6554
SELECT ALL - - col2 + + cor0.col2 DIV col1 FROM tab1 AS cor0
----
103
56
62

skipif mysql # not compatible
query I rowsort label-6554
SELECT ALL - - col2 + + cor0.col2 / col1 FROM tab1 AS cor0
----
103
56
62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6555
SELECT - + CAST( NULL AS SIGNED ) FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-6555
SELECT - + CAST ( NULL AS INTEGER ) FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL - col0 - col2 * + col1 FROM tab2 AS cor0
----
-1612
-725
-844

query I rowsort
SELECT DISTINCT 11 * col0 AS col0 FROM tab1 AS cor0
----
33
704
880

onlyif mysql # use DIV operator for integer division
query I rowsort label-6558
SELECT DISTINCT col2 DIV + col0 + col1 AS col1 FROM tab1 AS cor0
----
10
14
44

skipif mysql # not compatible
query I rowsort label-6558
SELECT DISTINCT col2 / + col0 + col1 AS col1 FROM tab1 AS cor0
----
10
14
44

onlyif mysql # use DIV operator for integer division
query I rowsort label-6559
SELECT ALL 93 + cor0.col1 * 5 DIV - 46 AS col2 FROM tab1 AS cor0
----
91
92
92

skipif mysql # not compatible
query I rowsort label-6559
SELECT ALL 93 + cor0.col1 * 5 / - 46 AS col2 FROM tab1 AS cor0
----
91
92
92

query I rowsort
SELECT + 97 * + col0 FROM tab0 AS cor0
----
2328
3395
8633

onlyif mysql # use DIV operator for integer division
query I rowsort label-6561
SELECT DISTINCT tab2.col1 DIV + cor0.col0 AS col0 FROM tab2, tab0, tab0 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-6561
SELECT DISTINCT tab2.col1 / + cor0.col0 AS col0 FROM tab2, tab0, tab0 AS cor0
----
0
1
2

query I rowsort
SELECT ALL + col2 * - cor0.col2 FROM tab2 cor0
----
-1444
-676
-729

query I rowsort
SELECT ALL - ( - tab0.col2 * + 58 + col0 ) AS col0 FROM tab0
----
1890
23
4667

query I rowsort
SELECT + tab2.col2 * col1 + ( + col1 ) * - tab2.col2 FROM tab2
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6565
SELECT DISTINCT - col2 + col2 * col0 DIV col1 FROM tab0 AS cor0
----
-1
-2
-24

skipif mysql # not compatible
query I rowsort label-6565
SELECT DISTINCT - col2 + col2 * col0 / col1 FROM tab0 AS cor0
----
-1
-2
-24

query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE NOT ( - col0 - col0 / - col2 ) <> NULL
----

query I rowsort
SELECT + col1 + + col1 * + col2 AS col2 FROM tab1 AS cor0
----
1261
1430
580

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 NOT IN ( col0 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

query I rowsort
SELECT - col1 + col0 * col0 AS col2 FROM tab2 AS cor0 WHERE NULL BETWEEN ( + col2 ) AND ( NULL )
----

query I rowsort
SELECT col1 * - cor0.col0 - + col2 * - col0 FROM tab2 AS cor0
----
-2574
-28
1659

onlyif mysql # use DIV operator for integer division
query I rowsort label-6571
SELECT - col1 DIV - col1 + + col2 AS col2 FROM tab0 AS cor0
----
2
34
83

skipif mysql # not compatible
query I rowsort label-6571
SELECT - col1 / - col1 + + col2 AS col2 FROM tab0 AS cor0
----
2
34
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * - col1 - - col1 * col1 * col0 col0 FROM tab0 AS cor0
----
179568
332710
745108

query I rowsort
SELECT DISTINCT + - col0 * - cor0.col1 AS col1 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT DISTINCT col1 + col0 * col1 FROM tab0 cor0
----
2150
3492
8190

query I rowsort
SELECT - cor0.col0 + - cor0.col0 * col0 * col2 AS col1 FROM tab2 cor0
----
-1330
-158262
-237237

query I rowsort
SELECT DISTINCT - + cor0.col2 + cor0.col1 * - cor0.col0 FROM tab1 AS cor0
----
-1136
-132
-697

query I rowsort
SELECT - cor0.col0 + + tab0.col1 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to ff86239bf7304ce9bfc9287b48a62ffa

query I rowsort
SELECT - cor0.col1 * + col1 * + col0 + cor0.col0 * + col1 AS col2 FROM tab0 AS cor0
----
-175440
-325920
-728910

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - col1 + cor0.col0 col2 FROM tab1 AS cor0
----
-576
-75
-960

query I rowsort
SELECT ALL - + 54 + - col1 * + col0 * + col0 FROM tab0 AS cor0
----
-118879
-49590
-720865

query I rowsort
SELECT + col2 * col1 + + col2 FROM tab2 cor0
----
1560
684
864

query I rowsort
SELECT + 67 * + cor0.col2 - - ( + ( + col0 ) + + 1 * + col1 ) AS col1 FROM tab0 AS cor0
----
199
2321
5674

query I rowsort
SELECT - ( col0 ) * - 93 - col0 FROM tab2 cor0
----
644
7176
7268

onlyif mysql # use DIV operator for integer division
query I rowsort label-6584
SELECT col0 DIV - col2 + col2 AS col0 FROM tab1 AS cor0
----
54
56
96

skipif mysql # not compatible
query I rowsort label-6584
SELECT col0 / - col2 + col2 AS col0 FROM tab1 AS cor0
----
54
56
96

query I rowsort
SELECT tab2.col0 * - col0 + col1 FROM tab2
----
-18
-6025
-6224

query I rowsort
SELECT DISTINCT + tab1.col1 + - col2 * + col1 AS col1 FROM tab1
----
-1235
-1378
-560

query I rowsort
SELECT col1 + + col1 * col1 * col2 FROM tab1
----
16237
36530
5710

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab2.col0 + tab2.col1 * + col1 col2 FROM tab2
----
3559
368
968

query I rowsort
SELECT + tab0.col0 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT + - 71 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 3907e0aa4f29c002120742c4abb3e23a

query I rowsort
SELECT col0 + col1 + - 10 * + col2 * col1 FROM tab2
----
-15203
-6364
-8332

query I rowsort
SELECT DISTINCT 57 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
57

query I rowsort
SELECT 59 + + col1 AS col0 FROM tab0
----
145
150
156

query I rowsort
SELECT 69 * col0 AS col0 FROM tab1
----
207
4416
5520

onlyif mysql # use DIV operator for integer division
query I rowsort label-6595
SELECT DISTINCT + 51 * + col1 + 40 DIV + col1 AS col0 FROM tab1
----
1327
514
666

skipif mysql # not compatible
query I rowsort label-6595
SELECT DISTINCT + 51 * + col1 + 40 / + col1 AS col0 FROM tab1
----
1327
514
666

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab0.col2 + + tab0.col0 * + tab0.col0 col2 FROM tab0
----
1226
609
8003

query I rowsort
SELECT col2 FROM tab2 WHERE col1 BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT ALL - col0 * col2 - col0 AS col0 FROM tab2
----
-196
-2106
-3081

onlyif mysql # use DIV operator for integer division
query I rowsort label-6599
SELECT col1 DIV tab1.col0 AS col2 FROM tab1
----
0
0
8

skipif mysql # not compatible
query I rowsort label-6599
SELECT col1 / tab1.col0 AS col2 FROM tab1
----
0
0
8

query I rowsort
SELECT DISTINCT + col1 + - col1 AS col2 FROM tab0
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL IN ( - col1 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-6602
SELECT + tab2.col1 DIV + col1 col2 FROM tab2
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6602
SELECT + tab2.col1 / + col1 col2 FROM tab2
----
1
1
1

query I rowsort
SELECT col0 * col1 + col0 AS col2 FROM tab0
----
2088
3430
8188

query I rowsort
SELECT ALL + col0 + + col0 + - col0 AS col1 FROM tab1
----
3
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + col2 col2 FROM tab0
----
171
36
57

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( + col2 * - col1 ) BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT DISTINCT col1 * - col2 * col2 - col2 FROM tab2
----
-22626
-24586
-39910

query I rowsort
SELECT + tab1.col0 + + col0 + col0 AS col1 FROM tab1
----
192
240
9

query I rowsort
SELECT + col0 FROM tab1 WHERE NOT ( + col0 * col0 ) <> tab1.col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - col2 col2 FROM tab1
----
-1248
-1404
-570

query I rowsort
SELECT ALL - ( + col0 ) * 76 FROM tab0 AS cor0
----
-1824
-2660
-6764

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * + col2 * - col0 col2 FROM tab1 AS cor0
----
-233472
-486
-614400

query I rowsort
SELECT - 69 + col2 AS col2 FROM tab2 AS cor0
----
-31
-42
-43

onlyif mysql # use DIV operator for integer division
query I rowsort label-6614
SELECT ALL + 40 DIV - col1 + col2 FROM tab0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-6614
SELECT ALL + 40 / - col1 + col2 FROM tab0
----
1
33
82

query I rowsort
SELECT DISTINCT - col0 * col1 + + col0 * col0 + col0 FROM tab0 AS cor0
----
-1464
-2135
-89

query I rowsort
SELECT + 95 * col2 - col2 FROM tab0 AS cor0
----
3102
7708
94

query I rowsort
SELECT DISTINCT + col1 - col1 AS col0 FROM tab2 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 col1 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT DISTINCT 96 + cor0.col1 * ( col0 ) AS col0 FROM tab0 AS cor0
----
2160
3491
8195

query I rowsort
SELECT ALL - col2 * col1 - - cor0.col0 AS col2 FROM tab0 AS cor0
----
-2814
-62
-7373

query I rowsort
SELECT ALL cor0.col1 + - col0 + col2 FROM tab1 cor0
----
29
3
77

query I rowsort
SELECT ALL - 27 + col1 FROM tab1 AS cor0
----
-1
-14
-17

query I rowsort
SELECT DISTINCT + col2 + col0 * 87 AS col2 FROM tab1 AS cor0
----
315
5625
7056

query I rowsort
SELECT ALL - + col2 * - ( - cor0.col0 ) + - col1 * - col1 FROM tab1 AS cor0
----
-3548
-7511
514

query I rowsort
SELECT DISTINCT + + col2 * + col2 * + 32 FROM tab0 cor0
----
215168
32
34848

query I rowsort
SELECT DISTINCT - - col2 + - cor0.col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT + + col1 * - col2 * - col1 + + col2 AS col2 FROM tab0 AS cor0
----
244101
679124
9410

query I rowsort
SELECT DISTINCT - cor0.col2 * + cor0.col0 + - col2 AS col0 FROM tab0 AS cor0
----
-36
-7380
-825

query I rowsort
SELECT col0 + - 81 * col2 AS col2 FROM tab1 AS cor0
----
-4371
-4553
-7696

query I rowsort
SELECT DISTINCT + col2 * 83 * col1 + + col2 * - cor0.col2 AS col2 FROM tab1 AS cor0
----
113616
44061
94368

query I rowsort
SELECT ALL + col1 + 16 * - col1 AS col0 FROM tab1 AS cor0
----
-150
-195
-390

query I rowsort
SELECT ALL + cor0.col1 + col2 * + 90 - - cor0.col1 FROM tab2 AS cor0
----
2458
2492
3454

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 + + col1 col2 FROM tab1 AS cor0
----
20
26
52

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6634
SELECT ALL - + col0 * CAST( NULL AS DECIMAL ) + cor0.col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6634
SELECT ALL - + col0 * CAST ( NULL AS REAL ) + cor0.col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT tab0.col0 + col1 * + col0 FROM tab0
----
2088
3430
8188

query I rowsort
SELECT DISTINCT 45 AS col1 FROM tab1, tab0, tab2 AS cor0
----
45

onlyif mysql # use DIV operator for integer division
query I rowsort label-6637
SELECT ALL 52 DIV + col0 + col2 * col0 FROM tab1
----
179
3648
7680

skipif mysql # not compatible
query I rowsort label-6637
SELECT ALL 52 / + col0 + col2 * col0 FROM tab1
----
179
3648
7680

query I rowsort
SELECT - 59 - + tab1.col2 * - tab1.col2 FROM tab1
----
2857
3190
9157

query I rowsort
SELECT + 12 + col1 - 35 AS col1 FROM tab2
----
-6
36
8

query I rowsort
SELECT ( tab1.col0 + tab1.col1 ) FROM tab1
----
29
74
93

query I rowsort
SELECT ALL ( col0 ) - - col2 AS col1 FROM tab1
----
121
176
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-6642
SELECT col1 + col2 DIV + ( col0 * - col0 ) FROM tab1
----
10
13
20

skipif mysql # not compatible
query I rowsort label-6642
SELECT col1 + col2 / + ( col0 * - col0 ) FROM tab1
----
10
13
20

onlyif mysql # use DIV operator for integer division
query I rowsort label-6643
SELECT 24 DIV col2 + - col1 + + col2 FROM tab0
----
-53
-72
-9

skipif mysql # not compatible
query I rowsort label-6643
SELECT 24 / col2 + - col1 + + col2 FROM tab0
----
-53
-72
-9

query I rowsort
SELECT ALL - + 45 * + col0 AS col0 FROM tab0 AS cor0
----
-1080
-1575
-4005

query I rowsort
SELECT DISTINCT - 68 * + cor0.col1 + col2 AS col2 FROM tab1 AS cor0
----
-1714
-623
-788

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6646
SELECT ALL - + CAST( 95 AS SIGNED ) * col2 + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6646
SELECT ALL - + CAST ( 95 AS INTEGER ) * col2 + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6647
SELECT + CAST( NULL AS SIGNED ) * col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6647
SELECT + CAST ( NULL AS INTEGER ) * col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + ( - col1 ) AS col0 FROM tab0 cor0
----
-86
-91
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + 94 * col0 col1 FROM tab2 AS cor0
----
126242
20398
432588

query I rowsort
SELECT DISTINCT + col2 * - cor0.col0 AS col0 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT ALL + + 5 FROM tab2 AS cor0
----
5
5
5

query I rowsort
SELECT - ( col0 ) + - col2 * + 0 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT + + col0 * cor0.col0 * + col0 AS col0 FROM tab2 AS cor0
----
343
474552
493039

query I rowsort
SELECT ALL - - cor0.col1 * - col0 * - col2 - + col2 FROM tab2 AS cor0
----
119626
50996
5832

query I rowsort
SELECT + 69 - col2 * col0 AS col0 FROM tab0
----
-7229
-723
34

query I rowsort
SELECT DISTINCT + col0 + cor0.col0 * - cor0.col2 - col0 AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT ALL + + col0 * + cor0.col0 AS col2 FROM tab1 cor0
----
4096
6400
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 81 * + col1 col0 FROM tab0 AS cor0
----
-6966
-7371
-7857

query I rowsort
SELECT DISTINCT 92 * col0 AS col1 FROM tab2
----
644
7176
7268

query I rowsort
SELECT ( - col2 ) + - col0 * ( - ( col2 ) ) * + col2 AS col2 FROM tab0 AS cor0
----
26103
34
598354

query I rowsort
SELECT + 99 * + col1 AS col1 FROM tab1 AS cor0
----
1287
2574
990

query I rowsort
SELECT DISTINCT + cor0.col2 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
26
27
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-6663
SELECT - + 60 * col2 DIV - col2 FROM tab1 AS cor0
----
60
60
60

skipif mysql # not compatible
query I rowsort label-6663
SELECT - + 60 * col2 / - col2 FROM tab1 AS cor0
----
60
60
60

onlyif mysql # use DIV operator for integer division
query I rowsort label-6664
SELECT col1 * col0 DIV - col1 + col2 col2 FROM tab2
----
-41
-52
20

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6664
SELECT col1 * col0 / - col1 + col2 col2 FROM tab2
----
-41
-52
20

query I rowsort
SELECT 30 * - col1 + - col1 AS col2 FROM tab2
----
-1829
-527
-961

query I rowsort
SELECT DISTINCT + ( col1 ) * col2 AS col0 FROM tab0
----
2838
7462
97

query I rowsort
SELECT 73 + ( tab2.col2 ) * - col1 AS col2 FROM tab2
----
-1461
-573
-764

query I rowsort
SELECT - 73 * 64 + col1 AS col0 FROM tab2
----
-4613
-4641
-4655

query I rowsort
SELECT + col0 + + 15 * + col2 FROM tab1
----
1520
813
919

query I rowsort
SELECT DISTINCT + ( + col0 ) * - col0 FROM tab0
----
-1225
-576
-7921

onlyif mysql # use DIV operator for integer division
query I rowsort label-6671
SELECT ALL + 78 DIV col0 col1 FROM tab0
----
0
2
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6671
SELECT ALL + 78 / col0 col1 FROM tab0
----
0
2
3

query I rowsort
SELECT ALL 98 + col2 * col1 * col2 FROM tab2 AS cor0
----
22697
24646
39982

query I rowsort
SELECT ALL + - col2 + + cor0.col1 * - cor0.col1 AS col2 FROM tab2 AS cor0
----
-327
-3507
-988

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 79 col0 FROM tab2 AS cor0
----
79
79
79

query I rowsort
SELECT DISTINCT col2 * + cor0.col1 AS col0 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT - col2 * col1 * - col0 AS col0 FROM tab2 AS cor0
----
119652
51034
5859

query I rowsort
SELECT ALL - 95 + + col1 AS col0 FROM tab2 cor0
----
-36
-64
-78

query I rowsort
SELECT + + ( + col0 ) FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT ALL 31 * + col0 AS col1 FROM tab0 AS cor0
----
1085
2759
744

query I rowsort
SELECT DISTINCT cor0.col0 + - col2 * cor0.col2 AS col0 FROM tab1 AS cor0
----
-2913
-3185
-9136

query I rowsort
SELECT DISTINCT + col1 + tab0.col0 * col0 FROM tab0
----
1322
662
8012

onlyif mysql # use DIV operator for integer division
query I rowsort label-6682
SELECT DISTINCT + tab1.col1 DIV - 81 + - 78 * col2 FROM tab1
----
-4212
-4446
-7488

skipif mysql # not compatible
query I rowsort label-6682
SELECT DISTINCT + tab1.col1 / - 81 + - 78 * col2 FROM tab1
----
-4212
-4446
-7488

query I rowsort
SELECT - col1 * 87 + - col2 FROM tab1
----
-1227
-2316
-927

query I rowsort
SELECT DISTINCT + col2 + cor0.col1 * - 19 AS col2 FROM tab1 AS cor0
----
-133
-151
-440

query I rowsort
SELECT + + col1 * col1 + col2 AS col1 FROM tab2 cor0
----
327
3507
988

query I rowsort
SELECT + cor0.col1 * - col1 * 69 + col2 FROM tab0 AS cor0
----
-510291
-571307
-649220

query I rowsort
SELECT DISTINCT - tab0.col0 * col1 AS col2 FROM tab0
----
-2064
-3395
-8099

query I rowsort
SELECT ALL + - 21 * + col1 + + col0 * + col0 FROM tab1 AS cor0
----
-537
3886
6127

onlyif mysql # use DIV operator for integer division
query I rowsort label-6689
SELECT ALL + - cor0.col0 + col2 * col1 DIV - col0 FROM tab1 AS cor0
----
-471
-72
-95

skipif mysql # not compatible
query I rowsort label-6689
SELECT ALL + - cor0.col0 + col2 * col1 / - col0 FROM tab1 AS cor0
----
-471
-72
-95

query I rowsort
SELECT - + col2 * + cor0.col2 AS col1 FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT ALL - + 4 * cor0.col2 AS col2 FROM tab2 AS cor0
----
-104
-108
-152

query I rowsort
SELECT - 24 * 50 AS col1 FROM tab2 cor0
----
-1200
-1200
-1200

query I rowsort
SELECT - + col0 * + 1 AS col1 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT col1 * 90 AS col0 FROM tab1
----
1170
2340
900

query I rowsort
SELECT DISTINCT - col2 * ( + col1 * col1 ) + col0 FROM tab1 AS cor0
----
-16144
-36501
-5636

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - col2 + - 96 col2 FROM tab1 AS cor0
----
-1344
-1500
-666

onlyif mysql # use DIV operator for integer division
query I rowsort label-6697
SELECT DISTINCT - col1 * 12 * + col2 + col1 DIV col1 + - 9 FROM tab0 AS cor0
----
-1172
-34064
-89552

skipif mysql # not compatible
query I rowsort label-6697
SELECT DISTINCT - col1 * 12 * + col2 + col1 / col1 + - 9 FROM tab0 AS cor0
----
-1172
-34064
-89552

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 + - ( 71 ) col0 FROM tab0 cor0
----
15
20
26

query I rowsort
SELECT ALL + col0 * - 16 AS col1 FROM tab0
----
-1424
-384
-560

onlyif mysql # use DIV operator for integer division
query I rowsort label-6700
SELECT - 3 DIV 78 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6700
SELECT - 3 / 78 AS col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6701
SELECT DISTINCT ( col1 ) DIV col0 col2 FROM tab1
----
0
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6701
SELECT DISTINCT ( col1 ) / col0 col2 FROM tab1
----
0
8

query I rowsort
SELECT - 82 * + col2 AS col1 FROM tab1
----
-4428
-4674
-7872

query I rowsort
SELECT 90 FROM tab2, tab1 AS cor0
----
9 values hashing to 96f7a90428db93f472e0d219bab64853

query I rowsort
SELECT + col0 + cor0.col2 * col0 + col1 AS col2 FROM tab1 AS cor0
----
191
3722
7773

onlyif mysql # use DIV operator for integer division
query I rowsort label-6705
SELECT + 7 DIV - 76 FROM tab1, tab2 AS cor0, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to 1f117f467f45d8c6b7553e2e3c842942

skipif mysql # not compatible
query I rowsort label-6705
SELECT + 7 / - 76 FROM tab1, tab2 AS cor0, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to 1f117f467f45d8c6b7553e2e3c842942

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6706
SELECT DISTINCT - - col2 + - col2 * - CAST( col0 AS SIGNED ) col1 FROM tab2 AS cor0
----
2054
216
3040

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6706
SELECT DISTINCT - - col2 + - col2 * - CAST ( col0 AS INTEGER ) col1 FROM tab2 AS cor0
----
2054
216
3040

query I rowsort
SELECT ALL col2 + cor0.col0 + + col2 AS col2 FROM tab0 AS cor0
----
253
37
90

query I rowsort
SELECT ALL 22 * + col0 FROM tab0
----
1958
528
770

query I rowsort
SELECT + + 94 * - col0 AS col0 FROM tab2 AS cor0
----
-658
-7332
-7426

query I rowsort
SELECT 9 FROM tab2, tab0 cor0
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b

query I rowsort
SELECT DISTINCT + col1 + col0 * col0 AS col2 FROM tab2 AS cor0
----
6143
6258
80

query I rowsort
SELECT - + cor0.col2 * ( - col2 ) + + col1 + col0 FROM tab1 AS cor0
----
2945
3323
9309

query I rowsort
SELECT + - col0 + col0 * 54 FROM tab2 AS cor0
----
371
4134
4187

query I rowsort
SELECT + col1 * + ( cor0.col2 ) + + col1 AS col0 FROM tab1 AS cor0
----
1261
1430
580

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6715
SELECT DISTINCT - CAST( NULL AS DECIMAL ) FROM tab0, tab2 AS cor0, tab2 cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-6715
SELECT DISTINCT - CAST ( NULL AS REAL ) FROM tab0, tab2 AS cor0, tab2 cor1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 66 + + tab2.col2 col2 FROM tab2
----
104
92
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-6717
SELECT ALL - 23 + cor0.col1 DIV - 7 AS col1 FROM tab1, tab1 AS cor0, tab1 cor1
----
27 values hashing to fc952b4280678ce1167626231befc464

skipif mysql # not compatible
query I rowsort label-6717
SELECT ALL - 23 + cor0.col1 / - 7 AS col1 FROM tab1, tab1 AS cor0, tab1 cor1
----
27 values hashing to fc952b4280678ce1167626231befc464

query I rowsort
SELECT col0 * - 22 FROM tab0 cor0
----
-1958
-528
-770

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + col1 * 49 col1 FROM tab0 cor0
----
4247
4541
4754

query I rowsort
SELECT ALL + 53 - cor0.col1 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to b808f5743e9ad64f835ce4c8546a836e

query I rowsort
SELECT ALL - col2 * ( col2 ) * - col2 FROM tab1 AS cor0
----
157464
185193
884736

query I rowsort
SELECT DISTINCT + col0 + + ( col0 ) + + col0 FROM tab0 AS cor0
----
105
267
72

query I rowsort
SELECT ALL + 55 AS col2 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 832128adb1ddc65c3105e29cc2c8b3a3

query I rowsort
SELECT 99 AS col0 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 05ea182fd6036c7f5e0ea08fc061cc67

onlyif mysql # use DIV operator for integer division
query I rowsort label-6725
SELECT ( + col0 ) + - col1 * ( + ( + col2 ) ) DIV - col0 FROM tab2 AS cor0
----
126
87
97

skipif mysql # not compatible
query I rowsort label-6725
SELECT ( + col0 ) + - col1 * ( + ( + col2 ) ) / - col0 FROM tab2 AS cor0
----
126
87
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6726
SELECT ALL + CAST( - 50 AS SIGNED ) * + col2 - 10 * col2 FROM tab0 AS cor0
----
-1980
-4920
-60

skipif mysql # not compatible
query I rowsort label-6726
SELECT ALL + CAST ( - 50 AS INTEGER ) * + col2 - 10 * col2 FROM tab0 AS cor0
----
-1980
-4920
-60

query I rowsort
SELECT DISTINCT - + ( col0 ) - cor0.col1 FROM tab1 cor0
----
-29
-74
-93

query I rowsort
SELECT + 58 * ( + col0 ) * + 79 + - col0 AS col1 FROM tab0 AS cor0
----
109944
160335
407709

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6729
SELECT DISTINCT + CAST( NULL AS DECIMAL ) + + col0 * col2 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6729
SELECT DISTINCT + CAST ( NULL AS REAL ) + + col0 * col2 AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6730
SELECT - col0 + tab2.col2 DIV col1 - - col2 AS col2 FROM tab2
----
-39
-52
20

skipif mysql # not compatible
query I rowsort label-6730
SELECT - col0 + tab2.col2 / col1 - - col2 AS col2 FROM tab2
----
-39
-52
20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 80 col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 4dde3bd5652d30396b9cadd0e2cfb680

query I rowsort
SELECT col2 + tab0.col0 * col1 AS col0 FROM tab0
----
2097
3396
8181

query I rowsort
SELECT + 48 + 64 AS col0 FROM tab0, tab2 cor0
----
9 values hashing to 121b64fd841a20f87520daa7774d37c9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col2 col0 FROM tab2
----
189
2028
3002

query I rowsort
SELECT - ( cor0.col0 ) * - col0 AS col0 FROM tab2 cor0
----
49
6084
6241

query I rowsort
SELECT - + col1 + - cor0.col0 AS col2 FROM tab2 AS cor0
----
-137
-38
-96

query I rowsort
SELECT ALL - + col0 + col2 * col2 AS col2 FROM tab1 AS cor0
----
2913
3185
9136

onlyif mysql # use DIV operator for integer division
query I rowsort label-6738
SELECT + 7 DIV - col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6738
SELECT + 7 / - col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT col2 * - 59 AS col0 FROM tab2
----
-1534
-1593
-2242

query I rowsort
SELECT + col1 * + col1 * col2 + col1 FROM tab2 AS cor0
----
10999
25978
90565

query I rowsort
SELECT + - 54 AS col2 FROM tab2 AS cor0
----
-54
-54
-54

onlyif mysql # use DIV operator for integer division
query I rowsort label-6742
SELECT col2 + 52 DIV + col0 FROM tab1
----
57
71
96

skipif mysql # not compatible
query I rowsort label-6742
SELECT col2 + 52 / + col0 FROM tab1
----
57
71
96

query I rowsort
SELECT DISTINCT + cor1.col2 * 16 AS col2 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
1536
864
912

query I rowsort
SELECT DISTINCT - 61 * cor0.col1 FROM tab0 AS cor0
----
-5246
-5551
-5917

query I rowsort
SELECT DISTINCT + col1 * + cor0.col1 + - col0 AS col0 FROM tab0 AS cor0
----
7372
8192
9374

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6746
SELECT DISTINCT + CAST( + col0 + + col1 AS SIGNED ) FROM tab2
----
137
38
96

skipif mysql # not compatible
query I rowsort label-6746
SELECT DISTINCT + CAST ( + col0 + + col1 AS INTEGER ) FROM tab2
----
137
38
96

query I rowsort
SELECT col0 + + 0 FROM tab0
----
24
35
89

query I rowsort
SELECT - 66 + - col1 FROM tab1 AS cor0
----
-76
-79
-92

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6749
SELECT + cor0.col2 * col2 - CAST( 2 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
2914
3247
9214

skipif mysql # not compatible
query I rowsort label-6749
SELECT + cor0.col2 * col2 - CAST ( 2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
2914
3247
9214

query I rowsort
SELECT DISTINCT - 56 * + col2 FROM tab2 AS cor0
----
-1456
-1512
-2128

query I rowsort
SELECT - ( - col0 ) * col2 FROM tab1 AS cor0
----
162
3648
7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - cor0.col1 col1 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT DISTINCT - 57 * col0 FROM tab0 AS cor0
----
-1368
-1995
-5073

onlyif mysql # use DIV operator for integer division
query I rowsort label-6754
SELECT DISTINCT 27 DIV + col1 AS col1 FROM tab1 AS cor0
----
1
2

skipif mysql # not compatible
query I rowsort label-6754
SELECT DISTINCT 27 / + col1 AS col1 FROM tab1 AS cor0
----
1
2

query I rowsort
SELECT + 64 * col0 + ( - 42 ) FROM tab0 AS cor0
----
1494
2198
5654

query I rowsort
SELECT 39 + col0 FROM tab2 cor0
----
117
118
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( col2 ) * + col0 + col2 col0 FROM tab0 AS cor0
----
-34
-7216
-759

query I rowsort
SELECT ALL col0 * + cor0.col0 + ( + col0 ) AS col1 FROM tab1 AS cor0
----
12
4160
6480

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + cor0.col1 + cor0.col2 col0 FROM tab1 AS cor0
----
1136
132
697

query I rowsort
SELECT tab0.col2 - 29 FROM tab0
----
-28
4
53

query I rowsort
SELECT + col2 + + 90 * ( col1 ) + + 76 AS col0 FROM tab1 AS cor0
----
1033
1342
2470

query I rowsort
SELECT DISTINCT + cor0.col0 + - cor0.col0 + - col1 * + col0 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT ALL - col2 + ( col2 + col1 ) AS col2 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT + col0 * + 27 + - col2 AS col1 FROM tab2 AS cor0
----
162
2080
2095

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 + cor0.col1 col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT - col0 * col0 + col2 * col0 + - cor0.col2 FROM tab0 AS cor0
----
-1191
-705
183

query I rowsort
SELECT ALL col2 * - 26 FROM tab0 AS cor0
----
-2132
-26
-858

query I rowsort
SELECT DISTINCT cor0.col1 * col0 + + col1 * + cor0.col2 FROM tab2 AS cor0
----
1054
1989
6136

query I rowsort
SELECT 90 * col2 FROM tab0
----
2970
7380
90

query I rowsort
SELECT col2 * 35 FROM tab0 AS cor0
----
1155
2870
35

query I rowsort
SELECT ALL - - col2 + + col0 * cor0.col1 FROM tab2 AS cor0
----
1381
244
4628

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6772
SELECT ALL - - col0 * CAST( col1 AS SIGNED ) - + col2 AS col0 FROM tab1 AS cor0
----
24
583
944

skipif mysql # not compatible
query I rowsort label-6772
SELECT ALL - - col0 * CAST ( col1 AS INTEGER ) - + col2 AS col0 FROM tab1 AS cor0
----
24
583
944

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col2 + col2 * + col0 * + 23 col1 FROM tab0 cor0
----
175152
19008
840

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 + + 97 * + col1 col1 FROM tab1 AS cor0
----
1027
1357
2576

query I rowsort
SELECT + ( - col1 ) + - col1 AS col1 FROM tab2 AS cor0
----
-118
-34
-62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 40 col0 FROM tab2, tab0 AS cor0
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3

query I rowsort
SELECT ALL - 94 * - cor0.col2 + col2 * + col0 FROM tab1 AS cor0
----
16704
5238
9006

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6778
SELECT ALL + CAST( cor0.col2 AS SIGNED ) * + col2 AS col2 FROM tab2 AS cor0
----
1444
676
729

skipif mysql # not compatible
query I rowsort label-6778
SELECT ALL + CAST ( cor0.col2 AS INTEGER ) * + col2 AS col2 FROM tab2 AS cor0
----
1444
676
729

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6779
SELECT DISTINCT - CAST( + col0 AS SIGNED ) * + col0 AS col2 FROM tab2 AS cor0
----
-49
-6084
-6241

skipif mysql # not compatible
query I rowsort label-6779
SELECT DISTINCT - CAST ( + col0 AS INTEGER ) * + col0 AS col2 FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT ALL + col0 * col2 + - col2 FROM tab0 AS cor0
----
34
7216
759

query I rowsort
SELECT DISTINCT + 82 * + cor2.col2 FROM tab1 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab0 cor2
----
2706
6724
82

query I rowsort
SELECT ALL + col0 * 29 + + col0 - + col1 * - 79 FROM tab2 AS cor0
----
2659
3713
7001

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6783
SELECT ALL + - CAST( - ( col1 ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-6783
SELECT ALL + - CAST ( - ( col1 ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT DISTINCT + ( + ( cor0.col1 ) ) * - cor0.col2 AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT - cor0.col1 * - ( col1 ) FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT DISTINCT + ( - cor0.col2 ) + cor0.col1 FROM tab2 AS cor0
----
-21
33
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-6787
SELECT - - col2 + col0 + col0 DIV - col1 col0 FROM tab1 AS cor0
----
115
170
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6787
SELECT - - col2 + col0 + col0 / - col1 col0 FROM tab1 AS cor0
----
115
170
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-6788
SELECT + + ( 34 ) DIV + col2 AS col1 FROM tab0 AS cor0
----
0
1
34

skipif mysql # not compatible
query I rowsort label-6788
SELECT + + ( 34 ) / + col2 AS col1 FROM tab0 AS cor0
----
0
1
34

query I rowsort
SELECT DISTINCT - col2 + col0 * cor0.col1 FROM tab2 AS cor0
----
1305
190
4576

query I rowsort
SELECT ALL + col0 + + 43 AS col1 FROM tab2
----
121
122
50

query I rowsort
SELECT 42 + col1 FROM tab2 AS cor0
----
101
59
73

query I rowsort
SELECT ALL col0 + - 54 FROM tab1
----
-51
10
26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6793
SELECT + - CAST( col2 AS SIGNED ) + col1 col0 FROM tab0 AS cor0
----
53
9
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6793
SELECT + - CAST ( col2 AS INTEGER ) + col1 col0 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT ALL col0 * ( + col1 ) + tab2.col2 FROM tab2
----
1381
244
4628

query I rowsort
SELECT DISTINCT + 77 AS col0 FROM tab1 AS cor0
----
77

query I rowsort
SELECT + 99 * - col1 AS col0 FROM tab2 AS cor0
----
-1683
-3069
-5841

onlyif mysql # use DIV operator for integer division
query I rowsort label-6797
SELECT DISTINCT + - ( + 38 ) + + col2 DIV 27 col1 FROM tab0 AS cor0
----
-35
-37
-38

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6797
SELECT DISTINCT + - ( + 38 ) + + col2 / 27 col1 FROM tab0 AS cor0
----
-35
-37
-38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 35 col2 FROM tab0
----
35
35
35

query I rowsort
SELECT DISTINCT 10 * - 28 AS col0 FROM tab1, tab2 AS cor0 CROSS JOIN tab2
----
-280

onlyif mysql # use DIV operator for integer division
query I rowsort label-6800
SELECT ALL - - cor0.col0 DIV + 70 + col1 FROM tab0 AS cor0
----
86
92
97

skipif mysql # not compatible
query I rowsort label-6800
SELECT ALL - - cor0.col0 / + 70 + col1 FROM tab0 AS cor0
----
86
92
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-6801
SELECT ALL ( col0 ) * - ( tab0.col0 ) - + col0 DIV ( + 21 ) FROM tab0
----
-1226
-577
-7925

skipif mysql # not compatible
query I rowsort label-6801
SELECT ALL ( col0 ) * - ( tab0.col0 ) - + col0 / ( + 21 ) FROM tab0
----
-1226
-577
-7925

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6802
SELECT + col2 * col1 + CAST( ( col2 ) AS SIGNED ) AS col0 FROM tab1
----
1344
1458
627

skipif mysql # not compatible
query I rowsort label-6802
SELECT + col2 * col1 + CAST ( ( col2 ) AS INTEGER ) AS col0 FROM tab1
----
1344
1458
627

query I rowsort
SELECT 90 * col0 - col2 FROM tab1
----
216
5703
7104

query I rowsort
SELECT DISTINCT col0 * col2 + col1 * tab2.col1 FROM tab2
----
1150
3291
5509

query I rowsort
SELECT ALL col0 * 12 AS col0 FROM tab2
----
84
936
948

query I rowsort
SELECT + 46 FROM tab0, tab2 AS cor0
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39

query I rowsort
SELECT DISTINCT + tab0.col2 AS col2 FROM tab0, tab1, tab1 AS cor0
----
1
33
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - tab1.col2 * col1 col2 FROM tab1
----
-119808
-32490
-75816

query I rowsort
SELECT DISTINCT col1 * + 59 AS col0 FROM tab2 AS cor0
----
1003
1829
3481

query I rowsort
SELECT - + col0 * col1 + - cor0.col1 + col0 AS col2 FROM tab0 cor0
----
-2126
-3457
-8101

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - cor0.col1 * + col1 col2 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT col1 + ( col1 * + col0 ) + col0 AS col1 FROM tab2 AS cor0
----
1439
255
4739

query I rowsort
SELECT ALL + col2 * - col2 + col0 AS col2 FROM tab0 AS cor0
----
-1065
-6635
34

query I rowsort
SELECT - col1 + - col1 + + col1 * + col1 * col2 FROM tab0 cor0
----
243896
678860
9215

query I rowsort
SELECT + col2 * 72 + + cor0.col1 * + col0 * - col1 FROM tab2 AS cor0
----
-20095
-269646
-4783

query I rowsort
SELECT 54 - col1 FROM tab2 cor0
----
-5
23
37

query I rowsort
SELECT - + cor0.col1 * col1 + - 73 * + ( col0 ) * + 18 FROM tab0 AS cor0
----
-125227
-38932
-55399

query I rowsort
SELECT - - 70 * col2 FROM tab1 cor0
----
3780
3990
6720

query I rowsort
SELECT ALL - ( + col0 ) * tab1.col2 FROM tab1
----
-162
-3648
-7680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6820
SELECT DISTINCT - CAST( 45 * - col1 + - col2 AS SIGNED ) col2 FROM tab2
----
1422
2681
803

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6820
SELECT DISTINCT - CAST ( 45 * - col1 + - col2 AS INTEGER ) col2 FROM tab2
----
1422
2681
803

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + col1 + + col0 ) * - col0 * 60 col1 FROM tab0
----
-158400
-277200
-961200

query I rowsort
SELECT DISTINCT + 71 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
71

query I rowsort
SELECT ALL col1 - - col2 AS col2 FROM tab0
----
119
173
98

query I rowsort
SELECT - 67 * - col1 - ( 41 + col1 ) AS col0 FROM tab2 cor0
----
1081
2005
3853

query I rowsort
SELECT + - col0 * cor0.col0 AS col0 FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT ALL tab2.col1 * - ( col1 ) FROM tab2
----
-289
-3481
-961

query I rowsort
SELECT ALL - 84 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 975e2ef2a3bf1ee2622362f4e435752f

query I rowsort
SELECT 23 * + col0 * - cor0.col2 AS col1 FROM tab1 AS cor0
----
-176640
-3726
-83904

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - 11 ) col2 FROM tab1
----
11
11
11

query I rowsort
SELECT - 82 + + 29 * - col1 AS col0 FROM tab1 AS cor0
----
-372
-459
-836

query I rowsort
SELECT 23 + + 33 FROM tab0 AS cor0
----
56
56
56

onlyif mysql # use DIV operator for integer division
query I rowsort label-6832
SELECT DISTINCT + 17 DIV 83 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-6832
SELECT DISTINCT + 17 / 83 AS col2 FROM tab1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * - col2 col0 FROM tab2 AS cor0
----
1534
646
837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 + - col2 * ( - ( col0 ) ) col2 FROM tab2 AS cor0
----
158
1969
2985

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 col1 + 13 AS col2 FROM tab0 cor0
----
104
110
99

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6837
SELECT ALL col2 + CAST( NULL AS SIGNED ) * + ( col0 ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6837
SELECT ALL col2 + CAST ( NULL AS INTEGER ) * + ( col0 ) AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6838
SELECT ALL - col1 DIV + ( - col0 ) + + col0 FROM tab0
----
27
37
90

skipif mysql # not compatible
query I rowsort label-6838
SELECT ALL - col1 / + ( - col0 ) + + col0 FROM tab0
----
27
37
90

onlyif mysql # use DIV operator for integer division
query I rowsort label-6839
SELECT ALL col0 + tab0.col2 DIV + col1 AS col1 FROM tab0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-6839
SELECT ALL col0 + tab0.col2 / + col1 AS col1 FROM tab0
----
24
35
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-6840
SELECT - + col2 DIV + 66 + + ( + col2 ) AS col1 FROM tab1 AS cor0
----
54
57
95

skipif mysql # not compatible
query I rowsort label-6840
SELECT - + col2 / + 66 + + ( + col2 ) AS col1 FROM tab1 AS cor0
----
54
57
95

query I rowsort
SELECT DISTINCT - - col1 * + col1 - + col1 FROM tab1 AS cor0
----
156
650
90

onlyif mysql # use DIV operator for integer division
query I rowsort label-6842
SELECT ALL - - col2 DIV - 93 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6842
SELECT ALL - - col2 / - 93 FROM tab1 AS cor0
----
-1
0
0

query I rowsort
SELECT + col0 + - col0 * + 60 AS col2 FROM tab1 AS cor0
----
-177
-3776
-4720

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( - 99 AS REAL ) AS col2 FROM tab2 AS cor0
----
-99

query I rowsort
SELECT DISTINCT - col0 * 42 * cor0.col0 + col0 AS col2 FROM tab2 AS cor0
----
-2051
-255450
-262043

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 + - col1 col2 FROM tab0 cor0
----
-172
-182
-194

query I rowsort
SELECT + ( + col0 ) + + col0 FROM tab2 AS cor0
----
14
156
158

query I rowsort
SELECT ALL + cor0.col0 - + col1 AS col1 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT DISTINCT + 23 + - col2 + - col0 * - col1 FROM tab1 AS cor0
----
47
606
967

query I rowsort
SELECT DISTINCT + col0 + - ( col0 ) AS col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL + - ( - col1 ) * col1 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT - 64 + 68 AS col1 FROM tab0 AS cor0
----
4
4
4

query I rowsort
SELECT DISTINCT - + 54 + + col0 FROM tab2 AS cor0
----
-47
24
25

query I rowsort
SELECT ALL cor0.col0 + - col0 * - cor0.col2 AS col0 FROM tab0 cor0
----
70
7387
816

query I rowsort
SELECT + tab1.col1 - ( - 98 ) FROM tab1
----
108
111
124

onlyif mysql # use DIV operator for integer division
query I rowsort label-6856
SELECT DISTINCT col1 DIV - ( col0 ) FROM tab2 AS cor0
----
-4
0

skipif mysql # not compatible
query I rowsort label-6856
SELECT DISTINCT col1 / - ( col0 ) FROM tab2 AS cor0
----
-4
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6857
SELECT ALL cor0.col1 DIV 26 AS col0 FROM tab0 AS cor0
----
3
3
3

skipif mysql # not compatible
query I rowsort label-6857
SELECT ALL cor0.col1 / 26 AS col0 FROM tab0 AS cor0
----
3
3
3

query I rowsort
SELECT ALL + 79 FROM tab2, tab0 AS cor0
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f

query I rowsort
SELECT + + col2 * 60 AS col0 FROM tab0 AS cor0
----
1980
4920
60

query I rowsort
SELECT DISTINCT col2 + - col1 + col1 FROM tab2
----
26
27
38

query I rowsort
SELECT DISTINCT + tab2.col2 * + ( ( - col2 ) + + 69 ) FROM tab2
----
1118
1134
1178

query I rowsort
SELECT col0 + - col1 * - 73 FROM tab0
----
6302
6732
7116

query I rowsort
SELECT 94 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24

query I rowsort
SELECT col1 + 16 FROM tab0
----
102
107
113

query I rowsort
SELECT ALL - col1 - - col1 * cor0.col0 AS col0 FROM tab0 AS cor0
----
1978
3298
8008

query I rowsort
SELECT ALL + col1 + 97 * - col2 FROM tab1 AS cor0
----
-5212
-5519
-9299

query I rowsort
SELECT ( + 6 ) + col1 + - tab2.col2 FROM tab2
----
-15
10
39

query I rowsort
SELECT tab0.col0 - col1 AS col2 FROM tab0
----
-2
-62
-62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6869
SELECT ALL + CAST( NULL AS SIGNED ) * col0 + - col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6869
SELECT ALL + CAST ( NULL AS INTEGER ) * col0 + - col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col0 + col0 - - col0 AS col2 FROM tab1
----
3
64
80

query I rowsort
SELECT - col0 * col0 * - tab0.col1 FROM tab0
----
118825
49536
720811

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6872
SELECT - CAST( NULL AS SIGNED ) * + col2 - - col0 / col0 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6872
SELECT - CAST ( NULL AS INTEGER ) * + col2 - - col0 / col0 AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6873
SELECT DISTINCT - col1 DIV col1 + tab0.col0 - col2 FROM tab0
----
-10
33
6

skipif mysql # not compatible
query I rowsort label-6873
SELECT DISTINCT - col1 / col1 + tab0.col0 - col2 FROM tab0
----
-10
33
6

query I rowsort
SELECT + cor0.col2 * col0 * + col2 + + col0 * - 6 + + col2 FROM tab0 AS cor0
----
-174
26025
597984

query I rowsort
SELECT + col2 + + 98 + - cor0.col1 FROM tab2 cor0
----
119
65
94

query I rowsort
SELECT tab2.col2 AS col0 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

onlyif mysql # use DIV operator for integer division
query I rowsort label-6877
SELECT - - col0 + col2 DIV ( col0 + + col0 ) AS col1 FROM tab1 AS cor0
----
12
64
80

skipif mysql # not compatible
query I rowsort label-6877
SELECT - - col0 + col2 / ( col0 + + col0 ) AS col1 FROM tab1 AS cor0
----
12
64
80

query I rowsort
SELECT ALL + + 50 + col2 FROM tab1 AS cor0
----
104
107
146

query I rowsort
SELECT col1 + col0 * - col1 + - col1 AS col1 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT DISTINCT - - cor0.col2 * - col2 + - ( - 76 * + col1 ) + cor0.col1 AS col0 FROM tab0 AS cor0
----
283
5533
7468

query I rowsort
SELECT + + col0 + col0 * col2 FROM tab0 AS cor0
----
70
7387
816

query I rowsort
SELECT - + col0 + - col1 AS col2 FROM tab1 AS cor0
----
-29
-74
-93

query I rowsort
SELECT DISTINCT + + cor0.col1 * + col0 + + col2 AS col0 FROM tab2 AS cor0
----
1381
244
4628

query I rowsort
SELECT DISTINCT - 48 * col2 + 18 + col0 AS col2 FROM tab2 AS cor0
----
-1152
-1271
-1727

query I rowsort
SELECT DISTINCT col2 + - col2 * col2 AS col0 FROM tab2 AS cor0
----
-1406
-650
-702

query I rowsort
SELECT DISTINCT - 64 * + col0 AS col2 FROM tab2 AS cor0
----
-448
-4992
-5056

query I rowsort
SELECT - cor0.col1 + col2 * col2 + + col0 * - col1 AS col2 FROM tab2 cor0
----
-3985
481
84

query I rowsort
SELECT DISTINCT 15 * col2 * col0 FROM tab0 AS cor0
----
109470
11880
525

query I rowsort
SELECT DISTINCT + - cor0.col1 * col0 FROM tab0 cor0
----
-2064
-3395
-8099

query I rowsort
SELECT DISTINCT col1 * + cor0.col0 AS col0 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT + ( + col0 ) AS col0 FROM tab0 cor0
----
24
35
89

query I rowsort
SELECT ALL - 9 * + col1 * + col0 AS col1 FROM tab0 AS cor0
----
-18576
-30555
-72891

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 * - col0 * + col1 col1 FROM tab2 AS cor0
----
22831
271518
6727

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col1 + col1 + - 21 * - col0 col2 FROM tab2 cor0
----
-2905
-39
333

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 + - col0 col2 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT + 43 + col1 * 43 AS col0 FROM tab0 AS cor0
----
3741
3956
4214

query I rowsort
SELECT + - col0 * col2 + 88 AS col2 FROM tab0 AS cor0
----
-704
-7210
53

query I rowsort
SELECT + 51 * - col1 + - ( + col1 ) AS col1 FROM tab2 AS cor0
----
-1612
-3068
-884

query I rowsort
SELECT ALL - col0 + + col0 + col0 * ( col1 ) FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT - cor0.col1 + + 7 FROM tab0, tab1 AS cor0
----
9 values hashing to bcf948c230dd67482557498e020f2451

query I rowsort
SELECT ALL + 32 + col0 AS col2 FROM tab2 AS cor0
----
110
111
39

onlyif mysql # use DIV operator for integer division
query I rowsort label-6902
SELECT + col2 + col1 DIV cor0.col0 FROM tab1 cor0
----
57
62
96

skipif mysql # not compatible
query I rowsort label-6902
SELECT + col2 + col1 / cor0.col0 FROM tab1 cor0
----
57
62
96

query I rowsort
SELECT - col2 * - ( col1 ) + col2 FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT DISTINCT + - col0 + col1 * col1 AS col1 FROM tab2 AS cor0
----
210
3403
954

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * 12 col2 FROM tab2 AS cor0
----
84
936
948

onlyif mysql # use DIV operator for integer division
query I rowsort label-6906
SELECT ALL + + cor0.col1 * col1 DIV col0 FROM tab0 AS cor0
----
268
308
93

skipif mysql # not compatible
query I rowsort label-6906
SELECT ALL + + cor0.col1 * col1 / col0 FROM tab0 AS cor0
----
268
308
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-6907
SELECT ALL + col2 DIV - col1 + + col1 AS col1 FROM tab2
----
15
31
59

skipif mysql # not compatible
query I rowsort label-6907
SELECT ALL + col2 / - col1 + + col1 AS col1 FROM tab2
----
15
31
59

query I rowsort
SELECT + col2 + + col2 + - col1 FROM tab2 AS cor0
----
-7
23
59

query I rowsort
SELECT ALL - + col2 - col0 AS col2 FROM tab0 AS cor0
----
-171
-36
-57

query I rowsort
SELECT DISTINCT + ( - 86 ) FROM tab1 AS cor0
----
-86

query I rowsort
SELECT ALL + + col2 * + cor0.col2 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT ALL 28 * col0 + + col2 FROM tab2 AS cor0
----
2210
223
2250

query I rowsort
SELECT DISTINCT + col1 + - col1 + col2 AS col0 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT ALL + + col2 - cor0.col1 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT DISTINCT 77 * + col2 * col0 AS col0 FROM tab1 AS cor0
----
12474
280896
591360

query I rowsort
SELECT DISTINCT + col2 + + 22 + col0 AS col1 FROM tab1 AS cor0
----
143
198
79

query I rowsort
SELECT - + ( - 99 ) FROM tab1 cor0
----
99
99
99

query I rowsort
SELECT + 40 + col0 AS col2 FROM tab0 AS cor0
----
129
64
75

query I rowsort
SELECT col2 * ( + col1 ) * + col1 + 54 FROM tab1
----
16278
36558
5754

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6920
SELECT DISTINCT CAST( col1 AS SIGNED ) * col1 FROM tab0 AS cor0
----
7396
8281
9409

skipif mysql # not compatible
query I rowsort label-6920
SELECT DISTINCT CAST ( col1 AS INTEGER ) * col1 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT + - ( 55 ) FROM tab0 AS cor0
----
-55
-55
-55

onlyif mysql # use DIV operator for integer division
query I rowsort label-6922
SELECT + col0 * - cor0.col2 - col2 * col1 DIV - cor0.col1 AS col0 FROM tab2 AS cor0
----
-162
-2002
-2964

skipif mysql # not compatible
query I rowsort label-6922
SELECT + col0 * - cor0.col2 - col2 * col1 / - cor0.col1 AS col0 FROM tab2 AS cor0
----
-162
-2002
-2964

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + tab2.col1 + col1 col0 FROM tab2
----
306
3540
992

query I rowsort
SELECT - 50 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to c7432a968c8352c12996dfa54dd4b9e8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col0 col0 FROM tab1
----
29
74
93

query I rowsort
SELECT + - col1 * - cor0.col2 AS col2 FROM tab2 cor0
----
1534
646
837

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6927
SELECT - col1 * + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6927
SELECT - col1 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6928
SELECT - col1 * + CAST( NULL AS DECIMAL ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6928
SELECT - col1 * + CAST ( NULL AS REAL ) FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + cor0.col1 * col2 + - col0 AS col0 FROM tab2 AS cor0
----
1456
567
830

query I rowsort
SELECT ALL - 23 * col1 + - col0 FROM tab1 AS cor0
----
-294
-379
-601

query I rowsort
SELECT DISTINCT + - ( 75 ) - col2 FROM tab1 AS cor0
----
-129
-132
-171

query I rowsort
SELECT + - 66 * - col0 FROM tab0 AS cor0
----
1584
2310
5874

query I rowsort
SELECT - + 47 * - cor0.col0 + ( - col0 ) + - col0 AS col1 FROM tab2 cor0
----
315
3510
3555

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 20 col1 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 0a35fe98f3e7d5fc8ff2ae815bd20ef4

query I rowsort
SELECT DISTINCT + 0 + - col1 AS col1 FROM tab0 AS cor0
----
-86
-91
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-6936
SELECT DISTINCT - - cor0.col1 DIV col1 AS col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6936
SELECT DISTINCT - - cor0.col1 / col1 AS col1 FROM tab0 AS cor0
----
1

query I rowsort
SELECT + - cor1.col0 + 0 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6938
SELECT ALL + + col1 + CAST( + col0 AS SIGNED ) * col0 AS col0 FROM tab1 AS cor0
----
35
4106
6413

skipif mysql # not compatible
query I rowsort label-6938
SELECT ALL + + col1 + CAST ( + col0 AS INTEGER ) * col0 AS col0 FROM tab1 AS cor0
----
35
4106
6413

query I rowsort
SELECT DISTINCT - + col2 + - col2 FROM tab0 cor0
----
-164
-2
-66

onlyif mysql # use DIV operator for integer division
query I rowsort label-6940
SELECT - ( col2 ) DIV col0 + + col0 + - col0 AS col0 FROM tab2 AS cor0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-6940
SELECT - ( col2 ) / col0 + + col0 + - col0 AS col0 FROM tab2 AS cor0
----
-3
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6941
SELECT - CAST( 35 AS SIGNED ) AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to c12e8bdd687c9040a5600dab3b6adf5b

skipif mysql # not compatible
query I rowsort label-6941
SELECT - CAST ( 35 AS INTEGER ) AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to c12e8bdd687c9040a5600dab3b6adf5b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * 34 + - col0 * col0 col2 FROM tab2
----
-1103
-6819
-8090

onlyif mysql # use DIV operator for integer division
query I rowsort label-6943
SELECT ALL col2 DIV CAST( col0 * col0 AS SIGNED ) + - col1 AS col1 FROM tab2
----
-17
-31
-59

skipif mysql # not compatible
query I rowsort label-6943
SELECT ALL col2 / CAST ( col0 * col0 AS INTEGER ) + - col1 AS col1 FROM tab2
----
-17
-31
-59

query I rowsort
SELECT ALL - col1 * 9 AS col2 FROM tab0
----
-774
-819
-873

query I rowsort
SELECT ALL 47 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6946
SELECT - col2 + + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6946
SELECT - col2 + + CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - col0 * ( 96 ) AS col0 FROM tab0 cor0
----
2304
3360
8544

query I rowsort
SELECT 62 FROM tab1, tab1 AS cor0
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 * ( cor0.col0 ) + + col2 col2 FROM tab1 AS cor0
----
1136
132
697

query I rowsort
SELECT - + col1 * - 7 FROM tab2 AS cor0
----
119
217
413

skipif mysql # not compatible
query I rowsort
SELECT col0 * - CAST ( - 22 AS REAL ) * cor0.col1 AS col0 FROM tab0 AS cor0
----
178178
45408
74690

query I rowsort
SELECT col1 * + tab1.col0 * col0 AS col1 FROM tab1
----
234
40960
83200

query I rowsort
SELECT - ( - col2 ) + col2 AS col2 FROM tab1
----
108
114
192

query I rowsort
SELECT DISTINCT - col2 - + 66 AS col1 FROM tab0
----
-148
-67
-99

query I rowsort
SELECT ( ( + col0 ) ) * 40 + col2 FROM tab0
----
1401
3642
993

query I rowsort
SELECT + cor0.col2 + - 47 AS col2 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 16b7a186a96e4ba05d1b78645a6d9b22

query I rowsort
SELECT DISTINCT tab2.col1 - - 88 FROM tab2
----
105
119
147

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 17 - - col0 * - cor0.col0 col1 FROM tab2 AS cor0
----
-6101
-6258
-66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( + col0 ) * + col0 + 19 col2 FROM tab1 cor0
----
-4077
-6381
10

query I rowsort
SELECT - + 48 AS col1 FROM tab2 cor0
----
-48
-48
-48

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6961
SELECT DISTINCT + CAST( NULL AS SIGNED ) - 10 AS col2 FROM tab2, tab0, tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6961
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - 10 AS col2 FROM tab2, tab0, tab2 cor0
----
NULL

query I rowsort
SELECT DISTINCT + 92 + - col1 * - col2 + col2 FROM tab1 AS cor0
----
1436
1550
719

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6963
SELECT + 52 + - cor0.col0 * - col2 * + CAST( ( + col0 ) AS SIGNED ) AS col2 FROM tab2 AS cor0
----
1375
158236
237210

skipif mysql # not compatible
query I rowsort label-6963
SELECT + 52 + - cor0.col0 * - col2 * + CAST ( ( + col0 ) AS INTEGER ) AS col2 FROM tab2 AS cor0
----
1375
158236
237210

query I rowsort
SELECT ALL - col2 + - ( - col2 ) FROM tab0 cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col0 col1 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT ALL + col1 + col2 * col1 * col1 FROM tab2 AS cor0
----
10999
25978
90565

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6967
SELECT DISTINCT CAST( NULL AS SIGNED ) - - cor0.col1 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6967
SELECT DISTINCT CAST ( NULL AS INTEGER ) - - cor0.col1 AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6968
SELECT - - CAST( NULL AS SIGNED ) * cor0.col2 + - col1 * + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6968
SELECT - - CAST ( NULL AS INTEGER ) * cor0.col2 + - col1 * + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 + 34 FROM tab1 AS cor0
----
114
37
98

query I rowsort
SELECT 26 FROM tab1 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab0 AS cor2, tab2 cor3
----
243 values hashing to 550d3f132ccceae7a20d04477e44e04b

query I rowsort
SELECT - + col2 * col2 + col1 FROM tab1 AS cor0
----
-2890
-3239
-9203

query I rowsort
SELECT DISTINCT + ( 40 ) + + cor0.col0 FROM tab0 AS cor0
----
129
64
75

onlyif mysql # use DIV operator for integer division
query I rowsort label-6973
SELECT + + ( 4 ) + col2 DIV col1 AS col0 FROM tab0 cor0
----
4
4
4

skipif mysql # not compatible
query I rowsort label-6973
SELECT + + ( 4 ) + col2 / col1 AS col0 FROM tab0 cor0
----
4
4
4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6974
SELECT ALL - CAST( - col2 AS SIGNED ) * col1 - + col1 AS col0 FROM tab2 AS cor0
----
1475
629
806

skipif mysql # not compatible
query I rowsort label-6974
SELECT ALL - CAST ( - col2 AS INTEGER ) * col1 - + col1 AS col0 FROM tab2 AS cor0
----
1475
629
806

query I rowsort
SELECT ALL - cor0.col0 + col1 * + col2 * - col1 FROM tab1 AS cor0
----
-16304
-36507
-5764

query I rowsort
SELECT ALL + ( + col2 ) * - col2 - 48 * col2 FROM tab0 AS cor0
----
-10660
-2673
-49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col1 col0 FROM tab2, tab0 cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

query I rowsort
SELECT - col1 * col0 + + col0 FROM tab1 cor0
----
-576
-75
-960

query I rowsort
SELECT col1 * - 20 * + col2 FROM tab2
----
-12920
-16740
-30680

query I rowsort
SELECT ALL - ( col1 ) - col1 AS col1 FROM tab1 AS cor0
----
-20
-26
-52

query I rowsort
SELECT + 27 * + col0 + col2 FROM tab0 AS cor0
----
2485
681
946

query I rowsort
SELECT ALL + col1 + 19 AS col1 FROM tab1
----
29
32
45

query I rowsort
SELECT ( col2 ) * col2 + col0 * 20 AS col1 FROM tab0
----
1569
701
8504

query I rowsort
SELECT + 43 * tab0.col0 + - col2 AS col1 FROM tab0
----
1504
3745
999

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 89 col0 FROM tab1
----
89

query I rowsort
SELECT + - col1 * 57 + 79 - cor0.col1 FROM tab0 AS cor0
----
-4909
-5199
-5547

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 - - ( col0 ) col0 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT col1 + ( 24 ) FROM tab0 AS cor0
----
110
115
121

query I rowsort
SELECT - tab2.col2 * - col2 - 89 AS col2 FROM tab2
----
1355
587
640

onlyif mysql # use DIV operator for integer division
query I rowsort label-6990
SELECT DISTINCT + + col0 DIV 13 col2 FROM tab0 AS cor0
----
1
2
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6990
SELECT DISTINCT + + col0 / 13 col2 FROM tab0 AS cor0
----
1
2
6

query I rowsort
SELECT ALL - col1 * cor0.col2 + - col0 AS col2 FROM tab0 cor0
----
-132
-2862
-7551

query I rowsort
SELECT + - col1 * - col1 * + col1 FROM tab0 AS cor0
----
636056
753571
912673

query I rowsort
SELECT ALL - - col1 * 70 FROM tab2 AS cor0
----
1190
2170
4130

query I rowsort
SELECT DISTINCT - col1 * 18 FROM tab0 cor0
----
-1548
-1638
-1746

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - cor0.col0 col1 FROM tab2 AS cor0
----
-19
-62
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col1 * col2 + + cor0.col1 col2 FROM tab0 cor0
----
-2752
-7371
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 * col2 - + col0 * - col1 col0 FROM tab0 cor0
----
1375
3394
975

query I rowsort
SELECT - col0 * - col0 + - col1 FROM tab2 AS cor0
----
18
6025
6224

query I rowsort
SELECT cor0.col0 - + 35 * - ( col0 + + col0 ) FROM tab1 AS cor0
----
213
4544
5680

query I rowsort
SELECT DISTINCT col0 * - col2 + - col0 FROM tab0 AS cor0
----
-70
-7387
-816

onlyif mysql # use DIV operator for integer division
query I rowsort label-7001
SELECT + col2 * + col1 + 25 DIV - col1 FROM tab0 cor0
----
2838
7462
97

skipif mysql # not compatible
query I rowsort label-7001
SELECT + col2 * + col1 + 25 / - col1 FROM tab0 cor0
----
2838
7462
97

query I rowsort
SELECT ALL + col0 + 60 AS col1 FROM tab1
----
124
140
63

query I rowsort
SELECT DISTINCT col1 * tab0.col2 + 47 AS col2 FROM tab0
----
144
2885
7509

query I rowsort
SELECT - 3 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 95b6b9b4aae5cc2d9545db9f8940b2dc

query I rowsort
SELECT ALL + 65 FROM tab2, tab2 AS cor0, tab2 cor1
----
27 values hashing to 1c9d0bf96cd3361942fadad668138b9c

query I rowsort
SELECT col2 * + ( - 33 ) + + col1 AS col0 FROM tab2
----
-1237
-799
-860

query I rowsort
SELECT ALL - col2 * 28 + - 43 * - tab1.col0 FROM tab1
----
-1383
1156
752

query I rowsort
SELECT ALL - col0 + col0 * col0 AS col2 FROM tab1
----
4032
6
6320

query I rowsort
SELECT ALL + col0 * + ( - 11 ) FROM tab2
----
-77
-858
-869

onlyif mysql # use DIV operator for integer division
query I rowsort label-7010
SELECT - - col2 DIV + col2 AS col1 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7010
SELECT - - col2 / + col2 AS col1 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT 11 AS col0 FROM tab1, tab2 AS cor0
----
11

query I rowsort
SELECT + col0 * + col2 * col0 + col2 * + col1 AS col2 FROM tab0 AS cor0
----
1322
21846
656984

query I rowsort
SELECT DISTINCT - col2 * - col1 + - col2 AS col1 FROM tab1 AS cor0
----
1152
1350
513

query I rowsort
SELECT + col0 + cor0.col2 * - col2 + - col1 AS col0 FROM tab2 cor0
----
-1382
-657
-753

query I rowsort
SELECT col2 * col0 * col1 - + ( col0 * col0 ) AS col0 FROM tab2 AS cor0
----
113568
44793
5810

query I rowsort
SELECT DISTINCT + col0 * 45 AS col0 FROM tab0 AS cor0
----
1080
1575
4005

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - cor1.col1 col2 FROM tab2, tab2 AS cor0, tab0, tab0 cor1
----
86
91
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-7018
SELECT + col1 * + 5 + col0 DIV + col1 + + col2 * + col2 AS col2 FROM tab2 AS cor0
----
1533
884
972

skipif mysql # not compatible
query I rowsort label-7018
SELECT + col1 * + 5 + col0 / + col1 + + col2 * + col2 AS col2 FROM tab2 AS cor0
----
1533
884
972

query I rowsort
SELECT + col1 + col1 * - col2 + + ( col2 + - col2 ) FROM tab1 AS cor0
----
-1235
-1378
-560

query I rowsort
SELECT + 91 + + col0 * col2 FROM tab2 AS cor0
----
2119
280
3093

query I rowsort
SELECT + + col0 * 19 + - col0 FROM tab1 AS cor0
----
1152
1440
54

query I rowsort
SELECT col0 + - 55 FROM tab1 AS cor0
----
-52
25
9

query I rowsort
SELECT ALL col1 + col0 + col1 AS col2 FROM tab0 AS cor0
----
196
229
271

onlyif mysql # use DIV operator for integer division
query I rowsort label-7024
SELECT DISTINCT - 21 DIV + col0 + - ( col1 ) FROM tab1 AS cor0
----
-10
-13
-33

skipif mysql # not compatible
query I rowsort label-7024
SELECT DISTINCT - 21 / + col0 + - ( col1 ) FROM tab1 AS cor0
----
-10
-13
-33

query I rowsort
SELECT DISTINCT - 61 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-61

query I rowsort
SELECT ALL - 31 * col0 AS col2 FROM tab0 AS cor0
----
-1085
-2759
-744

query I rowsort
SELECT ALL + - col2 * - col0 + ( - 90 * - col2 + ( col0 ) * col0 ) FROM tab2 AS cor0
----
10452
12663
2668

query I rowsort
SELECT ALL - ( + col1 ) * + cor0.col0 AS col1 FROM tab1 cor0
----
-1040
-640
-78

query I rowsort
SELECT + 1 + col2 * - ( 10 ) FROM tab1 AS cor0
----
-539
-569
-959

query I rowsort
SELECT DISTINCT - 26 + col1 AS col0 FROM tab0 AS cor0
----
60
65
71

query I rowsort
SELECT DISTINCT - col1 * - cor0.col0 + 56 AS col0 FROM tab2 AS cor0
----
1399
273
4658

query I rowsort
SELECT DISTINCT - 23 FROM tab1 cor0
----
-23

query I rowsort
SELECT ALL - col1 + cor0.col0 + col1 FROM tab2 AS cor0
----
7
78
79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7034
SELECT DISTINCT col1 * CAST( 6 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
102
186
354

skipif mysql # not compatible
query I rowsort label-7034
SELECT DISTINCT col1 * CAST ( 6 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
102
186
354

query I rowsort
SELECT col0 + - ( + col1 ) FROM tab2 cor0
----
-24
19
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-7036
SELECT DISTINCT + col2 DIV 20 AS col0 FROM tab1 AS cor0
----
2
4

skipif mysql # not compatible
query I rowsort label-7036
SELECT DISTINCT + col2 / 20 AS col0 FROM tab1 AS cor0
----
2
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-7037
SELECT ALL col2 DIV - col1 + col0 FROM tab2 AS cor0
----
7
77
78

skipif mysql # not compatible
query I rowsort label-7037
SELECT ALL col2 / - col1 + col0 FROM tab2 AS cor0
----
7
77
78

query I rowsort
SELECT - + col1 * 83 AS col1 FROM tab1 AS cor0
----
-1079
-2158
-830

query I rowsort
SELECT - col1 * 87 AS col1 FROM tab2 cor0
----
-1479
-2697
-5133

query I rowsort
SELECT ( col0 ) + ( ( - col2 ) ) AS col0 FROM tab2
----
-20
41
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-7041
SELECT DISTINCT + ( col1 ) DIV - 32 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7041
SELECT DISTINCT + ( col1 ) / - 32 AS col2 FROM tab1
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-7042
SELECT DISTINCT tab2.col2 DIV col1 AS col2 FROM tab2
----
0
2

skipif mysql # not compatible
query I rowsort label-7042
SELECT DISTINCT tab2.col2 / col1 AS col2 FROM tab2
----
0
2

query I rowsort
SELECT + + ( + col1 ) * - 74 + col1 FROM tab0 AS cor0
----
-6278
-6643
-7081

onlyif mysql # use DIV operator for integer division
query I rowsort label-7044
SELECT - - col0 * col1 + - ( + col2 ) + + col2 DIV ( + 36 ) AS col2 FROM tab1 AS cor0
----
25
584
946

skipif mysql # not compatible
query I rowsort label-7044
SELECT - - col0 * col1 + - ( + col2 ) + + col2 / ( + 36 ) AS col2 FROM tab1 AS cor0
----
25
584
946

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7045
SELECT col0 + col2 * CAST( ( - col1 ) AS SIGNED ) * 40 AS col0 FROM tab0
----
-113496
-298391
-3845

skipif mysql # not compatible
query I rowsort label-7045
SELECT col0 + col2 * CAST ( ( - col1 ) AS INTEGER ) * 40 AS col0 FROM tab0
----
-113496
-298391
-3845

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7046
SELECT col1 * - col0 * col0 + 52 + col2 / - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7046
SELECT col1 * - col0 * col0 + 52 + col2 / - CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + col0 * 65 FROM tab2 AS cor0
----
-455
-5070
-5135

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7048
SELECT col0 * CAST( + col2 AS SIGNED ) * col0 FROM tab0 AS cor0
----
1225
19008
649522

skipif mysql # not compatible
query I rowsort label-7048
SELECT col0 * CAST ( + col2 AS INTEGER ) * col0 FROM tab0 AS cor0
----
1225
19008
649522

query I rowsort
SELECT - col0 * - ( 85 * - col0 ) FROM tab2 AS cor0
----
-4165
-517140
-530485

onlyif mysql # use DIV operator for integer division
query I rowsort label-7050
SELECT - - col1 DIV + ( + cor0.col0 ) FROM tab1 AS cor0
----
0
0
8

skipif mysql # not compatible
query I rowsort label-7050
SELECT - - col1 / + ( + cor0.col0 ) FROM tab1 AS cor0
----
0
0
8

query I rowsort
SELECT + col0 * col1 * + cor0.col1 FROM tab0 AS cor0
----
177504
329315
737009

query I rowsort
SELECT ALL - + col0 + - ( + cor0.col1 ) * + col1 FROM tab0 AS cor0
----
-7420
-8370
-9444

onlyif mysql # use DIV operator for integer division
query I rowsort label-7053
SELECT + col0 + + 84 DIV ( col1 + 55 * - col1 ) col1 FROM tab1 AS cor0
----
3
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7053
SELECT + col0 + + 84 / ( col1 + 55 * - col1 ) col1 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT ALL + - col0 + col0 AS col2 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - + col0 * + 81 FROM tab0 AS cor0
----
-1944
-2835
-7209

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col2 + 65 * col2 col0 FROM tab0 AS cor0
----
12054
3234
66

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7057
SELECT CAST( NULL AS DECIMAL ) - + cor0.col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7057
SELECT CAST ( NULL AS REAL ) - + cor0.col0 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + ( 58 ) * col2 - - 13 AS col0 FROM tab2 AS cor0
----
1521
1579
2217

query I rowsort
SELECT cor0.col0 * - col2 - col0 AS col1 FROM tab1 AS cor0
----
-165
-3712
-7760

query I rowsort
SELECT 42 + - 29 * col0 AS col0 FROM tab2 AS cor0
----
-161
-2220
-2249

query I rowsort
SELECT 62 - 86 * - col2 FROM tab1 AS cor0
----
4706
4964
8318

query I rowsort
SELECT - ( + cor0.col1 ) AS col2 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT - + col1 * col1 + col1 AS col0 FROM tab0 cor0
----
-7310
-8190
-9312

query I rowsort
SELECT col1 * col0 - - cor0.col1 FROM tab2 AS cor0
----
1360
248
4661

query I rowsort
SELECT + ( 42 ) FROM tab1, tab1 AS cor0 CROSS JOIN tab2
----
27 values hashing to 325aada2239b6fe1fe2d843515ae8c5e

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab1 AS cor0 CROSS JOIN tab0, tab0 cor1, tab0 AS cor2
----
3645 values hashing to 181d902c42955a43a374f13a73d8b0a1

query I rowsort
SELECT ALL + col2 * col0 - + 22 FROM tab1 AS cor0
----
140
3626
7658

query I rowsort
SELECT ALL - col0 * - col1 + - ( + col2 ) FROM tab2 AS cor0
----
1305
190
4576

query I rowsort
SELECT ALL - col1 + - col0 - - ( col2 ) * + col1 FROM tab2 cor0
----
1397
550
799

query I rowsort
SELECT DISTINCT 29 * col1 FROM tab1 AS cor0
----
290
377
754

query I rowsort
SELECT - - col2 - col0 AS col1 FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT - 91 FROM tab1 cor0
----
-91
-91
-91

query I rowsort
SELECT + ( - cor0.col2 ) + col0 * col2 FROM tab1 AS cor0
----
108
3591
7584

query I rowsort
SELECT DISTINCT + col1 * + cor0.col0 + - cor0.col1 * - 82 FROM tab0 AS cor0
----
11349
15561
9116

onlyif mysql # use DIV operator for integer division
query I rowsort label-7075
SELECT ( + 50 ) DIV col1 FROM tab1
----
1
3
5

skipif mysql # not compatible
query I rowsort label-7075
SELECT ( + 50 ) / col1 FROM tab1
----
1
3
5

query I rowsort
SELECT DISTINCT - 35 AS col0 FROM tab2 cor0
----
-35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + col0 col1 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT - + col0 - + col0 FROM tab2 AS cor0
----
-14
-156
-158

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( col1 ) * col1 - - col1 col2 FROM tab1 AS cor0
----
110
182
702

query I rowsort
SELECT ALL + col1 + - 98 * - ( col1 * col2 + + 68 ) FROM tab1 AS cor0
----
128981
144282
62534

query I rowsort
SELECT - 80 * col1 AS col1 FROM tab1 AS cor0
----
-1040
-2080
-800

query I rowsort
SELECT DISTINCT + - ( + col1 ) * - col1 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT - 87 * col1 * - cor0.col2 AS col0 FROM tab1 AS cor0
----
108576
122148
49590

query I rowsort
SELECT col1 * 55 * + col1 FROM tab2 AS cor0
----
15895
191455
52855

query I rowsort
SELECT ALL - col2 * - col0 AS col0 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT - 9 * col1 + - col1 * - 49 AS col1 FROM tab0
----
3440
3640
3880

onlyif mysql # use DIV operator for integer division
query I rowsort label-7087
SELECT 95 * 77 + col1 DIV + col0 FROM tab0
----
7316
7317
7318

skipif mysql # not compatible
query I rowsort label-7087
SELECT 95 * 77 + col1 / + col0 FROM tab0
----
7316
7317
7318

query I rowsort
SELECT col1 * - ( - col2 ) * col0 FROM tab2
----
119652
51034
5859

query I rowsort
SELECT DISTINCT col0 + - tab1.col1 * - 10 FROM tab1
----
164
210
263

query I rowsort
SELECT + col0 * col0 + - 7 + - col2 AS col2 FROM tab2 AS cor0
----
15
6051
6196

onlyif mysql # use DIV operator for integer division
query I rowsort label-7091
SELECT + col1 DIV + cor0.col1 - col1 AS col0 FROM tab1 cor0
----
-12
-25
-9

skipif mysql # not compatible
query I rowsort label-7091
SELECT + col1 / + cor0.col1 - col1 AS col0 FROM tab1 cor0
----
-12
-25
-9

query I rowsort
SELECT DISTINCT col1 * 95 AS col2 FROM tab0 AS cor0
----
8170
8645
9215

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7093
SELECT ALL + col2 * CAST( NULL AS SIGNED ) * col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7093
SELECT ALL + col2 * CAST ( NULL AS INTEGER ) * col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-7094
SELECT col2 + - col0 DIV 29 FROM tab2 AS cor0
----
24
27
36

skipif mysql # not compatible
query I rowsort label-7094
SELECT col2 + - col0 / 29 FROM tab2 AS cor0
----
24
27
36

query I rowsort
SELECT ALL - - col2 + + 67 FROM tab0 AS cor0
----
100
149
68

query I rowsort
SELECT + col1 * ( - 36 + + col1 ) * ( 95 ) FROM tab0
----
408500
475475
562115

query I rowsort
SELECT - cor0.col2 - col0 FROM tab1 cor0
----
-121
-176
-57

query I rowsort
SELECT ALL col1 + ( + col1 ) * + col0 AS col0 FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT DISTINCT + cor0.col2 * col0 + + col1 AS col2 FROM tab2 AS cor0
----
2087
220
3019

onlyif mysql # use DIV operator for integer division
query I rowsort label-7100
SELECT + ( col2 ) DIV col1 + - col2 + col0 FROM tab0 cor0
----
-9
34
7

skipif mysql # not compatible
query I rowsort label-7100
SELECT + ( col2 ) / col1 + - col2 + col0 FROM tab0 cor0
----
-9
34
7

query I rowsort
SELECT DISTINCT ( - col2 ) * + col1 + cor0.col0 AS col0 FROM tab0 AS cor0
----
-2814
-62
-7373

query I rowsort
SELECT ALL + 95 AS col0 FROM tab0 AS cor0
----
95
95
95

query I rowsort
SELECT ALL col1 * + col2 * col1 FROM tab0 AS cor0
----
244068
679042
9409

query I rowsort
SELECT - + col1 * col2 + cor0.col1 AS col2 FROM tab2 AS cor0
----
-1475
-629
-806

query I rowsort
SELECT ALL + cor0.col0 + col0 * + 70 FROM tab0 AS cor0
----
1704
2485
6319

query I rowsort
SELECT - 21 + col2 FROM tab1 cor0
----
33
36
75

query I rowsort
SELECT DISTINCT 6 + - col2 AS col0 FROM tab0 AS cor0
----
-27
-76
5

query I rowsort
SELECT DISTINCT col0 + + col1 * + tab1.col2 FROM tab1
----
1328
1407
634

query I rowsort
SELECT - col0 + - col1 - col2 * + col1 FROM tab0
----
-229
-2948
-7642

onlyif mysql # use DIV operator for integer division
query I rowsort label-7110
SELECT col2 DIV + col2 AS col1 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7110
SELECT col2 / + col2 AS col1 FROM tab0
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-7111
SELECT DISTINCT - col1 DIV - cor0.col0 + col1 AS col0 FROM tab2 cor0
----
17
35
59

skipif mysql # not compatible
query I rowsort label-7111
SELECT DISTINCT - col1 / - cor0.col0 + col1 AS col0 FROM tab2 cor0
----
17
35
59

query I rowsort
SELECT ALL 61 FROM tab0, tab0 AS cor0, tab1 cor1
----
27 values hashing to 8d4dfe649433a599fc4b10830cc7ce55

query I rowsort
SELECT ALL 70 AS col2 FROM tab1 AS cor0
----
70
70
70

query I rowsort
SELECT - col2 - col0 * - 41 * col0 FROM tab2
----
1982
249418
255843

query I rowsort
SELECT DISTINCT col2 * 40 AS col0 FROM tab2 AS cor0
----
1040
1080
1520

query I rowsort
SELECT ALL col2 * - col2 + col0 AS col2 FROM tab2 AS cor0
----
-1365
-598
-722

query I rowsort
SELECT DISTINCT col1 * + col0 * - ( + col0 ) FROM tab0 cor0
----
-118825
-49536
-720811

query I rowsort
SELECT 70 AS col1 FROM tab1
----
70
70
70

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7119
SELECT + 68 + col1 * CAST( NULL AS SIGNED ) * + col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7119
SELECT + 68 + col1 * CAST ( NULL AS INTEGER ) * + col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 39 FROM tab2, tab1, tab0 cor0
----
27 values hashing to a08a82dc9276c0173448e9a1c89dba93

query I rowsort
SELECT DISTINCT - 42 AS col1 FROM tab2, tab2 cor0, tab1 AS cor1
----
-42

query I rowsort
SELECT col1 * + 26 FROM tab1 cor0
----
260
338
676

query I rowsort
SELECT + cor0.col1 * - 13 AS col1 FROM tab1 AS cor0
----
-130
-169
-338

query I rowsort
SELECT DISTINCT tab0.col0 * + ( + tab0.col0 ) AS col1 FROM tab0
----
1225
576
7921

query I rowsort
SELECT DISTINCT ( 71 ) - tab1.col1 FROM tab1, tab2 AS cor0
----
45
58
61

query I rowsort
SELECT 76 FROM tab0, tab0 AS cor0
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5

query I rowsort
SELECT ALL - - col0 * col1 AS col2 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT + col0 * + ( col0 ) FROM tab1
----
4096
6400
9

query I rowsort
SELECT - cor0.col2 + + tab0.col2 FROM tab0, tab2 AS cor0
----
9 values hashing to f5a900b2f94b2c0349974e7b95e705a8

query I rowsort
SELECT 74 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to dc22979e6d261795bd3ce2990fdbbf82

query I rowsort
SELECT - - col1 + - col0 AS col1 FROM tab0 AS cor0
----
2
62
62

query I rowsort
SELECT col1 * + ( col1 + + ( + col1 ) ) * - tab0.col2 FROM tab0
----
-1358084
-18818
-488136

query I rowsort
SELECT ALL - cor0.col1 * - col0 + ( col2 ) * col2 FROM tab0 AS cor0
----
14823
3153
3396

query I rowsort
SELECT col1 + col1 + - 37 AS col1 FROM tab1 AS cor0
----
-11
-17
15

query I rowsort
SELECT - + 16 + col2 * + ( - 60 ) FROM tab0 AS cor0
----
-1996
-4936
-76

query I rowsort
SELECT + 40 FROM tab1 cor0
----
40
40
40

query I rowsort
SELECT + col2 * col0 + 4 AS col2 FROM tab0 cor0
----
39
7302
796

query I rowsort
SELECT DISTINCT + - 55 + + col1 FROM tab1 AS cor0
----
-29
-42
-45

query I rowsort
SELECT col0 * - col1 + cor0.col0 * cor0.col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - cor0.col1 * col1 + + col1 AS col2 FROM tab1 AS cor0
----
-156
-650
-90

onlyif mysql # use DIV operator for integer division
query I rowsort label-7141
SELECT + - col1 + + col2 DIV col1 AS col1 FROM tab1 AS cor0
----
-24
-5
-6

skipif mysql # not compatible
query I rowsort label-7141
SELECT + - col1 + + col2 / col1 AS col1 FROM tab1 AS cor0
----
-24
-5
-6

query I rowsort
SELECT DISTINCT + col2 - + col0 * + ( - col0 ) FROM tab2 AS cor0
----
6110
6279
76

query I rowsort
SELECT - cor0.col0 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8

query I rowsort
SELECT DISTINCT - col1 * ( + col1 ) * + col0 AS col2 FROM tab1
----
-13520
-2028
-6400

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7145
SELECT ALL + CAST( NULL AS SIGNED ) AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-7145
SELECT ALL + CAST ( NULL AS INTEGER ) AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7146
SELECT DISTINCT 94 + ( cor0.col1 ) * CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7146
SELECT DISTINCT 94 + ( cor0.col1 ) * CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - + 53 * + 89 * + cor0.col0 FROM tab1 AS cor0
----
-14151
-301888
-377360

onlyif mysql # use DIV operator for integer division
query I rowsort label-7148
SELECT - col2 DIV 88 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7148
SELECT - col2 / 88 FROM tab2
----
0
0
0

query I rowsort
SELECT + 38 - col1 * col1 AS col1 FROM tab0
----
-7358
-8243
-9371

query I rowsort
SELECT - ( + cor0.col2 ) * + col1 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT - 23 * + col1 + + col1 * + col1 FROM tab0 AS cor0
----
5418
6188
7178

query I rowsort
SELECT col0 * + 1 * col1 AS col0 FROM tab1 cor0
----
1040
640
78

query I rowsort
SELECT + + col0 * col1 + - col1 FROM tab1 AS cor0
----
1027
52
630

onlyif mysql # use DIV operator for integer division
query I rowsort label-7154
SELECT + col1 * 28 + col0 DIV + 28 AS col1 FROM tab2 AS cor0
----
1654
478
868

skipif mysql # not compatible
query I rowsort label-7154
SELECT + col1 * 28 + col0 / + 28 AS col1 FROM tab2 AS cor0
----
1654
478
868

query I rowsort
SELECT ( cor0.col0 ) * - 7 FROM tab2 cor0
----
-49
-546
-553

query I rowsort
SELECT - col0 * + cor0.col1 * col1 FROM tab0 AS cor0
----
-177504
-329315
-737009

query I rowsort
SELECT + col0 * ( + col1 ) + col1 FROM tab0 cor0
----
2150
3492
8190

query I rowsort
SELECT - + col2 * - col2 - col1 FROM tab2 AS cor0
----
1427
617
698

query I rowsort
SELECT + - cor0.col0 * + 58 AS col2 FROM tab0 AS cor0
----
-1392
-2030
-5162

query I rowsort
SELECT DISTINCT + col0 * + 27 + col1 * - col0 FROM tab1 AS cor0
----
1088
1120
3

query I rowsort
SELECT DISTINCT - col0 + - cor0.col0 * 99 FROM tab2 AS cor0
----
-700
-7800
-7900

query I rowsort
SELECT ALL col2 * - 99 + col1 FROM tab0 AS cor0
----
-2
-3181
-8027

query I rowsort
SELECT DISTINCT - cor0.col0 * 65 + col2 FROM tab1 AS cor0
----
-141
-4103
-5104

query I rowsort
SELECT ALL col2 + - 96 - - col1 * - col1 FROM tab1 AS cor0
----
-139
-169
-718

onlyif mysql # use DIV operator for integer division
query I rowsort label-7165
SELECT DISTINCT - + col1 DIV 31 AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7165
SELECT DISTINCT - + col1 / 31 AS col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT + col1 + + col1 * + 0 AS col0 FROM tab1 AS cor0
----
10
13
26

onlyif mysql # use DIV operator for integer division
query I rowsort label-7167
SELECT DISTINCT - col0 DIV + 89 + col1 AS col1 FROM tab1 AS cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-7167
SELECT DISTINCT - col0 / + 89 + col1 AS col1 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT DISTINCT cor0.col0 * ( 87 * - col2 ) + + 89 + + col2 FROM tab0 AS cor0
----
-2955
-634755
-68782

query I rowsort
SELECT + + 17 + ( - col0 ) AS col2 FROM tab1 AS cor0
----
-47
-63
14

onlyif mysql # use DIV operator for integer division
query I rowsort label-7170
SELECT DISTINCT + col2 DIV - cor0.col2 + col2 FROM tab0 AS cor0
----
0
32
81

skipif mysql # not compatible
query I rowsort label-7170
SELECT DISTINCT + col2 / - cor0.col2 + col2 FROM tab0 AS cor0
----
0
32
81

query I rowsort
SELECT DISTINCT - - col1 * 66 * col1 - 5 AS col0 FROM tab2 cor0
----
19069
229741
63421

query I rowsort
SELECT DISTINCT + 67 + - col0 * col0 AS col2 FROM tab1 AS cor0
----
-4029
-6333
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + cor0.col1 * cor0.col0 col2 FROM tab2 AS cor0
----
1381
244
4628

query I rowsort
SELECT col2 * col1 - col1 AS col0 FROM tab2 AS cor0
----
1475
629
806

query I rowsort
SELECT ALL + 65 + + col1 * + col0 AS col1 FROM tab1 AS cor0
----
1105
143
705

query I rowsort
SELECT DISTINCT - col0 * 89 FROM tab1 AS cor0
----
-267
-5696
-7120

query I rowsort
SELECT DISTINCT - 19 * - 89 AS col2 FROM tab2, tab1 cor0, tab1 AS cor1
----
1691

query I rowsort
SELECT ALL - + cor0.col0 * cor0.col2 + col1 FROM tab2 AS cor0
----
-158
-1969
-2985

query I rowsort
SELECT ALL - col0 + ( + 68 ) FROM tab0 cor0
----
-21
33
44

query I rowsort
SELECT DISTINCT + cor0.col1 AS col0 FROM tab1, tab0 cor0
----
86
91
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-7181
SELECT ALL - 16 DIV - 12 AS col0 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7181
SELECT ALL - 16 / - 12 AS col0 FROM tab0
----
1
1
1

query I rowsort
SELECT + col0 * ( col0 ) AS col0 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT ALL col1 * - 68 FROM tab2 AS cor0
----
-1156
-2108
-4012

query I rowsort
SELECT DISTINCT + 12 AS col0 FROM tab2 AS cor0
----
12

query I rowsort
SELECT + - 48 * col2 + col0 FROM tab0 AS cor0
----
-13
-1560
-3847

query I rowsort
SELECT 47 * + col0 + - 5 FROM tab2 AS cor0
----
324
3661
3708

query I rowsort
SELECT ALL - cor0.col2 + col0 * - ( - 7 ) FROM tab0 AS cor0
----
135
244
541

onlyif mysql # use DIV operator for integer division
query I rowsort label-7188
SELECT ALL + tab0.col2 DIV - col1 + - col1 FROM tab0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-7188
SELECT ALL + tab0.col2 / - col1 + - col1 FROM tab0
----
-86
-91
-97

query I rowsort
SELECT ALL - ( col2 ) + + 30 AS col1 FROM tab0
----
-3
-52
29

query I rowsort
SELECT DISTINCT - 60 + 9 - + cor0.col1 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
-61
-64
-77

query I rowsort
SELECT ALL - col0 + + tab1.col1 AS col0 FROM tab1
----
-54
-67
23

query I rowsort
SELECT ALL 2 * - col2 AS col0 FROM tab1 AS cor0
----
-108
-114
-192

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + col2 col2 FROM tab2
----
52
54
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 96 col0 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to f1d978c2d5bfc6f26e0907ac777be83e

query I rowsort
SELECT ALL col2 + - 21 FROM tab0 AS cor0
----
-20
12
61

query I rowsort
SELECT DISTINCT - col2 + 72 FROM tab2 AS cor0
----
34
45
46

query I rowsort
SELECT DISTINCT col0 * ( col2 ) FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT col2 + col2 * cor0.col0 AS col2 FROM tab1 cor0
----
216
3705
7776

query I rowsort
SELECT DISTINCT 61 AS col2 FROM tab0, tab1 AS cor0
----
61

query I rowsort
SELECT DISTINCT col0 * 95 + col0 + - col2 AS col1 FROM tab0 AS cor0
----
2271
3359
8462

query I rowsort
SELECT DISTINCT - col1 * - col2 - - col0 AS col0 FROM tab1 AS cor0
----
1328
1407
634

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + - col0 col0 FROM tab0 AS cor0
----
2
62
62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7203
SELECT ALL col1 * ( - col0 + col1 ) * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7203
SELECT ALL col1 * ( - col0 + col1 ) * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 68 * col0 FROM tab1 AS cor0
----
-204
-4352
-5440

query I rowsort
SELECT ALL + col2 * 97 + col1 + - ( 91 ) FROM tab2 cor0
----
2490
2559
3612

query I rowsort
SELECT ALL - + col0 * cor0.col1 + - col2 AS col1 FROM tab2 AS cor0
----
-1381
-244
-4628

query I rowsort
SELECT + + 22 * - cor0.col0 FROM tab2 AS cor0
----
-154
-1716
-1738

query I rowsort
SELECT DISTINCT + + 42 * - col2 + - col1 FROM tab2 AS cor0
----
-1151
-1165
-1613

query I rowsort
SELECT DISTINCT - + cor0.col0 + col1 AS col0 FROM tab1 AS cor0
----
-54
-67
23

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7210
SELECT DISTINCT + ( + col2 ) + col2 * CAST( col1 + + col0 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
1053
3588
3686

skipif mysql # not compatible
query I rowsort label-7210
SELECT DISTINCT + ( + col2 ) + col2 * CAST ( col1 + + col0 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
1053
3588
3686

onlyif mysql # use DIV operator for integer division
query I rowsort label-7211
SELECT 88 DIV - col0 FROM tab0 AS cor0
----
-2
-3
0

skipif mysql # not compatible
query I rowsort label-7211
SELECT 88 / - col0 FROM tab0 AS cor0
----
-2
-3
0

query I rowsort
SELECT ALL 72 + + ( col1 ) * - 46 FROM tab0 AS cor0
----
-3884
-4114
-4390

query I rowsort
SELECT DISTINCT + 65 * + col2 FROM tab0 AS cor0
----
2145
5330
65

onlyif mysql # use DIV operator for integer division
query I rowsort label-7214
SELECT cor0.col1 + col2 DIV col2 AS col0 FROM tab0 AS cor0
----
87
92
98

skipif mysql # not compatible
query I rowsort label-7214
SELECT cor0.col1 + col2 / col2 AS col0 FROM tab0 AS cor0
----
87
92
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7215
SELECT - + CAST( col0 AS SIGNED ) * + col2 FROM tab2 cor0
----
-189
-2028
-3002

skipif mysql # not compatible
query I rowsort label-7215
SELECT - + CAST ( col0 AS INTEGER ) * + col2 FROM tab2 cor0
----
-189
-2028
-3002

query I rowsort
SELECT + col1 + + 79 FROM tab1
----
105
89
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 75 * col0 + - col0 - - ( col0 ) col2 FROM tab2 cor0
----
-525
-5850
-5925

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 62 col0 FROM tab2, tab1, tab0 AS cor0, tab1 AS cor1
----
81 values hashing to 0bc652564a158b9c0f7952026f90b60a

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 * + col1 - col0 col1 FROM tab2 cor0
----
-3559
-368
-968

onlyif mysql # use DIV operator for integer division
query I rowsort label-7220
SELECT 87 DIV col0 + col2 FROM tab1 cor0
----
58
83
97

skipif mysql # not compatible
query I rowsort label-7220
SELECT 87 / col0 + col2 FROM tab1 cor0
----
58
83
97

skipif mysql # not compatible
query I rowsort
SELECT - CAST ( cor0.col1 AS REAL ) AS col2 FROM tab0 cor0
----
-86
-91
-97

query I rowsort
SELECT - ( - 3 ) AS col1 FROM tab0 AS cor0
----
3
3
3

query I rowsort
SELECT 62 + + col1 AS col0 FROM tab1
----
72
75
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 13 * col1 col2 FROM tab0
----
1118
1183
1261

query I rowsort
SELECT 79 + - ( tab2.col2 ) * col2 AS col1 FROM tab2
----
-1365
-597
-650

onlyif mysql # use DIV operator for integer division
query I rowsort label-7226
SELECT - col0 * + ( - col0 ) + col2 DIV col0 AS col0 FROM tab1 AS cor0
----
27
4096
6401

skipif mysql # not compatible
query I rowsort label-7226
SELECT - col0 * + ( - col0 ) + col2 / col0 AS col0 FROM tab1 AS cor0
----
27
4096
6401

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7227
SELECT - cor0.col1 * + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7227
SELECT - cor0.col1 * + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-7228
SELECT col2 DIV cor0.col0 + 43 FROM tab2 AS cor0
----
43
43
46

skipif mysql # not compatible
query I rowsort label-7228
SELECT col2 / cor0.col0 + 43 FROM tab2 AS cor0
----
43
43
46

query I rowsort
SELECT - + col0 * 28 * - 26 + - col2 FROM tab2 AS cor0
----
5069
56758
57474

query I rowsort
SELECT DISTINCT - col0 - 90 FROM tab0 cor0
----
-114
-125
-179

query I rowsort
SELECT DISTINCT + col1 + + 74 AS col1 FROM tab1 AS cor0
----
100
84
87

query I rowsort
SELECT - + col2 * ( col2 ) + - cor0.col2 FROM tab1 cor0
----
-2970
-3306
-9312

onlyif mysql # use DIV operator for integer division
query I rowsort label-7233
SELECT col0 DIV - col2 + + col2 AS col2 FROM tab1
----
54
56
96

skipif mysql # not compatible
query I rowsort label-7233
SELECT col0 / - col2 + + col2 AS col2 FROM tab1
----
54
56
96

query I rowsort
SELECT DISTINCT 79 * col0 + - col1 AS col0 FROM tab0
----
1810
2668
6940

query I rowsort
SELECT DISTINCT + col1 + col1 * tab0.col0 AS col0 FROM tab0
----
2150
3492
8190

query I rowsort
SELECT + col2 + + 87 AS col1 FROM tab1
----
141
144
183

query I rowsort
SELECT DISTINCT - col1 * 73 AS col1 FROM tab2
----
-1241
-2263
-4307

query I rowsort
SELECT + ( 58 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2, tab2 AS cor1
----
27 values hashing to 9ee363c6ac19cfdb8a50c7dfd5cc2b8a

query I rowsort
SELECT ALL + - col0 + - ( col1 ) AS col1 FROM tab0 AS cor0
----
-110
-132
-180

query I rowsort
SELECT ALL col0 + + col1 + 81 FROM tab1 AS cor0
----
110
155
174

onlyif mysql # use DIV operator for integer division
query I rowsort label-7241
SELECT ALL + col0 * cor0.col1 + ( col1 ) DIV - col2 FROM tab0 AS cor0
----
2062
3298
8098

skipif mysql # not compatible
query I rowsort label-7241
SELECT ALL + col0 * cor0.col1 + ( col1 ) / - col2 FROM tab0 AS cor0
----
2062
3298
8098

query I rowsort
SELECT tab2.col2 * + col1 AS col0 FROM tab2
----
1534
646
837

query I rowsort
SELECT 96 + + tab2.col0 FROM tab2
----
103
174
175

query I rowsort
SELECT 21 FROM tab0, tab0 AS cor0 CROSS JOIN tab2
----
27 values hashing to 312c166f4dc412730c43555105b1f44b

query I rowsort
SELECT DISTINCT + col2 * col0 * ( + 78 * col0 ) - 12 FROM tab0 AS cor0
----
1482612
50662704
95538

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 63 col2 FROM tab2 cor0
----
63
63
63

onlyif mysql # use DIV operator for integer division
query I rowsort label-7247
SELECT DISTINCT col0 DIV - col0 AS col2 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7247
SELECT DISTINCT col0 / - col0 AS col2 FROM tab2 AS cor0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + ( col0 ) col1 FROM tab0 AS cor0
----
178
48
70

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7249
SELECT CAST( NULL AS SIGNED ) AS col1 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-7249
SELECT CAST ( NULL AS INTEGER ) AS col1 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

onlyif mysql # use DIV operator for integer division
query I rowsort label-7250
SELECT 66 DIV col0 AS col2 FROM tab2
----
0
0
9

skipif mysql # not compatible
query I rowsort label-7250
SELECT 66 / col0 AS col2 FROM tab2
----
0
0
9

query I rowsort
SELECT + col1 * + 49 + col0 + + cor0.col1 * 49 * 91 FROM tab0 cor0
----
387712
410317
437311

query I rowsort
SELECT ALL + col1 + - 51 * + ( + col0 ) FROM tab0 AS cor0
----
-1138
-1688
-4448

query I rowsort
SELECT ALL + - col1 + + col2 + col0 AS col0 FROM tab1 AS cor0
----
111
163
31

query I rowsort
SELECT DISTINCT col2 * + ( - 85 ) AS col1 FROM tab1 cor0
----
-4590
-4845
-8160

query I rowsort
SELECT ALL + col0 + + col0 * col1 FROM tab0 AS cor0
----
2088
3430
8188

onlyif mysql # use DIV operator for integer division
query I rowsort label-7256
SELECT 6 DIV - col1 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7256
SELECT 6 / - col1 AS col2 FROM tab0
----
0
0
0

query I rowsort
SELECT + col1 + col1 + col1 FROM tab0
----
258
273
291

query I rowsort
SELECT DISTINCT - 56 + + cor1.col0 FROM tab1, tab1 cor0, tab2 AS cor1
----
-49
22
23

query I rowsort
SELECT ALL - col0 * ( col0 ) AS col0 FROM tab2 AS cor0
----
-49
-6084
-6241

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7260
SELECT DISTINCT - col2 * + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7260
SELECT DISTINCT - col2 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL

query I rowsort
SELECT + 81 * col2 FROM tab0 AS cor0
----
2673
6642
81

query I rowsort
SELECT - ( - col0 ) + cor0.col0 * col1 * - 68 AS col0 FROM tab1 AS cor0
----
-43456
-5301
-70640

query I rowsort
SELECT - + col2 * 73 FROM tab0 AS cor0
----
-2409
-5986
-73

query I rowsort
SELECT col0 * ( tab2.col1 ) AS col1 FROM tab2
----
1343
217
4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 16 col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3

query I rowsort
SELECT + 44 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d

query I rowsort
SELECT - tab0.col0 * tab0.col0 + - col1 AS col0 FROM tab0
----
-1322
-662
-8012

query I rowsort
SELECT ALL 44 * + col1 * col0 AS col0 FROM tab0
----
149380
356356
90816

query I rowsort
SELECT DISTINCT 44 * + col0 FROM tab2 AS cor0
----
308
3432
3476

onlyif mysql # use DIV operator for integer division
query I rowsort label-7270
SELECT ALL col1 DIV 19 + tab1.col2 FROM tab1
----
55
57
96

skipif mysql # not compatible
query I rowsort label-7270
SELECT ALL col1 / 19 + tab1.col2 FROM tab1
----
55
57
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7271
SELECT CAST( NULL AS SIGNED ) + + tab0.col1 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7271
SELECT CAST ( NULL AS INTEGER ) + + tab0.col1 AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-7272
SELECT ALL + - 8 DIV col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7272
SELECT ALL + - 8 / col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - ( - col1 ) * cor0.col1 AS col1 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT ALL - col1 * + col1 + 60 + 81 FROM tab1 AS cor0
----
-28
-535
41

query I rowsort
SELECT DISTINCT 63 - - col1 * col0 AS col0 FROM tab1 AS cor0
----
1103
141
703

query I rowsort
SELECT DISTINCT - 70 * col0 + + cor0.col1 AS col1 FROM tab2 AS cor0
----
-459
-5401
-5513

onlyif mysql # use DIV operator for integer division
query I rowsort label-7277
SELECT ALL - + cor0.col0 * cor0.col1 DIV col1 FROM tab2 cor0
----
-7
-78
-79

skipif mysql # not compatible
query I rowsort label-7277
SELECT ALL - + cor0.col0 * cor0.col1 / col1 FROM tab2 cor0
----
-7
-78
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 38 col2 FROM tab1 AS cor0
----
-38
-38
-38

query I rowsort
SELECT ALL - 96 * - cor0.col1 AS col2 FROM tab2 AS cor0
----
1632
2976
5664

query I rowsort
SELECT ALL + - col1 * col2 - ( + col2 ) * cor0.col1 * + col0 FROM tab2 AS cor0
----
-121186
-51680
-6696

query I rowsort
SELECT ALL - cor0.col1 + cor0.col2 + + cor0.col0 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 37fd98623d22b03f7217005669e55ee4

query I rowsort
SELECT DISTINCT - - col2 * 78 * col2 AS col1 FROM tab1 AS cor0
----
227448
253422
718848

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + ( + cor0.col1 ) col0 FROM tab2 AS cor0
----
137
38
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7284
SELECT + + col1 + CAST( NULL AS SIGNED ) + ( + col1 ) * + cor0.col2 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7284
SELECT + + col1 + CAST ( NULL AS INTEGER ) + ( + col1 ) * + cor0.col2 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 + col1 + + col0 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT ALL + col1 * - 66 + col2 * col2 FROM tab0 AS cor0
----
-4587
-6401
718

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7287
SELECT DISTINCT + cor0.col2 + 40 * 57 + col0 * - CAST( NULL AS SIGNED ) * - col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7287
SELECT DISTINCT + cor0.col2 + 40 * 57 + col0 * - CAST ( NULL AS INTEGER ) * - col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - col2 * - col2 + + col1 AS col0 FROM tab0 AS cor0
----
1175
6815
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 + 12 - 72 col2 FROM tab0 AS cor0
----
-149
-84
-95

onlyif mysql # use DIV operator for integer division
query I rowsort label-7290
SELECT - cor0.col1 + 14 DIV col0 AS col1 FROM tab1 AS cor0
----
-10
-13
-22

skipif mysql # not compatible
query I rowsort label-7290
SELECT - cor0.col1 + 14 / col0 AS col1 FROM tab1 AS cor0
----
-10
-13
-22

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7291
SELECT ALL - + CAST( cor0.col1 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-7291
SELECT ALL - + CAST ( cor0.col1 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-10
-13
-26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7292
SELECT + CAST( NULL AS SIGNED ) / col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7292
SELECT + CAST ( NULL AS INTEGER ) / col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 33 * - col2 AS col0 FROM tab0 AS cor0
----
-1089
-2706
-33

query I rowsort
SELECT - 16 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to be22ac76b42c6f7212ecc0ba7c89eb34

query I rowsort
SELECT + + ( - col1 ) + + col2 AS col2 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT DISTINCT - 68 * 43 + + col1 + + ( + col2 ) FROM tab0 AS cor0
----
-2751
-2805
-2826

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7297
SELECT + CAST( + col1 AS SIGNED ) * + col2 FROM tab2 AS cor0
----
1534
646
837

skipif mysql # not compatible
query I rowsort label-7297
SELECT + CAST ( + col1 AS INTEGER ) * + col2 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT ALL ( + 97 ) FROM tab0, tab2 AS cor0, tab1 cor1, tab0 AS cor2
----
81 values hashing to f1d3319b9491f64621f2dbb0808458ca

onlyif mysql # use DIV operator for integer division
query I rowsort label-7299
SELECT DISTINCT + col0 + 34 DIV + col1 AS col2 FROM tab1 AS cor0
----
4
67
82

skipif mysql # not compatible
query I rowsort label-7299
SELECT DISTINCT + col0 + 34 / + col1 AS col2 FROM tab1 AS cor0
----
4
67
82

query I rowsort
SELECT ALL col1 + + 77 AS col0 FROM tab2 AS cor0
----
108
136
94

query I rowsort
SELECT ALL - + col1 + ( col0 + - col1 ) AS col2 FROM tab2 AS cor0
----
-40
-55
45

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT col2 * + CAST ( - col1 AS REAL ) / col1 - col0 AS col1 FROM tab2 cor0
----
-104
-117
-34

onlyif mysql # use DIV operator for integer division
query I rowsort label-7303
SELECT ALL - + col0 DIV col0 + 78 * + col2 FROM tab0 AS cor0
----
2573
6395
77

skipif mysql # not compatible
query I rowsort label-7303
SELECT ALL - + col0 / col0 + 78 * + col2 FROM tab0 AS cor0
----
2573
6395
77

query I rowsort
SELECT + col2 * + 11 + + col0 * + col1 AS col0 FROM tab2 AS cor0
----
1761
4888
514

query I rowsort
SELECT DISTINCT - - col2 * cor0.col1 AS col1 FROM tab2 AS cor0
----
1534
646
837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + ( + ( col0 ) ) col2 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT DISTINCT - col2 + col1 + cor0.col2 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT DISTINCT - cor0.col2 * 23 FROM tab0 AS cor0
----
-1886
-23
-759

onlyif mysql # use DIV operator for integer division
query I rowsort label-7309
SELECT ALL - ( tab2.col1 ) DIV col1 + - col0 * - col2 FROM tab2
----
188
2027
3001

skipif mysql # not compatible
query I rowsort label-7309
SELECT ALL - ( tab2.col1 ) / col1 + - col0 * - col2 FROM tab2
----
188
2027
3001

query I rowsort
SELECT ALL 47 + - col0 * col1 AS col1 FROM tab1
----
-31
-593
-993

query I rowsort
SELECT ALL + 68 * 71 + - col0 AS col1 FROM tab1
----
4748
4764
4825

query I rowsort
SELECT DISTINCT 45 - - cor0.col2 FROM tab2 cor0
----
71
72
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - cor0.col1 - 49 col0 FROM tab1 AS cor0
----
-1089
-127
-689

query I rowsort
SELECT ALL 61 + col2 AS col0 FROM tab2
----
87
88
99

query I rowsort
SELECT DISTINCT 79 + + tab0.col2 FROM tab0
----
112
161
80

query I rowsort
SELECT DISTINCT 16 * - col0 * ( col1 ) AS col1 FROM tab1
----
-10240
-1248
-16640

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 67 col0 FROM tab2
----
67
67
67

query I rowsort
SELECT - 85 * + col2 FROM tab1
----
-4590
-4845
-8160

onlyif mysql # use DIV operator for integer division
query I rowsort label-7319
SELECT DISTINCT 30 + col2 + 51 DIV + cor0.col2 FROM tab1 AS cor0
----
126
84
87

skipif mysql # not compatible
query I rowsort label-7319
SELECT DISTINCT 30 + col2 + 51 / + cor0.col2 FROM tab1 AS cor0
----
126
84
87

query I rowsort
SELECT ALL + + ( + cor0.col1 ) * ( - 27 ) + col1 * + col1 FROM tab2 AS cor0
----
-170
124
1888

query I rowsort
SELECT ALL + + 95 * col2 - + cor0.col1 AS col2 FROM tab0 AS cor0
----
-2
3049
7699

query I rowsort
SELECT DISTINCT 33 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 12 col2 FROM tab2 AS cor0
----
12
12
12

query I rowsort
SELECT ALL - cor0.col1 * col0 - col1 FROM tab0 AS cor0
----
-2150
-3492
-8190

query I rowsort
SELECT - 99 + col2 FROM tab2 AS cor0
----
-61
-72
-73

query I rowsort
SELECT ALL - tab1.col2 * col0 AS col1 FROM tab1
----
-162
-3648
-7680

query I rowsort
SELECT 32 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d30a2acbf33c88274474306936d3227b

query I rowsort
SELECT + 78 * + col1 * col2 FROM tab0 AS cor0
----
221364
582036
7566

query I rowsort
SELECT + 97 * - col1 + col2 + 0 FROM tab0 AS cor0
----
-8309
-8745
-9408

query I rowsort
SELECT 7 * - col0 + - col1 * col0 * - col0 + col1 AS col1 FROM tab1 AS cor0
----
239
40522
82653

query I rowsort
SELECT DISTINCT tab2.col0 * + col2 * - col0 FROM tab2
----
-1323
-158184
-237158

query I rowsort
SELECT - col1 * col1 + col2 + cor0.col1 FROM tab1 AS cor0
----
-33
-596
-60

query I rowsort
SELECT + + col0 + col0 + + col0 * + col2 * + 62 FROM tab2 AS cor0
----
11732
125892
186282

query I rowsort
SELECT ALL + ( cor0.col1 ) AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + col2 * 29 col2 FROM tab2
----
18734
24273
44486

query I rowsort
SELECT - col2 - + ( ( + col0 ) * + col2 ) AS col0 FROM tab2
----
-2054
-216
-3040

onlyif mysql # use DIV operator for integer division
query I rowsort label-7337
SELECT DISTINCT tab2.col1 DIV - col1 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-7337
SELECT DISTINCT tab2.col1 / - col1 FROM tab2
----
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-7338
SELECT + ( - col1 ) DIV - col1 AS col2 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7338
SELECT + ( - col1 ) / - col1 AS col2 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT + - col0 * col0 AS col2 FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT ALL + 25 * 34 * col1 AS col0 FROM tab1 cor0
----
11050
22100
8500

query I rowsort
SELECT DISTINCT col0 * 44 + col0 * + ( - col1 ) AS col0 FROM tab1 AS cor0
----
2176
2480
54

query I rowsort
SELECT - + ( 12 ) FROM tab2 AS cor0
----
-12
-12
-12

query I rowsort
SELECT + 91 * + col2 - 78 FROM tab0 AS cor0
----
13
2925
7384

query I rowsort
SELECT - col1 * col0 * - col0 + - col0 AS col1 FROM tab2 AS cor0
----
106018
1512
358878

onlyif mysql # use DIV operator for integer division
query I rowsort label-7345
SELECT col0 + - col2 DIV - col2 AS col2 FROM tab1 AS cor0
----
4
65
81

skipif mysql # not compatible
query I rowsort label-7345
SELECT col0 + - col2 / - col2 AS col2 FROM tab1 AS cor0
----
4
65
81

query I rowsort
SELECT - + 88 * col0 FROM tab1 AS cor0
----
-264
-5632
-7040

query I rowsort
SELECT col2 * + col0 * col0 FROM tab0 cor0
----
1225
19008
649522

query I rowsort
SELECT ALL - ( - cor0.col2 ) AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

query I rowsort
SELECT DISTINCT + col1 * + col2 + col2 FROM tab2
----
1560
684
864

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7350
SELECT DISTINCT CAST( NULL AS SIGNED ) / 70 AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7350
SELECT DISTINCT CAST ( NULL AS INTEGER ) / 70 AS col2 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT 88 AS col0 FROM tab2, tab1 AS cor0
----
88

query I rowsort
SELECT 96 * col1 AS col1 FROM tab0
----
8256
8736
9312

query I rowsort
SELECT 21 * - tab1.col1 * + tab1.col1 AS col0 FROM tab1
----
-14196
-2100
-3549

query I rowsort
SELECT ( 31 ) FROM tab0
----
31
31
31

query I rowsort
SELECT col1 + - col0 * - col1 * 4 AS col2 FROM tab1
----
2570
338
4173

query IIIIII rowsort
SELECT * FROM tab1, tab0 cor0 WHERE NULL = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 * col0 col1 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT - col2 FROM tab2 AS cor0 WHERE col2 >= NULL OR NOT col1 * + col2 * - col2 = col0
----
-26
-27
-38

onlyif mysql # use DIV operator for integer division
query I rowsort label-7359
SELECT ALL - col0 + col2 DIV - col1 FROM tab0 AS cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-7359
SELECT ALL - col0 + col2 / - col1 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT ALL - + col0 * col1 + col1 FROM tab1 cor0
----
-1027
-52
-630

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col0 NOT BETWEEN ( NULL ) AND col0 * col0 * col0 OR NULL >= ( NULL )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-7362
SELECT - cor0.col1 DIV - col1 FROM tab0 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7362
SELECT - cor0.col1 / - col1 FROM tab0 cor0
----
1
1
1

query I rowsort
SELECT DISTINCT - cor0.col1 + col0 * - col2 FROM tab1 cor0
----
-188
-3658
-7693

query I rowsort
SELECT DISTINCT tab1.col0 * tab1.col1 FROM tab1
----
1040
640
78

query I rowsort
SELECT ALL tab1.col2 * - col0 AS col1 FROM tab1
----
-162
-3648
-7680

query I rowsort
SELECT ALL col1 * + col2 + col2 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT DISTINCT col2 * + tab2.col1 AS col2 FROM tab2
----
1534
646
837

query I rowsort
SELECT - 55 + + col0 * - col0 AS col0 FROM tab2 AS cor0
----
-104
-6139
-6296

query I rowsort
SELECT - col0 * col0 + - col0 * col0 AS col2 FROM tab2 AS cor0
----
-12168
-12482
-98

query I rowsort
SELECT + cor0.col1 * - col1 + col1 AS col0 FROM tab2 AS cor0
----
-272
-3422
-930

query I rowsort
SELECT + + col2 * - col2 + + cor0.col1 AS col2 FROM tab2 AS cor0
----
-1427
-617
-698

query I rowsort
SELECT ALL + - col0 * - col1 + + col0 FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT + tab1.col1 * - col2 * col0 FROM tab1
----
-36480
-4212
-99840

onlyif mysql # use DIV operator for integer division
query I rowsort label-7374
SELECT ALL - col2 - tab0.col1 DIV - col2 FROM tab0
----
-31
-81
96

skipif mysql # not compatible
query I rowsort label-7374
SELECT ALL - col2 - tab0.col1 / - col2 FROM tab0
----
-31
-81
96

query I rowsort
SELECT tab1.col0 + - tab1.col2 FROM tab1
----
-16
-51
7

query I rowsort
SELECT col0 + - tab2.col2 FROM tab2 WHERE NOT col2 IN ( col0 )
----
-20
41
52

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - col0 + col0 ) IN ( col2 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * col1 col1 FROM tab1
----
-1248
-1404
-570

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) = ( col2 * + col1 )
----

query I rowsort
SELECT DISTINCT col1 FROM tab2 WHERE NOT - col2 NOT BETWEEN + col1 / col1 AND col1 * - col1
----

query I rowsort
SELECT - col0 - - col1 AS col0 FROM tab1
----
-54
-67
23

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) IN ( + col1 )
----

query I rowsort
SELECT - col1 FROM tab1 WHERE NOT NULL NOT IN ( col1 )
----

query I rowsort
SELECT DISTINCT + tab2.col1 + col2 * - tab2.col0 FROM tab2
----
-158
-1969
-2985

query I rowsort
SELECT + col0 * + col2 * - col0 + tab0.col0 + + col2 AS col0 FROM tab0
----
-1189
-18951
-649351

query I rowsort
SELECT tab2.col1 * + col1 + tab2.col0 AS col2 FROM tab2
----
3559
368
968

query I rowsort
SELECT + tab0.col0 + tab0.col2 * - col1 FROM tab0
----
-2814
-62
-7373

query I rowsort
SELECT DISTINCT + col0 * col1 AS col0 FROM tab2 WHERE NULL = + col2
----

query III rowsort
SELECT * FROM tab1 WHERE + tab1.col0 BETWEEN ( NULL ) AND col1
----

query I rowsort
SELECT DISTINCT col0 + - col0 * col0 FROM tab0
----
-1190
-552
-7832

query III rowsort
SELECT * FROM tab1 WHERE col1 IN ( col2 )
----

query I rowsort
SELECT col0 * tab1.col1 * - col1 + + col1 AS col1 FROM tab1
----
-13507
-2002
-6390

query III rowsort
SELECT * FROM tab1 WHERE - col1 * + col1 NOT BETWEEN col0 + col0 AND NULL
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

onlyif mysql # use DIV operator for integer division
query I rowsort label-7394
SELECT - col0 DIV col1 + tab1.col2 col1 FROM tab1
----
51
54
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7394
SELECT - col0 / col1 + tab1.col2 col1 FROM tab1
----
51
54
90

query I rowsort
SELECT ALL tab0.col2 * - col0 - col2 AS col0 FROM tab0
----
-36
-7380
-825

query I rowsort
SELECT + col1 * - cor0.col1 AS col2 FROM tab1 cor0
----
-100
-169
-676

onlyif mysql # use DIV operator for integer division
query I rowsort label-7397
SELECT - - col1 + col1 * col0 DIV - col1 AS col2 FROM tab0 AS cor0
----
2
62
62

skipif mysql # not compatible
query I rowsort label-7397
SELECT - - col1 + col1 * col0 / - col1 AS col2 FROM tab0 AS cor0
----
2
62
62

query I rowsort
SELECT + col1 * col2 + col1 FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT col2 * col2 + col0 * - col2 + + col0 AS col2 FROM tab1 AS cor0
----
-335
1616
2757

query I rowsort
SELECT col1 + + col1 * col2 + col0 FROM tab2
----
1671
742
875

query I rowsort
SELECT + col1 + - col1 + col2 FROM tab2
----
26
27
38

query I rowsort
SELECT ALL + cor0.col0 * + col2 FROM tab0 AS cor0
----
35
7298
792

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 * + cor0.col2 <> col0 * col0
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 + - col0 + + col0 col2 FROM tab0 AS cor0
----
86
91
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-7405
SELECT + col0 * col1 + col1 DIV col2 FROM tab1 cor0
----
1040
640
78

skipif mysql # not compatible
query I rowsort label-7405
SELECT + col0 * col1 + col1 / col2 FROM tab1 cor0
----
1040
640
78

query I rowsort
SELECT DISTINCT col1 * + 55 + cor0.col1 FROM tab1 AS cor0
----
1456
560
728

query I rowsort
SELECT ALL - cor0.col0 * - col0 + col1 * + col2 FROM tab0 AS cor0
----
1322
15383
3414

query I rowsort
SELECT - cor0.col0 + + 21 FROM tab2 AS cor0
----
-57
-58
14

query I rowsort
SELECT - + col2 * - col1 + cor0.col2 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT ALL - - col2 + + cor0.col2 AS col2 FROM tab1 cor0
----
108
114
192

query I rowsort
SELECT ALL + col0 + + col1 * + cor0.col2 * + col2 AS col0 FROM tab0 AS cor0
----
132
611973
93678

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + - CAST ( col2 AS REAL ) FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT ALL + - 36 * col2 + col0 FROM tab1 AS cor0
----
-1941
-1988
-3376

query I rowsort
SELECT ALL ( + col0 * - col2 ) AS col2 FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT - ( + 93 ) AS col1 FROM tab1 AS cor0
----
-93
-93
-93

query I rowsort
SELECT - - ( - col2 ) * + col1 - + 43 AS col1 FROM tab2 AS cor0
----
-1577
-689
-880

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7417
SELECT DISTINCT col2 * - cor0.col2 + + cor0.col0 - CAST( - col2 * - col1 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-14097
-3903
-63

skipif mysql # not compatible
query I rowsort label-7417
SELECT DISTINCT col2 * - cor0.col2 + + cor0.col0 - CAST ( - col2 * - col1 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-14097
-3903
-63

query I rowsort
SELECT + cor0.col2 + 81 FROM tab2 AS cor0
----
107
108
119

query I rowsort
SELECT DISTINCT + 92 * col2 FROM tab0 cor0
----
3036
7544
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col0 ) * - col1 col0 FROM tab1 cor0
----
-1040
-640
-78

query I rowsort
SELECT - + 90 + ( cor0.col1 ) FROM tab2 AS cor0
----
-31
-59
-73

query I rowsort
SELECT ALL - 93 + col0 AS col0 FROM tab1 AS cor0
----
-13
-29
-90

query I rowsort
SELECT - cor0.col0 + - col1 * 11 FROM tab0 AS cor0
----
-1090
-1102
-970

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7424
SELECT DISTINCT CAST( NULL AS SIGNED ) * col1 AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7424
SELECT DISTINCT CAST ( NULL AS INTEGER ) * col1 AS col2 FROM tab2
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-7425
SELECT DISTINCT + 92 DIV - col0 + col1 FROM tab2
----
16
18
58

skipif mysql # not compatible
query I rowsort label-7425
SELECT DISTINCT + 92 / - col0 + col1 FROM tab2
----
16
18
58

onlyif mysql # use DIV operator for integer division
query I rowsort label-7426
SELECT ALL + + col2 + cor0.col0 DIV - 79 col0 FROM tab2 AS cor0
----
26
27
37

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7426
SELECT ALL + + col2 + cor0.col0 / - 79 col0 FROM tab2 AS cor0
----
26
27
37

onlyif mysql # use DIV operator for integer division
query I rowsort label-7427
SELECT DISTINCT + col0 DIV - ( col1 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7427
SELECT DISTINCT + col0 / - ( col1 ) FROM tab0 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 38 col1 FROM tab0, tab2 AS cor0
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7

onlyif mysql # use DIV operator for integer division
query I rowsort label-7429
SELECT DISTINCT col2 DIV - col0 + 59 * col0 * ( col0 + col1 ) FROM tab2 AS cor0
----
15691
447456
630474

skipif mysql # not compatible
query I rowsort label-7429
SELECT DISTINCT col2 / - col0 + 59 * col0 * ( col0 + col1 ) FROM tab2 AS cor0
----
15691
447456
630474

query I rowsort
SELECT + col1 + 75 FROM tab1 cor0
----
101
85
88

query I rowsort
SELECT DISTINCT col0 + ( + 58 ) * - col1 AS col1 FROM tab1 AS cor0
----
-1505
-516
-674

query I rowsort
SELECT ALL col2 + + ( + col1 * col0 ) - + col0 FROM tab1 AS cor0
----
1056
129
633

onlyif mysql # use DIV operator for integer division
query I rowsort label-7433
SELECT ALL tab2.col0 DIV - ( + col0 ) + tab2.col1 AS col0 FROM tab2
----
16
30
58

skipif mysql # not compatible
query I rowsort label-7433
SELECT ALL tab2.col0 / - ( + col0 ) + tab2.col1 AS col0 FROM tab2
----
16
30
58

onlyif mysql # use DIV operator for integer division
query I rowsort label-7434
SELECT + col2 * col1 + col2 DIV col1 + - col1 DIV col0 col1 FROM tab2
----
1534
648
833

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7434
SELECT + col2 * col1 + col2 / col1 + - col1 / col0 col1 FROM tab2
----
1534
648
833

query I rowsort
SELECT DISTINCT + col1 + + ( - col0 ) FROM tab2
----
-19
-62
24

query I rowsort
SELECT + col0 * 45 + col1 * col2 - - col2 FROM tab0
----
11549
1673
3951

query I rowsort
SELECT ALL - cor0.col1 + - col2 AS col1 FROM tab2 AS cor0
----
-55
-58
-85

query I rowsort
SELECT - 81 FROM tab1, tab0 AS cor0
----
9 values hashing to 205b3ff2d7b1817c98d7980b8c17e6c1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7439
SELECT - col1 * CAST( NULL AS SIGNED ) + - 73 * col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7439
SELECT - col1 * CAST ( NULL AS INTEGER ) + - 73 * col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col0 + 98 FROM tab1
----
18
34
95

onlyif mysql # use DIV operator for integer division
query I rowsort label-7441
SELECT ALL col1 + - col1 * tab2.col0 DIV col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7441
SELECT ALL col1 + - col1 * tab2.col0 / col0 FROM tab2
----
0
0
0

query I rowsort
SELECT - col1 * - col1 + col0 + col0 AS col2 FROM tab0
----
7444
8459
9479

query I rowsort
SELECT + - 34 + + 9 * cor0.col0 FROM tab1 AS cor0
----
-7
542
686

query I rowsort
SELECT ALL col1 * - 18 + - col1 * + col1 AS col2 FROM tab2
----
-1519
-4543
-595

query I rowsort
SELECT + ( cor0.col0 ) * col2 * col1 - + col1 FROM tab2 AS cor0
----
119593
51017
5828

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab1.col2 + col0 col2 FROM tab1
----
121
176
57

query I rowsort
SELECT + ( 99 ) * col2 AS col2 FROM tab2
----
2574
2673
3762

query I rowsort
SELECT DISTINCT - 97 FROM tab0, tab2 AS cor0
----
-97

query I rowsort
SELECT DISTINCT + 51 AS col2 FROM tab0
----
51

query I rowsort
SELECT cor0.col0 + 45 * col1 FROM tab2 AS cor0
----
1402
2733
844

query I rowsort
SELECT - col2 * ( col0 ) + + col0 AS col2 FROM tab2 AS cor0
----
-182
-1950
-2923

query I rowsort
SELECT + col1 * 15 AS col2 FROM tab1 cor0
----
150
195
390

query I rowsort
SELECT tab2.col2 + + col0 * col0 FROM tab2
----
6110
6279
76

onlyif mysql # use DIV operator for integer division
query I rowsort label-7454
SELECT DISTINCT + col0 DIV - col0 AS col0 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-7454
SELECT DISTINCT + col0 / - col0 AS col0 FROM tab0
----
-1

query I rowsort
SELECT + ( - col1 + col1 ) FROM tab1
----
0
0
0

query I rowsort
SELECT - + cor0.col1 * col2 AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT - 90 * col0 + ( + col0 ) AS col1 FROM tab0 AS cor0
----
-2136
-3115
-7921

query I rowsort
SELECT + - col0 * + 84 FROM tab2 AS cor0
----
-588
-6552
-6636

query I rowsort
SELECT DISTINCT + col2 * 40 FROM tab1 AS cor0
----
2160
2280
3840

query I rowsort
SELECT DISTINCT - col1 * + ( 56 ) * + col1 AS col0 FROM tab1 AS cor0
----
-37856
-5600
-9464

query I rowsort
SELECT - 7 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to ba940cd66e21e94e95aada5f28e1faf5

query I rowsort
SELECT + col0 + - ( col0 ) * col0 * + col0 AS col1 FROM tab0 cor0
----
-13800
-42840
-704880

query I rowsort
SELECT DISTINCT cor0.col0 * cor0.col1 AS col2 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT col0 + 47 * + col1 FROM tab1 AS cor0
----
1225
534
691

query I rowsort
SELECT DISTINCT - col2 * + tab1.col2 AS col2 FROM tab1
----
-2916
-3249
-9216

query I rowsort
SELECT + 85 AS col2 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7467
SELECT + CAST( NULL AS SIGNED ) * cor0.col0 col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7467
SELECT + CAST ( NULL AS INTEGER ) * cor0.col0 col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL col0 * + col1 + + col2 * 77 AS col1 FROM tab0
----
14413
3472
4605

query I rowsort
SELECT DISTINCT - - col0 * - col1 - col0 * + cor0.col1 FROM tab2 AS cor0
----
-2686
-434
-9204

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 + - cor0.col2 col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + col0 * - cor0.col0 AS col1 FROM tab1 AS cor0
----
-4096
-6400
-9

query I rowsort
SELECT DISTINCT + col1 * + cor0.col0 + 1 AS col0 FROM tab2 AS cor0
----
1344
218
4603

onlyif mysql # use DIV operator for integer division
query I rowsort label-7473
SELECT + 28 * + col0 DIV col0 + 93 FROM tab0
----
121
121
121

skipif mysql # not compatible
query I rowsort label-7473
SELECT + 28 * + col0 / col0 + 93 FROM tab0
----
121
121
121

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7474
SELECT CAST( NULL AS SIGNED ) + + col2 - col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7474
SELECT CAST ( NULL AS INTEGER ) + + col2 - col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + 61 * - tab1.col0 + + col2 AS col2 FROM tab1
----
-129
-3847
-4784

onlyif mysql # use DIV operator for integer division
query I rowsort label-7476
SELECT col2 DIV - col0 + col0 + + 14 AS col1 FROM tab0
----
103
37
49

skipif mysql # not compatible
query I rowsort label-7476
SELECT col2 / - col0 + col0 + + 14 AS col1 FROM tab0
----
103
37
49

onlyif mysql # use DIV operator for integer division
query I rowsort label-7477
SELECT DISTINCT - col2 - - 44 DIV col1 AS col1 FROM tab2
----
-26
-36

skipif mysql # not compatible
query I rowsort label-7477
SELECT DISTINCT - col2 - - 44 / col1 AS col1 FROM tab2
----
-26
-36

onlyif mysql # use DIV operator for integer division
query I rowsort label-7478
SELECT - 0 DIV - col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7478
SELECT - 0 / - col0 FROM tab1
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-7479
SELECT ALL + ( col2 ) DIV col1 FROM tab2
----
0
0
2

skipif mysql # not compatible
query I rowsort label-7479
SELECT ALL + ( col2 ) / col1 FROM tab2
----
0
0
2

onlyif mysql # use DIV operator for integer division
query I rowsort label-7480
SELECT - - col2 * col2 + - cor0.col2 DIV - col1 + col2 AS col0 FROM tab1 AS cor0
----
2972
3311
9319

skipif mysql # not compatible
query I rowsort label-7480
SELECT - - col2 * col2 + - cor0.col2 / - col1 + col2 AS col0 FROM tab1 AS cor0
----
2972
3311
9319

onlyif mysql # use DIV operator for integer division
query I rowsort label-7481
SELECT + cor0.col0 DIV + 24 + col2 FROM tab1 AS cor0
----
54
59
99

skipif mysql # not compatible
query I rowsort label-7481
SELECT + cor0.col0 / + 24 + col2 FROM tab1 AS cor0
----
54
59
99

query I rowsort
SELECT - cor0.col2 * 20 * + cor0.col0 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 3d2afda8359a6c6eab648c29a48c2d80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7483
SELECT + 84 + col2 + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7483
SELECT + 84 + col2 + CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - col2 + ( 83 ) col2 FROM tab0 AS cor0
----
-1006
-6641
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 98 + col2 * - ( 17 ) + + cor0.col1 col0 FROM tab2 AS cor0
----
-285
-330
-531

onlyif mysql # use DIV operator for integer division
query I rowsort label-7486
SELECT + + col0 + col1 DIV + col2 AS col2 FROM tab0 AS cor0
----
132
26
90

skipif mysql # not compatible
query I rowsort label-7486
SELECT + + col0 + col1 / + col2 AS col2 FROM tab0 AS cor0
----
132
26
90

query I rowsort
SELECT - - ( - col1 ) + - col1 + 46 AS col2 FROM tab2 AS cor0
----
-16
-72
12

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7488
SELECT ALL CAST( NULL AS SIGNED ) * - ( col1 ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7488
SELECT ALL CAST ( NULL AS INTEGER ) * - ( col1 ) AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT 71 * col2 FROM tab2 AS cor0
----
1846
1917
2698

query I rowsort
SELECT ALL + 59 * col0 + col1 AS col0 FROM tab1 cor0
----
203
3786
4733

query I rowsort
SELECT ALL + 10 * - col1 * + col2 FROM tab0 cor0
----
-28380
-74620
-970

query I rowsort
SELECT ALL 95 + col1 * cor0.col0 FROM tab2 AS cor0
----
1438
312
4697

query I rowsort
SELECT ALL + 20 + col2 FROM tab2 AS cor0
----
46
47
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 38 - col0 * - 79 col0 FROM tab0 AS cor0
----
1934
2803
7069

query I rowsort
SELECT + col0 * - col1 * + col1 FROM tab1
----
-13520
-2028
-6400

query I rowsort
SELECT ALL 49 + col0 + tab1.col2 FROM tab1
----
106
170
225

query I rowsort
SELECT + + col2 - + cor0.col0 AS col2 FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT ALL - 57 * col0 + + col2 AS col0 FROM tab1 cor0
----
-117
-3591
-4464

query I rowsort
SELECT 39 + col0 + col1 * - col1 AS col2 FROM tab0 cor0
----
-7333
-8153
-9335

query I rowsort
SELECT - + col0 + + col2 - cor0.col0 FROM tab1 AS cor0
----
-64
-71
48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * cor0.col2 + cor0.col2 * col1 col2 FROM tab0 AS cor0
----
132
14760
3630

query I rowsort
SELECT + - cor0.col1 * + col2 - col1 FROM tab2 AS cor0
----
-1593
-663
-868

query I rowsort
SELECT - 39 * + col1 + col1 * col1 FROM tab0 AS cor0
----
4042
4732
5626

query I rowsort
SELECT - - cor0.col2 * 23 + - col2 + col2 AS col2 FROM tab0 AS cor0
----
1886
23
759

query I rowsort
SELECT ALL + + col0 * + col2 AS col0 FROM tab1 cor0
----
162
3648
7680

query I rowsort
SELECT + cor0.col0 - + 9 AS col2 FROM tab2 AS cor0
----
-2
69
70

query I rowsort
SELECT + - cor0.col1 * + 81 + col0 + col2 * + col0 * - 95 FROM tab1 AS cor0
----
-17493
-347306
-730573

query I rowsort
SELECT ALL - col0 * + cor0.col2 FROM tab2 cor0
----
-189
-2028
-3002

query I rowsort
SELECT + cor0.col1 + - 70 FROM tab1 AS cor0
----
-44
-57
-60

query I rowsort
SELECT DISTINCT - col1 * ( - col1 ) AS col0 FROM tab0 AS cor0
----
7396
8281
9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-7511
SELECT col0 DIV col0 + col1 + tab1.col1 DIV + tab1.col2 FROM tab1
----
11
14
27

skipif mysql # not compatible
query I rowsort label-7511
SELECT col0 / col0 + col1 + tab1.col1 / + tab1.col2 FROM tab1
----
11
14
27

query I rowsort
SELECT DISTINCT + ( col1 ) * 15 + + col0 + - col2 * + 0 AS col2 FROM tab2
----
334
472
963

query I rowsort
SELECT DISTINCT + 71 AS col0 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
71

query I rowsort
SELECT DISTINCT 8 + col2 FROM tab1
----
104
62
65

query I rowsort
SELECT ( tab1.col2 ) - + tab1.col2 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + col0 * + tab2.col1 * + col2 col0 FROM tab2
----
119730
51113
5866

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 57 * col1 col1 FROM tab0
----
-4902
-5187
-5529

onlyif mysql # use DIV operator for integer division
query I rowsort label-7518
SELECT DISTINCT - col1 DIV col1 + + 45 AS col1 FROM tab0
----
44

skipif mysql # not compatible
query I rowsort label-7518
SELECT DISTINCT - col1 / col1 + + 45 AS col1 FROM tab0
----
44

query I rowsort
SELECT DISTINCT - 89 * - 59 FROM tab0 AS cor0
----
5251

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 19 + col1 col1 FROM tab0 AS cor0
----
105
110
116

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 78 - + col1 * cor0.col2 col1 FROM tab1 AS cor0
----
-1170
-1326
-492

query I rowsort
SELECT col0 * + col1 + - col2 AS col1 FROM tab0 AS cor0
----
2031
3394
8017

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7523
SELECT ALL + - CAST( NULL AS SIGNED ) / 98 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7523
SELECT ALL + - CAST ( NULL AS INTEGER ) / 98 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL ( - col0 ) * col1 + + col0 AS col0 FROM tab0 AS cor0
----
-2040
-3360
-8010

query I rowsort
SELECT DISTINCT - - 78 AS col2 FROM tab1 cor0
----
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-7526
SELECT DISTINCT - cor0.col0 + 58 DIV + col1 FROM tab2 AS cor0
----
-6
-76
-78

skipif mysql # not compatible
query I rowsort label-7526
SELECT DISTINCT - cor0.col0 + 58 / + col1 FROM tab2 AS cor0
----
-6
-76
-78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 97 col0 FROM tab0 cor0
----
97
97
97

query I rowsort
SELECT ALL - - 41 - col0 FROM tab0 AS cor0
----
-48
17
6

onlyif mysql # use DIV operator for integer division
query I rowsort label-7529
SELECT DISTINCT + ( 77 ) DIV col2 AS col2 FROM tab0 AS cor0
----
0
2
77

skipif mysql # not compatible
query I rowsort label-7529
SELECT DISTINCT + ( 77 ) / col2 AS col2 FROM tab0 AS cor0
----
0
2
77

query I rowsort
SELECT ALL 89 + - col2 * col1 FROM tab0 AS cor0
----
-2749
-7373
-8

query I rowsort
SELECT - - col1 * 4 AS col0 FROM tab0 AS cor0
----
344
364
388

query I rowsort
SELECT ALL + + col0 * - cor0.col2 + col1 AS col1 FROM tab2 AS cor0
----
-158
-1969
-2985

query I rowsort
SELECT DISTINCT + + col0 * 68 - col0 FROM tab1 AS cor0
----
201
4288
5360

query I rowsort
SELECT + ( - 0 ) FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - cor0.col1 - + cor0.col0 AS col2 FROM tab1 cor0
----
-29
-74
-93

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7536
SELECT + + CAST( + col1 AS SIGNED ) * col0 AS col2 FROM tab1 AS cor0
----
1040
640
78

skipif mysql # not compatible
query I rowsort label-7536
SELECT + + CAST ( + col1 AS INTEGER ) * col0 AS col2 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT DISTINCT tab2.col2 * - col2 AS col0 FROM tab2
----
-1444
-676
-729

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + col2 + - tab0.col0 ) col2 FROM tab0
----
-34
-7
9

query I rowsort
SELECT col2 + 91 FROM tab0
----
124
173
92

query I rowsort
SELECT ALL - ( tab2.col2 * - tab2.col2 ) FROM tab2
----
1444
676
729

query I rowsort
SELECT DISTINCT ( + 98 ) AS col1 FROM tab0, tab1 AS cor0 CROSS JOIN tab2
----
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7542
SELECT ALL + col1 + + CAST( ( - col1 ) * ( - col1 ) AS SIGNED ) AS col2 FROM tab1
----
110
182
702

skipif mysql # not compatible
query I rowsort label-7542
SELECT ALL + col1 + + CAST ( ( - col1 ) * ( - col1 ) AS INTEGER ) AS col2 FROM tab1
----
110
182
702

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab1.col1 + - ( - col2 ) + - col1 col0 FROM tab1
----
54
57
96

query I rowsort
SELECT cor0.col2 * col1 - col2 FROM tab2 AS cor0
----
1508
608
810

query I rowsort
SELECT DISTINCT col1 + tab1.col0 AS col2 FROM tab1
----
29
74
93

query I rowsort
SELECT DISTINCT + col1 * + 65 + + ( - col0 ) FROM tab1
----
1687
586
765

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + 87 + + col2 col0 FROM tab0
----
153
251
89

query I rowsort
SELECT - col2 + col2 + + 97 FROM tab2
----
97
97
97

query I rowsort
SELECT - cor1.col1 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2

query I rowsort
SELECT DISTINCT + 17 AS col0 FROM tab1 cor0
----
17

query I rowsort
SELECT + col1 * 86 FROM tab2 AS cor0
----
1462
2666
5074

query I rowsort
SELECT cor0.col2 * + col2 + + col0 * 28 AS col1 FROM tab2 AS cor0
----
2860
3656
925

query I rowsort
SELECT ( 23 ) AS col1 FROM tab2 AS cor0
----
23
23
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + col0 ) * col2 * col0 col1 FROM tab1 AS cor0
----
-233472
-486
-614400

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7555
SELECT + CAST( - col1 AS SIGNED ) * col0 FROM tab2 AS cor0
----
-1343
-217
-4602

skipif mysql # not compatible
query I rowsort label-7555
SELECT + CAST ( - col1 AS INTEGER ) * col0 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT - - cor0.col2 + - col0 + + cor0.col1 FROM tab2 cor0
----
-24
51
7

query I rowsort
SELECT col2 * + ( cor0.col0 ) - + col0 FROM tab1 AS cor0
----
159
3584
7600

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7558
SELECT - - CAST( NULL AS SIGNED ) * - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7558
SELECT - - CAST ( NULL AS INTEGER ) * - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7559
SELECT ALL + col1 + col0 / CAST( NULL AS SIGNED ) + + 54 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7559
SELECT ALL + col1 + col0 / CAST ( NULL AS INTEGER ) + + 54 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + 26 * + 58 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 4e0724acbc7e6bee6b014eff1685c2f6

query I rowsort
SELECT DISTINCT col0 * + col1 AS col1 FROM tab1 cor0
----
1040
640
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-7562
SELECT ALL col0 DIV col0 col0 FROM tab1 cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7562
SELECT ALL col0 / col0 col0 FROM tab1 cor0
----
1
1
1

query I rowsort
SELECT DISTINCT - 91 * + col0 AS col1 FROM tab1 AS cor0
----
-273
-5824
-7280

query I rowsort
SELECT - - 43 * col0 FROM tab1 AS cor0
----
129
2752
3440

query I rowsort
SELECT DISTINCT - - 76 * col0 + ( - col2 ) AS col1 FROM tab0 cor0
----
1791
2659
6682

onlyif mysql # use DIV operator for integer division
query I rowsort label-7566
SELECT ALL - col2 DIV col2 + col1 DIV col2 AS col0 FROM tab1 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7566
SELECT ALL - col2 / col2 + col1 / col2 AS col0 FROM tab1 cor0
----
-1
-1
-1

query I rowsort
SELECT ALL + col0 + + col1 * - col1 AS col2 FROM tab2 AS cor0
----
-210
-3403
-954

query I rowsort
SELECT + - col1 * ( col2 + cor0.col2 ) * + col2 AS col2 FROM tab0 AS cor0
----
-1223768
-187308
-194

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab2 cor2, tab0 AS cor3
----
3645 values hashing to 5acb69cde71208fe580e10b8b669428e

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7570
SELECT + + col1 * - CAST( col2 AS SIGNED ) FROM tab0 AS cor0
----
-2838
-7462
-97

skipif mysql # not compatible
query I rowsort label-7570
SELECT + + col1 * - CAST ( col2 AS INTEGER ) FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT ALL + col1 * + ( + col2 ) + + col0 FROM tab2 cor0
----
1612
725
844

query I rowsort
SELECT - col2 * + cor0.col0 + col2 FROM tab1 cor0
----
-108
-3591
-7584

query I rowsort
SELECT ALL + 96 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7574
SELECT ALL - CAST( NULL AS SIGNED ) AS col1 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-7574
SELECT ALL - CAST ( NULL AS INTEGER ) AS col1 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 17 * - col0 * col1 col2 FROM tab2
----
-22831
-3689
-78234

query I rowsort
SELECT + col2 * 16 AS col1 FROM tab0
----
1312
16
528

query I rowsort
SELECT ALL - 21 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 631fbd1fd929405aba54a22c2a06c757

query I rowsort
SELECT ALL 6 FROM tab0, tab2 cor0
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

query I rowsort
SELECT DISTINCT + 63 AS col2 FROM tab2
----
63

query I rowsort
SELECT DISTINCT - ( + tab2.col1 * + col0 ) AS col0 FROM tab2
----
-1343
-217
-4602

query I rowsort
SELECT DISTINCT - 6 * col0 FROM tab2 AS cor0
----
-42
-468
-474

onlyif mysql # use DIV operator for integer division
query I rowsort label-7582
SELECT ALL CAST( - col2 AS SIGNED ) DIV col0 - col2 FROM tab0 AS cor0
----
-1
-34
-82

skipif mysql # not compatible
query I rowsort label-7582
SELECT ALL CAST ( - col2 AS INTEGER ) / col0 - col2 FROM tab0 AS cor0
----
-1
-34
-82

query I rowsort
SELECT - - col2 * + 32 FROM tab2 AS cor0
----
1216
832
864

query I rowsort
SELECT - 30 FROM tab0, tab0 cor0
----
9 values hashing to 56fa25f9fb8040460fe3c894000ea8fb

query I rowsort
SELECT + ( + col0 ) - - col2 AS col1 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT + 40 * col0 - + col1 AS col0 FROM tab1 AS cor0
----
2550
3187
94

query I rowsort
SELECT DISTINCT + + col0 * - col1 - + col1 * - 58 * 53 FROM tab0 AS cor0
----
262300
271635
294783

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * 71 + col1 * + ( col2 * col1 ) col0 FROM tab2 AS cor0
----
16591
26444
96044

query I rowsort
SELECT ALL - - 38 AS col0 FROM tab2 AS cor0
----
38
38
38

query I rowsort
SELECT ALL 84 FROM tab1, tab2 AS cor0
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8

onlyif mysql # use DIV operator for integer division
query I rowsort label-7591
SELECT tab2.col0 DIV col0 + - col0 FROM tab2
----
-6
-77
-78

skipif mysql # not compatible
query I rowsort label-7591
SELECT tab2.col0 / col0 + - col0 FROM tab2
----
-6
-77
-78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 92 + - col2 col2 FROM tab2 AS cor0
----
54
65
66

onlyif mysql # use DIV operator for integer division
query I rowsort label-7593
SELECT col0 DIV 90 + + col1 AS col0 FROM tab0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-7593
SELECT col0 / 90 + + col1 AS col0 FROM tab0
----
86
91
97

query I rowsort
SELECT + col1 + + col0 + col1 AS col2 FROM tab2
----
113
196
69

onlyif mysql # use DIV operator for integer division
query I rowsort label-7595
SELECT ALL col1 * + 2 + tab0.col0 DIV 75 AS col2 FROM tab0
----
172
183
194

skipif mysql # not compatible
query I rowsort label-7595
SELECT ALL col1 * + 2 + tab0.col0 / 75 AS col2 FROM tab0
----
172
183
194

query I rowsort
SELECT DISTINCT 54 + - tab1.col0 FROM tab1
----
-10
-26
51

query I rowsort
SELECT ALL tab1.col2 AS col2 FROM tab2, tab0, tab2 AS cor0, tab1
----
81 values hashing to 9d355f1f2edc347a359dad00d2d3f886

query I rowsort
SELECT ALL + cor0.col2 * - col0 + - col1 FROM tab1 AS cor0
----
-188
-3658
-7693

query I rowsort
SELECT + col1 + + col1 * 65 AS col1 FROM tab2 AS cor0
----
1122
2046
3894

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + cor0.col1 + - 27 * col0 col2 FROM tab1 AS cor0
----
-1718
-2147
-55

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7601
SELECT ALL 93 * - col0 * CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7601
SELECT ALL 93 * - col0 * CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 64 * col0 col2 FROM tab1
----
192
4096
5120

query I rowsort
SELECT + col1 - + col0 AS col1 FROM tab0
----
2
62
62

query I rowsort
SELECT ALL col2 * - col2 + + ( + col0 ) AS col0 FROM tab1 AS cor0
----
-2913
-3185
-9136

query I rowsort
SELECT + cor0.col1 + col0 * - col0 * - col0 AS col2 FROM tab2 AS cor0
----
374
474611
493056

query I rowsort
SELECT - col2 * 14 FROM tab1 AS cor0
----
-1344
-756
-798

query I rowsort
SELECT - cor0.col1 + ( col1 ) * - col1 AS col1 FROM tab1 AS cor0
----
-110
-182
-702

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 - + ( + col0 ) col0 FROM tab2 AS cor0
----
-14
-156
-158

query I rowsort
SELECT - - col1 * + 16 + - cor0.col1 * - col1 AS col0 FROM tab1 AS cor0
----
1092
260
377

query I rowsort
SELECT + col0 + col0 * - ( col1 ) * 37 FROM tab0 AS cor0
----
-125580
-299574
-76344

onlyif mysql # use DIV operator for integer division
query I rowsort label-7611
SELECT col1 DIV 8 FROM tab2 AS cor0
----
2
3
7

skipif mysql # not compatible
query I rowsort label-7611
SELECT col1 / 8 FROM tab2 AS cor0
----
2
3
7

query I rowsort
SELECT + - col1 * + ( cor0.col0 ) FROM tab2 AS cor0
----
-1343
-217
-4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-7613
SELECT col2 DIV + 98 + + col2 col2 FROM tab0
----
1
33
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7613
SELECT col2 / + 98 + + col2 col2 FROM tab0
----
1
33
82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7614
SELECT col0 - - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7614
SELECT col0 - - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 * 70 AS col0 FROM tab1 AS cor0
----
3780
3990
6720

query I rowsort
SELECT + col0 * - col2 + 57 AS col1 FROM tab1 AS cor0
----
-105
-3591
-7623

query I rowsort
SELECT ALL + ( cor0.col0 ) + 26 AS col0 FROM tab1, tab2 cor0, tab0 AS cor1
----
27 values hashing to 5576a061ffcfc649c7eb44ed5ac9e7ab

onlyif mysql # use DIV operator for integer division
query I rowsort label-7618
SELECT - col1 DIV 67 + col0 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-7618
SELECT - col1 / 67 + col0 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT ALL + + ( + col2 ) AS col0 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT col2 * - col1 - - col1 AS col1 FROM tab1 AS cor0
----
-1235
-1378
-560

query I rowsort
SELECT DISTINCT 65 + col0 AS col2 FROM tab0 AS cor0
----
100
154
89

query I rowsort
SELECT - + col2 + 50 * col1 FROM tab2 AS cor0
----
1523
2924
812

query I rowsort
SELECT ALL + ( col1 ) + col2 + + col2 AS col2 FROM tab2 AS cor0
----
111
85
93

query I rowsort
SELECT - cor0.col1 * + col0 - - col2 FROM tab2 AS cor0
----
-1305
-190
-4576

query I rowsort
SELECT col0 * + 74 FROM tab0 AS cor0
----
1776
2590
6586

query I rowsort
SELECT - 69 - col2 AS col2 FROM tab1 AS cor0
----
-123
-126
-165

query I rowsort
SELECT ALL col1 + cor0.col1 * + col2 FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT DISTINCT + col0 * - 54 * + col2 FROM tab1 AS cor0
----
-196992
-414720
-8748

onlyif mysql # use DIV operator for integer division
query I rowsort label-7629
SELECT ALL - cor0.col1 DIV 80 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7629
SELECT ALL - cor0.col1 / 80 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT ALL cor0.col2 * cor0.col2 + + col1 * + col2 AS col2 FROM tab0 AS cor0
----
14186
3927
98

query I rowsort
SELECT ALL + tab0.col1 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( 60 AS REAL ) + col1 FROM tab1 AS cor0
----
70
73
86

onlyif mysql # use DIV operator for integer division
query I rowsort label-7633
SELECT 5 DIV col2 AS col1 FROM tab0 AS cor0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-7633
SELECT 5 / col2 AS col1 FROM tab0 AS cor0
----
0
0
5

query I rowsort
SELECT + col1 * 6 + - col2 AS col2 FROM tab2 AS cor0
----
159
328
64

onlyif mysql # use DIV operator for integer division
query I rowsort label-7635
SELECT + - col2 DIV col0 col1 FROM tab1 AS cor0
----
-1
-18
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7635
SELECT + - col2 / col0 col1 FROM tab1 AS cor0
----
-1
-18
0

query I rowsort
SELECT ALL + + col1 * col2 + - cor0.col2 FROM tab2 AS cor0
----
1508
608
810

query I rowsort
SELECT ALL - + col2 - + col1 * col0 * - col2 FROM tab0 AS cor0
----
3394
664036
68079

query I rowsort
SELECT DISTINCT - 57 FROM tab1 cor0
----
-57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7639
SELECT + ( col1 ) * - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7639
SELECT + ( col1 ) * - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-7640
SELECT col1 + - col1 DIV col0 col0 FROM tab2 AS cor0
----
17
27
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7640
SELECT col1 + - col1 / col0 col0 FROM tab2 AS cor0
----
17
27
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + cor0.col0 ) col1 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT DISTINCT ( - col2 ) + + col2 AS col0 FROM tab2 cor0
----
0

query I rowsort
SELECT DISTINCT + 89 * + col0 FROM tab2 AS cor0
----
623
6942
7031

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - cor0.col2 * - col1 - - col1 * + 61 * + col1 col0 FROM tab0 AS cor0
----
453994
512603
574046

query I rowsort
SELECT ALL col0 + - col0 * ( col0 ) FROM tab2 AS cor0
----
-42
-6006
-6162

query I rowsort
SELECT ALL col1 + + 47 + - col0 AS col2 FROM tab2 cor0
----
-15
28
71

query I rowsort
SELECT DISTINCT + col0 * - ( col2 ) + + cor0.col2 FROM tab1 AS cor0
----
-108
-3591
-7584

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7648
SELECT DISTINCT - col2 + CAST( + col2 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7648
SELECT DISTINCT - col2 + CAST ( + col2 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
0

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 cor0, tab2 AS cor1, tab0, tab2 cor2
----
3645 values hashing to 6a08afba67ce3272fad6d766e76c67f0

query I rowsort
SELECT 15 * - 96 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to af678637e1447b060c1a5533cc59a050

query I rowsort
SELECT DISTINCT - ( - 31 ) FROM tab0
----
31

query I rowsort
SELECT col2 + ( col1 ) * - col2 FROM tab1
----
-1152
-1350
-513

query I rowsort
SELECT + 32 + col2 FROM tab2
----
58
59
70

query I rowsort
SELECT ALL 20 + + cor0.col2 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8ba9372c9c6e904a4234cb687d26837e

query I rowsort
SELECT DISTINCT - + 18 * - col2 FROM tab0 AS cor0
----
1476
18
594

query I rowsort
SELECT DISTINCT + 58 + col1 AS col1 FROM tab2 cor0
----
117
75
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-7657
SELECT DISTINCT + cor0.col0 DIV - col1 FROM tab2 AS cor0
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-7657
SELECT DISTINCT + cor0.col0 / - col1 FROM tab2 AS cor0
----
-1
-4
0

query I rowsort
SELECT ALL col0 + + col2 FROM tab0 cor0
----
171
36
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * - col2 col2 FROM tab2 AS cor0
----
-1444
-676
-729

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7660
SELECT ALL + col2 + - col2 * ( + 68 ) * - cor0.col1 + - CAST( NULL AS SIGNED ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7660
SELECT ALL + col2 + - col2 * ( + 68 ) * - cor0.col1 + - CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col2 * ( + cor0.col1 ) AS col0 FROM tab1 cor0
----
-1248
-1404
-570

query I rowsort
SELECT ALL + 85 AS col1 FROM tab0, tab2 cor0
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b

query I rowsort
SELECT - col0 * 4 * 8 FROM tab2
----
-224
-2496
-2528

onlyif mysql # use DIV operator for integer division
query I rowsort label-7664
SELECT ALL - col0 DIV + 94 + col1 col1 FROM tab1 AS cor0
----
10
13
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7664
SELECT ALL - col0 / + 94 + col1 col1 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT ALL - col1 * - 7 + cor0.col1 FROM tab1 AS cor0
----
104
208
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - col1 * + col2 col1 FROM tab1 AS cor0
----
-36480
-4212
-99840

query I rowsort
SELECT DISTINCT + col1 * - 31 FROM tab1 cor0
----
-310
-403
-806

query I rowsort
SELECT ALL ( - 9 ) FROM tab1, tab1 AS cor0, tab2 cor1, tab0 AS cor2
----
81 values hashing to ea2ee48b6db0ed0e9f87711d3eeef049

onlyif mysql # use DIV operator for integer division
query I rowsort label-7669
SELECT cor1.col1 DIV 25 AS col2 FROM tab0, tab0 AS cor0, tab0 cor1, tab2 AS cor2
----
81 values hashing to c7bd37716aa9c76e684a54f53d1ee343

skipif mysql # not compatible
query I rowsort label-7669
SELECT cor1.col1 / 25 AS col2 FROM tab0, tab0 AS cor0, tab0 cor1, tab2 AS cor2
----
81 values hashing to c7bd37716aa9c76e684a54f53d1ee343

query I rowsort
SELECT - - col2 + + cor0.col2 AS col1 FROM tab2 AS cor0
----
52
54
76

onlyif mysql # use DIV operator for integer division
query I rowsort label-7671
SELECT + ( col2 ) * col1 DIV - col1 AS col2 FROM tab0 AS cor0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-7671
SELECT + ( col2 ) * col1 / - col1 AS col2 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT 59 + - cor0.col0 FROM tab0 AS cor0
----
-30
24
35

query I rowsort
SELECT - col1 * - cor0.col2 AS col0 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT - 23 * - 21 + col2 AS col2 FROM tab0 AS cor0
----
484
516
565

query I rowsort
SELECT + - ( - cor0.col2 ) + + col1 FROM tab1 AS cor0
----
109
67
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-7676
SELECT 55 + col2 * col0 DIV col1 AS col1 FROM tab0 AS cor0
----
135
55
64

skipif mysql # not compatible
query I rowsort label-7676
SELECT 55 + col2 * col0 / col1 AS col1 FROM tab0 AS cor0
----
135
55
64

query I rowsort
SELECT + 79 * col2 * ( col0 ) AS col1 FROM tab2 cor0
----
14931
160212
237158

query I rowsort
SELECT - col1 * 45 * - col0 + col1 FROM tab2
----
207149
60452
9796

query I rowsort
SELECT - - col2 * + cor0.col2 FROM tab2 cor0
----
1444
676
729

query I rowsort
SELECT ALL + ( col0 ) + ( col0 ) AS col1 FROM tab2 AS cor0
----
14
156
158

query I rowsort
SELECT - 92 FROM tab1, tab0 cor0, tab0 cor1
----
27 values hashing to a0e6b76227d870d10c4d9f46545a7c83

query I rowsort
SELECT - col2 * 62 - - cor0.col2 FROM tab0 AS cor0
----
-2013
-5002
-61

query I rowsort
SELECT DISTINCT - cor0.col0 + - col0 * - col2 + + col2 FROM tab2 AS cor0
----
1976
209
2961

query I rowsort
SELECT + col2 + col0 * 57 * - col1 AS col0 FROM tab0 AS cor0
----
-117615
-193514
-461561

query I rowsort
SELECT col1 + - ( - col1 ) AS col2 FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT - col2 - + ( col1 ) AS col0 FROM tab1 AS cor0
----
-109
-67
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + col2 col1 FROM tab0
----
-34
-7
9

query I rowsort
SELECT - - col1 + + 88 AS col1 FROM tab0 AS cor0
----
174
179
185

query I rowsort
SELECT + col2 * 2 - - col1 FROM tab2 AS cor0
----
111
85
93

query I rowsort
SELECT cor0.col2 AS col1 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT - 44 * col2 + col1 AS col2 FROM tab1 AS cor0
----
-2350
-2498
-4211

query I rowsort
SELECT DISTINCT col1 + ( + ( col1 ) + + ( + 73 ) ) AS col0 FROM tab2
----
107
135
191

query I rowsort
SELECT 31 AS col1 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to c3c6f92f0ca72d71793339f88a57e336

query I rowsort
SELECT col2 * 80 AS col0 FROM tab1
----
4320
4560
7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-7695
SELECT col2 * col2 DIV col2 FROM tab0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-7695
SELECT col2 * col2 / col2 FROM tab0
----
1
33
82

query I rowsort
SELECT col2 * + 35 AS col0 FROM tab0
----
1155
2870
35

onlyif mysql # use DIV operator for integer division
query I rowsort label-7697
SELECT 38 DIV + 93 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-7697
SELECT 38 / + 93 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

onlyif mysql # use DIV operator for integer division
query I rowsort label-7698
SELECT - 77 DIV col1 - - tab0.col1 FROM tab0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-7698
SELECT - 77 / col1 - - tab0.col1 FROM tab0
----
86
91
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-7699
SELECT DISTINCT + - col0 DIV - col0 AS col0 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-7699
SELECT DISTINCT + - col0 / - col0 AS col0 FROM tab1 AS cor0
----
1

query I rowsort
SELECT DISTINCT - - 63 + - col2 * col0 FROM tab2 AS cor0
----
-126
-1965
-2939

onlyif mysql # use DIV operator for integer division
query I rowsort label-7701
SELECT ALL + cor0.col0 DIV col0 + - col0 FROM tab1 AS cor0
----
-2
-63
-79

skipif mysql # not compatible
query I rowsort label-7701
SELECT ALL + cor0.col0 / col0 + - col0 FROM tab1 AS cor0
----
-2
-63
-79

query I rowsort
SELECT ALL + 20 + + col1 FROM tab2 AS cor0
----
37
51
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-7703
SELECT DISTINCT - col2 * col0 + col2 DIV + col0 FROM tab2 cor0
----
-186
-2028
-3002

skipif mysql # not compatible
query I rowsort label-7703
SELECT DISTINCT - col2 * col0 + col2 / + col0 FROM tab2 cor0
----
-186
-2028
-3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-7704
SELECT cor0.col2 DIV + col2 - - cor0.col0 AS col2 FROM tab1 AS cor0
----
4
65
81

skipif mysql # not compatible
query I rowsort label-7704
SELECT cor0.col2 / + col2 - - cor0.col0 AS col2 FROM tab1 AS cor0
----
4
65
81

query I rowsort
SELECT + cor0.col1 - + cor0.col2 * col2 AS col0 FROM tab1 AS cor0
----
-2890
-3239
-9203

query I rowsort
SELECT + 35 + col1 FROM tab0 AS cor0
----
121
126
132

query I rowsort
SELECT 21 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 312c166f4dc412730c43555105b1f44b

query I rowsort
SELECT DISTINCT - ( + 52 ) * + col0 AS col0 FROM tab1 AS cor0
----
-156
-3328
-4160

query I rowsort
SELECT DISTINCT 12 + + col2 * cor0.col2 AS col2 FROM tab0 AS cor0
----
1101
13
6736

query I rowsort
SELECT ALL - + 19 + col0 * cor0.col1 * col0 FROM tab0 cor0
----
118806
49517
720792

query I rowsort
SELECT col1 * + ( - col2 ) * col0 + - col0 FROM tab2
----
-119730
-51113
-5866

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 81 col1 FROM tab1
----
81
81
81

query I rowsort
SELECT DISTINCT + cor0.col1 + - cor0.col1 * col0 AS col2 FROM tab2 AS cor0
----
-1326
-186
-4543

onlyif mysql # use DIV operator for integer division
query I rowsort label-7714
SELECT cor0.col0 DIV - col2 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-7714
SELECT cor0.col0 / - col2 FROM tab1 AS cor0
----
-1
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 col0 FROM tab2, tab2 cor0
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75

query I rowsort
SELECT ALL + 83 AS col1 FROM tab1
----
83
83
83

query I rowsort
SELECT + tab0.col1 * tab0.col0 AS col1 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT col0 + + col2 * col1 * + col0 FROM tab0
----
3430
664207
68136

query I rowsort
SELECT + tab0.col1 * col2 * col0 FROM tab0
----
3395
664118
68112

query I rowsort
SELECT + tab0.col2 * - col1 + + col1 * + col1 FROM tab0
----
4558
819
9312

query I rowsort
SELECT tab0.col2 + col2 * - col1 + + col1 * - col1 * col0 AS col0 FROM tab0 WHERE NOT - col2 IN ( col2 )
----
-180309
-329411
-744389

query I rowsort
SELECT - col2 * + col1 + - col1 + + tab0.col1 FROM tab0
----
-2838
-7462
-97

query III rowsort
SELECT * FROM tab1 WHERE ( col1 ) <> ( NULL )
----

query I rowsort
SELECT ALL + tab2.col0 + + col2 AS col2 FROM tab2
----
104
117
34

query I rowsort
SELECT ALL + col2 - + col2 AS col1 FROM tab0 cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) <= + col0 * - col1 + + col0
----

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-7728
SELECT col2 * col0 + + col1 + tab0.col2 * col0 DIV col1 FROM tab0
----
132
7469
887

skipif mysql # not compatible
query I rowsort label-7728
SELECT col2 * col0 + + col1 + tab0.col2 * col0 / col1 FROM tab0
----
132
7469
887

query I rowsort
SELECT + col2 + + col1 - + col0 * + tab0.col1 FROM tab0
----
-1945
-3297
-7926

query I rowsort
SELECT DISTINCT col0 * col2 + - tab0.col2 FROM tab0
----
34
7216
759

query I rowsort
SELECT col0 * + col1 * tab0.col0 FROM tab0
----
118825
49536
720811

onlyif mysql # use DIV operator for integer division
query I rowsort label-7732
SELECT col0 + - col1 DIV + col0 AS col2 FROM tab2
----
3
78
79

skipif mysql # not compatible
query I rowsort label-7732
SELECT col0 + - col1 / + col0 AS col2 FROM tab2
----
3
78
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-7733
SELECT DISTINCT col1 DIV tab0.col2 + + col1 FROM tab0
----
194
88
92

skipif mysql # not compatible
query I rowsort label-7733
SELECT DISTINCT col1 / tab0.col2 + + col1 FROM tab0
----
194
88
92

onlyif mysql # use DIV operator for integer division
query I rowsort label-7734
SELECT DISTINCT col0 DIV col0 + + col1 * col0 DIV - col2 + - col2 FROM tab1
----
-105
-54
-67

skipif mysql # not compatible
query I rowsort label-7734
SELECT DISTINCT col0 / col0 + + col1 * col0 / - col2 + - col2 FROM tab1
----
-105
-54
-67

query I rowsort
SELECT ALL + col2 * cor0.col0 FROM tab2 cor0
----
189
2028
3002

query I rowsort
SELECT ALL + cor0.col0 + + cor0.col1 * - col1 FROM tab1 AS cor0
----
-36
-673
-89

query I rowsort
SELECT ALL - col2 + - col0 + col2 FROM tab2
----
-7
-78
-79

query I rowsort
SELECT + col2 AS col0 FROM tab1 WHERE NULL <= - col2 AND NOT ( NULL ) NOT BETWEEN NULL AND - col2
----

query I rowsort
SELECT tab2.col2 * - col0 * - col0 + col0 + col2 FROM tab2
----
1357
158288
237275

query I rowsort
SELECT - + col2 * + col0 + - col1 AS col0 FROM tab0 AS cor0
----
-132
-7389
-878

query I rowsort
SELECT DISTINCT - + col2 + - col0 * - col2 AS col2 FROM tab2 AS cor0
----
162
2002
2964

query I rowsort
SELECT DISTINCT + - col0 * col0 + col1 - + col2 * cor0.col2 FROM tab0 cor0
----
-1129
-14554
-1579

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 + - col0 * + col1 col2 FROM tab1 cor0
----
-1120
-704
-81

query I rowsort
SELECT ALL col1 + cor0.col0 * col2 FROM tab0 AS cor0
----
132
7389
878

query I rowsort
SELECT - col1 * col2 + + col2 + col2 AS col2 FROM tab0 AS cor0
----
-2772
-7298
-95

query I rowsort
SELECT DISTINCT - col0 * - cor0.col2 AS col1 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT - tab1.col1 + - tab1.col2 FROM tab1 WHERE NOT NULL NOT IN ( + col1 + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * col0 * col2 col1 FROM tab2
----
119652
51034
5859

onlyif mysql # use DIV operator for integer division
query I rowsort label-7749
SELECT + col0 DIV col1 + + col0 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-7749
SELECT + col0 / col1 + + col0 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT + col1 + + 20 * cor0.col1 FROM tab1 AS cor0
----
210
273
546

onlyif mysql # use DIV operator for integer division
query I rowsort label-7751
SELECT 43 DIV + col0 FROM tab2 AS cor0
----
0
0
6

skipif mysql # not compatible
query I rowsort label-7751
SELECT 43 / + col0 FROM tab2 AS cor0
----
0
0
6

query I rowsort
SELECT + ( - ( col0 ) ) * ( - 24 ) FROM tab2 AS cor0
----
168
1872
1896

query I rowsort
SELECT - 77 * - 64 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 305a90ede53388e5b7ce57fbd8104a21

query I rowsort
SELECT + col2 + col0 * col1 FROM tab2
----
1381
244
4628

query I rowsort
SELECT - col0 + - cor0.col2 * + 91 FROM tab0 AS cor0
----
-126
-3027
-7551

query I rowsort
SELECT cor0.col0 + col0 * - ( - cor0.col1 ) AS col1 FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT DISTINCT col2 * + col0 + + col1 AS col2 FROM tab2
----
2087
220
3019

query I rowsort
SELECT ALL - col0 + col0 + col1 FROM tab0
----
86
91
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7759
SELECT - CAST( NULL AS SIGNED ) + col1 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7759
SELECT - CAST ( NULL AS INTEGER ) + col1 AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT col2 + - col0 * col1 FROM tab0
----
-2031
-3394
-8017

query I rowsort
SELECT DISTINCT - 65 + col2 AS col2 FROM tab1
----
-11
-8
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * tab0.col1 + ( - col2 ) col2 FROM tab0
----
-2871
-7544
-98

query I rowsort
SELECT DISTINCT - 95 AS col0 FROM tab0
----
-95

query I rowsort
SELECT DISTINCT + - 9 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

onlyif mysql # use DIV operator for integer division
query I rowsort label-7765
SELECT - ( + cor0.col2 ) + CAST( + col2 AS SIGNED ) DIV - col2 FROM tab1 AS cor0
----
-55
-58
-97

skipif mysql # not compatible
query I rowsort label-7765
SELECT - ( + cor0.col2 ) + CAST ( + col2 AS INTEGER ) / - col2 FROM tab1 AS cor0
----
-55
-58
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-7766
SELECT ALL col2 DIV - cor0.col2 + + 32 AS col1 FROM tab0 cor0
----
31
31
31

skipif mysql # not compatible
query I rowsort label-7766
SELECT ALL col2 / - cor0.col2 + + 32 AS col1 FROM tab0 cor0
----
31
31
31

query I rowsort
SELECT DISTINCT + col0 * - col1 + - col0 FROM tab2 cor0
----
-1422
-224
-4680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 * cor0.col1 col2 FROM tab0 AS cor0
----
-7396
-8281
-9409

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7769
SELECT DISTINCT + + col1 - - col0 * CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7769
SELECT DISTINCT + + col1 - - col0 * CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + 20 * col1 + col1 FROM tab0 AS cor0
----
1806
1911
2037

query I rowsort
SELECT ALL 39 * - col1 AS col0 FROM tab1 cor0
----
-1014
-390
-507

onlyif mysql # use DIV operator for integer division
query I rowsort label-7772
SELECT + col0 DIV tab2.col0 AS col2 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7772
SELECT + col0 / tab2.col0 AS col2 FROM tab2
----
1
1
1

query I rowsort
SELECT col0 * - col0 + - col0 * col0 FROM tab0 AS cor0
----
-1152
-15842
-2450

query I rowsort
SELECT ALL - - col1 * - col2 + - 29 FROM tab1 AS cor0
----
-1277
-1433
-599

query I rowsort
SELECT ALL - col2 * + ( - cor0.col0 ) FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT - cor0.col1 - cor0.col1 AS col1 FROM tab1 AS cor0
----
-20
-26
-52

query I rowsort
SELECT + col2 + 39 * + 2 FROM tab0 AS cor0
----
111
160
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-7778
SELECT DISTINCT col0 * ( + 38 ) - + col1 DIV - col1 AS col0 FROM tab0 AS cor0
----
1331
3383
913

skipif mysql # not compatible
query I rowsort label-7778
SELECT DISTINCT col0 * ( + 38 ) - + col1 / - col1 AS col0 FROM tab0 AS cor0
----
1331
3383
913

query I rowsort
SELECT ( col2 * - col2 ) AS col2 FROM tab2
----
-1444
-676
-729

query I rowsort
SELECT + ( col1 ) - 81 FROM tab2
----
-22
-50
-64

onlyif mysql # use DIV operator for integer division
query I rowsort label-7781
SELECT 64 DIV - col0 + col2 FROM tab0
----
0
31
82

skipif mysql # not compatible
query I rowsort label-7781
SELECT 64 / - col0 + col2 FROM tab0
----
0
31
82

query I rowsort
SELECT tab0.col0 + + col0 * - 0 - ( col2 * col1 ) AS col0 FROM tab0
----
-2814
-62
-7373

query I rowsort
SELECT ALL + 74 * col1 FROM tab1
----
1924
740
962

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 63 * col1 col1 FROM tab0
----
-5418
-5733
-6111

query I rowsort
SELECT ALL col0 + 14 FROM tab0
----
103
38
49

query I rowsort
SELECT + - col2 + 6 * col0 * cor0.col2 AS col1 FROM tab0 AS cor0
----
209
43706
4719

query I rowsort
SELECT - - col2 * - col2 + cor0.col2 AS col2 FROM tab1 AS cor0
----
-2862
-3192
-9120

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7788
SELECT + - CAST( NULL AS SIGNED ) * 47 * - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7788
SELECT + - CAST ( NULL AS INTEGER ) * 47 * - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 58 * col2 AS col1 FROM tab1 AS cor0
----
-3132
-3306
-5568

query I rowsort
SELECT + + ( col2 ) + - col0 AS col1 FROM tab0 AS cor0
----
-34
-7
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - ( col2 ) ) col0 FROM tab1
----
54
57
96

query I rowsort
SELECT DISTINCT col0 * + 41 AS col0 FROM tab1
----
123
2624
3280

query I rowsort
SELECT ALL - - 94 * col1 FROM tab1 AS cor0
----
1222
2444
940

query I rowsort
SELECT + 42 * + col2 * + 50 + + col1 AS col2 FROM tab0 AS cor0
----
172291
2197
69386

query I rowsort
SELECT - + col0 - + col2 AS col0 FROM tab0 AS cor0
----
-171
-36
-57

query I rowsort
SELECT col0 * col1 * col2 AS col1 FROM tab2 AS cor0
----
119652
51034
5859

query I rowsort
SELECT 79 + tab1.col2 AS col1 FROM tab1
----
133
136
175

query I rowsort
SELECT ALL ( 67 ) AS col2 FROM tab0, tab2 AS cor0 CROSS JOIN tab1
----
27 values hashing to eea8a0738728ea55e4e7ba1506c9905a

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab0.col0 col0 FROM tab1, tab2 AS cor0 CROSS JOIN tab0
----
24
35
89

query I rowsort
SELECT - ( tab0.col0 ) - col2 AS col0 FROM tab0
----
-171
-36
-57

query I rowsort
SELECT + - 54 * - 88 FROM tab1 AS cor0
----
4752
4752
4752

onlyif mysql # use DIV operator for integer division
query I rowsort label-7802
SELECT - - ( col1 ) DIV cor0.col0 + col2 AS col0 FROM tab2 AS cor0
----
26
31
38

skipif mysql # not compatible
query I rowsort label-7802
SELECT - - ( col1 ) / cor0.col0 + col2 AS col0 FROM tab2 AS cor0
----
26
31
38

query I rowsort
SELECT + - 72 AS col1 FROM tab2 AS cor0
----
-72
-72
-72

query I rowsort
SELECT ALL + 94 * col0 * - col2 AS col1 FROM tab2 AS cor0
----
-17766
-190632
-282188

query I rowsort
SELECT DISTINCT - col1 * col2 * + ( - col1 * cor0.col2 ) AS col1 FROM tab2 AS cor0
----
2353156
417316
700569

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7806
SELECT + CAST( NULL AS SIGNED ) FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-7806
SELECT + CAST ( NULL AS INTEGER ) FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT DISTINCT - col0 + + col0 * + col2 * - col1 FROM tab1 AS cor0
----
-36544
-4215
-99920

onlyif mysql # use DIV operator for integer division
query I rowsort label-7808
SELECT col0 - col2 DIV - 62 FROM tab1
----
3
64
81

skipif mysql # not compatible
query I rowsort label-7808
SELECT col0 - col2 / - 62 FROM tab1
----
3
64
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-7809
SELECT - col2 DIV col2 + - 57 DIV col1 + - col1 AS col0 FROM tab1 AS cor0
----
-16
-18
-29

skipif mysql # not compatible
query I rowsort label-7809
SELECT - col2 / col2 + - 57 / col1 + - col1 AS col0 FROM tab1 AS cor0
----
-16
-18
-29

onlyif mysql # use DIV operator for integer division
query I rowsort label-7810
SELECT col2 + 42 + col0 DIV col2 col0 FROM tab0 cor0
----
125
75
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7810
SELECT col2 + 42 + col0 / col2 col0 FROM tab0 cor0
----
125
75
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-7811
SELECT DISTINCT - - col1 DIV 39 + ( col0 ) * col2 + col2 AS col1 FROM tab0 AS cor0
----
38
7382
827

skipif mysql # not compatible
query I rowsort label-7811
SELECT DISTINCT - - col1 / 39 + ( col0 ) * col2 + col2 AS col1 FROM tab0 AS cor0
----
38
7382
827

onlyif mysql # use DIV operator for integer division
query I rowsort label-7812
SELECT - + col2 + + 96 DIV col0 FROM tab2 AS cor0
----
-14
-25
-37

skipif mysql # not compatible
query I rowsort label-7812
SELECT - + col2 + + 96 / col0 FROM tab2 AS cor0
----
-14
-25
-37

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0, tab0 cor1, tab1, tab0 AS cor2
----
3645 values hashing to 6dd6930689f177711fda407b5ce0d072

query I rowsort
SELECT DISTINCT - - col1 * cor0.col0 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT DISTINCT + - 35 * + col1 * + col1 FROM tab2 AS cor0
----
-10115
-121835
-33635

query I rowsort
SELECT + 89 * - cor0.col2 FROM tab1 AS cor0
----
-4806
-5073
-8544

query I rowsort
SELECT + ( + cor0.col0 ) AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63

query I rowsort
SELECT ALL ( + 8 ) * - col1 AS col0 FROM tab2 AS cor0
----
-136
-248
-472

query I rowsort
SELECT 65 AS col1 FROM tab2 cor0
----
65
65
65

query I rowsort
SELECT ALL + - col0 + + col2 * + col2 AS col1 FROM tab0 cor0
----
-34
1065
6635

onlyif mysql # use DIV operator for integer division
query I rowsort label-7821
SELECT - - CAST( col2 AS SIGNED ) DIV + col1 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7821
SELECT - - CAST ( col2 AS INTEGER ) / + col1 AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ( + col1 ) * col2 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT col2 + ( col0 ) * col2 FROM tab1
----
216
3705
7776

query I rowsort
SELECT ALL - cor0.col0 * cor0.col0 FROM tab1 AS cor0
----
-4096
-6400
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 20 col2 FROM tab0 AS cor0
----
20

query I rowsort
SELECT DISTINCT + cor0.col2 + ( - col2 ) * 79 * - 38 FROM tab1 AS cor0
----
162162
171171
288288

onlyif mysql # use DIV operator for integer division
query I rowsort label-7827
SELECT DISTINCT + + col0 * - col2 + - cor0.col0 DIV col2 FROM tab0 AS cor0
----
-70
-7299
-792

skipif mysql # not compatible
query I rowsort label-7827
SELECT DISTINCT + + col0 * - col2 + - cor0.col0 / col2 FROM tab0 AS cor0
----
-70
-7299
-792

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7828
SELECT ALL - CAST( col1 AS SIGNED ) * - col2 FROM tab0 AS cor0
----
2838
7462
97

skipif mysql # not compatible
query I rowsort label-7828
SELECT ALL - CAST ( col1 AS INTEGER ) * - col2 FROM tab0 AS cor0
----
2838
7462
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7829
SELECT ( col0 ) + - col0 * CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7829
SELECT ( col0 ) + - col0 * CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 * 55 + - col2 FROM tab0 AS cor0
----
4697
4923
5334

query I rowsort
SELECT DISTINCT - - 56 + 35 * col1 FROM tab1 cor0
----
406
511
966

query I rowsort
SELECT ALL + cor0.col1 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

onlyif mysql # use DIV operator for integer division
query I rowsort label-7833
SELECT ALL - col2 DIV + col1 + col0 FROM tab1
----
1
59
73

skipif mysql # not compatible
query I rowsort label-7833
SELECT ALL - col2 / + col1 + col0 FROM tab1
----
1
59
73

query I rowsort
SELECT ALL col2 + 15 FROM tab0
----
16
48
97

query I rowsort
SELECT - - 27 * + 88 + col1 AS col2 FROM tab0 AS cor0
----
2462
2467
2473

query I rowsort
SELECT DISTINCT - col1 * 87 AS col0 FROM tab2 AS cor0
----
-1479
-2697
-5133

onlyif mysql # use DIV operator for integer division
query I rowsort label-7837
SELECT DISTINCT - col2 DIV + 90 + + col0 - + 36 AS col0 FROM tab0 AS cor0
----
-1
-12
53

skipif mysql # not compatible
query I rowsort label-7837
SELECT DISTINCT - col2 / + 90 + + col0 - + 36 AS col0 FROM tab0 AS cor0
----
-1
-12
53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab0.col1 + + col0 col2 FROM tab0
----
-2
-62

onlyif mysql # use DIV operator for integer division
query I rowsort label-7839
SELECT - - col2 DIV - col2 AS col1 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7839
SELECT - - col2 / - col2 AS col1 FROM tab1 AS cor0
----
-1
-1
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-7840
SELECT - 56 DIV - col1 FROM tab1 AS cor0
----
2
4
5

skipif mysql # not compatible
query I rowsort label-7840
SELECT - 56 / - col1 FROM tab1 AS cor0
----
2
4
5

query I rowsort
SELECT ALL - col1 * 14 FROM tab0
----
-1204
-1274
-1358

onlyif mysql # use DIV operator for integer division
query I rowsort label-7842
SELECT DISTINCT 68 DIV col1 FROM tab1
----
2
5
6

skipif mysql # not compatible
query I rowsort label-7842
SELECT DISTINCT 68 / col1 FROM tab1
----
2
5
6

query I rowsort
SELECT ALL 68 - + cor0.col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 6ab25e20896e053ca3410f435d1bf280

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 col2 * tab2.col1 col0 FROM tab2
----
1534
646
837

query I rowsort
SELECT - col0 * + tab2.col1 + - col1 FROM tab2
----
-1360
-248
-4661

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col2 + + col2 ) * - col1 * + tab2.col2 col1 FROM tab2
----
-45198
-49096
-79768

query I rowsort
SELECT ALL - col1 - col0 * - col0 FROM tab0
----
1128
490
7830

query I rowsort
SELECT ALL ( col0 ) - col2 FROM tab0
----
-9
34
7

query I rowsort
SELECT DISTINCT - - col1 - col2 * + col1 FROM tab0 AS cor0
----
-2752
-7371
0

query I rowsort
SELECT + col1 * col0 + + col0 FROM tab2 AS cor0
----
1422
224
4680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 + col0 col2 FROM tab0 cor0
----
171
36
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 col2 FROM tab2 cor0
----
7
78
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-7854
SELECT ALL + col0 DIV - col1 AS col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7854
SELECT ALL + col0 / - col1 AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - + col1 * + 47 + + col0 * - col2 FROM tab2 AS cor0
----
-1646
-3801
-4801

query I rowsort
SELECT + 35 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 0d13dfd4c4a9d51ace3582c31cadcdbc

query I rowsort
SELECT col2 + 0 * 69 FROM tab2
----
26
27
38

query I rowsort
SELECT DISTINCT + col0 + 1 * - col2 AS col2 FROM tab2
----
-20
41
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-7859
SELECT col0 - - ( - 73 + + col0 ) DIV tab0.col1 AS col1 FROM tab0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-7859
SELECT col0 - - ( - 73 + + col0 ) / tab0.col1 AS col1 FROM tab0
----
24
35
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + col2 * + col0 col0 FROM tab0 cor0
----
34
7216
759

query I rowsort
SELECT + col1 - - cor0.col2 FROM tab1 cor0
----
109
67
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7862
SELECT DISTINCT - cor0.col1 * CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7862
SELECT DISTINCT - cor0.col1 * CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - col1 + 76 * col2 FROM tab0 AS cor0
----
-21
2422
6141

query I rowsort
SELECT ALL + col1 + 59 * + col1 FROM tab0 AS cor0
----
5160
5460
5820

query I rowsort
SELECT ALL col1 + - ( + col0 ) FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT DISTINCT col0 + 73 AS col2 FROM tab1 cor0
----
137
153
76

query I rowsort
SELECT - + col1 - 18 * ( - col0 * - 27 ) AS col0 FROM tab0 AS cor0
----
-11750
-17107
-43345

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * col2 col0 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT ALL col0 * 70 AS col0 FROM tab1 AS cor0
----
210
4480
5600

query I rowsort
SELECT ALL + col1 * - 4 FROM tab2 AS cor0
----
-124
-236
-68

query I rowsort
SELECT + col2 * + col1 * col0 FROM tab1
----
36480
4212
99840

query I rowsort
SELECT - col1 + col1 + col2 * col2 FROM tab2 AS cor0
----
1444
676
729

onlyif mysql # use DIV operator for integer division
query I rowsort label-7873
SELECT - - cor0.col1 + - cor0.col1 * cor0.col2 + 40 DIV + col1 AS col1 FROM tab1 AS cor0
----
-1232
-1377
-556

skipif mysql # not compatible
query I rowsort label-7873
SELECT - - cor0.col1 + - cor0.col1 * cor0.col2 + 40 / + col1 AS col1 FROM tab1 AS cor0
----
-1232
-1377
-556

query I rowsort
SELECT DISTINCT - col0 * cor0.col2 + + 69 FROM tab0 AS cor0
----
-7229
-723
34

query I rowsort
SELECT + ( col0 ) + cor0.col0 FROM tab2 AS cor0
----
14
156
158

query I rowsort
SELECT ALL col1 + col0 * + col0 + col2 FROM tab2 AS cor0
----
107
6169
6296

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7877
SELECT - + cor0.col0 * - CAST( + col2 AS SIGNED ) AS col1 FROM tab2 cor0
----
189
2028
3002

skipif mysql # not compatible
query I rowsort label-7877
SELECT - + cor0.col0 * - CAST ( + col2 AS INTEGER ) AS col1 FROM tab2 cor0
----
189
2028
3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-7878
SELECT - - col1 DIV + cor0.col0 + col2 * - col1 FROM tab2 AS cor0
----
-1534
-646
-833

skipif mysql # not compatible
query I rowsort label-7878
SELECT - - col1 / + cor0.col0 + col2 * - col1 FROM tab2 AS cor0
----
-1534
-646
-833

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - 0 col0 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT + + cor0.col0 * + col2 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT DISTINCT col2 * col1 + col0 * 18 AS col1 FROM tab1
----
1458
1722
2688

query I rowsort
SELECT DISTINCT 87 AS col1 FROM tab0
----
87

query I rowsort
SELECT cor0.col1 * - col2 + col2 FROM tab2 AS cor0
----
-1508
-608
-810

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + cor0.col2 + ( col2 ) col2 FROM tab1 AS cor0
----
124
134
205

query I rowsort
SELECT + + col2 + 60 FROM tab2 AS cor0
----
86
87
98

query I rowsort
SELECT col0 + col2 * col0 AS col2 FROM tab0 WHERE NOT - col2 > ( NULL )
----

query I rowsort
SELECT ALL - col1 * col1 - + tab0.col2 * col2 FROM tab0
----
-15005
-8485
-9410

query I rowsort
SELECT DISTINCT col0 + tab2.col2 + tab2.col2 FROM tab2 WHERE NOT ( NULL ) <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + - col1 col2 FROM tab1 WHERE NOT ( + col1 * col1 ) IN ( col0 - - col1 * - col0 * col0 )
----
28
47
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-7890
SELECT ALL tab0.col2 DIV + col1 - - col0 * col1 FROM tab0
----
2064
3395
8099

skipif mysql # not compatible
query I rowsort label-7890
SELECT ALL tab0.col2 / + col1 - - col0 * col1 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT ALL + tab2.col1 AS col2 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT - col1 * col2 AS col1 FROM tab1 WHERE NOT - col1 <= NULL
----

query I rowsort
SELECT col2 * col1 + + col0 + - col1 AS col0 FROM tab0
----
2776
35
7460

query I rowsort
SELECT DISTINCT col2 / col1 AS col2 FROM tab1 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT - col0 / col2 AS col1 FROM tab1 WHERE NULL IN ( col2 * col2 + - col2 )
----

query I rowsort
SELECT ALL col2 * col0 * + tab0.col0 - - col1 * - col0 AS col2 FROM tab0
----
-2170
16944
641423

onlyif mysql # use DIV operator for integer division
query I rowsort label-7897
SELECT tab0.col1 DIV col0 AS col0 FROM tab0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-7897
SELECT tab0.col1 / col0 AS col0 FROM tab0
----
1
2
3

query I rowsort
SELECT col1 AS col1 FROM tab0 WHERE NOT NULL = NULL
----

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab1 WHERE NULL > + col2
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-7900
SELECT tab0.col2 DIV + col0 AS col0 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7900
SELECT tab0.col2 / + col0 AS col0 FROM tab0
----
0
0
1

query I rowsort
SELECT DISTINCT + col1 * + col2 + - tab0.col0 * - tab0.col0 FROM tab0
----
1322
15383
3414

query I rowsort
SELECT DISTINCT tab2.col0 / + tab2.col0 AS col0 FROM tab2 WHERE NOT NULL = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col1 + + col1 NOT IN ( col2 )
----

query I rowsort
SELECT ALL col2 + - col0 * col0 - - col0 AS col1 FROM tab2
----
-15
-5980
-6124

onlyif mysql # use DIV operator for integer division
query I rowsort label-7905
SELECT col2 + col1 DIV - col2 FROM tab0
----
-96
31
81

skipif mysql # not compatible
query I rowsort label-7905
SELECT col2 + col1 / - col2 FROM tab0
----
-96
31
81

query I rowsort
SELECT - + cor0.col0 * + col2 - + 64 * 12 FROM tab1 AS cor0
----
-4416
-8448
-930

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NULL ) = ( NULL )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-7908
SELECT - tab0.col1 DIV + tab0.col1 + + col0 * tab0.col1 AS col1 FROM tab0
----
2063
3394
8098

skipif mysql # not compatible
query I rowsort label-7908
SELECT - tab0.col1 / + tab0.col1 + + col0 * tab0.col1 AS col1 FROM tab0
----
2063
3394
8098

onlyif mysql # use DIV operator for integer division
query I rowsort label-7909
SELECT col0 * col2 + - col2 DIV + col0 FROM tab2
----
186
2028
3002

skipif mysql # not compatible
query I rowsort label-7909
SELECT col0 * col2 + - col2 / + col0 FROM tab2
----
186
2028
3002

query I rowsort
SELECT ALL + col2 FROM tab2 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab1 WHERE + col2 NOT BETWEEN NULL AND - col1
----
-10
-13
-26

onlyif mysql # use DIV operator for integer division
query I rowsort label-7912
SELECT ALL + col1 - col1 * col1 DIV col2 AS col1 FROM tab1
----
12
14
9

skipif mysql # not compatible
query I rowsort label-7912
SELECT ALL + col1 - col1 * col1 / col2 AS col1 FROM tab1
----
12
14
9

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL = ( NULL )
----

query I rowsort
SELECT - tab2.col2 - tab2.col1 * col2 FROM tab2
----
-1560
-684
-864

query I rowsort
SELECT + col1 * + col2 * - col2 + col0 * + col2 AS col0 FROM tab1
----
-112128
-28842
-75654

query I rowsort
SELECT - col0 * col2 * - col1 FROM tab1
----
36480
4212
99840

query I rowsort
SELECT ALL - col1 * col0 + + col0 FROM tab0
----
-2040
-3360
-8010

query I rowsort
SELECT - col2 + col1 * + 30 * col0 FROM tab1 AS cor0
----
19143
2286
31104

query I rowsort
SELECT - col1 * col0 - cor0.col2 FROM tab0 AS cor0
----
-2097
-3396
-8181

query I rowsort
SELECT + ( col0 + - col1 ) AS col0 FROM tab0
----
-2
-62
-62

query I rowsort
SELECT DISTINCT + + 60 AS col1 FROM tab2 AS cor0
----
60

query I rowsort
SELECT ALL + + 0 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ( + col1 * - col2 ) FROM tab1
----
-1248
-1404
-570

query I rowsort
SELECT ALL 75 - col1 * col2 AS col0 FROM tab0
----
-22
-2763
-7387

onlyif mysql # use DIV operator for integer division
query I rowsort label-7925
SELECT - + col2 + col2 - + CAST( 64 + - col1 AS SIGNED ) DIV 79 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7925
SELECT - + col2 + col2 - + CAST ( 64 + - col1 AS INTEGER ) / 79 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + col2 * col0 col0 FROM tab0 AS cor0
----
3395
664118
68112

query I rowsort
SELECT DISTINCT + 28 AS col1 FROM tab1, tab1 cor0
----
28

query I rowsort
SELECT DISTINCT - - cor0.col1 * - 93 - - col0 * col1 AS col1 FROM tab0 AS cor0
----
-364
-5626
-5934

query I rowsort
SELECT ALL col0 * - 53 FROM tab1
----
-159
-3392
-4240

query I rowsort
SELECT + 63 FROM tab0, tab2 AS cor0
----
9 values hashing to c3eea92c46f2c49716f386a58b575025

query I rowsort
SELECT ALL + ( tab1.col2 ) AS col1 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT ALL 13 AS col1 FROM tab0, tab2 cor0, tab0 AS cor1, tab1 cor2
----
81 values hashing to b092e3fa17e78608cf120e97d1bfff67

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7933
SELECT - CAST( col1 AS SIGNED ) * col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

skipif mysql # not compatible
query I rowsort label-7933
SELECT - CAST ( col1 AS INTEGER ) * col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT + + 85 * + 79 AS col0 FROM tab0 AS cor0
----
6715
6715
6715

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7935
SELECT + - col1 + CAST( col2 AS SIGNED ) FROM tab0 AS cor0
----
-53
-9
-96

skipif mysql # not compatible
query I rowsort label-7935
SELECT + - col1 + CAST ( col2 AS INTEGER ) FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT ALL + - col0 + col2 * + cor0.col1 AS col0 FROM tab0 cor0
----
2814
62
7373

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 + col0 col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + col0 * - cor0.col0 + 57 * + col1 FROM tab1 AS cor0
----
-3526
-5659
1473

query I rowsort
SELECT ALL - col2 * ( ( - col0 ) * col1 ) AS col2 FROM tab1 AS cor0
----
36480
4212
99840

query I rowsort
SELECT ALL + + col2 * ( col2 ) FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT DISTINCT - + col0 + - ( - cor0.col1 ) FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT DISTINCT - - col1 + - 35 * col2 + - col1 AS col0 FROM tab2 AS cor0
----
-1330
-910
-945

query I rowsort
SELECT ALL + col0 + - 78 * col1 FROM tab2 AS cor0
----
-1247
-2411
-4524

query I rowsort
SELECT + col0 + 65 AS col0 FROM tab2 AS cor0
----
143
144
72

onlyif mysql # use DIV operator for integer division
query I rowsort label-7945
SELECT DISTINCT - ( col1 ) + ( col0 ) * col1 DIV col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7945
SELECT DISTINCT - ( col1 ) + ( col0 ) * col1 / col0 FROM tab0
----
0

query I rowsort
SELECT 11 * col0 + col2 * - 10 * - col0 FROM tab1
----
1653
37184
77680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 61 + - col2 + + col2 col1 FROM tab1
----
61
61
61

query I rowsort
SELECT tab1.col1 + + col0 - - tab1.col2 FROM tab1
----
131
189
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - tab1.col1 - + col2 col0 FROM tab1
----
-1344
-1458
-627

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7950
SELECT DISTINCT + + col0 * + CAST( - col2 AS SIGNED ) + col0 * col1 AS col0 FROM tab1 AS cor0
----
-3008
-6640
-84

skipif mysql # not compatible
query I rowsort label-7950
SELECT DISTINCT + + col0 * + CAST ( - col2 AS INTEGER ) + col0 * col1 AS col0 FROM tab1 AS cor0
----
-3008
-6640
-84

query I rowsort
SELECT - - col1 + 54 * col0 FROM tab1 AS cor0
----
188
3466
4333

query I rowsort
SELECT + + col1 + col1 * - col1 FROM tab1 AS cor0
----
-156
-650
-90

query I rowsort
SELECT DISTINCT - + col2 * col1 - col1 AS col2 FROM tab0 AS cor0
----
-194
-2924
-7553

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - col1 * - col1 col2 FROM tab1 AS cor0
----
156
650
90

query I rowsort
SELECT ALL 47 FROM tab2, tab2 AS cor0
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

query I rowsort
SELECT DISTINCT - col1 + col2 * 88 AS col0 FROM tab1 AS cor0
----
4726
5006
8435

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7957
SELECT - CAST( NULL AS DECIMAL ) - - col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7957
SELECT - CAST ( NULL AS REAL ) - - col2 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + cor0.col2 + + col0 AS col2 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT + 76 + - 88 FROM tab1
----
-12
-12
-12

query I rowsort
SELECT - - cor0.col1 + + col1 * - col1 * - col0 FROM tab1 cor0
----
13533
2054
6410

query I rowsort
SELECT + 74 * - col2 + col0 AS col0 FROM tab0 AS cor0
----
-2418
-39
-5979

query I rowsort
SELECT ALL 23 + + tab0.col1 FROM tab0
----
109
114
120

query I rowsort
SELECT ALL 89 * col2 + col0 FROM tab1
----
4809
5137
8624

query I rowsort
SELECT DISTINCT col2 + tab1.col1 AS col2 FROM tab1
----
109
67
80

query I rowsort
SELECT ALL 89 * + col0 * + 74 + col0 * + tab0.col0 * - 12 FROM tab0
----
151152
215810
491102

query I rowsort
SELECT - + col1 * + col0 - - col0 FROM tab2 AS cor0
----
-1264
-210
-4524

onlyif mysql # use DIV operator for integer division
query I rowsort label-7967
SELECT ALL - col1 DIV col2 + col2 AS col1 FROM tab0
----
-96
31
81

skipif mysql # not compatible
query I rowsort label-7967
SELECT ALL - col1 / col2 + col2 AS col1 FROM tab0
----
-96
31
81

query I rowsort
SELECT DISTINCT + 70 * col0 + + 43 AS col1 FROM tab2
----
533
5503
5573

query I rowsort
SELECT ALL + - 13 AS col0 FROM tab0 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to e95f5f4bd0f480397cced5f5e8a23792

query I rowsort
SELECT ALL + col2 + cor0.col0 * col2 AS col2 FROM tab2 cor0
----
2054
216
3040

query I rowsort
SELECT + + 80 - cor0.col0 FROM tab1 AS cor0
----
0
16
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 32 * col2 col2 FROM tab0 AS cor0
----
1056
2624
32

query I rowsort
SELECT 60 - - col1 * + col2 AS col1 FROM tab1 AS cor0
----
1308
1464
630

query I rowsort
SELECT DISTINCT + cor0.col1 * + col1 * - col1 FROM tab0 cor0
----
-636056
-753571
-912673

query I rowsort
SELECT ALL - cor0.col2 AS col1 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6

query I rowsort
SELECT DISTINCT + ( - col0 ) * + col2 AS col2 FROM tab0 AS cor0
----
-35
-7298
-792

onlyif mysql # use DIV operator for integer division
query I rowsort label-7977
SELECT DISTINCT - 23 DIV - cor0.col0 AS col0 FROM tab2 cor0
----
0
3

skipif mysql # not compatible
query I rowsort label-7977
SELECT DISTINCT - 23 / - cor0.col0 AS col0 FROM tab2 cor0
----
0
3

query I rowsort
SELECT ( col0 ) * + 59 FROM tab1 AS cor0
----
177
3776
4720

onlyif mysql # use DIV operator for integer division
query I rowsort label-7979
SELECT - cor0.col0 DIV + col1 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7979
SELECT - cor0.col0 / + col1 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT ALL - 26 + + cor0.col2 AS col0 FROM tab0 AS cor0
----
-25
56
7

query I rowsort
SELECT + col2 * - col1 + col1 AS col0 FROM tab2 AS cor0
----
-1475
-629
-806

query I rowsort
SELECT + col0 + + col2 * - col2 FROM tab0 AS cor0
----
-1065
-6635
34

query I rowsort
SELECT col2 + col0 * - 19 FROM tab2 AS cor0
----
-106
-1456
-1463

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7984
SELECT ALL - col0 * CAST( NULL AS DECIMAL ) + 69 * + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7984
SELECT ALL - col0 * CAST ( NULL AS REAL ) + 69 * + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col1 * + 70 - + ( - col1 ) FROM tab0 AS cor0
----
-5934
-6279
-6693

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7986
SELECT - - col2 * + CAST( NULL AS SIGNED ) + - 39 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7986
SELECT - - col2 * + CAST ( NULL AS INTEGER ) + - 39 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - col1 * - 29 FROM tab0 AS cor0
----
-2494
-2639
-2813

query I rowsort
SELECT cor0.col0 FROM tab2, tab2 AS cor0, tab2 cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT DISTINCT + - 13 AS col1 FROM tab2 cor0
----
-13

onlyif mysql # use DIV operator for integer division
query I rowsort label-7990
SELECT - + col1 * ( + col1 ) DIV col1 FROM tab2 AS cor0
----
-17
-31
-59

skipif mysql # not compatible
query I rowsort label-7990
SELECT - + col1 * ( + col1 ) / col1 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT ALL - 2 + - 97 AS col2 FROM tab1 AS cor0
----
-99
-99
-99

query I rowsort
SELECT ALL + ( - col1 ) * col2 + - 64 AS col2 FROM tab2 AS cor0
----
-1598
-710
-901

query I rowsort
SELECT DISTINCT + - 61 + + 83 AS col1 FROM tab1 AS cor0
----
22

query I rowsort
SELECT DISTINCT + ( tab0.col1 * + col0 ) AS col1 FROM tab0
----
2064
3395
8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 45 ) + - col0 col2 FROM tab2
----
-33
-34
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 33 col2 FROM tab0 AS cor0
----
33
33
33

query I rowsort
SELECT 8 * col2 + tab2.col1 AS col1 FROM tab2
----
247
267
321

query I rowsort
SELECT + 42 FROM tab0, tab0 AS cor0
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442

query I rowsort
SELECT + tab0.col2 + col0 * + col2 AS col2 FROM tab0
----
36
7380
825

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8000
SELECT + col2 / 55 + + col1 * + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8000
SELECT + col2 / 55 + + col1 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col0 + - 4 AS col1 FROM tab1
----
-68
-7
-84

onlyif mysql # use DIV operator for integer division
query I rowsort label-8002
SELECT + - col1 * - col1 + + col2 DIV 59 AS col0 FROM tab2 AS cor0
----
289
3481
961

skipif mysql # not compatible
query I rowsort label-8002
SELECT + - col1 * - col1 + + col2 / 59 AS col0 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT + - ( col0 ) * + col1 - - ( col2 ) * col1 * ( col1 ) FROM tab1 AS cor0
----
15184
36426
5060

onlyif mysql # use DIV operator for integer division
query I rowsort label-8004
SELECT - ( col1 ) DIV col0 FROM tab1
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-8004
SELECT - ( col1 ) / col0 FROM tab1
----
-8
0
0

query I rowsort
SELECT - 87 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 84bcab58a965cc8ae97b39d2d01b3d23

query I rowsort
SELECT DISTINCT cor0.col0 FROM tab1, tab1 cor0, tab2 AS cor1
----
3
64
80

query I rowsort
SELECT ALL + 90 * col1 AS col2 FROM tab2
----
1530
2790
5310

query I rowsort
SELECT - col2 + 71 AS col2 FROM tab2 AS cor0
----
33
44
45

query I rowsort
SELECT - + 23 + - col1 * col2 FROM tab1 cor0
----
-1271
-1427
-593

onlyif mysql # use DIV operator for integer division
query I rowsort label-8010
SELECT - col1 * col2 DIV col2 + - col0 - + tab0.col1 AS col2 FROM tab0
----
-196
-229
-271

skipif mysql # not compatible
query I rowsort label-8010
SELECT - col1 * col2 / col2 + - col0 - + tab0.col1 AS col2 FROM tab0
----
-196
-229
-271

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8011
SELECT ALL col0 * - col2 + - CAST( 68 + col0 * - 51 AS SIGNED ) col2 FROM tab2 cor0
----
100
1882
959

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8011
SELECT ALL col0 * - col2 + - CAST ( 68 + col0 * - 51 AS INTEGER ) col2 FROM tab2 cor0
----
100
1882
959

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + - col2 * col1 col1 FROM tab1 cor0
----
-1168
-1401
-506

onlyif mysql # use DIV operator for integer division
query I rowsort label-8013
SELECT DISTINCT - 33 DIV col2 FROM tab0 AS cor0
----
-1
-33
0

skipif mysql # not compatible
query I rowsort label-8013
SELECT DISTINCT - 33 / col2 FROM tab0 AS cor0
----
-1
-33
0

query I rowsort
SELECT ALL + + 98 FROM tab0 AS cor0
----
98
98
98

query I rowsort
SELECT - - 77 * col1 AS col1 FROM tab1 AS cor0
----
1001
2002
770

query I rowsort
SELECT DISTINCT col1 + + ( - col2 ) + + col2 AS col0 FROM tab1 AS cor0
----
10
13
26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8017
SELECT DISTINCT + col1 * CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8017
SELECT DISTINCT + col1 * CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + col1 * + col1 + col1 FROM tab2 AS cor0
----
306
3540
992

query I rowsort
SELECT cor0.col0 * col2 * + col2 FROM tab2 AS cor0
----
114076
5103
52728

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8020
SELECT col2 * - CAST( NULL AS SIGNED ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8020
SELECT col2 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 * + cor0.col0 * col1 AS col2 FROM tab2 AS cor0
----
22831
271518
6727

query I rowsort
SELECT + col2 + - 33 FROM tab1 AS cor0
----
21
24
63

query I rowsort
SELECT - col1 * 79 FROM tab1 cor0
----
-1027
-2054
-790

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 38 col1 FROM tab0, tab1 AS cor0
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7

query I rowsort
SELECT ALL - col2 * - 20 * col0 FROM tab2
----
3780
40560
60040

query I rowsort
SELECT DISTINCT - col1 + col1 * - col1 + col2 AS col1 FROM tab2 AS cor0
----
-268
-3514
-965

query I rowsort
SELECT ALL - - col2 + + ( - col1 ) FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT + - 61 * + col1 AS col1 FROM tab0 AS cor0
----
-5246
-5551
-5917

query I rowsort
SELECT + + cor0.col2 * 79 FROM tab1 AS cor0
----
4266
4503
7584

query I rowsort
SELECT + col2 * ( - col0 ) AS col0 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT ALL - cor0.col0 * ( + cor0.col1 ) * cor0.col2 AS col2 FROM tab1 AS cor0
----
-36480
-4212
-99840

query I rowsort
SELECT DISTINCT + + 47 FROM tab2 cor0
----
47

skipif mysql # not compatible
query I rowsort
SELECT + - CAST ( - col1 AS REAL ) * + col2 AS col2 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT ( 20 ) FROM tab1 AS cor0
----
20
20
20

query I rowsort
SELECT ALL + 8 * cor0.col1 FROM tab0 cor0
----
688
728
776

query I rowsort
SELECT DISTINCT - col2 * + 35 FROM tab0 AS cor0
----
-1155
-2870
-35

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8037
SELECT - - CAST( NULL AS SIGNED ) + + ( col0 ) * col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8037
SELECT - - CAST ( NULL AS INTEGER ) + + ( col0 ) * col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + 82 * col0 FROM tab0 AS cor0
----
-1968
-2870
-7298

query I rowsort
SELECT + 63 AS col1 FROM tab0 cor0
----
63
63
63

query I rowsort
SELECT - - col0 + cor0.col1 AS col2 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT + cor0.col0 * col1 + 30 FROM tab2 AS cor0
----
1373
247
4632

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 17 + col2 col2 FROM tab0 AS cor0
----
-16
16
65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 18 * ( col0 ) col2 FROM tab0
----
-1602
-432
-630

query I rowsort
SELECT ALL ( 42 * + tab2.col2 ) FROM tab2
----
1092
1134
1596

query I rowsort
SELECT cor0.col0 FROM tab0, tab0 cor0, tab2 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8046
SELECT + col2 * - col0 + CAST( col1 AS SIGNED ) FROM tab1 AS cor0
----
-136
-3638
-7667

skipif mysql # not compatible
query I rowsort label-8046
SELECT + col2 * - col0 + CAST ( col1 AS INTEGER ) FROM tab1 AS cor0
----
-136
-3638
-7667

query I rowsort
SELECT - + col0 + + col1 * + col2 FROM tab0 AS cor0
----
2814
62
7373

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0, tab0 cor1, tab2, tab0 cor2
----
3645 values hashing to 283f1c907a0999dbd972d3bd45746c06

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 21 col2 FROM tab2 AS cor0
----
21

query I rowsort
SELECT DISTINCT - ( - 95 ) + + cor0.col2 * col1 + - col0 AS col1 FROM tab1 AS cor0
----
1263
1496
601

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8051
SELECT ALL - + CAST( + col1 AS SIGNED ) + - col2 FROM tab2 cor0
----
-55
-58
-85

skipif mysql # not compatible
query I rowsort label-8051
SELECT ALL - + CAST ( + col1 AS INTEGER ) + - col2 FROM tab2 cor0
----
-55
-58
-85

query I rowsort
SELECT - col1 * col1 + - col2 AS col0 FROM tab1 AS cor0
----
-157
-265
-730

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 76 * + 69 col0 FROM tab1 AS cor0
----
-5244

query I rowsort
SELECT ALL - 78 + col1 AS col1 FROM tab2 AS cor0
----
-19
-47
-61

query I rowsort
SELECT - 17 + col1 FROM tab1 AS cor0
----
-4
-7
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-8056
SELECT ALL CAST( + col0 AS SIGNED ) DIV + col1 + + 24 FROM tab2 AS cor0
----
24
25
28

skipif mysql # not compatible
query I rowsort label-8056
SELECT ALL CAST ( + col0 AS INTEGER ) / + col1 + + 24 FROM tab2 AS cor0
----
24
25
28

query I rowsort
SELECT ( - col0 ) + - cor0.col2 * 57 FROM tab1 AS cor0
----
-3081
-3313
-5552

query I rowsort
SELECT ALL 49 + 52 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to abec6b3410aa771c209e22ecdf81edba

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8059
SELECT DISTINCT ( - col2 ) / col2 + - CAST( NULL AS SIGNED ) * - cor0.col2 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8059
SELECT DISTINCT ( - col2 ) / col2 + - CAST ( NULL AS INTEGER ) * - cor0.col2 AS col0 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + col0 + + col1 col0 FROM tab0 AS cor0
----
132
7389
878

query I rowsort
SELECT DISTINCT - col1 + + col2 + - col1 FROM tab2 AS cor0
----
-35
-92
4

query I rowsort
SELECT DISTINCT + - col1 + + 20 FROM tab2 AS cor0
----
-11
-39
3

query I rowsort
SELECT ALL + - 73 - - col1 * col0 AS col1 FROM tab1 AS cor0
----
5
567
967

query I rowsort
SELECT + - ( 14 ) + + col2 AS col1 FROM tab0 AS cor0
----
-13
19
68

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8065
SELECT ALL + col0 * - col1 * + col1 + col2 * col2 + col0 * - CAST( NULL AS DECIMAL ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8065
SELECT ALL + col0 * - col1 * + col1 + col2 * col2 + col0 * - CAST ( NULL AS REAL ) AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - 77 * col0 AS col1 FROM tab1 cor0
----
-231
-4928
-6160

query I rowsort
SELECT + ( - tab1.col0 ) * - tab1.col2 FROM tab1
----
162
3648
7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col0 * col1 * + col2 col2 FROM tab2
----
119652
51034
5859

onlyif mysql # use DIV operator for integer division
query I rowsort label-8069
SELECT ALL + col0 * - col1 DIV - col1 + col0 * ( cor0.col1 ) FROM tab1 AS cor0
----
1120
704
81

skipif mysql # not compatible
query I rowsort label-8069
SELECT ALL + col0 * - col1 / - col1 + col0 * ( cor0.col1 ) FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT ALL cor0.col0 * + col0 + - col2 FROM tab0 AS cor0
----
1224
543
7839

query I rowsort
SELECT DISTINCT col2 - col2 * col2 FROM tab0 AS cor0
----
-1056
-6642
0

query I rowsort
SELECT DISTINCT col2 + - col0 AS col0 FROM tab0 cor0
----
-34
-7
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - cor0.col0 * - ( col2 ) + col1 col0 FROM tab1 AS cor0
----
-136
-3638
-7667

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8074
SELECT col0 * - ( col2 ) * col2 + - CAST( col0 AS SIGNED ) * + col0 - col0 col0 FROM tab1
----
-212096
-743760
-8760

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8074
SELECT col0 * - ( col2 ) * col2 + - CAST ( col0 AS INTEGER ) * + col0 - col0 col0 FROM tab1
----
-212096
-743760
-8760

query I rowsort
SELECT DISTINCT col0 * ( 79 ) - col0 FROM tab0
----
1872
2730
6942

query I rowsort
SELECT ALL + col1 - col1 AS col2 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + col0 * col1 - col1 col1 FROM tab1
----
106
1123
687

query I rowsort
SELECT ALL col1 - col2 * - col1 AS col0 FROM tab2
----
1593
663
868

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8079
SELECT DISTINCT col0 * CAST( NULL AS DECIMAL ) - 16 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8079
SELECT DISTINCT col0 * CAST ( NULL AS REAL ) - 16 FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 - 37 * col0 * + col1 col0 FROM tab0
----
-125712
-299754
-76454

query I rowsort
SELECT DISTINCT col2 + ( 13 ) FROM tab1 AS cor0
----
109
67
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + 75 col2 FROM tab0
----
-14
40
51

query I rowsort
SELECT + col0 * col2 + + col0 * 88 FROM tab0 AS cor0
----
15130
2904
3115

query I rowsort
SELECT DISTINCT + col1 + col1 + 71 * col0 FROM tab0 cor0
----
1876
2679
6501

onlyif mysql # use DIV operator for integer division
query I rowsort label-8085
SELECT DISTINCT - col2 DIV col0 - + col1 FROM tab0 AS cor0
----
-87
-91
-97

skipif mysql # not compatible
query I rowsort label-8085
SELECT DISTINCT - col2 / col0 - + col1 FROM tab0 AS cor0
----
-87
-91
-97

skipif mysql # not compatible
query I rowsort
SELECT - col0 + - CAST ( - col1 AS REAL ) * col1 AS col2 FROM tab0 AS cor0
----
7372
8192
9374

query I rowsort
SELECT ALL col1 + col0 + - col1 AS col0 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT DISTINCT 9 + - col2 FROM tab0 cor0
----
-24
-73
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 35 col0 FROM tab2 AS cor0
----
35
35
35

query I rowsort
SELECT DISTINCT + + 49 + col0 FROM tab1 AS cor0
----
113
129
52

query I rowsort
SELECT ALL + col1 * 30 + + col0 FROM tab2 AS cor0
----
1848
589
937

query I rowsort
SELECT DISTINCT col2 + 91 AS col0 FROM tab2
----
117
118
129

query I rowsort
SELECT ALL + 72 + + tab0.col2 FROM tab0
----
105
154
73

query I rowsort
SELECT ALL col1 + + col2 * - col1 FROM tab1
----
-1235
-1378
-560

onlyif mysql # use DIV operator for integer division
query I rowsort label-8095
SELECT + CAST( + col2 + col2 AS SIGNED ) * col2 DIV - col1 AS col0 FROM tab2
----
-169
-22
-47

skipif mysql # not compatible
query I rowsort label-8095
SELECT + CAST ( + col2 + col2 AS INTEGER ) * col2 / - col1 AS col0 FROM tab2
----
-169
-22
-47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * 65 * + col2 col1 FROM tab0 AS cor0
----
-2275
-474370
-51480

query I rowsort
SELECT - 36 * col0 AS col1 FROM tab1 AS cor0
----
-108
-2304
-2880

query I rowsort
SELECT ALL cor0.col1 + col2 * + cor0.col0 AS col2 FROM tab2 AS cor0
----
2087
220
3019

query I rowsort
SELECT ALL - cor1.col1 AS col0 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6

query I rowsort
SELECT DISTINCT + 88 AS col1 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
88

query I rowsort
SELECT DISTINCT - - cor0.col2 + - col0 * 19 AS col1 FROM tab2 AS cor0
----
-106
-1456
-1463

query I rowsort
SELECT - - cor0.col1 * cor0.col1 + 89 * col1 AS col0 FROM tab0 AS cor0
----
15050
16380
18042

query I rowsort
SELECT ALL - - 46 FROM tab2 AS cor0
----
46
46
46

query I rowsort
SELECT DISTINCT + 19 + col0 AS col2 FROM tab1 AS cor0
----
22
83
99

query I rowsort
SELECT col0 * - col0 + col1 * col0 AS col0 FROM tab2 AS cor0
----
-1482
-4898
168

onlyif mysql # use DIV operator for integer division
query I rowsort label-8106
SELECT ALL + - cor0.col1 * col1 DIV - col0 FROM tab0 AS cor0
----
268
308
93

skipif mysql # not compatible
query I rowsort label-8106
SELECT ALL + - cor0.col1 * col1 / - col0 FROM tab0 AS cor0
----
268
308
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 * + 40 col0 FROM tab2 AS cor0
----
1040
1080
1520

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8108
SELECT DISTINCT + col2 + + CAST( NULL AS SIGNED ) / col1 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8108
SELECT DISTINCT + col2 + + CAST ( NULL AS INTEGER ) / col1 FROM tab0 cor0
----
NULL

query I rowsort
SELECT cor0.col2 * col1 * col2 FROM tab0 AS cor0
----
611884
93654
97

query I rowsort
SELECT ALL col0 + - 18 * + 47 * - cor0.col1 FROM tab0 AS cor0
----
72780
77075
82097

query I rowsort
SELECT DISTINCT - + cor0.col2 * ( + cor0.col2 ) FROM tab1 AS cor0
----
-2916
-3249
-9216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - col2 * col0 col2 FROM tab2 cor0
----
-114076
-5103
-52728

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 * + col1 col0 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT DISTINCT - + cor0.col2 FROM tab2, tab0, tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT DISTINCT + col1 * ( - 68 ) AS col0 FROM tab1 AS cor0
----
-1768
-680
-884

onlyif mysql # use DIV operator for integer division
query I rowsort label-8116
SELECT ALL - col2 DIV + ( col1 * - cor0.col2 + 5 ) FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8116
SELECT ALL - col2 / + ( col1 * - cor0.col2 + 5 ) FROM tab2 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-8117
SELECT col0 DIV col1 + ( col2 + tab0.col1 ) * col2 AS col0 FROM tab0
----
14186
3927
98

skipif mysql # not compatible
query I rowsort label-8117
SELECT col0 / col1 + ( col2 + tab0.col1 ) * col2 AS col0 FROM tab0
----
14186
3927
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8118
SELECT - CAST( NULL AS SIGNED ) + + tab1.col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8118
SELECT - CAST ( NULL AS INTEGER ) + + tab1.col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + tab0.col0 AS col0 FROM tab0, tab1, tab1 cor0
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * + col2 col1 FROM tab0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT col2 + tab1.col1 + 97 FROM tab1
----
164
177
206

query I rowsort
SELECT - col1 * 67 FROM tab1 AS cor0
----
-1742
-670
-871

query I rowsort
SELECT ALL + 5 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 6797d40099023779b89feb627d94a3e7

query I rowsort
SELECT + col1 * + col1 * 46 AS col0 FROM tab2
----
13294
160126
44206

query I rowsort
SELECT DISTINCT + - 39 + cor0.col2 AS col2 FROM tab0, tab1, tab0 AS cor0
----
-38
-6
43

query I rowsort
SELECT - col1 + + 53 FROM tab1
----
27
40
43

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8127
SELECT + CAST( col0 AS SIGNED ) + col1 * - 97 col0 FROM tab1 AS cor0
----
-1181
-2519
-906

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8127
SELECT + CAST ( col0 AS INTEGER ) + col1 * - 97 col0 FROM tab1 AS cor0
----
-1181
-2519
-906

onlyif mysql # use DIV operator for integer division
query I rowsort label-8128
SELECT ALL + col1 + - tab0.col0 DIV + col0 AS col0 FROM tab0
----
85
90
96

skipif mysql # not compatible
query I rowsort label-8128
SELECT ALL + col1 + - tab0.col0 / + col0 AS col0 FROM tab0
----
85
90
96

query I rowsort
SELECT ALL col2 * ( col2 ) AS col0 FROM tab1
----
2916
3249
9216

query I rowsort
SELECT col2 * - ( 19 ) * - col0 FROM tab0
----
138662
15048
665

query I rowsort
SELECT DISTINCT - 91 * - 97 FROM tab1, tab2 AS cor0
----
8827

query I rowsort
SELECT - tab0.col1 * col1 + + col0 AS col0 FROM tab0
----
-7372
-8192
-9374

skipif mysql # not compatible
query I rowsort
SELECT ALL + CAST ( + 25 AS REAL ) - col2 FROM tab1 AS cor0
----
-29
-32
-71

onlyif mysql # use DIV operator for integer division
query I rowsort label-8134
SELECT DISTINCT col2 DIV col0 + col0 * - 0 * col2 FROM tab2 cor0
----
0
3

skipif mysql # not compatible
query I rowsort label-8134
SELECT DISTINCT col2 / col0 + col0 * - 0 * col2 FROM tab2 cor0
----
0
3

query I rowsort
SELECT + col0 * - 64 FROM tab0 AS cor0
----
-1536
-2240
-5696

query I rowsort
SELECT - - 31 + col1 + col0 * col1 AS col0 FROM tab2 AS cor0
----
1391
279
4692

query I rowsort
SELECT DISTINCT - - 3 + 33 AS col0 FROM tab0 AS cor0
----
36

query I rowsort
SELECT ALL + + ( col1 ) * col1 AS col1 FROM tab0 cor0
----
7396
8281
9409

query I rowsort
SELECT ALL col0 + col2 - - cor0.col2 * - col2 FROM tab1 AS cor0
----
-2859
-3128
-9040

query I rowsort
SELECT col0 * ( - col2 * + 55 ) FROM tab0
----
-1925
-401390
-43560

query I rowsort
SELECT col1 * - 43 FROM tab0
----
-3698
-3913
-4171

query I rowsort
SELECT - 74 * col2 FROM tab2
----
-1924
-1998
-2812

onlyif mysql # use DIV operator for integer division
query I rowsort label-8143
SELECT - CAST( - 39 AS SIGNED ) DIV - col0 AS col1 FROM tab2 AS cor0
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-8143
SELECT - CAST ( - 39 AS INTEGER ) / - col0 AS col1 FROM tab2 AS cor0
----
-5
0
0

query I rowsort
SELECT ( - col1 ) + + col1 AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT + - cor0.col1 * col2 AS col1 FROM tab2 AS cor0
----
-1534
-646
-837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 * - cor1.col1 col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 24458b87d784ecaf9184f99bd12fb51a

query I rowsort
SELECT DISTINCT - 74 AS col0 FROM tab2 cor0
----
-74

onlyif mysql # use DIV operator for integer division
query I rowsort label-8148
SELECT col1 * cor0.col1 DIV col0 FROM tab1 AS cor0
----
1
2
225

skipif mysql # not compatible
query I rowsort label-8148
SELECT col1 * cor0.col1 / col0 FROM tab1 AS cor0
----
1
2
225

query I rowsort
SELECT ALL - 59 + col1 FROM tab1 AS cor0
----
-33
-46
-49

query I rowsort
SELECT ALL - + col2 + - cor0.col0 * col0 AS col1 FROM tab0 AS cor0
----
-1226
-609
-8003

onlyif mysql # use DIV operator for integer division
query I rowsort label-8151
SELECT - + col1 * cor0.col2 * col2 + - col2 DIV col1 + - cor0.col2 FROM tab0 AS cor0
----
-611966
-93687
-98

skipif mysql # not compatible
query I rowsort label-8151
SELECT - + col1 * cor0.col2 * col2 + - col2 / col1 + - cor0.col2 FROM tab0 AS cor0
----
-611966
-93687
-98

query I rowsort
SELECT ALL col0 * + col1 * col2 FROM tab1
----
36480
4212
99840

onlyif mysql # use DIV operator for integer division
query I rowsort label-8153
SELECT - col1 * col1 - - cor0.col0 DIV - col2 FROM tab1 AS cor0
----
-101
-169
-676

skipif mysql # not compatible
query I rowsort label-8153
SELECT - col1 * col1 - - cor0.col0 / - col2 FROM tab1 AS cor0
----
-101
-169
-676

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8154
SELECT - - col0 * CAST( - col0 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-49
-6084
-6241

skipif mysql # not compatible
query I rowsort label-8154
SELECT - - col0 * CAST ( - col0 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT + col1 + 89 + - col2 AS col2 FROM tab2 AS cor0
----
122
68
93

query I rowsort
SELECT - col0 + + cor0.col1 + + col0 FROM tab2 AS cor0
----
17
31
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 * - 32 col2 FROM tab2 AS cor0
----
-1888
-544
-992

query I rowsort
SELECT DISTINCT - cor0.col0 AS col2 FROM tab2, tab1 cor0, tab0 AS cor1
----
-3
-64
-80

query I rowsort
SELECT - - col0 + - col1 + col1 FROM tab0 AS cor0
----
24
35
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-8160
SELECT col0 * - col0 * - col1 + tab0.col2 DIV + col2 AS col2 FROM tab0
----
118826
49537
720812

skipif mysql # not compatible
query I rowsort label-8160
SELECT col0 * - col0 * - col1 + tab0.col2 / + col2 AS col2 FROM tab0
----
118826
49537
720812

query I rowsort
SELECT ALL - cor1.col0 AS col1 FROM tab2, tab1, tab1 AS cor0, tab2 AS cor1
----
81 values hashing to adaea38eae032c1639715f21831dd376

query I rowsort
SELECT DISTINCT tab0.col2 * - col2 * col0 FROM tab0
----
-26136
-35
-598436

query I rowsort
SELECT col0 * - 66 * col2 - col0 AS col1 FROM tab1
----
-10695
-240832
-506960

query I rowsort
SELECT DISTINCT - - col0 * 66 FROM tab2 AS cor0
----
462
5148
5214

query I rowsort
SELECT + col1 * + ( col0 ) * + col0 AS col2 FROM tab0 AS cor0
----
118825
49536
720811

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8166
SELECT + col0 * + 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-8166
SELECT + col0 * + CAST ( NULL AS INTEGER ) col2 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 * ( col2 ) + col1 AS col2 FROM tab0
----
-706
-7207
62

query I rowsort
SELECT ALL - cor0.col2 + cor0.col1 * col0 AS col1 FROM tab1 AS cor0
----
24
583
944

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - col0 ) + + col2 col1 FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT DISTINCT + ( + col1 ) + - col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL + cor0.col2 * col0 - - col2 AS col2 FROM tab2 AS cor0
----
2054
216
3040

query I rowsort
SELECT - - 66 + + cor0.col0 FROM tab1 AS cor0
----
130
146
69

onlyif mysql # use DIV operator for integer division
query I rowsort label-8173
SELECT DISTINCT + 16 DIV col2 FROM tab0 AS cor0
----
0
16

skipif mysql # not compatible
query I rowsort label-8173
SELECT DISTINCT + 16 / col2 FROM tab0 AS cor0
----
0
16

query I rowsort
SELECT DISTINCT - 17 + 43 AS col1 FROM tab0 cor0
----
26

query I rowsort
SELECT ALL cor0.col0 * - ( - col0 ) * - col2 + 9 AS col1 FROM tab1 AS cor0
----
-233463
-477
-614391

query I rowsort
SELECT ALL + 19 - - col2 AS col2 FROM tab1 AS cor0
----
115
73
76

onlyif mysql # use DIV operator for integer division
query I rowsort label-8177
SELECT DISTINCT + - 77 DIV col0 + col2 AS col1 FROM tab1 AS cor0
----
29
56
96

skipif mysql # not compatible
query I rowsort label-8177
SELECT DISTINCT + - 77 / col0 + col2 AS col1 FROM tab1 AS cor0
----
29
56
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8178
SELECT ALL - CAST( NULL AS SIGNED ) / + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8178
SELECT ALL - CAST ( NULL AS INTEGER ) / + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + col1 - + 23 AS col0 FROM tab0 AS cor0
----
63
68
74

query I rowsort
SELECT ALL - col0 * - col0 - cor0.col2 * col2 FROM tab2 cor0
----
-680
4797
5408

query I rowsort
SELECT 51 + ( + cor0.col2 ) FROM tab1 AS cor0
----
105
108
147

onlyif mysql # use DIV operator for integer division
query I rowsort label-8182
SELECT + - CAST( col2 AS SIGNED ) DIV col0 - + 92 * - col0 FROM tab0 AS cor0
----
2207
3220
8188

skipif mysql # not compatible
query I rowsort label-8182
SELECT + - CAST ( col2 AS INTEGER ) / col0 - + 92 * - col0 FROM tab0 AS cor0
----
2207
3220
8188

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 - ( + tab1.col1 + + col1 * - col2 ) col2 FROM tab1
----
1315
1381
624

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 - 48 * tab1.col1 col1 FROM tab1
----
-1222
-470
-611

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8185
SELECT + - 87 * + ( col1 ) * CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8185
SELECT + - 87 * + ( col1 ) * CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 - 90 * col0 col0 FROM tab2 AS cor0
----
-661
-7079
-7127

query I rowsort
SELECT DISTINCT + 23 * col0 FROM tab2 AS cor0
----
161
1794
1817

query I rowsort
SELECT ALL cor0.col0 * cor0.col2 + - col0 * 52 FROM tab0 AS cor0
----
-1785
-456
2670

query I rowsort
SELECT - cor0.col2 - - col1 AS col2 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT - 15 * + col0 FROM tab2 AS cor0
----
-105
-1170
-1185

query I rowsort
SELECT DISTINCT + col2 * - 79 FROM tab1 AS cor0
----
-4266
-4503
-7584

onlyif mysql # use DIV operator for integer division
query I rowsort label-8192
SELECT DISTINCT ( - 23 ) DIV col1 AS col2 FROM tab1 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-8192
SELECT DISTINCT ( - 23 ) / col1 AS col2 FROM tab1 AS cor0
----
-1
-2
0

query I rowsort
SELECT ALL - col0 * + 20 AS col1 FROM tab2 AS cor0
----
-140
-1560
-1580

query I rowsort
SELECT ALL - + col2 + col1 * + col1 FROM tab2 AS cor0
----
251
3455
934

query I rowsort
SELECT - cor0.col2 * col0 * - col0 AS col0 FROM tab0 AS cor0
----
1225
19008
649522

onlyif mysql # use DIV operator for integer division
query I rowsort label-8196
SELECT + + ( + col1 ) DIV col2 AS col1 FROM tab0 AS cor0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-8196
SELECT + + ( + col1 ) / col2 AS col1 FROM tab0 AS cor0
----
1
2
97

query I rowsort
SELECT DISTINCT + cor0.col2 * - cor0.col0 AS col1 FROM tab0 AS cor0
----
-35
-7298
-792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 26 * col1 col0 FROM tab2 AS cor0
----
1534
442
806

query I rowsort
SELECT + 99 * col1 FROM tab1 AS cor0
----
1287
2574
990

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col2 + + col2 col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + 79 * + col1 FROM tab1 AS cor0
----
1027
2054
790

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col2 + - col0 * ( cor0.col1 ) col0 FROM tab0 AS cor0
----
-2031
-3394
-8017

query I rowsort
SELECT ALL - + col0 * - col1 + - col2 FROM tab0 AS cor0
----
2031
3394
8017

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * col2 + - 17 col1 FROM tab1 AS cor0
----
2899
3232
9199

query I rowsort
SELECT + col2 + col2 * col2 * col1 AS col1 FROM tab1 AS cor0
----
119904
32547
75870

query I rowsort
SELECT + col1 * 88 AS col2 FROM tab0 AS cor0
----
7568
8008
8536

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * col0 + 38 col1 FROM tab1 AS cor0
----
1078
116
678

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * col1 col0 FROM tab0 cor0
----
2064
3395
8099

query I rowsort
SELECT ALL + + col2 * + ( - col2 ) FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT DISTINCT + col1 + 89 FROM tab0 AS cor0
----
175
180
186

query I rowsort
SELECT + col2 * - 34 AS col2 FROM tab2 AS cor0
----
-1292
-884
-918

query I rowsort
SELECT - tab1.col1 AS col2 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6

query I rowsort
SELECT ALL 21 AS col0 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 312c166f4dc412730c43555105b1f44b

query I rowsort
SELECT DISTINCT 37 + tab1.col0 FROM tab1
----
101
117
40

query I rowsort
SELECT col2 * col2 + col2 AS col0 FROM tab0
----
1122
2
6806

query I rowsort
SELECT DISTINCT col0 * 57 + + col2 AS col2 FROM tab0 AS cor0
----
1401
1996
5155

query I rowsort
SELECT ALL + + cor0.col1 + + col2 + 48 FROM tab0 AS cor0
----
146
167
221

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab2, tab0 AS cor2
----
3645 values hashing to 66d12da55ea14263893cfc3170a3c57e

query I rowsort
SELECT ALL ( + col0 ) * col2 * + col2 AS col0 FROM tab1
----
207936
737280
8748

onlyif mysql # use DIV operator for integer division
query I rowsort label-8220
SELECT ALL + 49 DIV - tab2.col0 AS col1 FROM tab2
----
-7
0
0

skipif mysql # not compatible
query I rowsort label-8220
SELECT ALL + 49 / - tab2.col0 AS col1 FROM tab2
----
-7
0
0

query I rowsort
SELECT - 35 AS col2 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 6d967b3bac2e01a0318865f682f9a97b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 56 * col1 + col0 col1 FROM tab2 AS cor0
----
-1729
-3226
-873

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8223
SELECT ALL - col0 - col0 * + CAST( NULL AS SIGNED ) col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8223
SELECT ALL - col0 - col0 * + CAST ( NULL AS INTEGER ) col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 85 col2 FROM tab2 AS cor0
----
-85
-85
-85

onlyif mysql # use DIV operator for integer division
query I rowsort label-8225
SELECT DISTINCT - 16 DIV + col0 - + col1 AS col1 FROM tab1 cor0
----
-10
-13
-31

skipif mysql # not compatible
query I rowsort label-8225
SELECT DISTINCT - 16 / + col0 - + col1 AS col1 FROM tab1 cor0
----
-10
-13
-31

query I rowsort
SELECT 71 + - col0 FROM tab2 AS cor0
----
-7
-8
64

onlyif mysql # use DIV operator for integer division
query I rowsort label-8227
SELECT ALL - tab2.col2 + col2 DIV col1 FROM tab2
----
-26
-27
-36

skipif mysql # not compatible
query I rowsort label-8227
SELECT ALL - tab2.col2 + col2 / col1 FROM tab2
----
-26
-27
-36

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 IN ( + col0 * col2 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

query III rowsort
SELECT ALL * FROM tab0 WHERE ( - col1 + col0 * - col0 ) >= NULL
----

query I rowsort
SELECT ALL - col1 * - tab2.col1 * - col1 FROM tab2 WHERE NOT col1 * col0 * col0 + - col2 + col1 * - col1 >= NULL
----

query I rowsort
SELECT DISTINCT col2 * + col2 FROM tab2 WHERE NOT col2 > ( NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE + col1 * col2 <> ( - col0 / col0 - col1 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

query I rowsort
SELECT DISTINCT col1 * col1 * col1 FROM tab1
----
1000
17576
2197

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 - + col2 col2 FROM tab1
----
-108
-114
-192

query I rowsort
SELECT DISTINCT col2 * col1 * + tab1.col2 FROM tab1
----
119808
32490
75816

query I rowsort
SELECT ALL - col1 * + col1 * - col0 AS col1 FROM tab0
----
177504
329315
737009

onlyif mysql # use DIV operator for integer division
query I rowsort label-8237
SELECT - col1 * col0 + col2 DIV col2 FROM tab0
----
-2063
-3394
-8098

skipif mysql # not compatible
query I rowsort label-8237
SELECT - col1 * col0 + col2 / col2 FROM tab0
----
-2063
-3394
-8098

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 85 col2 FROM tab0, tab0 cor0, tab0 AS cor1
----
-85

query I rowsort
SELECT ALL - tab2.col2 - - col0 AS col2 FROM tab2
----
-20
41
52

query I rowsort
SELECT + col1 * col0 + col1 AS col2 FROM tab0
----
2150
3492
8190

query I rowsort
SELECT - 74 * + col1 FROM tab0 cor0
----
-6364
-6734
-7178

query I rowsort
SELECT ALL - col1 * - col2 * 30 AS col0 FROM tab1 AS cor0
----
17100
37440
42120

query I rowsort
SELECT DISTINCT + 10 * - col1 FROM tab1 cor0
----
-100
-130
-260

query I rowsort
SELECT cor0.col0 + col1 + - col2 FROM tab2 AS cor0
----
11
111
58

query I rowsort
SELECT + col0 - - col1 AS col1 FROM tab0 cor0
----
110
132
180

onlyif mysql # use DIV operator for integer division
query I rowsort label-8246
SELECT ALL - cor0.col1 + - col2 DIV col1 col2 FROM tab1 AS cor0
----
-15
-20
-28

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8246
SELECT ALL - cor0.col1 + - col2 / col1 col2 FROM tab1 AS cor0
----
-15
-20
-28

query I rowsort
SELECT col2 * - cor0.col2 + col1 AS col1 FROM tab0 AS cor0
----
-1003
-6633
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-8248
SELECT ALL tab0.col2 + col1 DIV tab0.col1 AS col2 FROM tab0
----
2
34
83

skipif mysql # not compatible
query I rowsort label-8248
SELECT ALL tab0.col2 + col1 / tab0.col1 AS col2 FROM tab0
----
2
34
83

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( - cor0.col0 )
----

query I rowsort
SELECT + col1 + col2 + cor0.col0 FROM tab2 AS cor0
----
134
163
65

query I rowsort
SELECT col1 - - col0 AS col0 FROM tab0 cor0
----
110
132
180

query I rowsort
SELECT + col1 * col1 FROM tab0 WHERE - col2 * + col0 >= NULL
----

query I rowsort
SELECT + col1 FROM tab1 WHERE NULL NOT BETWEEN tab1.col2 * + col1 * col0 AND NULL
----

query I rowsort
SELECT + col1 * + col0 * + tab1.col0 FROM tab1
----
234
40960
83200

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT BETWEEN ( + col0 * + col1 * col1 ) AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col1 IN ( + tab1.col0 + - col2 * col2 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

query I rowsort
SELECT col0 * col0 + tab1.col0 * + col2 * col1 AS col2 FROM tab1
----
106240
40576
4221

query I rowsort
SELECT ALL - + 69 + 73 FROM tab2 cor0
----
4
4
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-8259
SELECT col1 * 20 DIV col1 FROM tab0 AS cor0
----
20
20
20

skipif mysql # not compatible
query I rowsort label-8259
SELECT col1 * 20 / col1 FROM tab0 AS cor0
----
20
20
20

query I rowsort
SELECT DISTINCT - - col2 * col1 + + cor0.col2 AS col2 FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT ALL + - 58 + - col2 * col0 + - col1 FROM tab1 AS cor0
----
-246
-3716
-7751

query I rowsort
SELECT 98 * col1 - - col2 AS col2 FROM tab0 AS cor0
----
8461
9000
9507

query I rowsort
SELECT DISTINCT - ( - 42 ) * col0 * 61 FROM tab0 AS cor0
----
228018
61488
89670

onlyif mysql # use DIV operator for integer division
query I rowsort label-8264
SELECT DISTINCT col1 DIV + col2 + col1 * + tab0.col2 FROM tab0
----
194
2840
7463

skipif mysql # not compatible
query I rowsort label-8264
SELECT DISTINCT col1 / + col2 + col1 * + tab0.col2 FROM tab0
----
194
2840
7463

onlyif mysql # use DIV operator for integer division
query I rowsort label-8265
SELECT + 22 * col1 + col2 + 36 DIV + col0 AS col2 FROM tab0
----
1926
2084
2136

skipif mysql # not compatible
query I rowsort label-8265
SELECT + 22 * col1 + col2 + 36 / + col0 AS col2 FROM tab0
----
1926
2084
2136

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8266
SELECT CAST( + col0 AS SIGNED ) * - col2 AS col0 FROM tab2
----
-189
-2028
-3002

skipif mysql # not compatible
query I rowsort label-8266
SELECT CAST ( + col0 AS INTEGER ) * - col2 AS col0 FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT DISTINCT ( + col1 ) * col2 FROM tab1
----
1248
1404
570

query I rowsort
SELECT ALL - tab2.col1 + + col2 * col0 AS col2 FROM tab2
----
158
1969
2985

onlyif mysql # use DIV operator for integer division
query I rowsort label-8269
SELECT col0 DIV 46 + cor0.col1 col2 FROM tab0 AS cor0
----
86
92
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8269
SELECT col0 / 46 + cor0.col1 col2 FROM tab0 AS cor0
----
86
92
97

query I rowsort
SELECT 58 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to ef6e63aeed2581a168f07646d258f666

query I rowsort
SELECT - 98 + - ( - tab2.col1 ) FROM tab2
----
-39
-67
-81

query I rowsort
SELECT DISTINCT ( - tab1.col0 * col0 ) FROM tab1
----
-4096
-6400
-9

query I rowsort
SELECT DISTINCT + col1 + col2 * 78 FROM tab0 AS cor0
----
175
2660
6487

onlyif mysql # use DIV operator for integer division
query I rowsort label-8274
SELECT ALL - col2 + col2 * col2 DIV col0 FROM tab1 AS cor0
----
-7
19
918

skipif mysql # not compatible
query I rowsort label-8274
SELECT ALL - col2 + col2 * col2 / col0 FROM tab1 AS cor0
----
-7
19
918

query I rowsort
SELECT + 36 * + cor0.col1 FROM tab0 cor0
----
3096
3276
3492

query I rowsort
SELECT ALL - 3 AS col1 FROM tab1
----
-3
-3
-3

query I rowsort
SELECT DISTINCT + col2 + col1 * - col1 + col1 FROM tab1 cor0
----
-33
-596
-60

query I rowsort
SELECT ALL col2 * col1 * - cor0.col0 - col1 * col0 FROM tab1 AS cor0
----
-100880
-37120
-4290

query I rowsort
SELECT cor0.col0 - 55 AS col1 FROM tab0 cor0
----
-20
-31
34

query I rowsort
SELECT + 29 + col0 AS col0 FROM tab0
----
118
53
64

query I rowsort
SELECT ALL - ( 3 ) AS col2 FROM tab1
----
-3
-3
-3

onlyif mysql # use DIV operator for integer division
query I rowsort label-8282
SELECT + 26 DIV - ( + col2 ) + - col2 AS col1 FROM tab1
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-8282
SELECT + 26 / - ( + col2 ) + - col2 AS col1 FROM tab1
----
-54
-57
-96

query I rowsort
SELECT + col1 * cor0.col1 + + 9 AS col0 FROM tab1 cor0
----
109
178
685

query I rowsort
SELECT ALL - col2 * - col2 + col2 FROM tab0 cor0
----
1122
2
6806

query I rowsort
SELECT + + 47 AS col2 FROM tab1 AS cor0
----
47
47
47

query I rowsort
SELECT ALL col2 * 55 FROM tab2
----
1430
1485
2090

query I rowsort
SELECT DISTINCT 69 * col2 * + col1 FROM tab1
----
39330
86112
96876

query I rowsort
SELECT DISTINCT tab0.col2 FROM tab0, tab1, tab0 cor0
----
1
33
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 0 * - 22 + + col2 * - col2 + + cor0.col2 col0 FROM tab1 AS cor0
----
-2862
-3192
-9120

query I rowsort
SELECT ALL + col0 * ( tab2.col1 + col0 ) AS col0 FROM tab2
----
10686
266
7584

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 45 col1 FROM tab1
----
45
45
45

query I rowsort
SELECT DISTINCT - col0 * cor0.col0 + + cor0.col1 FROM tab0 AS cor0
----
-1128
-490
-7830

query I rowsort
SELECT ALL + 33 * col0 + - 78 FROM tab2 AS cor0
----
153
2496
2529

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 - - 71 * + col0 AS col1 FROM tab0 AS cor0
----
1704
2485
6319

query I rowsort
SELECT ALL - col1 + col1 * + col1 AS col0 FROM tab1 AS cor0
----
156
650
90

query I rowsort
SELECT DISTINCT - col1 - + col1 FROM tab2 AS cor0
----
-118
-34
-62

query I rowsort
SELECT DISTINCT - col1 * - cor0.col0 + cor0.col1 FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT DISTINCT + cor0.col2 + - cor0.col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT + col1 * col0 * 92 AS col1 FROM tab0 AS cor0
----
189888
312340
745108

query I rowsort
SELECT ALL + col2 * col0 * - col2 FROM tab0 AS cor0
----
-26136
-35
-598436

query I rowsort
SELECT DISTINCT + col0 + 23 AS col1 FROM tab0 AS cor0
----
112
47
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * + ( + col0 ) + col2 col0 FROM tab1 cor0
----
-4039
-6304
45

query I rowsort
SELECT + cor0.col2 * + col1 - col2 AS col2 FROM tab0 cor0
----
2805
7380
96

query I rowsort
SELECT - col1 * ( col2 ) * col0 FROM tab2 AS cor0
----
-119652
-51034
-5859

query I rowsort
SELECT + col1 * + col0 + + col0 + col1 FROM tab1 AS cor0
----
107
1133
714

query I rowsort
SELECT ALL 85 * + 52 * col1 + + ( col1 + - col0 ) AS col1 FROM tab1 AS cor0
----
114943
44146
57393

query I rowsort
SELECT + 94 + + cor0.col2 * col2 * 34 AS col2 FROM tab0 AS cor0
----
128
228710
37120

query I rowsort
SELECT DISTINCT + 14 * ( + col2 ) FROM tab2 AS cor0
----
364
378
532

query I rowsort
SELECT DISTINCT + ( cor0.col1 ) - col2 AS col1 FROM tab0 cor0
----
53
9
96

query I rowsort
SELECT + + ( 76 ) * - col1 + + 28 AS col2 FROM tab1 AS cor0
----
-1948
-732
-960

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8312
SELECT ALL + + CAST( 14 AS SIGNED ) FROM tab0 AS cor0
----
14
14
14

skipif mysql # not compatible
query I rowsort label-8312
SELECT ALL + + CAST ( 14 AS INTEGER ) FROM tab0 AS cor0
----
14
14
14

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8313
SELECT - + CAST( - 78 AS SIGNED ) col2 FROM tab2 AS cor0
----
78
78
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8313
SELECT - + CAST ( - 78 AS INTEGER ) col2 FROM tab2 AS cor0
----
78
78
78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8314
SELECT DISTINCT - CAST( NULL AS SIGNED ) * col1 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8314
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * col1 FROM tab1 cor0
----
NULL

query I rowsort
SELECT DISTINCT - cor0.col2 * + col1 + col2 FROM tab0 AS cor0
----
-2805
-7380
-96

query I rowsort
SELECT DISTINCT - 87 * + 16 FROM tab2 cor0
----
-1392

query I rowsort
SELECT + 9 + + col2 AS col0 FROM tab0 AS cor0
----
10
42
91

onlyif mysql # use DIV operator for integer division
query I rowsort label-8318
SELECT + - 9 * ( - col1 + cor0.col2 ) DIV col1 col1 FROM tab0 AS cor0
----
0
5
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8318
SELECT + - 9 * ( - col1 + cor0.col2 ) / col1 col1 FROM tab0 AS cor0
----
0
5
8

query I rowsort
SELECT ALL + - ( + col0 ) * col1 AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col1 ) * + cor0.col0 col2 FROM tab0 AS cor0
----
2064
3395
8099

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8321
SELECT ALL CAST( NULL AS SIGNED ) * + col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8321
SELECT ALL CAST ( NULL AS INTEGER ) * + col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-8322
SELECT - col1 + + ( cor0.col2 ) DIV ( 64 * col0 + col2 ) AS col1 FROM tab0 cor0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-8322
SELECT - col1 + + ( cor0.col2 ) / ( 64 * col0 + col2 ) AS col1 FROM tab0 cor0
----
-86
-91
-97

query I rowsort
SELECT - col0 + + 7 FROM tab0 cor0
----
-17
-28
-82

onlyif mysql # use DIV operator for integer division
query I rowsort label-8324
SELECT - ( col0 ) DIV col1 + - col2 + - col0 DIV + col2 col2 FROM tab0 cor0
----
-33
-36
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8324
SELECT - ( col0 ) / col1 + - col2 + - col0 / + col2 col2 FROM tab0 cor0
----
-33
-36
-83

query I rowsort
SELECT + 70 + 23 + + col2 FROM tab2 AS cor0
----
119
120
131

query I rowsort
SELECT DISTINCT + - 45 AS col1 FROM tab2 AS cor0
----
-45

query I rowsort
SELECT col0 * + 64 + col2 AS col2 FROM tab0 cor0
----
1569
2241
5778

query I rowsort
SELECT - + 49 * - col2 + col1 AS col1 FROM tab2 AS cor0
----
1333
1354
1879

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT - col0 + col0 * CAST ( + col1 * + col0 AS REAL ) col2 FROM tab1 AS cor0
----
231
40896
83120

query I rowsort
SELECT 5 * - 46 FROM tab1, tab1 AS cor0
----
9 values hashing to 002ff150bb48bdcb2406f0f72690c323

query I rowsort
SELECT ALL - col0 * 94 + col0 + col0 AS col2 FROM tab2 cor0
----
-644
-7176
-7268

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col2 - + col1 col1 FROM tab1 AS cor0
----
1235
1378
560

query I rowsort
SELECT - col0 * - col2 - col2 AS col1 FROM tab2 AS cor0
----
162
2002
2964

query I rowsort
SELECT - - cor0.col1 * col0 + 41 * - cor0.col0 * - col0 + - 7 * col1 FROM tab2 AS cor0
----
2009
253633
257105

query I rowsort
SELECT ALL + col0 + - cor0.col1 * + ( - col1 ) FROM tab0 AS cor0
----
7420
8370
9444

query I rowsort
SELECT + col0 + - 24 FROM tab2
----
-17
54
55

query I rowsort
SELECT DISTINCT + col0 * 42 + col2 + + col2 FROM tab0
----
1074
1472
3902

query I rowsort
SELECT + col2 + - 97 + + col2 FROM tab0 AS cor0
----
-31
-95
67

query I rowsort
SELECT + col0 + - 48 AS col2 FROM tab1
----
-45
16
32

query I rowsort
SELECT - col0 + col0 + col0 * tab0.col1 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT + col2 + ( + col1 * col2 ) AS col0 FROM tab1 AS cor0
----
1344
1458
627

onlyif mysql # use DIV operator for integer division
query I rowsort label-8342
SELECT ALL - col1 DIV + cor0.col1 + + col2 + col0 AS col2 FROM tab0 AS cor0
----
170
35
56

skipif mysql # not compatible
query I rowsort label-8342
SELECT ALL - col1 / + cor0.col1 + + col2 + col0 AS col2 FROM tab0 AS cor0
----
170
35
56

query I rowsort
SELECT ALL - tab2.col2 + - col2 * col1 FROM tab2
----
-1560
-684
-864

onlyif mysql # use DIV operator for integer division
query I rowsort label-8344
SELECT ALL + col2 + ( - 20 ) DIV col2 AS col0 FROM tab1
----
54
57
96

skipif mysql # not compatible
query I rowsort label-8344
SELECT ALL + col2 + ( - 20 ) / col2 AS col0 FROM tab1
----
54
57
96

query I rowsort
SELECT ALL - 46 * cor1.col0 * + cor0.col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to fb94c46314033a23538e997888266aff

query I rowsort
SELECT + 76 * tab1.col0 * 87 AS col0 FROM tab1
----
19836
423168
528960

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 85 * + cor0.col0 + + col0 col2 FROM tab1 AS cor0
----
258
5504
6880

skipif mysql # not compatible
query I rowsort
SELECT - - col2 * + col2 + + CAST ( + 9 * + col0 AS REAL ) + + col2 AS col0 FROM tab0 cor0
----
1338
317
7607

query I rowsort
SELECT - - col0 * cor0.col0 + - col2 FROM tab1 AS cor0
----
-45
4039
6304

query I rowsort
SELECT DISTINCT + col1 + - 24 FROM tab2
----
-7
35
7

query I rowsort
SELECT ALL col0 + 72 AS col1 FROM tab0
----
107
161
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col1 + col0 col0 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT ALL + col0 + + col1 * + cor0.col1 FROM tab1 AS cor0
----
164
249
679

onlyif mysql # use DIV operator for integer division
query I rowsort label-8354
SELECT + col1 DIV ( col1 ) FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8354
SELECT + col1 / ( col1 ) FROM tab0
----
1
1
1

query I rowsort
SELECT DISTINCT + 16 FROM tab2, tab2 AS cor0
----
16

query I rowsort
SELECT + + col2 - col2 AS col0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-8357
SELECT ( col2 ) DIV col1 AS col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8357
SELECT ( col2 ) / col1 AS col1 FROM tab0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8358
SELECT CAST( NULL AS SIGNED ) + - col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8358
SELECT CAST ( NULL AS INTEGER ) + - col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-8359
SELECT + 72 DIV 63 AS col1 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to da8a72a7967c0c73d91239275230aed9

skipif mysql # not compatible
query I rowsort label-8359
SELECT + 72 / 63 AS col1 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to da8a72a7967c0c73d91239275230aed9

query I rowsort
SELECT + + 57 * col2 FROM tab2 AS cor0
----
1482
1539
2166

onlyif mysql # use DIV operator for integer division
query I rowsort label-8361
SELECT - cor0.col2 + col2 * col0 + cor0.col2 DIV col0 AS col2 FROM tab1 AS cor0
----
126
3591
7585

skipif mysql # not compatible
query I rowsort label-8361
SELECT - cor0.col2 + col2 * col0 + cor0.col2 / col0 AS col2 FROM tab1 AS cor0
----
126
3591
7585

query I rowsort
SELECT DISTINCT + col2 + - 47 * col2 AS col2 FROM tab0
----
-1518
-3772
-46

query I rowsort
SELECT ( 17 ) + col1 + col0 AS col0 FROM tab1
----
110
46
91

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8364
SELECT + CAST( + cor0.col2 AS SIGNED ) AS col0 FROM tab1, tab1 cor0, tab0 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

skipif mysql # not compatible
query I rowsort label-8364
SELECT + CAST ( + cor0.col2 AS INTEGER ) AS col0 FROM tab1, tab1 cor0, tab0 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT - col0 - col2 AS col2 FROM tab2
----
-104
-117
-34

query I rowsort
SELECT - col1 + col2 + 51 * - col2 AS col0 FROM tab0
----
-147
-1736
-4191

query I rowsort
SELECT - col1 * - col2 * + ( + col1 * - col1 ) AS col0 FROM tab2 AS cor0
----
-186694
-5339854
-804357

query I rowsort
SELECT + - 2 AS col2 FROM tab0 AS cor0
----
-2
-2
-2

onlyif mysql # use DIV operator for integer division
query I rowsort label-8369
SELECT DISTINCT - col0 * col2 DIV 99 FROM tab2 AS cor0
----
-1
-20
-30

skipif mysql # not compatible
query I rowsort label-8369
SELECT DISTINCT - col0 * col2 / 99 FROM tab2 AS cor0
----
-1
-20
-30

query I rowsort
SELECT ALL - + 55 + cor0.col2 * col1 AS col0 FROM tab0 AS cor0
----
2783
42
7407

query I rowsort
SELECT ALL col1 + + col1 * col2 * + col2 FROM tab2 AS cor0
----
22630
24565
39943

query I rowsort
SELECT ALL 99 AS col1 FROM tab0
----
99
99
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - cor0.col1 col0 FROM tab2 AS cor0
----
-17
-31
-59

onlyif mysql # use DIV operator for integer division
query I rowsort label-8374
SELECT DISTINCT tab0.col2 - + col0 DIV - col1 AS col1 FROM tab0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-8374
SELECT DISTINCT tab0.col2 - + col0 / - col1 AS col1 FROM tab0
----
1
33
82

query I rowsort
SELECT DISTINCT - 41 - + col2 FROM tab1
----
-137
-95
-98

query I rowsort
SELECT DISTINCT col0 * col0 - tab0.col2 AS col1 FROM tab0
----
1224
543
7839

query I rowsort
SELECT ALL - ( col2 ) * col2 AS col0 FROM tab2 AS cor0
----
-1444
-676
-729

onlyif mysql # use DIV operator for integer division
query I rowsort label-8378
SELECT DISTINCT ( col0 ) + col0 DIV CAST( col1 AS SIGNED ) col0 FROM tab1 AS cor0
----
3
70
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8378
SELECT DISTINCT ( col0 ) + col0 / CAST ( col1 AS INTEGER ) col0 FROM tab1 AS cor0
----
3
70
86

query I rowsort
SELECT + tab0.col0 + - 91 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 95f3bcfff5f703cf94b1d2a4e14bbc44

query I rowsort
SELECT + col0 * tab1.col1 * 33 AS col2 FROM tab1
----
21120
2574
34320

query I rowsort
SELECT + ( 64 ) FROM tab1
----
64
64
64

query I rowsort
SELECT DISTINCT - 82 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
-82

query I rowsort
SELECT - cor0.col2 + col0 * - 36 FROM tab0 cor0
----
-1261
-3286
-897

query I rowsort
SELECT ALL - col1 * 49 * ( + col2 ) AS col1 FROM tab1 AS cor0
----
-27930
-61152
-68796

query I rowsort
SELECT + 47 FROM tab1, tab0 cor0
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

query I rowsort
SELECT ALL 16 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8387
SELECT DISTINCT + col0 + + CAST( NULL AS SIGNED ) * cor0.col2 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8387
SELECT DISTINCT + col0 + + CAST ( NULL AS INTEGER ) * cor0.col2 AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-8388
SELECT ALL - col0 DIV ( - 36 * - cor0.col0 ) + + ( + 19 + col1 ) * 41 FROM tab0 AS cor0
----
4305
4510
4756

skipif mysql # not compatible
query I rowsort label-8388
SELECT ALL - col0 / ( - 36 * - cor0.col0 ) + + ( + 19 + col1 ) * 41 FROM tab0 AS cor0
----
4305
4510
4756

query I rowsort
SELECT ALL + col0 * - ( col1 * - col2 + + col2 ) FROM tab0 AS cor0
----
3360
656820
67320

query I rowsort
SELECT - - ( - cor0.col2 ) FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75

query I rowsort
SELECT DISTINCT col0 * 0 AS col0 FROM tab2 AS cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-8392
SELECT + col0 DIV ( - 81 ) 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-8392
SELECT + col0 / ( - 81 ) col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT col0 + - col2 + + 62 FROM tab0 cor0
----
53
69
96

query I rowsort
SELECT DISTINCT col2 * ( col1 ) + col1 FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT + col0 + col2 * + 24 * - col0 AS col2 FROM tab2
----
-4529
-48594
-71969

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8396
SELECT CAST( NULL AS SIGNED ) * + 90 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8396
SELECT CAST ( NULL AS INTEGER ) * + 90 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + ( - col1 ) * col2 + ( 77 * - col2 ) AS col1 FROM tab1 cor0
----
-4959
-5562
-8640

query I rowsort
SELECT ALL + tab1.col1 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT DISTINCT - + cor0.col1 * 82 AS col1 FROM tab2, tab1, tab2 AS cor0
----
-1394
-2542
-4838

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 col1 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 82 col0 FROM tab1 AS cor0
----
-82
-82
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - cor0.col1 * col0 + + col0 col0 FROM tab0 AS cor0
----
2088
3430
8188

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8403
SELECT - col0 + col2 + - CAST( + col0 AS SIGNED ) FROM tab2 AS cor0
----
-120
-130
13

skipif mysql # not compatible
query I rowsort label-8403
SELECT - col0 + col2 + - CAST ( + col0 AS INTEGER ) FROM tab2 AS cor0
----
-120
-130
13

query I rowsort
SELECT ALL tab2.col0 - - col1 AS col0 FROM tab2
----
137
38
96

query I rowsort
SELECT ALL + col0 + - col0 * + col1 FROM tab0 AS cor0
----
-2040
-3360
-8010

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 45 + - col0 - - col1 * + 58 col1 FROM tab0 AS cor0
----
4919
5144
5546

query I rowsort
SELECT + col2 * + col1 - + col0 AS col2 FROM tab0 AS cor0
----
2814
62
7373

query I rowsort
SELECT DISTINCT - col1 * col2 + col1 * 1 FROM tab2 AS cor0
----
-1475
-629
-806

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8409
SELECT DISTINCT + col1 + - col2 * CAST( col2 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-2890
-3239
-9203

skipif mysql # not compatible
query I rowsort label-8409
SELECT DISTINCT + col1 + - col2 * CAST ( col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-2890
-3239
-9203

query I rowsort
SELECT DISTINCT - + 6 AS col2 FROM tab0 cor0
----
-6

onlyif mysql # use DIV operator for integer division
query I rowsort label-8411
SELECT - col2 * + col2 + + 5 DIV + col1 FROM tab1 AS cor0
----
-2916
-3249
-9216

skipif mysql # not compatible
query I rowsort label-8411
SELECT - col2 * + col2 + + 5 / + col1 FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT - cor0.col1 * col0 + 34 AS col2 FROM tab0 AS cor0
----
-2030
-3361
-8065

query I rowsort
SELECT - ( ( col2 ) ) FROM tab2
----
-26
-27
-38

query I rowsort
SELECT DISTINCT + 89 * tab0.col0 - tab0.col1 * 98 FROM tab0
----
-6292
-6391
-997

query I rowsort
SELECT ALL + col2 - + col1 * col0 AS col1 FROM tab0
----
-2031
-3394
-8017

query I rowsort
SELECT + col0 * tab0.col2 + ( + col0 * + col1 ) FROM tab0
----
15397
2856
3430

query I rowsort
SELECT ALL - col2 + col0 + col1 * - cor0.col0 * cor0.col0 AS col2 FROM tab2 AS cor0
----
-106056
-1539
-358904

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8418
SELECT - + 98 + - col1 * CAST( + 35 AS SIGNED ) FROM tab0 AS cor0
----
-3108
-3283
-3493

skipif mysql # not compatible
query I rowsort label-8418
SELECT - + 98 + - col1 * CAST ( + 35 AS INTEGER ) FROM tab0 AS cor0
----
-3108
-3283
-3493

query I rowsort
SELECT DISTINCT + - ( + col2 ) AS col1 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT DISTINCT - 21 * - cor0.col2 * + ( ( - col0 ) ) + - col2 AS col0 FROM tab0 AS cor0
----
-153340
-16665
-736

query I rowsort
SELECT DISTINCT col1 + + col2 * - col2 * - col2 FROM tab1 AS cor0
----
157490
185203
884749

query I rowsort
SELECT ALL + 54 + col2 AS col0 FROM tab2 AS cor0
----
80
81
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 98 + col1 col0 FROM tab0 AS cor0
----
184
189
195

query I rowsort
SELECT DISTINCT - 53 * - col1 + - ( - tab0.col0 ) AS col2 FROM tab0
----
4582
4912
5176

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 33 + col0 col2 FROM tab1 AS cor0
----
113
36
97

query I rowsort
SELECT DISTINCT - - 82 * col2 + - cor0.col0 AS col0 FROM tab2 AS cor0
----
2054
2207
3037

query I rowsort
SELECT DISTINCT - - cor0.col0 + - cor0.col0 AS col1 FROM tab0 cor0
----
0

query I rowsort
SELECT ALL - 84 AS col0 FROM tab0 AS cor0
----
-84
-84
-84

query I rowsort
SELECT + col2 + - col2 + tab1.col0 FROM tab1
----
3
64
80

query I rowsort
SELECT ALL col2 + + col1 AS col0 FROM tab2
----
55
58
85

query I rowsort
SELECT tab0.col0 * + col1 + + col2 + tab0.col2 * + col2 FROM tab0
----
14905
3186
3397

query I rowsort
SELECT col2 * 18 + - col2 AS col0 FROM tab0 AS cor0
----
1394
17
561

query I rowsort
SELECT + 8 + col1 FROM tab2
----
25
39
67

query I rowsort
SELECT ( - col1 ) + tab2.col2 + + col2 FROM tab2
----
-7
23
59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8435
SELECT col2 + col1 * - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8435
SELECT col2 + col1 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 84 * col2 * + col1 + - col2 FROM tab2 cor0
----
128830
54226
70281

onlyif mysql # use DIV operator for integer division
query I rowsort label-8437
SELECT ALL col2 + col0 DIV + ( col0 ) FROM tab1
----
55
58
97

skipif mysql # not compatible
query I rowsort label-8437
SELECT ALL col2 + col0 / + ( col0 ) FROM tab1
----
55
58
97

query I rowsort
SELECT + col2 + col1 * col1 AS col1 FROM tab2
----
327
3507
988

onlyif mysql # use DIV operator for integer division
query I rowsort label-8439
SELECT ALL col2 + + 30 DIV + col0 + col2 col2 FROM tab2 AS cor0
----
52
58
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8439
SELECT ALL col2 + + 30 / + col0 + col2 col2 FROM tab2 AS cor0
----
52
58
76

query I rowsort
SELECT DISTINCT - - col0 * 62 AS col0 FROM tab2 cor0
----
434
4836
4898

onlyif mysql # use DIV operator for integer division
query I rowsort label-8441
SELECT ALL + col0 * ( col0 ) + col1 DIV + col0 col1 FROM tab0 AS cor0
----
1227
579
7922

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8441
SELECT ALL + col0 * ( col0 ) + col1 / + col0 col1 FROM tab0 AS cor0
----
1227
579
7922

query I rowsort
SELECT ALL + cor1.col0 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

query I rowsort
SELECT + col1 + - 72 AS col0 FROM tab2 AS cor0
----
-13
-41
-55

query I rowsort
SELECT cor0.col1 * col2 + + 12 AS col0 FROM tab2 cor0
----
1546
658
849

query I rowsort
SELECT + col1 - + ( + col0 ) AS col0 FROM tab2 cor0
----
-19
-62
24

query I rowsort
SELECT + col0 * ( col0 ) + col2 FROM tab1 AS cor0
----
4153
63
6496

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8447
SELECT ALL + CAST( - 18 AS SIGNED ) * + col0 AS col2 FROM tab0 AS cor0
----
-1602
-432
-630

skipif mysql # not compatible
query I rowsort label-8447
SELECT ALL + CAST ( - 18 AS INTEGER ) * + col0 AS col2 FROM tab0 AS cor0
----
-1602
-432
-630

query I rowsort
SELECT 66 AS col0 FROM tab2, tab0 cor0
----
9 values hashing to 29794915b585eea848ad670075452c88

query I rowsort
SELECT ALL + + col2 + + cor0.col1 AS col1 FROM tab2 AS cor0
----
55
58
85

onlyif mysql # use DIV operator for integer division
query I rowsort label-8450
SELECT col1 DIV + ( col1 ) AS col0 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8450
SELECT col1 / + ( col1 ) AS col0 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT - 92 + col1 * col1 FROM tab1 AS cor0
----
584
77
8

query I rowsort
SELECT DISTINCT + + 78 * - 73 AS col1 FROM tab1 AS cor0
----
-5694

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8453
SELECT ALL - + CAST( col1 AS SIGNED ) + col0 * + 16 FROM tab2 AS cor0
----
1189
1247
81

skipif mysql # not compatible
query I rowsort label-8453
SELECT ALL - + CAST ( col1 AS INTEGER ) + col0 * + 16 FROM tab2 AS cor0
----
1189
1247
81

query I rowsort
SELECT - 53 * col2 FROM tab1 AS cor0
----
-2862
-3021
-5088

query I rowsort
SELECT 25 + cor0.col0 AS col1 FROM tab2 AS cor0
----
103
104
32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( 65 ) * + col1 col0 FROM tab1 AS cor0
----
-1690
-650
-845

query I rowsort
SELECT ALL ( tab1.col2 * col2 ) AS col1 FROM tab1
----
2916
3249
9216

query I rowsort
SELECT DISTINCT + tab1.col1 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
10
13
26

query I rowsort
SELECT - ( col1 ) * col1 - ( cor0.col0 * + col0 ) FROM tab1 AS cor0
----
-4196
-6569
-685

query I rowsort
SELECT DISTINCT - 93 + col0 * - col2 FROM tab0 AS cor0
----
-128
-7391
-885

query I rowsort
SELECT - + col0 * - cor0.col2 - + col0 AS col1 FROM tab1 cor0
----
159
3584
7600

query I rowsort
SELECT + - ( + col1 ) - - col0 AS col1 FROM tab0 AS cor0
----
-2
-62
-62

query I rowsort
SELECT ( col1 ) * col1 * - col0 FROM tab0 cor0
----
-177504
-329315
-737009

onlyif mysql # use DIV operator for integer division
query I rowsort label-8464
SELECT + cor0.col1 - + ( col0 + + 9 ) DIV 19 FROM tab0 AS cor0
----
85
86
95

skipif mysql # not compatible
query I rowsort label-8464
SELECT + cor0.col1 - + ( col0 + + 9 ) / 19 FROM tab0 AS cor0
----
85
86
95

query I rowsort
SELECT ALL - - col0 + - 94 FROM tab0 AS cor0
----
-5
-59
-70

query I rowsort
SELECT DISTINCT col2 * 74 AS col2 FROM tab1 AS cor0
----
3996
4218
7104

query I rowsort
SELECT DISTINCT + 40 * + 59 + col1 FROM tab2 AS cor0
----
2377
2391
2419

onlyif mysql # use DIV operator for integer division
query I rowsort label-8468
SELECT - ( col1 ) + - col0 DIV 95 + col2 AS col0 FROM tab0 AS cor0
----
-53
-9
-96

skipif mysql # not compatible
query I rowsort label-8468
SELECT - ( col1 ) + - col0 / 95 + col2 AS col0 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT - col1 + + col0 - col0 * - col2 AS col0 FROM tab0 AS cor0
----
-27
7296
730

query I rowsort
SELECT ALL 56 * + cor0.col2 + 7 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 10268ee8c7e2abae4d9ff7fa2b064d7e

query I rowsort
SELECT - col0 - - ( - col0 * col0 ) FROM tab1 cor0
----
-12
-4160
-6480

query I rowsort
SELECT DISTINCT + col1 * col2 * - tab2.col0 FROM tab2
----
-119652
-51034
-5859

query I rowsort
SELECT DISTINCT - - cor0.col1 FROM tab2, tab0, tab0 AS cor0
----
86
91
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-8474
SELECT DISTINCT - tab2.col1 DIV - tab2.col1 FROM tab2, tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8474
SELECT DISTINCT - tab2.col1 / - tab2.col1 FROM tab2, tab2 AS cor0
----
1

query I rowsort
SELECT ( + cor0.col1 ) FROM tab0, tab1 cor0, tab1 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT - col1 + ( 81 ) * col0 FROM tab2 AS cor0
----
536
6259
6382

onlyif mysql # use DIV operator for integer division
query I rowsort label-8477
SELECT col1 DIV - col0 + 56 * + col1 AS col1 FROM tab0 AS cor0
----
4813
5095
5430

skipif mysql # not compatible
query I rowsort label-8477
SELECT col1 / - col0 + 56 * + col1 AS col1 FROM tab0 AS cor0
----
4813
5095
5430

query I rowsort
SELECT - col0 + + col2 * 17 FROM tab2 cor0
----
364
452
567

query I rowsort
SELECT col1 + - col0 * + col1 * + col2 FROM tab2 AS cor0
----
-119593
-51017
-5828

query I rowsort
SELECT ALL 40 FROM tab2, tab2 cor0
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3

query I rowsort
SELECT - 15 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 1172c9a62bdad7db0def9205c06ee1f2

query I rowsort
SELECT ALL + col2 * - col0 + col2 FROM tab2 AS cor0
----
-162
-2002
-2964

query I rowsort
SELECT ALL - col1 * + col1 * col0 FROM tab0
----
-177504
-329315
-737009

query I rowsort
SELECT - + ( 13 ) FROM tab2 AS cor0
----
-13
-13
-13

query I rowsort
SELECT + 69 * col0 * col0 FROM tab2 AS cor0
----
3381
419796
430629

query I rowsort
SELECT ALL + 22 + - col1 * col2 FROM tab2 AS cor0
----
-1512
-624
-815

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + - 88 + col0 col0 FROM tab0 AS cor0
----
-150
-90

query I rowsort
SELECT DISTINCT + col0 * 66 + + col2 + + col2 * + cor0.col0 * - col1 FROM tab2 AS cor0
----
-114478
-45782
-5370

query I rowsort
SELECT DISTINCT - + col0 + + cor0.col1 AS col2 FROM tab0 AS cor0
----
2
62

query I rowsort
SELECT col0 + col2 * 37 AS col0 FROM tab1 AS cor0
----
2001
2173
3632

query I rowsort
SELECT + cor0.col0 * col2 + + 98 FROM tab2 cor0
----
2126
287
3100

query I rowsort
SELECT col1 * col0 * 74 + 67 * + col1 AS col1 FROM tab1
----
48030
7514
77831

query I rowsort
SELECT DISTINCT - 68 FROM tab0, tab2, tab0 AS cor0
----
-68

query I rowsort
SELECT DISTINCT ( - col1 ) * + 28 + tab2.col1 AS col0 FROM tab2
----
-1593
-459
-837

query I rowsort
SELECT DISTINCT 39 AS col0 FROM tab1, tab0 cor0, tab0 AS cor1
----
39

query I rowsort
SELECT ALL 50 AS col0 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 314aace40e704c20a6be06204a329f80

query I rowsort
SELECT + col0 * - cor0.col0 + + col2 AS col1 FROM tab1 AS cor0
----
-4039
-6304
45

query I rowsort
SELECT + ( 32 ) AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to d30a2acbf33c88274474306936d3227b

onlyif mysql # use DIV operator for integer division
query I rowsort label-8499
SELECT ALL + cor0.col0 + - 96 * col1 DIV + col1 AS col2 FROM tab2 AS cor0
----
-17
-18
-89

skipif mysql # not compatible
query I rowsort label-8499
SELECT ALL + cor0.col0 + - 96 * col1 / + col1 AS col2 FROM tab2 AS cor0
----
-17
-18
-89

onlyif mysql # use DIV operator for integer division
query I rowsort label-8500
SELECT ALL col0 DIV col0 - col1 * - cor0.col0 FROM tab1 AS cor0
----
1041
641
79

skipif mysql # not compatible
query I rowsort label-8500
SELECT ALL col0 / col0 - col1 * - cor0.col0 FROM tab1 AS cor0
----
1041
641
79

query I rowsort
SELECT DISTINCT + - col2 * - 34 AS col2 FROM tab1 AS cor0
----
1836
1938
3264

query I rowsort
SELECT ALL + col0 * col2 + col0 FROM tab1 AS cor0
----
165
3712
7760

query I rowsort
SELECT col0 + - col0 * + 73 AS col0 FROM tab1 AS cor0
----
-216
-4608
-5760

query I rowsort
SELECT col2 + + ( + col0 ) * col1 FROM tab2 AS cor0
----
1381
244
4628

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8505
SELECT DISTINCT - col1 * - CAST( NULL AS SIGNED ) * - col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8505
SELECT DISTINCT - col1 * - CAST ( NULL AS INTEGER ) * - col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + cor0.col0 + - col0 * col2 FROM tab1 AS cor0
----
-159
-3584
-7600

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 * - col1 - col2 * col1 col2 FROM tab2 AS cor0
----
-620
3068
697

query I rowsort
SELECT ( - col0 * 79 ) FROM tab2
----
-553
-6162
-6241

onlyif mysql # use DIV operator for integer division
query I rowsort label-8509
SELECT DISTINCT - 43 DIV + col1 FROM tab2
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-8509
SELECT DISTINCT - 43 / + col1 FROM tab2
----
-1
-2
0

query I rowsort
SELECT 21 * col2 AS col0 FROM tab2
----
546
567
798

query I rowsort
SELECT - 21 + - col1 FROM tab1 AS cor0
----
-31
-34
-47

query I rowsort
SELECT DISTINCT 48 + 62 + + col0 * - col0 FROM tab2
----
-5974
-6131
61

query I rowsort
SELECT + col0 + 3 * col2 + col0 FROM tab0
----
147
424
73

query I rowsort
SELECT ALL - 9 + - tab0.col2 * col0 FROM tab0
----
-44
-7307
-801

query I rowsort
SELECT ( + 33 ) - col0 AS col2 FROM tab0 AS cor0
----
-2
-56
9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8516
SELECT DISTINCT + CAST( - col0 AS SIGNED ) * + col0 AS col2 FROM tab0 cor0
----
-1225
-576
-7921

skipif mysql # not compatible
query I rowsort label-8516
SELECT DISTINCT + CAST ( - col0 AS INTEGER ) * + col0 AS col2 FROM tab0 cor0
----
-1225
-576
-7921

query I rowsort
SELECT - 83 - + 28 AS col0 FROM tab1 AS cor0
----
-111
-111
-111

query I rowsort
SELECT DISTINCT - 16 * col2 + + col2 AS col0 FROM tab0 AS cor0
----
-1230
-15
-495

query I rowsort
SELECT ALL + 38 FROM tab1 cor0
----
38
38
38

query I rowsort
SELECT ( + 94 ) + col0 + - col1 FROM tab0 cor0
----
32
32
92

query I rowsort
SELECT DISTINCT - ( 56 ) * - col0 FROM tab0 AS cor0
----
1344
1960
4984

onlyif mysql # use DIV operator for integer division
query I rowsort label-8522
SELECT + col2 * col2 + - col0 + - col0 DIV col0 FROM tab1 AS cor0
----
2912
3184
9135

skipif mysql # not compatible
query I rowsort label-8522
SELECT + col2 * col2 + - col0 + - col0 / col0 FROM tab1 AS cor0
----
2912
3184
9135

query I rowsort
SELECT DISTINCT ( - col2 ) * + col2 - + col2 * col2 * - col2 AS col0 FROM tab2 AS cor0
----
16900
18954
53428

onlyif mysql # use DIV operator for integer division
query I rowsort label-8524
SELECT ALL + + col1 DIV cor0.col1 + col1 * + col2 AS col2 FROM tab2 AS cor0
----
1535
647
838

skipif mysql # not compatible
query I rowsort label-8524
SELECT ALL + + col1 / cor0.col1 + col1 * + col2 AS col2 FROM tab2 AS cor0
----
1535
647
838

onlyif mysql # use DIV operator for integer division
query I rowsort label-8525
SELECT - col1 DIV - cor0.col1 + - cor0.col1 FROM tab2 AS cor0
----
-16
-30
-58

skipif mysql # not compatible
query I rowsort label-8525
SELECT - col1 / - cor0.col1 + - cor0.col1 FROM tab2 AS cor0
----
-16
-30
-58

query I rowsort
SELECT - col0 + col1 * col0 * col0 FROM tab1 AS cor0
----
231
40896
83120

query I rowsort
SELECT + col2 * col2 + - cor0.col0 FROM tab0 AS cor0
----
-34
1065
6635

query I rowsort
SELECT + ( col1 ) + - col0 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT + 2 + + cor0.col1 + cor0.col2 FROM tab1 AS cor0
----
111
69
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-8530
SELECT + col2 + - 57 DIV tab2.col0 FROM tab2
----
19
26
38

skipif mysql # not compatible
query I rowsort label-8530
SELECT + col2 + - 57 / tab2.col0 FROM tab2
----
19
26
38

query I rowsort
SELECT DISTINCT 98 + col1 AS col2 FROM tab2
----
115
129
157

query I rowsort
SELECT ALL + ( - col1 ) * - col1 + + col0 * col0 * - col2 AS col2 FROM tab0
----
-11612
-641241
8184

onlyif mysql # use DIV operator for integer division
query I rowsort label-8533
SELECT ( - 61 ) DIV - col0 AS col1 FROM tab1
----
0
0
20

skipif mysql # not compatible
query I rowsort label-8533
SELECT ( - 61 ) / - col0 AS col1 FROM tab1
----
0
0
20

query I rowsort
SELECT DISTINCT col0 * + tab2.col2 + - col2 AS col0 FROM tab2
----
162
2002
2964

query I rowsort
SELECT + col0 + col0 * col1 AS col2 FROM tab2
----
1422
224
4680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8536
SELECT DISTINCT - CAST( NULL AS SIGNED ) * col0 + col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8536
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * col0 + col2 FROM tab0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-8537
SELECT - 21 DIV + tab1.col0 FROM tab1
----
-7
0
0

skipif mysql # not compatible
query I rowsort label-8537
SELECT - 21 / + tab1.col0 FROM tab1
----
-7
0
0

query I rowsort
SELECT DISTINCT - col0 + + ( 36 ) * col0 + col0 FROM tab0 AS cor0
----
1260
3204
864

onlyif mysql # use DIV operator for integer division
query I rowsort label-8539
SELECT ALL + col0 DIV - col2 AS col2 FROM tab0 AS cor0
----
-1
-35
0

skipif mysql # not compatible
query I rowsort label-8539
SELECT ALL + col0 / - col2 AS col2 FROM tab0 AS cor0
----
-1
-35
0

query I rowsort
SELECT + cor0.col1 + + col1 * - col0 AS col2 FROM tab0 AS cor0
----
-1978
-3298
-8008

query I rowsort
SELECT DISTINCT col2 + ( - col1 ) FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT DISTINCT - + col1 + cor0.col2 AS col0 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT ALL + col1 + 17 AS col1 FROM tab2 AS cor0
----
34
48
76

query I rowsort
SELECT ALL - col1 - ( col1 + col0 * cor0.col0 ) FROM tab0 AS cor0
----
-1419
-748
-8103

query I rowsort
SELECT ALL - cor0.col0 * + 92 FROM tab0 AS cor0
----
-2208
-3220
-8188

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8546
SELECT DISTINCT cor0.col1 + + CAST( NULL AS SIGNED ) col0 FROM tab0 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8546
SELECT DISTINCT cor0.col1 + + CAST ( NULL AS INTEGER ) col0 FROM tab0 cor0
----
NULL

query I rowsort
SELECT ALL - col0 * col1 + cor0.col0 AS col1 FROM tab0 AS cor0
----
-2040
-3360
-8010

query I rowsort
SELECT cor0.col2 * ( - col0 ) FROM tab2 AS cor0
----
-189
-2028
-3002

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8549
SELECT col2 - col0 * CAST( + 91 AS SIGNED ) * col0 AS col2 FROM tab1
----
-372679
-582304
-765

skipif mysql # not compatible
query I rowsort label-8549
SELECT col2 - col0 * CAST ( + 91 AS INTEGER ) * col0 AS col2 FROM tab1
----
-372679
-582304
-765

query I rowsort
SELECT ALL + col2 * + ( col2 ) AS col1 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT DISTINCT - col2 * - 19 + - col1 FROM tab0 AS cor0
----
-78
1467
541

query I rowsort
SELECT ALL + col0 * cor0.col2 + col2 AS col1 FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT ALL - col0 + col0 + + cor0.col1 * - col1 FROM tab2 AS cor0
----
-289
-3481
-961

onlyif mysql # use DIV operator for integer division
query I rowsort label-8554
SELECT + col1 + + col0 DIV 22 FROM tab1
----
12
16
26

skipif mysql # not compatible
query I rowsort label-8554
SELECT + col1 + + col0 / 22 FROM tab1
----
12
16
26

query I rowsort
SELECT DISTINCT - col0 * 22 + + col2 AS col1 FROM tab1 AS cor0
----
-12
-1351
-1664

query I rowsort
SELECT DISTINCT - col0 + + ( 44 ) * col0 - col2 AS col2 FROM tab1
----
2695
3344
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 + ( - ( - col2 ) ) col1 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT + + cor0.col2 * + col2 AS col0 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT col2 * col0 + - tab2.col2 * - col2 AS col2 FROM tab2
----
2704
4446
918

query I rowsort
SELECT tab2.col1 + - col2 * col2 AS col1 FROM tab2
----
-1427
-617
-698

query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab2 WHERE NOT NULL >= ( NULL )
----

query I rowsort
SELECT DISTINCT col2 * col2 + col0 AS col1 FROM tab2 cor0
----
1523
736
754

query I rowsort
SELECT ALL - + col2 + - col0 * col0 AS col2 FROM tab1 cor0
----
-4153
-63
-6496

query I rowsort
SELECT DISTINCT + + cor0.col1 * - col0 AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT - 10 * + col1 + col0 FROM tab1
----
-257
-36
-50

query I rowsort
SELECT ALL + - cor0.col2 + - col0 * col1 FROM tab1 cor0
----
-1136
-132
-697

query I rowsort
SELECT + 31 + + col0 + col1 AS col0 FROM tab1 AS cor0
----
105
124
60

query I rowsort
SELECT DISTINCT 1 + + col0 FROM tab1 AS cor0
----
4
65
81

query I rowsort
SELECT 88 * - tab0.col0 * col1 FROM tab0
----
-181632
-298760
-712712

query I rowsort
SELECT DISTINCT + 57 FROM tab0
----
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-8571
SELECT ALL + col2 + - col2 DIV + cor0.col0 FROM tab2 AS cor0
----
24
26
38

skipif mysql # not compatible
query I rowsort label-8571
SELECT ALL + col2 + - col2 / + cor0.col0 FROM tab2 AS cor0
----
24
26
38

query I rowsort
SELECT ALL ( - col0 ) * + col0 AS col1 FROM tab2
----
-49
-6084
-6241

query I rowsort
SELECT ALL + col0 * col0 * + col0 FROM tab2 AS cor0
----
343
474552
493039

query I rowsort
SELECT - - 9 + col2 FROM tab0 AS cor0
----
10
42
91

query I rowsort
SELECT + - col0 * col1 * col2 AS col2 FROM tab1 AS cor0
----
-36480
-4212
-99840

query I rowsort
SELECT + col2 + + col0 * + col2 AS col2 FROM tab1 AS cor0
----
216
3705
7776

onlyif mysql # use DIV operator for integer division
query I rowsort label-8577
SELECT - col0 + - col1 DIV - 73 FROM tab2 AS cor0
----
-7
-78
-79

skipif mysql # not compatible
query I rowsort label-8577
SELECT - col0 + - col1 / - 73 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT - + 13 FROM tab0 AS cor0
----
-13
-13
-13

onlyif mysql # use DIV operator for integer division
query I rowsort label-8579
SELECT col0 + - cor0.col2 DIV cor0.col2 col0 FROM tab1 AS cor0
----
2
63
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8579
SELECT col0 + - cor0.col2 / cor0.col2 col0 FROM tab1 AS cor0
----
2
63
79

query I rowsort
SELECT ( - 85 ) + - cor0.col2 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 6aaa0e44613bb8b39a732467a352260e

query I rowsort
SELECT DISTINCT - col2 + col2 * + cor0.col0 FROM tab0 AS cor0
----
34
7216
759

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 + + cor0.col1 col0 FROM tab0 AS cor0
----
2
62
62

query I rowsort
SELECT + + col0 - + col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + cor0.col2 * 27 - + ( - col2 ) * + 33 FROM tab1 AS cor0
----
3240
3420
5760

query I rowsort
SELECT + 3 * 99 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 63d486414f9850266dfb6804b153668a

onlyif mysql # use DIV operator for integer division
query I rowsort label-8586
SELECT - - 81 DIV 39 AS col0 FROM tab1 AS cor0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-8586
SELECT - - 81 / 39 AS col0 FROM tab1 AS cor0
----
2
2
2

query I rowsort
SELECT - tab0.col1 * - 49 AS col1 FROM tab0
----
4214
4459
4753

query I rowsort
SELECT - col2 * col1 + - col0 * col0 AS col0 FROM tab0
----
-1322
-15383
-3414

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 73 col2 FROM tab0, tab0 AS cor0
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496

query I rowsort
SELECT DISTINCT + 68 AS col1 FROM tab0, tab2 AS cor0
----
68

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8591
SELECT DISTINCT - CAST( 98 AS SIGNED ) AS col2 FROM tab2
----
-98

skipif mysql # not compatible
query I rowsort label-8591
SELECT DISTINCT - CAST ( 98 AS INTEGER ) AS col2 FROM tab2
----
-98

query I rowsort
SELECT 95 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 14faa6dda52e3dfe1f5db2579c274a7e

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 15 col1 FROM tab0, tab2 AS cor0
----
15

query I rowsort
SELECT + 10 AS col2 FROM tab2
----
10
10
10

query I rowsort
SELECT DISTINCT - col2 * - col1 * col1 FROM tab2
----
10982
25947
90506

query I rowsort
SELECT 94 * col0 AS col1 FROM tab2 AS cor0
----
658
7332
7426

query I rowsort
SELECT ALL + 91 FROM tab1 cor0
----
91
91
91

query I rowsort
SELECT ALL col2 + col2 * + ( cor0.col2 + col0 * - col2 ) FROM tab2 AS cor0
----
-112594
-4347
-52026

query I rowsort
SELECT DISTINCT col1 + 89 FROM tab2
----
106
120
148

query I rowsort
SELECT ALL + 15 AS col1 FROM tab2
----
15
15
15

query I rowsort
SELECT col0 * + col2 + - col1 AS col0 FROM tab1
----
136
3638
7667

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8602
SELECT ALL + col1 * + col2 / CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8602
SELECT ALL + col1 * + col2 / CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - 82 * cor0.col0 AS col1 FROM tab2 AS cor0
----
-574
-6396
-6478

query I rowsort
SELECT ALL - 49 + col2 AS col2 FROM tab1 AS cor0
----
47
5
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * col2 + - col0 col1 FROM tab2 AS cor0
----
-196
-2106
-3081

query I rowsort
SELECT ALL + + 24 AS col2 FROM tab2 AS cor0
----
24
24
24

query I rowsort
SELECT DISTINCT - col2 - 13 * + tab2.col0 FROM tab2
----
-1040
-1065
-118

query I rowsort
SELECT - col0 * 40 + + col0 AS col1 FROM tab2
----
-273
-3042
-3081

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8609
SELECT - + col0 + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8609
SELECT - + col0 + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col1 * 17 - - col1 FROM tab2
----
1062
306
558

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 52 * - col0 + + col2 col0 FROM tab0 cor0
----
-1215
-1819
-4546

query I rowsort
SELECT 65 + col1 AS col1 FROM tab2 AS cor0
----
124
82
96

query I rowsort
SELECT DISTINCT + - col2 + - 93 + col2 FROM tab1 AS cor0
----
-93

onlyif mysql # use DIV operator for integer division
query I rowsort label-8614
SELECT ALL - col2 DIV + col2 - col1 * col1 AS col2 FROM tab1 cor0
----
-101
-170
-677

skipif mysql # not compatible
query I rowsort label-8614
SELECT ALL - col2 / + col2 - col1 * col1 AS col2 FROM tab1 cor0
----
-101
-170
-677

query I rowsort
SELECT ALL + col0 + col1 * + col2 FROM tab0 AS cor0
----
132
2862
7551

query I rowsort
SELECT + 22 * - col0 + + col2 * col1 FROM tab0 AS cor0
----
-673
2310
5504

query I rowsort
SELECT - col2 + 38 FROM tab0 cor0
----
-44
37
5

query I rowsort
SELECT + + col0 + - 77 FROM tab2 AS cor0
----
-70
1
2

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - CAST ( - cor0.col0 AS REAL ) AS col2 FROM tab1 cor0
----
3
64
80

query I rowsort
SELECT - col0 + + 81 FROM tab2 AS cor0
----
2
3
74

query I rowsort
SELECT ALL 19 AS col1 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 86c53e8567a17c8d91fc5aff119e0498

query I rowsort
SELECT - - col2 * + cor0.col1 FROM tab0 cor0
----
2838
7462
97

query I rowsort
SELECT ALL - ( col0 ) - col1 AS col2 FROM tab0 AS cor0
----
-110
-132
-180

query I rowsort
SELECT ( + col0 ) + col2 * + col1 AS col2 FROM tab0 AS cor0
----
132
2862
7551

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 - 60 * - col1 FROM tab2 AS cor0
----
1020
1860
3540

query I rowsort
SELECT ALL + col1 - 38 AS col0 FROM tab1 AS cor0
----
-12
-25
-28

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab2 cor2, tab0 AS cor3
----
3645 values hashing to 752ce7d2fdd0678058de6a90ff2b0f3a

query I rowsort
SELECT 7 + + cor0.col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 3d5aee103edbbe514952d9b03a9c1f88

query I rowsort
SELECT tab2.col0 * 64 FROM tab2, tab2 AS cor0
----
9 values hashing to 461ef4be55d240f44dc07da96ad128fd

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 18 col2 FROM tab1, tab1 cor0
----
9 values hashing to 09afafec657a5e9f082beb6a16ec85de

query I rowsort
SELECT DISTINCT - tab0.col1 + tab0.col1 AS col2 FROM tab0
----
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8633
SELECT + - ( + col2 ) + cor0.col1 * - CAST( NULL AS SIGNED ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8633
SELECT + - ( + col2 ) + cor0.col1 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 50 AS col2 FROM tab2, tab0 cor0
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52

query I rowsort
SELECT DISTINCT - cor0.col2 * + col0 + col1 * col1 + + 0 FROM tab0 AS cor0
----
6604
9374
983

query I rowsort
SELECT + col1 - col2 * - cor0.col1 AS col1 FROM tab2 cor0
----
1593
663
868

query I rowsort
SELECT DISTINCT + - col0 * 0 + + cor0.col0 FROM tab0 cor0
----
24
35
89

query I rowsort
SELECT ALL + ( - col2 + + 93 ) FROM tab0
----
11
60
92

query I rowsort
SELECT - 50 * col2 + 67 AS col2 FROM tab1
----
-2633
-2783
-4733

query I rowsort
SELECT - col2 * + col1 + - ( + col0 ) FROM tab2
----
-1612
-725
-844

query I rowsort
SELECT + + 51 FROM tab2, tab0, tab1 cor0
----
27 values hashing to 02a7de94365b8cb5b5cb92c4b1d1e7c5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 42 col2 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 325aada2239b6fe1fe2d843515ae8c5e

query I rowsort
SELECT ALL + col0 + - cor0.col2 * - col2 AS col1 FROM tab2 AS cor0
----
1523
736
754

query I rowsort
SELECT - col2 * - col2 + col0 + + col1 * + cor0.col0 * col1 AS col0 FROM tab1 cor0
----
22816
4947
9713

query I rowsort
SELECT DISTINCT + 87 * + cor0.col2 FROM tab0 AS cor0
----
2871
7134
87

query I rowsort
SELECT ALL cor0.col2 AS col1 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT ALL 91 + col1 AS col2 FROM tab1 AS cor0
----
101
104
117

query I rowsort
SELECT + + col2 * col2 * - col0 AS col0 FROM tab2 AS cor0
----
-114076
-5103
-52728

query I rowsort
SELECT ALL - + col0 + col1 * col0 - + 22 * - col0 FROM tab0 cor0
----
2568
4130
9968

query I rowsort
SELECT DISTINCT - + 57 * col2 - + col1 AS col1 FROM tab2 AS cor0
----
-1541
-1570
-2183

query I rowsort
SELECT 42 FROM tab2, tab0 AS cor0, tab2 cor1
----
27 values hashing to 325aada2239b6fe1fe2d843515ae8c5e

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 * - col1 col1 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT ALL - col2 * col1 * col1 FROM tab0 AS cor0
----
-244068
-679042
-9409

query I rowsort
SELECT ALL cor0.col0 * + col0 + col1 * col1 AS col1 FROM tab1 cor0
----
4196
6569
685

query I rowsort
SELECT ALL - col2 * + 69 * col0 + + col0 FROM tab2 AS cor0
----
-13034
-139854
-207059

query I rowsort
SELECT DISTINCT - + col0 + 41 * - col0 FROM tab2 AS cor0
----
-294
-3276
-3318

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8657
SELECT DISTINCT + col0 - CAST( col1 AS SIGNED ) * - col2 * ( ( cor0.col1 ) ) AS col1 FROM tab0 AS cor0
----
244092
679131
9444

skipif mysql # not compatible
query I rowsort label-8657
SELECT DISTINCT + col0 - CAST ( col1 AS INTEGER ) * - col2 * ( ( cor0.col1 ) ) AS col1 FROM tab0 AS cor0
----
244092
679131
9444

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 col0 FROM tab2 cor0
----
17
31
59

query I rowsort
SELECT DISTINCT + col1 * - col2 AS col2 FROM tab0 cor0
----
-2838
-7462
-97

query I rowsort
SELECT ALL col0 * - 66 FROM tab0 AS cor0
----
-1584
-2310
-5874

query I rowsort
SELECT - ( 93 ) FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to ea79c61f7a02d25805171f5e85229fba

query I rowsort
SELECT DISTINCT - cor0.col0 + col1 AS col0 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT ALL + tab0.col2 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8664
SELECT DISTINCT - cor0.col0 + - CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8664
SELECT DISTINCT - cor0.col0 + - CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL

query I rowsort
SELECT DISTINCT col2 * + col2 * + 3 AS col0 FROM tab0
----
20172
3
3267

query I rowsort
SELECT - col1 * - cor0.col1 * ( col2 ) AS col2 FROM tab2 AS cor0
----
10982
25947
90506

query I rowsort
SELECT tab1.col1 * 69 + - col2 FROM tab1
----
1740
633
801

query I rowsort
SELECT 14 FROM tab0, tab2 cor0
----
9 values hashing to 83e5779d2487d12495e7d816c797264f

query I rowsort
SELECT col0 + - 69 * col0 * + col2 FROM tab2
----
-13034
-139854
-207059

query I rowsort
SELECT DISTINCT + 40 * cor0.col0 FROM tab2, tab1, tab0 AS cor0, tab0
----
1400
3560
960

onlyif mysql # use DIV operator for integer division
query I rowsort label-8671
SELECT col1 * - cor0.col2 + ( + 59 ) DIV col0 + 82 * col0 AS col2 FROM tab1 AS cor0
----
-1139
4678
5312

skipif mysql # not compatible
query I rowsort label-8671
SELECT col1 * - cor0.col2 + ( + 59 ) / col0 + 82 * col0 AS col2 FROM tab1 AS cor0
----
-1139
4678
5312

query I rowsort
SELECT + col2 + col1 * + ( + col1 ) FROM tab1 AS cor0
----
157
265
730

onlyif mysql # use DIV operator for integer division
query I rowsort label-8673
SELECT + col2 + col2 DIV ( + 71 ) FROM tab2 AS cor0
----
26
27
38

skipif mysql # not compatible
query I rowsort label-8673
SELECT + col2 + col2 / ( + 71 ) FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT DISTINCT col2 + col0 * col2 FROM tab2
----
2054
216
3040

query I rowsort
SELECT + 96 * - col1 FROM tab1
----
-1248
-2496
-960

onlyif mysql # use DIV operator for integer division
query I rowsort label-8676
SELECT + col1 * col2 DIV tab1.col0 AS col1 FROM tab1
----
15
468
8

skipif mysql # not compatible
query I rowsort label-8676
SELECT + col1 * col2 / tab1.col0 AS col1 FROM tab1
----
15
468
8

query I rowsort
SELECT - + 13 + + col0 - col2 AS col2 FROM tab0 AS cor0
----
-22
-6
21

query I rowsort
SELECT - col1 * - 23 * - col1 + col1 FROM tab0
----
-170022
-190372
-216310

query I rowsort
SELECT ( - ( - tab1.col0 ) ) * col1 * + col1 AS col0 FROM tab1
----
13520
2028
6400

onlyif mysql # use DIV operator for integer division
query I rowsort label-8680
SELECT - col2 * - col0 + col1 DIV - 27 FROM tab1 AS cor0
----
162
3648
7680

skipif mysql # not compatible
query I rowsort label-8680
SELECT - col2 * - col0 + col1 / - 27 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT DISTINCT col0 + col0 * ( - 66 ) AS col2 FROM tab2 AS cor0
----
-455
-5070
-5135

onlyif mysql # use DIV operator for integer division
query I rowsort label-8682
SELECT ALL - col2 + + col2 DIV + col1 AS col1 FROM tab0 AS cor0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-8682
SELECT ALL - col2 + + col2 / + col1 AS col1 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT ALL col0 + col2 * ( + 45 ) FROM tab0 cor0
----
1509
3779
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + col0 + + col1 * + col0 * col0 col1 FROM tab1 AS cor0
----
263
41034
83293

query I rowsort
SELECT DISTINCT + 55 * - col0 FROM tab1 AS cor0
----
-165
-3520
-4400

query I rowsort
SELECT ALL - col2 * + col1 + + col1 FROM tab0 cor0
----
-2752
-7371
0

query I rowsort
SELECT ( + col0 * - col1 ) AS col1 FROM tab0
----
-2064
-3395
-8099

query I rowsort
SELECT DISTINCT + cor1.col1 AS col0 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
86
91
97

query I rowsort
SELECT DISTINCT - col2 * 30 AS col2 FROM tab1
----
-1620
-1710
-2880

query I rowsort
SELECT - + 50 * - col0 FROM tab0 AS cor0
----
1200
1750
4450

query I rowsort
SELECT 8 + - col1 * col2 FROM tab1 AS cor0
----
-1240
-1396
-562

query I rowsort
SELECT ( + 41 * col0 ) AS col2 FROM tab2
----
287
3198
3239

query I rowsort
SELECT DISTINCT + 95 AS col1 FROM tab0
----
95

onlyif mysql # use DIV operator for integer division
query I rowsort label-8694
SELECT + col1 * + col2 + ( tab2.col2 ) DIV col1 AS col2 FROM tab2
----
1534
648
837

skipif mysql # not compatible
query I rowsort label-8694
SELECT + col1 * + col2 + ( tab2.col2 ) / col1 AS col2 FROM tab2
----
1534
648
837

query I rowsort
SELECT ALL 53 + col0 FROM tab1 AS cor0
----
117
133
56

query I rowsort
SELECT DISTINCT + - cor0.col1 + col1 * ( col0 ) - + col0 FROM tab0 AS cor0
----
1954
3263
7919

query I rowsort
SELECT ALL + - col1 * - col2 + ( col2 ) AS col2 FROM tab1 AS cor0
----
1344
1458
627

onlyif mysql # use DIV operator for integer division
query I rowsort label-8698
SELECT DISTINCT col1 DIV col0 + - col0 FROM tab1 AS cor0
----
-64
-80
5

skipif mysql # not compatible
query I rowsort label-8698
SELECT DISTINCT col1 / col0 + - col0 FROM tab1 AS cor0
----
-64
-80
5

onlyif mysql # use DIV operator for integer division
query I rowsort label-8699
SELECT ALL 52 DIV cor0.col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8699
SELECT ALL 52 / cor0.col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + - cor0.col2 * cor0.col2 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT - col2 + + 92 FROM tab0 AS cor0
----
10
59
91

query I rowsort
SELECT - col2 + col2 AS col0 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT - col0 * - col1 * + col1 + col2 AS col2 FROM tab0 AS cor0
----
177537
329316
737091

query I rowsort
SELECT ALL col2 * - 27 * col0 AS col0 FROM tab2
----
-5103
-54756
-81054

query I rowsort
SELECT ALL cor1.col2 FROM tab1 AS cor0 CROSS JOIN tab1, tab2 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT - col2 * cor0.col1 - - col2 FROM tab2 AS cor0
----
-1508
-608
-810

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 + 23 * + 72 * col1 col2 FROM tab1 AS cor0
----
16570
21541
43082

query I rowsort
SELECT - col0 * + ( + 61 ) AS col2 FROM tab1 cor0
----
-183
-3904
-4880

query I rowsort
SELECT + col0 - 80 AS col0 FROM tab2 AS cor0
----
-1
-2
-73

onlyif mysql # use DIV operator for integer division
query I rowsort label-8710
SELECT col0 DIV col1 + col0 FROM tab2 cor0
----
7
79
83

skipif mysql # not compatible
query I rowsort label-8710
SELECT col0 / col1 + col0 FROM tab2 cor0
----
7
79
83

query I rowsort
SELECT - - col2 * ( col2 + col1 ) AS col2 FROM tab2 AS cor0
----
1566
2090
2210

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8712
SELECT - col0 * CAST( NULL AS SIGNED ) AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8712
SELECT - col0 * CAST ( NULL AS INTEGER ) AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 78 AS col0 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to d8e5ef4db3419fc251e82c50ba04e048

query I rowsort
SELECT - + ( col1 ) + col2 * - 33 * 52 FROM tab2 AS cor0
----
-44675
-46363
-65225

query I rowsort
SELECT + - ( + col0 ) * + col0 FROM tab1 AS cor0
----
-4096
-6400
-9

query I rowsort
SELECT ALL col1 + + col0 * - col0 AS col0 FROM tab0 AS cor0
----
-1128
-490
-7830

onlyif mysql # use DIV operator for integer division
query I rowsort label-8717
SELECT - col2 DIV col0 - + col1 FROM tab2 cor0
----
-17
-34
-59

skipif mysql # not compatible
query I rowsort label-8717
SELECT - col2 / col0 - + col1 FROM tab2 cor0
----
-17
-34
-59

query I rowsort
SELECT ALL + ( col1 ) + col0 * - col2 AS col2 FROM tab1 AS cor0
----
-136
-3638
-7667

query I rowsort
SELECT DISTINCT - 41 * col1 FROM tab2 AS cor0
----
-1271
-2419
-697

query I rowsort
SELECT 90 + + col2 + + col2 * - col1 FROM tab0 AS cor0
----
-2715
-6
-7290

query I rowsort
SELECT - col2 * - col1 + - col1 + - ( col0 ) * + col2 FROM tab2 AS cor0
----
-2373
-553
617

query I rowsort
SELECT ALL + + ( col1 ) * - col0 FROM tab2 cor0
----
-1343
-217
-4602

query I rowsort
SELECT col0 * + ( - col1 ) + 80 * - cor0.col0 AS col1 FROM tab1 AS cor0
----
-318
-5760
-7440

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col0 * - cor0.col0 + + col2 col1 FROM tab2 AS cor0
----
-22
-6058
-6203

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8725
SELECT DISTINCT - CAST( + 19 AS SIGNED ) + col1 AS col1 FROM tab2 AS cor0
----
-2
12
40

skipif mysql # not compatible
query I rowsort label-8725
SELECT DISTINCT - CAST ( + 19 AS INTEGER ) + col1 AS col1 FROM tab2 AS cor0
----
-2
12
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - col1 ) col2 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT col0 * ( + col2 ) * + col1 FROM tab2
----
119652
51034
5859

query I rowsort
SELECT ALL + 46 + + col1 FROM tab2 AS cor0
----
105
63
77

query I rowsort
SELECT DISTINCT + col0 * - ( + col1 ) FROM tab1 cor0
----
-1040
-640
-78

query I rowsort
SELECT ALL 62 + + col2 * col1 FROM tab1 AS cor0
----
1310
1466
632

query I rowsort
SELECT - ( col0 ) * col1 AS col1 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT ALL + 2 FROM tab2 cor0
----
2
2
2

query I rowsort
SELECT - 89 + col1 FROM tab2
----
-30
-58
-72

query I rowsort
SELECT DISTINCT ( - col0 ) * col2 + 73 * - col0 AS col1 FROM tab2
----
-700
-7722
-8769

query I rowsort
SELECT DISTINCT - 90 * col0 AS col1 FROM tab2 AS cor0
----
-630
-7020
-7110

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col2 col1 FROM tab1 cor0
----
162
3648
7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-8737
SELECT DISTINCT - col1 DIV + col2 + 35 col1 FROM tab0 AS cor0
----
-62
33
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8737
SELECT DISTINCT - col1 / + col2 + 35 col1 FROM tab0 AS cor0
----
-62
33
34

query I rowsort
SELECT ALL + col1 * - col1 + col1 FROM tab1 AS cor0
----
-156
-650
-90

query I rowsort
SELECT DISTINCT col0 + - 59 * ( + col2 ) AS col0 FROM tab0 cor0
----
-1923
-24
-4749

onlyif mysql # use DIV operator for integer division
query I rowsort label-8740
SELECT DISTINCT + col2 DIV 10 + - 42 AS col1 FROM tab1 AS cor0
----
-33
-37

skipif mysql # not compatible
query I rowsort label-8740
SELECT DISTINCT + col2 / 10 + - 42 AS col1 FROM tab1 AS cor0
----
-33
-37

query I rowsort
SELECT col0 * - 73 AS col0 FROM tab2 AS cor0
----
-511
-5694
-5767

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 66 * col0 - ( + 44 ) col1 FROM tab2
----
418
5104
5170

query I rowsort
SELECT col0 + - col2 - - 45 AS col2 FROM tab0
----
36
52
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + 26 + col2 * col1 col1 FROM tab1
----
1178
1376
539

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8745
SELECT DISTINCT col2 - CAST( col0 + col0 AS SIGNED ) AS col0 FROM tab2
----
-120
-130
13

skipif mysql # not compatible
query I rowsort label-8745
SELECT DISTINCT col2 - CAST ( col0 + col0 AS INTEGER ) AS col0 FROM tab2
----
-120
-130
13

onlyif mysql # use DIV operator for integer division
query I rowsort label-8746
SELECT ALL col1 * col1 - 98 DIV col1 AS col1 FROM tab1
----
162
673
91

skipif mysql # not compatible
query I rowsort label-8746
SELECT ALL col1 * col1 - 98 / col1 AS col1 FROM tab1
----
162
673
91

query I rowsort
SELECT - col0 * 14 + + col0 FROM tab1 cor0
----
-1040
-39
-832

query I rowsort
SELECT ALL col2 * - ( - col1 * + col2 ) FROM tab2 AS cor0
----
22599
24548
39884

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8749
SELECT - col2 * + CAST( + col2 AS SIGNED ) * col0 FROM tab0
----
-26136
-35
-598436

skipif mysql # not compatible
query I rowsort label-8749
SELECT - col2 * + CAST ( + col2 AS INTEGER ) * col0 FROM tab0
----
-26136
-35
-598436

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 36 col2 FROM tab1, tab1 AS cor0
----
36

onlyif mysql # use DIV operator for integer division
query I rowsort label-8751
SELECT col2 DIV 60 AS col2 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8751
SELECT col2 / 60 AS col2 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT - ( col1 ) * - col1 AS col2 FROM tab0 cor0
----
7396
8281
9409

query I rowsort
SELECT - col1 * - col0 + - col1 FROM tab0
----
1978
3298
8008

query I rowsort
SELECT - col0 + col1 * 23 FROM tab0 AS cor0
----
1954
2004
2196

query I rowsort
SELECT DISTINCT - + 88 + - col0 AS col1 FROM tab0 AS cor0
----
-112
-123
-177

query I rowsort
SELECT DISTINCT cor1.col2 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
54
57
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( col1 * col2 ) col2 FROM tab1
----
-1248
-1404
-570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 51 + + col0 col2 FROM tab2 AS cor0
----
129
130
58

query I rowsort
SELECT ALL - 89 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to c36e597b7bc5727536f5bb580e6cebbc

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 64 col0 FROM tab2
----
-64
-64
-64

query I rowsort
SELECT col0 * 32 FROM tab1
----
2048
2560
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + 22 col2 FROM tab1
----
-4
12
9

query I rowsort
SELECT + col0 * col2 + 43 - col2 FROM tab2
----
2045
205
3007

query I rowsort
SELECT col1 - ( 22 ) * + col1 FROM tab0
----
-1806
-1911
-2037

query I rowsort
SELECT ALL 11 FROM tab1, tab2 AS cor0
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8766
SELECT + col1 * CAST( + col2 AS SIGNED ) + col0 * - ( + 81 ) - + col0 AS col1 FROM tab0
----
-2773
164
870

skipif mysql # not compatible
query I rowsort label-8766
SELECT + col1 * CAST ( + col2 AS INTEGER ) + col0 * - ( + 81 ) - + col0 AS col1 FROM tab0
----
-2773
164
870

query I rowsort
SELECT - col2 - - 29 AS col2 FROM tab0
----
-4
-53
28

query I rowsort
SELECT col0 + - tab2.col2 AS col2 FROM tab2
----
-20
41
52

query I rowsort
SELECT ALL - 34 FROM tab0, tab2 AS cor0
----
9 values hashing to 40442a74794ded4c78101eefe525a5bb

query I rowsort
SELECT + col1 * col2 + col0 * + col0 FROM tab2 cor0
----
6887
7618
886

query I rowsort
SELECT DISTINCT + col2 * + 29 - + col0 FROM tab2 AS cor0
----
1023
676
776

query I rowsort
SELECT DISTINCT 5 + - cor0.col1 FROM tab0, tab0 AS cor0
----
-81
-86
-92

query I rowsort
SELECT + - col2 - cor0.col1 * col0 FROM tab2 AS cor0
----
-1381
-244
-4628

query I rowsort
SELECT - col2 * ( - col2 ) + + col2 AS col2 FROM tab0 AS cor0
----
1122
2
6806

onlyif mysql # use DIV operator for integer division
query I rowsort label-8775
SELECT ALL col2 * 49 + + col1 * col1 DIV col0 AS col0 FROM tab2
----
1318
1460
1865

skipif mysql # not compatible
query I rowsort label-8775
SELECT ALL col2 * 49 + + col1 * col1 / col0 AS col0 FROM tab2
----
1318
1460
1865

query I rowsort
SELECT ALL tab0.col2 * ( + 46 ) + col0 FROM tab0
----
1542
3861
81

query I rowsort
SELECT tab2.col2 + + 73 FROM tab2, tab2 AS cor0
----
9 values hashing to 7711fb83d20481dc43a7f200662bf23a

onlyif mysql # use DIV operator for integer division
query I rowsort label-8778
SELECT col0 + - col2 * col1 + - col2 DIV col0 AS col2 FROM tab2
----
-1456
-567
-833

skipif mysql # not compatible
query I rowsort label-8778
SELECT col0 + - col2 * col1 + - col2 / col0 AS col2 FROM tab2
----
-1456
-567
-833

query I rowsort
SELECT - + 54 + col0 * col1 AS col0 FROM tab0 AS cor0
----
2010
3341
8045

query I rowsort
SELECT ALL - 4 * col0 AS col1 FROM tab1 AS cor0
----
-12
-256
-320

query I rowsort
SELECT - ( - col0 ) + + col0 FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT DISTINCT + - cor0.col1 * + 57 AS col2 FROM tab1 AS cor0
----
-1482
-570
-741

query I rowsort
SELECT + col1 * ( col1 ) FROM tab0
----
7396
8281
9409

query I rowsort
SELECT ALL col1 * - cor0.col1 + + col2 * 69 FROM tab0 AS cor0
----
-2623
-5119
-9340

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - ( + col2 ) + col0 + - 49 * col1 col0 FROM tab2 AS cor0
----
-1539
-2839
-792

query I rowsort
SELECT DISTINCT - ( 8 ) AS col0 FROM tab1 AS cor0
----
-8

query I rowsort
SELECT - cor0.col2 + + col2 AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL 53 * 50 FROM tab2 AS cor0
----
2650
2650
2650

query I rowsort
SELECT ALL + + col1 + col2 FROM tab0 cor0
----
119
173
98

query I rowsort
SELECT ALL - + col1 + - col1 AS col1 FROM tab2 AS cor0
----
-118
-34
-62

query I rowsort
SELECT - ( - ( + col1 ) ) + + 18 FROM tab2 cor0
----
35
49
77

query I rowsort
SELECT ALL + - col2 + - col1 + - col0 AS col0 FROM tab0 AS cor0
----
-133
-143
-262

query I rowsort
SELECT ALL + col2 + 47 FROM tab2 AS cor0
----
73
74
85

query I rowsort
SELECT DISTINCT + + col0 + + 86 AS col1 FROM tab1 AS cor0
----
150
166
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab1.col1 col1 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6

query I rowsort
SELECT 80 FROM tab0, tab1 cor0
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94

query I rowsort
SELECT ALL - ( cor0.col0 ) AS col2 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 729c1edda9332398299f39cd174ed840

query I rowsort
SELECT + 35 - col0 * + col1 FROM tab2 cor0
----
-1308
-182
-4567

query I rowsort
SELECT + - ( - cor0.col2 ) FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT col1 * col2 + - col1 FROM tab1 cor0
----
1235
1378
560

query I rowsort
SELECT 16 * + col0 FROM tab1
----
1024
1280
48

query I rowsort
SELECT col2 * - col2 + + cor0.col1 AS col2 FROM tab1 AS cor0
----
-2890
-3239
-9203

query I rowsort
SELECT 45 * col2 + 77 * 81 FROM tab1 AS cor0
----
10557
8667
8802

query I rowsort
SELECT - ( cor0.col2 ) + + 17 * - 89 FROM tab0 AS cor0
----
-1514
-1546
-1595

query I rowsort
SELECT ALL ( 61 ) * col2 FROM tab2
----
1586
1647
2318

onlyif mysql # use DIV operator for integer division
query I rowsort label-8806
SELECT ALL + col0 + col2 DIV col2 FROM tab1 cor0
----
4
65
81

skipif mysql # not compatible
query I rowsort label-8806
SELECT ALL + col0 + col2 / col2 FROM tab1 cor0
----
4
65
81

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8807
SELECT + col2 * col0 * - cor0.col1 - - col0 * + CAST( col2 AS SIGNED ) FROM tab0 cor0
----
-3360
-656820
-67320

skipif mysql # not compatible
query I rowsort label-8807
SELECT + col2 * col0 * - cor0.col1 - - col0 * + CAST ( col2 AS INTEGER ) FROM tab0 cor0
----
-3360
-656820
-67320

onlyif mysql # use DIV operator for integer division
query I rowsort label-8808
SELECT + - col0 DIV - 35 - col0 * + col1 FROM tab1 AS cor0
----
-1038
-639
-78

skipif mysql # not compatible
query I rowsort label-8808
SELECT + - col0 / - 35 - col0 * + col1 FROM tab1 AS cor0
----
-1038
-639
-78

query I rowsort
SELECT cor0.col1 * 17 AS col2 FROM tab2 AS cor0
----
1003
289
527

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8810
SELECT ALL - + col0 + CAST( ( - cor0.col1 ) AS SIGNED ) * + 93 * col1 AS col2 FROM tab1 AS cor0
----
-15797
-62871
-9364

skipif mysql # not compatible
query I rowsort label-8810
SELECT ALL - + col0 + CAST ( ( - cor0.col1 ) AS INTEGER ) * + 93 * col1 AS col2 FROM tab1 AS cor0
----
-15797
-62871
-9364

query I rowsort
SELECT ALL - cor0.col1 + - ( col1 ) FROM tab1 AS cor0
----
-20
-26
-52

query I rowsort
SELECT col2 * + col0 + + col2 FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT DISTINCT cor0.col2 + - 84 AS col2 FROM tab1 AS cor0
----
-27
-30
12

query I rowsort
SELECT DISTINCT - col2 * 82 FROM tab1 AS cor0
----
-4428
-4674
-7872

query I rowsort
SELECT col0 * + ( 59 ) FROM tab0 AS cor0
----
1416
2065
5251

onlyif mysql # use DIV operator for integer division
query I rowsort label-8816
SELECT col0 DIV 92 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8816
SELECT col0 / 92 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + + ( col0 ) - col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + 96 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303

onlyif mysql # use DIV operator for integer division
query I rowsort label-8819
SELECT ALL - col1 DIV tab2.col1 + col1 AS col1 FROM tab2
----
16
30
58

skipif mysql # not compatible
query I rowsort label-8819
SELECT ALL - col1 / tab2.col1 + col1 AS col1 FROM tab2
----
16
30
58

query I rowsort
SELECT 65 FROM tab0, tab1 cor0
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805

onlyif mysql # use DIV operator for integer division
query I rowsort label-8821
SELECT ALL + col1 DIV + col0 + + 41 AS col2 FROM tab1
----
41
41
49

skipif mysql # not compatible
query I rowsort label-8821
SELECT ALL + col1 / + col0 + + 41 AS col2 FROM tab1
----
41
41
49

query I rowsort
SELECT ALL - 36 AS col2 FROM tab2
----
-36
-36
-36

query I rowsort
SELECT ALL + col1 * + col0 + col1 * + col1 AS col1 FROM tab1 AS cor0
----
1209
740
754

query I rowsort
SELECT ALL col0 + - ( + col2 + - cor0.col0 ) AS col0 FROM tab0 AS cor0
----
15
69
96

query I rowsort
SELECT ALL + col0 - 1 FROM tab0 cor0
----
23
34
88

query I rowsort
SELECT DISTINCT col1 * 15 AS col2 FROM tab2 AS cor0
----
255
465
885

query I rowsort
SELECT ALL - + col0 + 64 + - col0 FROM tab2 AS cor0
----
-92
-94
50

query I rowsort
SELECT ALL - col1 * col1 + 51 AS col0 FROM tab1 AS cor0
----
-118
-49
-625

query I rowsort
SELECT + col0 - - col2 * ( + col2 ) FROM tab0
----
1113
36
6813

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8830
SELECT + CAST( NULL AS SIGNED ) + tab2.col2 FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-8830
SELECT + CAST ( NULL AS INTEGER ) + tab2.col2 FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT + cor0.col0 + + ( col1 ) AS col2 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT - col0 + 21 FROM tab0 AS cor0
----
-14
-3
-68

query I rowsort
SELECT + ( col2 ) * - col0 AS col0 FROM tab2 cor0
----
-189
-2028
-3002

query I rowsort
SELECT - 16 * cor0.col2 AS col0 FROM tab0 AS cor0
----
-1312
-16
-528

query I rowsort
SELECT - + 78 * + col2 * - col1 AS col2 FROM tab0 AS cor0
----
221364
582036
7566

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 24 * - col1 col1 FROM tab0
----
-2064
-2184
-2328

query I rowsort
SELECT + - 51 * + col1 - + ( + col1 ) AS col1 FROM tab0 AS cor0
----
-4472
-4732
-5044

onlyif mysql # use DIV operator for integer division
query I rowsort label-8838
SELECT col1 DIV + cor0.col0 - - col0 * col2 * col0 FROM tab2 AS cor0
----
1327
158184
237158

skipif mysql # not compatible
query I rowsort label-8838
SELECT col1 / + cor0.col0 - - col0 * col2 * col0 FROM tab2 AS cor0
----
1327
158184
237158

onlyif mysql # use DIV operator for integer division
query I rowsort label-8839
SELECT + col2 - col1 DIV - col1 FROM tab0 AS cor0
----
2
34
83

skipif mysql # not compatible
query I rowsort label-8839
SELECT + col2 - col1 / - col1 FROM tab0 AS cor0
----
2
34
83

query I rowsort
SELECT + cor1.col0 * 31 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1f469489fc5c6e49f053205e2ac303f8

query I rowsort
SELECT ALL tab1.col0 - - col0 AS col2 FROM tab1
----
128
160
6

query I rowsort
SELECT + col0 * col0 * + col0 AS col2 FROM tab2 AS cor0
----
343
474552
493039

query I rowsort
SELECT - - 34 * col2 AS col1 FROM tab1 AS cor0
----
1836
1938
3264

query I rowsort
SELECT DISTINCT + col2 + col0 * - ( + col1 ) AS col2 FROM tab1 AS cor0
----
-24
-583
-944

query I rowsort
SELECT DISTINCT + 97 AS col1 FROM tab2 AS cor0
----
97

query I rowsort
SELECT - 83 * col2 FROM tab1 AS cor0
----
-4482
-4731
-7968

query I rowsort
SELECT col0 * cor0.col2 + col1 AS col2 FROM tab1 AS cor0
----
188
3658
7693

query I rowsort
SELECT - - col2 * col1 + + ( - col1 ) AS col1 FROM tab2 cor0
----
1475
629
806

query I rowsort
SELECT DISTINCT + cor0.col0 * + 20 + - 56 AS col1 FROM tab0 AS cor0
----
1724
424
644

onlyif mysql # use DIV operator for integer division
query I rowsort label-8850
SELECT ALL + col1 DIV col0 - - col1 AS col0 FROM tab2 AS cor0
----
17
35
59

skipif mysql # not compatible
query I rowsort label-8850
SELECT ALL + col1 / col0 - - col1 AS col0 FROM tab2 AS cor0
----
17
35
59

query I rowsort
SELECT DISTINCT + cor1.col2 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
54
57
96

query I rowsort
SELECT + col0 + - col1 * + col1 FROM tab2
----
-210
-3403
-954

query I rowsort
SELECT DISTINCT - + ( 42 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-42

query I rowsort
SELECT ALL + col0 * 94 - - cor0.col2 FROM tab1 AS cor0
----
336
6073
7616

query I rowsort
SELECT - col2 * 72 FROM tab1 AS cor0
----
-3888
-4104
-6912

query I rowsort
SELECT ALL - + ( - 51 ) FROM tab0 AS cor0
----
51
51
51

onlyif mysql # use DIV operator for integer division
query I rowsort label-8857
SELECT DISTINCT + col0 DIV + 81 FROM tab0 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-8857
SELECT DISTINCT + col0 / + 81 FROM tab0 AS cor0
----
0
1

query I rowsort
SELECT 32 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to d30a2acbf33c88274474306936d3227b

query I rowsort
SELECT DISTINCT - 36 + - col0 FROM tab1 AS cor0
----
-100
-116
-39

query I rowsort
SELECT DISTINCT - cor0.col1 * + 30 * col1 FROM tab0 AS cor0
----
-221880
-248430
-282270

query I rowsort
SELECT col2 * 12 FROM tab1 AS cor0
----
1152
648
684

query I rowsort
SELECT - cor0.col1 FROM tab2, tab0 AS cor0, tab1 cor1
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8863
SELECT + - CAST( + ( + col0 ) AS SIGNED ) * + cor0.col0 AS col2 FROM tab1 AS cor0
----
-4096
-6400
-9

skipif mysql # not compatible
query I rowsort label-8863
SELECT + - CAST ( + ( + col0 ) AS INTEGER ) * + cor0.col0 AS col2 FROM tab1 AS cor0
----
-4096
-6400
-9

query I rowsort
SELECT ALL + - ( + cor0.col1 ) + col0 AS col2 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT DISTINCT + - col0 * + col0 AS col1 FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT DISTINCT - + ( col0 ) * + col2 + - cor0.col0 FROM tab0 AS cor0
----
-70
-7387
-816

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8867
SELECT DISTINCT + cor0.col1 * - CAST( NULL AS SIGNED ) AS col0 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-8867
SELECT DISTINCT + cor0.col1 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 48 col1 FROM tab1
----
48
48
48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col0 ) * - col1 col0 FROM tab1
----
-1040
-640
-78

query I rowsort
SELECT + - cor0.col2 + + 95 FROM tab0 AS cor0
----
13
62
94

query I rowsort
SELECT ALL + + col2 + 60 * col2 AS col0 FROM tab2 AS cor0
----
1586
1647
2318

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab1, tab0 AS cor2
----
3645 values hashing to ced36882687f040e969c817b62d2e456

query I rowsort
SELECT cor0.col0 + - col0 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col2 + - col1 * + 96 AS col1 FROM tab0 AS cor0
----
-8289
-8818
-9313

query I rowsort
SELECT + col2 * col1 + 84 AS col1 FROM tab1 AS cor0
----
1332
1488
654

query I rowsort
SELECT + cor0.col2 + - ( col2 ) FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT ALL 56 AS col0 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to b5ba4b44e3deadce1edb30e76df61200

query I rowsort
SELECT DISTINCT + col2 * + col1 * + col1 AS col2 FROM tab1
----
16224
36504
5700

query I rowsort
SELECT ALL - 84 AS col0 FROM tab2 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 975e2ef2a3bf1ee2622362f4e435752f

onlyif mysql # use DIV operator for integer division
query I rowsort label-8880
SELECT DISTINCT + 81 * cor0.col2 * + col1 + ( col0 ) DIV col1 AS col2 FROM tab2 AS cor0
----
124255
52330
67797

skipif mysql # not compatible
query I rowsort label-8880
SELECT DISTINCT + 81 * cor0.col2 * + col1 + ( col0 ) / col1 AS col2 FROM tab2 AS cor0
----
124255
52330
67797

query I rowsort
SELECT ALL - 59 + - cor0.col0 FROM tab2 AS cor0
----
-137
-138
-66

query I rowsort
SELECT 91 + - col0 FROM tab1 AS cor0
----
11
27
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 - col0 * col2 col2 FROM tab2 AS cor0
----
-2087
-220
-3019

query I rowsort
SELECT ALL 35 + 82 AS col2 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to f1f4efb6dceca1c325983962bcf259d3

query I rowsort
SELECT + 73 FROM tab0, tab2 AS cor0, tab0 cor1
----
27 values hashing to 3933a906d17a820ccf95467e2206df8f

query I rowsort
SELECT DISTINCT + 90 + - col0 AS col0 FROM tab0
----
1
55
66

query I rowsort
SELECT + col2 + - col1 + - ( col1 + col1 ) * + tab2.col2 FROM tab2
----
-1271
-1678
-3101

onlyif mysql # use DIV operator for integer division
query I rowsort label-8888
SELECT DISTINCT - tab1.col0 + + col2 * - 44 + 44 DIV col0 AS col2 FROM tab1
----
-2365
-2572
-4304

skipif mysql # not compatible
query I rowsort label-8888
SELECT DISTINCT - tab1.col0 + + col2 * - 44 + 44 / col0 AS col2 FROM tab1
----
-2365
-2572
-4304

query I rowsort
SELECT DISTINCT - col0 + col1 * - tab0.col1 FROM tab0
----
-7420
-8370
-9444

onlyif mysql # use DIV operator for integer division
query I rowsort label-8890
SELECT + tab1.col0 * col0 + + col1 DIV + tab1.col0 FROM tab1
----
17
4096
6400

skipif mysql # not compatible
query I rowsort label-8890
SELECT + tab1.col0 * col0 + + col1 / + tab1.col0 FROM tab1
----
17
4096
6400

query I rowsort
SELECT col1 * + col0 * tab2.col0 AS col0 FROM tab2
----
106097
1519
358956

query I rowsort
SELECT ALL - - 60 * - col0 AS col2 FROM tab0 AS cor0
----
-1440
-2100
-5340

query I rowsort
SELECT - cor0.col1 * col2 - - ( col1 ) AS col0 FROM tab0 cor0
----
-2752
-7371
0

query I rowsort
SELECT DISTINCT - col0 + + tab0.col2 AS col1 FROM tab0
----
-34
-7
9

query I rowsort
SELECT DISTINCT - col1 + + col0 + ( + col2 * col0 + col1 ) FROM tab1
----
165
3712
7760

query I rowsort
SELECT DISTINCT tab2.col0 FROM tab2, tab2 cor0
----
7
78
79

query I rowsort
SELECT DISTINCT + tab1.col2 + tab1.col2 AS col0 FROM tab1
----
108
114
192

query I rowsort
SELECT DISTINCT + col2 + col2 * + col0 + - col0 AS col0 FROM tab2
----
1976
209
2961

query I rowsort
SELECT - col2 * col2 - col2 AS col1 FROM tab1 AS cor0
----
-2970
-3306
-9312

query I rowsort
SELECT + cor0.col2 - col0 * col0 FROM tab1 AS cor0
----
-4039
-6304
45

onlyif mysql # use DIV operator for integer division
query I rowsort label-8901
SELECT + col1 DIV col1 + col0 FROM tab2 AS cor0
----
79
8
80

skipif mysql # not compatible
query I rowsort label-8901
SELECT + col1 / col1 + col0 FROM tab2 AS cor0
----
79
8
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-8902
SELECT + col1 * - col1 DIV col1 AS col1 FROM tab1
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-8902
SELECT + col1 * - col1 / col1 AS col1 FROM tab1
----
-10
-13
-26

query I rowsort
SELECT - - col2 + col0 + - col2 FROM tab2 AS cor0
----
7
78
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-8904
SELECT cor0.col1 DIV + col1 + + col1 + + col0 col2 FROM tab1 AS cor0
----
30
75
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8904
SELECT cor0.col1 / + col1 + + col1 + + col0 col2 FROM tab1 AS cor0
----
30
75
94

query I rowsort
SELECT cor0.col0 - cor0.col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8906
SELECT CAST( tab1.col1 AS SIGNED ) + - col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8906
SELECT CAST ( tab1.col1 AS INTEGER ) + - col1 FROM tab1
----
0
0
0

query I rowsort
SELECT - ( - col1 * + tab0.col2 ) AS col1 FROM tab0
----
2838
7462
97

query I rowsort
SELECT ( col0 ) + + tab0.col2 FROM tab0
----
171
36
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-8909
SELECT DISTINCT - 83 DIV col0 AS col2 FROM tab0 AS cor0
----
-2
-3
0

skipif mysql # not compatible
query I rowsort label-8909
SELECT DISTINCT - 83 / col0 AS col2 FROM tab0 AS cor0
----
-2
-3
0

query I rowsort
SELECT + 57 * col1 FROM tab2 AS cor0
----
1767
3363
969

query I rowsort
SELECT DISTINCT - - 42 AS col1 FROM tab1 AS cor0
----
42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 5 col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 6035628694bdea36f584f3649088551d

query I rowsort
SELECT cor0.col2 * cor0.col0 AS col2 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT + ( 20 ) FROM tab2
----
20
20
20

query I rowsort
SELECT ALL + 67 AS col0 FROM tab2
----
67
67
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + cor0.col2 col2 FROM tab0 cor0
----
1
1089
6724

query I rowsort
SELECT ALL col0 + col1 * col2 AS col2 FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT DISTINCT - cor0.col1 * - col1 + - col2 FROM tab2 AS cor0
----
251
3455
934

query I rowsort
SELECT col1 + cor0.col0 * - col0 AS col1 FROM tab2 AS cor0
----
-18
-6025
-6224

query I rowsort
SELECT + cor0.col2 + - 56 * cor0.col2 FROM tab1 cor0
----
-2970
-3135
-5280

query I rowsort
SELECT - cor0.col1 - - col1 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT tab2.col0 + col1 - tab2.col0 AS col2 FROM tab2
----
17
31
59

query I rowsort
SELECT + + col2 * - 53 + col2 AS col0 FROM tab0 AS cor0
----
-1716
-4264
-52

query I rowsort
SELECT + col0 + col2 + - col0 * col0 FROM tab1 AS cor0
----
-3975
-6224
48

query I rowsort
SELECT + - cor0.col1 * 73 FROM tab1 cor0
----
-1898
-730
-949

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( 76 ) col1 FROM tab0 AS cor0
----
-76
-76
-76

query I rowsort
SELECT ALL 58 + - 69 FROM tab0, tab1 AS cor0, tab0 AS cor1, tab2 AS cor2
----
81 values hashing to b479c2926237a341642edb92c755a9f3

query I rowsort
SELECT + col2 * col1 * + ( + 80 ) AS col2 FROM tab1 AS cor0
----
112320
45600
99840

query I rowsort
SELECT + ( - col2 ) * col0 FROM tab1
----
-162
-3648
-7680

query I rowsort
SELECT + ( 93 ) FROM tab1
----
93
93
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-8931
SELECT + col2 DIV col1 + ( + col0 ) FROM tab0 cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-8931
SELECT + col2 / col1 + ( + col0 ) FROM tab0 cor0
----
24
35
89

query I rowsort
SELECT ( - col0 ) + col2 * - ( cor0.col1 ) FROM tab2 AS cor0
----
-1612
-725
-844

onlyif mysql # use DIV operator for integer division
query I rowsort label-8933
SELECT DISTINCT cor0.col2 DIV + col0 col0 FROM tab0 AS cor0
----
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8933
SELECT DISTINCT cor0.col2 / + col0 col0 FROM tab0 AS cor0
----
0
1

query I rowsort
SELECT + cor0.col2 * col0 + col2 + col2 * - col0 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT DISTINCT - - col2 + + col1 AS col1 FROM tab2 cor0
----
55
58
85

query I rowsort
SELECT ALL - col2 * col0 - - col2 FROM tab0
----
-34
-7216
-759

query I rowsort
SELECT ALL 14 FROM tab2, tab0, tab2 AS cor0, tab1
----
81 values hashing to 742ac5d81e64168a26fbd2bc8c808eff

onlyif mysql # use DIV operator for integer division
query I rowsort label-8938
SELECT ALL col2 DIV col2 - + col1 * - ( - 76 ) * + col2 AS col1 FROM tab1
----
-106703
-43319
-94847

skipif mysql # not compatible
query I rowsort label-8938
SELECT ALL col2 / col2 - + col1 * - ( - 76 ) * + col2 AS col1 FROM tab1
----
-106703
-43319
-94847

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8939
SELECT - col0 + CAST( NULL AS SIGNED ) * col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8939
SELECT - col0 + CAST ( NULL AS INTEGER ) * col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + cor0.col2 * - 24 FROM tab2 cor0
----
624
648
912

query I rowsort
SELECT DISTINCT tab0.col1 * - col2 * - 29 AS col0 FROM tab0
----
216398
2813
82302

onlyif mysql # use DIV operator for integer division
query I rowsort label-8942
SELECT ALL - 13 DIV - col1 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8942
SELECT ALL - 13 / - col1 AS col0 FROM tab2
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8943
SELECT DISTINCT tab2.col1 * col1 * - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8943
SELECT DISTINCT tab2.col1 * col1 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL

query I rowsort
SELECT ALL + 97 AS col2 FROM tab2, tab1 cor0, tab0, tab0 AS cor1
----
81 values hashing to f1d3319b9491f64621f2dbb0808458ca

skipif mysql # not compatible
query I rowsort
SELECT col0 * CAST ( + col1 AS REAL ) * - col0 + col1 FROM tab2
----
-106080
-1488
-358897

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + ( col2 ) * + col1 col0 FROM tab2 AS cor0
----
-10982
-25947
-90506

query I rowsort
SELECT - - col0 + + 41 * col1 AS col0 FROM tab0 AS cor0
----
3550
3820
4012

onlyif mysql # use DIV operator for integer division
query I rowsort label-8948
SELECT - col0 DIV 78 FROM tab0 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8948
SELECT - col0 / 78 FROM tab0 cor0
----
-1
0
0

query I rowsort
SELECT cor0.col0 * ( - 73 ) FROM tab2 AS cor0
----
-511
-5694
-5767

query I rowsort
SELECT col0 + + ( + 63 + + tab2.col2 ) AS col2 FROM tab2
----
167
180
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + 83 col0 FROM tab1
----
137
140
179

onlyif mysql # use DIV operator for integer division
query I rowsort label-8952
SELECT ALL - col0 DIV - 37 AS col1 FROM tab1
----
0
1
2

skipif mysql # not compatible
query I rowsort label-8952
SELECT ALL - col0 / - 37 AS col1 FROM tab1
----
0
1
2

query I rowsort
SELECT DISTINCT + col0 + + 2 + - cor0.col0 AS col0 FROM tab2 cor0
----
2

query I rowsort
SELECT DISTINCT 96 + + cor0.col1 FROM tab2 AS cor0
----
113
127
155

query I rowsort
SELECT DISTINCT + + col2 + col2 * - cor0.col0 AS col1 FROM tab1 AS cor0
----
-108
-3591
-7584

query I rowsort
SELECT ALL - - 7 FROM tab1 cor0
----
7
7
7

query I rowsort
SELECT DISTINCT 20 * 33 + col0 FROM tab1 AS cor0
----
663
724
740

query I rowsort
SELECT DISTINCT + + 84 FROM tab1 AS cor0
----
84

query I rowsort
SELECT ALL + 62 + tab1.col1 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to caacacdafdcb813119b27f648c5a40c3

onlyif mysql # use DIV operator for integer division
query I rowsort label-8960
SELECT DISTINCT + + col0 DIV + col1 col2 FROM tab1 AS cor0
----
0
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8960
SELECT DISTINCT + + col0 / + col1 col2 FROM tab1 AS cor0
----
0
6

query I rowsort
SELECT DISTINCT + col1 + col2 * col0 + + col2 AS col0 FROM tab1 AS cor0
----
242
3715
7789

query I rowsort
SELECT - cor0.col0 * + col1 + - cor0.col0 AS col1 FROM tab1 AS cor0
----
-1120
-704
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 + 9 col2 FROM tab2 AS cor0
----
35
36
47

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8964
SELECT DISTINCT - + ( - col2 ) * + col2 / CAST( NULL AS SIGNED ) + + col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8964
SELECT DISTINCT - + ( - col2 ) * + col2 / CAST ( NULL AS INTEGER ) + + col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL - - col0 * - col2 AS col1 FROM tab1 AS cor0
----
-162
-3648
-7680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8966
SELECT CAST( + col1 AS SIGNED ) col2 FROM tab1 cor0
----
10
13
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8966
SELECT CAST ( + col1 AS INTEGER ) col2 FROM tab1 cor0
----
10
13
26

onlyif mysql # use DIV operator for integer division
query I rowsort label-8967
SELECT DISTINCT - - col2 DIV - col0 AS col1 FROM tab0 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-8967
SELECT DISTINCT - - col2 / - col0 AS col1 FROM tab0 AS cor0
----
-1
0

query I rowsort
SELECT ALL ( 69 ) AS col2 FROM tab1 AS cor0
----
69
69
69

query I rowsort
SELECT DISTINCT + - col1 * 77 AS col0 FROM tab2 cor0
----
-1309
-2387
-4543

query I rowsort
SELECT DISTINCT + cor0.col1 * + 47 * - col1 FROM tab0 AS cor0
----
-347612
-389207
-442223

query I rowsort
SELECT + col1 * + col2 + col2 + - tab2.col2 FROM tab2
----
1534
646
837

query I rowsort
SELECT ALL - col2 * col1 + 72 FROM tab0
----
-25
-2766
-7390

query I rowsort
SELECT ALL + col0 * + col1 + - col0 AS col0 FROM tab0 AS cor0
----
2040
3360
8010

query I rowsort
SELECT ALL col2 * col1 - - col2 * col2 FROM tab0 AS cor0
----
14186
3927
98

query I rowsort
SELECT ALL - + cor0.col0 + col2 * 55 + + 91 AS col1 FROM tab2 cor0
----
1443
1569
2102

query I rowsort
SELECT DISTINCT - 31 + col2 * + col0 FROM tab1 AS cor0
----
131
3617
7649

query I rowsort
SELECT - + col2 + - col0 FROM tab0 cor0
----
-171
-36
-57

query I rowsort
SELECT col1 * + cor0.col0 + + col2 AS col2 FROM tab2 AS cor0
----
1381
244
4628

query I rowsort
SELECT DISTINCT 52 * + col1 FROM tab0 AS cor0
----
4472
4732
5044

query I rowsort
SELECT + col0 * + col2 * col1 FROM tab2
----
119652
51034
5859

query I rowsort
SELECT DISTINCT - col0 + - col0 * - col1 FROM tab2 cor0
----
1264
210
4524

query I rowsort
SELECT DISTINCT - - cor0.col2 + col2 AS col0 FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT ALL - col0 + - 7 FROM tab1 AS cor0
----
-10
-71
-87

query I rowsort
SELECT ALL col2 * col0 + col2 - + col2 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT DISTINCT + col1 + 18 AS col2 FROM tab1 AS cor0
----
28
31
44

query I rowsort
SELECT - 49 AS col1 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to adfccb10c9468825d9961e3613140f89

query I rowsort
SELECT col0 + - ( 61 ) AS col2 FROM tab1 AS cor0
----
-58
19
3

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8988
SELECT ALL CAST( NULL AS SIGNED ) col0 FROM tab0, tab2 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-8988
SELECT ALL CAST ( NULL AS INTEGER ) col0 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + - tab1.col1 col2 FROM tab1
----
-23
54
67

query I rowsort
SELECT ALL + + cor0.col0 + - col1 AS col0 FROM tab0 cor0
----
-2
-62
-62

onlyif mysql # use DIV operator for integer division
query I rowsort label-8991
SELECT DISTINCT - + 44 * - col1 - 45 DIV + col0 AS col0 FROM tab0 AS cor0
----
3783
4004
4267

skipif mysql # not compatible
query I rowsort label-8991
SELECT DISTINCT - + 44 * - col1 - 45 / + col0 AS col0 FROM tab0 AS cor0
----
3783
4004
4267

query I rowsort
SELECT - - col2 * - cor0.col1 + + col0 FROM tab0 cor0
----
-2814
-62
-7373

onlyif mysql # use DIV operator for integer division
query I rowsort label-8993
SELECT + + col1 DIV col0 + + 58 FROM tab2 AS cor0
----
58
58
62

skipif mysql # not compatible
query I rowsort label-8993
SELECT + + col1 / col0 + + 58 FROM tab2 AS cor0
----
58
58
62

query I rowsort
SELECT + 11 * + col1 - + 74 * ( - col1 ) FROM tab2 AS cor0
----
1445
2635
5015

query I rowsort
SELECT - 35 - col1 FROM tab1 cor0
----
-45
-48
-61

query I rowsort
SELECT ALL col0 * col1 + col1 FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT ALL + - 38 + + col0 FROM tab0 AS cor0
----
-14
-3
51

query I rowsort
SELECT - col1 * - col2 - - 18 AS col1 FROM tab0 AS cor0
----
115
2856
7480

query I rowsort
SELECT ALL - + col0 * col2 + - col2 FROM tab1 AS cor0
----
-216
-3705
-7776

query I rowsort
SELECT + 16 * col2 AS col0 FROM tab0 AS cor0
----
1312
16
528

query I rowsort
SELECT DISTINCT cor0.col1 - col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT cor1.col2 * cor0.col2 AS col0 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
9 values hashing to bbf44891fdcfbe372162a2e549d3eeed

onlyif mysql # use DIV operator for integer division
query I rowsort label-9003
SELECT + + cor0.col2 + ( - col1 + col2 ) DIV + ( - col1 + col0 ) AS col2 FROM tab0 AS cor0
----
2
33
86

skipif mysql # not compatible
query I rowsort label-9003
SELECT + + cor0.col2 + ( - col1 + col2 ) / + ( - col1 + col0 ) AS col2 FROM tab0 AS cor0
----
2
33
86

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9004
SELECT ALL col2 - CAST( 30 * - col2 AS SIGNED ) FROM tab0 AS cor0
----
1023
2542
31

skipif mysql # not compatible
query I rowsort label-9004
SELECT ALL col2 - CAST ( 30 * - col2 AS INTEGER ) FROM tab0 AS cor0
----
1023
2542
31

query I rowsort
SELECT ALL - col0 + 98 AS col1 FROM tab1 AS cor0
----
18
34
95

query I rowsort
SELECT cor0.col0 + ( 49 ) * col0 AS col1 FROM tab0 AS cor0
----
1200
1750
4450

query I rowsort
SELECT - col2 * 98 + - col2 FROM tab1 AS cor0
----
-5346
-5643
-9504

query I rowsort
SELECT - col2 * - cor0.col2 - col0 * - cor0.col0 AS col0 FROM tab0 AS cor0
----
1226
14645
1665

query I rowsort
SELECT DISTINCT 67 FROM tab0, tab1 AS cor0
----
67

query I rowsort
SELECT DISTINCT + 39 + + col2 AS col0 FROM tab1 AS cor0
----
135
93
96

query I rowsort
SELECT + ( 93 ) AS col0 FROM tab0 AS cor0
----
93
93
93

query I rowsort
SELECT - col0 + ( col2 ) * ( 56 ) AS col1 FROM tab2
----
1378
1505
2049

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + ( - col1 ) col0 FROM tab2 AS cor0
----
17
31
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 + + col2 col0 FROM tab0 cor0
----
164
2
66

query I rowsort
SELECT DISTINCT - 82 FROM tab1 AS cor0
----
-82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9016
SELECT ALL CAST( NULL AS SIGNED ) * - 38 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-9016
SELECT ALL CAST ( NULL AS INTEGER ) * - 38 col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - ( col0 ) * col2 * ( col2 ) AS col0 FROM tab0 AS cor0
----
-26136
-35
-598436

onlyif mysql # use DIV operator for integer division
query I rowsort label-9018
SELECT + 18 DIV + cor0.col0 AS col0 FROM tab2 AS cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-9018
SELECT + 18 / + cor0.col0 AS col0 FROM tab2 AS cor0
----
0
0
2

query I rowsort
SELECT ALL + ( col0 ) * - ( col1 + col2 ) * + col1 FROM tab2 AS cor0
----
-12586
-391170
-73865

query I rowsort
SELECT - col0 + - col1 * + col2 AS col2 FROM tab0 cor0
----
-132
-2862
-7551

onlyif mysql # use DIV operator for integer division
query I rowsort label-9021
SELECT DISTINCT - - col2 DIV + col1 AS col1 FROM tab2 cor0
----
0
2

skipif mysql # not compatible
query I rowsort label-9021
SELECT DISTINCT - - col2 / + col1 AS col1 FROM tab2 cor0
----
0
2

query I rowsort
SELECT + - col0 + - col0 * ( col0 ) AS col2 FROM tab0 cor0
----
-1260
-600
-8010

skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( - col1 * col1 AS REAL ) AS col1 FROM tab2
----
-289
-3481
-961

query I rowsort
SELECT DISTINCT + col2 * + col0 * col1 AS col1 FROM tab0
----
3395
664118
68112

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9025
SELECT - + CAST( NULL AS SIGNED ) FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-9025
SELECT - + CAST ( NULL AS INTEGER ) FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9026
SELECT + - 52 + - col2 * CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9026
SELECT + - 52 + - col2 * CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-9027
SELECT DISTINCT col1 DIV + 61 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9027
SELECT DISTINCT col1 / + 61 AS col2 FROM tab2
----
0

query I rowsort
SELECT DISTINCT col2 + col2 * col1 + 91 FROM tab2
----
1651
775
955

query I rowsort
SELECT ALL + 7 AS col2 FROM tab2
----
7
7
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col1 + - col1 col2 FROM tab1
----
-104
-1053
-650

onlyif mysql # use DIV operator for integer division
query I rowsort label-9031
SELECT ALL - 57 DIV col0 col2 FROM tab1 AS cor0
----
-19
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9031
SELECT ALL - 57 / col0 col2 FROM tab1 AS cor0
----
-19
0
0

query I rowsort
SELECT col2 + ( 63 ) * col1 FROM tab1
----
1692
687
915

query I rowsort
SELECT DISTINCT - 2 AS col0 FROM tab0, tab2 AS cor0
----
-2

query I rowsort
SELECT + 32 FROM tab0, tab2 AS cor0
----
9 values hashing to d30a2acbf33c88274474306936d3227b

query I rowsort
SELECT - col2 * + ( cor0.col1 ) FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT - 58 - 15 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 84ab9db5468b4a1781bd8d5c8e0e77fc

query I rowsort
SELECT + cor0.col0 * - 65 AS col1 FROM tab0 AS cor0
----
-1560
-2275
-5785

query I rowsort
SELECT + ( + 88 + col2 ) FROM tab1
----
142
145
184

query I rowsort
SELECT - 0 + + 36 * - col1 FROM tab1 AS cor0
----
-360
-468
-936

query I rowsort
SELECT DISTINCT + ( ( + col2 ) ) FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT ALL + + col1 + + col0 AS col0 FROM tab0 cor0
----
110
132
180

query I rowsort
SELECT + ( - col1 ) * + col2 * - 23 AS col1 FROM tab1 cor0
----
13110
28704
32292

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9043
SELECT CAST( + 25 AS SIGNED ) * col2 col2 FROM tab1 AS cor0
----
1350
1425
2400

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9043
SELECT CAST ( + 25 AS INTEGER ) * col2 col2 FROM tab1 AS cor0
----
1350
1425
2400

query I rowsort
SELECT col1 + + col1 + + col2 FROM tab0
----
195
205
264

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( col1 + col0 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL > - col0 * - col0
----

query I rowsort
SELECT ALL + col1 / col1 + + col2 FROM tab1 AS cor0 WHERE NULL NOT IN ( col2 * + col0 * col0 - + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 - col2 * col1 col0 FROM tab0
----
-2805
-7380
-96

query I rowsort
SELECT col1 - + tab1.col2 * col1 FROM tab1
----
-1235
-1378
-560

onlyif mysql # use DIV operator for integer division
query I rowsort label-9050
SELECT DISTINCT + col0 DIV cor0.col1 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-9050
SELECT DISTINCT + col0 / cor0.col1 FROM tab0 cor0
----
0

query I rowsort
SELECT col2 + cor0.col1 FROM tab1 AS cor0 WHERE NOT col0 + col1 <> NULL
----

query I rowsort
SELECT DISTINCT col2 + col1 - col2 FROM tab0
----
86
91
97

query I rowsort
SELECT ALL col2 + + col1 * col2 AS col2 FROM tab2
----
1560
684
864

query I rowsort
SELECT ALL + tab0.col1 - col0 AS col2 FROM tab0
----
2
62
62

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 * col0 BETWEEN - col1 AND NULL
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

query III rowsort
SELECT * FROM tab2 WHERE ( col1 ) IN ( col0 + col1 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-9057
SELECT + col2 + col0 DIV col2 col1 FROM tab0 AS cor0
----
33
36
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9057
SELECT + col2 + col0 / col2 col1 FROM tab0 AS cor0
----
33
36
83

query I rowsort
SELECT + - col2 + col2 * + col1 * + col2 AS col0 FROM tab0 AS cor0
----
611802
93621
96

query I rowsort
SELECT ALL - col2 FROM tab0 AS cor0 WHERE NOT ( - col2 + + col0 ) >= - col0 * col0 OR NOT ( NULL ) = NULL
----

query I rowsort
SELECT - - col0 + col2 * - col1 + - col0 FROM tab0 AS cor0
----
-2838
-7462
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-9061
SELECT - - col2 * - cor0.col1 DIV - col1 FROM tab2 AS cor0
----
26
27
38

skipif mysql # not compatible
query I rowsort label-9061
SELECT - - col2 * - cor0.col1 / - col1 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT DISTINCT - col1 + - col2 AS col2 FROM tab2 cor0
----
-55
-58
-85

query I rowsort
SELECT - col2 + col0 AS col0 FROM tab1 cor0
----
-16
-51
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-9064
SELECT ALL - col2 DIV tab1.col1 AS col0 FROM tab1
----
-2
-5
-7

skipif mysql # not compatible
query I rowsort label-9064
SELECT ALL - col2 / tab1.col1 AS col0 FROM tab1
----
-2
-5
-7

query I rowsort
SELECT + col1 * col2 + + col2 AS col2 FROM tab1 cor0
----
1344
1458
627

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col2 * + col2 col0 FROM tab0 AS cor0
----
-1
-35937
-551368

onlyif mysql # use DIV operator for integer division
query I rowsort label-9067
SELECT ALL - cor0.col2 DIV col1 AS col0 FROM tab2 cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-9067
SELECT ALL - cor0.col2 / col1 AS col0 FROM tab2 cor0
----
-2
0
0

query I rowsort
SELECT ALL + col1 + col0 + col0 FROM tab2
----
175
215
45

query I rowsort
SELECT ALL + + col1 * 0 + col0 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT + - col2 + - cor0.col0 * + col2 FROM tab1 AS cor0
----
-216
-3705
-7776

query I rowsort
SELECT - col0 * + 98 AS col2 FROM tab1 cor0
----
-294
-6272
-7840

query I rowsort
SELECT - cor0.col2 * - 91 FROM tab0 AS cor0
----
3003
7462
91

onlyif mysql # use DIV operator for integer division
query I rowsort label-9073
SELECT ALL + + col0 + + ( + 61 ) DIV + col2 AS col1 FROM tab1 AS cor0
----
4
65
80

skipif mysql # not compatible
query I rowsort label-9073
SELECT ALL + + col0 + + ( + 61 ) / + col2 AS col1 FROM tab1 AS cor0
----
4
65
80

query I rowsort
SELECT ALL + col1 * col0 + 94 * col1 FROM tab2 cor0
----
10148
2941
3131

onlyif mysql # use DIV operator for integer division
query I rowsort label-9075
SELECT ALL - col0 DIV + CAST( 65 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9075
SELECT ALL - col0 / + CAST ( 65 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-1
0
0

query I rowsort
SELECT + col2 * - 79 AS col2 FROM tab2 AS cor0
----
-2054
-2133
-3002

query I rowsort
SELECT - cor0.col0 * + 84 FROM tab2, tab1 AS cor0
----
9 values hashing to 0e0079a803d9d8db2f9ce41d13018027

query I rowsort
SELECT DISTINCT + 29 + + tab0.col2 FROM tab0
----
111
30
62

query I rowsort
SELECT DISTINCT + col0 * col0 + ( 26 * col1 ) FROM tab2
----
6683
7618
855

query I rowsort
SELECT - ( col0 ) - + 48 * col2 FROM tab0
----
-1608
-4025
-83

onlyif mysql # use DIV operator for integer division
query I rowsort label-9081
SELECT tab0.col1 DIV col2 - - col2 * - tab0.col1 FROM tab0
----
-2836
-7461
0

skipif mysql # not compatible
query I rowsort label-9081
SELECT tab0.col1 / col2 - - col2 * - tab0.col1 FROM tab0
----
-2836
-7461
0

query I rowsort
SELECT col0 * + col0 + ( + col1 ) * col0 AS col2 FROM tab1
----
4736
7440
87

query I rowsort
SELECT DISTINCT - col1 * + tab2.col2 FROM tab2
----
-1534
-646
-837

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9084
SELECT ALL ( cor0.col0 + + CAST( 37 AS SIGNED ) ) FROM tab0, tab0 cor0, tab2 AS cor1
----
27 values hashing to 291a87945e5e58d75f324e98560317d7

skipif mysql # not compatible
query I rowsort label-9084
SELECT ALL ( cor0.col0 + + CAST ( 37 AS INTEGER ) ) FROM tab0, tab0 cor0, tab2 AS cor1
----
27 values hashing to 291a87945e5e58d75f324e98560317d7

query I rowsort
SELECT DISTINCT - col2 + col2 AS col1 FROM tab2 cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-9086
SELECT + cor0.col1 DIV ( + col2 ) AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9086
SELECT + cor0.col1 / ( + col2 ) AS col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9087
SELECT ALL col2 + CAST( NULL AS SIGNED ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9087
SELECT ALL col2 + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 + col0 * - col1 AS col2 FROM tab2 AS cor0
----
-1326
-186
-4543

query IIIIIIIII rowsort
SELECT ALL * FROM tab1 cor0 CROSS JOIN tab2, tab1 cor1
----
243 values hashing to 4fe4780e49e612b93957f575d9b3e89f

query I rowsort
SELECT + col0 * col0 + + col0 FROM tab1
----
12
4160
6480

query I rowsort
SELECT col0 + col1 + col1 FROM tab0
----
196
229
271

onlyif mysql # use DIV operator for integer division
query I rowsort label-9092
SELECT DISTINCT - col1 DIV - col0 col2 FROM tab0
----
1
2
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9092
SELECT DISTINCT - col1 / - col0 col2 FROM tab0
----
1
2
3

query I rowsort
SELECT ALL col2 FROM tab1 WHERE col1 - + col2 <> NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-9094
SELECT DISTINCT col2 DIV - col0 - + col2 * + col2 * tab1.col2 FROM tab1
----
-157482
-185193
-884737

skipif mysql # not compatible
query I rowsort label-9094
SELECT DISTINCT col2 / - col0 - + col2 * + col2 * tab1.col2 FROM tab1
----
-157482
-185193
-884737

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-9096
SELECT + tab2.col2 * tab2.col2 DIV + col0 + - col0 * + tab2.col1 FROM tab2
----
-113
-1325
-4594

skipif mysql # not compatible
query I rowsort label-9096
SELECT + tab2.col2 * tab2.col2 / + col0 + - col0 * + tab2.col1 FROM tab2
----
-113
-1325
-4594

query I rowsort
SELECT ALL - col0 + + col2 * col0 * + col0 + + col2 AS col1 FROM tab1
----
233465
537
614416

query I rowsort
SELECT DISTINCT tab1.col2 - col1 FROM tab1 WHERE NOT NULL NOT IN ( tab1.col0 )
----

query I rowsort
SELECT - col2 + tab2.col1 * col1 FROM tab2
----
251
3455
934

onlyif mysql # use DIV operator for integer division
query I rowsort label-9100
SELECT DISTINCT tab1.col1 DIV + col2 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9100
SELECT DISTINCT tab1.col1 / + col2 AS col1 FROM tab1
----
0

query I rowsort
SELECT - col0 * col2 * + col2 FROM tab0
----
-26136
-35
-598436

query I rowsort
SELECT DISTINCT - col0 * - col1 * col0 + - col0 + col2 AS col1 FROM tab1
----
285
40953
83216

query I rowsort
SELECT col0 + col1 * - 48 + col2 * + col2 AS col2 FROM tab2
----
-2078
-752
707

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 93 + col1 col1 FROM tab1 AS cor0
----
103
106
119

query I rowsort
SELECT DISTINCT col1 + + col0 * ( col0 ) FROM tab0
----
1322
662
8012

query I rowsort
SELECT + + 16 * col2 + ( 66 ) - + col0 * cor0.col1 AS col1 FROM tab1 cor0
----
338
562
852

onlyif mysql # use DIV operator for integer division
query I rowsort label-9107
SELECT DISTINCT cor0.col1 DIV - col0 + col0 DIV col2 FROM tab1 AS cor0
----
-8
0
1

skipif mysql # not compatible
query I rowsort label-9107
SELECT DISTINCT cor0.col1 / - col0 + col0 / col2 FROM tab1 AS cor0
----
-8
0
1

query I rowsort
SELECT + 16 AS col0 FROM tab1, tab2 AS cor0, tab0 AS cor1, tab1 AS cor2
----
81 values hashing to 9ffb4aaf972de606a4957894645b6216

query I rowsort
SELECT + + 57 + - col1 AS col1 FROM tab1 cor0
----
31
44
47

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9110
SELECT DISTINCT col1 * - col0 * + CAST( NULL AS DECIMAL ) + col2 * - col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9110
SELECT DISTINCT col1 * - col0 * + CAST ( NULL AS REAL ) + col2 * - col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - - col0 * cor0.col1 FROM tab2 cor0
----
1343
217
4602

query I rowsort
SELECT + ( 48 ) AS col0 FROM tab0 cor0
----
48
48
48

query I rowsort
SELECT - ( col0 ) * cor0.col2 * - col1 AS col1 FROM tab0 AS cor0
----
3395
664118
68112

query I rowsort
SELECT - 31 AS col2 FROM tab2 cor0
----
-31
-31
-31

query I rowsort
SELECT ALL col0 * + ( col1 ) AS col2 FROM tab2
----
1343
217
4602

query I rowsort
SELECT - tab2.col2 + - 80 * + 28 FROM tab2
----
-2266
-2267
-2278

query I rowsort
SELECT ALL col1 * 4 AS col1 FROM tab2
----
124
236
68

query I rowsort
SELECT DISTINCT 61 * - 62 AS col0 FROM tab1
----
-3782

query I rowsort
SELECT DISTINCT - 70 FROM tab1, tab0 cor0
----
-70

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab2 AS cor2
----
3645 values hashing to d6a6e32c6adcc8525ed3eb7827781237

query I rowsort
SELECT - + cor0.col0 + - 53 + + cor0.col2 FROM tab2 AS cor0
----
-105
-33
-94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + col0 ) + - col2 col0 FROM tab1 AS cor0
----
-121
-176
-57

query I rowsort
SELECT 67 * col0 * col0 FROM tab0 AS cor0
----
38592
530707
82075

query I rowsort
SELECT + + 71 * col2 FROM tab2 AS cor0
----
1846
1917
2698

query I rowsort
SELECT 48 * 35 AS col2 FROM tab0 cor0
----
1680
1680
1680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col1 * - 18 * cor0.col0 col2 FROM tab2 cor0
----
-24174
-3906
-82836

onlyif mysql # use DIV operator for integer division
query I rowsort label-9127
SELECT DISTINCT ( col1 ) DIV col0 FROM tab2 AS cor0
----
0
4

skipif mysql # not compatible
query I rowsort label-9127
SELECT DISTINCT ( col1 ) / col0 FROM tab2 AS cor0
----
0
4

query I rowsort
SELECT DISTINCT - 63 * - 13 FROM tab2
----
819

query I rowsort
SELECT ALL + col0 * + 41 AS col1 FROM tab0 AS cor0
----
1435
3649
984

query I rowsort
SELECT - 22 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to fae46f8148b02964f7145eb6ed5819f9

query I rowsort
SELECT ALL + + col2 + + col0 * col1 AS col0 FROM tab1 AS cor0
----
1136
132
697

query I rowsort
SELECT DISTINCT 84 + cor0.col0 AS col1 FROM tab0 AS cor0
----
108
119
173

query I rowsort
SELECT DISTINCT + cor0.col1 - - cor0.col0 FROM tab2 cor0
----
137
38
96

query I rowsort
SELECT + col2 * col1 + - col2 AS col1 FROM tab1 AS cor0
----
1152
1350
513

query I rowsort
SELECT + 69 + + col2 FROM tab2 AS cor0
----
107
95
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9136
SELECT CAST( NULL AS SIGNED ) + cor0.col0 * + cor0.col2 FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-9136
SELECT CAST ( NULL AS INTEGER ) + cor0.col0 * + cor0.col2 FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 38 + 8 col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39

query I rowsort
SELECT - col2 * + 1 + ( col2 ) * cor0.col2 AS col2 FROM tab2 AS cor0
----
1406
650
702

query I rowsort
SELECT + + col2 * ( - 18 ) FROM tab0 AS cor0
----
-1476
-18
-594

query I rowsort
SELECT - col1 * ( + cor0.col2 ) * + col0 FROM tab2 cor0
----
-119652
-51034
-5859

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor1.col1 col0 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1 cor0 CROSS JOIN tab2, tab2 AS cor1, tab1 AS cor2
----
972 values hashing to 980274175fafec015a83080672486a9a

onlyif mysql # use DIV operator for integer division
query I rowsort label-9143
SELECT DISTINCT col1 DIV + cor0.col0 AS col1 FROM tab1 AS cor0
----
0
8

skipif mysql # not compatible
query I rowsort label-9143
SELECT DISTINCT col1 / + cor0.col0 AS col1 FROM tab1 AS cor0
----
0
8

query I rowsort
SELECT DISTINCT + col0 + + col1 * col2 AS col0 FROM tab1 AS cor0
----
1328
1407
634

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9145
SELECT ( + col2 ) + CAST( NULL AS DECIMAL ) + - col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9145
SELECT ( + col2 ) + CAST ( NULL AS REAL ) + - col1 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 71 * - col0 + col2 + 94 FROM tab2 AS cor0
----
-376
-5418
-5477

query I rowsort
SELECT ALL - 48 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 31c94943c073954e4ca20b170ab61f8c

query I rowsort
SELECT + col1 * - col0 + - col2 * tab1.col2 FROM tab1
----
-10256
-2994
-3889

query I rowsort
SELECT + col2 * - ( - col2 ) + + col0 AS col0 FROM tab2 AS cor0
----
1523
736
754

query I rowsort
SELECT ALL + cor0.col1 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT DISTINCT - 48 * - col0 FROM tab1
----
144
3072
3840

query I rowsort
SELECT + - 61 * + col1 FROM tab2 AS cor0
----
-1037
-1891
-3599

query I rowsort
SELECT ALL 33 + col1 * col0 + tab2.col0 AS col0 FROM tab2
----
1455
257
4713

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab0 AS cor2
----
3645 values hashing to f99537dcc805430f79ac82ef70a4bd59

query I rowsort
SELECT + cor0.col1 * 25 FROM tab2, tab0 AS cor0
----
9 values hashing to ddbbad196d6cb93f9b5d0c5d288ae538

onlyif mysql # use DIV operator for integer division
query I rowsort label-9156
SELECT ALL + col2 * col2 DIV + 6 AS col1 FROM tab0
----
0
1120
181

skipif mysql # not compatible
query I rowsort label-9156
SELECT ALL + col2 * col2 / + 6 AS col1 FROM tab0
----
0
1120
181

query I rowsort
SELECT DISTINCT + cor0.col1 * - col0 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT DISTINCT cor1.col2 FROM tab2, tab0 AS cor0, tab1 AS cor1, tab2 AS cor2
----
54
57
96

query I rowsort
SELECT DISTINCT col0 - col2 AS col1 FROM tab2
----
-20
41
52

query I rowsort
SELECT ALL + col2 * - ( col2 ) - col1 AS col2 FROM tab1
----
-2942
-3259
-9229

query I rowsort
SELECT col1 + col0 + ( col0 ) * col2 FROM tab1
----
191
3722
7773

query I rowsort
SELECT col2 * + 82 + col1 AS col2 FROM tab1 AS cor0
----
4454
4684
7885

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col2 - 31 * - col0 col1 FROM tab1 AS cor0
----
10160
255
5632

query I rowsort
SELECT - col1 * col2 * col2 + - col2 FROM tab2 AS cor0
----
-22626
-24586
-39910

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( 78 ) + - col2 col2 FROM tab0 cor0
----
-111
-160
-79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9166
SELECT CAST( + col2 AS SIGNED ) AS col1 FROM tab2 cor0
----
26
27
38

skipif mysql # not compatible
query I rowsort label-9166
SELECT CAST ( + col2 AS INTEGER ) AS col1 FROM tab2 cor0
----
26
27
38

query I rowsort
SELECT + - 59 + + col1 FROM tab0 AS cor0
----
27
32
38

query I rowsort
SELECT DISTINCT - - ( col2 ) * col0 - 42 * col1 AS col1 FROM tab2 AS cor0
----
-1113
-450
2288

query I rowsort
SELECT ( - col0 ) + + col2 * ( - col1 ) AS col2 FROM tab1 AS cor0
----
-1328
-1407
-634

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 61 + - cor0.col1 * + col2 col2 FROM tab0 AS cor0
----
-2777
-36
-7401

query I rowsort
SELECT ALL + 11 + - col0 FROM tab2 AS cor0
----
-67
-68
4

query I rowsort
SELECT ALL - ( col1 ) + col0 AS col0 FROM tab2
----
-24
19
62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9173
SELECT DISTINCT - CAST( col1 AS SIGNED ) + + cor0.col2 FROM tab1 AS cor0
----
28
47
83

skipif mysql # not compatible
query I rowsort label-9173
SELECT DISTINCT - CAST ( col1 AS INTEGER ) + + cor0.col2 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT - col2 * col2 + + col0 * - col1 FROM tab2 AS cor0
----
-2787
-5278
-946

query I rowsort
SELECT DISTINCT + 64 + + cor0.col2 AS col2 FROM tab2 cor0
----
102
90
91

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9176
SELECT DISTINCT CAST( NULL AS SIGNED ) * + cor0.col0 * col1 AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9176
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + cor0.col0 * col1 AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - col2 * col2 + + cor0.col0 FROM tab1 AS cor0
----
-2913
-3185
-9136

query I rowsort
SELECT ALL + - ( + cor0.col0 ) * col0 FROM tab1 AS cor0
----
-4096
-6400
-9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9179
SELECT - cor0.col1 * col1 * + col0 + CAST( - 31 * + col2 + - CAST( NULL AS SIGNED ) AS SIGNED ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9179
SELECT - cor0.col1 * col1 * + col0 + CAST ( - 31 * + col2 + - CAST ( NULL AS INTEGER ) AS INTEGER ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9180
SELECT DISTINCT - CAST( ( col2 ) AS SIGNED ) + + 59 AS col1 FROM tab2 cor0
----
21
32
33

skipif mysql # not compatible
query I rowsort label-9180
SELECT DISTINCT - CAST ( ( col2 ) AS INTEGER ) + + 59 AS col1 FROM tab2 cor0
----
21
32
33

query I rowsort
SELECT DISTINCT - ( col0 ) * col0 + 86 AS col1 FROM tab2
----
-5998
-6155
37

query I rowsort
SELECT + ( - col2 ) * - col0 + - col1 * - 66 FROM tab1 AS cor0
----
1878
4308
8538

query I rowsort
SELECT ALL - 96 * col1 - col2 AS col2 FROM tab1 cor0
----
-1017
-1344
-2550

query I rowsort
SELECT DISTINCT - ( - col2 ) - col0 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT ALL col2 - - col2 FROM tab1 cor0
----
108
114
192

query I rowsort
SELECT col2 * 43 - col1 FROM tab1 AS cor0
----
2296
2441
4115

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + + col1 col1 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT ( col0 ) + + ( - 9 ) FROM tab1 AS cor0
----
-6
55
71

query I rowsort
SELECT + + col2 * - col0 + - 66 AS col2 FROM tab1 AS cor0
----
-228
-3714
-7746

onlyif mysql # use DIV operator for integer division
query I rowsort label-9190
SELECT + col0 DIV col2 + - ( 90 ) col2 FROM tab1 AS cor0
----
-89
-90
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9190
SELECT + col0 / col2 + - ( 90 ) col2 FROM tab1 AS cor0
----
-89
-90
-90

query I rowsort
SELECT ALL + col1 + col0 * - 85 FROM tab1 AS cor0
----
-229
-5430
-6787

query I rowsort
SELECT DISTINCT + + ( - cor0.col1 ) + cor0.col2 + ( + col2 ) FROM tab1 AS cor0
----
104
179
82

query I rowsort
SELECT DISTINCT + + 67 * + col2 - + col2 FROM tab2 AS cor0
----
1716
1782
2508

query I rowsort
SELECT ALL + col0 - + col0 * - cor0.col0 FROM tab1 cor0
----
12
4160
6480

query I rowsort
SELECT DISTINCT ( - col2 ) * ( + 30 ) + - cor0.col2 FROM tab1 cor0
----
-1674
-1767
-2976

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9196
SELECT CAST( NULL AS SIGNED ) * + col1 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9196
SELECT CAST ( NULL AS INTEGER ) * + col1 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 87 col2 FROM tab1 AS cor0
----
-87
-87
-87

onlyif mysql # use DIV operator for integer division
query I rowsort label-9198
SELECT DISTINCT - ( tab0.col2 ) + col2 DIV col2 FROM tab0
----
-32
-81
0

skipif mysql # not compatible
query I rowsort label-9198
SELECT DISTINCT - ( tab0.col2 ) + col2 / col2 FROM tab0
----
-32
-81
0

query I rowsort
SELECT + tab0.col1 * + col0 + - col2 - 82 FROM tab0
----
1949
3312
7935

query I rowsort
SELECT - col0 + 95 * col1 AS col0 FROM tab2 AS cor0
----
1536
2938
5527

onlyif mysql # use DIV operator for integer division
query I rowsort label-9201
SELECT DISTINCT + col0 + 76 DIV - col0 + col0 DIV - col1 FROM tab0 cor0
----
21
33
89

skipif mysql # not compatible
query I rowsort label-9201
SELECT DISTINCT + col0 + 76 / - col0 + col0 / - col1 FROM tab0 cor0
----
21
33
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-9202
SELECT col0 DIV CAST( + col1 AS SIGNED ) FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9202
SELECT col0 / CAST ( + col1 AS INTEGER ) FROM tab0 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9203
SELECT ALL col2 * CAST( NULL AS SIGNED ) + 16 / col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9203
SELECT ALL col2 * CAST ( NULL AS INTEGER ) + 16 / col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - col0 + + 20 AS col1 FROM tab1 cor0
----
100
23
84

query I rowsort
SELECT DISTINCT + col2 + + ( col0 ) * - col0 FROM tab2 AS cor0
----
-22
-6058
-6203

query I rowsort
SELECT ALL - col2 + + ( + col1 ) FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT DISTINCT + - 87 FROM tab0, tab2, tab1 AS cor0
----
-87

query I rowsort
SELECT ALL 38 * col2 FROM tab2
----
1026
1444
988

query I rowsort
SELECT - - col1 + + ( + 55 ) FROM tab0 AS cor0
----
141
146
152

query I rowsort
SELECT + - col2 + + 7 * + 19 FROM tab0 AS cor0
----
100
132
51

query I rowsort
SELECT + col1 * + 50 AS col0 FROM tab1 AS cor0
----
1300
500
650

query I rowsort
SELECT + 60 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to a97561e17ecaa618227c75a57b268f33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 29 col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2

query I rowsort
SELECT ALL + ( col2 ) + + 47 AS col1 FROM tab0 AS cor0
----
129
48
80

query I rowsort
SELECT - cor0.col1 + - cor0.col0 AS col0 FROM tab0 cor0
----
-110
-132
-180

query I rowsort
SELECT col2 + col2 * + cor0.col1 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT DISTINCT + tab1.col2 * - 47 AS col1 FROM tab1
----
-2538
-2679
-4512

query I rowsort
SELECT + col0 * + col1 * 13 AS col2 FROM tab2 AS cor0
----
17459
2821
59826

onlyif mysql # use DIV operator for integer division
query I rowsort label-9219
SELECT - 23 DIV - 12 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

skipif mysql # not compatible
query I rowsort label-9219
SELECT - 23 / - 12 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

query I rowsort
SELECT + cor0.col1 * - 57 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to b3c8b5d59b492d1f7afa6ee176eab00d

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * tab0.col0 + col1 col0 FROM tab0
----
132
7389
878

query I rowsort
SELECT DISTINCT - cor0.col2 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1, tab2 cor1
----
-54
-57
-96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9223
SELECT - + CAST( col2 AS SIGNED ) * cor0.col1 AS col2 FROM tab2 AS cor0
----
-1534
-646
-837

skipif mysql # not compatible
query I rowsort label-9223
SELECT - + CAST ( col2 AS INTEGER ) * cor0.col1 AS col2 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT ALL + tab1.col0 + + ( + col1 ) FROM tab1
----
29
74
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-9225
SELECT + 47 DIV col2 + + col1 AS col0 FROM tab0 AS cor0
----
144
87
91

skipif mysql # not compatible
query I rowsort label-9225
SELECT + 47 / col2 + + col1 AS col0 FROM tab0 AS cor0
----
144
87
91

query I rowsort
SELECT ALL - col0 * + cor0.col0 + + col2 AS col0 FROM tab2 AS cor0
----
-22
-6058
-6203

query I rowsort
SELECT ALL + 46 AS col2 FROM tab2 cor0
----
46
46
46

query I rowsort
SELECT DISTINCT + col0 + - col0 * col2 FROM tab0 AS cor0
----
-7209
-768
0

query I rowsort
SELECT ALL cor0.col0 AS col0 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT ALL + col2 + + ( col0 ) FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT DISTINCT 65 * ( col1 ) FROM tab2 AS cor0
----
1105
2015
3835

query I rowsort
SELECT col1 * - col1 * col1 AS col2 FROM tab2 AS cor0
----
-205379
-29791
-4913

query I rowsort
SELECT DISTINCT + + 16 FROM tab1 AS cor0
----
16

query I rowsort
SELECT + 1 + + col0 * - col2 * + ( cor0.col1 * - cor0.col2 ) FROM tab0 AS cor0
----
2247697
3396
54457677

query I rowsort
SELECT DISTINCT - 10 * + col1 FROM tab2 AS cor0
----
-170
-310
-590

query I rowsort
SELECT ( + 22 ) * col0 AS col0 FROM tab1
----
1408
1760
66

query I rowsort
SELECT DISTINCT 17 AS col0 FROM tab1, tab2 AS cor0 CROSS JOIN tab2
----
17

query I rowsort
SELECT - col2 + - 99 * col2 * - 98 FROM tab1 AS cor0
----
523854
552957
931296

query I rowsort
SELECT ALL 98 AS col0 FROM tab1, tab1 AS cor0, tab0, tab1 AS cor1
----
81 values hashing to 6624b1f09c0594f5576803ac29f4499d

query I rowsort
SELECT - + 81 + + col2 FROM tab2 AS cor0
----
-43
-54
-55

query I rowsort
SELECT + cor0.col0 AS col0 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT DISTINCT 8 + + col2 * 19 * col2 FROM tab2
----
12852
13859
27444

query I rowsort
SELECT - 8 * col0 + 21 AS col1 FROM tab1
----
-3
-491
-619

query I rowsort
SELECT - 13 + tab1.col2 FROM tab1
----
41
44
83

query I rowsort
SELECT DISTINCT 95 * col0 AS col1 FROM tab2 AS cor0
----
665
7410
7505

query I rowsort
SELECT + 19 * col2 AS col2 FROM tab2 AS cor0
----
494
513
722

query I rowsort
SELECT + + col0 + col2 * - col1 AS col1 FROM tab1 AS cor0
----
-1168
-1401
-506

query I rowsort
SELECT + 73 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 3933a906d17a820ccf95467e2206df8f

query I rowsort
SELECT + + col2 * col2 + 18 AS col0 FROM tab0 AS cor0
----
1107
19
6742

query I rowsort
SELECT - 38 FROM tab2, tab2 AS cor0
----
9 values hashing to e571541ae40cb0ddaca16e11f4359507

query I rowsort
SELECT + cor0.col1 + + 98 * + 69 FROM tab2 AS cor0
----
6779
6793
6821

query I rowsort
SELECT - col2 - - col1 * col1 AS col0 FROM tab1 AS cor0
----
43
622
73

query I rowsort
SELECT + + col0 + col0 * cor0.col2 AS col0 FROM tab1 AS cor0
----
165
3712
7760

onlyif mysql # use DIV operator for integer division
query I rowsort label-9254
SELECT - 55 DIV + col1 + - col0 * 65 DIV - col0 FROM tab0 AS cor0
----
65
65
65

skipif mysql # not compatible
query I rowsort label-9254
SELECT - 55 / + col1 + - col0 * 65 / - col0 FROM tab0 AS cor0
----
65
65
65

query I rowsort
SELECT 24 * 88 AS col1 FROM tab0 AS cor0
----
2112
2112
2112

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab1.col2 * - ( + col2 ) col0 FROM tab1
----
2916
3249
9216

onlyif mysql # use DIV operator for integer division
query I rowsort label-9257
SELECT - col2 * ( + col2 ) DIV col2 col2 FROM tab1
----
-54
-57
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9257
SELECT - col2 * ( + col2 ) / col2 col2 FROM tab1
----
-54
-57
-96

query I rowsort
SELECT - col1 * - 7 FROM tab0
----
602
637
679

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9259
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col2 FROM tab1, tab0, tab2 AS cor0, tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9259
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col2 FROM tab1, tab0, tab2 AS cor0, tab2
----
NULL

query I rowsort
SELECT + - 18 AS col0 FROM tab1 cor0
----
-18
-18
-18

query I rowsort
SELECT + col2 + + 46 * col1 FROM tab0 AS cor0
----
3989
4268
4463

onlyif mysql # use DIV operator for integer division
query I rowsort label-9262
SELECT - col2 - - col2 DIV col1 AS col2 FROM tab1 AS cor0
----
-52
-52
-89

skipif mysql # not compatible
query I rowsort label-9262
SELECT - col2 - - col2 / col1 AS col2 FROM tab1 AS cor0
----
-52
-52
-89

onlyif mysql # use DIV operator for integer division
query I rowsort label-9263
SELECT col0 DIV 69 AS col1 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9263
SELECT col0 / 69 AS col1 FROM tab0
----
0
0
1

query I rowsort
SELECT cor0.col2 * col2 + cor0.col1 * col2 FROM tab1 AS cor0
----
10464
3819
4320

query I rowsort
SELECT DISTINCT - col0 + ( + 89 ) * col0 FROM tab0 AS cor0
----
2112
3080
7832

query I rowsort
SELECT ALL col0 + 83 * - 82 FROM tab2 cor0
----
-6727
-6728
-6799

query I rowsort
SELECT ( cor1.col0 + 98 ) FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 19682d3439cca7845f9153b5539dfeb6

query I rowsort
SELECT DISTINCT col1 + col1 + - tab1.col2 * col0 FROM tab1
----
-110
-3628
-7654

query I rowsort
SELECT ALL 79 AS col2 FROM tab0 AS cor0
----
79
79
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 + col0 * col0 col2 FROM tab2 AS cor0
----
6143
6258
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-9271
SELECT - cor0.col0 DIV + col0 AS col2 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9271
SELECT - cor0.col0 / + col0 AS col2 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT col1 * col1 + - col1 + col2 AS col2 FROM tab1
----
147
252
704

query I rowsort
SELECT DISTINCT + col1 + + 10 FROM tab1
----
20
23
36

query I rowsort
SELECT + ( col2 * col1 ) AS col1 FROM tab2
----
1534
646
837

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9275
SELECT DISTINCT + CAST( + ( col2 ) AS SIGNED ) FROM tab0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-9275
SELECT DISTINCT + CAST ( + ( col2 ) AS INTEGER ) FROM tab0
----
1
33
82

query I rowsort
SELECT DISTINCT + 10 + col2 FROM tab0 AS cor0
----
11
43
92

query I rowsort
SELECT DISTINCT - 8 + - col0 AS col2 FROM tab0 AS cor0
----
-32
-43
-97

query I rowsort
SELECT ALL - - col0 * cor0.col0 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT + - 61 + col2 AS col1 FROM tab2 AS cor0
----
-23
-34
-35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + cor0.col1 col1 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT + 54 + - col1 AS col1 FROM tab0 AS cor0
----
-32
-37
-43

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * col0 - col2 col2 FROM tab0
----
1224
543
7839

query I rowsort
SELECT + col1 * col1 * + cor0.col0 + col2 + - col2 AS col1 FROM tab0 AS cor0
----
177504
329315
737009

query I rowsort
SELECT DISTINCT - + col0 + col1 AS col2 FROM tab2 cor0
----
-19
-62
24

query I rowsort
SELECT ALL - - cor0.col2 * + col1 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT ALL + col0 + - col0 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL 56 * col2 AS col2 FROM tab2 AS cor0
----
1456
1512
2128

query I rowsort
SELECT + + col0 * - col2 - cor0.col0 * + col0 AS col2 FROM tab2 AS cor0
----
-238
-8112
-9243

onlyif mysql # use DIV operator for integer division
query I rowsort label-9289
SELECT - col2 * col2 + col0 + col2 DIV - col2 FROM tab1 cor0
----
-2914
-3186
-9137

skipif mysql # not compatible
query I rowsort label-9289
SELECT - col2 * col2 + col0 + col2 / - col2 FROM tab1 cor0
----
-2914
-3186
-9137

query I rowsort
SELECT + col0 + + col1 + + 82 AS col1 FROM tab0 cor0
----
192
214
262

query I rowsort
SELECT - col2 + - col0 + + ( - cor0.col1 ) * - col0 * + col2 FROM tab2 AS cor0
----
119548
50917
5825

query I rowsort
SELECT 27 + tab0.col1 AS col1 FROM tab0
----
113
118
124

query I rowsort
SELECT 88 + + col0 FROM tab0
----
112
123
177

query I rowsort
SELECT - 13 * tab0.col2 AS col2 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 548f1ff58c195dfdfe416b7dc8e34ea2

query I rowsort
SELECT DISTINCT + ( col2 ) * tab2.col2 - - col0 FROM tab2
----
1523
736
754

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * cor0.col2 col2 FROM tab1 cor0
----
1248
1404
570

query I rowsort
SELECT DISTINCT col1 + col0 + + ( ( + col1 ) ) * + col1 * + col2 AS col2 FROM tab1 AS cor0
----
16317
36533
5774

query I rowsort
SELECT DISTINCT + col2 * col0 + col2 AS col2 FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT DISTINCT + - 6 + - col2 * 36 FROM tab1 cor0
----
-1950
-2058
-3462

query I rowsort
SELECT ALL 66 AS col2 FROM tab2 cor0
----
66
66
66

query I rowsort
SELECT - 66 AS col0 FROM tab0, tab2 AS cor0, tab2 cor1
----
27 values hashing to cd4a3594ee8b45223ebf9f25840cd112

query I rowsort
SELECT DISTINCT - - col2 * cor0.col0 + col0 * + cor0.col1 * 32 AS col2 FROM tab1 AS cor0
----
24128
2658
40960

query I rowsort
SELECT ALL + col2 + + 77 * 73 AS col2 FROM tab2 AS cor0
----
5647
5648
5659

query I rowsort
SELECT DISTINCT - col0 * 60 - ( col0 ) * 79 FROM tab0 AS cor0
----
-12371
-3336
-4865

query I rowsort
SELECT DISTINCT + col0 + col0 - 16 AS col1 FROM tab1 AS cor0
----
-10
112
144

query I rowsort
SELECT ALL + + col1 + - ( - 8 ) AS col0 FROM tab1 AS cor0
----
18
21
34

query I rowsort
SELECT - col0 - 27 AS col1 FROM tab1 AS cor0
----
-107
-30
-91

query I rowsort
SELECT ALL - - col2 * + col0 + - 98 AS col2 FROM tab2 AS cor0
----
1930
2904
91

query I rowsort
SELECT - col0 + + ( - col2 ) FROM tab2 AS cor0
----
-104
-117
-34

query I rowsort
SELECT col1 - col1 * + ( col2 * 6 ) AS col2 FROM tab2 AS cor0
----
-3859
-4991
-9145

query I rowsort
SELECT ALL col1 * col0 - + col1 * 9 FROM tab1
----
-156
550
923

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9312
SELECT - col2 * + CAST( NULL AS SIGNED ) + - cor0.col2 - + col0 * col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9312
SELECT - col2 * + CAST ( NULL AS INTEGER ) + - cor0.col2 - + col0 * col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-9313
SELECT ALL - + col0 * col2 + - ( - col2 ) DIV - col1 FROM tab1 AS cor0
----
-164
-3653
-7687

skipif mysql # not compatible
query I rowsort label-9313
SELECT ALL - + col0 * col2 + - ( - col2 ) / - col1 FROM tab1 AS cor0
----
-164
-3653
-7687

query I rowsort
SELECT DISTINCT col0 * ( 90 * col1 ) AS col0 FROM tab1 AS cor0
----
57600
7020
93600

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - ( 36 ) col1 FROM tab1 AS cor0
----
1944
2052
3456

onlyif mysql # use DIV operator for integer division
query I rowsort label-9316
SELECT DISTINCT - col2 * - 39 + + col1 + col0 * 29 DIV + col1 FROM tab2 cor0
----
1090
1111
1633

skipif mysql # not compatible
query I rowsort label-9316
SELECT DISTINCT - col2 * - 39 + + col1 + col0 * 29 / + col1 FROM tab2 cor0
----
1090
1111
1633

query I rowsort
SELECT DISTINCT col0 * - 66 AS col2 FROM tab1 AS cor0
----
-198
-4224
-5280

query I rowsort
SELECT DISTINCT - col2 * col1 + col0 AS col0 FROM tab1 AS cor0
----
-1168
-1401
-506

query I rowsort
SELECT ALL - cor0.col1 * col0 AS col1 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT + + 30 + col2 FROM tab2 cor0
----
56
57
68

query I rowsort
SELECT ALL + cor0.col0 + + col2 * - col1 FROM tab0 AS cor0
----
-2814
-62
-7373

query I rowsort
SELECT + 82 AS col2 FROM tab2 AS cor0
----
82
82
82

query I rowsort
SELECT ALL - + 70 FROM tab2 cor0
----
-70
-70
-70

query I rowsort
SELECT DISTINCT + 45 * 20 AS col1 FROM tab0 AS cor0
----
900

onlyif mysql # use DIV operator for integer division
query I rowsort label-9325
SELECT DISTINCT - 48 DIV cor0.col1 FROM tab2 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-9325
SELECT DISTINCT - 48 / cor0.col1 FROM tab2 AS cor0
----
-1
-2
0

query I rowsort
SELECT DISTINCT + + col0 - col1 AS col2 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT ALL - - col0 * - 95 FROM tab2 AS cor0
----
-665
-7410
-7505

onlyif mysql # use DIV operator for integer division
query I rowsort label-9328
SELECT ALL cor0.col2 * col1 DIV col1 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-9328
SELECT ALL cor0.col2 * col1 / col1 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT DISTINCT + + col2 * + cor0.col0 AS col0 FROM tab0 AS cor0
----
35
7298
792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * col0 col1 FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT ALL - 81 + col1 * 11 - + col2 FROM tab1 AS cor0
----
-28
-34
151

query I rowsort
SELECT ALL + 3 + - col2 + + col1 FROM tab0 AS cor0
----
12
56
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 + col1 * + ( - col2 ) col0 FROM tab1 AS cor0
----
-1152
-1350
-513

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( tab2.col0 ) + col2 col1 FROM tab2
----
104
117
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - tab1.col1 ) col1 FROM tab1
----
-10
-13
-26

query I rowsort
SELECT ( col1 ) + - col2 AS col1 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT + + col2 * col1 + + col0 FROM tab2 AS cor0
----
1612
725
844

query I rowsort
SELECT - - ( cor0.col0 ) + col0 AS col2 FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT DISTINCT + ( 42 ) FROM tab0
----
42

query I rowsort
SELECT 30 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9341
SELECT DISTINCT CAST( NULL AS SIGNED ) + - 77 * + col1 AS col1 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9341
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - 77 * + col1 AS col1 FROM tab2 cor0
----
NULL

query I rowsort
SELECT ALL - col2 + - col2 * - col1 FROM tab2 AS cor0
----
1508
608
810

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9343
SELECT + col1 * col2 * CAST( NULL AS SIGNED ) + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9343
SELECT + col1 * col2 * CAST ( NULL AS INTEGER ) + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - cor0.col0 * col1 + + 39 * - col1 AS col0 FROM tab1 AS cor0
----
-1030
-1092
-1547

onlyif mysql # use DIV operator for integer division
query I rowsort label-9345
SELECT DISTINCT + col0 DIV + 6 AS col1 FROM tab2 AS cor0
----
1
13

skipif mysql # not compatible
query I rowsort label-9345
SELECT DISTINCT + col0 / + 6 AS col1 FROM tab2 AS cor0
----
1
13

query I rowsort
SELECT + - cor0.col0 * ( col0 ) - - col2 FROM tab1 AS cor0
----
-4039
-6304
45

query I rowsort
SELECT DISTINCT col2 * - 42 FROM tab0 AS cor0
----
-1386
-3444
-42

onlyif mysql # use DIV operator for integer division
query I rowsort label-9348
SELECT + - col1 - + 69 DIV + col1 FROM tab1 AS cor0
----
-16
-18
-28

skipif mysql # not compatible
query I rowsort label-9348
SELECT + - col1 - + 69 / + col1 FROM tab1 AS cor0
----
-16
-18
-28

query I rowsort
SELECT - col2 * + 58 + - col0 AS col0 FROM tab1 AS cor0
----
-3135
-3370
-5648

query I rowsort
SELECT - - cor0.col2 * col2 AS col1 FROM tab0 AS cor0
----
1
1089
6724

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 + col0 col0 FROM tab1 cor0
----
121
176
57

query I rowsort
SELECT - cor0.col1 + 39 FROM tab1 AS cor0
----
13
26
29

query I rowsort
SELECT + - cor0.col2 * ( - col0 ) + - col2 AS col1 FROM tab2 AS cor0
----
162
2002
2964

query I rowsort
SELECT + cor0.col2 * 23 + - col0 - col2 FROM tab2 AS cor0
----
494
587
757

query I rowsort
SELECT - col2 * ( - col0 ) + col0 AS col1 FROM tab2 cor0
----
196
2106
3081

query I rowsort
SELECT - col0 + + 15 FROM tab2 AS cor0
----
-63
-64
8

query I rowsort
SELECT - ( 40 ) FROM tab2 AS cor0
----
-40
-40
-40

query I rowsort
SELECT 61 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 07149905a72bd87553381f34d19ed290

query I rowsort
SELECT + col0 + - 73 + + col0 AS col1 FROM tab0 AS cor0
----
-25
-3
105

onlyif mysql # use DIV operator for integer division
query I rowsort label-9360
SELECT ( col2 ) * - col0 DIV - ( col0 ) FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-9360
SELECT ( col2 ) * - col0 / - ( col0 ) FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT DISTINCT - col0 * col1 * cor0.col0 + + cor0.col2 AS col0 FROM tab0 cor0
----
-118824
-49503
-720729

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9362
SELECT DISTINCT + CAST( + cor0.col2 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-9362
SELECT DISTINCT + CAST ( + cor0.col2 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT - + col2 * + 66 + - col2 * - col2 + 84 FROM tab1 AS cor0
----
-429
-564
2964

query I rowsort
SELECT col2 - 44 FROM tab2 AS cor0
----
-17
-18
-6

query I rowsort
SELECT - + 89 * 39 - col0 AS col2 FROM tab0 AS cor0
----
-3495
-3506
-3560

query I rowsort
SELECT ALL - ( col1 ) + cor0.col0 AS col0 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT DISTINCT - 97 + + col2 * col2 AS col1 FROM tab1 AS cor0
----
2819
3152
9119

query I rowsort
SELECT + ( cor0.col2 ) + cor0.col2 FROM tab1, tab0 AS cor0
----
9 values hashing to e5ee086d16e1b2450d3f7ac8d26a0f7b

query I rowsort
SELECT - + ( - ( col2 ) ) AS col0 FROM tab2 AS cor0
----
26
27
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 66 col2 FROM tab0 cor0
----
66

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9371
SELECT DISTINCT + CAST( ( + cor0.col1 ) AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
86
91
97

skipif mysql # not compatible
query I rowsort label-9371
SELECT DISTINCT + CAST ( ( + cor0.col1 ) AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
86
91
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9372
SELECT + + cor0.col0 * + CAST( + col2 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
35
7298
792

skipif mysql # not compatible
query I rowsort label-9372
SELECT + + cor0.col0 * + CAST ( + col2 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT cor0.col0 * 36 AS col2 FROM tab0 cor0
----
1260
3204
864

query I rowsort
SELECT + col2 + - 70 * col1 FROM tab2 AS cor0
----
-1152
-2143
-4104

onlyif mysql # use DIV operator for integer division
query I rowsort label-9375
SELECT DISTINCT - col2 + tab0.col0 DIV tab0.col0 FROM tab0
----
-32
-81
0

skipif mysql # not compatible
query I rowsort label-9375
SELECT DISTINCT - col2 + tab0.col0 / tab0.col0 FROM tab0
----
-32
-81
0

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT IN ( - col0 * col0 + col1 * col0 )
----

query I rowsort
SELECT - col1 * col2 - + col0 FROM tab2 AS cor0
----
-1612
-725
-844

query I rowsort
SELECT ALL col0 - - col2 * col0 FROM tab2
----
196
2106
3081

query I rowsort
SELECT + cor0.col2 + col1 * col1 AS col0 FROM tab1 AS cor0
----
157
265
730

query I rowsort
SELECT + cor0.col0 * col1 + - cor0.col2 AS col0 FROM tab0 AS cor0
----
2031
3394
8017

query I rowsort
SELECT ALL col2 + - col2 - - col0 AS col0 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT DISTINCT - col0 * cor0.col2 + col1 FROM tab1 cor0
----
-136
-3638
-7667

query I rowsort
SELECT col2 * col0 * col1 - + col0 AS col2 FROM tab1 AS cor0
----
36416
4209
99760

onlyif mysql # use DIV operator for integer division
query I rowsort label-9384
SELECT DISTINCT - col1 DIV - col0 - + col2 FROM tab0 AS cor0
----
-30
-81
1

skipif mysql # not compatible
query I rowsort label-9384
SELECT DISTINCT - col1 / - col0 - + col2 FROM tab0 AS cor0
----
-30
-81
1

query I rowsort
SELECT ALL - col0 + - col2 AS col1 FROM tab0 cor0
----
-171
-36
-57

query I rowsort
SELECT DISTINCT - cor0.col0 - col1 * - cor0.col0 AS col0 FROM tab2 AS cor0
----
1264
210
4524

query I rowsort
SELECT col1 + + col1 * col1 AS col0 FROM tab1
----
110
182
702

query I rowsort
SELECT DISTINCT col2 * col0 - col0 AS col1 FROM tab0
----
0
7209
768

onlyif mysql # use DIV operator for integer division
query I rowsort label-9389
SELECT ALL cor0.col0 DIV - col0 AS col1 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9389
SELECT ALL cor0.col0 / - col0 AS col1 FROM tab2 AS cor0
----
-1
-1
-1

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE + cor0.col1 * + col1 BETWEEN NULL AND NULL
----

query I rowsort
SELECT col0 + - col1 * + col1 AS col2 FROM tab0
----
-7372
-8192
-9374

onlyif mysql # use DIV operator for integer division
query I rowsort label-9392
SELECT DISTINCT + col2 + col2 DIV col0 FROM tab1 AS cor0
----
57
72
97

skipif mysql # not compatible
query I rowsort label-9392
SELECT DISTINCT + col2 + col2 / col0 FROM tab1 AS cor0
----
57
72
97

query I rowsort
SELECT ALL + col0 * - cor0.col1 + + col2 AS col2 FROM tab2 AS cor0
----
-1305
-190
-4576

query I rowsort
SELECT - ( - tab1.col2 + col1 ) AS col1 FROM tab1
----
28
47
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - col0 col2 FROM tab1 AS cor0
----
-162
-3648
-7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-9396
SELECT + cor0.col1 DIV col2 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9396
SELECT + cor0.col1 / col2 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + - col2 * col2 + col0 FROM tab2 AS cor0
----
-1365
-598
-722

query I rowsort
SELECT DISTINCT col2 * + col2 FROM tab2 WHERE NOT col0 NOT IN ( + col0 ) AND + col1 <> + col2
----
1444
676
729

query I rowsort
SELECT col0 * col1 + tab1.col2 AS col0 FROM tab1
----
1136
132
697

query I rowsort
SELECT DISTINCT - + col2 + + col2 * + col2 FROM tab1 AS cor0
----
2862
3192
9120

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col0 * + col2 * col0 - - cor0.col2 col0 FROM tab1 AS cor0
----
233529
540
614496

onlyif mysql # use DIV operator for integer division
query I rowsort label-9402
SELECT ALL - + cor0.col2 DIV + col0 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9402
SELECT ALL - + cor0.col2 / + col0 FROM tab0 AS cor0
----
-1
0
0

query I rowsort
SELECT + - 26 * col1 * + ( + cor0.col0 + col2 ) FROM tab0 AS cor0
----
-127452
-404586
-90792

query I rowsort
SELECT - 26 * + col1 AS col1 FROM tab2 cor0
----
-1534
-442
-806

query I rowsort
SELECT DISTINCT + 16 * + col2 FROM tab1 AS cor0
----
1536
864
912

query I rowsort
SELECT DISTINCT - + col1 * col2 AS col1 FROM tab0 cor0
----
-2838
-7462
-97

query I rowsort
SELECT - col2 * - col2 + + col0 - col1 AS col1 FROM tab2
----
1506
695
705

query I rowsort
SELECT ALL - tab0.col1 * col0 + col1 * + col1 AS col1 FROM tab0
----
182
5332
6014

query I rowsort
SELECT ALL cor0.col0 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT - 33 + col2 AS col0 FROM tab1
----
21
24
63

query I rowsort
SELECT col0 * col1 * + col2 + col2 AS col2 FROM tab0
----
3396
664200
68145

query I rowsort
SELECT DISTINCT + 69 * + col2 FROM tab2
----
1794
1863
2622

query I rowsort
SELECT tab0.col1 * + col1 + col2 FROM tab0
----
7429
8363
9410

query I rowsort
SELECT ALL - - cor0.col0 * cor0.col1 AS col1 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT - 10 * - col0 * - 98 FROM tab0 AS cor0
----
-23520
-34300
-87220

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + + col1 col1 FROM tab2 AS cor0
----
118
34
62

query I rowsort
SELECT DISTINCT + 3 * + col1 AS col0 FROM tab1
----
30
39
78

query I rowsort
SELECT col2 FROM tab2 WHERE NULL > ( NULL )
----

query I rowsort
SELECT DISTINCT + col0 AS col1 FROM tab1 WHERE ( NULL ) > ( NULL )
----

query I rowsort
SELECT tab2.col1 * col2 - col1 * col2 AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL col1 + col1 - col1 * - col0 FROM tab0
----
2236
3589
8281

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + col2 + col2 ) IN ( - col1 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

query I rowsort
SELECT col1 * + col0 + tab1.col1 + col2 AS col0 FROM tab1
----
1149
158
707

onlyif mysql # use DIV operator for integer division
query I rowsort label-9424
SELECT col1 DIV + col2 + col0 AS col2 FROM tab0 AS cor0
----
132
26
90

skipif mysql # not compatible
query I rowsort label-9424
SELECT col1 / + col2 + col0 AS col2 FROM tab0 AS cor0
----
132
26
90

query I rowsort
SELECT ALL + col1 + - cor0.col2 AS col1 FROM tab0 cor0
----
53
9
96

query I rowsort
SELECT + col0 * + col0 * col0 FROM tab1
----
262144
27
512000

query I rowsort
SELECT DISTINCT - col1 * tab0.col1 AS col0 FROM tab0
----
-7396
-8281
-9409

query I rowsort
SELECT ALL + tab2.col0 * + col1 FROM tab2
----
1343
217
4602

query I rowsort
SELECT + col2 * col1 * col2 AS col0 FROM tab0
----
611884
93654
97

query I rowsort
SELECT + col1 + col1 * - col0 AS col1 FROM tab0
----
-1978
-3298
-8008

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + col2 - tab1.col0 * tab1.col0 col0 FROM tab1
----
-448
1280
153

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + col1 col1 FROM tab2
----
137
38
96

query I rowsort
SELECT + col2 * tab2.col1 FROM tab2 WHERE NOT + col0 NOT IN ( - tab2.col1 )
----

query I rowsort
SELECT ALL col0 * col1 + col2 FROM tab0 WHERE NULL = NULL
----

query I rowsort
SELECT DISTINCT - col2 * tab2.col2 AS col1 FROM tab2
----
-1444
-676
-729

query I rowsort
SELECT ALL + col2 + - col0 AS col0 FROM tab2 WHERE NULL > NULL
----

query I rowsort
SELECT col1 * col0 + - col0 FROM tab2
----
1264
210
4524

query I rowsort
SELECT DISTINCT + col1 * + col0 + + col0 FROM tab1
----
1120
704
81

query I rowsort
SELECT DISTINCT - col1 + - col2 * + col2 * + tab1.col1 AS col1 FROM tab1 WHERE NULL = NULL
----

query I rowsort
SELECT - tab0.col1 AS col2 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84

query I rowsort
SELECT DISTINCT ( col2 * tab1.col0 ) + + col0 AS col1 FROM tab1
----
165
3712
7760

query I rowsort
SELECT ALL + ( + col2 * col0 ) FROM tab2
----
189
2028
3002

query I rowsort
SELECT ALL + 78 + - col2 AS col2 FROM tab2 AS cor0
----
40
51
52

query I rowsort
SELECT ALL 60 + ( cor1.col0 ) AS col1 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 3d4d99793c5c9723ac8f095a26879cba

query I rowsort
SELECT DISTINCT - cor0.col1 AS col1 FROM tab2, tab0, tab2 cor0
----
-17
-31
-59

onlyif mysql # use DIV operator for integer division
query I rowsort label-9446
SELECT DISTINCT - - col2 + 80 DIV + 78 + col1 AS col0 FROM tab2 AS cor0
----
56
59
86

skipif mysql # not compatible
query I rowsort label-9446
SELECT DISTINCT - - col2 + 80 / + 78 + col1 AS col0 FROM tab2 AS cor0
----
56
59
86

query I rowsort
SELECT + col1 * + col2 + - 76 FROM tab0 AS cor0
----
21
2762
7386

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9448
SELECT DISTINCT - - col1 + CAST( NULL AS SIGNED ) col1 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9448
SELECT DISTINCT - - col1 + CAST ( NULL AS INTEGER ) col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + col0 + 73 AS col1 FROM tab2 cor0
----
151
152
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-9450
SELECT - - col0 DIV + col0 + + col0 FROM tab0 AS cor0
----
25
36
90

skipif mysql # not compatible
query I rowsort label-9450
SELECT - - col0 / + col0 + + col0 FROM tab0 AS cor0
----
25
36
90

query I rowsort
SELECT + + col1 + + col2 AS col0 FROM tab2 AS cor0
----
55
58
85

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9452
SELECT + + col1 + - CAST( NULL AS SIGNED ) - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9452
SELECT + + col1 + - CAST ( NULL AS INTEGER ) - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 81 AS col0 FROM tab1
----
-81
-81
-81

onlyif mysql # use DIV operator for integer division
query I rowsort label-9454
SELECT DISTINCT + ( + col2 ) * cor0.col2 DIV ( + col0 * + cor0.col0 ) AS col1 FROM tab1 AS cor0
----
0
1
324

skipif mysql # not compatible
query I rowsort label-9454
SELECT DISTINCT + ( + col2 ) * cor0.col2 / ( + col0 * + cor0.col0 ) AS col1 FROM tab1 AS cor0
----
0
1
324

query I rowsort
SELECT DISTINCT + 24 * + col1 + - col0 FROM tab0 AS cor0
----
2040
2095
2293

query I rowsort
SELECT + ( 4 ) FROM tab0 AS cor0
----
4
4
4

query I rowsort
SELECT DISTINCT - 37 + cor0.col0 FROM tab1 AS cor0
----
-34
27
43

query I rowsort
SELECT 88 FROM tab0 cor0
----
88
88
88

query I rowsort
SELECT ALL + 6 * col2 + + col0 AS col1 FROM tab2 AS cor0
----
169
234
307

query I rowsort
SELECT DISTINCT + 28 * col1 + - col2 AS col2 FROM tab1 AS cor0
----
223
268
674

query I rowsort
SELECT cor1.col2 - - 26 FROM tab0, tab0 AS cor0, tab2 cor1
----
27 values hashing to 0db21395ed659647d3d18a5f447e7ece

query I rowsort
SELECT + - 88 AS col1 FROM tab2 AS cor0
----
-88
-88
-88

onlyif mysql # use DIV operator for integer division
query I rowsort label-9463
SELECT + - col2 DIV - col1 AS col1 FROM tab1 AS cor0
----
2
5
7

skipif mysql # not compatible
query I rowsort label-9463
SELECT + - col2 / - col1 AS col1 FROM tab1 AS cor0
----
2
5
7

query I rowsort
SELECT + + col2 * + col1 * - 66 AS col0 FROM tab0 AS cor0
----
-187308
-492492
-6402

query I rowsort
SELECT ALL 0 * col2 FROM tab1 cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 * + col0 col1 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT DISTINCT + col0 * ( - col0 + - col0 ) FROM tab1 AS cor0
----
-12800
-18
-8192

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9468
SELECT ALL - - col2 * - CAST( NULL AS SIGNED ) * - cor0.col1 - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9468
SELECT ALL - - col2 * - CAST ( NULL AS INTEGER ) * - cor0.col1 - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-9469
SELECT + col1 DIV + 13 - - cor0.col2 FROM tab1 AS cor0
----
56
57
97

skipif mysql # not compatible
query I rowsort label-9469
SELECT + col1 / + 13 - - cor0.col2 FROM tab1 AS cor0
----
56
57
97

query I rowsort
SELECT ALL + ( 53 ) FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 866ae1b4ab9e5b4043ac1bcfd413aaa6

query I rowsort
SELECT - + 30 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 56fa25f9fb8040460fe3c894000ea8fb

query I rowsort
SELECT - 53 * - col0 * - col2 FROM tab2 cor0
----
-10017
-107484
-159106

query I rowsort
SELECT + ( cor0.col0 ) * + col2 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT - - cor0.col0 * + 21 FROM tab2 AS cor0
----
147
1638
1659

query I rowsort
SELECT DISTINCT + col1 * 52 FROM tab1
----
1352
520
676

query I rowsort
SELECT ALL 1 * + col1 * col2 FROM tab1
----
1248
1404
570

onlyif mysql # use DIV operator for integer division
query I rowsort label-9477
SELECT DISTINCT 48 DIV + 14 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9477
SELECT DISTINCT 48 / + 14 FROM tab1
----
3

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9478
SELECT ALL - CAST( NULL AS SIGNED ) * + col1 * tab0.col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9478
SELECT ALL - CAST ( NULL AS INTEGER ) * + col1 * tab0.col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-9479
SELECT ALL ( - col2 ) DIV - tab0.col1 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9479
SELECT ALL ( - col2 ) / - tab0.col1 AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL - 15 * - 89 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to a3f5abc9029ec9776de96d9823f82536

query I rowsort
SELECT - 10 AS col0 FROM tab0
----
-10
-10
-10

query I rowsort
SELECT DISTINCT 18 * 82 AS col1 FROM tab1, tab0, tab0 AS cor0
----
1476

query I rowsort
SELECT + + cor0.col1 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT DISTINCT - col0 + + col0 AS col1 FROM tab0
----
0

query I rowsort
SELECT DISTINCT col1 * ( - col2 ) AS col1 FROM tab0
----
-2838
-7462
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-9486
SELECT ALL + + col0 + 21 DIV + 42 AS col2 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-9486
SELECT ALL + + col0 + 21 / + 42 AS col2 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT DISTINCT ( + 4 ) FROM tab2, tab0 AS cor0
----
4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9488
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * + cor0.col2 * col1 + 81 * ( + col2 ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9488
SELECT DISTINCT - CAST ( NULL AS REAL ) * + cor0.col2 * col1 + 81 * ( + col2 ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + - ( - col0 ) AS col0 FROM tab0 AS cor0
----
24
35
89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9490
SELECT DISTINCT - + CAST( NULL AS SIGNED ) * col0 * col2 + col0 * - col0 * - col0 + ( col1 ) * col2 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9490
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) * col0 * col2 + col0 * - col0 * - col0 + ( col1 ) * col2 AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-9491
SELECT ALL col2 * - col1 + col2 DIV col1 FROM tab2 AS cor0
----
-1534
-644
-837

skipif mysql # not compatible
query I rowsort label-9491
SELECT ALL col2 * - col1 + col2 / col1 FROM tab2 AS cor0
----
-1534
-644
-837

query I rowsort
SELECT 12 + 68 AS col2 FROM tab0 AS cor0
----
80
80
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9493
SELECT CAST( col1 AS SIGNED ) * col0 col0 FROM tab0
----
2064
3395
8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9493
SELECT CAST ( col1 AS INTEGER ) * col0 col0 FROM tab0
----
2064
3395
8099

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9494
SELECT DISTINCT + CAST( NULL AS SIGNED ) + col1 * col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9494
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + col1 * col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + 16 + - col0 AS col0 FROM tab0 AS cor0
----
-19
-73
-8

query I rowsort
SELECT ALL ( col1 ) * + col1 + 48 AS col2 FROM tab2 AS cor0
----
1009
337
3529

query I rowsort
SELECT DISTINCT - ( col1 ) * - col0 * - col2 FROM tab2 cor0
----
-119652
-51034
-5859

onlyif mysql # use DIV operator for integer division
query I rowsort label-9498
SELECT ALL col2 + - col0 DIV col2 AS col0 FROM tab0
----
-34
33
81

skipif mysql # not compatible
query I rowsort label-9498
SELECT ALL col2 + - col0 / col2 AS col0 FROM tab0
----
-34
33
81

query I rowsort
SELECT - tab0.col2 + + col1 AS col0 FROM tab0
----
53
9
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-9500
SELECT + col2 DIV col2 + - col0 * col0 col1 FROM tab1
----
-4095
-6399
-8

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9500
SELECT + col2 / col2 + - col0 * col0 col1 FROM tab1
----
-4095
-6399
-8

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9501
SELECT - 18 + - col0 * CAST( NULL AS SIGNED ) - - col0 * col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9501
SELECT - 18 + - col0 * CAST ( NULL AS INTEGER ) - - col0 * col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ( + col2 ) + col1 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT - - col0 * + cor0.col1 + + 48 FROM tab1 AS cor0
----
1088
126
688

query I rowsort
SELECT ALL cor0.col1 * col1 - col1 FROM tab1 cor0
----
156
650
90

onlyif mysql # use DIV operator for integer division
query I rowsort label-9505
SELECT DISTINCT col0 DIV + 33 + - col0 AS col0 FROM tab1 AS cor0
----
-3
-63
-78

skipif mysql # not compatible
query I rowsort label-9505
SELECT DISTINCT col0 / + 33 + - col0 AS col0 FROM tab1 AS cor0
----
-3
-63
-78

onlyif mysql # use DIV operator for integer division
query I rowsort label-9506
SELECT ALL + col2 * col2 DIV + col0 AS col1 FROM tab1 AS cor0
----
115
50
972

skipif mysql # not compatible
query I rowsort label-9506
SELECT ALL + col2 * col2 / + col0 AS col1 FROM tab1 AS cor0
----
115
50
972

query I rowsort
SELECT col2 * col2 * + col1 FROM tab1 AS cor0
----
119808
32490
75816

query I rowsort
SELECT ALL + - col1 * ( + col0 ) FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT ALL cor0.col2 * cor0.col0 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT + - col1 + - 70 AS col0 FROM tab2 cor0
----
-101
-129
-87

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9511
SELECT DISTINCT - - col1 * CAST( col0 AS SIGNED ) * col0 - + cor0.col1 * ( + col0 ) AS col2 FROM tab1 cor0
----
156
40320
82160

skipif mysql # not compatible
query I rowsort label-9511
SELECT DISTINCT - - col1 * CAST ( col0 AS INTEGER ) * col0 - + cor0.col1 * ( + col0 ) AS col2 FROM tab1 cor0
----
156
40320
82160

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9512
SELECT ALL - + col1 - CAST( col2 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-55
-58
-85

skipif mysql # not compatible
query I rowsort label-9512
SELECT ALL - + col1 - CAST ( col2 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-55
-58
-85

query I rowsort
SELECT DISTINCT + - cor0.col2 + + col2 AS col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT - col1 * + tab0.col0 AS col1 FROM tab0
----
-2064
-3395
-8099

query I rowsort
SELECT col1 + col2 * 60 * - tab0.col2 FROM tab0
----
-403349
-65254
37

query I rowsort
SELECT ALL - + col2 * col1 * ( col0 ) AS col1 FROM tab0 AS cor0
----
-3395
-664118
-68112

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab2 AS cor0, tab0 cor1, tab1, tab0 AS cor2
----
3645 values hashing to a3c09af95301183ccb084eb1936b14e3

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9518
SELECT ALL - + col2 * CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9518
SELECT ALL - + col2 * CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - cor0.col2 * - col0 AS col1 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT DISTINCT - col1 * - 13 AS col1 FROM tab1 cor0
----
130
169
338

query I rowsort
SELECT cor0.col0 * 69 FROM tab0 AS cor0
----
1656
2415
6141

query I rowsort
SELECT ALL col2 * + col0 * + ( col2 ) AS col1 FROM tab1 AS cor0
----
207936
737280
8748

query I rowsort
SELECT DISTINCT col2 * + col0 + 61 AS col2 FROM tab1 cor0
----
223
3709
7741

query I rowsort
SELECT col1 - col2 * col2 FROM tab0
----
-1003
-6633
96

query I rowsort
SELECT ALL + + 0 * - cor0.col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT + 89 * - cor0.col0 FROM tab1, tab2 AS cor0
----
9 values hashing to f942ebf2fa8fbc72afeeb4a58f36427d

query I rowsort
SELECT ALL + col2 * - col0 AS col0 FROM tab0
----
-35
-7298
-792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 58 + + col1 col2 FROM tab0 AS cor0
----
28
33
39

query I rowsort
SELECT col2 * - col1 * 66 - tab2.col1 FROM tab2
----
-101303
-42653
-55273

query I rowsort
SELECT ( ( + tab0.col2 ) ) FROM tab0, tab2 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

query I rowsort
SELECT ALL - tab0.col2 * 78 FROM tab0
----
-2574
-6396
-78

query I rowsort
SELECT ALL + + cor0.col1 + col2 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT 19 + col2 * col2 FROM tab0 AS cor0
----
1108
20
6743

query I rowsort
SELECT DISTINCT + col1 * cor0.col1 * + 17 + - col0 + col0 AS col0 FROM tab2 AS cor0
----
16337
4913
59177

query I rowsort
SELECT DISTINCT - 43 AS col0 FROM tab1 AS cor0
----
-43

query I rowsort
SELECT + col2 * + col0 + 10 + col1 FROM tab0 AS cor0
----
142
7399
888

query I rowsort
SELECT ALL - - col1 * - cor0.col0 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT col2 - col0 AS col1 FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT ALL col1 * 38 - col2 * - 24 * - col0 AS col0 FROM tab0
----
-15740
-171694
2846

query I rowsort
SELECT DISTINCT + ( tab1.col0 ) - - col1 FROM tab1
----
29
74
93

query I rowsort
SELECT ALL - 73 + col1 * + col1 - 86 FROM tab2
----
130
3322
802

query I rowsort
SELECT ALL + col0 - - col2 * + col1 FROM tab0
----
132
2862
7551

query I rowsort
SELECT ALL tab2.col2 * col1 - - col0 FROM tab2
----
1612
725
844

query I rowsort
SELECT ALL + 23 + + col1 - tab0.col2 FROM tab0
----
119
32
76

query I rowsort
SELECT ALL 62 + col2 FROM tab1
----
116
119
158

query I rowsort
SELECT DISTINCT - - 78 FROM tab0 AS cor0
----
78

query I rowsort
SELECT + col0 + + col0 - - col0 AS col2 FROM tab0 AS cor0
----
105
267
72

query I rowsort
SELECT DISTINCT - - cor0.col2 + - col0 * 44 AS col2 FROM tab2 AS cor0
----
-281
-3406
-3438

query I rowsort
SELECT + cor1.col1 * + 41 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 30409c9b11b13673f59fbfbf006e10df

query I rowsort
SELECT ALL + col2 + col1 AS col2 FROM tab1 cor0
----
109
67
80

query I rowsort
SELECT - col2 + - col1 * col0 FROM tab0 AS cor0
----
-2097
-3396
-8181

query I rowsort
SELECT ALL + - 8 FROM tab0 AS cor0
----
-8
-8
-8

query I rowsort
SELECT 79 * cor0.col2 * col2 AS col0 FROM tab1 AS cor0
----
230364
256671
728064

query I rowsort
SELECT - 14 FROM tab0, tab2 AS cor0
----
9 values hashing to d321461994ba49c3a70fa6373032fc94

onlyif mysql # use DIV operator for integer division
query I rowsort label-9555
SELECT 61 DIV col0 AS col0 FROM tab2
----
0
0
8

skipif mysql # not compatible
query I rowsort label-9555
SELECT 61 / col0 AS col0 FROM tab2
----
0
0
8

onlyif mysql # use DIV operator for integer division
query I rowsort label-9556
SELECT - 45 DIV + col1 AS col0 FROM tab2
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-9556
SELECT - 45 / + col1 AS col0 FROM tab2
----
-1
-2
0

query I rowsort
SELECT DISTINCT col2 + + cor0.col0 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT - - col1 + col0 * ( col2 + - col1 ) FROM tab0 AS cor0
----
-1186
-3263
-710

query I rowsort
SELECT ALL col0 - + cor0.col1 AS col2 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT - + 82 + col2 AS col2 FROM tab1 AS cor0
----
-25
-28
14

query I rowsort
SELECT + 29 * - col0 AS col0 FROM tab2
----
-203
-2262
-2291

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab0.col2 * - col0 + col2 col0 FROM tab0
----
-34
-7216
-759

query I rowsort
SELECT ALL 22 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

query I rowsort
SELECT ALL 93 * 20 FROM tab1
----
1860
1860
1860

query I rowsort
SELECT + + cor0.col0 + - 73 * - col1 FROM tab2 cor0
----
1320
2270
4385

onlyif mysql # use DIV operator for integer division
query I rowsort label-9566
SELECT + col0 DIV ( cor0.col2 + col0 ) FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9566
SELECT + col0 / ( cor0.col2 + col0 ) FROM tab1 cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col1 + + ( col1 * + 93 ) col1 FROM tab0 AS cor0
----
10836
15925
9118

query I rowsort
SELECT col1 * 99 AS col2 FROM tab2 AS cor0
----
1683
3069
5841

query I rowsort
SELECT 85 AS col1 FROM tab0
----
85
85
85

query I rowsort
SELECT ALL + col0 * 66 AS col2 FROM tab1
----
198
4224
5280

query I rowsort
SELECT + - cor0.col1 + - ( col1 ) * - col2 AS col2 FROM tab1 AS cor0
----
1235
1378
560

query I rowsort
SELECT col0 * - ( - col0 ) AS col0 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT col1 + - cor0.col2 * - 88 FROM tab1 cor0
----
4778
5026
8461

query I rowsort
SELECT ALL + cor0.col0 * col0 + cor0.col0 FROM tab0 cor0
----
1260
600
8010

onlyif mysql # use DIV operator for integer division
query I rowsort label-9575
SELECT + col0 + - col1 DIV 49 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-9575
SELECT + col0 + - col1 / 49 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT DISTINCT - - col0 + col0 * 50 + col2 FROM tab2 AS cor0
----
384
4004
4067

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9577
SELECT col2 * - CAST( col2 AS SIGNED ) col2 FROM tab1 AS cor0
----
-2916
-3249
-9216

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9577
SELECT col2 * - CAST ( col2 AS INTEGER ) col2 FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT col2 * + 76 AS col2 FROM tab2
----
1976
2052
2888

query I rowsort
SELECT + col0 * 80 AS col1 FROM tab2
----
560
6240
6320

query I rowsort
SELECT + - col1 + 31 AS col1 FROM tab1 cor0
----
18
21
5

onlyif mysql # use DIV operator for integer division
query I rowsort label-9581
SELECT - - cor0.col1 + - ( + col0 ) * col0 + - ( - col1 ) DIV - col0 FROM tab0 AS cor0
----
-1130
-493
-7831

skipif mysql # not compatible
query I rowsort label-9581
SELECT - - cor0.col1 + - ( + col0 ) * col0 + - ( - col1 ) / - col0 FROM tab0 AS cor0
----
-1130
-493
-7831

query I rowsort
SELECT - + col0 * 83 + + col1 AS col0 FROM tab0 AS cor0
----
-1906
-2808
-7296

query I rowsort
SELECT DISTINCT + col2 + - 29 AS col1 FROM tab2
----
-2
-3
9

query I rowsort
SELECT DISTINCT col2 + + 11 FROM tab0
----
12
44
93

query I rowsort
SELECT col1 * ( 58 ) - col0 AS col1 FROM tab0
----
4964
5189
5591

query I rowsort
SELECT DISTINCT - ( - 16 ) AS col2 FROM tab0, tab0 AS cor0
----
16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( 76 ) + col1 col2 FROM tab2 AS cor0
----
107
135
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-9588
SELECT + ( col2 ) DIV - col1 + col1 FROM tab0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-9588
SELECT + ( col2 ) / - col1 + col1 FROM tab0
----
86
91
97

query I rowsort
SELECT - col2 * - cor0.col0 * cor0.col2 FROM tab0 AS cor0
----
26136
35
598436

onlyif mysql # use DIV operator for integer division
query I rowsort label-9590
SELECT DISTINCT - 66 DIV 42 + + col2 col2 FROM tab2 AS cor0
----
25
26
37

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9590
SELECT DISTINCT - 66 / 42 + + col2 col2 FROM tab2 AS cor0
----
25
26
37

query I rowsort
SELECT ALL + - ( col0 ) * + col2 FROM tab1 AS cor0
----
-162
-3648
-7680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9592
SELECT ALL - CAST( - 24 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
24
24
24

skipif mysql # not compatible
query I rowsort label-9592
SELECT ALL - CAST ( - 24 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
24
24
24

query I rowsort
SELECT - - 19 + col0 FROM tab1 cor0
----
22
83
99

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9594
SELECT DISTINCT - - CAST( NULL AS SIGNED ) * col1 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9594
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) * col1 AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + col0 + + 68 AS col1 FROM tab2 cor0
----
146
147
75

query I rowsort
SELECT DISTINCT col2 + col1 + - col0 * - col1 FROM tab1 AS cor0
----
1149
158
707

query I rowsort
SELECT ALL - col0 + ( col0 ) FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + ( 48 ) * - col0 FROM tab1 AS cor0
----
-144
-3072
-3840

query I rowsort
SELECT ALL + col2 * 44 AS col2 FROM tab0 AS cor0
----
1452
3608
44

onlyif mysql # use DIV operator for integer division
query I rowsort label-9600
SELECT col0 - + cor0.col1 DIV col0 FROM tab0 cor0
----
21
33
88

skipif mysql # not compatible
query I rowsort label-9600
SELECT col0 - + cor0.col1 / col0 FROM tab0 cor0
----
21
33
88

query I rowsort
SELECT - + cor0.col0 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0

query I rowsort
SELECT ALL + ( cor0.col1 ) * cor1.col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 9dd217b6385bf38f78d8b6e6b7864578

query I rowsort
SELECT - col0 * col1 - + 86 FROM tab1 AS cor0
----
-1126
-164
-726

onlyif mysql # use DIV operator for integer division
query I rowsort label-9604
SELECT + + cor0.col2 * cor0.col1 DIV + ( - 44 ) + - col2 AS col1 FROM tab2 AS cor0
----
-46
-52
-60

skipif mysql # not compatible
query I rowsort label-9604
SELECT + + cor0.col2 * cor0.col1 / + ( - 44 ) + - col2 AS col1 FROM tab2 AS cor0
----
-46
-52
-60

query I rowsort
SELECT col0 * + col0 + - 28 * col2 FROM tab2 cor0
----
-707
5177
5356

query I rowsort
SELECT - - ( - col2 ) + cor0.col0 * col2 AS col0 FROM tab1 AS cor0
----
108
3591
7584

query I rowsort
SELECT col0 + + col0 AS col1 FROM tab0 cor0
----
178
48
70

query I rowsort
SELECT - - col2 * + col0 * + 17 - col2 AS col0 FROM tab1 AS cor0
----
130464
2700
61959

query I rowsort
SELECT - col2 + + cor0.col2 AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - + col2 + + 68 FROM tab0 AS cor0
----
-14
35
67

query I rowsort
SELECT ALL + + cor0.col1 * col1 + + col0 AS col2 FROM tab0 AS cor0
----
7420
8370
9444

query I rowsort
SELECT ALL + col2 * - 56 FROM tab1 AS cor0
----
-3024
-3192
-5376

query I rowsort
SELECT DISTINCT 70 FROM tab1, tab1 AS cor0, tab0 cor1
----
70

query I rowsort
SELECT + 22 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

query I rowsort
SELECT DISTINCT + 42 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
42

query I rowsort
SELECT DISTINCT cor0.col1 FROM tab2, tab2 AS cor0, tab1 AS cor1, tab1, tab1 AS cor2
----
17
31
59

query I rowsort
SELECT + + ( + col2 ) + + col2 FROM tab1 cor0
----
108
114
192

query I rowsort
SELECT DISTINCT ( col1 ) * col2 FROM tab0 cor0
----
2838
7462
97

query I rowsort
SELECT + + col0 + col1 * 67 AS col0 FROM tab2 cor0
----
1218
2084
4031

query I rowsort
SELECT + ( col2 ) * 0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + ( cor0.col0 ) + + cor0.col2 AS col0 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT DISTINCT + ( col2 ) + col1 AS col2 FROM tab1
----
109
67
80

query I rowsort
SELECT DISTINCT + 20 + + col1 FROM tab2 cor0
----
37
51
79

query I rowsort
SELECT - 97 * 81 FROM tab1
----
-7857
-7857
-7857

query I rowsort
SELECT 65 - 69 * + col2 FROM tab0
----
-2212
-4
-5593

query I rowsort
SELECT DISTINCT + col0 * + tab0.col0 AS col0 FROM tab0
----
1225
576
7921

query I rowsort
SELECT ALL + + 68 + - col2 * - ( + col0 ) AS col1 FROM tab2 AS cor0
----
2096
257
3070

query I rowsort
SELECT DISTINCT + cor0.col0 + + col1 + - ( col0 ) * + cor0.col2 * 69 AS col2 FROM tab0 cor0
----
-2283
-503382
-54538

query I rowsort
SELECT - 86 * cor0.col1 FROM tab2 AS cor0
----
-1462
-2666
-5074

query I rowsort
SELECT - - 78 * - cor0.col0 * + cor0.col1 AS col1 FROM tab1 AS cor0
----
-49920
-6084
-81120

query I rowsort
SELECT ALL + - col2 * + col1 AS col2 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT DISTINCT + 33 AS col2 FROM tab1
----
33

query I rowsort
SELECT + 30 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89

query I rowsort
SELECT - 80 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 4dde3bd5652d30396b9cadd0e2cfb680

query I rowsort
SELECT + 47 AS col0 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 3f991632e9c7c5142e1d80857cd10a2d

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9636
SELECT cor0.col2 * + CAST( NULL AS SIGNED ) col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9636
SELECT cor0.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-9637
SELECT 45 DIV col2 + tab1.col1 * 30 * - col0 AS col2 FROM tab1
----
-19200
-2340
-31200

skipif mysql # not compatible
query I rowsort label-9637
SELECT 45 / col2 + tab1.col1 * 30 * - col0 AS col2 FROM tab1
----
-19200
-2340
-31200

query I rowsort
SELECT DISTINCT + 4 FROM tab0, tab1 cor0, tab1 AS cor1, tab0 AS cor2
----
4

query I rowsort
SELECT + 2 * + col1 AS col2 FROM tab1
----
20
26
52

query I rowsort
SELECT DISTINCT + col0 * + col2 + - col2 FROM tab0
----
34
7216
759

query I rowsort
SELECT DISTINCT 5 + + col2 AS col0 FROM tab0
----
38
6
87

onlyif mysql # use DIV operator for integer division
query I rowsort label-9642
SELECT ALL ( col0 ) DIV col2 + - tab1.col0 + col1 * - col0 AS col1 FROM tab1
----
-1120
-703
-81

skipif mysql # not compatible
query I rowsort label-9642
SELECT ALL ( col0 ) / col2 + - tab1.col0 + col1 * - col0 AS col1 FROM tab1
----
-1120
-703
-81

query I rowsort
SELECT ( + 83 + + col1 ) * - 12 AS col2 FROM tab1
----
-1116
-1152
-1308

onlyif mysql # use DIV operator for integer division
query I rowsort label-9644
SELECT - 53 + 45 DIV - tab2.col1 FROM tab2
----
-53
-54
-55

skipif mysql # not compatible
query I rowsort label-9644
SELECT - 53 + 45 / - tab2.col1 FROM tab2
----
-53
-54
-55

onlyif mysql # use DIV operator for integer division
query I rowsort label-9645
SELECT - cor0.col1 DIV 31 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

skipif mysql # not compatible
query I rowsort label-9645
SELECT - cor0.col1 / 31 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9646
SELECT ALL CAST( NULL AS SIGNED ) / - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9646
SELECT ALL CAST ( NULL AS INTEGER ) / - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 * - cor0.col2 + + col0 AS col2 FROM tab1 AS cor0
----
-159
-3584
-7600

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9648
SELECT ALL + CAST( - col1 AS SIGNED ) + col2 * + col1 AS col0 FROM tab2 AS cor0
----
1475
629
806

skipif mysql # not compatible
query I rowsort label-9648
SELECT ALL + CAST ( - col1 AS INTEGER ) + col2 * + col1 AS col0 FROM tab2 AS cor0
----
1475
629
806

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9649
SELECT ALL CAST( NULL AS SIGNED ) + - col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9649
SELECT ALL CAST ( NULL AS INTEGER ) + - col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9650
SELECT - col2 * - tab2.col2 * - col1 + CAST( + 85 AS SIGNED ) + - col0 FROM tab2
----
-22521
-24542
-39877

skipif mysql # not compatible
query I rowsort label-9650
SELECT - col2 * - tab2.col2 * - col1 + CAST ( + 85 AS INTEGER ) + - col0 FROM tab2
----
-22521
-24542
-39877

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + col2 col0 FROM tab2
----
104
117
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( col1 ) * - col1 + + col0 * col1 * + col1 + - 4 col2 FROM tab2 AS cor0
----
22538
268033
5762

query I rowsort
SELECT col2 + - 38 FROM tab0 AS cor0
----
-37
-5
44

query I rowsort
SELECT DISTINCT - 38 + - col2 FROM tab0 AS cor0
----
-120
-39
-71

onlyif mysql # use DIV operator for integer division
query I rowsort label-9655
SELECT ALL + 39 + col0 DIV - cor0.col2 AS col2 FROM tab0 cor0
----
38
39
4

skipif mysql # not compatible
query I rowsort label-9655
SELECT ALL + 39 + col0 / - cor0.col2 AS col2 FROM tab0 cor0
----
38
39
4

query I rowsort
SELECT + cor0.col1 + - ( col2 + ( + col2 ) ) AS col2 FROM tab2 AS cor0
----
-23
-59
7

query I rowsort
SELECT ALL - 59 AS col1 FROM tab0 cor0
----
-59
-59
-59

query I rowsort
SELECT DISTINCT ( + col1 ) AS col1 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT ALL 3 * ( col2 ) + + 80 * + col0 * + cor0.col0 FROM tab2 AS cor0
----
4001
486798
499394

query I rowsort
SELECT 92 * ( + col2 ) + col0 AS col1 FROM tab0 AS cor0
----
127
3060
7633

query I rowsort
SELECT ( tab2.col2 ) * - tab2.col1 AS col0 FROM tab2
----
-1534
-646
-837

query I rowsort
SELECT ALL + ( - 81 ) AS col1 FROM tab2 AS cor0
----
-81
-81
-81

query I rowsort
SELECT DISTINCT + cor0.col2 + ( + cor0.col1 ) FROM tab2 cor0
----
55
58
85

query I rowsort
SELECT 65 * - tab2.col0 AS col1 FROM tab2
----
-455
-5070
-5135

query I rowsort
SELECT DISTINCT - + col0 * - cor0.col2 * - ( ( col0 ) ) FROM tab1 AS cor0
----
-233472
-486
-614400

onlyif mysql # use DIV operator for integer division
query I rowsort label-9666
SELECT ALL col1 DIV + col1 + + 89 AS col1 FROM tab2 AS cor0
----
90
90
90

skipif mysql # not compatible
query I rowsort label-9666
SELECT ALL col1 / + col1 + + 89 AS col1 FROM tab2 AS cor0
----
90
90
90

query I rowsort
SELECT DISTINCT - cor0.col1 AS col0 FROM tab0, tab2 cor0, tab2 AS cor1
----
-17
-31
-59

query I rowsort
SELECT - + 84 * cor0.col0 + ( - cor0.col2 ) + - cor0.col1 FROM tab1 AS cor0
----
-332
-5443
-6829

query I rowsort
SELECT - cor0.col1 * cor0.col2 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT ALL col1 * col1 + col1 + - col1 * col0 AS col1 FROM tab2 cor0
----
-1037
-1062
775

query I rowsort
SELECT + - col1 * + cor0.col0 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT DISTINCT + col1 * col0 + 85 AS col0 FROM tab0 AS cor0
----
2149
3480
8184

query I rowsort
SELECT DISTINCT col0 * + 10 + + cor0.col0 AS col2 FROM tab0 cor0
----
264
385
979

query I rowsort
SELECT - - cor0.col0 * cor0.col1 FROM tab0, tab0 AS cor0
----
9 values hashing to f2938bee011b8d49dd931b1f9235e7f5

query I rowsort
SELECT DISTINCT - col0 * 1 AS col0 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT DISTINCT + cor0.col1 * ( + ( - cor0.col1 ) ) FROM tab2 AS cor0
----
-289
-3481
-961

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - col1 * col0 col2 FROM tab1 AS cor0
----
-13520
-2028
-6400

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 ALL - - col1 * - ( col1 ) AS col2 FROM tab1 AS cor0
----
-100
-169
-676

onlyif mysql # use DIV operator for integer division
query I rowsort label-9680
SELECT + CAST( + col0 AS SIGNED ) - col0 DIV col2 AS col0 FROM tab0 AS cor0
----
0
24
88

skipif mysql # not compatible
query I rowsort label-9680
SELECT + CAST ( + col0 AS INTEGER ) - col0 / col2 AS col0 FROM tab0 AS cor0
----
0
24
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col2 ) * cor0.col0 - ( col0 ) col0 FROM tab2 AS cor0
----
-196
-2106
-3081

query I rowsort
SELECT ALL + col1 * tab0.col2 - + 31 FROM tab0
----
2807
66
7431

query I rowsort
SELECT ALL - + 24 * col2 * + col0 + col2 + 69 FROM tab0 cor0
----
-175001
-18906
-770

query I rowsort
SELECT + 20 + col2 FROM tab2 AS cor0
----
46
47
58

query I rowsort
SELECT - cor0.col0 * + col1 AS col2 FROM tab2 AS cor0
----
-1343
-217
-4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 18 col2 FROM tab0 AS cor0
----
18
18
18

onlyif mysql # use DIV operator for integer division
query I rowsort label-9687
SELECT - col0 DIV cor0.col0 AS col0 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9687
SELECT - col0 / cor0.col0 AS col0 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT + - col2 * col0 * col2 AS col2 FROM tab0 AS cor0
----
-26136
-35
-598436

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 + + cor0.col2 * col0 * - col1 col1 FROM tab0 cor0
----
-3360
-664029
-68088

query I rowsort
SELECT + - col2 * cor0.col0 * col0 FROM tab2 cor0
----
-1323
-158184
-237158

query I rowsort
SELECT col0 * + 55 AS col2 FROM tab2 AS cor0
----
385
4290
4345

query I rowsort
SELECT ALL ( tab2.col1 * tab2.col0 ) AS col1 FROM tab2
----
1343
217
4602

query I rowsort
SELECT 9 FROM tab0, tab1, tab0 cor0
----
27 values hashing to ebef7303942834ca1e6ca8604ec18a07

query I rowsort
SELECT 74 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to dc22979e6d261795bd3ce2990fdbbf82

query I rowsort
SELECT + 10 + - 11 + + col0 FROM tab2 AS cor0
----
6
77
78

query I rowsort
SELECT DISTINCT col0 + col2 * col0 FROM tab2 AS cor0
----
196
2106
3081

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * + 73 + cor0.col1 + ( col2 ) col2 FROM tab2 AS cor0
----
-453
-5609
-5712

query I rowsort
SELECT + + 60 + + col1 + - col2 AS col1 FROM tab1 cor0
----
-23
13
32

query I rowsort
SELECT tab2.col1 + tab2.col0 + 72 FROM tab2
----
110
168
209

query I rowsort
SELECT 34 FROM tab0, tab1 cor0
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039

query I rowsort
SELECT DISTINCT col2 + - col0 * 0 + col2 AS col2 FROM tab2
----
52
54
76

query I rowsort
SELECT + col1 * 47 + + col0 AS col1 FROM tab0
----
4066
4366
4594

query I rowsort
SELECT col0 * col1 * col2 FROM tab1
----
36480
4212
99840

query I rowsort
SELECT DISTINCT + col2 + - ( + 55 * col2 ) FROM tab2
----
-1404
-1458
-2052

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 - - col0 col1 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT DISTINCT tab2.col1 + - ( col1 ) * - col0 * - col2 FROM tab2
----
-119593
-51017
-5828

query I rowsort
SELECT + col1 * + ( col0 ) + col1 AS col1 FROM tab1
----
104
1053
650

query I rowsort
SELECT - 98 + cor0.col2 + + col0 * col1 AS col1 FROM tab2 AS cor0
----
1283
146
4530

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 28 * + 38 col1 FROM tab1
----
1064
1064
1064

query I rowsort
SELECT tab1.col1 * 0 * + col1 AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT + - col0 * col0 + col1 FROM tab1 AS cor0
----
-4086
-6387
17

query I rowsort
SELECT - 83 * - tab1.col1 FROM tab1
----
1079
2158
830

onlyif mysql # use DIV operator for integer division
query I rowsort label-9713
SELECT + - col1 DIV + col1 AS col2 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9713
SELECT + - col1 / + col1 AS col2 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL + cor0.col1 * col1 FROM tab0 cor0
----
7396
8281
9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-9715
SELECT + 26 + - col1 DIV - cor0.col2 FROM tab0 AS cor0
----
123
27
28

skipif mysql # not compatible
query I rowsort label-9715
SELECT + 26 + - col1 / - cor0.col2 FROM tab0 AS cor0
----
123
27
28

query I rowsort
SELECT - col1 + + col1 * + col1 + + col0 FROM tab1 AS cor0
----
154
236
653

query I rowsort
SELECT ALL 31 AS col1 FROM tab0 cor0
----
31
31
31

onlyif mysql # use DIV operator for integer division
query I rowsort label-9718
SELECT DISTINCT tab2.col1 + col1 DIV col0 - + col0 AS col1 FROM tab2
----
-19
-62
28

skipif mysql # not compatible
query I rowsort label-9718
SELECT DISTINCT tab2.col1 + col1 / col0 - + col0 AS col1 FROM tab2
----
-19
-62
28

query I rowsort
SELECT col0 + col1 * tab2.col2 * - col1 + col0 * + col2 AS col2 FROM tab2
----
-25751
-7901
-88400

query I rowsort
SELECT - col1 * 33 AS col1 FROM tab1
----
-330
-429
-858

query I rowsort
SELECT ALL - col2 * 22 FROM tab0
----
-1804
-22
-726

query I rowsort
SELECT ALL col1 + col1 + tab0.col1 AS col1 FROM tab0
----
258
273
291

query I rowsort
SELECT + + cor0.col1 * col2 + col2 * - col0 * col1 FROM tab0 AS cor0
----
-3298
-65274
-656656

query I rowsort
SELECT + col2 * + col0 + col1 AS col1 FROM tab1 AS cor0
----
188
3658
7693

query I rowsort
SELECT - 97 + - col2 AS col0 FROM tab1 AS cor0
----
-151
-154
-193

query I rowsort
SELECT + 30 * tab2.col1 FROM tab2
----
1770
510
930

query I rowsort
SELECT + - col1 + + 86 FROM tab2 cor0
----
27
55
69

query I rowsort
SELECT col1 + col2 * cor0.col0 AS col1 FROM tab2 AS cor0
----
2087
220
3019

query I rowsort
SELECT - - 25 * col0 + - col0 AS col2 FROM tab0 AS cor0
----
2136
576
840

query I rowsort
SELECT ALL ( - col2 ) + col1 - col0 * + col2 AS col0 FROM tab0
----
-7289
-739
61

query I rowsort
SELECT ( - col1 ) * col1 - + col1 FROM tab2
----
-306
-3540
-992

query I rowsort
SELECT - - 40 + 84 FROM tab2 AS cor0
----
124
124
124

query I rowsort
SELECT ALL - 62 * cor0.col1 FROM tab0 AS cor0
----
-5332
-5642
-6014

query I rowsort
SELECT + col0 + - ( col1 ) + col1 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT DISTINCT - col1 * 38 AS col2 FROM tab2 AS cor0
----
-1178
-2242
-646

query I rowsort
SELECT DISTINCT - col2 * cor0.col0 AS col0 FROM tab0 cor0
----
-35
-7298
-792

query I rowsort
SELECT ALL - col2 + col1 * - col1 AS col0 FROM tab2 AS cor0
----
-327
-3507
-988

query I rowsort
SELECT + col0 + + col2 * + col1 AS col2 FROM tab1 cor0
----
1328
1407
634

query I rowsort
SELECT ALL + col1 * - col2 + col2 AS col1 FROM tab0 cor0
----
-2805
-7380
-96

query I rowsort
SELECT tab2.col2 * - 88 AS col0 FROM tab2
----
-2288
-2376
-3344

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab0 AS cor2, tab2 AS cor3
----
3645 values hashing to 7781e11d4a9fc844b7b93d320748f7c1

query I rowsort
SELECT col0 * col0 + 14 FROM tab1 AS cor0
----
23
4110
6414

query I rowsort
SELECT ALL - + col0 * 8 AS col2 FROM tab1 AS cor0
----
-24
-512
-640

query I rowsort
SELECT - - col2 + col1 * col1 + cor0.col0 FROM tab2 AS cor0
----
3585
406
995

query I rowsort
SELECT DISTINCT + col2 * + col0 AS col1 FROM tab0 cor0
----
35
7298
792

query I rowsort
SELECT ALL - col0 + + 10 AS col1 FROM tab1 AS cor0
----
-54
-70
7

query I rowsort
SELECT ALL col0 - 91 FROM tab1 cor0
----
-11
-27
-88

query I rowsort
SELECT DISTINCT + + col0 - cor0.col2 FROM tab2 AS cor0
----
-20
41
52

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9749
SELECT + ( col2 ) * CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9749
SELECT + ( col2 ) * CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 5 - col0 AS col1 FROM tab0
----
-19
-30
-84

query I rowsort
SELECT + col2 + 51 AS col0 FROM tab0 AS cor0
----
133
52
84

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9752
SELECT DISTINCT - col1 * CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9752
SELECT DISTINCT - col1 * CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-9753
SELECT ALL - - col0 * col0 DIV - col0 FROM tab2 AS cor0
----
-7
-78
-79

skipif mysql # not compatible
query I rowsort label-9753
SELECT ALL - - col0 * col0 / - col0 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT ALL + - col0 - - cor0.col2 FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT DISTINCT - - cor0.col1 * + 35 AS col2 FROM tab2 AS cor0
----
1085
2065
595

query I rowsort
SELECT + col0 * 18 FROM tab1 AS cor0
----
1152
1440
54

query I rowsort
SELECT - col0 + ( tab0.col1 ) FROM tab0
----
2
62
62

query I rowsort
SELECT ALL col2 * col1 * + tab1.col1 + - col1 FROM tab1
----
16211
36478
5690

query I rowsort
SELECT ALL + col2 + + col0 * - col2 FROM tab1 cor0
----
-108
-3591
-7584

query I rowsort
SELECT ALL + + ( 12 ) FROM tab2 AS cor0
----
12
12
12

query I rowsort
SELECT ALL col0 + col1 * 35 FROM tab2 cor0
----
1092
2143
674

query I rowsort
SELECT + 35 * - col1 FROM tab1 AS cor0
----
-350
-455
-910

query I rowsort
SELECT col1 + + col1 * - 30 FROM tab1 AS cor0
----
-290
-377
-754

onlyif mysql # use DIV operator for integer division
query I rowsort label-9764
SELECT 5 DIV 2 - - col1 DIV + 75 col1 FROM tab0
----
3
3
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9764
SELECT 5 / 2 - - col1 / + 75 col1 FROM tab0
----
3
3
3

query I rowsort
SELECT DISTINCT cor0.col1 FROM tab2, tab0 AS cor0 CROSS JOIN tab0
----
86
91
97

query I rowsort
SELECT DISTINCT 5 AS col1 FROM tab2, tab1 cor0, tab2 AS cor1
----
5

query I rowsort
SELECT - col2 * - col2 + col1 AS col0 FROM tab0
----
1175
6815
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-9768
SELECT ALL - col1 DIV col1 - CAST( col0 AS SIGNED ) * col1 AS col2 FROM tab1
----
-1041
-641
-79

skipif mysql # not compatible
query I rowsort label-9768
SELECT ALL - col1 / col1 - CAST ( col0 AS INTEGER ) * col1 AS col2 FROM tab1
----
-1041
-641
-79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9769
SELECT DISTINCT - col0 * - tab2.col2 + CAST( NULL AS SIGNED ) + col1 * - col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9769
SELECT DISTINCT - col0 * - tab2.col2 + CAST ( NULL AS INTEGER ) + col1 * - col1 FROM tab2
----
NULL

query I rowsort
SELECT col2 * + col1 + tab0.col0 + - 52 FROM tab0
----
2810
7499
80

query I rowsort
SELECT ALL + 94 + - cor0.col0 AS col1 FROM tab0 AS cor0
----
5
59
70

onlyif mysql # use DIV operator for integer division
query I rowsort label-9772
SELECT ALL col2 + - col1 DIV + col1 FROM tab1 cor0
----
53
56
95

skipif mysql # not compatible
query I rowsort label-9772
SELECT ALL col2 + - col1 / + col1 FROM tab1 cor0
----
53
56
95

query I rowsort
SELECT + 4 + col1 AS col2 FROM tab1 AS cor0
----
14
17
30

query I rowsort
SELECT 77 AS col2 FROM tab1, tab2 cor0, tab2 AS cor1
----
27 values hashing to d7b027bca5d37c67e29013904def8125

query I rowsort
SELECT col0 * + col1 + + 79 * + 39 AS col1 FROM tab0
----
11180
5145
6476

query I rowsort
SELECT DISTINCT - 90 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-90

onlyif mysql # use DIV operator for integer division
query I rowsort label-9777
SELECT DISTINCT col2 DIV CAST( + 78 AS SIGNED ) AS col1 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-9777
SELECT DISTINCT col2 / CAST ( + 78 AS INTEGER ) AS col1 FROM tab0
----
0
1

query I rowsort
SELECT col2 * - tab0.col1 * col2 FROM tab0
----
-611884
-93654
-97

query I rowsort
SELECT DISTINCT - col1 * - 53 FROM tab0
----
4558
4823
5141

query I rowsort
SELECT + col0 - - col0 * col0 FROM tab1 AS cor0
----
12
4160
6480

query I rowsort
SELECT DISTINCT - - col2 * - cor0.col2 FROM tab0 cor0
----
-1
-1089
-6724

query I rowsort
SELECT + col0 + col0 + - col2 AS col0 FROM tab0 AS cor0
----
15
69
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-9783
SELECT DISTINCT - cor0.col2 DIV col0 AS col0 FROM tab1 AS cor0
----
-1
-18
0

skipif mysql # not compatible
query I rowsort label-9783
SELECT DISTINCT - cor0.col2 / col0 AS col0 FROM tab1 AS cor0
----
-1
-18
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9784
SELECT ALL - CAST( NULL AS DECIMAL ) * col0 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9784
SELECT ALL - CAST ( NULL AS REAL ) * col0 AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + ( tab1.col1 * + col0 ) FROM tab1
----
1040
640
78

query I rowsort
SELECT DISTINCT + - 49 * 27 AS col2 FROM tab1 cor0
----
-1323

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9787
SELECT DISTINCT ( + col0 ) - col1 * - CAST( ( col0 ) AS SIGNED ) FROM tab2 AS cor0
----
1422
224
4680

skipif mysql # not compatible
query I rowsort label-9787
SELECT DISTINCT ( + col0 ) - col1 * - CAST ( ( col0 ) AS INTEGER ) FROM tab2 AS cor0
----
1422
224
4680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9788
SELECT ALL - CAST( - col1 AS SIGNED ) - col1 AS col2 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9788
SELECT ALL - CAST ( - col1 AS INTEGER ) - col1 AS col2 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - - 43 * + cor0.col1 FROM tab1 AS cor0
----
1118
430
559

query I rowsort
SELECT 1 + + cor0.col2 FROM tab2 AS cor0
----
27
28
39

query I rowsort
SELECT ALL + ( col0 ) * - col1 + col2 AS col0 FROM tab0 AS cor0
----
-2031
-3394
-8017

query I rowsort
SELECT ALL + 93 * cor0.col2 + cor0.col0 * + col0 AS col0 FROM tab2 AS cor0
----
2560
8502
9775

query I rowsort
SELECT DISTINCT + col1 + col2 - ( col1 ) FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT ALL + 87 + col2 FROM tab0 AS cor0
----
120
169
88

query I rowsort
SELECT DISTINCT - 32 * col2 + + ( col0 ) * col1 FROM tab2 AS cor0
----
-647
127
3770

query I rowsort
SELECT DISTINCT - + ( - col1 ) + - col2 AS col2 FROM tab0 cor0
----
53
9
96

query I rowsort
SELECT - - col2 * + col2 + col0 AS col0 FROM tab1 AS cor0
----
2919
3313
9296

query I rowsort
SELECT DISTINCT + ( col1 ) + col1 * - 42 FROM tab2 AS cor0
----
-1271
-2419
-697

query I rowsort
SELECT ALL + 25 + col1 * - col1 FROM tab2 AS cor0
----
-264
-3456
-936

query I rowsort
SELECT - ( ( col2 ) + 20 ) FROM tab1
----
-116
-74
-77

onlyif mysql # use DIV operator for integer division
query I rowsort label-9801
SELECT ALL cor0.col0 DIV 19 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 26ad6dd00165c454bad0e0fcbaa63339

skipif mysql # not compatible
query I rowsort label-9801
SELECT ALL cor0.col0 / 19 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 26ad6dd00165c454bad0e0fcbaa63339

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 17 * - col1 col2 FROM tab2 AS cor0
----
-1003
-289
-527

onlyif mysql # use DIV operator for integer division
query I rowsort label-9803
SELECT ALL + ( + 50 ) * col2 DIV col1 FROM tab2
----
111
22
43

skipif mysql # not compatible
query I rowsort label-9803
SELECT ALL + ( + 50 ) * col2 / col1 FROM tab2
----
111
22
43

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9804
SELECT DISTINCT CAST( + col1 AS SIGNED ) * - col1 FROM tab2
----
-289
-3481
-961

skipif mysql # not compatible
query I rowsort label-9804
SELECT DISTINCT CAST ( + col1 AS INTEGER ) * - col1 FROM tab2
----
-289
-3481
-961

query I rowsort
SELECT DISTINCT cor0.col2 + - ( + 86 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
-29
-32
10

query I rowsort
SELECT + col1 + col0 * + ( col0 ) FROM tab1 AS cor0
----
35
4106
6413

query I rowsort
SELECT col1 * + col2 + + col1 * + col2 FROM tab2 AS cor0
----
1292
1674
3068

query I rowsort
SELECT ( - 66 ) AS col0 FROM tab2, tab2 AS cor0, tab2 cor1
----
27 values hashing to cd4a3594ee8b45223ebf9f25840cd112

query I rowsort
SELECT DISTINCT + 15 + tab1.col0 + - 49 FROM tab1
----
-31
30
46

query I rowsort
SELECT - 56 AS col0 FROM tab2
----
-56
-56
-56

query I rowsort
SELECT DISTINCT - col0 + tab2.col2 * - tab2.col1 AS col2 FROM tab2
----
-1612
-725
-844

onlyif mysql # use DIV operator for integer division
query I rowsort label-9812
SELECT DISTINCT col1 DIV col0 + ( - 14 ) * - col1 FROM tab0
----
1207
1275
1360

skipif mysql # not compatible
query I rowsort label-9812
SELECT DISTINCT col1 / col0 + ( - 14 ) * - col1 FROM tab0
----
1207
1275
1360

query I rowsort
SELECT + 71 * + 3 FROM tab0, tab0 AS cor0
----
9 values hashing to 4bd5152fc05bed6300c3a5bfc0b7c691

onlyif mysql # use DIV operator for integer division
query I rowsort label-9814
SELECT 2 DIV - col1 col2 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9814
SELECT 2 / - col1 col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT col0 - 53 AS col1 FROM tab0 cor0
----
-18
-29
36

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0 AS cor0, tab1 cor1, tab0, tab0 AS cor2
----
3645 values hashing to 862fba9ac85fdf2cec88a0bec0808b7e

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9817
SELECT - - CAST( NULL AS SIGNED ) - + col2 * col0 / + 57 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9817
SELECT - - CAST ( NULL AS INTEGER ) - + col2 * col0 / + 57 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col2 + - col2 col1 FROM tab1 AS cor0
----
-2970
-3306
-9312

query I rowsort
SELECT - + ( + cor0.col0 ) + col1 FROM tab0 AS cor0
----
2
62
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-9820
SELECT col2 DIV - 91 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9820
SELECT col2 / - 91 FROM tab1 AS cor0
----
-1
0
0

query I rowsort
SELECT - ( + 77 ) * + col2 + ( cor0.col2 ) * - col0 - ( col2 ) FROM tab0 AS cor0
----
-113
-13694
-3366

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9822
SELECT tab1.col1 * CAST( + col1 AS SIGNED ) AS col2 FROM tab1
----
100
169
676

skipif mysql # not compatible
query I rowsort label-9822
SELECT tab1.col1 * CAST ( + col1 AS INTEGER ) AS col2 FROM tab1
----
100
169
676

query I rowsort
SELECT + + cor0.col0 * + col2 + - col1 AS col2 FROM tab2 AS cor0
----
158
1969
2985

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 * col0 - + col0 col0 FROM tab2 AS cor0
----
182
1950
2923

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9825
SELECT + CAST( NULL AS SIGNED ) + + cor0.col1 * + cor0.col2 / - 76 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9825
SELECT + CAST ( NULL AS INTEGER ) + + cor0.col1 * + cor0.col2 / - 76 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT tab1.col2 + + 8 * + col2 AS col2 FROM tab1
----
486
513
864

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9827
SELECT ALL - - CAST( NULL AS SIGNED ) * + col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9827
SELECT ALL - - CAST ( NULL AS INTEGER ) * + col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 60 * + col2 + + col0 FROM tab2 cor0
----
1627
1638
2359

query I rowsort
SELECT DISTINCT + ( + 39 ) + col1 - ( 87 ) * col2 FROM tab0 AS cor0
----
-2746
-7004
49

query I rowsort
SELECT DISTINCT - col1 + col1 * + col2 FROM tab2 AS cor0
----
1475
629
806

query I rowsort
SELECT DISTINCT ( - ( - col1 ) ) FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT + - ( col1 ) * - col2 * + ( + col1 * - col1 ) + - col1 AS col0 FROM tab2 AS cor0
----
-186711
-5339913
-804388

query I rowsort
SELECT DISTINCT - 29 AS col0 FROM tab2 cor0
----
-29

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9834
SELECT col0 * col2 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9834
SELECT col0 * col2 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - - col2 * col0 + - col2 AS col1 FROM tab0 AS cor0
----
34
7216
759

query I rowsort
SELECT ALL ( col1 ) + ( - 84 ) FROM tab0 AS cor0
----
13
2
7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9837
SELECT CAST( col0 AS SIGNED ) * col0 AS col2 FROM tab1
----
4096
6400
9

skipif mysql # not compatible
query I rowsort label-9837
SELECT CAST ( col0 AS INTEGER ) * col0 AS col2 FROM tab1
----
4096
6400
9

query I rowsort
SELECT ALL + - cor0.col1 * col2 AS col0 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT + + col1 * col0 + ( 97 ) AS col1 FROM tab2 cor0
----
1440
314
4699

query I rowsort
SELECT ALL + col1 * + col2 + col1 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT ALL + 40 - col0 AS col1 FROM tab2 AS cor0
----
-38
-39
33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 - + col0 * col1 col0 FROM tab1
----
-576
-75
-960

query I rowsort
SELECT DISTINCT + col1 + - 36 FROM tab0
----
50
55
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 - + tab2.col2 col1 FROM tab2
----
-20
41
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 54 col0 FROM tab1, tab0, tab1 AS cor0
----
54

onlyif mysql # use DIV operator for integer division
query I rowsort label-9846
SELECT col1 DIV + col0 FROM tab1 cor0
----
0
0
8

skipif mysql # not compatible
query I rowsort label-9846
SELECT col1 / + col0 FROM tab1 cor0
----
0
0
8

onlyif mysql # use DIV operator for integer division
query I rowsort label-9847
SELECT - col0 + ( col2 ) DIV col0 AS col2 FROM tab1 AS cor0
----
-64
-79
15

skipif mysql # not compatible
query I rowsort label-9847
SELECT - col0 + ( col2 ) / col0 AS col2 FROM tab1 AS cor0
----
-64
-79
15

query I rowsort
SELECT DISTINCT + cor0.col2 + - ( + col0 ) AS col1 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT ALL tab2.col2 * - col2 FROM tab2
----
-1444
-676
-729

query I rowsort
SELECT ALL tab1.col2 + cor0.col0 FROM tab1, tab1 AS cor0
----
9 values hashing to f2656d9e76ae2d6dc568bba21c85e398

query I rowsort
SELECT + 28 AS col0 FROM tab0, tab1 AS cor0, tab1 cor1
----
27 values hashing to 8a39580587f2831072e93c319ff94bbf

query I rowsort
SELECT ALL 38 + tab2.col0 AS col1 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 251b1685c924bd1a2d2fad08fe7de71c

query I rowsort
SELECT ALL - 27 AS col0 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 0259a67676b131a4843853be4811b775

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9854
SELECT + col2 + - CAST( col0 AS SIGNED ) * - col1 FROM tab0
----
2097
3396
8181

skipif mysql # not compatible
query I rowsort label-9854
SELECT + col2 + - CAST ( col0 AS INTEGER ) * - col1 FROM tab0
----
2097
3396
8181

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9855
SELECT - col2 * + CAST( - col0 AS SIGNED ) FROM tab0 AS cor0
----
35
7298
792

skipif mysql # not compatible
query I rowsort label-9855
SELECT - col2 * + CAST ( - col0 AS INTEGER ) FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT - 5 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 74665fbb47d5b17da011bca567195b21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 5 + col0 * - 49 * - col2 col0 FROM tab2
----
147093
9256
99367

query I rowsort
SELECT + tab0.col1 + col1 * tab0.col0 + + col1 FROM tab0
----
2236
3589
8281

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9859
SELECT ALL ( - col0 * col1 ) + tab1.col0 - - col0 * CAST( col0 AS SIGNED ) FROM tab1
----
-66
3520
5440

skipif mysql # not compatible
query I rowsort label-9859
SELECT ALL ( - col0 * col1 ) + tab1.col0 - - col0 * CAST ( col0 AS INTEGER ) FROM tab1
----
-66
3520
5440

query I rowsort
SELECT ALL + col2 * - col2 - + col0 FROM tab0
----
-1113
-36
-6813

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 61 + col0 + - 15 col1 FROM tab0
----
135
70
81

query I rowsort
SELECT ALL - col1 * - cor0.col0 + - col0 + col1 AS col0 FROM tab1 AS cor0
----
101
586
973

query I rowsort
SELECT ALL + + col0 + col2 AS col0 FROM tab0 cor0
----
171
36
57

query I rowsort
SELECT ( 45 ) AS col0 FROM tab1, tab0 AS cor0, tab0 cor1
----
27 values hashing to 14cec871edc37b5056cda01c8331fdca

query I rowsort
SELECT ALL cor0.col0 + cor0.col2 AS col2 FROM tab1 AS cor0
----
121
176
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 * col2 + - col0 + col1 * col0 col2 FROM tab1 cor0
----
-2673
-2841
-8256

query I rowsort
SELECT ALL + + cor0.col1 + - 48 FROM tab2 AS cor0
----
-17
-31
11

query I rowsort
SELECT ALL col2 + 1 * + cor0.col1 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT ALL + + col2 + 38 FROM tab1 AS cor0
----
134
92
95

query I rowsort
SELECT + col1 + - 96 + 12 FROM tab1 AS cor0
----
-58
-71
-74

query I rowsort
SELECT ( + 17 ) FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to e0dd9155e4d67132637a04c18ef46b2a

query I rowsort
SELECT ALL + col1 - + tab0.col0 AS col1 FROM tab0
----
2
62
62

query I rowsort
SELECT 21 + tab1.col2 + - col0 FROM tab1
----
14
37
72

onlyif mysql # use DIV operator for integer division
query I rowsort label-9874
SELECT DISTINCT - col0 DIV col0 - + 79 FROM tab0
----
-80

skipif mysql # not compatible
query I rowsort label-9874
SELECT DISTINCT - col0 / col0 - + 79 FROM tab0
----
-80

query I rowsort
SELECT ALL - - col1 + 64 AS col0 FROM tab2 AS cor0
----
123
81
95

query I rowsort
SELECT DISTINCT + - col2 + + 75 AS col2 FROM tab2 AS cor0
----
37
48
49

query I rowsort
SELECT DISTINCT col0 * + ( + col0 * col1 ) AS col1 FROM tab0 AS cor0
----
118825
49536
720811

query I rowsort
SELECT DISTINCT + - cor0.col2 AS col0 FROM tab1 cor0
----
-54
-57
-96

query I rowsort
SELECT col1 - + cor0.col0 FROM tab0 AS cor0
----
2
62
62

query I rowsort
SELECT ALL + - col1 * + 1 + col2 + + col0 FROM tab1 AS cor0
----
111
163
31

query I rowsort
SELECT ALL col0 - + 32 AS col0 FROM tab0 AS cor0
----
-8
3
57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9882
SELECT - - CAST( + col0 AS SIGNED ) FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-9882
SELECT - - CAST ( + col0 AS INTEGER ) FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT DISTINCT + - 47 + col1 * + cor0.col2 AS col1 FROM tab1 cor0
----
1201
1357
523

query I rowsort
SELECT DISTINCT col1 * col0 + col2 * col2 AS col1 FROM tab1 AS cor0
----
10256
2994
3889

query I rowsort
SELECT ALL 47 * 39 FROM tab0 AS cor0
----
1833
1833
1833

query I rowsort
SELECT cor0.col1 * 65 FROM tab0 AS cor0
----
5590
5915
6305

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 46 col0 FROM tab2 AS cor0
----
46
46
46

query I rowsort
SELECT DISTINCT - - col1 * cor0.col2 + - col0 * + col0 AS col0 FROM tab0 AS cor0
----
-1128
-459
2262

onlyif mysql # use DIV operator for integer division
query I rowsort label-9889
SELECT ALL + col0 - - col1 DIV - col2 AS col2 FROM tab0 AS cor0
----
-62
22
88

skipif mysql # not compatible
query I rowsort label-9889
SELECT ALL + col0 - - col1 / - col2 AS col2 FROM tab0 AS cor0
----
-62
22
88

query I rowsort
SELECT ALL - - col1 + - cor0.col0 FROM tab0 AS cor0
----
2
62
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 57 + cor0.col0 col0 FROM tab1 AS cor0
----
121
137
60

query I rowsort
SELECT - + 89 * ( - col0 * col0 ) FROM tab0 AS cor0
----
109025
51264
704969

query I rowsort
SELECT ALL - 39 - + col2 AS col0 FROM tab2 AS cor0
----
-65
-66
-77

query I rowsort
SELECT DISTINCT + 56 * + 37 * - col2 AS col2 FROM tab0 AS cor0
----
-169904
-2072
-68376

query I rowsort
SELECT - 53 * + 18 FROM tab0 AS cor0
----
-954
-954
-954

query I rowsort
SELECT DISTINCT - col0 * + 94 FROM tab2 AS cor0
----
-658
-7332
-7426

query I rowsort
SELECT DISTINCT - ( + cor0.col2 ) FROM tab1, tab2 AS cor0, tab1 AS cor1
----
-26
-27
-38

query I rowsort
SELECT DISTINCT 28 + col1 AS col1 FROM tab1 AS cor0
----
38
41
54

query I rowsort
SELECT + + cor0.col0 + col0 * col2 FROM tab2 AS cor0
----
196
2106
3081

query I rowsort
SELECT DISTINCT - 35 + col2 AS col0 FROM tab1 AS cor0
----
19
22
61

query I rowsort
SELECT ALL col0 + col2 * + col1 AS col1 FROM tab0 AS cor0
----
132
2862
7551

query I rowsort
SELECT + - cor0.col0 * - col2 AS col0 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT - col2 * col1 * - col1 FROM tab2 AS cor0
----
10982
25947
90506

query I rowsort
SELECT DISTINCT col2 * col2 + 69 FROM tab0 AS cor0
----
1158
6793
70

query I rowsort
SELECT DISTINCT - - cor0.col2 * - col2 FROM tab2 AS cor0
----
-1444
-676
-729

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 60 + col2 col1 FROM tab1 AS cor0
----
-3
-6
36

query I rowsort
SELECT DISTINCT 64 - cor0.col0 FROM tab2 cor0
----
-14
-15
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-9908
SELECT DISTINCT col2 DIV ( col2 + + 75 ) AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9908
SELECT DISTINCT col2 / ( col2 + + 75 ) AS col1 FROM tab2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 25 col2 FROM tab2 AS cor0
----
-25
-25
-25

query I rowsort
SELECT + ( + col0 ) * - 90 FROM tab0 cor0
----
-2160
-3150
-8010

query I rowsort
SELECT 75 + - col2 * 63 AS col2 FROM tab2 AS cor0
----
-1563
-1626
-2319

query I rowsort
SELECT - + cor0.col2 * - col0 AS col2 FROM tab0 AS cor0
----
35
7298
792

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 cor0, tab1 AS cor1, tab2, tab1 AS cor2
----
3645 values hashing to 1c1b1a313871216b88e662d7d3078b12

query I rowsort
SELECT + 76 + - 88 AS col0 FROM tab2 AS cor0
----
-12
-12
-12

query I rowsort
SELECT ( - col2 ) * cor0.col2 FROM tab1 cor0
----
-2916
-3249
-9216

query I rowsort
SELECT ALL col2 * col0 * + col2 AS col0 FROM tab2
----
114076
5103
52728

query I rowsort
SELECT ALL col1 + 42 + - col0 * - tab1.col2 FROM tab1
----
230
3700
7735

onlyif mysql # use DIV operator for integer division
query I rowsort label-9918
SELECT DISTINCT + - 66 DIV - col0 FROM tab2 AS cor0
----
0
9

skipif mysql # not compatible
query I rowsort label-9918
SELECT DISTINCT + - 66 / - col0 FROM tab2 AS cor0
----
0
9

query I rowsort
SELECT DISTINCT col2 * + 9 AS col2 FROM tab1
----
486
513
864

query I rowsort
SELECT DISTINCT + 10 + 92 FROM tab1 AS cor0
----
102

onlyif mysql # use DIV operator for integer division
query I rowsort label-9921
SELECT + col0 * 16 DIV col0 FROM tab0 AS cor0
----
16
16
16

skipif mysql # not compatible
query I rowsort label-9921
SELECT + col0 * 16 / col0 FROM tab0 AS cor0
----
16
16
16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * cor0.col2 * cor0.col0 + - col0 + + col2 col1 FROM tab1 AS cor0
----
-207943
-737264
-8697

query I rowsort
SELECT - + cor0.col0 * - 36 - + ( + cor0.col0 ) FROM tab1 AS cor0
----
105
2240
2800

query I rowsort
SELECT ALL - 96 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to c89b545346f99713888a7934e4caa539

query I rowsort
SELECT - tab1.col0 * + cor0.col0 AS col0 FROM tab1, tab2, tab0 cor0
----
27 values hashing to fa8f09039d622159cb79f83c1d68bd00

query I rowsort
SELECT col2 * - 5 * col2 - + col0 FROM tab1 AS cor0
----
-14583
-16309
-46160

query I rowsort
SELECT + - col0 * + col2 - col2 FROM tab2 AS cor0
----
-2054
-216
-3040

query I rowsort
SELECT - col2 + + col0 * - cor0.col2 + col0 * + col2 FROM tab1 cor0
----
-54
-57
-96

query I rowsort
SELECT ALL ( 67 ) AS col1 FROM tab0
----
67
67
67

onlyif mysql # use DIV operator for integer division
query I rowsort label-9930
SELECT - cor0.col0 DIV + col1 AS col0 FROM tab2 AS cor0
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-9930
SELECT - cor0.col0 / + col1 AS col0 FROM tab2 AS cor0
----
-1
-4
0

query I rowsort
SELECT DISTINCT - - col0 * + col0 + - col0 FROM tab0 cor0
----
1190
552
7832

query I rowsort
SELECT ( - tab0.col1 ) AS col2 FROM tab0
----
-86
-91
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 14 col0 FROM tab1 AS cor0
----
-14
-14
-14

onlyif mysql # use DIV operator for integer division
query I rowsort label-9934
SELECT + col1 DIV - col0 col0 FROM tab0 AS cor0
----
-1
-2
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9934
SELECT + col1 / - col0 col0 FROM tab0 AS cor0
----
-1
-2
-3

query I rowsort
SELECT + 32 * col1 FROM tab1 cor0
----
320
416
832

query I rowsort
SELECT - col1 + col1 * 94 * col0 AS col2 FROM tab0
----
193930
319033
761215

onlyif mysql # use DIV operator for integer division
query I rowsort label-9937
SELECT + col1 - - tab1.col1 DIV + col0 AS col2 FROM tab1
----
10
13
34

skipif mysql # not compatible
query I rowsort label-9937
SELECT + col1 - - tab1.col1 / + col0 AS col2 FROM tab1
----
10
13
34

query I rowsort
SELECT ALL - 27 + col1 AS col1 FROM tab2 AS cor0
----
-10
32
4

query I rowsort
SELECT ALL + col0 * col1 + cor0.col2 FROM tab0 AS cor0
----
2097
3396
8181

query I rowsort
SELECT DISTINCT + col2 * cor0.col2 + ( col1 ) AS col0 FROM tab1 AS cor0
----
2942
3259
9229

query I rowsort
SELECT DISTINCT col2 * + ( - col2 ) + col1 FROM tab0 AS cor0
----
-1003
-6633
96

query I rowsort
SELECT ALL - cor0.col1 + - ( + 61 ) FROM tab1 AS cor0
----
-71
-74
-87

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9943
SELECT DISTINCT + col2 * - CAST( NULL AS SIGNED ) + 87 + col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9943
SELECT DISTINCT + col2 * - CAST ( NULL AS INTEGER ) + 87 + col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL cor0.col1 - + col0 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT DISTINCT + col1 + 98 + + col0 * col1 AS col0 FROM tab1 AS cor0
----
1151
202
748

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + col2 * + 51 col2 FROM tab1 AS cor0
----
2728
2897
4883

query I rowsort
SELECT - - col0 - 94 FROM tab2 AS cor0
----
-15
-16
-87

query I rowsort
SELECT DISTINCT + col2 * + 25 AS col1 FROM tab2 AS cor0
----
650
675
950

query I rowsort
SELECT ALL + col2 * + col2 + - col0 * - col0 * 29 FROM tab0 AS cor0
----
17793
236433
35526

query I rowsort
SELECT + cor0.col1 + col2 AS col2 FROM tab0 cor0
----
119
173
98

query I rowsort
SELECT + col2 + 94 FROM tab2 AS cor0
----
120
121
132

query I rowsort
SELECT + - 4 * ( col1 ) * - col2 + 4 * col2 FROM tab2 AS cor0
----
2736
3456
6240

query I rowsort
SELECT DISTINCT - - 89 + + 55 AS col2 FROM tab2 AS cor0
----
144

query I rowsort
SELECT col2 * + ( 40 ) AS col2 FROM tab2
----
1040
1080
1520

onlyif mysql # use DIV operator for integer division
query I rowsort label-9955
SELECT - + cor0.col2 DIV col0 AS col0 FROM tab1 cor0
----
-1
-18
0

skipif mysql # not compatible
query I rowsort label-9955
SELECT - + cor0.col2 / col0 AS col0 FROM tab1 cor0
----
-1
-18
0

query I rowsort
SELECT + cor0.col0 * - col2 AS col2 FROM tab2 AS cor0
----
-189
-2028
-3002

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9957
SELECT CAST( 78 AS SIGNED ) * - col2 + + col2 + ( - cor0.col2 ) AS col2 FROM tab2 AS cor0
----
-2028
-2106
-2964

skipif mysql # not compatible
query I rowsort label-9957
SELECT CAST ( 78 AS INTEGER ) * - col2 + + col2 + ( - cor0.col2 ) AS col2 FROM tab2 AS cor0
----
-2028
-2106
-2964

onlyif mysql # use DIV operator for integer division
query I rowsort label-9958
SELECT ALL - ( 88 ) DIV col0 - + col0 * + col2 AS col0 FROM tab1 AS cor0
----
-191
-3649
-7681

skipif mysql # not compatible
query I rowsort label-9958
SELECT ALL - ( 88 ) / col0 - + col0 * + col2 AS col0 FROM tab1 AS cor0
----
-191
-3649
-7681

query I rowsort
SELECT + + 90 * - cor0.col0 + col1 * col0 FROM tab2 AS cor0
----
-2418
-413
-5767

query I rowsort
SELECT DISTINCT 83 FROM tab1, tab2 AS cor0, tab0, tab1 cor1
----
83

query I rowsort
SELECT DISTINCT + + col0 + col2 * cor0.col2 AS col2 FROM tab2 AS cor0
----
1523
736
754

query I rowsort
SELECT + - ( col0 ) AS col2 FROM tab2 cor0
----
-7
-78
-79

query I rowsort
SELECT + tab2.col1 * - 51 FROM tab2
----
-1581
-3009
-867

query I rowsort
SELECT DISTINCT cor0.col2 AS col1 FROM tab2, tab2 cor0
----
26
27
38

query I rowsort
SELECT - col1 * + cor0.col1 + + col2 FROM tab0 AS cor0
----
-7363
-8199
-9408

query I rowsort
SELECT - - 83 FROM tab1 cor0
----
83
83
83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9967
SELECT ALL CAST( NULL AS SIGNED ) + - col2 * col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9967
SELECT ALL CAST ( NULL AS INTEGER ) + - col2 * col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9968
SELECT DISTINCT + - CAST( NULL AS DECIMAL ) AS col1 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9968
SELECT DISTINCT + - CAST ( NULL AS REAL ) AS col1 FROM tab2 cor0
----
NULL

query I rowsort
SELECT DISTINCT - + ( - col1 ) AS col0 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT - ( cor0.col0 ) * - cor0.col2 AS col2 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT - 80 FROM tab2, tab0 AS cor0
----
9 values hashing to 4dde3bd5652d30396b9cadd0e2cfb680

query I rowsort
SELECT - col2 + + col0 * - col0 FROM tab2
----
-6110
-6279
-76

query I rowsort
SELECT DISTINCT - - col2 + - 10 * cor0.col1 FROM tab2 AS cor0
----
-132
-283
-564

query I rowsort
SELECT DISTINCT + col0 * col2 + - col2 * col2 FROM tab1 AS cor0
----
-1536
-2754
399

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9975
SELECT ( + ( col1 ) ) * CAST( + 64 AS SIGNED ) * + col1 AS col2 FROM tab2 AS cor0
----
18496
222784
61504

skipif mysql # not compatible
query I rowsort label-9975
SELECT ( + ( col1 ) ) * CAST ( + 64 AS INTEGER ) * + col1 AS col2 FROM tab2 AS cor0
----
18496
222784
61504

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + 48 ) * cor0.col1 col1 FROM tab1 AS cor0
----
1248
480
624

query I rowsort
SELECT DISTINCT + ( col1 ) + - col0 * + col0 FROM tab2 cor0
----
-18
-6025
-6224

skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( - col2 AS REAL ) / + col2 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL + 71 * col0 AS col1 FROM tab2 AS cor0
----
497
5538
5609

query I rowsort
SELECT - 38 * + col1 FROM tab2 AS cor0
----
-1178
-2242
-646

query I rowsort
SELECT + col1 * + col2 + - col2 AS col2 FROM tab1
----
1152
1350
513

query I rowsort
SELECT + ( col0 ) + ( - col2 ) * + col0 AS col0 FROM tab2 AS cor0
----
-182
-1950
-2923

query I rowsort
SELECT DISTINCT + - col0 * cor0.col2 + col1 FROM tab1 AS cor0
----
-136
-3638
-7667

query I rowsort
SELECT cor0.col0 * + col0 + cor0.col2 AS col2 FROM tab0 AS cor0
----
1226
609
8003

onlyif mysql # use DIV operator for integer division
query I rowsort label-9985
SELECT ALL - - col0 * + col0 + CAST( - col2 AS SIGNED ) DIV col0 FROM tab0 AS cor0
----
1225
575
7921

skipif mysql # not compatible
query I rowsort label-9985
SELECT ALL - - col0 * + col0 + CAST ( - col2 AS INTEGER ) / col0 FROM tab0 AS cor0
----
1225
575
7921

query I rowsort
SELECT ALL + 31 * + col2 AS col1 FROM tab0 AS cor0
----
1023
2542
31

query I rowsort
SELECT DISTINCT - col0 * + col2 * - col1 + col0 * col2 AS col0 FROM tab0 AS cor0
----
3430
671416
68904

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col2 * + col1 + 16 col1 FROM tab0 AS cor0
----
-2822
-7446
-81

query I rowsort
SELECT DISTINCT + + col2 * + cor0.col1 * 83 + - col1 * cor0.col2 AS col1 FROM tab0 AS cor0
----
232716
611884
7954

query I rowsort
SELECT DISTINCT - + col1 * - cor0.col2 + + col1 AS col0 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT ALL col2 * + col0 + col2 AS col0 FROM tab0 cor0
----
36
7380
825

onlyif mysql # use DIV operator for integer division
query I rowsort label-9992
SELECT DISTINCT col2 DIV col2 + col1 AS col0 FROM tab0 AS cor0
----
87
92
98

skipif mysql # not compatible
query I rowsort label-9992
SELECT DISTINCT col2 / col2 + col1 AS col0 FROM tab0 AS cor0
----
87
92
98

query I rowsort
SELECT DISTINCT + 88 + - cor0.col2 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
55
6
87

query I rowsort
SELECT DISTINCT + + cor0.col1 * ( - ( + col1 ) ) + col0 + ( col1 * + 75 ) FROM tab1 cor0
----
1277
714
886

query I rowsort
SELECT ALL + cor0.col2 * - cor0.col0 AS col1 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT ( 68 ) FROM tab0, tab2 AS cor0
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990

query I rowsort
SELECT ALL + - col1 * col0 + ( - col0 ) FROM tab0 AS cor0
----
-2088
-3430
-8188

query I rowsort
SELECT ALL - col2 * ( - col2 ) + col0 * + col0 AS col0 FROM tab2 AS cor0
----
6760
7685
778

onlyif mysql # use DIV operator for integer division
query I rowsort label-9999
SELECT ALL col2 * + ( - col0 ) + col2 DIV col1 - + cor0.col0 * col1 FROM tab1 AS cor0
----
-238
-4283
-8713

skipif mysql # not compatible
query I rowsort label-9999
SELECT ALL col2 * + ( - col0 ) + col2 / col1 - + cor0.col0 * col1 FROM tab1 AS cor0
----
-238
-4283
-8713

