sqllogictest

Artifact [d45fc3eda6]
Login

Artifact d45fc3eda6ca3de0d39b95e2d1c824ed12dc0a4d:


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 + col0 + - col0 * col1 AS col2 FROM tab2 AS cor0
----
-1264
-210
-4524

query I rowsort
SELECT DISTINCT col2 * col1 + 78 FROM tab1 AS cor0
----
1326
1482
648

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

query I rowsort
SELECT ALL + col2 * col1 + - 17 FROM tab1 AS cor0
----
1231
1387
553

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT + 95 + - col1 * cor0.col2 AS col2 FROM tab1 AS cor0
----
-1153
-1309
-475

query I rowsort
SELECT + + 99 * + cor0.col2 * - 41 AS col1 FROM tab2 AS cor0
----
-105534
-109593
-154242

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

query I rowsort
SELECT - col0 + 68 AS col1 FROM tab2 AS cor0
----
-10
-11
61

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

query I rowsort
SELECT + + cor0.col1 * + 63 FROM tab2 AS cor0
----
1071
1953
3717

query I rowsort
SELECT DISTINCT - col2 + tab1.col0 * col0 + col0 FROM tab1
----
-42
4103
6384

query I rowsort
SELECT + col1 * - 52 * - ( col2 * cor0.col1 + + col1 ) AS col2 FROM tab2 AS cor0
----
1399216
4887324
586092

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-20
SELECT DISTINCT + col2 + + ( - col0 ) / + CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT col1 * + 51 AS col1 FROM tab0
----
4386
4641
4947

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 6 * col2 + - col2 col0 FROM tab0 AS cor0
----
165
410
5

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

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

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

query I rowsort
SELECT ALL col0 * 81 * - col0 + col0 * col1 + + col2 * + col1 FROM tab0 AS cor0
----
-41754
-626040
-95733

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

query I rowsort
SELECT ALL - 66 + 38 AS col0 FROM tab0 AS cor0
----
-28
-28
-28

query I rowsort
SELECT - - ( - cor0.col0 ) AS col2 FROM tab0 cor0
----
-24
-35
-89

query I rowsort
SELECT ALL + 14 + col2 FROM tab1 AS cor0
----
110
68
71

query I rowsort
SELECT DISTINCT + 16 + + col2 AS col1 FROM tab2 AS cor0
----
42
43
54

onlyif mysql # use DIV operator for integer division
query I rowsort label-32
SELECT - - col1 DIV - col0 + 24 AS col0 FROM tab2 AS cor0
----
20
24
24

skipif mysql # not compatible
query I rowsort label-32
SELECT - - col1 / - col0 + 24 AS col0 FROM tab2 AS cor0
----
20
24
24

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

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

query I rowsort
SELECT DISTINCT - 75 * col1 * + col2 + + 42 * col2 FROM tab2 AS cor0
----
-113958
-46854
-61641

query I rowsort
SELECT ALL 88 - + cor0.col1 AS col2 FROM tab0 AS cor0
----
-3
-9
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col0 + + col2 * - col0 col1 FROM tab1 AS cor0
----
-1280
-153
448

query I rowsort
SELECT ALL col1 + - col0 * + 47 * cor0.col0 FROM tab2 cor0
----
-2272
-285889
-293310

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

skipif mysql # not compatible
query I rowsort label-39
SELECT cor0.col1 * - col1 + + CAST ( - cor0.col1 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-306
-3540
-992

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

query I rowsort
SELECT DISTINCT 79 + + 0 FROM tab0
----
79

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

skipif mysql # not compatible
query I rowsort label-42
SELECT + 54 / col0 FROM tab1
----
0
0
18

query I rowsort
SELECT col0 * - col2 + + col0 + ( col0 ) AS col0 FROM tab0
----
-7120
-744
35

query I rowsort
SELECT 39 - col0 AS col0 FROM tab0 AS cor0
----
-50
15
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-45
SELECT DISTINCT ( col1 ) DIV col1 - tab0.col0 FROM tab0
----
-23
-34
-88

skipif mysql # not compatible
query I rowsort label-45
SELECT DISTINCT ( col1 ) / col1 - tab0.col0 FROM tab0
----
-23
-34
-88

onlyif mysql # use DIV operator for integer division
query I rowsort label-46
SELECT - 45 + - col1 DIV col0 AS col2 FROM tab0
----
-46
-47
-48

skipif mysql # not compatible
query I rowsort label-46
SELECT - 45 + - col1 / col0 AS col2 FROM tab0
----
-46
-47
-48

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

skipif mysql # not compatible
query I rowsort label-47
SELECT - CAST ( col1 * col1 AS INTEGER ) + - col2 * + col0 * col1 FROM tab0
----
-12804
-672399
-75508

query I rowsort
SELECT + 96 - - cor0.col0 FROM tab2 cor0
----
103
174
175

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

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

query I rowsort
SELECT DISTINCT - 81 + col2 AS col1 FROM tab1
----
-24
-27
15

query I rowsort
SELECT DISTINCT - - 11 FROM tab2, tab1, tab1 cor0
----
11

query I rowsort
SELECT ( - col0 ) * 59 FROM tab1
----
-177
-3776
-4720

query I rowsort
SELECT - 77 * col0 FROM tab0
----
-1848
-2695
-6853

query I rowsort
SELECT - cor0.col2 * col1 + + cor0.col0 * + cor0.col2 FROM tab0 cor0
----
-164
-2046
-62

query I rowsort
SELECT + 4 + + col0 * col0 + tab0.col0 FROM tab0
----
1264
604
8014

query I rowsort
SELECT - col2 * col0 + col0 + - 52 FROM tab1
----
-211
-3636
-7652

query I rowsort
SELECT + 89 - - col1 FROM tab2 AS cor0
----
106
120
148

query I rowsort
SELECT ALL + 78 * col1 - + 14 AS col1 FROM tab0 AS cor0
----
6694
7084
7552

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

skipif mysql # not compatible
query I rowsort label-60
SELECT - 16 / + 44 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 66 * 88 col1 FROM tab0 AS cor0
----
5808
5808
5808

query I rowsort
SELECT + cor0.col1 * col0 * + col0 FROM tab2 AS cor0
----
106097
1519
358956

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-63
SELECT ALL + col2 * CAST( + col1 + col0 AS SIGNED ) FROM tab2
----
1026
3562
3648

skipif mysql # not compatible
query I rowsort label-63
SELECT ALL + col2 * CAST ( + col1 + col0 AS INTEGER ) FROM tab2
----
1026
3562
3648

query I rowsort
SELECT + 4 FROM tab1, tab0 cor0
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b

query I rowsort
SELECT ALL col1 * 24 AS col2 FROM tab0 AS cor0
----
2064
2184
2328

query I rowsort
SELECT ALL - 62 AS col0 FROM tab2, tab2 cor0
----
9 values hashing to f0e93f6ff5fc3cf50a14e276206dad5c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * 39 col0 FROM tab1 AS cor0
----
-117
-2496
-3120

query I rowsort
SELECT ALL + + col2 * + 62 AS col2 FROM tab0 AS cor0
----
2046
5084
62

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

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

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

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

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

query I rowsort
SELECT DISTINCT 31 + - 81 FROM tab2 AS cor0
----
-50

onlyif mysql # use DIV operator for integer division
query I rowsort label-73
SELECT ALL 80 DIV 56 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-73
SELECT ALL 80 / 56 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT ALL + - 73 * - 86 FROM tab1 AS cor0
----
6278
6278
6278

query I rowsort
SELECT DISTINCT + - 83 + col1 FROM tab0 AS cor0
----
14
3
8

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

query I rowsort
SELECT - col0 * ( col2 ) + col1 + ( - 91 ) FROM tab1 AS cor0
----
-227
-3729
-7758

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

query I rowsort
SELECT ALL cor0.col0 * 82 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 5ed674b86bc66220451666145bcd25fd

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

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

query I rowsort
SELECT 68 FROM tab1 AS cor0
----
68
68
68

query I rowsort
SELECT - col1 + + 78 FROM tab1 cor0
----
52
65
68

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

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

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

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

query I rowsort
SELECT + + 59 AS col1 FROM tab1 AS cor0
----
59
59
59

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

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

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

query I rowsort
SELECT ALL - - cor0.col0 + - 38 AS col0 FROM tab1 AS cor0
----
-35
26
42

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col1 * ( col2 + col1 ) * tab2.col2 col0 FROM tab2
----
130390
35530
48546

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-96
SELECT ALL + 51 * col0 - + CAST( - 39 * - col1 AS SIGNED ) FROM tab0 AS cor0
----
-1998
-2130
990

skipif mysql # not compatible
query I rowsort label-96
SELECT ALL + 51 * col0 - + CAST ( - 39 * - col1 AS INTEGER ) FROM tab0 AS cor0
----
-1998
-2130
990

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

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

query I rowsort
SELECT col0 * + 88 * - col2 + ( 54 ) AS col1 FROM tab1
----
-14202
-320970
-675786

query I rowsort
SELECT - cor0.col1 + + cor0.col2 * 8 FROM tab2 AS cor0
----
149
185
287

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

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

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

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

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

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

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

query I rowsort
SELECT col0 * + 78 AS col2 FROM tab2 AS cor0
----
546
6084
6162

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

query I rowsort
SELECT - - col0 * - 44 FROM tab0 cor0
----
-1056
-1540
-3916

query I rowsort
SELECT ALL + col2 * + 31 AS col1 FROM tab0 AS cor0
----
1023
2542
31

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

query I rowsort
SELECT col2 * col2 + - col1 * + col1 AS col2 FROM tab0
----
-1557
-6307
-9408

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

query I rowsort
SELECT + col0 + 47 AS col1 FROM tab0 cor0
----
136
71
82

query I rowsort
SELECT - - col2 * - 5 FROM tab2 AS cor0
----
-130
-135
-190

query I rowsort
SELECT col1 - 55 * + col0 FROM tab0
----
-1234
-1828
-4804

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

query I rowsort
SELECT cor1.col0 FROM tab0, tab2 AS cor0, tab2, tab0 AS cor1
----
81 values hashing to 2304fcc140e955eb2d1ee28ab1eea994

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-120
SELECT + + CAST( + 98 AS SIGNED ) * - col0 + 92 * - col1 AS col2 FROM tab2 AS cor0
----
-13072
-3538
-9306

skipif mysql # not compatible
query I rowsort label-120
SELECT + + CAST ( + 98 AS INTEGER ) * - col0 + 92 * - col1 AS col2 FROM tab2 AS cor0
----
-13072
-3538
-9306

query I rowsort
SELECT col0 + - 84 + - col1 AS col0 FROM tab2 AS cor0
----
-108
-22
-65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 58 + - cor0.col1 col1 FROM tab1 AS cor0
----
-68
-71
-84

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

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

query I rowsort
SELECT DISTINCT + col0 - 67 AS col1 FROM tab0
----
-32
-43
22

query I rowsort
SELECT DISTINCT 80 * 13 FROM tab1 AS cor0
----
1040

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

query I rowsort
SELECT + - col1 * + col2 * 60 + + col2 + col2 FROM tab1 AS cor0
----
-34086
-74688
-84132

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col0 * + col2 col1 FROM tab2 AS cor0
----
1323
158184
237158

query I rowsort
SELECT DISTINCT - ( ( col0 ) ) * col2 + - col2 + - col2 * + 47 FROM tab2
----
-1485
-3276
-4826

query I rowsort
SELECT - 19 FROM tab1, tab2 cor0
----
9 values hashing to 339c9d62143bf2f7566b89a1b56eeeb4

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

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

query I rowsort
SELECT - col0 + - col1 * + col2 + col2 FROM tab0
----
-131
-2829
-7469

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

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

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

query I rowsort
SELECT ALL 68 + - 42 * cor0.col2 FROM tab2 AS cor0
----
-1024
-1066
-1528

query I rowsort
SELECT DISTINCT - ( - col1 ) AS col2 FROM tab2 cor0
----
17
31
59

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + col2 + - col1 col1 FROM tab0 AS cor0
----
-96
1003
6633

query I rowsort
SELECT col1 * + col1 * - cor0.col1 + + col0 + - col2 AS col2 FROM tab2 AS cor0
----
-205327
-29811
-4872

query I rowsort
SELECT 93 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 85ef191bf1b307f300b3fd49992fcae7

query I rowsort
SELECT ALL + 41 * cor1.col1 + cor1.col0 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 18a89e3d5920ac00abfec0a74f98a48e

query I rowsort
SELECT DISTINCT cor0.col1 * - col0 + - 79 AS col0 FROM tab1 AS cor0
----
-1119
-157
-719

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

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

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

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-150
SELECT DISTINCT - col1 * CAST ( col1 AS INTEGER ) + col0 col0 FROM tab2 AS cor0
----
-210
-3403
-954

query I rowsort
SELECT DISTINCT 27 * col0 AS col0 FROM tab2
----
189
2106
2133

query I rowsort
SELECT ALL + + col1 + - 80 * - cor0.col2 * col2 FROM tab2 AS cor0
----
115537
54139
58351

query I rowsort
SELECT DISTINCT + cor0.col2 * - 71 AS col2 FROM tab0 AS cor0
----
-2343
-5822
-71

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

skipif mysql # not compatible
query I rowsort label-154
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1 FROM tab1, tab0 AS cor0
----
NULL

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

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

query I rowsort
SELECT + col2 * 49 + 84 FROM tab2 AS cor0
----
1358
1407
1946

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

query I rowsort
SELECT ALL col2 + - col0 + col2 * col0 * col0 AS col0 FROM tab1 AS cor0
----
233465
537
614416

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

query I rowsort
SELECT - 79 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to c9cc9510604e093bd158ca33928acaed

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

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

query I rowsort
SELECT + ( col0 ) * - col0 + + ( col2 ) FROM tab1 AS cor0
----
-4039
-6304
45

query I rowsort
SELECT ALL 87 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

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

skipif mysql # not compatible
query I rowsort label-164
SELECT DISTINCT - - 25 / cor0.col0 + + col1 AS col0 FROM tab0 AS cor0
----
87
91
97

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

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

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

query I rowsort
SELECT DISTINCT + + 69 * - col1 AS col2 FROM tab2 AS cor0
----
-1173
-2139
-4071

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

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

query I rowsort
SELECT col0 * - 2 + col1 AS col0 FROM tab0
----
-87
27
38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-171
SELECT DISTINCT + CAST( - 21 AS SIGNED ) + col0 FROM tab1
----
-18
43
59

skipif mysql # not compatible
query I rowsort label-171
SELECT DISTINCT + CAST ( - 21 AS INTEGER ) + col0 FROM tab1
----
-18
43
59

query I rowsort
SELECT - tab2.col2 + col0 - col0 FROM tab2
----
-26
-27
-38

query I rowsort
SELECT - tab0.col0 + 54 AS col1 FROM tab0
----
-35
19
30

query I rowsort
SELECT - col2 - + 54 * - tab2.col2 FROM tab2
----
1378
1431
2014

onlyif mysql # use DIV operator for integer division
query I rowsort label-175
SELECT + col0 DIV col1 + + col0 AS col1 FROM tab1
----
3
70
86

skipif mysql # not compatible
query I rowsort label-175
SELECT + col0 / col1 + + col0 AS col1 FROM tab1
----
3
70
86

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

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

query I rowsort
SELECT + col0 * - 55 FROM tab2
----
-385
-4290
-4345

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

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

query I rowsort
SELECT ALL - cor0.col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b

query I rowsort
SELECT cor1.col2 * 19 AS col1 FROM tab0, tab0 cor0, tab1 AS cor1
----
27 values hashing to aaf2d6b2ce25b27eb101a6b197171b93

query I rowsort
SELECT 86 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19

query I rowsort
SELECT DISTINCT + + ( + cor0.col2 ) + + col0 - 91 * col1 * - 58 AS col1 FROM tab0 AS cor0
----
453965
480469
512002

query I rowsort
SELECT 46 + + col1 FROM tab1 cor0
----
56
59
72

onlyif mysql # use DIV operator for integer division
query I rowsort label-186
SELECT DISTINCT col0 * col1 DIV col2 AS col1 FROM tab1 AS cor0
----
1
10
11

skipif mysql # not compatible
query I rowsort label-186
SELECT DISTINCT col0 * col1 / col2 AS col1 FROM tab1 AS cor0
----
1
10
11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 90 col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 96f7a90428db93f472e0d219bab64853

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

query I rowsort
SELECT DISTINCT - 31 + cor0.col2 AS col0 FROM tab1, tab0, tab0 AS cor0
----
-30
2
51

query I rowsort
SELECT DISTINCT - ( - tab0.col1 ) * col1 FROM tab0
----
7396
8281
9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-191
SELECT ALL 11 * col1 DIV + col2 FROM tab1
----
1
1
5

skipif mysql # not compatible
query I rowsort label-191
SELECT ALL 11 * col1 / + col2 FROM tab1
----
1
1
5

query I rowsort
SELECT + - 33 + col0 * - col1 AS col0 FROM tab0 AS cor0
----
-2097
-3428
-8132

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

query I rowsort
SELECT - ( cor0.col0 ) AS col2 FROM tab1 cor0
----
-3
-64
-80

query I rowsort
SELECT DISTINCT cor0.col0 * - cor0.col1 + 14 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
-2050
-3381
-8085

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

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

query I rowsort
SELECT DISTINCT + col1 * col1 + col2 * col1 FROM tab2 AS cor0
----
1798
5015
935

query I rowsort
SELECT DISTINCT - - cor0.col0 + - ( 48 * - col2 ) - 19 FROM tab0 AS cor0
----
1589
4006
64

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT ALL col1 * ( - 74 ) AS col2 FROM tab2
----
-1258
-2294
-4366

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

query I rowsort
SELECT 78 + col2 FROM tab2 AS cor0
----
104
105
116

query I rowsort
SELECT - - col0 + 37 AS col2 FROM tab0 AS cor0
----
126
61
72

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

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

query I rowsort
SELECT ALL col1 * - col0 * - 77 FROM tab2
----
103411
16709
354354

query I rowsort
SELECT col0 * + 23 FROM tab1
----
1472
1840
69

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

query I rowsort
SELECT + - ( - 28 ) + + col0 FROM tab1 cor0
----
108
31
92

query I rowsort
SELECT ALL + 62 * col1 + + col2 AS col0 FROM tab0 AS cor0
----
5365
5724
6015

query I rowsort
SELECT DISTINCT - + col0 + 66 * cor0.col2 + cor0.col0 FROM tab0 AS cor0
----
2178
5412
66

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

query I rowsort
SELECT DISTINCT + + 82 - - col1 AS col0 FROM tab2 cor0
----
113
141
99

query I rowsort
SELECT - 47 + cor0.col0 FROM tab0 AS cor0
----
-12
-23
42

query I rowsort
SELECT + cor0.col1 * 74 + + col2 AS col1 FROM tab1 AS cor0
----
1058
1978
797

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

query I rowsort
SELECT DISTINCT - col1 - col0 * col2 * + col0 FROM tab0 AS cor0
----
-1322
-19094
-649613

query I rowsort
SELECT + cor0.col1 * tab0.col1 FROM tab2, tab0 AS cor0 CROSS JOIN tab0, tab2 AS cor1
----
81 values hashing to 54af88000467473034d568a31bc35fa3

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-227
SELECT cor1.col1 * CAST( - 27 AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 0ffd37e68a96c8b6827d9c1d6666ede7

skipif mysql # not compatible
query I rowsort label-227
SELECT cor1.col1 * CAST ( - 27 AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 0ffd37e68a96c8b6827d9c1d6666ede7

onlyif mysql # use DIV operator for integer division
query I rowsort label-228
SELECT ALL col1 + - col0 DIV col1 FROM tab1
----
26
4
7

skipif mysql # not compatible
query I rowsort label-228
SELECT ALL col1 + - col0 / col1 FROM tab1
----
26
4
7

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab0 cor0 CROSS JOIN tab1, tab1 cor1
----
972 values hashing to d222ba302bd1ddd1c8b2ddf1a4d0b07a

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-231
SELECT + col1 * col0 - 85 DIV + cor0.col1 FROM tab0 AS cor0
----
2064
3395
8099

skipif mysql # not compatible
query I rowsort label-231
SELECT + col1 * col0 - 85 / + cor0.col1 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT + cor1.col0 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

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

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

query I rowsort
SELECT + col0 * - col0 + - col0 * + col0 - - 76 FROM tab2
----
-12092
-12406
-22

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

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

query I rowsort
SELECT col1 - + 76 * + 62 AS col0 FROM tab2
----
-4653
-4681
-4695

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-239
SELECT ALL col2 + - CAST( + col1 AS SIGNED ) AS col1 FROM tab1
----
28
47
83

skipif mysql # not compatible
query I rowsort label-239
SELECT ALL col2 + - CAST ( + col1 AS INTEGER ) AS col1 FROM tab1
----
28
47
83

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

query I rowsort
SELECT DISTINCT + col1 + col2 * 84 * - col1 FROM tab0
----
-238306
-626717
-8051

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-244
SELECT ALL - cor0.col1 + + col1 * 69 DIV 89 FROM tab1 AS cor0
----
-3
-3
-6

skipif mysql # not compatible
query I rowsort label-244
SELECT ALL - cor0.col1 + + col1 * 69 / 89 FROM tab1 AS cor0
----
-3
-3
-6

query I rowsort
SELECT ALL - 24 + - col2 * + col2 FROM tab0 AS cor0
----
-1113
-25
-6748

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-246
SELECT DISTINCT + col1 + - cor0.col1 / + col1 col0 FROM tab1 cor0
----
12
25
9

query I rowsort
SELECT ALL - + col0 * col0 - col0 * col1 AS col2 FROM tab2 AS cor0
----
-10686
-266
-7584

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

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

query I rowsort
SELECT DISTINCT 98 * - cor0.col2 + - col1 FROM tab0 AS cor0
----
-195
-3320
-8127

query I rowsort
SELECT DISTINCT - col2 * cor0.col1 + 68 FROM tab0 AS cor0
----
-2770
-29
-7394

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 52 col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 7f4ae30893ab330784829711032ae599

query I rowsort
SELECT - 73 AS col1 FROM tab2
----
-73
-73
-73

query I rowsort
SELECT ALL + col1 * + col0 + 5 + - col0 AS col0 FROM tab1 cor0
----
581
80
965

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

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

query I rowsort
SELECT ALL + 84 + 77 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 6a47bf60cc1a163b24ad0861e470fe6a

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 63 * 25 col0 FROM tab1 AS cor0
----
1575
1575
1575

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

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

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

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

query I rowsort
SELECT DISTINCT col1 + + col1 * 29 FROM tab0
----
2580
2730
2910

query I rowsort
SELECT ALL 2 * col0 * col1 FROM tab0
----
16198
4128
6790

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

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

query I rowsort
SELECT ALL + col2 * 29 AS col2 FROM tab0 AS cor0
----
2378
29
957

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

query I rowsort
SELECT - cor0.col1 * cor0.col0 * + col2 AS col0 FROM tab1 AS cor0
----
-36480
-4212
-99840

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 34 * cor0.col1 col1 FROM tab0 AS cor0
----
-2924
-3094
-3298

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

query I rowsort
SELECT ALL - col1 * + 52 * col2 AS col0 FROM tab2 AS cor0
----
-33592
-43524
-79768

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

query I rowsort
SELECT DISTINCT - + col0 + 2 AS col2 FROM tab0 AS cor0
----
-22
-33
-87

query I rowsort
SELECT - 86 + 39 * - col1 AS col1 FROM tab1 AS cor0
----
-1100
-476
-593

query I rowsort
SELECT DISTINCT - + col2 + 89 AS col2 FROM tab2 AS cor0
----
51
62
63

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

query I rowsort
SELECT ALL 99 * - col2 FROM tab2 AS cor0
----
-2574
-2673
-3762

query I rowsort
SELECT - col2 + - 8 FROM tab2 AS cor0
----
-34
-35
-46

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

query I rowsort
SELECT DISTINCT - col2 * + 58 AS col0 FROM tab0 AS cor0
----
-1914
-4756
-58

query I rowsort
SELECT 53 * 29 + col0 FROM tab2 AS cor0
----
1544
1615
1616

query I rowsort
SELECT DISTINCT col2 * 99 + cor0.col2 FROM tab2 AS cor0
----
2600
2700
3800

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

query I rowsort
SELECT ALL + 39 FROM tab1, tab0 AS cor0 CROSS JOIN tab2
----
27 values hashing to ed2ebd9def3e2c38aa46cb3af60fe229

query I rowsort
SELECT + 64 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e

query I rowsort
SELECT + 78 * - col2 AS col0 FROM tab1 AS cor0
----
-4212
-4446
-7488

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

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

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

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

query I rowsort
SELECT DISTINCT + col1 * + col0 * - 66 FROM tab1 AS cor0
----
-42240
-5148
-68640

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

query I rowsort
SELECT + col1 + 88 * + 95 FROM tab0
----
8446
8451
8457

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

skipif mysql # not compatible
query I rowsort label-295
SELECT - - col1 - CAST ( - 29 + col1 AS INTEGER ) * - cor0.col1 AS col2 FROM tab2 cor0
----
-187
1829
93

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

query I rowsort
SELECT - col0 * - 43 + + col2 * col0 FROM tab1 AS cor0
----
11120
291
6400

onlyif mysql # use DIV operator for integer division
query I rowsort label-298
SELECT + col1 DIV + 34 FROM tab2 cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-298
SELECT + col1 / + 34 FROM tab2 cor0
----
0
0
1

query I rowsort
SELECT ALL col0 * 11 + - col0 * - cor0.col1 AS col0 FROM tab2 AS cor0
----
2212
294
5460

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

query I rowsort
SELECT + 58 * 37 + - col1 * - ( col0 + - cor0.col1 ) AS col1 FROM tab2 AS cor0
----
1402
3200
3267

query I rowsort
SELECT - - 74 * + 86 + + col0 FROM tab2 AS cor0
----
6371
6442
6443

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 * 57 col1 FROM tab1 AS cor0
----
-171
-3648
-4560

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-306
SELECT DISTINCT - col1 + ( col2 ) DIV - col1 + col1 * tab1.col2 FROM tab1
----
1228
1376
555

skipif mysql # not compatible
query I rowsort label-306
SELECT DISTINCT - col1 + ( col2 ) / - col1 + col1 * tab1.col2 FROM tab1
----
1228
1376
555

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * col0 + + col2 * + col2 col1 FROM tab0
----
14022
1881
36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( tab1.col1 ) col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

query I rowsort
SELECT + 55 * cor0.col2 + - col0 AS col0 FROM tab2 AS cor0
----
1352
1478
2011

query I rowsort
SELECT + 82 FROM tab2, tab0 AS cor0
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c

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

query I rowsort
SELECT DISTINCT tab0.col0 + col1 + + col0 AS col1 FROM tab0
----
134
167
269

query I rowsort
SELECT col2 + 24 * tab2.col1 + tab2.col0 FROM tab2
----
1520
525
778

query I rowsort
SELECT ALL col1 * + ( + 82 ) + - cor0.col1 FROM tab1 AS cor0
----
1053
2106
810

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

query I rowsort
SELECT DISTINCT - 54 AS col2 FROM tab2
----
-54

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

query I rowsort
SELECT ALL 59 AS col2 FROM tab2
----
59
59
59

query I rowsort
SELECT ALL - col0 * - 25 FROM tab2
----
175
1950
1975

query I rowsort
SELECT + 40 FROM tab1, tab0 AS cor0
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * ( - col1 ) col2 FROM tab1 AS cor0
----
-1248
-1404
-570

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-327
SELECT ALL - col1 DIV + ( - col1 ) FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-327
SELECT ALL - col1 / + ( - col1 ) FROM tab2
----
1
1
1

query I rowsort
SELECT - 10 * col1 + ( - col2 ) AS col2 FROM tab0 AS cor0
----
-893
-971
-992

query I rowsort
SELECT DISTINCT ( + 36 ) + col1 FROM tab2
----
53
67
95

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-330
SELECT + col0 / col2 col1 FROM tab0
----
0
1
35

query I rowsort
SELECT ( + 29 ) * col1 FROM tab2
----
1711
493
899

onlyif mysql # use DIV operator for integer division
query I rowsort label-332
SELECT DISTINCT col2 + 98 DIV + col0 FROM tab0
----
3
37
83

skipif mysql # not compatible
query I rowsort label-332
SELECT DISTINCT col2 + 98 / + col0 FROM tab0
----
3
37
83

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

query I rowsort
SELECT DISTINCT - 7 * ( col2 ) FROM tab2 AS cor0
----
-182
-189
-266

query I rowsort
SELECT + - col2 * - col1 + col0 + + col2 AS col1 FROM tab0 AS cor0
----
133
2895
7633

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

query I rowsort
SELECT + col2 * col0 + + 15 * col2 * - cor0.col0 + + col1 * - col0 AS col0 FROM tab2 AS cor0
----
-2863
-32994
-43371

query I rowsort
SELECT - col1 + col2 + col0 * + col2 FROM tab0 AS cor0
----
-61
7289
739

query I rowsort
SELECT - + 4 * cor0.col0 AS col0 FROM tab1 AS cor0
----
-12
-256
-320

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

query I rowsort
SELECT 5 * col1 AS col2 FROM tab1
----
130
50
65

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

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

skipif mysql # not compatible
query I rowsort label-343
SELECT + + col1 * cor0.col1 - - CAST ( col1 AS INTEGER ) FROM tab0 AS cor0
----
7482
8372
9506

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

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

query I rowsort
SELECT ALL col1 * col2 - + 77 * - col0 AS col1 FROM tab0
----
14315
2792
4686

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

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

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

query I rowsort
SELECT DISTINCT + 48 + - col1 AS col0 FROM tab0
----
-38
-43
-49

query I rowsort
SELECT ALL - col1 * + col0 + 56 - 97 AS col1 FROM tab0
----
-2105
-3436
-8140

query I rowsort
SELECT - - col1 + col2 * col1 + + 81 FROM tab1 AS cor0
----
1342
1511
661

query I rowsort
SELECT ALL + 91 + - cor0.col1 * col1 FROM tab2 AS cor0
----
-198
-3390
-870

onlyif mysql # use DIV operator for integer division
query I rowsort label-353
SELECT - col0 DIV - col2 + col1 + + cor0.col2 FROM tab1 AS cor0
----
109
68
80

skipif mysql # not compatible
query I rowsort label-353
SELECT - col0 / - col2 + col1 + + cor0.col2 FROM tab1 AS cor0
----
109
68
80

query I rowsort
SELECT ALL + - col2 * 18 AS col0 FROM tab0 AS cor0
----
-1476
-18
-594

query I rowsort
SELECT + col2 * ( - 29 + cor0.col2 ) FROM tab2 AS cor0
----
-54
-78
342

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

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

query I rowsort
SELECT DISTINCT + - cor0.col2 + - ( - 90 ) AS col0 FROM tab0 AS cor0
----
57
8
89

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

query I rowsort
SELECT + + col0 * - col2 + + col0 + - col2 AS col2 FROM tab2 AS cor0
----
-1976
-209
-2961

onlyif mysql # use DIV operator for integer division
query I rowsort label-360
SELECT - cor0.col0 + 78 DIV - 97 FROM tab0 AS cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-360
SELECT - cor0.col0 + 78 / - 97 FROM tab0 AS cor0
----
-24
-35
-89

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

query I rowsort
SELECT DISTINCT col1 * ( 67 ) AS col0 FROM tab2 AS cor0
----
1139
2077
3953

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

query I rowsort
SELECT + - 78 AS col1 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to c4f3c63f98c3c08f2848f46850a476d4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 34 * + col1 col0 FROM tab1
----
340
442
884

query I rowsort
SELECT ( - col0 * - tab1.col2 + 12 ) AS col0 FROM tab1
----
174
3660
7692

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

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

query I rowsort
SELECT DISTINCT - - col1 * + 24 FROM tab1 AS cor0
----
240
312
624

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

query I rowsort
SELECT + col1 * + cor0.col1 + 59 FROM tab1 AS cor0
----
159
228
735

query I rowsort
SELECT ALL + col2 + 75 AS col2 FROM tab0 AS cor0
----
108
157
76

query I rowsort
SELECT + 63 * col0 AS col2 FROM tab2 AS cor0
----
441
4914
4977

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

query I rowsort
SELECT DISTINCT ( 36 ) * - col0 + + col2 AS col1 FROM tab0 AS cor0
----
-1259
-3122
-831

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

query I rowsort
SELECT - - col0 * - 46 FROM tab1 AS cor0
----
-138
-2944
-3680

query I rowsort
SELECT DISTINCT + 70 + col1 * - col2 + - col0 FROM tab0 AS cor0
----
-2792
-62
-7481

query I rowsort
SELECT + 48 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b

query I rowsort
SELECT ALL col2 + 87 * + col1 AS col1 FROM tab1 cor0
----
1227
2316
927

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

query I rowsort
SELECT ALL - ( 90 ) * + col1 FROM tab1 AS cor0
----
-1170
-2340
-900

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

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

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

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

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

query I rowsort
SELECT ALL 55 * - col2 FROM tab2 AS cor0
----
-1430
-1485
-2090

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + col0 + col0 col0 FROM tab2 AS cor0
----
21
234
237

query I rowsort
SELECT 14 AS col2 FROM tab1, tab2 AS cor0, tab2 cor1
----
27 values hashing to 409c1790b702540dd9dc067c1965b7c0

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

query I rowsort
SELECT 39 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf

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

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

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

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

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

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

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

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

query I rowsort
SELECT ALL col0 FROM tab0 WHERE col0 <> - col1
----
24
35
89

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

query I rowsort
SELECT + tab2.col1 + - col2 * tab2.col1 * tab2.col1 AS col0 FROM tab2
----
-10965
-25916
-90447

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col1 IN ( col0 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

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

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

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 IN ( - col0 )
----

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

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

query I rowsort
SELECT ALL - col2 * + tab2.col0 + + col2 * - tab2.col2 AS col1 FROM tab2
----
-2704
-4446
-918

query I rowsort
SELECT col0 - - col1 FROM tab0 WHERE ( + col1 ) <= NULL
----

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

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

query I rowsort
SELECT col1 AS col2 FROM tab2 WHERE NULL <> NULL
----

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

query I rowsort
SELECT DISTINCT col2 * - col1 * + col0 + cor0.col0 * col2 + col2 AS col2 FROM tab2 AS cor0 WHERE NULL NOT IN ( col0 + + cor0.col0 )
----

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 = NULL
----

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

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

query I rowsort
SELECT ALL tab0.col2 * + col0 - - tab0.col1 FROM tab0
----
132
7389
878

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 IN ( col0 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

query I rowsort
SELECT DISTINCT - cor0.col2 AS col2 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL col1 - + col1 * + col2 * col2 AS col0 FROM tab1
----
-119795
-32480
-75790

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

query I rowsort
SELECT ALL col1 * tab0.col1 AS col1 FROM tab0
----
7396
8281
9409

query I rowsort
SELECT + tab0.col1 AS col2 FROM tab0 WHERE ( col0 + + col0 ) > NULL
----

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

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT cor0.col1 * 83 AS col0 FROM tab0 AS cor0
----
7138
7553
8051

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

query I rowsort
SELECT ALL col0 * + 85 AS col0 FROM tab2
----
595
6630
6715

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

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

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

query I rowsort
SELECT - tab0.col2 * + 77 FROM tab0
----
-2541
-6314
-77

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

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

query I rowsort
SELECT ALL 75 AS col2 FROM tab2
----
75
75
75

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

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

query I rowsort
SELECT + 21 FROM tab2, tab0 AS cor0
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 86 + + col1 * col2 col2 FROM tab2 AS cor0
----
1448
560
751

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-449
SELECT DISTINCT - - CAST( - 92 AS SIGNED ) * - cor0.col0 - col1 * - col0 FROM tab0 AS cor0
----
16287
4272
6615

skipif mysql # not compatible
query I rowsort label-449
SELECT DISTINCT - - CAST ( - 92 AS INTEGER ) * - cor0.col0 - col1 * - col0 FROM tab0 AS cor0
----
16287
4272
6615

query I rowsort
SELECT DISTINCT + - cor0.col2 + col0 * - col0 FROM tab2 AS cor0
----
-6110
-6279
-76

query I rowsort
SELECT - 97 * col0 FROM tab2
----
-679
-7566
-7663

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-452
SELECT + col2 + col2 + CAST( 98 AS SIGNED ) FROM tab1
----
206
212
290

skipif mysql # not compatible
query I rowsort label-452
SELECT + col2 + col2 + CAST ( 98 AS INTEGER ) FROM tab1
----
206
212
290

skipif mysql # not compatible
query I rowsort
SELECT ALL - col2 + col1 * + CAST ( 48 AS REAL ) * - tab2.col0 + col1 AS col2 FROM tab2
----
-10412
-220863
-64485

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

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

skipif mysql # not compatible
query I rowsort label-455
SELECT 95 / col1 FROM tab0 cor0
----
0
1
1

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

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

query I rowsort
SELECT col1 * col1 + col2 * + col0 - 83 AS col2 FROM tab2 AS cor0
----
1067
3208
5426

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

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-461
SELECT - col1 - CAST( 95 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-181
-186
-192

skipif mysql # not compatible
query I rowsort label-461
SELECT - col1 - CAST ( 95 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-181
-186
-192

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

query I rowsort
SELECT DISTINCT - col0 * - 71 + - ( col1 ) FROM tab0 AS cor0
----
1618
2388
6228

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

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

query I rowsort
SELECT cor0.col1 + + ( cor0.col1 ) + + col1 * + ( + col1 ) * + col2 FROM tab1 AS cor0
----
16250
36556
5720

query I rowsort
SELECT + col1 - 36 * + col1 AS col0 FROM tab0 AS cor0
----
-3010
-3185
-3395

query I rowsort
SELECT col1 * + 31 AS col1 FROM tab2 AS cor0
----
1829
527
961

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

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

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

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

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

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 24 col2 FROM tab0, tab0 AS cor0
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-479
SELECT + col0 DIV - col0 + col2 FROM tab2 AS cor0
----
25
26
37

skipif mysql # not compatible
query I rowsort label-479
SELECT + col0 / - col0 + col2 FROM tab2 AS cor0
----
25
26
37

onlyif mysql # use DIV operator for integer division
query I rowsort label-480
SELECT DISTINCT - col1 * col1 * - col2 + col0 DIV - col0 AS col1 FROM tab2 AS cor0
----
10981
25946
90505

skipif mysql # not compatible
query I rowsort label-480
SELECT DISTINCT - col1 * col1 * - col2 + col0 / - col0 AS col1 FROM tab2 AS cor0
----
10981
25946
90505

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

query I rowsort
SELECT + + 46 + cor0.col2 FROM tab1 AS cor0
----
100
103
142

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - col2 col1 FROM tab2 AS cor0
----
-1444
-676
-729

onlyif mysql # use DIV operator for integer division
query I rowsort label-484
SELECT DISTINCT + - col0 + + col0 DIV + col0 + - col2 AS col1 FROM tab1 AS cor0
----
-120
-175
-56

skipif mysql # not compatible
query I rowsort label-484
SELECT DISTINCT + - col0 + + col0 / + col0 + - col2 AS col1 FROM tab1 AS cor0
----
-120
-175
-56

query I rowsort
SELECT DISTINCT - col2 * - col1 + - col1 + - cor0.col0 AS col1 FROM tab1 AS cor0
----
1155
1375
496

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

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

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

query I rowsort
SELECT ALL 98 * + col2 FROM tab1
----
5292
5586
9408

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

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

query I rowsort
SELECT ALL 30 * - tab0.col2 FROM tab0
----
-2460
-30
-990

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

query I rowsort
SELECT col2 - - 89 FROM tab0 cor0
----
122
171
90

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

skipif mysql # not compatible
query I rowsort label-494
SELECT ALL + - col0 / - col0 - - 10 AS col0 FROM tab0 AS cor0
----
11
11
11

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-496
SELECT DISTINCT + col2 / + col1 col0 FROM tab2
----
0
2

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

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

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

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

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

query IIIIII rowsort
SELECT ALL * FROM tab1, tab2 cor0 WHERE NULL IN ( + cor0.col2 )
----

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

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

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

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

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

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

query I rowsort
SELECT - cor0.col0 - + cor0.col0 FROM tab2 AS cor0
----
-14
-156
-158

query I rowsort
SELECT - col0 * col1 + cor0.col0 * col0 * - col0 FROM tab0 cor0
----
-15888
-46270
-713068

query I rowsort
SELECT ALL + col1 + tab0.col2 * col1 * - col2 FROM tab0
----
-611793
-93568
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f

query I rowsort
SELECT 37 * - cor0.col0 + - col0 * col0 FROM tab2 AS cor0
----
-308
-8970
-9164

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

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

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

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

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

query I rowsort
SELECT + 79 * + col2 FROM tab1
----
4266
4503
7584

query I rowsort
SELECT DISTINCT + cor0.col2 + - tab2.col0 FROM tab2, tab2 AS cor0
----
-40
-41
-51
-52
-53
19
20
31

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

query I rowsort
SELECT - ( col0 ) + 10 FROM tab2
----
-68
-69
3

query I rowsort
SELECT ALL 43 * + col1 FROM tab0
----
3698
3913
4171

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - col0 ) * - ( - 42 ) col0 FROM tab1 AS cor0
----
126
2688
3360

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

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

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

query I rowsort
SELECT DISTINCT - col0 * + 66 AS col2 FROM tab1 AS cor0
----
-198
-4224
-5280

query I rowsort
SELECT - col2 * - cor0.col0 + + 75 FROM tab2 AS cor0
----
2103
264
3077

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-530
SELECT ALL col2 DIV + CAST( - 88 AS SIGNED ) FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-530
SELECT ALL col2 / + CAST ( - 88 AS INTEGER ) FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - col2 * 69 + + col0 AS col2 FROM tab1 cor0
----
-3723
-3869
-6544

query I rowsort
SELECT ALL - + 38 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e571541ae40cb0ddaca16e11f4359507

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

query I rowsort
SELECT - + col0 + col1 * - 20 FROM tab1 AS cor0
----
-264
-340
-523

query I rowsort
SELECT + cor0.col0 * ( 69 ) FROM tab0 AS cor0
----
1656
2415
6141

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-538
SELECT ALL col2 - + 88 DIV + cor0.col0 FROM tab1 AS cor0
----
25
56
95

skipif mysql # not compatible
query I rowsort label-538
SELECT ALL col2 - + 88 / + cor0.col0 FROM tab1 AS cor0
----
25
56
95

query I rowsort
SELECT ALL - col2 + - 80 FROM tab1 cor0
----
-134
-137
-176

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

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

query I rowsort
SELECT ALL col2 * - 97 FROM tab0 AS cor0
----
-3201
-7954
-97

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

query I rowsort
SELECT ALL - ( 50 ) * col1 AS col1 FROM tab0 AS cor0
----
-4300
-4550
-4850

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

query I rowsort
SELECT DISTINCT + ( col2 ) + col0 * ( + 11 ) AS col0 FROM tab2 AS cor0
----
104
884
907

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-548
SELECT DISTINCT 70 + 47 DIV col2 AS col1 FROM tab0 cor0
----
117
70
71

skipif mysql # not compatible
query I rowsort label-548
SELECT DISTINCT 70 + 47 / col2 AS col1 FROM tab0 cor0
----
117
70
71

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-550
SELECT - 33 DIV 81 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-550
SELECT - 33 / 81 FROM tab2 cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-551
SELECT DISTINCT - CAST( col1 AS SIGNED ) * cor0.col0 AS col1 FROM tab0 AS cor0
----
-2064
-3395
-8099

skipif mysql # not compatible
query I rowsort label-551
SELECT DISTINCT - CAST ( col1 AS INTEGER ) * cor0.col0 AS col1 FROM tab0 AS cor0
----
-2064
-3395
-8099

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

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

query I rowsort
SELECT ALL - 18 + 90 * + col0 FROM tab0 AS cor0
----
2142
3132
7992

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 2 + + col2 col0 FROM tab2 AS cor0
----
28
29
40

query I rowsort
SELECT 49 - 98 FROM tab2 cor0
----
-49
-49
-49

query I rowsort
SELECT DISTINCT - 56 * - 87 AS col1 FROM tab2 AS cor0
----
4872

query I rowsort
SELECT - 52 + 14 FROM tab0 AS cor0
----
-38
-38
-38

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

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

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

query I rowsort
SELECT + - col0 * - col0 + - col1 + col1 * col1 * 84 FROM tab1 AS cor0
----
12486
20583
56767

query I rowsort
SELECT DISTINCT - col1 * cor0.col0 + - ( + col1 * + col2 ) FROM tab2 AS cor0
----
-1054
-1989
-6136

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

query I rowsort
SELECT ALL + 65 FROM tab0 AS cor0
----
65
65
65

onlyif mysql # use DIV operator for integer division
query I rowsort label-565
SELECT - col2 + - 34 DIV - col1 AS col1 FROM tab1
----
-53
-54
-94

skipif mysql # not compatible
query I rowsort label-565
SELECT - col2 + - 34 / - col1 AS col1 FROM tab1
----
-53
-54
-94

query I rowsort
SELECT DISTINCT 40 * col0 + + col1 AS col2 FROM tab1 AS cor0
----
146
2570
3213

onlyif mysql # use DIV operator for integer division
query I rowsort label-567
SELECT ALL + 49 * - col0 * - col0 + + col2 DIV cor0.col2 FROM tab0 cor0
----
28225
388130
60026

skipif mysql # not compatible
query I rowsort label-567
SELECT ALL + 49 * - col0 * - col0 + + col2 / cor0.col2 FROM tab0 cor0
----
28225
388130
60026

query I rowsort
SELECT DISTINCT - 90 + + col1 * - col0 FROM tab0 AS cor0
----
-2154
-3485
-8189

onlyif mysql # use DIV operator for integer division
query I rowsort label-569
SELECT col1 DIV col1 - - col1 * col0 AS col2 FROM tab2 AS cor0
----
1344
218
4603

skipif mysql # not compatible
query I rowsort label-569
SELECT col1 / col1 - - col1 * col0 AS col2 FROM tab2 AS cor0
----
1344
218
4603

query I rowsort
SELECT + 94 + + col2 AS col0 FROM tab2 AS cor0
----
120
121
132

query I rowsort
SELECT ALL + + 13 + col1 FROM tab2 AS cor0
----
30
44
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + col1 + + col0 * - 71 col1 FROM tab0 AS cor0
----
1780
360
910

query I rowsort
SELECT - ( 84 ) AS col2 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 02f1688b8610806ca28739b1735f6ae4

query I rowsort
SELECT + 5 + + col0 FROM tab1 AS cor0
----
69
8
85

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

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

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

query I rowsort
SELECT ALL + 96 + col1 * + 12 FROM tab0
----
1128
1188
1260

query I rowsort
SELECT + 30 AS col0 FROM tab2, tab2 AS cor0, tab1 cor1
----
27 values hashing to 6c98840ed134c765d56389f4150075f0

query I rowsort
SELECT + 80 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 92 + + col2 * + col0 col1 FROM tab0 AS cor0
----
127
7390
884

query I rowsort
SELECT 87 FROM tab1, tab0 cor0, tab2 cor1, tab2 AS cor2
----
81 values hashing to 969f31ae779866644763e8a07f1ec501

query I rowsort
SELECT - cor0.col0 * 92 AS col0 FROM tab2 AS cor0
----
-644
-7176
-7268

query I rowsort
SELECT DISTINCT ( - cor0.col1 * - cor0.col1 ) FROM tab2 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab2 AS cor2
----
289
3481
961

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

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

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

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

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

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

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

query I rowsort
SELECT col1 + + col0 * col1 * - col0 AS col2 FROM tab1 cor0
----
-208
-40950
-83187

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

query I rowsort
SELECT - col1 * + col1 - col1 FROM tab0
----
-7482
-8372
-9506

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

query I rowsort
SELECT - - ( 71 ) + col0 * + 18 * col1 + + col1 AS col1 FROM tab2 AS cor0
----
24262
4008
82966

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 39 * cor0.col1 - + col1 * - ( 77 + col0 ) col2 FROM tab0 AS cor0
----
12040
14647
18655

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

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

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

query I rowsort
SELECT DISTINCT - 64 + + 67 * - col1 AS col1 FROM tab1
----
-1806
-734
-935

onlyif mysql # use DIV operator for integer division
query I rowsort label-599
SELECT ALL - 35 * col1 + + col1 DIV - 70 AS col2 FROM tab1
----
-350
-455
-910

skipif mysql # not compatible
query I rowsort label-599
SELECT ALL - 35 * col1 + + col1 / - 70 AS col2 FROM tab1
----
-350
-455
-910

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + tab2.col1 col1 FROM tab2
----
118
34
62

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

query I rowsort
SELECT DISTINCT cor0.col2 + + 81 - + col2 * - col0 AS col2 FROM tab0 AS cor0
----
117
7461
906

query I rowsort
SELECT 37 * - ( - col0 ) - - ( - cor0.col2 + - cor0.col1 ) * - col0 FROM tab2 AS cor0
----
665
7268
9516

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 58 col1 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 9ee363c6ac19cfdb8a50c7dfd5cc2b8a

query I rowsort
SELECT + + col1 * col1 * 41 AS col1 FROM tab0 AS cor0
----
303236
339521
385769

query I rowsort
SELECT col1 + 24 AS col1 FROM tab1 cor0
----
34
37
50

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

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

query I rowsort
SELECT ALL + col1 * ( + col0 ) * + col1 AS col2 FROM tab1 AS cor0
----
13520
2028
6400

onlyif mysql # use DIV operator for integer division
query I rowsort label-610
SELECT - - col0 + ( col0 ) DIV + col0 FROM tab0 AS cor0
----
25
36
90

skipif mysql # not compatible
query I rowsort label-610
SELECT - - col0 + ( col0 ) / + col0 FROM tab0 AS cor0
----
25
36
90

query I rowsort
SELECT col1 * + 31 AS col1 FROM tab1 AS cor0
----
310
403
806

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-615
SELECT ALL + col0 * col2 DIV col1 AS col2 FROM tab1 AS cor0
----
364
590
6

skipif mysql # not compatible
query I rowsort label-615
SELECT ALL + col0 * col2 / col1 AS col2 FROM tab1 AS cor0
----
364
590
6

query I rowsort
SELECT DISTINCT + col2 * + col0 * - 92 + - col0 FROM tab0 AS cor0
----
-3255
-671505
-72888

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

query I rowsort
SELECT DISTINCT + col0 * + 75 * col0 + + col0 FROM tab0 AS cor0
----
43224
594164
91910

query I rowsort
SELECT DISTINCT col1 * 84 + + col2 AS col0 FROM tab1 AS cor0
----
1188
2238
897

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

query I rowsort
SELECT ALL - - 97 + - col0 * - cor0.col0 FROM tab2 AS cor0
----
146
6181
6338

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + 66 * col0 col0 FROM tab0 AS cor0
----
1498
2213
5783

query I rowsort
SELECT DISTINCT ( ( - col0 ) ) * + ( - 31 ) + + col2 FROM tab2 AS cor0
----
244
2444
2487

query I rowsort
SELECT 71 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0

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

query I rowsort
SELECT ALL ( ( - col1 ) ) * + col2 * ( - col1 ) FROM tab1
----
16224
36504
5700

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

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

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

skipif mysql # not compatible
query I rowsort label-631
SELECT ALL - + col2 + - col0 * CAST ( + col2 AS INTEGER ) AS col0 FROM tab0 cor0
----
-36
-7380
-825

query I rowsort
SELECT ALL + - 90 + - col2 * 45 AS col2 FROM tab1 AS cor0
----
-2520
-2655
-4410

onlyif mysql # use DIV operator for integer division
query I rowsort label-633
SELECT DISTINCT col1 * col1 - col0 DIV - 51 AS col2 FROM tab1 AS cor0
----
101
170
676

skipif mysql # not compatible
query I rowsort label-633
SELECT DISTINCT col1 * col1 - col0 / - 51 AS col2 FROM tab1 AS cor0
----
101
170
676

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

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

query I rowsort
SELECT - ( - col1 * - col1 ) + + tab0.col1 + col1 FROM tab0
----
-7224
-8099
-9215

query I rowsort
SELECT DISTINCT 91 + + col1 + col2 * ( - col0 + + col0 * - col1 ) AS col1 FROM tab0
----
-3242
-671234
-68727

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

query I rowsort
SELECT DISTINCT + col2 * col0 * col1 + + ( col1 ) FROM tab1 AS cor0
----
36490
4238
99853

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-641
SELECT - 20 DIV + col2 + col0 * cor0.col0 FROM tab1 AS cor0
----
4096
6400
9

skipif mysql # not compatible
query I rowsort label-641
SELECT - 20 / + col2 + col0 * cor0.col0 FROM tab1 AS cor0
----
4096
6400
9

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

query I rowsort
SELECT DISTINCT 24 + + col0 FROM tab1 AS cor0
----
104
27
88

query I rowsort
SELECT + 68 + - col2 * - col2 AS col2 FROM tab2 AS cor0
----
1512
744
797

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

query I rowsort
SELECT - cor0.col1 + + 15 AS col0 FROM tab1 AS cor0
----
-11
2
5

onlyif mysql # use DIV operator for integer division
query I rowsort label-647
SELECT ALL - col1 * tab0.col2 - + 89 DIV col0 FROM tab0
----
-2841
-7463
-99

skipif mysql # not compatible
query I rowsort label-647
SELECT ALL - col1 * tab0.col2 - + 89 / col0 FROM tab0
----
-2841
-7463
-99

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

query I rowsort
SELECT - 99 - - 14 FROM tab2 AS cor0
----
-85
-85
-85

query I rowsort
SELECT ALL + - 18 + + ( col0 ) + cor0.col2 AS col0 FROM tab1 cor0
----
103
158
39

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-651
SELECT DISTINCT - col0 * col1 + col1 * - CAST( 28 AS SIGNED ) FROM tab2 AS cor0
----
-1085
-1819
-6254

skipif mysql # not compatible
query I rowsort label-651
SELECT DISTINCT - col0 * col1 + col1 * - CAST ( 28 AS INTEGER ) FROM tab2 AS cor0
----
-1085
-1819
-6254

query I rowsort
SELECT DISTINCT - - 88 + ( col2 ) FROM tab0 AS cor0
----
121
170
89

query I rowsort
SELECT col0 * 37 * + cor0.col2 + 33 FROM tab1 cor0
----
135009
284193
6027

query I rowsort
SELECT DISTINCT col0 + 66 AS col1 FROM tab2
----
144
145
73

onlyif mysql # use DIV operator for integer division
query I rowsort label-655
SELECT col1 DIV col0 + + col1 AS col0 FROM tab1
----
10
13
34

skipif mysql # not compatible
query I rowsort label-655
SELECT col1 / col0 + + col1 AS col0 FROM tab1
----
10
13
34

query I rowsort
SELECT ALL - tab1.col0 + ( 11 ) AS col2 FROM tab1
----
-53
-69
8

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

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

query I rowsort
SELECT DISTINCT + - col1 + col2 + col2 AS col0 FROM tab2 AS cor0
----
-7
23
59

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

query I rowsort
SELECT ALL + - cor0.col0 + col2 * col2 * 97 AS col0 FROM tab1 AS cor0
----
282849
315089
893872

query I rowsort
SELECT ALL 14 - col0 FROM tab2 AS cor0
----
-64
-65
7

query I rowsort
SELECT ALL - 23 * cor0.col1 FROM tab0 AS cor0
----
-1978
-2093
-2231

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

skipif mysql # not compatible
query I rowsort label-664
SELECT - - 47 / col0 + + col0 AS col2 FROM tab1 AS cor0
----
18
64
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-665
SELECT DISTINCT col1 + + ( col0 + + 3 ) DIV cor0.col0 FROM tab1 AS cor0
----
11
14
28

skipif mysql # not compatible
query I rowsort label-665
SELECT DISTINCT col1 + + ( col0 + + 3 ) / cor0.col0 FROM tab1 AS cor0
----
11
14
28

query I rowsort
SELECT ALL - + col0 - 7 AS col0 FROM tab1 AS cor0
----
-10
-71
-87

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 41 * col1 * col0 col2 FROM tab1
----
26240
3198
42640

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-671
SELECT - col0 + - col0 * 27 DIV 22 AS col1 FROM tab0 AS cor0
----
-198
-53
-77

skipif mysql # not compatible
query I rowsort label-671
SELECT - col0 + - col0 * 27 / 22 AS col1 FROM tab0 AS cor0
----
-198
-53
-77

query I rowsort
SELECT ALL 19 + col1 AS col1 FROM tab2 AS cor0
----
36
50
78

query I rowsort
SELECT + 65 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805

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

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

query I rowsort
SELECT DISTINCT + col1 + + 54 FROM tab2
----
113
71
85

onlyif mysql # use DIV operator for integer division
query I rowsort label-677
SELECT ALL col0 DIV 25 AS col0 FROM tab2 AS cor0
----
0
3
3

skipif mysql # not compatible
query I rowsort label-677
SELECT ALL col0 / 25 AS col0 FROM tab2 AS cor0
----
0
3
3

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

query I rowsort
SELECT ALL + col0 * col0 * - col0 FROM tab0 AS cor0
----
-13824
-42875
-704969

query I rowsort
SELECT ALL + - col2 + - 9 AS col2 FROM tab1 AS cor0
----
-105
-63
-66

query I rowsort
SELECT - 27 FROM tab2, tab1 AS cor0, tab0 cor1
----
27 values hashing to 0259a67676b131a4843853be4811b775

query I rowsort
SELECT DISTINCT - cor0.col2 + + 77 * - 97 AS col2 FROM tab1 AS cor0
----
-7523
-7526
-7565

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

query I rowsort
SELECT + - cor0.col1 * 19 + col0 AS col1 FROM tab1 AS cor0
----
-126
-167
-491

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

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

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

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

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

query I rowsort
SELECT ALL - - col0 + - 89 FROM tab0 AS cor0
----
-54
-65
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 + + col2 * - col1 * + col2 col0 FROM tab1 cor0
----
-119795
-32480
-75790

query I rowsort
SELECT - col0 - 95 FROM tab0 AS cor0
----
-119
-130
-184

query I rowsort
SELECT + + col1 - - 31 AS col1 FROM tab2 cor0
----
48
62
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - 80 + - 8 col2 FROM tab0
----
1912
2792
7112

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

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

query I rowsort
SELECT ALL - + col1 * - cor0.col1 + - col1 - - col2 AS col1 FROM tab1 AS cor0
----
147
252
704

query I rowsort
SELECT DISTINCT + + 76 * + col2 + col0 FROM tab2 AS cor0
----
2054
2059
2967

query I rowsort
SELECT DISTINCT - 67 * col1 FROM tab2 AS cor0
----
-1139
-2077
-3953

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

query I rowsort
SELECT ALL 9 + - 49 AS col0 FROM tab1
----
-40
-40
-40

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * + col2 col2 FROM tab2
----
-1444
-676
-729

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col2 * col0 col0 FROM tab0
----
-3395
-664118
-68112

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-705
SELECT DISTINCT + ( + col1 ) DIV + 20 FROM tab0 cor0
----
4

skipif mysql # not compatible
query I rowsort label-705
SELECT DISTINCT + ( + col1 ) / + 20 FROM tab0 cor0
----
4

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

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

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

query I rowsort
SELECT DISTINCT ( + col0 ) + cor0.col0 * + cor0.col0 * col0 AS col1 FROM tab1 AS cor0
----
262208
30
512080

query I rowsort
SELECT + - 84 + + 49 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to c12e8bdd687c9040a5600dab3b6adf5b

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 col0 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + 28 + - 49 col2 FROM tab2 AS cor0
----
1603
427
819

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

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

query I rowsort
SELECT + + col0 * - 47 FROM tab2 AS cor0
----
-329
-3666
-3713

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

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

skipif mysql # not compatible
query I rowsort label-720
SELECT + - CAST ( 99 AS INTEGER ) + cor0.col1 FROM tab1 AS cor0
----
-73
-86
-89

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

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

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

query I rowsort
SELECT - ( 98 ) + + col1 * 12 AS col2 FROM tab0 AS cor0
----
1066
934
994

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

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

query I rowsort
SELECT ALL + 29 * tab0.col0 + cor0.col2 + 30 AS col0 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to b39c754ea62a90bf70e7b93c282aced0

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

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

query I rowsort
SELECT ( ( + col2 ) ) + 56 FROM tab2 cor0
----
82
83
94

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

query I rowsort
SELECT ( - tab1.col1 ) AS col0 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6

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

query I rowsort
SELECT ( + col2 ) + - col0 FROM tab0
----
-34
-7
9

query I rowsort
SELECT + col2 + + 36 * + col0 AS col1 FROM tab2 cor0
----
279
2834
2882

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

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

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

skipif mysql # not compatible
query I rowsort label-736
SELECT ALL - col2 * col1 * + cor0.col2 + col2 * col1 + CAST ( col1 * cor0.col1 AS INTEGER ) AS col0 FROM tab0 cor0
----
-596141
-83420
9409

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

query I rowsort
SELECT ALL - 99 * col2 FROM tab2 AS cor0
----
-2574
-2673
-3762

query I rowsort
SELECT DISTINCT - + 99 + - cor0.col0 * 51 FROM tab1 AS cor0
----
-252
-3363
-4179

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 78 * col1 * cor0.col1 col0 FROM tab2 AS cor0
----
22542
271518
74958

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

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

query I rowsort
SELECT DISTINCT ( col1 * + col0 ) + tab1.col2 * col2 FROM tab1
----
10256
2994
3889

query I rowsort
SELECT DISTINCT col0 * + col2 * - col2 + + col1 * col1 + col1 AS col2 FROM tab1
----
-207826
-737098
-8046

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - 39 ) col0 FROM tab0
----
-39
-39
-39

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

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

skipif mysql # not compatible
query I rowsort label-746
SELECT - CAST ( NULL AS INTEGER ) / 20 - col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - 51 + - ( + col1 ) FROM tab2
----
-110
-68
-82

query I rowsort
SELECT ALL + cor0.col0 - 89 AS col2 FROM tab1 AS cor0
----
-25
-86
-9

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

query I rowsort
SELECT col0 * 19 AS col0 FROM tab1 cor0
----
1216
1520
57

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

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

query I rowsort
SELECT - - col0 + col1 * + 59 AS col0 FROM tab0 AS cor0
----
5098
5458
5758

query I rowsort
SELECT DISTINCT + col2 * - 79 FROM tab2 AS cor0
----
-2054
-2133
-3002

query I rowsort
SELECT ALL - col0 * + 20 AS col0 FROM tab0 AS cor0
----
-1780
-480
-700

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

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

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

query I rowsort
SELECT DISTINCT col0 * - 80 + - 42 * col1 AS col2 FROM tab1 AS cor0
----
-1332
-5540
-6946

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

query I rowsort
SELECT ALL - - col1 + + 25 + 26 * cor0.col1 * + col0 AS col0 FROM tab2 AS cor0
----
119736
34960
5698

query I rowsort
SELECT - + col0 + + 65 AS col2 FROM tab1 AS cor0
----
-15
1
62

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

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

query I rowsort
SELECT DISTINCT + col1 * - col1 + - 89 * + col0 FROM tab2 AS cor0
----
-10423
-1584
-7320

query I rowsort
SELECT col0 + col0 * - col0 FROM tab0 AS cor0
----
-1190
-552
-7832

query I rowsort
SELECT DISTINCT col1 + 43 * ( + col1 ) * col2 FROM tab1
----
24520
53677
60398

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

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

skipif mysql # not compatible
query I rowsort label-766
SELECT ALL col1 / cor0.col1 FROM tab2 cor0
----
1
1
1

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

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

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

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

query I rowsort
SELECT ALL - col1 * + col1 + col2 * col0 - + col2 FROM tab0
----
-1065
-6637
-9375

query I rowsort
SELECT ALL col2 * col0 - + col2 AS col2 FROM tab1 WHERE NOT - col2 * col2 - col0 BETWEEN col0 * col2 + col2 AND NULL
----
108
3591
7584

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-774
SELECT - col1 DIV - col1 + col0 AS col1 FROM tab2
----
79
8
80

skipif mysql # not compatible
query I rowsort label-774
SELECT - col1 / - col1 + col0 AS col1 FROM tab2
----
79
8
80

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-776
SELECT col2 * col1 DIV tab0.col0 AS col0 FROM tab0
----
118
2
83

skipif mysql # not compatible
query I rowsort label-776
SELECT col2 * col1 / tab0.col0 AS col0 FROM tab0
----
118
2
83

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

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

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

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

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

query I rowsort
SELECT DISTINCT col1 * + tab0.col1 + col0 - + col0 * col1 AS col0 FROM tab0
----
271
5356
6049

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col0 / + col2 = NULL
----

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

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

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-787
SELECT ALL + - cor0.col0 * col0 DIV + col1 - col2 * + col0 AS col1 FROM tab1 AS cor0
----
-162
-4057
-8172

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + col0 + col0 col0 FROM tab1
----
1120
704
81

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - col2 * - col1 * + col1 col0 FROM tab0
----
244154
679133
9506

query I rowsort
SELECT col1 + tab0.col1 * + col0 * + col1 AS col2 FROM tab0
----
177590
329412
737100

query I rowsort
SELECT DISTINCT - col2 + - tab0.col0 * col0 * - col0 AS col1 FROM tab0
----
13791
42874
704887

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

query I rowsort
SELECT + col0 * + tab1.col1 * tab1.col0 + col2 * + col1 FROM tab1
----
1638
41530
84448

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

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

query I rowsort
SELECT DISTINCT col0 + - col1 + col0 FROM tab1
----
-20
118
147

onlyif mysql # use DIV operator for integer division
query I rowsort label-799
SELECT DISTINCT - col2 DIV col1 + col2 col0 FROM tab1
----
52
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-799
SELECT DISTINCT - col2 / col1 + col2 col0 FROM tab1
----
52
89

query I rowsort
SELECT col2 * col2 FROM tab0 WHERE NOT ( NULL ) <> NULL
----

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

query I rowsort
SELECT ALL + - col0 * col0 + col2 AS col2 FROM tab1 AS cor0
----
-4039
-6304
45

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

query I rowsort
SELECT tab0.col2 FROM tab2 cor0 CROSS JOIN tab0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

query I rowsort
SELECT DISTINCT + 66 * tab0.col2 FROM tab0
----
2178
5412
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 78 * col2 col2 FROM tab2
----
2028
2106
2964

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + 3 col1 FROM tab2 AS cor0
----
177
51
93

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

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

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

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

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

query I rowsort
SELECT + col0 * + ( - 73 ) FROM tab2 AS cor0
----
-511
-5694
-5767

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

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

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

query I rowsort
SELECT ALL + col2 * col2 + + col1 * + tab0.col1 * - col2 FROM tab0
----
-242979
-672318
-9408

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

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

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 * col1 <= ( - col1 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

query I rowsort
SELECT - col0 * - tab0.col1 - col2 * + tab0.col1 * + col1 FROM tab0
----
-242004
-6014
-670943

onlyif mysql # use DIV operator for integer division
query I rowsort label-822
SELECT + col0 DIV col1 + - col2 DIV col0 FROM tab2
----
-3
1
4

skipif mysql # not compatible
query I rowsort label-822
SELECT + col0 / col1 + - col2 / col0 FROM tab2
----
-3
1
4

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

query I rowsort
SELECT ALL + col0 + tab1.col1 FROM tab1 WHERE - col1 - + col0 BETWEEN - col1 AND NULL
----

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-826
SELECT DISTINCT - col1 - + col1 DIV col1 AS col1 FROM tab0
----
-87
-92
-98

skipif mysql # not compatible
query I rowsort label-826
SELECT DISTINCT - col1 - + col1 / col1 AS col1 FROM tab0
----
-87
-92
-98

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

query I rowsort
SELECT DISTINCT col2 * col0 * + tab0.col0 + col1 AS col1 FROM tab0
----
1322
19094
649613

query I rowsort
SELECT - col1 AS col2 FROM tab1 WHERE + col0 <> ( NULL )
----

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

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

query I rowsort
SELECT ALL 9 * - col1 * col1 FROM tab2
----
-2601
-31329
-8649

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - col0 ) * cor0.col0 col0 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT DISTINCT - - 43 * col1 * ( col0 ) FROM tab2 AS cor0
----
197886
57749
9331

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

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

query I rowsort
SELECT ALL - - 43 FROM tab1, tab2 AS cor0
----
9 values hashing to 199105619049271147956de52e7f5ed4

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + 99 col1 FROM tab0 cor0
----
185
190
196

query I rowsort
SELECT - col1 * + 52 + - col1 AS col2 FROM tab2 AS cor0
----
-1643
-3127
-901

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

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

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

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

query I rowsort
SELECT ALL + cor0.col0 * col2 + col1 + - col2 AS col2 FROM tab1 AS cor0
----
134
3601
7597

query I rowsort
SELECT ALL + col1 * col0 + + col2 - - cor0.col0 AS col1 FROM tab2 AS cor0
----
1460
251
4706

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

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

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

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

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

query I rowsort
SELECT DISTINCT ( - 90 ) * col1 AS col1 FROM tab1 AS cor0
----
-1170
-2340
-900

query I rowsort
SELECT - + col0 * 7 AS col1 FROM tab0 AS cor0
----
-168
-245
-623

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

query I rowsort
SELECT 30 * - col2 AS col0 FROM tab1 AS cor0
----
-1620
-1710
-2880

query I rowsort
SELECT DISTINCT col2 + + 10 FROM tab2
----
36
37
48

query I rowsort
SELECT 65 * col0 + + 21 AS col1 FROM tab0 AS cor0
----
1581
2296
5806

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

query I rowsort
SELECT DISTINCT col1 * - col0 * + ( 71 ) - col0 FROM tab2 AS cor0
----
-15414
-326820
-95432

query I rowsort
SELECT ALL cor0.col2 FROM tab2, tab1 AS cor0 CROSS JOIN tab1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

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

skipif mysql # not compatible
query I rowsort label-861
SELECT CAST ( + col1 AS INTEGER ) * col2 AS col0 FROM tab2
----
1534
646
837

query I rowsort
SELECT + cor0.col2 + ( 80 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 6d7ecf3194faeba5654a856a020b91bc

query I rowsort
SELECT col2 * col0 + 99 FROM tab2
----
2127
288
3101

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

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

query I rowsort
SELECT DISTINCT 38 + + col1 AS col1 FROM tab0
----
124
129
135

onlyif mysql # use DIV operator for integer division
query I rowsort label-867
SELECT - col0 * col0 - 2 DIV col2 AS col0 FROM tab0
----
-1227
-576
-7921

skipif mysql # not compatible
query I rowsort label-867
SELECT - col0 * col0 - 2 / col2 AS col0 FROM tab0
----
-1227
-576
-7921

query I rowsort
SELECT - col1 + + col2 * - 57 + col1 AS col1 FROM tab2
----
-1482
-1539
-2166

query I rowsort
SELECT ALL - 85 + + tab0.col1 * tab0.col2 AS col0 FROM tab0
----
12
2753
7377

query I rowsort
SELECT DISTINCT 23 - tab0.col0 AS col1 FROM tab0
----
-1
-12
-66

query I rowsort
SELECT - 87 * col1 + col1 * tab1.col2 FROM tab1
----
-300
-858
117

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

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

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

query I rowsort
SELECT - cor0.col2 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 * + cor0.col2 col1 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT - tab1.col2 * + col0 + - col2 + - col2 FROM tab1
----
-270
-3762
-7872

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * - col1 + col1 col2 FROM tab0 AS cor0
----
-7310
-8190
-9312

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - col0 * + col1 col0 FROM tab0
----
-2088
-3430
-8188

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

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

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

query I rowsort
SELECT ALL ( col1 + + col0 ) * - tab0.col1 FROM tab0
----
-12804
-16380
-9460

query I rowsort
SELECT ALL - 7 AS col2 FROM tab1
----
-7
-7
-7

query I rowsort
SELECT ALL 96 * col1 FROM tab0
----
8256
8736
9312

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

query I rowsort
SELECT ALL + + 18 + cor0.col0 FROM tab1 AS cor0
----
21
82
98

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col0 ) + - col1 col1 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT + - 28 * col2 + - col2 * - col1 + col1 AS col0 FROM tab0 AS cor0
----
166
2000
5257

query I rowsort
SELECT 71 * + cor0.col0 AS col0 FROM tab1 AS cor0
----
213
4544
5680

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

query I rowsort
SELECT DISTINCT + + 9 * col2 AS col2 FROM tab1 AS cor0
----
486
513
864

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-893
SELECT - col1 + - cor0.col2 / col2 col0 FROM tab0 AS cor0
----
-87
-92
-98

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-895
SELECT + 83 - + col2 DIV + col1 FROM tab0
----
83
83
83

skipif mysql # not compatible
query I rowsort label-895
SELECT + 83 - + col2 / + col1 FROM tab0
----
83
83
83

query I rowsort
SELECT ALL 55 * col2 AS col1 FROM tab1
----
2970
3135
5280

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

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

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

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

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

query I rowsort
SELECT 56 + col0 * cor0.col0 * cor0.col2 AS col1 FROM tab1 AS cor0
----
233528
542
614456

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

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

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

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

skipif mysql # not compatible
query I rowsort label-904
SELECT ALL - CAST ( + 89 AS INTEGER ) FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to c36e597b7bc5727536f5bb580e6cebbc

query I rowsort
SELECT DISTINCT 39 AS col0 FROM tab1, tab1 AS cor0
----
39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 col2 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

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

skipif mysql # not compatible
query I rowsort label-907
SELECT ALL ( - ( col1 / ( col2 ) / - col0 ) ) * + col2 * ( - col1 ) AS col0 FROM tab0 cor0
----
-194
0
0

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

query I rowsort
SELECT 54 * 25 + col1 AS col0 FROM tab0 cor0
----
1436
1441
1447

query I rowsort
SELECT + 53 * 81 FROM tab0 AS cor0
----
4293
4293
4293

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

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

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

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col2 * - col0 + col0 col2 FROM tab1
----
-159
-3584
-7600

query I rowsort
SELECT - 6 + + tab0.col1 FROM tab0
----
80
85
91

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

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

query I rowsort
SELECT - col1 + 5 * col0 AS col0 FROM tab0 AS cor0
----
34
354
78

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-924
SELECT + cor0.col0 DIV cor0.col1 + + col1 FROM tab2 AS cor0
----
21
31
60

skipif mysql # not compatible
query I rowsort label-924
SELECT + cor0.col0 / cor0.col1 + + col1 FROM tab2 AS cor0
----
21
31
60

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

query I rowsort
SELECT ALL + + col0 * col2 - - col0 * + col2 AS col2 FROM tab2 AS cor0
----
378
4056
6004

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

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

query I rowsort
SELECT ALL - + col0 + + ( - 42 ) FROM tab2 cor0
----
-120
-121
-49

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-930
SELECT ALL - + col0 / + ( + col2 ) + col0 col0 FROM tab0 AS cor0
----
0
24
88

query I rowsort
SELECT ALL - col2 + + 69 FROM tab2 AS cor0
----
31
42
43

query I rowsort
SELECT + col1 * col2 + col1 * col2 AS col2 FROM tab0 AS cor0
----
14924
194
5676

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

query I rowsort
SELECT ALL - col2 - - col2 * col1 FROM tab0
----
2805
7380
96

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

query I rowsort
SELECT ALL - + col2 * col1 + 82 AS col1 FROM tab0 AS cor0
----
-15
-2756
-7380

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + cor0.col2 col1 FROM tab0 AS cor0
----
119
173
98

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

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

query I rowsort
SELECT ALL - - col1 * - col1 * + ( - col2 ) FROM tab0 cor0
----
244068
679042
9409

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

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

query I rowsort
SELECT DISTINCT - - cor0.col1 * 64 FROM tab1 AS cor0
----
1664
640
832

query I rowsort
SELECT DISTINCT + 36 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab2 AS cor2
----
36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 71 col1 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 95a6ff35b7b8f00868fb58bcaa32d0c2

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

query I rowsort
SELECT ALL + - 85 + 58 FROM tab1 AS cor0
----
-27
-27
-27

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT ALL + ( + 31 ) AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540

query I rowsort
SELECT + col1 * + 14 FROM tab2
----
238
434
826

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

query I rowsort
SELECT + col2 * - 79 * col0 FROM tab0
----
-2765
-576542
-62568

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

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

query I rowsort
SELECT ALL - 11 * - col2 * - col2 + - 90 + - col2 FROM tab0 AS cor0
----
-102
-12102
-74136

query I rowsort
SELECT 14 + - ( col1 ) * col0 AS col2 FROM tab1 AS cor0
----
-1026
-626
-64

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

query I rowsort
SELECT - - col2 * - col1 - 45 FROM tab2 AS cor0
----
-1579
-691
-882

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * 86 col2 FROM tab2 cor0
----
1462
2666
5074

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-965
SELECT ALL - CAST( + cor0.col2 AS SIGNED ) FROM tab2, tab1 AS cor0
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba

skipif mysql # not compatible
query I rowsort label-965
SELECT ALL - CAST ( + cor0.col2 AS INTEGER ) FROM tab2, tab1 AS cor0
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba

query I rowsort
SELECT - + col1 * + col1 - + col0 FROM tab0 AS cor0
----
-7420
-8370
-9444

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

query I rowsort
SELECT - col2 * col2 + col0 * + cor0.col2 FROM tab1 AS cor0
----
-1536
-2754
399

onlyif mysql # use DIV operator for integer division
query I rowsort label-969
SELECT col1 * col0 + - ( col2 ) * col1 DIV + 50 FROM tab0 AS cor0
----
2008
3394
7950

skipif mysql # not compatible
query I rowsort label-969
SELECT col1 * col0 + - ( col2 ) * col1 / + 50 FROM tab0 AS cor0
----
2008
3394
7950

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 68 * + col1 col2 FROM tab0 AS cor0
----
5848
6188
6596

query I rowsort
SELECT - cor0.col1 + col2 + cor0.col0 * - col0 FROM tab1 AS cor0
----
-4049
-6317
19

query I rowsort
SELECT ALL - 34 AS col1 FROM tab0 cor0
----
-34
-34
-34

query I rowsort
SELECT ALL + col0 * - col2 + + ( - 10 ) * col2 AS col0 FROM tab2 AS cor0
----
-2288
-3382
-459

query I rowsort
SELECT ALL - cor0.col0 * - col2 + - 35 AS col0 FROM tab1 AS cor0
----
127
3613
7645

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - col0 col1 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT + 88 * col1 + col2 AS col1 FROM tab1 AS cor0
----
1240
2342
937

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

query I rowsort
SELECT col1 * col2 + + 40 * ( col0 ) - + col2 FROM tab1 cor0
----
1470
3073
4352

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

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

query I rowsort
SELECT + col1 * + 32 * ( col1 ) FROM tab2 AS cor0
----
111392
30752
9248

query I rowsort
SELECT 76 * col1 FROM tab1
----
1976
760
988

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-983
SELECT - + CAST( + col2 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-983
SELECT - + CAST ( + col2 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-1
-33
-82

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 30 * 15 col0 FROM tab2, tab2 AS cor0, tab0 AS cor1, tab0 cor2
----
81 values hashing to 472dbd33250a0bc9dc4c36bba7d91bb2

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-988
SELECT tab2.col2 DIV 95 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-988
SELECT tab2.col2 / 95 AS col0 FROM tab2
----
0
0
0

query I rowsort
SELECT + - cor0.col0 * col0 + 23 * + 11 FROM tab0 AS cor0
----
-323
-7668
-972

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

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

query I rowsort
SELECT - 18 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 09afafec657a5e9f082beb6a16ec85de

query I rowsort
SELECT DISTINCT - 41 * + 11 * col2 + - ( - col1 ) - col2 FROM tab1
----
-24382
-25754
-43379

query I rowsort
SELECT ALL - col0 * + ( - col2 * tab2.col1 + tab2.col2 ) AS col1 FROM tab2
----
117624
48032
5670

query I rowsort
SELECT 26 FROM tab1, tab2, tab0 AS cor0, tab0 AS cor1
----
81 values hashing to 8b6a624eb92fb019d9664318e519f062

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-998
SELECT DISTINCT col1 * col0 + col0 DIV - col1 FROM tab2 AS cor0
----
1339
217
4601

skipif mysql # not compatible
query I rowsort label-998
SELECT DISTINCT col1 * col0 + col0 / - col1 FROM tab2 AS cor0
----
1339
217
4601

onlyif mysql # use DIV operator for integer division
query I rowsort label-999
SELECT - 20 - + cor0.col2 DIV 93 FROM tab2 AS cor0
----
-20
-20
-20

skipif mysql # not compatible
query I rowsort label-999
SELECT - 20 - + cor0.col2 / 93 FROM tab2 AS cor0
----
-20
-20
-20

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

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

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1003
SELECT ALL col1 + col1 * CAST( + col1 AS SIGNED ) FROM tab0
----
7482
8372
9506

skipif mysql # not compatible
query I rowsort label-1003
SELECT ALL col1 + col1 * CAST ( + col1 AS INTEGER ) FROM tab0
----
7482
8372
9506

query I rowsort
SELECT DISTINCT 63 + + col0 FROM tab1
----
127
143
66

query I rowsort
SELECT 30 + tab2.col2 + col1 * + 59 * col1 FROM tab2
----
17119
205435
56756

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

query I rowsort
SELECT + - cor0.col1 * + col2 - - cor0.col1 * + col1 * col1 AS col2 FROM tab1 cor0
----
16172
430
949

query I rowsort
SELECT DISTINCT - col2 + col0 * cor0.col2 * 55 + col1 FROM tab0 AS cor0
----
2021
401399
43613

query I rowsort
SELECT ALL col1 * + col2 + - 4 FROM tab0 cor0
----
2834
7458
93

query I rowsort
SELECT + 80 + tab2.col2 + 84 AS col2 FROM tab2
----
190
191
202

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 - + ( col0 * tab0.col1 ) col2 FROM tab0
----
-2150
-3492
-8190

onlyif mysql # use DIV operator for integer division
query I rowsort label-1012
SELECT col2 DIV 29 - - tab1.col1 FROM tab1
----
11
16
27

skipif mysql # not compatible
query I rowsort label-1012
SELECT col2 / 29 - - tab1.col1 FROM tab1
----
11
16
27

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

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

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

query I rowsort
SELECT DISTINCT col2 + + 71 AS col0 FROM tab0
----
104
153
72

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

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

query I rowsort
SELECT + + col1 * - col0 + 97 FROM tab0 AS cor0
----
-1967
-3298
-8002

query I rowsort
SELECT - 41 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 4ba0c102091f9cbc9fe9439b04584e70

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

query I rowsort
SELECT ALL 18 + - 20 AS col0 FROM tab0, tab1 cor0
----
9 values hashing to ec11209ab257030053484fc13a1f6d17

query I rowsort
SELECT DISTINCT + 95 * cor0.col0 FROM tab2, tab0 AS cor0
----
2280
3325
8455

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

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

query I rowsort
SELECT ALL - + cor0.col2 * - 40 AS col2 FROM tab1 AS cor0
----
2160
2280
3840

query I rowsort
SELECT DISTINCT + 91 - + col0 * + col1 FROM tab2 AS cor0
----
-1252
-126
-4511

query I rowsort
SELECT ALL - 92 * col0 FROM tab2 cor0
----
-644
-7176
-7268

query I rowsort
SELECT ALL + ( - cor0.col0 ) + cor0.col2 + - ( + col1 ) * + col0 FROM tab0 AS cor0
----
-2055
-3429
-8106

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

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

query I rowsort
SELECT ALL + ( 44 ) * + col1 FROM tab1 AS cor0
----
1144
440
572

query I rowsort
SELECT DISTINCT col2 + 9 * col2 * - col0 FROM tab1 AS cor0
----
-1404
-32775
-69024

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 89 * col2 col0 FROM tab1 AS cor0
----
4806
5073
8544

query I rowsort
SELECT ALL + + 49 * col2 * + col1 + col1 AS col2 FROM tab1 AS cor0
----
27940
61165
68822

query I rowsort
SELECT ALL + + 97 * col1 - + cor0.col0 FROM tab1 AS cor0
----
1181
2519
906

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

query I rowsort
SELECT - 43 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to ab0c314d2b589ccedb9a875beeb1f86a

query I rowsort
SELECT col1 * - cor0.col1 FROM tab0 cor0
----
-7396
-8281
-9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-1039
SELECT ALL - col2 DIV - col2 + 83 * - 9 AS col0 FROM tab0
----
-746
-746
-746

skipif mysql # not compatible
query I rowsort label-1039
SELECT ALL - col2 / - col2 + 83 * - 9 AS col0 FROM tab0
----
-746
-746
-746

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

query I rowsort
SELECT + 14 AS col2 FROM tab2, tab1 cor0, tab1 AS cor1
----
27 values hashing to 409c1790b702540dd9dc067c1965b7c0

query I rowsort
SELECT 12 AS col1 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 702478c53caf2f7ebb9fff96d800f5a6

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

query I rowsort
SELECT ALL col2 + - 42 AS col0 FROM tab0
----
-41
-9
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - col0 * - col0 ) + 36 * col1 * col1 + - col1 col0 FROM tab0
----
266746
305946
339852

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1048
SELECT ALL col1 * + col0 + - col0 DIV + col1 FROM tab2
----
1339
217
4601

skipif mysql # not compatible
query I rowsort label-1048
SELECT ALL col1 * + col0 + - col0 / + col1 FROM tab2
----
1339
217
4601

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

skipif mysql # not compatible
query I rowsort label-1049
SELECT ALL CAST ( col0 AS INTEGER ) + + col2 * - CAST ( col0 AS INTEGER ) FROM tab1
----
-159
-3584
-7600

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

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

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

query I rowsort
SELECT DISTINCT + ( ( cor0.col1 ) ) * 23 * col1 FROM tab1 AS cor0
----
15548
2300
3887

query I rowsort
SELECT + 13 * col0 FROM tab2
----
1014
1027
91

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

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

query I rowsort
SELECT DISTINCT - 94 * - col1 - col1 * ( cor0.col0 ) * + col2 FROM tab2 cor0
----
-114106
-2945
-49436

query I rowsort
SELECT ALL ( - col0 ) * + cor0.col2 + - 81 FROM tab2 AS cor0
----
-2109
-270
-3083

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 21 * + col1 col1 FROM tab0 AS cor0
----
1806
1911
2037

query I rowsort
SELECT DISTINCT - ( - col0 ) + col0 + + cor0.col2 AS col2 FROM tab0 AS cor0
----
260
71
81

query I rowsort
SELECT DISTINCT - 96 + + col2 AS col0 FROM tab0 AS cor0
----
-14
-63
-95

query I rowsort
SELECT + + col1 + + col0 * 93 FROM tab2 AS cor0
----
682
7313
7364

query I rowsort
SELECT + col2 * col1 + - cor0.col0 * 16 FROM tab2 AS cor0
----
-618
286
725

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

skipif mysql # not compatible
query I rowsort
SELECT - - cor0.col2 + + col0 * CAST ( 74 AS REAL ) + + cor0.col1 AS col2 FROM tab2 cor0
----
576
5857
5901

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

query I rowsort
SELECT DISTINCT + col0 * + col1 * 21 AS col0 FROM tab0
----
170079
43344
71295

query I rowsort
SELECT 26 + - cor0.col0 * 2 + - ( - col1 ) FROM tab2 AS cor0
----
-115
-71
43

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 68 col0 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 6fbba7db5bccb533a35aa5125a231f88

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1072
SELECT + 33 DIV col0 col2 FROM tab2
----
0
0
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1072
SELECT + 33 / col0 col2 FROM tab2
----
0
0
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-1073
SELECT - cor0.col1 + - cor0.col1 + - col0 DIV - cor0.col0 AS col2 FROM tab1 AS cor0
----
-19
-25
-51

skipif mysql # not compatible
query I rowsort label-1073
SELECT - cor0.col1 + - cor0.col1 + - col0 / - cor0.col0 AS col2 FROM tab1 AS cor0
----
-19
-25
-51

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

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

query I rowsort
SELECT - col0 + - 23 + + col2 FROM tab1 AS cor0
----
-30
-7
28

onlyif mysql # use DIV operator for integer division
query I rowsort label-1076
SELECT + 85 DIV tab2.col0 FROM tab2
----
1
1
12

skipif mysql # not compatible
query I rowsort label-1076
SELECT + 85 / tab2.col0 FROM tab2
----
1
1
12

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

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

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

query I rowsort
SELECT + col0 + + 45 AS col0 FROM tab2 AS cor0
----
123
124
52

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col1 ) * 55 col0 FROM tab1
----
1430
550
715

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1089
SELECT col2 / col1 + col1 / col2 AS col2 FROM tab0
----
1
2
97

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

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

query I rowsort
SELECT ALL - 71 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to e72f95c346714d3065a96d67a6fd5062

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1097
SELECT CAST ( NULL AS INTEGER ) - 83 / col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + CAST ( - col1 AS REAL ) / col1 + + ( col0 ) * col2 * - col1 FROM tab0 AS cor0
----
-3396
-664119
-68113

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

query I rowsort
SELECT DISTINCT - 28 * + col0 - + col1 FROM tab2 AS cor0
----
-2229
-2243
-227

query I rowsort
SELECT ALL 52 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 7f4ae30893ab330784829711032ae599

query I rowsort
SELECT 20 FROM tab0, tab1 AS cor0
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1104
SELECT - CAST( - col2 AS SIGNED ) + + col1 * + 58 * - 70 + - col2 FROM tab1
----
-105560
-40600
-52780

skipif mysql # not compatible
query I rowsort label-1104
SELECT - CAST ( - col2 AS INTEGER ) + + col1 * + 58 * - 70 + - col2 FROM tab1
----
-105560
-40600
-52780

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

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

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

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1110
SELECT DISTINCT - CAST( - col1 AS SIGNED ) * col0 AS col2 FROM tab0 AS cor0
----
2064
3395
8099

skipif mysql # not compatible
query I rowsort label-1110
SELECT DISTINCT - CAST ( - col1 AS INTEGER ) * col0 AS col2 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT 83 * col1 FROM tab1 AS cor0
----
1079
2158
830

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1114
SELECT + - 99 * + col2 + + col0 DIV - ( cor0.col0 + col2 ) FROM tab2 AS cor0
----
-2574
-2673
-3762

skipif mysql # not compatible
query I rowsort label-1114
SELECT + - 99 * + col2 + + col0 / - ( cor0.col0 + col2 ) FROM tab2 AS cor0
----
-2574
-2673
-3762

query I rowsort
SELECT - 58 * col0 * 37 FROM tab1 AS cor0
----
-137344
-171680
-6438

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

skipif mysql # not compatible
query I rowsort label-1116
SELECT + - 36 / col0 AS col1 FROM tab0 AS cor0
----
-1
-1
0

query I rowsort
SELECT col2 + col2 * ( - cor0.col0 * + 68 ) AS col0 FROM tab2 AS cor0
----
-12825
-137878
-204098

query I rowsort
SELECT ALL - cor1.col2 + cor0.col0 FROM tab1, tab1 AS cor0, tab2 cor1, tab1 AS cor2
----
81 values hashing to db05a50788df0b2907f733e0d5042161

query I rowsort
SELECT ALL + col0 * ( 12 ) AS col1 FROM tab2 AS cor0
----
84
936
948

query I rowsort
SELECT DISTINCT + 80 - cor0.col2 AS col2 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
-2
47
79

query I rowsort
SELECT ALL + col0 + - col0 * 9 AS col0 FROM tab0 AS cor0
----
-192
-280
-712

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

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

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

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

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

query I rowsort
SELECT ALL cor2.col0 FROM tab1 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab1 AS cor2, tab1 AS cor3
----
243 values hashing to 63f734facb33901524f6f2c799118db4

query I rowsort
SELECT cor0.col2 + + 83 * + cor0.col0 FROM tab0 AS cor0
----
2025
2906
7469

query I rowsort
SELECT DISTINCT + - col0 * - col1 + - 16 * - col0 + col0 * cor0.col1 FROM tab1 AS cor0
----
204
2304
3360

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

query I rowsort
SELECT ALL + - col2 * 34 AS col2 FROM tab1 AS cor0
----
-1836
-1938
-3264

query I rowsort
SELECT DISTINCT col2 * ( 69 * - col2 ) AS col2 FROM tab0 cor0
----
-463956
-69
-75141

query I rowsort
SELECT ALL col1 + + 38 + cor0.col2 AS col1 FROM tab2 AS cor0
----
123
93
96

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

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

query I rowsort
SELECT ALL + col1 + + 53 FROM tab2 AS cor0
----
112
70
84

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

query I rowsort
SELECT DISTINCT cor0.col2 + - 66 AS col2 FROM tab2 AS cor0
----
-28
-39
-40

query I rowsort
SELECT DISTINCT cor1.col0 * + 53 FROM tab1, tab0 AS cor0, tab0 AS cor1, tab2 AS cor2
----
1272
1855
4717

query IIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0, tab2 cor1, tab2 AS cor2
----
972 values hashing to 82def1c3361e635dd4cf447edc22edb9

query I rowsort
SELECT ALL col2 + col1 * 18 * 79 AS col1 FROM tab1 cor0
----
14277
18582
37026

onlyif mysql # use DIV operator for integer division
query I rowsort label-1140
SELECT + col0 DIV col0 + ( col2 ) FROM tab0 AS cor0
----
2
34
83

skipif mysql # not compatible
query I rowsort label-1140
SELECT + col0 / col0 + ( col2 ) FROM tab0 AS cor0
----
2
34
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 88 + col0 col1 FROM tab2 AS cor0
----
166
167
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col0 * - col2 + 42 col2 FROM tab1
----
-36438
-4170
-99798

query I rowsort
SELECT ALL - tab1.col2 + 41 AS col2 FROM tab0, tab0 cor0 CROSS JOIN tab1, tab2 AS cor1, tab0 AS cor2
----
243 values hashing to 3212ac0e639dfc6d0615401eba14af85

query I rowsort
SELECT ALL - 71 FROM tab0, tab0 cor0 CROSS JOIN tab2, tab1, tab1 AS cor1
----
243 values hashing to 00fb20d7f0ac4266890bedfbad7309b2

query I rowsort
SELECT ALL + + cor0.col1 * + col2 * - col1 + + col2 * cor0.col1 * - 39 FROM tab2 AS cor0
----
-150332
-36176
-58590

query I rowsort
SELECT DISTINCT + 18 + tab1.col2 AS col1 FROM tab1
----
114
72
75

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

skipif mysql # not compatible
query I rowsort label-1147
SELECT DISTINCT + tab2.col0 / 61 AS col2 FROM tab2, tab1 AS cor0
----
0
1

query I rowsort
SELECT 10 * col1 + col0 FROM tab1
----
164
210
263

query I rowsort
SELECT 80 - - col2 FROM tab1
----
134
137
176

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

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

query I rowsort
SELECT + col1 + col2 * - ( - 65 + tab0.col1 * - tab0.col2 ) AS col2 FROM tab0
----
259
617305
95885

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

query I rowsort
SELECT + 84 - col0 AS col2 FROM tab1 AS cor0
----
20
4
81

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

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

skipif mysql # not compatible
query I rowsort label-1156
SELECT DISTINCT - col2 + ( col1 ) * CAST ( + col2 + col2 AS INTEGER ) FROM tab1 AS cor0
----
1083
2400
2754

query I rowsort
SELECT DISTINCT + col1 + - col1 * col1 FROM tab0 cor0
----
-7310
-8190
-9312

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

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2 cor0, tab0, tab1 cor1
----
972 values hashing to 0210050fb1701e2797a9b17e1ebac91e

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

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

query I rowsort
SELECT 74 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

query I rowsort
SELECT + ( - 37 * - col2 ) AS col0 FROM tab1
----
1998
2109
3552

query I rowsort
SELECT - col2 + + 61 AS col0 FROM tab0
----
-21
28
60

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

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

query I rowsort
SELECT + cor0.col1 * 55 * + col2 - col1 AS col1 FROM tab0 AS cor0
----
156004
410319
5238

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

query I rowsort
SELECT DISTINCT 57 + + col0 FROM tab0 AS cor0
----
146
81
92

query I rowsort
SELECT 77 * - col1 FROM tab1
----
-1001
-2002
-770

query I rowsort
SELECT ALL - col2 * - col1 * 46 FROM tab2
----
29716
38502
70564

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1172
SELECT - + col0 + - CAST( + col2 AS SIGNED ) FROM tab0 cor0
----
-171
-36
-57

skipif mysql # not compatible
query I rowsort label-1172
SELECT - + col0 + - CAST ( + col2 AS INTEGER ) FROM tab0 cor0
----
-171
-36
-57

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

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

query I rowsort
SELECT ( - col1 + 69 ) FROM tab0
----
-17
-22
-28

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

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

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

query I rowsort
SELECT + - col2 + 51 FROM tab2 AS cor0
----
13
24
25

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

query I rowsort
SELECT col1 * + 84 AS col0 FROM tab0
----
7224
7644
8148

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

query I rowsort
SELECT DISTINCT - col0 * - col2 * ( col0 ) FROM tab2 AS cor0
----
1323
158184
237158

query I rowsort
SELECT ALL + col1 * - col1 * col1 FROM tab0 AS cor0
----
-636056
-753571
-912673

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1187
SELECT DISTINCT col1 DIV - ( 77 ) AS col1 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-1187
SELECT DISTINCT col1 / - ( 77 ) AS col1 FROM tab0
----
-1

query I rowsort
SELECT ALL + col1 * + 40 FROM tab1
----
1040
400
520

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 92 + - col2 * col1 col2 FROM tab2 AS cor0
----
-1626
-738
-929

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

query I rowsort
SELECT ALL col2 - - col0 * + col1 * 97 AS col1 FROM tab2
----
130309
21076
446420

query I rowsort
SELECT - col1 + 98 AS col0 FROM tab2 AS cor0
----
39
67
81

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

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

query I rowsort
SELECT + - col1 * - 54 FROM tab1 AS cor0
----
1404
540
702

query I rowsort
SELECT + 71 * - 45 FROM tab2 AS cor0
----
-3195
-3195
-3195

query I rowsort
SELECT + - 82 + col1 * cor0.col2 FROM tab1 AS cor0
----
1166
1322
488

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

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

query I rowsort
SELECT ALL 42 * col1 + + col2 FROM tab0 AS cor0
----
3645
3904
4075

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

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

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

query I rowsort
SELECT + - col2 * ( cor0.col2 ) * + col2 AS col1 FROM tab1 AS cor0
----
-157464
-185193
-884736

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1207
SELECT DISTINCT + col1 DIV + col0 - + col0 * - col0 AS col2 FROM tab2 cor0
----
53
6084
6241

skipif mysql # not compatible
query I rowsort label-1207
SELECT DISTINCT + col1 / + col0 - + col0 * - col0 AS col2 FROM tab2 cor0
----
53
6084
6241

query I rowsort
SELECT DISTINCT col2 * - col0 * col0 + col0 AS col1 FROM tab0 AS cor0
----
-1190
-18984
-649433

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

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

query I rowsort
SELECT DISTINCT + - col2 + col0 * 98 * col1 FROM tab0 AS cor0
----
202239
332709
793620

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

query I rowsort
SELECT col1 + col0 * col2 FROM tab2
----
2087
220
3019

query I rowsort
SELECT DISTINCT 68 + col1 FROM tab0
----
154
159
165

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

skipif mysql # not compatible
query I rowsort label-1214
SELECT CAST ( - col1 AS INTEGER ) FROM tab0
----
-86
-91
-97

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

skipif mysql # not compatible
query I rowsort label-1215
SELECT DISTINCT - CAST ( + 44 AS INTEGER ) AS col0 FROM tab2
----
-44

query I rowsort
SELECT ALL - ( + 88 ) AS col2 FROM tab2
----
-88
-88
-88

query I rowsort
SELECT DISTINCT 95 FROM tab2, tab1 cor0
----
95

query I rowsort
SELECT - 35 - tab2.col2 * ( - 70 ) AS col0 FROM tab2
----
1785
1855
2625

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1221
SELECT DISTINCT CAST( NULL AS DECIMAL ) col2 FROM tab2, tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1221
SELECT DISTINCT CAST ( NULL AS REAL ) col2 FROM tab2, tab0 AS cor0
----
NULL

query I rowsort
SELECT + 50 FROM tab1, tab1 cor0
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52

query I rowsort
SELECT DISTINCT ( 87 ) + - col2 FROM tab1 AS cor0
----
-9
30
33

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

query I rowsort
SELECT DISTINCT + col1 * 11 AS col1 FROM tab1
----
110
143
286

query I rowsort
SELECT col1 * + ( - col1 * col1 ) + 35 + 58 AS col2 FROM tab2
----
-205286
-29698
-4820

query I rowsort
SELECT col1 + 14 FROM tab0 AS cor0
----
100
105
111

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

query I rowsort
SELECT + 12 * + col1 AS col2 FROM tab2 AS cor0
----
204
372
708

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

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

query I rowsort
SELECT 43 - 23 FROM tab2
----
20
20
20

onlyif mysql # use DIV operator for integer division
query I rowsort label-1232
SELECT ( col1 ) DIV col1 + col2 * col2 AS col0 FROM tab1
----
2917
3250
9217

skipif mysql # not compatible
query I rowsort label-1232
SELECT ( col1 ) / col1 + col2 * col2 AS col0 FROM tab1
----
2917
3250
9217

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1233
SELECT - CAST( - col2 AS SIGNED ) AS col2 FROM tab2
----
26
27
38

skipif mysql # not compatible
query I rowsort label-1233
SELECT - CAST ( - col2 AS INTEGER ) AS col2 FROM tab2
----
26
27
38

skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( col2 AS REAL ) * - col2 AS col2 FROM tab0 AS cor0
----
-1
-1089
-6724

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

query I rowsort
SELECT DISTINCT ( 72 ) + - cor0.col2 FROM tab1 AS cor0
----
-24
15
18

onlyif mysql # use DIV operator for integer division
query I rowsort label-1237
SELECT ALL - col1 DIV + ( col1 ) FROM tab2 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1237
SELECT ALL - col1 / + ( col1 ) FROM tab2 cor0
----
-1
-1
-1

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 23 * col0 col2 FROM tab0 AS cor0
----
2047
552
805

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

query I rowsort
SELECT ALL cor0.col0 * 64 FROM tab2 AS cor0
----
448
4992
5056

query I rowsort
SELECT - 86 + col1 + cor0.col2 AS col2 FROM tab1 AS cor0
----
-19
-6
23

query I rowsort
SELECT DISTINCT ( col1 ) * col1 + - col2 FROM tab2 AS cor0
----
251
3455
934

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

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

skipif mysql # not compatible
query I rowsort label-1246
SELECT DISTINCT - CAST ( NULL AS REAL ) FROM tab1 cor0
----
NULL

query I rowsort
SELECT DISTINCT - 72 FROM tab2 AS cor0
----
-72

query I rowsort
SELECT ALL - cor0.col2 + col2 * - 57 AS col1 FROM tab1 AS cor0
----
-3132
-3306
-5568

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

query I rowsort
SELECT DISTINCT 44 * + col0 FROM tab1 AS cor0
----
132
2816
3520

query I rowsort
SELECT ALL 5 FROM tab1 AS cor0
----
5
5
5

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1254
SELECT DISTINCT cor0.col0 DIV 83 FROM tab2, tab0 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-1254
SELECT DISTINCT cor0.col0 / 83 FROM tab2, tab0 AS cor0
----
0
1

query I rowsort
SELECT - cor0.col1 * + col0 - cor0.col0 FROM tab1 AS cor0
----
-1120
-704
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 * col0 + + 44 col1 FROM tab0 AS cor0
----
1269
620
7965

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

skipif mysql # not compatible
query I rowsort label-1257
SELECT + col0 / ( + tab0.col1 ) FROM tab0
----
0
0
0

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1259
SELECT DISTINCT + col2 + + CAST( 41 AS SIGNED ) AS col0 FROM tab1
----
137
95
98

skipif mysql # not compatible
query I rowsort label-1259
SELECT DISTINCT + col2 + + CAST ( 41 AS INTEGER ) AS col0 FROM tab1
----
137
95
98

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

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

query I rowsort
SELECT + col2 + + col1 - - col1 * col0 FROM tab2 AS cor0
----
1398
275
4687

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + col0 + cor0.col0 col2 FROM tab0 AS cor0
----
-27
-38
87

query I rowsort
SELECT - - col1 * + 90 - 87 AS col1 FROM tab1 AS cor0
----
1083
2253
813

query I rowsort
SELECT ALL + col0 * - col0 - 71 FROM tab2 AS cor0
----
-120
-6155
-6312

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

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

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

query I rowsort
SELECT ALL - ( - 28 ) * col0 * - col0 FROM tab2 cor0
----
-1372
-170352
-174748

query I rowsort
SELECT 31 + col0 FROM tab1 AS cor0
----
111
34
95

query I rowsort
SELECT - ( - ( col0 ) ) + 66 * + col2 AS col0 FROM tab2 AS cor0
----
1789
1794
2587

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

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1276
SELECT DISTINCT CAST ( col0 AS INTEGER ) col2 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT - 5 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 74665fbb47d5b17da011bca567195b21

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

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

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

query I rowsort
SELECT tab2.col0 AS col1 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT ALL + tab1.col2 - col2 * col2 AS col1 FROM tab1
----
-2862
-3192
-9120

query I rowsort
SELECT ( - tab1.col2 ) FROM tab1, tab1 AS cor0
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + 77 * - col1 col0 FROM tab1 AS cor0
----
-108108
-43890
-96096

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

query I rowsort
SELECT - col0 * 92 AS col2 FROM tab2 cor0
----
-644
-7176
-7268

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

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

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

query I rowsort
SELECT ALL + + cor0.col1 * - 36 FROM tab2 AS cor0
----
-1116
-2124
-612

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

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

query I rowsort
SELECT DISTINCT - 32 * - col2 AS col2 FROM tab1 cor0
----
1728
1824
3072

query I rowsort
SELECT - - 65 * col0 * col2 FROM tab0 AS cor0
----
2275
474370
51480

query I rowsort
SELECT DISTINCT + 50 * + col0 AS col2 FROM tab1
----
150
3200
4000

query I rowsort
SELECT col2 * + 15 AS col0 FROM tab2 AS cor0
----
390
405
570

query I rowsort
SELECT col0 * - 75 * col1 AS col0 FROM tab2 cor0
----
-100725
-16275
-345150

query I rowsort
SELECT ALL - 75 * col0 AS col2 FROM tab2
----
-525
-5850
-5925

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

query I rowsort
SELECT - col0 * col2 * + col0 + 95 FROM tab2
----
-1228
-158089
-237063

query I rowsort
SELECT DISTINCT - 94 FROM tab0, tab0 AS cor0
----
-94

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1302
SELECT 5 DIV cor0.col0 AS col2 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 953562d3ce2a62a1679a1ae0451294c6

skipif mysql # not compatible
query I rowsort label-1302
SELECT 5 / cor0.col0 AS col2 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 953562d3ce2a62a1679a1ae0451294c6

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

skipif mysql # not compatible
query I rowsort label-1303
SELECT + col0 * ( col0 ) / col0 FROM tab1 AS cor0
----
3
64
80

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

query I rowsort
SELECT + 40 * col0 AS col1 FROM tab0
----
1400
3560
960

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

skipif mysql # not compatible
query I rowsort label-1306
SELECT DISTINCT - ( col2 ) * - col0 / col0 AS col1 FROM tab2
----
26
27
38

query I rowsort
SELECT DISTINCT + 60 FROM tab1, tab0 cor0
----
60

query I rowsort
SELECT col2 - ( col2 ) AS col0 FROM tab1
----
0
0
0

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

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

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

query I rowsort
SELECT tab2.col0 + tab2.col0 FROM tab2
----
14
156
158

query I rowsort
SELECT - 75 * 5 FROM tab0
----
-375
-375
-375

query I rowsort
SELECT ALL 12 * col1 + - 3 * - 35 FROM tab0 AS cor0
----
1137
1197
1269

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

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

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

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

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

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

query I rowsort
SELECT + + 75 * + col0 + + col2 AS col0 FROM tab0 AS cor0
----
1833
2626
6757

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

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

query I rowsort
SELECT 99 * + col0 AS col2 FROM tab2
----
693
7722
7821

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 col2 FROM tab1, tab2, tab1 AS cor0, tab0 cor1
----
81 values hashing to 96e9ef2950805bca93a295eeea43ef5b

query I rowsort
SELECT DISTINCT 3 AS col1 FROM tab2
----
3

query I rowsort
SELECT + + 14 + col0 AS col2 FROM tab1 AS cor0
----
17
78
94

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1328
SELECT DISTINCT - + 2 DIV - ( col1 ) + - col2 FROM tab2 AS cor0
----
-26
-27
-38

skipif mysql # not compatible
query I rowsort label-1328
SELECT DISTINCT - + 2 / - ( col1 ) + - col2 FROM tab2 AS cor0
----
-26
-27
-38

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1330
SELECT ALL ( - col1 ) + col1 DIV col0 col2 FROM tab1 AS cor0
----
-10
-13
-18

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1330
SELECT ALL ( - col1 ) + col1 / col0 col2 FROM tab1 AS cor0
----
-10
-13
-18

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

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

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

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

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

query I rowsort
SELECT - - 17 * col1 AS col0 FROM tab0 AS cor0
----
1462
1547
1649

query I rowsort
SELECT DISTINCT 69 * cor0.col0 - 62 AS col0 FROM tab0 AS cor0
----
1594
2353
6079

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

query I rowsort
SELECT DISTINCT - 40 * col2 + - col2 FROM tab1 AS cor0
----
-2214
-2337
-3936

query I rowsort
SELECT DISTINCT - col2 + - col2 * + 48 AS col2 FROM tab0 AS cor0
----
-1617
-4018
-49

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

query I rowsort
SELECT - 56 * - 91 + + col1 FROM tab2
----
5113
5127
5155

query I rowsort
SELECT - col0 + - 75 FROM tab0
----
-110
-164
-99

query I rowsort
SELECT ALL ( - col2 ) + tab0.col1 * col0 * ( + col1 ) FROM tab0
----
177471
329314
736927

query I rowsort
SELECT DISTINCT 76 * - col0 FROM tab1
----
-228
-4864
-6080

onlyif mysql # use DIV operator for integer division
query I rowsort label-1345
SELECT col1 * + col1 + + col1 DIV tab0.col2 AS col0 FROM tab0
----
7398
8282
9506

skipif mysql # not compatible
query I rowsort label-1345
SELECT col1 * + col1 + + col1 / tab0.col2 AS col0 FROM tab0
----
7398
8282
9506

onlyif mysql # use DIV operator for integer division
query I rowsort label-1346
SELECT ALL col0 * - 58 + - col1 DIV - 98 + + col1 * + col0 * - col1 FROM tab1
----
-10112
-18160
-2202

skipif mysql # not compatible
query I rowsort label-1346
SELECT ALL col0 * - 58 + - col1 / - 98 + + col1 * + col0 * - col1 FROM tab1
----
-10112
-18160
-2202

query I rowsort
SELECT DISTINCT - col2 + - col2 + - col1 FROM tab2 AS cor0
----
-111
-85
-93

query I rowsort
SELECT col2 - + ( - col2 * - col2 ) AS col0 FROM tab1 AS cor0
----
-2862
-3192
-9120

onlyif mysql # use DIV operator for integer division
query I rowsort label-1349
SELECT ALL - - col0 DIV col0 + 37 * col2 AS col1 FROM tab0 AS cor0
----
1222
3035
38

skipif mysql # not compatible
query I rowsort label-1349
SELECT ALL - - col0 / col0 + 37 * col2 AS col1 FROM tab0 AS cor0
----
1222
3035
38

query I rowsort
SELECT col2 + + ( 17 ) * + cor0.col2 - + col1 * col1 * - col0 FROM tab1 AS cor0
----
15248
3000
7426

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

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

query I rowsort
SELECT DISTINCT 34 AS col1 FROM tab1
----
34

onlyif mysql # use DIV operator for integer division
query I rowsort label-1354
SELECT ( col0 ) DIV ( - col0 * tab2.col0 ) AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1354
SELECT ( col0 ) / ( - col0 * tab2.col0 ) AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT - col2 * - col0 - 71 * cor0.col1 FROM tab0 cor0
----
-5314
-6852
837

query I rowsort
SELECT DISTINCT - col0 + - 67 AS col2 FROM tab1 AS cor0
----
-131
-147
-70

query I rowsort
SELECT col2 + + ( col0 ) * col0 AS col0 FROM tab2 AS cor0
----
6110
6279
76

query I rowsort
SELECT ALL col0 + 54 * + 84 FROM tab1 AS cor0
----
4539
4600
4616

query I rowsort
SELECT - 53 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to fee5c00ad71c23e23683a32c71fe6e7d

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

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

query I rowsort
SELECT - col2 + col2 + 94 FROM tab2
----
94
94
94

query I rowsort
SELECT ALL col2 - 57 AS col0 FROM tab0
----
-24
-56
25

query I rowsort
SELECT DISTINCT + + cor0.col0 * + col1 + col1 * col1 FROM tab0 AS cor0
----
12804
16380
9460

skipif mysql # not compatible
query I rowsort
SELECT ALL + CAST ( + 15 AS REAL ) * col0 AS col0 FROM tab1 cor0
----
1200
45
960

query I rowsort
SELECT DISTINCT 11 * col2 + col0 * col2 AS col0 FROM tab1 AS cor0
----
4275
756
8736

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + + ( col0 ) col0 FROM tab2
----
-24
19
62

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

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

query I rowsort
SELECT ALL + tab1.col2 + ( - 14 + - tab1.col0 * ( col1 ) ) FROM tab1
----
-38
-597
-958

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

query I rowsort
SELECT ALL - col0 * - 29 + + tab1.col1 * col1 FROM tab1
----
1956
2489
763

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 39 + - col1 + col2 col2 FROM tab1
----
-11
44
8

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

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

query I rowsort
SELECT ALL + col1 + 37 * col2 AS col0 FROM tab1 AS cor0
----
2024
2119
3565

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

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

query I rowsort
SELECT ALL col0 + + col2 * + col1 * + ( col2 ) AS col2 FROM tab1 AS cor0
----
119888
32554
75819

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT - - 82 + - col2 AS col0 FROM tab1 AS cor0
----
-14
25
28

query I rowsort
SELECT ALL + - col1 * 61 FROM tab2 AS cor0
----
-1037
-1891
-3599

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1391
SELECT - 62 DIV col1 AS col1 FROM tab1 cor0
----
-2
-4
-6

skipif mysql # not compatible
query I rowsort label-1391
SELECT - 62 / col1 AS col1 FROM tab1 cor0
----
-2
-4
-6

query I rowsort
SELECT DISTINCT - 92 * col0 FROM tab0 cor0
----
-2208
-3220
-8188

query I rowsort
SELECT ALL ( + cor0.col0 ) * - 35 + 10 * + col0 AS col0 FROM tab1 AS cor0
----
-1600
-2000
-75

query I rowsort
SELECT DISTINCT 3 + + cor0.col1 + 16 FROM tab1 cor0
----
29
32
45

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1395
SELECT CAST ( NULL AS REAL ) * - 38 / - cor1.col1 col0 FROM tab2, tab1 cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

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

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

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

query I rowsort
SELECT ALL col0 + - 55 - - col0 * - col0 AS col0 FROM tab1 AS cor0
----
-4087
-61
-6375

query I rowsort
SELECT DISTINCT cor0.col0 + - 32 AS col2 FROM tab1 AS cor0
----
-29
32
48

query I rowsort
SELECT ALL + cor0.col0 + - 27 * - col0 * + col1 AS col1 FROM tab0 cor0
----
218762
55752
91700

query I rowsort
SELECT DISTINCT - col1 * - 6 + + col0 * - col1 FROM tab2
----
-1241
-31
-4248

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + col1 + CAST ( 10 AS REAL ) * col2 FROM tab1 cor0
----
566
580
973

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1405
SELECT - col0 * + col2 - - col2 DIV + col0 FROM tab0 AS cor0
----
-35
-7298
-791

skipif mysql # not compatible
query I rowsort label-1405
SELECT - col0 * + col2 - - col2 / + col0 FROM tab0 AS cor0
----
-35
-7298
-791

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

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

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

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

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

query I rowsort
SELECT + col2 * - col2 + - col2 FROM tab0 AS cor0
----
-1122
-2
-6806

query I rowsort
SELECT ( col0 * col0 ) + ( + col2 ) FROM tab2
----
6110
6279
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 99 * col0 + - col2 col0 FROM tab2 cor0
----
666
7696
7783

query I rowsort
SELECT DISTINCT + + 33 * + col1 - col2 FROM tab2 AS cor0
----
1921
523
996

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1416
SELECT - - col2 DIV - 19 FROM tab2 AS cor0
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-1416
SELECT - - col2 / - 19 FROM tab2 AS cor0
----
-1
-1
-2

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1417
SELECT - CAST( col0 AS SIGNED ) + - cor0.col1 FROM tab0 cor0
----
-110
-132
-180

skipif mysql # not compatible
query I rowsort label-1417
SELECT - CAST ( col0 AS INTEGER ) + - cor0.col1 FROM tab0 cor0
----
-110
-132
-180

onlyif mysql # use DIV operator for integer division
query I rowsort label-1418
SELECT + col2 + col0 DIV col2 AS col0 FROM tab1 AS cor0
----
54
58
96

skipif mysql # not compatible
query I rowsort label-1418
SELECT + col2 + col0 / col2 AS col0 FROM tab1 AS cor0
----
54
58
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-1419
SELECT ALL + col2 + + col1 DIV cor0.col2 + ( col1 ) AS col1 FROM tab0 AS cor0
----
121
174
195

skipif mysql # not compatible
query I rowsort label-1419
SELECT ALL + col2 + + col1 / cor0.col2 + ( col1 ) AS col1 FROM tab0 AS cor0
----
121
174
195

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 - - 7 col0 FROM tab0 AS cor0
----
104
93
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( 85 ) * - col0 col0 FROM tab1 AS cor0
----
-255
-5440
-6800

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1425
SELECT ALL + - col1 / + col2 + - col0 + col0 FROM tab0 AS cor0
----
-1
-2
-97

query I rowsort
SELECT + 43 AS col1 FROM tab1, tab0 AS cor0, tab0 AS cor1, tab1 AS cor2
----
81 values hashing to 53b2f139a07f856ac44a1158efd4e63d

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

query I rowsort
SELECT DISTINCT tab1.col2 * + tab1.col0 * col0 FROM tab1
----
233472
486
614400

query I rowsort
SELECT col1 + + ( 69 ) + - col0 * ( - ( + col0 ) ) FROM tab2 cor0
----
149
6212
6327

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab2.col2 * col1 * tab2.col2 col0 FROM tab2
----
-22599
-24548
-39884

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

query I rowsort
SELECT ALL + col2 * col0 + col2 * col0 * col1 FROM tab2 AS cor0
----
121680
54036
6048

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

query I rowsort
SELECT DISTINCT - cor0.col0 * + 41 + - col0 AS col1 FROM tab2 AS cor0
----
-294
-3276
-3318

query I rowsort
SELECT col0 * col0 + 75 AS col0 FROM tab2 cor0
----
124
6159
6316

query I rowsort
SELECT ALL col0 * 74 AS col2 FROM tab2 AS cor0
----
518
5772
5846

onlyif mysql # use DIV operator for integer division
query I rowsort label-1439
SELECT ALL + col0 * - col1 DIV - ( - col1 ) + col1 AS col1 FROM tab2 AS cor0
----
-19
-62
24

skipif mysql # not compatible
query I rowsort label-1439
SELECT ALL + col0 * - col1 / - ( - col1 ) + col1 AS col1 FROM tab2 AS cor0
----
-19
-62
24

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

query I rowsort
SELECT ALL - col0 - + cor0.col0 AS col2 FROM tab2 AS cor0
----
-14
-156
-158

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

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

query I rowsort
SELECT DISTINCT - col0 + - col0 * + col2 FROM tab2
----
-196
-2106
-3081

query I rowsort
SELECT col1 * 85 AS col2 FROM tab2
----
1445
2635
5015

onlyif mysql # use DIV operator for integer division
query I rowsort label-1446
SELECT - col0 * + 48 + col2 DIV - 67 FROM tab0 AS cor0
----
-1152
-1680
-4273

skipif mysql # not compatible
query I rowsort label-1446
SELECT - col0 * + 48 + col2 / - 67 FROM tab0 AS cor0
----
-1152
-1680
-4273

query I rowsort
SELECT + col2 + ( ( + col2 ) ) FROM tab2
----
52
54
76

query I rowsort
SELECT col2 + col1 + - tab1.col1 FROM tab1
----
54
57
96

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

skipif mysql # not compatible
query I rowsort label-1449
SELECT - tab2.col0 + + CAST ( NULL AS REAL ) FROM tab2
----
NULL
NULL
NULL

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1451
SELECT - col2 DIV + col0 - - col2 * + col0 FROM tab1 AS cor0
----
144
3648
7679

skipif mysql # not compatible
query I rowsort label-1451
SELECT - col2 / + col0 - - col2 * + col0 FROM tab1 AS cor0
----
144
3648
7679

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

query I rowsort
SELECT DISTINCT + 64 AS col0 FROM tab2, tab1 AS cor0, tab1 AS cor1, tab1 AS cor2
----
64

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1457
SELECT + col2 * col1 DIV col0 FROM tab2 cor0
----
119
19
8

skipif mysql # not compatible
query I rowsort label-1457
SELECT + col2 * col1 / col0 FROM tab2 cor0
----
119
19
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - 52 col1 FROM tab2
----
1612
3068
884

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

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

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

query I rowsort
SELECT 37 + col1 AS col2 FROM tab2 AS cor0
----
54
68
96

query I rowsort
SELECT DISTINCT - 41 FROM tab2 AS cor0
----
-41

query I rowsort
SELECT + + cor0.col1 * col1 * 89 AS col2 FROM tab1 AS cor0
----
15041
60164
8900

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

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

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

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

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

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

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

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

query I rowsort
SELECT - - cor0.col0 + 23 * 54 * col2 AS col0 FROM tab0 AS cor0
----
101933
1277
41010

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

query I rowsort
SELECT - cor0.col2 AS col0 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1474
SELECT + col0 * + 98 + - col1 DIV cor0.col2 - - 91 AS col1 FROM tab1 AS cor0
----
385
6363
7931

skipif mysql # not compatible
query I rowsort label-1474
SELECT + col0 * + 98 + - col1 / cor0.col2 - - 91 AS col1 FROM tab1 AS cor0
----
385
6363
7931

query I rowsort
SELECT + col2 * + 6 AS col0 FROM tab1
----
324
342
576

query I rowsort
SELECT DISTINCT - col1 + col0 + - 85 AS col0 FROM tab1
----
-108
-18
-31

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

query I rowsort
SELECT ALL - - col1 * col0 - 16 AS col1 FROM tab1 AS cor0
----
1024
62
624

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

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

query I rowsort
SELECT DISTINCT + col0 + col0 * + 64 FROM tab0
----
1560
2275
5785

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

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

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

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

query I rowsort
SELECT + + col0 * ( col0 ) + col2 AS col0 FROM tab2 AS cor0
----
6110
6279
76

query I rowsort
SELECT ALL + col1 + - 39 FROM tab0 AS cor0
----
47
52
58

query I rowsort
SELECT + col0 * 91 * col1 FROM tab2 AS cor0
----
122213
19747
418782

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

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

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

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

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

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

query I rowsort
SELECT ALL + + col0 + + 63 * col1 * + col0 FROM tab0 AS cor0
----
130056
213920
510326

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

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1498
SELECT DISTINCT - col1 * col1 + - col1 DIV col0 FROM tab0 cor0
----
-7399
-8282
-9411

skipif mysql # not compatible
query I rowsort label-1498
SELECT DISTINCT - col1 * col1 + - col1 / col0 FROM tab0 cor0
----
-7399
-8282
-9411

query I rowsort
SELECT ( cor0.col2 ) AS col0 FROM tab1 AS cor0
----
54
57
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-1500
SELECT DISTINCT + 17 DIV col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1500
SELECT DISTINCT + 17 / col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT + ( + col2 ) * - col2 AS col1 FROM tab1 AS cor0
----
-2916
-3249
-9216

onlyif mysql # use DIV operator for integer division
query I rowsort label-1502
SELECT col2 DIV col1 FROM tab2 cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-1502
SELECT col2 / col1 FROM tab2 cor0
----
0
0
2

query I rowsort
SELECT + col0 + + ( - cor0.col0 ) AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - 97 FROM tab2 AS cor0
----
-97

query I rowsort
SELECT DISTINCT col0 + + 80 * - col0 FROM tab1 AS cor0
----
-237
-5056
-6320

skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( 86 AS REAL ) + col1 FROM tab1 AS cor0
----
112
96
99

query I rowsort
SELECT DISTINCT ( cor0.col1 ) * col0 + col2 FROM tab0 AS cor0
----
2097
3396
8181

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 61 col0 FROM tab2
----
61
61
61

onlyif mysql # use DIV operator for integer division
query I rowsort label-1509
SELECT ALL - col2 DIV - col1 AS col2 FROM tab1 cor0
----
2
5
7

skipif mysql # not compatible
query I rowsort label-1509
SELECT ALL - col2 / - col1 AS col2 FROM tab1 cor0
----
2
5
7

query I rowsort
SELECT - 68 - + cor0.col2 FROM tab2 AS cor0
----
-106
-94
-95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * col1 * + col0 col1 FROM tab0
----
-177504
-329315
-737009

query I rowsort
SELECT + col0 * - col2 + - cor0.col1 * col2 FROM tab1 AS cor0
----
-1566
-4218
-8928

query I rowsort
SELECT DISTINCT + 28 + col1 AS col0 FROM tab2 AS cor0
----
45
59
87

query I rowsort
SELECT DISTINCT - 31 + - col2 * col2 AS col2 FROM tab1 AS cor0
----
-2947
-3280
-9247

query I rowsort
SELECT ALL - cor0.col0 * col0 + ( - 32 ) + + col2 AS col0 FROM tab1 cor0
----
-4071
-6336
13

query I rowsort
SELECT ALL + col1 + + col2 AS col2 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT DISTINCT cor0.col1 * - col0 + cor0.col0 AS col1 FROM tab2 AS cor0
----
-1264
-210
-4524

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1518
SELECT - col0 + col1 * - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1518
SELECT - col0 + col1 * - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 22 * col0 AS col2 FROM tab0 AS cor0
----
-1958
-528
-770

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1520
SELECT + ( col0 ) * CAST( - col0 + - col1 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-4736
-7440
-87

skipif mysql # not compatible
query I rowsort label-1520
SELECT + ( col0 ) * CAST ( - col0 + - col1 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-4736
-7440
-87

query I rowsort
SELECT DISTINCT + 85 AS col0 FROM tab1 AS cor0
----
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 49 col1 FROM tab0 AS cor0
----
-49
-49
-49

query I rowsort
SELECT + col0 + + tab1.col2 AS col1 FROM tab1
----
121
176
57

query I rowsort
SELECT ALL 95 + col2 * col1 AS col0 FROM tab1
----
1343
1499
665

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1525
SELECT DISTINCT CAST( - col2 AS SIGNED ) + + col2 AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1525
SELECT DISTINCT CAST ( - col2 AS INTEGER ) + + col2 AS col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT 23 + col1 * - col0 AS col1 FROM tab1 cor0
----
-1017
-55
-617

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1527
SELECT ALL CAST( NULL AS DECIMAL ) + + col0 * col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1527
SELECT ALL CAST ( NULL AS REAL ) + + col0 * col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col0 + tab0.col2 * + col2 FROM tab0
----
-34
1065
6635

query I rowsort
SELECT col2 * 4 + + 10 FROM tab1
----
226
238
394

query I rowsort
SELECT ALL - 94 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to a95bfa539191d3f72f6548147d7efb9e

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 2 col1 FROM tab2, tab0, tab0 AS cor0
----
-2

query I rowsort
SELECT + - 89 AS col1 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to c36e597b7bc5727536f5bb580e6cebbc

onlyif mysql # use DIV operator for integer division
query I rowsort label-1533
SELECT DISTINCT - + cor0.col1 DIV col0 AS col2 FROM tab1 AS cor0
----
-8
0

skipif mysql # not compatible
query I rowsort label-1533
SELECT DISTINCT - + cor0.col1 / col0 AS col2 FROM tab1 AS cor0
----
-8
0

query I rowsort
SELECT DISTINCT + 80 AS col0 FROM tab1 cor0
----
80

query I rowsort
SELECT ALL - ( col1 ) * + cor0.col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 + - col0 col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - 66 AS col1 FROM tab2 AS cor0
----
-66
-66
-66

query I rowsort
SELECT DISTINCT 24 * cor0.col0 + + cor0.col1 AS col0 FROM tab1 AS cor0
----
1546
1933
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-1539
SELECT + col0 DIV + col1 AS col1 FROM tab1 AS cor0
----
0
6
6

skipif mysql # not compatible
query I rowsort label-1539
SELECT + col0 / + col1 AS col1 FROM tab1 AS cor0
----
0
6
6

query I rowsort
SELECT + col0 + 97 FROM tab0 AS cor0
----
121
132
186

query I rowsort
SELECT ( + col1 * col0 ) FROM tab2
----
1343
217
4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 * + 67 col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 874933543d4890ebedfa25638315a685

query I rowsort
SELECT 81 + - col2 FROM tab1
----
-15
24
27

query I rowsort
SELECT col2 + + tab2.col2 + ( col1 ) FROM tab2
----
111
85
93

query I rowsort
SELECT ALL tab0.col0 + + col0 * + 53 FROM tab0
----
1296
1890
4806

query I rowsort
SELECT DISTINCT + 90 * tab1.col1 + - col1 FROM tab1
----
1157
2314
890

query IIIIIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab0, tab0 cor1
----
243 values hashing to 021da207cdc2a046fb0a79bf7cfc38ae

query I rowsort
SELECT + + cor0.col1 + ( col2 ) * + col1 AS col1 FROM tab2 AS cor0
----
1593
663
868

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 2 - - col0 col0 FROM tab1 AS cor0
----
5
66
82

query I rowsort
SELECT - 35 FROM tab1, tab1 AS cor0
----
9 values hashing to c12e8bdd687c9040a5600dab3b6adf5b

onlyif mysql # use DIV operator for integer division
query I rowsort label-1551
SELECT - tab2.col0 DIV - col0 AS col2 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1551
SELECT - tab2.col0 / - col0 AS col2 FROM tab2
----
1
1
1

query I rowsort
SELECT 50 * col2 AS col1 FROM tab1
----
2700
2850
4800

onlyif mysql # use DIV operator for integer division
query I rowsort label-1553
SELECT ALL - col0 DIV col2 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-1553
SELECT ALL - col0 / col2 FROM tab1
----
-1
0
0

query I rowsort
SELECT DISTINCT + 1 + + col1 * + 40 AS col2 FROM tab1 AS cor0
----
1041
401
521

query I rowsort
SELECT 53 * col1 - col0 FROM tab1 cor0
----
1375
466
609

query I rowsort
SELECT + col1 + col0 * - cor0.col0 FROM tab2 AS cor0
----
-18
-6025
-6224

query I rowsort
SELECT + col0 + - cor0.col0 * col1 FROM tab2 AS cor0
----
-1264
-210
-4524

query I rowsort
SELECT + col0 + - col1 * + 45 AS col1 FROM tab2 AS cor0
----
-1388
-2577
-686

query I rowsort
SELECT ALL - col0 - + col0 AS col2 FROM tab1
----
-128
-160
-6

query I rowsort
SELECT col1 * ( col0 ) + col2 FROM tab0 AS cor0
----
2097
3396
8181

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1561
SELECT + cor0.col0 * CAST( - 37 AS SIGNED ) - - col2 * CAST( - 82 AS SIGNED ) FROM tab2 AS cor0
----
-2473
-5018
-6039

skipif mysql # not compatible
query I rowsort label-1561
SELECT + cor0.col0 * CAST ( - 37 AS INTEGER ) - - col2 * CAST ( - 82 AS INTEGER ) FROM tab2 AS cor0
----
-2473
-5018
-6039

query I rowsort
SELECT ALL - cor0.col1 - col0 * col0 AS col2 FROM tab1 AS cor0
----
-35
-4106
-6413

query I rowsort
SELECT + + col1 - col0 * - 16 FROM tab0 AS cor0
----
1515
470
657

query I rowsort
SELECT - 79 * + col2 AS col2 FROM tab0 AS cor0
----
-2607
-6478
-79

query I rowsort
SELECT ALL cor1.col1 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

query I rowsort
SELECT DISTINCT - ( + 19 + - col1 ) * 46 FROM tab2
----
-92
1840
552

query I rowsort
SELECT + - 22 AS col0 FROM tab2 AS cor0
----
-22
-22
-22

query I rowsort
SELECT ALL - 42 AS col2 FROM tab0 cor0
----
-42
-42
-42

query I rowsort
SELECT DISTINCT + 10 AS col2 FROM tab0 AS cor0
----
10

query I rowsort
SELECT ALL + + cor0.col2 * col1 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT DISTINCT - 15 AS col1 FROM tab2 AS cor0
----
-15

query I rowsort
SELECT + col0 + col0 * + cor0.col1 AS col2 FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT - + 91 * - col1 FROM tab0 AS cor0
----
7826
8281
8827

query I rowsort
SELECT ALL ( 15 ) * col1 FROM tab0
----
1290
1365
1455

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1575
SELECT DISTINCT + CAST( col2 AS SIGNED ) * + col1 FROM tab2
----
1534
646
837

skipif mysql # not compatible
query I rowsort label-1575
SELECT DISTINCT + CAST ( col2 AS INTEGER ) * + col1 FROM tab2
----
1534
646
837

query I rowsort
SELECT - cor0.col2 AS col0 FROM tab2, tab1 cor0
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba

query I rowsort
SELECT DISTINCT cor1.col2 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
26
27
38

query I rowsort
SELECT - - col0 * 81 AS col1 FROM tab0 AS cor0
----
1944
2835
7209

query I rowsort
SELECT ALL + ( col1 ) + + col1 AS col0 FROM tab1 cor0
----
20
26
52

query I rowsort
SELECT + + 94 + - cor0.col0 + cor0.col1 FROM tab2 AS cor0
----
118
32
75

query I rowsort
SELECT DISTINCT - 85 * + col1 FROM tab2 AS cor0
----
-1445
-2635
-5015

query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 AS cor0 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT ALL ( + 63 ) + col2 * - ( + cor0.col0 ) FROM tab1 AS cor0
----
-3585
-7617
-99

query I rowsort
SELECT + col2 * col0 + col1 FROM tab2
----
2087
220
3019

query IIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab2 cor2
----
972 values hashing to 01a5931cccc3dad8792a1bc6df09c614

query I rowsort
SELECT DISTINCT 38 + 72 AS col2 FROM tab0
----
110

query I rowsort
SELECT ALL tab0.col0 * - col0 + + col0 + tab0.col1 AS col0 FROM tab0
----
-1093
-466
-7741

query I rowsort
SELECT ALL + tab0.col1 + 43 * - col1 AS col1 FROM tab0
----
-3612
-3822
-4074

query I rowsort
SELECT + 31 + - col0 + + col0 * - 68 AS col0 FROM tab1
----
-176
-4385
-5489

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 38 - col2 col2 FROM tab2
----
0
11
12

query I rowsort
SELECT - 56 * + cor0.col0 + col2 AS col0 FROM tab2 AS cor0
----
-365
-4342
-4386

query I rowsort
SELECT ALL cor0.col2 * - col0 + col0 AS col0 FROM tab0 AS cor0
----
-7209
-768
0

query I rowsort
SELECT ALL - col2 * - col0 * - col2 + + 45 * col1 * col2 FROM tab2 AS cor0
----
-85006
16302
32562

query I rowsort
SELECT DISTINCT 88 AS col1 FROM tab0, tab2 AS cor0
----
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 19 + 5 col2 FROM tab1 AS cor0
----
24
24
24

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1596
SELECT ALL + CAST( NULL AS SIGNED ) + 24 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1596
SELECT ALL + CAST ( NULL AS INTEGER ) + 24 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-1597
SELECT 92 - + col2 DIV col1 AS col1 FROM tab0 AS cor0
----
92
92
92

skipif mysql # not compatible
query I rowsort label-1597
SELECT 92 - + col2 / col1 AS col1 FROM tab0 AS cor0
----
92
92
92

query I rowsort
SELECT DISTINCT tab0.col1 + - col2 * + col2 AS col2 FROM tab0
----
-1003
-6633
96

query I rowsort
SELECT DISTINCT + - 5 * - 34 + + col1 * + 97 FROM tab2 cor0
----
1819
3177
5893

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 - tab1.col2 col2 FROM tab1
----
-108
-114
-192

query I rowsort
SELECT - ( - col1 ) * col2 AS col2 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT + + cor0.col0 + + col1 * - col2 AS col1 FROM tab1 cor0
----
-1168
-1401
-506

query I rowsort
SELECT ALL + 38 + 56 AS col2 FROM tab0, tab1 AS cor0, tab0 cor1
----
27 values hashing to a4d239626cf0546ac1b2f57bb8407089

query I rowsort
SELECT col2 * - col2 + 68 * - col2 FROM tab0
----
-12300
-3333
-69

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1605
SELECT - CAST( NULL AS DECIMAL ) AS col1 FROM tab2, tab2 cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-1605
SELECT - CAST ( NULL AS REAL ) AS col1 FROM tab2, tab2 cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT - col0 + ( + 55 ) FROM tab1 AS cor0
----
-25
-9
52

query I rowsort
SELECT col0 + ( + col0 ) AS col2 FROM tab2 AS cor0
----
14
156
158

onlyif mysql # use DIV operator for integer division
query I rowsort label-1608
SELECT ALL col1 DIV + col0 + col1 FROM tab2 AS cor0
----
17
35
59

skipif mysql # not compatible
query I rowsort label-1608
SELECT ALL col1 / + col0 + col1 FROM tab2 AS cor0
----
17
35
59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1609
SELECT DISTINCT - col0 * CAST( NULL AS SIGNED ) + col1 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1609
SELECT DISTINCT - col0 * CAST ( NULL AS INTEGER ) + col1 AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - - col1 * + 35 * - col1 + + cor0.col0 * ( - col1 ) FROM tab2 AS cor0
----
-11458
-126437
-33852

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1611
SELECT ALL - col0 - - CAST( - col2 AS SIGNED ) * col0 * ( + col2 ) col0 FROM tab0 AS cor0
----
-26160
-598525
-70

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1611
SELECT ALL - col0 - - CAST ( - col2 AS INTEGER ) * col0 * ( + col2 ) col0 FROM tab0 AS cor0
----
-26160
-598525
-70

query I rowsort
SELECT - + col0 * ( col2 ) FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT DISTINCT col1 * ( + col2 ) AS col1 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT DISTINCT + + col2 - + col1 * 66 AS col2 FROM tab1 AS cor0
----
-1662
-603
-762

query I rowsort
SELECT + + col0 + ( + 76 ) FROM tab2 AS cor0
----
154
155
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-1616
SELECT DISTINCT col1 * + col0 + - col0 DIV + cor0.col0 FROM tab1 AS cor0
----
1039
639
77

skipif mysql # not compatible
query I rowsort label-1616
SELECT DISTINCT col1 * + col0 + - col0 / + cor0.col0 FROM tab1 AS cor0
----
1039
639
77

query I rowsort
SELECT ALL - col2 + - col1 * + col2 FROM tab2 AS cor0
----
-1560
-684
-864

query I rowsort
SELECT DISTINCT - cor0.col1 + + col0 AS col1 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT ALL cor0.col1 + col2 AS col2 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT DISTINCT - col2 * cor0.col2 + + 94 FROM tab1 AS cor0
----
-2822
-3155
-9122

query I rowsort
SELECT - col2 * ( - col1 * - col0 ) FROM tab0 AS cor0
----
-3395
-664118
-68112

query I rowsort
SELECT ( + 60 ) FROM tab1, tab1 AS cor0
----
9 values hashing to a97561e17ecaa618227c75a57b268f33

query I rowsort
SELECT DISTINCT - + col1 * 49 AS col0 FROM tab0 AS cor0
----
-4214
-4459
-4753

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 + col2 col2 FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT ALL 90 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 96f7a90428db93f472e0d219bab64853

query I rowsort
SELECT cor0.col0 * ( cor0.col1 ) FROM tab1 AS cor0
----
1040
640
78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1627
SELECT DISTINCT col1 * col1 + - col1 * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1627
SELECT DISTINCT col1 * col1 + - col1 * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + - 28 + - col1 FROM tab0 AS cor0
----
-114
-119
-125

query I rowsort
SELECT ALL + cor0.col1 * - col2 + - col1 - 29 FROM tab1 cor0
----
-1290
-1459
-609

query I rowsort
SELECT ALL 87 FROM tab0 cor0
----
87
87
87

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - + CAST ( + col2 AS REAL ) * cor0.col1 + + col0 AS col2 FROM tab0 AS cor0
----
-2814
-62
-7373

query I rowsort
SELECT col0 * 10 FROM tab1 AS cor0
----
30
640
800

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 21 col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 631fbd1fd929405aba54a22c2a06c757

query I rowsort
SELECT ALL col2 * + col0 * - 19 AS col0 FROM tab0
----
-138662
-15048
-665

query I rowsort
SELECT - col2 + + col1 * ( col0 ) AS col0 FROM tab2
----
1305
190
4576

query I rowsort
SELECT - col1 + - 27 FROM tab1
----
-37
-40
-53

query I rowsort
SELECT - cor0.col2 + + 65 * - cor0.col1 AS col1 FROM tab1 AS cor0
----
-1744
-707
-941

query I rowsort
SELECT 26 + - col1 * - col1 AS col2 FROM tab0 AS cor0
----
7422
8307
9435

onlyif mysql # use DIV operator for integer division
query I rowsort label-1639
SELECT + 54 + + col0 DIV cor0.col1 AS col0 FROM tab2 AS cor0
----
54
55
58

skipif mysql # not compatible
query I rowsort label-1639
SELECT + 54 + + col0 / cor0.col1 AS col0 FROM tab2 AS cor0
----
54
55
58

onlyif mysql # use DIV operator for integer division
query I rowsort label-1640
SELECT DISTINCT + - 48 + + col1 DIV col0 FROM tab0 cor0
----
-45
-46
-47

skipif mysql # not compatible
query I rowsort label-1640
SELECT DISTINCT + - 48 + + col1 / col0 FROM tab0 cor0
----
-45
-46
-47

query I rowsort
SELECT DISTINCT + 22 AS col0 FROM tab2 AS cor0
----
22

query I rowsort
SELECT - - 81 * - col0 * col2 FROM tab0 AS cor0
----
-2835
-591138
-64152

query I rowsort
SELECT DISTINCT + ( col2 ) + - col2 AS col2 FROM tab1 AS cor0
----
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1644
SELECT ( cor0.col2 ) * CAST( + col2 AS SIGNED ) + - col1 AS col0 FROM tab2 cor0
----
1427
617
698

skipif mysql # not compatible
query I rowsort label-1644
SELECT ( cor0.col2 ) * CAST ( + col2 AS INTEGER ) + - col1 AS col0 FROM tab2 cor0
----
1427
617
698

query I rowsort
SELECT ALL + - cor0.col0 + + col2 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT ALL 92 * col0 FROM tab0
----
2208
3220
8188

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 - + 88 + - cor0.col0 FROM tab2 AS cor0
----
-166
-167
-95

onlyif mysql # use DIV operator for integer division
query I rowsort label-1649
SELECT + + col0 * + col2 * + col2 + col2 DIV + col0 + col1 FROM tab0 AS cor0
----
132
26223
598527

skipif mysql # not compatible
query I rowsort label-1649
SELECT + + col0 * + col2 * + col2 + col2 / + col0 + col1 FROM tab0 AS cor0
----
132
26223
598527

query I rowsort
SELECT DISTINCT - - col2 * col2 + + col2 FROM tab0 AS cor0
----
1122
2
6806

query I rowsort
SELECT - col1 * - col2 + 55 AS col0 FROM tab2 cor0
----
1589
701
892

query I rowsort
SELECT - cor0.col0 + - col2 * - col1 FROM tab0 cor0
----
2814
62
7373

query I rowsort
SELECT DISTINCT + 75 AS col2 FROM tab2 cor0
----
75

query I rowsort
SELECT + col2 * - ( cor0.col1 ) AS col0 FROM tab1 cor0
----
-1248
-1404
-570

query I rowsort
SELECT ALL + 96 + - col1 * + col2 + col0 AS col0 FROM tab2
----
-1360
-471
-734

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1656
SELECT - - col1 + CAST( 75 AS SIGNED ) * col1 * + 96 AS col0 FROM tab2 AS cor0
----
122417
223231
424859

skipif mysql # not compatible
query I rowsort label-1656
SELECT - - col1 + CAST ( 75 AS INTEGER ) * col1 * + 96 AS col0 FROM tab2 AS cor0
----
122417
223231
424859

query I rowsort
SELECT - col0 * col2 * cor0.col2 FROM tab0 AS cor0
----
-26136
-35
-598436

query I rowsort
SELECT + + col1 * - col1 + col0 - col2 AS col1 FROM tab2 AS cor0
----
-248
-3429
-981

query I rowsort
SELECT + col0 - + col1 AS col2 FROM tab2 cor0
----
-24
19
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-1660
SELECT + col1 + - col2 DIV col0 - + col1 * + col0 FROM tab1 AS cor0
----
-1028
-630
-70

skipif mysql # not compatible
query I rowsort label-1660
SELECT + col1 + - col2 / col0 - + col1 * + col0 FROM tab1 AS cor0
----
-1028
-630
-70

query I rowsort
SELECT ALL + + col0 * - col2 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT ALL col2 + tab2.col1 * col1 + col2 FROM tab2
----
1015
3533
365

onlyif mysql # use DIV operator for integer division
query I rowsort label-1663
SELECT - col1 + + col1 + col1 DIV - col1 AS col2 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1663
SELECT - col1 + + col1 + col1 / - col1 AS col2 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT col1 * col2 + - col2 FROM tab1 AS cor0
----
1152
1350
513

query I rowsort
SELECT - + col1 * col2 * - col1 - - col1 * col2 FROM tab1 AS cor0
----
17472
37908
6270

onlyif mysql # use DIV operator for integer division
query I rowsort label-1666
SELECT + col1 DIV + col1 + cor0.col1 FROM tab2 cor0
----
18
32
60

skipif mysql # not compatible
query I rowsort label-1666
SELECT + col1 / + col1 + cor0.col1 FROM tab2 cor0
----
18
32
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + cor0.col1 * - cor0.col0 col2 FROM tab1 AS cor0
----
-36480
-4212
-99840

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col2 = col0
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

query I rowsort
SELECT + col0 + + col1 * - tab2.col1 AS col0 FROM tab2 WHERE NULL <= ( NULL )
----

query I rowsort
SELECT ALL + tab1.col0 * + col0 AS col2 FROM tab1
----
4096
6400
9

query I rowsort
SELECT 58 + tab1.col2 AS col2 FROM tab1
----
112
115
154

query I rowsort
SELECT ALL col0 * col2 * col0 AS col2 FROM tab2
----
1323
158184
237158

onlyif mysql # use DIV operator for integer division
query I rowsort label-1673
SELECT DISTINCT col2 DIV + col2 AS col2 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-1673
SELECT DISTINCT col2 / + col2 AS col2 FROM tab0
----
1

query I rowsort
SELECT ALL + col2 * col1 * tab0.col1 AS col1 FROM tab0
----
244068
679042
9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-1675
SELECT ALL - col1 DIV col1 AS col0 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1675
SELECT ALL - col1 / col1 AS col0 FROM tab1
----
-1
-1
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-1676
SELECT DISTINCT + col1 DIV - col1 FROM tab0 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-1676
SELECT DISTINCT + col1 / - col1 FROM tab0 cor0
----
-1

query I rowsort
SELECT DISTINCT - col0 * - col2 FROM tab0 cor0
----
35
7298
792

query I rowsort
SELECT DISTINCT tab2.col2 + - tab2.col0 * col2 FROM tab2
----
-162
-2002
-2964

query I rowsort
SELECT ALL col1 + tab1.col2 FROM tab1
----
109
67
80

query I rowsort
SELECT DISTINCT + + col2 + col1 AS col2 FROM tab1 cor0
----
109
67
80

query I rowsort
SELECT DISTINCT - col1 * + col0 + col0 AS col0 FROM tab0 AS cor0
----
-2040
-3360
-8010

query I rowsort
SELECT ALL + + col0 + + col0 * col0 AS col0 FROM tab0 AS cor0
----
1260
600
8010

query I rowsort
SELECT ALL + ( - col2 ) + col2 + + col1 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT ALL + col0 - - col1 AS col1 FROM tab2
----
137
38
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-1685
SELECT - col1 DIV - tab1.col1 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1685
SELECT - col1 / - tab1.col1 FROM tab1
----
1
1
1

query I rowsort
SELECT - tab1.col0 + + col1 * col1 * col2 AS col2 FROM tab1
----
16144
36501
5636

query I rowsort
SELECT ALL + col2 FROM tab2 WHERE + col2 <> + col0
----
26
27
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + tab0.col0 col2 FROM tab0
----
110
132
180

query I rowsort
SELECT DISTINCT tab2.col0 * col0 - col2 * - col2 AS col2 FROM tab2
----
6760
7685
778

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col0 ) - + col2 col1 FROM tab2
----
-104
-117
-34

query I rowsort
SELECT DISTINCT 52 * - col2 FROM tab1
----
-2808
-2964
-4992

query I rowsort
SELECT + tab1.col2 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT ALL - ( + cor0.col2 ) AS col1 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc

query I rowsort
SELECT DISTINCT + 49 + col2 + + col0 FROM tab0 AS cor0
----
106
220
85

query I rowsort
SELECT col1 * + col1 + col0 AS col0 FROM tab2
----
3559
368
968

query I rowsort
SELECT DISTINCT + col2 - - col2 / - tab1.col0 FROM tab1 WHERE col0 * - col1 IN ( col2 )
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( col1 + col1 ) IN ( col2 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

query I rowsort
SELECT tab2.col2 * - tab2.col0 FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT + col1 + + col0 * + col2 * col1 AS col1 FROM tab0
----
3492
664209
68198

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT IN ( col0 + tab2.col1 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col0 NOT BETWEEN col2 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) = - col0 * - col1 + + col2 * col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + col1 + tab2.col1 / - col1 col2 FROM tab2 WHERE NULL < - col0 + col0
----

query I rowsort
SELECT col2 * - col2 + col1 AS col1 FROM tab2
----
-1427
-617
-698

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - col0 col1 FROM tab2
----
-137
-38
-96

query I rowsort
SELECT col2 - col0 * col0 AS col2 FROM tab2
----
-22
-6058
-6203

query I rowsort
SELECT col2 * col0 + col2 AS col2 FROM tab1
----
216
3705
7776

onlyif mysql # use DIV operator for integer division
query I rowsort label-1708
SELECT ALL + tab1.col0 - + col0 DIV col0 FROM tab1
----
2
63
79

skipif mysql # not compatible
query I rowsort label-1708
SELECT ALL + tab1.col0 - + col0 / col0 FROM tab1
----
2
63
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-1709
SELECT ALL - col1 * col1 DIV - col1 AS col0 FROM tab1 cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-1709
SELECT ALL - col1 * col1 / - col1 AS col0 FROM tab1 cor0
----
10
13
26

query I rowsort
SELECT - col2 + col1 * 53 FROM tab1 AS cor0
----
1324
473
593

query I rowsort
SELECT DISTINCT + col0 * + col1 + col0 FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT DISTINCT - col1 * - col2 + 92 FROM tab0 AS cor0
----
189
2930
7554

query I rowsort
SELECT ALL - 32 AS col2 FROM tab1 cor0
----
-32
-32
-32

query I rowsort
SELECT + ( + 66 + - cor0.col1 ) AS col2 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to ce53d5cea0b8032d42407e5e868724e6

query I rowsort
SELECT ALL - 31 + + col2 FROM tab0 AS cor0
----
-30
2
51

query I rowsort
SELECT - col0 * - col0 + + 20 * + col0 * + col0 FROM tab0
----
12096
166341
25725

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1717
SELECT ALL - - cor0.col1 * + CAST( 34 AS SIGNED ) FROM tab0 AS cor0
----
2924
3094
3298

skipif mysql # not compatible
query I rowsort label-1717
SELECT ALL - - cor0.col1 * + CAST ( 34 AS INTEGER ) FROM tab0 AS cor0
----
2924
3094
3298

query I rowsort
SELECT - - col1 * col2 AS col0 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT DISTINCT 68 AS col0 FROM tab1
----
68

query I rowsort
SELECT DISTINCT - cor0.col0 * - 19 AS col0 FROM tab1, tab0 AS cor0
----
1691
456
665

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 16 col1 FROM tab2
----
16

query I rowsort
SELECT 70 * - col2 + col1 FROM tab0
----
-2224
-5649
27

query I rowsort
SELECT - col2 * - col0 + 6 FROM tab2
----
195
2034
3008

query I rowsort
SELECT DISTINCT 81 * col2 + - col2 FROM tab2 AS cor0
----
2080
2160
3040

query I rowsort
SELECT ALL cor0.col2 + - 26 FROM tab2 AS cor0
----
0
1
12

query I rowsort
SELECT - tab2.col0 * + ( + 44 ) * col0 AS col1 FROM tab2
----
-2156
-267696
-274604

query I rowsort
SELECT - col0 + ( + cor0.col2 * + 56 ) + 5 FROM tab2 AS cor0
----
1383
1510
2054

query I rowsort
SELECT + + cor0.col0 * cor0.col1 + col2 FROM tab2 cor0
----
1381
244
4628

query I rowsort
SELECT DISTINCT - 38 * - col1 * - cor0.col0 + - col1 FROM tab1 AS cor0
----
-24330
-2990
-39533

query I rowsort
SELECT DISTINCT + - col2 + + 38 FROM tab2 AS cor0
----
0
11
12

query I rowsort
SELECT + - col1 + + cor0.col2 AS col1 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT - 7 * - cor0.col1 + - col2 FROM tab2 AS cor0
----
190
387
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col2 ) + col2 * - ( + col0 ) + col0 col1 FROM tab1 AS cor0
----
-105
-3527
-7504

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * col0 + - col0 col0 FROM tab2
----
182
1950
2923

query I rowsort
SELECT DISTINCT + 61 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + col0 * - col0 col1 FROM tab1
----
-4086
-6387
17

query I rowsort
SELECT ALL col0 + + 19 AS col0 FROM tab2
----
26
97
98

query IIIIIIIII rowsort
SELECT * FROM tab1, tab2 cor0 CROSS JOIN tab2 cor1
----
243 values hashing to 042fa16c43ab365359ee93c064e44127

query I rowsort
SELECT ALL - col0 + + col1 + + col2 * + col2 AS col1 FROM tab1
----
2939
3195
9149

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 84 * + ( - col2 ) * - col2 + cor0.col2 * cor0.col1 col1 FROM tab2 AS cor0
----
-120650
-55250
-60399

onlyif mysql # use DIV operator for integer division
query I rowsort label-1741
SELECT ( + 25 ) DIV col0 + - 39 AS col1 FROM tab2 AS cor0
----
-36
-39
-39

skipif mysql # not compatible
query I rowsort label-1741
SELECT ( + 25 ) / col0 + - 39 AS col1 FROM tab2 AS cor0
----
-36
-39
-39

query I rowsort
SELECT DISTINCT + ( - col2 ) + + col1 FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT 92 + ( col0 ) * + ( - col0 * col0 ) AS col0 FROM tab1 AS cor0
----
-262052
-511908
65

query I rowsort
SELECT - col0 * - 63 AS col1 FROM tab1 AS cor0
----
189
4032
5040

query I rowsort
SELECT ALL col0 + - col2 * col1 FROM tab1 AS cor0
----
-1168
-1401
-506

query I rowsort
SELECT DISTINCT - ( - col1 ) - col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT col1 + - col0 * tab1.col2 FROM tab1
----
-136
-3638
-7667

query I rowsort
SELECT - ( 75 ) * - col0 AS col2 FROM tab0
----
1800
2625
6675

query I rowsort
SELECT col0 * col0 * col0 AS col0 FROM tab0
----
13824
42875
704969

query I rowsort
SELECT ALL - ( col2 ) * col1 + + col2 FROM tab1
----
-1152
-1350
-513

onlyif mysql # use DIV operator for integer division
query I rowsort label-1751
SELECT DISTINCT - col2 DIV + tab2.col1 + col0 AS col2 FROM tab2
----
7
77
78

skipif mysql # not compatible
query I rowsort label-1751
SELECT DISTINCT - col2 / + tab2.col1 + col0 AS col2 FROM tab2
----
7
77
78

query I rowsort
SELECT - col2 + 79 + + col0 FROM tab0 AS cor0
----
113
70
86

query I rowsort
SELECT ALL + - ( - col0 ) + col1 FROM tab2 AS cor0
----
137
38
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 15 * + col2 col1 FROM tab0
----
1230
15
495

query I rowsort
SELECT DISTINCT + - 87 * - col2 AS col1 FROM tab2 AS cor0
----
2262
2349
3306

query I rowsort
SELECT col0 * col2 + col0 FROM tab1 AS cor0
----
165
3712
7760

query I rowsort
SELECT ALL 48 * - col2 + - col2 FROM tab0 AS cor0
----
-1617
-4018
-49

query I rowsort
SELECT DISTINCT + ( - col2 ) * + col1 + col1 * col0 - col1 FROM tab1 AS cor0
----
-1352
-221
60

query I rowsort
SELECT - + 13 AS col1 FROM tab2 AS cor0
----
-13
-13
-13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( cor0.col2 ) col1 FROM tab1 cor0
----
-54
-57
-96

query I rowsort
SELECT ( col0 ) * col2 + col1 AS col0 FROM tab0 AS cor0
----
132
7389
878

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 84 col0 FROM tab2 AS cor0
----
84
84
84

query I rowsort
SELECT ALL + 96 * col0 FROM tab0 cor0
----
2304
3360
8544

query I rowsort
SELECT 60 * col0 + col2 * + col2 FROM tab1
----
14016
3096
7089

query I rowsort
SELECT DISTINCT + - col2 - col2 FROM tab1 AS cor0
----
-108
-114
-192

query I rowsort
SELECT ALL - + 24 * - col1 FROM tab1 AS cor0
----
240
312
624

query I rowsort
SELECT DISTINCT col2 * + col1 * - col1 + cor0.col2 FROM tab1 AS cor0
----
-16128
-36450
-5643

query I rowsort
SELECT DISTINCT - 3 + col2 FROM tab0 AS cor0
----
-2
30
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 + col2 - - col2 col2 FROM tab2 AS cor0
----
130
155
61

query I rowsort
SELECT 60 + + col2 FROM tab1 AS cor0
----
114
117
156

query I rowsort
SELECT ALL + + col2 + - col2 * - col2 AS col0 FROM tab1 AS cor0
----
2970
3306
9312

query I rowsort
SELECT - col1 - + col0 * + 97 FROM tab0 AS cor0
----
-2414
-3492
-8724

onlyif mysql # use DIV operator for integer division
query I rowsort label-1773
SELECT DISTINCT col0 + ( col0 ) * col2 DIV + col2 FROM tab0 cor0
----
178
48
70

skipif mysql # not compatible
query I rowsort label-1773
SELECT DISTINCT col0 + ( col0 ) * col2 / + col2 FROM tab0 cor0
----
178
48
70

query I rowsort
SELECT col1 + + ( col1 ) * cor0.col0 AS col2 FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT ALL - cor0.col0 * ( - col1 ) FROM tab0 AS cor0
----
2064
3395
8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - col0 col0 FROM tab2 cor0
----
-49
-6084
-6241

query I rowsort
SELECT + + cor0.col0 + - 26 * 54 * col2 FROM tab2 AS cor0
----
-36426
-37901
-53273

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * col2 col0 FROM tab0 cor0
----
1
1089
6724

query I rowsort
SELECT DISTINCT + col0 * - 39 AS col2 FROM tab1 AS cor0
----
-117
-2496
-3120

query I rowsort
SELECT DISTINCT col1 * ( 0 + col1 ) AS col2 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT DISTINCT - ( - cor0.col1 ) FROM tab0 cor0
----
86
91
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 - + cor0.col2 * col2 col2 FROM tab1 cor0
----
-2862
-3192
-9120

query I rowsort
SELECT - + 35 AS col1 FROM tab1 AS cor0
----
-35
-35
-35

query I rowsort
SELECT ALL - 53 - + 72 AS col2 FROM tab0 AS cor0
----
-125
-125
-125

query I rowsort
SELECT + - col2 + 33 AS col0 FROM tab0 AS cor0
----
-49
0
32

query I rowsort
SELECT + col2 * - col2 + col0 AS col1 FROM tab1
----
-2913
-3185
-9136

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1787
SELECT CAST( + col0 AS SIGNED ) * - col1 AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

skipif mysql # not compatible
query I rowsort label-1787
SELECT CAST ( + col0 AS INTEGER ) * - col1 AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT ALL 7 - + 95 FROM tab0, tab1 AS cor0
----
9 values hashing to 467301f887614eb7beda22c561b0fad2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * col2 col1 FROM tab0
----
35
7298
792

query I rowsort
SELECT col0 * col1 * + 91 AS col1 FROM tab2 AS cor0
----
122213
19747
418782

query I rowsort
SELECT - - cor0.col1 * col0 + + col1 AS col2 FROM tab2 AS cor0
----
1360
248
4661

query I rowsort
SELECT + col1 * + 83 + + col2 AS col2 FROM tab0 cor0
----
7171
7635
8052

query I rowsort
SELECT - 32 AS col1 FROM tab1 AS cor0
----
-32
-32
-32

query I rowsort
SELECT ALL - + col0 + col0 - + col1 AS col1 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT DISTINCT + ( col1 ) * + col0 + - col1 + ( col2 ) FROM tab2 cor0
----
1364
213
4569

query I rowsort
SELECT 37 AS col1 FROM tab1 AS cor0
----
37
37
37

query I rowsort
SELECT + 95 + + col2 FROM tab0 cor0
----
128
177
96

query I rowsort
SELECT ALL col1 + - cor0.col1 * 52 FROM tab1 AS cor0
----
-1326
-510
-663

query I rowsort
SELECT DISTINCT + - 75 FROM tab1 AS cor0
----
-75

query I rowsort
SELECT + 20 + col0 AS col1 FROM tab1 AS cor0
----
100
23
84

query I rowsort
SELECT ALL - 40 + tab0.col0 FROM tab0, tab2 cor0, tab1 cor1
----
27 values hashing to 9834993ff0801be0cd95c59c2cfd9fc9

query I rowsort
SELECT - + 78 * + col0 + - 42 * - col1 * col2 AS col0 FROM tab1 AS cor0
----
18948
46176
58734

onlyif mysql # use DIV operator for integer division
query I rowsort label-1803
SELECT tab1.col0 DIV 97 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-1803
SELECT tab1.col0 / 97 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

onlyif mysql # use DIV operator for integer division
query I rowsort label-1804
SELECT + - col2 * + ( - 42 ) + + col1 + col0 * col2 DIV col0 FROM tab2 AS cor0
----
1177
1192
1651

skipif mysql # not compatible
query I rowsort label-1804
SELECT + - col2 * + ( - 42 ) + + col1 + col0 * col2 / col0 FROM tab2 AS cor0
----
1177
1192
1651

query I rowsort
SELECT - - col2 * 56 FROM tab0 AS cor0
----
1848
4592
56

query I rowsort
SELECT - col2 * 59 * col1 AS col2 FROM tab1 AS cor0
----
-33630
-73632
-82836

query I rowsort
SELECT ALL - col2 + col0 AS col1 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT col1 + + 0 AS col0 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT + + col2 + ( col2 ) * col0 AS col1 FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT + + col0 + - ( cor0.col2 ) * + col2 AS col1 FROM tab1 AS cor0
----
-2913
-3185
-9136

query I rowsort
SELECT col2 + 37 * - col2 FROM tab1 AS cor0
----
-1944
-2052
-3456

query I rowsort
SELECT DISTINCT col0 + ( 76 * col1 ) FROM tab0 AS cor0
----
6560
7005
7407

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1813
SELECT + col2 * ( - 8 ) + - col1 * - CAST( col1 + + col1 AS SIGNED ) FROM tab0 AS cor0
----
14528
15906
18810

skipif mysql # not compatible
query I rowsort label-1813
SELECT + col2 * ( - 8 ) + - col1 * - CAST ( col1 + + col1 AS INTEGER ) FROM tab0 AS cor0
----
14528
15906
18810

onlyif mysql # use DIV operator for integer division
query I rowsort label-1814
SELECT DISTINCT + col1 DIV + col1 AS col0 FROM tab1 cor0
----
1

skipif mysql # not compatible
query I rowsort label-1814
SELECT DISTINCT + col1 / + col1 AS col0 FROM tab1 cor0
----
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1815
SELECT - cor0.col1 * CAST( col2 + col0 AS SIGNED ) FROM tab0 AS cor0
----
-15561
-3492
-4902

skipif mysql # not compatible
query I rowsort label-1815
SELECT - cor0.col1 * CAST ( col2 + col0 AS INTEGER ) FROM tab0 AS cor0
----
-15561
-3492
-4902

query I rowsort
SELECT ALL + col0 + - 54 * - 54 AS col0 FROM tab0 AS cor0
----
2940
2951
3005

onlyif mysql # use DIV operator for integer division
query I rowsort label-1817
SELECT - col2 DIV - ( + 29 ) + col1 FROM tab0 AS cor0
----
87
93
97

skipif mysql # not compatible
query I rowsort label-1817
SELECT - col2 / - ( + 29 ) + col1 FROM tab0 AS cor0
----
87
93
97

query I rowsort
SELECT DISTINCT + col2 + + 30 FROM tab2 AS cor0
----
56
57
68

query I rowsort
SELECT - col2 + col1 + - col2 * - col1 AS col0 FROM tab1 AS cor0
----
1165
1376
523

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + col2 col1 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT DISTINCT + - col1 * 60 FROM tab0 AS cor0
----
-5160
-5460
-5820

query I rowsort
SELECT + 13 * col0 FROM tab1 AS cor0
----
1040
39
832

query I rowsort
SELECT DISTINCT + col2 * 94 - - col1 * 99 AS col0 FROM tab0 cor0
----
11616
16717
9697

query I rowsort
SELECT + + ( 58 ) * col2 AS col0 FROM tab2 AS cor0
----
1508
1566
2204

query I rowsort
SELECT DISTINCT - ( col2 ) + - col1 AS col1 FROM tab1 AS cor0
----
-109
-67
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-1826
SELECT + col2 DIV - cor0.col1 AS col1 FROM tab2 AS cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-1826
SELECT + col2 / - cor0.col1 AS col1 FROM tab2 AS cor0
----
-2
0
0

query I rowsort
SELECT DISTINCT + + 90 * + col0 AS col0 FROM tab0 AS cor0
----
2160
3150
8010

onlyif mysql # use DIV operator for integer division
query I rowsort label-1828
SELECT ALL + + col0 * col0 DIV 91 FROM tab0 AS cor0
----
13
6
87

skipif mysql # not compatible
query I rowsort label-1828
SELECT ALL + + col0 * col0 / 91 FROM tab0 AS cor0
----
13
6
87

query I rowsort
SELECT ALL 73 + - col2 * ( tab0.col1 ) + - col2 FROM tab0
----
-25
-2798
-7471

query I rowsort
SELECT ALL - 35 * + col1 + col1 AS col1 FROM tab1
----
-340
-442
-884

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1831
SELECT 32 + col1 + + CAST( + 30 AS SIGNED ) FROM tab1
----
72
75
88

skipif mysql # not compatible
query I rowsort label-1831
SELECT 32 + col1 + + CAST ( + 30 AS INTEGER ) FROM tab1
----
72
75
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + - col1 * + col2 * 27 col2 FROM tab0
----
-201385
-2584
-76602

query I rowsort
SELECT 96 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to f1d978c2d5bfc6f26e0907ac777be83e

query I rowsort
SELECT 72 * - col2 FROM tab1
----
-3888
-4104
-6912

query I rowsort
SELECT - ( col0 + + ( + 59 ) ) FROM tab0
----
-148
-83
-94

query I rowsort
SELECT - 11 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 7120875811e4d19a19b69cd34b6bc202

query I rowsort
SELECT + + col0 + - col1 AS col1 FROM tab0 AS cor0
----
-2
-62
-62

query I rowsort
SELECT + + 56 + col2 FROM tab1 AS cor0
----
110
113
152

query I rowsort
SELECT ALL - + 16 * - col2 AS col2 FROM tab2 AS cor0
----
416
432
608

query I rowsort
SELECT - 27 * - col0 + col1 + + cor0.col1 * ( col0 ) AS col2 FROM tab2 AS cor0
----
3493
437
6767

query I rowsort
SELECT 1 * + 27 + - col0 AS col0 FROM tab1 AS cor0
----
-37
-53
24

query I rowsort
SELECT DISTINCT - 50 * + cor0.col2 FROM tab2 AS cor0
----
-1300
-1350
-1900

query I rowsort
SELECT DISTINCT - col1 * + ( col2 ) AS col0 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT 58 * + col0 FROM tab2 AS cor0
----
406
4524
4582

onlyif mysql # use DIV operator for integer division
query I rowsort label-1845
SELECT ALL 96 DIV col1 + - col1 AS col2 FROM tab0 AS cor0
----
-85
-90
-97

skipif mysql # not compatible
query I rowsort label-1845
SELECT ALL 96 / col1 + - col1 AS col2 FROM tab0 AS cor0
----
-85
-90
-97

query I rowsort
SELECT + - 37 FROM tab2 AS cor0
----
-37
-37
-37

query I rowsort
SELECT ALL - cor0.col1 * - col1 AS col2 FROM tab2 AS cor0
----
289
3481
961

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1848
SELECT DISTINCT + + 60 * - col0 + cor0.col0 * ( + col0 ) * - CAST( NULL AS SIGNED ) + col2 * col0 col2 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1848
SELECT DISTINCT + + 60 * - col0 + cor0.col0 * ( + col0 ) * - CAST ( NULL AS INTEGER ) + col2 * col0 col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + col1 - + col1 * + col2 FROM tab0 AS cor0
----
-2752
-7371
0

query I rowsort
SELECT DISTINCT + - col0 * + ( col2 ) AS col2 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT DISTINCT - - col2 + + 81 AS col1 FROM tab2 AS cor0
----
107
108
119

query I rowsort
SELECT cor0.col1 * col2 + + col2 + - col0 AS col1 FROM tab1 cor0
----
1264
1455
563

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + col0 * col2 - col1 col0 FROM tab0 AS cor0
----
-63
673
7125

query I rowsort
SELECT ALL + col0 + - tab1.col2 AS col0 FROM tab1
----
-16
-51
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - col0 + 73 col1 FROM tab2 AS cor0
----
-6011
-6168
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col0 * + ( 48 ) + col2 * col0 * 62 col2 FROM tab1 AS cor0
----
10188
229248
480000

query I rowsort
SELECT - - cor0.col2 * col2 * col0 FROM tab1 AS cor0
----
207936
737280
8748

query I rowsort
SELECT DISTINCT + col1 + 10 AS col2 FROM tab0 AS cor0
----
101
107
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1859
SELECT ALL - - cor0.col1 + CAST( col1 AS SIGNED ) FROM tab2 AS cor0
----
118
34
62

skipif mysql # not compatible
query I rowsort label-1859
SELECT ALL - - cor0.col1 + CAST ( col1 AS INTEGER ) FROM tab2 AS cor0
----
118
34
62

query I rowsort
SELECT DISTINCT - col2 * + ( - col1 ) AS col2 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT ALL 28 * - cor0.col2 * + col0 + cor0.col2 - + cor0.col2 FROM tab0 AS cor0
----
-204344
-22176
-980

onlyif mysql # use DIV operator for integer division
query I rowsort label-1862
SELECT DISTINCT + col2 DIV 76 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-1862
SELECT DISTINCT + col2 / 76 FROM tab2 cor0
----
0

query I rowsort
SELECT ALL + col2 * col0 + col2 * - 22 * - col1 FROM tab0 AS cor0
----
171462
2169
63228

query I rowsort
SELECT - cor0.col1 + + cor0.col0 * cor0.col2 FROM tab1 cor0
----
136
3638
7667

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 76 * + col0 + - col2 col2 FROM tab0 AS cor0
----
1791
2659
6682

query I rowsort
SELECT ALL + 26 + + 70 FROM tab1 AS cor0
----
96
96
96

query I rowsort
SELECT DISTINCT col1 * 54 - cor0.col2 FROM tab1 AS cor0
----
1350
483
606

query I rowsort
SELECT - col2 * ( col2 ) * - 84 + + 14 * cor0.col2 AS col0 FROM tab1 AS cor0
----
245700
273714
775488

query I rowsort
SELECT ALL + + ( 85 ) FROM tab1 cor0
----
85
85
85

query I rowsort
SELECT ALL ( - ( cor0.col0 ) ) FROM tab1 cor0
----
-3
-64
-80

query I rowsort
SELECT DISTINCT 53 * + col1 * + col0 FROM tab1 AS cor0
----
33920
4134
55120

query I rowsort
SELECT ALL - - col1 - col1 * col1 AS col0 FROM tab1 AS cor0
----
-156
-650
-90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1873
SELECT DISTINCT + - CAST( 11 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-11

skipif mysql # not compatible
query I rowsort label-1873
SELECT DISTINCT + - CAST ( 11 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-11

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1874
SELECT - - col0 + + col0 * - col0 * + CAST( - col2 AS SIGNED ) FROM tab0 AS cor0
----
1260
19032
649611

skipif mysql # not compatible
query I rowsort label-1874
SELECT - - col0 + + col0 * - col0 * + CAST ( - col2 AS INTEGER ) FROM tab0 AS cor0
----
1260
19032
649611

query I rowsort
SELECT ALL + col2 + - ( cor0.col2 ) * 48 AS col1 FROM tab1 AS cor0
----
-2538
-2679
-4512

query I rowsort
SELECT ALL - col2 + tab1.col0 AS col2 FROM tab1
----
-16
-51
7

query I rowsort
SELECT ALL - col2 * - tab0.col0 + 51 FROM tab0
----
7349
843
86

query I rowsort
SELECT ALL - col0 + - ( col1 ) FROM tab2
----
-137
-38
-96

query I rowsort
SELECT ALL + col2 + ( - col2 + col1 ) FROM tab1
----
10
13
26

query I rowsort
SELECT + col2 * 60 + col0 - col0 FROM tab0 AS cor0
----
1980
4920
60

query I rowsort
SELECT DISTINCT + col2 + - 9 AS col0 FROM tab1 AS cor0
----
45
48
87

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1882
SELECT DISTINCT + col0 * ( - cor0.col1 * + CAST( col1 AS SIGNED ) ) col1 FROM tab0 AS cor0
----
-177504
-329315
-737009

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1882
SELECT DISTINCT + col0 * ( - cor0.col1 * + CAST ( col1 AS INTEGER ) ) col1 FROM tab0 AS cor0
----
-177504
-329315
-737009

skipif mysql # not compatible
query I rowsort
SELECT CAST ( 38 AS REAL ) * - cor1.col2 AS col0 FROM tab2, tab0 AS cor0, tab2 AS cor1, tab1 AS cor2
----
81 values hashing to 8bb63bf188451652895a5321eb77d505

onlyif mysql # use DIV operator for integer division
query I rowsort label-1884
SELECT - 61 + - 24 DIV - tab2.col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 527d2ca0aea538bf187d0d7e1f63cf81

skipif mysql # not compatible
query I rowsort label-1884
SELECT - 61 + - 24 / - tab2.col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 527d2ca0aea538bf187d0d7e1f63cf81

query I rowsort
SELECT DISTINCT col1 + - ( - 62 ) AS col0 FROM tab1
----
72
75
88

query I rowsort
SELECT - col1 * 46 AS col2 FROM tab2
----
-1426
-2714
-782

onlyif mysql # use DIV operator for integer division
query I rowsort label-1887
SELECT - + col2 DIV col1 + col1 - + 69 FROM tab1 AS cor0
----
-45
-63
-64

skipif mysql # not compatible
query I rowsort label-1887
SELECT - + col2 / col1 + col1 - + 69 FROM tab1 AS cor0
----
-45
-63
-64

query I rowsort
SELECT - col0 + - col1 AS col0 FROM tab2
----
-137
-38
-96

query I rowsort
SELECT DISTINCT col1 * ( col0 ) AS col0 FROM tab0
----
2064
3395
8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col2 * col1 ) + + col2 col1 FROM tab2
----
1560
684
864

query I rowsort
SELECT - col2 * - ( - tab0.col0 ) FROM tab0
----
-35
-7298
-792

onlyif mysql # use DIV operator for integer division
query I rowsort label-1892
SELECT - cor0.col2 DIV - col0 AS col0 FROM tab2 AS cor0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-1892
SELECT - cor0.col2 / - col0 AS col0 FROM tab2 AS cor0
----
0
0
3

onlyif mysql # use DIV operator for integer division
query I rowsort label-1893
SELECT col0 + + cor0.col0 DIV cor0.col0 + col0 * cor0.col2 * + col0 FROM tab0 AS cor0
----
1261
19033
649612

skipif mysql # not compatible
query I rowsort label-1893
SELECT col0 + + cor0.col0 / cor0.col0 + col0 * cor0.col2 * + col0 FROM tab0 AS cor0
----
1261
19033
649612

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1894
SELECT ALL col2 + col1 * col1 + CAST( + 64 AS SIGNED ) FROM tab0 AS cor0
----
7493
8427
9474

skipif mysql # not compatible
query I rowsort label-1894
SELECT ALL col2 + col1 * col1 + CAST ( + 64 AS INTEGER ) FROM tab0 AS cor0
----
7493
8427
9474

query I rowsort
SELECT + col2 * 76 FROM tab0
----
2508
6232
76

onlyif mysql # use DIV operator for integer division
query I rowsort label-1896
SELECT DISTINCT - tab0.col2 DIV - tab0.col0 FROM tab0, tab2 cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-1896
SELECT DISTINCT - tab0.col2 / - tab0.col0 FROM tab0, tab2 cor0
----
0
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-1897
SELECT DISTINCT col1 DIV - ( - col0 ) AS col2 FROM tab2
----
0
4

skipif mysql # not compatible
query I rowsort label-1897
SELECT DISTINCT col1 / - ( - col0 ) AS col2 FROM tab2
----
0
4

query I rowsort
SELECT ALL - 15 FROM tab0, tab0 AS cor0
----
9 values hashing to 1172c9a62bdad7db0def9205c06ee1f2

query I rowsort
SELECT + col1 * ( + col0 ) AS col0 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT col0 * col0 + - col1 AS col0 FROM tab2
----
18
6025
6224

query I rowsort
SELECT + tab2.col0 AS col1 FROM tab0, tab1, tab0 AS cor0, tab2
----
81 values hashing to 05835f29dd9cd4fa16889de54dec3cb6

query I rowsort
SELECT ALL cor0.col1 * tab2.col2 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 3fe7ddc736abb4b8aaa99f6b5ddeca84

query I rowsort
SELECT ALL + cor0.col1 * + col0 AS col1 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT + 91 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
91

query I rowsort
SELECT ALL 40 FROM tab2, tab1 AS cor0, tab0, tab1 AS cor1
----
81 values hashing to 09624b9180d40f03a4dda4b4c17356c0

query I rowsort
SELECT ALL + cor0.col2 + ( cor0.col0 ) AS col0 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT DISTINCT - + col1 * - col0 AS col0 FROM tab2 cor0
----
1343
217
4602

query I rowsort
SELECT ALL - - cor0.col2 * col0 + - col2 * col1 * col2 + 70 FROM tab2 AS cor0
----
-21476
-22340
-37786

query I rowsort
SELECT ALL - cor0.col0 * col2 + cor0.col0 FROM tab0 AS cor0
----
-7209
-768
0

query I rowsort
SELECT DISTINCT col1 + col0 + 28 FROM tab0 AS cor0
----
138
160
208

query I rowsort
SELECT ALL + col1 + 3 FROM tab0 AS cor0
----
100
89
94

query I rowsort
SELECT ALL + + cor0.col0 * col2 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT ALL cor0.col0 + + 57 * - cor0.col0 * col0 AS col2 FROM tab0 AS cor0
----
-32808
-451408
-69790

query I rowsort
SELECT - col0 + + col1 * - col2 FROM tab2 AS cor0
----
-1612
-725
-844

query I rowsort
SELECT ALL - ( col1 * + col0 + + col0 ) AS col2 FROM tab1
----
-1120
-704
-81

query I rowsort
SELECT + col1 + + col2 * + 23 AS col1 FROM tab1 cor0
----
1268
1321
2221

onlyif mysql # use DIV operator for integer division
query I rowsort label-1917
SELECT + - col1 + + col1 DIV - col0 FROM tab1 AS cor0
----
-10
-13
-34

skipif mysql # not compatible
query I rowsort label-1917
SELECT + - col1 + + col1 / - col0 FROM tab1 AS cor0
----
-10
-13
-34

query I rowsort
SELECT ALL + tab1.col2 * 52 AS col1 FROM tab1
----
2808
2964
4992

query I rowsort
SELECT DISTINCT + ( col1 * ( 12 ) ) FROM tab2
----
204
372
708

query I rowsort
SELECT - col1 * - ( - col1 ) FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT ALL + - col0 * + col0 AS col0 FROM tab0 AS cor0
----
-1225
-576
-7921

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1922
SELECT - - col1 + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1922
SELECT - - col1 + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 + + 74 * - col1 FROM tab2 AS cor0
----
-1275
-2325
-4425

query I rowsort
SELECT - 54 AS col1 FROM tab0, tab2 AS cor0, tab1 AS cor1, tab1 AS cor2
----
81 values hashing to 440ee4bea4c39df49899f4a4d88059fe

query I rowsort
SELECT + 3 AS col1 FROM tab1 AS cor0
----
3
3
3

query I rowsort
SELECT + 33 AS col0 FROM tab1 cor0
----
33
33
33

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1927
SELECT + ( 13 ) + col2 * - CAST( + col1 * col1 AS SIGNED ) FROM tab1 AS cor0
----
-16211
-36491
-5687

skipif mysql # not compatible
query I rowsort label-1927
SELECT + ( 13 ) + col2 * - CAST ( + col1 * col1 AS INTEGER ) FROM tab1 AS cor0
----
-16211
-36491
-5687

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1928
SELECT 35 * 60 * - col2 + + CAST( + col1 AS SIGNED ) * - col0 - + col1 AS col0 FROM tab0
----
-180390
-5592
-71450

skipif mysql # not compatible
query I rowsort label-1928
SELECT 35 * 60 * - col2 + + CAST ( + col1 AS INTEGER ) * - col0 - + col1 AS col0 FROM tab0
----
-180390
-5592
-71450

query I rowsort
SELECT DISTINCT + col1 + - 66 AS col2 FROM tab2
----
-35
-49
-7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 0 + 29 col2 FROM tab2 AS cor0
----
29
29
29

query I rowsort
SELECT ALL + - 16 AS col1 FROM tab0 AS cor0
----
-16
-16
-16

query I rowsort
SELECT ALL 84 + 63 * col2 FROM tab1 AS cor0
----
3486
3675
6132

query I rowsort
SELECT DISTINCT - 38 * 22 + - col1 * + 93 + + col0 FROM tab2 cor0
----
-2338
-3712
-6245

query I rowsort
SELECT - col1 + - cor0.col2 + + col2 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT + ( col2 ) * col1 * + col0 + col1 FROM tab0 AS cor0
----
3492
664209
68198

query I rowsort
SELECT - - 98 + cor0.col2 AS col1 FROM tab2 AS cor0
----
124
125
136

query I rowsort
SELECT DISTINCT + + 10 * - cor0.col1 AS col0 FROM tab1 AS cor0
----
-100
-130
-260

query I rowsort
SELECT ALL + - 34 AS col2 FROM tab0, tab1 cor0
----
9 values hashing to 40442a74794ded4c78101eefe525a5bb

query I rowsort
SELECT - ( + col1 ) + + col2 * col0 AS col1 FROM tab0 AS cor0
----
-62
706
7207

query I rowsort
SELECT 35 + col2 FROM tab0 AS cor0
----
117
36
68

query I rowsort
SELECT - col1 + col2 * 90 FROM tab0 AS cor0
----
-7
2884
7289

query I rowsort
SELECT + 13 FROM tab2, tab1 cor0
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

query I rowsort
SELECT 59 * col1 FROM tab0
----
5074
5369
5723

query I rowsort
SELECT DISTINCT - 56 FROM tab0, tab0 AS cor0 CROSS JOIN tab2, tab0 AS cor1
----
-56

query I rowsort
SELECT ALL col2 * 19 FROM tab2
----
494
513
722

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col1 + - col0 col1 FROM tab1 cor0
----
576
75
960

query I rowsort
SELECT ALL - ( cor0.col2 ) AS col0 FROM tab0 AS cor0
----
-1
-33
-82

onlyif mysql # use DIV operator for integer division
query I rowsort label-1948
SELECT + cor0.col1 DIV - CAST( + col1 AS SIGNED ) col2 FROM tab2 AS cor0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1948
SELECT + cor0.col1 / - CAST ( + col1 AS INTEGER ) col2 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT - col0 + - 47 * + col2 AS col0 FROM tab1 cor0
----
-2541
-2743
-4592

query I rowsort
SELECT DISTINCT + 82 AS col1 FROM tab1, tab2 AS cor0
----
82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1951
SELECT ALL + + col2 + ( col0 ) * col2 * + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1951
SELECT ALL + + col2 + ( col0 ) * col2 * + CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 * + ( - col1 ) FROM tab0
----
-7396
-8281
-9409

query I rowsort
SELECT DISTINCT + cor0.col0 FROM tab0, tab2, tab1 cor0
----
3
64
80

query I rowsort
SELECT DISTINCT + cor0.col2 * + 19 * + col0 FROM tab2 AS cor0
----
3591
38532
57038

query I rowsort
SELECT + + col0 * 86 - col1 AS col1 FROM tab1 AS cor0
----
232
5494
6867

query I rowsort
SELECT DISTINCT + ( + col1 ) + - col0 FROM tab0 AS cor0
----
2
62

query I rowsort
SELECT DISTINCT - ( col1 ) * col2 AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT + 77 * + 39 + col2 AS col1 FROM tab2 AS cor0
----
3029
3030
3041

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT col0 * - CAST ( col1 AS REAL ) * col0 FROM tab1
----
-234
-40960
-83200

query I rowsort
SELECT ALL - col1 - col2 AS col1 FROM tab2
----
-55
-58
-85

query I rowsort
SELECT DISTINCT col0 - + 82 AS col2 FROM tab2
----
-3
-4
-75

onlyif mysql # use DIV operator for integer division
query I rowsort label-1962
SELECT DISTINCT + col0 DIV ( 76 ) FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-1962
SELECT DISTINCT + col0 / ( 76 ) FROM tab0
----
0
1

query I rowsort
SELECT - col2 * - ( - col2 + col1 ) * - col0 FROM tab2
----
-66924
-756
63042

query I rowsort
SELECT + col2 + 35 + - col1 AS col1 FROM tab1
----
118
63
82

query I rowsort
SELECT col0 * col2 * + ( + col0 ) AS col2 FROM tab0
----
1225
19008
649522

onlyif mysql # use DIV operator for integer division
query I rowsort label-1966
SELECT DISTINCT + 72 DIV - col1 + + col2 FROM tab0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-1966
SELECT DISTINCT + 72 / - col1 + + col2 FROM tab0
----
1
33
82

query I rowsort
SELECT ( + col2 + 17 ) * 58 * tab2.col0 FROM tab2
----
17864
194532
252010

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col1 + - 81 col0 FROM tab2, tab0 AS cor0
----
9 values hashing to c88587a79007fb5f152cb316540023af

query I rowsort
SELECT ALL ( col2 ) * 70 FROM tab1 AS cor0
----
3780
3990
6720

query I rowsort
SELECT - 93 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 38f445d95788c7dc754ff688a62df03b

query I rowsort
SELECT 67 + + col0 + - ( - 4 ) AS col0 FROM tab2
----
149
150
78

query I rowsort
SELECT DISTINCT 13 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
13

query I rowsort
SELECT col1 * + 24 FROM tab2
----
1416
408
744

query I rowsort
SELECT ALL col0 * col2 + + col2 FROM tab2 AS cor0
----
2054
216
3040

query I rowsort
SELECT tab0.col1 + + col0 + col2 * - col2 FROM tab0
----
-6544
-979
131

query I rowsort
SELECT + col1 + + col0 * + col2 FROM tab1 AS cor0
----
188
3658
7693

query I rowsort
SELECT DISTINCT - + col1 - cor0.col1 AS col2 FROM tab2 AS cor0
----
-118
-34
-62

query I rowsort
SELECT ALL + col2 + + ( col1 ) * col0 FROM tab1 AS cor0
----
1136
132
697

query I rowsort
SELECT ALL + - col1 + + 67 AS col1 FROM tab0 AS cor0
----
-19
-24
-30

query I rowsort
SELECT + - col1 + + col2 AS col0 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT DISTINCT - + col1 + + cor0.col2 AS col1 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT + ( + 93 + col0 ) AS col1 FROM tab2
----
100
171
172

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 85 col0 FROM tab2, tab0 AS cor0
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b

onlyif mysql # use DIV operator for integer division
query I rowsort label-1984
SELECT + col1 DIV - col2 + col1 * ( - ( + col0 ) ) AS col0 FROM tab1
----
-1040
-640
-78

skipif mysql # not compatible
query I rowsort label-1984
SELECT + col1 / - col2 + col1 * ( - ( + col0 ) ) AS col0 FROM tab1
----
-1040
-640
-78

query I rowsort
SELECT DISTINCT - ( + tab0.col1 ) AS col1 FROM tab0
----
-86
-91
-97

query I rowsort
SELECT DISTINCT + 6 AS col2 FROM tab1 AS cor0
----
6

query I rowsort
SELECT DISTINCT - ( col0 ) * col2 * - ( - ( col1 ) ) FROM tab1 cor0
----
-36480
-4212
-99840

query I rowsort
SELECT - + 0 + col1 AS col1 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT ALL - + 21 * + cor0.col0 - 77 * + col0 AS col2 FROM tab0 cor0
----
-2352
-3430
-8722

query I rowsort
SELECT 37 * - col1 AS col1 FROM tab0 AS cor0
----
-3182
-3367
-3589

query I rowsort
SELECT ALL - col1 * + col2 - + ( 23 ) AS col2 FROM tab1 AS cor0
----
-1271
-1427
-593

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * col2 + ( col0 * - col2 ) col0 FROM tab1 AS cor0
----
-16896
-3078
-6897

query I rowsort
SELECT col1 * + col0 - col1 * col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + + col2 - col2 * 93 FROM tab1 AS cor0
----
-4968
-5244
-8832

query I rowsort
SELECT DISTINCT - 46 + col2 FROM tab2 AS cor0
----
-19
-20
-8

query I rowsort
SELECT + 1 + cor0.col0 * col1 * 77 AS col0 FROM tab0 AS cor0
----
158929
261416
623624

query I rowsort
SELECT col2 + + col2 AS col2 FROM tab2 cor0
----
52
54
76

query I rowsort
SELECT DISTINCT + col2 - col2 FROM tab0 cor0
----
0

query I rowsort
SELECT - ( col1 + tab2.col1 ) FROM tab2
----
-118
-34
-62

query I rowsort
SELECT + tab1.col2 * col1 - + col0 AS col2 FROM tab1
----
1168
1401
506

onlyif mysql # use DIV operator for integer division
query I rowsort label-2001
SELECT - 48 - col2 * col1 DIV col0 FROM tab1
----
-516
-56
-63

skipif mysql # not compatible
query I rowsort label-2001
SELECT - 48 - col2 * col1 / col0 FROM tab1
----
-516
-56
-63

query I rowsort
SELECT - cor0.col1 + col0 * - col2 FROM tab1 cor0
----
-188
-3658
-7693

query I rowsort
SELECT ALL 28 - + col0 AS col1 FROM tab2 AS cor0
----
-50
-51
21

query I rowsort
SELECT - - col0 * + cor0.col1 - - col2 AS col0 FROM tab1 AS cor0
----
1136
132
697

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - col1 col2 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT DISTINCT 88 * - cor0.col0 FROM tab2 cor0
----
-616
-6864
-6952

query I rowsort
SELECT - col2 - col1 AS col1 FROM tab1 AS cor0
----
-109
-67
-80

query I rowsort
SELECT ALL 54 + + col0 AS col2 FROM tab0 AS cor0
----
143
78
89

query I rowsort
SELECT DISTINCT + 27 AS col0 FROM tab0 AS cor0
----
27

query I rowsort
SELECT ( + col0 ) * - 94 FROM tab2 AS cor0
----
-658
-7332
-7426

query I rowsort
SELECT + ( col0 * 29 ) AS col1 FROM tab1
----
1856
2320
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 50 * + col1 col1 FROM tab1 AS cor0
----
1300
500
650

query I rowsort
SELECT DISTINCT + + ( cor0.col1 ) AS col1 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT + + cor0.col0 - cor0.col1 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT - + col0 * col0 + col2 AS col2 FROM tab1 AS cor0
----
-4039
-6304
45

query I rowsort
SELECT + col1 * - ( 87 ) + - col0 + + 62 AS col2 FROM tab1 AS cor0
----
-1149
-2203
-872

query I rowsort
SELECT - col0 * col1 - + col1 FROM tab1 AS cor0
----
-104
-1053
-650

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2018
SELECT - + cor0.col1 - CAST( NULL AS DECIMAL ) * cor0.col0 * col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2018
SELECT - + cor0.col1 - CAST ( NULL AS REAL ) * cor0.col0 * col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + ( - col0 ) + + ( + col2 * col2 ) FROM tab0
----
-34
1065
6635

query I rowsort
SELECT col2 + - col1 + + col0 AS col0 FROM tab2
----
100
3
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col1 col0 FROM tab2, tab1 cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

query I rowsort
SELECT DISTINCT + 93 * col1 FROM tab2 cor0
----
1581
2883
5487

query I rowsort
SELECT 73 * col0 FROM tab2 AS cor0
----
511
5694
5767

query I rowsort
SELECT ALL - ( ( col0 ) ) + col1 AS col0 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT DISTINCT - col0 + - col0 AS col0 FROM tab2 cor0
----
-14
-156
-158

onlyif mysql # use DIV operator for integer division
query I rowsort label-2026
SELECT DISTINCT - 86 DIV col0 AS col2 FROM tab2 AS cor0
----
-1
-12

skipif mysql # not compatible
query I rowsort label-2026
SELECT DISTINCT - 86 / col0 AS col2 FROM tab2 AS cor0
----
-1
-12

query I rowsort
SELECT + cor0.col0 + 35 * - col1 FROM tab0 AS cor0
----
-2986
-3096
-3360

query I rowsort
SELECT ALL + 60 AS col1 FROM tab2 AS cor0
----
60
60
60

query I rowsort
SELECT + 34 AS col1 FROM tab1 AS cor0
----
34
34
34

query I rowsort
SELECT - 44 + col0 + cor0.col1 AS col0 FROM tab2 AS cor0
----
-6
52
93

query I rowsort
SELECT tab1.col0 * + tab1.col2 AS col0 FROM tab1
----
162
3648
7680

query I rowsort
SELECT cor0.col0 AS col2 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + col0 * ( - col0 ) * - tab0.col1 col1 FROM tab0
----
118922
49622
720902

query I rowsort
SELECT ALL col1 + ( col0 ) AS col2 FROM tab2
----
137
38
96

query I rowsort
SELECT ( 88 ) AS col0 FROM tab2
----
88
88
88

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2037
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - col0 col0 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2037
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - col0 col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - col2 * col2 * - col2 FROM tab2 cor0
----
17576
19683
54872

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 51 col2 FROM tab1 cor0
----
51
51
51

query I rowsort
SELECT - 85 FROM tab0 cor0
----
-85
-85
-85

onlyif mysql # use DIV operator for integer division
query I rowsort label-2041
SELECT DISTINCT col1 + - col0 * col2 DIV col2 AS col1 FROM tab0 AS cor0
----
2
62

skipif mysql # not compatible
query I rowsort label-2041
SELECT DISTINCT col1 + - col0 * col2 / col2 AS col1 FROM tab0 AS cor0
----
2
62

query I rowsort
SELECT DISTINCT + col0 + col0 * col1 + cor0.col1 AS col1 FROM tab0 AS cor0
----
2174
3527
8279

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2043
SELECT CAST( - col1 AS SIGNED ) FROM tab2 AS cor0
----
-17
-31
-59

skipif mysql # not compatible
query I rowsort label-2043
SELECT CAST ( - col1 AS INTEGER ) FROM tab2 AS cor0
----
-17
-31
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 37 * col0 + + col2 * + col1 col1 FROM tab0
----
-1198
1950
4169

query I rowsort
SELECT ALL - col2 + - col2 + - col0 * col0 FROM tab1
----
-117
-4210
-6592

onlyif mysql # use DIV operator for integer division
query I rowsort label-2046
SELECT - - col0 * col0 * + col2 + + col0 DIV cor0.col1 + col1 FROM tab2 cor0
----
1354
158244
237179

skipif mysql # not compatible
query I rowsort label-2046
SELECT - - col0 * col0 * + col2 + + col0 / cor0.col1 + col1 FROM tab2 cor0
----
1354
158244
237179

query I rowsort
SELECT DISTINCT col0 * + col1 + - col2 AS col0 FROM tab1 cor0
----
24
583
944

onlyif mysql # use DIV operator for integer division
query I rowsort label-2048
SELECT + + col0 + cor0.col1 DIV col2 AS col1 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-2048
SELECT + + col0 + cor0.col1 / col2 AS col1 FROM tab1 AS cor0
----
3
64
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-2049
SELECT ALL + col1 + col1 DIV + col2 AS col2 FROM tab1 AS cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-2049
SELECT ALL + col1 + col1 / + col2 AS col2 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT DISTINCT + + cor0.col2 * col0 * col0 AS col1 FROM tab1 cor0
----
233472
486
614400

query I rowsort
SELECT - + col1 * + col0 * - cor0.col0 AS col1 FROM tab2 AS cor0
----
106097
1519
358956

onlyif mysql # use DIV operator for integer division
query I rowsort label-2052
SELECT - col2 + + col1 * cor0.col1 DIV + col0 FROM tab1 AS cor0
----
-56
-94
171

skipif mysql # not compatible
query I rowsort label-2052
SELECT - col2 + + col1 * cor0.col1 / + col0 FROM tab1 AS cor0
----
-56
-94
171

query I rowsort
SELECT ALL + - col0 * + col1 - col0 * col1 AS col1 FROM tab2 AS cor0
----
-2686
-434
-9204

query I rowsort
SELECT DISTINCT cor0.col0 * col1 + + col2 FROM tab2 AS cor0
----
1381
244
4628

query I rowsort
SELECT col1 * cor0.col0 FROM tab1 cor0
----
1040
640
78

query I rowsort
SELECT ALL - tab2.col0 * - col0 FROM tab2
----
49
6084
6241

query I rowsort
SELECT ALL - col0 * col2 * - col1 + col0 + - col2 FROM tab1
----
36487
4161
99824

query I rowsort
SELECT DISTINCT - col0 * - tab1.col0 AS col0 FROM tab1
----
4096
6400
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-2059
SELECT 18 DIV col2 + col0 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-2059
SELECT 18 / col2 + col0 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT + col0 + - col2 - col1 FROM tab0 AS cor0
----
-63
-84
-95

onlyif mysql # use DIV operator for integer division
query I rowsort label-2061
SELECT + + col0 DIV col1 - + cor0.col0 * col0 AS col1 FROM tab0 AS cor0
----
-1225
-576
-7921

skipif mysql # not compatible
query I rowsort label-2061
SELECT + + col0 / col1 - + cor0.col0 * col0 AS col1 FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT + col1 + + cor0.col0 * col2 AS col1 FROM tab1 AS cor0
----
188
3658
7693

onlyif mysql # use DIV operator for integer division
query I rowsort label-2063
SELECT + - col0 - + col0 DIV col2 FROM tab1 AS cor0
----
-3
-65
-80

skipif mysql # not compatible
query I rowsort label-2063
SELECT + - col0 - + col0 / col2 FROM tab1 AS cor0
----
-3
-65
-80

query I rowsort
SELECT + 41 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e

query I rowsort
SELECT ALL 63 AS col0 FROM tab1
----
63
63
63

query I rowsort
SELECT ALL 51 AS col0 FROM tab0
----
51
51
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 98 * col1 * + col0 col2 FROM tab1
----
101920
62720
7644

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 - - col2 * col0 col2 FROM tab0 cor0
----
34
7216
759

query I rowsort
SELECT - 9 FROM tab0 AS cor0
----
-9
-9
-9

onlyif mysql # use DIV operator for integer division
query I rowsort label-2070
SELECT ALL + col1 DIV - col1 AS col0 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2070
SELECT ALL + col1 / - col1 AS col0 FROM tab0
----
-1
-1
-1

query III rowsort
SELECT ALL * FROM tab2 WHERE ( + col1 - col1 * col2 ) IN ( col1 * - col2 + - col0 + + tab2.col1 * - col2 )
----

query I rowsort
SELECT - col2 * + tab1.col1 + - col0 * + col2 FROM tab1
----
-1566
-4218
-8928

query I rowsort
SELECT - col2 * - tab0.col2 - - col2 FROM tab0
----
1122
2
6806

query I rowsort
SELECT DISTINCT col2 + tab2.col0 * col1 FROM tab2
----
1381
244
4628

query I rowsort
SELECT - col1 FROM tab0 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT + col2 * col1 + + col1 AS col1 FROM tab2
----
1593
663
868

query I rowsort
SELECT tab1.col2 * + col2 + + col0 + - col1 * + col1 AS col1 FROM tab1
----
2243
3213
9127

query III rowsort
SELECT ALL * FROM tab0 WHERE col2 < ( - col1 / - col1 - col2 )
----

query I rowsort
SELECT + col0 - tab1.col1 FROM tab1
----
-23
54
67

query I rowsort
SELECT ALL col0 * - tab1.col1 - col2 FROM tab1
----
-1136
-132
-697

query I rowsort
SELECT - col2 * col0 * tab2.col1 FROM tab2
----
-119652
-51034
-5859

query I rowsort
SELECT + col1 + col1 AS col0 FROM tab1 WHERE NOT NULL > ( NULL )
----

query I rowsort
SELECT col1 + - col2 AS col2 FROM tab2
----
-21
33
4

query I rowsort
SELECT ALL + col1 * col2 * col0 AS col0 FROM tab1
----
36480
4212
99840

query I rowsort
SELECT DISTINCT col0 * col0 * col1 AS col0 FROM tab2
----
106097
1519
358956

query I rowsort
SELECT col0 AS col1 FROM tab0 WHERE NOT NULL > ( - col1 * col2 + col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL IN ( - col2 / - col1 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-2088
SELECT + tab0.col2 DIV + tab0.col2 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2088
SELECT + tab0.col2 / + tab0.col2 FROM tab0
----
1
1
1

query I rowsort
SELECT DISTINCT tab0.col2 + + col0 + tab0.col0 AS col2 FROM tab0
----
260
71
81

query I rowsort
SELECT - col0 * col1 FROM tab2 WHERE ( NULL ) = ( NULL )
----

query I rowsort
SELECT col0 * col0 * + col2 AS col0 FROM tab2
----
1323
158184
237158

query I rowsort
SELECT ALL - col0 + + col0 + col2 FROM tab1
----
54
57
96

query I rowsort
SELECT + col0 * col0 + + tab2.col0 - - col1 FROM tab2
----
6221
6337
87

query I rowsort
SELECT + col0 * + col1 + col1 AS col0 FROM tab2 WHERE ( NULL ) IN ( col2 * col2 )
----

query I rowsort
SELECT tab2.col1 * + col1 AS col2 FROM tab2
----
289
3481
961

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab1.col1 + col1 * - col2 col1 FROM tab1
----
-1235
-1378
-560

query I rowsort
SELECT col2 FROM tab2 WHERE NOT NULL = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col0 + - tab0.col2 / col2 IN ( + col2 + col2 * tab0.col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab0.col0 * + col2 + + col1 * - col2 col0 FROM tab0
----
-164
-2046
-62

query I rowsort
SELECT col0 * - col2 - col0 FROM tab0
----
-70
-7387
-816

query I rowsort
SELECT - cor0.col1 * + cor0.col0 AS col2 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT - col2 + cor0.col1 * + col0 FROM tab2 AS cor0
----
1305
190
4576

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 col0 + col2 * + col1 FROM tab2
----
1612
725
844

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE cor0.col2 >= + col0 OR NOT col1 BETWEEN + col0 * col2 AND NULL
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - col1 col0 FROM tab2 cor0
----
-33
-4
21

query I rowsort
SELECT ALL - col2 AS col1 FROM tab1 AS cor0 WHERE NULL NOT IN ( col1 * - col0 )
----

query I rowsort
SELECT ALL col0 + + col0 AS col0 FROM tab1 cor0 WHERE NULL NOT IN ( - col2 * col0 * cor0.col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * col0 + + cor0.col0 + - cor0.col2 * - col2 col0 FROM tab1 AS cor0
----
10336
2997
3953

query I rowsort
SELECT DISTINCT cor0.col1 * + col0 + col0 + col2 FROM tab2 AS cor0
----
1460
251
4706

query I rowsort
SELECT DISTINCT - col2 * + cor0.col0 + cor0.col2 FROM tab2 AS cor0
----
-162
-2002
-2964

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2112
SELECT DISTINCT + CAST( + col1 AS SIGNED ) * col1 + 54 AS col0 FROM tab0 AS cor0
----
7450
8335
9463

skipif mysql # not compatible
query I rowsort label-2112
SELECT DISTINCT + CAST ( + col1 AS INTEGER ) * col1 + 54 AS col0 FROM tab0 AS cor0
----
7450
8335
9463

query I rowsort
SELECT ALL + - 42 * 47 AS col1 FROM tab1 cor0
----
-1974
-1974
-1974

query I rowsort
SELECT ALL - + 74 AS col2 FROM tab0 AS cor0
----
-74
-74
-74

query I rowsort
SELECT ALL + 18 * col0 + + col2 FROM tab2 AS cor0
----
1430
1460
153

onlyif mysql # use DIV operator for integer division
query I rowsort label-2116
SELECT DISTINCT - col0 DIV - 43 + cor0.col2 AS col0 FROM tab2 AS cor0
----
27
39

skipif mysql # not compatible
query I rowsort label-2116
SELECT DISTINCT - col0 / - 43 + cor0.col2 AS col0 FROM tab2 AS cor0
----
27
39

query I rowsort
SELECT - + 77 * 42 + col1 * + ( 7 ) + + col2 * col1 * col0 AS col1 FROM tab1 AS cor0
----
1160
33316
96697

query I rowsort
SELECT ALL + 25 * col2 FROM tab2 AS cor0
----
650
675
950

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2119
SELECT 77 + ( col1 ) / + CAST( NULL AS SIGNED ) + + 58 * col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2119
SELECT 77 + ( col1 ) / + CAST ( NULL AS INTEGER ) + + 58 * col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col1 * 62 FROM tab1 cor0
----
-1612
-620
-806

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 - col2 col0 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT ALL 19 * - col1 + + col2 * + col2 FROM tab2 AS cor0
----
-445
1121
140

onlyif mysql # use DIV operator for integer division
query I rowsort label-2123
SELECT - tab0.col0 DIV + col2 - col1 * col2 * + tab0.col0 AS col1 FROM tab0
----
-3430
-664119
-68112

skipif mysql # not compatible
query I rowsort label-2123
SELECT - tab0.col0 / + col2 - col1 * col2 * + tab0.col0 AS col1 FROM tab0
----
-3430
-664119
-68112

query I rowsort
SELECT col0 * + col1 + col1 * - col2 AS col0 FROM tab1
----
-1326
-208
70

query I rowsort
SELECT col1 + col1 * + col1 FROM tab1
----
110
182
702

onlyif mysql # use DIV operator for integer division
query I rowsort label-2126
SELECT - + col0 DIV + col0 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2126
SELECT - + col0 / + col0 FROM tab1 AS cor0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( 82 ) * + col0 * col1 col0 FROM tab0 AS cor0
----
-169248
-278390
-664118

query I rowsort
SELECT cor0.col2 AS col0 FROM tab2, tab2 cor0 CROSS JOIN tab0
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT ALL col2 + col1 * + col0 FROM tab1
----
1136
132
697

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2130
SELECT DISTINCT - cor0.col0 + CAST( + col1 * + col0 AS SIGNED ) FROM tab1 AS cor0
----
576
75
960

skipif mysql # not compatible
query I rowsort label-2130
SELECT DISTINCT - cor0.col0 + CAST ( + col1 * + col0 AS INTEGER ) FROM tab1 AS cor0
----
576
75
960

query I rowsort
SELECT DISTINCT + col0 + col2 AS col0 FROM tab0 cor0
----
171
36
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 48 col2 FROM tab0, tab2 cor0
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b

query I rowsort
SELECT ALL - col2 * - 22 AS col1 FROM tab0
----
1804
22
726

query I rowsort
SELECT tab1.col2 - tab1.col2 FROM tab1
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2135
SELECT ALL + col2 + - CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2135
SELECT ALL + col2 + - CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + col0 + - ( 42 ) FROM tab0 AS cor0
----
-131
-66
-77

query I rowsort
SELECT + - cor0.col1 FROM tab0 cor0
----
-86
-91
-97

query I rowsort
SELECT 75 FROM tab0, tab2, tab2 AS cor0, tab2 AS cor1
----
81 values hashing to 3384246e49f3e69ba32c165b88111fee

onlyif mysql # use DIV operator for integer division
query I rowsort label-2139
SELECT - col2 * ( col2 ) DIV cor0.col2 FROM tab1 AS cor0
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-2139
SELECT - col2 * ( col2 ) / cor0.col2 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT DISTINCT + - col2 * + ( - col1 + col1 ) FROM tab1 cor0
----
0

query I rowsort
SELECT DISTINCT tab1.col0 * - 33 FROM tab1
----
-2112
-2640
-99

onlyif mysql # use DIV operator for integer division
query I rowsort label-2142
SELECT - col1 + col1 DIV 8 AS col0 FROM tab1 AS cor0
----
-12
-23
-9

skipif mysql # not compatible
query I rowsort label-2142
SELECT - col1 + col1 / 8 AS col0 FROM tab1 AS cor0
----
-12
-23
-9

query I rowsort
SELECT ALL cor0.col2 * col2 + col2 FROM tab1 cor0
----
2970
3306
9312

query I rowsort
SELECT + col2 * cor0.col0 AS col1 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT DISTINCT + cor0.col2 * 50 FROM tab2 AS cor0
----
1300
1350
1900

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2146
SELECT + + CAST( NULL AS DECIMAL ) * + cor0.col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2146
SELECT + + CAST ( NULL AS REAL ) * + cor0.col2 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( + cor0.col2 ) * + cor0.col0 FROM tab2 cor0
----
189
2028
3002

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2148
SELECT - CAST( + col1 AS SIGNED ) AS col1 FROM tab0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-2148
SELECT - CAST ( + col1 AS INTEGER ) AS col1 FROM tab0
----
-86
-91
-97

query I rowsort
SELECT - ( 10 ) * col2 FROM tab2 AS cor0
----
-260
-270
-380

query I rowsort
SELECT + + col1 + - 49 AS col1 FROM tab0 cor0
----
37
42
48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - col0 col1 FROM tab2
----
1343
217
4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + col1 col2 FROM tab2
----
289
3481
961

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2153
SELECT + col0 * col2 + CAST( NULL AS SIGNED ) / col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2153
SELECT + col0 * col2 + CAST ( NULL AS INTEGER ) / col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT cor1.col2 AS col0 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
26
27
38

query I rowsort
SELECT DISTINCT + 11 - + 71 FROM tab0, tab2 AS cor0
----
-60

query I rowsort
SELECT - - 16 + cor0.col1 - - col1 AS col2 FROM tab2 cor0
----
134
50
78

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab1 cor0, tab0 cor1, tab2, tab2 AS cor2
----
3645 values hashing to bb6428239bf7f3ea361f6a10500a581d

query I rowsort
SELECT ALL col0 - - col1 FROM tab2 AS cor0
----
137
38
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-2159
SELECT ALL + col0 + col0 DIV - col0 AS col1 FROM tab1 AS cor0
----
2
63
79

skipif mysql # not compatible
query I rowsort label-2159
SELECT ALL + col0 + col0 / - col0 AS col1 FROM tab1 AS cor0
----
2
63
79

query I rowsort
SELECT - + cor0.col2 + + ( col1 ) AS col1 FROM tab1 AS cor0
----
-28
-47
-83

onlyif mysql # use DIV operator for integer division
query I rowsort label-2161
SELECT - - col1 + col1 DIV col1 FROM tab1 AS cor0
----
11
14
27

skipif mysql # not compatible
query I rowsort label-2161
SELECT - - col1 + col1 / col1 FROM tab1 AS cor0
----
11
14
27

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2162
SELECT DISTINCT - cor0.col1 * + CAST( - col0 * col0 AS SIGNED ) AS col2 FROM tab0 cor0
----
118825
49536
720811

skipif mysql # not compatible
query I rowsort label-2162
SELECT DISTINCT - cor0.col1 * + CAST ( - col0 * col0 AS INTEGER ) AS col2 FROM tab0 cor0
----
118825
49536
720811

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2163
SELECT DISTINCT - col0 * col1 + CAST( col1 AS SIGNED ) AS col2 FROM tab1
----
-1027
-52
-630

skipif mysql # not compatible
query I rowsort label-2163
SELECT DISTINCT - col0 * col1 + CAST ( col1 AS INTEGER ) AS col2 FROM tab1
----
-1027
-52
-630

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col0 * col0 col1 FROM tab1
----
262144
27
512000

query I rowsort
SELECT + cor0.col0 * - 62 FROM tab0 AS cor0
----
-1488
-2170
-5518

query I rowsort
SELECT DISTINCT 34 + + col1 FROM tab1
----
44
47
60

query I rowsort
SELECT - 19 + + col2 + - 45 FROM tab2
----
-26
-37
-38

onlyif mysql # use DIV operator for integer division
query I rowsort label-2168
SELECT + col1 DIV tab2.col0 AS col2 FROM tab2
----
0
0
4

skipif mysql # not compatible
query I rowsort label-2168
SELECT + col1 / tab2.col0 AS col2 FROM tab2
----
0
0
4

query I rowsort
SELECT 91 * col2 - + col1 * ( col1 ) * col1 FROM tab1 AS cor0
----
-12662
4187
6539

query I rowsort
SELECT col2 - col0 AS col1 FROM tab0 cor0
----
-34
-7
9

query I rowsort
SELECT ALL col2 - ( ( - col2 ) ) AS col1 FROM tab2 AS cor0
----
52
54
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 + col1 * - 67 col2 FROM tab1 cor0
----
-1796
-727
-967

query I rowsort
SELECT ALL col0 * 84 FROM tab2 AS cor0
----
588
6552
6636

query I rowsort
SELECT - col0 + 30 + - cor0.col2 AS col2 FROM tab2 AS cor0
----
-4
-74
-87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 + - col0 col1 FROM tab2 AS cor0
----
-104
-117
-34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + col1 col2 FROM tab1
----
100
169
676

query I rowsort
SELECT 58 * + col1 FROM tab2
----
1798
3422
986

query I rowsort
SELECT DISTINCT col0 * - col2 + - col2 AS col1 FROM tab0 AS cor0
----
-36
-7380
-825

query I rowsort
SELECT ALL col0 * - col1 * - 99 - + col1 * ( - col1 * col0 ) AS col0 FROM tab1 AS cor0
----
116480
69760
9750

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2180
SELECT + col1 + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2180
SELECT + col1 + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 52 + - col0 * col2 col1 FROM tab1 cor0
----
-110
-3596
-7628

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2182
SELECT ALL - CAST( NULL AS SIGNED ) * col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2182
SELECT ALL - CAST ( NULL AS INTEGER ) * col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 + ( + col0 ) FROM tab0
----
178
48
70

onlyif mysql # use DIV operator for integer division
query I rowsort label-2184
SELECT - col1 DIV - 4 AS col0 FROM tab1 AS cor0
----
2
3
6

skipif mysql # not compatible
query I rowsort label-2184
SELECT - col1 / - 4 AS col0 FROM tab1 AS cor0
----
2
3
6

query I rowsort
SELECT DISTINCT ( ( col0 ) ) * - 44 AS col1 FROM tab1
----
-132
-2816
-3520

query I rowsort
SELECT ALL - - 90 * - col0 + - ( 5 ) * col0 AS col1 FROM tab2 AS cor0
----
-665
-7410
-7505

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 17 * cor0.col2 col2 FROM tab0 AS cor0
----
1394
17
561

query I rowsort
SELECT DISTINCT - col1 + + col1 AS col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT - - 62 AS col1 FROM tab2 AS cor0
----
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-2190
SELECT ALL + cor0.col1 DIV + col1 AS col2 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2190
SELECT ALL + cor0.col1 / + col1 AS col2 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT ALL cor0.col2 + col2 FROM tab0 cor0
----
164
2
66

query I rowsort
SELECT DISTINCT - 5 * col2 * col2 FROM tab0 AS cor0
----
-33620
-5
-5445

query I rowsort
SELECT DISTINCT + + col0 + - col0 * col2 * - cor0.col0 AS col2 FROM tab0 AS cor0
----
1260
19032
649611

query I rowsort
SELECT DISTINCT + - col1 + - col2 AS col1 FROM tab0 AS cor0
----
-119
-173
-98

query I rowsort
SELECT - - col1 + col1 * + col2 FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT ( - col0 ) * + col1 * + col1 AS col1 FROM tab1 AS cor0
----
-13520
-2028
-6400

query I rowsort
SELECT ALL - col1 * + col1 * - col0 AS col2 FROM tab1 AS cor0
----
13520
2028
6400

query I rowsort
SELECT - col1 * col0 * + col0 FROM tab0 AS cor0
----
-118825
-49536
-720811

query I rowsort
SELECT DISTINCT 40 FROM tab0, tab0 AS cor0
----
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - col0 * + col1 ) col1 FROM tab2
----
-1343
-217
-4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab1.col1 col1 FROM tab1, tab1 AS cor0
----
10
13
26

query I rowsort
SELECT + col1 * + col2 + col1 AS col2 FROM tab0 cor0
----
194
2924
7553

query I rowsort
SELECT ALL col2 * + col1 AS col1 FROM tab1
----
1248
1404
570

query I rowsort
SELECT - - 34 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039

query I rowsort
SELECT DISTINCT + col1 + col2 AS col1 FROM tab0
----
119
173
98

query I rowsort
SELECT + cor0.col0 + 22 + + col2 FROM tab2 AS cor0
----
126
139
56

query I rowsort
SELECT - col0 + - 4 + 79 FROM tab0
----
-14
40
51

onlyif mysql # use DIV operator for integer division
query I rowsort label-2208
SELECT DISTINCT col2 DIV - tab2.col1 + 52 FROM tab2
----
50
52

skipif mysql # not compatible
query I rowsort label-2208
SELECT DISTINCT col2 / - tab2.col1 + 52 FROM tab2
----
50
52

query I rowsort
SELECT + ( 12 ) * col0 * + col1 + + col0 * col2 FROM tab0
----
104486
25560
40775

query I rowsort
SELECT col0 + - 61 FROM tab0
----
-26
-37
28

query I rowsort
SELECT ALL + 92 + col2 * + cor0.col1 * col0 FROM tab0 AS cor0
----
3487
664210
68204

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 cor0, tab1 AS cor1, tab0 cor2
----
972 values hashing to 67c5300bc5cba0be4f54a444dc6f05b9

query I rowsort
SELECT ALL - col2 + col0 * col2 * - 15 FROM tab2 AS cor0
----
-2862
-30446
-45068

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 67 * col0 + - col2 col2 FROM tab0 AS cor0
----
-1641
-2346
-6045

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2215
SELECT DISTINCT - col1 * + CAST( NULL AS SIGNED ) + col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2215
SELECT DISTINCT - col1 * + CAST ( NULL AS INTEGER ) + col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2216
SELECT ALL col1 - - ( + cor0.col2 ) * col0 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2216
SELECT ALL col1 - - ( + cor0.col2 ) * col0 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col0 + + cor0.col0 AS col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT + + cor0.col0 * cor0.col2 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT ALL col2 * ( 33 + col1 ) AS col2 FROM tab1 AS cor0
----
2451
3186
4416

query I rowsort
SELECT + - col0 * col1 * 94 AS col1 FROM tab0 AS cor0
----
-194016
-319130
-761306

query I rowsort
SELECT - col1 + - 19 FROM tab2 AS cor0
----
-36
-50
-78

query I rowsort
SELECT DISTINCT - + col0 * + ( 63 ) FROM tab2 AS cor0
----
-441
-4914
-4977

query I rowsort
SELECT + cor0.col2 * 24 AS col2 FROM tab1 AS cor0
----
1296
1368
2304

query I rowsort
SELECT ALL + - col0 + col2 AS col0 FROM tab0 AS cor0
----
-34
-7
9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2225
SELECT + cor0.col2 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2225
SELECT + cor0.col2 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 * ( - cor0.col2 ) col1 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT - cor0.col1 * + 46 AS col0 FROM tab1 AS cor0
----
-1196
-460
-598

query I rowsort
SELECT ALL - cor0.col2 * - ( col1 ) FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT DISTINCT - + ( 38 ) FROM tab1 AS cor0
----
-38

query I rowsort
SELECT ALL - col0 + col2 - + cor0.col2 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT 50 * col0 FROM tab1 cor0
----
150
3200
4000

query I rowsort
SELECT DISTINCT - 87 * + col2 AS col1 FROM tab1 AS cor0
----
-4698
-4959
-8352

query I rowsort
SELECT cor0.col0 * col1 AS col1 FROM tab0 cor0
----
2064
3395
8099

query I rowsort
SELECT - col0 * - col0 AS col1 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT DISTINCT ( col2 ) + + cor0.col1 * + col0 AS col2 FROM tab0 AS cor0
----
2097
3396
8181

query I rowsort
SELECT ALL + col1 + + col1 * + ( + 74 ) FROM tab0 AS cor0
----
6450
6825
7275

query I rowsort
SELECT DISTINCT col1 * - col1 AS col0 FROM tab1 cor0
----
-100
-169
-676

onlyif mysql # use DIV operator for integer division
query I rowsort label-2238
SELECT DISTINCT + col0 + col2 * col0 + + col2 DIV col0 AS col1 FROM tab1
----
183
3712
7761

skipif mysql # not compatible
query I rowsort label-2238
SELECT DISTINCT + col0 + col2 * col0 + + col2 / col0 AS col1 FROM tab1
----
183
3712
7761

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * tab1.col0 + - col1 col2 FROM tab1
----
-104
-1053
-650

query I rowsort
SELECT ALL - col0 AS col2 FROM tab0 WHERE NOT ( NULL ) NOT IN ( col2 * tab0.col0 )
----

query I rowsort
SELECT ALL + 11 + + col0 * - col2 FROM tab0 AS cor0
----
-24
-7287
-781

query I rowsort
SELECT ALL - col1 + - col0 + col1 * col1 AS col0 FROM tab0
----
7286
8101
9277

onlyif mysql # use DIV operator for integer division
query I rowsort label-2243
SELECT col1 DIV col0 - col1 AS col1 FROM tab1
----
-10
-13
-18

skipif mysql # not compatible
query I rowsort label-2243
SELECT col1 / col0 - col1 AS col1 FROM tab1
----
-10
-13
-18

query I rowsort
SELECT cor0.col0 * cor0.col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 815fccd4c3d372b28d3f3fb103025775

query I rowsort
SELECT ALL - - col1 * col1 + - ( - cor0.col2 ) * col2 AS col2 FROM tab1 AS cor0
----
3349
3592
9385

onlyif mysql # use DIV operator for integer division
query I rowsort label-2246
SELECT ALL 70 DIV col1 AS col1 FROM tab1
----
2
5
7

skipif mysql # not compatible
query I rowsort label-2246
SELECT ALL 70 / col1 AS col1 FROM tab1
----
2
5
7

query I rowsort
SELECT ALL ( 61 ) FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 8d4dfe649433a599fc4b10830cc7ce55

query I rowsort
SELECT 31 + col0 * tab0.col1 FROM tab0
----
2095
3426
8130

query I rowsort
SELECT DISTINCT 51 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
51

query I rowsort
SELECT tab0.col0 * + col1 * col2 FROM tab0
----
3395
664118
68112

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 29 col1 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 56a8aa9e4c5d3c934d1853afeb22653e

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col2 * - 57 col0 FROM tab0 cor0
----
-1795
-4583
40

query I rowsort
SELECT + col0 * 89 AS col1 FROM tab0 AS cor0
----
2136
3115
7921

query I rowsort
SELECT DISTINCT - col0 * - 43 FROM tab1 AS cor0
----
129
2752
3440

query I rowsort
SELECT DISTINCT + col1 + + 48 * - col2 AS col2 FROM tab0 AS cor0
----
-1498
-3845
49

query I rowsort
SELECT - col0 + - 75 FROM tab2 AS cor0
----
-153
-154
-82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2257
SELECT ALL + ( - col1 ) * col2 + CAST( NULL AS DECIMAL ) * col2 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2257
SELECT ALL + ( - col1 ) * col2 + CAST ( NULL AS REAL ) * col2 AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + 25 * 68 AS col2 FROM tab2
----
1700
1700
1700

query I rowsort
SELECT DISTINCT + ( + col1 * col0 ) + - col0 FROM tab0
----
2040
3360
8010

query I rowsort
SELECT DISTINCT - 58 + - col0 FROM tab2 AS cor0
----
-136
-137
-65

query I rowsort
SELECT DISTINCT - - 60 AS col2 FROM tab1 AS cor0
----
60

query I rowsort
SELECT DISTINCT + col0 + 61 AS col1 FROM tab2 AS cor0
----
139
140
68

query I rowsort
SELECT ( + 3 ) FROM tab2, tab1 AS cor0, tab1 cor1, tab2 AS cor2
----
81 values hashing to c7bd37716aa9c76e684a54f53d1ee343

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2264
SELECT CAST( NULL AS DECIMAL ) / tab2.col1 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2264
SELECT CAST ( NULL AS REAL ) / tab2.col1 AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL ( - 48 ) * col0 + - col1 AS col1 FROM tab1 AS cor0
----
-170
-3082
-3853

query I rowsort
SELECT DISTINCT ( - col0 + col2 ) FROM tab2
----
-41
-52
20

query I rowsort
SELECT DISTINCT 9 + col0 AS col2 FROM tab0 AS cor0
----
33
44
98

query I rowsort
SELECT ALL - 55 + cor0.col1 AS col2 FROM tab2 AS cor0
----
-24
-38
4

query I rowsort
SELECT - + col2 * col0 + col0 * - cor0.col1 * - col1 FROM tab1 AS cor0
----
1866
2752
5840

query I rowsort
SELECT ALL - + col0 + + col1 * + cor0.col1 AS col1 FROM tab0 AS cor0
----
7372
8192
9374

query I rowsort
SELECT 7 * col0 + - col1 * + col2 AS col0 FROM tab1 AS cor0
----
-122
-1383
-688

query I rowsort
SELECT DISTINCT - 60 * - col1 FROM tab1 cor0
----
1560
600
780

onlyif mysql # use DIV operator for integer division
query I rowsort label-2273
SELECT ALL + cor0.col0 * - col1 * + col0 + - col2 DIV + col1 FROM tab1 AS cor0
----
-236
-40965
-83207

skipif mysql # not compatible
query I rowsort label-2273
SELECT ALL + cor0.col0 * - col1 * + col0 + - col2 / + col1 FROM tab1 AS cor0
----
-236
-40965
-83207

query I rowsort
SELECT ALL + + col0 * col0 - - col1 AS col1 FROM tab0 AS cor0
----
1322
662
8012

onlyif mysql # use DIV operator for integer division
query I rowsort label-2275
SELECT col1 DIV + col1 + col2 FROM tab1 AS cor0
----
55
58
97

skipif mysql # not compatible
query I rowsort label-2275
SELECT col1 / + col1 + col2 FROM tab1 AS cor0
----
55
58
97

query I rowsort
SELECT - col0 * col2 + ( - col2 ) AS col1 FROM tab2 AS cor0
----
-2054
-216
-3040

query I rowsort
SELECT + - col1 - col2 AS col0 FROM tab0 AS cor0
----
-119
-173
-98

query I rowsort
SELECT - 35 * col2 AS col1 FROM tab2 AS cor0
----
-1330
-910
-945

query I rowsort
SELECT col0 - cor0.col0 AS col2 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT 68 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
68

query I rowsort
SELECT + 82 FROM tab2, tab1 AS cor0
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2282
SELECT DISTINCT + CAST( NULL AS SIGNED ) * cor0.col0 + col0 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2282
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * cor0.col0 + col0 FROM tab0 cor0
----
NULL

query I rowsort
SELECT DISTINCT - ( 57 ) + + col0 AS col1 FROM tab1 AS cor0
----
-54
23
7

query IIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab2 AS cor2
----
972 values hashing to 958533d1a7bf61199ed7c03eadf37f9a

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab1 AS cor2, tab1 AS cor3
----
3645 values hashing to 655f6fd9cf6e184579b05940dc91f4cb

query I rowsort
SELECT DISTINCT col1 * + col1 - - tab0.col2 AS col1 FROM tab0
----
7429
8363
9410

query I rowsort
SELECT ALL col0 * + col1 * - col0 + col2 * - tab1.col2 - - col2 FROM tab1
----
-3096
-44152
-92320

query I rowsort
SELECT ALL 97 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to c73fa6978df8525c99d6bc792bb27123

query I rowsort
SELECT ALL - col0 + + 15 FROM tab2 AS cor0
----
-63
-64
8

onlyif mysql # use DIV operator for integer division
query I rowsort label-2290
SELECT + - 21 DIV + col2 FROM tab0 AS cor0
----
-21
0
0

skipif mysql # not compatible
query I rowsort label-2290
SELECT + - 21 / + col2 FROM tab0 AS cor0
----
-21
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2291
SELECT ALL ( col2 + - CAST( NULL AS SIGNED ) ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2291
SELECT ALL ( col2 + - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( + col1 + - col2 * + 66 ) AS col2 FROM tab2
----
-1657
-1751
-2491

query I rowsort
SELECT tab0.col0 + + tab0.col0 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to b8cf3a0d946da15d11bb8abf87d58a6b

query I rowsort
SELECT - + 84 * + col2 AS col2 FROM tab2 AS cor0
----
-2184
-2268
-3192

query I rowsort
SELECT + col0 + 68 AS col2 FROM tab2 AS cor0
----
146
147
75

onlyif mysql # use DIV operator for integer division
query I rowsort label-2296
SELECT DISTINCT - col0 + col2 DIV + 48 AS col0 FROM tab2 AS cor0
----
-7
-78
-79

skipif mysql # not compatible
query I rowsort label-2296
SELECT DISTINCT - col0 + col2 / + 48 AS col0 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT - col0 + - 28 FROM tab0 AS cor0
----
-117
-52
-63

query I rowsort
SELECT ALL + col0 - ( col1 * - col1 + 59 ) FROM tab0 AS cor0
----
7361
8311
9385

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2299
SELECT ALL col2 / CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2299
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-2300
SELECT ALL col2 + CAST( col1 AS SIGNED ) AS col0 FROM tab0 cor0
----
119
173
98

skipif mysql # not compatible
query I rowsort label-2300
SELECT ALL col2 + CAST ( col1 AS INTEGER ) AS col0 FROM tab0 cor0
----
119
173
98

query I rowsort
SELECT col1 * - col1 * - col0 + + col1 AS col0 FROM tab2
----
22848
271577
6758

query I rowsort
SELECT col2 * - 6 AS col2 FROM tab0 AS cor0
----
-198
-492
-6

onlyif mysql # use DIV operator for integer division
query I rowsort label-2303
SELECT DISTINCT + col1 + col0 DIV + ( - col2 ) AS col0 FROM tab0 AS cor0
----
62
86
90

skipif mysql # not compatible
query I rowsort label-2303
SELECT DISTINCT + col1 + col0 / + ( - col2 ) AS col0 FROM tab0 AS cor0
----
62
86
90

onlyif mysql # use DIV operator for integer division
query I rowsort label-2304
SELECT ALL col2 DIV - 8 AS col2 FROM tab2 AS cor0
----
-3
-3
-4

skipif mysql # not compatible
query I rowsort label-2304
SELECT ALL col2 / - 8 AS col2 FROM tab2 AS cor0
----
-3
-3
-4

query I rowsort
SELECT - + 64 * col2 AS col1 FROM tab2 AS cor0
----
-1664
-1728
-2432

query I rowsort
SELECT ALL col1 * ( - col0 ) AS col2 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT ( ( + col0 ) ) AS col0 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT ALL 48 + col2 FROM tab2 AS cor0
----
74
75
86

query I rowsort
SELECT ALL - ( 12 ) - + col1 AS col2 FROM tab0 AS cor0
----
-103
-109
-98

query I rowsort
SELECT DISTINCT + - 92 AS col2 FROM tab0 cor0
----
-92

query I rowsort
SELECT ALL - - col2 * cor0.col0 * col1 + col0 + + col1 * col0 * - col2 AS col2 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT DISTINCT - 60 + + col1 * - col0 AS col1 FROM tab0 cor0
----
-2124
-3455
-8159

query I rowsort
SELECT DISTINCT + 61 * col0 FROM tab0 cor0
----
1464
2135
5429

query I rowsort
SELECT DISTINCT 72 FROM tab2, tab1 cor0
----
72

query I rowsort
SELECT - + cor0.col0 * - col2 AS col2 FROM tab0 AS cor0
----
35
7298
792

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2316
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + col2 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2316
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + col2 AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + col2 + 30 AS col2 FROM tab2
----
56
57
68

query I rowsort
SELECT + col0 * - cor0.col0 * - col1 + col0 AS col0 FROM tab2 AS cor0
----
106176
1526
359034

query I rowsort
SELECT - col0 + + cor0.col0 * 37 - - col2 FROM tab2 cor0
----
279
2834
2882

query I rowsort
SELECT ALL 44 + cor0.col2 FROM tab2 AS cor0
----
70
71
82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2321
SELECT DISTINCT + + 88 + col1 * CAST( NULL AS DECIMAL ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2321
SELECT DISTINCT + + 88 + col1 * CAST ( NULL AS REAL ) AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + + 92 + col1 * - col0 - col2 FROM tab2 AS cor0
----
-1289
-152
-4536

onlyif mysql # use DIV operator for integer division
query I rowsort label-2323
SELECT - + 67 DIV col2 AS col0 FROM tab1 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-2323
SELECT - + 67 / col2 AS col0 FROM tab1 AS cor0
----
-1
-1
0

query I rowsort
SELECT col1 * + col2 + - ( - ( col2 ) ) AS col0 FROM tab2 AS cor0
----
1560
684
864

query I rowsort
SELECT - - col2 + col2 + 68 FROM tab2 cor0
----
120
122
144

onlyif mysql # use DIV operator for integer division
query I rowsort label-2326
SELECT col2 * - col2 + - col2 DIV 40 col2 FROM tab1 AS cor0
----
-2917
-3250
-9218

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2326
SELECT col2 * - col2 + - col2 / 40 col2 FROM tab1 AS cor0
----
-2917
-3250
-9218

query I rowsort
SELECT DISTINCT 7 FROM tab1 cor0
----
7

query I rowsort
SELECT - + col0 + col0 * - cor0.col1 AS col2 FROM tab2 AS cor0
----
-1422
-224
-4680

query I rowsort
SELECT ALL + + col1 + - 16 FROM tab0 AS cor0
----
70
75
81

query I rowsort
SELECT ALL + cor0.col0 AS col1 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT - + col2 + + cor0.col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - 3 AS col1 FROM tab2, tab1, tab2 cor0
----
27 values hashing to 65b7e16aaa7821ace3a45a9846ffa166

query I rowsort
SELECT ALL - col1 * - 83 AS col2 FROM tab2
----
1411
2573
4897

onlyif mysql # use DIV operator for integer division
query I rowsort label-2334
SELECT DISTINCT 66 DIV - col0 AS col1 FROM tab1
----
-1
-22
0

skipif mysql # not compatible
query I rowsort label-2334
SELECT DISTINCT 66 / - col0 AS col1 FROM tab1
----
-1
-22
0

query I rowsort
SELECT DISTINCT ( col0 ) * + col2 + - col2 FROM tab2
----
162
2002
2964

query I rowsort
SELECT + - col1 * cor0.col0 + + 46 AS col2 FROM tab1 AS cor0
----
-32
-594
-994

query I rowsort
SELECT DISTINCT 12 AS col2 FROM tab0
----
12

query I rowsort
SELECT - 56 * col0 AS col2 FROM tab1
----
-168
-3584
-4480

query I rowsort
SELECT DISTINCT - - 6 + col1 AS col2 FROM tab1 AS cor0
----
16
19
32

query I rowsort
SELECT + ( + 3 + - col1 ) * - col1 FROM tab0
----
7138
8008
9118

query I rowsort
SELECT DISTINCT 4 FROM tab0, tab1, tab0 AS cor0
----
4

query I rowsort
SELECT ( - 40 ) * - col1 FROM tab1
----
1040
400
520

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 46 col2 FROM tab0, tab0 AS cor0
----
46

query I rowsort
SELECT ALL + 54 AS col1 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 81150d59d6c3fc48b4ef5a4a5495bc7a

query I rowsort
SELECT - 89 * + 32 * col1 FROM tab2
----
-168032
-48416
-88288

query I rowsort
SELECT DISTINCT + col1 + - cor0.col1 AS col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT - 68 + col0 * - 15 FROM tab1 AS cor0
----
-1028
-113
-1268

query I rowsort
SELECT DISTINCT 22 * col2 AS col1 FROM tab1 cor0
----
1188
1254
2112

query I rowsort
SELECT DISTINCT - 84 * - col0 + + 59 FROM tab0 AS cor0
----
2075
2999
7535

query I rowsort
SELECT - - cor0.col1 * - cor0.col2 FROM tab0 cor0
----
-2838
-7462
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-2351
SELECT ALL - col2 + - col0 DIV cor0.col0 AS col0 FROM tab0 AS cor0
----
-2
-34
-83

skipif mysql # not compatible
query I rowsort label-2351
SELECT ALL - col2 + - col0 / cor0.col0 AS col0 FROM tab0 AS cor0
----
-2
-34
-83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2352
SELECT ALL + col1 * col2 + CAST( NULL AS SIGNED ) / col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2352
SELECT ALL + col1 * col2 + CAST ( NULL AS INTEGER ) / col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab1, tab1 AS cor1, tab2, tab0 AS cor2
----
3645 values hashing to fb1fb273a543ea33958edfcaa2e7ed26

query I rowsort
SELECT - + cor0.col1 AS col1 FROM tab1 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to b234798d4706314ba14eaad539d0aa88

onlyif mysql # use DIV operator for integer division
query I rowsort label-2355
SELECT col1 DIV 54 + col1 FROM tab0 AS cor0
----
87
92
98

skipif mysql # not compatible
query I rowsort label-2355
SELECT col1 / 54 + col1 FROM tab0 AS cor0
----
87
92
98

query I rowsort
SELECT ALL 59 AS col0 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to e29fef8cdec1ee45a71d213f16d2f1d3

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2357
SELECT + col2 * CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2357
SELECT + col2 * CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col1 + - col2 AS col2 FROM tab2
----
-21
33
4

query I rowsort
SELECT - cor0.col0 * - 70 AS col1 FROM tab2 AS cor0
----
490
5460
5530

query I rowsort
SELECT ALL - col2 * - 57 FROM tab2 AS cor0
----
1482
1539
2166

query I rowsort
SELECT + col2 - + col1 AS col0 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT ALL col2 + col0 * col2 FROM tab0 AS cor0
----
36
7380
825

onlyif mysql # use DIV operator for integer division
query I rowsort label-2363
SELECT ALL - col2 DIV cor0.col2 - cor0.col1 FROM tab0 AS cor0
----
-87
-92
-98

skipif mysql # not compatible
query I rowsort label-2363
SELECT ALL - col2 / cor0.col2 - cor0.col1 FROM tab0 AS cor0
----
-87
-92
-98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2364
SELECT ALL - + cor0.col2 + - CAST( - col1 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-21
33
4

skipif mysql # not compatible
query I rowsort label-2364
SELECT ALL - + cor0.col2 + - CAST ( - col1 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT DISTINCT col1 - 99 AS col2 FROM tab0 cor0
----
-13
-2
-8

query I rowsort
SELECT DISTINCT + 65 * - col1 FROM tab2 AS cor0
----
-1105
-2015
-3835

query I rowsort
SELECT cor2.col1 FROM tab1, tab0 AS cor0, tab2 cor1, tab2 AS cor2
----
81 values hashing to a5b6acb471910ea4ad7f31cae3b818f7

query I rowsort
SELECT - col0 * - col2 + col2 AS col1 FROM tab2 cor0
----
2054
216
3040

query I rowsort
SELECT ALL 3 - 26 AS col2 FROM tab1 AS cor0
----
-23
-23
-23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 * ( col1 ) + 81 col2 FROM tab0 AS cor0
----
7477
8362
9490

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor3.col1 col1 FROM tab1 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab0 AS cor2, tab2 AS cor3
----
243 values hashing to 42b04a30acb32fcd35bf97afdee87fe6

query I rowsort
SELECT + - cor0.col1 * + 35 FROM tab2 AS cor0
----
-1085
-2065
-595

query I rowsort
SELECT - col0 - cor0.col0 AS col0 FROM tab2 AS cor0
----
-14
-156
-158

onlyif mysql # use DIV operator for integer division
query I rowsort label-2374
SELECT 37 * ( + col0 ) + ( + col2 ) DIV - cor0.col1 col0 FROM tab1 AS cor0
----
109
2363
2953

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2374
SELECT 37 * ( + col0 ) + ( + col2 ) / - cor0.col1 col0 FROM tab1 AS cor0
----
109
2363
2953

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2375
SELECT - CAST( - col0 AS SIGNED ) + col0 FROM tab2 cor0
----
14
156
158

skipif mysql # not compatible
query I rowsort label-2375
SELECT - CAST ( - col0 AS INTEGER ) + col0 FROM tab2 cor0
----
14
156
158

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2376
SELECT - - CAST( NULL AS SIGNED ) + 26 col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2376
SELECT - - CAST ( NULL AS INTEGER ) + 26 col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2377
SELECT ALL CAST( col1 AS SIGNED ) * col1 FROM tab0
----
7396
8281
9409

skipif mysql # not compatible
query I rowsort label-2377
SELECT ALL CAST ( col1 AS INTEGER ) * col1 FROM tab0
----
7396
8281
9409

query I rowsort
SELECT 31 + + cor1.col0 FROM tab1, tab1 AS cor0, tab0, tab0 AS cor1
----
81 values hashing to 0c97a5965620a9351ac92cda8712ad1b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 79 * col0 col1 FROM tab1 AS cor0
----
237
5056
6320

query I rowsort
SELECT - cor0.col1 * + col2 - col0 AS col2 FROM tab0 AS cor0
----
-132
-2862
-7551

query I rowsort
SELECT 58 * col1 - col1 FROM tab2 cor0
----
1767
3363
969

query I rowsort
SELECT ALL - col2 * ( + col1 ) * col2 + col1 * + col1 + + col2 FROM tab0
----
-603521
-86225
9313

query I rowsort
SELECT + + ( + col1 ) FROM tab2 cor0
----
17
31
59

query I rowsort
SELECT 36 + - 36 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT 73 + + cor0.col2 AS col1 FROM tab2 AS cor0
----
100
111
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 25 + col1 + 10 * - col2 col0 FROM tab0 AS cor0
----
-219
-704
112

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + 24 col1 FROM tab2
----
168
1872
1896

query I rowsort
SELECT + col0 * - ( - 61 ) FROM tab2 AS cor0
----
427
4758
4819

query I rowsort
SELECT + col0 + tab1.col1 AS col1 FROM tab1
----
29
74
93

query I rowsort
SELECT ALL - 98 * 25 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 470ab9baf37206f6896a77857b8ec9f0

query I rowsort
SELECT ALL - 99 FROM tab1, tab1 cor0
----
9 values hashing to 64d06513850a26495bc6c2fddeb254b7

query I rowsort
SELECT DISTINCT - 64 AS col1 FROM tab0, tab1 AS cor0
----
-64

query I rowsort
SELECT DISTINCT col1 * 42 AS col1 FROM tab0
----
3612
3822
4074

query I rowsort
SELECT 61 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 8d4dfe649433a599fc4b10830cc7ce55

query I rowsort
SELECT ALL col0 + + 90 * - col1 FROM tab1
----
-1090
-2337
-836

query I rowsort
SELECT DISTINCT ( col2 ) + + col0 * + col2 AS col0 FROM tab1 AS cor0
----
216
3705
7776

query I rowsort
SELECT - col2 * - col2 * col1 AS col1 FROM tab1 AS cor0
----
119808
32490
75816

query I rowsort
SELECT + col2 * + ( col0 ) AS col1 FROM tab1
----
162
3648
7680

query I rowsort
SELECT + - col0 + - col2 * + col0 AS col0 FROM tab0 AS cor0
----
-70
-7387
-816

query I rowsort
SELECT ALL - cor0.col2 AS col2 FROM tab1, tab2 cor0
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75

query I rowsort
SELECT + - cor0.col2 + col1 * col2 AS col1 FROM tab1 AS cor0
----
1152
1350
513

query I rowsort
SELECT 11 AS col1 FROM tab0
----
11
11
11

query I rowsort
SELECT - 25 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 40ac8fd000b2e49317aed2411077839e

onlyif mysql # use DIV operator for integer division
query I rowsort label-2404
SELECT ALL tab1.col1 DIV - 94 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2404
SELECT ALL tab1.col1 / - 94 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT + + col0 + col2 * col0 AS col1 FROM tab0 cor0
----
70
7387
816

query I rowsort
SELECT DISTINCT - cor0.col1 + + col2 AS col1 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT - 89 + 50 FROM tab2 AS cor0
----
-39
-39
-39

query I rowsort
SELECT col1 * - 21 FROM tab2
----
-1239
-357
-651

query I rowsort
SELECT tab0.col1 * 63 * col1 AS col0 FROM tab0
----
465948
521703
592767

query I rowsort
SELECT + col0 * ( tab0.col1 ) AS col0 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT - col0 * - 70 * - col2 FROM tab1
----
-11340
-255360
-537600

query I rowsort
SELECT + 41 FROM tab1, tab1 AS cor0
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e

query I rowsort
SELECT + 18 + col2 AS col0 FROM tab2 AS cor0
----
44
45
56

query I rowsort
SELECT col1 * col0 * col1 + 58 AS col0 FROM tab0 AS cor0
----
177562
329373
737067

query I rowsort
SELECT - - ( + col0 ) FROM tab2 cor0
----
7
78
79

query I rowsort
SELECT col2 * + col1 * - col2 + col0 FROM tab1 AS cor0
----
-119728
-32426
-75813

query I rowsort
SELECT - - 17 * col0 AS col2 FROM tab1 AS cor0
----
1088
1360
51

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2418
SELECT + + CAST( ( cor0.col0 ) AS SIGNED ) FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-2418
SELECT + + CAST ( ( cor0.col0 ) AS INTEGER ) FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT ALL 60 + - col2 FROM tab2
----
22
33
34

query I rowsort
SELECT + tab1.col1 * col2 + col0 * col0 AS col2 FROM tab1
----
1413
4666
7648

query I rowsort
SELECT DISTINCT 80 AS col1 FROM tab0, tab2 AS cor0
----
80

query I rowsort
SELECT ALL 52 + col1 * + col0 FROM tab1
----
1092
130
692

query I rowsort
SELECT - col2 - 19 * col0 FROM tab1
----
-111
-1273
-1616

query I rowsort
SELECT ALL ( - col1 ) + col0 AS col2 FROM tab0
----
-2
-62
-62

query I rowsort
SELECT + cor0.col0 + 89 AS col2 FROM tab1 AS cor0
----
153
169
92

query I rowsort
SELECT + col1 - + 16 AS col2 FROM tab0 AS cor0
----
70
75
81

query I rowsort
SELECT - - cor0.col0 - - col0 AS col0 FROM tab2 AS cor0
----
14
156
158

query I rowsort
SELECT DISTINCT 30 * ( + col1 ) + 40 FROM tab2 AS cor0
----
1810
550
970

onlyif mysql # use DIV operator for integer division
query I rowsort label-2429
SELECT - 83 * - col2 + col2 DIV + tab2.col0 AS col0 FROM tab2
----
2158
2244
3154

skipif mysql # not compatible
query I rowsort label-2429
SELECT - 83 * - col2 + col2 / + tab2.col0 AS col0 FROM tab2
----
2158
2244
3154

query I rowsort
SELECT + col1 + tab1.col2 + - col0 FROM tab1
----
29
3
77

query I rowsort
SELECT - 54 + col1 * cor0.col0 AS col2 FROM tab0 AS cor0
----
2010
3341
8045

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2432
SELECT DISTINCT + col0 * - col2 + - CAST( col1 AS SIGNED ) * col0 FROM tab1 AS cor0
----
-240
-4288
-8720

skipif mysql # not compatible
query I rowsort label-2432
SELECT DISTINCT + col0 * - col2 + - CAST ( col1 AS INTEGER ) * col0 FROM tab1 AS cor0
----
-240
-4288
-8720

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + col1 * cor0.col2 + - cor0.col2 col1 FROM tab0 AS cor0
----
2772
7298
95

query I rowsort
SELECT col2 * + col1 + 87 * col2 AS col1 FROM tab2 AS cor0
----
3186
3796
3952

query I rowsort
SELECT 45 + cor0.col0 FROM tab2 cor0
----
123
124
52

query I rowsort
SELECT ALL + 16 + col1 * 24 - 49 AS col0 FROM tab2 AS cor0
----
1383
375
711

query I rowsort
SELECT - col1 * col1 + - col0 AS col1 FROM tab0 AS cor0
----
-7420
-8370
-9444

query I rowsort
SELECT ALL - - 47 + + col0 * 73 FROM tab1 cor0
----
266
4719
5887

query I rowsort
SELECT DISTINCT + - col1 - col1 AS col1 FROM tab2 AS cor0
----
-118
-34
-62

query I rowsort
SELECT ALL 32 + col0 AS col2 FROM tab0 AS cor0
----
121
56
67

query I rowsort
SELECT - tab0.col0 * + col2 * + col2 FROM tab0
----
-26136
-35
-598436

query I rowsort
SELECT ALL - 43 AS col1 FROM tab2
----
-43
-43
-43

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2443
SELECT - CAST( NULL AS SIGNED ) * col0 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2443
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-2444
SELECT DISTINCT + + col0 * - col2 + - ( 57 ) DIV + col1 AS col2 FROM tab0 AS cor0
----
-35
-7298
-792

skipif mysql # not compatible
query I rowsort label-2444
SELECT DISTINCT + + col0 * - col2 + - ( 57 ) / + col1 AS col2 FROM tab0 AS cor0
----
-35
-7298
-792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 0 col1 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - cor0.col0 col2 FROM tab1 AS cor0
----
-4096
-6400
-9

query I rowsort
SELECT ALL col1 + col0 + col2 FROM tab2 cor0
----
134
163
65

query I rowsort
SELECT DISTINCT + 54 + - cor0.col0 FROM tab2 AS cor0
----
-24
-25
47

query I rowsort
SELECT ALL col1 * - col1 - + 6 * col2 FROM tab0 AS cor0
----
-7594
-8773
-9415

query I rowsort
SELECT DISTINCT col2 * + 45 AS col2 FROM tab0
----
1485
3690
45

query I rowsort
SELECT + col2 * 96 FROM tab2 AS cor0
----
2496
2592
3648

query I rowsort
SELECT - col0 * + 23 FROM tab1 AS cor0
----
-1472
-1840
-69

query I rowsort
SELECT DISTINCT + col1 * col1 * col0 AS col2 FROM tab1 cor0
----
13520
2028
6400

query I rowsort
SELECT + - cor0.col1 * - ( - 32 * - col2 ) FROM tab0 cor0
----
238784
3104
90816

onlyif mysql # use DIV operator for integer division
query I rowsort label-2455
SELECT DISTINCT - col1 * 98 DIV - col1 AS col0 FROM tab2 AS cor0
----
98

skipif mysql # not compatible
query I rowsort label-2455
SELECT DISTINCT - col1 * 98 / - col1 AS col0 FROM tab2 AS cor0
----
98

query I rowsort
SELECT + col2 * ( - 79 ) AS col0 FROM tab1 AS cor0
----
-4266
-4503
-7584

query I rowsort
SELECT ALL - col1 * 30 - cor0.col2 * + col2 FROM tab0 AS cor0
----
-2911
-3669
-9454

query I rowsort
SELECT ALL + 60 + 58 AS col0 FROM tab1 cor0
----
118
118
118

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab2, tab2 cor2
----
3645 values hashing to f7d7f8e55c3be4391aa225222961d676

onlyif mysql # use DIV operator for integer division
query I rowsort label-2460
SELECT + - col2 DIV col2 AS col2 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2460
SELECT + - col2 / col2 AS col2 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL - col0 * cor0.col0 + + 90 AS col2 FROM tab1 cor0
----
-4006
-6310
81

query I rowsort
SELECT - - col2 * + 88 * 16 - - col0 * + cor0.col1 FROM tab0 AS cor0
----
123555
4803
48528

query I rowsort
SELECT + 89 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 860d55eb6785972467218a9c3badb5ad

query I rowsort
SELECT ALL + col1 * col0 * col1 + col0 FROM tab0
----
177528
329350
737098

onlyif mysql # use DIV operator for integer division
query I rowsort label-2465
SELECT ALL col1 DIV - 39 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2465
SELECT ALL col1 / - 39 FROM tab1
----
0
0
0

query I rowsort
SELECT col2 * - 52 AS col2 FROM tab2
----
-1352
-1404
-1976

query I rowsort
SELECT ALL col2 * - 95 FROM tab1 AS cor0
----
-5130
-5415
-9120

onlyif mysql # use DIV operator for integer division
query I rowsort label-2468
SELECT DISTINCT + cor0.col0 DIV 78 FROM tab0 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-2468
SELECT DISTINCT + cor0.col0 / 78 FROM tab0 AS cor0
----
0
1

query I rowsort
SELECT ALL - + cor0.col2 * - cor0.col1 + cor0.col2 * col1 FROM tab2 AS cor0
----
1292
1674
3068

query I rowsort
SELECT cor0.col0 * - 81 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to cb28e2383c65db06809ca512a14e2dae

onlyif mysql # use DIV operator for integer division
query I rowsort label-2471
SELECT ALL tab1.col2 DIV col2 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2471
SELECT ALL tab1.col2 / col2 FROM tab1
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-2472
SELECT DISTINCT col2 DIV + col2 + 28 * col2 AS col0 FROM tab1 cor0
----
1513
1597
2689

skipif mysql # not compatible
query I rowsort label-2472
SELECT DISTINCT col2 / + col2 + 28 * col2 AS col0 FROM tab1 cor0
----
1513
1597
2689

query I rowsort
SELECT + + col1 + - 34 FROM tab0 cor0
----
52
57
63

query I rowsort
SELECT cor0.col0 FROM tab1, tab2 AS cor0 CROSS JOIN tab0
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT ALL 62 FROM tab2, tab1 AS cor0 CROSS JOIN tab0, tab0 AS cor1
----
81 values hashing to 0bc652564a158b9c0f7952026f90b60a

query I rowsort
SELECT DISTINCT + + cor1.col2 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
26
27
38

query I rowsort
SELECT + tab1.col1 * - col0 + + col1 * col0 * - col1 AS col0 FROM tab1
----
-14560
-2106
-7040

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2478
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2478
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + 86 * col0 - - col0 * + col0 * - col1 AS col2 FROM tab0 AS cor0
----
-115815
-47472
-713157

query I rowsort
SELECT ALL + col1 - col1 AS col1 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col2 * - cor0.col0 AS col1 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT ALL col2 + + 61 FROM tab2 AS cor0
----
87
88
99

query I rowsort
SELECT 20 + col0 FROM tab0 AS cor0
----
109
44
55

query I rowsort
SELECT + cor0.col0 + - col1 AS col2 FROM tab0 AS cor0
----
-2
-62
-62

query I rowsort
SELECT DISTINCT - + cor0.col1 + col2 AS col0 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT ALL - col0 + cor0.col0 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + col1 + - col2 * - 50 FROM tab2 AS cor0
----
1359
1381
1917

query I rowsort
SELECT - ( - col1 ) + - col0 - + col0 FROM tab0 cor0
----
-87
27
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col1 * + col1 col2 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT + ( + tab0.col2 + - ( col0 ) ) * tab0.col2 FROM tab0
----
-34
-574
297

query I rowsort
SELECT ALL 80 + col1 AS col1 FROM tab1
----
106
90
93

query I rowsort
SELECT ( - col1 + col1 ) * - 4 AS col1 FROM tab0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2493
SELECT 58 DIV col2 AS col2 FROM tab0
----
0
1
58

skipif mysql # not compatible
query I rowsort label-2493
SELECT 58 / col2 AS col2 FROM tab0
----
0
1
58

query I rowsort
SELECT ALL - + 35 - + cor0.col1 FROM tab1 AS cor0
----
-45
-48
-61

query I rowsort
SELECT - - 14 + - col1 * col1 AS col2 FROM tab2 AS cor0
----
-275
-3467
-947

onlyif mysql # use DIV operator for integer division
query I rowsort label-2496
SELECT DISTINCT + col0 + col0 DIV - 30 + col1 AS col1 FROM tab0 AS cor0
----
110
131
178

skipif mysql # not compatible
query I rowsort label-2496
SELECT DISTINCT + col0 + col0 / - 30 + col1 AS col1 FROM tab0 AS cor0
----
110
131
178

query I rowsort
SELECT + 36 - - col2 AS col0 FROM tab1 AS cor0
----
132
90
93

query I rowsort
SELECT col0 * cor0.col1 - - ( col1 ) FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT cor0.col1 AS col0 FROM tab0, tab1 AS cor0, tab1 cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

onlyif mysql # use DIV operator for integer division
query I rowsort label-2500
SELECT ALL + col2 + col1 DIV + 87 FROM tab2 AS cor0
----
26
27
38

skipif mysql # not compatible
query I rowsort label-2500
SELECT ALL + col2 + col1 / + 87 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT DISTINCT 78 * col0 FROM tab2 AS cor0
----
546
6084
6162

query I rowsort
SELECT ALL + - col1 * + col0 + - col0 * col1 AS col0 FROM tab0 AS cor0
----
-16198
-4128
-6790

query I rowsort
SELECT cor0.col0 * + col0 AS col1 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT DISTINCT + col1 + - col1 - col1 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT DISTINCT 86 AS col2 FROM tab1 cor0
----
86

query I rowsort
SELECT - 71 FROM tab0, tab0 cor0
----
9 values hashing to e72f95c346714d3065a96d67a6fd5062

query I rowsort
SELECT - col2 * + ( + col2 ) - + col0 FROM tab1 AS cor0
----
-2919
-3313
-9296

query I rowsort
SELECT DISTINCT + cor0.col1 + col0 AS col2 FROM tab2 AS cor0
----
137
38
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 + - col0 col1 FROM tab0 AS cor0
----
2
62
62

query I rowsort
SELECT 1 AS col2 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT - - 24 + col2 FROM tab1 AS cor0
----
120
78
81

query I rowsort
SELECT - + 82 * - 27 AS col0 FROM tab1 AS cor0
----
2214
2214
2214

query I rowsort
SELECT + col0 + + 91 FROM tab1 AS cor0
----
155
171
94

query I rowsort
SELECT 0 + + tab0.col2 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT DISTINCT - cor0.col1 + + 18 FROM tab0, tab1, tab1 AS cor0
----
-8
5
8

query I rowsort
SELECT 3 * + col1 FROM tab2 AS cor0
----
177
51
93

skipif mysql # not compatible
query I rowsort
SELECT ALL + CAST ( 80 AS REAL ) * - col2 FROM tab2
----
-2080
-2160
-3040

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + 71 + col1 col0 FROM tab0
----
169
190
244

onlyif mysql # use DIV operator for integer division
query I rowsort label-2519
SELECT + - 4 DIV + col1 + col1 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-2519
SELECT + - 4 / + col1 + col1 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT - col2 * col1 + tab1.col2 - + col1 AS col1 FROM tab1
----
-1165
-1376
-523

query I rowsort
SELECT ALL + + col1 + ( - col1 ) AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - - col0 + - col2 * + col0 AS col2 FROM tab2 AS cor0
----
-182
-1950
-2923

query I rowsort
SELECT ALL + col0 + col0 + col2 FROM tab0 cor0
----
260
71
81

query I rowsort
SELECT ( + 82 ) AS col0 FROM tab1 AS cor0
----
82
82
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-2525
SELECT DISTINCT - - col0 DIV col0 - - col1 FROM tab0 AS cor0
----
87
92
98

skipif mysql # not compatible
query I rowsort label-2525
SELECT DISTINCT - - col0 / col0 - - col1 FROM tab0 AS cor0
----
87
92
98

query I rowsort
SELECT DISTINCT 46 AS col1 FROM tab1 AS cor0
----
46

query I rowsort
SELECT DISTINCT + 42 AS col2 FROM tab2 AS cor0
----
42

query I rowsort
SELECT ALL - col1 * + ( col1 ) + col2 FROM tab1 AS cor0
----
-43
-622
-73

query I rowsort
SELECT col2 * - col0 + + col1 AS col0 FROM tab0 AS cor0
----
-706
-7207
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * col1 col1 FROM tab1 cor0
----
100
169
676

query I rowsort
SELECT - 84 AS col0 FROM tab1 cor0
----
-84
-84
-84

query I rowsort
SELECT DISTINCT + 90 * col0 + + col1 FROM tab0 cor0
----
2246
3247
8101

query I rowsort
SELECT DISTINCT + - col1 * - col0 + col0 AS col2 FROM tab0 AS cor0
----
2088
3430
8188

onlyif mysql # use DIV operator for integer division
query I rowsort label-2534
SELECT ALL - 49 DIV - cor0.col0 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 0d54697144aaafd28cd6e0eddda50d87

skipif mysql # not compatible
query I rowsort label-2534
SELECT ALL - 49 / - cor0.col0 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 0d54697144aaafd28cd6e0eddda50d87

query I rowsort
SELECT col0 * - col1 + + 85 AS col1 FROM tab1 AS cor0
----
-555
-955
7

query I rowsort
SELECT ALL + 2 FROM tab1, tab1 cor0
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

query I rowsort
SELECT - - col1 + - cor0.col2 + col2 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT ALL - - 41 FROM tab0 cor0
----
41
41
41

query I rowsort
SELECT - ( - col0 ) * col1 + - col1 * + col2 * col1 FROM tab0 AS cor0
----
-242004
-6014
-670943

onlyif mysql # use DIV operator for integer division
query I rowsort label-2540
SELECT DISTINCT tab2.col0 + - ( - ( + col1 ) ) DIV col1 - - col2 * col0 FROM tab2
----
197
2107
3082

skipif mysql # not compatible
query I rowsort label-2540
SELECT DISTINCT tab2.col0 + - ( - ( + col1 ) ) / col1 - - col2 * col0 FROM tab2
----
197
2107
3082

query I rowsort
SELECT ALL - col2 * + col2 - 34 AS col0 FROM tab0
----
-1123
-35
-6758

query I rowsort
SELECT + 31 AS col1 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to c3c6f92f0ca72d71793339f88a57e336

onlyif mysql # use DIV operator for integer division
query I rowsort label-2543
SELECT - col2 DIV 36 col0 FROM tab0
----
-2
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2543
SELECT - col2 / 36 col0 FROM tab0
----
-2
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2544
SELECT ALL + ( col2 ) + col1 DIV 63 col2 FROM tab2 AS cor0
----
26
27
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2544
SELECT ALL + ( col2 ) + col1 / 63 col2 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT ALL - ( col2 ) + + cor0.col2 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + 38 * + col1 - - col0 AS col1 FROM tab2 AS cor0
----
1185
2320
725

query I rowsort
SELECT DISTINCT - col1 + - col2 AS col0 FROM tab2 AS cor0
----
-55
-58
-85

query I rowsort
SELECT - col1 + - col2 + + col2 * + 22 AS col0 FROM tab1 cor0
----
1108
1187
2003

query I rowsort
SELECT DISTINCT - col2 + col1 + col2 FROM tab0 AS cor0
----
86
91
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col1 * col0 col1 FROM tab1 AS cor0
----
1040
640
78

query IIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2, tab0 cor1, tab0 cor2
----
972 values hashing to 3a31dab513390ca6bd05c71a3d9c50f0

query I rowsort
SELECT + cor0.col2 FROM tab2 AS cor0 CROSS JOIN tab2, tab1 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2553
SELECT - tab0.col1 * cor0.col0 + CAST( NULL AS SIGNED ) FROM tab0, tab1 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2553
SELECT - tab0.col1 * cor0.col0 + CAST ( NULL AS INTEGER ) FROM tab0, tab1 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT 97 AS col0 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to c73fa6978df8525c99d6bc792bb27123

query I rowsort
SELECT ALL + ( 38 ) + + col1 + + col1 AS col1 FROM tab2
----
100
156
72

query I rowsort
SELECT col1 + + col0 - + col0 FROM tab0
----
86
91
97

query I rowsort
SELECT DISTINCT - 49 FROM tab0, tab0 cor0
----
-49

query I rowsort
SELECT ALL - 77 + - cor0.col0 FROM tab2 AS cor0
----
-155
-156
-84

query I rowsort
SELECT ALL col0 + col0 * col2 AS col1 FROM tab0
----
70
7387
816

query I rowsort
SELECT - 68 + + 0 * col2 AS col1 FROM tab2
----
-68
-68
-68

query I rowsort
SELECT - + 26 + col0 AS col0 FROM tab0 AS cor0
----
-2
63
9

query I rowsort
SELECT + 52 + col2 FROM tab1
----
106
109
148

query I rowsort
SELECT 35 + + col2 * 8 FROM tab1
----
467
491
803

query I rowsort
SELECT DISTINCT - 63 FROM tab0
----
-63

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2565
SELECT ALL + col1 * CAST( NULL AS SIGNED ) + - ( col1 ) * + ( + col0 ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2565
SELECT ALL + col1 * CAST ( NULL AS INTEGER ) + - ( col1 ) * + ( + col0 ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 99 col0 FROM tab1, tab0, tab0 AS cor0
----
99

query I rowsort
SELECT - col2 + col1 * - col0 AS col2 FROM tab1
----
-1136
-132
-697

query I rowsort
SELECT tab2.col1 - + col0 AS col1 FROM tab2
----
-19
-62
24

query I rowsort
SELECT ALL + col0 * - col0 + 41 FROM tab2 cor0
----
-6043
-6200
-8

query I rowsort
SELECT ALL + col0 + - cor0.col0 * + 37 FROM tab2 AS cor0
----
-252
-2808
-2844

query I rowsort
SELECT cor0.col2 * + col2 AS col2 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT - col2 + 98 AS col2 FROM tab0 AS cor0
----
16
65
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 + col1 col1 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT DISTINCT col2 * - 22 + + col0 FROM tab2 AS cor0
----
-494
-587
-757

onlyif mysql # use DIV operator for integer division
query I rowsort label-2575
SELECT DISTINCT - cor0.col0 + col0 DIV - col0 AS col2 FROM tab2 cor0
----
-79
-8
-80

skipif mysql # not compatible
query I rowsort label-2575
SELECT DISTINCT - cor0.col0 + col0 / - col0 AS col2 FROM tab2 cor0
----
-79
-8
-80

query I rowsort
SELECT ALL + col2 * + 17 * col2 AS col0 FROM tab0 AS cor0
----
114308
17
18513

onlyif mysql # use DIV operator for integer division
query I rowsort label-2577
SELECT DISTINCT - cor0.col2 + - col0 DIV col1 FROM tab1 AS cor0
----
-102
-54
-63

skipif mysql # not compatible
query I rowsort label-2577
SELECT DISTINCT - cor0.col2 + - col0 / col1 FROM tab1 AS cor0
----
-102
-54
-63

query I rowsort
SELECT DISTINCT col2 + ( + col2 ) AS col0 FROM tab1 AS cor0
----
108
114
192

query I rowsort
SELECT ALL + ( col2 ) AS col1 FROM tab1 cor0
----
54
57
96

query I rowsort
SELECT - col0 + col1 * + ( col1 ) FROM tab1 AS cor0
----
36
673
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-2581
SELECT ALL + 83 + col0 DIV - col0 FROM tab0 AS cor0
----
82
82
82

skipif mysql # not compatible
query I rowsort label-2581
SELECT ALL + 83 + col0 / - col0 FROM tab0 AS cor0
----
82
82
82

query I rowsort
SELECT ALL - 99 AS col1 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 761f5f1a166a00db99360141565a85da

query I rowsort
SELECT + cor0.col2 - - col2 FROM tab0 AS cor0
----
164
2
66

query I rowsort
SELECT DISTINCT col0 + col1 * col2 AS col2 FROM tab0
----
132
2862
7551

query I rowsort
SELECT - - col2 * - ( - col0 ) * col0 + ( col0 + col1 ) * col0 AS col0 FROM tab1 AS cor0
----
238208
573
621840

query I rowsort
SELECT col2 * - 53 FROM tab1 AS cor0
----
-2862
-3021
-5088

query I rowsort
SELECT - cor0.col2 * 64 AS col1 FROM tab2 AS cor0
----
-1664
-1728
-2432

onlyif mysql # use DIV operator for integer division
query I rowsort label-2588
SELECT ALL + col1 * tab1.col1 * 28 + - col2 DIV tab1.col1 FROM tab1
----
18926
2795
4725

skipif mysql # not compatible
query I rowsort label-2588
SELECT ALL + col1 * tab1.col1 * 28 + - col2 / tab1.col1 FROM tab1
----
18926
2795
4725

query I rowsort
SELECT - ( col1 ) * tab1.col0 + + col0 FROM tab1
----
-576
-75
-960

onlyif mysql # use DIV operator for integer division
query I rowsort label-2590
SELECT DISTINCT col1 * col2 - - col1 DIV + col0 FROM tab0
----
2841
7463
99

skipif mysql # not compatible
query I rowsort label-2590
SELECT DISTINCT col1 * col2 - - col1 / + col0 FROM tab0
----
2841
7463
99

query I rowsort
SELECT DISTINCT + tab1.col1 * - col1 AS col1 FROM tab1
----
-100
-169
-676

query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab0 WHERE NULL <> col1
----

query I rowsort
SELECT - col2 * + tab1.col0 + - col1 AS col2 FROM tab1
----
-188
-3658
-7693

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL <> ( NULL )
----

query I rowsort
SELECT + col0 + + col0 + col2 * - col2 FROM tab0
----
-1041
-6546
69

query I rowsort
SELECT + col2 + + tab0.col2 + tab0.col0 AS col1 FROM tab0
----
253
37
90

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab0 WHERE NULL = + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + col1 * col1 - col2 col2 FROM tab1
----
13424
1974
6343

query I rowsort
SELECT col1 + - col2 - col0 * - col2 AS col1 FROM tab1
----
134
3601
7597

query I rowsort
SELECT ALL + col0 - col1 * col2 FROM tab1
----
-1168
-1401
-506

query I rowsort
SELECT ALL col1 / col0 AS col2 FROM tab0 WHERE NOT col1 * - col2 <= col0 * col0 + col2
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-2602
SELECT DISTINCT - col2 + - col1 DIV - col1 FROM tab0
----
-32
-81
0

skipif mysql # not compatible
query I rowsort label-2602
SELECT DISTINCT - col2 + - col1 / - col1 FROM tab0
----
-32
-81
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL <= col1
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) <> NULL
----

query I rowsort
SELECT - 3 + col0 AS col2 FROM tab2 AS cor0
----
4
75
76

query I rowsort
SELECT ALL 95 * + cor0.col1 + col1 FROM tab1 AS cor0
----
1248
2496
960

query I rowsort
SELECT DISTINCT + + ( col0 ) + + 14 AS col2 FROM tab1 AS cor0
----
17
78
94

query I rowsort
SELECT + + 9 FROM tab2 AS cor0
----
9
9
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-2609
SELECT ALL + tab2.col2 * 95 DIV col1 FROM tab2
----
212
41
82

skipif mysql # not compatible
query I rowsort label-2609
SELECT ALL + tab2.col2 * 95 / col1 FROM tab2
----
212
41
82

query I rowsort
SELECT ALL + 54 FROM tab0, tab2 cor0
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09

query I rowsort
SELECT + col2 * col0 * + ( + ( - col0 ) * + 41 ) FROM tab2 AS cor0
----
-54243
-6485544
-9723478

query I rowsort
SELECT - 71 * col2 FROM tab2 AS cor0
----
-1846
-1917
-2698

onlyif mysql # use DIV operator for integer division
query I rowsort label-2613
SELECT col0 + col0 DIV cor0.col0 FROM tab2 cor0
----
79
8
80

skipif mysql # not compatible
query I rowsort label-2613
SELECT col0 + col0 / cor0.col0 FROM tab2 cor0
----
79
8
80

query I rowsort
SELECT ALL + 49 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55

query I rowsort
SELECT col2 - + cor0.col0 AS col2 FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT ALL col1 + 14 + col2 * + col0 FROM tab0 AS cor0
----
146
7403
892

query I rowsort
SELECT + col1 * ( col2 ) + cor0.col1 AS col0 FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT DISTINCT - - col1 - 64 AS col2 FROM tab1 AS cor0
----
-38
-51
-54

query I rowsort
SELECT + - col2 * - col0 + + 50 * col1 FROM tab2 AS cor0
----
1739
3852
4978

query I rowsort
SELECT ALL - + col1 + + ( col2 ) AS col2 FROM tab1 AS cor0
----
28
47
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-2621
SELECT - - col2 DIV 10 + - col1 col2 FROM tab1 AS cor0
----
-21
-4
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2621
SELECT - - col2 / 10 + - col1 col2 FROM tab1 AS cor0
----
-21
-4
-5

query I rowsort
SELECT ALL - - cor0.col2 + - col1 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT ALL 62 FROM tab1, tab2 AS cor0, tab0 cor1, tab1 AS cor2
----
81 values hashing to 0bc652564a158b9c0f7952026f90b60a

query I rowsort
SELECT - + 20 + - col1 FROM tab0 cor0
----
-106
-111
-117

query I rowsort
SELECT + col2 + - col0 * + cor0.col0 * col1 FROM tab1 AS cor0
----
-180
-40903
-83104

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2626
SELECT - ( cor0.col1 ) * CAST( NULL AS SIGNED ) - - col1 * cor0.col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2626
SELECT - ( cor0.col1 ) * CAST ( NULL AS INTEGER ) - - col1 * cor0.col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + cor0.col1 * ( col1 ) * - cor0.col0 + - ( - ( col0 ) ) AS col1 FROM tab0 AS cor0
----
177528
329350
737098

query I rowsort
SELECT ALL + col2 * 45 + - 37 * - col0 AS col2 FROM tab1
----
2541
4933
7280

query I rowsort
SELECT DISTINCT col1 + 73 * col0 FROM tab2
----
542
5753
5784

query I rowsort
SELECT + col2 * - col1 + cor0.col0 AS col0 FROM tab1 AS cor0
----
-1168
-1401
-506

query I rowsort
SELECT + 55 - cor0.col2 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to a5eee3fa0844bb5dcd49247715408fae

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2 cor0, tab2 AS cor1, tab2, tab2 AS cor2
----
3645 values hashing to f23c9ebf4a57b11b108cf933fe3c62aa

query I rowsort
SELECT ALL - col0 + 49 FROM tab0 AS cor0
----
-40
14
25

query I rowsort
SELECT DISTINCT + col2 * + 51 FROM tab0 AS cor0
----
1683
4182
51

query I rowsort
SELECT 66 * 1 AS col2 FROM tab2 cor0
----
66
66
66

query I rowsort
SELECT DISTINCT + col0 * + col1 * col2 FROM tab1
----
36480
4212
99840

query I rowsort
SELECT DISTINCT col0 * + 36 AS col0 FROM tab2
----
252
2808
2844

query I rowsort
SELECT - ( col2 ) * - col2 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT - 84 * - 83 AS col2 FROM tab2 AS cor0
----
6972
6972
6972

query I rowsort
SELECT col1 * - 61 AS col0 FROM tab2 AS cor0
----
-1037
-1891
-3599

query I rowsort
SELECT ALL - 53 + col2 AS col2 FROM tab0 AS cor0
----
-20
-52
29

query I rowsort
SELECT - col0 + - col0 * + ( + col0 ) FROM tab1 AS cor0
----
-12
-4160
-6480

onlyif mysql # use DIV operator for integer division
query I rowsort label-2643
SELECT DISTINCT - 2 * - cor0.col2 DIV + 1 AS col1 FROM tab0 AS cor0
----
164
2
66

skipif mysql # not compatible
query I rowsort label-2643
SELECT DISTINCT - 2 * - cor0.col2 / + 1 AS col1 FROM tab0 AS cor0
----
164
2
66

query I rowsort
SELECT ALL + 6 + col1 * + col1 AS col0 FROM tab0 AS cor0
----
7402
8287
9415

query I rowsort
SELECT ALL 25 * - col1 + 12 + cor0.col2 FROM tab1 AS cor0
----
-181
-217
-584

query I rowsort
SELECT 4 * + col2 FROM tab0 AS cor0
----
132
328
4

query I rowsort
SELECT DISTINCT 33 AS col1 FROM tab0
----
33

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2648
SELECT ALL + CAST( 93 * col1 AS SIGNED ) FROM tab1
----
1209
2418
930

skipif mysql # not compatible
query I rowsort label-2648
SELECT ALL + CAST ( 93 * col1 AS INTEGER ) FROM tab1
----
1209
2418
930

query I rowsort
SELECT - col1 * - col1 FROM tab2 cor0
----
289
3481
961

query I rowsort
SELECT DISTINCT + 77 + - col1 AS col1 FROM tab2 AS cor0
----
18
46
60

query I rowsort
SELECT ALL + col1 * col1 * + col1 FROM tab2 AS cor0
----
205379
29791
4913

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 AS cor0, tab0, tab2 cor1
----
972 values hashing to 42e69ecdafb3c81046bc5cb4c98b1666

query I rowsort
SELECT DISTINCT - + 34 * + col2 FROM tab0 cor0
----
-1122
-2788
-34

onlyif mysql # use DIV operator for integer division
query I rowsort label-2654
SELECT ALL + - ( col1 ) DIV cor0.col1 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2654
SELECT ALL + - ( col1 ) / cor0.col1 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL - 50 + + cor0.col0 * + 3 AS col2 FROM tab1 AS cor0
----
-41
142
190

onlyif mysql # use DIV operator for integer division
query I rowsort label-2656
SELECT ALL - cor0.col0 DIV + 1 AS col2 FROM tab0, tab0 AS cor0, tab0 cor1
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8

skipif mysql # not compatible
query I rowsort label-2656
SELECT ALL - cor0.col0 / + 1 AS col2 FROM tab0, tab0 AS cor0, tab0 cor1
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8

query I rowsort
SELECT + cor0.col2 * col2 - - col1 * - col1 AS col2 FROM tab0 AS cor0
----
-1557
-6307
-9408

query I rowsort
SELECT DISTINCT - - col1 * cor0.col1 FROM tab0 cor0
----
7396
8281
9409

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2659
SELECT - cor0.col1 / CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2659
SELECT - cor0.col1 / CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 39 AS col0 FROM tab2
----
39
39
39

query I rowsort
SELECT - col1 + col2 * - 72 * + tab0.col0 FROM tab0
----
-2617
-525547
-57110

onlyif mysql # use DIV operator for integer division
query I rowsort label-2662
SELECT DISTINCT + ( 45 ) DIV col1 + - ( cor0.col0 + - col0 ) AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2662
SELECT DISTINCT + ( 45 ) / col1 + - ( cor0.col0 + - col0 ) AS col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT cor0.col0 * cor0.col1 AS col1 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT + ( 71 ) FROM tab1 AS cor0
----
71
71
71

query I rowsort
SELECT + 1 + col0 * - col1 FROM tab1 AS cor0
----
-1039
-639
-77

query I rowsort
SELECT + col1 * + col2 + - col0 + 90 FROM tab1 AS cor0
----
1258
1491
596

query I rowsort
SELECT DISTINCT - + cor0.col1 * + col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT DISTINCT + - col0 + - cor0.col0 AS col0 FROM tab0 AS cor0
----
-178
-48
-70

onlyif mysql # use DIV operator for integer division
query I rowsort label-2669
SELECT ALL - col0 DIV - ( + col1 ) + - 75 AS col0 FROM tab1 AS cor0
----
-69
-69
-75

skipif mysql # not compatible
query I rowsort label-2669
SELECT ALL - col0 / - ( + col1 ) + - 75 AS col0 FROM tab1 AS cor0
----
-69
-69
-75

query I rowsort
SELECT ALL - col2 + col1 * col2 FROM tab2 cor0
----
1508
608
810

query I rowsort
SELECT + col1 + + 66 AS col2 FROM tab0 AS cor0
----
152
157
163

query I rowsort
SELECT DISTINCT - 7 + col1 * col0 AS col0 FROM tab1 AS cor0
----
1033
633
71

query I rowsort
SELECT cor0.col1 * + 80 FROM tab2 AS cor0
----
1360
2480
4720

query I rowsort
SELECT ALL + - 3 * + col2 + + col1 + col1 FROM tab1 AS cor0
----
-110
-151
-262

query I rowsort
SELECT + col0 + cor0.col0 * + col1 FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT - col2 * 6 FROM tab2
----
-156
-162
-228

query I rowsort
SELECT ALL + col2 + col0 * col2 AS col1 FROM tab1
----
216
3705
7776

query I rowsort
SELECT ALL col2 * 19 + - col0 FROM tab0
----
-16
1469
603

query I rowsort
SELECT ALL tab1.col2 + ( tab1.col1 ) + - col0 AS col2 FROM tab1
----
29
3
77

query I rowsort
SELECT ALL col2 * col1 + col0 AS col1 FROM tab1
----
1328
1407
634

onlyif mysql # use DIV operator for integer division
query I rowsort label-2681
SELECT DISTINCT - ( tab0.col2 ) DIV - col1 AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2681
SELECT DISTINCT - ( tab0.col2 ) / - col1 AS col1 FROM tab0
----
0

query I rowsort
SELECT ALL - - 16 AS col0 FROM tab1 AS cor0
----
16
16
16

query I rowsort
SELECT DISTINCT 18 AS col2 FROM tab1 AS cor0
----
18

query I rowsort
SELECT DISTINCT + ( col1 ) + col0 * col1 * - cor0.col0 + - col0 * + cor0.col2 AS col1 FROM tab2 cor0
----
-109082
-1677
-360925

query I rowsort
SELECT + + 79 + 39 * + col2 FROM tab1 AS cor0
----
2185
2302
3823

query I rowsort
SELECT ALL - cor0.col0 * + col1 AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT col1 * 27 + col2 FROM tab1 AS cor0
----
327
447
756

query I rowsort
SELECT + tab2.col0 + - ( - ( - col2 ) ) AS col0 FROM tab2
----
-20
41
52

query I rowsort
SELECT - cor0.col1 * + 23 FROM tab2 cor0
----
-1357
-391
-713

query I rowsort
SELECT DISTINCT 1 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2691
SELECT - + col0 + + CAST( NULL AS DECIMAL ) 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-2691
SELECT - + col0 + + CAST ( NULL AS REAL ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT cor0.col2 * ( - cor0.col0 ) + cor0.col1 * - col1 * - col1 FROM tab0 cor0
----
635264
746273
912638

query I rowsort
SELECT - + cor0.col0 + col0 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - - 21 + - 43 AS col2 FROM tab0 cor0
----
-22
-22
-22

query I rowsort
SELECT ALL + + ( - col2 ) * - cor0.col2 AS col1 FROM tab2 cor0
----
1444
676
729

query I rowsort
SELECT col0 + 77 AS col1 FROM tab1 AS cor0
----
141
157
80

query I rowsort
SELECT DISTINCT col0 + - col1 + + col2 FROM tab0 AS cor0
----
-29
-61
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2698
SELECT col0 * CAST( NULL AS SIGNED ) + - 54 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2698
SELECT col0 * CAST ( NULL AS INTEGER ) + - 54 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - 26 * - col2 + col1 FROM tab0 AS cor0
----
123
2223
944

onlyif mysql # use DIV operator for integer division
query I rowsort label-2700
SELECT + + 77 + + col2 DIV - col1 col1 FROM tab1 cor0
----
70
72
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2700
SELECT + + 77 + + col2 / - col1 col1 FROM tab1 cor0
----
70
72
75

query I rowsort
SELECT ALL 32 AS col0 FROM tab1 AS cor0
----
32
32
32

onlyif mysql # use DIV operator for integer division
query I rowsort label-2702
SELECT DISTINCT - col2 DIV - col0 AS col0 FROM tab2 AS cor0
----
0
3

skipif mysql # not compatible
query I rowsort label-2702
SELECT DISTINCT - col2 / - col0 AS col0 FROM tab2 AS cor0
----
0
3

query I rowsort
SELECT - + 29 + cor0.col0 FROM tab0 AS cor0
----
-5
6
60

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2704
SELECT DISTINCT + 78 + col1 * CAST( + col0 AS SIGNED ) * - col0 AS col0 FROM tab1 AS cor0
----
-156
-40882
-83122

skipif mysql # not compatible
query I rowsort label-2704
SELECT DISTINCT + 78 + col1 * CAST ( + col0 AS INTEGER ) * - col0 AS col0 FROM tab1 AS cor0
----
-156
-40882
-83122

onlyif mysql # use DIV operator for integer division
query I rowsort label-2705
SELECT DISTINCT + col1 DIV + col1 - ( - 68 ) * col0 FROM tab0 AS cor0
----
1633
2381
6053

skipif mysql # not compatible
query I rowsort label-2705
SELECT DISTINCT + col1 / + col1 - ( - 68 ) * col0 FROM tab0 AS cor0
----
1633
2381
6053

query I rowsort
SELECT DISTINCT - + col2 + + col1 AS col1 FROM tab0 cor0
----
53
9
96

query I rowsort
SELECT DISTINCT - col0 + col1 * + col1 FROM tab1
----
36
673
89

query I rowsort
SELECT ALL + cor0.col0 + cor0.col0 AS col2 FROM tab0 cor0
----
178
48
70

query I rowsort
SELECT + 52 + col1 FROM tab2 AS cor0
----
111
69
83

query I rowsort
SELECT + col0 * - col1 + + col1 AS col1 FROM tab0 AS cor0
----
-1978
-3298
-8008

query I rowsort
SELECT ALL - ( col0 ) * - col1 - 10 * col2 FROM tab2 AS cor0
----
-53
4342
963

query I rowsort
SELECT DISTINCT - cor0.col2 * + col0 AS col1 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT - cor0.col1 * col1 + col2 AS col0 FROM tab2 AS cor0
----
-251
-3455
-934

query I rowsort
SELECT cor0.col2 * + col0 + - 64 FROM tab2 AS cor0
----
125
1964
2938

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2715
SELECT - - col0 * + CAST( col0 AS SIGNED ) + col0 FROM tab1 cor0
----
12
4160
6480

skipif mysql # not compatible
query I rowsort label-2715
SELECT - - col0 * + CAST ( col0 AS INTEGER ) + col0 FROM tab1 cor0
----
12
4160
6480

query I rowsort
SELECT - 2 + - tab0.col1 AS col0 FROM tab0
----
-88
-93
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + col0 col2 FROM tab0
----
35
7298
792

onlyif mysql # use DIV operator for integer division
query I rowsort label-2718
SELECT - col0 DIV + col1 + col1 * col1 * col1 AS col0 FROM tab1 AS cor0
----
17576
2191
994

skipif mysql # not compatible
query I rowsort label-2718
SELECT - col0 / + col1 + col1 * col1 * col1 AS col0 FROM tab1 AS cor0
----
17576
2191
994

query I rowsort
SELECT + col0 * + cor0.col1 * + col0 FROM tab1 AS cor0
----
234
40960
83200

query I rowsort
SELECT + col0 + ( col0 ) FROM tab2 cor0
----
14
156
158

query I rowsort
SELECT + + col2 + + col2 * col1 AS col1 FROM tab2 AS cor0
----
1560
684
864

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2722
SELECT + - col0 * + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2722
SELECT + - col0 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2723
SELECT col1 + + col2 DIV - 89 AS col1 FROM tab1 AS cor0
----
10
12
26

skipif mysql # not compatible
query I rowsort label-2723
SELECT col1 + + col2 / - 89 AS col1 FROM tab1 AS cor0
----
10
12
26

query I rowsort
SELECT col0 * + 94 FROM tab1 AS cor0
----
282
6016
7520

query I rowsort
SELECT - col0 * + ( 74 ) * col2 + col2 FROM tab2 AS cor0
----
-13959
-150046
-222110

query I rowsort
SELECT + col2 * 46 FROM tab2
----
1196
1242
1748

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - ( - col0 ) col0 FROM tab1
----
162
3648
7680

query I rowsort
SELECT + - col1 * + 30 FROM tab0 AS cor0
----
-2580
-2730
-2910

query I rowsort
SELECT - col0 - - cor0.col1 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT DISTINCT + col2 + + 72 FROM tab2
----
110
98
99

query I rowsort
SELECT ALL 91 + col0 * - cor0.col1 FROM tab1 AS cor0
----
-549
-949
13

onlyif mysql # use DIV operator for integer division
query I rowsort label-2732
SELECT DISTINCT 94 DIV col1 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-2732
SELECT DISTINCT 94 / col1 FROM tab0
----
0
1

query I rowsort
SELECT - tab2.col0 * tab2.col2 AS col0 FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT + + col2 + + col2 * - col2 + ( col1 ) FROM tab2 AS cor0
----
-1389
-591
-671

query I rowsort
SELECT col0 * col0 + - 72 * - 57 FROM tab0 AS cor0
----
12025
4680
5329

query I rowsort
SELECT + col1 + col1 * 61 FROM tab0 AS cor0
----
5332
5642
6014

onlyif mysql # use DIV operator for integer division
query I rowsort label-2737
SELECT col2 + col2 * col0 DIV + 66 AS col1 FROM tab1 AS cor0
----
112
212
56

skipif mysql # not compatible
query I rowsort label-2737
SELECT col2 + col2 * col0 / + 66 AS col1 FROM tab1 AS cor0
----
112
212
56

query I rowsort
SELECT - col0 * + col1 AS col2 FROM tab0 cor0
----
-2064
-3395
-8099

query I rowsort
SELECT ALL - - ( cor0.col0 ) * col2 AS col1 FROM tab1 AS cor0
----
162
3648
7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-2740
SELECT - - 8 + + 79 DIV col1 AS col2 FROM tab0 AS cor0
----
8
8
8

skipif mysql # not compatible
query I rowsort label-2740
SELECT - - 8 + + 79 / col1 AS col2 FROM tab0 AS cor0
----
8
8
8

onlyif mysql # use DIV operator for integer division
query I rowsort label-2741
SELECT 15 DIV - col2 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2741
SELECT 15 / - col2 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + col2 + - 50 * col2 FROM tab0 AS cor0
----
-1617
-4018
-49

query I rowsort
SELECT ALL col2 + col2 * col2 FROM tab2 cor0
----
1482
702
756

query I rowsort
SELECT DISTINCT - 78 * col1 FROM tab0 AS cor0
----
-6708
-7098
-7566

onlyif mysql # use DIV operator for integer division
query I rowsort label-2745
SELECT + 4 DIV cor0.col0 col2 FROM tab1 AS cor0
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2745
SELECT + 4 / cor0.col0 col2 FROM tab1 AS cor0
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + col1 ) * col1 col0 FROM tab0 AS cor0
----
-7396
-8281
-9409

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2747
SELECT + CAST( NULL AS SIGNED ) * ( - col1 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2747
SELECT + CAST ( NULL AS INTEGER ) * ( - col1 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2748
SELECT DISTINCT + 79 DIV ( - col1 ) AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2748
SELECT DISTINCT + 79 / ( - col1 ) AS col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT ( cor0.col0 ) AS col0 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT ALL + ( + ( + col1 ) ) AS col1 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT + + 35 AS col1 FROM tab0 AS cor0
----
35
35
35

query I rowsort
SELECT cor0.col0 + col0 AS col1 FROM tab1 cor0
----
128
160
6

onlyif mysql # use DIV operator for integer division
query I rowsort label-2753
SELECT DISTINCT + - 38 DIV + col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2753
SELECT DISTINCT + - 38 / + col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL col2 * - 91 AS col0 FROM tab0
----
-3003
-7462
-91

query I rowsort
SELECT ( - 54 ) + col1 * col1 FROM tab0
----
7342
8227
9355

query I rowsort
SELECT DISTINCT col0 * + ( col1 ) FROM tab1
----
1040
640
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( 41 * col2 ) - col2 * - col0 col0 FROM tab1
----
11616
2376
5985

query I rowsort
SELECT ALL - cor0.col2 + - cor0.col0 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 9b6b643191a390a3a60049db62acd1a4

query I rowsort
SELECT ALL ( - col1 * - col1 ) FROM tab0
----
7396
8281
9409

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab1 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab0 AS cor2
----
3645 values hashing to 750b3c1b743e18f68d402d034647fcf2

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2761
SELECT + 49 + col0 * - CAST( NULL AS SIGNED ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2761
SELECT + 49 + col0 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT cor0.col1 * - cor0.col2 + - ( 8 ) * - col2 FROM tab2 AS cor0
----
-1326
-342
-621

query I rowsort
SELECT - - col2 + 8 FROM tab1 AS cor0
----
104
62
65

query I rowsort
SELECT DISTINCT col0 * 83 AS col0 FROM tab2
----
581
6474
6557

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 42 col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442

onlyif mysql # use DIV operator for integer division
query I rowsort label-2766
SELECT DISTINCT - col1 * - tab1.col0 DIV col0 FROM tab1
----
10
13
26

skipif mysql # not compatible
query I rowsort label-2766
SELECT DISTINCT - col1 * - tab1.col0 / col0 FROM tab1
----
10
13
26

query I rowsort
SELECT ALL + + cor0.col1 * + col0 FROM tab2 AS cor0
----
1343
217
4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-2768
SELECT col2 + - col0 DIV - 32 AS col2 FROM tab0 cor0
----
2
33
84

skipif mysql # not compatible
query I rowsort label-2768
SELECT col2 + - col0 / - 32 AS col2 FROM tab0 cor0
----
2
33
84

query I rowsort
SELECT DISTINCT 28 * cor1.col2 + - 96 FROM tab2, tab2 AS cor0, tab0 cor1
----
-68
2200
828

onlyif mysql # use DIV operator for integer division
query I rowsort label-2770
SELECT ALL - col1 DIV cor0.col2 + - ( + cor0.col2 * col1 ) + - col1 col1 FROM tab1 AS cor0
----
-1261
-1430
-580

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2770
SELECT ALL - col1 / cor0.col2 + - ( + cor0.col2 * col1 ) + - col1 col1 FROM tab1 AS cor0
----
-1261
-1430
-580

onlyif mysql # use DIV operator for integer division
query I rowsort label-2771
SELECT ALL + - cor0.col0 DIV + col1 + cor0.col1 FROM tab2 AS cor0
----
13
31
58

skipif mysql # not compatible
query I rowsort label-2771
SELECT ALL + - cor0.col0 / + col1 + cor0.col1 FROM tab2 AS cor0
----
13
31
58

onlyif mysql # use DIV operator for integer division
query I rowsort label-2772
SELECT DISTINCT + col1 - - CAST( col0 AS SIGNED ) DIV col0 FROM tab2 cor0
----
18
32
60

skipif mysql # not compatible
query I rowsort label-2772
SELECT DISTINCT + col1 - - CAST ( col0 AS INTEGER ) / col0 FROM tab2 cor0
----
18
32
60

query I rowsort
SELECT DISTINCT + cor0.col1 * - col0 + ( + cor0.col0 * cor0.col1 ) AS col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT col2 * col1 AS col0 FROM tab2 cor0
----
1534
646
837

query I rowsort
SELECT - - col0 * + col0 AS col0 FROM tab1 AS cor0
----
4096
6400
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col2 col2 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT DISTINCT + col0 + - 81 * - col1 AS col2 FROM tab0 AS cor0
----
6990
7460
7892

query I rowsort
SELECT ALL - - 72 + col2 AS col0 FROM tab1 AS cor0
----
126
129
168

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + col2 * col2 col0 FROM tab2 AS cor0
----
1461
735
760

query I rowsort
SELECT ALL + 3 * col1 * + col2 FROM tab2 cor0
----
1938
2511
4602

query I rowsort
SELECT + + 4 AS col1 FROM tab2 AS cor0
----
4
4
4

query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab1 cor0, tab2 cor1, tab1 AS cor2
----
972 values hashing to 4c0813b2179303fdf58f082d81d6d03c

query I rowsort
SELECT - 21 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 631fbd1fd929405aba54a22c2a06c757

query I rowsort
SELECT ALL - col1 * + col0 FROM tab2 cor0
----
-1343
-217
-4602

query I rowsort
SELECT + + ( - col0 ) AS col1 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT DISTINCT + cor1.col2 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
1
33
82

query I rowsort
SELECT - col1 + col2 + - 70 AS col0 FROM tab0 cor0
----
-123
-166
-79

query I rowsort
SELECT ( cor0.col2 ) AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

query I rowsort
SELECT ALL 33 * - col0 + - col0 FROM tab0
----
-1190
-3026
-816

onlyif mysql # use DIV operator for integer division
query I rowsort label-2790
SELECT DISTINCT - col1 DIV + col2 + 60 * 47 FROM tab1
----
2820

skipif mysql # not compatible
query I rowsort label-2790
SELECT DISTINCT - col1 / + col2 + 60 * 47 FROM tab1
----
2820

query I rowsort
SELECT ALL 77 + col1 FROM tab1
----
103
87
90

query I rowsort
SELECT DISTINCT cor0.col1 - - col2 AS col1 FROM tab0 cor0
----
119
173
98

query I rowsort
SELECT + + col0 * col0 - 0 FROM tab1 AS cor0
----
4096
6400
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-2794
SELECT - + cor0.col0 * col2 - col2 * cor0.col1 DIV col1 AS col2 FROM tab0 AS cor0
----
-36
-7380
-825

skipif mysql # not compatible
query I rowsort label-2794
SELECT - + cor0.col0 * col2 - col2 * cor0.col1 / col1 AS col2 FROM tab0 AS cor0
----
-36
-7380
-825

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 65 col2 FROM tab1 AS cor0
----
65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 39 col0 FROM tab0, tab0 cor0
----
39

query I rowsort
SELECT col1 * col2 - - ( 25 ) FROM tab1 AS cor0
----
1273
1429
595

query I rowsort
SELECT ALL + col0 * col1 - ( - col1 ) * col1 AS col2 FROM tab0 cor0
----
12804
16380
9460

query I rowsort
SELECT cor0.col1 + col0 AS col0 FROM tab2 AS cor0
----
137
38
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-2800
SELECT ALL + col1 DIV cor0.col0 FROM tab1 cor0
----
0
0
8

skipif mysql # not compatible
query I rowsort label-2800
SELECT ALL + col1 / cor0.col0 FROM tab1 cor0
----
0
0
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * col2 + col2 + + col0 * tab2.col1 col2 FROM tab2
----
433
4383
6656

onlyif mysql # use DIV operator for integer division
query I rowsort label-2802
SELECT ALL + col0 + col2 DIV - col1 FROM tab2 AS cor0
----
7
77
78

skipif mysql # not compatible
query I rowsort label-2802
SELECT ALL + col0 + col2 / - col1 FROM tab2 AS cor0
----
7
77
78

query I rowsort
SELECT DISTINCT - col0 + + col2 - + 85 FROM tab2 cor0
----
-126
-137
-65

query I rowsort
SELECT ALL col2 + 62 AS col0 FROM tab0 AS cor0
----
144
63
95

query I rowsort
SELECT ALL - col2 * + col1 - 90 * col1 AS col0 FROM tab1 cor0
----
-1470
-2418
-3744

query I rowsort
SELECT DISTINCT - - col2 * 57 + - col2 AS col1 FROM tab2 AS cor0
----
1456
1512
2128

query I rowsort
SELECT col2 + - cor0.col0 FROM tab1 cor0
----
-7
16
51

query I rowsort
SELECT ALL 31 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to c3c6f92f0ca72d71793339f88a57e336

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2809
SELECT ALL col0 * - col0 + - CAST( NULL AS SIGNED ) * + col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2809
SELECT ALL col0 * - col0 + - CAST ( NULL AS INTEGER ) * + col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col2 + col2 * col0 FROM tab2
----
162
2002
2964

query I rowsort
SELECT tab2.col2 * tab2.col1 * - ( - tab2.col0 * + col2 ) + + 32 FROM tab2
----
158225
1939324
3110984

query I rowsort
SELECT + ( - col0 + + tab0.col0 ) FROM tab0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * cor0.col1 col2 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT + 52 AS col1 FROM tab1, tab0 cor0, tab0 AS cor1
----
27 values hashing to 76100d10f51995d20efdeb657e444d3c

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2815
SELECT - + col0 + - col2 * CAST( NULL AS SIGNED ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2815
SELECT - + col0 + - col2 * CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2816
SELECT ALL 98 DIV col0 AS col0 FROM tab0
----
1
2
4

skipif mysql # not compatible
query I rowsort label-2816
SELECT ALL 98 / col0 AS col0 FROM tab0
----
1
2
4

query I rowsort
SELECT DISTINCT ( ( col2 ) + - ( col1 ) ) * - tab2.col0 AS col2 FROM tab2
----
-1659
2574
28

query I rowsort
SELECT 6 FROM tab0, tab1 AS cor0 CROSS JOIN tab2
----
27 values hashing to f1e8f0199f3714ee8fcc24ce0cc3ea04

query I rowsort
SELECT DISTINCT 56 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 80 * + cor0.col0 col1 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to e32d46f4b964c49d596316467c822ba4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * col1 + col1 * tab2.col1 col2 FROM tab2
----
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2822
SELECT ALL - col2 * + CAST( NULL AS DECIMAL ) + + col0 * + col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2822
SELECT ALL - col2 * + CAST ( NULL AS REAL ) + + col0 * + col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT col0 * - 14 + + 11 FROM tab2 AS cor0
----
-1081
-1095
-87

query I rowsort
SELECT + col2 * + col2 + cor0.col2 FROM tab0 AS cor0
----
1122
2
6806

onlyif mysql # use DIV operator for integer division
query I rowsort label-2825
SELECT DISTINCT - - col0 + col0 DIV + 52 FROM tab2 AS cor0
----
7
79
80

skipif mysql # not compatible
query I rowsort label-2825
SELECT DISTINCT - - col0 + col0 / + 52 FROM tab2 AS cor0
----
7
79
80

query I rowsort
SELECT ALL + col1 + - col2 AS col2 FROM tab2
----
-21
33
4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2827
SELECT ALL CAST( NULL AS SIGNED ) * + cor0.col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2827
SELECT ALL CAST ( NULL AS INTEGER ) * + cor0.col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + cor0.col1 + - cor0.col1 * col2 AS col0 FROM tab0 AS cor0
----
-2752
-7371
0

query I rowsort
SELECT - - col1 + + col2 AS col2 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT + ( + 77 ) + col0 AS col0 FROM tab2 AS cor0
----
155
156
84

onlyif mysql # use DIV operator for integer division
query I rowsort label-2831
SELECT ALL - + col0 * 31 DIV + cor0.col1 AS col0 FROM tab1 AS cor0
----
-190
-198
-3

skipif mysql # not compatible
query I rowsort label-2831
SELECT ALL - + col0 * 31 / + cor0.col1 AS col0 FROM tab1 AS cor0
----
-190
-198
-3

query I rowsort
SELECT + - col1 * + col0 + + col0 * ( + col2 ) FROM tab1 AS cor0
----
3008
6640
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 + + 14 col2 FROM tab2 AS cor0
----
-17
-3
-45

query I rowsort
SELECT ( tab2.col0 ) * - col1 FROM tab2
----
-1343
-217
-4602

query I rowsort
SELECT ALL - 55 + - ( - col1 ) FROM tab1 AS cor0
----
-29
-42
-45

query I rowsort
SELECT ALL - - ( - 95 ) + col0 * + cor0.col1 FROM tab0 AS cor0
----
1969
3300
8004

query I rowsort
SELECT DISTINCT 54 AS col2 FROM tab0 AS cor0
----
54

query I rowsort
SELECT cor0.col1 * col2 + + col1 AS col1 FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT + + 79 + + col1 AS col0 FROM tab0 AS cor0
----
165
170
176

query I rowsort
SELECT ( + col0 ) * col2 + 28 FROM tab0 AS cor0
----
63
7326
820

query I rowsort
SELECT col2 * + 53 FROM tab1 AS cor0
----
2862
3021
5088

onlyif mysql # use DIV operator for integer division
query I rowsort label-2842
SELECT + + cor0.col2 * cor0.col0 DIV + cor0.col1 - col0 * col0 * col1 AS col0 FROM tab2 AS cor0
----
-105921
-1513
-358922

skipif mysql # not compatible
query I rowsort label-2842
SELECT + + cor0.col2 * cor0.col0 / + cor0.col1 - col0 * col0 * col1 AS col0 FROM tab2 AS cor0
----
-105921
-1513
-358922

onlyif mysql # use DIV operator for integer division
query I rowsort label-2843
SELECT DISTINCT col0 - col0 DIV - col1 AS col2 FROM tab1
----
3
70
86

skipif mysql # not compatible
query I rowsort label-2843
SELECT DISTINCT col0 - col0 / - col1 AS col2 FROM tab1
----
3
70
86

query I rowsort
SELECT + col0 * - 20 + - col2 * 85 FROM tab2 cor0
----
-2435
-3770
-4810

query I rowsort
SELECT + col1 * + col2 * col1 AS col0 FROM tab2
----
10982
25947
90506

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2846
SELECT DISTINCT + CAST( + 39 AS SIGNED ) AS col0 FROM tab0
----
39

skipif mysql # not compatible
query I rowsort label-2846
SELECT DISTINCT + CAST ( + 39 AS INTEGER ) AS col0 FROM tab0
----
39

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2847
SELECT - CAST( NULL AS SIGNED ) + - 70 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2847
SELECT - CAST ( NULL AS INTEGER ) + - 70 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - ( + 46 ) + - col1 * + cor0.col1 AS col2 FROM tab1 AS cor0
----
-146
-215
-722

query I rowsort
SELECT + + ( col1 ) * col0 - 13 FROM tab2 AS cor0
----
1330
204
4589

query I rowsort
SELECT ( - col0 ) - - col2 AS col0 FROM tab1 AS cor0
----
-7
16
51

onlyif mysql # use DIV operator for integer division
query I rowsort label-2851
SELECT + 41 + col2 * col2 DIV cor0.col1 col1 FROM tab1 AS cor0
----
153
365
749

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2851
SELECT + 41 + col2 * col2 / cor0.col1 col1 FROM tab1 AS cor0
----
153
365
749

query I rowsort
SELECT DISTINCT 76 - + col2 FROM tab2 AS cor0
----
38
49
50

query I rowsort
SELECT ALL cor0.col0 * col2 + - cor0.col1 + - col0 AS col0 FROM tab2 AS cor0
----
151
1891
2906

query I rowsort
SELECT ( - col1 ) * - cor0.col0 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT + tab1.col2 * tab1.col1 * + col0 AS col2 FROM tab1
----
36480
4212
99840

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 0 col0 FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + col0 col1 FROM tab2 cor0
----
14
156
158

query I rowsort
SELECT DISTINCT col1 * + col0 - - col2 AS col0 FROM tab0 AS cor0
----
2097
3396
8181

query I rowsort
SELECT + col2 - + col1 * - ( col0 ) AS col1 FROM tab2 AS cor0
----
1381
244
4628

query I rowsort
SELECT - - col2 * 55 + col2 FROM tab1 AS cor0
----
3024
3192
5376

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - col0 col2 FROM tab1
----
-54
-67
23

query I rowsort
SELECT - col0 + col0 * + 36 FROM tab2
----
245
2730
2765

query I rowsort
SELECT + + col1 * - ( col2 ) FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT + ( + col2 ) * col2 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT + 83 + - col2 * col2 FROM tab1 AS cor0
----
-2833
-3166
-9133

query IIIIIIIIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab0, tab1 AS cor1, tab0 AS cor2
----
972 values hashing to 5342fb4caf4767cb98bd21989bad099f

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 * + col2 col0 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT ALL - + col1 + - col1 AS col0 FROM tab0 AS cor0
----
-172
-182
-194

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 35 + col0 * - col1 * col1 col0 FROM tab0 AS cor0
----
-177539
-329350
-737044

query I rowsort
SELECT - col0 * col2 + cor0.col2 AS col1 FROM tab1 cor0
----
-108
-3591
-7584

query I rowsort
SELECT + - col0 * + cor0.col2 + - col2 * col2 FROM tab0 AS cor0
----
-14022
-1881
-36

query I rowsort
SELECT ALL - - cor0.col0 * + col0 AS col2 FROM tab0 cor0
----
1225
576
7921

onlyif mysql # use DIV operator for integer division
query I rowsort label-2873
SELECT DISTINCT - col0 DIV col1 + + col0 + + col0 FROM tab0 AS cor0
----
178
48
70

skipif mysql # not compatible
query I rowsort label-2873
SELECT DISTINCT - col0 / col1 + + col0 + + col0 FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT DISTINCT + col2 * col0 - col2 AS col1 FROM tab0 AS cor0
----
34
7216
759

query I rowsort
SELECT ALL - - ( + col0 ) * + col1 FROM tab1 AS cor0
----
1040
640
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-2876
SELECT ALL col2 + col0 DIV col1 - col2 * col2 AS col1 FROM tab2 AS cor0
----
-1402
-649
-702

skipif mysql # not compatible
query I rowsort label-2876
SELECT ALL col2 + col0 / col1 - col2 * col2 AS col1 FROM tab2 AS cor0
----
-1402
-649
-702

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 28 col1 FROM tab0 AS cor0
----
-28
-28
-28

query I rowsort
SELECT cor0.col2 FROM tab1, tab0 cor0, tab0 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

onlyif mysql # use DIV operator for integer division
query I rowsort label-2879
SELECT - + ( col1 ) DIV - col2 col2 FROM tab0 AS cor0
----
1
2
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2879
SELECT - + ( col1 ) / - col2 col2 FROM tab0 AS cor0
----
1
2
97

query I rowsort
SELECT DISTINCT - cor0.col2 * col2 * - col0 AS col0 FROM tab0 AS cor0
----
26136
35
598436

query I rowsort
SELECT col1 + col1 + cor0.col2 AS col2 FROM tab2 AS cor0
----
144
72
89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2882
SELECT DISTINCT CAST( NULL AS DECIMAL ) + ( col1 ) * cor0.col1 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2882
SELECT DISTINCT CAST ( NULL AS REAL ) + ( col1 ) * cor0.col1 AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2883
SELECT - 8 + - 69 DIV col2 FROM tab0 cor0
----
-10
-77
-8

skipif mysql # not compatible
query I rowsort label-2883
SELECT - 8 + - 69 / col2 FROM tab0 cor0
----
-10
-77
-8

onlyif mysql # use DIV operator for integer division
query I rowsort label-2884
SELECT ALL - 74 DIV + col1 + + col0 + + tab0.col0 FROM tab0
----
178
48
70

skipif mysql # not compatible
query I rowsort label-2884
SELECT ALL - 74 / + col1 + + col0 + + tab0.col0 FROM tab0
----
178
48
70

query I rowsort
SELECT ALL tab0.col0 + + 36 * + col1 AS col1 FROM tab0
----
3120
3365
3527

query I rowsort
SELECT ALL + ( tab0.col0 * + col1 ) FROM tab0
----
2064
3395
8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 37 col0 FROM tab1, tab2 AS cor0
----
9 values hashing to a10b03e72860b949bdff53827700a9a8

query I rowsort
SELECT - 72 * 77 AS col0 FROM tab2 AS cor0
----
-5544
-5544
-5544

query I rowsort
SELECT + col2 + 6 FROM tab0
----
39
7
88

query I rowsort
SELECT - - col0 + + 72 FROM tab0 AS cor0
----
107
161
96

query I rowsort
SELECT DISTINCT - col2 + + tab0.col2 AS col2 FROM tab0
----
0

query I rowsort
SELECT + tab1.col1 - + col2 FROM tab1
----
-28
-47
-83

query I rowsort
SELECT - col1 + col2 + + col1 FROM tab2
----
26
27
38

query I rowsort
SELECT ALL col1 AS col0 FROM tab1 WHERE NOT NULL NOT BETWEEN ( NULL ) AND ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col1 col2 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT DISTINCT - tab0.col2 + + col2 FROM tab0
----
0

query I rowsort
SELECT - col0 AS col1 FROM tab0 WHERE NOT ( NULL ) NOT IN ( + col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab1.col2 + + col1 col0 FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN NULL AND col2
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-2899
SELECT DISTINCT - cor0.col2 * col0 + + col0 DIV col1 FROM tab2 AS cor0
----
-189
-2027
-2998

skipif mysql # not compatible
query I rowsort label-2899
SELECT DISTINCT - cor0.col2 * col0 + + col0 / col1 FROM tab2 AS cor0
----
-189
-2027
-2998

query I rowsort
SELECT - col2 + col1 * col0 + col1 / - tab2.col2 AS col0 FROM tab2 WHERE NOT NULL <> + col1
----

query I rowsort
SELECT DISTINCT col0 - - col1 AS col0 FROM tab2
----
137
38
96

query I rowsort
SELECT + col0 + - tab2.col0 AS col2 FROM tab2
----
0
0
0

query IIIIII rowsort
SELECT * FROM tab2, tab1 cor0 WHERE NOT NULL > ( NULL )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-2904
SELECT col1 * col0 DIV + col0 FROM tab2 AS cor0
----
17
31
59

skipif mysql # not compatible
query I rowsort label-2904
SELECT col1 * col0 / + col0 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT DISTINCT + col0 + col2 * cor0.col1 AS col1 FROM tab1 AS cor0
----
1328
1407
634

onlyif mysql # use DIV operator for integer division
query I rowsort label-2906
SELECT tab2.col1 DIV + col1 + col0 FROM tab2
----
79
8
80

skipif mysql # not compatible
query I rowsort label-2906
SELECT tab2.col1 / + col1 + col0 FROM tab2
----
79
8
80

query I rowsort
SELECT - col1 + - col2 * col1 AS col0 FROM tab1
----
-1261
-1430
-580

query I rowsort
SELECT col1 - - col2 AS col0 FROM tab1
----
109
67
80

query I rowsort
SELECT DISTINCT + col2 + col2 + col0 AS col0 FROM tab1 AS cor0
----
111
178
272

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 + - col0 col0 FROM tab0 AS cor0
----
-178
-48
-70

query I rowsort
SELECT DISTINCT + col0 * + col1 + + col1 FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT DISTINCT + col2 * col1 + - col1 AS col2 FROM tab2 AS cor0
----
1475
629
806

query I rowsort
SELECT - - col0 - col2 * - col2 FROM tab1 AS cor0
----
2919
3313
9296

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + col1 col1 FROM tab0 AS cor0
----
172
182
194

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - cor0.col2 * col0 col2 FROM tab1 cor0
----
162
3648
7680

query I rowsort
SELECT + col0 * - col0 - - col1 FROM tab2 AS cor0
----
-18
-6025
-6224

query I rowsort
SELECT DISTINCT col0 * col0 + - col2 FROM tab1 cor0
----
-45
4039
6304

query I rowsort
SELECT cor0.col1 + + col2 - + col1 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT + - cor0.col0 * col1 AS col2 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT ALL - col2 * - col0 + + cor0.col1 * col0 FROM tab1 AS cor0
----
240
4288
8720

query I rowsort
SELECT - col1 * col1 + col1 AS col1 FROM tab2 AS cor0
----
-272
-3422
-930

query I rowsort
SELECT ALL - col2 * - col1 * col1 + col0 AS col1 FROM tab2 cor0
----
11061
25954
90584

query I rowsort
SELECT DISTINCT - col2 + + col1 * cor0.col2 AS col1 FROM tab0 cor0
----
2805
7380
96

query I rowsort
SELECT DISTINCT + col2 * col1 + + col0 - col1 * - cor0.col0 * cor0.col2 FROM tab1 AS cor0
----
101168
37114
5619

query I rowsort
SELECT - col1 - col2 AS col0 FROM tab2 AS cor0
----
-55
-58
-85

query I rowsort
SELECT ALL - col2 + cor0.col0 AS col1 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT col2 + - col0 * col2 FROM tab2
----
-162
-2002
-2964

query I rowsort
SELECT + col0 + tab1.col1 - + col2 FROM tab1
----
-25
-3
17

query I rowsort
SELECT ALL + col2 + col0 * col2 AS col2 FROM tab1 AS cor0
----
216
3705
7776

query I rowsort
SELECT DISTINCT col1 * - col2 AS col0 FROM tab2 cor0
----
-1534
-646
-837

onlyif mysql # use DIV operator for integer division
query I rowsort label-2931
SELECT ALL - - col1 + col2 DIV + col1 AS col2 FROM tab1 AS cor0
----
15
20
28

skipif mysql # not compatible
query I rowsort label-2931
SELECT ALL - - col1 + col2 / + col1 AS col2 FROM tab1 AS cor0
----
15
20
28

query I rowsort
SELECT + col1 - + col2 * - cor0.col1 FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT ALL - cor1.col2 FROM tab1, tab2 cor0, tab0 cor1
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - cor0.col0 * + CAST ( + col1 AS REAL ) AS col0 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT - col1 + col1 + - col1 AS col1 FROM tab0 AS cor0
----
-86
-91
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-2936
SELECT DISTINCT - 6 + tab2.col2 DIV 73 FROM tab2
----
-6

skipif mysql # not compatible
query I rowsort label-2936
SELECT DISTINCT - 6 + tab2.col2 / 73 FROM tab2
----
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 - + col0 col0 FROM tab0 AS cor0
----
2
62
62

query I rowsort
SELECT DISTINCT + col0 * 34 FROM tab2
----
238
2652
2686

query I rowsort
SELECT ALL + col2 * - col1 * - col1 AS col2 FROM tab0
----
244068
679042
9409

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2940
SELECT col0 + + CAST( col1 AS SIGNED ) - - col2 FROM tab2 AS cor0
----
134
163
65

skipif mysql # not compatible
query I rowsort label-2940
SELECT col0 + + CAST ( col1 AS INTEGER ) - - col2 FROM tab2 AS cor0
----
134
163
65

onlyif mysql # use DIV operator for integer division
query I rowsort label-2941
SELECT col1 * ( col0 ) DIV col1 FROM tab1
----
3
64
80

skipif mysql # not compatible
query I rowsort label-2941
SELECT col1 * ( col0 ) / col1 FROM tab1
----
3
64
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-2942
SELECT ALL 20 - tab2.col2 DIV 71 FROM tab2, tab1 AS cor0
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

skipif mysql # not compatible
query I rowsort label-2942
SELECT ALL 20 - tab2.col2 / 71 FROM tab2, tab1 AS cor0
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

query I rowsort
SELECT DISTINCT + 33 FROM tab1, tab2 AS cor0
----
33

query I rowsort
SELECT 18 * col2 FROM tab2 AS cor0
----
468
486
684

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2945
SELECT - CAST( 90 AS SIGNED ) FROM tab0
----
-90
-90
-90

skipif mysql # not compatible
query I rowsort label-2945
SELECT - CAST ( 90 AS INTEGER ) FROM tab0
----
-90
-90
-90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2946
SELECT ALL CAST( - ( + col0 ) AS SIGNED ) * - 51 col1 FROM tab2
----
357
3978
4029

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2946
SELECT ALL CAST ( - ( + col0 ) AS INTEGER ) * - 51 col1 FROM tab2
----
357
3978
4029

query I rowsort
SELECT col0 * - col1 * tab2.col0 + col2 AS col1 FROM tab2
----
-106059
-1492
-358930

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2948
SELECT + 84 * col1 * CAST( col2 AS SIGNED ) FROM tab2
----
128856
54264
70308

skipif mysql # not compatible
query I rowsort label-2948
SELECT + 84 * col1 * CAST ( col2 AS INTEGER ) FROM tab2
----
128856
54264
70308

query I rowsort
SELECT + col0 * - col1 * + 49 AS col0 FROM tab0
----
-101136
-166355
-396851

query I rowsort
SELECT DISTINCT + col2 * + col2 + + 55 * tab2.col1 FROM tab2
----
2379
2434
3921

query I rowsort
SELECT + col1 + col2 * tab2.col0 * + 50 AS col0 FROM tab2
----
101459
150117
9481

query I rowsort
SELECT DISTINCT - 53 * - col2 FROM tab2 AS cor0
----
1378
1431
2014

query I rowsort
SELECT + col0 * col0 * 35 FROM tab0 cor0
----
20160
277235
42875

query I rowsort
SELECT ( col2 ) * - ( + cor0.col1 * col2 ) AS col0 FROM tab2 AS cor0
----
-22599
-24548
-39884

query I rowsort
SELECT ALL cor0.col0 * - cor0.col0 + - 51 AS col2 FROM tab0 cor0
----
-1276
-627
-7972

query I rowsort
SELECT cor0.col0 - - cor0.col2 AS col2 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT DISTINCT col2 * + col1 + + 69 * col2 FROM tab0 AS cor0
----
13120
166
5115

query I rowsort
SELECT DISTINCT - - ( - col1 ) FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT ALL - 52 AS col0 FROM tab1 AS cor0
----
-52
-52
-52

onlyif mysql # use DIV operator for integer division
query I rowsort label-2960
SELECT ALL + col2 DIV col2 AS col1 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2960
SELECT ALL + col2 / col2 AS col1 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT - col2 * col0 * ( col0 + - col1 * col1 ) FROM tab0
----
328090
5838624
59785216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - col1 * + 82 - - col0 col1 FROM tab2 AS cor0
----
-23619
-285364
-78795

query I rowsort
SELECT col0 * ( cor0.col0 ) + cor0.col2 FROM tab1 AS cor0
----
4153
63
6496

onlyif mysql # use DIV operator for integer division
query I rowsort label-2964
SELECT ALL col1 * col0 - - col1 * col2 DIV + col0 AS col0 FROM tab0
----
2182
3397
8182

skipif mysql # not compatible
query I rowsort label-2964
SELECT ALL col1 * col0 - - col1 * col2 / + col0 AS col0 FROM tab0
----
2182
3397
8182

query I rowsort
SELECT - col2 * col1 + 48 FROM tab2 AS cor0
----
-1486
-598
-789

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + cor0.col1 * col2 col2 FROM tab1 AS cor0
----
1248
1404
570

onlyif mysql # use DIV operator for integer division
query I rowsort label-2967
SELECT ALL + col0 DIV + col1 + cor0.col2 * - col2 AS col2 FROM tab1 AS cor0
----
-2916
-3243
-9210

skipif mysql # not compatible
query I rowsort label-2967
SELECT ALL + col0 / + col1 + cor0.col2 * - col2 AS col2 FROM tab1 AS cor0
----
-2916
-3243
-9210

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2968
SELECT - col2 + CAST( col2 AS SIGNED ) AS col2 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2968
SELECT - col2 + CAST ( col2 AS INTEGER ) AS col2 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT ALL - + col0 + - cor0.col1 FROM tab2 AS cor0
----
-137
-38
-96

query I rowsort
SELECT + - col0 + + ( - cor0.col2 ) FROM tab1 AS cor0
----
-121
-176
-57

onlyif mysql # use DIV operator for integer division
query I rowsort label-2971
SELECT + cor0.col2 + CAST( 17 AS SIGNED ) DIV + col0 + + col2 AS col1 FROM tab1 cor0
----
113
114
192

skipif mysql # not compatible
query I rowsort label-2971
SELECT + cor0.col2 + CAST ( 17 AS INTEGER ) / + col0 + + col2 AS col1 FROM tab1 cor0
----
113
114
192

query I rowsort
SELECT + col0 + + col1 - - col1 * col2 AS col2 FROM tab0 AS cor0
----
229
2948
7642

query I rowsort
SELECT DISTINCT + 87 FROM tab0
----
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * col0 col0 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT - + 85 AS col0 FROM tab1 AS cor0
----
-85
-85
-85

query I rowsort
SELECT + ( + col0 * - col1 ) FROM tab1
----
-1040
-640
-78

query I rowsort
SELECT 0 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + col1 * + 40 AS col1 FROM tab2 AS cor0
----
1240
2360
680

query I rowsort
SELECT - - 78 * - col1 + + col0 AS col0 FROM tab0 AS cor0
----
-6684
-7009
-7531

query I rowsort
SELECT - 99 + col1 * + ( - col1 ) FROM tab2 AS cor0
----
-1060
-3580
-388

query I rowsort
SELECT - 9 + + col2 FROM tab1 AS cor0
----
45
48
87

query I rowsort
SELECT 18 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 903ac227935c1532300db45a8537c595

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 23 col0 FROM tab1, tab1 AS cor0
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2

query I rowsort
SELECT 90 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 96f7a90428db93f472e0d219bab64853

query I rowsort
SELECT ALL + col1 * + 65 AS col0 FROM tab2
----
1105
2015
3835

query I rowsort
SELECT DISTINCT 62 FROM tab1
----
62

query I rowsort
SELECT ALL + tab2.col2 * 55 + col2 FROM tab2
----
1456
1512
2128

query I rowsort
SELECT DISTINCT - 15 + 51 AS col1 FROM tab2
----
36

query I rowsort
SELECT - - 43 * - 98 + col0 FROM tab0 cor0
----
-4125
-4179
-4190

query I rowsort
SELECT + + 70 * col2 + col1 * col2 FROM tab2 AS cor0
----
2727
3306
3354

query I rowsort
SELECT ALL ( + col1 ) + - col0 FROM tab0 AS cor0
----
2
62
62

query I rowsort
SELECT ALL - col1 + - 90 AS col0 FROM tab0
----
-176
-181
-187

query I rowsort
SELECT ( 38 ) AS col1 FROM tab2
----
38
38
38

query I rowsort
SELECT - ( col1 ) + col2 * + 93 AS col1 FROM tab2 AS cor0
----
2359
2480
3517

query I rowsort
SELECT ALL - col2 + - col1 AS col1 FROM tab2 cor0
----
-55
-58
-85

query I rowsort
SELECT DISTINCT - col2 + - cor0.col0 * col2 + - col2 AS col1 FROM tab0 cor0
----
-37
-7462
-858

query I rowsort
SELECT ALL - - col2 * col2 * ( 82 ) FROM tab0 AS cor0
----
551368
82
89298

query I rowsort
SELECT ALL + 50 * - col0 AS col0 FROM tab1 AS cor0
----
-150
-3200
-4000

query I rowsort
SELECT cor0.col1 * + col1 * - 59 + cor0.col0 FROM tab0 AS cor0
----
-436340
-488490
-555096

query I rowsort
SELECT ALL - 31 * col0 + + col1 * - ( - col1 ) + col2 AS col1 FROM tab2 AS cor0
----
-2122
1089
771

query I rowsort
SELECT DISTINCT col1 + + col2 * cor0.col2 FROM tab0 AS cor0
----
1175
6815
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-3002
SELECT ALL + - col2 DIV col0 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3002
SELECT ALL + - col2 / col0 FROM tab0 AS cor0
----
-1
0
0

query I rowsort
SELECT DISTINCT - - 8 * cor0.col2 + col2 FROM tab0 AS cor0
----
297
738
9

query I rowsort
SELECT col0 + + col0 + + 41 FROM tab2 AS cor0
----
197
199
55

query I rowsort
SELECT + 0 + + col0 AS col0 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT ALL col2 * col2 * 42 FROM tab0 AS cor0
----
282408
42
45738

onlyif mysql # use DIV operator for integer division
query I rowsort label-3007
SELECT + cor0.col1 * cor0.col0 + ( col1 ) * - col0 + col2 DIV - 9 FROM tab0 AS cor0
----
-3
-9
0

skipif mysql # not compatible
query I rowsort label-3007
SELECT + cor0.col1 * cor0.col0 + ( col1 ) * - col0 + col2 / - 9 FROM tab0 AS cor0
----
-3
-9
0

query I rowsort
SELECT + 98 AS col2 FROM tab1 cor0
----
98
98
98

query I rowsort
SELECT ALL - 99 FROM tab0 AS cor0
----
-99
-99
-99

query I rowsort
SELECT - col2 * col2 + - 5 FROM tab2 AS cor0
----
-1449
-681
-734

query I rowsort
SELECT col0 + + col2 * + 55 * 30 AS col0 FROM tab0 AS cor0
----
135389
1685
54474

query I rowsort
SELECT col0 * + col0 + col1 * + col1 * col1 AS col1 FROM tab0 AS cor0
----
636632
761492
913898

query I rowsort
SELECT DISTINCT - + 14 FROM tab2 AS cor0
----
-14

query I rowsort
SELECT + col1 * + col2 * col1 AS col2 FROM tab1 AS cor0
----
16224
36504
5700

query I rowsort
SELECT + col1 * 82 * col2 FROM tab2 cor0
----
125788
52972
68634

query I rowsort
SELECT cor0.col2 AS col0 FROM tab0 cor0 CROSS JOIN tab2, tab2 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT DISTINCT + col0 * col0 * - 76 + - col2 FROM tab1 AS cor0
----
-311353
-486496
-738

query I rowsort
SELECT ALL col2 + + col1 - - col2 FROM tab2 AS cor0
----
111
85
93

query I rowsort
SELECT DISTINCT col1 * + col1 + + cor0.col1 * col2 FROM tab2 AS cor0
----
1798
5015
935

onlyif mysql # use DIV operator for integer division
query I rowsort label-3020
SELECT DISTINCT - col1 DIV + cor0.col0 + col2 * - col0 FROM tab1 AS cor0
----
-170
-3648
-7680

skipif mysql # not compatible
query I rowsort label-3020
SELECT DISTINCT - col1 / + cor0.col0 + col2 * - col0 FROM tab1 AS cor0
----
-170
-3648
-7680

query I rowsort
SELECT col1 * - col0 * 39 AS col0 FROM tab2 cor0
----
-179478
-52377
-8463

query I rowsort
SELECT DISTINCT - + col0 + col0 + - col1 * col1 FROM tab1 AS cor0
----
-100
-169
-676

onlyif mysql # use DIV operator for integer division
query I rowsort label-3023
SELECT DISTINCT col1 DIV - ( + cor0.col1 ) + col1 * col0 FROM tab2 AS cor0
----
1342
216
4601

skipif mysql # not compatible
query I rowsort label-3023
SELECT DISTINCT col1 / - ( + cor0.col1 ) + col1 * col0 FROM tab2 AS cor0
----
1342
216
4601

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3024
SELECT + 86 * - ( col0 ) + CAST( 32 AS SIGNED ) FROM tab2 cor0
----
-570
-6676
-6762

skipif mysql # not compatible
query I rowsort label-3024
SELECT + 86 * - ( col0 ) + CAST ( 32 AS INTEGER ) FROM tab2 cor0
----
-570
-6676
-6762

query I rowsort
SELECT DISTINCT + col1 - ( + col0 ) FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT ALL - + col1 * + cor0.col2 FROM tab2 AS cor0
----
-1534
-646
-837

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3027
SELECT DISTINCT + CAST( NULL AS SIGNED ) + col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3027
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL col1 * col1 + col0 AS col0 FROM tab0 cor0
----
7420
8370
9444

query I rowsort
SELECT ALL col1 * - col2 - + cor0.col2 AS col2 FROM tab2 AS cor0
----
-1560
-684
-864

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3030
SELECT DISTINCT - CAST( NULL AS SIGNED ) * col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3030
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + ( + col2 ) * + cor0.col2 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT - cor0.col0 FROM tab0 AS cor0 CROSS JOIN tab1, tab0 AS cor1
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8

query I rowsort
SELECT ALL + tab1.col0 - col2 * + tab1.col0 FROM tab1
----
-159
-3584
-7600

query I rowsort
SELECT DISTINCT 68 + + cor1.col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
154
159
165

query I rowsort
SELECT ALL - 46 FROM tab0, tab1 AS cor0
----
9 values hashing to 491ad1fb79fec0b5715ea54949d1aa2d

query I rowsort
SELECT DISTINCT - + 5 * col2 * - col2 FROM tab0 AS cor0
----
33620
5
5445

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3037
SELECT ( 16 ) + + col2 * CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3037
SELECT ( 16 ) + + col2 * CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 * + 20 AS col2 FROM tab1 AS cor0
----
-1280
-1600
-60

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3039
SELECT ALL + CAST( 73 AS SIGNED ) col1 FROM tab1 cor0
----
73
73
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3039
SELECT ALL + CAST ( 73 AS INTEGER ) col1 FROM tab1 cor0
----
73
73
73

query I rowsort
SELECT ALL - col1 - col2 FROM tab1 cor0
----
-109
-67
-80

skipif mysql # not compatible
query I rowsort
SELECT ALL - + CAST ( + col0 AS REAL ) * cor0.col0 * col0 AS col2 FROM tab1 AS cor0
----
-262144
-27
-512000

query I rowsort
SELECT ALL 67 AS col2 FROM tab2 AS cor0
----
67
67
67

query I rowsort
SELECT - col2 * ( - col2 ) * - 99 - - col2 * cor0.col1 AS col2 FROM tab1 AS cor0
----
-287280
-321081
-911136

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3044
SELECT DISTINCT - + CAST( + col1 AS SIGNED ) FROM tab2 AS cor0
----
-17
-31
-59

skipif mysql # not compatible
query I rowsort label-3044
SELECT DISTINCT - + CAST ( + col1 AS INTEGER ) FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT - col2 + col1 + - col2 AS col0 FROM tab2 cor0
----
-23
-59
7

query I rowsort
SELECT col0 * + ( + col2 ) - + col2 FROM tab0
----
34
7216
759

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3047
SELECT CAST( NULL AS SIGNED ) + 82 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3047
SELECT CAST ( NULL AS INTEGER ) + 82 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 * - ( col0 ) - + col2 * - col0 FROM tab1
----
-448
1280
153

query I rowsort
SELECT DISTINCT - 18 AS col1 FROM tab2, tab2 AS cor0
----
-18

query I rowsort
SELECT - 16 * col2 FROM tab1
----
-1536
-864
-912

query I rowsort
SELECT col1 * col2 * + col2 FROM tab2
----
22599
24548
39884

onlyif mysql # use DIV operator for integer division
query I rowsort label-3052
SELECT - col2 DIV + col1 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3052
SELECT - col2 / + col1 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT 31 * col1 * - tab1.col0 - + col1 AS col1 FROM tab1
----
-19850
-2444
-32253

query I rowsort
SELECT - col1 * - ( + col1 ) FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT ALL + col1 + - col2 * col0 * - col1 AS col1 FROM tab2 AS cor0
----
119711
51051
5890

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3056
SELECT col1 + + CAST( 24 AS SIGNED ) * - col1 FROM tab2
----
-1357
-391
-713

skipif mysql # not compatible
query I rowsort label-3056
SELECT col1 + + CAST ( 24 AS INTEGER ) * - col1 FROM tab2
----
-1357
-391
-713

query I rowsort
SELECT col2 + 30 AS col0 FROM tab0
----
112
31
63

query I rowsort
SELECT col1 + ( col2 ) * col0 AS col0 FROM tab1
----
188
3658
7693

query I rowsort
SELECT ALL + - col2 * + 44 + + col2 FROM tab1 AS cor0
----
-2322
-2451
-4128

query I rowsort
SELECT DISTINCT - col1 * + ( col0 + cor0.col0 ) FROM tab0 AS cor0
----
-16198
-4128
-6790

query I rowsort
SELECT DISTINCT + cor0.col0 * - cor0.col2 AS col0 FROM tab1, tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT 12 AS col1 FROM tab0, tab0 AS cor0, tab2 cor1
----
27 values hashing to 702478c53caf2f7ebb9fff96d800f5a6

query I rowsort
SELECT DISTINCT - - cor0.col0 * + ( col0 ) FROM tab1 cor0
----
4096
6400
9

query I rowsort
SELECT ( + 4 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b

query I rowsort
SELECT - - 64 AS col2 FROM tab2 AS cor0
----
64
64
64

query I rowsort
SELECT - - col2 + col0 AS col2 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT DISTINCT + col0 + + col0 * + col2 FROM tab2 AS cor0
----
196
2106
3081

query I rowsort
SELECT DISTINCT col1 * col2 + cor0.col2 * - 89 FROM tab0 cor0
----
-99
164
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( col0 ) + - col2 col0 FROM tab2 AS cor0
----
-104
-117
-34

query I rowsort
SELECT + - col2 * col0 * col1 - - col0 AS col2 FROM tab2 cor0
----
-119574
-50955
-5852

query I rowsort
SELECT + col0 * col1 - 38 * col1 FROM tab0 AS cor0
----
-1204
-291
4641

query I rowsort
SELECT + - 98 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f17b7008a7deae1eb5a2e707ec237638

query I rowsort
SELECT + col0 + - col2 - ( - col2 ) * - 15 * + cor0.col0 FROM tab0 AS cor0
----
-109463
-11889
-491

query I rowsort
SELECT ALL + - cor0.col0 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * 89 col0 FROM tab2 AS cor0
----
1513
2759
5251

query I rowsort
SELECT - 85 + - 60 AS col2 FROM tab2 cor0
----
-145
-145
-145

query I rowsort
SELECT DISTINCT col0 * - 90 AS col0 FROM tab1
----
-270
-5760
-7200

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3078
SELECT CAST( NULL AS SIGNED ) + 30 col2 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3078
SELECT CAST ( NULL AS INTEGER ) + 30 col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3079
SELECT 63 DIV - 25 + col0 AS col2 FROM tab1
----
1
62
78

skipif mysql # not compatible
query I rowsort label-3079
SELECT 63 / - 25 + col0 AS col2 FROM tab1
----
1
62
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 5 * + col0 col0 FROM tab1
----
15
320
400

query I rowsort
SELECT ALL 81 * - col1 FROM tab1 cor0
----
-1053
-2106
-810

query I rowsort
SELECT ALL - 52 * col1 AS col1 FROM tab1
----
-1352
-520
-676

onlyif mysql # use DIV operator for integer division
query I rowsort label-3083
SELECT + - col1 * col1 DIV col2 AS col1 FROM tab0 AS cor0
----
-100
-224
-9409

skipif mysql # not compatible
query I rowsort label-3083
SELECT + - col1 * col1 / col2 AS col1 FROM tab0 AS cor0
----
-100
-224
-9409

query I rowsort
SELECT DISTINCT ( col1 ) + 0 * + 36 AS col2 FROM tab2 AS cor0
----
17
31
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * col0 col1 FROM tab1 cor0
----
-4096
-6400
-9

query I rowsort
SELECT ALL col0 * - col0 * 4 AS col1 FROM tab1
----
-16384
-25600
-36

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3087
SELECT ALL - 57 * col0 * + CAST( NULL AS DECIMAL ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3087
SELECT ALL - 57 * col0 * + CAST ( NULL AS REAL ) AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT 51 * col1 + - tab1.col1 FROM tab1
----
1300
500
650

query I rowsort
SELECT + + cor0.col1 AS col1 FROM tab2 cor0
----
17
31
59

query I rowsort
SELECT - - 36 AS col1 FROM tab2 AS cor0
----
36
36
36

query I rowsort
SELECT ALL + col0 * tab2.col2 * col1 AS col0 FROM tab2
----
119652
51034
5859

query I rowsort
SELECT 34 + + 40 * - cor0.col0 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to f21d598e48a0dafaf53f8669ebf56eb4

query I rowsort
SELECT DISTINCT col0 * + cor0.col1 AS col0 FROM tab1 AS cor0
----
1040
640
78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3094
SELECT + CAST( NULL AS DECIMAL ) * - col2 * - col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3094
SELECT + CAST ( NULL AS REAL ) * - col2 * - col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + 38 + + col1 FROM tab0 AS cor0
----
124
129
135

query I rowsort
SELECT DISTINCT col0 * - cor0.col2 * + col1 + 56 AS col1 FROM tab0 AS cor0
----
-3339
-664062
-68056

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3097
SELECT col1 * - CAST( + 76 AS SIGNED ) AS col1 FROM tab0
----
-6536
-6916
-7372

skipif mysql # not compatible
query I rowsort label-3097
SELECT col1 * - CAST ( + 76 AS INTEGER ) AS col1 FROM tab0
----
-6536
-6916
-7372

query I rowsort
SELECT col0 * + 27 FROM tab1
----
1728
2160
81

query I rowsort
SELECT col1 * ( ( - col0 ) * col2 ) - + col1 * + col2 FROM tab0
----
-3492
-671580
-70950

query I rowsort
SELECT col2 * ( + col2 ) AS col2 FROM tab1
----
2916
3249
9216

query I rowsort
SELECT - 36 + ( + col1 ) AS col2 FROM tab0 AS cor0
----
50
55
61

query I rowsort
SELECT 1 + cor0.col2 AS col1 FROM tab1 AS cor0
----
55
58
97

query I rowsort
SELECT + cor0.col0 * - cor0.col2 AS col2 FROM tab2 AS cor0
----
-189
-2028
-3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-3104
SELECT - + 84 DIV 56 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3104
SELECT - + 84 / 56 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT + + col1 + + 4 AS col1 FROM tab1 AS cor0
----
14
17
30

query I rowsort
SELECT + + 73 * + 32 + + col0 AS col1 FROM tab0 cor0
----
2360
2371
2425

query I rowsort
SELECT - 33 * - col2 FROM tab0
----
1089
2706
33

onlyif mysql # use DIV operator for integer division
query I rowsort label-3108
SELECT + 8 DIV tab1.col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3108
SELECT + 8 / tab1.col2 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT 82 - + col2 FROM tab0
----
0
49
81

query I rowsort
SELECT 97 * + col0 AS col2 FROM tab0
----
2328
3395
8633

query I rowsort
SELECT DISTINCT - 1 - col0 FROM tab1
----
-4
-65
-81

query I rowsort
SELECT DISTINCT - - col1 + + 28 FROM tab0 AS cor0
----
114
119
125

query I rowsort
SELECT ALL col1 + ( - 22 ) FROM tab1 cor0
----
-12
-9
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-3114
SELECT + col0 + col0 DIV cor0.col2 - - col0 AS col1 FROM tab0 AS cor0
----
105
179
48

skipif mysql # not compatible
query I rowsort label-3114
SELECT + col0 + col0 / cor0.col2 - - col0 AS col1 FROM tab0 AS cor0
----
105
179
48

query I rowsort
SELECT DISTINCT cor0.col2 + 29 * + col1 AS col1 FROM tab2 AS cor0
----
1737
531
926

onlyif mysql # use DIV operator for integer division
query I rowsort label-3116
SELECT + - col0 + - col0 * col2 * - col0 + col0 DIV - col2 FROM tab0 AS cor0
----
1155
18984
649432

skipif mysql # not compatible
query I rowsort label-3116
SELECT + - col0 + - col0 * col2 * - col0 + col0 / - col2 FROM tab0 AS cor0
----
1155
18984
649432

query I rowsort
SELECT ALL - col1 + 45 FROM tab0 AS cor0
----
-41
-46
-52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + - cor0.col1 * 56 + - col2 col1 FROM tab0 AS cor0
----
-4873
-5267
-5468

onlyif mysql # use DIV operator for integer division
query I rowsort label-3119
SELECT 4 DIV tab0.col2 FROM tab0
----
0
0
4

skipif mysql # not compatible
query I rowsort label-3119
SELECT 4 / tab0.col2 FROM tab0
----
0
0
4

query I rowsort
SELECT col0 * col1 * + 8 AS col0 FROM tab2
----
10744
1736
36816

query I rowsort
SELECT + col0 - - col1 * - ( col2 + - col0 ) FROM tab2
----
-613
3146
776

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 - col2 col0 FROM tab2
----
-52
-54
-76

query I rowsort
SELECT ( - col2 ) + - col1 * - col0 AS col1 FROM tab1
----
24
583
944

onlyif mysql # use DIV operator for integer division
query I rowsort label-3124
SELECT + ( - col1 + + tab0.col1 ) * - col2 DIV + col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3124
SELECT + ( - col1 + + tab0.col1 ) * - col2 / + col0 FROM tab0
----
0
0
0

query I rowsort
SELECT - col0 * - col0 * - col2 FROM tab0
----
-1225
-19008
-649522

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3126
SELECT + - col2 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3126
SELECT + - col2 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3127
SELECT ALL col2 + - CAST( + col0 AS SIGNED ) * col1 + col1 * 95 FROM tab1
----
2446
291
367

skipif mysql # not compatible
query I rowsort label-3127
SELECT ALL col2 + - CAST ( + col0 AS INTEGER ) * col1 + col1 * 95 FROM tab1
----
2446
291
367

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3128
SELECT + + col2 + CAST( col0 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
171
36
57

skipif mysql # not compatible
query I rowsort label-3128
SELECT + + col2 + CAST ( col0 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT ALL col1 * - ( 2 ) FROM tab0 AS cor0
----
-172
-182
-194

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + 39 col2 FROM tab0 AS cor0
----
121
40
72

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3131
SELECT DISTINCT col1 * CAST( NULL AS DECIMAL ) + + col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3131
SELECT DISTINCT col1 * CAST ( NULL AS REAL ) + + col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL + - col1 * col0 * - cor0.col0 + - cor0.col1 + + col1 AS col2 FROM tab2 AS cor0
----
106097
1519
358956

query I rowsort
SELECT ALL - col1 + 21 * - ( - col1 + - 1 ) * cor0.col0 FROM tab2 AS cor0
----
29845
4673
98221

query I rowsort
SELECT - - col1 * - col1 + col1 * + col2 * - col1 AS col0 FROM tab0 AS cor0
----
-18818
-251464
-687323

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3135
SELECT DISTINCT col1 * - CAST( 63 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-5418
-5733
-6111

skipif mysql # not compatible
query I rowsort label-3135
SELECT DISTINCT col1 * - CAST ( 63 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-5418
-5733
-6111

query I rowsort
SELECT DISTINCT - col2 * col0 AS col2 FROM tab0 cor0
----
-35
-7298
-792

query I rowsort
SELECT + ( col0 ) + col0 AS col2 FROM tab0
----
178
48
70

query I rowsort
SELECT + col2 * col1 AS col2 FROM tab0 cor0
----
2838
7462
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 1 col0 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT 97 * - col2 + ( - col1 ) AS col0 FROM tab2 cor0
----
-2581
-2650
-3703

query I rowsort
SELECT DISTINCT - 46 + + col0 FROM tab0 AS cor0
----
-11
-22
43

onlyif mysql # use DIV operator for integer division
query I rowsort label-3142
SELECT DISTINCT col2 + + col1 + 87 DIV - col0 FROM tab2 AS cor0
----
46
54
84

skipif mysql # not compatible
query I rowsort label-3142
SELECT DISTINCT col2 + + col1 + 87 / - col0 FROM tab2 AS cor0
----
46
54
84

query I rowsort
SELECT cor0.col2 * + col0 + + col0 FROM tab1 AS cor0
----
165
3712
7760

query I rowsort
SELECT ALL - col0 * col0 - - col0 AS col0 FROM tab1 cor0
----
-4032
-6
-6320

query I rowsort
SELECT DISTINCT - col0 * - col2 AS col0 FROM tab2 cor0
----
189
2028
3002

query I rowsort
SELECT + 69 * - col2 AS col1 FROM tab1 AS cor0
----
-3726
-3933
-6624

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * cor0.col1 col0 FROM tab2 cor0
----
1534
646
837

query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab1 cor0, tab1, tab0 cor1
----
972 values hashing to b51b4342db121ebc2d3d353dcd8ed521

onlyif mysql # use DIV operator for integer division
query I rowsort label-3149
SELECT DISTINCT + 23 DIV col0 + 94 AS col2 FROM tab2 cor0
----
94
97

skipif mysql # not compatible
query I rowsort label-3149
SELECT DISTINCT + 23 / col0 + 94 AS col2 FROM tab2 cor0
----
94
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 70 col2 FROM tab2 AS cor0
----
-70
-70
-70

query I rowsort
SELECT 41 * - col1 AS col0 FROM tab2 AS cor0
----
-1271
-2419
-697

query I rowsort
SELECT DISTINCT - 86 * - cor0.col2 FROM tab1 AS cor0
----
4644
4902
8256

query I rowsort
SELECT ALL + cor0.col2 - + col0 AS col2 FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT - 36 + + col0 FROM tab1 AS cor0
----
-33
28
44

query I rowsort
SELECT ALL - - 24 * col0 FROM tab2 AS cor0
----
168
1872
1896

query I rowsort
SELECT DISTINCT + 54 + col2 + ( col0 ) AS col2 FROM tab2 cor0
----
158
171
88

query I rowsort
SELECT + + col1 + + col2 AS col0 FROM tab0 AS cor0
----
119
173
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + + col0 * + 84 col1 FROM tab1 AS cor0
----
249
5312
6640

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3159
SELECT DISTINCT CAST( NULL AS DECIMAL ) FROM tab2, tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3159
SELECT DISTINCT CAST ( NULL AS REAL ) FROM tab2, tab2 cor0
----
NULL

query I rowsort
SELECT ALL + - col0 + - col0 AS col0 FROM tab2 cor0
----
-14
-156
-158

query I rowsort
SELECT ALL col2 + 36 + 5 * + col0 FROM tab2 cor0
----
452
469
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3162
SELECT DISTINCT col2 * CAST( NULL AS SIGNED ) - col2 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3162
SELECT DISTINCT col2 * CAST ( NULL AS INTEGER ) - col2 AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + - col1 * ( col0 ) + + cor0.col2 FROM tab1 cor0
----
-24
-583
-944

query I rowsort
SELECT 44 + tab0.col2 FROM tab0
----
126
45
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + ( + 33 ) col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-33

query I rowsort
SELECT ALL + cor0.col0 + - 37 * col0 AS col1 FROM tab0 AS cor0
----
-1260
-3204
-864

onlyif mysql # use DIV operator for integer division
query I rowsort label-3167
SELECT ALL + cor0.col2 DIV - col2 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3167
SELECT ALL + cor0.col2 / - col2 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT + + ( - 1 ) + - cor0.col0 * col0 AS col2 FROM tab1 AS cor0
----
-10
-4097
-6401

query I rowsort
SELECT - + 52 + + 45 * - cor0.col2 FROM tab0 cor0
----
-1537
-3742
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-3170
SELECT ALL - ( + col1 ) DIV cor0.col2 AS col1 FROM tab0 AS cor0
----
-1
-2
-97

skipif mysql # not compatible
query I rowsort label-3170
SELECT ALL - ( + col1 ) / cor0.col2 AS col1 FROM tab0 AS cor0
----
-1
-2
-97

query I rowsort
SELECT - cor0.col1 + col1 * + col2 AS col1 FROM tab1 AS cor0
----
1235
1378
560

query I rowsort
SELECT DISTINCT - ( - ( cor0.col2 ) ) AS col0 FROM tab1 cor0
----
54
57
96

query I rowsort
SELECT DISTINCT - ( - col0 ) + col2 * + ( col2 ) AS col1 FROM tab1 AS cor0
----
2919
3313
9296

query I rowsort
SELECT + col0 + col1 AS col0 FROM tab2 cor0
----
137
38
96

query I rowsort
SELECT DISTINCT + col2 + 73 FROM tab1 AS cor0
----
127
130
169

onlyif mysql # use DIV operator for integer division
query I rowsort label-3176
SELECT cor0.col0 DIV 51 + - col1 FROM tab0 AS cor0
----
-86
-90
-97

skipif mysql # not compatible
query I rowsort label-3176
SELECT cor0.col0 / 51 + - col1 FROM tab0 AS cor0
----
-86
-90
-97

query I rowsort
SELECT ALL - + col2 + - cor0.col1 * + col0 AS col2 FROM tab2 cor0
----
-1381
-244
-4628

query I rowsort
SELECT DISTINCT 31 AS col0 FROM tab0
----
31

skipif mysql # not compatible
query I rowsort
SELECT - CAST ( col2 AS REAL ) + col0 * col1 * + col2 FROM tab1
----
36423
4158
99744

query I rowsort
SELECT 10 * - tab0.col0 + tab0.col1 * + col0 AS col2 FROM tab0
----
1824
3045
7209

query I rowsort
SELECT 35 + tab0.col0 FROM tab0
----
124
59
70

query I rowsort
SELECT DISTINCT + 76 - 48 AS col1 FROM tab1, tab0, tab1 AS cor0
----
28

query I rowsort
SELECT DISTINCT - tab0.col1 * ( col1 ) FROM tab0
----
-7396
-8281
-9409

query I rowsort
SELECT DISTINCT - + 10 AS col1 FROM tab2 cor0
----
-10

query I rowsort
SELECT - ( 27 ) * col0 FROM tab1 AS cor0
----
-1728
-2160
-81

query I rowsort
SELECT + - col0 * - 51 AS col1 FROM tab0 cor0
----
1224
1785
4539

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 * cor0.col1 col2 FROM tab2 cor0
----
1534
646
837

query I rowsort
SELECT DISTINCT - - col0 * 78 AS col0 FROM tab2 AS cor0
----
546
6084
6162

onlyif mysql # use DIV operator for integer division
query I rowsort label-3189
SELECT DISTINCT - col0 + col2 DIV - col2 FROM tab0 AS cor0
----
-25
-36
-90

skipif mysql # not compatible
query I rowsort label-3189
SELECT DISTINCT - col0 + col2 / - col2 FROM tab0 AS cor0
----
-25
-36
-90

onlyif mysql # use DIV operator for integer division
query I rowsort label-3190
SELECT ALL + col0 * 22 DIV 51 FROM tab1 AS cor0
----
1
27
34

skipif mysql # not compatible
query I rowsort label-3190
SELECT ALL + col0 * 22 / 51 FROM tab1 AS cor0
----
1
27
34

onlyif mysql # use DIV operator for integer division
query I rowsort label-3191
SELECT + col2 DIV + 53 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3191
SELECT + col2 / + 53 FROM tab0 AS cor0
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 51 * + col1 col2 FROM tab0 cor0
----
4386
4641
4947

query I rowsort
SELECT 66 * col2 FROM tab1 AS cor0
----
3564
3762
6336

query I rowsort
SELECT ALL cor1.col2 FROM tab0, tab2 AS cor0, tab2 cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col1 col1 FROM tab2
----
-1534
-646
-837

query I rowsort
SELECT col0 * col2 * - col0 FROM tab2
----
-1323
-158184
-237158

query I rowsort
SELECT 63 + col0 FROM tab2 AS cor0
----
141
142
70

onlyif mysql # use DIV operator for integer division
query I rowsort label-3198
SELECT DISTINCT + col0 * + col2 + col0 - ( col0 ) DIV + CAST( col2 AS SIGNED ) AS col2 FROM tab1 cor0
----
165
3711
7760

skipif mysql # not compatible
query I rowsort label-3198
SELECT DISTINCT + col0 * + col2 + col0 - ( col0 ) / + CAST ( col2 AS INTEGER ) AS col2 FROM tab1 cor0
----
165
3711
7760

query I rowsort
SELECT + 7 + + col2 FROM tab1 AS cor0
----
103
61
64

query I rowsort
SELECT DISTINCT col2 + + col1 AS col2 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT ALL - - 73 * col2 AS col0 FROM tab2 AS cor0
----
1898
1971
2774

query I rowsort
SELECT DISTINCT + col2 + 82 AS col0 FROM tab2 AS cor0
----
108
109
120

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3203
SELECT - + col0 * CAST( NULL AS SIGNED ) * 1 + - col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3203
SELECT - + col0 * CAST ( NULL AS INTEGER ) * 1 + - col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 45 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 63e2b488a204f83ec8c063dafdfd4371

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1, tab2 cor0, tab0 cor1
----
972 values hashing to 9a5ab925af18e11f7748f3b2e722ff3d

query I rowsort
SELECT col2 + ( + col2 * col1 ) AS col0 FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT - col1 * + col2 - - col1 * col0 FROM tab0
----
-774
3298
637

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - col1 + - col0 col1 FROM tab1
----
36
673
89

query I rowsort
SELECT DISTINCT + col2 + + 3 FROM tab1 AS cor0
----
57
60
99

query I rowsort
SELECT DISTINCT + + cor0.col1 + + col2 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT + cor0.col1 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

onlyif mysql # use DIV operator for integer division
query I rowsort label-3212
SELECT - col2 DIV + 33 AS col1 FROM tab1 AS cor0
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-3212
SELECT - col2 / + 33 AS col1 FROM tab1 AS cor0
----
-1
-1
-2

query I rowsort
SELECT ALL + + col0 - - 71 AS col2 FROM tab1 AS cor0
----
135
151
74

query I rowsort
SELECT ALL + 18 * + col2 FROM tab2 AS cor0
----
468
486
684

query I rowsort
SELECT DISTINCT col0 - + 32 FROM tab2 AS cor0
----
-25
46
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * ( col0 ) col2 FROM tab1
----
4096
6400
9

query I rowsort
SELECT ( col2 ) + + col0 * 49 FROM tab1 AS cor0
----
201
3193
4016

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3218
SELECT CAST( col2 AS SIGNED ) col1 FROM tab2 AS cor0
----
26
27
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3218
SELECT CAST ( col2 AS INTEGER ) col1 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT DISTINCT col0 + col2 * col1 FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT DISTINCT + col1 * - cor0.col0 - col2 AS col0 FROM tab2 AS cor0
----
-1381
-244
-4628

query I rowsort
SELECT DISTINCT col0 * col1 + cor0.col1 * 37 * ( - col1 ) AS col0 FROM tab0 AS cor0
----
-271588
-298298
-344738

query I rowsort
SELECT cor0.col0 + - cor0.col0 * col0 AS col1 FROM tab1 AS cor0
----
-4032
-6
-6320

onlyif mysql # use DIV operator for integer division
query I rowsort label-3223
SELECT DISTINCT + col0 DIV 5 + col1 * col2 col2 FROM tab0 AS cor0
----
104
2842
7479

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3223
SELECT DISTINCT + col0 / 5 + col1 * col2 col2 FROM tab0 AS cor0
----
104
2842
7479

onlyif mysql # use DIV operator for integer division
query I rowsort label-3224
SELECT ALL + col1 * tab2.col1 + tab2.col1 DIV - col1 FROM tab2
----
288
3480
960

skipif mysql # not compatible
query I rowsort label-3224
SELECT ALL + col1 * tab2.col1 + tab2.col1 / - col1 FROM tab2
----
288
3480
960

query I rowsort
SELECT ALL col0 + 32 * - 99 FROM tab1
----
-3088
-3104
-3165

query I rowsort
SELECT - col2 + + col1 * col2 + + col2 AS col0 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT - col1 + col1 + ( 70 ) FROM tab2 AS cor0
----
70
70
70

query I rowsort
SELECT - 56 * col0 FROM tab2 AS cor0
----
-392
-4368
-4424

query I rowsort
SELECT DISTINCT col0 * - col0 + cor0.col2 FROM tab1 AS cor0
----
-4039
-6304
45

query I rowsort
SELECT + - col0 * + col2 - - cor0.col0 FROM tab1 AS cor0
----
-159
-3584
-7600

onlyif mysql # use DIV operator for integer division
query I rowsort label-3231
SELECT + cor0.col1 * col2 + + ( - col1 ) * + col1 + + col2 DIV col0 col1 FROM tab2 AS cor0
----
-121
-1947
357

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3231
SELECT + cor0.col1 * col2 + + ( - col1 ) * + col1 + + col2 / col0 col1 FROM tab2 AS cor0
----
-121
-1947
357

query I rowsort
SELECT - 15 - - col2 AS col1 FROM tab0 cor0
----
-14
18
67

query I rowsort
SELECT + cor0.col1 + - col0 + cor0.col1 FROM tab1 AS cor0
----
-44
-54
49

query I rowsort
SELECT ALL 27 AS col2 FROM tab2, tab0 cor0, tab0 AS cor1
----
27 values hashing to 1a3cef5c33b8f87ffeded378fd207753

query I rowsort
SELECT + ( - cor0.col1 ) * col2 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT + 66 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
66

onlyif mysql # use DIV operator for integer division
query I rowsort label-3237
SELECT ALL + ( ( + cor1.col0 ) ) DIV + ( - 91 ) FROM tab1 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-3237
SELECT ALL + ( ( + cor1.col0 ) ) / + ( - 91 ) FROM tab1 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT 46 + col2 FROM tab1 AS cor0
----
100
103
142

onlyif mysql # use DIV operator for integer division
query I rowsort label-3239
SELECT ALL + cor0.col1 * - col2 + col0 + + col0 DIV cor0.col2 AS col1 FROM tab0 AS cor0
----
-27
-2814
-7372

skipif mysql # not compatible
query I rowsort label-3239
SELECT ALL + cor0.col1 * - col2 + col0 + + col0 / cor0.col2 AS col1 FROM tab0 AS cor0
----
-27
-2814
-7372

query I rowsort
SELECT cor0.col0 * - cor0.col2 FROM tab1 AS cor0
----
-162
-3648
-7680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3241
SELECT DISTINCT - + CAST( + 54 AS SIGNED ) * col0 AS col2 FROM tab0 AS cor0
----
-1296
-1890
-4806

skipif mysql # not compatible
query I rowsort label-3241
SELECT DISTINCT - + CAST ( + 54 AS INTEGER ) * col0 AS col2 FROM tab0 AS cor0
----
-1296
-1890
-4806

query I rowsort
SELECT ALL cor0.col2 + 69 AS col2 FROM tab0 cor0
----
102
151
70

query I rowsort
SELECT + 48 * col2 AS col2 FROM tab2 cor0
----
1248
1296
1824

query I rowsort
SELECT DISTINCT - + 7 + col2 FROM tab1 cor0
----
47
50
89

query I rowsort
SELECT + cor0.col0 + cor0.col1 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to f65167375aa80cc8b3f3f8987d2662a3

query I rowsort
SELECT DISTINCT 99 * col2 + + col1 AS col0 FROM tab2 AS cor0
----
2633
2704
3779

query I rowsort
SELECT DISTINCT + 44 + - ( + col0 ) AS col0 FROM tab1 cor0
----
-20
-36
41

query I rowsort
SELECT ALL 91 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

query I rowsort
SELECT DISTINCT - 12 - col0 * col1 * col2 FROM tab1
----
-36492
-4224
-99852

onlyif mysql # use DIV operator for integer division
query I rowsort label-3250
SELECT + col1 * + col0 DIV - col0 + col2 FROM tab0
----
-53
-9
-96

skipif mysql # not compatible
query I rowsort label-3250
SELECT + col1 * + col0 / - col0 + col2 FROM tab0
----
-53
-9
-96

query I rowsort
SELECT DISTINCT - tab1.col0 - - 8 * - col2 FROM tab1
----
-435
-520
-848

query I rowsort
SELECT DISTINCT ( - tab1.col2 * col2 + - col0 ) AS col0 FROM tab1
----
-2919
-3313
-9296

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 + + col2 * col0 col0 FROM tab2 AS cor0
----
162
2002
2964

query I rowsort
SELECT + col1 * col0 - tab2.col0 FROM tab2
----
1264
210
4524

onlyif mysql # use DIV operator for integer division
query I rowsort label-3255
SELECT col2 * + col2 + + col1 DIV - col1 FROM tab0
----
0
1088
6723

skipif mysql # not compatible
query I rowsort label-3255
SELECT col2 * + col2 + + col1 / - col1 FROM tab0
----
0
1088
6723

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3256
SELECT DISTINCT CAST( + col0 + + col1 AS SIGNED ) * + col1 FROM tab1
----
1209
740
754

skipif mysql # not compatible
query I rowsort label-3256
SELECT DISTINCT CAST ( + col0 + + col1 AS INTEGER ) * + col1 FROM tab1
----
1209
740
754

query I rowsort
SELECT - + cor0.col2 * + cor0.col1 + 47 AS col1 FROM tab1 cor0
----
-1201
-1357
-523

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + + ( + col0 ) * col2 col1 FROM tab1 AS cor0
----
136
3638
7667

query I rowsort
SELECT - col1 + 78 * - col1 AS col0 FROM tab0 AS cor0
----
-6794
-7189
-7663

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3260
SELECT ALL + col1 * + CAST( 74 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
1924
740
962

skipif mysql # not compatible
query I rowsort label-3260
SELECT ALL + col1 * + CAST ( 74 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
1924
740
962

query I rowsort
SELECT ALL + - col2 * - col1 * ( - col0 ) AS col0 FROM tab2 AS cor0
----
-119652
-51034
-5859

query I rowsort
SELECT + cor0.col0 * + 85 FROM tab1 AS cor0
----
255
5440
6800

query I rowsort
SELECT + - col0 * - cor0.col1 + cor0.col1 * + col1 * + col2 FROM tab2 cor0
----
12325
26164
95108

query I rowsort
SELECT 6 AS col0 FROM tab1
----
6
6
6

query I rowsort
SELECT ALL - 97 + col0 * 30 + - tab1.col1 AS col1 FROM tab1
----
-33
1813
2290

query I rowsort
SELECT col1 + + ( - col1 ) FROM tab1
----
0
0
0

query I rowsort
SELECT ALL col0 * 90 AS col2 FROM tab1
----
270
5760
7200

query I rowsort
SELECT ALL - col2 * + 42 FROM tab2 AS cor0
----
-1092
-1134
-1596

query I rowsort
SELECT + col2 * ( - col1 * col1 + + col1 ) AS col2 FROM tab0 AS cor0
----
-241230
-671580
-9312

query I rowsort
SELECT ALL + cor0.col1 * + ( - 55 ) - + col2 * + col1 FROM tab1 AS cor0
----
-1120
-1963
-2834

query I rowsort
SELECT + - col2 * 3 + + 94 AS col1 FROM tab1 AS cor0
----
-194
-68
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * col1 col1 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT - + cor0.col1 - 69 AS col2 FROM tab1 AS cor0
----
-79
-82
-95

onlyif mysql # use DIV operator for integer division
query I rowsort label-3274
SELECT ALL tab2.col2 * col2 DIV col1 AS col2 FROM tab2
----
11
23
84

skipif mysql # not compatible
query I rowsort label-3274
SELECT ALL tab2.col2 * col2 / col1 AS col2 FROM tab2
----
11
23
84

query I rowsort
SELECT - tab1.col0 * tab1.col2 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to f7e57a354e4e5925116b9650d1011609

query I rowsort
SELECT - cor0.col1 * col2 AS col2 FROM tab0 cor0
----
-2838
-7462
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col1 * - col2 col1 FROM tab1 cor0
----
-119808
-32490
-75816

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * col2 col2 FROM tab2
----
1444
676
729

query I rowsort
SELECT + tab1.col2 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

onlyif mysql # use DIV operator for integer division
query I rowsort label-3280
SELECT DISTINCT col1 DIV - col2 AS col2 FROM tab0
----
-1
-2
-97

skipif mysql # not compatible
query I rowsort label-3280
SELECT DISTINCT col1 / - col2 AS col2 FROM tab0
----
-1
-2
-97

query I rowsort
SELECT - col1 * col1 * + col1 + - col0 AS col1 FROM tab1
----
-1064
-17579
-2277

query I rowsort
SELECT - col1 * col1 + + col2 FROM tab0
----
-7363
-8199
-9408

query I rowsort
SELECT DISTINCT - col0 * col0 + + col0 AS col2 FROM tab1 AS cor0
----
-4032
-6
-6320

query I rowsort
SELECT DISTINCT - - col2 * cor0.col0 FROM tab2 AS cor0
----
189
2028
3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-3285
SELECT - col0 DIV + col1 AS col2 FROM tab1 AS cor0
----
-6
-6
0

skipif mysql # not compatible
query I rowsort label-3285
SELECT - col0 / + col1 AS col2 FROM tab1 AS cor0
----
-6
-6
0

query I rowsort
SELECT + col2 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( col0 / col1 ) OR - col0 * col1 <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab1.col2 col0 FROM tab1 WHERE NOT ( - col2 ) BETWEEN NULL AND - col1
----

query I rowsort
SELECT - + col0 + + col2 * + col2 * col1 FROM tab1 AS cor0
----
119728
32426
75813

query I rowsort
SELECT col0 * - cor0.col1 * col0 FROM tab2 cor0
----
-106097
-1519
-358956

query I rowsort
SELECT - col2 + col0 + + col0 AS col2 FROM tab1 AS cor0
----
-48
64
71

query I rowsort
SELECT + col1 * + cor0.col0 AS col1 FROM tab2 AS cor0
----
1343
217
4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-3292
SELECT + col2 + + col0 DIV col0 FROM tab2 AS cor0
----
27
28
39

skipif mysql # not compatible
query I rowsort label-3292
SELECT + col2 + + col0 / col0 FROM tab2 AS cor0
----
27
28
39

query I rowsort
SELECT ALL + col0 * + col0 + col0 FROM tab2 cor0
----
56
6162
6320

query I rowsort
SELECT + col1 + tab0.col0 + + col2 FROM tab0
----
133
143
262

query I rowsort
SELECT 79 + + col1 * col1 FROM tab0 AS cor0
----
7475
8360
9488

query I rowsort
SELECT col0 + + col0 * + col0 + - col2 FROM tab0
----
1259
567
7928

query I rowsort
SELECT DISTINCT - ( cor0.col2 ) + col0 + col2 * col0 AS col0 FROM tab0 AS cor0
----
69
7305
783

query I rowsort
SELECT - - col2 * - col0 - col0 * - col0 * col0 FROM tab2 AS cor0
----
154
472524
490037

query I rowsort
SELECT ALL + col1 + + col1 * col0 FROM tab2 AS cor0
----
1360
248
4661

query I rowsort
SELECT ALL col1 + + col1 * + col0 * col2 AS col2 FROM tab0 AS cor0
----
3492
664209
68198

query I rowsort
SELECT - ( - col1 ) + col1 FROM tab2 AS cor0
----
118
34
62

query I rowsort
SELECT ALL cor0.col2 * - col2 AS col0 FROM tab0 cor0
----
-1
-1089
-6724

query I rowsort
SELECT DISTINCT ( - col0 ) + - col0 FROM tab0 AS cor0
----
-178
-48
-70

query I rowsort
SELECT - + 27 * col1 + + cor0.col0 AS col0 FROM tab2 AS cor0
----
-1515
-380
-830

query I rowsort
SELECT ALL + 19 * col2 AS col0 FROM tab2 AS cor0
----
494
513
722

onlyif mysql # use DIV operator for integer division
query I rowsort label-3306
SELECT DISTINCT + col1 DIV + col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3306
SELECT DISTINCT + col1 / + col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT - 18 + - col2 * col1 AS col0 FROM tab2 AS cor0
----
-1552
-664
-855

query I rowsort
SELECT 7 AS col2 FROM tab0 AS cor0
----
7
7
7

query I rowsort
SELECT ALL cor0.col2 * - cor0.col2 FROM tab2 cor0
----
-1444
-676
-729

query I rowsort
SELECT - 38 - col1 AS col1 FROM tab0 AS cor0
----
-124
-129
-135

query I rowsort
SELECT DISTINCT - col0 * col2 + cor0.col0 FROM tab1 AS cor0
----
-159
-3584
-7600

query I rowsort
SELECT cor0.col0 * + col2 * + col1 AS col1 FROM tab1 AS cor0
----
36480
4212
99840

query I rowsort
SELECT ALL + col1 * col2 * col1 + col2 FROM tab0 AS cor0
----
244101
679124
9410

query I rowsort
SELECT DISTINCT col2 + + col0 FROM tab0 cor0
----
171
36
57

query I rowsort
SELECT col1 * col1 + - col0 * + cor0.col0 FROM tab0 AS cor0
----
360
6820
8184

query I rowsort
SELECT - - col1 * col1 * - ( col1 ) FROM tab2 AS cor0
----
-205379
-29791
-4913

query I rowsort
SELECT - + col1 + + col1 * - col2 AS col2 FROM tab2 AS cor0
----
-1593
-663
-868

query I rowsort
SELECT ALL 21 AS col1 FROM tab2, tab1 cor0
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

query I rowsort
SELECT ALL + - col0 + ( - 50 ) FROM tab2 AS cor0
----
-128
-129
-57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 3 col0 FROM tab0
----
3

query I rowsort
SELECT ALL 50 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52

query I rowsort
SELECT DISTINCT + col2 * - col2 + + 8 * tab1.col1 * + col0 FROM tab1
----
-2292
-896
1871

query I rowsort
SELECT - col0 + col2 * - col0 AS col1 FROM tab2 AS cor0
----
-196
-2106
-3081

query I rowsort
SELECT + 87 * col1 AS col2 FROM tab2
----
1479
2697
5133

query I rowsort
SELECT col2 + col2 - + col1 AS col2 FROM tab0 cor0
----
-20
-95
73

query I rowsort
SELECT + col1 * - col0 * - ( col2 ) FROM tab2
----
119652
51034
5859

query I rowsort
SELECT ALL + 20 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

query I rowsort
SELECT DISTINCT 37 AS col0 FROM tab2, tab0 AS cor0
----
37

query I rowsort
SELECT DISTINCT col2 * - ( - 73 ) + - tab0.col1 FROM tab0
----
-24
2323
5895

query I rowsort
SELECT + 81 * - 74 AS col0 FROM tab2
----
-5994
-5994
-5994

query I rowsort
SELECT - + 83 FROM tab1, tab0, tab2 AS cor0, tab2
----
81 values hashing to 291feef3dca992d41fad4b2f7ab1ab9e

query I rowsort
SELECT ALL col2 * + tab1.col2 * tab1.col0 FROM tab1
----
207936
737280
8748

query I rowsort
SELECT - 90 AS col1 FROM tab0, tab1 cor0
----
9 values hashing to f6f26b9a04da14807208b93d507095c5

query I rowsort
SELECT ALL - ( col0 ) * - col0 AS col0 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT + 99 * - col0 AS col0 FROM tab2
----
-693
-7722
-7821

query I rowsort
SELECT - - col1 + + col2 - cor0.col2 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT - cor0.col1 + - col2 - - col1 * - col1 AS col2 FROM tab0 cor0
----
-7515
-8454
-9507

query I rowsort
SELECT ALL 35 * + 84 - tab1.col1 FROM tab1
----
2914
2927
2930

query I rowsort
SELECT DISTINCT + tab2.col0 AS col1 FROM tab2, tab0 AS cor0
----
7
78
79

query I rowsort
SELECT - col2 * col2 + + cor0.col2 * col0 - - ( cor0.col1 ) FROM tab0 AS cor0
----
-211
131
665

query I rowsort
SELECT - col1 * + col1 + - col1 FROM tab0 AS cor0
----
-7482
-8372
-9506

query I rowsort
SELECT - - col2 * + col0 + + col1 FROM tab1 AS cor0
----
188
3658
7693

query I rowsort
SELECT 90 * - col0 AS col1 FROM tab0 AS cor0
----
-2160
-3150
-8010

query I rowsort
SELECT ( + col2 ) * col2 * - tab2.col1 + + 5 + tab2.col1 FROM tab2
----
-22563
-24526
-39820

query I rowsort
SELECT - ( ( tab2.col1 ) ) AS col2 FROM tab1, tab2 cor0 CROSS JOIN tab2
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3346
SELECT + ( col2 ) + CAST( NULL AS SIGNED ) - + 63 * col0 * - col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3346
SELECT + ( col2 ) + CAST ( NULL AS INTEGER ) - + 63 * col0 * - col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3347
SELECT ALL - col2 * col2 DIV - 79 FROM tab1 AS cor0
----
116
36
41

skipif mysql # not compatible
query I rowsort label-3347
SELECT ALL - col2 * col2 / - 79 FROM tab1 AS cor0
----
116
36
41

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3348
SELECT ALL CAST( NULL AS SIGNED ) AS col1 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-3348
SELECT ALL CAST ( NULL AS INTEGER ) AS col1 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT DISTINCT - col2 * cor0.col1 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT - - cor0.col2 * col2 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT 87 + col1 * col0 FROM tab1 cor0
----
1127
165
727

query I rowsort
SELECT DISTINCT - 91 AS col1 FROM tab1 AS cor0
----
-91

query I rowsort
SELECT + - 56 * + 88 FROM tab0 AS cor0
----
-4928
-4928
-4928

query I rowsort
SELECT DISTINCT 27 + + col2 FROM tab2 AS cor0
----
53
54
65

query I rowsort
SELECT ALL + 6 * col1 FROM tab1 AS cor0
----
156
60
78

query I rowsort
SELECT ALL - 9 * 63 AS col1 FROM tab0 AS cor0
----
-567
-567
-567

onlyif mysql # use DIV operator for integer division
query I rowsort label-3357
SELECT DISTINCT + col2 + - col1 DIV col1 AS col2 FROM tab0 AS cor0
----
0
32
81

skipif mysql # not compatible
query I rowsort label-3357
SELECT DISTINCT + col2 + - col1 / col1 AS col2 FROM tab0 AS cor0
----
0
32
81

query I rowsort
SELECT ALL cor0.col2 * ( col0 ) + col1 + + 4 FROM tab2 AS cor0
----
2091
224
3023

query I rowsort
SELECT DISTINCT + cor0.col2 * col2 + col1 FROM tab1 AS cor0
----
2942
3259
9229

onlyif mysql # use DIV operator for integer division
query I rowsort label-3360
SELECT col1 * col2 + - col0 * 22 DIV col0 - col2 * - col0 FROM tab1 AS cor0
----
1544
4196
8906

skipif mysql # not compatible
query I rowsort label-3360
SELECT col1 * col2 + - col0 * 22 / col0 - col2 * - col0 FROM tab1 AS cor0
----
1544
4196
8906

query I rowsort
SELECT ALL col2 * col1 * col2 FROM tab0 cor0
----
611884
93654
97

query I rowsort
SELECT DISTINCT - col2 + - col0 + - col2 AS col0 FROM tab0 AS cor0
----
-253
-37
-90

query IIIIIIIII rowsort
SELECT * FROM tab0, tab1, tab1 AS cor0 WHERE NOT cor0.col1 * tab1.col2 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT ( + 89 ) FROM tab1, tab1 AS cor0
----
89

query I rowsort
SELECT 30 FROM tab1, tab0 AS cor0
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + col1 col0 FROM tab2 AS cor0
----
118
34
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + tab2.col2 * + 46 col1 FROM tab2
----
1222
1269
1786

onlyif mysql # use DIV operator for integer division
query I rowsort label-3368
SELECT DISTINCT - - col0 * 6 DIV - cor0.col1 FROM tab2 AS cor0
----
-1
-27
-7

skipif mysql # not compatible
query I rowsort label-3368
SELECT DISTINCT - - col0 * 6 / - cor0.col1 FROM tab2 AS cor0
----
-1
-27
-7

query I rowsort
SELECT + cor0.col0 * - ( col0 ) AS col1 FROM tab1 AS cor0
----
-4096
-6400
-9

query I rowsort
SELECT ALL 67 AS col2 FROM tab2, tab1 AS cor0, tab0 cor1
----
27 values hashing to eea8a0738728ea55e4e7ba1506c9905a

onlyif mysql # use DIV operator for integer division
query I rowsort label-3371
SELECT DISTINCT + col0 DIV + cor0.col2 FROM tab0 AS cor0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-3371
SELECT DISTINCT + col0 / + cor0.col2 FROM tab0 AS cor0
----
0
1
35

query I rowsort
SELECT ALL + cor0.col1 * col0 + col0 AS col0 FROM tab2 AS cor0
----
1422
224
4680

query I rowsort
SELECT DISTINCT + 48 FROM tab1, tab1 AS cor0
----
48

query I rowsort
SELECT + col1 * - col1 * + cor0.col2 AS col0 FROM tab2 AS cor0
----
-10982
-25947
-90506

onlyif mysql # use DIV operator for integer division
query I rowsort label-3375
SELECT DISTINCT + col0 * 87 DIV col2 FROM tab0 cor0
----
3045
63
94

skipif mysql # not compatible
query I rowsort label-3375
SELECT DISTINCT + col0 * 87 / col2 FROM tab0 cor0
----
3045
63
94

query I rowsort
SELECT DISTINCT - ( - col1 ) + col1 FROM tab2 AS cor0
----
118
34
62

query I rowsort
SELECT ALL - 26 + col1 FROM tab1 AS cor0
----
-13
-16
0

query I rowsort
SELECT DISTINCT - col1 * cor0.col0 + - col1 * col1 FROM tab0 AS cor0
----
-12804
-16380
-9460

query I rowsort
SELECT ALL - - col0 * + ( col2 ) + col1 AS col1 FROM tab0 cor0
----
132
7389
878

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3380
SELECT CAST( - ( - col2 ) AS SIGNED ) FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-3380
SELECT CAST ( - ( - col2 ) AS INTEGER ) FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT ALL - col1 * col0 * col2 FROM tab2 AS cor0
----
-119652
-51034
-5859

query I rowsort
SELECT DISTINCT 6 + col2 FROM tab1 AS cor0
----
102
60
63

query I rowsort
SELECT + cor0.col2 * + col1 AS col1 FROM tab1 AS cor0
----
1248
1404
570

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3384
SELECT CAST( col0 AS SIGNED ) * col0 FROM tab0 AS cor0
----
1225
576
7921

skipif mysql # not compatible
query I rowsort label-3384
SELECT CAST ( col0 AS INTEGER ) * col0 FROM tab0 AS cor0
----
1225
576
7921

onlyif mysql # use DIV operator for integer division
query I rowsort label-3385
SELECT DISTINCT 81 DIV - cor0.col1 - - col2 FROM tab2 AS cor0
----
25
34

skipif mysql # not compatible
query I rowsort label-3385
SELECT DISTINCT 81 / - cor0.col1 - - col2 FROM tab2 AS cor0
----
25
34

onlyif mysql # use DIV operator for integer division
query I rowsort label-3386
SELECT ALL + - 90 DIV col0 AS col1 FROM tab1 AS cor0
----
-1
-1
-30

skipif mysql # not compatible
query I rowsort label-3386
SELECT ALL + - 90 / col0 AS col1 FROM tab1 AS cor0
----
-1
-1
-30

query I rowsort
SELECT DISTINCT col1 + col0 AS col2 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT + + 17 + col1 AS col2 FROM tab1 AS cor0
----
27
30
43

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 + col2 col2 FROM tab2 cor0
----
-33
-4
21

query I rowsort
SELECT DISTINCT - - col1 AS col0 FROM tab1 cor0
----
10
13
26

query I rowsort
SELECT DISTINCT + - 63 + + col1 AS col2 FROM tab2 AS cor0
----
-32
-4
-46

query I rowsort
SELECT ALL 32 + col1 AS col1 FROM tab2 AS cor0
----
49
63
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 + - col2 col0 FROM tab1 AS cor0
----
-16
-51
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-3394
SELECT col1 DIV tab2.col1 AS col1 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3394
SELECT col1 / tab2.col1 AS col1 FROM tab2
----
1
1
1

query I rowsort
SELECT ALL 3 * + cor0.col0 FROM tab1 AS cor0
----
192
240
9

query I rowsort
SELECT - col1 + col1 * - col1 * col0 - + cor0.col1 FROM tab1 AS cor0
----
-13546
-2080
-6420

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3397
SELECT ALL + + col0 + - col1 * CAST( 58 AS SIGNED ) FROM tab2 AS cor0
----
-1791
-3344
-907

skipif mysql # not compatible
query I rowsort label-3397
SELECT ALL + + col0 + - col1 * CAST ( 58 AS INTEGER ) FROM tab2 AS cor0
----
-1791
-3344
-907

query I rowsort
SELECT ALL + - col2 * - col2 - - col2 AS col1 FROM tab2 AS cor0
----
1482
702
756

onlyif mysql # use DIV operator for integer division
query I rowsort label-3399
SELECT tab1.col0 DIV + col1 + + col2 - tab1.col2 AS col2 FROM tab1
----
0
6
6

skipif mysql # not compatible
query I rowsort label-3399
SELECT tab1.col0 / + col1 + + col2 - tab1.col2 AS col2 FROM tab1
----
0
6
6

onlyif mysql # use DIV operator for integer division
query I rowsort label-3400
SELECT col0 + + cor0.col1 DIV + col0 FROM tab2 AS cor0
----
11
78
79

skipif mysql # not compatible
query I rowsort label-3400
SELECT col0 + + cor0.col1 / + col0 FROM tab2 AS cor0
----
11
78
79

query I rowsort
SELECT + col2 * ( 33 ) + cor0.col1 AS col0 FROM tab0 AS cor0
----
1175
130
2797

query I rowsort
SELECT + col1 + 24 - + 58 FROM tab2 cor0
----
-17
-3
25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + col0 col1 FROM tab1 AS cor0
----
128
160
6

onlyif mysql # use DIV operator for integer division
query I rowsort label-3404
SELECT + col2 + - col1 DIV 23 + + col2 AS col1 FROM tab1 cor0
----
107
114
192

skipif mysql # not compatible
query I rowsort label-3404
SELECT + col2 + - col1 / 23 + + col2 AS col1 FROM tab1 cor0
----
107
114
192

query I rowsort
SELECT ( col1 + col1 ) * - col2 FROM tab1
----
-1140
-2496
-2808

query I rowsort
SELECT - col1 + col1 * col0 AS col0 FROM tab0 AS cor0
----
1978
3298
8008

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + - col1 + col1 col2 FROM tab1
----
3
64
80

query I rowsort
SELECT - 52 * + col1 FROM tab0
----
-4472
-4732
-5044

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 1 * col0 + col2 col1 FROM tab2
----
104
117
34

query I rowsort
SELECT DISTINCT + col2 * - 18 AS col0 FROM tab1
----
-1026
-1728
-972

query I rowsort
SELECT + cor0.col0 + - col0 FROM tab0 cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + 46 * 84 + col2 * 84 col1 FROM tab1 cor0
----
105000
43428
58296

query I rowsort
SELECT DISTINCT + col0 + ( - ( col1 ) ) * + 35 FROM tab0 AS cor0
----
-2986
-3096
-3360

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 * + 11 + + 66 col1 FROM tab1 AS cor0
----
-220
-44
-77

query I rowsort
SELECT cor0.col0 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 75 col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + 48 * col2 col0 FROM tab1 AS cor0
----
2646
2793
4704

query I rowsort
SELECT DISTINCT + - col0 + - cor0.col1 AS col2 FROM tab1 AS cor0
----
-29
-74
-93

query I rowsort
SELECT + cor0.col2 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

onlyif mysql # use DIV operator for integer division
query I rowsort label-3420
SELECT + + 51 DIV col1 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3420
SELECT + + 51 / col1 AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - 47 AS col0 FROM tab2 AS cor0
----
-47
-47
-47

query I rowsort
SELECT col2 + - col1 * col1 * col0 AS col1 FROM tab0 AS cor0
----
-177471
-329314
-736927

query I rowsort
SELECT ( col2 ) * - col0 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT DISTINCT - col1 + + 26 * cor0.col2 FROM tab0 AS cor0
----
-71
2041
772

query I rowsort
SELECT - col2 + + col1 * col0 FROM tab0
----
2031
3394
8017

query I rowsort
SELECT DISTINCT - - 61 + - cor0.col1 * + 90 AS col0 FROM tab2 AS cor0
----
-1469
-2729
-5249

onlyif mysql # use DIV operator for integer division
query I rowsort label-3427
SELECT cor0.col2 + col2 + - col0 DIV + col2 AS col2 FROM tab0 AS cor0
----
-33
163
66

skipif mysql # not compatible
query I rowsort label-3427
SELECT cor0.col2 + col2 + - col0 / + col2 AS col2 FROM tab0 AS cor0
----
-33
163
66

query I rowsort
SELECT DISTINCT col2 * col0 + + col0 + - 95 FROM tab0 AS cor0
----
-25
721
7292

query I rowsort
SELECT - 72 + - cor0.col0 + - col0 * col0 AS col1 FROM tab1 AS cor0
----
-4232
-6552
-84

onlyif mysql # use DIV operator for integer division
query I rowsort label-3430
SELECT ALL - + cor0.col1 * - cor0.col2 + ( col0 ) DIV col0 FROM tab1 AS cor0
----
1249
1405
571

skipif mysql # not compatible
query I rowsort label-3430
SELECT ALL - + cor0.col1 * - cor0.col2 + ( col0 ) / col0 FROM tab1 AS cor0
----
1249
1405
571

onlyif mysql # use DIV operator for integer division
query I rowsort label-3431
SELECT + col1 + cor0.col0 DIV col1 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-3431
SELECT + col1 + cor0.col0 / col1 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT ALL col2 * col0 + cor0.col0 FROM tab0 AS cor0
----
70
7387
816

query I rowsort
SELECT DISTINCT - col2 + - col0 + col1 FROM tab2
----
-100
-3
-45

query I rowsort
SELECT ALL - - col2 * - col1 AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 39 col2 FROM tab2 AS cor0
----
39
39
39

query I rowsort
SELECT ALL cor0.col0 + + col0 * col2 + col2 FROM tab1 AS cor0
----
219
3769
7856

onlyif mysql # use DIV operator for integer division
query I rowsort label-3437
SELECT DISTINCT + tab2.col2 DIV col1 AS col0 FROM tab2
----
0
2

skipif mysql # not compatible
query I rowsort label-3437
SELECT DISTINCT + tab2.col2 / col1 AS col0 FROM tab2
----
0
2

query I rowsort
SELECT + col2 + - tab0.col2 AS col1 FROM tab0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( col2 - + col2 ) BETWEEN - col0 AND ( col2 * col1 + col2 + col2 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

query I rowsort
SELECT DISTINCT - col1 + tab2.col2 - tab2.col1 AS col2 FROM tab2
----
-35
-92
4

query I rowsort
SELECT - tab2.col0 * tab2.col0 - + col0 AS col1 FROM tab2
----
-56
-6162
-6320

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * col2 + + col2 col2 FROM tab1
----
1344
1458
627

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN NULL AND ( + col2 )
----

query I rowsort
SELECT DISTINCT tab2.col0 * tab2.col1 + col0 AS col0 FROM tab2
----
1422
224
4680

query I rowsort
SELECT ALL col1 AS col2 FROM tab1 WHERE + col2 <= + col0 * col1
----
10
13
26

query III rowsort
SELECT ALL * FROM tab0 WHERE + col0 + col2 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL col0 + tab1.col1 * col0 + col2 FROM tab1
----
1216
135
761

onlyif mysql # use DIV operator for integer division
query I rowsort label-3448
SELECT + col1 + + col1 DIV col2 FROM tab0
----
194
88
92

skipif mysql # not compatible
query I rowsort label-3448
SELECT + col1 + + col1 / col2 FROM tab0
----
194
88
92

query III rowsort
SELECT ALL * FROM tab2 WHERE col1 * + col1 + - col0 / + col2 < NULL
----

query I rowsort
SELECT ALL tab0.col2 * col0 + + col0 + col2 FROM tab0
----
71
7469
849

query I rowsort
SELECT ALL + col1 + - col2 - col2 AS col1 FROM tab2
----
-23
-59
7

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT - + 49 + - col1 AS col2 FROM tab0 cor0
----
-135
-140
-146

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 NOT IN ( - col2 * - col0 - col2 )
----

query I rowsort
SELECT - col0 * col1 * + col2 + + col0 * col2 FROM tab0
----
-3360
-656820
-67320

query I rowsort
SELECT tab2.col2 + + col1 AS col0 FROM tab2
----
55
58
85

onlyif mysql # use DIV operator for integer division
query I rowsort label-3457
SELECT ALL - col0 DIV + col1 + col0 AS col2 FROM tab1
----
3
58
74

skipif mysql # not compatible
query I rowsort label-3457
SELECT ALL - col0 / + col1 + col0 AS col2 FROM tab1
----
3
58
74

query I rowsort
SELECT + col1 + + col0 * col0 AS col2 FROM tab1
----
35
4106
6413

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NULL IN ( tab1.col0 )
----

query I rowsort
SELECT col2 * + col0 * - col2 + col1 FROM tab1
----
-207926
-737267
-8722

query I rowsort
SELECT - col2 * + col0 * col1 FROM tab1
----
-36480
-4212
-99840

query I rowsort
SELECT + col0 * col2 + + col1 FROM tab0
----
132
7389
878

query III rowsort
SELECT * FROM tab1 WHERE - col1 * col0 * col0 + + col2 * - col2 NOT BETWEEN ( col0 ) AND NULL
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

query III rowsort
SELECT * FROM tab2 WHERE col1 BETWEEN ( col1 / col1 ) AND NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-3466
SELECT ALL col1 - - col1 DIV col1 AS col0 FROM tab1
----
11
14
27

skipif mysql # not compatible
query I rowsort label-3466
SELECT ALL col1 - - col1 / col1 AS col0 FROM tab1
----
11
14
27

query I rowsort
SELECT DISTINCT + - 72 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-72

query I rowsort
SELECT ALL + 85 FROM tab1, tab0 AS cor0
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b

query I rowsort
SELECT + 54 + col2 * col2 AS col1 FROM tab1 AS cor0
----
2970
3303
9270

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab2 AS cor2, tab0 cor3
----
3645 values hashing to be7848c91584d04f21fd5bbb0d239aca

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 95 col0 FROM tab2
----
95
95
95

onlyif mysql # use DIV operator for integer division
query I rowsort label-3472
SELECT + col0 - + col2 DIV - tab2.col1 FROM tab2
----
7
78
81

skipif mysql # not compatible
query I rowsort label-3472
SELECT + col0 - + col2 / - tab2.col1 FROM tab2
----
7
78
81

query I rowsort
SELECT DISTINCT 14 - col0 FROM tab2
----
-64
-65
7

query I rowsort
SELECT ALL ( + col2 ) FROM tab1 cor0
----
54
57
96

query I rowsort
SELECT 46 * - col0 * + cor0.col1 - col2 FROM tab2 cor0
----
-10009
-211718
-61816

query I rowsort
SELECT ALL 54 AS col1 FROM tab2, tab1 AS cor0, tab2 AS cor1, tab2 cor2
----
81 values hashing to c12c2f39593b3ce157086f29d8391c32

query I rowsort
SELECT DISTINCT + cor0.col0 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
3
64
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3478
SELECT + CAST( + col2 AS SIGNED ) + - cor0.col2 * col2 AS col2 FROM tab0 AS cor0
----
-1056
-6642
0

skipif mysql # not compatible
query I rowsort label-3478
SELECT + CAST ( + col2 AS INTEGER ) + - cor0.col2 * col2 AS col2 FROM tab0 AS cor0
----
-1056
-6642
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3479
SELECT ALL + col1 DIV - col1 + - 9 AS col2 FROM tab0
----
-10
-10
-10

skipif mysql # not compatible
query I rowsort label-3479
SELECT ALL + col1 / - col1 + - 9 AS col2 FROM tab0
----
-10
-10
-10

query I rowsort
SELECT ALL + cor1.col2 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT DISTINCT 80 FROM tab1, tab2, tab1 AS cor0
----
80

query I rowsort
SELECT col0 * - cor0.col0 + - col1 FROM tab0 AS cor0
----
-1322
-662
-8012

query I rowsort
SELECT + col0 + ( - col2 ) * + col0 FROM tab2 AS cor0
----
-182
-1950
-2923

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3484
SELECT - col2 + CAST( col0 AS SIGNED ) FROM tab0 cor0
----
-9
34
7

skipif mysql # not compatible
query I rowsort label-3484
SELECT - col2 + CAST ( col0 AS INTEGER ) FROM tab0 cor0
----
-9
34
7

query I rowsort
SELECT DISTINCT + + col0 * col2 AS col0 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT col1 + - col0 * ( cor0.col2 ) FROM tab0 AS cor0
----
-706
-7207
62

query I rowsort
SELECT ALL - - col1 * + ( - ( - col1 ) ) AS col2 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT ALL tab0.col0 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 39 col2 FROM tab1
----
39
39
39

query I rowsort
SELECT cor0.col0 * + 93 + - 38 FROM tab1 AS cor0
----
241
5914
7402

query I rowsort
SELECT ALL - cor0.col1 * + col0 AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3492
SELECT + CAST( NULL AS SIGNED ) + + tab1.col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3492
SELECT + CAST ( NULL AS INTEGER ) + + tab1.col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3493
SELECT DISTINCT - - CAST( - col0 AS SIGNED ) FROM tab2 AS cor0
----
-7
-78
-79

skipif mysql # not compatible
query I rowsort label-3493
SELECT DISTINCT - - CAST ( - col0 AS INTEGER ) FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT DISTINCT - 94 + - col0 + + col1 AS col1 FROM tab1
----
-148
-161
-71

query I rowsort
SELECT 22 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

query I rowsort
SELECT DISTINCT ( + col1 ) * + tab2.col1 FROM tab2
----
289
3481
961

query I rowsort
SELECT DISTINCT col1 * - tab0.col2 AS col1 FROM tab0
----
-2838
-7462
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-3498
SELECT + ( col2 ) DIV col1 col1 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3498
SELECT + ( col2 ) / col1 col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3499
SELECT DISTINCT - - col0 DIV col0 AS col1 FROM tab0 cor0
----
1

skipif mysql # not compatible
query I rowsort label-3499
SELECT DISTINCT - - col0 / col0 AS col1 FROM tab0 cor0
----
1

query I rowsort
SELECT DISTINCT + + 39 FROM tab0 AS cor0
----
39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * col0 col0 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT col2 + 27 * col0 AS col0 FROM tab1
----
135
1785
2256

query I rowsort
SELECT - tab1.col2 * tab1.col0 AS col0 FROM tab1
----
-162
-3648
-7680

query I rowsort
SELECT DISTINCT col1 - 59 * - tab0.col0 FROM tab0
----
1502
2162
5342

onlyif mysql # use DIV operator for integer division
query I rowsort label-3505
SELECT ALL - col1 DIV + 83 + + col0 DIV col1 AS col0 FROM tab1 AS cor0
----
0
6
6

skipif mysql # not compatible
query I rowsort label-3505
SELECT ALL - col1 / + 83 + + col0 / col1 AS col0 FROM tab1 AS cor0
----
0
6
6

query I rowsort
SELECT DISTINCT + col2 * ( ( col1 ) ) + 70 * - col2 AS col1 FROM tab1 AS cor0
----
-2376
-3420
-5472

query I rowsort
SELECT col2 * 37 * 96 FROM tab0 AS cor0
----
117216
291264
3552

query I rowsort
SELECT ALL - 29 AS col1 FROM tab1 AS cor0
----
-29
-29
-29

query I rowsort
SELECT - - cor0.col1 * + 86 + col0 * + col0 - col1 * col0 AS col2 FROM tab1 cor0
----
2167
4316
6478

query I rowsort
SELECT DISTINCT - 11 * 17 FROM tab2 cor0
----
-187

query I rowsort
SELECT DISTINCT + 15 + + 41 FROM tab1 AS cor0
----
56

query I rowsort
SELECT - 73 * + col1 * - col1 AS col1 FROM tab1 AS cor0
----
12337
49348
7300

query I rowsort
SELECT DISTINCT col2 * + 34 AS col2 FROM tab1 AS cor0
----
1836
1938
3264

query I rowsort
SELECT - - ( - col2 ) + + col2 - 83 AS col1 FROM tab2 cor0
----
-83
-83
-83

query I rowsort
SELECT ALL + cor0.col0 * + col1 + + col0 FROM tab2 AS cor0
----
1422
224
4680

onlyif mysql # use DIV operator for integer division
query I rowsort label-3516
SELECT DISTINCT + - col2 * - cor0.col1 + + col2 DIV col1 AS col2 FROM tab2 cor0
----
1534
648
837

skipif mysql # not compatible
query I rowsort label-3516
SELECT DISTINCT + - col2 * - cor0.col1 + + col2 / col1 AS col2 FROM tab2 cor0
----
1534
648
837

query I rowsort
SELECT + 66 * ( col0 ) + - col0 * col1 FROM tab1 cor0
----
120
3584
4240

query I rowsort
SELECT DISTINCT + col2 + + 69 * - 65 - col0 FROM tab2
----
-4465
-4526
-4537

query I rowsort
SELECT DISTINCT col2 * 32 - + 96 AS col0 FROM tab0
----
-64
2528
960

query I rowsort
SELECT ALL cor0.col1 * - ( - col2 ) + - 43 FROM tab2 AS cor0
----
1491
603
794

query I rowsort
SELECT ALL + - col1 * + col0 * cor0.col2 AS col2 FROM tab0 AS cor0
----
-3395
-664118
-68112

query I rowsort
SELECT ALL col0 + - col0 + cor0.col2 AS col0 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT DISTINCT - + col0 + ( - cor0.col1 ) AS col2 FROM tab0 AS cor0
----
-110
-132
-180

query I rowsort
SELECT ALL + ( cor0.col0 ) * - col1 + cor0.col1 + cor0.col1 * col1 FROM tab2 AS cor0
----
-1037
-1062
775

onlyif mysql # use DIV operator for integer division
query I rowsort label-3525
SELECT ALL + 79 + - col2 DIV - col1 FROM tab2 AS cor0
----
79
79
81

skipif mysql # not compatible
query I rowsort label-3525
SELECT ALL + 79 + - col2 / - col1 FROM tab2 AS cor0
----
79
79
81

query I rowsort
SELECT DISTINCT - ( col0 ) * col1 + col2 FROM tab1 AS cor0
----
-24
-583
-944

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3527
SELECT + CAST( NULL AS SIGNED ) + - col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3527
SELECT + CAST ( NULL AS INTEGER ) + - col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3528
SELECT DISTINCT - 73 * - col0 + - cor0.col1 * CAST( - ( col2 ) AS SIGNED ) - - ( + col0 ) col1 FROM tab0 AS cor0
----
14048
2687
4614

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3528
SELECT DISTINCT - 73 * - col0 + - cor0.col1 * CAST ( - ( col2 ) AS INTEGER ) - - ( + col0 ) col1 FROM tab0 AS cor0
----
14048
2687
4614

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3529
SELECT CAST( 21 * col2 AS SIGNED ) AS col2 FROM tab0
----
1722
21
693

skipif mysql # not compatible
query I rowsort label-3529
SELECT CAST ( 21 * col2 AS INTEGER ) AS col2 FROM tab0
----
1722
21
693

query I rowsort
SELECT ALL cor0.col0 AS col2 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT 21 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

query I rowsort
SELECT DISTINCT - col0 + cor0.col1 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT + + col2 + 52 FROM tab0 AS cor0
----
134
53
85

query I rowsort
SELECT - + 47 * cor0.col1 - 10 AS col2 FROM tab1 cor0
----
-1232
-480
-621

onlyif mysql # use DIV operator for integer division
query I rowsort label-3535
SELECT col1 + + col1 DIV col0 AS col1 FROM tab0 AS cor0
----
89
92
99

skipif mysql # not compatible
query I rowsort label-3535
SELECT col1 + + col1 / col0 AS col1 FROM tab0 AS cor0
----
89
92
99

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3536
SELECT 48 / - col0 - - CAST( NULL AS DECIMAL ) * ( + col1 ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3536
SELECT 48 / - col0 - - CAST ( NULL AS REAL ) * ( + col1 ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 41 + cor0.col0 FROM tab2 AS cor0
----
119
120
48

query I rowsort
SELECT ALL + 34 + + col0 + col0 AS col1 FROM tab0
----
104
212
82

query I rowsort
SELECT ALL - col0 + col2 * col1 AS col1 FROM tab0
----
2814
62
7373

query I rowsort
SELECT DISTINCT col1 * tab1.col1 * tab1.col1 + 35 FROM tab1
----
1035
17611
2232

query I rowsort
SELECT - col2 * 76 AS col0 FROM tab0 AS cor0
----
-2508
-6232
-76

query I rowsort
SELECT col2 * + col1 * - cor0.col2 AS col2 FROM tab0 AS cor0
----
-611884
-93654
-97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3543
SELECT DISTINCT - col0 + + CAST( NULL AS SIGNED ) * + col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3543
SELECT DISTINCT - col0 + + CAST ( NULL AS INTEGER ) * + col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + cor0.col1 + - 61 + 14 * col2 AS col2 FROM tab0 cor0
----
1178
487
50

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3545
SELECT ALL - col0 - + CAST( NULL AS SIGNED ) * - col0 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3545
SELECT ALL - col0 - + CAST ( NULL AS INTEGER ) * - col0 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - cor0.col2 * cor0.col1 + - col2 FROM tab2 AS cor0
----
-1560
-684
-864

query I rowsort
SELECT ALL - col0 - + cor0.col2 FROM tab2 AS cor0
----
-104
-117
-34

query I rowsort
SELECT ALL - - col0 + + cor0.col0 * col0 * col0 AS col1 FROM tab0 AS cor0
----
13848
42910
705058

query I rowsort
SELECT + + col2 * + 13 FROM tab1 AS cor0
----
1248
702
741

query I rowsort
SELECT - + col0 + cor0.col0 * col1 AS col2 FROM tab2 AS cor0
----
1264
210
4524

query I rowsort
SELECT ALL 19 + + cor0.col1 + + cor0.col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 9ecd9f272d171479d1bbcf0a846ee4fe

query I rowsort
SELECT DISTINCT - cor0.col1 * - ( - col0 ) + + col0 AS col1 FROM tab0 AS cor0
----
-2040
-3360
-8010

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3553
SELECT + cor0.col1 + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3553
SELECT + cor0.col1 + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col0 + col1 AS col0 FROM tab0 cor0
----
2
62
62

query I rowsort
SELECT ALL - col1 - 21 FROM tab2 AS cor0
----
-38
-52
-80

query I rowsort
SELECT DISTINCT + - cor0.col0 * - col2 + + 71 AS col2 FROM tab2 AS cor0
----
2099
260
3073

onlyif mysql # use DIV operator for integer division
query I rowsort label-3557
SELECT ALL + ( - tab2.col1 ) DIV col1 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3557
SELECT ALL + ( - tab2.col1 ) / col1 FROM tab2
----
-1
-1
-1

query I rowsort
SELECT ALL - col0 * col1 * + 35 FROM tab2 AS cor0
----
-161070
-47005
-7595

query I rowsort
SELECT DISTINCT col1 * col1 * ( 98 * - col0 ) FROM tab0
----
-17395392
-32272870
-72226882

query I rowsort
SELECT DISTINCT - 78 FROM tab0, tab2, tab0 AS cor0
----
-78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3561
SELECT ALL - CAST( NULL AS SIGNED ) FROM tab0, tab0 AS cor0, tab1 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-3561
SELECT ALL - CAST ( NULL AS INTEGER ) FROM tab0, tab0 AS cor0, tab1 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT + + 19 AS col2 FROM tab1, tab2, tab0 cor0
----
27 values hashing to 86c53e8567a17c8d91fc5aff119e0498

query I rowsort
SELECT ALL - 57 AS col1 FROM tab1
----
-57
-57
-57

query I rowsort
SELECT 50 * - tab2.col1 + col1 FROM tab2
----
-1519
-2891
-833

query I rowsort
SELECT + col0 * col0 + + col2 + + col2 FROM tab2 AS cor0
----
103
6136
6317

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + 82 - + 84 col2 FROM tab2
----
490
6312
6394

onlyif mysql # use DIV operator for integer division
query I rowsort label-3567
SELECT col2 + - col2 + col1 DIV tab1.col1 AS col1 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3567
SELECT col2 + - col2 + col1 / tab1.col1 AS col1 FROM tab1
----
1
1
1

query I rowsort
SELECT ALL + 72 + cor1.col2 FROM tab0, tab2 AS cor0, tab1, tab0 AS cor1
----
81 values hashing to 7e9bf1cac49f80934458b12077dd339e

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab2, tab0 AS cor2
----
3645 values hashing to 52c9380a39df7a744b9f2f2c5bf55dd5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + 55 * - col1 col2 FROM tab0 AS cor0
----
-4697
-4923
-5334

query I rowsort
SELECT - cor0.col1 + col1 * + col2 FROM tab2 AS cor0
----
1475
629
806

query I rowsort
SELECT + - col0 * + 1 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT DISTINCT - col1 + + col2 * - col2 AS col1 FROM tab0 AS cor0
----
-1175
-6815
-98

query I rowsort
SELECT + col1 - ( + col0 ) AS col1 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT ALL col2 + + 35 * 77 FROM tab1 AS cor0
----
2749
2752
2791

query I rowsort
SELECT col1 * - ( col1 ) - col1 AS col1 FROM tab0 AS cor0
----
-7482
-8372
-9506

query I rowsort
SELECT col2 - col2 * 4 FROM tab1 cor0
----
-162
-171
-288

query I rowsort
SELECT - 52 * cor0.col2 FROM tab0 AS cor0
----
-1716
-4264
-52

query I rowsort
SELECT 17 * - cor1.col2 + 31 AS col2 FROM tab0, tab1 AS cor0, tab1, tab2 AS cor1
----
81 values hashing to caec5a5fe84fdaa9bb991b65add39fe5

query I rowsort
SELECT - - col2 + col2 AS col0 FROM tab1 cor0
----
108
114
192

onlyif mysql # use DIV operator for integer division
query I rowsort label-3581
SELECT - + 3 DIV col0 FROM tab1 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3581
SELECT - + 3 / col0 FROM tab1 cor0
----
-1
0
0

query I rowsort
SELECT + + 22 AS col1 FROM tab0 AS cor0
----
22
22
22

onlyif mysql # use DIV operator for integer division
query I rowsort label-3583
SELECT CAST( col0 AS SIGNED ) + + col2 DIV ( 22 ) col1 FROM tab1 AS cor0
----
5
66
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3583
SELECT CAST ( col0 AS INTEGER ) + + col2 / ( 22 ) col1 FROM tab1 AS cor0
----
5
66
84

query I rowsort
SELECT - col2 * - col0 * - col2 + + col1 FROM tab0 AS cor0
----
-26050
-598345
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 23 * col0 col0 FROM tab0 AS cor0
----
2047
552
805

query I rowsort
SELECT - 54 * + col2 AS col2 FROM tab2 AS cor0
----
-1404
-1458
-2052

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + col2 * + col2 col0 FROM tab2 cor0
----
1523
736
754

query I rowsort
SELECT DISTINCT - 72 * + col1 AS col2 FROM tab0 AS cor0
----
-6192
-6552
-6984

query I rowsort
SELECT + 92 + - cor0.col0 AS col2 FROM tab2 AS cor0
----
13
14
85

query I rowsort
SELECT - col1 * cor0.col0 AS col0 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT DISTINCT - ( col2 ) * + col0 AS col2 FROM tab0 AS cor0
----
-35
-7298
-792

onlyif mysql # use DIV operator for integer division
query I rowsort label-3592
SELECT DISTINCT col2 + - col0 DIV + ( + cor0.col1 ) FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-3592
SELECT DISTINCT col2 + - col0 / + ( + cor0.col1 ) FROM tab0 AS cor0
----
1
33
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * col1 + + col1 col1 FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT DISTINCT + ( col2 ) * - col2 * + ( col2 ) AS col1 FROM tab2 AS cor0
----
-17576
-19683
-54872

query I rowsort
SELECT - + col1 * - cor0.col0 AS col0 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT + - col1 + col2 * 9 AS col0 FROM tab0 AS cor0
----
-88
211
647

query I rowsort
SELECT DISTINCT + col1 * col2 + col1 + - col2 FROM tab0 AS cor0
----
193
2891
7471

query I rowsort
SELECT DISTINCT + col2 * - col0 + - col0 AS col1 FROM tab0 AS cor0
----
-70
-7387
-816

query I rowsort
SELECT - + col0 + + ( col2 ) AS col1 FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT DISTINCT + col1 * + col2 + col2 AS col1 FROM tab1 AS cor0
----
1344
1458
627

onlyif mysql # use DIV operator for integer division
query I rowsort label-3601
SELECT DISTINCT + - col2 DIV 18 - - col2 * 56 FROM tab0 AS cor0
----
1847
4588
56

skipif mysql # not compatible
query I rowsort label-3601
SELECT DISTINCT + - col2 / 18 - - col2 * 56 FROM tab0 AS cor0
----
1847
4588
56

query I rowsort
SELECT ALL col1 * - cor0.col0 AS col1 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT + + 60 AS col0 FROM tab0 AS cor0
----
60
60
60

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3604
SELECT ALL + CAST( NULL AS SIGNED ) + col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3604
SELECT ALL + CAST ( NULL AS INTEGER ) + col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + 13 * + 24 FROM tab2
----
312
312
312

query I rowsort
SELECT - tab1.col2 * - col1 AS col0 FROM tab1
----
1248
1404
570

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3607
SELECT + CAST( NULL AS SIGNED ) col0 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3607
SELECT + CAST ( NULL AS INTEGER ) col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + cor0.col0 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT + 63 * tab0.col0 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 3eadb7476105ce17c2616cae257b117a

query I rowsort
SELECT - col2 * + 60 FROM tab2
----
-1560
-1620
-2280

onlyif mysql # use DIV operator for integer division
query I rowsort label-3611
SELECT 99 DIV cor0.col0 FROM tab1 AS cor0
----
1
1
33

skipif mysql # not compatible
query I rowsort label-3611
SELECT 99 / cor0.col0 FROM tab1 AS cor0
----
1
1
33

query I rowsort
SELECT - col0 + + col2 * + col1 FROM tab2 AS cor0
----
1456
567
830

query I rowsort
SELECT - col2 * - col1 * - col1 AS col1 FROM tab0 AS cor0
----
-244068
-679042
-9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col2 * - col2 - 35 col0 FROM tab1 AS cor0
----
2881
3214
9181

query I rowsort
SELECT DISTINCT - - cor0.col2 * + col2 + 44 AS col2 FROM tab2 AS cor0
----
1488
720
773

query I rowsort
SELECT - col0 * - col2 - - col2 AS col1 FROM tab1 AS cor0
----
216
3705
7776

onlyif mysql # use DIV operator for integer division
query I rowsort label-3617
SELECT DISTINCT - col1 DIV + tab2.col0 + col1 AS col1 FROM tab2
----
17
27
59

skipif mysql # not compatible
query I rowsort label-3617
SELECT DISTINCT - col1 / + tab2.col0 + col1 AS col1 FROM tab2
----
17
27
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-3618
SELECT ALL col0 DIV ( + 87 ) + - col0 FROM tab0
----
-24
-35
-88

skipif mysql # not compatible
query I rowsort label-3618
SELECT ALL col0 / ( + 87 ) + - col0 FROM tab0
----
-24
-35
-88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * - col2 + col2 * - col2 * + col0 col2 FROM tab0
----
-132
-28974
-605898

onlyif mysql # use DIV operator for integer division
query I rowsort label-3620
SELECT DISTINCT - col1 DIV tab1.col0 + col1 FROM tab1
----
10
13
18

skipif mysql # not compatible
query I rowsort label-3620
SELECT DISTINCT - col1 / tab1.col0 + col1 FROM tab1
----
10
13
18

query I rowsort
SELECT + tab0.col1 + 43 + 49 AS col2 FROM tab0
----
178
183
189

query I rowsort
SELECT DISTINCT col2 * col1 - + col2 AS col2 FROM tab2 AS cor0
----
1508
608
810

query I rowsort
SELECT ALL + - cor0.col0 * col1 + col2 AS col2 FROM tab0 AS cor0
----
-2031
-3394
-8017

query I rowsort
SELECT + - col0 - + 7 AS col0 FROM tab1 AS cor0
----
-10
-71
-87

onlyif mysql # use DIV operator for integer division
query I rowsort label-3625
SELECT DISTINCT - - cor0.col1 DIV + 50 - col1 FROM tab2 AS cor0
----
-17
-31
-58

skipif mysql # not compatible
query I rowsort label-3625
SELECT DISTINCT - - cor0.col1 / + 50 - col1 FROM tab2 AS cor0
----
-17
-31
-58

query I rowsort
SELECT ALL col0 + col0 * col2 * col2 FROM tab0
----
26160
598525
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 56 col1 FROM tab2
----
-56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 79 col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f

query I rowsort
SELECT + col0 + + col2 * col1 FROM tab1
----
1328
1407
634

query I rowsort
SELECT 13 + col0 AS col1 FROM tab1
----
16
77
93

query I rowsort
SELECT cor0.col0 + col1 * + col2 FROM tab2 cor0
----
1612
725
844

query I rowsort
SELECT - ( cor0.col1 ) * + ( col1 ) * - col2 AS col2 FROM tab0 AS cor0
----
244068
679042
9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-3633
SELECT - + col1 DIV col0 AS col2 FROM tab1 cor0
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-3633
SELECT - + col1 / col0 AS col2 FROM tab1 cor0
----
-8
0
0

query I rowsort
SELECT DISTINCT + col1 * col2 AS col2 FROM tab0 cor0
----
2838
7462
97

query I rowsort
SELECT + 59 * - col0 * - ( col2 + + col0 ) AS col0 FROM tab0 AS cor0
----
74340
80712
897921

query I rowsort
SELECT DISTINCT + 7 * col1 FROM tab2 AS cor0
----
119
217
413

query I rowsort
SELECT - col1 * + col1 + col0 AS col2 FROM tab1 AS cor0
----
-36
-673
-89

query I rowsort
SELECT + + col0 + + col0 * ( ( col0 ) ) FROM tab1 AS cor0
----
12
4160
6480

onlyif mysql # use DIV operator for integer division
query I rowsort label-3639
SELECT ALL + col0 * col0 DIV + ( 77 ) FROM tab1 AS cor0
----
0
53
83

skipif mysql # not compatible
query I rowsort label-3639
SELECT ALL + col0 * col0 / + ( 77 ) FROM tab1 AS cor0
----
0
53
83

query I rowsort
SELECT col2 + - col1 * - col0 FROM tab2 AS cor0
----
1381
244
4628

query I rowsort
SELECT ALL + 96 AS col2 FROM tab2 AS cor0
----
96
96
96

query I rowsort
SELECT DISTINCT - + col0 + - col0 AS col0 FROM tab2 AS cor0
----
-14
-156
-158

query I rowsort
SELECT + - 2 AS col0 FROM tab0 AS cor0
----
-2
-2
-2

query I rowsort
SELECT + - 67 AS col1 FROM tab2 AS cor0
----
-67
-67
-67

query I rowsort
SELECT DISTINCT + 42 * col1 + + ( + col0 * col0 ) AS col0 FROM tab1 AS cor0
----
1101
4516
6946

query I rowsort
SELECT - col1 * col0 + col1 * + 46 * col0 AS col2 FROM tab1
----
28800
3510
46800

query I rowsort
SELECT + tab2.col1 + - col0 * col2 * col2 AS col1 FROM tab2
----
-114059
-5072
-52669

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + col2 * ( + 36 ) col1 FROM tab0
----
102168
268632
3492

onlyif mysql # use DIV operator for integer division
query I rowsort label-3649
SELECT + col2 * col2 DIV - ( - 87 ) AS col2 FROM tab1 AS cor0
----
105
33
37

skipif mysql # not compatible
query I rowsort label-3649
SELECT + col2 * col2 / - ( - 87 ) AS col2 FROM tab1 AS cor0
----
105
33
37

query I rowsort
SELECT DISTINCT cor0.col0 + - cor0.col2 FROM tab0, tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT ALL - col2 * + col2 AS col2 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT ALL - 23 + col1 FROM tab0 AS cor0
----
63
68
74

query I rowsort
SELECT - col1 * 49 FROM tab1 AS cor0
----
-1274
-490
-637

onlyif mysql # use DIV operator for integer division
query I rowsort label-3654
SELECT DISTINCT + col2 DIV col2 + + 19 AS col2 FROM tab1 AS cor0
----
20

skipif mysql # not compatible
query I rowsort label-3654
SELECT DISTINCT + col2 / col2 + + 19 AS col2 FROM tab1 AS cor0
----
20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + 82 * + col1 * col2 col1 FROM tab1 AS cor0
----
102432
115182
46797

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + 17 col2 FROM tab2 AS cor0
----
24
95
96

query I rowsort
SELECT + + cor0.col0 AS col2 FROM tab1 cor0
----
3
64
80

query I rowsort
SELECT ALL cor0.col0 + ( + 82 ) AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 37fa0c734c12f56ca6adfdfa5c2072e0

query I rowsort
SELECT col2 + + ( 2 ) * cor0.col1 AS col2 FROM tab0 AS cor0
----
195
205
264

query I rowsort
SELECT DISTINCT - cor0.col1 + 88 * col0 FROM tab0 AS cor0
----
2026
2983
7741

query I rowsort
SELECT ALL + col0 + + col1 * + col0 FROM tab1 AS cor0
----
1120
704
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-3662
SELECT ALL + 80 DIV - col2 - + col0 AS col0 FROM tab0 cor0
----
-115
-26
-89

skipif mysql # not compatible
query I rowsort label-3662
SELECT ALL + 80 / - col2 - + col0 AS col0 FROM tab0 cor0
----
-115
-26
-89

query I rowsort
SELECT DISTINCT - ( + col1 ) * col1 + 15 * col2 AS col2 FROM tab2 AS cor0
----
-3091
-556
281

query I rowsort
SELECT - 90 * col0 AS col0 FROM tab0 AS cor0
----
-2160
-3150
-8010

query I rowsort
SELECT ALL ( + cor0.col1 ) * col1 - 12 FROM tab2 AS cor0
----
277
3469
949

query I rowsort
SELECT ALL 98 + ( - cor0.col2 ) - 29 * + col0 FROM tab0 AS cor0
----
-2565
-631
-918

query I rowsort
SELECT ALL - - 25 * 96 + - col2 * 13 - + col2 AS col2 FROM tab2 AS cor0
----
1868
2022
2036

query I rowsort
SELECT col2 * - col0 + + col1 AS col1 FROM tab0 AS cor0
----
-706
-7207
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-3669
SELECT col0 + + col1 DIV col2 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-3669
SELECT col0 + + col1 / col2 FROM tab1 AS cor0
----
3
64
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-3670
SELECT DISTINCT col1 + col0 DIV tab0.col1 FROM tab0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-3670
SELECT DISTINCT col1 + col0 / tab0.col1 FROM tab0
----
86
91
97

query I rowsort
SELECT DISTINCT + - ( 59 ) + col1 AS col1 FROM tab2 AS cor0
----
-28
-42
0

query I rowsort
SELECT ALL 86 + - ( + col1 ) AS col2 FROM tab2 AS cor0
----
27
55
69

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3673
SELECT DISTINCT + CAST( NULL AS SIGNED ) * col0 * col0 col2 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3673
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * col0 * col0 col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + + 31 * 87 + col0 FROM tab2 AS cor0
----
2704
2775
2776

query I rowsort
SELECT - ( - 44 ) AS col2 FROM tab2 AS cor0
----
44
44
44

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3676
SELECT + 39 * col0 + col1 * - CAST( col2 AS SIGNED ) + - col0 FROM tab0 AS cor0
----
-1926
-4080
1233

skipif mysql # not compatible
query I rowsort label-3676
SELECT + 39 * col0 + col1 * - CAST ( col2 AS INTEGER ) + - col0 FROM tab0 AS cor0
----
-1926
-4080
1233

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 59 col1 FROM tab0 AS cor0
----
59
59
59

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 - cor0.col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75

query I rowsort
SELECT DISTINCT + ( col1 ) AS col0 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT 75 * + col0 FROM tab1 AS cor0
----
225
4800
6000

query I rowsort
SELECT + 55 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

query I rowsort
SELECT ALL + col0 * - 62 AS col1 FROM tab0
----
-1488
-2170
-5518

query I rowsort
SELECT + 64 FROM tab0, tab0 AS cor0
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e

query I rowsort
SELECT DISTINCT - 83 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
-83

onlyif mysql # use DIV operator for integer division
query I rowsort label-3686
SELECT DISTINCT + tab1.col1 DIV - tab1.col1 AS col2 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-3686
SELECT DISTINCT + tab1.col1 / - tab1.col1 AS col2 FROM tab1
----
-1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3687
SELECT DISTINCT - col0 * - CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3687
SELECT DISTINCT - col0 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 85 col1 FROM tab2
----
85
85
85

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3689
SELECT - CAST( NULL AS DECIMAL ) * + ( + col2 ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3689
SELECT - CAST ( NULL AS REAL ) * + ( + col2 ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - ( 10 ) + + col2 FROM tab2
----
16
17
28

query I rowsort
SELECT - col2 * + ( + col1 ) * + 89 FROM tab2 AS cor0
----
-136526
-57494
-74493

query I rowsort
SELECT 84 * cor0.col2 AS col1 FROM tab0 cor0
----
2772
6888
84

onlyif mysql # use DIV operator for integer division
query I rowsort label-3693
SELECT ALL + col2 DIV tab0.col1 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3693
SELECT ALL + col2 / tab0.col1 AS col2 FROM tab0
----
0
0
0

query I rowsort
SELECT - 92 * col0 AS col2 FROM tab2
----
-644
-7176
-7268

query I rowsort
SELECT ALL ( 37 ) * - cor1.col0 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 18e1c16f34b065c346c709036657e3c1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 * + cor0.col0 + col0 col1 FROM tab1 AS cor0
----
-159
-3584
-7600

query I rowsort
SELECT ALL + + 85 AS col2 FROM tab0 AS cor0
----
85
85
85

onlyif mysql # use DIV operator for integer division
query I rowsort label-3698
SELECT + col2 + - col2 DIV + cor0.col0 FROM tab2 AS cor0
----
24
26
38

skipif mysql # not compatible
query I rowsort label-3698
SELECT + col2 + - col2 / + cor0.col0 FROM tab2 AS cor0
----
24
26
38

query I rowsort
SELECT + col0 + col2 * + col1 * col1 FROM tab0 AS cor0
----
244092
679131
9444

query I rowsort
SELECT - col0 + col1 * col2 FROM tab1 cor0
----
1168
1401
506

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3701
SELECT cor0.col0 * col1 + - CAST( + col2 AS SIGNED ) FROM tab1 AS cor0
----
24
583
944

skipif mysql # not compatible
query I rowsort label-3701
SELECT cor0.col0 * col1 + - CAST ( + col2 AS INTEGER ) FROM tab1 AS cor0
----
24
583
944

onlyif mysql # use DIV operator for integer division
query I rowsort label-3702
SELECT DISTINCT col2 * col0 + 33 DIV + col0 FROM tab2 AS cor0
----
193
2028
3002

skipif mysql # not compatible
query I rowsort label-3702
SELECT DISTINCT col2 * col0 + 33 / + col0 FROM tab2 AS cor0
----
193
2028
3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-3703
SELECT + 3 DIV - 59 FROM tab0, tab2 cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-3703
SELECT + 3 / - 59 FROM tab0, tab2 cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT ALL - tab2.col1 + 79 FROM tab2
----
20
48
62

query I rowsort
SELECT col1 * 64 FROM tab1 AS cor0
----
1664
640
832

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col0 col0 FROM tab1, tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT col2 + 14 + ( + tab1.col1 ) FROM tab1
----
123
81
94

query I rowsort
SELECT - col0 * cor0.col1 + - col2 FROM tab0 AS cor0
----
-2097
-3396
-8181

query I rowsort
SELECT DISTINCT 53 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
53

query I rowsort
SELECT - col1 + - 73 AS col0 FROM tab0
----
-159
-164
-170

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3711
SELECT - + cor0.col0 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3711
SELECT - + cor0.col0 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + cor0.col2 * + col0 + - 44 + col0 AS col2 FROM tab0 AS cor0
----
26
7343
772

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3713
SELECT + col0 + CAST( 89 AS SIGNED ) FROM tab0 AS cor0
----
113
124
178

skipif mysql # not compatible
query I rowsort label-3713
SELECT + col0 + CAST ( 89 AS INTEGER ) FROM tab0 AS cor0
----
113
124
178

query I rowsort
SELECT DISTINCT + col0 * col2 * col1 + col1 AS col2 FROM tab2 AS cor0
----
119711
51051
5890

query I rowsort
SELECT - col0 * - col2 + cor0.col1 FROM tab1 AS cor0
----
188
3658
7693

onlyif mysql # use DIV operator for integer division
query I rowsort label-3716
SELECT col1 DIV col2 + col0 DIV + cor0.col2 AS col1 FROM tab1 cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3716
SELECT col1 / col2 + col0 / + cor0.col2 AS col1 FROM tab1 cor0
----
0
0
1

query I rowsort
SELECT DISTINCT col0 + - cor0.col2 AS col1 FROM tab0 AS cor0
----
-9
34
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-3718
SELECT + + col2 DIV col2 + + col1 FROM tab1 AS cor0
----
11
14
27

skipif mysql # not compatible
query I rowsort label-3718
SELECT + + col2 / col2 + + col1 FROM tab1 AS cor0
----
11
14
27

query I rowsort
SELECT col1 + + ( col1 + col1 ) * col0 FROM tab0 AS cor0
----
16289
4214
6887

query I rowsort
SELECT + - col2 * - col0 + 94 FROM tab1 AS cor0
----
256
3742
7774

query I rowsort
SELECT ALL col0 + + 49 * col1 FROM tab0 cor0
----
4238
4548
4788

query I rowsort
SELECT - col1 + col2 * col0 AS col2 FROM tab2 AS cor0
----
158
1969
2985

query I rowsort
SELECT ALL + 76 AS col0 FROM tab1 AS cor0
----
76
76
76

query I rowsort
SELECT DISTINCT - ( - col0 ) * col2 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT 80 * + ( col2 ) FROM tab1 AS cor0
----
4320
4560
7680

query I rowsort
SELECT + - 54 * - 64 FROM tab1 AS cor0
----
3456
3456
3456

query I rowsort
SELECT DISTINCT + - col2 * + 86 FROM tab0 AS cor0
----
-2838
-7052
-86

query I rowsort
SELECT col1 * - 80 - col0 AS col0 FROM tab1
----
-1120
-2083
-864

query I rowsort
SELECT - col1 * 32 * ( col2 * ( - ( col0 ) ) ) AS col0 FROM tab1
----
1167360
134784
3194880

onlyif mysql # use DIV operator for integer division
query I rowsort label-3730
SELECT ALL + col1 DIV - col1 + + col1 * + 64 AS col0 FROM tab2 cor0
----
1087
1983
3775

skipif mysql # not compatible
query I rowsort label-3730
SELECT ALL + col1 / - col1 + + col1 * + 64 AS col0 FROM tab2 cor0
----
1087
1983
3775

query I rowsort
SELECT - 89 - + cor0.col0 AS col1 FROM tab0 AS cor0
----
-113
-124
-178

query I rowsort
SELECT col0 - - col2 AS col1 FROM tab2 cor0
----
104
117
34

query I rowsort
SELECT + col1 + - cor0.col2 * - 65 AS col2 FROM tab0 AS cor0
----
162
2231
5421

query I rowsort
SELECT 13 AS col2 FROM tab0
----
13
13
13

query I rowsort
SELECT DISTINCT + 77 + - col1 * col2 FROM tab1 AS cor0
----
-1171
-1327
-493

query I rowsort
SELECT + + col1 - + cor0.col2 * + 49 FROM tab0 AS cor0
----
-1531
-3927
48

query I rowsort
SELECT col1 * + tab0.col1 * - 14 FROM tab0
----
-103544
-115934
-131726

onlyif mysql # use DIV operator for integer division
query I rowsort label-3738
SELECT ALL + col0 * - col2 + - col1 DIV col2 AS col0 FROM tab1 AS cor0
----
-162
-3648
-7680

skipif mysql # not compatible
query I rowsort label-3738
SELECT ALL + col0 * - col2 + - col1 / col2 AS col0 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT col0 + col2 * col0 AS col1 FROM tab0 AS cor0
----
70
7387
816

query I rowsort
SELECT ALL + + col1 * - 37 * 77 AS col2 FROM tab1 AS cor0
----
-28490
-37037
-74074

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3741
SELECT ALL - col2 + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3741
SELECT ALL - col2 + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3742
SELECT 22 * col2 DIV - ( col1 ) - - tab2.col1 AS col0 FROM tab2
----
-32
12
50

skipif mysql # not compatible
query I rowsort label-3742
SELECT 22 * col2 / - ( col1 ) - - tab2.col1 AS col0 FROM tab2
----
-32
12
50

onlyif mysql # use DIV operator for integer division
query I rowsort label-3743
SELECT + 50 DIV + col1 AS col0 FROM tab1
----
1
3
5

skipif mysql # not compatible
query I rowsort label-3743
SELECT + 50 / + col1 AS col0 FROM tab1
----
1
3
5

query I rowsort
SELECT DISTINCT - col2 * - col1 AS col1 FROM tab2
----
1534
646
837

query I rowsort
SELECT DISTINCT + ( tab2.col0 ) * col0 - + 0 * tab2.col2 FROM tab2
----
49
6084
6241

query I rowsort
SELECT ALL + col1 * + col1 AS col1 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT ALL + 74 * + col2 FROM tab2 AS cor0
----
1924
1998
2812

onlyif mysql # use DIV operator for integer division
query I rowsort label-3748
SELECT DISTINCT 98 DIV - col2 AS col2 FROM tab0 AS cor0
----
-1
-2
-98

skipif mysql # not compatible
query I rowsort label-3748
SELECT DISTINCT 98 / - col2 AS col2 FROM tab0 AS cor0
----
-1
-2
-98

onlyif mysql # use DIV operator for integer division
query I rowsort label-3749
SELECT ALL - + 61 * col1 DIV - 73 + - col2 AS col1 FROM tab1 AS cor0
----
-33
-49
-86

skipif mysql # not compatible
query I rowsort label-3749
SELECT ALL - + 61 * col1 / - 73 + - col2 AS col1 FROM tab1 AS cor0
----
-33
-49
-86

query I rowsort
SELECT DISTINCT - - 2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
2

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - col0 - - col0 * - CAST ( + 53 AS REAL ) AS col1 FROM tab2 AS cor0
----
-378
-4212
-4266

query I rowsort
SELECT DISTINCT + ( col1 ) * - cor0.col1 - - col1 AS col0 FROM tab1 cor0
----
-156
-650
-90

query I rowsort
SELECT DISTINCT ( + col0 ) * - ( + col2 ) + col2 FROM tab1 AS cor0
----
-108
-3591
-7584

query I rowsort
SELECT DISTINCT - cor0.col1 + col2 * - col1 FROM tab0 AS cor0
----
-194
-2924
-7553

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3755
SELECT ALL 68 + col0 * CAST( - 2 AS SIGNED ) FROM tab2 AS cor0
----
-88
-90
54

skipif mysql # not compatible
query I rowsort label-3755
SELECT ALL 68 + col0 * CAST ( - 2 AS INTEGER ) FROM tab2 AS cor0
----
-88
-90
54

query I rowsort
SELECT DISTINCT ( + col0 ) * + 34 - - col1 AS col2 FROM tab2 AS cor0
----
269
2703
2711

query I rowsort
SELECT ALL + col1 + col0 * + col2 AS col1 FROM tab1 AS cor0
----
188
3658
7693

query I rowsort
SELECT DISTINCT cor0.col2 * - col0 FROM tab1 cor0
----
-162
-3648
-7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col1 col1 FROM tab2 AS cor0
----
1343
217
4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-3760
SELECT ALL + cor0.col0 DIV col0 AS col1 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3760
SELECT ALL + cor0.col0 / col0 AS col1 FROM tab1 AS cor0
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-3761
SELECT - col1 * cor0.col2 DIV 84 FROM tab1 cor0
----
-14
-16
-6

skipif mysql # not compatible
query I rowsort label-3761
SELECT - col1 * cor0.col2 / 84 FROM tab1 cor0
----
-14
-16
-6

query I rowsort
SELECT ALL - 89 AS col0 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to c36e597b7bc5727536f5bb580e6cebbc

query I rowsort
SELECT ALL cor1.col1 AS col0 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT + col0 - cor0.col1 AS col1 FROM tab1 cor0
----
-23
54
67

query I rowsort
SELECT - col1 + - col0 - ( - col2 ) FROM tab2 AS cor0
----
-11
-111
-58

onlyif mysql # use DIV operator for integer division
query I rowsort label-3766
SELECT DISTINCT + 54 DIV col1 + col1 FROM tab1 AS cor0
----
15
17
28

skipif mysql # not compatible
query I rowsort label-3766
SELECT DISTINCT + 54 / col1 + col1 FROM tab1 AS cor0
----
15
17
28

query I rowsort
SELECT DISTINCT - ( - col1 ) + col2 AS col1 FROM tab0 AS cor0
----
119
173
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-3768
SELECT DISTINCT - col1 + col0 DIV col2 AS col1 FROM tab1 AS cor0
----
-13
-26
-9

skipif mysql # not compatible
query I rowsort label-3768
SELECT DISTINCT - col1 + col0 / col2 AS col1 FROM tab1 AS cor0
----
-13
-26
-9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3769
SELECT + - ( - cor0.col0 ) * col1 + + CAST( col2 AS SIGNED ) FROM tab0 AS cor0
----
2097
3396
8181

skipif mysql # not compatible
query I rowsort label-3769
SELECT + - ( - cor0.col0 ) * col1 + + CAST ( col2 AS INTEGER ) FROM tab0 AS cor0
----
2097
3396
8181

query I rowsort
SELECT ALL - + 34 FROM tab0 AS cor0
----
-34
-34
-34

query I rowsort
SELECT DISTINCT cor1.col2 * + 21 FROM tab0, tab1 cor0, tab0 cor1
----
1722
21
693

query I rowsort
SELECT ALL + col0 + 54 * + col0 FROM tab1 AS cor0
----
165
3520
4400

query I rowsort
SELECT DISTINCT - + cor1.col1 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-17
-31
-59

query I rowsort
SELECT 2 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to 6d1be3904d6870ba21bc766b979d1110

query I rowsort
SELECT ALL - ( - 79 * cor0.col0 ) AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 7a028ad0a2574b09f328e73d8d8b5b7c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 49 + col0 col1 FROM tab0 AS cor0
----
-14
-25
40

query I rowsort
SELECT - + 99 * col0 FROM tab2 AS cor0
----
-693
-7722
-7821

query I rowsort
SELECT DISTINCT + + col1 * col0 + - cor0.col2 AS col1 FROM tab1 AS cor0
----
24
583
944

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3779
SELECT DISTINCT - CAST( col1 AS SIGNED ) FROM tab1
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-3779
SELECT DISTINCT - CAST ( col1 AS INTEGER ) FROM tab1
----
-10
-13
-26

query I rowsort
SELECT + ( col1 ) + col1 FROM tab0
----
172
182
194

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab2.col1 col0 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
17
31
59

query I rowsort
SELECT DISTINCT + 30 * - col2 AS col0 FROM tab2 AS cor0
----
-1140
-780
-810

query I rowsort
SELECT col1 * - col2 + - col0 FROM tab0 cor0
----
-132
-2862
-7551

query I rowsort
SELECT 22 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

query I rowsort
SELECT ALL col0 * + tab0.col1 AS col2 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT ALL cor0.col2 AS col2 FROM tab0 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

query I rowsort
SELECT DISTINCT - 93 * col0 AS col2 FROM tab0
----
-2232
-3255
-8277

query I rowsort
SELECT + 54 FROM tab2, tab0 cor0, tab2 cor1
----
27 values hashing to 81150d59d6c3fc48b4ef5a4a5495bc7a

query I rowsort
SELECT DISTINCT cor0.col1 + + cor0.col0 FROM tab2, tab2 AS cor0
----
137
38
96

query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab0 cor0, tab2 AS cor1, tab0 cor2
----
972 values hashing to 380241bbc503a31e70494611a87ffd99

query I rowsort
SELECT DISTINCT + 27 AS col1 FROM tab2
----
27

query I rowsort
SELECT 59 AS col0 FROM tab2 AS cor0
----
59
59
59

query I rowsort
SELECT + 20 * cor0.col2 AS col1 FROM tab2 AS cor0
----
520
540
760

query I rowsort
SELECT DISTINCT - 50 AS col2 FROM tab1, tab0 AS cor0
----
-50

onlyif mysql # use DIV operator for integer division
query I rowsort label-3795
SELECT ALL col1 + + ( - 58 ) DIV tab0.col0 + 88 col1 FROM tab0
----
172
179
184

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3795
SELECT ALL col1 + + ( - 58 ) / tab0.col0 + 88 col1 FROM tab0
----
172
179
184

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - 25 col1 FROM tab0
----
-2150
-2275
-2425

query I rowsort
SELECT DISTINCT col2 * + col1 + + col2 AS col1 FROM tab2
----
1560
684
864

query I rowsort
SELECT 55 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

query I rowsort
SELECT - - cor0.col2 * col1 + col0 AS col0 FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT ALL + col2 * 21 + + 77 FROM tab2 AS cor0
----
623
644
875

query I rowsort
SELECT ALL + - col2 + 14 * + col2 FROM tab1 AS cor0
----
1248
702
741

query I rowsort
SELECT - col0 * + col0 + + col0 * col1 AS col0 FROM tab1 AS cor0
----
-3456
-5360
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 16 + - 47 col1 FROM tab0 AS cor0
----
-63

query I rowsort
SELECT + - 67 + - col0 FROM tab2 AS cor0
----
-145
-146
-74

query I rowsort
SELECT - + ( + col1 ) + col1 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3806
SELECT col2 DIV ( col0 * 42 ) FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3806
SELECT col2 / ( col0 * 42 ) FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + 91 * + col2 * - col0 + cor0.col0 FROM tab0 AS cor0
----
-3150
-664029
-72048

onlyif mysql # use DIV operator for integer division
query I rowsort label-3808
SELECT - CAST( col1 AS SIGNED ) + + col0 DIV 35 AS col1 FROM tab2 AS cor0
----
-15
-31
-57

skipif mysql # not compatible
query I rowsort label-3808
SELECT - CAST ( col1 AS INTEGER ) + + col0 / 35 AS col1 FROM tab2 AS cor0
----
-15
-31
-57

onlyif mysql # use DIV operator for integer division
query I rowsort label-3809
SELECT + + 74 * col1 + col0 - + col2 DIV - 25 AS col0 FROM tab0 AS cor0
----
6389
6826
7213

skipif mysql # not compatible
query I rowsort label-3809
SELECT + + 74 * col1 + col0 - + col2 / - 25 AS col0 FROM tab0 AS cor0
----
6389
6826
7213

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3810
SELECT - ( - col2 ) * col0 + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3810
SELECT - ( - col2 ) * col0 + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE NULL = ( - col2 * - col0 )
----

query I rowsort
SELECT - col2 + col1 + col1 FROM tab1
----
-2
-37
-70

query I rowsort
SELECT col0 / col2 AS col2 FROM tab0 WHERE col1 + + col1 IN ( col1 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + col0 * - col2 ) >= ( + col2 )
----

query I rowsort
SELECT DISTINCT col1 + + cor0.col1 * + col0 * col0 AS col1 FROM tab1 cor0
----
260
40970
83213

query IIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0 WHERE NULL IN ( + cor0.col0 )
----

query I rowsort
SELECT DISTINCT col0 * + col1 FROM tab2 AS cor0 WHERE NULL > col0
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN - col0 AND NULL
----

query I rowsort
SELECT cor0.col1 * col2 FROM tab1 AS cor0 WHERE NOT ( + col0 / col1 ) > NULL
----

query I rowsort
SELECT ALL + col2 + + tab2.col2 * col1 FROM tab2
----
1560
684
864

query I rowsort
SELECT + col0 + col1 + col2 FROM tab2 WHERE - col1 BETWEEN NULL AND ( + col0 )
----

query I rowsort
SELECT - col1 * - col1 * col1 + col0 AS col2 FROM tab0
----
636080
753660
912708

query I rowsort
SELECT ALL tab2.col0 - - tab2.col2 FROM tab2
----
104
117
34

query I rowsort
SELECT col1 FROM tab2 WHERE NULL = ( NULL )
----

query I rowsort
SELECT col1 FROM tab1 WHERE NULL IN ( - col0 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-3826
SELECT ALL col2 * + col0 - col1 * tab2.col2 DIV - col0 AS col0 FROM tab2
----
2047
3010
308

skipif mysql # not compatible
query I rowsort label-3826
SELECT ALL col2 * + col0 - col1 * tab2.col2 / - col0 AS col0 FROM tab2
----
2047
3010
308

query I rowsort
SELECT DISTINCT - col2 * tab2.col1 + - col2 AS col0 FROM tab2
----
-1560
-684
-864

query I rowsort
SELECT col2 + col0 * - col0 FROM tab1 AS cor0
----
-4039
-6304
45

query I rowsort
SELECT cor0.col2 * - cor0.col0 - cor0.col2 FROM tab2 AS cor0
----
-2054
-216
-3040

query I rowsort
SELECT + col0 + + cor0.col1 FROM tab1 cor0
----
29
74
93

query I rowsort
SELECT col0 + tab1.col0 + + col1 AS col0 FROM tab1
----
138
173
32

query I rowsort
SELECT + col2 * col0 * col0 FROM tab2
----
1323
158184
237158

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2 WHERE NULL > ( NULL )
----

query I rowsort
SELECT + col2 * col0 + + col0 * - col1 + col2 * col2 * - col2 FROM tab1 AS cor0
----
-157380
-182185
-878096

query I rowsort
SELECT DISTINCT - tab2.col2 - - col1 FROM tab2
----
-21
33
4

query I rowsort
SELECT + 8 * - col1 AS col0 FROM tab2
----
-136
-248
-472

query I rowsort
SELECT ALL + col1 - - tab1.col1 FROM tab1
----
20
26
52

query I rowsort
SELECT DISTINCT + - cor0.col2 - + ( col1 ) * cor0.col0 AS col1 FROM tab2 AS cor0
----
-1381
-244
-4628

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - cor0.col2 * ( - col0 ) - - col0 col1 FROM tab0 AS cor0
----
-7209
-768
0

query I rowsort
SELECT - col2 - 71 * col1 * col1 AS col1 FROM tab1 AS cor0
----
-12095
-48050
-7157

query I rowsort
SELECT ALL - - cor0.col0 + col0 * cor0.col0 FROM tab1 AS cor0
----
12
4160
6480

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3842
SELECT + col2 + CAST( NULL AS SIGNED ) * col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3842
SELECT + col2 + CAST ( NULL AS INTEGER ) * col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT tab0.col2 * col2 * - 58 FROM tab0
----
-389992
-58
-63162

query I rowsort
SELECT col2 + + col1 - + 96 FROM tab0
----
2
23
77

onlyif mysql # use DIV operator for integer division
query I rowsort label-3845
SELECT col1 DIV - col0 AS col2 FROM tab2
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-3845
SELECT col1 / - col0 AS col2 FROM tab2
----
-4
0
0

query I rowsort
SELECT DISTINCT + 33 - + tab0.col2 AS col1 FROM tab0
----
-49
0
32

query I rowsort
SELECT + tab0.col1 + - col2 + + ( - tab0.col0 ) * col0 FROM tab0
----
-1129
-523
-7912

query I rowsort
SELECT + tab1.col2 * + tab1.col1 AS col2 FROM tab1
----
1248
1404
570

query I rowsort
SELECT + col0 * col1 * + col0 AS col2 FROM tab0
----
118825
49536
720811

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + col2 + + tab0.col2 + col2 col1 FROM tab0
----
37
7462
858

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + 60 * + col0 - col0 col1 FROM tab2
----
420
4680
4740

query I rowsort
SELECT - - cor0.col2 + - col1 * col0 + - col0 * - ( 65 ) * col0 FROM tab1 AS cor0
----
265657
415056
561

query I rowsort
SELECT col1 + - col2 + - col1 AS col0 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT + + cor0.col0 + col0 * cor0.col2 * - col1 FROM tab0 AS cor0
----
-3360
-664029
-68088

query I rowsort
SELECT + col1 * cor0.col1 - - col2 FROM tab0 AS cor0
----
7429
8363
9410

query I rowsort
SELECT - - cor0.col1 * col0 AS col0 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT col1 + ( col1 ) FROM tab1 AS cor0
----
20
26
52

query I rowsort
SELECT ALL - col2 + - ( - 21 ) FROM tab2 AS cor0
----
-17
-5
-6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3859
SELECT + + col0 + - CAST( NULL AS SIGNED ) + 96 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3859
SELECT + + col0 + - CAST ( NULL AS INTEGER ) + 96 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col1 * + ( - col1 + - col1 ) AS col0 FROM tab2 AS cor0
----
1922
578
6962

query I rowsort
SELECT DISTINCT - col2 * - cor0.col1 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT DISTINCT + col1 + tab0.col0 FROM tab0
----
110
132
180

query I rowsort
SELECT DISTINCT col2 + - col1 * col2 AS col0 FROM tab0
----
-2805
-7380
-96

query I rowsort
SELECT col0 * col1 FROM tab2 WHERE NULL IN ( tab2.col2 )
----

query I rowsort
SELECT col2 + col1 * + col2 AS col0 FROM tab1
----
1344
1458
627

onlyif mysql # use DIV operator for integer division
query I rowsort label-3866
SELECT - col2 DIV - tab0.col0 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3866
SELECT - col2 / - tab0.col0 FROM tab0
----
0
0
1

query I rowsort
SELECT ALL col2 - col1 * + col0 * + col1 FROM tab0
----
-177471
-329314
-736927

query I rowsort
SELECT DISTINCT col0 * col0 + tab1.col0 FROM tab1
----
12
4160
6480

query I rowsort
SELECT + col0 FROM tab2 WHERE NULL IN ( + tab2.col2 )
----

query I rowsort
SELECT - col1 AS col1 FROM tab2 WHERE NOT - col1 / - col2 <> ( NULL )
----

query I rowsort
SELECT ALL + col0 + tab0.col1 * + col0 FROM tab0
----
2088
3430
8188

query I rowsort
SELECT DISTINCT + col1 + tab2.col1 FROM tab2
----
118
34
62

query I rowsort
SELECT - col1 - + tab1.col1 * col2 FROM tab1
----
-1261
-1430
-580

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + + col0 + + col2 col1 FROM tab2 WHERE NULL IN ( col0 * + col1 )
----

query I rowsort
SELECT 44 * cor0.col1 FROM tab0 cor0
----
3784
4004
4268

query I rowsort
SELECT - col0 + col2 * col0 AS col1 FROM tab0 cor0
----
0
7209
768

query I rowsort
SELECT DISTINCT - col2 + - cor0.col2 FROM tab1 cor0
----
-108
-114
-192

query I rowsort
SELECT ALL col1 * + col1 - + tab2.col0 AS col1 FROM tab2
----
210
3403
954

query I rowsort
SELECT - 86 * + cor0.col2 FROM tab2 AS cor0
----
-2236
-2322
-3268

query I rowsort
SELECT DISTINCT + col1 * col2 + col0 FROM tab2 AS cor0
----
1612
725
844

query I rowsort
SELECT DISTINCT - + cor0.col2 * - col1 FROM tab2 cor0
----
1534
646
837

query I rowsort
SELECT DISTINCT - 68 AS col2 FROM tab0, tab0 AS cor0
----
-68

query I rowsort
SELECT ALL - tab1.col1 FROM tab1, tab2 cor0
----
9 values hashing to b234798d4706314ba14eaad539d0aa88

query I rowsort
SELECT ALL col0 * ( + col1 ) + + col1 + + cor0.col1 AS col0 FROM tab0 AS cor0
----
2236
3589
8281

query I rowsort
SELECT - col0 + 93 * + col2 + col0 FROM tab1 AS cor0
----
5022
5301
8928

query I rowsort
SELECT DISTINCT + col1 * col0 AS col1 FROM tab2 cor0
----
1343
217
4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-3887
SELECT + col0 * ( col2 ) + - col1 DIV 2 FROM tab1 cor0
----
149
3643
7674

skipif mysql # not compatible
query I rowsort label-3887
SELECT + col0 * ( col2 ) + - col1 / 2 FROM tab1 cor0
----
149
3643
7674

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + ( - col1 ) col0 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT DISTINCT - 74 AS col1 FROM tab1 AS cor0
----
-74

query I rowsort
SELECT ALL + + cor0.col1 * 20 FROM tab2 AS cor0
----
1180
340
620

query I rowsort
SELECT - + col0 + 16 * col0 FROM tab2 AS cor0
----
105
1170
1185

query I rowsort
SELECT DISTINCT + - col2 * 22 AS col1 FROM tab1 AS cor0
----
-1188
-1254
-2112

onlyif mysql # use DIV operator for integer division
query I rowsort label-3893
SELECT ALL ( col2 ) DIV col0 AS col2 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3893
SELECT ALL ( col2 ) / col0 AS col2 FROM tab0 AS cor0
----
0
0
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3894
SELECT + ( + col2 ) + col0 * CAST( col1 AS SIGNED ) FROM tab0 AS cor0
----
2097
3396
8181

skipif mysql # not compatible
query I rowsort label-3894
SELECT + ( + col2 ) + col0 * CAST ( col1 AS INTEGER ) FROM tab0 AS cor0
----
2097
3396
8181

query I rowsort
SELECT DISTINCT + 29 AS col1 FROM tab0, tab0 cor0
----
29

query I rowsort
SELECT ALL - ( col0 ) AS col1 FROM tab2 AS cor0
----
-7
-78
-79

onlyif mysql # use DIV operator for integer division
query I rowsort label-3897
SELECT cor0.col1 DIV col1 AS col0 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3897
SELECT cor0.col1 / col1 AS col0 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT + 37 * + 12 FROM tab1 AS cor0
----
444
444
444

query I rowsort
SELECT DISTINCT - - cor0.col0 - + col2 FROM tab1 cor0
----
-16
-51
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 * col0 + col2 col0 FROM tab0 AS cor0
----
2097
3396
8181

query I rowsort
SELECT ALL cor0.col2 * 74 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to d7efb2e82d6773b176f2308875ba5b65

query I rowsort
SELECT + - 25 + col0 * 93 FROM tab0 AS cor0
----
2207
3230
8252

query I rowsort
SELECT DISTINCT - 76 * - col1 + - 99 FROM tab1
----
1877
661
889

query I rowsort
SELECT ALL + ( col0 ) * + ( - col2 ) AS col1 FROM tab2 AS cor0
----
-189
-2028
-3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-3905
SELECT ALL - ( - col0 ) DIV - CAST( col2 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-1
-35
0

skipif mysql # not compatible
query I rowsort label-3905
SELECT ALL - ( - col0 ) / - CAST ( col2 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-1
-35
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3906
SELECT ALL + - col2 + + cor0.col2 DIV cor0.col2 AS col1 FROM tab1 AS cor0
----
-53
-56
-95

skipif mysql # not compatible
query I rowsort label-3906
SELECT ALL + - col2 + + cor0.col2 / cor0.col2 AS col1 FROM tab1 AS cor0
----
-53
-56
-95

query I rowsort
SELECT DISTINCT - 76 - - cor0.col1 AS col1 FROM tab1 cor0
----
-50
-63
-66

onlyif mysql # use DIV operator for integer division
query I rowsort label-3908
SELECT - - col0 DIV col0 - + cor0.col0 DIV - col0 AS col2 FROM tab1 AS cor0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-3908
SELECT - - col0 / col0 - + cor0.col0 / - col0 AS col2 FROM tab1 AS cor0
----
2
2
2

query I rowsort
SELECT ALL - cor0.col1 - - col1 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - col0 + 18 FROM tab1 cor0
----
-46
-62
15

query I rowsort
SELECT DISTINCT + + col0 * 33 + col1 FROM tab2 cor0
----
262
2624
2633

query I rowsort
SELECT DISTINCT - - cor0.col2 * - 46 FROM tab2 AS cor0
----
-1196
-1242
-1748

query I rowsort
SELECT + col0 + + ( col2 ) AS col0 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT DISTINCT - 57 * + 52 + - tab2.col1 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
-2981
-2995
-3023

query I rowsort
SELECT - + col2 + + col0 * col0 AS col2 FROM tab0 AS cor0
----
1224
543
7839

query I rowsort
SELECT ALL + col2 * 15 + - ( + cor0.col2 * col1 ) AS col2 FROM tab0 AS cor0
----
-2343
-6232
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * col0 col0 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT - col0 * ( 79 + col2 ) AS col0 FROM tab0 AS cor0
----
-14329
-2688
-2800

query I rowsort
SELECT ALL + 70 + col0 AS col0 FROM tab1
----
134
150
73

query I rowsort
SELECT DISTINCT + col0 * col1 * ( col0 ) + col0 AS col2 FROM tab0
----
118860
49560
720900

query I rowsort
SELECT - + col0 + + col0 * - 16 AS col2 FROM tab1 AS cor0
----
-1088
-1360
-51

onlyif mysql # use DIV operator for integer division
query I rowsort label-3922
SELECT DISTINCT col2 + - col1 * + col1 + cor0.col2 DIV ( - 78 * + cor0.col0 ) FROM tab0 cor0
----
-7363
-8199
-9408

skipif mysql # not compatible
query I rowsort label-3922
SELECT DISTINCT col2 + - col1 * + col1 + cor0.col2 / ( - 78 * + cor0.col0 ) FROM tab0 cor0
----
-7363
-8199
-9408

query I rowsort
SELECT DISTINCT + col1 * - col0 + - col2 FROM tab1 AS cor0
----
-1136
-132
-697

query I rowsort
SELECT col0 - + cor0.col0 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT 3 FROM tab2, tab0 AS cor0
----
3

query I rowsort
SELECT + + cor0.col0 + ( - 43 ) AS col0 FROM tab0 AS cor0
----
-19
-8
46

query I rowsort
SELECT + 47 * col2 * - col2 AS col1 FROM tab2 AS cor0
----
-31772
-34263
-67868

query I rowsort
SELECT - 30 + + tab2.col0 AS col2 FROM tab2
----
-23
48
49

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3929
SELECT + CAST( NULL AS SIGNED ) * tab2.col2 + col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3929
SELECT + CAST ( NULL AS INTEGER ) * tab2.col2 + col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT tab0.col1 + 32 FROM tab0
----
118
123
129

query I rowsort
SELECT DISTINCT + cor1.col2 + 93 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
147
150
189

query I rowsort
SELECT + 54 FROM tab2
----
54
54
54

query I rowsort
SELECT 20 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

query I rowsort
SELECT ( tab2.col1 ) AS col0 FROM tab2
----
17
31
59

query I rowsort
SELECT col2 * + tab2.col1 + + col1 AS col2 FROM tab2
----
1593
663
868

query I rowsort
SELECT DISTINCT + col1 + col0 * - col2 * col2 FROM tab1
----
-207926
-737267
-8722

onlyif mysql # use DIV operator for integer division
query I rowsort label-3937
SELECT + 43 DIV col1 + 35 + ( cor0.col0 ) AS col2 FROM tab0 cor0
----
124
59
70

skipif mysql # not compatible
query I rowsort label-3937
SELECT + 43 / col1 + 35 + ( cor0.col0 ) AS col2 FROM tab0 cor0
----
124
59
70

query I rowsort
SELECT - + cor0.col2 * + col2 - - 99 FROM tab1 AS cor0
----
-2817
-3150
-9117

onlyif mysql # use DIV operator for integer division
query I rowsort label-3939
SELECT DISTINCT - col2 DIV col1 FROM tab1 cor0
----
-2
-5
-7

skipif mysql # not compatible
query I rowsort label-3939
SELECT DISTINCT - col2 / col1 FROM tab1 cor0
----
-2
-5
-7

query I rowsort
SELECT - - cor0.col1 - col1 AS col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3941
SELECT + col1 DIV - col2 AS col2 FROM tab0
----
-1
-2
-97

skipif mysql # not compatible
query I rowsort label-3941
SELECT + col1 / - col2 AS col2 FROM tab0
----
-1
-2
-97

query I rowsort
SELECT DISTINCT - + 94 AS col0 FROM tab0 AS cor0
----
-94

query I rowsort
SELECT 90 + - col1 AS col1 FROM tab2 AS cor0
----
31
59
73

query I rowsort
SELECT ALL col1 + cor0.col2 * + ( 92 ) AS col2 FROM tab1 AS cor0
----
4994
5254
8845

query I rowsort
SELECT 38 * tab1.col2 * col2 + col2 FROM tab1
----
110862
123519
350304

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3946
SELECT CAST( + 20 + - col1 AS SIGNED ) FROM tab2
----
-11
-39
3

skipif mysql # not compatible
query I rowsort label-3946
SELECT CAST ( + 20 + - col1 AS INTEGER ) FROM tab2
----
-11
-39
3

query I rowsort
SELECT DISTINCT + ( tab1.col0 ) * col2 FROM tab1
----
162
3648
7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-3948
SELECT DISTINCT + col1 DIV - 31 FROM tab0
----
-2
-3

skipif mysql # not compatible
query I rowsort label-3948
SELECT DISTINCT + col1 / - 31 FROM tab0
----
-2
-3

query I rowsort
SELECT - col1 + - ( + col2 ) AS col1 FROM tab2 AS cor0
----
-55
-58
-85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 col1 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2

query I rowsort
SELECT - 95 * - col0 FROM tab2 AS cor0
----
665
7410
7505

query I rowsort
SELECT 44 + col0 AS col0 FROM tab1 AS cor0
----
108
124
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - col2 * - ( col1 * col0 ) col1 FROM tab2 AS cor0
----
4031686
41013
9332856

query I rowsort
SELECT + col1 + col2 * col2 FROM tab1 AS cor0
----
2942
3259
9229

query I rowsort
SELECT col2 + col2 * 36 FROM tab0 AS cor0
----
1221
3034
37

query I rowsort
SELECT - - col2 * col2 + ( cor0.col2 * col0 ) FROM tab2 AS cor0
----
2704
4446
918

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 3 col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba

query I rowsort
SELECT 57 * tab2.col0 AS col1 FROM tab2
----
399
4446
4503

query I rowsort
SELECT DISTINCT - ( col2 ) * + col1 FROM tab1
----
-1248
-1404
-570

query I rowsort
SELECT - col1 * + col2 + col2 FROM tab1 AS cor0
----
-1152
-1350
-513

query I rowsort
SELECT ALL + - col0 + - cor0.col0 * col1 * + col2 FROM tab1 AS cor0
----
-36544
-4215
-99920

onlyif mysql # use DIV operator for integer division
query I rowsort label-3962
SELECT 57 DIV col1 + cor0.col2 col2 FROM tab2 AS cor0
----
26
28
41

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3962
SELECT 57 / col1 + cor0.col2 col2 FROM tab2 AS cor0
----
26
28
41

onlyif mysql # use DIV operator for integer division
query I rowsort label-3963
SELECT DISTINCT + col2 DIV col0 AS col1 FROM tab2 AS cor0
----
0
3

skipif mysql # not compatible
query I rowsort label-3963
SELECT DISTINCT + col2 / col0 AS col1 FROM tab2 AS cor0
----
0
3

onlyif mysql # use DIV operator for integer division
query I rowsort label-3964
SELECT ALL + - col2 * - col1 + ( + 91 + col2 ) DIV 10 FROM tab2 AS cor0
----
1545
658
848

skipif mysql # not compatible
query I rowsort label-3964
SELECT ALL + - col2 * - col1 + ( + 91 + col2 ) / 10 FROM tab2 AS cor0
----
1545
658
848

query I rowsort
SELECT - cor1.col1 AS col1 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6

query I rowsort
SELECT - col2 + - col0 * + col2 FROM tab1 AS cor0
----
-216
-3705
-7776

onlyif mysql # use DIV operator for integer division
query I rowsort label-3967
SELECT + + CAST( cor0.col2 AS SIGNED ) * col1 * col2 + - col2 - col0 DIV col2 FROM tab1 AS cor0
----
119712
32432
75762

skipif mysql # not compatible
query I rowsort label-3967
SELECT + + CAST ( cor0.col2 AS INTEGER ) * col1 * col2 + - col2 - col0 / col2 FROM tab1 AS cor0
----
119712
32432
75762

query I rowsort
SELECT DISTINCT + + ( + 68 ) AS col2 FROM tab1 AS cor0
----
68

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3969
SELECT ALL - CAST( NULL AS SIGNED ) - - ( cor0.col1 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3969
SELECT ALL - CAST ( NULL AS INTEGER ) - - ( cor0.col1 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 * - 66 AS col0 FROM tab2 AS cor0
----
-1716
-1782
-2508

query I rowsort
SELECT DISTINCT + - col0 * col1 + col0 - cor0.col1 AS col1 FROM tab0 AS cor0
----
-2126
-3457
-8101

query I rowsort
SELECT 76 * + col1 FROM tab1 AS cor0
----
1976
760
988

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3973
SELECT ALL + col2 * 36 * col2 + - CAST( - col2 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
242146
37
39237

skipif mysql # not compatible
query I rowsort label-3973
SELECT ALL + col2 * 36 * col2 + - CAST ( - col2 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
242146
37
39237

query I rowsort
SELECT - ( 15 ) * col0 FROM tab0 AS cor0
----
-1335
-360
-525

query I rowsort
SELECT DISTINCT - 97 AS col0 FROM tab2 AS cor0
----
-97

query I rowsort
SELECT DISTINCT - 80 * col2 + col2 FROM tab1 AS cor0
----
-4266
-4503
-7584

onlyif mysql # use DIV operator for integer division
query I rowsort label-3977
SELECT ALL col1 DIV + ( + col1 ) + + col2 - + col0 AS col2 FROM tab2 AS cor0
----
-40
-51
21

skipif mysql # not compatible
query I rowsort label-3977
SELECT ALL col1 / + ( + col1 ) + + col2 - + col0 AS col2 FROM tab2 AS cor0
----
-40
-51
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 1 col2 FROM tab2 cor0
----
1
1
1

query I rowsort
SELECT ALL col1 + 70 FROM tab1 AS cor0
----
80
83
96

query I rowsort
SELECT ALL - col0 * - col1 * col0 AS col2 FROM tab0
----
118825
49536
720811

query I rowsort
SELECT col1 * 66 - + ( + col2 ) FROM tab2
----
1084
2019
3868

query I rowsort
SELECT + col0 - - col1 FROM tab0
----
110
132
180

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - tab2.col2 * col2 col0 FROM tab2
----
17576
19683
54872

query I rowsort
SELECT DISTINCT col0 + 31 FROM tab0 AS cor0
----
120
55
66

query I rowsort
SELECT ALL 79 * - col0 + - col0 FROM tab0 AS cor0
----
-1920
-2800
-7120

query I rowsort
SELECT + + 51 * + 20 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b2e15cc125eaf899b5235b6181b6a871

query I rowsort
SELECT - cor0.col2 * - 88 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to ab5619610da4d20b9373a629516ff9d8

query I rowsort
SELECT + + 35 * + cor0.col2 FROM tab0 AS cor0
----
1155
2870
35

query I rowsort
SELECT DISTINCT + tab1.col1 + col0 * tab1.col2 * col1 FROM tab1
----
36490
4238
99853

query I rowsort
SELECT + col1 * 1 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT DISTINCT col2 * col2 * col1 FROM tab1
----
119808
32490
75816

query I rowsort
SELECT ALL - tab1.col0 * 55 AS col1 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 122be9eebe35537654f8117646171661

query I rowsort
SELECT + col0 + col0 * - 20 FROM tab2
----
-133
-1482
-1501

query I rowsort
SELECT DISTINCT col2 * - 28 FROM tab0 AS cor0
----
-2296
-28
-924

query I rowsort
SELECT col2 * - 46 AS col1 FROM tab1 cor0
----
-2484
-2622
-4416

onlyif mysql # use DIV operator for integer division
query I rowsort label-3996
SELECT ALL + col2 DIV - 54 AS col2 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3996
SELECT ALL + col2 / - 54 AS col2 FROM tab0 AS cor0
----
-1
0
0

query I rowsort
SELECT - - col2 + cor0.col1 * + cor0.col2 FROM tab2 AS cor0
----
1560
684
864

query I rowsort
SELECT ALL 7 * 14 FROM tab2, tab0 cor0
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809

query I rowsort
SELECT DISTINCT + col2 + - ( ( col0 ) ) * 7 FROM tab1 AS cor0
----
-391
-464
33

query I rowsort
SELECT DISTINCT + col2 * 87 + 65 - + col1 * ( col2 ) FROM tab0 AS cor0
----
-263
55
98

query I rowsort
SELECT col0 * + 95 + col1 FROM tab2 cor0
----
696
7469
7522

query I rowsort
SELECT ALL - col2 * + cor0.col2 AS col2 FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT DISTINCT + col1 * col0 * 86 AS col0 FROM tab2 cor0
----
115498
18662
395772

query I rowsort
SELECT 81 + col1 * + col2 * ( col2 ) AS col2 FROM tab2 AS cor0
----
22680
24629
39965

query I rowsort
SELECT + + ( - col2 ) + 31 FROM tab1 AS cor0
----
-23
-26
-65

query I rowsort
SELECT + + 53 AS col1 FROM tab1 AS cor0
----
53
53
53

query I rowsort
SELECT ALL ( + col2 * tab1.col1 ) + + col0 FROM tab1
----
1328
1407
634

query I rowsort
SELECT DISTINCT + + cor0.col0 FROM tab0, tab1, tab2 AS cor0
----
7
78
79

query I rowsort
SELECT ( col2 + col1 ) * col0 * - col0 FROM tab1
----
-274432
-697600
-720

query I rowsort
SELECT + ( 29 ) AS col1 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 4c56285992bcb76e1aac22e6d23d1318

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 39 col0 FROM tab1, tab0, tab2 cor0
----
27 values hashing to ed2ebd9def3e2c38aa46cb3af60fe229

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4012
SELECT CAST( NULL AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4012
SELECT CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL + - 64 + col1 * + cor0.col0 AS col2 FROM tab2 AS cor0
----
1279
153
4538

query I rowsort
SELECT + 52 + col2 AS col1 FROM tab1 AS cor0
----
106
109
148

query I rowsort
SELECT ALL - - col2 * - col2 AS col0 FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT DISTINCT - 50 * + col1 FROM tab1 cor0
----
-1300
-500
-650

query I rowsort
SELECT DISTINCT + + 93 * col2 * - 25 FROM tab1 AS cor0
----
-125550
-132525
-223200

query I rowsort
SELECT DISTINCT - cor0.col1 * col2 + col0 AS col2 FROM tab2 AS cor0
----
-1456
-567
-830

query I rowsort
SELECT + col2 * - col0 + - col0 FROM tab2 cor0
----
-196
-2106
-3081

onlyif mysql # use DIV operator for integer division
query I rowsort label-4020
SELECT DISTINCT + cor0.col2 * + col1 + col0 DIV col2 AS col1 FROM tab1 AS cor0
----
1248
1404
571

skipif mysql # not compatible
query I rowsort label-4020
SELECT DISTINCT + cor0.col2 * + col1 + col0 / col2 AS col1 FROM tab1 AS cor0
----
1248
1404
571

query I rowsort
SELECT - 14 AS col1 FROM tab2, tab1 cor0
----
9 values hashing to d321461994ba49c3a70fa6373032fc94

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4022
SELECT ALL - + col2 + CAST( ( - cor0.col2 ) AS SIGNED ) AS col2 FROM tab0 cor0
----
-164
-2
-66

skipif mysql # not compatible
query I rowsort label-4022
SELECT ALL - + col2 + CAST ( ( - cor0.col2 ) AS INTEGER ) AS col2 FROM tab0 cor0
----
-164
-2
-66

query I rowsort
SELECT ALL + cor0.col0 + ( 47 ) * col1 AS col2 FROM tab2 AS cor0
----
1464
2851
878

query I rowsort
SELECT ALL - col1 * col0 + col1 FROM tab2 AS cor0
----
-1326
-186
-4543

query I rowsort
SELECT DISTINCT 7 AS col0 FROM tab0, tab2 AS cor0
----
7

query I rowsort
SELECT ALL + - col2 + - cor0.col0 - cor0.col0 AS col1 FROM tab1 AS cor0
----
-185
-256
-60

query I rowsort
SELECT DISTINCT + + col0 + + 35 AS col1 FROM tab0 AS cor0
----
124
59
70

query I rowsort
SELECT ALL 53 + - ( col0 ) FROM tab0 AS cor0
----
-36
18
29

query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1, tab0 AS cor0 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT 92 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

query I rowsort
SELECT ALL ( col0 ) * cor0.col1 AS col1 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT 35 FROM tab1, tab0 AS cor0, tab1 AS cor1, tab1 AS cor2
----
35

query I rowsort
SELECT + ( - col1 ) * - col0 - col0 AS col1 FROM tab0 AS cor0
----
2040
3360
8010

query I rowsort
SELECT DISTINCT - ( col1 ) + - col1 AS col2 FROM tab1 AS cor0
----
-20
-26
-52

query I rowsort
SELECT - - ( col0 ) - cor0.col0 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + 62 FROM tab0, tab2 AS cor0
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0

query I rowsort
SELECT DISTINCT + - 44 FROM tab0 AS cor0
----
-44

query I rowsort
SELECT DISTINCT - 90 * col1 FROM tab2
----
-1530
-2790
-5310

query I rowsort
SELECT DISTINCT - 96 AS col2 FROM tab1
----
-96

query I rowsort
SELECT DISTINCT + col2 + col1 * col1 * ( + ( col2 ) ) FROM tab2 AS cor0
----
11020
25974
90532

query I rowsort
SELECT - 39 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 504d14939d58aeb4a14f31c80de5b53e

query I rowsort
SELECT 65 - - col1 FROM tab2 AS cor0
----
124
82
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4043
SELECT - col1 * col2 + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4043
SELECT - col1 * col2 + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 12 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to d4f5a8e032294c3b9342821617800972

query I rowsort
SELECT ALL + 46 FROM tab1, tab2 cor0
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39

query I rowsort
SELECT ALL + col0 * ( - cor0.col2 ) FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT DISTINCT 30 AS col2 FROM tab2, tab2 cor0, tab2 AS cor1
----
30

query I rowsort
SELECT - + col2 * + 48 FROM tab1 AS cor0
----
-2592
-2736
-4608

onlyif mysql # use DIV operator for integer division
query I rowsort label-4049
SELECT col0 DIV + 98 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4049
SELECT col0 / + 98 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + col0 + 11 AS col2 FROM tab1
----
14
75
91

query I rowsort
SELECT + col0 + - cor0.col2 * - col1 AS col1 FROM tab1 cor0
----
1328
1407
634

query I rowsort
SELECT ALL 16 * 35 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 9982af1dc9a060157de2e2ad37d0792e

query I rowsort
SELECT DISTINCT + 4 FROM tab2, tab1 AS cor0
----
4

query I rowsort
SELECT - - col0 + + col0 * col1 AS col1 FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT ALL - col0 - ( - col2 * - col1 ) AS col1 FROM tab1 AS cor0
----
-1328
-1407
-634

query I rowsort
SELECT ALL cor0.col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870

query I rowsort
SELECT ALL - + col2 + + 8 * 93 * - cor0.col1 - col1 AS col1 FROM tab1 AS cor0
----
-19424
-7507
-9781

query I rowsort
SELECT ALL - col1 * - 1 * cor0.col0 + col1 FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT ALL - + 87 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 84bcab58a965cc8ae97b39d2d01b3d23

query I rowsort
SELECT DISTINCT - col1 * - tab0.col2 FROM tab0
----
2838
7462
97

query I rowsort
SELECT ALL - tab2.col0 * + 19 FROM tab2, tab0 AS cor0
----
9 values hashing to 934d1dd9454bfc140d1959bcd7db01c4

query I rowsort
SELECT 86 AS col0 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to ed1a39c2752ca3723602e4a92c54bbc4

query I rowsort
SELECT col2 + + col0 + col2 * col1 AS col2 FROM tab1
----
1424
1461
691

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + col0 * - col1 col1 FROM tab2
----
119652
51034
5859

query I rowsort
SELECT ALL - col2 - + col0 * - col2 AS col1 FROM tab1
----
108
3591
7584

query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0, tab0 cor0, tab1 AS cor1
----
972 values hashing to 9af67d6f98010464af5d560bf949d487

query I rowsort
SELECT DISTINCT col1 - - col1 AS col0 FROM tab2
----
118
34
62

query I rowsort
SELECT DISTINCT tab1.col1 - + col0 * 39 FROM tab1
----
-2486
-3107
-91

query I rowsort
SELECT col2 + 23 * col0 AS col2 FROM tab1
----
123
1529
1936

onlyif mysql # use DIV operator for integer division
query I rowsort label-4070
SELECT + col2 DIV + col1 AS col1 FROM tab1
----
2
5
7

skipif mysql # not compatible
query I rowsort label-4070
SELECT + col2 / + col1 AS col1 FROM tab1
----
2
5
7

query I rowsort
SELECT + col0 * - 29 AS col2 FROM tab1
----
-1856
-2320
-87

query I rowsort
SELECT + col2 + + col0 + ( + col2 ) AS col1 FROM tab1
----
111
178
272

onlyif mysql # use DIV operator for integer division
query I rowsort label-4073
SELECT DISTINCT + col2 - 61 * col0 DIV col1 FROM tab0
----
-21
16
23

skipif mysql # not compatible
query I rowsort label-4073
SELECT DISTINCT + col2 - 61 * col0 / col1 FROM tab0
----
-21
16
23

query I rowsort
SELECT - - col1 + + ( + col1 ) * + col1 AS col2 FROM tab1 AS cor0
----
110
182
702

query I rowsort
SELECT ALL col2 + + col0 * cor0.col0 FROM tab2 AS cor0
----
6110
6279
76

query I rowsort
SELECT + col1 + 55 * 23 FROM tab1 cor0
----
1275
1278
1291

query I rowsort
SELECT - cor0.col1 * ( col2 ) + - col0 FROM tab1 AS cor0
----
-1328
-1407
-634

query I rowsort
SELECT + 59 AS col2 FROM tab1
----
59
59
59

query I rowsort
SELECT 59 FROM tab2, tab2 cor0
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

onlyif mysql # use DIV operator for integer division
query I rowsort label-4080
SELECT DISTINCT 94 DIV - col0 FROM tab1
----
-1
-31

skipif mysql # not compatible
query I rowsort label-4080
SELECT DISTINCT 94 / - col0 FROM tab1
----
-1
-31

query I rowsort
SELECT DISTINCT col0 + + col1 * col0 + + col2 * tab2.col1 FROM tab2
----
1061
2068
6214

query I rowsort
SELECT DISTINCT + 59 * + col1 * col0 FROM tab2
----
12803
271518
79237

query I rowsort
SELECT - tab1.col1 AS col0 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6

query I rowsort
SELECT + ( col0 ) AS col0 FROM tab2 cor0
----
7
78
79

query I rowsort
SELECT + + col1 * 93 AS col1 FROM tab0 AS cor0
----
7998
8463
9021

onlyif mysql # use DIV operator for integer division
query I rowsort label-4086
SELECT ALL ( 33 ) + + col0 DIV col0 AS col0 FROM tab0
----
34
34
34

skipif mysql # not compatible
query I rowsort label-4086
SELECT ALL ( 33 ) + + col0 / col0 AS col0 FROM tab0
----
34
34
34

query I rowsort
SELECT ALL + col0 * col1 * col2 AS col2 FROM tab2 AS cor0
----
119652
51034
5859

query I rowsort
SELECT - + col2 * col1 * - 49 FROM tab2 AS cor0
----
31654
41013
75166

query I rowsort
SELECT ALL - - 50 * col0 + 61 * col1 AS col0 FROM tab1 AS cor0
----
1736
3810
4793

query I rowsort
SELECT DISTINCT 94 + + col0 FROM tab1 AS cor0
----
158
174
97

query I rowsort
SELECT ALL + + col2 * col2 AS col0 FROM tab0 cor0
----
1
1089
6724

query I rowsort
SELECT ALL 42 * + col2 + 27 + col0 FROM tab2 AS cor0
----
1168
1197
1702

query I rowsort
SELECT - cor0.col0 + - col0 * ( - col0 ) AS col2 FROM tab1 AS cor0
----
4032
6
6320

query I rowsort
SELECT DISTINCT - - 74 * col2 AS col0 FROM tab1 AS cor0
----
3996
4218
7104

query I rowsort
SELECT DISTINCT col1 * + col1 AS col0 FROM tab0 cor0
----
7396
8281
9409

query I rowsort
SELECT + 8 * + cor0.col2 FROM tab2 AS cor0
----
208
216
304

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4097
SELECT + 15 * col0 + CAST( NULL AS SIGNED ) * + col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4097
SELECT + 15 * col0 + CAST ( NULL AS INTEGER ) * + col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4098
SELECT + + col0 DIV - col0 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4098
SELECT + + col0 / - col0 FROM tab1 AS cor0
----
-1
-1
-1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4099
SELECT CAST( + 76 AS SIGNED ) AS col1 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 7b2b08dd3f1adef028d3f40ef7c716da

skipif mysql # not compatible
query I rowsort label-4099
SELECT CAST ( + 76 AS INTEGER ) AS col1 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 7b2b08dd3f1adef028d3f40ef7c716da

query I rowsort
SELECT DISTINCT + ( col2 ) AS col1 FROM tab0
----
1
33
82

query I rowsort
SELECT ALL - - 71 AS col1 FROM tab1 AS cor0
----
71
71
71

query I rowsort
SELECT DISTINCT - + cor0.col0 * - cor0.col0 AS col2 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT DISTINCT + + col0 * - col1 + col1 FROM tab2 AS cor0
----
-1326
-186
-4543

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 91 col2 FROM tab2 AS cor0
----
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 + col2 col1 FROM tab0 cor0
----
164
2
66

query I rowsort
SELECT - - 95 FROM tab2 AS cor0
----
95
95
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 39 col1 FROM tab2 AS cor0
----
-39

query I rowsort
SELECT ALL + + col2 * ( col1 ) AS col0 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT col0 * - 29 AS col2 FROM tab0 AS cor0
----
-1015
-2581
-696

onlyif mysql # use DIV operator for integer division
query I rowsort label-4110
SELECT DISTINCT + col0 DIV - ( ( - col0 ) ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4110
SELECT DISTINCT + col0 / - ( ( - col0 ) ) FROM tab2 AS cor0
----
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-4111
SELECT + col2 + - 66 DIV 40 FROM tab2 AS cor0
----
25
26
37

skipif mysql # not compatible
query I rowsort label-4111
SELECT + col2 + - 66 / 40 FROM tab2 AS cor0
----
25
26
37

onlyif mysql # use DIV operator for integer division
query I rowsort label-4112
SELECT DISTINCT - cor0.col2 + + cor0.col1 DIV col1 AS col2 FROM tab0 AS cor0
----
-32
-81
0

skipif mysql # not compatible
query I rowsort label-4112
SELECT DISTINCT - cor0.col2 + + cor0.col1 / col1 AS col2 FROM tab0 AS cor0
----
-32
-81
0

query I rowsort
SELECT + col2 * ( - col2 ) AS col2 FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT DISTINCT + col1 * 4 AS col0 FROM tab0 AS cor0
----
344
364
388

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4115
SELECT ALL - cor0.col0 + CAST( NULL AS DECIMAL ) / col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4115
SELECT ALL - cor0.col0 + CAST ( NULL AS REAL ) / col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4116
SELECT + + col2 * + CAST( + col1 AS SIGNED ) col1 FROM tab0 cor0
----
2838
7462
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4116
SELECT + + col2 * + CAST ( + col1 AS INTEGER ) col1 FROM tab0 cor0
----
2838
7462
97

query I rowsort
SELECT - cor0.col0 * - col1 * 22 AS col0 FROM tab0 AS cor0
----
178178
45408
74690

query I rowsort
SELECT - + cor0.col1 * - cor0.col1 * - col1 FROM tab0 AS cor0
----
-636056
-753571
-912673

query I rowsort
SELECT + col0 + + col1 * 1 AS col1 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT ALL - - col2 * col0 + - col0 * + 62 AS col2 FROM tab2 cor0
----
-1896
-245
-2808

onlyif mysql # use DIV operator for integer division
query I rowsort label-4121
SELECT + 21 * - col0 + + col0 DIV - 88 FROM tab0 AS cor0
----
-1870
-504
-735

skipif mysql # not compatible
query I rowsort label-4121
SELECT + 21 * - col0 + + col0 / - 88 FROM tab0 AS cor0
----
-1870
-504
-735

query I rowsort
SELECT DISTINCT + 30 * - cor0.col0 FROM tab2 AS cor0
----
-210
-2340
-2370

onlyif mysql # use DIV operator for integer division
query I rowsort label-4123
SELECT ALL - col1 DIV + col2 + col0 * col0 FROM tab0 cor0
----
1128
574
7920

skipif mysql # not compatible
query I rowsort label-4123
SELECT ALL - col1 / + col2 + col0 * col0 FROM tab0 cor0
----
1128
574
7920

query I rowsort
SELECT - col1 - 81 * - col1 FROM tab2 cor0
----
1360
2480
4720

query I rowsort
SELECT ALL + - col2 + - 98 FROM tab1 AS cor0
----
-152
-155
-194

query I rowsort
SELECT ALL col2 * 79 AS col1 FROM tab2 AS cor0
----
2054
2133
3002

query I rowsort
SELECT DISTINCT - - ( + 66 ) * col0 + col2 FROM tab2 AS cor0
----
489
5174
5252

onlyif mysql # use DIV operator for integer division
query I rowsort label-4128
SELECT col0 DIV col0 + col2 FROM tab0 AS cor0
----
2
34
83

skipif mysql # not compatible
query I rowsort label-4128
SELECT col0 / col0 + col2 FROM tab0 AS cor0
----
2
34
83

query I rowsort
SELECT ALL + + col1 * - ( col0 ) * - 29 + - col2 + - col0 * - col0 FROM tab1 AS cor0
----
2217
22599
36464

query I rowsort
SELECT + tab0.col1 * - ( - col2 ) * + col2 AS col0 FROM tab0
----
611884
93654
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-4131
SELECT - tab0.col2 DIV - ( col2 ) AS col0 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4131
SELECT - tab0.col2 / - ( col2 ) AS col0 FROM tab0
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-4132
SELECT - col0 DIV 69 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-4132
SELECT - col0 / 69 FROM tab2
----
-1
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 28 + - col1 col2 FROM tab0 cor0
----
-114
-119
-125

query I rowsort
SELECT col1 * - col2 + + col2 * 41 AS col1 FROM tab1 AS cor0
----
1767
2688
810

skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( col1 AS REAL ) * - col0 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT + col2 - - cor0.col1 * + col0 FROM tab1 AS cor0
----
1136
132
697

query I rowsort
SELECT DISTINCT + - ( + col0 ) * - cor0.col2 + ( - cor0.col0 ) + - cor0.col1 * col0 FROM tab0 cor0
----
-1296
-3395
-890

query I rowsort
SELECT ALL col2 * 8 - - cor0.col0 * - cor0.col2 AS col1 FROM tab1 AS cor0
----
-3192
-6912
270

query I rowsort
SELECT - ( + 88 ) + col2 * col2 FROM tab2 AS cor0
----
1356
588
641

query I rowsort
SELECT DISTINCT - col0 * - col2 * cor0.col2 FROM tab1 AS cor0
----
207936
737280
8748

query I rowsort
SELECT cor0.col0 + col2 * - ( + col2 ) FROM tab0 AS cor0
----
-1065
-6635
34

query I rowsort
SELECT DISTINCT + 5 AS col1 FROM tab2 AS cor0
----
5

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4143
SELECT + + col2 - + CAST( - col2 * - col1 AS SIGNED ) FROM tab1 AS cor0
----
-1152
-1350
-513

skipif mysql # not compatible
query I rowsort label-4143
SELECT + + col2 - + CAST ( - col2 * - col1 AS INTEGER ) FROM tab1 AS cor0
----
-1152
-1350
-513

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + + 84 col2 FROM tab0 AS cor0
----
-13
-2
-7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4145
SELECT DISTINCT + col0 / CAST( NULL AS SIGNED ) + + 46 AS col1 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4145
SELECT DISTINCT + col0 / CAST ( NULL AS INTEGER ) + + 46 AS col1 FROM tab1 cor0
----
NULL

query I rowsort
SELECT + + col1 - col0 AS col0 FROM tab0 cor0
----
2
62
62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4147
SELECT - col0 * CAST( col1 AS SIGNED ) - + cor0.col0 AS col1 FROM tab1 AS cor0
----
-1120
-704
-81

skipif mysql # not compatible
query I rowsort label-4147
SELECT - col0 * CAST ( col1 AS INTEGER ) - + cor0.col0 AS col1 FROM tab1 AS cor0
----
-1120
-704
-81

query I rowsort
SELECT DISTINCT + + col0 + + cor0.col2 AS col0 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT DISTINCT + - col1 * + 56 * + col0 AS col0 FROM tab0 AS cor0
----
-115584
-190120
-453544

onlyif mysql # use DIV operator for integer division
query I rowsort label-4150
SELECT ALL - col1 DIV - 33 + - ( col0 ) * col0 FROM tab2 AS cor0
----
-49
-6083
-6241

skipif mysql # not compatible
query I rowsort label-4150
SELECT ALL - col1 / - 33 + - ( col0 ) * col0 FROM tab2 AS cor0
----
-49
-6083
-6241

query I rowsort
SELECT DISTINCT - col0 * + col0 + cor0.col2 FROM tab1 AS cor0
----
-4039
-6304
45

query I rowsort
SELECT tab0.col0 - tab0.col1 AS col0 FROM tab0
----
-2
-62
-62

query I rowsort
SELECT + - col1 + + 25 * 93 FROM tab1 AS cor0
----
2299
2312
2315

query I rowsort
SELECT DISTINCT + col0 + + col2 FROM tab2
----
104
117
34

query I rowsort
SELECT - 21 * cor0.col2 AS col2 FROM tab2 AS cor0
----
-546
-567
-798

query I rowsort
SELECT + 5 FROM tab0, tab2 AS cor0
----
9 values hashing to 6035628694bdea36f584f3649088551d

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4157
SELECT col2 + - CAST( - col1 AS SIGNED ) FROM tab1
----
109
67
80

skipif mysql # not compatible
query I rowsort label-4157
SELECT col2 + - CAST ( - col1 AS INTEGER ) FROM tab1
----
109
67
80

query I rowsort
SELECT ALL - col1 + + tab0.col2 AS col2 FROM tab0
----
-53
-9
-96

query I rowsort
SELECT col0 * col2 * ( + cor0.col1 ) AS col0 FROM tab2 AS cor0
----
119652
51034
5859

query I rowsort
SELECT DISTINCT col0 * - 5 * + col1 FROM tab2
----
-1085
-23010
-6715

query I rowsort
SELECT DISTINCT - col2 * + col2 + + 85 FROM tab2 AS cor0
----
-1359
-591
-644

query I rowsort
SELECT ALL - 10 FROM tab0, tab0 AS cor0
----
9 values hashing to f68f33032846e21ee6b2c668fc10355e

onlyif mysql # use DIV operator for integer division
query I rowsort label-4163
SELECT ALL + col0 DIV col0 + + col2 * + cor0.col1 FROM tab2 AS cor0
----
1535
647
838

skipif mysql # not compatible
query I rowsort label-4163
SELECT ALL + col0 / col0 + + col2 * + cor0.col1 FROM tab2 AS cor0
----
1535
647
838

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 41 col1 FROM tab2, tab2 AS cor0 CROSS JOIN tab1
----
27 values hashing to f6a440b478f0d00f8326a8c51fe094b8

onlyif mysql # use DIV operator for integer division
query I rowsort label-4165
SELECT tab1.col1 DIV col0 + col0 * col0 FROM tab1
----
17
4096
6400

skipif mysql # not compatible
query I rowsort label-4165
SELECT tab1.col1 / col0 + col0 * col0 FROM tab1
----
17
4096
6400

query I rowsort
SELECT DISTINCT + ( - col2 ) AS col0 FROM tab0
----
-1
-33
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 88 col2 FROM tab2
----
88
88
88

query I rowsort
SELECT ALL col1 * + col1 FROM tab1 cor0
----
100
169
676

query I rowsort
SELECT - - cor0.col1 * + col2 + - col0 AS col1 FROM tab0 AS cor0
----
2814
62
7373

query I rowsort
SELECT 44 FROM tab2, tab2 cor0, tab2 AS cor1
----
27 values hashing to 0cc3e52e781e46962291c3060c6ae73b

query I rowsort
SELECT DISTINCT + - col1 * - col1 AS col2 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT - 13 AS col0 FROM tab1
----
-13
-13
-13

query I rowsort
SELECT ALL col0 * col0 + col2 AS col1 FROM tab0 AS cor0
----
1226
609
8003

query I rowsort
SELECT ALL + - ( col2 ) AS col1 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT + ( - col1 * - col2 ) AS col2 FROM tab2
----
1534
646
837

query I rowsort
SELECT + - col1 + col2 * col0 FROM tab0 cor0
----
-62
706
7207

query I rowsort
SELECT - cor0.col2 * cor0.col2 * - cor0.col1 + col1 FROM tab2 AS cor0
----
22630
24565
39943

query I rowsort
SELECT DISTINCT 59 AS col0 FROM tab0
----
59

query I rowsort
SELECT col2 * col2 * col2 FROM tab1
----
157464
185193
884736

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4180
SELECT DISTINCT + + CAST( - col2 AS SIGNED ) + - col0 AS col1 FROM tab1 AS cor0
----
-121
-176
-57

skipif mysql # not compatible
query I rowsort label-4180
SELECT DISTINCT + + CAST ( - col2 AS INTEGER ) + - col0 AS col1 FROM tab1 AS cor0
----
-121
-176
-57

query I rowsort
SELECT ALL + 20 * - 55 * col0 AS col1 FROM tab0 AS cor0
----
-26400
-38500
-97900

query I rowsort
SELECT - + col1 + - col1 + col1 * col1 AS col1 FROM tab2 AS cor0
----
255
3363
899

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4183
SELECT ALL + CAST( + 55 + col1 AS SIGNED ) AS col0 FROM tab0
----
141
146
152

skipif mysql # not compatible
query I rowsort label-4183
SELECT ALL + CAST ( + 55 + col1 AS INTEGER ) AS col0 FROM tab0
----
141
146
152

query I rowsort
SELECT ALL + cor0.col2 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

query I rowsort
SELECT + + col0 + + col1 AS col2 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT DISTINCT - + 59 * - 78 * col2 + col2 FROM tab2 AS cor0
----
119678
124281
174914

query I rowsort
SELECT ALL col2 * cor0.col1 + + cor0.col0 + 68 AS col0 FROM tab2 AS cor0
----
1680
793
912

query I rowsort
SELECT DISTINCT col2 + + 13 FROM tab1 AS cor0
----
109
67
70

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4189
SELECT CAST( - 65 AS SIGNED ) FROM tab2, tab2 AS cor0, tab0 AS cor1, tab1 AS cor2
----
81 values hashing to 62fe7b8eb6ce8c547418f08ea8ada1fc

skipif mysql # not compatible
query I rowsort label-4189
SELECT CAST ( - 65 AS INTEGER ) FROM tab2, tab2 AS cor0, tab0 AS cor1, tab1 AS cor2
----
81 values hashing to 62fe7b8eb6ce8c547418f08ea8ada1fc

query I rowsort
SELECT - - 82 + col0 * col2 AS col2 FROM tab0 AS cor0
----
117
7380
874

query I rowsort
SELECT ALL + col2 * - col2 AS col1 FROM tab2
----
-1444
-676
-729

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4192
SELECT ALL - col1 * 16 - col2 / CAST( NULL AS SIGNED ) AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4192
SELECT ALL - col1 * 16 - col2 / CAST ( NULL AS INTEGER ) AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 + col1 * col0 FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT ALL 6 * 29 + - col0 FROM tab2 AS cor0
----
167
95
96

query I rowsort
SELECT DISTINCT - + col0 + + col0 * - 95 AS col0 FROM tab0 AS cor0
----
-2304
-3360
-8544

query I rowsort
SELECT ALL col0 + - col2 + col0 FROM tab1 AS cor0
----
-48
64
71

query I rowsort
SELECT ( + col1 + tab1.col1 ) FROM tab1
----
20
26
52

query I rowsort
SELECT ALL + + col2 * 88 + col0 FROM tab0 AS cor0
----
123
2928
7305

query I rowsort
SELECT ALL + col2 - 47 * col0 AS col1 FROM tab0 AS cor0
----
-1095
-1644
-4101

query I rowsort
SELECT + + col2 * + ( col0 ) FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT DISTINCT + - col0 - + col1 FROM tab1 cor0
----
-29
-74
-93

onlyif mysql # use DIV operator for integer division
query I rowsort label-4202
SELECT ALL + cor0.col0 DIV + 99 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4202
SELECT ALL + cor0.col0 / + 99 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col0 * col0 + - cor0.col0 col0 FROM tab0 AS cor0
----
1190
552
7832

query I rowsort
SELECT - 1 * col2 + tab0.col0 - col0 FROM tab0
----
-1
-33
-82

query I rowsort
SELECT ALL 51 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 02a7de94365b8cb5b5cb92c4b1d1e7c5

query I rowsort
SELECT + 47 * col0 FROM tab1
----
141
3008
3760

query I rowsort
SELECT 60 AS col2 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 1d2ab302ae60f95b15e68cf89083b162

query I rowsort
SELECT - 88 * col1 * col0 AS col1 FROM tab1
----
-56320
-6864
-91520

query I rowsort
SELECT col0 + + 35 * - tab1.col2 * col0 FROM tab1
----
-127616
-268720
-5667

query I rowsort
SELECT - cor0.col2 * ( ( col2 ) * - 21 ) AS col1 FROM tab1 AS cor0
----
193536
61236
68229

onlyif mysql # use DIV operator for integer division
query I rowsort label-4211
SELECT - col2 + + ( - cor0.col0 ) DIV + col2 FROM tab1 AS cor0
----
-54
-58
-96

skipif mysql # not compatible
query I rowsort label-4211
SELECT - col2 + + ( - cor0.col0 ) / + col2 FROM tab1 AS cor0
----
-54
-58
-96

query I rowsort
SELECT col2 + - ( ( col2 ) ) AS col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4213
SELECT cor0.col2 * + CAST( NULL AS SIGNED ) + - col0 * - col2 * col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4213
SELECT cor0.col2 * + CAST ( NULL AS INTEGER ) + - col0 * - col2 * col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - cor0.col0 * col2 + + col1 FROM tab0 AS cor0
----
-706
-7207
62

query I rowsort
SELECT ALL col2 + 49 + + col0 FROM tab0
----
106
220
85

query I rowsort
SELECT tab0.col2 + + col1 + + col0 * - col2 * - tab0.col0 FROM tab0
----
1323
19127
649695

query I rowsort
SELECT DISTINCT cor0.col1 * 3 FROM tab2, tab2 AS cor0
----
177
51
93

query I rowsort
SELECT DISTINCT + tab2.col2 + col2 + - tab2.col1 AS col2 FROM tab2
----
-7
23
59

query I rowsort
SELECT tab1.col2 * tab1.col2 AS col0 FROM tab1
----
2916
3249
9216

query I rowsort
SELECT DISTINCT + tab2.col0 + 11 * tab2.col0 AS col1 FROM tab2
----
84
936
948

query I rowsort
SELECT - col2 * + ( 51 ) + - col2 * - cor0.col1 AS col2 FROM tab2 AS cor0
----
-1292
-540
208

query I rowsort
SELECT ALL tab2.col0 + 34 FROM tab2
----
112
113
41

query I rowsort
SELECT ALL - 41 AS col0 FROM tab1, tab0 cor0
----
9 values hashing to 4ba0c102091f9cbc9fe9439b04584e70

query I rowsort
SELECT DISTINCT - - ( 49 ) FROM tab1 AS cor0
----
49

query I rowsort
SELECT - 25 AS col2 FROM tab0 cor0
----
-25
-25
-25

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4226
SELECT + CAST( 83 AS SIGNED ) + col1 * + col0 * col0 AS col0 FROM tab2 AS cor0
----
106180
1602
359039

skipif mysql # not compatible
query I rowsort label-4226
SELECT + CAST ( 83 AS INTEGER ) + col1 * + col0 * col0 AS col0 FROM tab2 AS cor0
----
106180
1602
359039

onlyif mysql # use DIV operator for integer division
query I rowsort label-4227
SELECT col1 * col1 DIV col0 col1 FROM tab0 AS cor0
----
268
308
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4227
SELECT col1 * col1 / col0 col1 FROM tab0 AS cor0
----
268
308
93

query I rowsort
SELECT ALL 61 AS col0 FROM tab2 AS cor0
----
61
61
61

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4229
SELECT DISTINCT + - CAST( col0 AS SIGNED ) AS col1 FROM tab1 cor0
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-4229
SELECT DISTINCT + - CAST ( col0 AS INTEGER ) AS col1 FROM tab1 cor0
----
-3
-64
-80

query I rowsort
SELECT - ( col0 ) + - col0 FROM tab2 AS cor0
----
-14
-156
-158

query I rowsort
SELECT DISTINCT + ( 2 ) FROM tab0 AS cor0
----
2

query I rowsort
SELECT DISTINCT - 19 + col1 AS col2 FROM tab2 AS cor0
----
-2
12
40

query I rowsort
SELECT - - 71 * cor0.col0 FROM tab1 AS cor0
----
213
4544
5680

query I rowsort
SELECT ALL + col1 * 21 + + cor0.col2 FROM tab0 AS cor0
----
1839
1993
2038

query I rowsort
SELECT + col0 - + 91 AS col2 FROM tab0
----
-2
-56
-67

query I rowsort
SELECT - + ( col0 ) + + cor0.col0 * + col0 FROM tab1 AS cor0
----
4032
6
6320

query I rowsort
SELECT + col1 + + 94 AS col2 FROM tab2 AS cor0
----
111
125
153

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4238
SELECT DISTINCT CAST( ( col0 ) AS SIGNED ) * - col0 FROM tab0 AS cor0
----
-1225
-576
-7921

skipif mysql # not compatible
query I rowsort label-4238
SELECT DISTINCT CAST ( ( col0 ) AS INTEGER ) * - col0 FROM tab0 AS cor0
----
-1225
-576
-7921

onlyif mysql # use DIV operator for integer division
query I rowsort label-4239
SELECT + + ( 54 ) DIV col1 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4239
SELECT + + ( 54 ) / col1 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT col1 * col0 * col1 AS col2 FROM tab1 AS cor0
----
13520
2028
6400

query I rowsort
SELECT ALL + - col2 * col2 + col1 * col1 FROM tab0 AS cor0
----
1557
6307
9408

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + + CAST ( + col1 AS REAL ) FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT ALL 59 + - col1 * - col2 + col0 AS col2 FROM tab2
----
1671
784
903

query I rowsort
SELECT - 33 - col1 AS col2 FROM tab1 AS cor0
----
-43
-46
-59

onlyif mysql # use DIV operator for integer division
query I rowsort label-4245
SELECT + + col2 + + col0 DIV - col2 FROM tab0 cor0
----
-34
33
81

skipif mysql # not compatible
query I rowsort label-4245
SELECT + + col2 + + col0 / - col2 FROM tab0 cor0
----
-34
33
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-4246
SELECT + - col0 * - col1 + col0 DIV 53 FROM tab2 cor0
----
1344
217
4603

skipif mysql # not compatible
query I rowsort label-4246
SELECT + - col0 * - col1 + col0 / 53 FROM tab2 cor0
----
1344
217
4603

query I rowsort
SELECT DISTINCT - + 14 - col2 * + 62 FROM tab2 AS cor0
----
-1626
-1688
-2370

onlyif mysql # use DIV operator for integer division
query I rowsort label-4248
SELECT ALL - + col1 DIV col2 + col1 FROM tab1 cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-4248
SELECT ALL - + col1 / col2 + col1 FROM tab1 cor0
----
10
13
26

query I rowsort
SELECT + + 29 * col1 FROM tab1 AS cor0
----
290
377
754

query I rowsort
SELECT - col2 * - cor0.col0 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT DISTINCT + - col0 * col0 + + col0 * - col0 - - col1 AS col1 FROM tab0 AS cor0
----
-1066
-15751
-2353

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col0 + - col2 col1 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT ALL - + 65 + col0 FROM tab2 AS cor0
----
-58
13
14

onlyif mysql # use DIV operator for integer division
query I rowsort label-4254
SELECT + + col1 * ( - cor0.col1 ) DIV + col1 AS col2 FROM tab2 AS cor0
----
-17
-31
-59

skipif mysql # not compatible
query I rowsort label-4254
SELECT + + col1 * ( - cor0.col1 ) / + col1 AS col2 FROM tab2 AS cor0
----
-17
-31
-59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4255
SELECT ALL - col0 * - CAST( 82 AS SIGNED ) FROM tab2 AS cor0
----
574
6396
6478

skipif mysql # not compatible
query I rowsort label-4255
SELECT ALL - col0 * - CAST ( 82 AS INTEGER ) FROM tab2 AS cor0
----
574
6396
6478

query I rowsort
SELECT col0 * - col2 * - col1 FROM tab0 cor0
----
3395
664118
68112

query I rowsort
SELECT + col2 + col2 * + 69 - col2 FROM tab0 cor0
----
2277
5658
69

query I rowsort
SELECT ALL 28 FROM tab2, tab2 AS cor0, tab2 cor1
----
27 values hashing to 8a39580587f2831072e93c319ff94bbf

onlyif mysql # use DIV operator for integer division
query I rowsort label-4259
SELECT ALL + + col1 DIV + 41 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4259
SELECT ALL + + col1 / + 41 FROM tab2 AS cor0
----
0
0
1

query I rowsort
SELECT DISTINCT col0 - - col0 FROM tab0
----
178
48
70

query I rowsort
SELECT ALL + cor1.col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

query I rowsort
SELECT - cor0.col2 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6

query I rowsort
SELECT 27 + - cor0.col1 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 90caf461f764d64903250a8cacd41df9

onlyif mysql # use DIV operator for integer division
query I rowsort label-4264
SELECT DISTINCT + col2 DIV - col1 AS col0 FROM tab2
----
-2
0

skipif mysql # not compatible
query I rowsort label-4264
SELECT DISTINCT + col2 / - col1 AS col0 FROM tab2
----
-2
0

query I rowsort
SELECT DISTINCT + 66 * cor0.col2 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
1716
1782
2508

onlyif mysql # use DIV operator for integer division
query I rowsort label-4266
SELECT ALL + col2 DIV col0 AS col0 FROM tab0 cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4266
SELECT ALL + col2 / col0 AS col0 FROM tab0 cor0
----
0
0
1

query I rowsort
SELECT + + ( col2 ) + col2 * - col1 AS col0 FROM tab0 AS cor0
----
-2805
-7380
-96

query I rowsort
SELECT + 72 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 92cc3d5daa550304e96c1542787691c7

query I rowsort
SELECT 44 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 0cc3e52e781e46962291c3060c6ae73b

query I rowsort
SELECT DISTINCT + col1 * - 32 AS col1 FROM tab1 AS cor0
----
-320
-416
-832

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4271
SELECT - - cor0.col2 - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4271
SELECT - - cor0.col2 - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col0 - 29 FROM tab1 AS cor0
----
-26
35
51

query I rowsort
SELECT - - cor0.col2 + col2 * - col2 FROM tab2 cor0
----
-1406
-650
-702

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + col0 * cor0.col2 col2 FROM tab1 cor0
----
188
3658
7693

query I rowsort
SELECT - col2 + - 31 FROM tab0 AS cor0
----
-113
-32
-64

query I rowsort
SELECT ALL - 87 AS col0 FROM tab2 AS cor0
----
-87
-87
-87

query I rowsort
SELECT DISTINCT - col0 * - 41 AS col1 FROM tab0 cor0
----
1435
3649
984

query I rowsort
SELECT ( - 95 ) + col1 FROM tab2 AS cor0
----
-36
-64
-78

query I rowsort
SELECT DISTINCT 51 AS col1 FROM tab1 AS cor0
----
51

query I rowsort
SELECT ALL - - col1 * 23 * - col1 FROM tab2 AS cor0
----
-22103
-6647
-80063

query I rowsort
SELECT + + 63 AS col1 FROM tab0 AS cor0
----
63
63
63

query I rowsort
SELECT DISTINCT - 98 * - 99 + + cor0.col1 AS col0 FROM tab2 AS cor0
----
9719
9733
9761

query I rowsort
SELECT + - ( col0 ) * + col2 AS col0 FROM tab0 AS cor0
----
-35
-7298
-792

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-4285
SELECT - + ( col2 ) + - col1 DIV col0 FROM tab2 AS cor0
----
-26
-31
-38

skipif mysql # not compatible
query I rowsort label-4285
SELECT - + ( col2 ) + - col1 / col0 FROM tab2 AS cor0
----
-26
-31
-38

query I rowsort
SELECT ALL + + 69 FROM tab0 AS cor0
----
69
69
69

onlyif mysql # use DIV operator for integer division
query I rowsort label-4287
SELECT ( + col0 ) * col1 DIV + CAST( + ( - col1 ) AS SIGNED ) + - col1 AS col2 FROM tab2 AS cor0
----
-137
-38
-96

skipif mysql # not compatible
query I rowsort label-4287
SELECT ( + col0 ) * col1 / + CAST ( + ( - col1 ) AS INTEGER ) + - col1 AS col2 FROM tab2 AS cor0
----
-137
-38
-96

query I rowsort
SELECT + + 94 + + col0 * col1 FROM tab0 AS cor0
----
2158
3489
8193

query I rowsort
SELECT - cor0.col0 + 31 * col0 AS col1 FROM tab0 AS cor0
----
1050
2670
720

query I rowsort
SELECT DISTINCT 1 * + col2 + - col2 + 2 * + cor0.col0 * col2 FROM tab2 AS cor0
----
378
4056
6004

query I rowsort
SELECT col0 * - col0 + + col0 * - 57 AS col0 FROM tab2 AS cor0
----
-10530
-10744
-448

query I rowsort
SELECT + col2 * cor0.col1 + ( + col0 ) * - col2 + 59 * col2 AS col0 FROM tab2 AS cor0
----
-114
1040
2241

query I rowsort
SELECT + tab1.col1 * + 66 + - tab1.col0 FROM tab1
----
1713
596
778

query I rowsort
SELECT + - 75 + + col1 FROM tab2 AS cor0
----
-16
-44
-58

query I rowsort
SELECT 55 + col1 FROM tab2 AS cor0
----
114
72
86

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4296
SELECT - 49 + col0 * + CAST( NULL AS SIGNED ) + col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4296
SELECT - 49 + col0 * + CAST ( NULL AS INTEGER ) + col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 * cor0.col1 + col0 AS col1 FROM tab1 AS cor0
----
164
249
679

query I rowsort
SELECT ALL - + col0 + cor0.col2 FROM tab0 cor0
----
-34
-7
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-4299
SELECT DISTINCT + - col2 DIV + col0 - - col0 AS col2 FROM tab1 AS cor0
----
-15
64
79

skipif mysql # not compatible
query I rowsort label-4299
SELECT DISTINCT + - col2 / + col0 - - col0 AS col2 FROM tab1 AS cor0
----
-15
64
79

query I rowsort
SELECT DISTINCT + + col2 + - cor0.col0 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT 92 + - 5 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

onlyif mysql # use DIV operator for integer division
query I rowsort label-4302
SELECT DISTINCT col2 + col2 DIV - col1 AS col1 FROM tab0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-4302
SELECT DISTINCT col2 + col2 / - col1 AS col1 FROM tab0
----
1
33
82

query I rowsort
SELECT + + col1 * + cor0.col0 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT - + 9 * 28 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-252

query I rowsort
SELECT col0 * + ( col2 * col2 ) + + tab2.col2 FROM tab2
----
114114
5130
52754

query I rowsort
SELECT + 72 FROM tab0 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab1 AS cor2
----
81 values hashing to e1618abfe12be6a950cc575d695639b7

query I rowsort
SELECT tab1.col0 * - col0 FROM tab1
----
-4096
-6400
-9

query I rowsort
SELECT DISTINCT + 24 AS col2 FROM tab2
----
24

query I rowsort
SELECT 29 * + col1 AS col0 FROM tab0
----
2494
2639
2813

query I rowsort
SELECT DISTINCT - cor0.col2 FROM tab0, tab1, tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT ( - col2 ) * + col2 * + ( - col1 ) FROM tab1
----
119808
32490
75816

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 89 * + 35 col0 FROM tab0
----
3115

query I rowsort
SELECT 23 * - col0 FROM tab2
----
-161
-1794
-1817

query I rowsort
SELECT DISTINCT 47 AS col2 FROM tab0
----
47

query I rowsort
SELECT col1 * - 17 FROM tab1
----
-170
-221
-442

query I rowsort
SELECT - 45 + - col2 + col1 * + col2 FROM tab2 AS cor0
----
1463
563
765

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 34 col1 FROM tab1 AS cor0
----
34
34
34

query I rowsort
SELECT - col2 * + 6 FROM tab2
----
-156
-162
-228

query I rowsort
SELECT - cor0.col2 * col1 + - col2 AS col1 FROM tab0 AS cor0
----
-2871
-7544
-98

query I rowsort
SELECT + 33 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 76da8bc7cae18ecf856438f872430c80

query I rowsort
SELECT DISTINCT col1 * 16 FROM tab0 AS cor0
----
1376
1456
1552

query I rowsort
SELECT ALL + col1 * + col0 + col1 FROM tab1 AS cor0
----
104
1053
650

onlyif mysql # use DIV operator for integer division
query I rowsort label-4323
SELECT col1 DIV col1 + col1 AS col0 FROM tab0 AS cor0
----
87
92
98

skipif mysql # not compatible
query I rowsort label-4323
SELECT col1 / col1 + col1 AS col0 FROM tab0 AS cor0
----
87
92
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-4324
SELECT ALL - + col2 DIV - ( + col1 ) + col1 AS col2 FROM tab1 AS cor0
----
15
20
28

skipif mysql # not compatible
query I rowsort label-4324
SELECT ALL - + col2 / - ( + col1 ) + col1 AS col2 FROM tab1 AS cor0
----
15
20
28

query I rowsort
SELECT - cor0.col0 * col1 + - col1 + col2 * 30 FROM tab0 AS cor0
----
-1160
-3462
-5730

query I rowsort
SELECT ALL + ( cor0.col1 ) * + col1 * col1 FROM tab2 AS cor0
----
205379
29791
4913

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( col0 ) col2 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT ALL - 8 AS col0 FROM tab1 AS cor0
----
-8
-8
-8

query I rowsort
SELECT - + 13 AS col1 FROM tab0 cor0
----
-13
-13
-13

query I rowsort
SELECT - 3 AS col1 FROM tab1 AS cor0
----
-3
-3
-3

onlyif mysql # use DIV operator for integer division
query I rowsort label-4331
SELECT col0 DIV col1 - + col0 * - col2 col1 FROM tab0
----
35
7298
792

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4331
SELECT col0 / col1 - + col0 * - col2 col1 FROM tab0
----
35
7298
792

query I rowsort
SELECT 20 * col1 * - col2 AS col0 FROM tab0 AS cor0
----
-149240
-1940
-56760

onlyif mysql # use DIV operator for integer division
query I rowsort label-4333
SELECT + 38 DIV col0 AS col2 FROM tab1 AS cor0
----
0
0
12

skipif mysql # not compatible
query I rowsort label-4333
SELECT + 38 / col0 AS col2 FROM tab1 AS cor0
----
0
0
12

query I rowsort
SELECT ALL - col1 * + ( + col1 ) FROM tab2 AS cor0
----
-289
-3481
-961

onlyif mysql # use DIV operator for integer division
query I rowsort label-4335
SELECT col0 + + col2 - - 68 DIV 7 FROM tab2 cor0
----
113
126
43

skipif mysql # not compatible
query I rowsort label-4335
SELECT col0 + + col2 - - 68 / 7 FROM tab2 cor0
----
113
126
43

query I rowsort
SELECT - - col1 * cor0.col1 - col1 AS col2 FROM tab0 AS cor0
----
7310
8190
9312

onlyif mysql # use DIV operator for integer division
query I rowsort label-4337
SELECT 76 DIV col0 AS col0 FROM tab0 AS cor0
----
0
2
3

skipif mysql # not compatible
query I rowsort label-4337
SELECT 76 / col0 AS col0 FROM tab0 AS cor0
----
0
2
3

query I rowsort
SELECT DISTINCT + ( 34 ) AS col2 FROM tab1
----
34

query I rowsort
SELECT DISTINCT + col2 * + col0 + ( col2 ) FROM tab1 AS cor0
----
216
3705
7776

onlyif mysql # use DIV operator for integer division
query I rowsort label-4340
SELECT + + 35 DIV col1 - - cor0.col2 AS col0 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-4340
SELECT + + 35 / col1 - - cor0.col2 AS col0 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT ALL - 32 + col0 * + 75 FROM tab0 AS cor0
----
1768
2593
6643

query I rowsort
SELECT ALL + 61 AS col0 FROM tab1
----
61
61
61

onlyif mysql # use DIV operator for integer division
query I rowsort label-4343
SELECT DISTINCT col2 DIV + tab2.col1 FROM tab2
----
0
2

skipif mysql # not compatible
query I rowsort label-4343
SELECT DISTINCT col2 / + tab2.col1 FROM tab2
----
0
2

query I rowsort
SELECT DISTINCT col1 + + 49 AS col2 FROM tab2 AS cor0
----
108
66
80

query I rowsort
SELECT ALL + col2 + ( + col1 ) * + col1 * 66 AS col0 FROM tab0 AS cor0
----
488169
546628
620995

query I rowsort
SELECT DISTINCT - col1 * - 4 * + col1 + + col0 * + col2 AS col2 FROM tab0 AS cor0
----
30376
37671
40422

onlyif mysql # use DIV operator for integer division
query I rowsort label-4347
SELECT - 66 DIV col0 AS col2 FROM tab1
----
-1
-22
0

skipif mysql # not compatible
query I rowsort label-4347
SELECT - 66 / col0 AS col2 FROM tab1
----
-1
-22
0

query I rowsort
SELECT ALL + tab0.col1 + - col1 AS col2 FROM tab0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4349
SELECT + col0 + col1 * CAST( + col2 AS SIGNED ) AS col0 FROM tab0
----
132
2862
7551

skipif mysql # not compatible
query I rowsort label-4349
SELECT + col0 + col1 * CAST ( + col2 AS INTEGER ) AS col0 FROM tab0
----
132
2862
7551

query I rowsort
SELECT ALL + + col1 + - col2 * - col2 AS col2 FROM tab1 cor0
----
2942
3259
9229

query I rowsort
SELECT DISTINCT + col0 * 31 FROM tab0 cor0
----
1085
2759
744

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4352
SELECT DISTINCT + col1 + CAST( + col1 AS SIGNED ) FROM tab2 AS cor0
----
118
34
62

skipif mysql # not compatible
query I rowsort label-4352
SELECT DISTINCT + col1 + CAST ( + col1 AS INTEGER ) FROM tab2 AS cor0
----
118
34
62

query I rowsort
SELECT - + cor0.col0 - - 99 AS col1 FROM tab0 AS cor0
----
10
64
75

query I rowsort
SELECT - col2 - ( col1 ) FROM tab2 AS cor0
----
-55
-58
-85

query I rowsort
SELECT DISTINCT - col2 - col2 AS col2 FROM tab0
----
-164
-2
-66

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4356
SELECT col2 + + CAST( 76 AS SIGNED ) AS col2 FROM tab0
----
109
158
77

skipif mysql # not compatible
query I rowsort label-4356
SELECT col2 + + CAST ( 76 AS INTEGER ) AS col2 FROM tab0
----
109
158
77

query I rowsort
SELECT DISTINCT 76 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
76

query I rowsort
SELECT + col2 * 60 + - 11 FROM tab0
----
1969
49
4909

query I rowsort
SELECT DISTINCT + col1 * + col1 + - tab2.col1 FROM tab2
----
272
3422
930

query I rowsort
SELECT DISTINCT + col0 * + col0 + col0 * col0 + + col1 AS col2 FROM tab2
----
12227
12499
129

onlyif mysql # use DIV operator for integer division
query I rowsort label-4361
SELECT + col0 DIV 66 + - col1 col2 FROM tab0
----
-86
-90
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4361
SELECT + col0 / 66 + - col1 col2 FROM tab0
----
-86
-90
-97

query I rowsort
SELECT DISTINCT + - cor0.col0 + - col1 * - 11 FROM tab2 AS cor0
----
108
334
571

query I rowsort
SELECT ALL - col1 - - col2 * col2 AS col2 FROM tab1 AS cor0
----
2890
3239
9203

query I rowsort
SELECT ALL + col0 + + col0 AS col1 FROM tab0
----
178
48
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + ( + 39 ) col2 FROM tab1
----
103
119
42

query I rowsort
SELECT DISTINCT + col0 + col1 * + col1 FROM tab2 AS cor0
----
3559
368
968

skipif mysql # not compatible
query I rowsort
SELECT ALL - col0 * - col1 * CAST ( 50 AS REAL ) AS col2 FROM tab2 AS cor0
----
10850
230100
67150

query I rowsort
SELECT ALL - col1 * + col1 * col0 FROM tab2
----
-22831
-271518
-6727

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4369
SELECT ALL - CAST( 66 + - col1 AS SIGNED ) * CAST( NULL AS SIGNED ) col0 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4369
SELECT ALL - CAST ( 66 + - col1 AS INTEGER ) * CAST ( NULL AS INTEGER ) col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + ( + cor0.col0 ) + + 29 AS col1 FROM tab2 AS cor0
----
-49
-50
22

query I rowsort
SELECT 54 * col0 FROM tab2 AS cor0
----
378
4212
4266

query I rowsort
SELECT DISTINCT - + cor0.col0 * col1 - 72 * col0 AS col2 FROM tab1 AS cor0
----
-294
-5248
-6800

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4373
SELECT - ( - col1 ) * CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4373
SELECT - ( - col1 ) * CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col1 + - col1 * 15 * - cor0.col0 col0 FROM tab1 cor0
----
1196
15613
9610

onlyif mysql # use DIV operator for integer division
query I rowsort label-4375
SELECT DISTINCT col1 * col2 + - col1 DIV + col1 FROM tab2 AS cor0
----
1533
645
836

skipif mysql # not compatible
query I rowsort label-4375
SELECT DISTINCT col1 * col2 + - col1 / + col1 FROM tab2 AS cor0
----
1533
645
836

query I rowsort
SELECT DISTINCT - col0 * col0 * + 63 AS col1 FROM tab1 AS cor0
----
-258048
-403200
-567

query I rowsort
SELECT DISTINCT - col1 + + col0 FROM tab2 cor0
----
-24
19
62

query I rowsort
SELECT DISTINCT 26 * col2 FROM tab1 AS cor0
----
1404
1482
2496

query I rowsort
SELECT ALL 87 * cor0.col1 AS col0 FROM tab1 AS cor0
----
1131
2262
870

query I rowsort
SELECT DISTINCT + col2 * + col1 + + cor0.col1 * col1 - - col2 FROM tab2 AS cor0
----
1825
5041
973

query I rowsort
SELECT ALL + ( - col1 ) AS col0 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT ALL - 1 + + col1 FROM tab1 cor0
----
12
25
9

query I rowsort
SELECT DISTINCT - - col2 + + cor0.col0 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT DISTINCT + col2 + - col2 * col1 AS col0 FROM tab1 AS cor0
----
-1152
-1350
-513

query I rowsort
SELECT ALL + col0 * 68 FROM tab0
----
1632
2380
6052

query I rowsort
SELECT + ( - ( + col1 ) ) + - 6 AS col2 FROM tab0 cor0
----
-103
-92
-97

query I rowsort
SELECT DISTINCT 95 FROM tab2, tab1 cor0, tab0 AS cor1
----
95

query I rowsort
SELECT tab1.col2 * + col1 AS col1 FROM tab1
----
1248
1404
570

query I rowsort
SELECT DISTINCT - col1 * - col1 FROM tab2
----
289
3481
961

query I rowsort
SELECT DISTINCT col1 * + col1 + cor0.col1 AS col0 FROM tab0 AS cor0
----
7482
8372
9506

query I rowsort
SELECT - col0 * cor0.col1 AS col0 FROM tab2 cor0
----
-1343
-217
-4602

query I rowsort
SELECT ALL + + col1 + + 55 AS col1 FROM tab1 AS cor0
----
65
68
81

query I rowsort
SELECT - - 42 AS col1 FROM tab1 AS cor0
----
42
42
42

onlyif mysql # use DIV operator for integer division
query I rowsort label-4394
SELECT - + cor0.col1 DIV - col1 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4394
SELECT - + cor0.col1 / - col1 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT ALL 38 AS col1 FROM tab2 AS cor0
----
38
38
38

query I rowsort
SELECT ( col0 ) * - col2 AS col1 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT - 1 * col0 AS col2 FROM tab0
----
-24
-35
-89

query I rowsort
SELECT DISTINCT col0 + col1 * + 48 AS col1 FROM tab2
----
1495
2910
895

query I rowsort
SELECT DISTINCT + - col2 * col2 + col1 + col0 AS col0 FROM tab1 AS cor0
----
-2887
-3175
-9123

query I rowsort
SELECT ALL - + 38 * col0 + + ( col2 ) FROM tab2 AS cor0
----
-239
-2938
-2964

query I rowsort
SELECT DISTINCT - col2 + - col1 * - 59 AS col1 FROM tab0 AS cor0
----
5041
5287
5722

query I rowsort
SELECT + + col0 + + cor0.col0 AS col0 FROM tab1 AS cor0
----
128
160
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 67 + col0 col1 FROM tab2 AS cor0
----
145
146
74

query I rowsort
SELECT ALL - col0 * col2 * + col1 + - col2 AS col1 FROM tab2 AS cor0
----
-119678
-51072
-5886

query I rowsort
SELECT DISTINCT - 92 AS col1 FROM tab2 AS cor0
----
-92

query I rowsort
SELECT - col2 * col2 * 0 + 7 * cor0.col1 FROM tab0 AS cor0
----
602
637
679

query I rowsort
SELECT DISTINCT - col2 * + ( cor0.col0 ) FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT - ( 54 ) * + cor0.col2 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to cf99c84390908dd1aa23f037b0aa1452

query I rowsort
SELECT + col0 + + 45 AS col0 FROM tab1 AS cor0
----
109
125
48

query I rowsort
SELECT DISTINCT cor0.col0 * + col0 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT - col2 + col0 * + 91 AS col2 FROM tab1 AS cor0
----
219
5767
7184

query I rowsort
SELECT + col2 + + col0 * + 92 FROM tab1 AS cor0
----
330
5945
7456

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4413
SELECT DISTINCT - cor0.col2 * CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4413
SELECT DISTINCT - cor0.col2 * CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL - col2 + tab0.col1 + - tab0.col1 AS col0 FROM tab0
----
-1
-33
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col1 * col0 col0 FROM tab0 AS cor0
----
118825
49536
720811

query I rowsort
SELECT - + col0 * cor0.col1 + + col1 AS col0 FROM tab1 AS cor0
----
-1027
-52
-630

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + col2 * - 14 - - col0 col0 FROM tab2 AS cor0
----
2653
28470
42107

query I rowsort
SELECT col0 + - 1 AS col2 FROM tab1 AS cor0
----
2
63
79

query I rowsort
SELECT - - col1 + 27 AS col0 FROM tab0 AS cor0
----
113
118
124

query I rowsort
SELECT cor0.col0 - ( cor0.col0 ) FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - + col1 * - 63 + col1 AS col2 FROM tab2 cor0
----
1088
1984
3776

query I rowsort
SELECT - col0 + + 91 * col2 AS col0 FROM tab2 AS cor0
----
2288
2450
3379

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 + + col2 col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + + col1 * + 2 * + col0 FROM tab2 AS cor0
----
2686
434
9204

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4425
SELECT ALL CAST( NULL AS SIGNED ) + ( + col1 ) * ( col2 ) col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4425
SELECT ALL CAST ( NULL AS INTEGER ) + ( + col1 ) * ( col2 ) col0 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 64 * 18 AS col1 FROM tab0 AS cor0
----
1152
1152
1152

query I rowsort
SELECT - col2 * col1 * col1 AS col0 FROM tab2 AS cor0
----
-10982
-25947
-90506

query I rowsort
SELECT col0 + + 40 * cor0.col0 AS col1 FROM tab0 AS cor0
----
1435
3649
984

query I rowsort
SELECT + col2 * + ( + col0 ) FROM tab0
----
35
7298
792

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4430
SELECT col2 * CAST( NULL AS DECIMAL ) * col1 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4430
SELECT col2 * CAST ( NULL AS REAL ) * col1 AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + + cor0.col2 * col2 AS col1 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT ALL + cor1.col2 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT + 90 * + col0 FROM tab1 AS cor0
----
270
5760
7200

query I rowsort
SELECT ALL ( tab1.col0 ) FROM tab1
----
3
64
80

query I rowsort
SELECT + 47 AS col1 FROM tab2, tab0 cor0
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

query I rowsort
SELECT ALL - 52 + + col0 FROM tab0 cor0
----
-17
-28
37

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4437
SELECT CAST( NULL AS SIGNED ) FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-4437
SELECT CAST ( NULL AS INTEGER ) FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT ALL col0 * - col2 - - col2 * col0 AS col1 FROM tab0
----
0
0
0

query I rowsort
SELECT - 73 * tab1.col1 FROM tab1
----
-1898
-730
-949

query I rowsort
SELECT DISTINCT + cor0.col1 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
17
31
59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4441
SELECT - CAST( NULL AS SIGNED ) * col0 + + col2 - - col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4441
SELECT - CAST ( NULL AS INTEGER ) * col0 + + col2 - - col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 + cor0.col2 - - cor0.col2 AS col2 FROM tab0 AS cor0
----
152
255
99

query I rowsort
SELECT + ( - 91 ) + col2 + col2 AS col1 FROM tab0 AS cor0
----
-25
-89
73

query I rowsort
SELECT - - col2 + - col0 FROM tab0 cor0
----
-34
-7
9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4445
SELECT - - CAST( NULL AS DECIMAL ) FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4445
SELECT - - CAST ( NULL AS REAL ) FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT - ( + cor0.col1 ) AS col2 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT - - 18 AS col0 FROM tab2 AS cor0
----
18
18
18

query I rowsort
SELECT DISTINCT - 0 + - col0 AS col1 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT DISTINCT 44 * cor0.col1 AS col2 FROM tab0 AS cor0
----
3784
4004
4268

query I rowsort
SELECT col0 * ( - col0 ) + - col1 * 77 * - 26 AS col0 FROM tab0
----
171596
174261
192969

onlyif mysql # use DIV operator for integer division
query I rowsort label-4451
SELECT DISTINCT col0 DIV col2 col0 FROM tab1
----
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4451
SELECT DISTINCT col0 / col2 col0 FROM tab1
----
0
1

query I rowsort
SELECT - col1 + - col0 * col1 AS col1 FROM tab2 cor0
----
-1360
-248
-4661

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4453
SELECT ALL tab0.col0 / CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4453
SELECT ALL tab0.col0 / CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 78 + 61 FROM tab0, tab2 AS cor0
----
9 values hashing to ec60c4a1fe63bc8e6608e204b0ee0405

query I rowsort
SELECT DISTINCT + col0 * 5 * + 42 + cor0.col2 AS col1 FROM tab0 cor0
----
18772
5073
7351

query I rowsort
SELECT ALL - col0 - 99 FROM tab1 AS cor0
----
-102
-163
-179

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4457
SELECT DISTINCT + CAST( - 12 AS SIGNED ) * col1 AS col2 FROM tab0 AS cor0
----
-1032
-1092
-1164

skipif mysql # not compatible
query I rowsort label-4457
SELECT DISTINCT + CAST ( - 12 AS INTEGER ) * col1 AS col2 FROM tab0 AS cor0
----
-1032
-1092
-1164

query I rowsort
SELECT - 2 * col0 + col2 - col2 FROM tab0 AS cor0
----
-178
-48
-70

query I rowsort
SELECT ALL - + 81 AS col0 FROM tab0 AS cor0
----
-81
-81
-81

query I rowsort
SELECT DISTINCT + - col0 * col2 FROM tab0 cor0
----
-35
-7298
-792

query I rowsort
SELECT - - 84 * 14 + col0 FROM tab0 AS cor0
----
1200
1211
1265

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4462
SELECT + CAST( NULL AS SIGNED ) / - col0 + col0 * col0 - - col1 * cor0.col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4462
SELECT + CAST ( NULL AS INTEGER ) / - col0 + col0 * col0 - - col1 * cor0.col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 0 * - col1 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - - 61 + col1 FROM tab1 AS cor0
----
71
74
87

query I rowsort
SELECT + + cor0.col2 + col0 + + col2 AS col0 FROM tab1 AS cor0
----
111
178
272

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 41 + cor0.col1 * col1 * + col2 col0 FROM tab0 AS cor0
----
244027
679001
9368

query I rowsort
SELECT ALL 67 FROM tab2, tab0 cor0
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c

query I rowsort
SELECT ALL + ( + col1 ) + cor0.col1 FROM tab2 AS cor0
----
118
34
62

query I rowsort
SELECT DISTINCT - 34 + - col0 AS col0 FROM tab0 cor0
----
-123
-58
-69

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4470
SELECT DISTINCT + - CAST( + ( + col2 - col0 - ( + col2 - col1 ) ) AS SIGNED ) + + col0 + - col0 FROM tab2 AS cor0
----
-24
19
62

skipif mysql # not compatible
query I rowsort label-4470
SELECT DISTINCT + - CAST ( + ( + col2 - col0 - ( + col2 - col1 ) ) AS INTEGER ) + + col0 + - col0 FROM tab2 AS cor0
----
-24
19
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + col2 ) col0 FROM tab1 AS cor0
----
-54
-57
-96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4472
SELECT ALL - - 48 + - ( - col0 ) * CAST( + 2 AS SIGNED ) FROM tab2 AS cor0
----
204
206
62

skipif mysql # not compatible
query I rowsort label-4472
SELECT ALL - - 48 + - ( - col0 ) * CAST ( + 2 AS INTEGER ) FROM tab2 AS cor0
----
204
206
62

query I rowsort
SELECT ALL col1 * - 32 * - col1 FROM tab0 AS cor0
----
236672
264992
301088

onlyif mysql # use DIV operator for integer division
query I rowsort label-4474
SELECT DISTINCT - col1 - col1 DIV + col1 AS col0 FROM tab2 AS cor0
----
-18
-32
-60

skipif mysql # not compatible
query I rowsort label-4474
SELECT DISTINCT - col1 - col1 / + col1 AS col0 FROM tab2 AS cor0
----
-18
-32
-60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + cor0.col1 * - col1 col2 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT ALL + 40 + + col1 AS col1 FROM tab1 AS cor0
----
50
53
66

query I rowsort
SELECT DISTINCT - 15 * + col1 + + col1 FROM tab0 cor0
----
-1204
-1274
-1358

query I rowsort
SELECT ALL + 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 col0 * 94 + col1 * 51 + col1 col1 FROM tab0 AS cor0
----
13098
6728
8334

onlyif mysql # use DIV operator for integer division
query I rowsort label-4480
SELECT - + cor0.col0 DIV + col0 + col1 * col0 - cor0.col1 FROM tab0 AS cor0
----
1977
3297
8007

skipif mysql # not compatible
query I rowsort label-4480
SELECT - + cor0.col0 / + col0 + col1 * col0 - cor0.col1 FROM tab0 AS cor0
----
1977
3297
8007

query I rowsort
SELECT col0 + + col0 + col2 AS col1 FROM tab0
----
260
71
81

query I rowsort
SELECT + 25 * - col1 + - col0 * col0 + - col1 FROM tab2
----
-6683
-7618
-855

query I rowsort
SELECT ALL 53 * + col1 AS col1 FROM tab1 AS cor0
----
1378
530
689

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - col0 col1 FROM tab0 AS cor0
----
2
62
62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4485
SELECT ( col0 ) * CAST( NULL AS DECIMAL ) + + 58 - + cor0.col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4485
SELECT ( col0 ) * CAST ( NULL AS REAL ) + + 58 - + cor0.col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + col2 * - col2 + col0 + col2 * - col2 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT + ( + col1 ) + + col1 - - col0 AS col1 FROM tab1 AS cor0
----
106
55
84

query I rowsort
SELECT ALL 3 AS col1 FROM tab2
----
3
3
3

query I rowsort
SELECT + tab0.col1 + - 32 FROM tab0
----
54
59
65

query I rowsort
SELECT - col2 + ( col0 ) FROM tab2 AS cor0
----
-20
41
52

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4491
SELECT DISTINCT + + col1 + CAST( NULL AS SIGNED ) / - col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4491
SELECT DISTINCT + + col1 + CAST ( NULL AS INTEGER ) / - col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col0 * col1 + 4 AS col0 FROM tab1 AS cor0
----
1044
644
82

query I rowsort
SELECT DISTINCT - col1 * - col2 + + col0 FROM tab2 AS cor0
----
1612
725
844

query I rowsort
SELECT ALL - + col1 * - col2 + col1 - cor0.col1 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT + 77 AS col0 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to d7b027bca5d37c67e29013904def8125

query I rowsort
SELECT - col2 + + ( - col1 ) AS col1 FROM tab0 AS cor0
----
-119
-173
-98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4497
SELECT DISTINCT - - col0 + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4497
SELECT DISTINCT - - col0 + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4498
SELECT - - col0 * CAST( NULL AS SIGNED ) * col2 + - col0 * cor0.col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4498
SELECT - - col0 * CAST ( NULL AS INTEGER ) * col2 + - col0 * cor0.col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + col1 * + cor0.col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT + tab1.col1 - tab1.col0 FROM tab1
----
-54
-67
23

query I rowsort
SELECT ALL 11 + col0 * - col1 + 52 * col0 * + 46 FROM tab0
----
204800
55355
80336

query I rowsort
SELECT cor1.col1 * - 27 AS col0 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 02ee817989fdd392a2bd0c69bbe042ab

query I rowsort
SELECT ALL 38 + col2 FROM tab1
----
134
92
95

query I rowsort
SELECT col2 + ( col2 ) FROM tab2
----
52
54
76

query I rowsort
SELECT ALL col2 * 5 AS col2 FROM tab0 AS cor0
----
165
410
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * col2 col2 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT ALL - col2 + - col2 * - col2 AS col0 FROM tab0 AS cor0
----
0
1056
6642

query IIIIIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab2, tab2 AS cor2, tab1
----
13122 values hashing to 3d882f0d0d9890fffc4ff8b82d0d0691

query I rowsort
SELECT DISTINCT + col2 * 50 FROM tab1 AS cor0
----
2700
2850
4800

onlyif mysql # use DIV operator for integer division
query I rowsort label-4510
SELECT ALL + col2 + cor0.col2 * col1 DIV col0 FROM tab2 AS cor0
----
146
45
46

skipif mysql # not compatible
query I rowsort label-4510
SELECT ALL + col2 + cor0.col2 * col1 / col0 FROM tab2 AS cor0
----
146
45
46

query I rowsort
SELECT - ( + col1 ) * ( + col1 ) AS col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT - col0 + col0 AS col1 FROM tab0 cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4513
SELECT - 37 * col0 DIV - col0 + + col1 FROM tab1 AS cor0
----
47
50
63

skipif mysql # not compatible
query I rowsort label-4513
SELECT - 37 * col0 / - col0 + + col1 FROM tab1 AS cor0
----
47
50
63

query I rowsort
SELECT ALL + 95 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 0 col2 FROM tab2, tab2 AS cor0
----
0

query I rowsort
SELECT + 93 * col1 + + col0 AS col1 FROM tab0 AS cor0
----
8022
8552
9056

onlyif mysql # use DIV operator for integer division
query I rowsort label-4517
SELECT ALL + col2 DIV + col1 AS col0 FROM tab1
----
2
5
7

skipif mysql # not compatible
query I rowsort label-4517
SELECT ALL + col2 / + col1 AS col0 FROM tab1
----
2
5
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - ( + cor0.col1 ) col1 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT + col1 * + col1 AS col0 FROM tab1 cor0
----
100
169
676

query I rowsort
SELECT ALL - 29 FROM tab1
----
-29
-29
-29

query I rowsort
SELECT DISTINCT 49 AS col1 FROM tab2
----
49

onlyif mysql # use DIV operator for integer division
query I rowsort label-4522
SELECT ALL 49 DIV + tab0.col2 FROM tab0
----
0
1
49

skipif mysql # not compatible
query I rowsort label-4522
SELECT ALL 49 / + tab0.col2 FROM tab0
----
0
1
49

query I rowsort
SELECT DISTINCT 37 AS col1 FROM tab1
----
37

query I rowsort
SELECT col1 * - 82 + 26 AS col2 FROM tab0
----
-7026
-7436
-7928

query I rowsort
SELECT + cor0.col1 * + col1 FROM tab2 AS cor0
----
289
3481
961

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col2 * col0 col1 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT DISTINCT - 87 FROM tab0, tab1 AS cor0
----
-87

query I rowsort
SELECT + ( 31 ) FROM tab2, tab0 AS cor0
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540

query I rowsort
SELECT col0 * + col1 + col0 * col2 AS col2 FROM tab2
----
406
4345
6630

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4530
SELECT DISTINCT CAST( NULL AS SIGNED ) * - 27 FROM tab0, tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4530
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 27 FROM tab0, tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba

query I rowsort
SELECT - ( col2 ) + - col1 AS col2 FROM tab2 AS cor0
----
-55
-58
-85

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4533
SELECT CAST( col1 AS SIGNED ) + col2 FROM tab0 AS cor0
----
119
173
98

skipif mysql # not compatible
query I rowsort label-4533
SELECT CAST ( col1 AS INTEGER ) + col2 FROM tab0 AS cor0
----
119
173
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-4534
SELECT + + ( col1 ) * cor0.col0 DIV col2 - - col1 col0 FROM tab1 AS cor0
----
21
23
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4534
SELECT + + ( col1 ) * cor0.col0 / col2 - - col1 col0 FROM tab1 AS cor0
----
21
23
27

query I rowsort
SELECT ALL + ( - col2 ) + col2 * + col0 FROM tab0 AS cor0
----
34
7216
759

query I rowsort
SELECT DISTINCT - col2 + col0 * col0 * col1 FROM tab0 AS cor0
----
118824
49503
720729

query I rowsort
SELECT - 92 + col0 * - col1 AS col1 FROM tab2 AS cor0
----
-1435
-309
-4694

query I rowsort
SELECT ALL + - cor0.col1 * col2 * - col0 AS col0 FROM tab1 AS cor0
----
36480
4212
99840

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - 98 - cor0.col1 * - 37 col2 FROM tab2 cor0
----
2295
4185
7965

query I rowsort
SELECT ALL + ( col2 ) * col0 AS col1 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT DISTINCT + + col2 + + ( cor0.col1 ) AS col0 FROM tab2 AS cor0
----
55
58
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 27 * + ( + col2 ) + col2 col0 FROM tab1 AS cor0
----
1512
1596
2688

query I rowsort
SELECT 88 + cor0.col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 92f87f957233febfe86bc179f47367c2

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4544
SELECT ALL + CAST( - col0 AS SIGNED ) FROM tab2
----
-7
-78
-79

skipif mysql # not compatible
query I rowsort label-4544
SELECT ALL + CAST ( - col0 AS INTEGER ) FROM tab2
----
-7
-78
-79

onlyif mysql # use DIV operator for integer division
query I rowsort label-4545
SELECT ALL + col1 DIV + col2 AS col1 FROM tab0 AS cor0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-4545
SELECT ALL + col1 / + col2 AS col1 FROM tab0 AS cor0
----
1
2
97

query I rowsort
SELECT ALL + ( 33 ) AS col0 FROM tab1
----
33
33
33

query I rowsort
SELECT + ( + col2 ) * col0 FROM tab0
----
35
7298
792

query I rowsort
SELECT DISTINCT ( col1 ) * - col2 AS col0 FROM tab2
----
-1534
-646
-837

query I rowsort
SELECT DISTINCT + 27 * - cor0.col2 AS col1 FROM tab1, tab2 AS cor0
----
-1026
-702
-729

query I rowsort
SELECT - 91 AS col1 FROM tab2 AS cor0
----
-91
-91
-91

query I rowsort
SELECT ALL 51 + - col2 - col1 FROM tab0
----
-122
-47
-68

onlyif mysql # use DIV operator for integer division
query I rowsort label-4552
SELECT cor0.col0 * cor0.col0 DIV col2 + + col1 + + cor0.col1 col0 FROM tab1 AS cor0
----
52
91
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4552
SELECT cor0.col0 * cor0.col0 / col2 + + col1 + + cor0.col1 col0 FROM tab1 AS cor0
----
52
91
92

onlyif mysql # use DIV operator for integer division
query I rowsort label-4553
SELECT DISTINCT + + ( + col2 ) DIV col0 col0 FROM tab2 AS cor0
----
0
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4553
SELECT DISTINCT + + ( + col2 ) / col0 col0 FROM tab2 AS cor0
----
0
3

query I rowsort
SELECT col0 * cor0.col1 * col1 FROM tab2 AS cor0
----
22831
271518
6727

query I rowsort
SELECT - - 50 + - cor0.col0 * - cor0.col0 FROM tab2 AS cor0
----
6134
6291
99

query I rowsort
SELECT DISTINCT + 16 FROM tab1 AS cor0
----
16

query I rowsort
SELECT - + col0 * col2 + + col2 * + col2 + col2 FROM tab1 AS cor0
----
-342
1632
2808

query I rowsort
SELECT DISTINCT - 3 * col0 AS col1 FROM tab2 AS cor0
----
-21
-234
-237

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + - col2 col1 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT + + col0 * col1 - col1 * - col2 AS col2 FROM tab2 AS cor0
----
1054
1989
6136

query I rowsort
SELECT col1 * col0 + col1 * + col1 * col0 AS col0 FROM tab1 cor0
----
14560
2106
7040

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - col2 * + col1 col1 FROM tab2 AS cor0
----
-10982
-25947
-90506

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4563
SELECT + cor0.col1 + CAST( NULL AS SIGNED ) * + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4563
SELECT + cor0.col1 + CAST ( NULL AS INTEGER ) * + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 + - 52 FROM tab1 cor0
----
-106
-109
-148

query I rowsort
SELECT + cor0.col2 + col1 + cor0.col2 FROM tab1 cor0
----
124
134
205

query I rowsort
SELECT + col2 * + col0 * ( + col1 ) AS col0 FROM tab1 cor0
----
36480
4212
99840

query I rowsort
SELECT - col2 + cor0.col1 * col0 * - col2 + - col2 FROM tab1 AS cor0
----
-100032
-36594
-4320

query I rowsort
SELECT - + 22 AS col0 FROM tab2 AS cor0
----
-22
-22
-22

query I rowsort
SELECT DISTINCT 86 FROM tab1, tab0 cor0
----
86

query I rowsort
SELECT + cor0.col1 FROM tab1, tab0 AS cor0 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT - col1 + - col1 * + cor0.col2 FROM tab1 cor0
----
-1261
-1430
-580

query I rowsort
SELECT ALL col1 * - col0 + + col1 AS col1 FROM tab1 AS cor0
----
-1027
-52
-630

query I rowsort
SELECT DISTINCT + cor0.col2 * col2 + - col2 AS col2 FROM tab2 AS cor0
----
1406
650
702

query I rowsort
SELECT - col1 * 93 + + cor0.col1 AS col0 FROM tab1 AS cor0
----
-1196
-2392
-920

onlyif mysql # use DIV operator for integer division
query I rowsort label-4575
SELECT DISTINCT - cor0.col2 + col1 DIV ( col0 * col2 ) FROM tab0 cor0
----
-33
-82
1

skipif mysql # not compatible
query I rowsort label-4575
SELECT DISTINCT - cor0.col2 + col1 / ( col0 * col2 ) FROM tab0 cor0
----
-33
-82
1

query I rowsort
SELECT DISTINCT + col1 * + col0 + 97 + + col2 AS col1 FROM tab2 AS cor0
----
1478
341
4725

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4577
SELECT ALL - col2 * + CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4577
SELECT ALL - col2 * + CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 * cor0.col1 + - 96 * col1 AS col2 FROM tab0 AS cor0
----
-1274
-5418
-9215

onlyif mysql # use DIV operator for integer division
query I rowsort label-4579
SELECT DISTINCT - col0 + 5 DIV cor0.col1 FROM tab2 AS cor0
----
-7
-78
-79

skipif mysql # not compatible
query I rowsort label-4579
SELECT DISTINCT - col0 + 5 / cor0.col1 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT DISTINCT - col1 * col1 - col0 * + col0 * + ( + cor0.col1 ) FROM tab1 AS cor0
----
-41060
-83369
-910

onlyif mysql # use DIV operator for integer division
query I rowsort label-4581
SELECT ALL - + col1 DIV col2 FROM tab0 AS cor0
----
-1
-2
-97

skipif mysql # not compatible
query I rowsort label-4581
SELECT ALL - + col1 / col2 FROM tab0 AS cor0
----
-1
-2
-97

query I rowsort
SELECT + cor0.col2 * + 7 FROM tab1 AS cor0
----
378
399
672

query I rowsort
SELECT ALL + + col2 * 61 FROM tab0 AS cor0
----
2013
5002
61

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4584
SELECT DISTINCT - cor0.col0 * - CAST( NULL AS SIGNED ) + ( - col2 * 86 ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4584
SELECT DISTINCT - cor0.col0 * - CAST ( NULL AS INTEGER ) + ( - col2 * 86 ) AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - col1 - ( - 66 * col1 ) AS col2 FROM tab1 AS cor0
----
1690
650
845

query I rowsort
SELECT ALL col2 + - 28 FROM tab0 AS cor0
----
-27
5
54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 * col2 * - cor0.col2 + - col2 * + ( - col0 * col0 ) col1 FROM tab0 AS cor0
----
-74646
1128
37638

query I rowsort
SELECT DISTINCT 44 AS col0 FROM tab2, tab2 cor0, tab0 AS cor1
----
44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 - - ( + ( + col2 ) + - ( + col0 ) ) * col2 col0 FROM tab0
----
-35
-656
264

query I rowsort
SELECT + col2 + col2 * ( col2 ) AS col0 FROM tab0
----
1122
2
6806

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4591
SELECT ALL + - cor0.col0 * CAST( ( + col0 ) AS SIGNED ) + col0 FROM tab2 AS cor0
----
-42
-6006
-6162

skipif mysql # not compatible
query I rowsort label-4591
SELECT ALL + - cor0.col0 * CAST ( ( + col0 ) AS INTEGER ) + col0 FROM tab2 AS cor0
----
-42
-6006
-6162

query I rowsort
SELECT ALL cor0.col0 * - 55 + + 83 FROM tab0 AS cor0
----
-1237
-1842
-4812

onlyif mysql # use DIV operator for integer division
query I rowsort label-4593
SELECT col2 DIV + 39 AS col0 FROM tab0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-4593
SELECT col2 / + 39 AS col0 FROM tab0
----
0
0
2

query I rowsort
SELECT - - 35 AS col2 FROM tab2 AS cor0
----
35
35
35

query I rowsort
SELECT - 26 * col1 + - col1 * + col0 FROM tab2 AS cor0
----
-1023
-1785
-6136

query I rowsort
SELECT - 19 * + col0 AS col1 FROM tab2
----
-133
-1482
-1501

onlyif mysql # use DIV operator for integer division
query I rowsort label-4597
SELECT col2 + - col1 DIV ( + col0 * col1 ) AS col2 FROM tab2
----
26
27
38

skipif mysql # not compatible
query I rowsort label-4597
SELECT col2 + - col1 / ( + col0 * col1 ) AS col2 FROM tab2
----
26
27
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-4598
SELECT col2 DIV col0 - tab2.col1 FROM tab2
----
-17
-28
-59

skipif mysql # not compatible
query I rowsort label-4598
SELECT col2 / col0 - tab2.col1 FROM tab2
----
-17
-28
-59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4599
SELECT col2 + col1 * CAST( NULL AS SIGNED ) * + 46 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4599
SELECT col2 + col1 * CAST ( NULL AS INTEGER ) * + 46 AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + cor0.col2 * 90 AS col1 FROM tab0, tab1 AS cor0
----
4860
5130
8640

query I rowsort
SELECT ALL + + 88 FROM tab0 AS cor0
----
88
88
88

query I rowsort
SELECT DISTINCT + 31 AS col0 FROM tab2 cor0
----
31

query I rowsort
SELECT DISTINCT + col0 * - col0 + 27 * col0 + cor0.col1 * col2 FROM tab0 AS cor0
----
-183
1944
2910

query I rowsort
SELECT ALL cor0.col1 + + 79 FROM tab1, tab1 AS cor0
----
9 values hashing to f8260294914aa43c485391fbad0a353b

onlyif mysql # use DIV operator for integer division
query I rowsort label-4605
SELECT DISTINCT - 69 DIV + col1 AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4605
SELECT DISTINCT - 69 / + col1 AS col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT + + col1 * col2 + + col0 AS col0 FROM tab0 AS cor0
----
132
2862
7551

query I rowsort
SELECT + col1 + + col0 * - col2 FROM tab1 AS cor0
----
-136
-3638
-7667

query I rowsort
SELECT DISTINCT + + 9 + + col2 AS col1 FROM tab2 cor0
----
35
36
47

query I rowsort
SELECT DISTINCT 5 AS col2 FROM tab1 AS cor0
----
5

query I rowsort
SELECT - col2 * col2 + col2 AS col1 FROM tab0 AS cor0
----
-1056
-6642
0

query I rowsort
SELECT ALL 90 FROM tab2 cor0
----
90
90
90

onlyif mysql # use DIV operator for integer division
query I rowsort label-4612
SELECT ALL - 28 * col0 DIV col0 FROM tab2 AS cor0
----
-28
-28
-28

skipif mysql # not compatible
query I rowsort label-4612
SELECT ALL - 28 * col0 / col0 FROM tab2 AS cor0
----
-28
-28
-28

query I rowsort
SELECT - 69 * cor0.col1 AS col1 FROM tab1 AS cor0
----
-1794
-690
-897

query I rowsort
SELECT 28 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 8a39580587f2831072e93c319ff94bbf

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + - col2 col2 FROM tab1 AS cor0
----
-28
-47
-83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4616
SELECT ALL + - col0 + CAST( 38 * col2 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
1019
1365
910

skipif mysql # not compatible
query I rowsort label-4616
SELECT ALL + - col0 + CAST ( 38 * col2 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
1019
1365
910

query I rowsort
SELECT ALL col1 * 97 FROM tab2
----
1649
3007
5723

query I rowsort
SELECT ALL - + col1 + - 5 AS col0 FROM tab1 AS cor0
----
-15
-18
-31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor1.col1 col1 FROM tab2, tab0 cor0, tab2 cor1
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2

query I rowsort
SELECT ALL + 55 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4621
SELECT - CAST( NULL AS SIGNED ) + cor0.col0 * - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4621
SELECT - CAST ( NULL AS INTEGER ) + cor0.col0 * - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - col0 AS col1 FROM tab2 cor0
----
-7
-78
-79

query I rowsort
SELECT - 38 * col2 + + col2 FROM tab1 AS cor0
----
-1998
-2109
-3552

query I rowsort
SELECT 71 * col1 AS col2 FROM tab2
----
1207
2201
4189

onlyif mysql # use DIV operator for integer division
query I rowsort label-4625
SELECT + cor1.col1 + - 73 DIV + 56 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 0503e0afda993583ade90459ce4c9d28

skipif mysql # not compatible
query I rowsort label-4625
SELECT + cor1.col1 + - 73 / + 56 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 0503e0afda993583ade90459ce4c9d28

query I rowsort
SELECT DISTINCT - 41 * col1 FROM tab0 AS cor0
----
-3526
-3731
-3977

onlyif mysql # use DIV operator for integer division
query I rowsort label-4627
SELECT ALL ( cor0.col2 ) DIV + col2 AS col0 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4627
SELECT ALL ( cor0.col2 ) / + col2 AS col0 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT + 47 + 4 * + col1 AS col0 FROM tab2 AS cor0
----
115
171
283

query I rowsort
SELECT DISTINCT col0 + 96 + - cor0.col2 AS col0 FROM tab1 AS cor0
----
103
45
80

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab1 cor0, tab0 AS cor1, tab1, tab0 AS cor2
----
3645 values hashing to 6dd6930689f177711fda407b5ce0d072

onlyif mysql # use DIV operator for integer division
query I rowsort label-4631
SELECT DISTINCT col0 + 7 DIV + col0 FROM tab1 AS cor0
----
5
64
80

skipif mysql # not compatible
query I rowsort label-4631
SELECT DISTINCT col0 + 7 / + col0 FROM tab1 AS cor0
----
5
64
80

query I rowsort
SELECT ALL + col0 * cor0.col0 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT - - ( col2 ) + - cor0.col0 AS col1 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT 18 * col0 FROM tab1 AS cor0
----
1152
1440
54

query I rowsort
SELECT + 6 + col1 AS col1 FROM tab1 AS cor0
----
16
19
32

query I rowsort
SELECT + - 91 + - col0 * - 1 * - col1 FROM tab0 AS cor0
----
-2155
-3486
-8190

query I rowsort
SELECT DISTINCT + col2 + 10 * tab0.col2 * + col2 + - col0 * col0 AS col1 FROM tab0
----
-1214
10347
59401

query I rowsort
SELECT - col2 + - col0 + col2 FROM tab2
----
-7
-78
-79

onlyif mysql # use DIV operator for integer division
query I rowsort label-4639
SELECT ALL + - 19 DIV + col1 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4639
SELECT ALL + - 19 / + col1 FROM tab2 AS cor0
----
-1
0
0

query I rowsort
SELECT DISTINCT + - 45 + + col0 FROM tab1 AS cor0
----
-42
19
35

query I rowsort
SELECT ALL + + col2 * + col2 AS col0 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT ALL + ( + col2 ) + + 57 * + col1 FROM tab2 AS cor0
----
1007
1794
3389

query I rowsort
SELECT ALL + ( + cor0.col2 ) * + ( + col1 ) FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT DISTINCT ( col1 ) * + col2 + - col2 * - col2 FROM tab0
----
14186
3927
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + + col2 * col2 * 95 col0 FROM tab2
----
137259
64298
69262

onlyif mysql # use DIV operator for integer division
query I rowsort label-4646
SELECT DISTINCT - col0 DIV + col1 + col1 * - 24 + + 96 FROM tab2
----
-1321
-316
-648

skipif mysql # not compatible
query I rowsort label-4646
SELECT DISTINCT - col0 / + col1 + col1 * - 24 + + 96 FROM tab2
----
-1321
-316
-648

query I rowsort
SELECT - col1 * 2 FROM tab2
----
-118
-34
-62

query I rowsort
SELECT 81 * - col1 AS col0 FROM tab1
----
-1053
-2106
-810

query I rowsort
SELECT ALL + col2 * col2 + col0 + tab1.col0 FROM tab1
----
2922
3377
9376

query I rowsort
SELECT DISTINCT - 72 AS col0 FROM tab1 AS cor0
----
-72

query I rowsort
SELECT + ( + col2 ) * col1 + 15 * - 70 * col2 AS col1 FROM tab0 AS cor0
----
-31812
-78638
-953

query I rowsort
SELECT DISTINCT - col0 * - 15 + col1 FROM tab0 AS cor0
----
1426
446
622

query I rowsort
SELECT - - col0 + col0 + col0 * - 14 AS col2 FROM tab2 AS cor0
----
-84
-936
-948

query I rowsort
SELECT cor1.col0 * + cor1.col0 AS col2 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 368b2268fa85c1d99bbd086f4591b02b

query I rowsort
SELECT 79 + col0 AS col2 FROM tab0 AS cor0
----
103
114
168

query I rowsort
SELECT - col2 + + col2 AS col1 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT 39 + + col1 * col2 + + col1 * col0 FROM tab0 AS cor0
----
15600
3531
4941

query I rowsort
SELECT - col0 * + cor0.col2 + col1 FROM tab1 cor0
----
-136
-3638
-7667

query I rowsort
SELECT + col0 * cor0.col0 * col2 + col1 * - col2 FROM tab1 cor0
----
-918
232902
613152

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + col2 col2 FROM tab1
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4661
SELECT ALL - + col1 - - CAST( - col0 + col2 AS SIGNED ) * - col2 AS col1 FROM tab0 AS cor0
----
-383
-63
483

skipif mysql # not compatible
query I rowsort label-4661
SELECT ALL - + col1 - - CAST ( - col0 + col2 AS INTEGER ) * - col2 AS col1 FROM tab0 AS cor0
----
-383
-63
483

query I rowsort
SELECT - cor0.col0 + 84 FROM tab2 AS cor0
----
5
6
77

query I rowsort
SELECT - col1 * 63 FROM tab0 AS cor0
----
-5418
-5733
-6111

query I rowsort
SELECT DISTINCT - col2 + + cor0.col2 + col2 * + col0 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT DISTINCT col0 * col2 - 91 FROM tab2 AS cor0
----
1937
2911
98

query I rowsort
SELECT ALL + + col1 * + 95 AS col2 FROM tab2 AS cor0
----
1615
2945
5605

query I rowsort
SELECT ALL 39 AS col2 FROM tab0
----
39
39
39

query I rowsort
SELECT DISTINCT cor0.col2 * ( tab1.col2 ) AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 1e358219bf03c93d7085a65107d13cf1

query I rowsort
SELECT ALL - cor1.col2 FROM tab0 AS cor0 CROSS JOIN tab1, tab1 AS cor1
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e

query I rowsort
SELECT ALL ( + 59 ) FROM tab1, tab1 AS cor0
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

query I rowsort
SELECT col1 * 53 + col1 AS col0 FROM tab0 AS cor0
----
4644
4914
5238

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4672
SELECT ALL + + CAST( - cor0.col0 AS SIGNED ) + col0 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4672
SELECT ALL + + CAST ( - cor0.col0 AS INTEGER ) + col0 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 32 + - col0 * cor0.col0 * col2 + + col1 col0 FROM tab2 AS cor0
----
-1324
-158157
-237173

query I rowsort
SELECT - - cor0.col1 * - col0 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT ALL - ( ( col0 ) ) * col0 + - 28 FROM tab1 AS cor0
----
-37
-4124
-6428

query I rowsort
SELECT - ( 49 ) FROM tab0, tab2 AS cor0
----
9 values hashing to 01b1fa22fee872a7ba64f90d6046ffae

query I rowsort
SELECT - 13 + col2 * cor0.col1 AS col1 FROM tab0 AS cor0
----
2825
7449
84

query I rowsort
SELECT - + 80 + col2 * col1 FROM tab2 AS cor0
----
1454
566
757

query I rowsort
SELECT + 23 * cor0.col2 + - col1 * ( 13 ) AS col1 FROM tab2 AS cor0
----
-169
218
653

query I rowsort
SELECT - + col2 + + cor0.col2 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT 87 * - tab1.col1 FROM tab1
----
-1131
-2262
-870

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 47 * - col1 col1 FROM tab2
----
-1457
-2773
-799

query I rowsort
SELECT + + col1 * col0 + - ( 23 * cor0.col0 ) FROM tab1 AS cor0
----
-800
-832
9

query I rowsort
SELECT - 63 AS col1 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to fc0b533c2773a0a802e1fc8317dcebf2

query I rowsort
SELECT - + col0 * 16 FROM tab0 AS cor0
----
-1424
-384
-560

query I rowsort
SELECT DISTINCT + col1 * cor0.col2 AS col1 FROM tab0 AS cor0
----
2838
7462
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-4687
SELECT col2 DIV - cor0.col2 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4687
SELECT col2 / - cor0.col2 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL + col2 + cor0.col0 + - col2 FROM tab2 AS cor0
----
7
78
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-4689
SELECT + + cor0.col2 DIV col0 AS col0 FROM tab1 AS cor0
----
0
1
18

skipif mysql # not compatible
query I rowsort label-4689
SELECT + + cor0.col2 / col0 AS col0 FROM tab1 AS cor0
----
0
1
18

onlyif mysql # use DIV operator for integer division
query I rowsort label-4690
SELECT DISTINCT + col0 DIV col1 + + col2 FROM tab1 AS cor0
----
102
54
63

skipif mysql # not compatible
query I rowsort label-4690
SELECT DISTINCT + col0 / col1 + + col2 FROM tab1 AS cor0
----
102
54
63

query I rowsort
SELECT DISTINCT + col1 + - col0 AS col1 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT DISTINCT + col1 + - col1 + + col0 AS col0 FROM tab0 cor0
----
24
35
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-4693
SELECT ALL + col0 DIV + col1 + cor0.col0 col1 FROM tab0 AS cor0
----
24
35
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4693
SELECT ALL + col0 / + col1 + cor0.col0 col1 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT DISTINCT col0 * col0 + - col0 AS col0 FROM tab1 AS cor0
----
4032
6
6320

query I rowsort
SELECT ALL col1 + col2 AS col0 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT ALL col1 * col1 + - col1 FROM tab1 AS cor0
----
156
650
90

query I rowsort
SELECT col0 - - col2 AS col1 FROM tab0
----
171
36
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + col2 col2 FROM tab2
----
52
54
76

query I rowsort
SELECT DISTINCT - cor0.col2 + - col2 * + col0 AS col0 FROM tab2 AS cor0
----
-2054
-216
-3040

query I rowsort
SELECT ALL cor0.col1 * col2 + - col1 AS col0 FROM tab0 AS cor0
----
0
2752
7371

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - cor0.col2 col2 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT - col2 * col1 * - col1 FROM tab0
----
244068
679042
9409

query I rowsort
SELECT DISTINCT + col1 + + col0 + + col0 FROM tab2
----
175
215
45

query I rowsort
SELECT DISTINCT - col2 + + col1 AS col0 FROM tab2
----
-21
33
4

query I rowsort
SELECT ALL col1 + - tab0.col2 FROM tab0
----
53
9
96

query I rowsort
SELECT tab0.col2 + col0 * + col0 AS col1 FROM tab0
----
1226
609
8003

query I rowsort
SELECT col0 * + col2 * col0 FROM tab2
----
1323
158184
237158

query I rowsort
SELECT - col2 AS col0 FROM tab0 WHERE NOT NULL IN ( tab0.col1 + + col2 - + col1 )
----

query I rowsort
SELECT ALL col2 * col2 + col2 * - col0 FROM tab1
----
-399
1536
2754

query I rowsort
SELECT - - col1 + col1 * col1 AS col0 FROM tab1 cor0
----
110
182
702

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL IN ( + col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + - tab1.col1 + col0 col2 FROM tab1
----
3
64
80

query I rowsort
SELECT - col1 + col0 * col2 AS col0 FROM tab0
----
-62
706
7207

query I rowsort
SELECT DISTINCT tab2.col2 * + tab2.col1 FROM tab2
----
1534
646
837

query I rowsort
SELECT + tab2.col0 * - tab2.col1 + col0 AS col0 FROM tab2
----
-1264
-210
-4524

query I rowsort
SELECT DISTINCT + col0 * col1 AS col0 FROM tab1
----
1040
640
78

query I rowsort
SELECT col2 + + tab0.col2 AS col2 FROM tab0
----
164
2
66

query I rowsort
SELECT DISTINCT - col1 + col2 * tab1.col2 AS col2 FROM tab1
----
2890
3239
9203

query I rowsort
SELECT ALL + col2 * tab2.col1 AS col2 FROM tab2
----
1534
646
837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col1 * col1 col0 FROM tab2
----
289
3481
961

query I rowsort
SELECT ALL cor0.col1 * + cor0.col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 815fccd4c3d372b28d3f3fb103025775

query I rowsort
SELECT 85 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to e4cf94cf0cc632acff30ad1dac617cb7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + col2 col0 FROM tab2
----
52
54
76

query I rowsort
SELECT ALL + + ( - col1 ) FROM tab2 cor0
----
-17
-31
-59

query I rowsort
SELECT DISTINCT + - col1 + + cor0.col2 * col1 AS col0 FROM tab0 cor0
----
0
2752
7371

query I rowsort
SELECT DISTINCT + 5 * - col2 FROM tab2 cor0
----
-130
-135
-190

query I rowsort
SELECT - + 55 * + col1 FROM tab0 AS cor0
----
-4730
-5005
-5335

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL <= ( NULL )
----

query I rowsort
SELECT col1 * - col1 + - col2 * - col1 * + col0 FROM tab0
----
-6014
60716
655837

query I rowsort
SELECT col1 * col2 * col2 AS col1 FROM tab0
----
611884
93654
97

query I rowsort
SELECT ALL - col2 + + col2 * col0 - + col1 FROM tab1
----
3581
7571
82

query I rowsort
SELECT DISTINCT col1 * - col1 + - col1 * - tab0.col1 - - col1 AS col0 FROM tab0
----
86
91
97

query I rowsort
SELECT - col1 * + col0 + tab2.col2 AS col1 FROM tab2
----
-1305
-190
-4576

query I rowsort
SELECT col0 FROM tab1 WHERE NOT ( col2 - col0 * - col0 ) BETWEEN - col0 / + col0 - + col2 AND NULL
----

query I rowsort
SELECT + tab0.col0 + tab0.col0 * col1 + col0 AS col0 FROM tab0
----
2112
3465
8277

query I rowsort
SELECT col1 * + col1 + - col2 * + col2 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - col2 * cor0.col2 - col0 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-4737
SELECT DISTINCT col0 DIV col1 + col1 * - col1 FROM tab2 AS cor0
----
-285
-3480
-961

skipif mysql # not compatible
query I rowsort label-4737
SELECT DISTINCT col0 / col1 + col1 * - col1 FROM tab2 AS cor0
----
-285
-3480
-961

onlyif mysql # use DIV operator for integer division
query I rowsort label-4738
SELECT col1 * col1 DIV cor0.col1 AS col0 FROM tab1 AS cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-4738
SELECT col1 * col1 / cor0.col1 AS col0 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT DISTINCT + col2 FROM tab1 WHERE NOT NULL <= + col1
----

query I rowsort
SELECT ALL col0 + - col1 * - col1 FROM tab0
----
7420
8370
9444

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL > col2 * tab2.col0
----

query I rowsort
SELECT DISTINCT col2 * + col1 + + col1 AS col1 FROM tab1
----
1261
1430
580

onlyif mysql # use DIV operator for integer division
query I rowsort label-4743
SELECT DISTINCT + col1 DIV tab1.col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4743
SELECT DISTINCT + col1 / tab1.col2 FROM tab1
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4744
SELECT - col1 DIV tab0.col1 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4744
SELECT - col1 / tab0.col1 FROM tab0
----
-1
-1
-1

query I rowsort
SELECT col1 - col1 AS col2 FROM tab2
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4746
SELECT ALL + col2 DIV col1 FROM tab2
----
0
0
2

skipif mysql # not compatible
query I rowsort label-4746
SELECT ALL + col2 / col1 FROM tab2
----
0
0
2

query I rowsort
SELECT DISTINCT + tab0.col2 + + col0 - + col0 AS col1 FROM tab0
----
1
33
82

query I rowsort
SELECT DISTINCT col1 + col1 * + tab1.col2 AS col0 FROM tab1
----
1261
1430
580

query I rowsort
SELECT ALL col1 FROM tab0 WHERE NOT col1 <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * 61 col2 FROM tab2 AS cor0
----
1586
1647
2318

query I rowsort
SELECT 68 AS col1 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 10aa25f1c6b97582c34521ac6452e0b4

query I rowsort
SELECT ALL + cor0.col0 + col0 * + ( 85 ) FROM tab2 AS cor0
----
602
6708
6794

query I rowsort
SELECT + + 28 * cor0.col0 AS col2 FROM tab2 AS cor0
----
196
2184
2212

onlyif mysql # use DIV operator for integer division
query I rowsort label-4754
SELECT DISTINCT 47 DIV + col2 AS col2 FROM tab0 AS cor0
----
0
1
47

skipif mysql # not compatible
query I rowsort label-4754
SELECT DISTINCT 47 / + col2 AS col2 FROM tab0 AS cor0
----
0
1
47

query I rowsort
SELECT DISTINCT 55 * cor1.col0 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
1320
1925
4895

query I rowsort
SELECT DISTINCT 94 FROM tab0, tab2 AS cor0
----
94

query I rowsort
SELECT - 83 FROM tab1, tab0 cor0, tab0 AS cor1
----
27 values hashing to 77a48ad722db122f51d5ef36604ad843

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4758
SELECT - - col2 * CAST( - 86 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-4644
-4902
-8256

skipif mysql # not compatible
query I rowsort label-4758
SELECT - - col2 * CAST ( - 86 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-4644
-4902
-8256

skipif mysql # not compatible
query I rowsort
SELECT + CAST ( + col1 AS REAL ) AS col1 FROM tab0
----
86
91
97

query I rowsort
SELECT ( ( - col0 ) ) * col0 + ( col1 + + col1 ) * - col1 AS col0 FROM tab1 AS cor0
----
-1361
-4296
-6738

query I rowsort
SELECT 97 * col0 * col1 AS col1 FROM tab2 cor0
----
130271
21049
446394

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 + + col0 * cor0.col2 col0 FROM tab0 AS cor0
----
34
7216
759

query I rowsort
SELECT ALL + ( 26 ) FROM tab2 AS cor0
----
26
26
26

query I rowsort
SELECT - - col2 + cor0.col1 AS col2 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT + cor0.col1 * + cor0.col0 FROM tab2 AS cor0
----
1343
217
4602

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4766
SELECT + ( col2 ) * - CAST( + ( col2 ) AS SIGNED ) * + CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4766
SELECT + ( col2 ) * - CAST ( + ( col2 ) AS INTEGER ) * + CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4767
SELECT - 53 DIV col1 AS col1 FROM tab1 AS cor0
----
-2
-4
-5

skipif mysql # not compatible
query I rowsort label-4767
SELECT - 53 / col1 AS col1 FROM tab1 AS cor0
----
-2
-4
-5

query I rowsort
SELECT ALL 14 * col1 AS col2 FROM tab1
----
140
182
364

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4769
SELECT DISTINCT CAST( - 68 AS SIGNED ) FROM tab2, tab0, tab1 cor0
----
-68

skipif mysql # not compatible
query I rowsort label-4769
SELECT DISTINCT CAST ( - 68 AS INTEGER ) FROM tab2, tab0, tab1 cor0
----
-68

query I rowsort
SELECT - cor0.col2 + col2 * - col0 FROM tab0 cor0
----
-36
-7380
-825

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 + cor0.col0 col1 FROM tab2 AS cor0
----
104
117
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + col0 col2 FROM tab2
----
14
156
158

query I rowsort
SELECT DISTINCT + ( col0 ) * - tab0.col1 + - col1 FROM tab0
----
-2150
-3492
-8190

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4774
SELECT ALL col1 + col2 * CAST( NULL AS DECIMAL ) * col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4774
SELECT ALL col1 + col2 * CAST ( NULL AS REAL ) * col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - col0 + + cor0.col1 * - ( - cor0.col2 + col2 ) FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT - 87 + + col2 FROM tab1 AS cor0
----
-30
-33
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-4777
SELECT DISTINCT + cor0.col2 * 29 + + ( - col2 ) + CAST( - 1 AS SIGNED ) DIV - cor0.col0 AS col1 FROM tab1 AS cor0
----
1512
1596
2688

skipif mysql # not compatible
query I rowsort label-4777
SELECT DISTINCT + cor0.col2 * 29 + + ( - col2 ) + CAST ( - 1 AS INTEGER ) / - cor0.col0 AS col1 FROM tab1 AS cor0
----
1512
1596
2688

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + 34 * + cor0.col0 + col1 + - 3 * col2 col1 FROM tab0 AS cor0
----
115524
275211
70163

query I rowsort
SELECT ALL + col1 + + col0 * col0 FROM tab1 AS cor0
----
35
4106
6413

query I rowsort
SELECT ALL + col0 * 92 FROM tab2 AS cor0
----
644
7176
7268

query I rowsort
SELECT DISTINCT + cor0.col2 + - ( - 78 ) + col0 AS col0 FROM tab2 AS cor0
----
112
182
195

query I rowsort
SELECT 47 - tab2.col1 AS col1 FROM tab2
----
-12
16
30

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4783
SELECT DISTINCT col0 + + col2 + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4783
SELECT DISTINCT col0 + + col2 + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4784
SELECT col1 DIV - tab1.col0 + 22 FROM tab1
----
14
22
22

skipif mysql # not compatible
query I rowsort label-4784
SELECT col1 / - tab1.col0 + 22 FROM tab1
----
14
22
22

query I rowsort
SELECT DISTINCT 63 * col2 AS col2 FROM tab2
----
1638
1701
2394

query I rowsort
SELECT + - ( col1 ) - col2 FROM tab1 AS cor0
----
-109
-67
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-4787
SELECT + col2 DIV col0 AS col1 FROM tab1 AS cor0
----
0
1
18

skipif mysql # not compatible
query I rowsort label-4787
SELECT + col2 / col0 AS col1 FROM tab1 AS cor0
----
0
1
18

query I rowsort
SELECT DISTINCT - ( + col0 ) + col0 AS col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT 39 * ( col2 ) - + 81 AS col2 FROM tab1 AS cor0
----
2025
2142
3663

query I rowsort
SELECT - 73 - col2 AS col1 FROM tab0 AS cor0
----
-106
-155
-74

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4791
SELECT + CAST( col0 AS SIGNED ) * cor0.col0 - col2 AS col0 FROM tab1 AS cor0
----
-45
4039
6304

skipif mysql # not compatible
query I rowsort label-4791
SELECT + CAST ( col0 AS INTEGER ) * cor0.col0 - col2 AS col0 FROM tab1 AS cor0
----
-45
4039
6304

query I rowsort
SELECT - ( + 20 ) * col2 - - 72 AS col1 FROM tab0 cor0
----
-1568
-588
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-4793
SELECT ALL - 91 DIV + col2 AS col0 FROM tab0 AS cor0
----
-1
-2
-91

skipif mysql # not compatible
query I rowsort label-4793
SELECT ALL - 91 / + col2 AS col0 FROM tab0 AS cor0
----
-1
-2
-91

query I rowsort
SELECT DISTINCT + - col2 * + 48 * + col2 + + col2 AS col2 FROM tab0 AS cor0
----
-322670
-47
-52239

query I rowsort
SELECT ALL - 90 * col2 AS col1 FROM tab0 AS cor0
----
-2970
-7380
-90

query I rowsort
SELECT ( col1 ) + - col0 * - 8 FROM tab1 AS cor0
----
50
522
653

query I rowsort
SELECT ALL + 69 * tab1.col2 + - tab1.col2 FROM tab2, tab0 cor0 CROSS JOIN tab1, tab0 AS cor1
----
81 values hashing to c33c7efaf6a185de9a1780cbeed1f5d5

query I rowsort
SELECT - tab0.col1 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f

query I rowsort
SELECT + 48 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b

query I rowsort
SELECT + col1 + + col2 AS col0 FROM tab0 cor0
----
119
173
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 68 + - 60 col2 FROM tab1 AS cor0
----
8
8
8

query I rowsort
SELECT + ( 8 ) AS col1 FROM tab0 cor0
----
8
8
8

query I rowsort
SELECT ALL + 59 - - col0 FROM tab0
----
148
83
94

query I rowsort
SELECT + col1 + - col0 + tab1.col1 FROM tab1
----
-44
-54
49

query I rowsort
SELECT ALL - col1 + ( col2 ) FROM tab2
----
-33
-4
21

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4806
SELECT DISTINCT col2 + + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4806
SELECT DISTINCT col2 + + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query I rowsort
SELECT ALL + col0 + + col0 * - 31 AS col2 FROM tab0
----
-1050
-2670
-720

query I rowsort
SELECT DISTINCT col2 * 36 + 10 AS col1 FROM tab2
----
1378
946
982

query I rowsort
SELECT - col1 * cor0.col1 * cor0.col1 + col2 AS col0 FROM tab1 AS cor0
----
-17522
-2101
-943

query I rowsort
SELECT col0 * - 75 FROM tab0 AS cor0
----
-1800
-2625
-6675

query I rowsort
SELECT DISTINCT - + cor0.col0 * col2 + + col1 FROM tab2 cor0
----
-158
-1969
-2985

query I rowsort
SELECT - cor1.col2 FROM tab2, tab0 AS cor0, tab2 AS cor1, tab0, tab2 AS cor2
----
243 values hashing to b98cc07e6d63e3c0583ed19f9e9ad2be

query I rowsort
SELECT DISTINCT + ( 44 ) * - col1 FROM tab1 AS cor0
----
-1144
-440
-572

query I rowsort
SELECT DISTINCT - 59 + col1 FROM tab0 AS cor0
----
27
32
38

query I rowsort
SELECT ALL - + 32 - col0 AS col2 FROM tab0 AS cor0
----
-121
-56
-67

query I rowsort
SELECT ( + cor0.col1 ) * + cor0.col2 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 tab0 cor0
----
171
36
57

query I rowsort
SELECT DISTINCT col1 - 7 AS col2 FROM tab0 AS cor0
----
79
84
90

query I rowsort
SELECT - - col0 + cor0.col0 FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT ALL 17 + ( + col0 ) * 49 * - col0 FROM tab0 AS cor0
----
-28207
-388112
-60008

query I rowsort
SELECT - col0 * + 70 AS col2 FROM tab0 cor0
----
-1680
-2450
-6230

query I rowsort
SELECT DISTINCT + ( - col0 ) + col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT + + col1 * col1 + col1 * + col0 FROM tab0 AS cor0
----
12804
16380
9460

query I rowsort
SELECT - col1 + ( + ( col0 ) ) AS col2 FROM tab0
----
-2
-62
-62

query I rowsort
SELECT DISTINCT - col2 + - ( + col2 ) * col1 AS col0 FROM tab1 cor0
----
-1344
-1458
-627

query I rowsort
SELECT ( - 75 ) FROM tab0 cor0
----
-75
-75
-75

query I rowsort
SELECT DISTINCT + 38 * - col0 * - col1 + ( - 48 ) FROM tab0 AS cor0
----
128962
307714
78384

query I rowsort
SELECT ALL + col2 - - col0 AS col0 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT DISTINCT - + 86 * - 5 * + col0 AS col0 FROM tab2 cor0
----
3010
33540
33970

query I rowsort
SELECT 66 * col2 + col1 AS col1 FROM tab0 AS cor0
----
163
2264
5503

query I rowsort
SELECT + - 26 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 47d0574274146de273829785364ada39

onlyif mysql # use DIV operator for integer division
query I rowsort label-4832
SELECT + + col1 DIV - col2 col0 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4832
SELECT + + col1 / - col2 col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + col1 * + cor0.col0 AS col0 FROM tab1 cor0
----
1040
640
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-4834
SELECT DISTINCT col1 + + col0 DIV + col2 AS col2 FROM tab0 AS cor0
----
132
86
92

skipif mysql # not compatible
query I rowsort label-4834
SELECT DISTINCT col1 + + col0 / + col2 AS col2 FROM tab0 AS cor0
----
132
86
92

query I rowsort
SELECT DISTINCT - col1 + col1 * - cor0.col0 AS col2 FROM tab2 AS cor0
----
-1360
-248
-4661

onlyif mysql # use DIV operator for integer division
query I rowsort label-4836
SELECT + 88 DIV + col0 AS col2 FROM tab1 AS cor0
----
1
1
29

skipif mysql # not compatible
query I rowsort label-4836
SELECT + 88 / + col0 AS col2 FROM tab1 AS cor0
----
1
1
29

query I rowsort
SELECT 61 + + col2 * 96 AS col1 FROM tab2 AS cor0
----
2557
2653
3709

query I rowsort
SELECT DISTINCT + 22 * col2 FROM tab2 AS cor0
----
572
594
836

query I rowsort
SELECT DISTINCT 43 + + col2 FROM tab1 AS cor0
----
100
139
97

query I rowsort
SELECT col0 * + col1 - - col0 FROM tab2 AS cor0
----
1422
224
4680

query I rowsort
SELECT + 52 AS col2 FROM tab2 AS cor0
----
52
52
52

query I rowsort
SELECT DISTINCT cor0.col2 + + 12 AS col2 FROM tab1 AS cor0
----
108
66
69

query I rowsort
SELECT + 87 AS col1 FROM tab1, tab2 cor0
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 + 75 + col0 col2 FROM tab2 AS cor0
----
109
179
192

query I rowsort
SELECT ALL + 53 * tab1.col0 - - col1 AS col1 FROM tab1
----
185
3402
4253

query I rowsort
SELECT col2 * - col2 + + col0 - tab0.col2 FROM tab0
----
-1098
-6717
33

query I rowsort
SELECT DISTINCT + col0 - + col2 * tab1.col2 * 57 AS col1 FROM tab1
----
-166209
-185129
-525232

query I rowsort
SELECT - col1 + cor0.col1 * 78 FROM tab1 AS cor0
----
1001
2002
770

query I rowsort
SELECT ALL col1 + + col0 * 92 AS col0 FROM tab0 AS cor0
----
2294
3317
8279

query I rowsort
SELECT col2 + 66 FROM tab1 AS cor0
----
120
123
162

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4851
SELECT ALL + - cor0.col1 + - col1 * ( col1 ) - CAST( + col2 * cor0.col1 AS SIGNED ) FROM tab2 AS cor0
----
-1829
-5074
-952

skipif mysql # not compatible
query I rowsort label-4851
SELECT ALL + - cor0.col1 + - col1 * ( col1 ) - CAST ( + col2 * cor0.col1 AS INTEGER ) FROM tab2 AS cor0
----
-1829
-5074
-952

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + cor0.col0 col0 FROM tab2 cor0
----
-7
-78
-79

query I rowsort
SELECT DISTINCT + + col2 * ( + col0 ) FROM tab2 AS cor0
----
189
2028
3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-4854
SELECT ALL - - cor0.col0 + - col0 DIV col0 FROM tab0 AS cor0
----
23
34
88

skipif mysql # not compatible
query I rowsort label-4854
SELECT ALL - - cor0.col0 + - col0 / col0 FROM tab0 AS cor0
----
23
34
88

onlyif mysql # use DIV operator for integer division
query I rowsort label-4855
SELECT cor0.col2 * - 31 + + 19 - + col0 DIV 39 AS col0 FROM tab2 AS cor0
----
-1161
-789
-818

skipif mysql # not compatible
query I rowsort label-4855
SELECT cor0.col2 * - 31 + + 19 - + col0 / 39 AS col0 FROM tab2 AS cor0
----
-1161
-789
-818

query I rowsort
SELECT DISTINCT + col1 + 80 * + col0 * col1 AS col2 FROM tab1 cor0
----
51210
6266
83213

query I rowsort
SELECT ALL + col1 + - ( col0 ) AS col2 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT - col1 * 22 + 62 * col1 FROM tab1 AS cor0
----
1040
400
520

query I rowsort
SELECT ALL col1 * col0 + - cor0.col2 AS col0 FROM tab1 AS cor0
----
24
583
944

query I rowsort
SELECT + cor0.col1 + col2 * - cor0.col0 * - col2 AS col1 FROM tab2 cor0
----
114093
5134
52787

query I rowsort
SELECT ALL - col2 * - col0 AS col1 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT DISTINCT + col0 + cor0.col1 * col0 AS col1 FROM tab1 cor0
----
1120
704
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-4863
SELECT DISTINCT + col1 DIV ( - col1 ) FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-4863
SELECT DISTINCT + col1 / ( - col1 ) FROM tab1
----
-1

query I rowsort
SELECT col1 * 8 * - 41 AS col0 FROM tab2
----
-10168
-19352
-5576

query I rowsort
SELECT col0 + 62 FROM tab2
----
140
141
69

query I rowsort
SELECT ALL - 62 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to d2579f9395350eda865ff3a2d38a74f6

query I rowsort
SELECT DISTINCT + - col1 * col0 + - 1 - col1 * + col1 FROM tab1 AS cor0
----
-1210
-741
-755

query I rowsort
SELECT 18 - col0 * + tab0.col0 FROM tab0
----
-1207
-558
-7903

query I rowsort
SELECT ( col2 + col1 ) FROM tab0
----
119
173
98

query I rowsort
SELECT 86 + col0 AS col2 FROM tab2
----
164
165
93

query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab1, tab2 cor0, tab1 AS cor1
----
972 values hashing to 4c0813b2179303fdf58f082d81d6d03c

query I rowsort
SELECT + ( tab1.col0 ) + - 71 * - 35 AS col0 FROM tab1
----
2488
2549
2565

query I rowsort
SELECT ALL - col1 + - col2 AS col2 FROM tab1 cor0
----
-109
-67
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col2 * cor0.col2 * - col1 + - col2 * cor0.col2 + - 74 * col1 col0 FROM tab0 AS cor0
----
-7082
598426
86201

query I rowsort
SELECT ALL - col2 * col1 + + ( col0 ) FROM tab1 cor0
----
-1168
-1401
-506

query I rowsort
SELECT DISTINCT + col0 * col0 - - col0 AS col0 FROM tab1 AS cor0
----
12
4160
6480

query I rowsort
SELECT + tab2.col0 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT 32 * 75 AS col2 FROM tab1 AS cor0
----
2400
2400
2400

query I rowsort
SELECT - cor0.col2 * cor0.col0 + - col1 AS col1 FROM tab1 AS cor0
----
-188
-3658
-7693

query I rowsort
SELECT col0 + - 38 AS col2 FROM tab1
----
-35
26
42

query I rowsort
SELECT DISTINCT + 67 * - col1 AS col1 FROM tab0
----
-5762
-6097
-6499

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( - 61 AS REAL ) FROM tab1, tab0, tab0 AS cor0
----
-61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 75 col0 FROM tab0
----
-75

query I rowsort
SELECT + cor1.col1 FROM tab2, tab2 cor0, tab0 cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT - - col2 + ( + col0 ) * + col0 FROM tab0 cor0
----
1226
609
8003

onlyif mysql # use DIV operator for integer division
query I rowsort label-4886
SELECT DISTINCT - col2 DIV + col0 col2 FROM tab1 AS cor0
----
-1
-18
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4886
SELECT DISTINCT - col2 / + col0 col2 FROM tab1 AS cor0
----
-1
-18
0

query I rowsort
SELECT - col0 * col1 + 80 * + col2 + col0 * 86 FROM tab2
----
2545
4186
8491

query I rowsort
SELECT col1 + - col0 * tab0.col1 + + col0 FROM tab0
----
-1954
-3263
-7919

onlyif mysql # use DIV operator for integer division
query I rowsort label-4889
SELECT DISTINCT + col0 + + col0 DIV - 20 + - ( col2 ) DIV - col0 FROM tab0
----
24
34
85

skipif mysql # not compatible
query I rowsort label-4889
SELECT DISTINCT + col0 + + col0 / - 20 + - ( col2 ) / - col0 FROM tab0
----
24
34
85

query I rowsort
SELECT tab0.col0 + + col1 AS col1 FROM tab0
----
110
132
180

query I rowsort
SELECT DISTINCT col0 + col2 * + col2 + + col0 AS col1 FROM tab1
----
2922
3377
9376

query I rowsort
SELECT - col1 - + col1 * + 50 AS col2 FROM tab2 AS cor0
----
-1581
-3009
-867

query I rowsort
SELECT - col1 + - col0 + - 79 FROM tab0 cor0
----
-189
-211
-259

query I rowsort
SELECT DISTINCT - 74 * - col2 AS col2 FROM tab2 cor0
----
1924
1998
2812

query I rowsort
SELECT ALL + - 24 * col0 FROM tab1 AS cor0
----
-1536
-1920
-72

onlyif mysql # use DIV operator for integer division
query I rowsort label-4896
SELECT + 26 DIV + col1 AS col2 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4896
SELECT + 26 / + col1 AS col2 FROM tab2
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + ( col2 ) + col0 col1 FROM tab0 AS cor0
----
70
7387
816

query I rowsort
SELECT - col2 * + col0 AS col0 FROM tab0
----
-35
-7298
-792

query I rowsort
SELECT + - col1 * - ( - cor0.col1 ) + + col2 AS col1 FROM tab0 AS cor0
----
-7363
-8199
-9408

query I rowsort
SELECT - col0 * - col0 + col2 * col0 FROM tab2 AS cor0
----
238
8112
9243

query I rowsort
SELECT + col1 + ( col2 ) FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT 63 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to c3eea92c46f2c49716f386a58b575025

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + ( - col1 ) - + col1 col1 FROM tab2
----
-17
-31
-59

query I rowsort
SELECT col2 - + ( - tab0.col2 * col0 ) AS col2 FROM tab0
----
36
7380
825

query I rowsort
SELECT + col2 + + ( - col0 ) AS col1 FROM tab2
----
-41
-52
20

query I rowsort
SELECT DISTINCT col2 - col1 * col2 FROM tab0
----
-2805
-7380
-96

query I rowsort
SELECT + cor0.col2 * - col0 * col1 + col0 - col0 FROM tab1 AS cor0
----
-36480
-4212
-99840

query I rowsort
SELECT - col2 + + 74 - - 4 FROM tab2 AS cor0
----
40
51
52

query I rowsort
SELECT - col2 + + 98 - + col0 FROM tab1
----
-23
-78
41

query I rowsort
SELECT - col2 * ( + cor0.col1 ) + cor0.col2 - - 53 AS col1 FROM tab2 AS cor0
----
-1455
-555
-757

query I rowsort
SELECT DISTINCT - 54 - col2 AS col0 FROM tab2 AS cor0
----
-80
-81
-92

query I rowsort
SELECT ( - col2 ) + col2 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT col1 + + col0 * + col2 AS col0 FROM tab0 AS cor0
----
132
7389
878

onlyif mysql # use DIV operator for integer division
query I rowsort label-4914
SELECT ALL - col1 DIV - col1 AS col0 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4914
SELECT ALL - col1 / - col1 AS col0 FROM tab0
----
1
1
1

query I rowsort
SELECT ALL + 62 * + col0 * col0 AS col2 FROM tab2 cor0
----
3038
377208
386942

onlyif mysql # use DIV operator for integer division
query I rowsort label-4916
SELECT DISTINCT + col2 DIV + col1 FROM tab2 AS cor0
----
0
2

skipif mysql # not compatible
query I rowsort label-4916
SELECT DISTINCT + col2 / + col1 FROM tab2 AS cor0
----
0
2

query I rowsort
SELECT ALL 66 * + col1 * - col0 AS col2 FROM tab1 AS cor0
----
-42240
-5148
-68640

skipif mysql # not compatible
query I rowsort
SELECT + CAST ( + col2 AS REAL ) AS col0 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT ALL + col0 * 19 FROM tab2 AS cor0
----
133
1482
1501

query I rowsort
SELECT + 54 * - col2 FROM tab2 AS cor0
----
-1404
-1458
-2052

onlyif mysql # use DIV operator for integer division
query I rowsort label-4921
SELECT + col0 + col2 DIV ( ( + col1 ) * col0 ) FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-4921
SELECT + col0 + col2 / ( ( + col1 ) * col0 ) FROM tab1 AS cor0
----
3
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * col2 col1 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT - ( 62 ) AS col0 FROM tab0
----
-62
-62
-62

query I rowsort
SELECT + tab1.col0 * - col1 FROM tab1
----
-1040
-640
-78

query I rowsort
SELECT DISTINCT + 22 - col1 FROM tab1
----
-4
12
9

query I rowsort
SELECT DISTINCT + - 80 FROM tab0 AS cor0
----
-80

query I rowsort
SELECT ALL + col2 + - col0 * + col1 * 3 AS col0 FROM tab0 AS cor0
----
-10184
-24215
-6159

query I rowsort
SELECT - 10 + ( - tab0.col0 ) FROM tab0
----
-34
-45
-99

query I rowsort
SELECT 81 * cor0.col2 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to b03a487d842d1b1b52d4eddc48b27ad7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4930
SELECT + ( + col0 ) + tab0.col2 / CAST( NULL AS SIGNED ) + col2 * - col0 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4930
SELECT + ( + col0 ) + tab0.col2 / CAST ( NULL AS INTEGER ) + col2 * - col0 AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - ( - col0 ) - + col1 AS col1 FROM tab0
----
-2
-62

query I rowsort
SELECT + col2 + - col2 + - col0 FROM tab1
----
-3
-64
-80

query I rowsort
SELECT ALL + + ( cor0.col2 ) * + col0 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT ALL + - 18 - - col0 FROM tab1 cor0
----
-15
46
62

query I rowsort
SELECT DISTINCT - - col1 + col1 + col1 AS col2 FROM tab0 AS cor0
----
258
273
291

query I rowsort
SELECT DISTINCT + col2 * col2 + ( col1 ) FROM tab0 AS cor0
----
1175
6815
98

query I rowsort
SELECT + col0 + + cor0.col1 AS col1 FROM tab0 cor0
----
110
132
180

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4938
SELECT DISTINCT - + cor0.col2 + col0 * CAST( NULL AS DECIMAL ) AS col0 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4938
SELECT DISTINCT - + cor0.col2 + col0 * CAST ( NULL AS REAL ) AS col0 FROM tab0 cor0
----
NULL

query I rowsort
SELECT + cor0.col0 * col0 + 66 FROM tab0 AS cor0
----
1291
642
7987

query I rowsort
SELECT ALL - + 8 * cor0.col0 FROM tab2 AS cor0
----
-56
-624
-632

query I rowsort
SELECT DISTINCT - + ( cor0.col0 ) + + cor0.col0 * col0 + - col1 FROM tab1 AS cor0
----
-20
4022
6307

onlyif mysql # use DIV operator for integer division
query I rowsort label-4942
SELECT DISTINCT 52 * col1 + + col1 DIV - col0 FROM tab0 AS cor0
----
4469
4731
5042

skipif mysql # not compatible
query I rowsort label-4942
SELECT DISTINCT 52 * col1 + + col1 / - col0 FROM tab0 AS cor0
----
4469
4731
5042

query I rowsort
SELECT ALL - ( + cor0.col1 ) * - 65 AS col2 FROM tab0 AS cor0
----
5590
5915
6305

query I rowsort
SELECT - col0 * cor0.col1 + + col0 AS col0 FROM tab2 AS cor0
----
-1264
-210
-4524

query I rowsort
SELECT DISTINCT - ( 9 ) FROM tab0, tab2 cor0
----
-9

query I rowsort
SELECT - col1 + - 70 * - col2 FROM tab0
----
-27
2224
5649

query I rowsort
SELECT ALL - ( 23 ) * cor0.col2 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 804526bae2040ddaed37312e1a646472

onlyif mysql # use DIV operator for integer division
query I rowsort label-4948
SELECT + col1 + - cor0.col1 * 16 DIV col2 AS col0 FROM tab1 AS cor0
----
11
19
8

skipif mysql # not compatible
query I rowsort label-4948
SELECT + col1 + - cor0.col1 * 16 / col2 AS col0 FROM tab1 AS cor0
----
11
19
8

query I rowsort
SELECT 84 + 72 FROM tab1, tab1 AS cor0
----
9 values hashing to 4de85b31fd319b557570fc53828d1dd3

query I rowsort
SELECT col0 + + col1 * - cor0.col2 FROM tab2 AS cor0
----
-1456
-567
-830

query I rowsort
SELECT ALL col2 * 23 + col1 FROM tab2 cor0
----
652
657
891

query I rowsort
SELECT ALL + tab2.col0 * 37 + col2 AS col0 FROM tab2
----
286
2912
2961

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4953
SELECT ALL CAST( + cor0.col0 AS SIGNED ) * + cor0.col2 AS col0 FROM tab0 AS cor0
----
35
7298
792

skipif mysql # not compatible
query I rowsort label-4953
SELECT ALL CAST ( + cor0.col0 AS INTEGER ) * + cor0.col2 AS col0 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT DISTINCT col2 - + col1 * col2 AS col1 FROM tab1 AS cor0
----
-1152
-1350
-513

query I rowsort
SELECT DISTINCT 90 AS col2 FROM tab1 AS cor0
----
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + 96 col1 FROM tab2 AS cor0
----
2496
2592
3648

query I rowsort
SELECT - cor0.col1 * 42 AS col0 FROM tab2 AS cor0
----
-1302
-2478
-714

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab1 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab0 AS cor2
----
3645 values hashing to 0705df526be8eeded96d0c20ae938712

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 92 * - cor0.col2 col0 FROM tab1 AS cor0
----
4968
5244
8832

query I rowsort
SELECT DISTINCT + - ( 75 ) + - col2 FROM tab0 AS cor0
----
-108
-157
-76

query I rowsort
SELECT + ( - col0 ) * col1 AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT + 17 * + col2 AS col0 FROM tab2 AS cor0
----
442
459
646

query I rowsort
SELECT DISTINCT - + 23 * - col0 AS col1 FROM tab1 AS cor0
----
1472
1840
69

query I rowsort
SELECT + ( col1 ) + - col2 AS col0 FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT DISTINCT + + col1 * - col1 AS col0 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT DISTINCT ( cor0.col2 ) FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT ALL + col2 * 31 FROM tab1 AS cor0
----
1674
1767
2976

query I rowsort
SELECT ALL + 68 AS col1 FROM tab1 AS cor0
----
68
68
68

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4969
SELECT + - col1 - - col1 / - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4969
SELECT + - col1 - - col1 / - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT tab1.col0 FROM tab2, tab1 AS cor0 CROSS JOIN tab1, tab0 cor1
----
3
64
80

query I rowsort
SELECT 0 * - cor1.col2 + cor0.col1 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT col1 * - col1 * + 41 FROM tab0 AS cor0
----
-303236
-339521
-385769

query I rowsort
SELECT ALL - col1 + - col2 * 51 AS col0 FROM tab2 AS cor0
----
-1385
-1408
-1955

query I rowsort
SELECT + col1 * 60 + col0 AS col2 FROM tab1 AS cor0
----
1563
664
860

query I rowsort
SELECT + col2 * - col0 + + col0 FROM tab1 AS cor0
----
-159
-3584
-7600

onlyif mysql # use DIV operator for integer division
query I rowsort label-4976
SELECT ALL - col1 DIV cor0.col0 + - ( col2 ) * - col1 FROM tab1 AS cor0
----
1248
1396
570

skipif mysql # not compatible
query I rowsort label-4976
SELECT ALL - col1 / cor0.col0 + - ( col2 ) * - col1 FROM tab1 AS cor0
----
1248
1396
570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + col0 col0 FROM tab2
----
137
38
96

query I rowsort
SELECT ALL - - 50 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col1 col1 FROM tab0, tab1 AS cor0, tab2 cor1, tab0 AS cor2
----
81 values hashing to d7d3fabcafbed14f0d6ffd37195c971c

query I rowsort
SELECT ALL - 20 FROM tab1, tab1 AS cor0
----
9 values hashing to f1cccb95c90889319e7a51e4ae9475bb

query I rowsort
SELECT ALL col2 * 68 AS col0 FROM tab2
----
1768
1836
2584

onlyif mysql # use DIV operator for integer division
query I rowsort label-4982
SELECT col1 * + 65 + 26 * col0 DIV col2 FROM tab1
----
1691
679
866

skipif mysql # not compatible
query I rowsort label-4982
SELECT col1 * + 65 + 26 * col0 / col2 FROM tab1
----
1691
679
866

query I rowsort
SELECT - ( - 6 ) AS col1 FROM tab2 cor0
----
6
6
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + CAST ( cor0.col2 AS REAL ) + + tab2.col0 col0 FROM tab2, tab0 AS cor0
----
9 values hashing to b4ebc83f877e470e18dc15ed6c0cf8e8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 97 col1 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-4986
SELECT - + col2 DIV + col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4986
SELECT - + col2 / + col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - - col1 * + ( cor0.col0 ) + + col0 FROM tab2 AS cor0
----
1422
224
4680

query I rowsort
SELECT + + col0 + - col2 * + col0 AS col2 FROM tab2 AS cor0
----
-182
-1950
-2923

query I rowsort
SELECT - col2 * 84 + + col2 FROM tab2 AS cor0
----
-2158
-2241
-3154

query I rowsort
SELECT cor0.col0 * col0 * ( cor0.col2 ) + - col0 FROM tab2 AS cor0
----
1316
158106
237079

query I rowsort
SELECT - col2 + col2 - + col2 * + cor0.col1 FROM tab2 AS cor0
----
-1534
-646
-837

onlyif mysql # use DIV operator for integer division
query I rowsort label-4992
SELECT - col2 DIV col0 AS col1 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4992
SELECT - col2 / col0 AS col1 FROM tab0 AS cor0
----
-1
0
0

query I rowsort
SELECT + + col1 + col1 - - col1 AS col0 FROM tab2 AS cor0
----
177
51
93

query I rowsort
SELECT - col0 * 70 + - col0 FROM tab2 AS cor0
----
-497
-5538
-5609

onlyif mysql # use DIV operator for integer division
query I rowsort label-4995
SELECT + + cor0.col2 * col1 DIV - col2 FROM tab0 AS cor0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-4995
SELECT + + cor0.col2 * col1 / - col2 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT ALL + - ( 54 ) + - col0 FROM tab0 AS cor0
----
-143
-78
-89

onlyif mysql # use DIV operator for integer division
query I rowsort label-4997
SELECT + 35 + - 91 * + col0 DIV - col0 col1 FROM tab1 AS cor0
----
126
126
126

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4997
SELECT + 35 + - 91 * + col0 / - col0 col1 FROM tab1 AS cor0
----
126
126
126

query I rowsort
SELECT DISTINCT tab1.col0 * + tab1.col0 FROM tab1
----
4096
6400
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 col2 FROM tab0, tab2 cor0, tab1 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

query I rowsort
SELECT - + col0 * col0 AS col1 FROM tab1 AS cor0
----
-4096
-6400
-9

query I rowsort
SELECT 43 + col2 FROM tab0 AS cor0
----
125
44
76

query I rowsort
SELECT 25 AS col1 FROM tab2 cor0
----
25
25
25

query I rowsort
SELECT ALL col1 * + tab2.col0 + + tab2.col0 FROM tab2
----
1422
224
4680

query I rowsort
SELECT DISTINCT col1 * col2 * col0 + tab2.col2 FROM tab2
----
119678
51072
5886

query I rowsort
SELECT ALL col0 * tab0.col2 AS col0 FROM tab0 WHERE NOT - col1 <> NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-5006
SELECT DISTINCT - col1 + + col1 DIV col1 FROM tab2
----
-16
-30
-58

skipif mysql # not compatible
query I rowsort label-5006
SELECT DISTINCT - col1 + + col1 / col1 FROM tab2
----
-16
-30
-58

query III rowsort
SELECT ALL * FROM tab1 WHERE + col1 BETWEEN NULL AND ( NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE NULL <= - col2
----

query I rowsort
SELECT ALL + 33 * - tab1.col2 AS col1 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to ae1c98d7bd78c40433ff0ba5c80991b3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 25 col1 FROM tab0
----
-25
-25
-25

query I rowsort
SELECT ALL - 87 AS col0 FROM tab2
----
-87
-87
-87

onlyif mysql # use DIV operator for integer division
query I rowsort label-5012
SELECT tab2.col0 DIV - 24 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to fea1228aa6b7893233784172d25555d2

skipif mysql # not compatible
query I rowsort label-5012
SELECT tab2.col0 / - 24 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to fea1228aa6b7893233784172d25555d2

query I rowsort
SELECT + 11 + - col2 AS col0 FROM tab0
----
-22
-71
10

query I rowsort
SELECT DISTINCT col2 * - col1 AS col1 FROM tab1
----
-1248
-1404
-570

query I rowsort
SELECT 61 FROM tab1, tab1 AS cor0
----
9 values hashing to 07149905a72bd87553381f34d19ed290

query I rowsort
SELECT + col0 - col0 * - ( + col1 ) FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT DISTINCT + + col0 * ( col0 ) - + col0 * - col2 FROM tab1 AS cor0
----
14080
171
7744

onlyif mysql # use DIV operator for integer division
query I rowsort label-5018
SELECT ALL + - col1 DIV 20 FROM tab0 AS cor0
----
-4
-4
-4

skipif mysql # not compatible
query I rowsort label-5018
SELECT ALL + - col1 / 20 FROM tab0 AS cor0
----
-4
-4
-4

query I rowsort
SELECT col2 * col1 - + col0 * - col0 * col0 FROM tab1 AS cor0
----
1431
262714
513248

query I rowsort
SELECT DISTINCT - - 84 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
84

onlyif mysql # use DIV operator for integer division
query I rowsort label-5021
SELECT DISTINCT - col1 - - col1 DIV 46 AS col1 FROM tab2
----
-17
-31
-58

skipif mysql # not compatible
query I rowsort label-5021
SELECT DISTINCT - col1 - - col1 / 46 AS col1 FROM tab2
----
-17
-31
-58

query I rowsort
SELECT DISTINCT - col1 * - ( + ( - col1 ) ) + 13 AS col1 FROM tab0
----
-7383
-8268
-9396

query I rowsort
SELECT 16 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to ee5bde9f68ee828e8cd86b0d590090bc

query I rowsort
SELECT ALL col0 - - col0 AS col0 FROM tab1
----
128
160
6

query I rowsort
SELECT ALL - tab1.col0 AS col0 FROM tab1, tab0, tab1 AS cor0, tab2
----
81 values hashing to 08e380e50b0cb64601bc84e5254deef4

query I rowsort
SELECT DISTINCT col2 - - ( - col1 * col1 + 32 ) FROM tab0
----
-7331
-8167
-9376

query I rowsort
SELECT ALL + - col0 + ( - col2 ) FROM tab1 AS cor0
----
-121
-176
-57

query I rowsort
SELECT DISTINCT + + col0 * - cor0.col1 + - col1 AS col2 FROM tab2 AS cor0
----
-1360
-248
-4661

query I rowsort
SELECT + col1 + ( + cor0.col0 ) AS col2 FROM tab2 AS cor0
----
137
38
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 39 * + 32 * + col1 col0 FROM tab1
----
-12480
-16224
-32448

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 43 + - ( - tab0.col1 + - ( - ( col0 ) ) ) col1 FROM tab0
----
105
105
45

query I rowsort
SELECT DISTINCT + col2 * - ( col0 + - ( + 46 ) ) FROM tab2
----
-1254
-832
1053

query I rowsort
SELECT + + 73 AS col1 FROM tab0 AS cor0
----
73
73
73

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5034
SELECT + CAST( NULL AS SIGNED ) * + col0 - - col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5034
SELECT + CAST ( NULL AS INTEGER ) * + col0 - - col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + ( ( + col2 ) ) + ( col2 * tab2.col0 ) AS col0 FROM tab2
----
2054
216
3040

query I rowsort
SELECT - - col1 + col2 * col2 FROM tab1 cor0
----
2942
3259
9229

onlyif mysql # use DIV operator for integer division
query I rowsort label-5037
SELECT ALL + col0 - + col1 DIV ( + col2 ) AS col0 FROM tab1 cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-5037
SELECT ALL + col0 - + col1 / ( + col2 ) AS col0 FROM tab1 cor0
----
3
64
80

query I rowsort
SELECT DISTINCT col1 + cor0.col1 AS col0 FROM tab1 AS cor0
----
20
26
52

query I rowsort
SELECT ALL - + ( - col0 ) * col1 + col0 FROM tab2 AS cor0
----
1422
224
4680

onlyif mysql # use DIV operator for integer division
query I rowsort label-5040
SELECT ALL + col2 * col1 - + col0 DIV col0 AS col1 FROM tab2 AS cor0
----
1533
645
836

skipif mysql # not compatible
query I rowsort label-5040
SELECT ALL + col2 * col1 - + col0 / col0 AS col1 FROM tab2 AS cor0
----
1533
645
836

query I rowsort
SELECT - + col2 * + col2 AS col0 FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT ALL + cor0.col2 + col0 AS col2 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT DISTINCT 77 + col1 FROM tab0 AS cor0
----
163
168
174

query I rowsort
SELECT DISTINCT cor0.col2 AS col2 FROM tab0, tab1 AS cor0
----
54
57
96

query I rowsort
SELECT + + col0 * + col2 FROM tab2 cor0
----
189
2028
3002

query I rowsort
SELECT ALL - cor0.col2 * + col0 + + col2 FROM tab2 AS cor0
----
-162
-2002
-2964

onlyif mysql # use DIV operator for integer division
query I rowsort label-5047
SELECT DISTINCT - 14 DIV col0 AS col2 FROM tab1
----
-4
0

skipif mysql # not compatible
query I rowsort label-5047
SELECT DISTINCT - 14 / col0 AS col2 FROM tab1
----
-4
0

query I rowsort
SELECT ALL + + col2 + col1 * - col1 AS col2 FROM tab0 AS cor0
----
-7363
-8199
-9408

onlyif mysql # use DIV operator for integer division
query I rowsort label-5049
SELECT col2 + cor0.col1 DIV + col2 FROM tab0 AS cor0
----
35
83
98

skipif mysql # not compatible
query I rowsort label-5049
SELECT col2 + cor0.col1 / + col2 FROM tab0 AS cor0
----
35
83
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + col1 - col2 * col0 col1 FROM tab1
----
-133
-3574
-7587

onlyif mysql # use DIV operator for integer division
query I rowsort label-5051
SELECT ALL + col0 - col1 DIV col0 FROM tab1
----
-5
64
80

skipif mysql # not compatible
query I rowsort label-5051
SELECT ALL + col0 - col1 / col0 FROM tab1
----
-5
64
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-5052
SELECT + tab1.col1 DIV col1 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5052
SELECT + tab1.col1 / col1 FROM tab1
----
1
1
1

query I rowsort
SELECT col2 * col1 + + col1 - col0 FROM tab2 cor0
----
1515
584
861

query I rowsort
SELECT - col1 * col1 + - col1 FROM tab0 AS cor0
----
-7482
-8372
-9506

query I rowsort
SELECT DISTINCT + col0 + - col0 AS col0 FROM tab1
----
0

query I rowsort
SELECT ALL col2 * col1 - col2 * - tab0.col1 AS col0 FROM tab0
----
14924
194
5676

query I rowsort
SELECT DISTINCT tab1.col0 - - col1 * - col2 AS col1 FROM tab1
----
-1168
-1401
-506

query I rowsort
SELECT ALL - 9 * col2 AS col1 FROM tab2 AS cor0
----
-234
-243
-342

query I rowsort
SELECT ALL col2 + + cor0.col2 FROM tab2 cor0
----
52
54
76

query I rowsort
SELECT DISTINCT + col0 * + col1 - col1 FROM tab1 AS cor0
----
1027
52
630

onlyif mysql # use DIV operator for integer division
query I rowsort label-5061
SELECT DISTINCT + - col1 DIV - col1 AS col0 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5061
SELECT DISTINCT + - col1 / - col1 AS col0 FROM tab1 AS cor0
----
1

query I rowsort
SELECT ALL + col2 + col2 * - cor0.col0 FROM tab1 AS cor0
----
-108
-3591
-7584

query I rowsort
SELECT - 8 * + cor0.col0 AS col1 FROM tab1 AS cor0
----
-24
-512
-640

query I rowsort
SELECT ALL col2 * cor0.col0 + col0 AS col0 FROM tab2 AS cor0
----
196
2106
3081

onlyif mysql # use DIV operator for integer division
query I rowsort label-5065
SELECT DISTINCT - col2 + + col1 DIV - col1 FROM tab2 AS cor0
----
-27
-28
-39

skipif mysql # not compatible
query I rowsort label-5065
SELECT DISTINCT - col2 + + col1 / - col1 FROM tab2 AS cor0
----
-27
-28
-39

query I rowsort
SELECT ALL - - col1 + cor0.col2 * col1 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT DISTINCT - ( col0 ) + - col0 FROM tab1
----
-128
-160
-6

query I rowsort
SELECT - col1 + ( - tab2.col1 ) FROM tab2
----
-118
-34
-62

query I rowsort
SELECT DISTINCT + tab0.col2 FROM tab0, tab1, tab1 AS cor0
----
1
33
82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5070
SELECT + CAST( NULL AS SIGNED ) * 13 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5070
SELECT + CAST ( NULL AS INTEGER ) * 13 AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + ( - col0 ) + tab1.col2 FROM tab1
----
-7
16
51

onlyif mysql # use DIV operator for integer division
query I rowsort label-5072
SELECT + col0 * + 86 * col0 - + col1 DIV tab1.col1 AS col2 FROM tab1
----
352255
550399
773

skipif mysql # not compatible
query I rowsort label-5072
SELECT + col0 * + 86 * col0 - + col1 / tab1.col1 AS col2 FROM tab1
----
352255
550399
773

query I rowsort
SELECT DISTINCT + cor0.col2 AS col1 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
1
33
82

query I rowsort
SELECT ( - col1 ) + - col2 * col0 AS col1 FROM tab0
----
-132
-7389
-878

query I rowsort
SELECT + 25 * - tab2.col0 AS col1 FROM tab2
----
-175
-1950
-1975

query I rowsort
SELECT DISTINCT col2 + col1 * tab0.col1 FROM tab0
----
7429
8363
9410

query I rowsort
SELECT + col2 * col2 + col0 AS col0 FROM tab0
----
1113
36
6813

onlyif mysql # use DIV operator for integer division
query I rowsort label-5078
SELECT + col2 * - col0 * + col1 - + col0 DIV col2 col2 FROM tab0
----
-3430
-664119
-68112

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5078
SELECT + col2 * - col0 * + col1 - + col0 / col2 col2 FROM tab0
----
-3430
-664119
-68112

query I rowsort
SELECT ALL ( cor0.col0 ) * + col0 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT DISTINCT - + ( col0 ) + - col1 AS col1 FROM tab2 AS cor0
----
-137
-38
-96

query I rowsort
SELECT ALL + 71 * - cor0.col2 + - col1 FROM tab2 AS cor0
----
-1905
-1948
-2715

query I rowsort
SELECT ALL + 33 AS col0 FROM tab2 AS cor0
----
33
33
33

query I rowsort
SELECT + col0 + col2 * cor0.col1 * + col1 FROM tab2 AS cor0
----
11061
25954
90584

query III rowsort
SELECT * FROM tab0 WHERE NULL <> col1 / col2 + - col2
----

query I rowsort
SELECT col2 * + col2 + + col2 FROM tab2
----
1482
702
756

query I rowsort
SELECT DISTINCT - col0 - tab1.col1 AS col0 FROM tab1
----
-29
-74
-93

query I rowsort
SELECT ALL + col0 - tab1.col0 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT - col2 * tab1.col1 + tab1.col2 AS col0 FROM tab1
----
-1152
-1350
-513

query I rowsort
SELECT ALL col2 + - col2 + col0 AS col0 FROM tab1 WHERE NULL <> NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-5090
SELECT col2 + - col0 * tab1.col2 + - col0 DIV tab1.col2 FROM tab1
----
-108
-3592
-7584

skipif mysql # not compatible
query I rowsort label-5090
SELECT col2 + - col0 * tab1.col2 + - col0 / tab1.col2 FROM tab1
----
-108
-3592
-7584

query I rowsort
SELECT - col2 * tab1.col2 AS col2 FROM tab1
----
-2916
-3249
-9216

query I rowsort
SELECT + tab1.col0 + - col2 AS col1 FROM tab1
----
-16
-51
7

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 * col0 = col1
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab2.col1 + - col1 col1 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL + col1 * + col0 * + col1 + col2 AS col0 FROM tab2
----
22869
271544
6754

query I rowsort
SELECT DISTINCT col0 * col0 + col0 * tab2.col1 AS col2 FROM tab2
----
10686
266
7584

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab1 WHERE NOT NULL NOT BETWEEN + col0 AND NULL
----

query I rowsort
SELECT ALL tab0.col0 * col0 * - col0 + - col2 AS col2 FROM tab0
----
-13857
-42876
-705051

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NULL ) <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * col2 + + tab1.col2 * col1 col0 FROM tab1
----
-1512
-2679
-7968

query I rowsort
SELECT + col1 * col0 + col0 + - col2 FROM tab0
----
2055
3429
8106

query I rowsort
SELECT col0 * + col0 FROM tab1 WHERE NOT col2 >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * + tab2.col2 * - col0 - + col0 col1 FROM tab2
----
119574
50955
5852

query I rowsort
SELECT col0 * + col2 + col2 AS col1 FROM tab0
----
36
7380
825

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col0 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + tab0.col0 col1 FROM tab0
----
171
36
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-5107
SELECT DISTINCT col0 DIV col0 AS col2 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-5107
SELECT DISTINCT col0 / col0 AS col2 FROM tab0
----
1

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL <= ( NULL )
----

query I rowsort
SELECT - col1 * + col2 * col0 FROM tab2
----
-119652
-51034
-5859

query I rowsort
SELECT DISTINCT col2 + - col2 + - col1 FROM tab2
----
-17
-31
-59

query I rowsort
SELECT + col0 * - col0 + + col1 + - col1 AS col2 FROM tab0
----
-1225
-576
-7921

query I rowsort
SELECT ALL + + col2 * col2 AS col1 FROM tab2 AS cor0
----
1444
676
729

onlyif mysql # use DIV operator for integer division
query I rowsort label-5113
SELECT col1 + col2 * cor0.col1 - + col0 DIV col1 FROM tab2 cor0
----
1592
659
868

skipif mysql # not compatible
query I rowsort label-5113
SELECT col1 + col2 * cor0.col1 - + col0 / col1 FROM tab2 cor0
----
1592
659
868

query I rowsort
SELECT ALL col2 * + col2 + col2 * - cor0.col2 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL col2 - - col2 AS col1 FROM tab1 AS cor0
----
108
114
192

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 col0 FROM tab1 cor0
----
-10
-13
-26

query I rowsort
SELECT col2 * + col2 + col2 AS col1 FROM tab0 AS cor0
----
1122
2
6806

query I rowsort
SELECT ALL - col0 * col0 AS col1 FROM tab0 cor0
----
-1225
-576
-7921

query I rowsort
SELECT col0 * + col1 FROM tab1 cor0
----
1040
640
78

query I rowsort
SELECT ALL col0 * col0 + col0 FROM tab0
----
1260
600
8010

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5121
SELECT CAST( - 96 AS SIGNED ) * - col1 * 71 FROM tab1
----
177216
68160
88608

skipif mysql # not compatible
query I rowsort label-5121
SELECT CAST ( - 96 AS INTEGER ) * - col1 * 71 FROM tab1
----
177216
68160
88608

query I rowsort
SELECT DISTINCT - ( + col0 ) AS col0 FROM tab1
----
-3
-64
-80

query I rowsort
SELECT DISTINCT + 35 * col0 FROM tab1
----
105
2240
2800

query I rowsort
SELECT 66 AS col2 FROM tab0 cor0
----
66
66
66

query I rowsort
SELECT col0 * 25 * + col0 FROM tab2 AS cor0
----
1225
152100
156025

onlyif mysql # use DIV operator for integer division
query I rowsort label-5126
SELECT + col2 DIV - 66 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5126
SELECT + col2 / - 66 FROM tab1 AS cor0
----
-1
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5127
SELECT - CAST( NULL AS DECIMAL ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5127
SELECT - CAST ( NULL AS REAL ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 * + col1 - col1 FROM tab2 cor0
----
272
3422
930

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5129
SELECT 91 + - cor0.col1 * CAST( + 59 AS SIGNED ) FROM tab0 AS cor0
----
-4983
-5278
-5632

skipif mysql # not compatible
query I rowsort label-5129
SELECT 91 + - cor0.col1 * CAST ( + 59 AS INTEGER ) FROM tab0 AS cor0
----
-4983
-5278
-5632

query I rowsort
SELECT ALL + - 41 * - col1 FROM tab0 AS cor0
----
3526
3731
3977

query I rowsort
SELECT - cor1.col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to b234798d4706314ba14eaad539d0aa88

query I rowsort
SELECT + col0 - - col0 * 34 * + col2 FROM tab1 AS cor0
----
124096
261200
5511

onlyif mysql # use DIV operator for integer division
query I rowsort label-5133
SELECT ALL - - col2 DIV + ( col2 + col0 ) FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5133
SELECT ALL - - col2 / + ( col2 + col0 ) FROM tab1 cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5134
SELECT - col1 * CAST( NULL AS SIGNED ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5134
SELECT - col1 * CAST ( NULL AS INTEGER ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + tab0.col2 + col0 FROM tab0
----
171
36
57

query I rowsort
SELECT + - cor0.col2 + - 40 * - col0 FROM tab2 AS cor0
----
253
3094
3122

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col2 col2 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT col0 + + ( 97 ) * - tab0.col2 FROM tab0
----
-3177
-62
-7865

query I rowsort
SELECT col1 * ( - 49 ) + col2 FROM tab2
----
-1492
-2865
-795

onlyif mysql # use DIV operator for integer division
query I rowsort label-5140
SELECT - - 7 DIV - 95 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5140
SELECT - - 7 / - 95 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + col1 + + ( col2 ) * + 40 FROM tab2 AS cor0
----
1099
1111
1537

query I rowsort
SELECT - 50 FROM tab0, tab0 AS cor0
----
9 values hashing to c7432a968c8352c12996dfa54dd4b9e8

query I rowsort
SELECT DISTINCT tab0.col0 * 29 AS col0 FROM tab0
----
1015
2581
696

onlyif mysql # use DIV operator for integer division
query I rowsort label-5144
SELECT DISTINCT + col2 DIV - col1 AS col2 FROM tab1
----
-2
-5
-7

skipif mysql # not compatible
query I rowsort label-5144
SELECT DISTINCT + col2 / - col1 AS col2 FROM tab1
----
-2
-5
-7

query I rowsort
SELECT ALL - 99 + + col2 + - col0 AS col1 FROM tab0 AS cor0
----
-106
-133
-90

query I rowsort
SELECT ALL - cor1.col1 FROM tab0, tab2 AS cor0, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to 786a240f80bef6f9c6a190e92cd4f9e8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 22 col0 FROM tab0 AS cor0
----
22
22
22

onlyif mysql # use DIV operator for integer division
query I rowsort label-5148
SELECT ALL + - col0 + 34 DIV + col0 FROM tab1 AS cor0
----
-64
-80
8

skipif mysql # not compatible
query I rowsort label-5148
SELECT ALL + - col0 + 34 / + col0 FROM tab1 AS cor0
----
-64
-80
8

onlyif mysql # use DIV operator for integer division
query I rowsort label-5149
SELECT DISTINCT + + 22 - + col2 DIV cor0.col0 FROM tab1 AS cor0
----
21
22
4

skipif mysql # not compatible
query I rowsort label-5149
SELECT DISTINCT + + 22 - + col2 / cor0.col0 FROM tab1 AS cor0
----
21
22
4

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 AS cor0, tab2 cor1, tab2, tab0 cor2
----
3645 values hashing to 35998cdc87c8b13ea047f14c9f5dc8d6

query I rowsort
SELECT cor0.col1 * cor0.col2 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 16ae0e1090cb09b93854a4788f17716b

query I rowsort
SELECT col1 * + col1 + + col0 FROM tab1 AS cor0
----
164
249
679

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5153
SELECT + CAST( - 45 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-45
-45
-45

skipif mysql # not compatible
query I rowsort label-5153
SELECT + CAST ( - 45 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-45
-45
-45

query I rowsort
SELECT ALL + col1 * cor0.col0 + cor0.col0 AS col2 FROM tab2 AS cor0
----
1422
224
4680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col0 col1 FROM tab1 AS cor0 CROSS JOIN tab0, tab0 cor1
----
27 values hashing to 729c1edda9332398299f39cd174ed840

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 40 * + col1 col2 FROM tab1 AS cor0
----
1040
400
520

query I rowsort
SELECT ALL - 95 + + 85 * + col2 FROM tab1 AS cor0
----
4495
4750
8065

query I rowsort
SELECT DISTINCT 74 + - col0 AS col0 FROM tab0 AS cor0
----
-15
39
50

query I rowsort
SELECT ALL 53 AS col0 FROM tab0
----
53
53
53

query I rowsort
SELECT 73 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496

onlyif mysql # use DIV operator for integer division
query I rowsort label-5161
SELECT ALL + col0 DIV 26 AS col2 FROM tab1
----
0
2
3

skipif mysql # not compatible
query I rowsort label-5161
SELECT ALL + col0 / 26 AS col2 FROM tab1
----
0
2
3

query I rowsort
SELECT 32 FROM tab1, tab2 AS cor0, tab2 cor1
----
27 values hashing to cf4f01ac97eb83445b1721f3ae28961a

query I rowsort
SELECT ALL + - col2 * - ( 5 ) AS col1 FROM tab0 AS cor0
----
165
410
5

query I rowsort
SELECT 90 - col1 FROM tab0
----
-1
-7
4

query I rowsort
SELECT DISTINCT - 96 - col2 FROM tab2
----
-122
-123
-134

query I rowsort
SELECT ALL + ( 20 ) * cor0.col2 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 06d9adbe26d2978844d03525d9ac7f9d

onlyif mysql # use DIV operator for integer division
query I rowsort label-5167
SELECT + col1 DIV - col1 + + col0 AS col0 FROM tab1
----
2
63
79

skipif mysql # not compatible
query I rowsort label-5167
SELECT + col1 / - col1 + + col0 AS col0 FROM tab1
----
2
63
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col0 * 94 col1 FROM tab0
----
2342
3387
8457

query I rowsort
SELECT + col1 + + ( col1 ) FROM tab0 cor0
----
172
182
194

query I rowsort
SELECT + col1 * + cor0.col1 + - col2 * + col2 FROM tab1 AS cor0
----
-2240
-3149
-9047

query I rowsort
SELECT DISTINCT col1 * col2 + + col1 * col0 * - col2 AS col0 FROM tab0 AS cor0
----
-3298
-65274
-656656

onlyif mysql # use DIV operator for integer division
query I rowsort label-5172
SELECT - col0 * - 97 + - 81 DIV col2 AS col0 FROM tab0 cor0
----
2326
3314
8633

skipif mysql # not compatible
query I rowsort label-5172
SELECT - col0 * - 97 + - 81 / col2 AS col0 FROM tab0 cor0
----
2326
3314
8633

query I rowsort
SELECT + tab2.col0 + + tab2.col0 * col2 AS col1 FROM tab2
----
196
2106
3081

query I rowsort
SELECT ALL + 36 * - col0 FROM tab1
----
-108
-2304
-2880

query I rowsort
SELECT + cor0.col1 * - col1 AS col2 FROM tab1 AS cor0
----
-100
-169
-676

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 + 81 AS col2 FROM tab2 cor0
----
81
81
81

query I rowsort
SELECT DISTINCT 82 AS col1 FROM tab2 AS cor0
----
82

query I rowsort
SELECT ALL - - col2 * + col0 + - col0 FROM tab2 AS cor0
----
182
1950
2923

query I rowsort
SELECT + - 4 * - col2 * col2 AS col1 FROM tab0 AS cor0
----
26896
4
4356

query I rowsort
SELECT + 58 * - col0 FROM tab1 AS cor0
----
-174
-3712
-4640

query I rowsort
SELECT DISTINCT - col2 * + col0 + + col1 FROM tab2 AS cor0
----
-158
-1969
-2985

query I rowsort
SELECT ALL + col1 * + 74 + 64 * col2 AS col0 FROM tab1 AS cor0
----
4388
5380
7106

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 - + 65 col0 FROM tab2 cor0
----
-34
-48
-6

query I rowsort
SELECT ALL - cor0.col0 + col1 AS col1 FROM tab0 cor0
----
2
62
62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5186
SELECT DISTINCT - + col0 * + CAST( cor0.col1 AS SIGNED ) FROM tab0 AS cor0
----
-2064
-3395
-8099

skipif mysql # not compatible
query I rowsort label-5186
SELECT DISTINCT - + col0 * + CAST ( cor0.col1 AS INTEGER ) FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT + col0 * col2 * - col0 FROM tab2 AS cor0
----
-1323
-158184
-237158

query I rowsort
SELECT DISTINCT - col2 * + ( + col0 ) FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT - col0 + + col2 * + 24 AS col1 FROM tab0 AS cor0
----
-11
1879
768

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * col0 * - 2 col0 FROM tab0
----
-16198
-4128
-6790

query I rowsort
SELECT + col0 + 67 AS col1 FROM tab0 cor0
----
102
156
91

query I rowsort
SELECT + col0 * tab1.col0 - ( col1 ) * col1 AS col1 FROM tab1
----
-667
3996
6231

query I rowsort
SELECT ALL cor0.col2 + + ( col2 ) * col0 * - ( + col1 ) FROM tab0 cor0
----
-3394
-664036
-68079

query I rowsort
SELECT + ( - 30 ) * - col1 * - 82 + 1 AS col2 FROM tab0 AS cor0
----
-211559
-223859
-238619

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5195
SELECT DISTINCT - CAST( NULL AS DECIMAL ) + cor0.col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5195
SELECT DISTINCT - CAST ( NULL AS REAL ) + cor0.col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + col0 - + 7 FROM tab1 AS cor0
----
-4
57
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * col1 col1 FROM tab1 AS cor0
----
-100
-169
-676

onlyif mysql # use DIV operator for integer division
query I rowsort label-5198
SELECT - + ( col1 ) + + col2 DIV + 25 FROM tab2 AS cor0
----
-16
-30
-58

skipif mysql # not compatible
query I rowsort label-5198
SELECT - + ( col1 ) + + col2 / + 25 FROM tab2 AS cor0
----
-16
-30
-58

onlyif mysql # use DIV operator for integer division
query I rowsort label-5199
SELECT ALL + cor0.col0 DIV + col2 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5199
SELECT ALL + cor0.col0 / + col2 FROM tab1 AS cor0
----
0
0
1

query I rowsort
SELECT + 5 * 29 FROM tab0 AS cor0
----
145
145
145

query I rowsort
SELECT + + ( col2 ) * - cor0.col0 + 74 * - 69 AS col0 FROM tab0 AS cor0
----
-12404
-5141
-5898

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5202
SELECT DISTINCT + CAST( + ( col0 ) AS SIGNED ) FROM tab2 AS cor0
----
7
78
79

skipif mysql # not compatible
query I rowsort label-5202
SELECT DISTINCT + CAST ( + ( col0 ) AS INTEGER ) FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT + col2 * - 19 + + col0 * - 87 AS col0 FROM tab0 AS cor0
----
-2715
-3064
-9301

onlyif mysql # use DIV operator for integer division
query I rowsort label-5204
SELECT DISTINCT - 87 * col0 + - col1 DIV - col1 FROM tab2 AS cor0
----
-608
-6785
-6872

skipif mysql # not compatible
query I rowsort label-5204
SELECT DISTINCT - 87 * col0 + - col1 / - col1 FROM tab2 AS cor0
----
-608
-6785
-6872

query I rowsort
SELECT ALL + - ( + col1 ) AS col0 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT + 99 * + 36 FROM tab2 AS cor0
----
3564
3564
3564

query I rowsort
SELECT DISTINCT + - col2 + 57 FROM tab1 AS cor0
----
-39
0
3

query I rowsort
SELECT - 49 + col1 * - col2 * col2 FROM tab0 AS cor0
----
-146
-611933
-93703

query I rowsort
SELECT DISTINCT - col0 * - ( col1 ) FROM tab2 AS cor0
----
1343
217
4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + + col0 col1 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT ALL - col1 * col1 * col1 + - col1 FROM tab1 cor0
----
-1010
-17602
-2210

query I rowsort
SELECT ALL + tab1.col2 + 39 FROM tab2, tab0, tab2 AS cor0, tab1
----
81 values hashing to 8f1ea1c65162b731e647254651b80cf8

query I rowsort
SELECT DISTINCT - col0 - ( col2 ) * col1 * - 73 FROM tab0
----
207150
544637
7046

query I rowsort
SELECT ALL 90 * + col1 AS col2 FROM tab2 AS cor0
----
1530
2790
5310

query I rowsort
SELECT DISTINCT - 95 + col1 FROM tab1 AS cor0
----
-69
-82
-85

onlyif mysql # use DIV operator for integer division
query I rowsort label-5216
SELECT - - 48 DIV col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5216
SELECT - - 48 / col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + col2 + 96 AS col2 FROM tab2 AS cor0
----
122
123
134

query I rowsort
SELECT - 86 + + cor0.col1 * cor0.col0 FROM tab1 AS cor0
----
-8
554
954

onlyif mysql # use DIV operator for integer division
query I rowsort label-5219
SELECT DISTINCT 51 DIV - col0 col2 FROM tab2 AS cor0
----
-7
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5219
SELECT DISTINCT 51 / - col0 col2 FROM tab2 AS cor0
----
-7
0

query I rowsort
SELECT DISTINCT col2 + col2 + + tab0.col1 * + col2 FROM tab0
----
2904
7626
99

query I rowsort
SELECT - 77 * + col0 FROM tab1 AS cor0
----
-231
-4928
-6160

query I rowsort
SELECT - col1 * col2 + col0 AS col1 FROM tab1 AS cor0
----
-1168
-1401
-506

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab1.col0 + col2 * + col1 col2 FROM tab1
----
1328
1407
634

query I rowsort
SELECT DISTINCT col1 * + col2 + - col1 FROM tab0
----
0
2752
7371

query I rowsort
SELECT 7 AS col1 FROM tab1, tab0, tab1 AS cor0, tab2
----
81 values hashing to bd991c690468eea3ef45a96817ca3617

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5226
SELECT CAST( NULL AS SIGNED ) + + ( col1 ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5226
SELECT CAST ( NULL AS INTEGER ) + + ( col1 ) AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5227
SELECT DISTINCT 86 + 31 DIV col2 FROM tab0
----
117
86

skipif mysql # not compatible
query I rowsort label-5227
SELECT DISTINCT 86 + 31 / col2 FROM tab0
----
117
86

query I rowsort
SELECT DISTINCT + 84 * col2 * col1 + col0 FROM tab2
----
128934
54343
70315

query I rowsort
SELECT - tab2.col0 * tab2.col0 AS col1 FROM tab2
----
-49
-6084
-6241

query I rowsort
SELECT col0 * col0 + + col1 * + 82 FROM tab2
----
10922
2591
7635

query I rowsort
SELECT 53 + + col1 AS col2 FROM tab2 AS cor0
----
112
70
84

query I rowsort
SELECT DISTINCT + col1 * + col0 + 35 * cor0.col2 FROM tab1 cor0
----
1968
2635
4400

query I rowsort
SELECT DISTINCT - ( - col2 ) * + 58 FROM tab0 AS cor0
----
1914
4756
58

query I rowsort
SELECT ALL + col2 + col2 + col2 * col2 FROM tab2 AS cor0
----
1520
728
783

query I rowsort
SELECT 73 * - col2 AS col1 FROM tab2 AS cor0
----
-1898
-1971
-2774

query I rowsort
SELECT ALL - col2 + - ( - col1 ) FROM tab2 AS cor0
----
-21
33
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 16 * 53 col1 FROM tab0
----
848
848
848

query I rowsort
SELECT ALL + - ( cor0.col0 ) + col2 FROM tab0 AS cor0
----
-34
-7
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + - ( col1 ) * + col1 col2 FROM tab0 AS cor0
----
-7482
-8372
-9506

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2 cor0, tab0 AS cor1, tab2, tab2 cor2
----
3645 values hashing to 489dc4a89dc53914f025e2426f93a929

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col0 col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63

query I rowsort
SELECT - ( 60 ) AS col1 FROM tab0 AS cor0
----
-60
-60
-60

query I rowsort
SELECT DISTINCT + + 78 * col1 + col0 AS col2 FROM tab1 AS cor0
----
1094
2031
844

query I rowsort
SELECT - + 17 - + 15 FROM tab1 AS cor0
----
-32
-32
-32

query I rowsort
SELECT DISTINCT - col2 * ( + col1 ) + + col0 FROM tab0 AS cor0
----
-2814
-62
-7373

query I rowsort
SELECT ALL ( + col0 ) AS col1 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT + - cor0.col2 * + 77 - - col0 FROM tab0 cor0
----
-2517
-42
-6225

query I rowsort
SELECT DISTINCT + cor0.col0 * 15 FROM tab2 AS cor0
----
105
1170
1185

query I rowsort
SELECT ALL + col0 * col1 + 28 + - col1 FROM tab0 AS cor0
----
2006
3326
8036

query I rowsort
SELECT ALL + - col0 - + ( col0 ) AS col1 FROM tab1 AS cor0
----
-128
-160
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - 34 col1 FROM tab1 AS cor0
----
-340
-442
-884

query I rowsort
SELECT DISTINCT 76 FROM tab2, tab1 cor0, tab1 AS cor1
----
76

query I rowsort
SELECT DISTINCT - col0 * ( ( - col1 ) ) + col0 AS col1 FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT DISTINCT + ( + tab1.col2 * col0 ) AS col2 FROM tab1
----
162
3648
7680

query I rowsort
SELECT 91 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to deebbcfb9c7803a34dca6bd860849afe

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2, tab2 cor1, tab1 AS cor2
----
972 values hashing to 4c46de5c1773124597e14f3b372fc4ea

query I rowsort
SELECT col0 * ( + col1 ) AS col1 FROM tab2 cor0
----
1343
217
4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-5258
SELECT + col2 + ( + cor0.col0 ) DIV - col0 AS col1 FROM tab2 AS cor0
----
25
26
37

skipif mysql # not compatible
query I rowsort label-5258
SELECT + col2 + ( + cor0.col0 ) / - col0 AS col1 FROM tab2 AS cor0
----
25
26
37

query I rowsort
SELECT col2 + + 28 FROM tab1 cor0
----
124
82
85

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab0 AS cor2
----
3645 values hashing to 2566f3fa788816c8bfc482e730aaed74

query I rowsort
SELECT DISTINCT tab2.col2 + + tab2.col2 FROM tab2, tab2 AS cor0
----
52
54
76

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab2 cor0, tab0 AS cor1, tab1, tab2 cor2
----
3645 values hashing to df00d19f178a708f636b036dcb6c6f87

query I rowsort
SELECT DISTINCT col2 + + col0 * + col0 + col0 AS col1 FROM tab2
----
6188
6358
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-5264
SELECT - 3 + col0 DIV + 64 FROM tab0
----
-2
-3
-3

skipif mysql # not compatible
query I rowsort label-5264
SELECT - 3 + col0 / + 64 FROM tab0
----
-2
-3
-3

onlyif mysql # use DIV operator for integer division
query I rowsort label-5265
SELECT DISTINCT - cor0.col1 + + col2 DIV - 44 FROM tab0 AS cor0
----
-86
-92
-97

skipif mysql # not compatible
query I rowsort label-5265
SELECT DISTINCT - cor0.col1 + + col2 / - 44 FROM tab0 AS cor0
----
-86
-92
-97

query I rowsort
SELECT - col1 * cor0.col1 AS col1 FROM tab1 cor0
----
-100
-169
-676

onlyif mysql # use DIV operator for integer division
query I rowsort label-5267
SELECT + col2 * col0 + + col1 DIV + 93 FROM tab0 AS cor0
----
36
7298
792

skipif mysql # not compatible
query I rowsort label-5267
SELECT + col2 * col0 + + col1 / + 93 FROM tab0 AS cor0
----
36
7298
792

query I rowsort
SELECT ALL + 71 AS col0 FROM tab1 AS cor0
----
71
71
71

query I rowsort
SELECT DISTINCT - - col0 * + col0 AS col1 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT col2 + - col0 AS col1 FROM tab1 cor0
----
-7
16
51

query I rowsort
SELECT + cor0.col1 + - col2 * col1 FROM tab1 AS cor0
----
-1235
-1378
-560

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5272
SELECT ALL + - 6 + + col2 * 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-5272
SELECT ALL + - 6 + + col2 * CAST ( NULL AS INTEGER ) col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + cor0.col2 col1 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT - col0 * - 3 AS col1 FROM tab2 AS cor0
----
21
234
237

query I rowsort
SELECT - + col0 * 45 FROM tab1 AS cor0
----
-135
-2880
-3600

query I rowsort
SELECT DISTINCT col1 * ( cor0.col2 * - col2 + ( col2 ) ) AS col0 FROM tab0 AS cor0
----
-604422
-90816
0

query I rowsort
SELECT ALL + col1 * - col1 + cor0.col1 AS col2 FROM tab1 AS cor0
----
-156
-650
-90

query I rowsort
SELECT ALL - col1 + 50 * ( - col2 + - col0 ) FROM tab0 cor0
----
-1897
-2936
-8641

query I rowsort
SELECT DISTINCT - cor0.col0 + col1 * col2 FROM tab1 AS cor0
----
1168
1401
506

query I rowsort
SELECT ALL col0 + ( - 11 ) AS col0 FROM tab2 AS cor0
----
-4
67
68

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5281
SELECT DISTINCT - col0 + CAST( NULL AS SIGNED ) + - 59 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5281
SELECT DISTINCT - col0 + CAST ( NULL AS INTEGER ) + - 59 AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5282
SELECT + CAST( NULL AS SIGNED ) - 91 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-5282
SELECT + CAST ( NULL AS INTEGER ) - 91 col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

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 + + 13 * + col1 * col2 + - col1 * - col1 AS col0 FROM tab2 AS cor0
----
11842
23423
8687

onlyif mysql # use DIV operator for integer division
query I rowsort label-5285
SELECT DISTINCT + + col0 DIV col1 FROM tab1 AS cor0
----
0
6

skipif mysql # not compatible
query I rowsort label-5285
SELECT DISTINCT + + col0 / col1 FROM tab1 AS cor0
----
0
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 * col0 * cor0.col1 col2 FROM tab2 AS cor0
----
-119652
-51034
-5859

query I rowsort
SELECT ALL + 23 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2

query I rowsort
SELECT - 71 * - col2 FROM tab0
----
2343
5822
71

onlyif mysql # use DIV operator for integer division
query I rowsort label-5289
SELECT ALL col1 DIV + col0 AS col1 FROM tab1 AS cor0
----
0
0
8

skipif mysql # not compatible
query I rowsort label-5289
SELECT ALL col1 / + col0 AS col1 FROM tab1 AS cor0
----
0
0
8

query I rowsort
SELECT - - cor0.col1 * col1 + col1 FROM tab1 cor0
----
110
182
702

onlyif mysql # use DIV operator for integer division
query I rowsort label-5291
SELECT + 42 DIV - col0 FROM tab0 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-5291
SELECT + 42 / - col0 FROM tab0 AS cor0
----
-1
-1
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5292
SELECT ALL - col2 DIV col0 + col1 * + col0 * - cor0.col0 FROM tab2 AS cor0
----
-106097
-1522
-358956

skipif mysql # not compatible
query I rowsort label-5292
SELECT ALL - col2 / col0 + col1 * + col0 * - cor0.col0 FROM tab2 AS cor0
----
-106097
-1522
-358956

onlyif mysql # use DIV operator for integer division
query I rowsort label-5293
SELECT - ( col0 ) DIV 86 + + col2 * col1 FROM tab0 AS cor0
----
2838
7461
97

skipif mysql # not compatible
query I rowsort label-5293
SELECT - ( col0 ) / 86 + + col2 * col1 FROM tab0 AS cor0
----
2838
7461
97

query I rowsort
SELECT DISTINCT 10 AS col1 FROM tab0, tab1, tab2 AS cor0, tab2
----
10

query I rowsort
SELECT ALL + col0 + - col0 - - col1 AS col1 FROM tab0
----
86
91
97

query I rowsort
SELECT - ( + col0 ) - + col1 AS col2 FROM tab0
----
-110
-132
-180

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + - 96 col1 FROM tab1
----
-160
-176
-99

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5298
SELECT ( - 79 ) + + tab0.col0 - - CAST( col0 AS SIGNED ) FROM tab0
----
-31
-9
99

skipif mysql # not compatible
query I rowsort label-5298
SELECT ( - 79 ) + + tab0.col0 - - CAST ( col0 AS INTEGER ) FROM tab0
----
-31
-9
99

query I rowsort
SELECT ALL - col2 * col1 * + tab1.col2 + col2 * col0 FROM tab1
----
-112128
-28842
-75654

query I rowsort
SELECT cor1.col0 AS col0 FROM tab1, tab0 cor0, tab2 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT ALL cor1.col0 AS col1 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab2.col0 + + 13 * - col2 col2 FROM tab2
----
-260
-344
-415

query I rowsort
SELECT ALL - - col0 * + col0 AS col2 FROM tab2 cor0
----
49
6084
6241

query I rowsort
SELECT ALL + 38 AS col1 FROM tab2
----
38
38
38

query I rowsort
SELECT ALL 16 FROM tab2, tab0 AS cor0
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3

query I rowsort
SELECT DISTINCT + cor0.col1 * + col2 + cor0.col1 FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT ALL ( - 87 ) FROM tab2 AS cor0
----
-87
-87
-87

onlyif mysql # use DIV operator for integer division
query I rowsort label-5308
SELECT + col1 DIV 61 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5308
SELECT + col1 / 61 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - 11 AS col2 FROM tab1 AS cor0
----
-11

query I rowsort
SELECT DISTINCT + 43 + col2 AS col0 FROM tab0
----
125
44
76

query I rowsort
SELECT + 14 + + col2 AS col2 FROM tab2
----
40
41
52

query I rowsort
SELECT DISTINCT 71 + col0 FROM tab2
----
149
150
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-5313
SELECT DISTINCT 31 DIV col0 + + col2 * + col1 FROM tab2
----
1534
646
841

skipif mysql # not compatible
query I rowsort label-5313
SELECT DISTINCT 31 / col0 + + col2 * + col1 FROM tab2
----
1534
646
841

query I rowsort
SELECT DISTINCT - col2 * + col1 - + col2 FROM tab2 AS cor0
----
-1560
-684
-864

query I rowsort
SELECT ALL - + 87 FROM tab1 AS cor0
----
-87
-87
-87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + - cor0.col1 * cor0.col1 col1 FROM tab2 AS cor0
----
-210
-3403
-954

onlyif mysql # use DIV operator for integer division
query I rowsort label-5317
SELECT DISTINCT - col2 DIV col1 + + 47 * col2 + col2 * - col1 col0 FROM tab1
----
1132
2104
3257

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5317
SELECT DISTINCT - col2 / col1 + + 47 * col2 + col2 * - col1 col0 FROM tab1
----
1132
2104
3257

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * + col2 + - col2 col0 FROM tab0 AS cor0
----
-36
-7380
-825

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5319
SELECT DISTINCT + + col1 * CAST( NULL AS SIGNED ) * 20 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5319
SELECT DISTINCT + + col1 * CAST ( NULL AS INTEGER ) * 20 AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT col2 * col1 + col1 * cor0.col0 FROM tab0 cor0
----
15561
3492
4902

query I rowsort
SELECT ALL col2 * ( col0 ) FROM tab2 cor0
----
189
2028
3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - ( col1 ) col1 FROM tab1 cor0
----
28
47
83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5323
SELECT + - cor0.col0 + CAST( + 16 AS SIGNED ) * col1 * CAST( col1 AS SIGNED ) + - col2 FROM tab0 AS cor0
----
118279
132325
150508

skipif mysql # not compatible
query I rowsort label-5323
SELECT + - cor0.col0 + CAST ( + 16 AS INTEGER ) * col1 * CAST ( col1 AS INTEGER ) + - col2 FROM tab0 AS cor0
----
118279
132325
150508

query I rowsort
SELECT DISTINCT + col0 + - col1 * col2 FROM tab2 cor0
----
-1456
-567
-830

query I rowsort
SELECT ALL - col0 + 20 AS col0 FROM tab2 AS cor0
----
-58
-59
13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + cor0.col1 + - col2 * + col0 + 80 col2 FROM tab0 AS cor0
----
1063
6684
9454

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * col2 - col1 col1 FROM tab1 AS cor0
----
1235
1378
560

query I rowsort
SELECT + col2 - col0 AS col2 FROM tab0 cor0
----
-34
-7
9

query I rowsort
SELECT ALL - - col1 + col2 * - col2 FROM tab2 cor0
----
-1427
-617
-698

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col1 - col2 col0 FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT col2 * + col2 - col0 AS col2 FROM tab0
----
-34
1065
6635

query I rowsort
SELECT DISTINCT + col0 * - col0 + col1 AS col1 FROM tab2 AS cor0
----
-18
-6025
-6224

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * 48 - cor0.col1 col0 FROM tab0 cor0
----
-49
1498
3845

query I rowsort
SELECT - 32 AS col0 FROM tab2, tab1 cor0
----
9 values hashing to ef8f93119983b962f4c81381ebf4b1e6

onlyif mysql # use DIV operator for integer division
query I rowsort label-5335
SELECT DISTINCT col0 DIV + col0 AS col0 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5335
SELECT DISTINCT col0 / + col0 AS col0 FROM tab1 AS cor0
----
1

query I rowsort
SELECT ALL col1 + - col1 * + col2 AS col2 FROM tab0 AS cor0
----
-2752
-7371
0

query I rowsort
SELECT - + col2 * col2 + + col2 - + col2 * col0 AS col2 FROM tab0 AS cor0
----
-13940
-1848
-35

query I rowsort
SELECT - + cor0.col0 - ( - col2 ) FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT + 19 FROM tab1, tab1 AS cor0
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11

query I rowsort
SELECT DISTINCT - 57 FROM tab0, tab0 cor0
----
-57

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-5342
SELECT - col0 + - col1 DIV cor0.col2 - + col2 DIV + col2 FROM tab1 cor0
----
-4
-65
-81

skipif mysql # not compatible
query I rowsort label-5342
SELECT - col0 + - col1 / cor0.col2 - + col2 / + col2 FROM tab1 cor0
----
-4
-65
-81

query I rowsort
SELECT + col0 * col1 + - cor0.col0 + ( col0 * col2 ) FROM tab0 AS cor0
----
15308
2832
3395

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5344
SELECT - - CAST( col0 AS SIGNED ) * col2 col2 FROM tab1 cor0
----
162
3648
7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5344
SELECT - - CAST ( col0 AS INTEGER ) * col2 col2 FROM tab1 cor0
----
162
3648
7680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5345
SELECT DISTINCT col2 + + CAST( NULL AS SIGNED ) * 1 AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5345
SELECT DISTINCT col2 + + CAST ( NULL AS INTEGER ) * 1 AS col0 FROM tab0
----
NULL

query I rowsort
SELECT - + col0 + 34 + col0 AS col0 FROM tab1 AS cor0
----
34
34
34

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5347
SELECT DISTINCT - tab0.col0 + + ( ( - col1 ) * CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5347
SELECT DISTINCT - tab0.col0 + + ( ( - col1 ) * CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

query I rowsort
SELECT - - col0 + + col2 * - col1 FROM tab2 AS cor0
----
-1456
-567
-830

query I rowsort
SELECT - 1 + + col0 AS col2 FROM tab0 AS cor0
----
23
34
88

onlyif mysql # use DIV operator for integer division
query I rowsort label-5350
SELECT - 19 + - col0 DIV + col0 FROM tab2 AS cor0
----
-20
-20
-20

skipif mysql # not compatible
query I rowsort label-5350
SELECT - 19 + - col0 / + col0 FROM tab2 AS cor0
----
-20
-20
-20

query I rowsort
SELECT ALL 5 + + cor0.col2 AS col2 FROM tab2 AS cor0
----
31
32
43

query I rowsort
SELECT col1 * + col2 AS col2 FROM tab2 cor0
----
1534
646
837

query I rowsort
SELECT ALL - ( col0 + + col2 ) * + ( + col2 + col1 ) AS col0 FROM tab0
----
-29583
-3528
-6783

onlyif mysql # use DIV operator for integer division
query I rowsort label-5354
SELECT + cor0.col2 + col1 * ( 86 ) DIV + col1 FROM tab0 AS cor0
----
119
168
87

skipif mysql # not compatible
query I rowsort label-5354
SELECT + cor0.col2 + col1 * ( 86 ) / + col1 FROM tab0 AS cor0
----
119
168
87

query I rowsort
SELECT 24 + - col2 * col0 AS col1 FROM tab2 cor0
----
-165
-2004
-2978

query I rowsort
SELECT ALL + - 80 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 4dde3bd5652d30396b9cadd0e2cfb680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + cor0.col1 col2 FROM tab0 cor0
----
-86
-91
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-5358
SELECT ALL 74 + + col1 DIV 21 FROM tab2 AS cor0
----
74
75
76

skipif mysql # not compatible
query I rowsort label-5358
SELECT ALL 74 + + col1 / 21 FROM tab2 AS cor0
----
74
75
76

query I rowsort
SELECT DISTINCT ( col1 ) + col2 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT cor0.col2 + + cor1.col2 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8d15ca9b890db6bb93b9a05b04326ed3

query I rowsort
SELECT + + 41 * 16 * cor0.col1 + + 58 FROM tab2 AS cor0
----
11210
20394
38762

query I rowsort
SELECT - ( 5 ) * col1 + + col1 * 13 * col0 AS col2 FROM tab1 AS cor0
----
13455
8270
884

query I rowsort
SELECT + col2 + - 27 AS col2 FROM tab2 AS cor0
----
-1
0
11

query I rowsort
SELECT + 99 * - col0 FROM tab2 AS cor0
----
-693
-7722
-7821

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 70 + + ( col2 * - ( - col2 ) ) col0 FROM tab1 AS cor0
----
2846
3179
9146

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5366
SELECT CAST( NULL AS SIGNED ) + 42 + col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5366
SELECT CAST ( NULL AS INTEGER ) + 42 + col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5367
SELECT DISTINCT + CAST( - col1 AS SIGNED ) * + col2 FROM tab2 AS cor0
----
-1534
-646
-837

skipif mysql # not compatible
query I rowsort label-5367
SELECT DISTINCT + CAST ( - col1 AS INTEGER ) * + col2 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT ALL - col0 + cor0.col1 AS col1 FROM tab0 AS cor0
----
2
62
62

query I rowsort
SELECT + ( + ( + col0 ) ) * col1 + - col2 + - col2 AS col2 FROM tab2 cor0
----
1267
163
4550

onlyif mysql # use DIV operator for integer division
query I rowsort label-5370
SELECT ALL col0 DIV 42 col0 FROM tab2
----
0
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5370
SELECT ALL col0 / 42 col0 FROM tab2
----
0
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col0 col1 FROM tab2 cor0
----
7
78
79

query I rowsort
SELECT DISTINCT + 42 FROM tab1, tab2 AS cor0
----
42

query I rowsort
SELECT DISTINCT - 16 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
-16

query I rowsort
SELECT ALL 17 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 43298e43365fccb5146ea32003753c92

query I rowsort
SELECT - - col1 * col1 + - col2 * - col0 FROM tab1 AS cor0
----
3748
7849
838

query I rowsort
SELECT - col2 * cor0.col0 * + 24 FROM tab2 cor0
----
-4536
-48672
-72048

query I rowsort
SELECT - - col2 + + col0 AS col0 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT ALL - col1 * - 21 - + 81 FROM tab0
----
1725
1830
1956

query I rowsort
SELECT - col2 + 94 + col2 AS col2 FROM tab1
----
94
94
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - 31 ) + col2 col2 FROM tab0 AS cor0
----
-30
2
51

query I rowsort
SELECT - + col0 * col1 + 14 * + cor0.col0 FROM tab0 AS cor0
----
-1728
-2905
-6853

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5382
SELECT ALL col0 + + CAST( NULL AS DECIMAL ) * + col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5382
SELECT ALL col0 + + CAST ( NULL AS REAL ) * + col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + cor0.col1 - + cor0.col1 FROM tab2, tab1 AS cor0
----
0

query I rowsort
SELECT ALL + col0 * + col1 AS col0 FROM tab2 cor0
----
1343
217
4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-5385
SELECT DISTINCT 15 + 35 DIV - col1 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-5385
SELECT DISTINCT 15 + 35 / - col1 FROM tab0
----
15

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 AS cor0, tab0 AS cor1, tab2, tab1 AS cor2
----
3645 values hashing to 5e27196f2932b25a5297ddec46b8b8f1

onlyif mysql # use DIV operator for integer division
query I rowsort label-5387
SELECT DISTINCT ( cor0.col0 ) DIV - col0 + col2 AS col1 FROM tab1 cor0
----
53
56
95

skipif mysql # not compatible
query I rowsort label-5387
SELECT DISTINCT ( cor0.col0 ) / - col0 + col2 AS col1 FROM tab1 cor0
----
53
56
95

query I rowsort
SELECT DISTINCT 46 * cor0.col1 + col0 FROM tab0 AS cor0
----
3980
4275
4497

skipif mysql # not compatible
query I rowsort
SELECT ALL - CAST ( col2 AS REAL ) * - col2 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT DISTINCT - - col0 + col0 AS col1 FROM tab1 cor0
----
128
160
6

query I rowsort
SELECT col1 + col2 * + 10 AS col0 FROM tab2
----
301
319
397

onlyif mysql # use DIV operator for integer division
query I rowsort label-5392
SELECT ALL 16 DIV tab1.col0 AS col1 FROM tab1
----
0
0
5

skipif mysql # not compatible
query I rowsort label-5392
SELECT ALL 16 / tab1.col0 AS col1 FROM tab1
----
0
0
5

query I rowsort
SELECT ALL + ( col2 + - col1 ) FROM tab1
----
28
47
83

query I rowsort
SELECT DISTINCT - tab0.col2 * col1 FROM tab0
----
-2838
-7462
-97

query I rowsort
SELECT ALL - 22 + - col2 FROM tab1 AS cor0
----
-118
-76
-79

query I rowsort
SELECT ALL - + 35 FROM tab0 cor0
----
-35
-35
-35

query I rowsort
SELECT - col1 * col0 - col2 AS col0 FROM tab0 AS cor0
----
-2097
-3396
-8181

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5398
SELECT - col0 - + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5398
SELECT - col0 - + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 * + col1 + col0 AS col1 FROM tab0 AS cor0
----
132
2862
7551

query I rowsort
SELECT ALL + cor0.col2 * ( col1 ) FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT ALL cor0.col0 * ( col1 * col2 ) AS col1 FROM tab0 AS cor0
----
3395
664118
68112

query I rowsort
SELECT DISTINCT col1 + + 67 AS col2 FROM tab0 AS cor0
----
153
158
164

onlyif mysql # use DIV operator for integer division
query I rowsort label-5403
SELECT ALL - - col1 DIV cor0.col1 + - col2 * col2 AS col1 FROM tab0 AS cor0
----
-1088
-6723
0

skipif mysql # not compatible
query I rowsort label-5403
SELECT ALL - - col1 / cor0.col1 + - col2 * col2 AS col1 FROM tab0 AS cor0
----
-1088
-6723
0

query I rowsort
SELECT ALL + + col0 + + 13 * - col0 AS col0 FROM tab1 AS cor0
----
-36
-768
-960

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * 70 col0 FROM tab1 cor0
----
-1820
-700
-910

query I rowsort
SELECT + col1 - - ( - col0 ) FROM tab1 AS cor0
----
-54
-67
23

onlyif mysql # use DIV operator for integer division
query I rowsort label-5407
SELECT ALL + - col1 DIV 29 FROM tab0 AS cor0
----
-2
-3
-3

skipif mysql # not compatible
query I rowsort label-5407
SELECT ALL + - col1 / 29 FROM tab0 AS cor0
----
-2
-3
-3

query I rowsort
SELECT + - col0 * col0 AS col1 FROM tab1 cor0
----
-4096
-6400
-9

query I rowsort
SELECT DISTINCT + col0 * + col0 - - col1 AS col2 FROM tab1 AS cor0
----
35
4106
6413

query I rowsort
SELECT ALL + col1 * + 72 FROM tab2 AS cor0
----
1224
2232
4248

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 32 col0 FROM tab1
----
32
32
32

onlyif mysql # use DIV operator for integer division
query I rowsort label-5412
SELECT ALL + col0 + cor0.col1 - + 74 * col1 DIV col0 FROM tab2 AS cor0
----
-289
81
82

skipif mysql # not compatible
query I rowsort label-5412
SELECT ALL + col0 + cor0.col1 - + 74 * col1 / col0 FROM tab2 AS cor0
----
-289
81
82

query I rowsort
SELECT 17 + col0 FROM tab2 AS cor0
----
24
95
96

query I rowsort
SELECT DISTINCT + col1 * + col0 + + 55 AS col0 FROM tab0 AS cor0
----
2119
3450
8154

query I rowsort
SELECT ALL col2 * - col1 * ( + col2 ) FROM tab1 AS cor0
----
-119808
-32490
-75816

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5416
SELECT DISTINCT CAST( NULL AS SIGNED ) - + col0 AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5416
SELECT DISTINCT CAST ( NULL AS INTEGER ) - + col0 AS col2 FROM tab1
----
NULL

query I rowsort
SELECT 48 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + - col0 * + 64 col1 FROM tab2
----
-479
-5051
-5073

query I rowsort
SELECT - tab0.col0 * + col1 FROM tab0
----
-2064
-3395
-8099

query I rowsort
SELECT 48 * col0 - tab2.col1 * + tab2.col1 FROM tab2
----
-625
263
3503

query I rowsort
SELECT 13 + col1 FROM tab2
----
30
44
72

query I rowsort
SELECT + 77 * col2 FROM tab1 AS cor0
----
4158
4389
7392

onlyif mysql # use DIV operator for integer division
query I rowsort label-5423
SELECT - col1 - + cor0.col1 DIV + col0 AS col0 FROM tab1 AS cor0
----
-10
-13
-34

skipif mysql # not compatible
query I rowsort label-5423
SELECT - col1 - + cor0.col1 / + col0 AS col0 FROM tab1 AS cor0
----
-10
-13
-34

query I rowsort
SELECT DISTINCT - cor0.col1 + col1 AS col1 FROM tab2 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 55 col0 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 832128adb1ddc65c3105e29cc2c8b3a3

query I rowsort
SELECT ALL ( + col1 ) * col2 AS col1 FROM tab2
----
1534
646
837

query I rowsort
SELECT ALL col2 * ( - 73 * - col0 ) FROM tab1
----
11826
266304
560640

query I rowsort
SELECT DISTINCT + 76 * 59 - - cor0.col0 FROM tab2 AS cor0
----
4491
4562
4563

query I rowsort
SELECT ALL cor0.col0 * 16 FROM tab2 AS cor0
----
112
1248
1264

query I rowsort
SELECT DISTINCT - ( - col2 ) * - cor0.col1 + + col0 FROM tab0 AS cor0
----
-2814
-62
-7373

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5431
SELECT CAST( + col1 AS SIGNED ) * - cor0.col2 FROM tab1 cor0
----
-1248
-1404
-570

skipif mysql # not compatible
query I rowsort label-5431
SELECT CAST ( + col1 AS INTEGER ) * - cor0.col2 FROM tab1 cor0
----
-1248
-1404
-570

query I rowsort
SELECT ALL + col1 + 79 AS col2 FROM tab2 AS cor0
----
110
138
96

query I rowsort
SELECT ALL - cor0.col0 * 95 - col0 FROM tab2 cor0
----
-672
-7488
-7584

onlyif mysql # use DIV operator for integer division
query I rowsort label-5434
SELECT DISTINCT col2 DIV 97 - col2 * col1 AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97

skipif mysql # not compatible
query I rowsort label-5434
SELECT DISTINCT col2 / 97 - col2 * col1 AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT - ( cor0.col1 ) + col2 * 33 AS col1 FROM tab1 AS cor0
----
1756
1871
3155

query I rowsort
SELECT ALL cor0.col0 + cor0.col1 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT DISTINCT + + 34 * cor0.col1 + cor0.col2 + - col1 FROM tab0 cor0
----
2871
3085
3202

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 31 * col1 + cor0.col1 * 27 col0 FROM tab2 AS cor0
----
-124
-236
-68

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5439
SELECT - + CAST( - col1 AS SIGNED ) FROM tab2 AS cor0
----
17
31
59

skipif mysql # not compatible
query I rowsort label-5439
SELECT - + CAST ( - col1 AS INTEGER ) FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT DISTINCT - + 91 + col0 * col1 - + 62 FROM tab0 AS cor0
----
1911
3242
7946

query I rowsort
SELECT DISTINCT + col2 * + ( col1 ) AS col1 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT ALL - 45 * - col1 + + col2 FROM tab2 AS cor0
----
1422
2681
803

query I rowsort
SELECT DISTINCT + - col0 + col0 AS col2 FROM tab1 AS cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5444
SELECT ALL - + 25 + + 16 DIV col0 + 61 AS col1 FROM tab1 cor0
----
36
36
41

skipif mysql # not compatible
query I rowsort label-5444
SELECT ALL - + 25 + + 16 / col0 + 61 AS col1 FROM tab1 cor0
----
36
36
41

onlyif mysql # use DIV operator for integer division
query I rowsort label-5445
SELECT ALL col0 * col0 + col1 * col0 DIV + 83 FROM tab2 AS cor0
----
51
6139
6257

skipif mysql # not compatible
query I rowsort label-5445
SELECT ALL col0 * col0 + col1 * col0 / + 83 FROM tab2 AS cor0
----
51
6139
6257

query I rowsort
SELECT col0 + - cor0.col0 * col2 FROM tab0 AS cor0
----
-7209
-768
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5447
SELECT DISTINCT CAST( NULL AS SIGNED ) * col0 * - col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5447
SELECT DISTINCT CAST ( NULL AS INTEGER ) * col0 * - col1 FROM tab2
----
NULL

query I rowsort
SELECT - 57 FROM tab1, tab2 cor0
----
9 values hashing to 520dc393896969e02a72ab6c5d92126b

query I rowsort
SELECT DISTINCT + 68 AS col2 FROM tab1
----
68

query I rowsort
SELECT - 70 FROM tab0, tab2 AS cor0
----
9 values hashing to 35707a5d99c98b2657c084a50ff1b073

query I rowsort
SELECT - ( - col1 + col2 ) FROM tab2
----
-21
33
4

query I rowsort
SELECT + ( 79 ) FROM tab1 AS cor0
----
79
79
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-5453
SELECT DISTINCT - col2 DIV + col1 + - col2 FROM tab1 AS cor0
----
-103
-56
-62

skipif mysql # not compatible
query I rowsort label-5453
SELECT DISTINCT - col2 / + col1 + - col2 FROM tab1 AS cor0
----
-103
-56
-62

query I rowsort
SELECT - 86 + - col1 AS col0 FROM tab2 AS cor0
----
-103
-117
-145

query I rowsort
SELECT ( col2 ) - col1 AS col0 FROM tab1 cor0
----
28
47
83

query I rowsort
SELECT col0 - + col2 * 26 AS col1 FROM tab1 AS cor0
----
-1401
-1418
-2416

onlyif mysql # use DIV operator for integer division
query I rowsort label-5457
SELECT ALL + + col1 DIV - col1 + col2 AS col2 FROM tab0 AS cor0
----
0
32
81

skipif mysql # not compatible
query I rowsort label-5457
SELECT ALL + + col1 / - col1 + col2 AS col2 FROM tab0 AS cor0
----
0
32
81

query I rowsort
SELECT - col1 - - col0 AS col0 FROM tab1 cor0
----
-23
54
67

query I rowsort
SELECT DISTINCT - 18 * + col0 AS col0 FROM tab0
----
-1602
-432
-630

query I rowsort
SELECT cor0.col1 + 74 * + cor0.col0 AS col2 FROM tab2, tab1, tab2 cor0
----
27 values hashing to bb68105c41240f9e30b38f907d107045

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5461
SELECT DISTINCT - + col0 + CAST( col1 AS SIGNED ) * + col0 AS col2 FROM tab0 AS cor0
----
2040
3360
8010

skipif mysql # not compatible
query I rowsort label-5461
SELECT DISTINCT - + col0 + CAST ( col1 AS INTEGER ) * + col0 AS col2 FROM tab0 AS cor0
----
2040
3360
8010

query I rowsort
SELECT + + col1 * cor0.col2 * - col1 AS col0 FROM tab2 AS cor0
----
-10982
-25947
-90506

query I rowsort
SELECT col0 + cor0.col0 + col2 AS col1 FROM tab2 AS cor0
----
182
196
41

query I rowsort
SELECT - cor0.col0 + ( col0 * + col2 ) FROM tab0 AS cor0
----
0
7209
768

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 * ( col1 ) col2 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT - col0 + - ( + 55 ) + + col2 * cor0.col1 AS col2 FROM tab2 AS cor0
----
1401
512
775

query I rowsort
SELECT ALL - cor0.col0 * 59 AS col1 FROM tab0 AS cor0
----
-1416
-2065
-5251

query I rowsort
SELECT + col0 * ( + col2 ) + - col2 * - ( + 39 ) FROM tab0 AS cor0
----
10496
2079
74

query I rowsort
SELECT + col0 * 46 * col2 FROM tab0 cor0
----
1610
335708
36432

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5470
SELECT - col0 * + CAST( + col2 AS SIGNED ) * col2 AS col1 FROM tab2 cor0
----
-114076
-5103
-52728

skipif mysql # not compatible
query I rowsort label-5470
SELECT - col0 * + CAST ( + col2 AS INTEGER ) * col2 AS col1 FROM tab2 cor0
----
-114076
-5103
-52728

query I rowsort
SELECT + + col0 * + col1 AS col1 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT + col0 * 72 * - col1 FROM tab2 AS cor0
----
-15624
-331344
-96696

query I rowsort
SELECT - col1 * cor0.col0 * + col2 FROM tab0 AS cor0
----
-3395
-664118
-68112

query I rowsort
SELECT DISTINCT + 60 FROM tab1, tab2 AS cor0
----
60

query I rowsort
SELECT ALL - ( - cor0.col0 ) FROM tab0, tab0 AS cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63

query I rowsort
SELECT - cor0.col1 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5477
SELECT + col0 + - CAST( col0 AS SIGNED ) AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5477
SELECT + col0 + - CAST ( col0 AS INTEGER ) AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT col0 + + col2 + 9 FROM tab0
----
180
45
66

onlyif mysql # use DIV operator for integer division
query I rowsort label-5479
SELECT DISTINCT + col2 + + ( col1 ) DIV col0 AS col1 FROM tab1
----
57
62
96

skipif mysql # not compatible
query I rowsort label-5479
SELECT DISTINCT + col2 + + ( col1 ) / col0 AS col1 FROM tab1
----
57
62
96

query I rowsort
SELECT - tab1.col1 * col0 * - col0 FROM tab1
----
234
40960
83200

query I rowsort
SELECT + col2 * + 24 * - col2 FROM tab2
----
-16224
-17496
-34656

query I rowsort
SELECT DISTINCT - col1 - col2 AS col0 FROM tab2
----
-55
-58
-85

query I rowsort
SELECT ALL col2 * + ( - col0 ) - col0 * 31 FROM tab2
----
-406
-4446
-5451

query I rowsort
SELECT - - col0 * - 58 - - ( + cor0.col2 * col1 ) FROM tab1 cor0
----
-3142
-3392
1230

query I rowsort
SELECT - col0 + - ( + cor0.col2 ) + col1 AS col1 FROM tab2 AS cor0
----
-100
-3
-45

query I rowsort
SELECT DISTINCT - col2 + - col0 + + col1 AS col1 FROM tab1
----
-111
-163
-31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - - 20 * col2 col2 FROM tab1 cor0
----
1106
1150
1933

query I rowsort
SELECT ALL col0 * cor0.col0 - col2 FROM tab2 AS cor0
----
22
6058
6203

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 83 * + cor0.col2 * col2 col2 FROM tab2 AS cor0
----
119852
56108
60507

query I rowsort
SELECT ALL + + 95 * - col0 + cor0.col0 * col0 AS col2 FROM tab2 AS cor0
----
-1264
-1326
-616

onlyif mysql # use DIV operator for integer division
query I rowsort label-5491
SELECT DISTINCT + col0 DIV - col2 FROM tab0 AS cor0
----
-1
-35
0

skipif mysql # not compatible
query I rowsort label-5491
SELECT DISTINCT + col0 / - col2 FROM tab0 AS cor0
----
-1
-35
0

query I rowsort
SELECT + 7 + + cor0.col2 AS col2 FROM tab2 AS cor0
----
33
34
45

query I rowsort
SELECT DISTINCT - cor0.col2 * 18 FROM tab0 AS cor0
----
-1476
-18
-594

query I rowsort
SELECT DISTINCT + 46 AS col0 FROM tab2 AS cor0
----
46

query I rowsort
SELECT col2 + - 92 FROM tab2 AS cor0
----
-54
-65
-66

query I rowsort
SELECT + 66 * col2 AS col1 FROM tab0 AS cor0
----
2178
5412
66

query I rowsort
SELECT ALL - 66 * 49 AS col1 FROM tab0 AS cor0
----
-3234
-3234
-3234

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 56 col0 FROM tab2 AS cor0
----
56
56
56

query I rowsort
SELECT ALL - col2 * cor0.col2 + col2 AS col2 FROM tab1 AS cor0
----
-2862
-3192
-9120

query I rowsort
SELECT - - 50 * 6 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 051dd47c7027701e5db0a6b5c203cbc7

query I rowsort
SELECT + 52 * - col2 FROM tab1 AS cor0
----
-2808
-2964
-4992

query I rowsort
SELECT + ( cor0.col2 ) * - col2 FROM tab1 cor0
----
-2916
-3249
-9216

query I rowsort
SELECT ALL 24 * - cor0.col0 AS col0 FROM tab0 AS cor0
----
-2136
-576
-840

query I rowsort
SELECT ALL + 83 AS col1 FROM tab0
----
83
83
83

query I rowsort
SELECT + col0 * col0 AS col1 FROM tab2 cor0
----
49
6084
6241

query I rowsort
SELECT - col1 * col2 + - col2 AS col0 FROM tab2 AS cor0
----
-1560
-684
-864

query I rowsort
SELECT 17 * - col1 FROM tab1
----
-170
-221
-442

query I rowsort
SELECT ALL + col2 * 20 + - cor0.col2 * col0 + - 35 FROM tab1 AS cor0
----
-2543
-5795
883

query I rowsort
SELECT + col2 + ( + col1 ) AS col0 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT DISTINCT col0 * col0 + + col0 AS col0 FROM tab0 AS cor0
----
1260
600
8010

onlyif mysql # use DIV operator for integer division
query I rowsort label-5511
SELECT ALL + col1 + - col2 DIV cor0.col1 AS col0 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-5511
SELECT ALL + col1 + - col2 / cor0.col1 AS col0 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT ALL - + col2 + + 61 * - col2 AS col0 FROM tab1 AS cor0
----
-3348
-3534
-5952

query I rowsort
SELECT + + cor0.col0 + - col2 + - col0 * col1 AS col0 FROM tab1 cor0
----
-1056
-129
-633

query I rowsort
SELECT + col0 + ( - col2 ) - col2 AS col2 FROM tab2 AS cor0
----
-47
26
3

query I rowsort
SELECT + + col2 + + cor0.col0 + col0 AS col1 FROM tab0 AS cor0
----
260
71
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col2 * - col1 + - col2 * - cor0.col0 * 56 col1 FROM tab1 AS cor0
----
10476
204858
431328

query I rowsort
SELECT - col1 + ( col0 ) * col2 * + 46 AS col2 FROM tab1 AS cor0
----
167798
353267
7426

query I rowsort
SELECT - col1 * col2 * ( tab1.col2 * col1 ) - + col1 FROM tab1
----
-1557517
-1971242
-324910

query I rowsort
SELECT DISTINCT - - col1 * 36 + - col1 + + col1 FROM tab0 AS cor0
----
3096
3276
3492

query I rowsort
SELECT - col2 + 48 AS col1 FROM tab0 cor0
----
-34
15
47

query I rowsort
SELECT DISTINCT + cor0.col2 * col2 + - 46 AS col0 FROM tab1 AS cor0
----
2870
3203
9170

query I rowsort
SELECT DISTINCT + col2 * - col1 AS col0 FROM tab2
----
-1534
-646
-837

query I rowsort
SELECT ALL 7 AS col1 FROM tab1 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

query I rowsort
SELECT + col0 + + cor0.col2 AS col0 FROM tab1 AS cor0
----
121
176
57

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab1 AS cor2
----
972 values hashing to 0210050fb1701e2797a9b17e1ebac91e

onlyif mysql # use DIV operator for integer division
query I rowsort label-5526
SELECT DISTINCT tab2.col0 - + col0 DIV col0 AS col0 FROM tab2
----
6
77
78

skipif mysql # not compatible
query I rowsort label-5526
SELECT DISTINCT tab2.col0 - + col0 / col0 AS col0 FROM tab2
----
6
77
78

query I rowsort
SELECT - col2 * 75 + - ( cor0.col2 ) - 35 FROM tab0 AS cor0
----
-111
-2543
-6267

query I rowsort
SELECT - + col0 * - 78 AS col0 FROM tab2 AS cor0
----
546
6084
6162

query I rowsort
SELECT - - col0 * cor0.col1 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT ALL col2 + col0 * col2 FROM tab0 cor0
----
36
7380
825

query I rowsort
SELECT - ( tab0.col0 * + 8 ) FROM tab0, tab1 AS cor0
----
9 values hashing to 8471af7c303e11f57beb2fc7ab0da551

query I rowsort
SELECT ALL tab2.col2 + col0 * col2 FROM tab2
----
2054
216
3040

query I rowsort
SELECT col0 * - tab2.col1 + tab2.col2 * col2 * + col1 FROM tab2
----
22382
23205
35282

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + col1 * col1 col1 FROM tab0 AS cor0
----
177504
329315
737009

query I rowsort
SELECT DISTINCT - 23 * + col0 + + col2 FROM tab2 AS cor0
----
-134
-1768
-1779

onlyif mysql # use DIV operator for integer division
query I rowsort label-5536
SELECT ALL - col1 DIV - col2 AS col2 FROM tab0 AS cor0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-5536
SELECT ALL - col1 / - col2 AS col2 FROM tab0 AS cor0
----
1
2
97

query I rowsort
SELECT DISTINCT + - 29 + + col2 AS col2 FROM tab1 AS cor0
----
25
28
67

query I rowsort
SELECT DISTINCT col1 + col2 * 42 FROM tab1 AS cor0
----
2294
2404
4045

query I rowsort
SELECT ALL + + 73 * + col2 FROM tab2 AS cor0
----
1898
1971
2774

query I rowsort
SELECT + 51 FROM tab0 cor0
----
51
51
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 94 col1 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
94

query I rowsort
SELECT ALL + 48 * col0 AS col1 FROM tab2 AS cor0
----
336
3744
3792

query I rowsort
SELECT - + ( col1 ) * + col1 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT ALL - cor0.col2 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75

query I rowsort
SELECT ALL - ( col0 ) * - col1 + - 12 * col0 - cor0.col2 AS col0 FROM tab1 AS cor0
----
-12
-16
-185

onlyif mysql # use DIV operator for integer division
query I rowsort label-5546
SELECT ALL + col0 DIV col0 AS col0 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5546
SELECT ALL + col0 / col0 AS col0 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT + cor0.col1 + 89 AS col1 FROM tab1 AS cor0
----
102
115
99

query I rowsort
SELECT ALL - - cor0.col2 * + cor0.col1 FROM tab1 cor0
----
1248
1404
570

query I rowsort
SELECT DISTINCT + 37 * col0 AS col2 FROM tab1 AS cor0
----
111
2368
2960

query I rowsort
SELECT DISTINCT - - 42 + + col2 FROM tab2 AS cor0
----
68
69
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-5551
SELECT + cor0.col1 DIV 58 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5551
SELECT + cor0.col1 / 58 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - + 81 + col1 FROM tab2 AS cor0
----
-22
-50
-64

query I rowsort
SELECT ALL 66 + - col1 FROM tab2 AS cor0
----
35
49
7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5554
SELECT 93 * col0 - CAST( - col2 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
333
6009
7536

skipif mysql # not compatible
query I rowsort label-5554
SELECT 93 * col0 - CAST ( - col2 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
333
6009
7536

query I rowsort
SELECT + col2 - + col2 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + col1 - - col1 AS col0 FROM tab1 cor0
----
20
26
52

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5557
SELECT - + cor0.col2 * CAST( NULL AS SIGNED ) * + col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5557
SELECT - + cor0.col2 * CAST ( NULL AS INTEGER ) * + col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 33 FROM tab1, tab0 AS cor0, tab1 AS cor1, tab0, tab0 AS cor2
----
33

query I rowsort
SELECT DISTINCT col2 + 73 FROM tab1 AS cor0
----
127
130
169

query I rowsort
SELECT + 57 FROM tab0, tab1 cor0, tab1 AS cor1
----
27 values hashing to 220a93709e207779b34ef74b544764a5

query I rowsort
SELECT DISTINCT cor1.col1 FROM tab1, tab2 AS cor0, tab2 cor1
----
17
31
59

query I rowsort
SELECT DISTINCT + + cor0.col1 AS col1 FROM tab2 cor0
----
17
31
59

query I rowsort
SELECT ALL - col2 * + 74 FROM tab1 AS cor0
----
-3996
-4218
-7104

query I rowsort
SELECT ALL 45 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050

query I rowsort
SELECT ALL + 95 + - col0 + - col2 * - tab2.col1 FROM tab2
----
1551
662
925

query I rowsort
SELECT DISTINCT col2 * - tab1.col2 + tab1.col1 + 15 FROM tab1
----
-2875
-3224
-9188

query I rowsort
SELECT + - col2 * 28 FROM tab0 AS cor0
----
-2296
-28
-924

query I rowsort
SELECT ALL col2 * - 53 AS col1 FROM tab1
----
-2862
-3021
-5088

onlyif mysql # use DIV operator for integer division
query I rowsort label-5569
SELECT ALL tab1.col1 * ( tab1.col1 ) DIV - col0 AS col2 FROM tab1
----
-1
-2
-225

skipif mysql # not compatible
query I rowsort label-5569
SELECT ALL tab1.col1 * ( tab1.col1 ) / - col0 AS col2 FROM tab1
----
-1
-2
-225

query I rowsort
SELECT + col1 * 79 AS col0 FROM tab1 AS cor0
----
1027
2054
790

query I rowsort
SELECT ( 12 ) * - col2 * col2 FROM tab2 AS cor0
----
-17328
-8112
-8748

query I rowsort
SELECT ALL - 13 AS col1 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 1c6aaa07ba8d3dc01ee616e16bef60f2

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5573
SELECT DISTINCT col0 * - CAST( + col0 AS SIGNED ) FROM tab2
----
-49
-6084
-6241

skipif mysql # not compatible
query I rowsort label-5573
SELECT DISTINCT col0 * - CAST ( + col0 AS INTEGER ) FROM tab2
----
-49
-6084
-6241

query I rowsort
SELECT - 4 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 5784540a5af6ca2be84399d314acd2fd

query IIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1, tab0 cor1, tab2 AS cor2
----
972 values hashing to a9068b700464993db9fae6f630605fde

query I rowsort
SELECT ALL + tab2.col1 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

query I rowsort
SELECT - col0 * tab0.col1 * col2 FROM tab0
----
-3395
-664118
-68112

query I rowsort
SELECT ALL ( + 62 ) AS col0 FROM tab0
----
62
62
62

query I rowsort
SELECT ( col1 * - col0 ) FROM tab1
----
-1040
-640
-78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5580
SELECT - ( - 10 * + col0 + + CAST( - col2 AS SIGNED ) ) FROM tab1
----
697
84
896

skipif mysql # not compatible
query I rowsort label-5580
SELECT - ( - 10 * + col0 + + CAST ( - col2 AS INTEGER ) ) FROM tab1
----
697
84
896

query I rowsort
SELECT + cor0.col0 * - col2 + - col1 FROM tab0 AS cor0
----
-132
-7389
-878

query I rowsort
SELECT ALL - 97 AS col1 FROM tab0
----
-97
-97
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + col1 * + 5 col1 FROM tab0
----
-10320
-16975
-40495

query I rowsort
SELECT col2 + col2 * tab0.col2 AS col2 FROM tab0
----
1122
2
6806

query I rowsort
SELECT 57 + - col1 * - col2 + 94 AS col0 FROM tab0
----
248
2989
7613

query I rowsort
SELECT DISTINCT - - col0 + - col2 * + col0 + col2 * - col2 AS col1 FROM tab1 AS cor0
----
-16816
-3075
-6833

query I rowsort
SELECT ALL + col0 * col0 - - col2 FROM tab0 AS cor0
----
1226
609
8003

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5588
SELECT col1 * + cor0.col1 + - CAST( 38 + + col0 AS SIGNED ) * 22 * + ( col0 ) FROM tab2 AS cor0
----
-195575
-203057
-5969

skipif mysql # not compatible
query I rowsort label-5588
SELECT col1 * + cor0.col1 + - CAST ( 38 + + col0 AS INTEGER ) * 22 * + ( col0 ) FROM tab2 AS cor0
----
-195575
-203057
-5969

query I rowsort
SELECT ALL - ( col1 * + ( col1 ) + col1 ) FROM tab1
----
-110
-182
-702

onlyif mysql # use DIV operator for integer division
query I rowsort label-5590
SELECT - col0 DIV col0 col0 FROM tab2
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5590
SELECT - col0 / col0 col0 FROM tab2
----
-1
-1
-1

query I rowsort
SELECT DISTINCT + col1 * + 41 + + col2 AS col2 FROM tab1 AS cor0
----
1120
467
629

query I rowsort
SELECT DISTINCT - 88 FROM tab1, tab0 AS cor0
----
-88

query I rowsort
SELECT cor2.col0 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab2 AS cor2, tab0 AS cor3
----
243 values hashing to 455e4df3bf7b0fa681c56e89df1a761f

query I rowsort
SELECT - + col2 * + 79 FROM tab0 AS cor0
----
-2607
-6478
-79

query I rowsort
SELECT - - cor0.col2 + 67 FROM tab2 AS cor0
----
105
93
94

query I rowsort
SELECT - col2 * 51 + col1 FROM tab2 AS cor0
----
-1267
-1346
-1921

query I rowsort
SELECT + + col1 + 78 FROM tab2 cor0
----
109
137
95

onlyif mysql # use DIV operator for integer division
query I rowsort label-5598
SELECT + 58 DIV 39 AS col0 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5598
SELECT + 58 / 39 AS col0 FROM tab2
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 + col0 col0 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT ALL + + 41 + + col1 AS col2 FROM tab2 AS cor0
----
100
58
72

query I rowsort
SELECT - col1 * - col2 + - col1 * col0 FROM tab1 AS cor0
----
-70
1326
208

query I rowsort
SELECT + 52 FROM tab0, tab1, tab2 cor0
----
27 values hashing to 76100d10f51995d20efdeb657e444d3c

query I rowsort
SELECT DISTINCT ( + col2 ) * + col1 AS col1 FROM tab0
----
2838
7462
97

query I rowsort
SELECT ALL 99 * tab0.col0 FROM tab0
----
2376
3465
8811

query I rowsort
SELECT 94 - col0 FROM tab1
----
14
30
91

onlyif mysql # use DIV operator for integer division
query I rowsort label-5606
SELECT + cor0.col2 * col2 + 37 DIV + col0 AS col2 FROM tab2 AS cor0
----
1444
676
734

skipif mysql # not compatible
query I rowsort label-5606
SELECT + cor0.col2 * col2 + 37 / + col0 AS col2 FROM tab2 AS cor0
----
1444
676
734

query I rowsort
SELECT + + 40 + + col2 * + col2 AS col2 FROM tab2 AS cor0
----
1484
716
769

query I rowsort
SELECT ALL + col2 + col0 * + col0 FROM tab0
----
1226
609
8003

query I rowsort
SELECT ALL + - 65 + col0 * + col0 AS col2 FROM tab1 AS cor0
----
-56
4031
6335

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5610
SELECT - - col1 + col0 * + CAST( + col0 AS SIGNED ) FROM tab2 cor0
----
6143
6258
80

skipif mysql # not compatible
query I rowsort label-5610
SELECT - - col1 + col0 * + CAST ( + col0 AS INTEGER ) FROM tab2 cor0
----
6143
6258
80

query I rowsort
SELECT ALL - + 20 AS col1 FROM tab1 AS cor0
----
-20
-20
-20

query I rowsort
SELECT DISTINCT col1 * - cor0.col1 + col2 FROM tab2 AS cor0
----
-251
-3455
-934

onlyif mysql # use DIV operator for integer division
query I rowsort label-5613
SELECT DISTINCT + ( + col2 ) DIV col1 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-5613
SELECT DISTINCT + ( + col2 ) / col1 FROM tab0 cor0
----
0

query I rowsort
SELECT ALL - col1 * col1 + 85 AS col1 FROM tab1 AS cor0
----
-15
-591
-84

query I rowsort
SELECT 86 + - col2 FROM tab2 AS cor0
----
48
59
60

query I rowsort
SELECT DISTINCT - cor0.col1 * - col0 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT 1 + col1 FROM tab2 AS cor0
----
18
32
60

query I rowsort
SELECT DISTINCT + - 60 FROM tab0 AS cor0
----
-60

query I rowsort
SELECT - col1 * col1 + ( col2 * - cor0.col0 ) AS col2 FROM tab1 AS cor0
----
-3748
-7849
-838

query I rowsort
SELECT + - col0 + - 78 AS col1 FROM tab0 AS cor0
----
-102
-113
-167

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * 66 col1 FROM tab0 cor0
----
-1584
-2310
-5874

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 * + 21 col0 FROM tab2 AS cor0
----
-546
-567
-798

query I rowsort
SELECT + cor1.col1 FROM tab0, tab0 AS cor0, tab2 cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

query I rowsort
SELECT DISTINCT - 14 AS col1 FROM tab2, tab2 AS cor0
----
-14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 41 col2 FROM tab1, tab1 cor0
----
9 values hashing to 4ba0c102091f9cbc9fe9439b04584e70

query I rowsort
SELECT ALL col2 + - 87 - - col2 FROM tab2 AS cor0
----
-11
-33
-35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab0.col2 col0 FROM tab0
----
1
33
82

query I rowsort
SELECT + ( col2 ) * col2 * + col0 FROM tab0 AS cor0
----
26136
35
598436

query I rowsort
SELECT ALL + 28 + + 71 * cor0.col2 FROM tab1 AS cor0
----
3862
4075
6844

onlyif mysql # use DIV operator for integer division
query I rowsort label-5630
SELECT - 2 DIV + col1 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5630
SELECT - 2 / + col1 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + 30 + col1 FROM tab0 cor0
----
116
121
127

query I rowsort
SELECT ALL 88 * ( col0 * - col0 ) FROM tab0 AS cor0
----
-107800
-50688
-697048

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - ( - col1 ) * col0 col1 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT col2 * - cor0.col1 + cor0.col2 FROM tab0 AS cor0
----
-2805
-7380
-96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5635
SELECT ALL + CAST( - col0 AS SIGNED ) * - col2 * col1 FROM tab1 AS cor0
----
36480
4212
99840

skipif mysql # not compatible
query I rowsort label-5635
SELECT ALL + CAST ( - col0 AS INTEGER ) * - col2 * col1 FROM tab1 AS cor0
----
36480
4212
99840

onlyif mysql # use DIV operator for integer division
query I rowsort label-5636
SELECT ALL - cor0.col2 DIV - ( - col0 * + 16 ) FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5636
SELECT ALL - cor0.col2 / - ( - col0 * + 16 ) FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - 33 + col0 AS col0 FROM tab1 AS cor0
----
-30
31
47

query I rowsort
SELECT - - col2 + + 57 * col2 FROM tab0 AS cor0
----
1914
4756
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col0 * - 43 col2 FROM tab1 AS cor0
----
-129
-2752
-3440

query I rowsort
SELECT col2 * col0 * col1 FROM tab1 cor0
----
36480
4212
99840

query I rowsort
SELECT ALL - - 34 AS col1 FROM tab0 cor0
----
34
34
34

query I rowsort
SELECT DISTINCT + 14 AS col2 FROM tab0 AS cor0
----
14

query I rowsort
SELECT + cor0.col0 * cor0.col2 FROM tab0 AS cor0
----
35
7298
792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col0 * - col1 ) - col2 * + 38 * + col1 col2 FROM tab1
----
-22300
-48464
-53430

query I rowsort
SELECT + 70 + col0 AS col2 FROM tab0
----
105
159
94

query I rowsort
SELECT - tab1.col2 + + col2 AS col1 FROM tab1
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5647
SELECT ALL CAST( 92 AS SIGNED ) AS col0 FROM tab2, tab0 cor0
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

skipif mysql # not compatible
query I rowsort label-5647
SELECT ALL CAST ( 92 AS INTEGER ) AS col0 FROM tab2, tab0 cor0
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

query I rowsort
SELECT ALL - cor0.col0 * - ( 33 ) AS col2 FROM tab2 cor0
----
231
2574
2607

query I rowsort
SELECT ALL + - cor0.col0 * + col2 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT DISTINCT - col1 + ( + 87 ) + col0 FROM tab0 AS cor0
----
25
85

query I rowsort
SELECT DISTINCT - 2 - col2 AS col0 FROM tab1
----
-56
-59
-98

query I rowsort
SELECT DISTINCT - col2 * tab1.col1 * col1 FROM tab1
----
-16224
-36504
-5700

onlyif mysql # use DIV operator for integer division
query I rowsort label-5653
SELECT DISTINCT col1 DIV col0 + - col1 FROM tab2
----
-17
-27
-59

skipif mysql # not compatible
query I rowsort label-5653
SELECT DISTINCT col1 / col0 + - col1 FROM tab2
----
-17
-27
-59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5654
SELECT ALL tab0.col2 + + CAST( NULL AS SIGNED ) * + 42 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5654
SELECT ALL tab0.col2 + + CAST ( NULL AS INTEGER ) * + 42 AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT tab1.col1 + tab1.col1 FROM tab1
----
20
26
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 1 * cor0.col1 col2 FROM tab2, tab1 cor0
----
9 values hashing to b234798d4706314ba14eaad539d0aa88

onlyif mysql # use DIV operator for integer division
query I rowsort label-5657
SELECT col2 DIV + 56 + + tab0.col2 FROM tab0
----
1
33
83

skipif mysql # not compatible
query I rowsort label-5657
SELECT col2 / + 56 + + tab0.col2 FROM tab0
----
1
33
83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5658
SELECT col1 + ( col2 + tab0.col0 ) * CAST( + col0 AS SIGNED ) * col2 FROM tab0
----
1248049
1357
45230

skipif mysql # not compatible
query I rowsort label-5658
SELECT col1 + ( col2 + tab0.col0 ) * CAST ( + col0 AS INTEGER ) * col2 FROM tab0
----
1248049
1357
45230

query I rowsort
SELECT tab0.col1 * + col1 - col1 AS col2 FROM tab0
----
7310
8190
9312

query I rowsort
SELECT - col2 * + 70 AS col2 FROM tab2 AS cor0
----
-1820
-1890
-2660

query I rowsort
SELECT - col2 + - 6 * col0 AS col0 FROM tab0 AS cor0
----
-177
-211
-616

query I rowsort
SELECT DISTINCT cor0.col1 * + ( - col2 ) AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT - col0 * + col2 * col2 FROM tab0 AS cor0
----
-26136
-35
-598436

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col0 ) col1 FROM tab2
----
7
78
79

query I rowsort
SELECT DISTINCT - 0 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5666
SELECT ALL + col0 + cor0.col1 * + CAST( - col1 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-210
-3403
-954

skipif mysql # not compatible
query I rowsort label-5666
SELECT ALL + col0 + cor0.col1 * + CAST ( - col1 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-210
-3403
-954

query I rowsort
SELECT ALL col0 * col1 - ( - 69 ) AS col1 FROM tab2 cor0
----
1412
286
4671

query I rowsort
SELECT DISTINCT + col2 - col1 AS col0 FROM tab1 AS cor0
----
28
47
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + cor0.col2 ) * - col1 col2 FROM tab2 AS cor0
----
1534
646
837

onlyif mysql # use DIV operator for integer division
query I rowsort label-5670
SELECT DISTINCT - 29 + - cor0.col1 DIV - CAST( + col0 AS SIGNED ) FROM tab2 AS cor0
----
-25
-29

skipif mysql # not compatible
query I rowsort label-5670
SELECT DISTINCT - 29 + - cor0.col1 / - CAST ( + col0 AS INTEGER ) FROM tab2 AS cor0
----
-25
-29

query I rowsort
SELECT DISTINCT - col1 * cor0.col1 * 97 AS col0 FROM tab0 AS cor0
----
-717412
-803257
-912673

query I rowsort
SELECT ALL cor0.col0 * - col0 + + 95 * - col0 AS col0 FROM tab2 AS cor0
----
-13494
-13746
-714

query I rowsort
SELECT + 36 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 4d1892e880125dc90345721151acb22c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * col2 col1 FROM tab0 cor0
----
-1
-1089
-6724

query I rowsort
SELECT ALL 97 FROM tab1, tab0 AS cor0
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5676
SELECT DISTINCT col0 + - CAST( NULL AS SIGNED ) * + 6 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5676
SELECT DISTINCT col0 + - CAST ( NULL AS INTEGER ) * + 6 FROM tab2 cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5677
SELECT - - ( col0 ) DIV + cor0.col0 AS col2 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5677
SELECT - - ( col0 ) / + cor0.col0 AS col2 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT - - 49 FROM tab0 AS cor0
----
49

query I rowsort
SELECT tab1.col0 AS col1 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT ALL - ( + 20 ) * col0 FROM tab1
----
-1280
-1600
-60

onlyif mysql # use DIV operator for integer division
query I rowsort label-5681
SELECT DISTINCT + - ( col0 ) DIV col1 col0 FROM tab1 AS cor0
----
-6
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5681
SELECT DISTINCT + - ( col0 ) / col1 col0 FROM tab1 AS cor0
----
-6
0

query I rowsort
SELECT ALL - - 25 AS col2 FROM tab0 AS cor0
----
25
25
25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + - 27 * - col2 col2 FROM tab1 AS cor0
----
1484
1549
2605

onlyif mysql # use DIV operator for integer division
query I rowsort label-5684
SELECT - 34 DIV + col2 AS col0 FROM tab0 AS cor0
----
-1
-34
0

skipif mysql # not compatible
query I rowsort label-5684
SELECT - 34 / + col2 AS col0 FROM tab0 AS cor0
----
-1
-34
0

query I rowsort
SELECT DISTINCT - - 88 + 9 AS col1 FROM tab1 AS cor0
----
97

query I rowsort
SELECT DISTINCT ( 62 ) FROM tab1, tab1 AS cor0, tab0 cor1, tab2 AS cor2
----
62

query I rowsort
SELECT ALL - - 19 FROM tab2 cor0
----
19
19
19

query I rowsort
SELECT + + col1 + + col0 * + ( 4 ) * col1 FROM tab1 AS cor0
----
2570
338
4173

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col1 ) * col1 col1 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT - cor0.col1 + col2 AS col2 FROM tab1 AS cor0
----
28
47
83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5691
SELECT - - 81 + col1 * CAST( NULL AS SIGNED ) col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5691
SELECT - - 81 + col1 * CAST ( NULL AS INTEGER ) col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 35 + col2 FROM tab0 AS cor0
----
-2
-34
47

query I rowsort
SELECT DISTINCT + 37 * + col1 AS col2 FROM tab1 AS cor0
----
370
481
962

query I rowsort
SELECT 46 * + col1 AS col2 FROM tab0 AS cor0
----
3956
4186
4462

query I rowsort
SELECT DISTINCT - col0 + 96 FROM tab0
----
61
7
72

query I rowsort
SELECT ( 47 ) + - col1 FROM tab1
----
21
34
37

query I rowsort
SELECT DISTINCT - col2 * + tab2.col1 + - col0 AS col2 FROM tab2
----
-1612
-725
-844

query I rowsort
SELECT DISTINCT + 34 * + col2 + - col1 * col1 + ( + col1 * + col2 ) FROM tab0
----
-3436
-9278
1969

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5699
SELECT CAST( 39 AS SIGNED ) FROM tab1
----
39
39
39

skipif mysql # not compatible
query I rowsort label-5699
SELECT CAST ( 39 AS INTEGER ) FROM tab1
----
39
39
39

onlyif mysql # use DIV operator for integer division
query I rowsort label-5700
SELECT - 83 * col2 DIV + cor0.col1 FROM tab0 AS cor0
----
-31
-74
0

skipif mysql # not compatible
query I rowsort label-5700
SELECT - 83 * col2 / + cor0.col1 FROM tab0 AS cor0
----
-31
-74
0

query I rowsort
SELECT ALL + 53 * + cor0.col2 AS col1 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to cfcc385503964b50fd1b23a9e28eb163

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + cor0.col0 col1 FROM tab1 AS cor0
----
3
64
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-5703
SELECT + 68 DIV col0 AS col0 FROM tab1 AS cor0
----
0
1
22

skipif mysql # not compatible
query I rowsort label-5703
SELECT + 68 / col0 AS col0 FROM tab1 AS cor0
----
0
1
22

query I rowsort
SELECT - - col1 * cor0.col2 + col0 * 21 * col2 FROM tab0 AS cor0
----
160720
19470
832

query I rowsort
SELECT ALL + cor0.col1 AS col1 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

query I rowsort
SELECT col1 + - col1 * + col2 FROM tab2
----
-1475
-629
-806

query I rowsort
SELECT col2 + + 16 * - col1 FROM tab0 AS cor0
----
-1343
-1374
-1551

query I rowsort
SELECT + + col2 * col0 AS col0 FROM tab1 cor0
----
162
3648
7680

query I rowsort
SELECT + 64 * col2 AS col1 FROM tab0
----
2112
5248
64

query I rowsort
SELECT + 84 AS col1 FROM tab2, tab1 cor0, tab0 AS cor1
----
27 values hashing to e8cd683fe8cea77b4326d9b80f21c74a

query I rowsort
SELECT 7 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

query I rowsort
SELECT 82 - - col1 FROM tab2 AS cor0
----
113
141
99

onlyif mysql # use DIV operator for integer division
query I rowsort label-5713
SELECT col1 * 10 + + cor0.col1 DIV + col2 AS col1 FROM tab0 AS cor0
----
1067
862
911

skipif mysql # not compatible
query I rowsort label-5713
SELECT col1 * 10 + + cor0.col1 / + col2 AS col1 FROM tab0 AS cor0
----
1067
862
911

query I rowsort
SELECT ALL + 90 FROM tab1, tab0 AS cor0
----
9 values hashing to 96f7a90428db93f472e0d219bab64853

query I rowsort
SELECT DISTINCT - 29 AS col0 FROM tab1, tab1 AS cor0 CROSS JOIN tab0
----
-29

query I rowsort
SELECT + 41 * tab1.col1 FROM tab1
----
1066
410
533

query I rowsort
SELECT - tab1.col1 - + cor0.col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 04c578e24c115d15b64a712464c2e13d

onlyif mysql # use DIV operator for integer division
query I rowsort label-5718
SELECT - + col2 + - 4 DIV - col1 AS col0 FROM tab2 cor0
----
-26
-27
-38

skipif mysql # not compatible
query I rowsort label-5718
SELECT - + col2 + - 4 / - col1 AS col0 FROM tab2 cor0
----
-26
-27
-38

query I rowsort
SELECT DISTINCT + + ( col1 ) * - cor0.col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT - col0 + - col1 - - col1 * + 64 * - 48 AS col0 FROM tab0 AS cor0
----
-264302
-279732
-298116

query I rowsort
SELECT col0 - cor0.col2 FROM tab2 cor0
----
-20
41
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-5722
SELECT + col2 DIV + 11 AS col0 FROM tab2
----
2
2
3

skipif mysql # not compatible
query I rowsort label-5722
SELECT + col2 / + 11 AS col0 FROM tab2
----
2
2
3

query I rowsort
SELECT DISTINCT 61 + - col0 FROM tab0 cor0
----
-28
26
37

onlyif mysql # use DIV operator for integer division
query I rowsort label-5724
SELECT col0 * col2 DIV col0 col0 FROM tab2 AS cor0
----
26
27
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5724
SELECT col0 * col2 / col0 col0 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT ALL + + ( 24 ) + + col2 FROM tab0 AS cor0
----
106
25
57

query I rowsort
SELECT ALL + col0 + - 87 FROM tab2 AS cor0
----
-8
-80
-9

query I rowsort
SELECT col0 * col2 * col2 FROM tab2 cor0
----
114076
5103
52728

query I rowsort
SELECT + - col0 * col0 * + col0 AS col0 FROM tab1 AS cor0
----
-262144
-27
-512000

query I rowsort
SELECT DISTINCT - col0 * col2 + col0 FROM tab1 cor0
----
-159
-3584
-7600

query I rowsort
SELECT DISTINCT + cor0.col1 + + col0 AS col1 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT ALL + - col1 + col0 * + 78 FROM tab0 AS cor0
----
1786
2633
6851

query I rowsort
SELECT ALL col1 * 7 FROM tab1
----
182
70
91

onlyif mysql # use DIV operator for integer division
query I rowsort label-5733
SELECT DISTINCT 7 DIV + 72 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5733
SELECT DISTINCT 7 / + 72 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT - + cor0.col2 * - 43 AS col1 FROM tab2 AS cor0
----
1118
1161
1634

query I rowsort
SELECT + ( + col1 ) * col2 AS col1 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT ALL col0 * 1 AS col0 FROM tab2
----
7
78
79

query I rowsort
SELECT col0 * - col1 + col2 AS col2 FROM tab0
----
-2031
-3394
-8017

query I rowsort
SELECT + - col1 * 38 FROM tab1 cor0
----
-380
-494
-988

query I rowsort
SELECT ALL - 50 + col1 * col1 FROM tab2 cor0
----
239
3431
911

query I rowsort
SELECT DISTINCT + col0 + col1 + col0 AS col1 FROM tab1 cor0
----
138
173
32

query I rowsort
SELECT - 59 + - cor0.col1 AS col1 FROM tab0 cor0
----
-145
-150
-156

query I rowsort
SELECT ALL - 52 + col0 + col1 FROM tab2 cor0
----
-14
44
85

query I rowsort
SELECT ALL 60 FROM tab0 AS cor0
----
60
60
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 + col0 * 75 col0 FROM tab2 AS cor0
----
552
5876
5963

query I rowsort
SELECT DISTINCT - col2 + ( col0 + ( + col2 ) ) AS col0 FROM tab1
----
3
64
80

query I rowsort
SELECT DISTINCT - col2 + + 18 * col1 FROM tab1
----
123
138
414

query I rowsort
SELECT 34 - col1 AS col0 FROM tab1
----
21
24
8

query I rowsort
SELECT - cor0.col0 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to c82df1de3cb666224690a83f3d790d79

query I rowsort
SELECT DISTINCT + 9 * + 53 AS col2 FROM tab1
----
477

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 55 * col0 col2 FROM tab0
----
1320
1925
4895

query I rowsort
SELECT + 27 * + 94 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f7f655b22b847117457036d1167e6b77

query I rowsort
SELECT - 31 + col2 + - col2 * + 27 AS col2 FROM tab0 AS cor0
----
-2163
-57
-889

query I rowsort
SELECT - + 72 * - cor0.col2 + col1 FROM tab2 AS cor0
----
1931
1975
2753

query I rowsort
SELECT ALL - - col2 + col2 FROM tab1 cor0
----
108
114
192

query I rowsort
SELECT + 22 + + col2 AS col1 FROM tab0 cor0
----
104
23
55

onlyif mysql # use DIV operator for integer division
query I rowsort label-5756
SELECT - col2 DIV col1 + + col2 AS col1 FROM tab1
----
52
52
89

skipif mysql # not compatible
query I rowsort label-5756
SELECT - col2 / col1 + + col2 AS col1 FROM tab1
----
52
52
89

query I rowsort
SELECT ALL 27 AS col0 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 1a3cef5c33b8f87ffeded378fd207753

query I rowsort
SELECT + col2 + + col2 * - 69 + 97 AS col2 FROM tab0
----
-2147
-5479
29

query I rowsort
SELECT ( + col1 ) + col2 AS col0 FROM tab0
----
119
173
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 25 col2 FROM tab0
----
25
25
25

query I rowsort
SELECT col0 - col0 * tab1.col0 AS col0 FROM tab1
----
-4032
-6
-6320

query I rowsort
SELECT DISTINCT - 24 + - col2 * - col1 * + col0 FROM tab2
----
119628
51010
5835

onlyif mysql # use DIV operator for integer division
query I rowsort label-5763
SELECT DISTINCT + col2 * + col1 + col0 DIV + 77 FROM tab0 AS cor0
----
2838
7463
97

skipif mysql # not compatible
query I rowsort label-5763
SELECT DISTINCT + col2 * + col1 + col0 / + 77 FROM tab0 AS cor0
----
2838
7463
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 70 + col1 * + cor0.col0 col1 FROM tab1 AS cor0
----
1110
148
710

query I rowsort
SELECT + + 65 + + col2 * ( + col0 * col1 ) AS col2 FROM tab0 AS cor0
----
3460
664183
68177

query I rowsort
SELECT DISTINCT + + 80 FROM tab0 AS cor0
----
80

query I rowsort
SELECT ALL tab2.col2 + col1 * + col2 * - ( - col0 ) AS col1 FROM tab2
----
119678
51072
5886

query I rowsort
SELECT DISTINCT + 48 AS col1 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
48

query I rowsort
SELECT DISTINCT cor0.col2 * - col2 FROM tab1 cor0
----
-2916
-3249
-9216

query I rowsort
SELECT DISTINCT - - col2 + - col0 * - 92 FROM tab0 AS cor0
----
2241
3221
8270

query I rowsort
SELECT ALL - col2 * 0 AS col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5772
SELECT + col0 * CAST( NULL AS SIGNED ) + + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5772
SELECT + col0 * CAST ( NULL AS INTEGER ) + + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5773
SELECT ALL - + col2 * + col2 + col2 DIV col1 FROM tab0 AS cor0
----
-1
-1089
-6724

skipif mysql # not compatible
query I rowsort label-5773
SELECT ALL - + col2 * + col2 + col2 / col1 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT col1 * 67 + col1 FROM tab2 AS cor0
----
1156
2108
4012

onlyif mysql # use DIV operator for integer division
query I rowsort label-5775
SELECT ALL - col1 * 55 + + 5 DIV col0 AS col0 FROM tab0 AS cor0
----
-4730
-5005
-5335

skipif mysql # not compatible
query I rowsort label-5775
SELECT ALL - col1 * 55 + + 5 / col0 AS col0 FROM tab0 AS cor0
----
-4730
-5005
-5335

query I rowsort
SELECT DISTINCT - col0 * ( cor0.col0 ) + + cor0.col2 FROM tab2 AS cor0
----
-22
-6058
-6203

query I rowsort
SELECT ALL - col2 + col1 * + col1 AS col1 FROM tab0 AS cor0
----
7363
8199
9408

query I rowsort
SELECT DISTINCT col0 * + col2 + + col0 FROM tab0 AS cor0
----
70
7387
816

query I rowsort
SELECT col2 * 0 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + + col0 + - col0 * + col2 * - col2 AS col2 FROM tab2 AS cor0
----
114155
5110
52806

query I rowsort
SELECT DISTINCT + col0 * + col1 + - 26 FROM tab2 AS cor0
----
1317
191
4576

query I rowsort
SELECT DISTINCT - + col0 * + col0 - col1 * + col1 FROM tab1 AS cor0
----
-4196
-6569
-685

query I rowsort
SELECT ALL + col1 * ( + col2 ) AS col2 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT DISTINCT + cor1.col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
10
13
26

query I rowsort
SELECT col2 - col0 * + col0 * - col0 AS col1 FROM tab0 AS cor0
----
13857
42876
705051

query I rowsort
SELECT + 96 + + col1 + + col1 AS col0 FROM tab1 AS cor0
----
116
122
148

onlyif mysql # use DIV operator for integer division
query I rowsort label-5787
SELECT ( ( col0 - col0 ) ) * col2 + cor0.col0 DIV col1 + col0 AS col1 FROM tab2 AS cor0
----
7
79
83

skipif mysql # not compatible
query I rowsort label-5787
SELECT ( ( col0 - col0 ) ) * col2 + cor0.col0 / col1 + col0 AS col1 FROM tab2 AS cor0
----
7
79
83

query I rowsort
SELECT ALL 12 FROM tab2, tab2 AS cor0
----
9 values hashing to d4f5a8e032294c3b9342821617800972

query I rowsort
SELECT DISTINCT 82 * + col2 - col1 AS col1 FROM tab2 cor0
----
2073
2183
3099

query I rowsort
SELECT ALL + + ( 93 ) * + col0 AS col0 FROM tab2 AS cor0
----
651
7254
7347

query I rowsort
SELECT col1 - cor0.col2 * col0 FROM tab1 cor0
----
-136
-3638
-7667

onlyif mysql # use DIV operator for integer division
query I rowsort label-5792
SELECT DISTINCT + 87 + 56 DIV col1 FROM tab0 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-5792
SELECT DISTINCT + 87 + 56 / col1 FROM tab0 AS cor0
----
87

query I rowsort
SELECT + 78 * - col1 + col1 FROM tab2 AS cor0
----
-1309
-2387
-4543

query I rowsort
SELECT DISTINCT - + ( col1 ) * + col0 FROM tab2 cor0
----
-1343
-217
-4602

query I rowsort
SELECT + col2 * + 84 AS col1 FROM tab1 AS cor0
----
4536
4788
8064

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5796
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + ( col1 ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5796
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + ( col1 ) AS col2 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 31 * col0 col1 FROM tab0 cor0
----
1085
2759
744

onlyif mysql # use DIV operator for integer division
query I rowsort label-5798
SELECT + - col0 * + cor0.col0 * cor0.col0 + col1 DIV col2 + col0 * col2 AS col1 FROM tab1 AS cor0
----
-258496
-504320
135

skipif mysql # not compatible
query I rowsort label-5798
SELECT + - col0 * + cor0.col0 * cor0.col0 + col1 / col2 + col0 * col2 AS col1 FROM tab1 AS cor0
----
-258496
-504320
135

query I rowsort
SELECT + col0 - ( - col0 ) FROM tab2 AS cor0
----
14
156
158

onlyif mysql # use DIV operator for integer division
query I rowsort label-5800
SELECT ALL - col1 DIV - col1 + + col1 + - col0 AS col0 FROM tab1 AS cor0
----
-53
-66
24

skipif mysql # not compatible
query I rowsort label-5800
SELECT ALL - col1 / - col1 + + col1 + - col0 AS col0 FROM tab1 AS cor0
----
-53
-66
24

query I rowsort
SELECT ALL col1 * + col0 AS col1 FROM tab2 cor0
----
1343
217
4602

query I rowsort
SELECT - - ( col2 ) * + col0 AS col0 FROM tab0 AS cor0
----
35
7298
792

onlyif mysql # use DIV operator for integer division
query I rowsort label-5803
SELECT ALL ( col1 ) - - col1 DIV 67 FROM tab2
----
17
31
59

skipif mysql # not compatible
query I rowsort label-5803
SELECT ALL ( col1 ) - - col1 / 67 FROM tab2
----
17
31
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 26 col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584

query I rowsort
SELECT - cor1.col0 * + 49 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 19d0ffadeb5c9f3c41ca04b2c7755b43

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 45 col2 FROM tab2
----
1170
1215
1710

onlyif mysql # use DIV operator for integer division
query I rowsort label-5807
SELECT + + cor0.col1 + - col2 DIV + col1 col2 FROM tab0 AS cor0
----
86
91
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5807
SELECT + + cor0.col1 + - col2 / + col1 col2 FROM tab0 AS cor0
----
86
91
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5808
SELECT - CAST( 29 AS SIGNED ) * + col1 * - 31 + 76 AS col2 FROM tab1 AS cor0
----
11763
23450
9066

skipif mysql # not compatible
query I rowsort label-5808
SELECT - CAST ( 29 AS INTEGER ) * + col1 * - 31 + 76 AS col2 FROM tab1 AS cor0
----
11763
23450
9066

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5809
SELECT - col2 * CAST( NULL AS DECIMAL ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5809
SELECT - col2 * CAST ( NULL AS REAL ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + - 94 FROM tab1 AS cor0
----
-94
-94
-94

onlyif mysql # use DIV operator for integer division
query I rowsort label-5811
SELECT + - 13 + - col1 DIV + col1 FROM tab2 AS cor0
----
-14
-14
-14

skipif mysql # not compatible
query I rowsort label-5811
SELECT + - 13 + - col1 / + col1 FROM tab2 AS cor0
----
-14
-14
-14

query I rowsort
SELECT 91 * - col2 FROM tab1
----
-4914
-5187
-8736

query I rowsort
SELECT - - 13 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

query I rowsort
SELECT DISTINCT ( col2 ) + col2 AS col0 FROM tab1 AS cor0
----
108
114
192

onlyif mysql # use DIV operator for integer division
query I rowsort label-5815
SELECT DISTINCT col2 + + col2 DIV col2 FROM tab1 cor0
----
55
58
97

skipif mysql # not compatible
query I rowsort label-5815
SELECT DISTINCT col2 + + col2 / col2 FROM tab1 cor0
----
55
58
97

query I rowsort
SELECT - cor1.col2 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6

query I rowsort
SELECT ALL - + col1 * + ( - col2 ) * cor0.col2 FROM tab1 AS cor0
----
119808
32490
75816

query I rowsort
SELECT col0 * ( + 84 ) AS col0 FROM tab1
----
252
5376
6720

query I rowsort
SELECT ALL 7 * + 67 FROM tab1, tab1 AS cor0
----
9 values hashing to 687e19deb70b1f10340bf9a8c8d54d11

onlyif mysql # use DIV operator for integer division
query I rowsort label-5820
SELECT - col1 + - ( + ( col1 ) ) DIV 59 AS col2 FROM tab2 AS cor0
----
-17
-31
-60

skipif mysql # not compatible
query I rowsort label-5820
SELECT - col1 + - ( + ( col1 ) ) / 59 AS col2 FROM tab2 AS cor0
----
-17
-31
-60

query I rowsort
SELECT ALL col0 * + 27 + - col0 FROM tab0 AS cor0
----
2314
624
910

query I rowsort
SELECT DISTINCT - cor0.col0 - - 39 * 56 AS col2 FROM tab1 AS cor0
----
2104
2120
2181

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5823
SELECT DISTINCT col0 * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5823
SELECT DISTINCT col0 * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5824
SELECT + col2 - CAST( col0 AS SIGNED ) * col1 FROM tab2 AS cor0
----
-1305
-190
-4576

skipif mysql # not compatible
query I rowsort label-5824
SELECT + col2 - CAST ( col0 AS INTEGER ) * col1 FROM tab2 AS cor0
----
-1305
-190
-4576

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 54 col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09

query I rowsort
SELECT col2 * - tab2.col2 AS col0 FROM tab2
----
-1444
-676
-729

query I rowsort
SELECT + col0 * 34 AS col0 FROM tab2
----
238
2652
2686

query I rowsort
SELECT - col0 + col0 * ( col1 ) AS col2 FROM tab2 AS cor0
----
1264
210
4524

query I rowsort
SELECT - cor0.col0 - cor0.col1 FROM tab0 AS cor0
----
-110
-132
-180

query I rowsort
SELECT DISTINCT - 82 AS col0 FROM tab0, tab1 AS cor0, tab2 AS cor1, tab0 AS cor2
----
-82

query I rowsort
SELECT - cor0.col2 * col0 + col1 FROM tab1 AS cor0
----
-136
-3638
-7667

query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab0 cor0, tab0 AS cor1, tab1 AS cor2
----
972 values hashing to 5621675b1bd32b061d284d0444c76601

query I rowsort
SELECT 71 * - col1 AS col0 FROM tab1 AS cor0
----
-1846
-710
-923

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 + 21 + - col2 AS col2 FROM tab1 AS cor0
----
-33
-36
-75

query I rowsort
SELECT + - col1 + - col0 * + col1 AS col2 FROM tab2 AS cor0
----
-1360
-248
-4661

query I rowsort
SELECT + col2 + ( cor0.col1 ) * col1 FROM tab0 cor0
----
7429
8363
9410

query I rowsort
SELECT col1 * - 0 AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + tab1.col2 * 51 FROM tab1, tab2 AS cor0
----
9 values hashing to 14bb0d5bbd9a42f799258f23dcd564bd

query I rowsort
SELECT DISTINCT + 0 AS col2 FROM tab1
----
0

query I rowsort
SELECT DISTINCT + tab1.col2 * tab1.col0 AS col1 FROM tab1
----
162
3648
7680

query I rowsort
SELECT ALL ( tab1.col0 * 23 ) + - 65 AS col0 FROM tab1
----
1407
1775
4

query I rowsort
SELECT ALL - col1 * + col0 + - 51 * col0 AS col0 FROM tab1
----
-231
-3904
-5120

onlyif mysql # use DIV operator for integer division
query I rowsort label-5844
SELECT DISTINCT col2 DIV cor0.col0 AS col1 FROM tab2 AS cor0
----
0
3

skipif mysql # not compatible
query I rowsort label-5844
SELECT DISTINCT col2 / cor0.col0 AS col1 FROM tab2 AS cor0
----
0
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 * col0 col0 FROM tab1 AS cor0
----
-4096
-6400
-9

query I rowsort
SELECT ALL - cor0.col2 * - col2 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT - + ( col1 ) * ( - col1 ) * + col1 FROM tab1 AS cor0
----
1000
17576
2197

onlyif mysql # use DIV operator for integer division
query I rowsort label-5848
SELECT ALL 33 DIV + 84 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

skipif mysql # not compatible
query I rowsort label-5848
SELECT ALL 33 / + 84 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

query I rowsort
SELECT + 65 * + cor0.col2 FROM tab2 cor0
----
1690
1755
2470

query I rowsort
SELECT ALL + 28 * - col1 FROM tab1 cor0
----
-280
-364
-728

query I rowsort
SELECT DISTINCT + + 28 * + col2 AS col0 FROM tab1 AS cor0
----
1512
1596
2688

skipif mysql # not compatible
query I rowsort
SELECT 31 + cor0.col2 * - CAST ( 96 AS REAL ) FROM tab0 AS cor0
----
-3137
-65
-7841

query I rowsort
SELECT ALL col2 * + 87 AS col0 FROM tab2 AS cor0
----
2262
2349
3306

query I rowsort
SELECT - - col2 * + 94 AS col0 FROM tab1 AS cor0
----
5076
5358
9024

query I rowsort
SELECT DISTINCT - + col0 - col0 * - col0 AS col1 FROM tab2 AS cor0
----
42
6006
6162

query I rowsort
SELECT DISTINCT - col2 + - 45 FROM tab2 cor0
----
-71
-72
-83

query I rowsort
SELECT - + col1 + col1 * col2 FROM tab1 cor0
----
1235
1378
560

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col1 * + col0 col2 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT col2 * - ( - 65 ) AS col0 FROM tab1 AS cor0
----
3510
3705
6240

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 79 col0 FROM tab2
----
79
79
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-5861
SELECT 58 * col1 - 75 DIV - col2 FROM tab1
----
1509
581
754

skipif mysql # not compatible
query I rowsort label-5861
SELECT 58 * col1 - 75 / - col2 FROM tab1
----
1509
581
754

onlyif mysql # use DIV operator for integer division
query I rowsort label-5862
SELECT DISTINCT col1 + col2 DIV 48 FROM tab0
----
86
92
97

skipif mysql # not compatible
query I rowsort label-5862
SELECT DISTINCT col1 + col2 / 48 FROM tab0
----
86
92
97

query I rowsort
SELECT col0 * col2 + col1 AS col1 FROM tab2
----
2087
220
3019

onlyif mysql # use DIV operator for integer division
query I rowsort label-5864
SELECT ALL + col2 DIV tab0.col0 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5864
SELECT ALL + col2 / tab0.col0 FROM tab0
----
0
0
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-5865
SELECT col2 DIV col2 + - col2 * col0 col2 FROM tab1
----
-161
-3647
-7679

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5865
SELECT col2 / col2 + - col2 * col0 col2 FROM tab1
----
-161
-3647
-7679

query I rowsort
SELECT DISTINCT + tab0.col1 * tab0.col0 AS col1 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT col0 * - tab1.col1 AS col2 FROM tab1
----
-1040
-640
-78

query I rowsort
SELECT DISTINCT + col0 * col0 - + tab2.col2 FROM tab2
----
22
6058
6203

query I rowsort
SELECT + col1 FROM tab0 WHERE + tab0.col1 / col0 + - col2 + - col0 / + col1 < + col2
----
86
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * + col2 col0 FROM tab0
----
-1
-1089
-6724

query I rowsort
SELECT DISTINCT col2 + - col1 * col0 FROM tab0
----
-2031
-3394
-8017

query I rowsort
SELECT - col1 * + tab1.col2 * tab1.col2 FROM tab1
----
-119808
-32490
-75816

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * tab2.col0 - + col2 col2 FROM tab2
----
-1381
-244
-4628

query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab1 WHERE NOT col2 > ( + col0 )
----
-64

query I rowsort
SELECT + col1 * + col0 + tab2.col1 * col2 AS col0 FROM tab2
----
1054
1989
6136

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + col1 col0 FROM tab2
----
118
34
62

query I rowsort
SELECT DISTINCT col2 + col2 * tab2.col0 + - tab2.col1 FROM tab2
----
185
1995
3023

onlyif mysql # use DIV operator for integer division
query I rowsort label-5878
SELECT DISTINCT + col2 DIV col2 AS col2 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-5878
SELECT DISTINCT + col2 / col2 AS col2 FROM tab1
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - col0 - col0 col2 FROM tab2
----
-56
-6162
-6320

query I rowsort
SELECT col1 + tab2.col2 * col2 AS col2 FROM tab2
----
1461
735
760

query III rowsort
SELECT * FROM tab0 WHERE ( col1 * col1 ) >= NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-5882
SELECT ALL tab2.col0 + col2 DIV + col0 FROM tab2
----
10
78
79

skipif mysql # not compatible
query I rowsort label-5882
SELECT ALL tab2.col0 + col2 / + col0 FROM tab2
----
10
78
79

query I rowsort
SELECT ALL + col2 FROM tab1 WHERE col0 / - col2 + - col2 * col2 + + col0 * - col2 <= NULL
----

query I rowsort
SELECT DISTINCT - col0 * - col2 * - col1 FROM tab2
----
-119652
-51034
-5859

query I rowsort
SELECT ALL col0 + - tab1.col2 + - col0 * col2 FROM tab1
----
-213
-3641
-7696

query I rowsort
SELECT ALL + col2 * col1 * col1 AS col2 FROM tab0
----
244068
679042
9409

query I rowsort
SELECT col1 * col0 + + col1 - col2 FROM tab2 WHERE NULL IN ( col2 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-5888
SELECT + col1 DIV col2 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5888
SELECT + col1 / col2 AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT col0 + - tab2.col0 AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL - tab2.col0 * col1 * - col2 FROM tab2
----
119652
51034
5859

query I rowsort
SELECT ALL tab0.col2 + - col1 * - col2 * col2 + col2 FROM tab0
----
612048
93720
99

query I rowsort
SELECT col0 * tab1.col1 * + col0 AS col2 FROM tab1
----
234
40960
83200

query I rowsort
SELECT col1 * - col1 * - col0 FROM tab2
----
22831
271518
6727

query I rowsort
SELECT - tab1.col1 * col2 + - col1 AS col0 FROM tab1
----
-1261
-1430
-580

query I rowsort
SELECT DISTINCT col0 FROM tab2 WHERE NULL NOT BETWEEN ( - col1 ) AND NULL
----

query I rowsort
SELECT ALL col2 * tab0.col1 + col2 + + col2 FROM tab0
----
2904
7626
99

query I rowsort
SELECT + col1 + col2 + col1 * + col1 FROM tab2
----
1019
344
3566

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + cor0.col1 ) + + 32 col2 FROM tab1 AS cor0
----
42
45
58

onlyif mysql # use DIV operator for integer division
query I rowsort label-5899
SELECT - col0 DIV - 24 AS col2 FROM tab2
----
0
3
3

skipif mysql # not compatible
query I rowsort label-5899
SELECT - col0 / - 24 AS col2 FROM tab2
----
0
3
3

query I rowsort
SELECT ALL - col2 - col1 FROM tab2
----
-55
-58
-85

query I rowsort
SELECT DISTINCT + col1 + col2 * ( col0 ) AS col1 FROM tab2 cor0
----
2087
220
3019

query I rowsort
SELECT - col0 - - col2 AS col1 FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT ALL ( - cor0.col0 ) FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT DISTINCT + col2 * - col1 + col0 * col1 FROM tab2 cor0
----
-620
3068
697

query I rowsort
SELECT DISTINCT tab0.col2 + + 20 FROM tab0
----
102
21
53

query I rowsort
SELECT - col0 + col0 * col2 AS col2 FROM tab2
----
182
1950
2923

query I rowsort
SELECT DISTINCT + 52 * + col2 * + col2 + 32 AS col2 FROM tab1
----
151664
168980
479264

onlyif mysql # use DIV operator for integer division
query I rowsort label-5908
SELECT ( 51 ) DIV col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5908
SELECT ( 51 ) / col1 FROM tab0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5909
SELECT + ( + 98 ) DIV col2 FROM tab0
----
1
2
98

skipif mysql # not compatible
query I rowsort label-5909
SELECT + ( + 98 ) / col2 FROM tab0
----
1
2
98

query I rowsort
SELECT ALL + - 53 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 2876418587c77a182d88db2907b0a51a

query I rowsort
SELECT col2 + col0 + - col1 * col0 * + cor0.col1 AS col1 FROM tab2 AS cor0
----
-22714
-271414
-6693

query I rowsort
SELECT 69 * col2 AS col0 FROM tab0 AS cor0
----
2277
5658
69

query I rowsort
SELECT ALL col1 * col0 + + 21 * + col0 FROM tab0 AS cor0
----
2568
4130
9968

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col2 * col2 + 0 col0 FROM tab2 AS cor0
----
1461
735
760

query I rowsort
SELECT DISTINCT + - 34 * col1 AS col2 FROM tab0 AS cor0
----
-2924
-3094
-3298

query I rowsort
SELECT + - 46 + col1 FROM tab0 AS cor0
----
40
45
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 61 + col1 col1 FROM tab2 AS cor0
----
-2
-30
-44

query I rowsort
SELECT + - col2 + - col1 * + 62 FROM tab0 cor0
----
-5365
-5724
-6015

skipif mysql # not compatible
query I rowsort
SELECT ALL - 49 + + col0 * ( ( - col1 ) ) + - CAST ( - col0 AS REAL ) FROM tab0 AS cor0
----
-2089
-3409
-8059

query I rowsort
SELECT ALL + - 72 FROM tab2 AS cor0
----
-72
-72
-72

onlyif mysql # use DIV operator for integer division
query I rowsort label-5921
SELECT 0 * col1 + col2 DIV - col0 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-5921
SELECT 0 * col1 + col2 / - col0 col0 FROM tab0 AS cor0
----
-1
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + col2 col0 FROM tab0 AS cor0
----
171
36
57

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab2 cor2, tab0 cor3
----
3645 values hashing to 4fa4bd3038de6e74a345debc8ab4cd53

query I rowsort
SELECT cor1.col0 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab1, tab1 cor1, tab2 AS cor2, tab2 AS cor3
----
3645 values hashing to 803a5565701c4ced6bba69940782c17a

query I rowsort
SELECT col1 + 76 AS col0 FROM tab2
----
107
135
93

query I rowsort
SELECT ALL + - col0 * col0 + ( - col0 ) AS col1 FROM tab2 AS cor0
----
-56
-6162
-6320

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5928
SELECT DISTINCT col0 + - CAST( NULL AS SIGNED ) - + col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5928
SELECT DISTINCT col0 + - CAST ( NULL AS INTEGER ) - + col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - col2 + - 58 AS col0 FROM tab0
----
-140
-59
-91

query I rowsort
SELECT DISTINCT ( col1 ) + cor0.col1 * - col0 * - 7 AS col0 FROM tab2 AS cor0
----
1550
32273
9418

query I rowsort
SELECT + + col1 * + cor0.col2 - col1 * - cor0.col2 AS col0 FROM tab1 AS cor0
----
1140
2496
2808

query I rowsort
SELECT DISTINCT - 91 * + cor0.col1 + col0 * col0 AS col1 FROM tab0 AS cor0
----
-360
-7250
-7602

query I rowsort
SELECT ALL + col0 - 82 AS col0 FROM tab0 AS cor0
----
-47
-58
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 77 + + col1 col1 FROM tab2 AS cor0
----
108
136
94

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5935
SELECT DISTINCT CAST( NULL AS SIGNED ) / - 47 col2 FROM tab1 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5935
SELECT DISTINCT CAST ( NULL AS INTEGER ) / - 47 col2 FROM tab1 cor0
----
NULL

query I rowsort
SELECT - 39 * 90 AS col0 FROM tab2 AS cor0
----
-3510
-3510
-3510

query I rowsort
SELECT ALL 59 FROM tab2, tab1 AS cor0
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

query I rowsort
SELECT ALL - - cor0.col1 + + col2 + + col1 AS col2 FROM tab2 AS cor0
----
144
72
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-5939
SELECT + col2 DIV + col0 + col0 DIV + col1 - col1 FROM tab0 cor0
----
-85
-91
-97

skipif mysql # not compatible
query I rowsort label-5939
SELECT + col2 / + col0 + col0 / + col1 - col1 FROM tab0 cor0
----
-85
-91
-97

query I rowsort
SELECT + + col1 * - cor0.col0 AS col0 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT - 2 + - cor0.col2 AS col0 FROM tab2 AS cor0
----
-28
-29
-40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col0 * + cor0.col1 col2 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT ALL + + col0 + col2 * + col0 AS col2 FROM tab2 AS cor0
----
196
2106
3081

query I rowsort
SELECT DISTINCT 35 * col0 * - col2 AS col1 FROM tab0 AS cor0
----
-1225
-255430
-27720

query I rowsort
SELECT + + 62 FROM tab2 AS cor0
----
62
62
62

query I rowsort
SELECT + + col2 + col0 - col0 FROM tab1 AS cor0
----
54
57
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-5947
SELECT ALL + CAST( col0 AS SIGNED ) * col2 DIV col0 + - col1 - + col1 FROM tab0
----
-100
-139
-193

skipif mysql # not compatible
query I rowsort label-5947
SELECT ALL + CAST ( col0 AS INTEGER ) * col2 / col0 + - col1 - + col1 FROM tab0
----
-100
-139
-193

query I rowsort
SELECT col0 * col1 + - col1 - - col0 * - col1 AS col2 FROM tab1
----
-10
-13
-26

query I rowsort
SELECT ALL 93 + col2 + col0 AS col1 FROM tab1
----
150
214
269

onlyif mysql # use DIV operator for integer division
query I rowsort label-5950
SELECT + 21 + col2 DIV col0 AS col2 FROM tab1
----
21
22
39

skipif mysql # not compatible
query I rowsort label-5950
SELECT + 21 + col2 / col0 AS col2 FROM tab1
----
21
22
39

onlyif mysql # use DIV operator for integer division
query I rowsort label-5951
SELECT - - col0 DIV col1 + col2 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-5951
SELECT - - col0 / col1 + col2 FROM tab0 AS cor0
----
1
33
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + col2 - col2 col1 FROM tab2 AS cor0
----
1508
608
810

query I rowsort
SELECT col2 - col1 * col0 FROM tab1 AS cor0
----
-24
-583
-944

onlyif mysql # use DIV operator for integer division
query I rowsort label-5954
SELECT 57 DIV - col1 col1 FROM tab2
----
-1
-3
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5954
SELECT 57 / - col1 col1 FROM tab2
----
-1
-3
0

query I rowsort
SELECT DISTINCT col0 + + col0 + - tab0.col0 AS col2 FROM tab0
----
24
35
89

query I rowsort
SELECT 79 AS col0 FROM tab0 AS cor0
----
79
79
79

query I rowsort
SELECT DISTINCT col2 * 20 AS col1 FROM tab1 cor0
----
1080
1140
1920

skipif mysql # not compatible
query I rowsort
SELECT col2 * - CAST ( 62 AS REAL ) + col0 AS col0 FROM tab0
----
-2022
-27
-4995

query I rowsort
SELECT 60 * + 18 + - col2 FROM tab1
----
1023
1026
984

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5960
SELECT ALL CAST( 16 AS SIGNED ) * - col2 + + col1 * + col2 FROM tab2
----
1118
38
405

skipif mysql # not compatible
query I rowsort label-5960
SELECT ALL CAST ( 16 AS INTEGER ) * - col2 + + col1 * + col2 FROM tab2
----
1118
38
405

query I rowsort
SELECT tab2.col1 AS col0 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

query I rowsort
SELECT + ( col0 + - col1 ) * col1 AS col2 FROM tab0
----
-182
-5332
-6014

query I rowsort
SELECT ( col2 ) + col2 * col1 AS col2 FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT ALL - col1 * - ( col0 + col2 ) AS col1 FROM tab1 AS cor0
----
1210
1482
2288

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + cor0.col0 + col1 col0 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT DISTINCT - + col0 * - 10 + + cor0.col2 * - cor0.col1 + + col1 FROM tab2 AS cor0
----
-695
-736
161

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN - col2 AND + col2
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-5968
SELECT ALL + col1 * - col1 DIV - col1 AS col1 FROM tab0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-5968
SELECT ALL + col1 * - col1 / - col1 AS col1 FROM tab0
----
86
91
97

query I rowsort
SELECT + col2 AS col0 FROM tab2 WHERE NOT - col2 - - col2 NOT IN ( + col1 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-5970
SELECT - col0 DIV col1 col1 FROM tab1
----
-6
-6
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5970
SELECT - col0 / col1 col1 FROM tab1
----
-6
-6
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5971
SELECT - col2 * - col1 DIV col1 FROM tab0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-5971
SELECT - col2 * - col1 / col1 FROM tab0
----
1
33
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + col1 + col0 col2 FROM tab1 WHERE NULL = NULL
----

query I rowsort
SELECT DISTINCT col1 * col1 + col2 AS col2 FROM tab0 WHERE col0 > NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-5974
SELECT + col2 DIV col2 + + col2 * col1 AS col0 FROM tab1
----
1249
1405
571

skipif mysql # not compatible
query I rowsort label-5974
SELECT + col2 / col2 + + col2 * col1 AS col0 FROM tab1
----
1249
1405
571

query I rowsort
SELECT - col1 + + tab2.col0 + - tab2.col1 * col0 FROM tab2
----
-1281
-241
-4583

onlyif mysql # use DIV operator for integer division
query I rowsort label-5976
SELECT ALL tab1.col0 DIV col0 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5976
SELECT ALL tab1.col0 / col0 FROM tab1
----
1
1
1

query IIIIII rowsort
SELECT * FROM tab2, tab1 AS cor0 WHERE NOT NULL <> NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL > ( col0 * col0 )
----

query I rowsort
SELECT col0 * col2 * col0 AS col1 FROM tab2 AS cor0
----
1323
158184
237158

query I rowsort
SELECT - col1 AS col1 FROM tab2 AS cor0 WHERE NOT - col2 <> col2
----

query I rowsort
SELECT tab2.col1 * + tab2.col1 AS col1 FROM tab2
----
289
3481
961

query I rowsort
SELECT cor0.col0 FROM tab0, tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT DISTINCT - ( + col2 ) + col0 FROM tab1 cor0
----
-16
-51
7

query I rowsort
SELECT + tab0.col1 * col1 * ( - col2 ) AS col2 FROM tab0
----
-244068
-679042
-9409

query I rowsort
SELECT + col1 + - ( + col1 ) FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + col1 - col0 * col2 FROM tab0 cor0
----
-706
-7207
62

query I rowsort
SELECT ALL col1 + ( 57 * col2 ) FROM tab1
----
3104
3259
5485

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5988
SELECT ALL CAST( NULL AS SIGNED ) + col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5988
SELECT ALL CAST ( NULL AS INTEGER ) + col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5989
SELECT ALL - CAST( col1 AS SIGNED ) DIV col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5989
SELECT ALL - CAST ( col1 AS INTEGER ) / col2 FROM tab1
----
0
0
0

query I rowsort
SELECT 82 * col0 + tab1.col2 * col1 FROM tab1
----
1650
5818
7808

query I rowsort
SELECT DISTINCT ( 76 ) * col1 FROM tab1 AS cor0
----
1976
760
988

query I rowsort
SELECT + col1 + - col1 AS col1 FROM tab2 cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5993
SELECT col2 DIV - 96 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5993
SELECT col2 / - 96 FROM tab1 AS cor0
----
-1
0
0

query I rowsort
SELECT ALL - 76 * col2 + col1 AS col0 FROM tab2 AS cor0
----
-1917
-2021
-2871

query I rowsort
SELECT DISTINCT + + ( + 25 ) * + col1 + + col2 AS col0 FROM tab2 AS cor0
----
1501
463
802

query I rowsort
SELECT - 30 + tab0.col1 AS col1 FROM tab0, tab2, tab0 cor0
----
27 values hashing to 98b335ad89cdcfc759d57fc2a46f78ef

query I rowsort
SELECT DISTINCT + 38 FROM tab1, tab2, tab0 AS cor0
----
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 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-5999
SELECT ALL - + col0 - col0 * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5999
SELECT ALL - + col0 - col0 * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 10 col0 FROM tab1, tab0 cor0
----
9 values hashing to a47194429f3e0358a3aebffd5f050113

query I rowsort
SELECT ALL - 75 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to c0722b1d77ac0ed13c0f2691a5751c59

query I rowsort
SELECT - 4 + - col2 FROM tab1 AS cor0
----
-100
-58
-61

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0, tab0 cor1, tab2, tab1 AS cor2
----
3645 values hashing to 5e27196f2932b25a5297ddec46b8b8f1

query I rowsort
SELECT DISTINCT - - col1 * 72 - col0 FROM tab0 AS cor0
----
6168
6463
6949

query I rowsort
SELECT + + cor0.col0 * - 71 - 59 * - col1 * col1 AS col2 FROM tab1 AS cor0
----
1356
39671
4291

query I rowsort
SELECT DISTINCT col1 * + 13 * + col2 + - col0 FROM tab0 AS cor0
----
1226
36870
96917

query I rowsort
SELECT ALL + - col2 + 32 * + col2 + col1 * ( + col1 ) * col1 AS col0 FROM tab1 AS cor0
----
19250
2767
5173

query I rowsort
SELECT DISTINCT + - cor0.col2 + col0 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT + + col1 + ( col0 ) AS col2 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT - - col2 + col1 * col0 FROM tab0 AS cor0
----
2097
3396
8181

query I rowsort
SELECT ALL col1 + 85 * col1 FROM tab0 AS cor0
----
7396
7826
8342

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6012
SELECT DISTINCT + - col2 / - CAST( NULL AS SIGNED ) + + 48 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6012
SELECT DISTINCT + - col2 / - CAST ( NULL AS INTEGER ) + + 48 FROM tab0 cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6013
SELECT ALL + - col2 * + col1 - + 42 DIV col0 FROM tab0 AS cor0
----
-2839
-7462
-98

skipif mysql # not compatible
query I rowsort label-6013
SELECT ALL + - col2 * + col1 - + 42 / col0 FROM tab0 AS cor0
----
-2839
-7462
-98

query I rowsort
SELECT + - col2 + + col1 * 88 FROM tab0 AS cor0
----
7535
7926
8535

onlyif mysql # use DIV operator for integer division
query I rowsort label-6015
SELECT ALL - col2 + + 86 DIV - col0 AS col1 FROM tab0 AS cor0
----
-3
-36
-82

skipif mysql # not compatible
query I rowsort label-6015
SELECT ALL - col2 + + 86 / - col0 AS col1 FROM tab0 AS cor0
----
-3
-36
-82

query I rowsort
SELECT cor0.col1 - - 16 AS col0 FROM tab0 AS cor0
----
102
107
113

onlyif mysql # use DIV operator for integer division
query I rowsort label-6017
SELECT ALL col1 + col0 DIV + cor0.col1 FROM tab1 cor0
----
16
19
26

skipif mysql # not compatible
query I rowsort label-6017
SELECT ALL col1 + col0 / + cor0.col1 FROM tab1 cor0
----
16
19
26

query I rowsort
SELECT - - col1 * + 52 * 29 + - col1 FROM tab1 AS cor0
----
15070
19591
39182

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - cor0.col2 * cor0.col2 + - col2 col1 FROM tab1 AS cor0
----
2862
3192
9120

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 91 * + col1 col1 FROM tab2
----
1547
2821
5369

query I rowsort
SELECT DISTINCT - col2 * - 73 + ( + col0 ) AS col2 FROM tab1 AS cor0
----
3945
4225
7088

query I rowsort
SELECT + col0 * - col2 * + cor0.col1 AS col2 FROM tab0 AS cor0
----
-3395
-664118
-68112

query I rowsort
SELECT + - col0 * - col0 + col2 * col0 FROM tab0 AS cor0
----
1260
1368
15219

query I rowsort
SELECT ALL + col1 * - 29 AS col2 FROM tab0 AS cor0
----
-2494
-2639
-2813

query I rowsort
SELECT - + 40 + cor0.col0 AS col1 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 7a4cad8c70839384a266f9fbf891fb98

onlyif mysql # use DIV operator for integer division
query I rowsort label-6026
SELECT + 42 DIV col2 FROM tab0
----
0
1
42

skipif mysql # not compatible
query I rowsort label-6026
SELECT + 42 / col2 FROM tab0
----
0
1
42

query I rowsort
SELECT 90 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 5d25a546acf3ae171e731e50adc0112e

query I rowsort
SELECT ALL - cor0.col0 * - ( - ( col1 ) ) AS col0 FROM tab1 cor0
----
-1040
-640
-78

query I rowsort
SELECT DISTINCT col1 + col0 AS col1 FROM tab0 cor0
----
110
132
180

query I rowsort
SELECT ALL col1 * + 98 + + col1 FROM tab2
----
1683
3069
5841

query I rowsort
SELECT DISTINCT + + cor0.col1 * - 85 * col2 AS col1 FROM tab2 AS cor0
----
-130390
-54910
-71145

onlyif mysql # use DIV operator for integer division
query I rowsort label-6032
SELECT col0 + ( col1 ) * col0 DIV col2 FROM tab0 AS cor0
----
187
3430
86

skipif mysql # not compatible
query I rowsort label-6032
SELECT col0 + ( col1 ) * col0 / col2 FROM tab0 AS cor0
----
187
3430
86

query I rowsort
SELECT ALL - col1 + + col0 * 46 - col1 FROM tab1
----
2924
3654
86

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6034
SELECT col0 + - CAST( NULL AS SIGNED ) + 23 * col2 col1 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6034
SELECT col0 + - CAST ( NULL AS INTEGER ) + 23 * col2 col1 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * ( col2 ) col2 FROM tab2
----
1444
676
729

onlyif mysql # use DIV operator for integer division
query I rowsort label-6036
SELECT DISTINCT - tab1.col0 DIV col2 + - col2 FROM tab1
----
-54
-58
-96

skipif mysql # not compatible
query I rowsort label-6036
SELECT DISTINCT - tab1.col0 / col2 + - col2 FROM tab1
----
-54
-58
-96

query I rowsort
SELECT DISTINCT - col1 + + 95 * tab1.col0 + - col0 AS col2 FROM tab1
----
256
6006
7507

query I rowsort
SELECT ALL - tab1.col2 FROM tab1, tab1 cor0, tab0 AS cor1
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e

query I rowsort
SELECT - 10 * + col1 + col0 + - col2 FROM tab2 AS cor0
----
-129
-330
-538

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * col2 col1 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT DISTINCT ( + col0 ) + + 50 AS col0 FROM tab2 AS cor0
----
128
129
57

query I rowsort
SELECT ALL - ( + col2 ) * ( 96 ) AS col0 FROM tab1 AS cor0
----
-5184
-5472
-9216

query I rowsort
SELECT ALL - 53 * cor0.col0 FROM tab2 AS cor0
----
-371
-4134
-4187

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * - col0 col2 FROM tab1 cor0
----
-1040
-640
-78

query I rowsort
SELECT ALL - - 56 AS col0 FROM tab1 AS cor0
----
56
56
56

query I rowsort
SELECT DISTINCT + 59 * col0 AS col0 FROM tab2 AS cor0
----
413
4602
4661

query I rowsort
SELECT DISTINCT ( - col1 ) + - col2 AS col2 FROM tab1
----
-109
-67
-80

query I rowsort
SELECT + col0 + - 85 AS col1 FROM tab1
----
-21
-5
-82

query I rowsort
SELECT ALL ( 88 ) * col0 + col0 FROM tab1
----
267
5696
7120

query I rowsort
SELECT - ( + col0 ) - col1 FROM tab1
----
-29
-74
-93

onlyif mysql # use DIV operator for integer division
query I rowsort label-6051
SELECT 67 DIV 12 + + col2 col1 FROM tab2
----
31
32
43

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6051
SELECT 67 / 12 + + col2 col1 FROM tab2
----
31
32
43

query I rowsort
SELECT tab1.col2 * - col0 * - col1 AS col0 FROM tab1
----
36480
4212
99840

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 - - col2 * + tab2.col0 col1 FROM tab2
----
2087
220
3019

onlyif mysql # use DIV operator for integer division
query I rowsort label-6054
SELECT DISTINCT col2 * - col0 * - col2 + col1 DIV - 17 FROM tab0
----
26131
30
598431

skipif mysql # not compatible
query I rowsort label-6054
SELECT DISTINCT col2 * - col0 * - col2 + col1 / - 17 FROM tab0
----
26131
30
598431

onlyif mysql # use DIV operator for integer division
query I rowsort label-6055
SELECT DISTINCT - 13 DIV + col0 + col1 * + ( + tab0.col1 ) AS col0 FROM tab0
----
7396
8281
9409

skipif mysql # not compatible
query I rowsort label-6055
SELECT DISTINCT - 13 / + col0 + col1 * + ( + tab0.col1 ) AS col0 FROM tab0
----
7396
8281
9409

query I rowsort
SELECT DISTINCT + 51 AS col1 FROM tab1
----
51

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6057
SELECT ALL cor0.col0 + - CAST( NULL AS SIGNED ) AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-6057
SELECT ALL cor0.col0 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT + col2 + + cor0.col0 AS col0 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT ALL + - 7 + - col0 FROM tab2 AS cor0
----
-14
-85
-86

query I rowsort
SELECT - 6 AS col1 FROM tab1 AS cor0
----
-6
-6
-6

query I rowsort
SELECT + col2 + + cor0.col0 AS col0 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT ALL - + col2 * - cor0.col0 FROM tab0 AS cor0
----
35
7298
792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col2 ) col2 FROM tab1
----
54
57
96

query I rowsort
SELECT ( 91 ) AS col1 FROM tab0
----
91
91
91

query I rowsort
SELECT + ( col0 * + col2 + col0 ) FROM tab2
----
196
2106
3081

query I rowsort
SELECT - 24 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 797d0f7c145f8ac623924448c714bbcc

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6067
SELECT - CAST( NULL AS SIGNED ) + + tab1.col2 / col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6067
SELECT - CAST ( NULL AS INTEGER ) + + tab1.col2 / col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + ( + col2 ) AS col0 FROM tab1
----
54
57
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6069
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - 14 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6069
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - 14 FROM tab0 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6070
SELECT DISTINCT - CAST( col1 AS SIGNED ) FROM tab1 AS cor0
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-6070
SELECT DISTINCT - CAST ( col1 AS INTEGER ) FROM tab1 AS cor0
----
-10
-13
-26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col2 * + col2 col1 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT - 43 * col2 + col0 * - cor0.col2 FROM tab1 AS cor0
----
-11808
-2484
-6099

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6073
SELECT col1 * - col2 + + CAST( col1 + col2 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-1449
-591
-779

skipif mysql # not compatible
query I rowsort label-6073
SELECT col1 * - col2 + + CAST ( col1 + col2 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-1449
-591
-779

query I rowsort
SELECT + 0 + + col1 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT DISTINCT + 28 * col2 FROM tab2 AS cor0
----
1064
728
756

onlyif mysql # use DIV operator for integer division
query I rowsort label-6076
SELECT - - 31 DIV col1 + - ( + col2 ) * col1 AS col1 FROM tab1 AS cor0
----
-1246
-1403
-567

skipif mysql # not compatible
query I rowsort label-6076
SELECT - - 31 / col1 + - ( + col2 ) * col1 AS col1 FROM tab1 AS cor0
----
-1246
-1403
-567

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 79 + - col2 col1 FROM tab1 AS cor0
----
-17
22
25

query I rowsort
SELECT col2 - + col1 AS col0 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT + ( col1 ) * 28 AS col1 FROM tab1 AS cor0
----
280
364
728

query I rowsort
SELECT 45 - col0 FROM tab0 AS cor0
----
-44
10
21

query I rowsort
SELECT ALL cor0.col0 + - ( ( cor0.col0 ) ) FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + col1 col0 FROM tab2 cor0
----
-1534
-646
-837

query I rowsort
SELECT - + col2 * col1 + 66 * col0 * col2 FROM tab0 AS cor0
----
2213
474206
49434

query I rowsort
SELECT - col1 * 60 FROM tab2 AS cor0
----
-1020
-1860
-3540

query I rowsort
SELECT col1 * + ( - 52 + - col1 ) FROM tab0 AS cor0
----
-11868
-13013
-14453

query I rowsort
SELECT + cor0.col0 * col1 + - col1 * + cor0.col1 AS col2 FROM tab2 cor0
----
-744
1054
1121

query I rowsort
SELECT - ( + cor0.col1 ) FROM tab1, tab0 AS cor0
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f

query I rowsort
SELECT 15 FROM tab0 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab0 AS cor2
----
81 values hashing to 97c4e033347d2076218e240ed49af0a7

query I rowsort
SELECT DISTINCT - tab1.col0 * + 97 AS col0 FROM tab1
----
-291
-6208
-7760

query I rowsort
SELECT 2 * - col2 AS col1 FROM tab1 AS cor0
----
-108
-114
-192

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - col2 * + col0 col1 FROM tab2 AS cor0
----
114076
5103
52728

query I rowsort
SELECT - col2 + - col0 * col0 AS col0 FROM tab1 AS cor0
----
-4153
-63
-6496

query I rowsort
SELECT + col2 * col0 * col1 FROM tab1 AS cor0
----
36480
4212
99840

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + 11 col1 FROM tab2 AS cor0
----
77
858
869

query I rowsort
SELECT 82 * - 81 FROM tab2 AS cor0
----
-6642
-6642
-6642

query I rowsort
SELECT - + 40 + + col2 FROM tab2 AS cor0
----
-13
-14
-2

query I rowsort
SELECT DISTINCT ( - col1 ) + - col1 AS col0 FROM tab1 AS cor0
----
-20
-26
-52

query I rowsort
SELECT ALL cor0.col1 + + col2 FROM tab0 AS cor0
----
119
173
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + col2 + + 92 - - 61 col1 FROM tab0 AS cor0
----
250
2991
7615

query I rowsort
SELECT ALL + 93 * col0 - - col1 AS col2 FROM tab2 AS cor0
----
682
7313
7364

query I rowsort
SELECT + + 34 * col1 AS col1 FROM tab0 AS cor0
----
2924
3094
3298

query I rowsort
SELECT col1 + col0 * + cor0.col2 AS col0 FROM tab1 AS cor0
----
188
3658
7693

onlyif mysql # use DIV operator for integer division
query I rowsort label-6103
SELECT - 1 DIV - col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6103
SELECT - 1 / - col0 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT + + 16 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
16

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6105
SELECT col1 * CAST( NULL AS SIGNED ) * - col2 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6105
SELECT col1 * CAST ( NULL AS INTEGER ) * - col2 AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT tab0.col0 * 12 FROM tab0
----
1068
288
420

query I rowsort
SELECT DISTINCT - col2 + col0 * tab1.col0 FROM tab1
----
-45
4039
6304

query I rowsort
SELECT col1 - - 5 * tab1.col1 AS col2 FROM tab1
----
156
60
78

query I rowsort
SELECT + + col1 * + col2 AS col2 FROM tab0 AS cor0
----
2838
7462
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-6110
SELECT + col0 + + cor0.col1 DIV col0 FROM tab2 AS cor0
----
11
78
79

skipif mysql # not compatible
query I rowsort label-6110
SELECT + col0 + + cor0.col1 / col0 FROM tab2 AS cor0
----
11
78
79

query I rowsort
SELECT DISTINCT + + cor0.col2 * col1 AS col2 FROM tab0 AS cor0
----
2838
7462
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-6112
SELECT cor0.col2 * + col1 + + col0 - - col0 * col0 DIV - col2 FROM tab1 AS cor0
----
1262
1407
563

skipif mysql # not compatible
query I rowsort label-6112
SELECT cor0.col2 * + col1 + + col0 - - col0 * col0 / - col2 FROM tab1 AS cor0
----
1262
1407
563

query I rowsort
SELECT ALL 20 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

query I rowsort
SELECT DISTINCT col1 * + 38 AS col2 FROM tab2
----
1178
2242
646

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6115
SELECT - CAST( - col1 AS SIGNED ) * - tab1.col2 - col1 AS col1 FROM tab1
----
-1261
-1430
-580

skipif mysql # not compatible
query I rowsort label-6115
SELECT - CAST ( - col1 AS INTEGER ) * - tab1.col2 - col1 AS col1 FROM tab1
----
-1261
-1430
-580

query I rowsort
SELECT DISTINCT + - 34 AS col0 FROM tab1, tab2 AS cor0, tab2, tab1 AS cor1
----
-34

onlyif mysql # use DIV operator for integer division
query I rowsort label-6117
SELECT - cor0.col0 DIV 8 AS col1 FROM tab0, tab2 cor0
----
9 values hashing to f9f3e0e8081581c26e56842f89787dec

skipif mysql # not compatible
query I rowsort label-6117
SELECT - cor0.col0 / 8 AS col1 FROM tab0, tab2 cor0
----
9 values hashing to f9f3e0e8081581c26e56842f89787dec

onlyif mysql # use DIV operator for integer division
query I rowsort label-6118
SELECT DISTINCT col0 + col0 DIV col0 AS col1 FROM tab2
----
79
8
80

skipif mysql # not compatible
query I rowsort label-6118
SELECT DISTINCT col0 + col0 / col0 AS col1 FROM tab2
----
79
8
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-6119
SELECT - col1 + - col1 DIV 87 FROM tab2
----
-17
-31
-59

skipif mysql # not compatible
query I rowsort label-6119
SELECT - col1 + - col1 / 87 FROM tab2
----
-17
-31
-59

query I rowsort
SELECT ALL - col1 + col1 - - col2 FROM tab0
----
1
33
82

query I rowsort
SELECT - 96 * - col2 FROM tab0
----
3168
7872
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-6122
SELECT + col1 * col2 + + 96 DIV col0 + + tab1.col1 AS col2 FROM tab1
----
1262
1462
581

skipif mysql # not compatible
query I rowsort label-6122
SELECT + col1 * col2 + + 96 / col0 + + tab1.col1 AS col2 FROM tab1
----
1262
1462
581

query I rowsort
SELECT - col2 * + col0 - 98 FROM tab1 AS cor0
----
-260
-3746
-7778

query I rowsort
SELECT - - col1 + + col0 - 15 FROM tab1 AS cor0
----
14
59
78

query I rowsort
SELECT ALL - 84 AS col2 FROM tab2 AS cor0
----
-84
-84
-84

query I rowsort
SELECT + col0 * + col2 + 4 - - 33 * col0 FROM tab0 cor0
----
10239
1194
1588

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6127
SELECT + + ( col2 ) * - CAST( NULL AS SIGNED ) / + col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6127
SELECT + + ( col2 ) * - CAST ( NULL AS INTEGER ) / + col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ( col2 ) + - ( col2 ) * - col0 FROM tab1
----
216
3705
7776

query I rowsort
SELECT - col2 * col1 - + col0 FROM tab2 AS cor0
----
-1612
-725
-844

query I rowsort
SELECT col1 - 64 FROM tab0
----
22
27
33

query I rowsort
SELECT DISTINCT + ( cor0.col2 ) + - col1 + - col2 * + 79 FROM tab1 AS cor0
----
-4238
-4456
-7501

query I rowsort
SELECT ALL - - cor0.col1 * - col0 FROM tab1 cor0
----
-1040
-640
-78

query I rowsort
SELECT DISTINCT + + col1 + col1 * - col1 AS col0 FROM tab1 AS cor0
----
-156
-650
-90

query I rowsort
SELECT ALL - + col1 * - col0 AS col2 FROM tab2 cor0
----
1343
217
4602

query I rowsort
SELECT DISTINCT + 55 - cor0.col0 FROM tab0 cor0
----
-34
20
31

query I rowsort
SELECT ALL + - col2 * col1 + - col1 * col1 + + col2 * + col2 AS col1 FROM tab0 AS cor0
----
-9019
-9145
-9505

query I rowsort
SELECT DISTINCT - col1 * + col2 + - col2 AS col2 FROM tab1 AS cor0
----
-1344
-1458
-627

query I rowsort
SELECT 73 + - col1 * col1 AS col0 FROM tab2 AS cor0
----
-216
-3408
-888

query I rowsort
SELECT DISTINCT + + col2 + col0 * col0 AS col2 FROM tab0 cor0
----
1226
609
8003

onlyif mysql # use DIV operator for integer division
query I rowsort label-6140
SELECT 18 DIV col0 + col2 FROM tab1
----
57
60
96

skipif mysql # not compatible
query I rowsort label-6140
SELECT 18 / col0 + col2 FROM tab1
----
57
60
96

query I rowsort
SELECT ALL ( cor0.col0 ) + + col0 AS col1 FROM tab2 AS cor0
----
14
156
158

onlyif mysql # use DIV operator for integer division
query I rowsort label-6142
SELECT ALL + 89 + + col1 DIV cor0.col1 FROM tab0 AS cor0
----
90
90
90

skipif mysql # not compatible
query I rowsort label-6142
SELECT ALL + 89 + + col1 / cor0.col1 FROM tab0 AS cor0
----
90
90
90

query I rowsort
SELECT ALL + col1 * + col0 * + col0 + + col1 AS col2 FROM tab2 cor0
----
106114
1550
359015

query I rowsort
SELECT DISTINCT + ( + col0 ) + col1 - col2 * - 83 AS col2 FROM tab2 AS cor0
----
2279
2295
3250

query I rowsort
SELECT DISTINCT + + col2 * + col1 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT ALL + 16 + col0 * col1 FROM tab2 AS cor0
----
1359
233
4618

query I rowsort
SELECT DISTINCT - - col0 * - col0 - - ( col2 * cor0.col0 ) AS col1 FROM tab0 AS cor0
----
-1190
-623
216

query I rowsort
SELECT ALL - - col0 + + col1 - 17 * col2 AS col2 FROM tab1 AS cor0
----
-1539
-889
-895

query I rowsort
SELECT DISTINCT - col2 + cor0.col0 - col1 * col0 FROM tab0 AS cor0
----
-2073
-3361
-8092

query I rowsort
SELECT DISTINCT col0 * col1 + - cor0.col0 AS col0 FROM tab1 cor0
----
576
75
960

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + col1 * col1 col1 FROM tab1
----
156
650
90

query I rowsort
SELECT - 31 * 66 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 4a6f1cf79ac586f25ccf228f360a946f

query I rowsort
SELECT - col1 - 45 AS col2 FROM tab0
----
-131
-136
-142

query I rowsort
SELECT - - col2 * col1 * - col1 FROM tab1 AS cor0
----
-16224
-36504
-5700

query I rowsort
SELECT ALL - col0 + 49 AS col2 FROM tab0 cor0
----
-40
14
25

query I rowsort
SELECT DISTINCT - cor0.col1 * - col0 AS col1 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT - + col1 * - cor0.col1 AS col0 FROM tab1 AS cor0
----
100
169
676

onlyif mysql # use DIV operator for integer division
query I rowsort label-6158
SELECT DISTINCT - col1 + ( - 33 ) DIV + col0 AS col2 FROM tab2 AS cor0
----
-17
-35
-59

skipif mysql # not compatible
query I rowsort label-6158
SELECT DISTINCT - col1 + ( - 33 ) / + col0 AS col2 FROM tab2 AS cor0
----
-17
-35
-59

query I rowsort
SELECT col0 + + col1 * col2 AS col2 FROM tab2 AS cor0
----
1612
725
844

query I rowsort
SELECT + cor0.col0 * ( - col0 ) + col0 AS col0 FROM tab0 AS cor0
----
-1190
-552
-7832

query I rowsort
SELECT ALL + - col0 * + cor0.col0 FROM tab2 AS cor0
----
-49
-6084
-6241

onlyif mysql # use DIV operator for integer division
query I rowsort label-6162
SELECT + cor0.col1 + col0 DIV 39 AS col2 FROM tab2 AS cor0
----
19
31
61

skipif mysql # not compatible
query I rowsort label-6162
SELECT + cor0.col1 + col0 / 39 AS col2 FROM tab2 AS cor0
----
19
31
61

query I rowsort
SELECT col1 + 1 FROM tab2 AS cor0
----
18
32
60

onlyif mysql # use DIV operator for integer division
query I rowsort label-6164
SELECT DISTINCT cor0.col2 DIV 80 AS col2 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-6164
SELECT DISTINCT cor0.col2 / 80 AS col2 FROM tab1 AS cor0
----
0
1

query I rowsort
SELECT DISTINCT - col2 * - col0 + col1 AS col1 FROM tab1 cor0
----
188
3658
7693

query I rowsort
SELECT ALL col2 + col2 - - ( - col0 + col0 * + col0 ) AS col2 FROM tab2
----
6058
6238
96

query I rowsort
SELECT ALL - col1 - - col0 FROM tab2
----
-24
19
62

query I rowsort
SELECT DISTINCT + col0 + 52 FROM tab1 AS cor0
----
116
132
55

query I rowsort
SELECT ALL + + col1 * 68 FROM tab1 cor0
----
1768
680
884

query I rowsort
SELECT - - col1 + 95 * 62 FROM tab2 AS cor0
----
5907
5921
5949

query I rowsort
SELECT DISTINCT + col0 + + 5 * + col0 FROM tab1 AS cor0
----
18
384
480

query I rowsort
SELECT 0 * 91 FROM tab0, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT + col2 * col0 + cor0.col0 FROM tab2 AS cor0
----
196
2106
3081

query I rowsort
SELECT ALL 69 + - 16 * col0 AS col2 FROM tab0 AS cor0
----
-1355
-315
-491

query I rowsort
SELECT DISTINCT - 99 * col1 AS col1 FROM tab2 AS cor0
----
-1683
-3069
-5841

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 42 * 94 * col2 col2 FROM tab0 AS cor0
----
-130284
-323736
-3948

onlyif mysql # use DIV operator for integer division
query I rowsort label-6177
SELECT + + cor0.col0 DIV - CAST( - ( + col0 ) AS SIGNED ) FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6177
SELECT + + cor0.col0 / - CAST ( - ( + col0 ) AS INTEGER ) FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT - - col0 + - ( - col0 ) AS col2 FROM tab1 AS cor0
----
128
160
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - col2 + col2 col1 FROM tab1
----
-108
-3591
-7584

onlyif mysql # use DIV operator for integer division
query I rowsort label-6180
SELECT ALL + cor0.col0 DIV col2 AS col0 FROM tab1 cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6180
SELECT ALL + cor0.col0 / col2 AS col0 FROM tab1 cor0
----
0
0
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-6181
SELECT DISTINCT - col1 * col1 + ( col0 + col0 ) DIV - col1 FROM tab1 AS cor0
----
-112
-181
-676

skipif mysql # not compatible
query I rowsort label-6181
SELECT DISTINCT - col1 * col1 + ( col0 + col0 ) / - col1 FROM tab1 AS cor0
----
-112
-181
-676

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + cor0.col2 + + 36 * col0 col1 FROM tab1 AS cor0
----
2247
2784
54

skipif mysql # not compatible
query I rowsort
SELECT col0 + - CAST ( ( col2 ) AS REAL ) AS col0 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT + - col2 * 84 FROM tab2 AS cor0
----
-2184
-2268
-3192

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6185
SELECT cor0.col0 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6185
SELECT cor0.col0 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - ( col1 * + col0 ) FROM tab1
----
-1040
-640
-78

query I rowsort
SELECT col0 * col2 + col2 + + col0 AS col1 FROM tab0
----
71
7469
849

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - tab2.col0 col2 FROM tab2
----
189
2028
3002

query I rowsort
SELECT DISTINCT + ( + cor0.col2 + - 0 ) FROM tab2, tab0 AS cor0
----
1
33
82

query I rowsort
SELECT DISTINCT - + ( - 23 ) FROM tab0 AS cor0
----
23

query I rowsort
SELECT DISTINCT + 23 * - cor0.col2 + col2 FROM tab0 AS cor0
----
-1804
-22
-726

query I rowsort
SELECT ALL + cor0.col2 - + col1 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT DISTINCT - col1 * - col2 * + col0 + - col2 FROM tab2 AS cor0
----
119626
50996
5832

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6194
SELECT DISTINCT + CAST( - col1 AS SIGNED ) * col2 + - 82 + 52 * + col0 * - 75 FROM tab1 AS cor0
----
-13186
-250252
-313330

skipif mysql # not compatible
query I rowsort label-6194
SELECT DISTINCT + CAST ( - col1 AS INTEGER ) * col2 + - 82 + 52 * + col0 * - 75 FROM tab1 AS cor0
----
-13186
-250252
-313330

query IIIIIIIII rowsort
SELECT ALL * FROM tab0, tab0 cor0 CROSS JOIN tab2
----
243 values hashing to ce53c0e8839c969b0513568da6eb2c4b

query I rowsort
SELECT + col2 * tab0.col2 * - col1 FROM tab0
----
-611884
-93654
-97

query I rowsort
SELECT - + 24 AS col1 FROM tab2 AS cor0
----
-24
-24
-24

query I rowsort
SELECT ALL + - col2 + + 77 * + col1 FROM tab2 AS cor0
----
1271
2360
4517

query I rowsort
SELECT ALL cor1.col0 * cor0.col1 FROM tab1, tab0 AS cor0, tab2 cor1
----
27 values hashing to a8042fcd365197f4ce80520ccb46287c

query I rowsort
SELECT ALL + col0 * col2 + + cor0.col1 FROM tab0 AS cor0
----
132
7389
878

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + - 58 col2 FROM tab1
----
-1
-4
38

query I rowsort
SELECT ALL + + 66 + 47 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to e8b0720b8386c308e7f43eb0f4e6aee1

query I rowsort
SELECT DISTINCT - 26 * + cor0.col2 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-2132
-26
-858

query I rowsort
SELECT col2 * cor0.col0 + col2 AS col2 FROM tab2 AS cor0
----
2054
216
3040

query I rowsort
SELECT - col0 * + cor0.col2 * col0 + - col1 AS col1 FROM tab2 AS cor0
----
-1354
-158243
-237175

query I rowsort
SELECT col0 * col1 + - col1 * col2 AS col0 FROM tab0 AS cor0
----
-774
3298
637

query I rowsort
SELECT ALL col2 + + cor0.col0 * - col1 * + col1 AS col2 FROM tab1 AS cor0
----
-13424
-1974
-6343

query I rowsort
SELECT col2 * 19 FROM tab0 AS cor0
----
1558
19
627

query I rowsort
SELECT DISTINCT - col0 + + col1 + col1 FROM tab2 AS cor0
----
-45
40
55

query I rowsort
SELECT ALL - col0 + - col1 * - col2 AS col1 FROM tab0 AS cor0
----
2814
62
7373

query I rowsort
SELECT + col0 * 48 + col1 FROM tab2 AS cor0
----
367
3803
3809

query I rowsort
SELECT tab0.col2 * - col2 * - 96 FROM tab0
----
104544
645504
96

query I rowsort
SELECT DISTINCT + 49 * 39 AS col2 FROM tab2, tab1 AS cor0
----
1911

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6214
SELECT - CAST( + col1 AS SIGNED ) + + col0 AS col2 FROM tab2 AS cor0
----
-24
19
62

skipif mysql # not compatible
query I rowsort label-6214
SELECT - CAST ( + col1 AS INTEGER ) + + col0 AS col2 FROM tab2 AS cor0
----
-24
19
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-6215
SELECT 69 DIV - tab0.col0 AS col0 FROM tab0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-6215
SELECT 69 / - tab0.col0 AS col0 FROM tab0
----
-1
-2
0

query I rowsort
SELECT ( 85 ) * - col0 * col1 AS col0 FROM tab2
----
-114155
-18445
-391170

query I rowsort
SELECT DISTINCT - 81 * - col0 AS col0 FROM tab1 cor0
----
243
5184
6480

query I rowsort
SELECT + col0 * - col0 + 67 * col1 FROM tab2 AS cor0
----
-2131
-5102
2028

query I rowsort
SELECT ALL + - 68 AS col0 FROM tab0 AS cor0
----
-68
-68
-68

query I rowsort
SELECT 90 + 73 AS col2 FROM tab2
----
163
163
163

query I rowsort
SELECT ALL 98 FROM tab0, tab0 AS cor0
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809

query I rowsort
SELECT - 51 - + 91 AS col0 FROM tab1 AS cor0
----
-142
-142
-142

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - col1 + - col2 col1 FROM tab2 AS cor0
----
-144
-72
-89

query I rowsort
SELECT tab1.col0 AS col0 FROM tab1, tab2 AS cor0, tab1 cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query III rowsort
SELECT * FROM tab1 WHERE col1 NOT BETWEEN ( - col0 ) AND ( NULL )
----

query I rowsort
SELECT DISTINCT col2 - - col1 AS col0 FROM tab1
----
109
67
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-6227
SELECT DISTINCT + col1 * col1 DIV - col2 + + col2 AS col0 FROM tab1
----
42
56
95

skipif mysql # not compatible
query I rowsort label-6227
SELECT DISTINCT + col1 * col1 / - col2 + + col2 AS col0 FROM tab1
----
42
56
95

query I rowsort
SELECT + col1 * + col1 AS col2 FROM tab0
----
7396
8281
9409

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL IN ( + col2 + + col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col2 NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-6231
SELECT ALL + col1 DIV - col1 + + col1 FROM tab1
----
12
25
9

skipif mysql # not compatible
query I rowsort label-6231
SELECT ALL + col1 / - col1 + + col1 FROM tab1
----
12
25
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-6232
SELECT ALL + tab0.col0 - - col0 DIV - col0 FROM tab0
----
23
34
88

skipif mysql # not compatible
query I rowsort label-6232
SELECT ALL + tab0.col0 - - col0 / - col0 FROM tab0
----
23
34
88

query I rowsort
SELECT ALL - col1 * col0 + col2 FROM tab2
----
-1305
-190
-4576

query I rowsort
SELECT tab2.col1 - col2 AS col0 FROM tab2
----
-21
33
4

query I rowsort
SELECT ALL tab1.col1 + col1 * col0 AS col2 FROM tab1
----
104
1053
650

query I rowsort
SELECT DISTINCT + - ( + cor0.col0 ) - - 49 * col2 * - col0 FROM tab0 cor0
----
-1750
-357691
-38832

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - col2 * - col1 * - col0 col1 FROM tab2
----
-119626
-50996
-5832

query I rowsort
SELECT DISTINCT + + 47 + col2 - 28 AS col1 FROM tab0 cor0
----
101
20
52

query I rowsort
SELECT ALL col0 + col1 * + col2 / col2 FROM tab0 WHERE ( NULL ) IN ( col0 / col1 )
----

query I rowsort
SELECT col0 + col0 * col0 - + col2 FROM tab2
----
29
6136
6282

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN NULL AND + col1
----

query I rowsort
SELECT ALL + tab1.col0 - + col2 AS col0 FROM tab1
----
-16
-51
7

query I rowsort
SELECT col1 + - col1 + col0 FROM tab0
----
24
35
89

query I rowsort
SELECT col2 * col2 * col2 + col2 AS col2 FROM tab2 AS cor0
----
17602
19710
54910

query I rowsort
SELECT col2 + col1 + - col2 AS col0 FROM tab0
----
86
91
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-6246
SELECT DISTINCT + col1 DIV col1 AS col2 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6246
SELECT DISTINCT + col1 / col1 AS col2 FROM tab2 AS cor0
----
1

query I rowsort
SELECT DISTINCT col2 * col2 * - col1 AS col1 FROM tab2
----
-22599
-24548
-39884

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + col2 + col1 col2 FROM tab2
----
1461
735
760

query I rowsort
SELECT ALL col2 - tab0.col0 * - col0 AS col1 FROM tab0
----
1226
609
8003

query I rowsort
SELECT col2 + + tab0.col1 + col2 FROM tab0
----
152
255
99

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL < ( NULL )
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL IN ( col1 * + cor0.col2 + + col0 )
----

query I rowsort
SELECT ALL - col0 * col1 * col0 FROM tab2 AS cor0
----
-106097
-1519
-358956

query I rowsort
SELECT ALL - tab0.col0 * col2 * - tab0.col0 AS col2 FROM tab0
----
1225
19008
649522

query I rowsort
SELECT ALL + col1 FROM tab0 WHERE NOT NULL = - col0
----

query I rowsort
SELECT - col1 * - col1 + + col2 FROM tab2 AS cor0
----
327
3507
988

query I rowsort
SELECT + cor0.col1 + + 3 - 44 FROM tab2, tab2 cor0
----
9 values hashing to 1013fbca3572194d40e9c1d5250c2121

onlyif mysql # use DIV operator for integer division
query I rowsort label-6258
SELECT 12 DIV - 50 FROM tab2, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-6258
SELECT 12 / - 50 FROM tab2, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT ALL + col1 * 73 FROM tab0
----
6278
6643
7081

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6260
SELECT ALL - CAST( col2 AS SIGNED ) * col0 AS col0 FROM tab0
----
-35
-7298
-792

skipif mysql # not compatible
query I rowsort label-6260
SELECT ALL - CAST ( col2 AS INTEGER ) * col0 AS col0 FROM tab0
----
-35
-7298
-792

query I rowsort
SELECT + cor0.col0 FROM tab2, tab1 cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6262
SELECT ALL + CAST( + col1 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-6262
SELECT ALL + CAST ( + col1 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT - + col0 * - cor0.col1 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT 77 + col1 AS col1 FROM tab2 AS cor0
----
108
136
94

query I rowsort
SELECT DISTINCT ( - col1 ) AS col2 FROM tab0 cor0
----
-86
-91
-97

query I rowsort
SELECT + 14 * 27 FROM tab2 AS cor0
----
378
378
378

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6267
SELECT - CAST( NULL AS SIGNED ) * + col2 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6267
SELECT - CAST ( NULL AS INTEGER ) * + col2 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 * - col2 + + 12 FROM tab2
----
-177
-2016
-2990

query I rowsort
SELECT tab2.col2 + - col0 + col0 FROM tab2
----
26
27
38

query I rowsort
SELECT ( - ( tab2.col1 ) * 52 ) FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 2acdda4ff160c488593eed301c3ca2f8

query I rowsort
SELECT + 14 * + col0 + - tab0.col2 FROM tab0
----
1164
303
489

query I rowsort
SELECT DISTINCT - 90 + col0 FROM tab1
----
-10
-26
-87

onlyif mysql # use DIV operator for integer division
query I rowsort label-6273
SELECT - 67 * col2 - + 5 DIV + col1 FROM tab2 AS cor0
----
-1742
-1809
-2546

skipif mysql # not compatible
query I rowsort label-6273
SELECT - 67 * col2 - + 5 / + col1 FROM tab2 AS cor0
----
-1742
-1809
-2546

query I rowsort
SELECT DISTINCT + - 65 FROM tab1 AS cor0
----
-65

query I rowsort
SELECT + + col0 * + col0 - - ( + col0 ) FROM tab1 cor0
----
12
4160
6480

query I rowsort
SELECT cor0.col0 * col1 + + 85 AS col2 FROM tab1 AS cor0
----
1125
163
725

query I rowsort
SELECT ALL 1 + - col2 FROM tab2 AS cor0
----
-25
-26
-37

query I rowsort
SELECT DISTINCT 38 + tab0.col1 FROM tab0
----
124
129
135

query I rowsort
SELECT ALL - tab0.col1 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f

onlyif mysql # use DIV operator for integer division
query I rowsort label-6280
SELECT 40 DIV + tab0.col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6280
SELECT 40 / + tab0.col1 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL - col0 * col1 + col0 * col2 AS col2 FROM tab1 AS cor0
----
3008
6640
84

query I rowsort
SELECT ALL + - cor0.col2 - col0 FROM tab0 AS cor0
----
-171
-36
-57

query I rowsort
SELECT DISTINCT + col2 + + 49 * + col0 AS col2 FROM tab2 AS cor0
----
370
3848
3909

query I rowsort
SELECT ALL col0 * - 73 AS col1 FROM tab0 cor0
----
-1752
-2555
-6497

query I rowsort
SELECT DISTINCT - - col0 + - col2 AS col1 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT + col1 + + 34 FROM tab0 AS cor0
----
120
125
131

query I rowsort
SELECT - col2 * col2 + col2 AS col2 FROM tab2 AS cor0
----
-1406
-650
-702

query I rowsort
SELECT DISTINCT col2 * + 97 + 43 * col0 FROM tab2 AS cor0
----
2920
5876
7083

query I rowsort
SELECT - cor0.col0 + cor0.col0 * col1 AS col2 FROM tab2 AS cor0
----
1264
210
4524

query I rowsort
SELECT ALL + - cor0.col2 * 67 * - col2 AS col2 FROM tab1 AS cor0
----
195372
217683
617472

query I rowsort
SELECT ALL - - col2 * 63 AS col0 FROM tab2 AS cor0
----
1638
1701
2394

query I rowsort
SELECT DISTINCT - + col2 * 2 AS col2 FROM tab1 AS cor0
----
-108
-114
-192

query I rowsort
SELECT DISTINCT col0 + - 8 FROM tab2 AS cor0
----
-1
70
71

query I rowsort
SELECT - cor0.col2 * 48 FROM tab1 AS cor0
----
-2592
-2736
-4608

query I rowsort
SELECT ALL + + col0 + col2 FROM tab2 cor0
----
104
117
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 5 + col1 col0 FROM tab1 AS cor0
----
295
296
493

query I rowsort
SELECT + cor0.col0 + + col0 * + col0 AS col0 FROM tab1 AS cor0
----
12
4160
6480

query I rowsort
SELECT col0 * - 9 AS col1 FROM tab0 AS cor0
----
-216
-315
-801

query I rowsort
SELECT + col0 + 16 * + col0 FROM tab1 AS cor0
----
1088
1360
51

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2, tab1 cor1, tab1, tab2 AS cor2
----
3645 values hashing to 577401eb866f52e8954d694a867c38d2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + + col2 col1 FROM tab0
----
-53
-9
-96

query I rowsort
SELECT - col0 + cor0.col0 * col0 AS col1 FROM tab2 AS cor0
----
42
6006
6162

query I rowsort
SELECT ALL - cor0.col2 - col1 * - col2 FROM tab1 AS cor0
----
1152
1350
513

query I rowsort
SELECT DISTINCT - col1 + col1 + col1 * - col0 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT ALL - ( - 29 + - col2 ) * - tab1.col2 AS col2 FROM tab1
----
-12000
-4482
-4902

query I rowsort
SELECT + 53 AS col1 FROM tab1
----
53
53
53

query I rowsort
SELECT + col1 * 65 FROM tab0
----
5590
5915
6305

query I rowsort
SELECT ALL col1 * 97 AS col1 FROM tab2
----
1649
3007
5723

query I rowsort
SELECT DISTINCT 9 AS col2 FROM tab2
----
9

query I rowsort
SELECT ALL + 76 AS col0 FROM tab0
----
76
76
76

query I rowsort
SELECT - 54 AS col1 FROM tab0
----
-54
-54
-54

query I rowsort
SELECT DISTINCT col1 * - 88 FROM tab1
----
-1144
-2288
-880

onlyif mysql # use DIV operator for integer division
query I rowsort label-6313
SELECT ALL + col0 + - col2 + col0 DIV + col1 AS col1 FROM tab2
----
-20
45
53

skipif mysql # not compatible
query I rowsort label-6313
SELECT ALL + col0 + - col2 + col0 / + col1 AS col1 FROM tab2
----
-20
45
53

query I rowsort
SELECT ALL + col1 * - tab0.col0 * - col1 + - col0 FROM tab0
----
177480
329280
736920

query I rowsort
SELECT cor0.col2 + cor0.col0 - col1 AS col1 FROM tab0 AS cor0
----
-29
-61
80

query I rowsort
SELECT - tab1.col1 AS col0 FROM tab1, tab0, tab0 cor0
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6

query I rowsort
SELECT DISTINCT cor0.col2 * - 66 + + cor0.col0 AS col0 FROM tab2, tab0 AS cor0
----
-2154
-31
-5323

query I rowsort
SELECT 17 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to e0dd9155e4d67132637a04c18ef46b2a

query I rowsort
SELECT DISTINCT + 80 + col1 + - 62 AS col2 FROM tab1
----
28
31
44

query I rowsort
SELECT ALL 27 AS col0 FROM tab0
----
27
27
27

query I rowsort
SELECT ALL + 9 AS col2 FROM tab1, tab1 cor0
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b

query I rowsort
SELECT ALL - ( - 19 ) FROM tab2, tab0 cor0
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11

query I rowsort
SELECT + tab0.col1 * - col0 FROM tab0
----
-2064
-3395
-8099

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6324
SELECT + cor0.col0 / CAST( NULL AS SIGNED ) + 22 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6324
SELECT + cor0.col0 / CAST ( NULL AS INTEGER ) + 22 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 * cor0.col0 + 28 + - col2 AS col0 FROM tab2 AS cor0
----
-188
-2026
-3012

query I rowsort
SELECT - - col0 + col0 AS col2 FROM tab0 cor0
----
178
48
70

query I rowsort
SELECT ALL - - col1 * - col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT DISTINCT + + col0 * + col1 * + 29 FROM tab0 cor0
----
234871
59856
98455

query I rowsort
SELECT DISTINCT + cor0.col1 * + ( 92 * col2 + - col1 ) FROM tab1 AS cor0
----
114647
128492
52340

query I rowsort
SELECT DISTINCT + col0 * col1 + 49 * col2 * - col1 AS col0 FROM tab2 cor0
----
-30311
-40796
-70564

query I rowsort
SELECT - col1 * + cor0.col1 * - col0 + col2 * col2 - col1 AS col0 FROM tab0 AS cor0
----
178507
329219
743642

query I rowsort
SELECT ALL + col2 * 40 FROM tab0 AS cor0
----
1320
3280
40

query I rowsort
SELECT ALL cor0.col0 + col1 AS col0 FROM tab2 AS cor0
----
137
38
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-6334
SELECT tab2.col1 DIV + tab2.col1 col0 FROM tab2
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6334
SELECT tab2.col1 / + tab2.col1 col0 FROM tab2
----
1
1
1

query I rowsort
SELECT ALL + col1 + + col2 * cor0.col2 AS col0 FROM tab2 AS cor0
----
1461
735
760

query I rowsort
SELECT + cor0.col2 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

onlyif mysql # use DIV operator for integer division
query I rowsort label-6337
SELECT + col0 * + col2 + col1 DIV - cor0.col2 - col0 AS col1 FROM tab0 AS cor0
----
-97
7208
766

skipif mysql # not compatible
query I rowsort label-6337
SELECT + col0 * + col2 + col1 / - cor0.col2 - col0 AS col1 FROM tab0 AS cor0
----
-97
7208
766

query I rowsort
SELECT DISTINCT + - col0 * - cor0.col0 * col1 + + col0 FROM tab2 AS cor0
----
106176
1526
359034

onlyif mysql # use DIV operator for integer division
query I rowsort label-6339
SELECT - + cor0.col0 + - col0 DIV + col0 AS col0 FROM tab1 AS cor0
----
-4
-65
-81

skipif mysql # not compatible
query I rowsort label-6339
SELECT - + cor0.col0 + - col0 / + col0 AS col0 FROM tab1 AS cor0
----
-4
-65
-81

query I rowsort
SELECT + tab2.col1 + col1 * col0 * col1 AS col2 FROM tab2
----
22848
271577
6758

query I rowsort
SELECT ALL col1 + - col1 * col1 + col1 FROM tab2
----
-255
-3363
-899

query I rowsort
SELECT DISTINCT - + col2 + - col1 AS col1 FROM tab2 AS cor0
----
-55
-58
-85

query I rowsort
SELECT col0 + + cor0.col2 * + cor0.col2 * + col0 FROM tab0 AS cor0
----
26160
598525
70

query I rowsort
SELECT ALL + - col2 + col2 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT col2 * - cor0.col2 - + col2 FROM tab1 cor0
----
-2970
-3306
-9312

query I rowsort
SELECT - cor0.col0 * col2 + + cor0.col1 * cor0.col2 FROM tab2 cor0
----
-2356
-494
648

onlyif mysql # use DIV operator for integer division
query I rowsort label-6347
SELECT - cor0.col0 DIV col1 - cor0.col2 AS col0 FROM tab2 AS cor0
----
-27
-27
-42

skipif mysql # not compatible
query I rowsort label-6347
SELECT - cor0.col0 / col1 - cor0.col2 AS col0 FROM tab2 AS cor0
----
-27
-27
-42

onlyif mysql # use DIV operator for integer division
query I rowsort label-6348
SELECT ALL col2 + col0 DIV + cor0.col2 AS col2 FROM tab0 AS cor0
----
33
36
83

skipif mysql # not compatible
query I rowsort label-6348
SELECT ALL col2 + col0 / + cor0.col2 AS col2 FROM tab0 AS cor0
----
33
36
83

query I rowsort
SELECT + + col0 * + col1 - + col2 FROM tab2 AS cor0
----
1305
190
4576

query I rowsort
SELECT DISTINCT + 44 AS col2 FROM tab2
----
44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 9 col2 FROM tab1 AS cor0
----
9
9
9

query I rowsort
SELECT - 19 * - cor0.col1 FROM tab1 AS cor0
----
190
247
494

query I rowsort
SELECT DISTINCT + - col0 * + col0 - - col1 FROM tab1 AS cor0
----
-4086
-6387
17

query I rowsort
SELECT DISTINCT cor1.col1 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
17
31
59

query I rowsort
SELECT ALL col1 * - col0 AS col1 FROM tab1 AS cor0
----
-1040
-640
-78

onlyif mysql # use DIV operator for integer division
query I rowsort label-6356
SELECT DISTINCT col0 DIV cor0.col0 AS col2 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6356
SELECT DISTINCT col0 / cor0.col0 AS col2 FROM tab1 AS cor0
----
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-6357
SELECT ALL - cor0.col0 DIV cor0.col0 AS col2 FROM tab1 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6357
SELECT ALL - cor0.col0 / cor0.col0 AS col2 FROM tab1 cor0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 + col1 col1 FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT DISTINCT + + col1 * + cor0.col2 + - ( + col0 ) FROM tab1 AS cor0
----
1168
1401
506

query I rowsort
SELECT ALL 89 * cor0.col0 - col2 AS col0 FROM tab2 AS cor0
----
596
6916
6993

query I rowsort
SELECT DISTINCT 6 + - col2 - + col2 FROM tab2 AS cor0
----
-46
-48
-70

query I rowsort
SELECT - 88 + - col1 AS col2 FROM tab1 cor0
----
-101
-114
-98

query I rowsort
SELECT 71 AS col2 FROM tab1 cor0
----
71
71
71

query I rowsort
SELECT ALL - + col0 * + cor0.col2 AS col2 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT DISTINCT - + col0 * - col0 FROM tab0 cor0
----
1225
576
7921

onlyif mysql # use DIV operator for integer division
query I rowsort label-6366
SELECT ALL - col2 + + 3 + - ( col1 ) DIV col0 FROM tab1 AS cor0
----
-54
-59
-93

skipif mysql # not compatible
query I rowsort label-6366
SELECT ALL - col2 + + 3 + - ( col1 ) / col0 FROM tab1 AS cor0
----
-54
-59
-93

query I rowsort
SELECT ALL col0 + 51 AS col1 FROM tab1 AS cor0
----
115
131
54

onlyif mysql # use DIV operator for integer division
query I rowsort label-6368
SELECT DISTINCT + - col0 DIV - 10 AS col1 FROM tab0 AS cor0
----
2
3
8

skipif mysql # not compatible
query I rowsort label-6368
SELECT DISTINCT + - col0 / - 10 AS col1 FROM tab0 AS cor0
----
2
3
8

query I rowsort
SELECT - col2 + tab2.col1 AS col1 FROM tab2
----
-21
33
4

query I rowsort
SELECT ALL + col2 + 0 AS col2 FROM tab1 AS cor0
----
54
57
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-6371
SELECT DISTINCT col2 DIV col1 + col1 FROM tab2 AS cor0
----
19
31
59

skipif mysql # not compatible
query I rowsort label-6371
SELECT DISTINCT col2 / col1 + col1 FROM tab2 AS cor0
----
19
31
59

query I rowsort
SELECT DISTINCT + - col2 + col1 AS col0 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT DISTINCT col2 * - 3 - - col1 * + col2 FROM tab1 AS cor0
----
1242
399
960

query I rowsort
SELECT DISTINCT cor1.col0 AS col1 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
3
64
80

query I rowsort
SELECT + ( cor0.col0 ) - cor0.col2 FROM tab0 AS cor0
----
-9
34
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-6376
SELECT DISTINCT + col1 DIV - col0 AS col0 FROM tab1 AS cor0
----
-8
0

skipif mysql # not compatible
query I rowsort label-6376
SELECT DISTINCT + col1 / - col0 AS col0 FROM tab1 AS cor0
----
-8
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6377
SELECT DISTINCT - + CAST( NULL AS DECIMAL ) * col2 col2 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6377
SELECT DISTINCT - + CAST ( NULL AS REAL ) * col2 col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6378
SELECT col1 DIV col1 + - col1 * ( col1 ) * - tab0.col0 + col0 AS col1 FROM tab0
----
177529
329351
737099

skipif mysql # not compatible
query I rowsort label-6378
SELECT col1 / col1 + - col1 * ( col1 ) * - tab0.col0 + col0 AS col1 FROM tab0
----
177529
329351
737099

query I rowsort
SELECT - + 23 + - col1 * col2 AS col2 FROM tab1 AS cor0
----
-1271
-1427
-593

query I rowsort
SELECT DISTINCT - col1 * + 45 AS col0 FROM tab0 AS cor0
----
-3870
-4095
-4365

query I rowsort
SELECT ALL + ( col2 ) * col2 AS col0 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT ALL + + ( - 63 ) FROM tab0 AS cor0
----
-63
-63
-63

query I rowsort
SELECT + col2 * col2 * - col2 AS col0 FROM tab0 AS cor0
----
-1
-35937
-551368

query I rowsort
SELECT ALL - col0 + - col2 * col1 FROM tab1 AS cor0
----
-1328
-1407
-634

query I rowsort
SELECT ALL + col2 * cor0.col2 - - col0 * col2 FROM tab1 AS cor0
----
16896
3078
6897

query I rowsort
SELECT - + col2 * + col0 + 20 AS col0 FROM tab0 AS cor0
----
-15
-7278
-772

query I rowsort
SELECT DISTINCT 2 FROM tab1, tab1 AS cor0
----
2

query I rowsort
SELECT + - ( col0 ) * + 38 AS col2 FROM tab2 cor0
----
-266
-2964
-3002

query I rowsort
SELECT DISTINCT - ( + col0 ) + col1 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT + + 34 * cor0.col0 + - col2 FROM tab1 AS cor0
----
2119
2624
48

query I rowsort
SELECT ALL + + col1 * col0 + 66 * 83 FROM tab1 cor0
----
5556
6118
6518

onlyif mysql # use DIV operator for integer division
query I rowsort label-6392
SELECT - + col2 DIV + col2 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6392
SELECT - + col2 / + col2 FROM tab0 AS cor0
----
-1
-1
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-6393
SELECT + col0 DIV col1 AS col0 FROM tab2 AS cor0
----
0
1
4

skipif mysql # not compatible
query I rowsort label-6393
SELECT + col0 / col1 AS col0 FROM tab2 AS cor0
----
0
1
4

query I rowsort
SELECT 81 - col0 FROM tab0 AS cor0
----
-8
46
57

query I rowsort
SELECT + 48 FROM tab0, tab0 cor0, tab1 AS cor1
----
27 values hashing to 0ef571a8722ab7270aa7272c1174b88e

onlyif mysql # use DIV operator for integer division
query I rowsort label-6396
SELECT ALL + 61 DIV + col1 FROM tab2 AS cor0
----
1
1
3

skipif mysql # not compatible
query I rowsort label-6396
SELECT ALL + 61 / + col1 FROM tab2 AS cor0
----
1
1
3

query I rowsort
SELECT ALL + tab2.col1 + col1 * col2 * tab2.col2 FROM tab2
----
22630
24565
39943

query I rowsort
SELECT - 51 FROM tab0, tab0 AS cor0
----
9 values hashing to 08d3853e39924d3c636260a6dd856837

query I rowsort
SELECT ALL 99 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 05ea182fd6036c7f5e0ea08fc061cc67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 43 col2 FROM tab0
----
43
43
43

query I rowsort
SELECT DISTINCT 61 + - col0 FROM tab0
----
-28
26
37

query I rowsort
SELECT ALL + cor0.col1 * - cor0.col1 + - 4 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to cfe0517fb8225266bc83236776ace35f

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 53 * + tab2.col0 col0 FROM tab2
----
371
4134
4187

query I rowsort
SELECT - col1 * - col1 + + tab1.col0 + - tab1.col2 FROM tab1
----
107
153
625

query I rowsort
SELECT DISTINCT - tab2.col1 FROM tab2, tab1, tab1 AS cor0
----
-17
-31
-59

onlyif mysql # use DIV operator for integer division
query I rowsort label-6406
SELECT ALL + ( col1 ) DIV col1 + + col2 * col0 * - col0 FROM tab1 AS cor0
----
-233471
-485
-614399

skipif mysql # not compatible
query I rowsort label-6406
SELECT ALL + ( col1 ) / col1 + + col2 * col0 * - col0 FROM tab1 AS cor0
----
-233471
-485
-614399

query I rowsort
SELECT ALL cor0.col1 * - col1 AS col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT DISTINCT + col1 + col2 * ( + 22 ) FROM tab0 AS cor0
----
119
1895
812

query I rowsort
SELECT - + ( col0 ) + - col2 AS col0 FROM tab2 AS cor0
----
-104
-117
-34

onlyif mysql # use DIV operator for integer division
query I rowsort label-6410
SELECT 55 DIV + 54 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6410
SELECT 55 / + 54 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT ALL + ( + col1 ) * col0 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT DISTINCT 24 + col0 AS col0 FROM tab1 cor0
----
104
27
88

query I rowsort
SELECT + + 79 * - col0 FROM tab1 AS cor0
----
-237
-5056
-6320

onlyif mysql # use DIV operator for integer division
query I rowsort label-6414
SELECT + ( - col1 ) + col1 DIV + 2 FROM tab1 AS cor0
----
-13
-5
-7

skipif mysql # not compatible
query I rowsort label-6414
SELECT + ( - col1 ) + col1 / + 2 FROM tab1 AS cor0
----
-13
-5
-7

query I rowsort
SELECT + 68 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 10aa25f1c6b97582c34521ac6452e0b4

query I rowsort
SELECT - 28 AS col0 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to eac00a95d734c7071360ed392c3f39bc

query I rowsort
SELECT ( - ( + col1 ) ) * ( ( col1 ) ) + col0 FROM tab2 AS cor0
----
-210
-3403
-954

query I rowsort
SELECT DISTINCT + col2 * col1 + + col0 + - 71 FROM tab1 AS cor0
----
1257
1336
563

query I rowsort
SELECT + + ( 4 ) FROM tab0 AS cor0
----
4
4
4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6420
SELECT ALL + 88 * ( col2 ) + CAST( col1 AS SIGNED ) + - col0 FROM tab1
----
4775
4962
8381

skipif mysql # not compatible
query I rowsort label-6420
SELECT ALL + 88 * ( col2 ) + CAST ( col1 AS INTEGER ) + - col0 FROM tab1
----
4775
4962
8381

query I rowsort
SELECT ALL - cor0.col1 - 10 AS col0 FROM tab1 AS cor0
----
-20
-23
-36

query I rowsort
SELECT ALL - col1 * ( col1 ) AS col2 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT DISTINCT cor0.col2 + + col1 AS col2 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT DISTINCT + - 29 + - col1 AS col1 FROM tab2 cor0
----
-46
-60
-88

query I rowsort
SELECT ALL - - ( + 17 ) + - col1 AS col2 FROM tab2 AS cor0
----
-14
-42
0

query I rowsort
SELECT DISTINCT + ( 0 ) AS col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL - - 88 AS col2 FROM tab0 cor0
----
88
88
88

onlyif mysql # use DIV operator for integer division
query I rowsort label-6428
SELECT + 56 + + col0 DIV - col2 FROM tab1 AS cor0
----
55
56
56

skipif mysql # not compatible
query I rowsort label-6428
SELECT + 56 + + col0 / - col2 FROM tab1 AS cor0
----
55
56
56

query I rowsort
SELECT ALL - 52 FROM tab0 AS cor0
----
-52
-52
-52

query I rowsort
SELECT DISTINCT + ( - col2 ) AS col2 FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT DISTINCT - 60 + 25 FROM tab1 AS cor0
----
-35

onlyif mysql # use DIV operator for integer division
query I rowsort label-6432
SELECT DISTINCT - col1 + col2 * - col1 + 57 DIV + col0 AS col2 FROM tab2 AS cor0
----
-1593
-663
-860

skipif mysql # not compatible
query I rowsort label-6432
SELECT DISTINCT - col1 + col2 * - col1 + 57 / + col0 AS col2 FROM tab2 AS cor0
----
-1593
-663
-860

onlyif mysql # use DIV operator for integer division
query I rowsort label-6433
SELECT DISTINCT - - col1 * col2 DIV col1 - - col0 AS col0 FROM tab0 AS cor0
----
171
36
57

skipif mysql # not compatible
query I rowsort label-6433
SELECT DISTINCT - - col1 * col2 / col1 - - col0 AS col0 FROM tab0 AS cor0
----
171
36
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + 8 * col1 + + cor0.col2 * col1 col2 FROM tab1 AS cor0
----
1365
1638
660

query I rowsort
SELECT + - col2 * - cor0.col1 + + cor0.col0 AS col2 FROM tab0 AS cor0
----
132
2862
7551

query I rowsort
SELECT ( + 55 ) AS col0 FROM tab1 AS cor0
----
55
55
55

query I rowsort
SELECT + col1 * col2 + - cor0.col2 * - 76 FROM tab1 cor0
----
4902
5508
8544

query I rowsort
SELECT - - 54 + + ( col0 ) AS col0 FROM tab1 AS cor0
----
118
134
57

query I rowsort
SELECT - col1 * + ( + 15 ) + - col0 * - col0 FROM tab0
----
-230
-714
6556

query I rowsort
SELECT DISTINCT 81 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
81

query I rowsort
SELECT + + col1 + col2 * + 28 AS col1 FROM tab2 AS cor0
----
1081
787
787

query I rowsort
SELECT - 3 FROM tab1 cor0
----
-3
-3
-3

query I rowsort
SELECT - + col2 * col2 + 58 AS col0 FROM tab0 AS cor0
----
-1031
-6666
57

query I rowsort
SELECT DISTINCT + + 12 + - col2 * col0 * col2 AS col0 FROM tab2 AS cor0
----
-114064
-5091
-52716

query I rowsort
SELECT ALL - col2 - - col2 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - 97 AS col0 FROM tab0 AS cor0
----
-97
-97
-97

query I rowsort
SELECT - 41 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 4ba0c102091f9cbc9fe9439b04584e70

skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( + 36 AS REAL ) FROM tab0
----
36
36
36

query I rowsort
SELECT DISTINCT - col1 * + col0 + - ( - col2 ) * - col0 FROM tab0 AS cor0
----
-15397
-2856
-3430

query I rowsort
SELECT 89 * - col0 FROM tab2 cor0
----
-623
-6942
-7031

query I rowsort
SELECT ALL + + 20 + + col2 * 60 - 61 FROM tab0 AS cor0
----
19
1939
4879

query I rowsort
SELECT ALL 37 * col0 FROM tab0
----
1295
3293
888

query I rowsort
SELECT ALL 25 AS col0 FROM tab0, tab0 cor0, tab0 AS cor1
----
27 values hashing to 2c77240b60ac01c717a5ed5d0165f450

query I rowsort
SELECT + col0 + - col2 * - col1 FROM tab2 cor0
----
1612
725
844

query I rowsort
SELECT ALL 21 * - 31 AS col1 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 1fae11d2456f2f96d4377cb78155e826

onlyif mysql # use DIV operator for integer division
query I rowsort label-6456
SELECT - col1 DIV col1 FROM tab2 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6456
SELECT - col1 / col1 FROM tab2 cor0
----
-1
-1
-1

query I rowsort
SELECT + col1 * + ( col1 ) * - col0 AS col1 FROM tab1 AS cor0
----
-13520
-2028
-6400

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col0 * 30 col0 FROM tab2 AS cor0
----
210
2340
2370

query I rowsort
SELECT DISTINCT 21 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
21

query I rowsort
SELECT DISTINCT + 39 AS col0 FROM tab2, tab0 AS cor0
----
39

query I rowsort
SELECT DISTINCT + tab1.col1 AS col1 FROM tab1, tab2 AS cor0
----
10
13
26

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab1 cor2, tab1 AS cor3
----
3645 values hashing to f1666fadc663c90ea9374fcb108b4477

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - ( col1 ) col1 FROM tab2 AS cor0
----
-118
-34
-62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6464
SELECT - + col0 * CAST( col0 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-49
-6084
-6241

skipif mysql # not compatible
query I rowsort label-6464
SELECT - + col0 * CAST ( col0 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-49
-6084
-6241

onlyif mysql # use DIV operator for integer division
query I rowsort label-6465
SELECT + - col2 DIV + col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6465
SELECT + - col2 / + col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6466
SELECT DISTINCT ( col2 ) * col2 DIV + 21 AS col0 FROM tab0
----
0
320
51

skipif mysql # not compatible
query I rowsort label-6466
SELECT DISTINCT ( col2 ) * col2 / + 21 AS col0 FROM tab0
----
0
320
51

query I rowsort
SELECT ( col2 + col2 ) AS col1 FROM tab1
----
108
114
192

query I rowsort
SELECT - + ( col2 ) + col0 AS col0 FROM tab2 AS cor0
----
-20
41
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col0 ) * - col0 col2 FROM tab2
----
49
6084
6241

onlyif mysql # use DIV operator for integer division
query I rowsort label-6470
SELECT - - cor0.col1 DIV col1 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6470
SELECT - - cor0.col1 / col1 FROM tab1 AS cor0
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-6471
SELECT DISTINCT + tab0.col0 DIV + col2 AS col0 FROM tab0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-6471
SELECT DISTINCT + tab0.col0 / + col2 AS col0 FROM tab0
----
0
1
35

query I rowsort
SELECT - tab2.col0 AS col0 FROM tab0, tab1, tab0 AS cor0, tab2
----
81 values hashing to adaea38eae032c1639715f21831dd376

query I rowsort
SELECT - 64 * + cor0.col1 AS col1 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to fa6e0440bf574b7f858edf1fea913f26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6474
SELECT + CAST( + 36 AS SIGNED ) * col2 + - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6474
SELECT + CAST ( + 36 AS INTEGER ) * col2 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col1 - col2 FROM tab1
----
-109
-67
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-6476
SELECT ALL - + cor0.col2 DIV - cor0.col1 FROM tab1 AS cor0
----
2
5
7

skipif mysql # not compatible
query I rowsort label-6476
SELECT ALL - + cor0.col2 / - cor0.col1 FROM tab1 AS cor0
----
2
5
7

query I rowsort
SELECT cor0.col2 * + cor0.col2 - + col0 FROM tab0 AS cor0
----
-34
1065
6635

query I rowsort
SELECT DISTINCT + - col2 + - 72 FROM tab1 AS cor0
----
-126
-129
-168

onlyif mysql # use DIV operator for integer division
query I rowsort label-6479
SELECT + 2 DIV + col1 + col2 AS col0 FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-6479
SELECT + 2 / + col1 + col2 AS col0 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT + col2 + - col1 AS col0 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT ALL col2 * 4 * - col2 AS col2 FROM tab1 AS cor0
----
-11664
-12996
-36864

query I rowsort
SELECT ALL col0 + + 9 * - col2 FROM tab0
----
-273
-649
26

query I rowsort
SELECT - col1 * - 85 AS col0 FROM tab0
----
7310
7735
8245

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6484
SELECT col2 + - CAST( NULL AS SIGNED ) + tab0.col0 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6484
SELECT col2 + - CAST ( NULL AS INTEGER ) + tab0.col0 AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6485
SELECT DISTINCT col2 + 85 * col0 DIV - col0 FROM tab0
----
-3
-52
-84

skipif mysql # not compatible
query I rowsort label-6485
SELECT DISTINCT col2 + 85 * col0 / - col0 FROM tab0
----
-3
-52
-84

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6486
SELECT - col1 + - CAST( NULL AS SIGNED ) - + col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6486
SELECT - col1 + - CAST ( NULL AS INTEGER ) - + col2 FROM tab0
----
NULL
NULL
NULL

query IIIIIIIII rowsort
SELECT * FROM tab2, tab0, tab2 cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + col2 + + 33 * col0 FROM tab0
----
1156
3019
825

query I rowsort
SELECT + col1 + + 98 AS col2 FROM tab2
----
115
129
157

query I rowsort
SELECT + 83 * - col2 AS col2 FROM tab0
----
-2739
-6806
-83

query I rowsort
SELECT + cor0.col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

onlyif mysql # use DIV operator for integer division
query I rowsort label-6492
SELECT - col2 * col0 DIV - col0 + - 38 FROM tab0 cor0
----
-37
-5
44

skipif mysql # not compatible
query I rowsort label-6492
SELECT - col2 * col0 / - col0 + - 38 FROM tab0 cor0
----
-37
-5
44

query I rowsort
SELECT ALL col0 * + 92 FROM tab1 AS cor0
----
276
5888
7360

query I rowsort
SELECT DISTINCT + col1 + - 24 FROM tab0 AS cor0
----
62
67
73

onlyif mysql # use DIV operator for integer division
query I rowsort label-6495
SELECT col0 DIV - 19 AS col0 FROM tab1 AS cor0
----
-3
-4
0

skipif mysql # not compatible
query I rowsort label-6495
SELECT col0 / - 19 AS col0 FROM tab1 AS cor0
----
-3
-4
0

query I rowsort
SELECT ALL + cor0.col1 * + col1 * + col2 AS col1 FROM tab0 AS cor0
----
244068
679042
9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-6497
SELECT DISTINCT + cor0.col0 DIV - col2 FROM tab0 AS cor0
----
-1
-35
0

skipif mysql # not compatible
query I rowsort label-6497
SELECT DISTINCT + cor0.col0 / - col2 FROM tab0 AS cor0
----
-1
-35
0

query I rowsort
SELECT DISTINCT + 45 AS col1 FROM tab2 AS cor0
----
45

query I rowsort
SELECT ALL - col0 + - col1 * cor0.col1 * - 91 AS col1 FROM tab1 AS cor0
----
15299
61513
9036

query I rowsort
SELECT 14 * + 29 + col1 FROM tab0 cor0
----
492
497
503

query I rowsort
SELECT DISTINCT + ( + 67 ) * + col0 * 37 FROM tab0 AS cor0
----
220631
59496
86765

query I rowsort
SELECT DISTINCT 90 * + col0 * col2 FROM tab1 cor0
----
14580
328320
691200

query I rowsort
SELECT 59 + col2 AS col1 FROM tab0 cor0
----
141
60
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col1 ) * col2 col0 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT ( - ( col1 ) ) + col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL - ( - cor0.col2 ) AS col0 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT col2 * + col0 + - col0 FROM tab2 AS cor0
----
182
1950
2923

query I rowsort
SELECT DISTINCT 72 * col0 * col2 + - ( - cor0.col0 ) FROM tab2 AS cor0
----
13615
146094
216223

query I rowsort
SELECT DISTINCT col2 + - cor0.col2 * + col1 + - col2 FROM tab1 AS cor0
----
-1248
-1404
-570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 1 * col0 - ( + 64 ) col2 FROM tab1 cor0
----
-128
-144
-67

onlyif mysql # use DIV operator for integer division
query I rowsort label-6511
SELECT col0 * ( - col1 ) + - col2 DIV ( - col2 ) FROM tab1 AS cor0
----
-1039
-639
-77

skipif mysql # not compatible
query I rowsort label-6511
SELECT col0 * ( - col1 ) + - col2 / ( - col2 ) FROM tab1 AS cor0
----
-1039
-639
-77

query I rowsort
SELECT + 13 FROM tab2, tab1 AS cor0
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6513
SELECT ALL - - col0 * CAST( NULL AS SIGNED ) + - 92 * col0 * + 15 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6513
SELECT ALL - - col0 * CAST ( NULL AS INTEGER ) + - 92 * col0 * + 15 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6514
SELECT ALL cor0.col2 DIV col2 + + col0 * - col2 + + col2 * col1 FROM tab0 AS cor0
----
165
2047
63

skipif mysql # not compatible
query I rowsort label-6514
SELECT ALL cor0.col2 / col2 + + col0 * - col2 + + col2 * col1 FROM tab0 AS cor0
----
165
2047
63

onlyif mysql # use DIV operator for integer division
query I rowsort label-6515
SELECT col2 DIV 56 + col2 AS col1 FROM tab2 AS cor0
----
26
27
38

skipif mysql # not compatible
query I rowsort label-6515
SELECT col2 / 56 + col2 AS col1 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT ALL 2 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

query I rowsort
SELECT - cor0.col0 + col2 * ( col1 + col0 ) AS col0 FROM tab1 AS cor0
----
1563
4154
8848

query I rowsort
SELECT ALL col0 * - cor0.col2 AS col1 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT ALL col1 + - 38 FROM tab2 cor0
----
-21
-7
21

query I rowsort
SELECT cor0.col1 * - 40 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to d3faa96452c2562ffe403fd62c305da3

query I rowsort
SELECT + col0 * 43 - col2 FROM tab2 AS cor0
----
274
3328
3359

query I rowsort
SELECT DISTINCT - - col2 * col1 + col0 AS col0 FROM tab0 AS cor0
----
132
2862
7551

query I rowsort
SELECT + - cor0.col1 - col2 * ( - col2 ) AS col0 FROM tab0 AS cor0
----
-96
1003
6633

query I rowsort
SELECT DISTINCT + col0 + ( 53 ) AS col2 FROM tab1 AS cor0
----
117
133
56

query I rowsort
SELECT - - col0 * 81 FROM tab0 AS cor0
----
1944
2835
7209

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6526
SELECT ALL col2 + CAST( col1 AS SIGNED ) - + col2 AS col2 FROM tab1 AS cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-6526
SELECT ALL col2 + CAST ( col1 AS INTEGER ) - + col2 AS col2 FROM tab1 AS cor0
----
10
13
26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6527
SELECT DISTINCT + + col2 * + CAST( - col0 AS SIGNED ) + col1 FROM tab1 AS cor0
----
-136
-3638
-7667

skipif mysql # not compatible
query I rowsort label-6527
SELECT DISTINCT + + col2 * + CAST ( - col0 AS INTEGER ) + col1 FROM tab1 AS cor0
----
-136
-3638
-7667

query I rowsort
SELECT ALL - cor0.col0 + col1 FROM tab0 cor0
----
2
62
62

query I rowsort
SELECT ALL + cor0.col2 - col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + col1 + - col2 * cor0.col2 FROM tab1 AS cor0
----
-2890
-3239
-9203

query I rowsort
SELECT ALL + cor0.col1 * + col0 + 60 AS col2 FROM tab0 AS cor0
----
2124
3455
8159

query I rowsort
SELECT + col0 - cor0.col1 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT - 9 - + col1 AS col2 FROM tab2 AS cor0
----
-26
-40
-68

query I rowsort
SELECT col0 + 31 AS col2 FROM tab2
----
109
110
38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6535
SELECT DISTINCT - col0 * cor0.col0 * + CAST( + col2 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-233472
-486
-614400

skipif mysql # not compatible
query I rowsort label-6535
SELECT DISTINCT - col0 * cor0.col0 * + CAST ( + col2 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-233472
-486
-614400

onlyif mysql # use DIV operator for integer division
query I rowsort label-6536
SELECT ALL col0 DIV + cor0.col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6536
SELECT ALL col0 / + cor0.col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT 30 FROM tab1 cor0
----
30
30
30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( col0 ) * 90 col1 FROM tab0 cor0
----
-2160
-3150
-8010

query I rowsort
SELECT + - 11 * col1 FROM tab2 AS cor0
----
-187
-341
-649

query I rowsort
SELECT DISTINCT - 99 AS col2 FROM tab1 AS cor0
----
-99

query I rowsort
SELECT DISTINCT + + cor0.col0 + - col0 AS col0 FROM tab0 cor0
----
0

query I rowsort
SELECT ALL - col2 * col0 + 66 FROM tab2 AS cor0
----
-123
-1962
-2936

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6543
SELECT ALL col0 * - col1 + col0 + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6543
SELECT ALL col0 * - col1 + col0 + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + ( col2 ) + + col1 + col1 AS col2 FROM tab1
----
106
122
77

query I rowsort
SELECT ALL + 48 AS col1 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 0ef571a8722ab7270aa7272c1174b88e

query I rowsort
SELECT DISTINCT 59 FROM tab1
----
59

query I rowsort
SELECT + col0 * ( cor0.col0 ) + col2 AS col2 FROM tab1 cor0
----
4153
63
6496

query I rowsort
SELECT DISTINCT - 52 AS col0 FROM tab0
----
-52

query I rowsort
SELECT cor0.col1 AS col2 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( cor0.col0 * tab2.col2 ) col0 FROM tab2, tab2 cor0
----
9 values hashing to 7522b05e664ac1561bef84e44b3f2d33

query I rowsort
SELECT ALL cor0.col0 * col2 * - col0 FROM tab0 AS cor0
----
-1225
-19008
-649522

query I rowsort
SELECT 96 + + col0 FROM tab1
----
160
176
99

query I rowsort
SELECT cor0.col2 AS col0 FROM tab1, tab0 AS cor0, tab1 cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT ALL col1 * col0 + col0 * + 19 - - col0 * - tab1.col0 FROM tab1
----
-2240
-3840
126

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 36 * - tab1.col1 col2 FROM tab1
----
-360
-468
-936

query I rowsort
SELECT - + col0 + + col1 * 9 FROM tab1 AS cor0
----
231
26
37

query I rowsort
SELECT + + col2 * + col2 + col0 * + col2 + col1 FROM tab0 AS cor0
----
133
14113
1967

query I rowsort
SELECT + + col0 * col0 - col0 * col1 FROM tab0 AS cor0
----
-1488
-178
-2170

onlyif mysql # use DIV operator for integer division
query I rowsort label-6559
SELECT ( col1 ) DIV - col0 FROM tab1 AS cor0
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-6559
SELECT ( col1 ) / - col0 FROM tab1 AS cor0
----
-8
0
0

query I rowsort
SELECT 13 * + 0 FROM tab0, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT cor0.col0 * - ( col1 ) AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 91 * col1 col0 FROM tab0 cor0
----
-7826
-8281
-8827

onlyif mysql # use DIV operator for integer division
query I rowsort label-6563
SELECT - col2 + col0 DIV col0 FROM tab0 AS cor0
----
-32
-81
0

skipif mysql # not compatible
query I rowsort label-6563
SELECT - col2 + col0 / col0 FROM tab0 AS cor0
----
-32
-81
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + 96 ) col0 FROM tab0 cor0
----
96
96
96

query I rowsort
SELECT - col0 * 1 AS col0 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT + 40 * ( col1 ) FROM tab2 AS cor0
----
1240
2360
680

query I rowsort
SELECT - + 62 * col0 AS col0 FROM tab0 cor0
----
-1488
-2170
-5518

query I rowsort
SELECT + 75 AS col1 FROM tab1 AS cor0
----
75
75
75

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6569
SELECT CAST( NULL AS SIGNED ) AS col2 FROM tab0, tab2 AS cor0, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

skipif mysql # not compatible
query I rowsort label-6569
SELECT CAST ( NULL AS INTEGER ) AS col2 FROM tab0, tab2 AS cor0, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

query I rowsort
SELECT DISTINCT 69 AS col1 FROM tab0, tab2 AS cor0
----
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 45 col1 FROM tab1 AS cor0
----
45

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6572
SELECT DISTINCT + - CAST( - 8 AS SIGNED ) FROM tab2 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-6572
SELECT DISTINCT + - CAST ( - 8 AS INTEGER ) FROM tab2 AS cor0
----
8

onlyif mysql # use DIV operator for integer division
query I rowsort label-6573
SELECT ALL col1 DIV - 19 FROM tab0 AS cor0
----
-4
-4
-5

skipif mysql # not compatible
query I rowsort label-6573
SELECT ALL col1 / - 19 FROM tab0 AS cor0
----
-4
-4
-5

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6574
SELECT ALL CAST( NULL AS SIGNED ) + col1 * col2 + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6574
SELECT ALL CAST ( NULL AS INTEGER ) + col1 * col2 + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + ( col0 ) AS col0 FROM tab0 cor0
----
24
35
89

query I rowsort
SELECT ALL - col2 * + 70 AS col0 FROM tab1 AS cor0
----
-3780
-3990
-6720

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6577
SELECT ALL - col1 * + col2 + CAST( col2 AS SIGNED ) * col0 * - col0 AS col0 FROM tab2 cor0
----
-159718
-2160
-237804

skipif mysql # not compatible
query I rowsort label-6577
SELECT ALL - col1 * + col2 + CAST ( col2 AS INTEGER ) * col0 * - col0 AS col0 FROM tab2 cor0
----
-159718
-2160
-237804

query I rowsort
SELECT ALL 54 * + cor0.col2 FROM tab2 AS cor0
----
1404
1458
2052

query I rowsort
SELECT DISTINCT - 83 * col1 + + col1 FROM tab1 AS cor0
----
-1066
-2132
-820

query I rowsort
SELECT ALL - col1 * - col1 AS col1 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT DISTINCT - 24 + - col1 FROM tab2 AS cor0
----
-41
-55
-83

query I rowsort
SELECT DISTINCT - + col2 + col0 * col2 AS col2 FROM tab2 AS cor0
----
162
2002
2964

query I rowsort
SELECT DISTINCT + 43 * + col2 + + ( + col0 * col1 ) + - 98 FROM tab2 cor0
----
1280
2879
5622

query I rowsort
SELECT ALL - 80 + - col0 AS col2 FROM tab1 AS cor0
----
-144
-160
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 98 col1 FROM tab2
----
98
98
98

query I rowsort
SELECT DISTINCT + ( - col0 ) * tab0.col1 AS col2 FROM tab0
----
-2064
-3395
-8099

query I rowsort
SELECT ALL tab0.col2 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6588
SELECT - CAST( 86 + - col0 AS SIGNED ) FROM tab2
----
-7
-79
-8

skipif mysql # not compatible
query I rowsort label-6588
SELECT - CAST ( 86 + - col0 AS INTEGER ) FROM tab2
----
-7
-79
-8

query I rowsort
SELECT - col0 - tab2.col0 * + tab2.col0 FROM tab2
----
-56
-6162
-6320

query I rowsort
SELECT - 59 FROM tab2, tab1, tab1 cor0, tab1 AS cor1
----
81 values hashing to 2d947a91062cb6f04dae4c2cd8f99509

query I rowsort
SELECT + col0 + + cor0.col0 * col2 * col1 FROM tab0 AS cor0
----
3430
664207
68136

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - cor0.col1 * - col2 col0 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT - - col1 * col1 + col2 - col2 * + 42 * - ( + col1 ) AS col2 FROM tab0 AS cor0
----
126625
13484
321767

query I rowsort
SELECT col0 + + 52 FROM tab0 AS cor0
----
141
76
87

query I rowsort
SELECT col2 * + col0 + + col2 * + col2 AS col0 FROM tab2 AS cor0
----
2704
4446
918

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6596
SELECT + col1 + - CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6596
SELECT + col1 + - CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6597
SELECT - col2 * + 29 + col2 DIV col0 FROM tab1 AS cor0
----
-1548
-1653
-2783

skipif mysql # not compatible
query I rowsort label-6597
SELECT - col2 * + 29 + col2 / col0 FROM tab1 AS cor0
----
-1548
-1653
-2783

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 28 col1 FROM tab2
----
-28
-28
-28

onlyif mysql # use DIV operator for integer division
query I rowsort label-6599
SELECT 67 DIV col0 FROM tab1
----
0
1
22

skipif mysql # not compatible
query I rowsort label-6599
SELECT 67 / col0 FROM tab1
----
0
1
22

onlyif mysql # use DIV operator for integer division
query I rowsort label-6600
SELECT DISTINCT + col0 DIV - col0 AS col1 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-6600
SELECT DISTINCT + col0 / - col0 AS col1 FROM tab1
----
-1

query I rowsort
SELECT ALL + tab2.col0 * cor0.col1 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 7e3c34e781801a3db37bc76b9d86ef8c

query I rowsort
SELECT - + col1 + + col1 * + col0 AS col2 FROM tab0 AS cor0
----
1978
3298
8008

query I rowsort
SELECT - - col0 * + col0 - cor0.col2 FROM tab0 AS cor0
----
1224
543
7839

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 * - col0 col2 FROM tab0 AS cor0
----
-2064
-3395
-8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-6605
SELECT ALL col0 DIV - col1 AS col1 FROM tab1 AS cor0
----
-6
-6
0

skipif mysql # not compatible
query I rowsort label-6605
SELECT ALL col0 / - col1 AS col1 FROM tab1 AS cor0
----
-6
-6
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6606
SELECT DISTINCT + - col2 DIV - col0 + + ( - col2 ) FROM tab0 AS cor0
----
-1
-32
-82

skipif mysql # not compatible
query I rowsort label-6606
SELECT DISTINCT + - col2 / - col0 + + ( - col2 ) FROM tab0 AS cor0
----
-1
-32
-82

query I rowsort
SELECT ALL - col0 - - col2 AS col0 FROM tab0 cor0
----
-34
-7
9

query I rowsort
SELECT - 53 + - col1 FROM tab2 AS cor0
----
-112
-70
-84

query I rowsort
SELECT ALL 94 AS col1 FROM tab0 cor0
----
94
94
94

query I rowsort
SELECT tab1.col2 - + col1 * col1 AS col1 FROM tab1
----
-43
-622
-73

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6611
SELECT - CAST( - col0 AS SIGNED ) + tab0.col2 * col0 * tab0.col1 col2 FROM tab0
----
3430
664207
68136

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6611
SELECT - CAST ( - col0 AS INTEGER ) + tab0.col2 * col0 * tab0.col1 col2 FROM tab0
----
3430
664207
68136

query I rowsort
SELECT 52 - col2 * - col0 FROM tab1
----
214
3700
7732

query I rowsort
SELECT - ( tab2.col0 ) - - 82 FROM tab2, tab0 AS cor0
----
9 values hashing to 5f073f8694c3c188ea2474271332ccaf

query I rowsort
SELECT ALL - + col0 * cor0.col1 AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT 75 * - tab2.col0 + + tab2.col1 FROM tab2
----
-494
-5791
-5908

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6616
SELECT DISTINCT col2 + col0 * CAST( - col1 * + col2 AS SIGNED ) FROM tab2
----
-119626
-50996
-5832

skipif mysql # not compatible
query I rowsort label-6616
SELECT DISTINCT col2 + col0 * CAST ( - col1 * + col2 AS INTEGER ) FROM tab2
----
-119626
-50996
-5832

query I rowsort
SELECT col0 + - ( - 77 ) * + cor0.col0 AS col1 FROM tab0 AS cor0
----
1872
2730
6942

query I rowsort
SELECT DISTINCT - col1 * col2 - col1 AS col0 FROM tab2
----
-1593
-663
-868

query I rowsort
SELECT DISTINCT - 88 * col2 AS col0 FROM tab1 AS cor0
----
-4752
-5016
-8448

query I rowsort
SELECT DISTINCT - ( col1 ) AS col1 FROM tab1 cor0
----
-10
-13
-26

query I rowsort
SELECT ALL + 92 * col2 FROM tab0 AS cor0
----
3036
7544
92

query I rowsort
SELECT 94 * col2 FROM tab2 AS cor0
----
2444
2538
3572

query I rowsort
SELECT tab0.col2 * tab0.col2 * col0 FROM tab0
----
26136
35
598436

query I rowsort
SELECT ALL ( + 15 ) FROM tab0 AS cor0
----
15
15
15

query I rowsort
SELECT ALL + cor1.col1 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 96 + 63 col1 FROM tab0
----
159
159
159

query I rowsort
SELECT ALL + + col2 * - col1 * col2 + col1 FROM tab2 AS cor0
----
-22568
-24531
-39825

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + ( - cor0.col0 ) + - col2 col2 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT DISTINCT - + col2 * 82 + + col1 FROM tab2 AS cor0
----
-2073
-2183
-3099

query I rowsort
SELECT cor1.col0 AS col1 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT DISTINCT - 93 + 53 * + cor0.col2 FROM tab1 AS cor0
----
2769
2928
4995

query I rowsort
SELECT DISTINCT + + cor0.col0 * - 93 + col2 AS col0 FROM tab2 AS cor0
----
-624
-7228
-7309

query I rowsort
SELECT + + 53 FROM tab2 AS cor0
----
53
53
53

query I rowsort
SELECT DISTINCT + 75 AS col0 FROM tab2, tab0 AS cor0 CROSS JOIN tab0, tab2 AS cor1
----
75

query I rowsort
SELECT ALL + 28 - ( - col2 ) AS col1 FROM tab1 AS cor0
----
124
82
85

onlyif mysql # use DIV operator for integer division
query I rowsort label-6636
SELECT DISTINCT col2 DIV + cor0.col0 + + col0 + + 79 AS col1 FROM tab2 AS cor0
----
157
158
89

skipif mysql # not compatible
query I rowsort label-6636
SELECT DISTINCT col2 / + cor0.col0 + + col0 + + 79 AS col1 FROM tab2 AS cor0
----
157
158
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 31 + cor0.col0 * - col2 col0 FROM tab2 AS cor0
----
-2059
-220
-3033

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6638
SELECT + ( + ( + col1 ) ) + CAST( col2 AS SIGNED ) * col0 FROM tab1 AS cor0
----
188
3658
7693

skipif mysql # not compatible
query I rowsort label-6638
SELECT + ( + ( + col1 ) ) + CAST ( col2 AS INTEGER ) * col0 FROM tab1 AS cor0
----
188
3658
7693

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 85 * + cor0.col1 col1 FROM tab2 AS cor0
----
-1445
-2635
-5015

query I rowsort
SELECT ALL + ( - 60 ) * - col1 FROM tab2 cor0
----
1020
1860
3540

query I rowsort
SELECT DISTINCT - col1 + + 59 * + col1 FROM tab2 AS cor0
----
1798
3422
986

query I rowsort
SELECT ALL col2 * + col0 + 81 AS col1 FROM tab0 cor0
----
116
7379
873

query I rowsort
SELECT DISTINCT col0 * - col0 * col1 AS col0 FROM tab1
----
-234
-40960
-83200

query I rowsort
SELECT ALL - col0 * + col1 * + cor0.col0 FROM tab1 AS cor0
----
-234
-40960
-83200

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 col2 FROM tab1, tab1 AS cor0
----
3
64
80

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab0 AS cor0, tab2 cor1, tab0 AS cor2
----
972 values hashing to 86dbd337f00ab84c613ad03d6fc06e28

query I rowsort
SELECT + + col0 + 67 FROM tab1 AS cor0
----
131
147
70

query I rowsort
SELECT + + 8 AS col2 FROM tab0, tab2 AS cor0, tab2 AS cor1, tab2, tab2 AS cor2
----
243 values hashing to 166637359c82545ac3371f65af093c5f

query I rowsort
SELECT col0 + col1 * col1 + col2 FROM tab2
----
3585
406
995

query I rowsort
SELECT + col1 + ( col2 ) AS col0 FROM tab1 AS cor0
----
109
67
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6651
SELECT DISTINCT + col0 * CAST( + col1 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
1040
640
78

skipif mysql # not compatible
query I rowsort label-6651
SELECT DISTINCT + col0 * CAST ( + col1 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT ALL + + 87 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

query I rowsort
SELECT + col1 + + 30 FROM tab0 AS cor0
----
116
121
127

query I rowsort
SELECT DISTINCT 78 * + 25 FROM tab1, tab0 cor0
----
1950

query I rowsort
SELECT - - col1 * + 46 AS col0 FROM tab0 AS cor0
----
3956
4186
4462

query I rowsort
SELECT 51 * col1 + col1 FROM tab2 AS cor0
----
1612
3068
884

query I rowsort
SELECT DISTINCT + - ( col0 ) + col2 FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT ALL - cor0.col0 * ( cor0.col2 ) AS col0 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT ALL + + col2 * - col0 + cor0.col0 AS col0 FROM tab2 cor0
----
-182
-1950
-2923

query I rowsort
SELECT DISTINCT col1 + - col1 * tab0.col1 * col0 FROM tab0
----
-177418
-329218
-736918

query I rowsort
SELECT ALL + col0 + col2 AS col2 FROM tab1
----
121
176
57

query I rowsort
SELECT DISTINCT + col0 + 55 FROM tab2
----
133
134
62

query I rowsort
SELECT - col1 + ( - col2 + col0 ) AS col0 FROM tab1
----
-29
-3
-77

query I rowsort
SELECT DISTINCT + col1 + - 20 * - col1 FROM tab0
----
1806
1911
2037

query I rowsort
SELECT ALL + 60 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to a97561e17ecaa618227c75a57b268f33

query I rowsort
SELECT - col2 + - 62 FROM tab1
----
-116
-119
-158

query I rowsort
SELECT - col1 * - ( 22 ) FROM tab0 AS cor0
----
1892
2002
2134

query I rowsort
SELECT - col1 * + cor0.col0 * col0 FROM tab1 cor0
----
-234
-40960
-83200

query I rowsort
SELECT ALL - - col2 * col2 AS col2 FROM tab2 cor0
----
1444
676
729

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6670
SELECT CAST( cor0.col1 AS SIGNED ) + - tab2.col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 4cf98869877fa51f9321a9b0e7299899

skipif mysql # not compatible
query I rowsort label-6670
SELECT CAST ( cor0.col1 AS INTEGER ) + - tab2.col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 4cf98869877fa51f9321a9b0e7299899

query I rowsort
SELECT 49 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55

query I rowsort
SELECT ALL + 10 AS col2 FROM tab0, tab1 cor0
----
9 values hashing to a47194429f3e0358a3aebffd5f050113

query I rowsort
SELECT ALL + 18 * 17 * + cor0.col2 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 1aab9e919207702487e59ed0c107f1be

onlyif mysql # use DIV operator for integer division
query I rowsort label-6674
SELECT DISTINCT - tab2.col0 DIV - col0 AS col2 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-6674
SELECT DISTINCT - tab2.col0 / - col0 AS col2 FROM tab2
----
1

query I rowsort
SELECT ALL + 91 AS col1 FROM tab2
----
91
91
91

query I rowsort
SELECT DISTINCT 78 + - col2 + col0 FROM tab1
----
27
62
85

query I rowsort
SELECT DISTINCT + col1 * + col0 + - tab0.col0 FROM tab0
----
2040
3360
8010

query I rowsort
SELECT ALL 78 * 68 AS col0 FROM tab2 AS cor0
----
5304
5304
5304

query I rowsort
SELECT + 53 + - col1 FROM tab0 cor0
----
-33
-38
-44

query I rowsort
SELECT DISTINCT + 36 - - cor0.col0 FROM tab1 AS cor0
----
100
116
39

query I rowsort
SELECT ALL 44 + - col1 * - col2 FROM tab0 AS cor0
----
141
2882
7506

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6682
SELECT + col0 / ( + col0 + CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6682
SELECT + col0 / ( + col0 + CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 70 * + cor0.col2 + col1 col1 FROM tab1 AS cor0
----
-3754
-3980
-6707

query I rowsort
SELECT DISTINCT 23 FROM tab0 cor0
----
23

query I rowsort
SELECT + + col0 * col1 + - col0 + cor0.col0 FROM tab1 cor0
----
1040
640
78

query I rowsort
SELECT - + col1 * col1 + + ( + col0 ) * - col1 FROM tab0 cor0
----
-12804
-16380
-9460

query I rowsort
SELECT 67 * + col0 FROM tab2 AS cor0
----
469
5226
5293

query I rowsort
SELECT col1 * col2 + cor0.col1 FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT DISTINCT - col0 * + col1 + + col0 AS col0 FROM tab0
----
-2040
-3360
-8010

query I rowsort
SELECT + col1 + - col0 * 82 + 84 * - col2 FROM tab1
----
-10026
-14611
-4756

query I rowsort
SELECT DISTINCT + col1 + + col2 AS col1 FROM tab0
----
119
173
98

query I rowsort
SELECT DISTINCT - - 25 AS col2 FROM tab1, tab2, tab1 AS cor0
----
25

query I rowsort
SELECT cor0.col2 * cor0.col0 + ( - col2 + cor0.col1 ) FROM tab1 AS cor0
----
134
3601
7597

query I rowsort
SELECT DISTINCT + col1 + + col1 + col1 FROM tab0 cor0
----
258
273
291

query I rowsort
SELECT col1 + + col2 * col0 AS col1 FROM tab2 AS cor0
----
2087
220
3019

query I rowsort
SELECT DISTINCT col0 * 96 + col0 * col1 AS col2 FROM tab2 AS cor0
----
12090
889
8927

query I rowsort
SELECT - col1 * + ( col2 ) + - col1 FROM tab1 AS cor0
----
-1261
-1430
-580

query I rowsort
SELECT DISTINCT + - col0 + col2 * - col1 FROM tab0 AS cor0
----
-132
-2862
-7551

query I rowsort
SELECT + cor0.col0 * - 42 + + ( col2 ) FROM tab0 AS cor0
----
-1469
-3656
-975

query I rowsort
SELECT - + col2 + - 30 + - col1 AS col2 FROM tab1 AS cor0
----
-110
-139
-97

query I rowsort
SELECT - 60 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 1a0b29f8e6f82c54623a665ba4af8fd1

query I rowsort
SELECT DISTINCT 86 * + col0 * col1 FROM tab2
----
115498
18662
395772

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6703
SELECT DISTINCT col0 * ( col2 ) + col0 * + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6703
SELECT DISTINCT col0 * ( col2 ) + col0 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL col0 + - cor0.col1 * cor0.col2 + + col1 * + cor0.col2 AS col2 FROM tab2 cor0
----
7
78
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-6705
SELECT ALL + + col0 + col1 DIV 85 col0 FROM tab0 AS cor0
----
25
36
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6705
SELECT ALL + + col0 + col1 / 85 col0 FROM tab0 AS cor0
----
25
36
90

query I rowsort
SELECT col2 * 34 AS col1 FROM tab1 cor0
----
1836
1938
3264

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6707
SELECT DISTINCT + col1 * CAST( col2 AS SIGNED ) + - col2 AS col2 FROM tab2 cor0
----
1508
608
810

skipif mysql # not compatible
query I rowsort label-6707
SELECT DISTINCT + col1 * CAST ( col2 AS INTEGER ) + - col2 AS col2 FROM tab2 cor0
----
1508
608
810

query I rowsort
SELECT - + ( + col1 ) + - col2 FROM tab1 AS cor0
----
-109
-67
-80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6709
SELECT DISTINCT + CAST( - col0 AS SIGNED ) - col1 AS col0 FROM tab1
----
-29
-74
-93

skipif mysql # not compatible
query I rowsort label-6709
SELECT DISTINCT + CAST ( - col0 AS INTEGER ) - col1 AS col0 FROM tab1
----
-29
-74
-93

query I rowsort
SELECT ALL + + col0 * + 38 + cor0.col0 FROM tab0 AS cor0
----
1365
3471
936

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6711
SELECT ALL col2 * CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6711
SELECT ALL col2 * CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + col2 * + col2 + col1 AS col1 FROM tab0 AS cor0
----
-1003
-6633
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + col2 + + 76 col2 FROM tab0 AS cor0
----
111
7374
868

query I rowsort
SELECT 6 AS col0 FROM tab1 AS cor0
----
6
6
6

query I rowsort
SELECT DISTINCT + + 42 AS col2 FROM tab1 AS cor0
----
42

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6716
SELECT CAST( - col2 + + col0 AS SIGNED ) * col0 FROM tab0
----
-216
1190
623

skipif mysql # not compatible
query I rowsort label-6716
SELECT CAST ( - col2 + + col0 AS INTEGER ) * col0 FROM tab0
----
-216
1190
623

query I rowsort
SELECT + tab0.col2 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6718
SELECT CAST( NULL AS SIGNED ) + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6718
SELECT CAST ( NULL AS INTEGER ) + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + ( col1 ) * - col2 AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT - col2 * 56 AS col0 FROM tab2 AS cor0
----
-1456
-1512
-2128

query I rowsort
SELECT ALL + col1 * 63 * cor0.col2 + - col1 FROM tab2 AS cor0
----
40681
52700
96583

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 col0 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84

query I rowsort
SELECT DISTINCT - 80 * col0 AS col0 FROM tab0 AS cor0
----
-1920
-2800
-7120

onlyif mysql # use DIV operator for integer division
query I rowsort label-6724
SELECT ALL col0 DIV + cor0.col1 + col0 * col1 AS col2 FROM tab1 AS cor0
----
1046
646
78

skipif mysql # not compatible
query I rowsort label-6724
SELECT ALL col0 / + cor0.col1 + col0 * col1 AS col2 FROM tab1 AS cor0
----
1046
646
78

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab2 AS cor0, tab1 AS cor1, tab0, tab2 AS cor2
----
3645 values hashing to d6a6e32c6adcc8525ed3eb7827781237

query I rowsort
SELECT DISTINCT col0 * - 58 * cor0.col0 + - col0 * - 7 + col1 AS col1 FROM tab1 AS cor0
----
-237110
-370627
-475

query I rowsort
SELECT ALL - + col1 * ( col1 ) * - col2 FROM tab1 cor0
----
16224
36504
5700

query I rowsort
SELECT ALL - + cor0.col2 AS col0 FROM tab2 cor0
----
-26
-27
-38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6729
SELECT ALL + 50 + - col0 * - CAST( col2 AS SIGNED ) FROM tab1 AS cor0
----
212
3698
7730

skipif mysql # not compatible
query I rowsort label-6729
SELECT ALL + 50 + - col0 * - CAST ( col2 AS INTEGER ) FROM tab1 AS cor0
----
212
3698
7730

query I rowsort
SELECT - - col1 * - cor0.col0 AS col1 FROM tab1 AS cor0
----
-1040
-640
-78

onlyif mysql # use DIV operator for integer division
query I rowsort label-6731
SELECT ALL - cor0.col2 DIV - cor0.col2 + col0 FROM tab0 AS cor0
----
25
36
90

skipif mysql # not compatible
query I rowsort label-6731
SELECT ALL - cor0.col2 / - cor0.col2 + col0 FROM tab0 AS cor0
----
25
36
90

query I rowsort
SELECT ALL + + col2 + col1 * + col2 FROM tab0 AS cor0
----
2871
7544
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 + col0 * + 51 - col0 col2 FROM tab0 AS cor0
----
1233
1751
4532

query I rowsort
SELECT ALL col2 * + cor0.col2 + + col2 FROM tab0 AS cor0
----
1122
2
6806

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 33 * + col2 col0 FROM tab2 AS cor0
----
-1254
-858
-891

query I rowsort
SELECT ALL 71 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0

query I rowsort
SELECT + ( col1 ) * ( - cor0.col0 ) AS col0 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT - + cor0.col2 + - col0 FROM tab1 AS cor0
----
-121
-176
-57

query I rowsort
SELECT ALL col0 + + 37 FROM tab2 AS cor0
----
115
116
44

query I rowsort
SELECT DISTINCT col1 * - col0 - - 78 FROM tab2 AS cor0
----
-1265
-139
-4524

onlyif mysql # use DIV operator for integer division
query I rowsort label-6741
SELECT ALL - - cor0.col2 - + col0 DIV col1 AS col2 FROM tab1 AS cor0
----
51
54
90

skipif mysql # not compatible
query I rowsort label-6741
SELECT ALL - - cor0.col2 - + col0 / col1 AS col2 FROM tab1 AS cor0
----
51
54
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 * + ( ( col2 ) ) col2 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT + - cor0.col1 * cor0.col1 * - col0 FROM tab0 AS cor0
----
177504
329315
737009

onlyif mysql # use DIV operator for integer division
query I rowsort label-6744
SELECT ALL + col1 + - 42 DIV 7 FROM tab2 AS cor0
----
11
25
53

skipif mysql # not compatible
query I rowsort label-6744
SELECT ALL + col1 + - 42 / 7 FROM tab2 AS cor0
----
11
25
53

query I rowsort
SELECT + col0 * col1 + col1 AS col2 FROM tab0
----
2150
3492
8190

query I rowsort
SELECT ALL - col2 + 48 AS col1 FROM tab2 AS cor0
----
10
21
22

query I rowsort
SELECT + + col2 * + col2 + - col1 FROM tab2 AS cor0
----
1427
617
698

onlyif mysql # use DIV operator for integer division
query I rowsort label-6748
SELECT ALL - col0 DIV + 87 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6748
SELECT ALL - col0 / + 87 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - + col1 * col2 * - 24 AS col0 FROM tab0 AS cor0
----
179088
2328
68112

query I rowsort
SELECT col2 * + cor0.col1 + - col1 AS col0 FROM tab1 AS cor0
----
1235
1378
560

query I rowsort
SELECT DISTINCT + + col1 + 46 * - col1 FROM tab0 AS cor0
----
-3870
-4095
-4365

query I rowsort
SELECT ALL + 68 AS col1 FROM tab0 cor0
----
68
68
68

query I rowsort
SELECT DISTINCT - 73 AS col2 FROM tab2 AS cor0
----
-73

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6754
SELECT - CAST( NULL AS SIGNED ) * col2 * - col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6754
SELECT - CAST ( NULL AS INTEGER ) * col2 * - col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 6 * - col0 FROM tab1 AS cor0
----
18
384
480

query I rowsort
SELECT + - ( col1 ) * col0 AS col0 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT + 61 + 40 * - col0 AS col0 FROM tab1 AS cor0
----
-2499
-3139
-59

query I rowsort
SELECT - 25 + cor0.col0 FROM tab0 AS cor0
----
-1
10
64

onlyif mysql # use DIV operator for integer division
query I rowsort label-6759
SELECT DISTINCT - col2 DIV 77 AS col2 FROM tab0
----
-1
0

skipif mysql # not compatible
query I rowsort label-6759
SELECT DISTINCT - col2 / 77 AS col2 FROM tab0
----
-1
0

query I rowsort
SELECT DISTINCT col1 + + ( col0 * col1 ) FROM tab0
----
2150
3492
8190

query I rowsort
SELECT col1 + + 48 AS col1 FROM tab0
----
134
139
145

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 37 col1 FROM tab0, tab2, tab2 AS cor0, tab1
----
81 values hashing to b8def841e97863779a391f3a05d3eb92

onlyif mysql # use DIV operator for integer division
query I rowsort label-6763
SELECT DISTINCT + tab0.col0 DIV col1 AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-6763
SELECT DISTINCT + tab0.col0 / col1 AS col0 FROM tab0
----
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6764
SELECT DISTINCT CAST( cor0.col1 AS SIGNED ) AS col1 FROM tab2, tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-6764
SELECT DISTINCT CAST ( cor0.col1 AS INTEGER ) AS col1 FROM tab2, tab0 AS cor0
----
86
91
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 57 col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a

query I rowsort
SELECT ALL col1 * 22 FROM tab1 cor0
----
220
286
572

query I rowsort
SELECT ALL - + cor0.col0 * 44 FROM tab1 AS cor0
----
-132
-2816
-3520

query I rowsort
SELECT ( - col0 ) * col1 AS col0 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT ALL - ( + col0 ) * + col0 + col0 * col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + + 33 AS col0 FROM tab0 AS cor0
----
33

onlyif mysql # use DIV operator for integer division
query I rowsort label-6771
SELECT + 19 DIV col0 AS col2 FROM tab2 AS cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-6771
SELECT + 19 / col0 AS col2 FROM tab2 AS cor0
----
0
0
2

query I rowsort
SELECT DISTINCT + - cor1.col1 * 22 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
-220
-286
-572

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6773
SELECT - cor0.col0 * - CAST( + col1 AS SIGNED ) FROM tab0 AS cor0
----
2064
3395
8099

skipif mysql # not compatible
query I rowsort label-6773
SELECT - cor0.col0 * - CAST ( + col1 AS INTEGER ) FROM tab0 AS cor0
----
2064
3395
8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-6774
SELECT cor0.col2 DIV 4 + - col2 * col0 * ( ( col2 ) * + col2 ) FROM tab0 AS cor0
----
-35
-49071732
-862480

skipif mysql # not compatible
query I rowsort label-6774
SELECT cor0.col2 / 4 + - col2 * col0 * ( ( col2 ) * + col2 ) FROM tab0 AS cor0
----
-35
-49071732
-862480

query I rowsort
SELECT ALL cor0.col1 * 25 AS col0 FROM tab1 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 74c634edb1b47d707181662c50effb1a

onlyif mysql # use DIV operator for integer division
query I rowsort label-6776
SELECT ALL - - 87 DIV col2 + - ( + cor0.col2 ) FROM tab0 AS cor0
----
-31
-81
86

skipif mysql # not compatible
query I rowsort label-6776
SELECT ALL - - 87 / col2 + - ( + cor0.col2 ) FROM tab0 AS cor0
----
-31
-81
86

query I rowsort
SELECT ALL + + ( - cor0.col1 ) FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT ALL + tab2.col1 * col2 + 82 + - 52 FROM tab2
----
1564
676
867

query I rowsort
SELECT ALL col1 + + col0 * 12 AS col2 FROM tab1 AS cor0
----
62
778
973

query I rowsort
SELECT - tab1.col0 * 13 AS col0 FROM tab1
----
-1040
-39
-832

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6781
SELECT ALL CAST( NULL AS DECIMAL ) AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-6781
SELECT ALL CAST ( NULL AS REAL ) AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # use DIV operator for integer division
query I rowsort label-6782
SELECT col2 DIV col2 AS col1 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6782
SELECT col2 / col2 AS col1 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT + col2 * + 20 AS col2 FROM tab0 AS cor0
----
1640
20
660

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6784
SELECT + col0 * CAST( NULL AS SIGNED ) / + col0 + cor0.col0 * 79 * col1 - - cor0.col2 / + 12 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6784
SELECT + col0 * CAST ( NULL AS INTEGER ) / + col0 + cor0.col0 * 79 * col1 - - cor0.col2 / + 12 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + col0 + - col1 * col1 AS col0 FROM tab1 AS cor0
----
-164
-249
-679

onlyif mysql # use DIV operator for integer division
query I rowsort label-6786
SELECT + + col1 DIV + col1 + + 33 FROM tab1 AS cor0
----
34
34
34

skipif mysql # not compatible
query I rowsort label-6786
SELECT + + col1 / + col1 + + 33 FROM tab1 AS cor0
----
34
34
34

onlyif mysql # use DIV operator for integer division
query I rowsort label-6787
SELECT + 87 DIV + 63 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

skipif mysql # not compatible
query I rowsort label-6787
SELECT + 87 / + 63 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + col1 * + cor0.col1 col0 FROM tab0 AS cor0
----
7372
8192
9374

query I rowsort
SELECT + - col0 + - cor0.col1 + - col2 FROM tab2 AS cor0
----
-134
-163
-65

query I rowsort
SELECT + 51 * col2 AS col1 FROM tab2 cor0
----
1326
1377
1938

query I rowsort
SELECT - col1 + col2 * - ( - 75 + - cor0.col2 ) * + col0 AS col1 FROM tab1 AS cor0
----
1313267
20872
481526

onlyif mysql # use DIV operator for integer division
query I rowsort label-6792
SELECT - ( col2 ) + - 70 DIV 74 AS col0 FROM tab2 cor0
----
-26
-27
-38

skipif mysql # not compatible
query I rowsort label-6792
SELECT - ( col2 ) + - 70 / 74 AS col0 FROM tab2 cor0
----
-26
-27
-38

query I rowsort
SELECT + - 25 + + col1 AS col1 FROM tab1 AS cor0
----
-12
-15
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-6794
SELECT DISTINCT + col0 DIV - cor0.col1 + col1 FROM tab2 AS cor0
----
13
31
58

skipif mysql # not compatible
query I rowsort label-6794
SELECT DISTINCT + col0 / - cor0.col1 + col1 FROM tab2 AS cor0
----
13
31
58

query I rowsort
SELECT + col0 * col2 * + ( - tab0.col1 ) FROM tab0
----
-3395
-664118
-68112

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6796
SELECT DISTINCT - col2 * ( col0 ) * - col2 + CAST( ( - col1 ) AS SIGNED ) * col1 FROM tab0 AS cor0
----
-9374
18740
590155

skipif mysql # not compatible
query I rowsort label-6796
SELECT DISTINCT - col2 * ( col0 ) * - col2 + CAST ( ( - col1 ) AS INTEGER ) * col1 FROM tab0 AS cor0
----
-9374
18740
590155

query I rowsort
SELECT DISTINCT - - cor0.col0 AS col2 FROM tab2, tab1 AS cor0
----
3
64
80

query I rowsort
SELECT + 15 * - 84 - col0 FROM tab2 AS cor0
----
-1267
-1338
-1339

query I rowsort
SELECT ALL + 41 + + cor0.col1 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to b7a76c4507d813340347bccd46e3c26e

query I rowsort
SELECT ALL - 34 * - tab1.col1 * tab1.col0 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 6ac9bcd1557e8ccff69e7d5bbf32e080

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 36 col1 FROM tab2 AS cor0
----
36
36
36

query I rowsort
SELECT DISTINCT cor0.col0 * + cor0.col2 AS col1 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT - - col2 - col1 * - col0 AS col0 FROM tab2 cor0
----
1381
244
4628

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 42 col2 FROM tab1
----
42

query I rowsort
SELECT 65 * + cor0.col1 + + 32 * - col2 AS col0 FROM tab1 AS cor0
----
-1174
-2227
-38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6806
SELECT DISTINCT CAST( 44 AS SIGNED ) AS col1 FROM tab1
----
44

skipif mysql # not compatible
query I rowsort label-6806
SELECT DISTINCT CAST ( 44 AS INTEGER ) AS col1 FROM tab1
----
44

query I rowsort
SELECT 8 AS col1 FROM tab2, tab0 cor0
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57

query I rowsort
SELECT 15 * - col2 FROM tab1
----
-1440
-810
-855

query I rowsort
SELECT DISTINCT col1 + cor0.col2 AS col2 FROM tab2 AS cor0
----
55
58
85

onlyif mysql # use DIV operator for integer division
query I rowsort label-6810
SELECT DISTINCT - col1 + col0 DIV ( ( col2 ) ) + - col1 FROM tab1 AS cor0
----
-19
-26
-52

skipif mysql # not compatible
query I rowsort label-6810
SELECT DISTINCT - col1 + col0 / ( ( col2 ) ) + - col1 FROM tab1 AS cor0
----
-19
-26
-52

query I rowsort
SELECT + 47 - + col0 FROM tab0
----
-42
12
23

query I rowsort
SELECT col1 * - col2 + - col2 AS col2 FROM tab0
----
-2871
-7544
-98

query I rowsort
SELECT col1 + col0 * ( + col0 ) - col0 FROM tab1
----
32
4042
6333

query I rowsort
SELECT DISTINCT + tab0.col1 * col2 + - 56 * tab0.col0 AS col1 FROM tab0
----
-1863
1494
2478

onlyif mysql # use DIV operator for integer division
query I rowsort label-6815
SELECT ALL + col0 DIV + col2 + + col2 AS col0 FROM tab0
----
33
36
83

skipif mysql # not compatible
query I rowsort label-6815
SELECT ALL + col0 / + col2 + + col2 AS col0 FROM tab0
----
33
36
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-6816
SELECT ALL + - col0 DIV - cor0.col1 AS col2 FROM tab2 AS cor0
----
0
1
4

skipif mysql # not compatible
query I rowsort label-6816
SELECT ALL + - col0 / - cor0.col1 AS col2 FROM tab2 AS cor0
----
0
1
4

query I rowsort
SELECT 78 * - col1 + col1 * col1 + col0 AS col0 FROM tab1
----
-1349
-616
-765

query I rowsort
SELECT 93 FROM tab1, tab0 AS cor0
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 6 col1 FROM tab1, tab2 cor0, tab0 AS cor1
----
27 values hashing to 8be8910507908e6353d02a545b748252

query I rowsort
SELECT col2 * ( - col1 ) + - col1 FROM tab2 AS cor0
----
-1593
-663
-868

query I rowsort
SELECT DISTINCT + tab1.col0 * - ( + col1 ) * tab1.col2 FROM tab1
----
-36480
-4212
-99840

onlyif mysql # use DIV operator for integer division
query I rowsort label-6822
SELECT - col0 - ( - tab1.col0 ) DIV - col1 FROM tab1
----
-3
-70
-86

skipif mysql # not compatible
query I rowsort label-6822
SELECT - col0 - ( - tab1.col0 ) / - col1 FROM tab1
----
-3
-70
-86

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6823
SELECT col0 + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6823
SELECT col0 + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 * + 57 AS col2 FROM tab1 AS cor0
----
1482
570
741

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6825
SELECT ALL - CAST( NULL AS SIGNED ) * - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6825
SELECT ALL - CAST ( NULL AS INTEGER ) * - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 + + 93 FROM tab0
----
179
184
190

onlyif mysql # use DIV operator for integer division
query I rowsort label-6827
SELECT ALL - - col1 * col1 + + col0 DIV - col0 FROM tab0 AS cor0
----
7395
8280
9408

skipif mysql # not compatible
query I rowsort label-6827
SELECT ALL - - col1 * col1 + + col0 / - col0 FROM tab0 AS cor0
----
7395
8280
9408

query I rowsort
SELECT + col1 + 79 FROM tab0 AS cor0
----
165
170
176

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 + cor0.col2 * col2 col2 FROM tab1 AS cor0
----
2970
3306
9312

query I rowsort
SELECT ALL - + 3 + 91 AS col1 FROM tab0 cor0
----
88
88
88

onlyif mysql # use DIV operator for integer division
query I rowsort label-6831
SELECT - - col0 + + cor0.col1 * col2 DIV + col0 FROM tab1 AS cor0
----
471
72
95

skipif mysql # not compatible
query I rowsort label-6831
SELECT - - col0 + + cor0.col1 * col2 / + col0 FROM tab1 AS cor0
----
471
72
95

query I rowsort
SELECT + - 10 FROM tab1 AS cor0
----
-10
-10
-10

query I rowsort
SELECT DISTINCT ( col0 ) AS col0 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT DISTINCT - col2 * - col1 * - col0 FROM tab1 AS cor0
----
-36480
-4212
-99840

query I rowsort
SELECT DISTINCT col0 + + col0 AS col1 FROM tab1
----
128
160
6

query I rowsort
SELECT 68 + + tab1.col1 * col2 AS col0 FROM tab1
----
1316
1472
638

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6837
SELECT DISTINCT + col1 * col0 + + CAST( + col0 AS SIGNED ) * col2 + 60 AS col0 FROM tab1
----
300
4348
8780

skipif mysql # not compatible
query I rowsort label-6837
SELECT DISTINCT + col1 * col0 + + CAST ( + col0 AS INTEGER ) * col2 + 60 AS col0 FROM tab1
----
300
4348
8780

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor1.col1 col0 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
10
13
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + cor0.col1 col1 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT DISTINCT + col1 + col2 * - col0 AS col1 FROM tab2 AS cor0
----
-158
-1969
-2985

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6841
SELECT DISTINCT + cor0.col2 * col2 - - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6841
SELECT DISTINCT + cor0.col2 * col2 - - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL ( - col2 ) AS col0 FROM tab0
----
-1
-33
-82

query I rowsort
SELECT 57 * + col0 * - ( tab0.col0 ) AS col2 FROM tab0
----
-32832
-451497
-69825

query I rowsort
SELECT + col1 + 15 * + col0 FROM tab2 AS cor0
----
1202
1229
136

query I rowsort
SELECT + col1 * + col0 * 7 FROM tab1 AS cor0
----
4480
546
7280

query I rowsort
SELECT DISTINCT col0 * - 84 FROM tab1 AS cor0
----
-252
-5376
-6720

query I rowsort
SELECT ALL + col2 * 41 FROM tab1 AS cor0
----
2214
2337
3936

query I rowsort
SELECT - - col1 + + cor0.col0 * ( - col1 ) AS col1 FROM tab0 AS cor0
----
-1978
-3298
-8008

query I rowsort
SELECT DISTINCT col1 * col0 + - col1 + + cor0.col2 AS col0 FROM tab0 AS cor0
----
2011
3299
8090

query I rowsort
SELECT DISTINCT 14 FROM tab1, tab1 AS cor0, tab0 cor1
----
14

query I rowsort
SELECT ALL col0 + - 44 FROM tab0 AS cor0
----
-20
-9
45

query I rowsort
SELECT - + col1 + - cor0.col1 AS col0 FROM tab0 AS cor0
----
-172
-182
-194

query I rowsort
SELECT DISTINCT col1 * + 93 AS col2 FROM tab0 AS cor0
----
7998
8463
9021

query I rowsort
SELECT - col2 + + col1 * - 8 FROM tab0 cor0
----
-721
-777
-810

query I rowsort
SELECT col2 * - 2 FROM tab0 AS cor0
----
-164
-2
-66

query I rowsort
SELECT DISTINCT + col0 + 93 FROM tab1 AS cor0
----
157
173
96

query I rowsort
SELECT ALL - + 99 * col0 FROM tab0 AS cor0
----
-2376
-3465
-8811

query I rowsort
SELECT tab2.col2 + 49 * + col1 + - 5 * - col1 * + col0 FROM tab2
----
25927
2631
7586

query I rowsort
SELECT - 82 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to f800b0aad28b82b2deb67f7045c9a45c

query I rowsort
SELECT ALL - ( + col1 ) * + col0 - cor0.col1 FROM tab2 AS cor0
----
-1360
-248
-4661

onlyif mysql # use DIV operator for integer division
query I rowsort label-6861
SELECT ALL - + 3 DIV 13 + col2 + + 93 AS col1 FROM tab2 AS cor0
----
119
120
131

skipif mysql # not compatible
query I rowsort label-6861
SELECT ALL - + 3 / 13 + col2 + + 93 AS col1 FROM tab2 AS cor0
----
119
120
131

query I rowsort
SELECT 82 - 4 * + col0 FROM tab2 AS cor0
----
-230
-234
54

query I rowsort
SELECT col0 * + col2 * + col1 + 80 FROM tab1 AS cor0
----
36560
4292
99920

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 + + col0 col2 FROM tab2 AS cor0
----
-24
19
62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6865
SELECT - CAST( - col0 AS SIGNED ) - col0 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-6865
SELECT - CAST ( - col0 AS INTEGER ) - col0 col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + 79 - col0 FROM tab1 AS cor0
----
-1
15
76

query I rowsort
SELECT DISTINCT - 7 * 14 + col0 * 69 * cor0.col0 FROM tab2 AS cor0
----
3283
419698
430531

query I rowsort
SELECT ALL + 84 - col1 FROM tab0 AS cor0
----
-13
-2
-7

query I rowsort
SELECT - 61 * - cor0.col1 - + col2 FROM tab2 AS cor0
----
1864
3573
999

query I rowsort
SELECT ALL col2 + 23 FROM tab1 cor0
----
119
77
80

query I rowsort
SELECT - col0 * 21 FROM tab2 cor0
----
-147
-1638
-1659

query I rowsort
SELECT DISTINCT - + ( - col2 ) * - col0 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT - - 29 + + cor0.col1 FROM tab0 AS cor0
----
115
120
126

query I rowsort
SELECT + col0 * + col1 + col1 + - col2 * ( + col0 ) FROM tab2
----
-1642
2633
59

query I rowsort
SELECT DISTINCT - - 9 * col2 FROM tab0 AS cor0
----
297
738
9

query I rowsort
SELECT ALL 16 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 AS cor0 CROSS JOIN tab2, tab2 AS cor1
----
972 values hashing to 163d7732097d78f1cda7f65c2cea5a08

query I rowsort
SELECT DISTINCT - + 31 AS col1 FROM tab1 AS cor0
----
-31

query I rowsort
SELECT + 17 * col2 AS col2 FROM tab1 cor0
----
1632
918
969

query I rowsort
SELECT - col1 * col1 + - ( cor0.col0 ) * col0 AS col1 FROM tab0 AS cor0
----
-10634
-16202
-7972

query I rowsort
SELECT col1 * col1 - - ( + col1 * + col1 ) AS col1 FROM tab2 AS cor0
----
1922
578
6962

query I rowsort
SELECT DISTINCT - col2 * - col1 + col2 FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT ALL + col2 * - col0 + + col0 + - col2 AS col2 FROM tab1 AS cor0
----
-213
-3641
-7696

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col1 col1 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT ALL + col0 - col1 * + col0 FROM tab2 AS cor0
----
-1264
-210
-4524

query I rowsort
SELECT 22 * - col1 + col1 AS col0 FROM tab1 AS cor0
----
-210
-273
-546

query I rowsort
SELECT ALL + 88 + + col2 AS col1 FROM tab1
----
142
145
184

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6888
SELECT ALL CAST( NULL AS SIGNED ) + - ( - col2 * + col0 ) + col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6888
SELECT ALL CAST ( NULL AS INTEGER ) + - ( - col2 * + col0 ) + col0 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab2.col1 + 56 col2 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 83b9579ad9a720561b1a787d48129f1a

query I rowsort
SELECT + + 19 + + cor0.col0 FROM tab0 AS cor0
----
108
43
54

query I rowsort
SELECT ALL 93 + + col0 AS col0 FROM tab2
----
100
171
172

onlyif mysql # use DIV operator for integer division
query I rowsort label-6892
SELECT 33 * col1 DIV col1 FROM tab1
----
33
33
33

skipif mysql # not compatible
query I rowsort label-6892
SELECT 33 * col1 / col1 FROM tab1
----
33
33
33

query I rowsort
SELECT col2 * cor0.col1 * - col0 FROM tab2 AS cor0
----
-119652
-51034
-5859

query I rowsort
SELECT + ( - 3 ) * col1 * - ( 55 ) FROM tab2 AS cor0
----
2805
5115
9735

query I rowsort
SELECT DISTINCT + 69 + - 29 FROM tab0 AS cor0
----
40

query I rowsort
SELECT - - cor0.col2 * cor1.col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to bbf44891fdcfbe372162a2e549d3eeed

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6897
SELECT DISTINCT CAST( - 89 AS SIGNED ) AS col2 FROM tab0, tab0 AS cor0
----
-89

skipif mysql # not compatible
query I rowsort label-6897
SELECT DISTINCT CAST ( - 89 AS INTEGER ) AS col2 FROM tab0, tab0 AS cor0
----
-89

onlyif mysql # use DIV operator for integer division
query I rowsort label-6898
SELECT DISTINCT tab2.col2 + 12 DIV - tab2.col1 AS col1 FROM tab2, tab2 AS cor0
----
26
27
38

skipif mysql # not compatible
query I rowsort label-6898
SELECT DISTINCT tab2.col2 + 12 / - tab2.col1 AS col1 FROM tab2, tab2 AS cor0
----
26
27
38

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab1, tab2 cor2
----
3645 values hashing to cc4f069e61d0cc52f433f9e8c0058808

query I rowsort
SELECT DISTINCT - 95 + 55 AS col0 FROM tab0
----
-40

query I rowsort
SELECT - 58 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to de0811e670e75d2aeeb657e32bddb0c0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6902
SELECT + tab1.col1 + - cor0.col2 + 78 DIV - 29 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 33e215c05c87f1c0215c7a4a18d1ec03

skipif mysql # not compatible
query I rowsort label-6902
SELECT + tab1.col1 + - cor0.col2 + 78 / - 29 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 33e215c05c87f1c0215c7a4a18d1ec03

query I rowsort
SELECT - col0 + + 78 + tab1.col2 FROM tab1
----
129
71
94

query I rowsort
SELECT DISTINCT tab0.col0 * + col2 * - col2 + col0 AS col2 FROM tab0
----
-26112
-598347
0

query I rowsort
SELECT ALL + 45 FROM tab1 cor0
----
45
45
45

query I rowsort
SELECT DISTINCT + ( + ( - col2 ) ) + + cor0.col2 AS col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL + + 80 * + 13 AS col1 FROM tab1 AS cor0
----
1040
1040
1040

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab1, tab0 AS cor1, tab2 AS cor2, tab0 cor3
----
3645 values hashing to 93ed44f621cc970f32b0cc9543b45262

query I rowsort
SELECT 7 FROM tab2, tab1 cor0, tab1, tab1 AS cor1
----
81 values hashing to bd991c690468eea3ef45a96817ca3617

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 74 col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6911
SELECT + - col1 + - CAST( col0 + + col1 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-196
-229
-271

skipif mysql # not compatible
query I rowsort label-6911
SELECT + - col1 + - CAST ( col0 + + col1 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-196
-229
-271

query I rowsort
SELECT - col1 + - 83 FROM tab0 AS cor0
----
-169
-174
-180

query I rowsort
SELECT col1 + col0 * col0 - col0 * - tab2.col0 AS col0 FROM tab2
----
12227
12499
129

query I rowsort
SELECT col0 * - ( - col0 ) FROM tab0
----
1225
576
7921

query I rowsort
SELECT + + col2 * col1 - 25 AS col2 FROM tab2 AS cor0
----
1509
621
812

query I rowsort
SELECT - 22 * + col2 FROM tab0 AS cor0
----
-1804
-22
-726

query I rowsort
SELECT DISTINCT - col2 + - col0 * + col2 FROM tab0
----
-36
-7380
-825

query I rowsort
SELECT + + col1 + cor0.col0 * col1 FROM tab2 AS cor0
----
1360
248
4661

query I rowsort
SELECT DISTINCT 28 * cor0.col2 FROM tab0 AS cor0
----
2296
28
924

query I rowsort
SELECT ALL - - col1 + 72 FROM tab1 AS cor0
----
82
85
98

query I rowsort
SELECT - + ( - col0 ) AS col2 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT ALL 68 * 52 FROM tab0 AS cor0
----
3536
3536
3536

query I rowsort
SELECT ALL + - col2 * cor0.col2 AS col1 FROM tab2 AS cor0
----
-1444
-676
-729

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 54 * + col2 col1 FROM tab2 cor0
----
1404
1458
2052

query I rowsort
SELECT - ( 54 ) FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 71e27a12767d3a987ce05e4d6edad211

query I rowsort
SELECT - - 26 * + col1 FROM tab2 cor0
----
1534
442
806

query I rowsort
SELECT 20 + - col0 * + cor0.col2 FROM tab2 cor0
----
-169
-2008
-2982

query I rowsort
SELECT DISTINCT - col1 * + 37 * - col2 + col1 * ( col2 + col1 ) AS col2 FROM tab1 AS cor0
----
21760
47593
54028

query I rowsort
SELECT + - col2 + 34 AS col0 FROM tab2 cor0
----
-4
7
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 col1 FROM tab2, tab1 cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

onlyif mysql # use DIV operator for integer division
query I rowsort label-6931
SELECT ALL - cor0.col0 DIV 47 FROM tab1, tab1 AS cor0
----
9 values hashing to b2e225572af74ba853e10fb5414ea67f

skipif mysql # not compatible
query I rowsort label-6931
SELECT ALL - cor0.col0 / 47 FROM tab1, tab1 AS cor0
----
9 values hashing to b2e225572af74ba853e10fb5414ea67f

query I rowsort
SELECT ALL + 25 FROM tab0, tab1 cor0, tab0 cor1
----
27 values hashing to 2c77240b60ac01c717a5ed5d0165f450

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + + col2 + CAST ( col2 AS REAL ) AS col0 FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT DISTINCT - ( cor0.col1 ) AS col2 FROM tab0, tab2 AS cor0
----
-17
-31
-59

onlyif mysql # use DIV operator for integer division
query I rowsort label-6935
SELECT ALL + - col2 DIV - col1 AS col0 FROM tab1 AS cor0
----
2
5
7

skipif mysql # not compatible
query I rowsort label-6935
SELECT ALL + - col2 / - col1 AS col0 FROM tab1 AS cor0
----
2
5
7

query I rowsort
SELECT ALL + - col2 + - 5 * col0 FROM tab2 cor0
----
-416
-433
-62

query I rowsort
SELECT ALL col0 + - 58 * 72 FROM tab1 AS cor0
----
-4096
-4112
-4173

query I rowsort
SELECT + col0 * ( - ( col0 ) ) AS col0 FROM tab1 AS cor0
----
-4096
-6400
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + cor0.col2 * 42 col0 FROM tab1 AS cor0
----
-2268
-2394
-4032

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6940
SELECT col1 - CAST( col2 AS SIGNED ) FROM tab2
----
-21
33
4

skipif mysql # not compatible
query I rowsort label-6940
SELECT col1 - CAST ( col2 AS INTEGER ) FROM tab2
----
-21
33
4

query I rowsort
SELECT ALL - + ( - cor0.col1 ) * - cor0.col2 * ( 97 ) AS col2 FROM tab0 cor0
----
-275286
-723814
-9409

query I rowsort
SELECT DISTINCT + col2 + - ( + col2 ) * + col1 AS col2 FROM tab1 AS cor0
----
-1152
-1350
-513

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - ( - col0 ) col2 FROM tab1
----
4096
6400
9

query I rowsort
SELECT DISTINCT - 13 * - col2 AS col0 FROM tab0 AS cor0
----
1066
13
429

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab1.col1 * col1 * - tab1.col2 col0 FROM tab1
----
-16224
-36504
-5700

query I rowsort
SELECT tab0.col2 AS col0 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT DISTINCT + - 52 + col2 * col1 AS col1 FROM tab0 AS cor0
----
2786
45
7410

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 27 + - cor0.col0 col2 FROM tab2 AS cor0
----
-51
-52
20

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6949
SELECT DISTINCT - col2 * + col0 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6949
SELECT DISTINCT - col2 * + col0 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + col1 * col2 + + 62 FROM tab2 AS cor0
----
1596
708
899

query I rowsort
SELECT DISTINCT + 9 + col1 FROM tab1 AS cor0
----
19
22
35

query I rowsort
SELECT - + col1 + cor0.col1 + col0 * 2 AS col2 FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT ALL - + ( col1 ) AS col1 FROM tab2 cor0
----
-17
-31
-59

query I rowsort
SELECT DISTINCT - 83 + - tab1.col0 FROM tab1
----
-147
-163
-86

query I rowsort
SELECT ALL ( 88 ) + col1 AS col1 FROM tab1
----
101
114
98

query I rowsort
SELECT ALL - cor0.col1 FROM tab0, tab0 cor0
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f

query I rowsort
SELECT DISTINCT 86 + - col1 + ( col1 ) AS col1 FROM tab1 AS cor0
----
86

query I rowsort
SELECT - col0 * col2 + - 92 AS col0 FROM tab1 AS cor0
----
-254
-3740
-7772

query I rowsort
SELECT - 36 * + col2 AS col1 FROM tab1 AS cor0
----
-1944
-2052
-3456

query I rowsort
SELECT + + cor0.col0 + + cor0.col1 * - 18 AS col1 FROM tab0 AS cor0
----
-1524
-1549
-1711

query I rowsort
SELECT + ( + col1 ) * col1 FROM tab0 AS cor0
----
7396
8281
9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-6962
SELECT 11 + + 90 DIV - cor0.col0 AS col2 FROM tab2 AS cor0
----
-1
10
10

skipif mysql # not compatible
query I rowsort label-6962
SELECT 11 + + 90 / - cor0.col0 AS col2 FROM tab2 AS cor0
----
-1
10
10

query I rowsort
SELECT DISTINCT - + 26 AS col1 FROM tab2 AS cor0
----
-26

query I rowsort
SELECT DISTINCT - cor0.col1 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
-86
-91
-97

query I rowsort
SELECT DISTINCT 28 FROM tab1, tab1 AS cor0
----
28

query I rowsort
SELECT ALL + cor1.col0 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0, tab1 cor1, tab2, tab0 AS cor2
----
243 values hashing to 63f734facb33901524f6f2c799118db4

query I rowsort
SELECT 87 FROM tab0 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab1 AS cor2
----
81 values hashing to 969f31ae779866644763e8a07f1ec501

query I rowsort
SELECT ALL tab2.col2 + + col2 * - 38 AS col2 FROM tab2
----
-1406
-962
-999

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6969
SELECT - CAST( NULL AS SIGNED ) + + col1 * col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6969
SELECT - CAST ( NULL AS INTEGER ) + + col1 * col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 * 79 AS col2 FROM tab0
----
2607
6478
79

query I rowsort
SELECT ALL - - 16 * - cor0.col0 FROM tab2 AS cor0
----
-112
-1248
-1264

query I rowsort
SELECT 8 + col0 - + col0 AS col1 FROM tab1 AS cor0
----
8
8
8

query I rowsort
SELECT ALL - col1 * + tab2.col1 FROM tab2
----
-289
-3481
-961

query I rowsort
SELECT - 17 * tab0.col2 * col1 AS col1 FROM tab0
----
-126854
-1649
-48246

query I rowsort
SELECT + 33 FROM tab2, tab1 AS cor0
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5

query I rowsort
SELECT ALL 39 * - col1 FROM tab0
----
-3354
-3549
-3783

query I rowsort
SELECT + cor0.col1 * col1 * + 47 AS col2 FROM tab2 AS cor0
----
13583
163607
45167

onlyif mysql # use DIV operator for integer division
query I rowsort label-6978
SELECT DISTINCT - col0 * + 49 + col2 DIV col1 FROM tab1 AS cor0
----
-145
-3131
-3913

skipif mysql # not compatible
query I rowsort label-6978
SELECT DISTINCT - col0 * + 49 + col2 / col1 FROM tab1 AS cor0
----
-145
-3131
-3913

query I rowsort
SELECT DISTINCT 29 * col2 AS col1 FROM tab0
----
2378
29
957

onlyif mysql # use DIV operator for integer division
query I rowsort label-6980
SELECT ALL + 5 DIV col0 AS col0 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6980
SELECT ALL + 5 / col0 AS col0 FROM tab1
----
0
0
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-6981
SELECT ALL - 14 + col1 DIV - 1 FROM tab1 AS cor0
----
-24
-27
-40

skipif mysql # not compatible
query I rowsort label-6981
SELECT ALL - 14 + col1 / - 1 FROM tab1 AS cor0
----
-24
-27
-40

query I rowsort
SELECT ALL col1 * + col0 * col0 AS col0 FROM tab1
----
234
40960
83200

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6983
SELECT CAST( NULL AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab1 AS cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

skipif mysql # not compatible
query I rowsort label-6983
SELECT CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab1 AS cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

query I rowsort
SELECT DISTINCT + col0 * - 75 FROM tab1 cor0
----
-225
-4800
-6000

query I rowsort
SELECT cor0.col1 - + col0 AS col1 FROM tab2 cor0
----
-19
-62
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 + + col0 * col2 * col0 col1 FROM tab1 AS cor0
----
233529
540
614496

query I rowsort
SELECT ALL - col2 * - ( col1 * col2 ) FROM tab2 AS cor0
----
22599
24548
39884

query I rowsort
SELECT + + cor0.col1 + 4 * 33 FROM tab1 AS cor0
----
142
145
158

query I rowsort
SELECT col2 * + col1 + + col2 - + cor0.col0 * col1 FROM tab0 AS cor0
----
-3297
-555
807

query I rowsort
SELECT + + col0 + 3 + - col2 FROM tab0 AS cor0
----
-6
10
37

query I rowsort
SELECT - col2 * + col0 * - col0 AS col2 FROM tab1 AS cor0
----
233472
486
614400

query I rowsort
SELECT - cor0.col0 * - 1 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT col1 + - col2 FROM tab1 cor0
----
-28
-47
-83

query I rowsort
SELECT DISTINCT cor0.col2 + ( + 42 * col2 ) AS col1 FROM tab2 AS cor0
----
1118
1161
1634

query I rowsort
SELECT ALL - cor0.col1 * - ( - ( col2 ) ) AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT + 70 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 27 * col1 + + col2 col0 FROM tab2 cor0
----
1619
497
864

query I rowsort
SELECT - 98 * 47 + - cor0.col1 * col2 FROM tab2 cor0
----
-5252
-5443
-6140

onlyif mysql # use DIV operator for integer division
query I rowsort label-6999
SELECT ( + col0 ) DIV + col2 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6999
SELECT ( + col0 ) / + col2 FROM tab1
----
0
0
1

query I rowsort
SELECT - 75 + - col2 FROM tab0 AS cor0
----
-108
-157
-76

query I rowsort
SELECT col0 * 62 - + col1 FROM tab0 AS cor0
----
1402
2073
5427

query I rowsort
SELECT + + ( 28 ) + 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 col2 FROM tab1 AS cor0
----
-167
-278
-756

onlyif mysql # use DIV operator for integer division
query I rowsort label-7004
SELECT col1 DIV - col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7004
SELECT col1 / - col2 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 14 * cor0.col2 col1 FROM tab1 AS cor0
----
1344
756
798

query I rowsort
SELECT ALL + ( + col0 ) + - col1 AS col1 FROM tab2 cor0
----
-24
19
62

query I rowsort
SELECT ALL col1 + - col2 * col1 AS col1 FROM tab0 AS cor0
----
-2752
-7371
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-7008
SELECT DISTINCT - col1 * col1 DIV col2 + ( col0 * col0 + cor0.col2 ) AS col1 FROM tab0 cor0
----
-8183
385
7903

skipif mysql # not compatible
query I rowsort label-7008
SELECT DISTINCT - col1 * col1 / col2 + ( col0 * col0 + cor0.col2 ) AS col1 FROM tab0 cor0
----
-8183
385
7903

query I rowsort
SELECT DISTINCT + 50 + col1 * col1 AS col2 FROM tab0 AS cor0
----
7446
8331
9459

query I rowsort
SELECT ALL - 22 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 647e567609c5ada1d3454d2102819bfe

query I rowsort
SELECT + - col1 * col0 * 76 FROM tab2 cor0
----
-102068
-16492
-349752

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7012
SELECT - col2 + col2 * + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7012
SELECT - col2 + col2 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 61 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
61

query I rowsort
SELECT DISTINCT - - 32 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
32

query I rowsort
SELECT col2 * - col0 + + col2 * 60 FROM tab2
----
-468
-722
1431

query I rowsort
SELECT + 55 * + cor0.col1 FROM tab2 cor0
----
1705
3245
935

query I rowsort
SELECT DISTINCT - col1 - col1 * 15 FROM tab1 cor0
----
-160
-208
-416

query I rowsort
SELECT DISTINCT 1 + + col1 AS col1 FROM tab2 AS cor0
----
18
32
60

query I rowsort
SELECT + + 47 AS col1 FROM tab0 AS cor0
----
47
47
47

query I rowsort
SELECT DISTINCT ( col0 ) AS col0 FROM tab0 cor0
----
24
35
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-7021
SELECT col1 + + col1 * 14 DIV col1 AS col0 FROM tab2 AS cor0
----
31
45
73

skipif mysql # not compatible
query I rowsort label-7021
SELECT col1 + + col1 * 14 / col1 AS col0 FROM tab2 AS cor0
----
31
45
73

query I rowsort
SELECT + 70 + + col1 FROM tab2 AS cor0
----
101
129
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + col0 * col0 ) col1 FROM tab0
----
1225
576
7921

query I rowsort
SELECT 39 + 94 AS col0 FROM tab2
----
133
133
133

query I rowsort
SELECT DISTINCT + 4 AS col0 FROM tab0
----
4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7026
SELECT CAST( 20 * col2 AS SIGNED ) FROM tab2
----
520
540
760

skipif mysql # not compatible
query I rowsort label-7026
SELECT CAST ( 20 * col2 AS INTEGER ) FROM tab2
----
520
540
760

query I rowsort
SELECT - + 6 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to e92b2679faac7be63701967e3f0c0934

query I rowsort
SELECT ALL col2 * tab0.col2 AS col1 FROM tab0
----
1
1089
6724

query I rowsort
SELECT + - 69 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 3bd7460efa48c66c072ad5f3c2def7e9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 8 * - col2 * + tab1.col0 col1 FROM tab1
----
-1296
-29184
-61440

query I rowsort
SELECT + cor0.col2 + cor0.col0 * - ( - col2 ) FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT DISTINCT - cor1.col2 + + ( - cor0.col0 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to bf101804f9dfd3a9ab127a66a196b731

query I rowsort
SELECT + 18 * + col0 AS col2 FROM tab2 cor0
----
126
1404
1422

query I rowsort
SELECT DISTINCT col2 * 98 AS col1 FROM tab1
----
5292
5586
9408

onlyif mysql # use DIV operator for integer division
query I rowsort label-7035
SELECT DISTINCT + col2 * 20 DIV + col0 FROM tab0
----
0
18
27

skipif mysql # not compatible
query I rowsort label-7035
SELECT DISTINCT + col2 * 20 / + col0 FROM tab0
----
0
18
27

query I rowsort
SELECT DISTINCT + tab1.col0 * tab1.col0 FROM tab1
----
4096
6400
9

query I rowsort
SELECT - ( - 80 * col0 ) AS col1 FROM tab2
----
560
6240
6320

query I rowsort
SELECT ALL + - 21 FROM tab2 cor0
----
-21
-21
-21

query I rowsort
SELECT DISTINCT col1 + col2 * col2 + 74 AS col0 FROM tab1 AS cor0
----
3016
3333
9303

query I rowsort
SELECT + 15 * + 35 AS col1 FROM tab2 AS cor0
----
525
525
525

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7041
SELECT ALL + CAST( col1 AS SIGNED ) + col0 FROM tab0 cor0
----
110
132
180

skipif mysql # not compatible
query I rowsort label-7041
SELECT ALL + CAST ( col1 AS INTEGER ) + col0 FROM tab0 cor0
----
110
132
180

query I rowsort
SELECT DISTINCT + - cor0.col1 * + cor0.col0 FROM tab0 cor0
----
-2064
-3395
-8099

query I rowsort
SELECT ALL - col2 + col1 * col1 AS col0 FROM tab1 AS cor0
----
43
622
73

query I rowsort
SELECT - 3 * col1 AS col1 FROM tab0 AS cor0
----
-258
-273
-291

query I rowsort
SELECT DISTINCT + + 98 AS col2 FROM tab2 AS cor0
----
98

query I rowsort
SELECT DISTINCT - ( - col2 ) + col0 - - col0 FROM tab0 AS cor0
----
260
71
81

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7047
SELECT + CAST( + 8 AS SIGNED ) + col0 * - 34 FROM tab1 cor0
----
-2168
-2712
-94

skipif mysql # not compatible
query I rowsort label-7047
SELECT + CAST ( + 8 AS INTEGER ) + col0 * - 34 FROM tab1 cor0
----
-2168
-2712
-94

query I rowsort
SELECT ALL + col0 + - col2 * col1 FROM tab0 cor0
----
-2814
-62
-7373

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7049
SELECT - col2 * 86 + col1 * CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7049
SELECT - col2 * 86 + col1 * CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col2 + ( cor0.col1 ) AS col2 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT col1 * + 27 + col0 FROM tab1 AS cor0
----
334
431
705

query I rowsort
SELECT ALL - 95 AS col0 FROM tab0 cor0
----
-95
-95
-95

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 34 col0 FROM tab0 AS cor0
----
34
34
34

query I rowsort
SELECT ALL - + col1 * col2 + col1 FROM tab2 AS cor0
----
-1475
-629
-806

query I rowsort
SELECT + cor0.col2 + col0 * + col2 FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT DISTINCT + 82 + col0 FROM tab2 AS cor0
----
160
161
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + col0 * col1 * + col1 col2 FROM tab2 AS cor0
----
22848
271577
6758

query I rowsort
SELECT DISTINCT + 71 AS col0 FROM tab0, tab1 AS cor0
----
71

query I rowsort
SELECT DISTINCT - - 78 AS col0 FROM tab1 AS cor0
----
78

query I rowsort
SELECT ALL - 89 + col0 AS col2 FROM tab0 AS cor0
----
-54
-65
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7062
SELECT - CAST( NULL AS SIGNED ) FROM tab1, tab0 AS cor0, tab2 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-7062
SELECT - CAST ( NULL AS INTEGER ) FROM tab1, tab0 AS cor0, tab2 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT - col0 * + col2 + - col2 FROM tab0 AS cor0
----
-36
-7380
-825

query I rowsort
SELECT DISTINCT + - col2 + col1 AS col0 FROM tab0 AS cor0
----
53
9
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 - 0 col1 FROM tab2 cor0
----
26
27
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-7066
SELECT + cor0.col2 + col2 + ( + cor0.col0 + + col0 ) DIV col1 FROM tab0 AS cor0
----
165
2
66

skipif mysql # not compatible
query I rowsort label-7066
SELECT + cor0.col2 + col2 + ( + cor0.col0 + + col0 ) / col1 FROM tab0 AS cor0
----
165
2
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 * - ( - col0 * - cor0.col2 ) + 89 + col2 col2 FROM tab2 AS cor0
----
-1207
-158069
-237031

query I rowsort
SELECT ALL col1 - - 26 FROM tab0 AS cor0
----
112
117
123

query I rowsort
SELECT + ( 55 ) + - col1 * + col0 AS col2 FROM tab0 AS cor0
----
-2009
-3340
-8044

query I rowsort
SELECT ALL + 88 + + cor0.col1 AS col0 FROM tab1 AS cor0
----
101
114
98

query I rowsort
SELECT + 34 * 70 AS col1 FROM tab0 AS cor0
----
2380
2380
2380

onlyif mysql # use DIV operator for integer division
query I rowsort label-7072
SELECT DISTINCT + + ( + col1 ) DIV col1 + ( - col1 ) * + col0 col0 FROM tab1 AS cor0
----
-1039
-639
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7072
SELECT DISTINCT + + ( + col1 ) / col1 + ( - col1 ) * + col0 col0 FROM tab1 AS cor0
----
-1039
-639
-77

query I rowsort
SELECT DISTINCT + - ( - col0 ) AS col1 FROM tab2 AS cor0
----
7
78
79

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 ALL + 92 + 43 * - col0 col1 FROM tab0 cor0
----
-1413
-3735
-940

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7076
SELECT DISTINCT CAST( NULL AS SIGNED ) * - col0 - cor0.col2 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7076
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - col0 - cor0.col2 AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - + 40 + cor0.col1 FROM tab1 AS cor0
----
-14
-27
-30

query I rowsort
SELECT ALL - ( col2 ) * - col1 + - col2 - + col2 * col1 FROM tab2 AS cor0
----
-26
-27
-38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7079
SELECT ALL CAST( + col0 AS SIGNED ) * - col0 FROM tab1 AS cor0
----
-4096
-6400
-9

skipif mysql # not compatible
query I rowsort label-7079
SELECT ALL CAST ( + col0 AS INTEGER ) * - col0 FROM tab1 AS cor0
----
-4096
-6400
-9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7080
SELECT - col2 + - CAST( NULL AS SIGNED ) + 7 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7080
SELECT - col2 + - CAST ( NULL AS INTEGER ) + 7 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7081
SELECT - col0 * + CAST( NULL AS SIGNED ) + + col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7081
SELECT - col0 * + CAST ( NULL AS INTEGER ) + + col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col2 + - tab0.col2 FROM tab0
----
-164
-2
-66

query I rowsort
SELECT DISTINCT col1 * col0 + - col1 * + col0 AS col1 FROM tab1
----
0

query I rowsort
SELECT ALL col0 + + col0 - + col2 AS col1 FROM tab2 cor0
----
-13
120
130

query I rowsort
SELECT DISTINCT + col1 + col1 * - col0 FROM tab0 AS cor0
----
-1978
-3298
-8008

onlyif mysql # use DIV operator for integer division
query I rowsort label-7086
SELECT - col0 DIV - tab0.col0 + col2 AS col2 FROM tab0
----
2
34
83

skipif mysql # not compatible
query I rowsort label-7086
SELECT - col0 / - tab0.col0 + col2 AS col2 FROM tab0
----
2
34
83

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN NULL AND ( + col1 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-7088
SELECT ALL col1 DIV col1 + - col0 * col1 AS col0 FROM tab0 AS cor0
----
-2063
-3394
-8098

skipif mysql # not compatible
query I rowsort label-7088
SELECT ALL col1 / col1 + - col0 * col1 AS col0 FROM tab0 AS cor0
----
-2063
-3394
-8098

query I rowsort
SELECT DISTINCT - col1 * cor0.col2 + + col1 FROM tab0 AS cor0
----
-2752
-7371
0

query I rowsort
SELECT ALL + col1 + - col1 - col2 FROM tab1 cor0
----
-54
-57
-96

query I rowsort
SELECT ALL - col1 - - col2 AS col1 FROM tab2 AS cor0
----
-33
-4
21

onlyif mysql # use DIV operator for integer division
query I rowsort label-7092
SELECT col1 DIV + col0 AS col0 FROM tab2
----
0
0
4

skipif mysql # not compatible
query I rowsort label-7092
SELECT col1 / + col0 AS col0 FROM tab2
----
0
0
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-7093
SELECT + col1 DIV col1 + col2 FROM tab0
----
2
34
83

skipif mysql # not compatible
query I rowsort label-7093
SELECT + col1 / col1 + col2 FROM tab0
----
2
34
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-7094
SELECT ALL + col1 DIV - col1 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7094
SELECT ALL + col1 / - col1 FROM tab0
----
-1
-1
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-7095
SELECT DISTINCT + col1 + col2 * col2 - col0 DIV + col0 FROM tab1
----
2941
3258
9228

skipif mysql # not compatible
query I rowsort label-7095
SELECT DISTINCT + col1 + col2 * col2 - col0 / + col0 FROM tab1
----
2941
3258
9228

query I rowsort
SELECT ALL col0 + - col0 + + col1 AS col2 FROM tab1
----
10
13
26

query I rowsort
SELECT col0 * - col0 + - col1 * col2 - - col1 FROM tab2
----
-6870
-7559
-855

query I rowsort
SELECT ALL col0 + tab2.col0 + col0 * col0 * col0 FROM tab2
----
357
474708
493197

query III rowsort
SELECT ALL * FROM tab1 WHERE ( - col2 * col0 + col0 ) IN ( - tab1.col1 )
----

query I rowsort
SELECT ALL col1 + - col0 * + col0 FROM tab0 WHERE NOT ( NULL ) <= ( NULL )
----

query I rowsort
SELECT + col1 - + col0 * - col2 * col2 AS col2 FROM tab2
----
114093
5134
52787

query I rowsort
SELECT + col2 AS col2 FROM tab2 WHERE NOT NULL <= ( + col1 * col0 + col1 * + col0 )
----

query I rowsort
SELECT DISTINCT col1 * col2 + col1 * + col2 + tab1.col0 AS col1 FROM tab1
----
1204
2576
2811

query I rowsort
SELECT ALL col1 + tab2.col0 * - tab2.col2 - + col0 FROM tab2
----
-165
-2047
-3064

query I rowsort
SELECT ALL tab1.col1 * - col0 AS col1 FROM tab1
----
-1040
-640
-78

query I rowsort
SELECT DISTINCT + col0 + col2 * col1 AS col0 FROM tab0 AS cor0
----
132
2862
7551

query I rowsort
SELECT ALL + - col1 * col2 AS col0 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT ALL + col2 * - cor0.col2 - - col2 AS col0 FROM tab1 AS cor0
----
-2862
-3192
-9120

onlyif mysql # use DIV operator for integer division
query I rowsort label-7109
SELECT ALL - col2 DIV + cor0.col2 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7109
SELECT ALL - col2 / + cor0.col2 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL + - cor0.col0 * + col1 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT DISTINCT + + col0 - col1 * col1 FROM tab2 AS cor0
----
-210
-3403
-954

query I rowsort
SELECT + col2 * col2 * + col0 FROM tab1
----
207936
737280
8748

query I rowsort
SELECT DISTINCT col1 + col2 + tab0.col2 AS col1 FROM tab0
----
152
255
99

query I rowsort
SELECT + col1 + col2 * tab2.col2 FROM tab2
----
1461
735
760

query I rowsort
SELECT col2 * + col2 + - tab2.col2 AS col0 FROM tab2
----
1406
650
702

query I rowsort
SELECT + col1 * col1 - col2 * - col2 AS col0 FROM tab0
----
15005
8485
9410

query I rowsort
SELECT col2 + - col2 * + tab0.col2 FROM tab0
----
-1056
-6642
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-7118
SELECT DISTINCT - col1 + + col1 DIV col0 AS col1 FROM tab0
----
-83
-90
-95

skipif mysql # not compatible
query I rowsort label-7118
SELECT DISTINCT - col1 + + col1 / col0 AS col1 FROM tab0
----
-83
-90
-95

query I rowsort
SELECT tab2.col0 - col2 * + col2 FROM tab2
----
-1365
-598
-722

query I rowsort
SELECT + col1 * + col0 + + col0 * + col1 FROM tab2
----
2686
434
9204

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) <> col2
----

query IIIIIIIII rowsort
SELECT * FROM tab2, tab1, tab0 AS cor0 WHERE NOT NULL < cor0.col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * col1 col0 FROM tab2
----
1343
217
4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-7124
SELECT ALL - 30 DIV + tab0.col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7124
SELECT ALL - 30 / + tab0.col1 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT tab2.col1 AS col0 FROM tab2, tab1 AS cor0
----
17
31
59

query I rowsort
SELECT - 97 FROM tab2, tab0 AS cor0, tab0, tab0 AS cor1
----
81 values hashing to a85708f93e08f0a017b33cd7912642fd

onlyif mysql # use DIV operator for integer division
query I rowsort label-7127
SELECT - col2 DIV - 88 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7127
SELECT - col2 / - 88 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + + cor0.col1 + + cor0.col2 * + col2 FROM tab1 AS cor0
----
2942
3259
9229

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NULL ) <> col0
----

query I rowsort
SELECT + col0 * col0 * - col0 + col0 FROM tab2
----
-336
-474474
-492960

query I rowsort
SELECT DISTINCT - tab0.col0 FROM tab0 WHERE NOT NULL > + col0
----

query I rowsort
SELECT + col1 * col2 + + col0 AS col2 FROM tab1
----
1328
1407
634

query I rowsort
SELECT ALL col0 * col2 + col2 AS col1 FROM tab2
----
2054
216
3040

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col1 NOT IN ( col1 )
----

query I rowsort
SELECT DISTINCT col2 + + col0 * col0 AS col1 FROM tab1
----
4153
63
6496

onlyif mysql # use DIV operator for integer division
query I rowsort label-7136
SELECT ALL col1 - - col0 DIV col2 AS col0 FROM tab0
----
132
86
92

skipif mysql # not compatible
query I rowsort label-7136
SELECT ALL col1 - - col0 / col2 AS col0 FROM tab0
----
132
86
92

query I rowsort
SELECT DISTINCT tab1.col2 + - tab1.col0 AS col2 FROM tab1
----
-7
16
51

query I rowsort
SELECT + col2 * col1 * - col1 + tab1.col0 AS col2 FROM tab1
----
-16144
-36501
-5636

query I rowsort
SELECT col1 + - cor0.col2 * ( 50 * col2 ) + + col0 AS col0 FROM tab0 cor0
----
-336020
-54340
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * col2 col2 FROM tab1
----
162
3648
7680

query I rowsort
SELECT col1 * col0 + + col0 * - col0 + - col1 FROM tab2
----
-1541
-4915
137

query I rowsort
SELECT col2 * - tab2.col2 AS col1 FROM tab2
----
-1444
-676
-729

query I rowsort
SELECT ALL tab1.col1 + col2 AS col1 FROM tab1
----
109
67
80

query I rowsort
SELECT - 20 * cor0.col0 * + col1 AS col0 FROM tab0 cor0
----
-161980
-41280
-67900

query I rowsort
SELECT ALL 70 AS col1 FROM tab0
----
70
70
70

query I rowsort
SELECT ALL - + col0 + - 37 FROM tab0 AS cor0
----
-126
-61
-72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * 18 * 45 col1 FROM tab2 AS cor0
----
5670
63180
63990

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - col2 * + cor0.col1 col1 FROM tab0 AS cor0
----
-2805
-7380
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-7149
SELECT ALL + - col2 * col2 + 30 DIV - col1 + cor0.col2 AS col2 FROM tab2 AS cor0
----
-1407
-650
-702

skipif mysql # not compatible
query I rowsort label-7149
SELECT ALL + - col2 * col2 + 30 / - col1 + cor0.col2 AS col2 FROM tab2 AS cor0
----
-1407
-650
-702

onlyif mysql # use DIV operator for integer division
query I rowsort label-7150
SELECT + col0 * + 65 + - 90 DIV - col0 FROM tab2 cor0
----
467
5071
5136

skipif mysql # not compatible
query I rowsort label-7150
SELECT + col0 * + 65 + - 90 / - col0 FROM tab2 cor0
----
467
5071
5136

query I rowsort
SELECT ALL cor0.col2 * - col1 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT ALL + col0 + - ( + col0 ) FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + 91 + - 91 AS col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL - col0 * 15 AS col2 FROM tab2
----
-105
-1170
-1185

onlyif mysql # use DIV operator for integer division
query I rowsort label-7155
SELECT - ( + col2 ) + cor0.col1 DIV - col1 FROM tab1 cor0
----
-55
-58
-97

skipif mysql # not compatible
query I rowsort label-7155
SELECT - ( + col2 ) + cor0.col1 / - col1 FROM tab1 cor0
----
-55
-58
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-7156
SELECT ALL col0 DIV - tab1.col0 AS col2 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7156
SELECT ALL col0 / - tab1.col0 AS col2 FROM tab1
----
-1
-1
-1

query I rowsort
SELECT 96 AS col2 FROM tab1, tab0 cor0
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303

query I rowsort
SELECT DISTINCT 22 * ( - tab0.col1 ) AS col0 FROM tab0
----
-1892
-2002
-2134

query I rowsort
SELECT DISTINCT + col1 + + tab0.col2 * col1 FROM tab0
----
194
2924
7553

query I rowsort
SELECT + cor0.col2 AS col2 FROM tab1, tab0 cor0, tab2 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT ( col1 ) - 39 FROM tab2
----
-22
-8
20

query I rowsort
SELECT 74 + col2 AS col0 FROM tab0 AS cor0
----
107
156
75

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7163
SELECT - ( col1 ) * CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7163
SELECT - ( col1 ) * CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 91 + - col2 - col2 FROM tab0
----
-157
-255
-93

onlyif mysql # use DIV operator for integer division
query I rowsort label-7165
SELECT - - col0 + col2 DIV + col1 col1 FROM tab0 AS cor0
----
24
35
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7165
SELECT - - col0 + col2 / + col1 col1 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT cor0.col2 - + col1 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT col2 * cor0.col2 + + col0 AS col1 FROM tab0 AS cor0
----
1113
36
6813

query I rowsort
SELECT 96 * - tab2.col2 AS col2 FROM tab2
----
-2496
-2592
-3648

query I rowsort
SELECT ALL + col1 + - col0 + - tab0.col0 AS col0 FROM tab0
----
-87
27
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
86
91
97

query I rowsort
SELECT cor0.col2 + + cor0.col2 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 73e5d3d4212c7c9c8f2e4a4f74108ae2

query I rowsort
SELECT - - cor0.col1 * + cor0.col1 AS col0 FROM tab2 cor0
----
289
3481
961

onlyif mysql # use DIV operator for integer division
query I rowsort label-7173
SELECT DISTINCT - tab0.col2 * tab0.col0 DIV col1 AS col1 FROM tab0
----
-80
-9
0

skipif mysql # not compatible
query I rowsort label-7173
SELECT DISTINCT - tab0.col2 * tab0.col0 / col1 AS col1 FROM tab0
----
-80
-9
0

query I rowsort
SELECT + col2 + col1 * col2 AS col0 FROM tab1
----
1344
1458
627

onlyif mysql # use DIV operator for integer division
query I rowsort label-7175
SELECT DISTINCT - col2 + - col2 DIV col0 col2 FROM tab1 cor0
----
-57
-72
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7175
SELECT DISTINCT - col2 + - col2 / col0 col2 FROM tab1 cor0
----
-57
-72
-97

query I rowsort
SELECT - col1 * col1 * - col0 AS col0 FROM tab1 AS cor0
----
13520
2028
6400

query I rowsort
SELECT ALL + col0 * col0 * cor0.col1 AS col1 FROM tab1 AS cor0
----
234
40960
83200

query I rowsort
SELECT 9 * col0 + col0 + - col1 * + tab0.col0 AS col1 FROM tab0
----
-1824
-3045
-7209

query I rowsort
SELECT ALL + ( col1 ) - - col0 * col2 FROM tab1
----
188
3658
7693

query I rowsort
SELECT DISTINCT - - col2 + col2 * - cor0.col2 AS col0 FROM tab0 AS cor0
----
-1056
-6642
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7181
SELECT DISTINCT - CAST( + 15 AS SIGNED ) * col2 + col2 AS col2 FROM tab0 AS cor0
----
-1148
-14
-462

skipif mysql # not compatible
query I rowsort label-7181
SELECT DISTINCT - CAST ( + 15 AS INTEGER ) * col2 + col2 AS col2 FROM tab0 AS cor0
----
-1148
-14
-462

query I rowsort
SELECT ALL + col2 * + col0 + + col0 - cor0.col2 AS col2 FROM tab0 cor0
----
69
7305
783

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 20 + col1 col1 FROM tab0 AS cor0
----
66
71
77

query I rowsort
SELECT DISTINCT + 32 * cor0.col1 + col2 * col0 FROM tab0 AS cor0
----
10210
3139
3544

query I rowsort
SELECT ALL + ( - col1 ) + col2 FROM tab2 AS cor0
----
-33
-4
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 * col1 + cor0.col0 col1 FROM tab2 AS cor0
----
-1264
-210
-4524

query I rowsort
SELECT DISTINCT + + ( + col2 ) * col2 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT DISTINCT 40 + + col0 AS col0 FROM tab1 AS cor0
----
104
120
43

query I rowsort
SELECT DISTINCT 99 AS col2 FROM tab0 cor0
----
99

query I rowsort
SELECT DISTINCT + col2 * + col2 * cor0.col2 AS col1 FROM tab1 AS cor0
----
157464
185193
884736

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 * col2 col1 FROM tab1 cor0
----
1248
1404
570

query I rowsort
SELECT - 51 - cor0.col2 AS col2 FROM tab0 cor0
----
-133
-52
-84

query I rowsort
SELECT + 28 AS col0 FROM tab1
----
28
28
28

query I rowsort
SELECT DISTINCT 84 AS col0 FROM tab2
----
84

query I rowsort
SELECT + ( + col0 ) + col2 * - col2 * col2 AS col2 FROM tab1
----
-157461
-185129
-884656

query I rowsort
SELECT ALL + - col1 + + cor0.col0 * cor0.col2 FROM tab2 AS cor0
----
158
1969
2985

query I rowsort
SELECT DISTINCT + col1 * col2 + col2 * + cor0.col2 * - col0 + cor0.col1 FROM tab1 AS cor0
----
-207356
-7318
-736019

query I rowsort
SELECT DISTINCT + + 57 * col0 AS col1 FROM tab1 AS cor0
----
171
3648
4560

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 42 * col1 col2 FROM tab0 AS cor0
----
-3612
-3822
-4074

onlyif mysql # use DIV operator for integer division
query I rowsort label-7200
SELECT + col0 DIV col1 AS col1 FROM tab1
----
0
6
6

skipif mysql # not compatible
query I rowsort label-7200
SELECT + col0 / col1 AS col1 FROM tab1
----
0
6
6

query I rowsort
SELECT 28 * + 48 FROM tab0
----
1344
1344
1344

query I rowsort
SELECT ( col2 ) * tab0.col0 AS col0 FROM tab0
----
35
7298
792

query I rowsort
SELECT - col0 * - col1 + + col2 FROM tab2
----
1381
244
4628

query I rowsort
SELECT + tab1.col0 FROM tab1, tab1 AS cor0, tab0, tab2 AS cor1
----
81 values hashing to e28bf7f922650ca423ade3642ce0285b

query I rowsort
SELECT - 38 AS col0 FROM tab1 cor0
----
-38
-38
-38

query I rowsort
SELECT DISTINCT - + col1 + col2 * - col1 FROM tab2 AS cor0
----
-1593
-663
-868

onlyif mysql # use DIV operator for integer division
query I rowsort label-7207
SELECT + col1 * col1 DIV col2 FROM tab0 AS cor0
----
100
224
9409

skipif mysql # not compatible
query I rowsort label-7207
SELECT + col1 * col1 / col2 FROM tab0 AS cor0
----
100
224
9409

query I rowsort
SELECT ALL - ( - col2 ) * - cor0.col0 + col1 * + col1 FROM tab2 AS cor0
----
-2713
1453
772

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 95 col0 FROM tab0 AS cor0
----
-95
-95
-95

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7210
SELECT - CAST( + cor0.col1 AS SIGNED ) FROM tab2 AS cor0
----
-17
-31
-59

skipif mysql # not compatible
query I rowsort label-7210
SELECT - CAST ( + cor0.col1 AS INTEGER ) FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT DISTINCT - 30 + col2 * + col2 + - col1 AS col2 FROM tab1 AS cor0
----
2860
3209
9173

query I rowsort
SELECT DISTINCT col2 * - 68 FROM tab1 AS cor0
----
-3672
-3876
-6528

query I rowsort
SELECT + - 66 AS col2 FROM tab0 AS cor0
----
-66
-66
-66

query I rowsort
SELECT ( + tab1.col2 + - col1 ) AS col2 FROM tab1
----
28
47
83

query I rowsort
SELECT ALL 50 + cor0.col0 * + col0 AS col2 FROM tab0 AS cor0
----
1275
626
7971

query I rowsort
SELECT DISTINCT - 89 * + tab0.col1 AS col0 FROM tab0
----
-7654
-8099
-8633

query I rowsort
SELECT ALL 84 * col2 FROM tab2 cor0
----
2184
2268
3192

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + col0 + - col2 col1 FROM tab2 AS cor0
----
1305
190
4576

query I rowsort
SELECT 73 * - col2 FROM tab0 AS cor0
----
-2409
-5986
-73

query I rowsort
SELECT - 67 + + tab0.col0 * + cor0.col0 FROM tab0, tab2 AS cor0, tab1, tab2 AS cor1
----
81 values hashing to d24fc837aad7b95453dacb1b66aff85c

query I rowsort
SELECT + col1 * - col1 + cor0.col0 * 92 AS col2 FROM tab1 AS cor0
----
-400
5788
7191

query I rowsort
SELECT + col0 * + col1 + + col0 AS col2 FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT ALL - col2 * ( + col0 ) AS col2 FROM tab1 AS cor0
----
-162
-3648
-7680

query IIIIII rowsort
SELECT * FROM tab2, tab0 cor0 WHERE NOT ( NULL ) >= NULL
----

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7225
SELECT ALL + col1 + CAST( NULL AS SIGNED ) + + 9 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7225
SELECT ALL + col1 + CAST ( NULL AS INTEGER ) + + 9 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - cor1.col0 AS col0 FROM tab1, tab2 AS cor0, tab1 cor1
----
27 values hashing to 729c1edda9332398299f39cd174ed840

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + col0 col2 FROM tab1 AS cor0
----
29
74
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-7228
SELECT - col1 DIV cor0.col1 + - col1 + col2 * col2 AS col2 FROM tab1 AS cor0
----
2889
3238
9202

skipif mysql # not compatible
query I rowsort label-7228
SELECT - col1 / cor0.col1 + - col1 + col2 * col2 AS col2 FROM tab1 AS cor0
----
2889
3238
9202

query I rowsort
SELECT cor0.col0 * + ( - col0 ) FROM tab2 AS cor0
----
-49
-6084
-6241

onlyif mysql # use DIV operator for integer division
query I rowsort label-7230
SELECT DISTINCT - cor0.col0 * col2 + + col0 DIV ( - col2 ) FROM tab1 AS cor0
----
-162
-3649
-7680

skipif mysql # not compatible
query I rowsort label-7230
SELECT DISTINCT - cor0.col0 * col2 + + col0 / ( - col2 ) FROM tab1 AS cor0
----
-162
-3649
-7680

query I rowsort
SELECT + col2 + - col2 * col0 * col2 AS col0 FROM tab0 AS cor0
----
-26103
-34
-598354

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7232
SELECT DISTINCT CAST( NULL AS SIGNED ) * col0 + + col1 AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7232
SELECT DISTINCT CAST ( NULL AS INTEGER ) * col0 + + col1 AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL + + 41 AS col0 FROM tab0 AS cor0
----
41
41
41

query I rowsort
SELECT - - col1 * - col2 + col2 FROM tab2 AS cor0
----
-1508
-608
-810

query I rowsort
SELECT + col2 * - 0 AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - 62 * 40 + - cor2.col2 FROM tab1, tab1 cor0, tab0 AS cor1, tab2 AS cor2
----
81 values hashing to 7aabbe0e88d7da59247ced6374a8216c

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7237
SELECT - + CAST( ( col2 ) AS SIGNED ) FROM tab0 AS cor0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-7237
SELECT - + CAST ( ( col2 ) AS INTEGER ) FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT DISTINCT 70 + 11 * - col2 FROM tab0
----
-293
-832
59

query I rowsort
SELECT DISTINCT - col2 * col0 + col0 AS col1 FROM tab1
----
-159
-3584
-7600

query I rowsort
SELECT - col1 * + cor0.col2 * - col1 FROM tab2 AS cor0
----
10982
25947
90506

query I rowsort
SELECT col0 * + cor0.col1 * + col2 AS col0 FROM tab2 AS cor0
----
119652
51034
5859

query I rowsort
SELECT ALL 17 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 43298e43365fccb5146ea32003753c92

query I rowsort
SELECT - col1 * ( - col0 * + cor0.col0 ) + - col2 FROM tab0 AS cor0
----
118824
49503
720729

query I rowsort
SELECT ( - col1 * col1 ) AS col2 FROM tab2
----
-289
-3481
-961

query I rowsort
SELECT DISTINCT col2 * - col2 - col1 * col1 AS col1 FROM tab1 AS cor0
----
-3349
-3592
-9385

query I rowsort
SELECT DISTINCT + + 34 * col1 FROM tab1 AS cor0
----
340
442
884

onlyif mysql # use DIV operator for integer division
query I rowsort label-7247
SELECT ALL + ( col2 ) + + col0 DIV 16 + col1 * - CAST( - col2 AS SIGNED ) FROM tab1 AS cor0
----
1349
1458
631

skipif mysql # not compatible
query I rowsort label-7247
SELECT ALL + ( col2 ) + + col0 / 16 + col1 * - CAST ( - col2 AS INTEGER ) FROM tab1 AS cor0
----
1349
1458
631

query I rowsort
SELECT DISTINCT tab0.col1 FROM tab0, tab2, tab1 AS cor0, tab1
----
86
91
97

query I rowsort
SELECT ALL 51 FROM tab0, tab2 AS cor0
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752

onlyif mysql # use DIV operator for integer division
query I rowsort label-7250
SELECT cor0.col2 + col0 - + 7 DIV - col0 AS col2 FROM tab2 AS cor0
----
104
117
35

skipif mysql # not compatible
query I rowsort label-7250
SELECT cor0.col2 + col0 - + 7 / - col0 AS col2 FROM tab2 AS cor0
----
104
117
35

query I rowsort
SELECT ALL - col2 + col2 * + 8 AS col0 FROM tab2
----
182
189
266

query I rowsort
SELECT + col2 + - 29 + + col2 FROM tab0 AS cor0
----
-27
135
37

query I rowsort
SELECT - - col1 + col1 + col1 FROM tab0 cor0
----
258
273
291

query I rowsort
SELECT DISTINCT + col2 * - tab0.col2 * tab0.col2 FROM tab0
----
-1
-35937
-551368

query I rowsort
SELECT + 20 AS col0 FROM tab1
----
20
20
20

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7256
SELECT DISTINCT - col2 * col2 + + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7256
SELECT DISTINCT - col2 * col2 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT tab2.col2 AS col1 FROM tab2, tab0 AS cor0, tab1 cor1
----
26
27
38

query I rowsort
SELECT ALL - 57 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 520dc393896969e02a72ab6c5d92126b

query I rowsort
SELECT DISTINCT ( - 78 ) FROM tab0, tab2 AS cor0
----
-78

query I rowsort
SELECT + col1 * - col2 * + tab0.col1 FROM tab0
----
-244068
-679042
-9409

query I rowsort
SELECT 12 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d4f5a8e032294c3b9342821617800972

query I rowsort
SELECT ALL + ( + tab0.col0 ) AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 + ( col2 ) col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col2 + - 72 FROM tab0 AS cor0
----
-39
-71
10

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7265
SELECT ALL - col1 - CAST( + col1 * cor0.col1 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-7482
-8372
-9506

skipif mysql # not compatible
query I rowsort label-7265
SELECT ALL - col1 - CAST ( + col1 * cor0.col1 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-7482
-8372
-9506

query I rowsort
SELECT - + cor0.col0 + - col0 * col1 AS col0 FROM tab2 AS cor0
----
-1422
-224
-4680

query I rowsort
SELECT col2 * + col2 + + col1 AS col0 FROM tab0 AS cor0
----
1175
6815
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-7268
SELECT DISTINCT + col1 DIV - col0 + + cor0.col0 col0 FROM tab1 AS cor0
----
-5
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7268
SELECT DISTINCT + col1 / - col0 + + cor0.col0 col0 FROM tab1 AS cor0
----
-5
64
80

query I rowsort
SELECT + 69 AS col1 FROM tab2
----
69
69
69

query I rowsort
SELECT ALL + 58 AS col2 FROM tab2
----
58
58
58

query I rowsort
SELECT ALL - + 37 FROM tab0, tab1 AS cor0
----
9 values hashing to ed4644af7729c2425ea6cc3d84c6504f

query I rowsort
SELECT ALL ( cor0.col2 ) * + col0 AS col1 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT - + col2 * col0 - col2 AS col0 FROM tab0 cor0
----
-36
-7380
-825

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT ALL + col0 * - CAST ( + col1 * col2 AS REAL ) + col1 col1 FROM tab1 AS cor0
----
-36470
-4186
-99827

query I rowsort
SELECT ALL + cor0.col1 + col1 + - col1 * col2 AS col2 FROM tab2 AS cor0
----
-1416
-612
-775

query I rowsort
SELECT DISTINCT col2 * ( 57 ) AS col1 FROM tab2 cor0
----
1482
1539
2166

query I rowsort
SELECT DISTINCT - col0 * + 23 FROM tab2 AS cor0
----
-161
-1794
-1817

query I rowsort
SELECT - + col2 * - 77 AS col0 FROM tab1 AS cor0
----
4158
4389
7392

query I rowsort
SELECT + - col0 * + 51 AS col0 FROM tab2 AS cor0
----
-357
-3978
-4029

query I rowsort
SELECT - - col2 + - col2 AS col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-7281
SELECT ALL - col0 + col2 DIV col0 col0 FROM tab2 AS cor0
----
-4
-78
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7281
SELECT ALL - col0 + col2 / col0 col0 FROM tab2 AS cor0
----
-4
-78
-79

query I rowsort
SELECT ALL ( - col1 ) * - 52 * col1 AS col0 FROM tab2
----
15028
181012
49972

query I rowsort
SELECT DISTINCT + col0 + + col0 * - 60 AS col2 FROM tab0 AS cor0
----
-1416
-2065
-5251

query I rowsort
SELECT + col2 + - 32 * - col0 FROM tab2 AS cor0
----
251
2522
2566

query I rowsort
SELECT col1 * + col0 * col2 AS col2 FROM tab1 AS cor0
----
36480
4212
99840

query I rowsort
SELECT ALL + col1 * + 63 AS col2 FROM tab1 AS cor0
----
1638
630
819

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7287
SELECT - cor0.col1 + + cor0.col1 * cor0.col2 * - CAST( col1 AS SIGNED ) AS col1 FROM tab2 cor0
----
-10999
-25978
-90565

skipif mysql # not compatible
query I rowsort label-7287
SELECT - cor0.col1 + + cor0.col1 * cor0.col2 * - CAST ( col1 AS INTEGER ) AS col1 FROM tab2 cor0
----
-10999
-25978
-90565

query I rowsort
SELECT DISTINCT + col1 * col0 - tab1.col1 AS col1 FROM tab1
----
1027
52
630

query I rowsort
SELECT + + col2 * + col2 + + col2 FROM tab0 AS cor0
----
1122
2
6806

query I rowsort
SELECT col1 * - col1 + - col0 FROM tab1 AS cor0
----
-164
-249
-679

query I rowsort
SELECT - tab2.col1 + cor0.col2 * tab2.col2 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 1108a3342f9d5e90082be5afe76dc3f0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7292
SELECT - + CAST( + col2 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-7292
SELECT - + CAST ( + col2 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT ALL - + 22 + - col1 FROM tab1 AS cor0
----
-32
-35
-48

query I rowsort
SELECT DISTINCT + - 83 - col0 * + col2 AS col1 FROM tab1 AS cor0
----
-245
-3731
-7763

query I rowsort
SELECT DISTINCT - 88 * + cor0.col0 FROM tab1 AS cor0
----
-264
-5632
-7040

query I rowsort
SELECT ALL col2 * + 59 * col0 AS col2 FROM tab2
----
11151
119652
177118

query I rowsort
SELECT ALL 12 * - col2 + 19 * col1 FROM tab1 AS cor0
----
-154
-494
-905

query I rowsort
SELECT DISTINCT + ( col2 ) * col0 FROM tab2 cor0
----
189
2028
3002

query I rowsort
SELECT DISTINCT - col1 * - col1 + + col1 * + ( + col0 ) * - 1 + - col2 FROM tab1 AS cor0
----
-597
-967
544

onlyif mysql # use DIV operator for integer division
query I rowsort label-7300
SELECT DISTINCT col2 + - col0 DIV ( 33 * cor0.col1 ) AS col0 FROM tab2 AS cor0
----
26
27
38

skipif mysql # not compatible
query I rowsort label-7300
SELECT DISTINCT col2 + - col0 / ( 33 * cor0.col1 ) AS col0 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT DISTINCT + col0 * - col1 FROM tab1 cor0
----
-1040
-640
-78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 * col2 + col2 + + cor0.col2 col1 FROM tab0 cor0
----
-33
-7134
-726

query I rowsort
SELECT - - 60 - + col0 FROM tab0 AS cor0
----
-29
25
36

query I rowsort
SELECT DISTINCT + col0 + + col0 * 89 FROM tab1 AS cor0
----
270
5760
7200

query I rowsort
SELECT ALL + 52 AS col2 FROM tab0 cor0
----
52
52
52

query I rowsort
SELECT DISTINCT 63 * col0 FROM tab2 AS cor0
----
441
4914
4977

query I rowsort
SELECT + col2 * + col2 * - 37 + col2 FROM tab2 AS cor0
----
-24986
-26946
-53390

query I rowsort
SELECT + - ( - col0 ) - - ( col1 ) FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT 35 + + col0 FROM tab0 AS cor0
----
124
59
70

query I rowsort
SELECT col0 * - cor0.col1 - - col0 FROM tab1 AS cor0
----
-576
-75
-960

query I rowsort
SELECT DISTINCT - + 92 * col0 * - 60 AS col1 FROM tab0 AS cor0
----
132480
193200
491280

query I rowsort
SELECT - col0 + 21 * - col2 AS col2 FROM tab1
----
-1137
-1261
-2096

query I rowsort
SELECT DISTINCT col1 * 36 FROM tab1
----
360
468
936

query I rowsort
SELECT DISTINCT col2 * + cor0.col1 + + ( col1 + col2 ) FROM tab1 AS cor0
----
1357
1484
637

query I rowsort
SELECT DISTINCT - col2 * - cor0.col0 AS col2 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT DISTINCT col2 * col1 + - col2 FROM tab0 AS cor0
----
2805
7380
96

query I rowsort
SELECT 46 AS col2 FROM tab2 AS cor0
----
46
46
46

query I rowsort
SELECT 67 * - col0 AS col0 FROM tab0
----
-1608
-2345
-5963

query I rowsort
SELECT 11 * + col2 FROM tab1
----
1056
594
627

query I rowsort
SELECT ALL 87 + - tab0.col1 AS col1 FROM tab0
----
-10
-4
1

query I rowsort
SELECT DISTINCT cor0.col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
10
13
26

query I rowsort
SELECT DISTINCT + + 98 - - col0 FROM tab1 AS cor0
----
101
162
178

query I rowsort
SELECT DISTINCT 53 AS col1 FROM tab1 AS cor0
----
53

query I rowsort
SELECT DISTINCT 94 AS col2 FROM tab2, tab2 AS cor0
----
94

query I rowsort
SELECT DISTINCT - ( ( col1 ) ) FROM tab2 AS cor0
----
-17
-31
-59

skipif mysql # not compatible
query I rowsort
SELECT + + CAST ( - col0 AS REAL ) + - col0 AS col1 FROM tab0 AS cor0
----
-178
-48
-70

query I rowsort
SELECT col2 * col0 * - col1 FROM tab0 AS cor0
----
-3395
-664118
-68112

query I rowsort
SELECT ALL col0 + - col1 * col1 * + col2 FROM tab0 AS cor0
----
-244044
-678953
-9374

query I rowsort
SELECT ( 98 ) * + col1 FROM tab2 AS cor0
----
1666
3038
5782

query I rowsort
SELECT DISTINCT - ( - col2 ) * col0 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT ALL + cor1.col1 AS col2 FROM tab1, tab2 AS cor0, tab1 AS cor1, tab0 AS cor2
----
81 values hashing to d7d3fabcafbed14f0d6ffd37195c971c

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2, tab0 cor1, tab0 AS cor2
----
972 values hashing to 09b120a8ff13ebafea7af10c2152241b

query I rowsort
SELECT - col2 + + 9 FROM tab2
----
-17
-18
-29

query I rowsort
SELECT ALL + 76 FROM tab2, tab0 cor0
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5

query I rowsort
SELECT ALL + col2 * col1 AS col1 FROM tab2
----
1534
646
837

query I rowsort
SELECT - - cor0.col0 * - 75 AS col0 FROM tab2 AS cor0
----
-525
-5850
-5925

query I rowsort
SELECT ALL + + cor0.col1 * col1 * col0 - col2 FROM tab0 AS cor0
----
177471
329314
736927

onlyif mysql # use DIV operator for integer division
query I rowsort label-7338
SELECT DISTINCT col0 * - col1 + col2 DIV col2 AS col2 FROM tab0 AS cor0
----
-2063
-3394
-8098

skipif mysql # not compatible
query I rowsort label-7338
SELECT DISTINCT col0 * - col1 + col2 / col2 AS col2 FROM tab0 AS cor0
----
-2063
-3394
-8098

query I rowsort
SELECT DISTINCT - 18 AS col2 FROM tab2 AS cor0
----
-18

query I rowsort
SELECT - - cor0.col2 * + ( + 82 ) AS col0 FROM tab0 AS cor0
----
2706
6724
82

query I rowsort
SELECT - cor0.col0 * 3 FROM tab2 AS cor0
----
-21
-234
-237

query I rowsort
SELECT - 67 * col2 AS col2 FROM tab1
----
-3618
-3819
-6432

onlyif mysql # use DIV operator for integer division
query I rowsort label-7343
SELECT tab0.col0 DIV ( + col2 ) + col1 AS col0 FROM tab0
----
132
86
92

skipif mysql # not compatible
query I rowsort label-7343
SELECT tab0.col0 / ( + col2 ) + col1 AS col0 FROM tab0
----
132
86
92

query I rowsort
SELECT DISTINCT - cor0.col2 * - ( - tab2.col2 ) AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to e9c9a5d5cefe83eb1c091d89114ff7df

query I rowsort
SELECT cor0.col2 + cor0.col1 * + col2 FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT DISTINCT col0 * ( + col0 ) FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT DISTINCT - col1 * + col0 AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT DISTINCT + - cor0.col0 * col2 AS col1 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT ALL - + col2 + + 98 FROM tab2 AS cor0
----
60
71
72

query I rowsort
SELECT ALL - col1 * - ( - cor0.col1 ) FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT + 35 * + col2 AS col1 FROM tab1
----
1890
1995
3360

query I rowsort
SELECT ALL + ( 37 ) + col1 AS col1 FROM tab2
----
54
68
96

query I rowsort
SELECT ALL ( 61 ) + + col0 * ( col1 ) AS col2 FROM tab2
----
1404
278
4663

query I rowsort
SELECT - col2 * - ( col0 ) - 24 * col0 FROM tab1 cor0
----
2112
5760
90

query I rowsort
SELECT DISTINCT + col1 + col2 * col1 FROM tab0 cor0
----
194
2924
7553

query I rowsort
SELECT DISTINCT - - 25 + col2 AS col2 FROM tab1 AS cor0
----
121
79
82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7357
SELECT DISTINCT + + CAST( NULL AS SIGNED ) + + cor0.col2 * cor0.col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7357
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) + + cor0.col2 * cor0.col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-7358
SELECT ALL + cor0.col1 DIV col1 col1 FROM tab2 AS cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7358
SELECT ALL + cor0.col1 / col1 col1 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT + + col2 * - 51 + cor0.col1 AS col0 FROM tab1 cor0
----
-2728
-2897
-4883

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor1.col2 col2 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT DISTINCT - - ( + col1 ) + - col1 AS col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT + col1 * + col2 * + ( col0 ) FROM tab1 AS cor0
----
36480
4212
99840

onlyif mysql # use DIV operator for integer division
query I rowsort label-7363
SELECT DISTINCT 29 DIV - col0 AS col2 FROM tab2 AS cor0
----
-4
0

skipif mysql # not compatible
query I rowsort label-7363
SELECT DISTINCT 29 / - col0 AS col2 FROM tab2 AS cor0
----
-4
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 11 col1 FROM tab2 AS cor0
----
-11
-11
-11

query I rowsort
SELECT ALL + ( + col2 ) * col1 AS col2 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT DISTINCT 75 AS col0 FROM tab1 AS cor0
----
75

query I rowsort
SELECT DISTINCT + col0 * + col2 * cor0.col2 AS col2 FROM tab2 AS cor0
----
114076
5103
52728

query I rowsort
SELECT ALL + col1 * + col1 + col1 AS col1 FROM tab2 cor0
----
306
3540
992

query I rowsort
SELECT + tab2.col0 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT ALL - cor0.col1 * + col2 AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT - + col1 * col0 * col1 FROM tab2 cor0
----
-22831
-271518
-6727

query I rowsort
SELECT col1 * - col0 - 49 FROM tab0 AS cor0
----
-2113
-3444
-8148

query I rowsort
SELECT - + col2 * cor0.col0 + col1 FROM tab2 AS cor0
----
-158
-1969
-2985

query I rowsort
SELECT - col2 * col0 + + col1 + col0 AS col1 FROM tab0 AS cor0
----
-682
-7118
97

query I rowsort
SELECT - + col2 * col2 + 53 FROM tab2 cor0
----
-1391
-623
-676

query I rowsort
SELECT + col2 + + col1 * - 37 FROM tab1 AS cor0
----
-313
-385
-908

query I rowsort
SELECT + col2 * cor0.col2 * col2 + - col1 FROM tab1 AS cor0
----
157438
185183
884723

query I rowsort
SELECT + 58 * + col2 AS col1 FROM tab0
----
1914
4756
58

query I rowsort
SELECT DISTINCT 70 AS col2 FROM tab1, tab2, tab0 AS cor0
----
70

query I rowsort
SELECT - col0 * cor0.col2 + - cor0.col1 + + col0 AS col2 FROM tab0 cor0
----
-7300
-854
-97

query I rowsort
SELECT DISTINCT ( col1 ) + + col2 AS col0 FROM tab0
----
119
173
98

query I rowsort
SELECT ( - 88 ) AS col1 FROM tab2 AS cor0
----
-88
-88
-88

query I rowsort
SELECT DISTINCT - + 70 * - 32 AS col2 FROM tab0 cor0
----
2240

query I rowsort
SELECT DISTINCT - ( 89 ) AS col1 FROM tab0 AS cor0
----
-89

query I rowsort
SELECT - - col1 * + col1 + + col1 AS col0 FROM tab2 cor0
----
306
3540
992

query I rowsort
SELECT 58 FROM tab0 cor0
----
58
58
58

query I rowsort
SELECT + col0 * 21 AS col2 FROM tab2 AS cor0
----
147
1638
1659

query I rowsort
SELECT DISTINCT - 44 FROM tab0, tab1 AS cor0
----
-44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + ( + cor0.col1 ) col1 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT DISTINCT - 96 FROM tab2
----
-96

query I rowsort
SELECT DISTINCT + 29 AS col1 FROM tab0, tab2 AS cor0 CROSS JOIN tab1
----
29

query I rowsort
SELECT + - col0 * col0 AS col0 FROM tab2 AS cor0
----
-49
-6084
-6241

onlyif mysql # use DIV operator for integer division
query I rowsort label-7393
SELECT ALL - 59 DIV col0 FROM tab2 AS cor0
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-7393
SELECT ALL - 59 / col0 FROM tab2 AS cor0
----
-8
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 45 col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050

query I rowsort
SELECT col0 * ( - 52 ) AS col2 FROM tab0
----
-1248
-1820
-4628

onlyif mysql # use DIV operator for integer division
query I rowsort label-7396
SELECT tab1.col1 DIV - col2 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7396
SELECT tab1.col1 / - col2 AS col1 FROM tab1
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-7397
SELECT col0 DIV + col2 AS col2 FROM tab0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-7397
SELECT col0 / + col2 AS col2 FROM tab0
----
0
1
35

query I rowsort
SELECT DISTINCT + tab0.col1 * + tab0.col0 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT 84 AS col1 FROM tab2, tab2 cor0
----
84

query I rowsort
SELECT ALL + col0 * - col1 + - col2 FROM tab2 AS cor0
----
-1381
-244
-4628

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7401
SELECT + + CAST( cor0.col1 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-7401
SELECT + + CAST ( cor0.col1 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT - - cor0.col0 * cor0.col0 + col0 - 20 FROM tab2 AS cor0
----
36
6142
6300

query I rowsort
SELECT DISTINCT - tab1.col0 AS col0 FROM tab1, tab1 AS cor0
----
-3
-64
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 - 44 col1 FROM tab2
----
-17
-18
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 - col0 col2 FROM tab2
----
-137
-38
-96

query I rowsort
SELECT - tab0.col2 - + 98 FROM tab0
----
-131
-180
-99

query I rowsort
SELECT ALL col0 + 69 - col2 FROM tab2
----
110
121
49

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab2 cor0 CROSS JOIN tab1, tab1 AS cor1, tab2 AS cor2
----
3645 values hashing to 944e54872ec2718f5c1c2710e1806e36

query I rowsort
SELECT + col2 * 47 AS col0 FROM tab2 cor0
----
1222
1269
1786

query I rowsort
SELECT col0 * 44 FROM tab2
----
308
3432
3476

query I rowsort
SELECT DISTINCT + col1 * - tab2.col1 * tab2.col2 + col1 + tab2.col1 AS col2 FROM tab2
----
-10948
-25885
-90388

onlyif mysql # use DIV operator for integer division
query I rowsort label-7412
SELECT + - 17 DIV ( col0 ) + cor0.col0 * + 52 FROM tab2 cor0
----
362
4056
4108

skipif mysql # not compatible
query I rowsort label-7412
SELECT + - 17 / ( col0 ) + cor0.col0 * + 52 FROM tab2 cor0
----
362
4056
4108

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7413
SELECT + CAST( + 97 AS SIGNED ) + - cor0.col2 FROM tab1 cor0
----
1
40
43

skipif mysql # not compatible
query I rowsort label-7413
SELECT + CAST ( + 97 AS INTEGER ) + - cor0.col2 FROM tab1 cor0
----
1
40
43

query I rowsort
SELECT DISTINCT + 18 AS col0 FROM tab2 cor0
----
18

query I rowsort
SELECT ALL + - col2 * + col2 * col1 AS col1 FROM tab0 AS cor0
----
-611884
-93654
-97

query I rowsort
SELECT col2 * col0 + col2 * + col1 AS col1 FROM tab2 AS cor0
----
1026
3562
3648

query I rowsort
SELECT ALL - + ( + 6 ) AS col1 FROM tab1 AS cor0
----
-6
-6
-6

query I rowsort
SELECT - - 26 * col0 - - col1 FROM tab1 AS cor0
----
104
1674
2093

query I rowsort
SELECT 56 * col1 + - col0 FROM tab1 AS cor0
----
1453
496
648

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( col1 ) col1 FROM tab2 AS cor0
----
17
31
59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7421
SELECT + col2 + col0 * + CAST( col0 AS SIGNED ) FROM tab1 AS cor0
----
4153
63
6496

skipif mysql # not compatible
query I rowsort label-7421
SELECT + col2 + col0 * + CAST ( col0 AS INTEGER ) FROM tab1 AS cor0
----
4153
63
6496

query I rowsort
SELECT DISTINCT - + col0 * 70 * col1 AS col0 FROM tab0 AS cor0
----
-144480
-237650
-566930

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 84 col1 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 02f1688b8610806ca28739b1735f6ae4

query I rowsort
SELECT DISTINCT - 38 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
-38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * 52 + - 40 * - col2 * - cor0.col1 col0 FROM tab2 AS cor0
----
-24956
-31868
-58292

query I rowsort
SELECT ALL + col0 * 66 AS col2 FROM tab0 AS cor0
----
1584
2310
5874

query I rowsort
SELECT DISTINCT - col2 + + 74 AS col0 FROM tab0 AS cor0
----
-8
41
73

onlyif mysql # use DIV operator for integer division
query I rowsort label-7428
SELECT ALL + - col1 DIV 86 + - col1 AS col2 FROM tab0 cor0
----
-87
-92
-98

skipif mysql # not compatible
query I rowsort label-7428
SELECT ALL + - col1 / 86 + - col1 AS col2 FROM tab0 cor0
----
-87
-92
-98

query I rowsort
SELECT ALL + col0 + - 49 AS col2 FROM tab1 AS cor0
----
-46
15
31

query I rowsort
SELECT + ( 66 ) * cor0.col0 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to fff329ee264ac4e62ab5e6867cd6607a

query I rowsort
SELECT ALL + + col1 - ( - cor0.col2 ) * col0 AS col2 FROM tab2 AS cor0
----
2087
220
3019

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + ( - col0 * col0 ) col2 FROM tab1 AS cor0
----
-35
-4106
-6413

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 col0 FROM tab0 cor0
----
24
35
89

query I rowsort
SELECT ALL - + col1 - - cor0.col0 FROM tab0 AS cor0
----
-2
-62
-62

query I rowsort
SELECT + col0 * - 16 FROM tab0 AS cor0
----
-1424
-384
-560

query I rowsort
SELECT ALL col0 + - col1 * + 84 + col0 FROM tab0 cor0
----
-7176
-7466
-8078

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 * + 76 - ( - cor0.col0 + ( cor0.col0 ) ) col0 FROM tab2 AS cor0
----
-1976
-2052
-2888

query I rowsort
SELECT DISTINCT - col2 * 83 + + col2 * col0 FROM tab0 AS cor0
----
-1947
-48
492

query I rowsort
SELECT ALL + + ( + cor0.col0 ) - - col1 AS col1 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT DISTINCT - + 80 AS col2 FROM tab0 cor0
----
-80

query I rowsort
SELECT DISTINCT - 86 + - col1 - + col1 AS col2 FROM tab1 AS cor0
----
-106
-112
-138

query I rowsort
SELECT + col1 * - 3 + - 92 FROM tab0
----
-350
-365
-383

query I rowsort
SELECT ALL + + col2 * cor0.col1 * - col1 + 48 AS col1 FROM tab1 AS cor0
----
-16176
-36456
-5652

query I rowsort
SELECT ALL + 2 FROM tab1, tab2 cor0, tab2 AS cor1
----
27 values hashing to 535345c50a19fdab97ce05d1837b1f09

onlyif mysql # use DIV operator for integer division
query I rowsort label-7445
SELECT ALL - col2 DIV cor0.col2 + - col0 FROM tab1 AS cor0
----
-4
-65
-81

skipif mysql # not compatible
query I rowsort label-7445
SELECT ALL - col2 / cor0.col2 + - col0 FROM tab1 AS cor0
----
-4
-65
-81

query I rowsort
SELECT DISTINCT col0 * - col0 AS col1 FROM tab0 AS cor0
----
-1225
-576
-7921

onlyif mysql # use DIV operator for integer division
query I rowsort label-7447
SELECT DISTINCT - 46 DIV - col2 FROM tab0 AS cor0
----
0
1
46

skipif mysql # not compatible
query I rowsort label-7447
SELECT DISTINCT - 46 / - col2 FROM tab0 AS cor0
----
0
1
46

query I rowsort
SELECT ( - col0 ) * 66 AS col0 FROM tab2 AS cor0
----
-462
-5148
-5214

query I rowsort
SELECT - tab1.col2 AS col2 FROM tab0, tab2 AS cor0 CROSS JOIN tab1, tab2, tab1 AS cor1
----
243 values hashing to 1d38a1a4aacea9827ed2338191291f0e

query I rowsort
SELECT col0 + - col1 - tab0.col2 FROM tab0
----
-63
-84
-95

query I rowsort
SELECT DISTINCT col0 - cor0.col2 * 36 * - col1 AS col0 FROM tab2 AS cor0
----
23335
30139
55302

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 10 * col2 col1 FROM tab0
----
10
330
820

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 56 * col0 + - col2 * 55 col2 FROM tab2
----
-1877
-5798
-6514

query I rowsort
SELECT ALL 3 * col0 FROM tab1
----
192
240
9

query I rowsort
SELECT - - ( col2 ) * ( + col1 ) FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT DISTINCT + + col0 * col1 + + col1 * cor0.col1 AS col1 FROM tab1 cor0
----
1209
740
754

query I rowsort
SELECT ALL - col2 * + col0 - - col2 FROM tab1 cor0
----
-108
-3591
-7584

query I rowsort
SELECT - col2 * - col1 * - cor0.col2 + col0 AS col0 FROM tab2 AS cor0
----
-22592
-24469
-39806

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col2 + col1 * col2 col2 FROM tab1 cor0
----
-3078
-6432
1242

query I rowsort
SELECT DISTINCT - col2 - col0 * col0 AS col1 FROM tab2 cor0
----
-6110
-6279
-76

query I rowsort
SELECT ALL + col0 * cor0.col1 * - col0 FROM tab2 AS cor0
----
-106097
-1519
-358956

query I rowsort
SELECT DISTINCT + - col1 * + col1 + - col1 + + col2 * - col1 FROM tab0 AS cor0
----
-10320
-15834
-9603

query I rowsort
SELECT - + col1 - + col0 * + col0 AS col1 FROM tab1 AS cor0
----
-35
-4106
-6413

query I rowsort
SELECT ALL - col1 * col0 + col2 AS col2 FROM tab1
----
-24
-583
-944

query I rowsort
SELECT ALL col1 AS col1 FROM tab2 WHERE NOT ( NULL ) NOT IN ( col0 * + col1 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL ) > ( NULL )
----

query I rowsort
SELECT ALL + col1 * col1 * + tab0.col2 AS col1 FROM tab0
----
244068
679042
9409

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( cor0.col1 )
----

query I rowsort
SELECT tab1.col2 FROM tab0, tab2 AS cor0 CROSS JOIN tab1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT ALL - tab1.col0 FROM tab2 AS cor0 CROSS JOIN tab1
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0

onlyif mysql # use DIV operator for integer division
query I rowsort label-7471
SELECT col0 DIV col1 + - col1 * col0 FROM tab0
----
-2064
-3395
-8099

skipif mysql # not compatible
query I rowsort label-7471
SELECT col0 / col1 + - col1 * col0 FROM tab0
----
-2064
-3395
-8099

query I rowsort
SELECT DISTINCT - col2 + + col2 * col0 * + tab2.col2 AS col0 FROM tab2
----
114038
5076
52702

query I rowsort
SELECT ALL col2 + - col2 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + + col0 + col1 * - col0 * + cor0.col0 FROM tab0 AS cor0
----
-118790
-49512
-720722

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 * + col2 - - col1 col0 FROM tab0 AS cor0
----
-2752
-7371
0

query I rowsort
SELECT - tab2.col0 * col0 * tab2.col2 AS col1 FROM tab2
----
-1323
-158184
-237158

onlyif mysql # use DIV operator for integer division
query I rowsort label-7477
SELECT col0 - - col0 DIV + col0 col2 FROM tab1
----
4
65
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7477
SELECT col0 - - col0 / + col0 col2 FROM tab1
----
4
65
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + + col0 col0 FROM tab2
----
104
117
34

query I rowsort
SELECT DISTINCT col2 + cor0.col2 * 64 FROM tab0 AS cor0
----
2145
5330
65

query I rowsort
SELECT DISTINCT + ( + col1 ) AS col0 FROM tab2 cor0
----
17
31
59

query I rowsort
SELECT DISTINCT col0 + tab0.col1 AS col0 FROM tab0
----
110
132
180

query I rowsort
SELECT DISTINCT + col1 + tab0.col0 AS col1 FROM tab0
----
110
132
180

query I rowsort
SELECT tab0.col2 + + col0 AS col0 FROM tab0
----
171
36
57

query I rowsort
SELECT DISTINCT - col2 + - col1 * - col1 FROM tab0
----
7363
8199
9408

query I rowsort
SELECT ALL + col1 + tab1.col2 FROM tab1
----
109
67
80

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 * col0 NOT IN ( - col0 )
----

query I rowsort
SELECT ALL 89 * + tab0.col2 * + 34 AS col2 FROM tab0
----
248132
3026
99858

query I rowsort
SELECT - tab1.col1 + - tab1.col2 AS col2 FROM tab1, tab2, tab2 cor0
----
27 values hashing to 17f7899e0948870d43b9e7e157cef513

query I rowsort
SELECT + col2 + - cor0.col0 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT cor0.col0 + col1 * + col1 FROM tab0 AS cor0
----
7420
8370
9444

query I rowsort
SELECT + col1 + tab0.col0 AS col0 FROM tab0
----
110
132
180

query I rowsort
SELECT col2 * col0 - + tab1.col0 AS col2 FROM tab1
----
159
3584
7600

query I rowsort
SELECT ALL tab2.col2 - tab2.col0 * + tab2.col1 AS col0 FROM tab2
----
-1305
-190
-4576

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 - col2 col2 FROM tab2
----
-21
33
4

query I rowsort
SELECT DISTINCT col0 - col0 * + col0 FROM tab0
----
-1190
-552
-7832

query I rowsort
SELECT - col0 FROM tab2 AS cor0 WHERE NOT ( + col0 * col1 ) = NULL
----

query I rowsort
SELECT ALL - col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) >= NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-7498
SELECT col0 DIV - col1 AS col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7498
SELECT col0 / - col1 AS col1 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL col1 - - col1 AS col1 FROM tab1
----
20
26
52

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - col2 * col1 ) NOT IN ( - col2 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

onlyif mysql # use DIV operator for integer division
query I rowsort label-7501
SELECT tab0.col2 + + col1 DIV - col0 + - col0 * + col0 * col1 AS col0 FROM tab0
----
-118826
-49506
-720730

skipif mysql # not compatible
query I rowsort label-7501
SELECT tab0.col2 + + col1 / - col0 + - col0 * + col0 * col1 AS col0 FROM tab0
----
-118826
-49506
-720730

query I rowsort
SELECT DISTINCT tab1.col2 - + col0 * col0 AS col2 FROM tab1
----
-4039
-6304
45

query I rowsort
SELECT DISTINCT col2 + col1 FROM tab1 WHERE NOT ( NULL ) <= col1 * - col2 + col0
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col1 * + col0 BETWEEN NULL AND + col1
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

query I rowsort
SELECT DISTINCT + col1 * + col0 + + tab0.col2 * col0 FROM tab0
----
15397
2856
3430

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL ) NOT BETWEEN NULL AND col1 * + col2
----

query I rowsort
SELECT ALL + col0 + - col0 * + col1 FROM tab0
----
-2040
-3360
-8010

query I rowsort
SELECT cor0.col1 * - cor0.col0 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT + - ( - col0 ) * 99 FROM tab0 AS cor0
----
2376
3465
8811

query I rowsort
SELECT DISTINCT - + 15 * - cor0.col1 AS col1 FROM tab1 cor0
----
150
195
390

onlyif mysql # use DIV operator for integer division
query I rowsort label-7511
SELECT ALL 93 * col0 + - 93 - 63 DIV + col1 FROM tab1 AS cor0
----
184
5853
7343

skipif mysql # not compatible
query I rowsort label-7511
SELECT ALL 93 * col0 + - 93 - 63 / + col1 FROM tab1 AS cor0
----
184
5853
7343

query I rowsort
SELECT 34 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039

query I rowsort
SELECT ALL col1 + col0 + col1 AS col1 FROM tab0 AS cor0
----
196
229
271

query I rowsort
SELECT 84 * col0 AS col0 FROM tab0
----
2016
2940
7476

query I rowsort
SELECT ( tab1.col1 ) + ( col1 ) - tab1.col0 * col2 AS col0 FROM tab1
----
-110
-3628
-7654

onlyif mysql # use DIV operator for integer division
query I rowsort label-7516
SELECT DISTINCT + col2 DIV col0 - - 54 FROM tab1
----
54
55
72

skipif mysql # not compatible
query I rowsort label-7516
SELECT DISTINCT + col2 / col0 - - 54 FROM tab1
----
54
55
72

query I rowsort
SELECT + col2 + col2 * col0 AS col0 FROM tab1 AS cor0
----
216
3705
7776

query I rowsort
SELECT DISTINCT cor0.col1 * col2 + - col1 * col0 * - col0 FROM tab1 cor0
----
1638
41530
84448

query I rowsort
SELECT DISTINCT col1 * cor0.col1 + - 17 FROM tab2 AS cor0
----
272
3464
944

query I rowsort
SELECT tab2.col2 + + col2 * tab2.col1 AS col1 FROM tab2
----
1560
684
864

onlyif mysql # use DIV operator for integer division
query I rowsort label-7521
SELECT ALL + col0 DIV col0 col1 FROM tab1
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7521
SELECT ALL + col0 / col0 col1 FROM tab1
----
1
1
1

query I rowsort
SELECT DISTINCT - 10 * - col0 AS col0 FROM tab0 AS cor0
----
240
350
890

query I rowsort
SELECT DISTINCT col2 * + col0 * - col2 FROM tab0 AS cor0
----
-26136
-35
-598436

query I rowsort
SELECT + + 64 * ( + col0 ) FROM tab0 AS cor0
----
1536
2240
5696

query I rowsort
SELECT ALL - + cor0.col0 * - 55 AS col2 FROM tab1 cor0
----
165
3520
4400

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 13 * 34 col1 FROM tab1 AS cor0
----
442

query I rowsort
SELECT + - 96 AS col2 FROM tab1 AS cor0
----
-96
-96
-96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7528
SELECT CAST( 66 AS SIGNED ) * col2 col0 FROM tab1 AS cor0
----
3564
3762
6336

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7528
SELECT CAST ( 66 AS INTEGER ) * col2 col0 FROM tab1 AS cor0
----
3564
3762
6336

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + - 63 col1 FROM tab0
----
-145
-64
-96

query I rowsort
SELECT DISTINCT + col1 * + 59 + - 70 FROM tab2
----
1759
3411
933

query I rowsort
SELECT col0 + ( + col1 ) + - col2 AS col0 FROM tab2
----
11
111
58

query I rowsort
SELECT DISTINCT 1 AS col0 FROM tab2, tab1 cor0
----
1

query I rowsort
SELECT DISTINCT - tab0.col0 FROM tab0, tab0 cor0
----
-24
-35
-89

query I rowsort
SELECT + 20 + col2 * + col0 AS col2 FROM tab0 AS cor0
----
55
7318
812

query I rowsort
SELECT - col2 * 89 FROM tab1 AS cor0
----
-4806
-5073
-8544

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7536
SELECT ALL + + CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7536
SELECT ALL + + CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - ( + col1 ) AS col2 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT ( - col1 ) * col1 AS col0 FROM tab2
----
-289
-3481
-961

query I rowsort
SELECT + 91 + + col2 AS col1 FROM tab1
----
145
148
187

query I rowsort
SELECT col0 + - 94 AS col2 FROM tab0
----
-5
-59
-70

query I rowsort
SELECT - tab2.col1 + - 36 * + col0 FROM tab2
----
-283
-2861
-2867

query I rowsort
SELECT ALL - col1 + + col2 + + col2 FROM tab1
----
104
179
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + cor0.col2 * - cor0.col1 * + col2 col1 FROM tab0 AS cor0
----
-611795
-62
-93630

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7544
SELECT DISTINCT + CAST( NULL AS SIGNED ) / - 58 + col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7544
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / - 58 + col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + col2 + + col2 * tab2.col0 AS col1 FROM tab2
----
2054
216
3040

query I rowsort
SELECT ALL + col2 * col2 AS col0 FROM tab0
----
1
1089
6724

query I rowsort
SELECT - ( 68 ) AS col2 FROM tab0
----
-68
-68
-68

query I rowsort
SELECT - col1 + - cor0.col0 AS col1 FROM tab0 AS cor0
----
-110
-132
-180

query I rowsort
SELECT ALL 48 AS col2 FROM tab2 AS cor0
----
48
48
48

onlyif mysql # use DIV operator for integer division
query I rowsort label-7550
SELECT 72 * + col1 DIV col1 FROM tab1 AS cor0
----
72
72
72

skipif mysql # not compatible
query I rowsort label-7550
SELECT 72 * + col1 / col1 FROM tab1 AS cor0
----
72
72
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + col1 col1 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT - - cor0.col2 + - col1 * col0 * col0 AS col2 FROM tab0 AS cor0
----
-118824
-49503
-720729

query I rowsort
SELECT + - col1 + + col0 AS col1 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT ALL - col1 * + col0 AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT - 28 * col1 FROM tab2 AS cor0
----
-1652
-476
-868

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - col1 * + col1 col2 FROM tab0 AS cor0
----
-7372
-8192
-9374

query I rowsort
SELECT - col1 + col0 * col0 AS col0 FROM tab2 cor0
----
18
6025
6224

query I rowsort
SELECT DISTINCT - - col2 + col1 AS col2 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT DISTINCT - 79 + + col0 FROM tab2 AS cor0
----
-1
-72
0

query I rowsort
SELECT ALL + col1 * - cor0.col2 * col1 FROM tab1 AS cor0
----
-16224
-36504
-5700

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 35 * + col2 col1 FROM tab0 cor0
----
1155
2870
35

onlyif mysql # use DIV operator for integer division
query I rowsort label-7562
SELECT ALL + cor0.col2 DIV cor0.col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7562
SELECT ALL + cor0.col2 / cor0.col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + col1 * + col1 + col1 * col1 + cor0.col2 AS col1 FROM tab0 AS cor0
----
14825
16644
18819

query I rowsort
SELECT col1 * 56 - col2 * - col0 FROM tab0 AS cor0
----
12394
5467
5608

query I rowsort
SELECT DISTINCT - col0 + - tab2.col2 AS col0 FROM tab2
----
-104
-117
-34

onlyif mysql # use DIV operator for integer division
query I rowsort label-7566
SELECT ALL col1 DIV - col0 + - cor0.col2 FROM tab0 cor0
----
-3
-36
-83

skipif mysql # not compatible
query I rowsort label-7566
SELECT ALL col1 / - col0 + - cor0.col2 FROM tab0 cor0
----
-3
-36
-83

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2, tab2 cor1, tab2 cor2
----
972 values hashing to 163d7732097d78f1cda7f65c2cea5a08

query I rowsort
SELECT tab0.col1 + + col1 + + ( col0 ) * col0 FROM tab0
----
1419
748
8103

query I rowsort
SELECT + 49 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55

onlyif mysql # use DIV operator for integer division
query I rowsort label-7570
SELECT + cor0.col0 - col0 DIV + col0 FROM tab1 AS cor0
----
2
63
79

skipif mysql # not compatible
query I rowsort label-7570
SELECT + cor0.col0 - col0 / + col0 FROM tab1 AS cor0
----
2
63
79

query I rowsort
SELECT col2 + - ( cor0.col1 ) FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT - - cor0.col2 - 37 * - col1 FROM tab2 AS cor0
----
1174
2209
667

query I rowsort
SELECT DISTINCT + col1 * 19 + + col2 AS col2 FROM tab0 AS cor0
----
1667
1811
1844

query I rowsort
SELECT DISTINCT - col2 + + ( + col2 ) FROM tab2 cor0
----
0

query I rowsort
SELECT - col2 + - 13 - cor0.col1 FROM tab1 cor0
----
-122
-80
-93

query I rowsort
SELECT DISTINCT col1 * + 56 + 58 * col1 AS col1 FROM tab2 cor0
----
1938
3534
6726

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7577
SELECT DISTINCT - - col1 * 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-7577
SELECT DISTINCT - - col1 * CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-7578
SELECT ALL + col0 DIV + col1 AS col2 FROM tab1 AS cor0
----
0
6
6

skipif mysql # not compatible
query I rowsort label-7578
SELECT ALL + col0 / + col1 AS col2 FROM tab1 AS cor0
----
0
6
6

query I rowsort
SELECT DISTINCT - 69 AS col1 FROM tab1 AS cor0
----
-69

query I rowsort
SELECT ALL col1 * + col0 * - col0 + + col0 + - col1 * + col2 AS col2 FROM tab2 AS cor0
----
-106664
-2349
-360412

query I rowsort
SELECT - - ( + 35 ) * + col0 FROM tab0 AS cor0
----
1225
3115
840

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + cor0.col1 * 73 col2 FROM tab1 AS cor0
----
1898
730
949

onlyif mysql # use DIV operator for integer division
query I rowsort label-7583
SELECT - - 74 + col2 DIV col2 AS col1 FROM tab0 AS cor0
----
75
75
75

skipif mysql # not compatible
query I rowsort label-7583
SELECT - - 74 + col2 / col2 AS col1 FROM tab0 AS cor0
----
75
75
75

query I rowsort
SELECT DISTINCT 33 FROM tab1 AS cor0
----
33

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7585
SELECT - col0 * CAST( - col2 AS SIGNED ) AS col1 FROM tab1
----
162
3648
7680

skipif mysql # not compatible
query I rowsort label-7585
SELECT - col0 * CAST ( - col2 AS INTEGER ) AS col1 FROM tab1
----
162
3648
7680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7586
SELECT DISTINCT CAST( NULL AS SIGNED ) * - col1 AS col0 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7586
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - col1 AS col0 FROM tab2 cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7587
SELECT DISTINCT col1 / + CAST( NULL AS DECIMAL ) col1 FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7587
SELECT DISTINCT col1 / + CAST ( NULL AS REAL ) col1 FROM tab2
----
NULL

query I rowsort
SELECT ALL col2 * - 60 FROM tab1 AS cor0
----
-3240
-3420
-5760

query I rowsort
SELECT ALL col2 + col1 * + col0 AS col1 FROM tab1
----
1136
132
697

onlyif mysql # use DIV operator for integer division
query I rowsort label-7590
SELECT + - col0 DIV + col2 AS col1 FROM tab0 AS cor0
----
-1
-35
0

skipif mysql # not compatible
query I rowsort label-7590
SELECT + - col0 / + col2 AS col1 FROM tab0 AS cor0
----
-1
-35
0

query I rowsort
SELECT DISTINCT + col1 + col2 + + col2 FROM tab2 AS cor0
----
111
85
93

query I rowsort
SELECT - 8 - ( col0 * col2 + + 84 ) AS col0 FROM tab1 AS cor0
----
-254
-3740
-7772

query I rowsort
SELECT + ( cor0.col2 ) * col2 - - col2 FROM tab2 AS cor0
----
1482
702
756

query I rowsort
SELECT 73 + + cor0.col1 AS col2 FROM tab2 AS cor0
----
104
132
90

query I rowsort
SELECT + - 59 AS col0 FROM tab2 AS cor0
----
-59
-59
-59

onlyif mysql # use DIV operator for integer division
query I rowsort label-7596
SELECT - - col2 DIV - col0 AS col2 FROM tab1 AS cor0
----
-1
-18
0

skipif mysql # not compatible
query I rowsort label-7596
SELECT - - col2 / - col0 AS col2 FROM tab1 AS cor0
----
-1
-18
0

query I rowsort
SELECT ALL - col2 + - col1 * + cor0.col2 FROM tab2 cor0
----
-1560
-684
-864

query I rowsort
SELECT ALL + col1 * - col1 + + col0 * + col2 + + col0 FROM tab2 AS cor0
----
-1375
-765
2792

query I rowsort
SELECT DISTINCT tab0.col1 + + 73 FROM tab0
----
159
164
170

query I rowsort
SELECT 64 FROM tab1 cor0
----
64
64
64

query I rowsort
SELECT - + col1 * col1 + + col0 AS col2 FROM tab0 AS cor0
----
-7372
-8192
-9374

query I rowsort
SELECT DISTINCT 27 FROM tab1
----
27

query I rowsort
SELECT + 61 AS col0 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 8d4dfe649433a599fc4b10830cc7ce55

query I rowsort
SELECT ALL + col2 * col1 * col0 - col0 FROM tab0 AS cor0
----
3360
664029
68088

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7605
SELECT col1 + - CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7605
SELECT col1 + - CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 * + col1 AS col2 FROM tab0
----
-2064
-3395
-8099

query I rowsort
SELECT - cor0.col2 * 22 AS col0 FROM tab1 AS cor0
----
-1188
-1254
-2112

query I rowsort
SELECT tab0.col1 + - ( - col0 + col2 ) FROM tab0
----
131
77
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-7609
SELECT ALL + cor0.col1 DIV cor0.col0 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 245313dc4e9fc19df7ee93651efe9bf2

skipif mysql # not compatible
query I rowsort label-7609
SELECT ALL + cor0.col1 / cor0.col0 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 245313dc4e9fc19df7ee93651efe9bf2

onlyif mysql # use DIV operator for integer division
query I rowsort label-7610
SELECT - 13 * col1 DIV - 76 AS col1 FROM tab2 AS cor0
----
10
2
5

skipif mysql # not compatible
query I rowsort label-7610
SELECT - 13 * col1 / - 76 AS col1 FROM tab2 AS cor0
----
10
2
5

query I rowsort
SELECT + + 87 FROM tab2, tab1, tab1 cor0
----
27 values hashing to 8661ffbd1a72897c495405c53b816e50

onlyif mysql # use DIV operator for integer division
query I rowsort label-7612
SELECT + col1 DIV + tab0.col1 col1 FROM tab0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7612
SELECT + col1 / + tab0.col1 col1 FROM tab0
----
1
1
1

query I rowsort
SELECT + ( col0 ) + + col0 AS col1 FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT col0 * col0 + - 86 * + col0 + cor0.col1 FROM tab2 AS cor0
----
-522
-536
-565

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 8 + + col1 col0 FROM tab0 AS cor0
----
105
94
99

query I rowsort
SELECT 89 + - col0 AS col2 FROM tab1
----
25
86
9

query I rowsort
SELECT - ( - 40 ) AS col1 FROM tab2
----
40
40
40

query I rowsort
SELECT ALL + ( - col0 + + col2 * 23 ) FROM tab1
----
1239
1247
2128

query I rowsort
SELECT 33 * + col1 AS col0 FROM tab0 AS cor0
----
2838
3003
3201

query I rowsort
SELECT ALL + - cor0.col1 + ( col1 ) FROM tab0 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7621
SELECT ALL - CAST( NULL AS SIGNED ) + + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7621
SELECT ALL - CAST ( NULL AS INTEGER ) + + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort
SELECT - - CAST ( col1 AS REAL ) AS col0 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT ALL - 26 FROM tab2 cor0
----
-26
-26
-26

query I rowsort
SELECT DISTINCT + ( - col0 ) + - col1 FROM tab2 AS cor0
----
-137
-38
-96

query I rowsort
SELECT DISTINCT + - col0 * 84 + col1 FROM tab1 AS cor0
----
-226
-5366
-6707

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col2 col2 FROM tab2 AS cor0
----
1444
676
729

onlyif mysql # use DIV operator for integer division
query I rowsort label-7627
SELECT DISTINCT + ( col1 ) * - col2 + + col2 DIV - col0 col0 FROM tab0 AS cor0
----
-2839
-7462
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7627
SELECT DISTINCT + ( col1 ) * - col2 + + col2 / - col0 col0 FROM tab0 AS cor0
----
-2839
-7462
-97

query I rowsort
SELECT ALL - 92 + col0 FROM tab2 AS cor0
----
-13
-14
-85

query I rowsort
SELECT ALL + + col1 * col2 + - col2 * + 46 FROM tab1 AS cor0
----
-1080
-2052
-3168

query I rowsort
SELECT DISTINCT 11 + col0 FROM tab2 cor0
----
18
89
90

query I rowsort
SELECT ALL 66 + col1 * col0 AS col0 FROM tab2 AS cor0
----
1409
283
4668

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 * - col2 + + col0 + cor0.col1 * col0 col0 FROM tab1 AS cor0
----
1274
1485
2368

query I rowsort
SELECT + tab1.col0 + + 49 * - col1 AS col1 FROM tab1
----
-1271
-426
-557

query I rowsort
SELECT col2 * ( + tab2.col2 ) - + 24 FROM tab2
----
1420
652
705

query I rowsort
SELECT DISTINCT - ( 84 ) FROM tab0
----
-84

query I rowsort
SELECT DISTINCT col2 * - col0 * - col2 FROM tab0
----
26136
35
598436

query I rowsort
SELECT + + col1 * + cor0.col2 + + col1 FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT + + col0 * 94 + 64 FROM tab2 AS cor0
----
722
7396
7490

query I rowsort
SELECT + cor0.col1 * - cor0.col1 - cor0.col0 FROM tab2 AS cor0
----
-3559
-368
-968

query I rowsort
SELECT col2 - + 12 FROM tab1 AS cor0
----
42
45
84

query I rowsort
SELECT - + cor0.col2 + ( col2 ) AS col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-7642
SELECT col0 DIV col1 col0 FROM tab1
----
0
6
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7642
SELECT col0 / col1 col0 FROM tab1
----
0
6
6

query I rowsort
SELECT - + col2 * - col0 + 10 FROM tab0 AS cor0
----
45
7308
802

query I rowsort
SELECT col1 + + col2 * - 23 FROM tab2 AS cor0
----
-539
-590
-857

query I rowsort
SELECT DISTINCT - col0 + cor0.col1 FROM tab0 cor0
----
2
62

query I rowsort
SELECT tab1.col1 * - col0 * col0 FROM tab1
----
-234
-40960
-83200

query I rowsort
SELECT 9 * tab0.col1 AS col1 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 74b89488c41a18062094631642fbd640

query I rowsort
SELECT ALL + tab1.col2 + 67 FROM tab1
----
121
124
163

query I rowsort
SELECT ALL + col1 + col2 * col2 FROM tab2 cor0
----
1461
735
760

query I rowsort
SELECT ALL - 94 FROM tab2, tab1 AS cor0
----
9 values hashing to a95bfa539191d3f72f6548147d7efb9e

query I rowsort
SELECT + col2 + - tab1.col2 + 44 AS col1 FROM tab1
----
44
44
44

query I rowsort
SELECT + col1 - tab1.col2 AS col0 FROM tab1
----
-28
-47
-83

query IIIIIIIIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab0, tab2 AS cor1, tab2 AS cor2
----
972 values hashing to a698694a7dac245e42212ff0316bdf45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + tab0.col2 col1 FROM tab0
----
171
36
57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7655
SELECT ALL + CAST( NULL AS SIGNED ) * 86 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7655
SELECT ALL + CAST ( NULL AS INTEGER ) * 86 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7656
SELECT + + CAST( - col1 AS SIGNED ) * + col2 FROM tab1 AS cor0
----
-1248
-1404
-570

skipif mysql # not compatible
query I rowsort label-7656
SELECT + + CAST ( - col1 AS INTEGER ) * + col2 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT ALL + - col2 * - col2 + col2 AS col2 FROM tab0 AS cor0
----
1122
2
6806

query I rowsort
SELECT DISTINCT 37 FROM tab1 cor0
----
37

onlyif mysql # use DIV operator for integer division
query I rowsort label-7659
SELECT + col1 DIV - 87 + + col0 FROM tab0 AS cor0
----
24
34
88

skipif mysql # not compatible
query I rowsort label-7659
SELECT + col1 / - 87 + + col0 FROM tab0 AS cor0
----
24
34
88

query I rowsort
SELECT DISTINCT col2 * - col1 * - tab0.col0 + - col1 FROM tab0
----
3298
664027
68026

query I rowsort
SELECT col1 + + 2 FROM tab0
----
88
93
99

query I rowsort
SELECT - col2 + 5 FROM tab2
----
-21
-22
-33

query I rowsort
SELECT + col2 + tab2.col2 * - ( + col2 ) FROM tab2
----
-1406
-650
-702

query I rowsort
SELECT ( cor0.col2 ) + - cor0.col0 AS col1 FROM tab1 AS cor0
----
-7
16
51

onlyif mysql # use DIV operator for integer division
query I rowsort label-7665
SELECT ALL col1 + - col0 DIV col2 FROM tab0 AS cor0
----
62
86
90

skipif mysql # not compatible
query I rowsort label-7665
SELECT ALL col1 + - col0 / col2 FROM tab0 AS cor0
----
62
86
90

onlyif mysql # use DIV operator for integer division
query I rowsort label-7666
SELECT ALL - - col0 DIV col1 AS col0 FROM tab1 AS cor0
----
0
6
6

skipif mysql # not compatible
query I rowsort label-7666
SELECT ALL - - col0 / col1 AS col0 FROM tab1 AS cor0
----
0
6
6

query I rowsort
SELECT + - 0 * col2 + col1 AS col2 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT DISTINCT + + col0 * col1 AS col0 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT ALL 74 + col0 FROM tab0 AS cor0
----
109
163
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 + col0 col1 FROM tab0 AS cor0
----
171
36
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + col1 + + col2 col1 FROM tab0 AS cor0
----
-7363
-8199
-9408

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 + 10 col2 FROM tab1 AS cor0
----
106
64
67

onlyif mysql # use DIV operator for integer division
query I rowsort label-7673
SELECT DISTINCT + - 7 DIV - 74 - - cor0.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-7673
SELECT DISTINCT + - 7 / - 74 - - cor0.col1 col1 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT + - 59 + 11 FROM tab0 AS cor0
----
-48
-48
-48

query I rowsort
SELECT DISTINCT - cor0.col1 * + col0 + col0 * - col0 AS col2 FROM tab0 AS cor0
----
-16020
-2640
-4620

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 + col0 * col1 * 48 col2 FROM tab2 AS cor0
----
10447
220955
64481

query I rowsort
SELECT 70 AS col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911

query I rowsort
SELECT - - 20 * col0 FROM tab2 AS cor0
----
140
1560
1580

query I rowsort
SELECT col1 + + col1 * col1 * cor0.col0 AS col0 FROM tab1 cor0
----
13533
2054
6410

query I rowsort
SELECT + col1 + + col1 * cor0.col0 FROM tab1 cor0
----
104
1053
650

query I rowsort
SELECT ALL - 73 + - col0 FROM tab2 AS cor0
----
-151
-152
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-7682
SELECT + + col0 DIV + col0 AS col0 FROM tab0 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7682
SELECT + + col0 / + col0 AS col0 FROM tab0 cor0
----
1
1
1

query I rowsort
SELECT DISTINCT + + col1 + - col0 * + col2 FROM tab2 cor0
----
-158
-1969
-2985

query I rowsort
SELECT DISTINCT - cor0.col2 * col0 + 74 FROM tab0 AS cor0
----
-718
-7224
39

query I rowsort
SELECT 37 AS col0 FROM tab2
----
37
37
37

onlyif mysql # use DIV operator for integer division
query I rowsort label-7686
SELECT + 85 DIV cor0.col1 col1 FROM tab0 cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7686
SELECT + 85 / cor0.col1 col1 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT + col2 * + ( - 17 ) + + col2 + + 99 AS col1 FROM tab2 AS cor0
----
-317
-333
-509

query I rowsort
SELECT - cor0.col0 + cor0.col0 - + col0 AS col1 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT DISTINCT - + cor0.col0 * 96 + + cor0.col0 + cor0.col0 * ( cor0.col0 ) FROM tab2 AS cor0
----
-1264
-1326
-616

query I rowsort
SELECT col0 - - 31 AS col0 FROM tab0 AS cor0
----
120
55
66

onlyif mysql # use DIV operator for integer division
query I rowsort label-7691
SELECT DISTINCT + col0 DIV + col1 AS col2 FROM tab2 AS cor0
----
0
1
4

skipif mysql # not compatible
query I rowsort label-7691
SELECT DISTINCT + col0 / + col1 AS col2 FROM tab2 AS cor0
----
0
1
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-7692
SELECT DISTINCT col2 DIV 94 + ( col0 ) + ( + col0 ) AS col1 FROM tab1
----
128
161
6

skipif mysql # not compatible
query I rowsort label-7692
SELECT DISTINCT col2 / 94 + ( col0 ) + ( + col0 ) AS col1 FROM tab1
----
128
161
6

query I rowsort
SELECT ALL col0 + 58 FROM tab1
----
122
138
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + 59 col1 FROM tab2
----
85
86
97

query I rowsort
SELECT - + col0 * + 88 + + col0 * col1 - ( 46 ) FROM tab0 AS cor0
----
-94
221
269

query I rowsort
SELECT DISTINCT - col0 * - 91 FROM tab2 AS cor0
----
637
7098
7189

query I rowsort
SELECT DISTINCT - - col1 * + col1 AS col1 FROM tab0 AS cor0
----
7396
8281
9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-7698
SELECT DISTINCT + - cor0.col0 + - col2 DIV col0 FROM tab0 AS cor0
----
-25
-35
-89

skipif mysql # not compatible
query I rowsort label-7698
SELECT DISTINCT + - cor0.col0 + - col2 / col0 FROM tab0 AS cor0
----
-25
-35
-89

query I rowsort
SELECT - - col0 + - cor0.col2 * - 2 * + col2 FROM tab1 AS cor0
----
18512
5835
6562

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab0 AS cor0, tab1 AS cor1, tab0, tab2 AS cor2
----
3645 values hashing to da83d3eeaeb9e24a3cb14bb7058757dd

query I rowsort
SELECT ALL + col2 * - 16 FROM tab0 AS cor0
----
-1312
-16
-528

query I rowsort
SELECT - - col2 + - 96 - - col2 FROM tab2 AS cor0
----
-20
-42
-44

onlyif mysql # use DIV operator for integer division
query I rowsort label-7703
SELECT - 79 * - tab1.col0 + col2 DIV + col0 AS col2 FROM tab1
----
255
5056
6321

skipif mysql # not compatible
query I rowsort label-7703
SELECT - 79 * - tab1.col0 + col2 / + col0 AS col2 FROM tab1
----
255
5056
6321

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7704
SELECT + ( col1 ) * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7704
SELECT + ( col1 ) * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7705
SELECT col1 * cor0.col0 + CAST( col1 AS SIGNED ) * + col0 FROM tab0 AS cor0
----
16198
4128
6790

skipif mysql # not compatible
query I rowsort label-7705
SELECT col1 * cor0.col0 + CAST ( col1 AS INTEGER ) * + col0 FROM tab0 AS cor0
----
16198
4128
6790

query I rowsort
SELECT ALL + ( tab1.col2 + - col0 * - 69 ) AS col1 FROM tab1
----
261
4473
5616

query I rowsort
SELECT - ( 29 ) FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 56a8aa9e4c5d3c934d1853afeb22653e

onlyif mysql # use DIV operator for integer division
query I rowsort label-7708
SELECT ALL - 70 DIV col1 AS col0 FROM tab1
----
-2
-5
-7

skipif mysql # not compatible
query I rowsort label-7708
SELECT ALL - 70 / col1 AS col0 FROM tab1
----
-2
-5
-7

query I rowsort
SELECT DISTINCT tab1.col0 FROM tab1, tab1 AS cor0, tab1 cor1
----
3
64
80

query I rowsort
SELECT 0 FROM tab2, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT ALL + col2 + col1 * - cor0.col1 AS col1 FROM tab1 cor0
----
-43
-622
-73

query I rowsort
SELECT col2 * 83 AS col1 FROM tab2
----
2158
2241
3154

query I rowsort
SELECT ALL tab0.col2 * col1 * tab0.col2 FROM tab0
----
611884
93654
97

query I rowsort
SELECT + cor1.col0 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870

query I rowsort
SELECT ALL - - col2 * + ( - cor0.col0 ) AS col2 FROM tab1 cor0
----
-162
-3648
-7680

query I rowsort
SELECT + col1 + ( + 7 ) * - col2 AS col0 FROM tab0 AS cor0
----
-145
-483
90

query I rowsort
SELECT DISTINCT col2 + col1 * + col2 FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT - cor0.col2 + - cor0.col2 * - col1 AS col2 FROM tab1 AS cor0
----
1152
1350
513

onlyif mysql # use DIV operator for integer division
query I rowsort label-7719
SELECT ALL col2 DIV ( col2 ) col1 FROM tab0 AS cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7719
SELECT ALL col2 / ( col2 ) col1 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT - - col1 * + 18 + col0 FROM tab0 AS cor0
----
1572
1727
1781

query I rowsort
SELECT col2 * - 31 AS col0 FROM tab0 AS cor0
----
-1023
-2542
-31

query I rowsort
SELECT DISTINCT + col2 * - ( 28 ) FROM tab1 AS cor0
----
-1512
-1596
-2688

query I rowsort
SELECT + col2 * - col2 + - 49 * col0 AS col1 FROM tab2 AS cor0
----
-1072
-4498
-5315

query I rowsort
SELECT col0 * 63 + + col1 AS col1 FROM tab1 AS cor0
----
215
4042
5053

query I rowsort
SELECT + 35 AS col2 FROM tab2, tab0 AS cor0, tab1, tab2 AS cor1
----
81 values hashing to ca814400b6361c20866ff8fe01717430

query I rowsort
SELECT + + cor0.col0 + + 49 FROM tab2, tab1 AS cor0
----
9 values hashing to a1522f87dd9ffdb2963602e616515136

query I rowsort
SELECT ( + col0 ) * col0 * 98 FROM tab1 AS cor0
----
401408
627200
882

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 13 col1 FROM tab2, tab1 cor0, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to d1ee13c6e23ea99b2cf17e8ca7cf45ee

query I rowsort
SELECT col2 * ( - col2 ) + col2 * - 33 FROM tab1 AS cor0
----
-12384
-4698
-5130

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 12 col0 FROM tab0 AS cor0
----
12
12
12

query I rowsort
SELECT - ( col1 ) + col2 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT + - col1 * col1 * cor0.col1 FROM tab1 AS cor0
----
-1000
-17576
-2197

query I rowsort
SELECT + cor0.col2 + 6 FROM tab0 AS cor0
----
39
7
88

query I rowsort
SELECT - ( col1 ) + + col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7735
SELECT ALL - CAST( NULL AS SIGNED ) * col0 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7735
SELECT ALL - CAST ( NULL AS INTEGER ) * col0 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col0 * - col1 + + col2 * + 47 * col0 FROM tab2 AS cor0
----
139751
8666
90714

query I rowsort
SELECT 75 * col0 * + col2 AS col2 FROM tab1 AS cor0
----
12150
273600
576000

query I rowsort
SELECT - ( - col1 ) * - col2 AS col1 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT DISTINCT col1 + col2 * col2 AS col2 FROM tab0 cor0
----
1175
6815
98

query I rowsort
SELECT ALL 17 * col1 + 81 * col2 FROM tab0 cor0
----
1730
4135
8189

query I rowsort
SELECT ALL ( col1 ) * 44 + col1 FROM tab0 AS cor0
----
3870
4095
4365

query I rowsort
SELECT - - col1 * col0 * - col1 AS col1 FROM tab0 AS cor0
----
-177504
-329315
-737009

query I rowsort
SELECT 59 * - col0 FROM tab2 AS cor0
----
-413
-4602
-4661

query I rowsort
SELECT 24 * - col1 * 86 FROM tab0 AS cor0
----
-177504
-187824
-200208

onlyif mysql # use DIV operator for integer division
query I rowsort label-7745
SELECT DISTINCT - 19 DIV - 61 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7745
SELECT DISTINCT - 19 / - 61 AS col2 FROM tab2
----
0

query I rowsort
SELECT ALL 64 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e

query I rowsort
SELECT 46 * 60 * + tab2.col0 AS col0 FROM tab2
----
19320
215280
218040

query I rowsort
SELECT + col1 * + ( + tab1.col1 + - ( + col1 ) ) * col1 FROM tab1
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-7749
SELECT ALL - - 95 DIV cor0.col0 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to d9ed9137bc7261d2f3ae3f09fec3c048

skipif mysql # not compatible
query I rowsort label-7749
SELECT ALL - - 95 / cor0.col0 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to d9ed9137bc7261d2f3ae3f09fec3c048

query I rowsort
SELECT - + col0 + - ( + col0 ) FROM tab2 AS cor0
----
-14
-156
-158

query I rowsort
SELECT col2 - ( + col2 ) AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + cor0.col2 * + ( col0 ) AS col1 FROM tab1 AS cor0
----
162
3648
7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-7753
SELECT + - col2 * 42 DIV col0 - col0 * + col0 FROM tab0 AS cor0
----
-1226
-633
-7959

skipif mysql # not compatible
query I rowsort label-7753
SELECT + - col2 * 42 / col0 - col0 * + col0 FROM tab0 AS cor0
----
-1226
-633
-7959

query I rowsort
SELECT col0 * 48 FROM tab0
----
1152
1680
4272

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab1.col0 * col2 col2 FROM tab1
----
-162
-3648
-7680

query I rowsort
SELECT - - ( + col2 ) - cor0.col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + col2 * col0 + - col2 * ( + 49 ) * - cor0.col1 AS col0 FROM tab0 cor0
----
139854
372936
4788

query I rowsort
SELECT ALL - + 77 + + col0 * + col2 AS col0 FROM tab1 AS cor0
----
3571
7603
85

query I rowsort
SELECT - 55 + + ( + col2 ) AS col0 FROM tab2 AS cor0
----
-17
-28
-29

query I rowsort
SELECT ALL 20 * col1 AS col0 FROM tab0 AS cor0
----
1720
1820
1940

onlyif mysql # use DIV operator for integer division
query I rowsort label-7761
SELECT col1 + col0 + + col1 DIV col0 AS col0 FROM tab2
----
137
42
96

skipif mysql # not compatible
query I rowsort label-7761
SELECT col1 + col0 + + col1 / col0 AS col0 FROM tab2
----
137
42
96

query I rowsort
SELECT - - cor0.col0 + ( - col1 ) AS col2 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT + 20 - col2 AS col0 FROM tab1
----
-34
-37
-76

query I rowsort
SELECT DISTINCT - tab0.col0 + + col1 + 66 * - 0 AS col0 FROM tab0
----
2
62

query I rowsort
SELECT + 79 * col1 AS col2 FROM tab0
----
6794
7189
7663

query I rowsort
SELECT ALL col2 + col2 * col1 + - col2 * + col2 AS col1 FROM tab2
----
-760
135
884

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( + col2 ) + + 17 col2 FROM tab1 AS cor0
----
-37
-40
-79

query I rowsort
SELECT DISTINCT - 70 + col2 + - 83 FROM tab0
----
-120
-152
-71

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7769
SELECT + col0 * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7769
SELECT + col0 * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7770
SELECT ALL - col1 + CAST( 40 AS SIGNED ) * col1 FROM tab1 AS cor0
----
1014
390
507

skipif mysql # not compatible
query I rowsort label-7770
SELECT ALL - col1 + CAST ( 40 AS INTEGER ) * col1 FROM tab1 AS cor0
----
1014
390
507

query I rowsort
SELECT 98 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809

query I rowsort
SELECT - col2 * + ( + col0 ) AS col1 FROM tab1
----
-162
-3648
-7680

query I rowsort
SELECT DISTINCT col1 + + 7 AS col0 FROM tab2 AS cor0
----
24
38
66

onlyif mysql # use DIV operator for integer division
query I rowsort label-7774
SELECT DISTINCT + col0 + 57 DIV - 75 FROM tab1 cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-7774
SELECT DISTINCT + col0 + 57 / - 75 FROM tab1 cor0
----
3
64
80

query I rowsort
SELECT ALL + - col0 * ( - col2 ) * cor0.col0 + + col0 * cor0.col2 + - col0 FROM tab2 cor0
----
1505
160134
240081

query I rowsort
SELECT ALL - cor0.col0 + + col0 * + 35 AS col0 FROM tab1 cor0
----
102
2176
2720

onlyif mysql # use DIV operator for integer division
query I rowsort label-7777
SELECT col2 DIV + col0 AS col2 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7777
SELECT col2 / + col0 AS col2 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort
SELECT + CAST ( col1 AS REAL ) FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT cor0.col0 AS col1 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT DISTINCT ( - col0 ) - - col0 FROM tab2
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-7781
SELECT col0 DIV - 54 AS col2 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-7781
SELECT col0 / - 54 AS col2 FROM tab0
----
-1
0
0

query I rowsort
SELECT ALL ( col2 * + col0 ) - ( - col1 ) FROM tab2
----
2087
220
3019

onlyif mysql # use DIV operator for integer division
query I rowsort label-7783
SELECT + cor0.col0 * col2 DIV + col2 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-7783
SELECT + cor0.col0 * col2 / + col2 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT ALL - col2 + 78 AS col0 FROM tab1 AS cor0
----
-18
21
24

query I rowsort
SELECT ALL + 78 AS col2 FROM tab2 AS cor0
----
78
78
78

query I rowsort
SELECT col0 * + col2 + ( 27 ) * - cor0.col0 - - 23 FROM tab1 AS cor0
----
104
1943
5543

query I rowsort
SELECT ALL + - ( col2 ) + - col1 * col2 FROM tab0 AS cor0
----
-2871
-7544
-98

query I rowsort
SELECT - col2 * col0 + + col1 + + col1 * col2 AS col1 FROM tab2 AS cor0
----
-2339
-435
679

query I rowsort
SELECT DISTINCT - col2 * col0 + col0 + - col2 * col1 * 68 AS col2 FROM tab1 AS cor0
----
-42344
-92464
-95631

query I rowsort
SELECT ALL cor0.col1 + + cor0.col1 * col2 AS col1 FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT - 10 + + col1 FROM tab2 AS cor0
----
21
49
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-7792
SELECT DISTINCT col0 + col0 DIV - cor0.col1 AS col1 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-7792
SELECT DISTINCT col0 + col0 / - cor0.col1 AS col1 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT ALL - ( + col2 ) + + ( col2 ) * - col1 FROM tab1 AS cor0
----
-1344
-1458
-627

query I rowsort
SELECT DISTINCT + 50 * + col1 + 98 FROM tab0 AS cor0
----
4398
4648
4948

onlyif mysql # use DIV operator for integer division
query I rowsort label-7795
SELECT - + 25 DIV col2 FROM tab0 AS cor0
----
-25
0
0

skipif mysql # not compatible
query I rowsort label-7795
SELECT - + 25 / col2 FROM tab0 AS cor0
----
-25
0
0

query I rowsort
SELECT + 39 FROM tab1, tab0 AS cor0
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf

query I rowsort
SELECT DISTINCT col0 * + tab1.col2 FROM tab1
----
162
3648
7680

query I rowsort
SELECT DISTINCT - + ( col1 ) + - ( 13 * col2 ) FROM tab1 AS cor0
----
-1261
-728
-751

skipif mysql # not compatible
query I rowsort
SELECT ALL + + 53 * col2 + - CAST ( + col0 AS REAL ) FROM tab1 AS cor0
----
2859
2957
5008

query I rowsort
SELECT DISTINCT + col2 * + col1 AS col2 FROM tab1 cor0
----
1248
1404
570

query I rowsort
SELECT + - ( + col0 ) + ( + col0 ) * - col1 FROM tab0 AS cor0
----
-2088
-3430
-8188

query I rowsort
SELECT DISTINCT - 42 * col0 - + col1 AS col2 FROM tab2 AS cor0
----
-325
-3335

query I rowsort
SELECT ALL - col1 + + col2 AS col1 FROM tab0 cor0
----
-53
-9
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-7804
SELECT ALL - + col2 DIV col0 + ( col2 + col1 ) FROM tab2 AS cor0
----
55
55
85

skipif mysql # not compatible
query I rowsort label-7804
SELECT ALL - + col2 / col0 + ( col2 + col1 ) FROM tab2 AS cor0
----
55
55
85

query I rowsort
SELECT - col2 - col1 AS col2 FROM tab2 AS cor0
----
-55
-58
-85

query I rowsort
SELECT + + col2 - + col0 AS col2 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT DISTINCT + + col1 * cor0.col2 - - col2 AS col0 FROM tab2 AS cor0
----
1560
684
864

query I rowsort
SELECT - 60 * - col2 FROM tab1
----
3240
3420
5760

query I rowsort
SELECT ALL - col1 + + col1 AS col2 FROM tab1 cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-7810
SELECT ALL + cor0.col0 DIV col2 + - ( col2 ) AS col1 FROM tab0 cor0
----
-33
-81
34

skipif mysql # not compatible
query I rowsort label-7810
SELECT ALL + cor0.col0 / col2 + - ( col2 ) AS col1 FROM tab0 cor0
----
-33
-81
34

query I rowsort
SELECT DISTINCT col1 * - cor0.col2 + cor0.col2 FROM tab2 AS cor0
----
-1508
-608
-810

onlyif mysql # use DIV operator for integer division
query I rowsort label-7812
SELECT + col2 * ( 94 ) DIV - cor0.col1 + col0 * + col2 AS col1 FROM tab1 AS cor0
----
-33
3113
6986

skipif mysql # not compatible
query I rowsort label-7812
SELECT + col2 * ( 94 ) / - cor0.col1 + col0 * + col2 AS col1 FROM tab1 AS cor0
----
-33
3113
6986

query I rowsort
SELECT + - col0 * - 74 AS col2 FROM tab1 AS cor0
----
222
4736
5920

query I rowsort
SELECT DISTINCT - col2 * + col1 + - ( - col0 * col2 ) FROM tab0
----
-164
-2046
-62

query I rowsort
SELECT ALL col2 * col0 + col1 + 75 * - col2 AS col2 FROM tab0
----
-1597
1239
57

query I rowsort
SELECT + cor0.col0 * - col0 * - col0 FROM tab1 AS cor0
----
262144
27
512000

query I rowsort
SELECT + col1 * ( + col2 ) FROM tab2 cor0
----
1534
646
837

query I rowsort
SELECT DISTINCT + - col1 + - cor0.col1 AS col1 FROM tab2 AS cor0
----
-118
-34
-62

query I rowsort
SELECT ALL 58 - ( - cor0.col2 + col2 ) AS col1 FROM tab0 AS cor0
----
58
58
58

query I rowsort
SELECT DISTINCT + 15 + + cor0.col2 FROM tab1 cor0
----
111
69
72

query I rowsort
SELECT ALL - - col2 - - cor0.col0 AS col1 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT ALL col1 + - col0 * - col1 FROM tab2 AS cor0
----
1360
248
4661

query I rowsort
SELECT DISTINCT + 18 * - cor0.col0 FROM tab2 AS cor0
----
-126
-1404
-1422

query I rowsort
SELECT ALL + 89 + tab1.col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 683b4451b3c75bd03b278308f38beae4

onlyif mysql # use DIV operator for integer division
query I rowsort label-7825
SELECT col2 DIV ( col2 ) + + col0 AS col1 FROM tab1
----
4
65
81

skipif mysql # not compatible
query I rowsort label-7825
SELECT col2 / ( col2 ) + + col0 AS col1 FROM tab1
----
4
65
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - col1 col1 FROM tab1
----
-23
54
67

query I rowsort
SELECT - col1 + + ( tab2.col2 ) FROM tab2
----
-33
-4
21

query I rowsort
SELECT col2 + col0 * tab1.col0 FROM tab1
----
4153
63
6496

query I rowsort
SELECT DISTINCT - 65 AS col2 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
-65

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7830
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col0 FROM tab2, tab2 AS cor0 CROSS JOIN tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7830
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0 FROM tab2, tab2 AS cor0 CROSS JOIN tab0
----
NULL

query I rowsort
SELECT DISTINCT - cor0.col2 * - col2 + - col0 AS col0 FROM tab1 AS cor0
----
2913
3185
9136

query I rowsort
SELECT - - 0 * 22 + col1 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT ALL - + col1 * - col2 AS col0 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT DISTINCT + - col0 * 39 + col2 AS col1 FROM tab2 AS cor0
----
-246
-3016
-3043

query I rowsort
SELECT - col1 + - 94 * cor0.col1 FROM tab1 AS cor0
----
-1235
-2470
-950

onlyif mysql # use DIV operator for integer division
query I rowsort label-7836
SELECT DISTINCT - col2 DIV col2 + - col2 * + cor0.col2 FROM tab1 cor0
----
-2917
-3250
-9217

skipif mysql # not compatible
query I rowsort label-7836
SELECT DISTINCT - col2 / col2 + - col2 * + cor0.col2 FROM tab1 cor0
----
-2917
-3250
-9217

query I rowsort
SELECT + col1 * col2 + + cor0.col1 FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT cor0.col1 * + col0 + col0 FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT - cor0.col1 * 80 AS col0 FROM tab2 cor0
----
-1360
-2480
-4720

onlyif mysql # use DIV operator for integer division
query I rowsort label-7840
SELECT col0 DIV + col2 + + col2 AS col1 FROM tab1
----
54
58
96

skipif mysql # not compatible
query I rowsort label-7840
SELECT col0 / + col2 + + col2 AS col1 FROM tab1
----
54
58
96

query I rowsort
SELECT col2 * + 39 + col2 * - col1 FROM tab1 AS cor0
----
1653
2496
702

query I rowsort
SELECT - 32 AS col0 FROM tab1
----
-32
-32
-32

query I rowsort
SELECT ALL - 65 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 744531575c1b6461ed2916d4940e4d23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 34 col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039

query I rowsort
SELECT DISTINCT - col0 * ( col2 ) + col0 FROM tab1 AS cor0
----
-159
-3584
-7600

query I rowsort
SELECT DISTINCT - col1 + 7 FROM tab1 AS cor0
----
-19
-3
-6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7847
SELECT - col2 + CAST( 84 AS SIGNED ) FROM tab1 AS cor0
----
-12
27
30

skipif mysql # not compatible
query I rowsort label-7847
SELECT - col2 + CAST ( 84 AS INTEGER ) FROM tab1 AS cor0
----
-12
27
30

onlyif mysql # use DIV operator for integer division
query I rowsort label-7848
SELECT DISTINCT - cor0.col1 DIV - cor0.col0 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
1
2
3

skipif mysql # not compatible
query I rowsort label-7848
SELECT DISTINCT - cor0.col1 / - cor0.col0 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
1
2
3

query I rowsort
SELECT ALL - 41 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 4ba0c102091f9cbc9fe9439b04584e70

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7850
SELECT - CAST( NULL AS DECIMAL ) * col1 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7850
SELECT - CAST ( NULL AS REAL ) * col1 AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 15 * cor0.col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 72fed7a9098e1b5b0fb7f9a5abdf3ec0

query I rowsort
SELECT + col0 * 51 + - col0 AS col2 FROM tab1
----
150
3200
4000

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7853
SELECT DISTINCT - - CAST( NULL AS SIGNED ) + + 69 * cor0.col1 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7853
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) + + 69 * cor0.col1 AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL - + cor0.col0 * ( cor0.col1 ) AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT DISTINCT - ( 79 ) AS col2 FROM tab0 AS cor0
----
-79

query I rowsort
SELECT ALL - tab0.col0 * + tab0.col2 * - col1 FROM tab0
----
3395
664118
68112

onlyif mysql # use DIV operator for integer division
query I rowsort label-7857
SELECT ALL + - col2 DIV col2 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7857
SELECT ALL + - col2 / col2 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT 76 * col1 AS col0 FROM tab0
----
6536
6916
7372

query I rowsort
SELECT ALL - col1 * + col2 * col0 AS col2 FROM tab1
----
-36480
-4212
-99840

query I rowsort
SELECT ALL - - 43 * 83 FROM tab0, tab1 AS cor0
----
9 values hashing to ecf144bb99b2bed016c101ebba1fab9a

query I rowsort
SELECT + + ( col0 ) FROM tab0 cor0
----
24
35
89

query I rowsort
SELECT DISTINCT - col1 * + col2 + - ( + 56 ) - col2 FROM tab1 cor0
----
-1400
-1514
-683

onlyif mysql # use DIV operator for integer division
query I rowsort label-7863
SELECT ALL col0 DIV + col0 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7863
SELECT ALL col0 / + col0 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT - 68 - + col1 FROM tab1 AS cor0
----
-78
-81
-94

query I rowsort
SELECT DISTINCT 3 * + ( - cor1.col0 ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-21
-234
-237

query I rowsort
SELECT + 13 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

onlyif mysql # use DIV operator for integer division
query I rowsort label-7867
SELECT - - col1 DIV cor0.col0 + + ( - 39 ) FROM tab2 AS cor0
----
-35
-39
-39

skipif mysql # not compatible
query I rowsort label-7867
SELECT - - col1 / cor0.col0 + + ( - 39 ) FROM tab2 AS cor0
----
-35
-39
-39

query I rowsort
SELECT + col0 + + col1 * col0 - 5 * + col0 FROM tab1 AS cor0
----
384
66
720

query I rowsort
SELECT + col1 + + col1 AS col2 FROM tab0 cor0
----
172
182
194

onlyif mysql # use DIV operator for integer division
query I rowsort label-7870
SELECT col0 DIV col1 + col1 + 25 AS col1 FROM tab0
----
111
116
122

skipif mysql # not compatible
query I rowsort label-7870
SELECT col0 / col1 + col1 + 25 AS col1 FROM tab0
----
111
116
122

query I rowsort
SELECT 65 + - col1 - - col2 FROM tab0
----
-31
12
56

query I rowsort
SELECT - col2 + + 52 AS col1 FROM tab0 AS cor0
----
-30
19
51

query I rowsort
SELECT col1 * - cor0.col0 AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT + col0 + 21 * 38 FROM tab2 AS cor0
----
805
876
877

query I rowsort
SELECT ALL + tab0.col1 * - col1 AS col1 FROM tab0
----
-7396
-8281
-9409

query I rowsort
SELECT + + col2 * - col2 * col1 FROM tab0 AS cor0
----
-611884
-93654
-97

query I rowsort
SELECT ALL + cor0.col2 * + col2 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT ALL cor0.col2 * + col1 + col1 AS col2 FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT - col2 + + col0 AS col0 FROM tab2 cor0
----
-20
41
52

query I rowsort
SELECT - 70 AS col1 FROM tab1
----
-70
-70
-70

query I rowsort
SELECT cor0.col0 + - cor0.col1 AS col1 FROM tab1, tab2 cor0
----
9 values hashing to d924577a04b3a692cbbd2348e6f8e88f

query I rowsort
SELECT ALL + cor1.col2 FROM tab1, tab0 cor0, tab0 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT DISTINCT + 84 + cor0.col0 * 53 FROM tab1, tab1 AS cor0
----
243
3476
4324

query I rowsort
SELECT - 42 * + col1 FROM tab1 AS cor0
----
-1092
-420
-546

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 34 * + cor0.col0 col0 FROM tab1, tab1 AS cor0
----
102
2176
2720

query I rowsort
SELECT DISTINCT - col0 * col1 + col0 * + col0 FROM tab2 AS cor0
----
-168
1482
4898

query I rowsort
SELECT + + 20 + cor0.col0 * col0 AS col2 FROM tab2 AS cor0
----
6104
6261
69

query I rowsort
SELECT - 58 AS col1 FROM tab2
----
-58
-58
-58

query I rowsort
SELECT DISTINCT + - col2 * + col1 AS col0 FROM tab1 cor0
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT + - col1 - + col1 AS col0 FROM tab2 AS cor0
----
-118
-34
-62

query I rowsort
SELECT - ( + col2 ) * - col0 - - col2 AS col0 FROM tab2 AS cor0
----
2054
216
3040

query I rowsort
SELECT ALL - + col2 * - col1 AS col2 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT ALL + - 57 FROM tab0 AS cor0
----
-57
-57
-57

onlyif mysql # use DIV operator for integer division
query I rowsort label-7894
SELECT ALL col1 DIV col1 - col0 AS col1 FROM tab1
----
-2
-63
-79

skipif mysql # not compatible
query I rowsort label-7894
SELECT ALL col1 / col1 - col0 AS col1 FROM tab1
----
-2
-63
-79

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0, tab2 cor1, tab0 AS cor2, tab1 AS cor3
----
3645 values hashing to 29937e0f604055b7324ce0c354a5e778

query I rowsort
SELECT ALL 97 FROM tab2, tab0 AS cor0
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7897
SELECT CAST( NULL AS SIGNED ) * col0 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7897
SELECT CAST ( NULL AS INTEGER ) * col0 AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 + + col0 * col2 AS col2 FROM tab1
----
165
3712
7760

query I rowsort
SELECT - ( 89 ) AS col1 FROM tab2
----
-89
-89
-89

query I rowsort
SELECT ALL - + col1 - 21 FROM tab1 AS cor0
----
-31
-34
-47

query I rowsort
SELECT - - ( 13 ) FROM tab1 AS cor0
----
13
13
13

query I rowsort
SELECT DISTINCT - 92 FROM tab1 AS cor0
----
-92

query I rowsort
SELECT - 11 - + 69 FROM tab0 cor0
----
-80
-80
-80

query I rowsort
SELECT DISTINCT + col2 + 51 - col1 FROM tab1 cor0
----
134
79
98

query I rowsort
SELECT DISTINCT + 16 + col0 * tab2.col2 FROM tab2
----
2044
205
3018

query I rowsort
SELECT ALL - cor0.col0 AS col0 FROM tab2, tab1 cor0
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0

query I rowsort
SELECT col1 * - col2 - - ( - col1 + + col2 ) * + col0 * tab0.col1 FROM tab0
----
-112230
-326017
-80353

query I rowsort
SELECT ( col0 ) * - ( col0 ) * + col0 - - 5 AS col0 FROM tab2
----
-338
-474547
-493034

query I rowsort
SELECT DISTINCT + 71 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
71

query I rowsort
SELECT DISTINCT - 26 AS col1 FROM tab2
----
-26

query I rowsort
SELECT - 74 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 5a477330c946251f814fbbfd08e77c28

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7912
SELECT 44 + + col2 * - CAST( - col1 AS SIGNED ) FROM tab0
----
141
2882
7506

skipif mysql # not compatible
query I rowsort label-7912
SELECT 44 + + col2 * - CAST ( - col1 AS INTEGER ) FROM tab0
----
141
2882
7506

query I rowsort
SELECT DISTINCT + - col2 * + ( col1 ) FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT col1 * + 19 FROM tab0 AS cor0
----
1634
1729
1843

query I rowsort
SELECT ALL col2 + + col0 AS col0 FROM tab1 cor0
----
121
176
57

query I rowsort
SELECT DISTINCT col1 * - col1 AS col2 FROM tab1
----
-100
-169
-676

query I rowsort
SELECT + col0 + + col2 AS col0 FROM tab2
----
104
117
34

query I rowsort
SELECT 84 FROM tab2, tab1 cor0
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 col2 FROM tab0 cor0 CROSS JOIN tab1, tab1 AS cor1, tab2 cor2
----
81 values hashing to 2304fcc140e955eb2d1ee28ab1eea994

onlyif mysql # use DIV operator for integer division
query I rowsort label-7920
SELECT + col0 + ( col1 ) DIV col0 AS col1 FROM tab1 AS cor0
----
11
64
80

skipif mysql # not compatible
query I rowsort label-7920
SELECT + col0 + ( col1 ) / col0 AS col1 FROM tab1 AS cor0
----
11
64
80

query I rowsort
SELECT ALL + + col1 * 69 AS col2 FROM tab2 AS cor0
----
1173
2139
4071

query I rowsort
SELECT DISTINCT - + col0 * - 61 AS col2 FROM tab2 AS cor0
----
427
4758
4819

query I rowsort
SELECT DISTINCT + cor0.col0 + ( - col1 ) FROM tab1 cor0
----
-23
54
67

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7924
SELECT - col1 * CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7924
SELECT - col1 * CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + col0 * + col2 AS col2 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT DISTINCT cor0.col2 + cor0.col1 + - col2 AS col2 FROM tab0 AS cor0
----
86
91
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-7927
SELECT col2 DIV ( ( col2 ) ) + + ( - col2 ) FROM tab0
----
-32
-81
0

skipif mysql # not compatible
query I rowsort label-7927
SELECT col2 / ( ( col2 ) ) + + ( - col2 ) FROM tab0
----
-32
-81
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-7928
SELECT ALL col0 DIV + col0 AS col1 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7928
SELECT ALL col0 / + col0 AS col1 FROM tab0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 col2 FROM tab1 cor0
----
54
57
96

query I rowsort
SELECT ALL - - col2 + - 27 FROM tab2 AS cor0
----
-1
0
11

query I rowsort
SELECT ALL col1 + col1 * + 51 AS col2 FROM tab1 AS cor0
----
1352
520
676

query I rowsort
SELECT ALL - - col0 + + col0 * 28 * col2 FROM tab1 AS cor0
----
102208
215120
4539

query I rowsort
SELECT ALL col2 * + 18 AS col0 FROM tab0 AS cor0
----
1476
18
594

onlyif mysql # use DIV operator for integer division
query I rowsort label-7934
SELECT - col2 * 49 DIV + col1 FROM tab2 AS cor0
----
-109
-21
-42

skipif mysql # not compatible
query I rowsort label-7934
SELECT - col2 * 49 / + col1 FROM tab2 AS cor0
----
-109
-21
-42

query I rowsort
SELECT ALL - cor0.col2 * 91 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 1460cdb0bd371aad5dabc421276bed00

query I rowsort
SELECT DISTINCT + ( + col0 ) * col0 + - 81 + - col2 FROM tab2 AS cor0
----
-59
5977
6122

onlyif mysql # use DIV operator for integer division
query I rowsort label-7937
SELECT + 49 + + col1 DIV cor0.col1 AS col1 FROM tab1 AS cor0
----
50
50
50

skipif mysql # not compatible
query I rowsort label-7937
SELECT + 49 + + col1 / cor0.col1 AS col1 FROM tab1 AS cor0
----
50
50
50

query I rowsort
SELECT DISTINCT + 8 + col2 * col0 FROM tab0 cor0
----
43
7306
800

query I rowsort
SELECT ALL + col0 + + 1 AS col1 FROM tab0 AS cor0
----
25
36
90

onlyif mysql # use DIV operator for integer division
query I rowsort label-7940
SELECT - col0 * col2 DIV col0 FROM tab0 AS cor0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-7940
SELECT - col0 * col2 / col0 FROM tab0 AS cor0
----
-1
-33
-82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7941
SELECT ALL - - CAST( NULL AS DECIMAL ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7941
SELECT ALL - - CAST ( NULL AS REAL ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 + + col1 * - 72 FROM tab0
----
-6278
-6643
-7081

query I rowsort
SELECT col1 * + col2 + + 2 * cor0.col2 AS col1 FROM tab2 cor0
----
1586
722
891

query I rowsort
SELECT ALL col0 * col1 - 40 * cor0.col1 FROM tab2 AS cor0
----
-1023
2242
663

query I rowsort
SELECT - - cor0.col1 + col1 * - 93 AS col1 FROM tab1 AS cor0
----
-1196
-2392
-920

query I rowsort
SELECT DISTINCT + - col0 * col0 * col1 + + col1 FROM tab1 cor0
----
-208
-40950
-83187

query I rowsort
SELECT DISTINCT + - 69 + col2 FROM tab2 AS cor0
----
-31
-42
-43

query I rowsort
SELECT ALL - + 30 - - col0 AS col1 FROM tab2 AS cor0
----
-23
48
49

onlyif mysql # use DIV operator for integer division
query I rowsort label-7949
SELECT ALL 31 DIV - cor0.col1 AS col0 FROM tab2 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-7949
SELECT ALL 31 / - cor0.col1 AS col0 FROM tab2 AS cor0
----
-1
-1
0

query I rowsort
SELECT DISTINCT ( col0 ) - cor0.col0 * col2 AS col2 FROM tab1 cor0
----
-159
-3584
-7600

query I rowsort
SELECT ALL + 42 + col2 * col0 FROM tab2 AS cor0
----
2070
231
3044

query I rowsort
SELECT - ( col2 ) * col2 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT DISTINCT col0 * + col2 + cor0.col1 FROM tab2 AS cor0
----
2087
220
3019

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7954
SELECT DISTINCT - 41 + - col1 / CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7954
SELECT DISTINCT - 41 + - col1 / CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + - 93 - - cor0.col2 FROM tab1 cor0
----
-36
-39
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 + - cor0.col2 col1 FROM tab0 AS cor0
----
-171
-36
-57

query I rowsort
SELECT DISTINCT + - cor0.col2 * cor0.col0 * + col0 + + col1 AS col2 FROM tab0 AS cor0
----
-1128
-18922
-649431

query I rowsort
SELECT ALL col0 + + cor0.col2 + + 61 AS col0 FROM tab1 AS cor0
----
118
182
237

onlyif mysql # use DIV operator for integer division
query I rowsort label-7959
SELECT DISTINCT + col1 DIV 99 + col2 * col1 col0 FROM tab1
----
1248
1404
570

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7959
SELECT DISTINCT + col1 / 99 + col2 * col1 col0 FROM tab1
----
1248
1404
570

query I rowsort
SELECT DISTINCT + col0 + - cor0.col0 + col0 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT DISTINCT + col1 + + cor0.col1 FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT ALL - 11 + col2 * - col0 AS col2 FROM tab1 AS cor0
----
-173
-3659
-7691

query I rowsort
SELECT ALL + col0 + - cor0.col2 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT ALL 37 * col1 AS col2 FROM tab2 cor0
----
1147
2183
629

query I rowsort
SELECT col0 * + col0 + - col0 FROM tab0 AS cor0
----
1190
552
7832

query I rowsort
SELECT DISTINCT col1 * - tab0.col0 AS col0 FROM tab0
----
-2064
-3395
-8099

query I rowsort
SELECT + + ( col1 ) + + 69 - - col0 * + cor0.col2 FROM tab1 AS cor0
----
257
3727
7762

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7968
SELECT + - CAST( NULL AS DECIMAL ) FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-7968
SELECT + - CAST ( NULL AS REAL ) FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT - col0 * - ( col2 ) * - col1 FROM tab1 AS cor0
----
-36480
-4212
-99840

query I rowsort
SELECT + col2 + - 31 * - col1 * cor0.col2 + + col1 FROM tab1 AS cor0
----
17737
38797
43604

onlyif mysql # use DIV operator for integer division
query I rowsort label-7971
SELECT col0 DIV 75 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7971
SELECT col0 / 75 FROM tab1 AS cor0
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - col2 * ( col2 * col2 + col2 ) col2 FROM tab1
----
10741194
85819392
8660520

onlyif mysql # use DIV operator for integer division
query I rowsort label-7973
SELECT - col1 * col1 DIV + col0 + col0 FROM tab0 AS cor0
----
-233
-284
-4

skipif mysql # not compatible
query I rowsort label-7973
SELECT - col1 * col1 / + col0 + col0 FROM tab0 AS cor0
----
-233
-284
-4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 * + col1 col2 FROM tab1 AS cor0
----
-1040
-640
-78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * col2 + + ( col0 * - col0 ) col2 FROM tab2 cor0
----
-4797
-5408
680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + 27 col0 FROM tab1 AS cor0
----
107
30
91

query I rowsort
SELECT ALL + col0 * cor0.col2 * + col2 AS col2 FROM tab0 AS cor0
----
26136
35
598436

query I rowsort
SELECT - col0 * - col0 + 61 AS col1 FROM tab1
----
4157
6461
70

query I rowsort
SELECT + ( 51 ) FROM tab0 AS cor0
----
51
51
51

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7980
SELECT ALL CAST( 27 AS SIGNED ) + + col0 * col1 * - 69 AS col1 FROM tab2 AS cor0
----
-14946
-317511
-92640

skipif mysql # not compatible
query I rowsort label-7980
SELECT ALL CAST ( 27 AS INTEGER ) + + col0 * col1 * - 69 AS col1 FROM tab2 AS cor0
----
-14946
-317511
-92640

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7981
SELECT + - CAST( col0 AS SIGNED ) * col1 FROM tab0 AS cor0
----
-2064
-3395
-8099

skipif mysql # not compatible
query I rowsort label-7981
SELECT + - CAST ( col0 AS INTEGER ) * col1 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT DISTINCT - - 80 FROM tab0 cor0
----
80

query I rowsort
SELECT ( - cor0.col2 ) * col2 AS col0 FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT + 5 AS col0 FROM tab0 AS cor0
----
5
5
5

query I rowsort
SELECT - col1 + 82 * + col1 FROM tab2
----
1377
2511
4779

query I rowsort
SELECT col0 * tab0.col1 + + col2 * col2 AS col2 FROM tab0
----
14823
3153
3396

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 77 col2 FROM tab0 AS cor0
----
-77
-77
-77

query I rowsort
SELECT cor0.col1 * 96 FROM tab2 AS cor0
----
1632
2976
5664

query I rowsort
SELECT + tab1.col0 * + ( tab1.col2 ) AS col2 FROM tab1
----
162
3648
7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-7990
SELECT DISTINCT tab2.col2 * col2 DIV - col0 FROM tab2
----
-104
-18
-8

skipif mysql # not compatible
query I rowsort label-7990
SELECT DISTINCT tab2.col2 * col2 / - col0 FROM tab2
----
-104
-18
-8

query I rowsort
SELECT DISTINCT ( + tab2.col1 ) AS col1 FROM tab2
----
17
31
59

query I rowsort
SELECT ALL col0 * + col0 - 48 FROM tab0 AS cor0
----
1177
528
7873

query I rowsort
SELECT ALL col1 + cor0.col1 AS col1 FROM tab2 AS cor0
----
118
34
62

query I rowsort
SELECT ALL ( - col2 ) AS col1 FROM tab1 cor0
----
-54
-57
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-7995
SELECT DISTINCT - - 95 DIV + col0 + + cor0.col1 * - 21 FROM tab2 AS cor0
----
-1238
-356
-638

skipif mysql # not compatible
query I rowsort label-7995
SELECT DISTINCT - - 95 / + col0 + + cor0.col1 * - 21 FROM tab2 AS cor0
----
-1238
-356
-638

query I rowsort
SELECT ALL + ( col0 ) * - col0 FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT DISTINCT - cor0.col2 * col2 + 86 FROM tab0 AS cor0
----
-1003
-6638
85

query I rowsort
SELECT + 18 + - col2 * ( - ( + col2 ) ) FROM tab2 cor0
----
1462
694
747

query I rowsort
SELECT DISTINCT 24 - col2 FROM tab1
----
-30
-33
-72

query I rowsort
SELECT - 15 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 1172c9a62bdad7db0def9205c06ee1f2

query I rowsort
SELECT - 32 * col1 + 83 AS col1 FROM tab1 AS cor0
----
-237
-333
-749

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - + col0 * col1 col1 FROM tab2 cor0
----
-1326
-186
-4543

query I rowsort
SELECT DISTINCT + tab0.col1 * - tab0.col1 AS col2 FROM tab0
----
-7396
-8281
-9409

query I rowsort
SELECT col0 * + col0 * col2 AS col2 FROM tab2 AS cor0
----
1323
158184
237158

query I rowsort
SELECT - col1 * 25 FROM tab0
----
-2150
-2275
-2425

query I rowsort
SELECT + col1 + cor0.col2 * - 14 FROM tab0 AS cor0
----
-1057
-376
83

query I rowsort
SELECT col0 * + 48 * 59 FROM tab2 AS cor0
----
19824
220896
223728

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 87 col0 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 8661ffbd1a72897c495405c53b816e50

query I rowsort
SELECT - + 45 * col0 AS col0 FROM tab1 AS cor0
----
-135
-2880
-3600

query I rowsort
SELECT col1 * tab0.col1 - + col0 FROM tab0
----
7372
8192
9374

query I rowsort
SELECT DISTINCT - 45 + + col0 - + cor0.col2 FROM tab0 AS cor0
----
-11
-38
-54

query I rowsort
SELECT + - ( + col2 ) * + col1 AS col0 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT ALL - + cor0.col1 * - col2 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT DISTINCT - col1 + ( + cor0.col0 + + cor0.col0 * + 35 ) FROM tab0 AS cor0
----
1163
3113
778

query I rowsort
SELECT ALL + col2 * + 78 AS col0 FROM tab0 cor0
----
2574
6396
78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8016
SELECT DISTINCT + col0 * + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8016
SELECT DISTINCT + col0 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - + col1 + - 12 FROM tab1 AS cor0
----
-22
-25
-38

query I rowsort
SELECT + col1 * + 82 FROM tab1 AS cor0
----
1066
2132
820

query I rowsort
SELECT col2 + ( + 77 ) * col2 FROM tab0 AS cor0
----
2574
6396
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-8020
SELECT DISTINCT - - col1 + + col1 * - col2 DIV + col2 AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8020
SELECT DISTINCT - - col1 + + col1 * - col2 / + col2 AS col0 FROM tab0 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 + - 58 col2 FROM tab2 AS cor0
----
-20
-31
-32

query I rowsort
SELECT ALL col1 * col2 + - col1 AS col0 FROM tab0 AS cor0
----
0
2752
7371

query I rowsort
SELECT DISTINCT col0 + ( + col0 + - col2 ) * 91 FROM tab0 AS cor0
----
-795
3129
726

query I rowsort
SELECT ALL + col2 - - col2 AS col2 FROM tab1 AS cor0
----
108
114
192

query I rowsort
SELECT ALL + col2 + + 15 * - ( - cor0.col0 ) FROM tab0 AS cor0
----
1417
393
526

onlyif mysql # use DIV operator for integer division
query I rowsort label-8026
SELECT DISTINCT + col2 DIV + col2 AS col0 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8026
SELECT DISTINCT + col2 / + col2 AS col0 FROM tab1 AS cor0
----
1

query I rowsort
SELECT DISTINCT - col1 + cor0.col2 FROM tab2 cor0
----
-33
-4
21

onlyif mysql # use DIV operator for integer division
query I rowsort label-8028
SELECT - col1 + - col2 DIV col0 - col1 AS col2 FROM tab1 AS cor0
----
-20
-27
-70

skipif mysql # not compatible
query I rowsort label-8028
SELECT - col1 + - col2 / col0 - col1 AS col2 FROM tab1 AS cor0
----
-20
-27
-70

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab0 AS cor2, tab2 AS cor3
----
3645 values hashing to fcae6e4467f798ac88c869b8e38c6b23

query I rowsort
SELECT col0 + tab1.col2 * tab1.col1 AS col1 FROM tab1
----
1328
1407
634

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + 23 ) col1 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 546d49aa433406dd83ea19885588e658

query I rowsort
SELECT ALL - + cor0.col1 + + col0 FROM tab0 AS cor0
----
-2
-62
-62

query I rowsort
SELECT DISTINCT + col0 * - col0 + - col1 FROM tab0 AS cor0
----
-1322
-662
-8012

query I rowsort
SELECT cor0.col2 + + cor0.col2 FROM tab0, tab0 AS cor0
----
9 values hashing to e5ee086d16e1b2450d3f7ac8d26a0f7b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 col0 FROM tab0 cor0
----
24
35
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 + col1 col0 FROM tab0 AS cor0
----
2
62
62

query I rowsort
SELECT DISTINCT col0 + - col0 * col1 * - tab2.col0 + - col0 * - col0 FROM tab2
----
112417
1575
365118

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col2 / col2 + - col2 >= NULL
----

query I rowsort
SELECT ALL col2 + + col0 + + col2 FROM tab0
----
253
37
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + col2 + col2 col0 FROM tab1
----
124
134
205

query I rowsort
SELECT - col1 * col2 + - col2 FROM tab1
----
-1344
-1458
-627

query I rowsort
SELECT col1 + + col0 AS col0 FROM tab1 WHERE ( col2 * + col2 + col2 ) NOT IN ( + col0 * tab1.col1 )
----
29
74
93

query I rowsort
SELECT DISTINCT + col0 * tab0.col1 AS col0 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT ALL + col2 * tab2.col1 * - col0 FROM tab2
----
-119652
-51034
-5859

query I rowsort
SELECT DISTINCT col0 * col1 + 39 FROM tab2 AS cor0
----
1382
256
4641

query I rowsort
SELECT col1 - tab1.col0 FROM tab1
----
-54
-67
23

query I rowsort
SELECT + col0 FROM tab2 WHERE NOT ( + col0 ) NOT IN ( col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab2.col2 col0 FROM tab2
----
-26
-27
-38

query I rowsort
SELECT ALL - 76 AS col1 FROM tab1
----
-76
-76
-76

query I rowsort
SELECT - col2 + col2 * 75 FROM tab0
----
2442
6068
74

query I rowsort
SELECT DISTINCT + 9 AS col2 FROM tab1, tab0, tab1 AS cor0
----
9

query I rowsort
SELECT ALL 51 AS col2 FROM tab0
----
51
51
51

query I rowsort
SELECT col1 - tab0.col2 FROM tab0
----
53
9
96

query I rowsort
SELECT DISTINCT - 96 * - col2 AS col0 FROM tab0 cor0
----
3168
7872
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-8055
SELECT DISTINCT - + col2 DIV col0 FROM tab1 AS cor0
----
-1
-18
0

skipif mysql # not compatible
query I rowsort label-8055
SELECT DISTINCT - + col2 / col0 FROM tab1 AS cor0
----
-1
-18
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 78 - + col2 col1 FROM tab0
----
-4
45
77

query I rowsort
SELECT DISTINCT 74 AS col1 FROM tab2
----
74

query I rowsort
SELECT + 5 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 6797d40099023779b89feb627d94a3e7

query I rowsort
SELECT ALL + tab1.col0 + col2 AS col1 FROM tab1
----
121
176
57

query I rowsort
SELECT - tab1.col0 FROM tab1, tab0 cor0
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0

query I rowsort
SELECT 9 FROM tab0, tab2 AS cor0
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b

query I rowsort
SELECT + 78 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4

query I rowsort
SELECT + - col2 + + 48 * + ( col2 * col1 ) FROM tab1 cor0
----
27303
59808
67338

query I rowsort
SELECT - 80 FROM tab0, tab0 cor0
----
9 values hashing to 4dde3bd5652d30396b9cadd0e2cfb680

query I rowsort
SELECT DISTINCT - col1 * - col2 * 67 AS col2 FROM tab0 AS cor0
----
190146
499954
6499

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + + 67 col1 FROM tab0 AS cor0
----
102
156
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - 90 col0 FROM tab2 AS cor0
----
630
7020
7110

query I rowsort
SELECT ALL + 10 + 61 FROM tab2
----
71
71
71

onlyif mysql # use DIV operator for integer division
query I rowsort label-8069
SELECT + 17 DIV col0 FROM tab1
----
0
0
5

skipif mysql # not compatible
query I rowsort label-8069
SELECT + 17 / col0 FROM tab1
----
0
0
5

query I rowsort
SELECT DISTINCT - tab2.col0 + col2 + col2 FROM tab2
----
-26
-3
47

query I rowsort
SELECT - 2 * + col2 AS col0 FROM tab1
----
-108
-114
-192

query I rowsort
SELECT ALL col0 + - col2 * + col0 + + col0 * col1 FROM tab0
----
1296
3395
890

query I rowsort
SELECT DISTINCT + col1 + ( + col0 ) + 23 AS col1 FROM tab0
----
133
155
203

query I rowsort
SELECT - - 14 * col2 - cor0.col2 FROM tab2 AS cor0
----
338
351
494

query I rowsort
SELECT 38 * + ( - cor0.col2 ) AS col0 FROM tab1, tab0 cor0, tab1 AS cor1, tab2 AS cor2
----
81 values hashing to c57942902c6cf6a039c5ccfcb33f599d

query I rowsort
SELECT ALL + col2 * - ( - col2 ) AS col1 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT + 11 FROM tab0, tab2, tab2 cor0
----
27 values hashing to 69116737f3f57e2e3273f6dbb04d036c

query I rowsort
SELECT DISTINCT + 37 + col0 AS col2 FROM tab2
----
115
116
44

query I rowsort
SELECT ALL + ( - col2 ) * + col0 + - cor0.col2 AS col0 FROM tab1 AS cor0
----
-216
-3705
-7776

query I rowsort
SELECT - + 81 * col2 FROM tab1 AS cor0
----
-4374
-4617
-7776

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + CAST ( - 22 AS REAL ) col0 FROM tab0 AS cor0
----
-22

onlyif mysql # use DIV operator for integer division
query I rowsort label-8082
SELECT - col2 * col1 + - ( + col1 ) DIV col2 AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570

skipif mysql # not compatible
query I rowsort label-8082
SELECT - col2 * col1 + - ( + col1 ) / col2 AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570

onlyif mysql # use DIV operator for integer division
query I rowsort label-8083
SELECT DISTINCT col2 DIV + col1 AS col0 FROM tab2 cor0
----
0
2

skipif mysql # not compatible
query I rowsort label-8083
SELECT DISTINCT col2 / + col1 AS col0 FROM tab2 cor0
----
0
2

query I rowsort
SELECT - col1 + + cor0.col0 FROM tab0 cor0
----
-2
-62
-62

query I rowsort
SELECT ALL + 87 * col2 FROM tab2 cor0
----
2262
2349
3306

onlyif mysql # use DIV operator for integer division
query I rowsort label-8086
SELECT - col2 + + col1 DIV - col2 FROM tab1 AS cor0
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-8086
SELECT - col2 + + col1 / - col2 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT ALL cor0.col1 + col1 FROM tab2 AS cor0
----
118
34
62

query I rowsort
SELECT - - col0 + col2 * - col2 AS col2 FROM tab2 AS cor0
----
-1365
-598
-722

query I rowsort
SELECT DISTINCT - 78 * cor0.col2 AS col2 FROM tab1 AS cor0
----
-4212
-4446
-7488

query I rowsort
SELECT ALL + 66 AS col0 FROM tab2 AS cor0
----
66
66
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 + + col2 * - ( cor0.col0 ) col1 FROM tab1 AS cor0
----
-136
-3638
-7667

onlyif mysql # use DIV operator for integer division
query I rowsort label-8092
SELECT cor0.col2 DIV cor0.col0 + cor0.col2 * - col1 FROM tab2 AS cor0
----
-1534
-646
-834

skipif mysql # not compatible
query I rowsort label-8092
SELECT cor0.col2 / cor0.col0 + cor0.col2 * - col1 FROM tab2 AS cor0
----
-1534
-646
-834

query I rowsort
SELECT DISTINCT col0 + col0 * - tab1.col0 FROM tab1
----
-4032
-6
-6320

query I rowsort
SELECT - 12 * + col2 + col2 FROM tab2
----
-286
-297
-418

query I rowsort
SELECT DISTINCT - 47 + col2 * cor0.col1 FROM tab1 AS cor0
----
1201
1357
523

query I rowsort
SELECT - col2 * + col0 + col1 * - col0 AS col0 FROM tab1 cor0
----
-240
-4288
-8720

query I rowsort
SELECT - 18 * cor0.col0 + col2 FROM tab1 AS cor0
----
-1095
-1344
0

query I rowsort
SELECT + ( col1 ) * + col2 - + col1 * col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-8099
SELECT DISTINCT - tab2.col2 DIV 37 AS col2 FROM tab2
----
-1
0

skipif mysql # not compatible
query I rowsort label-8099
SELECT DISTINCT - tab2.col2 / 37 AS col2 FROM tab2
----
-1
0

query I rowsort
SELECT DISTINCT col2 + col1 * col1 * - col2 FROM tab1 AS cor0
----
-16128
-36450
-5643

query I rowsort
SELECT - cor0.col2 * + cor0.col0 AS col1 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT + 6 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to f1e8f0199f3714ee8fcc24ce0cc3ea04

query I rowsort
SELECT col1 + + col1 * cor0.col2 FROM tab1 AS cor0
----
1261
1430
580

onlyif mysql # use DIV operator for integer division
query I rowsort label-8104
SELECT - 47 + col0 - - col2 DIV + CAST( - col1 AS SIGNED ) FROM tab1 AS cor0
----
-46
12
26

skipif mysql # not compatible
query I rowsort label-8104
SELECT - 47 + col0 - - col2 / + CAST ( - col1 AS INTEGER ) FROM tab1 AS cor0
----
-46
12
26

query I rowsort
SELECT 5 * ( cor0.col1 ) + - col2 * + col2 + col2 AS col0 FROM tab2 AS cor0
----
-1321
-355
-547

query I rowsort
SELECT + 29 * - 59 + - col1 * col1 - - cor0.col0 FROM tab2 AS cor0
----
-1921
-2665
-5114

query I rowsort
SELECT - ( + col2 ) + + col0 * + col2 FROM tab0 AS cor0
----
34
7216
759

query I rowsort
SELECT ALL col0 * + col1 + col2 AS col0 FROM tab2
----
1381
244
4628

query I rowsort
SELECT + cor0.col1 * ( col2 ) - ( - col0 + col2 ) FROM tab1 AS cor0
----
1232
1353
577

query I rowsort
SELECT DISTINCT - 51 + col2 FROM tab1 AS cor0
----
3
45
6

query I rowsort
SELECT DISTINCT ( 86 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 32 * + col2 col2 FROM tab1 AS cor0
----
1728
1824
3072

query I rowsort
SELECT DISTINCT - col0 * col2 + - ( - 84 ) AS col1 FROM tab0 cor0
----
-708
-7214
49

query I rowsort
SELECT ALL + col0 * + col0 * 1 + col0 FROM tab2 AS cor0
----
56
6162
6320

query I rowsort
SELECT - + 34 AS col1 FROM tab0 AS cor0
----
-34
-34
-34

query I rowsort
SELECT 71 AS col2 FROM tab1 AS cor0
----
71
71
71

query I rowsort
SELECT - 24 + - cor0.col2 AS col2 FROM tab1 AS cor0
----
-120
-78
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 38 + cor0.col2 * col0 col1 FROM tab2 AS cor0
----
151
1990
2964

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - 7 col2 FROM tab0 AS cor0
----
-168
-245
-623

query I rowsort
SELECT + + col1 + cor0.col0 * - col1 AS col2 FROM tab1 AS cor0
----
-1027
-52
-630

query I rowsort
SELECT DISTINCT - ( 76 ) * - cor0.col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
6536
6916
7372

query I rowsort
SELECT col2 * - 71 AS col0 FROM tab0 AS cor0
----
-2343
-5822
-71

query I rowsort
SELECT DISTINCT - 18 AS col2 FROM tab2
----
-18

query I rowsort
SELECT ALL + col1 * - col0 + 38 * col1 AS col0 FROM tab0 AS cor0
----
-4641
1204
291

query I rowsort
SELECT DISTINCT col2 * - ( col2 ) + col1 AS col0 FROM tab1 AS cor0
----
-2890
-3239
-9203

query I rowsort
SELECT DISTINCT col2 - - 58 * + cor0.col1 FROM tab0 AS cor0
----
5021
5360
5627

query I rowsort
SELECT - - cor0.col1 * + col0 AS col0 FROM tab2 cor0
----
1343
217
4602

query I rowsort
SELECT DISTINCT - col2 * - col1 + col2 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT DISTINCT col1 * + 25 * ( cor0.col1 ) AS col2 FROM tab2 AS cor0
----
24025
7225
87025

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 + cor0.col2 * - 96 col1 FROM tab0 AS cor0
----
-3135
-7790
-95

query I rowsort
SELECT DISTINCT + col1 + 65 FROM tab2 AS cor0
----
124
82
96

query I rowsort
SELECT - + cor0.col1 * col2 AS col0 FROM tab2 AS cor0
----
-1534
-646
-837

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8133
SELECT - CAST( NULL AS SIGNED ) col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8133
SELECT - CAST ( NULL AS INTEGER ) col2 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 1 + - 9 AS col2 FROM tab1 AS cor0
----
-8
-8
-8

query I rowsort
SELECT ALL + 23 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2

query I rowsort
SELECT 14 * 36 FROM tab1 cor0
----
504
504
504

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8137
SELECT DISTINCT - - CAST( NULL AS SIGNED ) * - col2 + col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8137
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) * - col2 + col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8138
SELECT + col0 * CAST( - col1 AS SIGNED ) - + col0 FROM tab1
----
-1120
-704
-81

skipif mysql # not compatible
query I rowsort label-8138
SELECT + col0 * CAST ( - col1 AS INTEGER ) - + col0 FROM tab1
----
-1120
-704
-81

query I rowsort
SELECT + + col2 + + col1 * cor0.col0 FROM tab1 AS cor0
----
1136
132
697

query I rowsort
SELECT 3 * + col2 FROM tab2 AS cor0
----
114
78
81

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8141
SELECT ALL CAST( NULL AS SIGNED ) FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-8141
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT 86 * tab2.col2 FROM tab2
----
2236
2322
3268

query I rowsort
SELECT - 18 AS col2 FROM tab1
----
-18
-18
-18

query I rowsort
SELECT - 77 FROM tab1, tab1 AS cor0, tab1 cor1
----
27 values hashing to c7e5f48ecd3843d54a76808ed1f43ff6

query I rowsort
SELECT DISTINCT + 74 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 17 + col0 col2 FROM tab1 AS cor0
----
20
81
97

query I rowsort
SELECT 69 AS col2 FROM tab1 AS cor0
----
69
69
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 36 * - col2 col1 FROM tab0 AS cor0
----
1188
2952
36

query I rowsort
SELECT - ( col0 ) + - col0 + - col0 FROM tab1 AS cor0
----
-192
-240
-9

query I rowsort
SELECT ALL + col1 + col0 AS col2 FROM tab1 cor0
----
29
74
93

query I rowsort
SELECT + 57 + + 39 + + col0 FROM tab0 AS cor0
----
120
131
185

query I rowsort
SELECT ALL - 64 * 33 * cor0.col0 AS col1 FROM tab1 AS cor0
----
-135168
-168960
-6336

query I rowsort
SELECT DISTINCT 32 + - 90 FROM tab2 AS cor0
----
-58

query I rowsort
SELECT ALL + ( cor0.col1 ) * col2 + ( - 11 + - col2 ) AS col2 FROM tab0 cor0
----
2794
7369
85

query I rowsort
SELECT 26 * col2 + - col0 FROM tab1 AS cor0
----
1401
1418
2416

query I rowsort
SELECT ALL 1 + + col1 * col0 * - col1 AS col0 FROM tab0 AS cor0
----
-177503
-329314
-737008

query I rowsort
SELECT ALL 21 * col1 FROM tab0 AS cor0
----
1806
1911
2037

query I rowsort
SELECT ALL + ( + col1 ) * cor0.col2 * - col2 FROM tab0 AS cor0
----
-611884
-93654
-97

query I rowsort
SELECT ALL - + col1 * - col2 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT ALL - col1 * col2 + col2 AS col1 FROM tab2 AS cor0
----
-1508
-608
-810

query I rowsort
SELECT - col1 + + col0 * - ( - col1 ) * col2 FROM tab1 cor0
----
36470
4186
99827

query I rowsort
SELECT ALL - ( - cor0.col1 ) AS col1 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT DISTINCT col2 * col0 * + 61 FROM tab1 AS cor0
----
222528
468480
9882

query I rowsort
SELECT DISTINCT + + 65 AS col2 FROM tab1 AS cor0
----
65

query I rowsort
SELECT DISTINCT + col2 + + col1 * 47 * col2 FROM tab2 cor0
----
30400
39366
72124

query I rowsort
SELECT ALL + col0 * - col0 - + 54 * + col0 AS col2 FROM tab0 AS cor0
----
-12727
-1872
-3115

query I rowsort
SELECT DISTINCT - + cor0.col2 + col2 AS col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT + col2 + - ( + col2 ) FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - + col1 * 58 AS col0 FROM tab1 AS cor0
----
-1508
-580
-754

query I rowsort
SELECT + - cor0.col1 - col1 FROM tab0 AS cor0
----
-172
-182
-194

query I rowsort
SELECT col2 + tab0.col1 AS col2 FROM tab0
----
119
173
98

query I rowsort
SELECT col1 * - ( + 39 ) FROM tab0
----
-3354
-3549
-3783

query I rowsort
SELECT + - cor0.col1 * - col0 FROM tab1 AS cor0
----
1040
640
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + ( + col2 ) col2 FROM tab2 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + 49 col0 FROM tab1 AS cor0
----
113
129
52

query I rowsort
SELECT ALL - + col1 * + ( - col1 * col1 + + 58 * 59 ) FROM tab1 AS cor0
----
-33220
-42289
-71396

query I rowsort
SELECT DISTINCT + - col0 * + col0 * - ( - col0 + + col0 ) FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL + 52 + col1 FROM tab2 AS cor0
----
111
69
83

query I rowsort
SELECT col0 * ( - col0 ) AS col0 FROM tab1
----
-4096
-6400
-9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8180
SELECT DISTINCT + col0 * ( 77 ) * - col0 + CAST( - 32 AS SIGNED ) AS col1 FROM tab0
----
-44384
-609949
-94357

skipif mysql # not compatible
query I rowsort label-8180
SELECT DISTINCT + col0 * ( 77 ) * - col0 + CAST ( - 32 AS INTEGER ) AS col1 FROM tab0
----
-44384
-609949
-94357

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + col2 ) * + col1 col0 FROM tab0 cor0
----
2838
7462
97

query I rowsort
SELECT + col2 * cor0.col1 + col1 + - col1 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT - - col2 * + 78 + col2 * 76 + - ( col2 ) AS col0 FROM tab0 AS cor0
----
12546
153
5049

query I rowsort
SELECT DISTINCT + col2 + 87 + - col2 AS col0 FROM tab2 AS cor0
----
87

query I rowsort
SELECT ALL 2 * col1 FROM tab1 AS cor0
----
20
26
52

query I rowsort
SELECT col2 + col2 * col2 FROM tab1 AS cor0
----
2970
3306
9312

query I rowsort
SELECT DISTINCT - - col0 * cor0.col0 AS col0 FROM tab0 AS cor0
----
1225
576
7921

onlyif mysql # use DIV operator for integer division
query I rowsort label-8188
SELECT - tab2.col1 DIV col1 + - 45 AS col1 FROM tab2
----
-46
-46
-46

skipif mysql # not compatible
query I rowsort label-8188
SELECT - tab2.col1 / col1 + - 45 AS col1 FROM tab2
----
-46
-46
-46

query I rowsort
SELECT ALL col1 + col1 * - col2 AS col2 FROM tab1
----
-1235
-1378
-560

query I rowsort
SELECT ALL col1 * - col1 + - col0 FROM tab2
----
-3559
-368
-968

query I rowsort
SELECT + + 73 + - col0 AS col0 FROM tab2 AS cor0
----
-5
-6
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + cor0.col0 * 54 col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 037126adb74a9ed505b6073f6507d657

query I rowsort
SELECT ALL + 20 * + 58 FROM tab2 AS cor0
----
1160
1160
1160

query I rowsort
SELECT DISTINCT col2 + 43 AS col1 FROM tab1
----
100
139
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8195
SELECT col1 + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8195
SELECT col1 + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab0 AS cor2
----
972 values hashing to 04d825fa29899c3ee2704c26a542267d

query I rowsort
SELECT - + cor0.col1 FROM tab2, tab2 AS cor0
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5

query I rowsort
SELECT - cor0.col0 + + col1 AS col1 FROM tab0 AS cor0
----
2
62
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 34 col1 FROM tab1
----
34

query I rowsort
SELECT + col1 * - col1 * col0 AS col0 FROM tab2
----
-22831
-271518
-6727

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8201
SELECT DISTINCT CAST( + 90 AS SIGNED ) FROM tab2
----
90

skipif mysql # not compatible
query I rowsort label-8201
SELECT DISTINCT CAST ( + 90 AS INTEGER ) FROM tab2
----
90

query I rowsort
SELECT ALL 92 + - tab1.col1 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 1d5cc1a1fea364cb9097a84072c30e40

query I rowsort
SELECT + - col1 + - cor0.col1 * + cor0.col0 FROM tab2 AS cor0
----
-1360
-248
-4661

query I rowsort
SELECT - col0 * - 45 * - tab2.col0 + + ( + tab2.col1 ) AS col0 FROM tab2
----
-2174
-273721
-280828

query I rowsort
SELECT DISTINCT + - 98 FROM tab2 AS cor0
----
-98

query I rowsort
SELECT DISTINCT 74 AS col1 FROM tab0 cor0
----
74

onlyif mysql # use DIV operator for integer division
query I rowsort label-8207
SELECT + col2 + col2 DIV - col1 AS col2 FROM tab2 AS cor0
----
26
27
36

skipif mysql # not compatible
query I rowsort label-8207
SELECT + col2 + col2 / - col1 AS col2 FROM tab2 AS cor0
----
26
27
36

query I rowsort
SELECT - col1 * 45 * tab0.col2 FROM tab0
----
-127710
-335790
-4365

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 82 * col1 col1 FROM tab0
----
-7052
-7462
-7954

query I rowsort
SELECT DISTINCT + tab2.col2 * col2 FROM tab2
----
1444
676
729

query I rowsort
SELECT - tab1.col0 * 41 AS col0 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 5798c641aee4e31e8713cfd0094972e0

query I rowsort
SELECT - col2 * + col0 + col1 AS col1 FROM tab0
----
-706
-7207
62

query I rowsort
SELECT DISTINCT + 6 AS col2 FROM tab0
----
6

onlyif mysql # use DIV operator for integer division
query I rowsort label-8214
SELECT + col1 - col0 DIV + col1 AS col2 FROM tab2
----
13
31
58

skipif mysql # not compatible
query I rowsort label-8214
SELECT + col1 - col0 / + col1 AS col2 FROM tab2
----
13
31
58

query I rowsort
SELECT + cor0.col0 * 55 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 6be1b8c1696f971d9450ab3d191e63e7

query I rowsort
SELECT ALL - col1 + + tab2.col1 * col0 FROM tab2
----
1326
186
4543

onlyif mysql # use DIV operator for integer division
query I rowsort label-8217
SELECT ALL + col2 DIV - col0 AS col1 FROM tab0 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8217
SELECT ALL + col2 / - col0 AS col1 FROM tab0 cor0
----
-1
0
0

query I rowsort
SELECT DISTINCT - - col2 + + col1 * col2 * col1 AS col0 FROM tab1 AS cor0
----
16320
36558
5757

query I rowsort
SELECT - tab0.col1 + tab0.col1 + 90 AS col1 FROM tab0
----
90
90
90

query I rowsort
SELECT col0 * 92 FROM tab2
----
644
7176
7268

query I rowsort
SELECT ALL + - col1 + - 52 * cor0.col2 FROM tab2 AS cor0
----
-1411
-1435
-1993

query I rowsort
SELECT ALL col0 * 17 - - col0 AS col0 FROM tab2 AS cor0
----
126
1404
1422

query I rowsort
SELECT DISTINCT - col0 + + cor0.col2 FROM tab1 cor0
----
-7
16
51

query I rowsort
SELECT ALL - + col2 * cor0.col0 + 61 AS col1 FROM tab1 AS cor0
----
-101
-3587
-7619

query I rowsort
SELECT ALL - col1 - - col1 AS col1 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT ALL + + col2 * - ( - 78 ) + + col2 FROM tab2 AS cor0
----
2054
2133
3002

query I rowsort
SELECT ALL col1 + - 90 FROM tab2 cor0
----
-31
-59
-73

query I rowsort
SELECT col2 + 2 * - 30 AS col0 FROM tab1 AS cor0
----
-3
-6
36

query I rowsort
SELECT ALL col1 * 98 FROM tab0 AS cor0
----
8428
8918
9506

query I rowsort
SELECT ALL - + col0 * 87 + col1 FROM tab2 AS cor0
----
-578
-6727
-6856

query I rowsort
SELECT DISTINCT cor0.col0 * col1 + - col2 AS col0 FROM tab1 AS cor0
----
24
583
944

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + col0 * 46 - 81 col0 FROM tab2 cor0
----
211611
61697
9901

query I rowsort
SELECT col2 + cor0.col0 * col2 FROM tab0 cor0
----
36
7380
825

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 18 col0 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 903ac227935c1532300db45a8537c595

query I rowsort
SELECT - 67 * - col2 + ( col0 ) AS col0 FROM tab0
----
102
2235
5583

query I rowsort
SELECT DISTINCT ( col2 * - col0 + col1 ) FROM tab2
----
-158
-1969
-2985

query I rowsort
SELECT ALL col2 * col0 * tab2.col0 FROM tab2
----
1323
158184
237158

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8238
SELECT col1 * CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8238
SELECT col1 * CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 * ( col2 ) + + 93 FROM tab1 AS cor0
----
-3555
-69
-7587

query I rowsort
SELECT DISTINCT + col2 * ( 21 ) AS col2 FROM tab0
----
1722
21
693

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8241
SELECT + CAST( NULL AS SIGNED ) FROM tab2, tab1 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-8241
SELECT + CAST ( NULL AS INTEGER ) FROM tab2, tab1 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT - tab0.col2 * + ( + col2 ) AS col1 FROM tab0
----
-1
-1089
-6724

query I rowsort
SELECT ALL - - cor1.col1 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

query I rowsort
SELECT + 94 FROM tab2
----
94
94
94

onlyif mysql # use DIV operator for integer division
query I rowsort label-8245
SELECT - col0 + - col0 DIV - col0 FROM tab2 AS cor0
----
-6
-77
-78

skipif mysql # not compatible
query I rowsort label-8245
SELECT - col0 + - col0 / - col0 FROM tab2 AS cor0
----
-6
-77
-78

query I rowsort
SELECT - col0 * 55 AS col0 FROM tab2 AS cor0
----
-385
-4290
-4345

query I rowsort
SELECT col1 * 94 AS col2 FROM tab0 cor0
----
8084
8554
9118

query I rowsort
SELECT DISTINCT col2 * 6 + + col1 FROM tab0
----
103
284
583

query I rowsort
SELECT ALL + cor0.col0 * 66 FROM tab1, tab0 AS cor0
----
9 values hashing to fff329ee264ac4e62ab5e6867cd6607a

query I rowsort
SELECT DISTINCT + 77 FROM tab1, tab2 AS cor0
----
77

query I rowsort
SELECT DISTINCT - 63 * col2 + tab2.col1 AS col0 FROM tab2
----
-1579
-1670
-2377

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + - col2 col1 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT col2 * col0 + col1 FROM tab1 cor0
----
188
3658
7693

query I rowsort
SELECT ALL + + 8 AS col0 FROM tab2 AS cor0
----
8
8
8

query I rowsort
SELECT DISTINCT cor0.col2 * col1 AS col2 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT - + col2 * + cor0.col1 AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT + col1 * + col2 - col1 * - col1 FROM tab1 AS cor0
----
1417
2080
670

query I rowsort
SELECT ALL - 66 AS col0 FROM tab2 AS cor0
----
-66
-66
-66

query I rowsort
SELECT - tab2.col2 + 63 FROM tab2, tab0, tab0 cor0
----
27 values hashing to bb6ff6807487fc7c7dac10ac985a52a4

query I rowsort
SELECT ALL - ( 54 ) * - tab0.col2 AS col1 FROM tab0
----
1782
4428
54

query I rowsort
SELECT ALL + 53 FROM tab2 AS cor0
----
53
53
53

query I rowsort
SELECT ALL + - col0 + - col1 FROM tab2 AS cor0
----
-137
-38
-96

query I rowsort
SELECT + + col2 * - col2 + cor0.col2 * - col1 * + col2 AS col0 FROM tab2 AS cor0
----
-23328
-25992
-40560

query I rowsort
SELECT - cor0.col1 * + col2 * + ( - col2 * col2 ) FROM tab2 AS cor0
----
1036984
610173
932824

query I rowsort
SELECT ALL - + 17 + + col1 FROM tab2 AS cor0
----
0
14
42

onlyif mysql # use DIV operator for integer division
query I rowsort label-8266
SELECT + + col0 DIV cor0.col2 AS col1 FROM tab0 cor0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-8266
SELECT + + col0 / cor0.col2 AS col1 FROM tab0 cor0
----
0
1
35

onlyif mysql # use DIV operator for integer division
query I rowsort label-8267
SELECT cor0.col2 * 8 - - 52 DIV col0 FROM tab2 AS cor0
----
208
223
304

skipif mysql # not compatible
query I rowsort label-8267
SELECT cor0.col2 * 8 - - 52 / col0 FROM tab2 AS cor0
----
208
223
304

query I rowsort
SELECT - - cor0.col1 * - cor0.col2 + col2 FROM tab1 AS cor0
----
-1152
-1350
-513

query I rowsort
SELECT - col2 * - 27 - - cor0.col1 * + col0 * col0 FROM tab1 cor0
----
1692
42499
85792

onlyif mysql # use DIV operator for integer division
query I rowsort label-8270
SELECT ALL - col0 + 91 DIV col1 - tab1.col1 FROM tab1
----
-26
-65
-86

skipif mysql # not compatible
query I rowsort label-8270
SELECT ALL - col0 + 91 / col1 - tab1.col1 FROM tab1
----
-26
-65
-86

query I rowsort
SELECT - + cor0.col0 + + col1 - - ( cor0.col2 ) FROM tab2 AS cor0
----
-24
51
7

query I rowsort
SELECT ALL - col1 + 41 AS col1 FROM tab1 AS cor0
----
15
28
31

query I rowsort
SELECT - cor0.col2 + col1 AS col1 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT - cor0.col1 + ( + 76 ) * cor0.col2 AS col2 FROM tab1 AS cor0
----
4078
4322
7283

query I rowsort
SELECT DISTINCT col2 + - ( - col0 ) AS col0 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT ALL + col0 * + col1 AS col1 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT DISTINCT + - col1 * col0 AS col0 FROM tab2 AS cor0
----
-1343
-217
-4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-8278
SELECT - ( - 42 ) DIV + col2 AS col0 FROM tab0 AS cor0
----
0
1
42

skipif mysql # not compatible
query I rowsort label-8278
SELECT - ( - 42 ) / + col2 AS col0 FROM tab0 AS cor0
----
0
1
42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - col1 col1 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT DISTINCT 95 + col0 * ( - col0 ) AS col2 FROM tab0
----
-1130
-481
-7826

query I rowsort
SELECT + col1 + 10 AS col2 FROM tab0 AS cor0
----
101
107
96

query I rowsort
SELECT ALL - cor0.col1 + + ( col0 + - cor0.col0 ) FROM tab1 AS cor0
----
-10
-13
-26

onlyif mysql # use DIV operator for integer division
query I rowsort label-8283
SELECT DISTINCT - + col2 + ( ( + col1 ) ) DIV col1 AS col0 FROM tab0 AS cor0
----
-32
-81
0

skipif mysql # not compatible
query I rowsort label-8283
SELECT DISTINCT - + col2 + ( ( + col1 ) ) / col1 AS col0 FROM tab0 AS cor0
----
-32
-81
0

query I rowsort
SELECT ALL + col0 * + 77 * + col2 FROM tab0 AS cor0
----
2695
561946
60984

query I rowsort
SELECT - col0 + col2 * - col1 AS col2 FROM tab0 AS cor0
----
-132
-2862
-7551

query I rowsort
SELECT ALL - + 56 AS col0 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to a228dfb9ede9780b082a5a3dfb2fca80

query I rowsort
SELECT - cor0.col1 AS col1 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84

query I rowsort
SELECT col2 + col0 + 5 FROM tab2
----
109
122
39

query I rowsort
SELECT ALL - col2 + tab2.col0 * col2 FROM tab2
----
162
2002
2964

query I rowsort
SELECT ALL + 87 * - col0 + col1 FROM tab2
----
-578
-6727
-6856

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab2, tab0 cor1, tab1, tab1 cor2
----
3645 values hashing to 85ee76cb25486c31b8f0abeb3f8683dc

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1, tab2 cor1, tab2 AS cor2
----
972 values hashing to f9adf26f20dc8fcc43c2de18a5fd4859

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 cor0, tab0, tab2 cor1
----
972 values hashing to 9600bdf5bac0caec3229e87170cc40b3

query I rowsort
SELECT ALL - col0 * 89 + 76 * - col1 FROM tab0 cor0
----
-10487
-14837
-8672

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8295
SELECT DISTINCT + col0 * CAST( NULL AS SIGNED ) * col0 AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8295
SELECT DISTINCT + col0 * CAST ( NULL AS INTEGER ) * col0 AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL + + cor0.col0 * - 83 + - col0 FROM tab1 AS cor0
----
-252
-5376
-6720

query I rowsort
SELECT col0 * ( + col0 ) AS col0 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT ALL + col0 + - col0 AS col0 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col2 + - 22 * - col0 + col2 * - col0 FROM tab0 AS cor0
----
-231
-5258
736

query I rowsort
SELECT ALL - ( 93 ) FROM tab1, tab0 AS cor0
----
9 values hashing to 38f445d95788c7dc754ff688a62df03b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - cor0.col1 + + 22 col2 FROM tab1 AS cor0
----
32
35
48

query I rowsort
SELECT ALL col1 - + 60 * - ( col1 ) FROM tab2 cor0
----
1037
1891
3599

query I rowsort
SELECT ALL col1 + ( col1 ) FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT DISTINCT col2 + + 45 AS col2 FROM tab0 AS cor0
----
127
46
78

query I rowsort
SELECT DISTINCT - cor0.col0 + 67 + - col1 FROM tab2 AS cor0
----
-29
-70
29

query I rowsort
SELECT + 96 FROM tab2 AS cor0
----
96
96
96

query I rowsort
SELECT + ( 98 ) + col2 * + col2 FROM tab0 AS cor0
----
1187
6822
99

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8308
SELECT DISTINCT - cor1.col1 + + CAST( NULL AS SIGNED ) col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8308
SELECT DISTINCT - cor1.col1 + + CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

query I rowsort
SELECT DISTINCT - ( col0 ) * - col2 FROM tab0
----
35
7298
792

query I rowsort
SELECT 84 + - col0 FROM tab2 AS cor0
----
5
6
77

query I rowsort
SELECT + ( col2 ) + + 67 AS col1 FROM tab0
----
100
149
68

onlyif mysql # use DIV operator for integer division
query I rowsort label-8312
SELECT DISTINCT 63 DIV col0 + - col1 DIV tab1.col1 AS col0 FROM tab1
----
-1
20

skipif mysql # not compatible
query I rowsort label-8312
SELECT DISTINCT 63 / col0 + - col1 / tab1.col1 AS col0 FROM tab1
----
-1
20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * col1 + - col0 * col1 col0 FROM tab1
----
-540
-871
598

query I rowsort
SELECT DISTINCT + + col0 * - col1 - 13 FROM tab2 cor0
----
-1356
-230
-4615

query I rowsort
SELECT ( cor0.col1 ) + - 38 * col0 AS col1 FROM tab2 AS cor0
----
-235
-2905
-2985

query I rowsort
SELECT + ( + cor0.col1 ) + col0 AS col2 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT + col1 - + col0 AS col2 FROM tab0 AS cor0
----
2
62
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + - col0 + 50 * col1 * - col2 col2 FROM tab2 cor0
----
-32300
-41850
-76700

query I rowsort
SELECT - 71 * + cor0.col0 FROM tab1 cor0
----
-213
-4544
-5680

query I rowsort
SELECT DISTINCT - 37 + + 35 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-2

query I rowsort
SELECT 46 * - tab2.col1 AS col1 FROM tab2
----
-1426
-2714
-782

query I rowsort
SELECT - 27 * - col0 AS col2 FROM tab2 AS cor0
----
189
2106
2133

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 66 + + col0 col2 FROM tab2 AS cor0
----
144
145
73

query I rowsort
SELECT ALL col1 * + col2 + + 20 FROM tab2 AS cor0
----
1554
666
857

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8325
SELECT - col2 * CAST( NULL AS SIGNED ) + col0 - + cor0.col0 col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8325
SELECT - col2 * CAST ( NULL AS INTEGER ) + col0 - + cor0.col0 col0 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 * - col0 - + col0 AS col0 FROM tab2 AS cor0
----
1264
210
4524

onlyif mysql # use DIV operator for integer division
query I rowsort label-8327
SELECT ALL 51 + col2 DIV - col2 FROM tab1
----
50
50
50

skipif mysql # not compatible
query I rowsort label-8327
SELECT ALL 51 + col2 / - col2 FROM tab1
----
50
50
50

query I rowsort
SELECT ALL 82 + + 95 FROM tab1 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to c22e7014d7b3bdb046013086e48ff1f6

query I rowsort
SELECT - + col2 + ( col0 ) FROM tab0 AS cor0
----
-9
34
7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8330
SELECT - ( + col1 + CAST( 46 AS SIGNED ) * + col1 ) AS col1 FROM tab0
----
-4042
-4277
-4559

skipif mysql # not compatible
query I rowsort label-8330
SELECT - ( + col1 + CAST ( 46 AS INTEGER ) * + col1 ) AS col1 FROM tab0
----
-4042
-4277
-4559

query I rowsort
SELECT ALL 83 FROM tab2, tab2 AS cor0, tab0 AS cor1, tab1 AS cor2
----
81 values hashing to 5ced3720d5aeff0dd77d5059a38001b6

query I rowsort
SELECT ALL col0 + - 21 * - cor0.col1 FROM tab1 AS cor0
----
274
353
549

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8333
SELECT DISTINCT - CAST( NULL AS SIGNED ) + col0 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8333
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + col0 AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL 68 FROM tab0, tab0 AS cor0
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990

query I rowsort
SELECT - 18 + cor0.col2 * - cor0.col0 AS col1 FROM tab2 AS cor0
----
-2046
-207
-3020

query I rowsort
SELECT DISTINCT + 5 * col0 FROM tab2 AS cor0
----
35
390
395

onlyif mysql # use DIV operator for integer division
query I rowsort label-8337
SELECT ALL - col1 * col0 DIV - col1 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-8337
SELECT ALL - col1 * col0 / - col1 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT + + 80 * + col0 FROM tab1 AS cor0
----
240
5120
6400

query I rowsort
SELECT cor1.col1 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2, tab0 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab0.col2 + - col2 col1 FROM tab0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-8341
SELECT DISTINCT + col0 DIV - col0 AS col0 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-8341
SELECT DISTINCT + col0 / - col0 AS col0 FROM tab2
----
-1

query I rowsort
SELECT ALL - ( + col1 * - col0 + col2 ) FROM tab0
----
2031
3394
8017

query I rowsort
SELECT - col2 * + col2 + col0 * 43 FROM tab2
----
-428
1953
2678

query I rowsort
SELECT - 8 * + col0 FROM tab1 cor0
----
-24
-512
-640

query I rowsort
SELECT DISTINCT ( + 31 + + col1 ) FROM tab0
----
117
122
128

query I rowsort
SELECT ALL + col2 * col0 * tab1.col0 FROM tab1
----
233472
486
614400

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 + col0 * + cor0.col0 col0 FROM tab1 cor0
----
35
4106
6413

query I rowsort
SELECT - cor0.col2 + - col0 * - col1 FROM tab0 AS cor0
----
2031
3394
8017

query I rowsort
SELECT - + col0 + col2 * cor0.col0 FROM tab0 AS cor0
----
0
7209
768

query I rowsort
SELECT - col1 * + col1 AS col2 FROM tab1 cor0
----
-100
-169
-676

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col0 + col0 * col2 col0 FROM tab0 cor0
----
0
7209
768

onlyif mysql # use DIV operator for integer division
query I rowsort label-8352
SELECT ALL + col2 DIV tab0.col2 AS col0 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8352
SELECT ALL + col2 / tab0.col2 AS col0 FROM tab0
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-8353
SELECT + col0 * - cor0.col2 + - cor0.col1 DIV - col0 FROM tab1 AS cor0
----
-154
-3648
-7680

skipif mysql # not compatible
query I rowsort label-8353
SELECT + col0 * - cor0.col2 + - cor0.col1 / - col0 FROM tab1 AS cor0
----
-154
-3648
-7680

query I rowsort
SELECT + - ( - cor0.col0 ) * - col0 AS col2 FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT ALL col2 + col1 * col0 AS col1 FROM tab0
----
2097
3396
8181

query I rowsort
SELECT - 3 * col1 AS col0 FROM tab2 AS cor0
----
-177
-51
-93

query I rowsort
SELECT - - 38 + col2 * + col2 FROM tab2 AS cor0
----
1482
714
767

query I rowsort
SELECT - 54 - col2 FROM tab0 AS cor0
----
-136
-55
-87

onlyif mysql # use DIV operator for integer division
query I rowsort label-8359
SELECT - col0 * + col0 + col1 DIV - col1 FROM tab2 AS cor0
----
-50
-6085
-6242

skipif mysql # not compatible
query I rowsort label-8359
SELECT - col0 * + col0 + col1 / - col1 FROM tab2 AS cor0
----
-50
-6085
-6242

query I rowsort
SELECT DISTINCT - 57 * col2 + + col1 FROM tab1
----
-3052
-3239
-5459

query I rowsort
SELECT 82 * col0 AS col1 FROM tab1
----
246
5248
6560

onlyif mysql # use DIV operator for integer division
query I rowsort label-8362
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-8362
SELECT - tab2.col1 / + col1 col2 FROM tab2
----
-1
-1
-1

query I rowsort
SELECT - col0 * col2 * - col2 AS col2 FROM tab0
----
26136
35
598436

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8364
SELECT ALL CAST( col0 AS SIGNED ) * + tab0.col2 + + col0 FROM tab0
----
70
7387
816

skipif mysql # not compatible
query I rowsort label-8364
SELECT ALL CAST ( col0 AS INTEGER ) * + tab0.col2 + + col0 FROM tab0
----
70
7387
816

query I rowsort
SELECT col0 * + col1 * + col2 + col1 AS col1 FROM tab0 AS cor0
----
3492
664209
68198

query I rowsort
SELECT - + ( - cor0.col0 ) + cor0.col2 * + col0 AS col0 FROM tab0 AS cor0
----
70
7387
816

query I rowsort
SELECT + cor0.col0 + col2 AS col0 FROM tab0 cor0
----
171
36
57

query I rowsort
SELECT tab2.col2 - tab2.col0 AS col0 FROM tab2
----
-41
-52
20

query I rowsort
SELECT ALL + col2 + tab1.col1 AS col2 FROM tab1
----
109
67
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-8370
SELECT DISTINCT tab2.col1 DIV col1 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-8370
SELECT DISTINCT tab2.col1 / col1 FROM tab2
----
1

query I rowsort
SELECT col2 * col0 * - col0 + tab1.col0 FROM tab1
----
-233408
-483
-614320

query I rowsort
SELECT DISTINCT - col0 - tab1.col0 * tab1.col0 AS col1 FROM tab1
----
-12
-4160
-6480

onlyif mysql # use DIV operator for integer division
query I rowsort label-8373
SELECT col2 DIV - col2 + col2 AS col1 FROM tab0
----
0
32
81

skipif mysql # not compatible
query I rowsort label-8373
SELECT col2 / - col2 + col2 AS col1 FROM tab0
----
0
32
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-8374
SELECT DISTINCT col2 * - col0 DIV - tab1.col0 AS col2 FROM tab1
----
54
57
96

skipif mysql # not compatible
query I rowsort label-8374
SELECT DISTINCT col2 * - col0 / - tab1.col0 AS col2 FROM tab1
----
54
57
96

query I rowsort
SELECT DISTINCT col1 + + col2 + col2 * col2 AS col2 FROM tab1
----
2996
3316
9325

onlyif mysql # use DIV operator for integer division
query I rowsort label-8376
SELECT + col2 DIV + tab0.col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8376
SELECT + col2 / + tab0.col1 FROM tab0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-8377
SELECT ALL + col0 + + col2 DIV - col0 - + col1 col1 FROM tab0
----
-2
-62
-63

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8377
SELECT ALL + col0 + + col2 / - col0 - + col1 col1 FROM tab0
----
-2
-62
-63

onlyif mysql # use DIV operator for integer division
query I rowsort label-8378
SELECT + col1 DIV + col0 + col2 + col0 FROM tab0
----
172
38
60

skipif mysql # not compatible
query I rowsort label-8378
SELECT + col1 / + col0 + col2 + col0 FROM tab0
----
172
38
60

onlyif mysql # use DIV operator for integer division
query I rowsort label-8379
SELECT DISTINCT + col0 * tab1.col0 - + col2 DIV - col1 col1 FROM tab1
----
11
4101
6407

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8379
SELECT DISTINCT + col0 * tab1.col0 - + col2 / - col1 col1 FROM tab1
----
11
4101
6407

query I rowsort
SELECT ALL + col1 + - tab0.col0 AS col0 FROM tab0
----
2
62
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - col0 col0 FROM tab1 WHERE NULL BETWEEN ( NULL ) AND - col1
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-8382
SELECT ALL col1 + + col2 DIV + tab1.col2 FROM tab1
----
11
14
27

skipif mysql # not compatible
query I rowsort label-8382
SELECT ALL col1 + + col2 / + tab1.col2 FROM tab1
----
11
14
27

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL < ( + col0 )
----

query I rowsort
SELECT col2 FROM tab2 WHERE col2 * - col2 / + col0 + col2 * col1 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col2 + col1 * col2 < NULL
----

query I rowsort
SELECT + col2 * + tab0.col1 + col1 FROM tab0
----
194
2924
7553

query I rowsort
SELECT col1 * + col0 * + col0 AS col1 FROM tab1
----
234
40960
83200

query I rowsort
SELECT DISTINCT col2 + + col2 * col0 AS col2 FROM tab1
----
216
3705
7776

query I rowsort
SELECT - tab2.col1 + + tab2.col2 AS col2 FROM tab2
----
-33
-4
21

query III rowsort
SELECT * FROM tab1 WHERE NULL IN ( - col2 + col1 / col0 )
----

query I rowsort
SELECT DISTINCT - col0 + col0 * + col1 FROM tab0
----
2040
3360
8010

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT IN ( + col2 + col2 + - col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab1.col2 + + col0 col0 FROM tab1
----
121
176
57

query I rowsort
SELECT ALL tab1.col2 * col2 AS col1 FROM tab1
----
2916
3249
9216

query I rowsort
SELECT - cor0.col2 * - col1 AS col2 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT - + col1 * cor0.col0 AS col2 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT cor0.col1 + cor0.col1 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to bd4e64b4654b9e3f8122f4e1bada2bd0

query I rowsort
SELECT DISTINCT col2 * col1 * + col0 FROM tab1 WHERE col2 * - col1 = - col0 * col0
----

query I rowsort
SELECT DISTINCT + col2 + - col1 AS col2 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT cor0.col0 * col2 * + col1 AS col1 FROM tab2 AS cor0
----
119652
51034
5859

query I rowsort
SELECT DISTINCT + col1 + 32 AS col1 FROM tab0 AS cor0
----
118
123
129

query I rowsort
SELECT DISTINCT - - col1 + + 71 * col0 FROM tab2 AS cor0
----
528
5597
5626

query I rowsort
SELECT DISTINCT col0 * + ( - col2 ) - ( col0 ) AS col1 FROM tab1 AS cor0
----
-165
-3712
-7760

query I rowsort
SELECT DISTINCT - col1 * 20 FROM tab0 AS cor0
----
-1720
-1820
-1940

query I rowsort
SELECT DISTINCT + col1 + col0 * col1 AS col0 FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT ALL - + col0 + col2 AS col1 FROM tab0 cor0
----
-34
-7
9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8407
SELECT DISTINCT + - CAST( NULL AS SIGNED ) + col1 * + col1 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8407
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) + col1 * + col1 AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-8408
SELECT DISTINCT 51 DIV col0 FROM tab2 AS cor0
----
0
7

skipif mysql # not compatible
query I rowsort label-8408
SELECT DISTINCT 51 / col0 FROM tab2 AS cor0
----
0
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-8409
SELECT ALL col0 + + col1 DIV col2 AS col1 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-8409
SELECT ALL col0 + + col1 / col2 AS col1 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT - col1 + 46 AS col0 FROM tab0 AS cor0
----
-40
-45
-51

query I rowsort
SELECT - + ( cor0.col2 ) FROM tab1 AS cor0
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort
SELECT - col2 * CAST ( 83 AS REAL ) * col2 + 50 * - col0 AS col2 FROM tab0
----
-1833
-562542
-91587

query I rowsort
SELECT cor0.col0 AS col1 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

onlyif mysql # use DIV operator for integer division
query I rowsort label-8414
SELECT DISTINCT - 8 DIV + cor0.col0 AS col1 FROM tab2, tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8414
SELECT DISTINCT - 8 / + cor0.col0 AS col1 FROM tab2, tab0 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - ( 37 ) + tab1.col1 col0 FROM tab1
----
-1972
-2099
-3539

onlyif mysql # use DIV operator for integer division
query I rowsort label-8416
SELECT DISTINCT - - col2 DIV col1 - + col0 FROM tab1 AS cor0
----
-1
-59
-73

skipif mysql # not compatible
query I rowsort label-8416
SELECT DISTINCT - - col2 / col1 - + col0 FROM tab1 AS cor0
----
-1
-59
-73

onlyif mysql # use DIV operator for integer division
query I rowsort label-8417
SELECT DISTINCT - col1 * col0 + + cor0.col0 DIV col1 AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

skipif mysql # not compatible
query I rowsort label-8417
SELECT DISTINCT - col1 * col0 + + cor0.col0 / col1 AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT ALL + ( 4 ) AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b

onlyif mysql # use DIV operator for integer division
query I rowsort label-8419
SELECT - 27 DIV - col2 FROM tab0 AS cor0
----
0
0
27

skipif mysql # not compatible
query I rowsort label-8419
SELECT - 27 / - col2 FROM tab0 AS cor0
----
0
0
27

onlyif mysql # use DIV operator for integer division
query I rowsort label-8420
SELECT - + col0 * + col2 DIV col2 + 11 + - cor0.col1 FROM tab1 AS cor0
----
-18
-63
-82

skipif mysql # not compatible
query I rowsort label-8420
SELECT - + col0 * + col2 / col2 + 11 + - cor0.col1 FROM tab1 AS cor0
----
-18
-63
-82

query I rowsort
SELECT ALL - col0 + col2 * + col0 FROM tab0
----
0
7209
768

query I rowsort
SELECT 33 * + 97 + - tab0.col0 * + col2 + col0 FROM tab0
----
-4008
2433
3201

query I rowsort
SELECT ( col2 ) * - col0 - cor0.col2 AS col2 FROM tab1 AS cor0
----
-216
-3705
-7776

query I rowsort
SELECT DISTINCT + 0 + - col1 AS col2 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT ALL - ( + tab2.col2 ) * tab2.col1 AS col0 FROM tab2
----
-1534
-646
-837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * - col0 + + col2 * col1 col2 FROM tab2 AS cor0
----
-2356
-494
648

query I rowsort
SELECT ALL - col0 * ( + col0 ) + + col1 - + col2 AS col2 FROM tab1 AS cor0
----
-37
-4143
-6483

query I rowsort
SELECT col0 * + ( + 73 ) AS col2 FROM tab0 AS cor0
----
1752
2555
6497

query I rowsort
SELECT ALL cor0.col0 * 5 - 34 * col0 FROM tab1 AS cor0
----
-1856
-2320
-87

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8430
SELECT ALL ( - tab1.col0 + CAST( col2 AS SIGNED ) ) FROM tab1
----
-7
16
51

skipif mysql # not compatible
query I rowsort label-8430
SELECT ALL ( - tab1.col0 + CAST ( col2 AS INTEGER ) ) FROM tab1
----
-7
16
51

query I rowsort
SELECT DISTINCT col0 + - 15 AS col0 FROM tab0 cor0
----
20
74
9

query I rowsort
SELECT DISTINCT - + cor0.col1 + 3 AS col2 FROM tab2 AS cor0
----
-14
-28
-56

query I rowsort
SELECT DISTINCT col1 * ( col1 ) + + col1 AS col1 FROM tab0 AS cor0
----
7482
8372
9506

query I rowsort
SELECT col1 + - col0 * - col1 FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT - cor0.col2 * + col0 AS col2 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT ALL col1 * - 37 AS col1 FROM tab2 AS cor0
----
-1147
-2183
-629

onlyif mysql # use DIV operator for integer division
query I rowsort label-8437
SELECT DISTINCT + col2 DIV 94 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8437
SELECT DISTINCT + col2 / 94 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL + col2 + col0 * + col2 FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT + + cor0.col2 * + 21 AS col0 FROM tab0 AS cor0
----
1722
21
693

query I rowsort
SELECT col2 + cor0.col1 * 28 * - col0 AS col0 FROM tab0 AS cor0
----
-226690
-57759
-95059

query I rowsort
SELECT DISTINCT - col2 * 83 FROM tab0
----
-2739
-6806
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 35 col0 FROM tab2 cor0
----
35
35
35

query I rowsort
SELECT ALL - - 25 + - 89 * col2 AS col2 FROM tab1 AS cor0
----
-4781
-5048
-8519

query I rowsort
SELECT - ( ( col2 ) + col0 ) FROM tab1
----
-121
-176
-57

query I rowsort
SELECT - col1 + col1 * - col2 AS col0 FROM tab0 AS cor0
----
-194
-2924
-7553

query I rowsort
SELECT + 40 + ( col1 ) FROM tab2 AS cor0
----
57
71
99

query I rowsort
SELECT - cor0.col0 AS col0 FROM tab2, tab1 AS cor0, tab0 cor1
----
27 values hashing to 729c1edda9332398299f39cd174ed840

query I rowsort
SELECT - 32 * cor0.col0 * + col1 FROM tab1 AS cor0
----
-20480
-2496
-33280

query I rowsort
SELECT - 98 + cor0.col2 * - cor0.col1 FROM tab2 AS cor0
----
-1632
-744
-935

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col2 + - 27 ) * - col2 col2 FROM tab1
----
11808
4374
4788

onlyif mysql # use DIV operator for integer division
query I rowsort label-8451
SELECT DISTINCT 64 DIV + col0 AS col2 FROM tab0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-8451
SELECT DISTINCT 64 / + col0 AS col2 FROM tab0
----
0
1
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * + col2 + col0 col2 FROM tab0 cor0
----
-1065
-6635
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 60 col0 FROM tab2 AS cor0
----
60
60
60

query I rowsort
SELECT DISTINCT 62 AS col2 FROM tab2 AS cor0
----
62

query I rowsort
SELECT ALL - - 94 FROM tab1, tab0 AS cor0
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24

query I rowsort
SELECT ALL col1 * - tab0.col2 AS col0 FROM tab0
----
-2838
-7462
-97

query I rowsort
SELECT cor0.col1 * col1 * + col2 FROM tab2 AS cor0
----
10982
25947
90506

query I rowsort
SELECT ALL + col0 * - col2 * - cor0.col2 FROM tab1 AS cor0
----
207936
737280
8748

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 col1 FROM tab2 AS cor0
----
-7
-78
-79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8460
SELECT + + col2 + CAST( ( + col2 ) AS SIGNED ) FROM tab0 AS cor0
----
164
2
66

skipif mysql # not compatible
query I rowsort label-8460
SELECT + + col2 + CAST ( ( + col2 ) AS INTEGER ) FROM tab0 AS cor0
----
164
2
66

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8461
SELECT DISTINCT + col1 * CAST( NULL AS SIGNED ) AS col0 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8461
SELECT DISTINCT + col1 * CAST ( NULL AS INTEGER ) AS col0 FROM tab2 cor0
----
NULL

query I rowsort
SELECT DISTINCT cor0.col0 + 58 * col0 FROM tab1 AS cor0
----
177
3776
4720

onlyif mysql # use DIV operator for integer division
query I rowsort label-8463
SELECT + tab1.col2 + - col2 DIV col1 col0 FROM tab1
----
52
52
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8463
SELECT + tab1.col2 + - col2 / col1 col0 FROM tab1
----
52
52
89

query I rowsort
SELECT DISTINCT - col1 * tab2.col1 * + 65 AS col1 FROM tab2
----
-18785
-226265
-62465

query I rowsort
SELECT DISTINCT + col0 * + tab0.col0 AS col2 FROM tab0
----
1225
576
7921

onlyif mysql # use DIV operator for integer division
query I rowsort label-8466
SELECT DISTINCT 24 DIV + col0 AS col2 FROM tab1
----
0
8

skipif mysql # not compatible
query I rowsort label-8466
SELECT DISTINCT 24 / + col0 AS col2 FROM tab1
----
0
8

query I rowsort
SELECT col1 * - col1 + - ( col2 ) * col2 AS col1 FROM tab2
----
-1690
-1733
-4157

query I rowsort
SELECT ALL col1 * col2 * - col1 FROM tab0
----
-244068
-679042
-9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-8469
SELECT DISTINCT ( - tab2.col1 ) DIV + tab2.col1 + - 57 - + col1 FROM tab2
----
-117
-75
-89

skipif mysql # not compatible
query I rowsort label-8469
SELECT DISTINCT ( - tab2.col1 ) / + tab2.col1 + - 57 - + col1 FROM tab2
----
-117
-75
-89

query I rowsort
SELECT DISTINCT - 51 + + col1 - - col1 FROM tab1
----
-25
-31
1

query I rowsort
SELECT + 56 AS col0 FROM tab1 AS cor0
----
56
56
56

query I rowsort
SELECT DISTINCT + col2 + - ( + col1 ) * - col1 FROM tab0 AS cor0
----
7429
8363
9410

query I rowsort
SELECT ALL - cor0.col0 * + col0 FROM tab1 AS cor0
----
-4096
-6400
-9

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 AS cor0, tab2 AS cor1, tab0, tab1 cor2
----
3645 values hashing to 77ce60d8d42550cc1b5a38c7d1dc5d13

query I rowsort
SELECT ALL 70 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911

query I rowsort
SELECT ALL - cor0.col0 FROM tab2, tab0 cor0, tab0 cor1
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8

query I rowsort
SELECT 38 + col1 * col2 FROM tab2 AS cor0
----
1572
684
875

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 71 col2 FROM tab1, tab2 AS cor0
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 90 + col1 * col0 - col0 col0 FROM tab0 AS cor0
----
2130
3450
8100

query I rowsort
SELECT DISTINCT + 31 + - cor0.col1 AS col2 FROM tab0 AS cor0
----
-55
-60
-66

onlyif mysql # use DIV operator for integer division
query I rowsort label-8481
SELECT ( cor0.col2 ) * col0 + - col0 + col0 DIV + 31 AS col1 FROM tab2 AS cor0
----
182
1952
2925

skipif mysql # not compatible
query I rowsort label-8481
SELECT ( cor0.col2 ) * col0 + - col0 + col0 / + 31 AS col1 FROM tab2 AS cor0
----
182
1952
2925

query I rowsort
SELECT ALL + - 36 FROM tab2 cor0
----
-36
-36
-36

onlyif mysql # use DIV operator for integer division
query I rowsort label-8483
SELECT - col2 + col1 DIV - ( col1 ) - + cor0.col2 * cor0.col0 * + col1 FROM tab0 AS cor0
----
-3397
-664201
-68146

skipif mysql # not compatible
query I rowsort label-8483
SELECT - col2 + col1 / - ( col1 ) - + cor0.col2 * cor0.col0 * + col1 FROM tab0 AS cor0
----
-3397
-664201
-68146

query I rowsort
SELECT 10 + - col0 * 77 AS col2 FROM tab2 AS cor0
----
-529
-5996
-6073

query I rowsort
SELECT + + cor0.col1 + + col2 * col2 - - col2 AS col1 FROM tab2 AS cor0
----
1499
761
787

onlyif mysql # use DIV operator for integer division
query I rowsort label-8486
SELECT ALL ( tab0.col0 ) DIV col0 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8486
SELECT ALL ( tab0.col0 ) / col0 FROM tab0
----
1
1
1

query I rowsort
SELECT DISTINCT 83 + - col2 FROM tab1 AS cor0
----
-13
26
29

query I rowsort
SELECT DISTINCT + - col1 * - col2 + col2 * - 1 AS col1 FROM tab2 AS cor0
----
1508
608
810

query I rowsort
SELECT - 68 * - col0 AS col0 FROM tab0 AS cor0
----
1632
2380
6052

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * col1 + ( col2 ) col2 FROM tab1 AS cor0
----
157
265
730

query I rowsort
SELECT - - 2 FROM tab0 AS cor0
----
2
2
2

query I rowsort
SELECT - col1 * - col1 * - ( 7 ) AS col2 FROM tab1 AS cor0
----
-1183
-4732
-700

query I rowsort
SELECT tab0.col2 + 39 AS col2 FROM tab1, tab1 AS cor0 CROSS JOIN tab0
----
27 values hashing to fd502f1656cbc2bb2b80b2f54cf6225a

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - col2 * cor0.col0 col2 FROM tab2 AS cor0
----
-162
-2002
-2964

query I rowsort
SELECT ALL col2 * + col1 - - cor0.col0 FROM tab1 cor0
----
1328
1407
634

query I rowsort
SELECT ALL + col1 + + cor0.col1 AS col2 FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT DISTINCT - col0 - - col2 * - col1 FROM tab1
----
-1328
-1407
-634

onlyif mysql # use DIV operator for integer division
query I rowsort label-8498
SELECT DISTINCT + tab0.col2 DIV col0 - ( 12 + - col0 ) AS col0 FROM tab0
----
13
23
77

skipif mysql # not compatible
query I rowsort label-8498
SELECT DISTINCT + tab0.col2 / col0 - ( 12 + - col0 ) AS col0 FROM tab0
----
13
23
77

query I rowsort
SELECT + 34 * col1 + col0 + 8 * col2 FROM tab2
----
1277
2292
961

query I rowsort
SELECT + ( + col2 * + col2 ) + + col1 * col0 FROM tab2
----
2787
5278
946

query I rowsort
SELECT ALL + col2 * col2 + 33 AS col2 FROM tab2 AS cor0
----
1477
709
762

onlyif mysql # use DIV operator for integer division
query I rowsort label-8502
SELECT col1 DIV ( col2 ) + col0 * col0 FROM tab1 AS cor0
----
4096
6400
9

skipif mysql # not compatible
query I rowsort label-8502
SELECT col1 / ( col2 ) + col0 * col0 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT DISTINCT - col0 + col2 * col1 FROM tab2 cor0
----
1456
567
830

query I rowsort
SELECT ALL + col1 * - 3 * - 59 FROM tab1 AS cor0
----
1770
2301
4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-8505
SELECT DISTINCT - tab0.col2 - - col0 * col2 DIV tab0.col2 col1 FROM tab0
----
-9
34
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8505
SELECT DISTINCT - tab0.col2 - - col0 * col2 / tab0.col2 col1 FROM tab0
----
-9
34
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-8506
SELECT DISTINCT col0 * col2 DIV - col1 - tab1.col2 FROM tab1
----
-421
-60
-686

skipif mysql # not compatible
query I rowsort label-8506
SELECT DISTINCT col0 * col2 / - col1 - tab1.col2 FROM tab1
----
-421
-60
-686

query I rowsort
SELECT ALL + + ( - col1 ) * + cor0.col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT + - 23 + col1 FROM tab1 AS cor0
----
-10
-13
3

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8509
SELECT ALL CAST( - 60 AS SIGNED ) + col2 * col0 * col0 + + col2 AS col0 FROM tab0 AS cor0
----
1166
18981
649544

skipif mysql # not compatible
query I rowsort label-8509
SELECT ALL CAST ( - 60 AS INTEGER ) + col2 * col0 * col0 + + col2 AS col0 FROM tab0 AS cor0
----
1166
18981
649544

query I rowsort
SELECT ALL ( 38 ) FROM tab2, tab2 AS cor0
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7

query I rowsort
SELECT - 42 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 9894093f29c0defae91347934f060329

query I rowsort
SELECT DISTINCT 79 + col0 AS col2 FROM tab1 AS cor0
----
143
159
82

query I rowsort
SELECT - ( - 42 ) AS col0 FROM tab0 AS cor0
----
42
42
42

query I rowsort
SELECT DISTINCT - ( cor0.col1 ) + col2 * + 29 AS col2 FROM tab1 AS cor0
----
1540
1643
2771

skipif mysql # not compatible
query I rowsort
SELECT ALL - + CAST ( 13 AS REAL ) + + col0 AS col2 FROM tab2 AS cor0
----
-6
65
66

query I rowsort
SELECT ( - col1 ) * - cor0.col1 + + col2 FROM tab1 AS cor0
----
157
265
730

query I rowsort
SELECT - ( 29 ) FROM tab1 cor0
----
-29
-29
-29

query I rowsort
SELECT ALL - + ( cor0.col1 ) * col2 + col2 FROM tab0 AS cor0
----
-2805
-7380
-96

query I rowsort
SELECT DISTINCT - 61 AS col1 FROM tab1 AS cor0
----
-61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - col2 col2 FROM tab1 cor0
----
-2916
-3249
-9216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col2 ) col1 FROM tab0 cor0
----
1
33
82

query I rowsort
SELECT ALL + col2 + + 48 FROM tab1
----
102
105
144

query I rowsort
SELECT ALL + col0 * 23 * - col0 + - col1 * 31 AS col1 FROM tab1
----
-1013
-147603
-94518

query I rowsort
SELECT - tab0.col0 * + 45 AS col2 FROM tab0
----
-1080
-1575
-4005

query I rowsort
SELECT + cor1.col2 + ( + cor1.col2 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b24047a4766c1dbbfa5abb9df45d1883

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab0 AS cor2
----
3645 values hashing to e660b5944e34dd8d75740286862b3252

query I rowsort
SELECT DISTINCT ( col2 * - col1 + tab1.col0 ) AS col1 FROM tab1
----
-1168
-1401
-506

query I rowsort
SELECT - - 54 * 67 FROM tab0 AS cor0
----
3618
3618
3618

query I rowsort
SELECT + ( col2 ) * + cor0.col1 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT DISTINCT + cor0.col0 * + 58 * + col1 + ( col1 * col1 ) FROM tab1 AS cor0
----
37220
5200
60489

query I rowsort
SELECT + + col2 + cor0.col0 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT ALL ( ( + col1 ) ) FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT ALL - - col0 + + col2 AS col0 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT - ( + 12 ) + col1 FROM tab0 AS cor0
----
74
79
85

query I rowsort
SELECT - col1 * 66 FROM tab0 AS cor0
----
-5676
-6006
-6402

query I rowsort
SELECT - ( - col2 ) * + cor0.col0 * 7 FROM tab1 AS cor0
----
1134
25536
53760

query I rowsort
SELECT DISTINCT + 77 FROM tab1, tab0 cor0
----
77

query I rowsort
SELECT DISTINCT tab2.col0 AS col1 FROM tab2, tab0 AS cor0
----
7
78
79

query I rowsort
SELECT DISTINCT + col0 * col1 + - col0 FROM tab2 AS cor0
----
1264
210
4524

query I rowsort
SELECT ALL + 66 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 897b6122ac98340b78905f39d81897fc

onlyif mysql # use DIV operator for integer division
query I rowsort label-8541
SELECT + - col1 DIV - col0 col0 FROM tab0 cor0
----
1
2
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8541
SELECT + - col1 / - col0 col0 FROM tab0 cor0
----
1
2
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col0 * cor0.col2 col1 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT - - 95 + + 79 FROM tab0 AS cor0
----
174
174
174

query I rowsort
SELECT DISTINCT - 46 * 56 AS col2 FROM tab2 AS cor0
----
-2576

query I rowsort
SELECT + 23 + + col1 FROM tab1 AS cor0
----
33
36
49

query I rowsort
SELECT + col0 + ( + col1 ) * 61 FROM tab0 AS cor0
----
5270
5640
5952

query I rowsort
SELECT cor0.col1 - - cor0.col0 * - col2 AS col2 FROM tab1 AS cor0
----
-136
-3638
-7667

query I rowsort
SELECT DISTINCT 97 - - col1 FROM tab0 AS cor0
----
183
188
194

query I rowsort
SELECT DISTINCT - + 32 - + col1 FROM tab1 AS cor0
----
-42
-45
-58

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8550
SELECT DISTINCT col1 * col2 + col0 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8550
SELECT DISTINCT col1 * col2 + col0 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + col2 + - 40 FROM tab2 AS cor0
----
-13
-14
-2

onlyif mysql # use DIV operator for integer division
query I rowsort label-8552
SELECT ( - col2 ) - - col0 DIV + 1 FROM tab1 AS cor0
----
-16
-51
7

skipif mysql # not compatible
query I rowsort label-8552
SELECT ( - col2 ) - - col0 / + 1 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT ALL + - cor0.col2 + col0 * - col0 + + cor0.col2 AS col0 FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT DISTINCT col2 * 16 * + col2 FROM tab1
----
147456
46656
51984

query I rowsort
SELECT - col0 + + col1 * + col0 FROM tab1
----
576
75
960

query I rowsort
SELECT + + cor0.col0 * + col0 + + col1 AS col0 FROM tab0 AS cor0
----
1322
662
8012

query I rowsort
SELECT col1 * + col1 + col0 * col2 FROM tab1
----
3748
7849
838

query I rowsort
SELECT ALL + col0 + - cor0.col1 + + ( - 66 ) AS col1 FROM tab1 AS cor0
----
-12
-89
1

query I rowsort
SELECT ALL - col0 + - col1 + - col0 FROM tab2 AS cor0
----
-175
-215
-45

query I rowsort
SELECT DISTINCT 6 AS col1 FROM tab1 AS cor0
----
6

query I rowsort
SELECT - + col1 + + col0 * col1 AS col1 FROM tab2 cor0
----
1326
186
4543

query I rowsort
SELECT ALL - - col0 * - col1 + + ( 47 ) FROM tab1 AS cor0
----
-31
-593
-993

query I rowsort
SELECT DISTINCT 83 * - cor0.col1 FROM tab1 AS cor0
----
-1079
-2158
-830

query I rowsort
SELECT ALL + cor0.col0 + + cor0.col0 FROM tab2 AS cor0
----
14
156
158

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 99 col0 FROM tab2 AS cor0
----
-99

query I rowsort
SELECT col2 * - cor0.col2 * ( col0 * + col1 ) FROM tab1 AS cor0
----
-2079360
-227448
-9584640

query I rowsort
SELECT - cor0.col0 + - col0 AS col1 FROM tab2 cor0
----
-14
-156
-158

query I rowsort
SELECT DISTINCT + col0 * cor0.col1 + - ( col2 ) FROM tab0 cor0
----
2031
3394
8017

query I rowsort
SELECT DISTINCT + 19 + tab0.col1 AS col1 FROM tab0, tab2 AS cor0
----
105
110
116

query I rowsort
SELECT + 60 + - col0 * + col1 * + col2 FROM tab1 AS cor0
----
-36420
-4152
-99780

onlyif mysql # use DIV operator for integer division
query I rowsort label-8571
SELECT DISTINCT col2 DIV - col1 + ( - col1 ) + cor0.col2 * 22 AS col2 FROM tab0 AS cor0
----
-75
1713
640

skipif mysql # not compatible
query I rowsort label-8571
SELECT DISTINCT col2 / - col1 + ( - col1 ) + cor0.col2 * 22 AS col2 FROM tab0 AS cor0
----
-75
1713
640

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - cor0.col1 + + ( ( - col2 ) ) * col0 col2 FROM tab2 cor0
----
-1150
-3291
-5509

query I rowsort
SELECT ALL - + 64 * - col2 + - col0 + col0 FROM tab1 AS cor0
----
3456
3648
6144

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - col2 ) + + col2 col1 FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT + ( - col1 ) + ( + col1 ) FROM tab1 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8576
SELECT - col0 * CAST( NULL AS DECIMAL ) + + 63 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8576
SELECT - col0 * CAST ( NULL AS REAL ) + + 63 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col2 + cor0.col0 FROM tab2 cor0
----
-20
41
52

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8578
SELECT - + col0 + ( + col1 + + 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-8578
SELECT - + col0 + ( + col1 + + col1 ) * CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-8579
SELECT + col1 * 15 + - col0 DIV col0 AS col2 FROM tab2 AS cor0
----
254
464
884

skipif mysql # not compatible
query I rowsort label-8579
SELECT + col1 * 15 + - col0 / col0 AS col2 FROM tab2 AS cor0
----
254
464
884

query I rowsort
SELECT DISTINCT 44 * + col0 * 6 AS col1 FROM tab0
----
23496
6336
9240

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * col0 col1 FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT - ( cor1.col2 + - cor0.col0 ) AS col0 FROM tab0, tab1 AS cor0, tab2 cor1
----
27 values hashing to 07698c30cfc4fda665dd90d4a0477e65

query I rowsort
SELECT DISTINCT cor0.col1 * cor0.col0 + col1 AS col2 FROM tab1 AS cor0
----
104
1053
650

query I rowsort
SELECT ALL - col2 + + 17 AS col1 FROM tab2 AS cor0
----
-10
-21
-9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8585
SELECT col0 * CAST( NULL AS DECIMAL ) + 35 + col2 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8585
SELECT col0 * CAST ( NULL AS REAL ) + 35 + col2 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - ( 88 * col0 ) + - col2 AS col0 FROM tab0
----
-2145
-3081
-7914

skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( tab1.col0 AS REAL ) AS col1 FROM tab2, tab2 AS cor0 CROSS JOIN tab1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT ALL + - 66 + 89 * col0 FROM tab2 cor0
----
557
6876
6965

query I rowsort
SELECT 37 * col1 + col0 FROM tab0
----
3206
3456
3624

query I rowsort
SELECT tab1.col2 * tab1.col1 AS col1 FROM tab1
----
1248
1404
570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 22 * col0 col0 FROM tab1
----
1408
1760
66

query I rowsort
SELECT ALL ( col0 ) * col2 AS col1 FROM tab2 AS cor0
----
189
2028
3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 65 * + cor0.col2 col2 FROM tab2, tab0 cor0
----
9 values hashing to 1c63def4d1d2f798027ca9ab1212d582

query I rowsort
SELECT ALL + col2 - + col0 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT DISTINCT ( + col2 ) * col2 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT + col2 * + col0 * + col1 - 0 * col0 FROM tab1
----
36480
4212
99840

query I rowsort
SELECT + 21 * col1 FROM tab1
----
210
273
546

query I rowsort
SELECT - col0 - 75 FROM tab1 AS cor0
----
-139
-155
-78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8599
SELECT CAST( NULL AS SIGNED ) - col1 * col0 * col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8599
SELECT CAST ( NULL AS INTEGER ) - col1 * col0 * col2 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 - col0 * col0 FROM tab1 AS cor0
----
-4153
-63
-6496

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab1 AS cor0, tab1 cor1, tab2, tab0 cor2
----
3645 values hashing to 489b7b2b5c4980d50e86e51be30361c3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * + col2 col2 FROM tab1
----
162
3648
7680

query I rowsort
SELECT ALL + 99 * + col2 FROM tab2
----
2574
2673
3762

query I rowsort
SELECT DISTINCT - 92 * - col0 AS col0 FROM tab2
----
644
7176
7268

query I rowsort
SELECT + cor0.col1 + + col0 * col1 AS col0 FROM tab1 AS cor0
----
104
1053
650

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * 78 col2 FROM tab2 AS cor0
----
-1326
-2418
-4602

query I rowsort
SELECT + - col0 * cor0.col0 AS col0 FROM tab2 AS cor0
----
-49
-6084
-6241

onlyif mysql # use DIV operator for integer division
query I rowsort label-8608
SELECT ALL - col1 * col2 DIV col0 col1 FROM tab0 AS cor0
----
-118
-2
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8608
SELECT ALL - col1 * col2 / col0 col1 FROM tab0 AS cor0
----
-118
-2
-83

onlyif mysql # use DIV operator for integer division
query I rowsort label-8609
SELECT col0 DIV + 24 FROM tab0 AS cor0
----
1
1
3

skipif mysql # not compatible
query I rowsort label-8609
SELECT col0 / + 24 FROM tab0 AS cor0
----
1
1
3

query I rowsort
SELECT + col2 * - ( col0 ) AS col1 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT - - col1 * + col2 * - 89 FROM tab0 AS cor0
----
-252582
-664118
-8633

onlyif mysql # use DIV operator for integer division
query I rowsort label-8612
SELECT col2 * - ( + tab1.col1 ) + tab1.col2 DIV + col2 FROM tab1
----
-1247
-1403
-569

skipif mysql # not compatible
query I rowsort label-8612
SELECT col2 * - ( + tab1.col1 ) + tab1.col2 / + col2 FROM tab1
----
-1247
-1403
-569

onlyif mysql # use DIV operator for integer division
query I rowsort label-8613
SELECT + + col0 DIV + 61 FROM tab2 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-8613
SELECT + + col0 / + 61 FROM tab2 AS cor0
----
0
1
1

query I rowsort
SELECT col0 * tab0.col0 - 2 AS col1 FROM tab0
----
1223
574
7919

query I rowsort
SELECT + col0 + tab2.col2 AS col2 FROM tab2
----
104
117
34

query I rowsort
SELECT ALL - + col0 + + col2 * - col2 FROM tab1 AS cor0
----
-2919
-3313
-9296

query I rowsort
SELECT DISTINCT - col2 * 39 AS col0 FROM tab0 AS cor0
----
-1287
-3198
-39

query I rowsort
SELECT ALL - col2 * 9 * col0 AS col2 FROM tab1 AS cor0
----
-1458
-32832
-69120

onlyif mysql # use DIV operator for integer division
query I rowsort label-8619
SELECT ALL + col2 DIV - ( cor0.col2 ) + + col2 FROM tab1 AS cor0
----
53
56
95

skipif mysql # not compatible
query I rowsort label-8619
SELECT ALL + col2 / - ( cor0.col2 ) + + col2 FROM tab1 AS cor0
----
53
56
95

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8620
SELECT - CAST( + 3 AS SIGNED ) * col0 + + cor0.col0 FROM tab1 AS cor0
----
-128
-160
-6

skipif mysql # not compatible
query I rowsort label-8620
SELECT - CAST ( + 3 AS INTEGER ) * col0 + + cor0.col0 FROM tab1 AS cor0
----
-128
-160
-6

onlyif mysql # use DIV operator for integer division
query I rowsort label-8621
SELECT DISTINCT - 44 DIV - col0 AS col0 FROM tab2 AS cor0
----
0
6

skipif mysql # not compatible
query I rowsort label-8621
SELECT DISTINCT - 44 / - col0 AS col0 FROM tab2 AS cor0
----
0
6

query I rowsort
SELECT DISTINCT + - 58 * + col2 FROM tab2 AS cor0
----
-1508
-1566
-2204

query I rowsort
SELECT DISTINCT col2 * + 58 AS col2 FROM tab0 AS cor0
----
1914
4756
58

query I rowsort
SELECT ( col0 ) * col2 + - col0 * + 56 AS col2 FROM tab2 AS cor0
----
-1422
-203
-2340

query I rowsort
SELECT DISTINCT - ( - cor0.col1 ) * - col2 AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT 45 + col0 AS col1 FROM tab2 cor0
----
123
124
52

query I rowsort
SELECT - - ( 99 ) * - cor0.col1 AS col1 FROM tab2 AS cor0
----
-1683
-3069
-5841

query I rowsort
SELECT ALL - - col2 * col2 + col0 AS col2 FROM tab2 AS cor0
----
1523
736
754

query I rowsort
SELECT ALL + - col0 * col1 * - col2 FROM tab1 AS cor0
----
36480
4212
99840

query I rowsort
SELECT DISTINCT + 18 AS col0 FROM tab0 AS cor0
----
18

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8631
SELECT ALL - CAST( - 23 AS SIGNED ) FROM tab0 AS cor0
----
23
23
23

skipif mysql # not compatible
query I rowsort label-8631
SELECT ALL - CAST ( - 23 AS INTEGER ) FROM tab0 AS cor0
----
23
23
23

query I rowsort
SELECT + col2 * 62 + + tab2.col1 FROM tab2
----
1671
1705
2373

query I rowsort
SELECT - 21 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 631fbd1fd929405aba54a22c2a06c757

onlyif mysql # use DIV operator for integer division
query I rowsort label-8634
SELECT DISTINCT col2 DIV - 72 FROM tab0
----
-1
0

skipif mysql # not compatible
query I rowsort label-8634
SELECT DISTINCT col2 / - 72 FROM tab0
----
-1
0

query I rowsort
SELECT ALL + - col2 + - col2 FROM tab1 cor0
----
-108
-114
-192

query I rowsort
SELECT DISTINCT col0 + cor0.col0 AS col2 FROM tab0 AS cor0
----
178
48
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + cor0.col2 + col2 col0 FROM tab1 cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col1 - col2 col1 FROM tab1 AS cor0
----
-109
-67
-80

query I rowsort
SELECT - col1 * - col1 + ( ( + col1 ) ) + + col0 * - 31 FROM tab1 AS cor0
----
-1874
-2298
609

query I rowsort
SELECT - + 43 + col0 FROM tab0 AS cor0
----
-19
-8
46

query I rowsort
SELECT - col1 + col0 AS col2 FROM tab1 cor0
----
-23
54
67

query I rowsort
SELECT - + 47 + + col0 FROM tab1 AS cor0
----
-44
17
33

query I rowsort
SELECT ALL - - col2 * col2 + - col0 * - col1 AS col2 FROM tab0 AS cor0
----
14823
3153
3396

query I rowsort
SELECT ALL - - col1 + + col0 * + col2 AS col0 FROM tab1 cor0
----
188
3658
7693

query I rowsort
SELECT ( - col2 ) * + col1 AS col0 FROM tab0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT - 36 + 70 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
34

query I rowsort
SELECT DISTINCT 29 + col2 AS col0 FROM tab2
----
55
56
67

query I rowsort
SELECT tab1.col0 - col1 * col2 * col2 AS col1 FROM tab1
----
-119728
-32426
-75813

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8649
SELECT DISTINCT - CAST( NULL AS SIGNED ) FROM tab0, tab2 AS cor0, tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-8649
SELECT DISTINCT - CAST ( NULL AS INTEGER ) FROM tab0, tab2 AS cor0, tab0 AS cor1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * tab2.col0 col2 FROM tab2
----
1343
217
4602

query I rowsort
SELECT 49 + col0 FROM tab0
----
138
73
84

query I rowsort
SELECT 38 * col1 AS col2 FROM tab0
----
3268
3458
3686

query I rowsort
SELECT 97 AS col2 FROM tab0
----
97
97
97

query I rowsort
SELECT ALL + 3 AS col0 FROM tab0
----
3
3
3

query I rowsort
SELECT ALL + ( col2 + - col2 ) FROM tab2
----
0
0
0

query I rowsort
SELECT ALL + col2 * 11 AS col0 FROM tab1 AS cor0
----
1056
594
627

query I rowsort
SELECT ALL + 91 FROM tab1, tab2 AS cor0
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

query I rowsort
SELECT 49 * col1 AS col0 FROM tab0 AS cor0
----
4214
4459
4753

query I rowsort
SELECT DISTINCT - 17 * - 28 AS col0 FROM tab1
----
476

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 * col0 + cor0.col2 col2 FROM tab0 AS cor0
----
2097
3396
8181

query I rowsort
SELECT DISTINCT + + col2 + col0 - ( + col2 ) AS col1 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT ALL + cor0.col0 + col2 * + ( col0 ) FROM tab2 cor0
----
196
2106
3081

query I rowsort
SELECT DISTINCT 17 * + col2 - + 43 * - col2 FROM tab0 AS cor0
----
1980
4920
60

query I rowsort
SELECT + + 40 * + col1 FROM tab1 AS cor0
----
1040
400
520

query I rowsort
SELECT + + 41 + col2 AS col2 FROM tab2 AS cor0
----
67
68
79

query I rowsort
SELECT ALL - cor0.col0 + col2 AS col1 FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT DISTINCT + ( col0 ) * col2 FROM tab0 AS cor0
----
35
7298
792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col0 + + col1 * cor0.col2 * col0 col1 FROM tab0 AS cor0
----
3430
664207
68136

query I rowsort
SELECT col1 + - cor0.col1 AS col2 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT ALL - + 54 + col1 FROM tab1 cor0
----
-28
-41
-44

query I rowsort
SELECT ALL - 96 AS col2 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to a7b3e5dd01c8929180b7ffda67f79798

query I rowsort
SELECT - col1 * + col1 AS col0 FROM tab0
----
-7396
-8281
-9409

query I rowsort
SELECT - 11 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 05cc989122d7724c7abefaba9625ef3d

query I rowsort
SELECT ALL + col2 * 94 + - col1 + col1 FROM tab2 AS cor0
----
2444
2538
3572

onlyif mysql # use DIV operator for integer division
query I rowsort label-8675
SELECT DISTINCT - col0 DIV - 99 AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8675
SELECT DISTINCT - col0 / - 99 AS col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT col2 * col0 + cor0.col2 AS col0 FROM tab1 AS cor0
----
216
3705
7776

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8677
SELECT + col0 * CAST( NULL AS DECIMAL ) + - cor0.col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8677
SELECT + col0 * CAST ( NULL AS REAL ) + - cor0.col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col1 * - 43 AS col1 FROM tab0 AS cor0
----
3698
3913
4171

query I rowsort
SELECT + - cor0.col2 + col2 * col0 AS col0 FROM tab2 AS cor0
----
162
2002
2964

onlyif mysql # use DIV operator for integer division
query I rowsort label-8680
SELECT - col0 * 71 DIV + col1 col2 FROM tab1 AS cor0
----
-436
-454
-8

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8680
SELECT - col0 * 71 / + col1 col2 FROM tab1 AS cor0
----
-436
-454
-8

onlyif mysql # use DIV operator for integer division
query I rowsort label-8681
SELECT ALL + - col0 DIV cor0.col0 + + col0 AS col2 FROM tab1 cor0
----
2
63
79

skipif mysql # not compatible
query I rowsort label-8681
SELECT ALL + - col0 / cor0.col0 + + col0 AS col2 FROM tab1 cor0
----
2
63
79

query I rowsort
SELECT - col1 * - col0 + col0 FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT ALL 37 * + col1 AS col1 FROM tab2 AS cor0
----
1147
2183
629

query I rowsort
SELECT + cor0.col0 * - cor0.col1 AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT ALL - + 0 * + col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + 37 + + col0 + col0 FROM tab0 AS cor0
----
107
215
85

query I rowsort
SELECT DISTINCT + ( + col2 ) + col0 AS col2 FROM tab2 cor0
----
104
117
34

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab2 AS cor0, tab1 cor1, tab1, tab1 AS cor2
----
3645 values hashing to 44545a6297aa29bb730ffb907c13bc58

query I rowsort
SELECT col2 * - 33 AS col2 FROM tab0 cor0
----
-1089
-2706
-33

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8690
SELECT + col2 * CAST( NULL AS SIGNED ) + 10 + - col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8690
SELECT + col2 * CAST ( NULL AS INTEGER ) + 10 + - col0 FROM tab2
----
NULL
NULL
NULL

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab1 AS cor2, tab1 AS cor3
----
3645 values hashing to 50d2eeb0c89870917ccdbb42af2b89a3

onlyif mysql # use DIV operator for integer division
query I rowsort label-8692
SELECT + 19 DIV + col1 AS col2 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8692
SELECT + 19 / + col1 AS col2 FROM tab2 AS cor0
----
0
0
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8693
SELECT CAST( NULL AS SIGNED ) + ( + col0 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8693
SELECT CAST ( NULL AS INTEGER ) + ( + col0 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + ( cor0.col1 ) + col0 + + cor0.col2 AS col0 FROM tab2 AS cor0
----
134
163
65

query I rowsort
SELECT + cor0.col2 + + ( + col0 ) FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT - - col1 - 39 AS col2 FROM tab1 AS cor0
----
-13
-26
-29

query I rowsort
SELECT - col0 * 83 - col1 FROM tab1 AS cor0
----
-275
-5322
-6653

query I rowsort
SELECT 83 + cor0.col1 * cor0.col1 AS col2 FROM tab1 AS cor0
----
183
252
759

query I rowsort
SELECT + 22 * 42 + cor0.col2 AS col2 FROM tab0 cor0
----
1006
925
957

query I rowsort
SELECT 78 * col0 * + 29 FROM tab1 cor0
----
144768
180960
6786

query I rowsort
SELECT ( 28 ) AS col2 FROM tab0
----
28
28
28

query I rowsort
SELECT - 65 * + col2 * - 12 AS col0 FROM tab2 AS cor0
----
20280
21060
29640

query I rowsort
SELECT col2 * col0 + + col0 + - ( - col0 ) AS col2 FROM tab1 cor0
----
168
3776
7840

query I rowsort
SELECT - + ( col1 ) * + cor0.col2 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT + 0 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

query I rowsort
SELECT col1 * + 7 * + tab1.col0 FROM tab1
----
4480
546
7280

query I rowsort
SELECT ALL + col2 * 94 + + 42 FROM tab1
----
5118
5400
9066

onlyif mysql # use DIV operator for integer division
query I rowsort label-8708
SELECT ALL - col0 + col2 + + 98 DIV col1 AS col1 FROM tab1
----
2
23
54

skipif mysql # not compatible
query I rowsort label-8708
SELECT ALL - col0 + col2 + + 98 / col1 AS col1 FROM tab1
----
2
23
54

query I rowsort
SELECT ALL col1 + tab2.col0 * col1 + col0 FROM tab2
----
1439
255
4739

query I rowsort
SELECT + 76 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5

query I rowsort
SELECT ALL col0 * - col0 * col2 + - col2 * col0 AS col0 FROM tab2
----
-1512
-160212
-240160

query I rowsort
SELECT ALL - col2 - + col1 FROM tab1 AS cor0
----
-109
-67
-80

query I rowsort
SELECT ALL - cor1.col2 AS col0 FROM tab1, tab2 AS cor0, tab2 cor1
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6

query I rowsort
SELECT - col2 * col0 + col0 - - col2 FROM tab0 AS cor0
----
-7127
-735
1

query I rowsort
SELECT DISTINCT - col1 + - ( + col2 ) * col1 AS col2 FROM tab0 AS cor0
----
-194
-2924
-7553

query I rowsort
SELECT DISTINCT - col2 + + col1 + + 97 * cor0.col0 AS col1 FROM tab2 AS cor0
----
683
7599
7642

query I rowsort
SELECT col1 * + 67 FROM tab1
----
1742
670
871

onlyif mysql # use DIV operator for integer division
query I rowsort label-8718
SELECT col0 DIV + 38 FROM tab1
----
0
1
2

skipif mysql # not compatible
query I rowsort label-8718
SELECT col0 / + 38 FROM tab1
----
0
1
2

query I rowsort
SELECT + - cor0.col2 + + col1 * + col2 FROM tab1 AS cor0
----
1152
1350
513

onlyif mysql # use DIV operator for integer division
query I rowsort label-8720
SELECT DISTINCT ( cor0.col1 ) DIV ( 36 ) FROM tab0, tab0 cor0, tab1 AS cor1
----
2

skipif mysql # not compatible
query I rowsort label-8720
SELECT DISTINCT ( cor0.col1 ) / ( 36 ) FROM tab0, tab0 cor0, tab1 AS cor1
----
2

query I rowsort
SELECT ALL cor0.col2 * + col1 * - col0 - col0 AS col1 FROM tab0 AS cor0
----
-3430
-664207
-68136

query I rowsort
SELECT + 40 + - col0 FROM tab2 AS cor0
----
-38
-39
33

query I rowsort
SELECT ALL 25 + col2 * col0 FROM tab2 AS cor0
----
2053
214
3027

query I rowsort
SELECT + + 4 FROM tab2 AS cor0
----
4
4
4

query I rowsort
SELECT DISTINCT + 7 - + col2 * + cor0.col2 AS col2 FROM tab1 AS cor0
----
-2909
-3242
-9209

query I rowsort
SELECT ALL - cor0.col1 * + col0 + cor0.col2 AS col0 FROM tab0 cor0
----
-2031
-3394
-8017

query I rowsort
SELECT DISTINCT - 4 + col2 FROM tab2 AS cor0
----
22
23
34

query I rowsort
SELECT ALL + 3 * col2 FROM tab2 AS cor0
----
114
78
81

query I rowsort
SELECT - col1 + col0 * col1 AS col2 FROM tab0 AS cor0
----
1978
3298
8008

query I rowsort
SELECT ALL ( cor0.col1 ) AS col2 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT ALL ( col2 ) + col2 FROM tab0 cor0
----
164
2
66

query I rowsort
SELECT + 10 AS col1 FROM tab2
----
10
10
10

query I rowsort
SELECT DISTINCT + 22 FROM tab2
----
22

query I rowsort
SELECT + col1 + cor0.col0 AS col0 FROM tab1 AS cor0
----
29
74
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + col0 ) col2 FROM tab2
----
7
78
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

query I rowsort
SELECT + ( - 20 ) * - col1 FROM tab2 AS cor0
----
1180
340
620

query I rowsort
SELECT DISTINCT + + col1 + col0 AS col2 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT - col1 * + col0 + col1 * - col0 FROM tab2 AS cor0
----
-2686
-434
-9204

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + 1 col0 FROM tab1 AS cor0
----
4
65
81

query I rowsort
SELECT ALL 50 AS col1 FROM tab2 AS cor0
----
50
50
50

query I rowsort
SELECT DISTINCT + col1 * 90 + col2 + cor0.col2 FROM tab2 AS cor0
----
1606
2844
5362

query I rowsort
SELECT ALL + 3 + col2 FROM tab2
----
29
30
41

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8744
SELECT ALL + CAST( tab2.col0 * col0 AS SIGNED ) + - col1 FROM tab2
----
18
6025
6224

skipif mysql # not compatible
query I rowsort label-8744
SELECT ALL + CAST ( tab2.col0 * col0 AS INTEGER ) + - col1 FROM tab2
----
18
6025
6224

query I rowsort
SELECT tab1.col1 - 91 * col0 FROM tab1
----
-247
-5814
-7267

query I rowsort
SELECT ALL - 36 * - tab2.col2 FROM tab2
----
1368
936
972

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + col2 * col2 * col0 col2 FROM tab1
----
207872
737200
8745

query I rowsort
SELECT + 31 FROM tab2 AS cor0
----
31
31
31

query I rowsort
SELECT DISTINCT - col2 + col0 AS col2 FROM tab0
----
-9
34
7

query I rowsort
SELECT + col1 * + col2 + col2 * + col0 FROM tab1
----
1566
4218
8928

query I rowsort
SELECT + col0 * col2 - col0 AS col2 FROM tab0
----
0
7209
768

query I rowsort
SELECT ALL col0 + - cor0.col1 AS col2 FROM tab0 AS cor0
----
-2
-62
-62

onlyif mysql # use DIV operator for integer division
query I rowsort label-8753
SELECT DISTINCT + col1 DIV col2 AS col1 FROM tab0 AS cor0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-8753
SELECT DISTINCT + col1 / col2 AS col1 FROM tab0 AS cor0
----
1
2
97

query I rowsort
SELECT - col1 + col1 * col1 + - col2 AS col2 FROM tab1
----
33
596
60

onlyif mysql # use DIV operator for integer division
query I rowsort label-8755
SELECT ALL - col0 DIV + col0 + col0 col0 FROM tab1
----
2
63
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8755
SELECT ALL - col0 / + col0 + col0 col0 FROM tab1
----
2
63
79

query III rowsort
SELECT ALL * FROM tab2 WHERE - col1 NOT IN ( + tab2.col1 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

onlyif mysql # use DIV operator for integer division
query I rowsort label-8757
SELECT ALL col0 DIV - col1 AS col0 FROM tab2 AS cor0
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-8757
SELECT ALL col0 / - col1 AS col0 FROM tab2 AS cor0
----
-1
-4
0

query I rowsort
SELECT + col1 - col0 * + col0 FROM tab0 WHERE NOT ( - col1 ) BETWEEN NULL AND ( col1 )
----

query I rowsort
SELECT col1 * + col1 + - col2 * - col1 AS col1 FROM tab1
----
1417
2080
670

query III rowsort
SELECT * FROM tab0 WHERE ( col1 ) NOT IN ( + col0 + col1 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab0 AS cor0 WHERE col0 + col2 IN ( - col2 * col0 + col1 * + col1 )
----

query I rowsort
SELECT ALL col2 + - col1 * col1 FROM tab1 AS cor0
----
-43
-622
-73

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col0 + + col1 BETWEEN NULL AND col2 * - col1
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

query I rowsort
SELECT ALL + col0 - col0 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL col1 + tab0.col2 * + tab0.col2 - col2 FROM tab0
----
1142
6733
97

query I rowsort
SELECT ALL - col0 * + col0 * - col2 - tab0.col0 FROM tab0
----
1190
18984
649433

query I rowsort
SELECT - cor0.col0 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to c82df1de3cb666224690a83f3d790d79

query I rowsort
SELECT tab1.col2 * + col0 * + col0 AS col2 FROM tab1
----
233472
486
614400

query I rowsort
SELECT - tab0.col0 * + col0 + + col1 FROM tab0
----
-1128
-490
-7830

query I rowsort
SELECT DISTINCT col1 * + col1 - col2 AS col0 FROM tab0
----
7363
8199
9408

query I rowsort
SELECT ALL - col1 - - col2 FROM tab0
----
-53
-9
-96

query I rowsort
SELECT DISTINCT - col2 + - col0 * - cor0.col2 AS col0 FROM tab0 AS cor0
----
34
7216
759

query I rowsort
SELECT DISTINCT + col0 + col1 * + col2 FROM tab2 AS cor0
----
1612
725
844

onlyif mysql # use DIV operator for integer division
query I rowsort label-8774
SELECT ALL - - col2 * col2 DIV - col1 AS col1 FROM tab2 AS cor0
----
-11
-23
-84

skipif mysql # not compatible
query I rowsort label-8774
SELECT ALL - - col2 * col2 / - col1 AS col1 FROM tab2 AS cor0
----
-11
-23
-84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - col0 + col2 - - col2 col2 FROM tab2 cor0
----
2080
243
3078

query I rowsort
SELECT ALL - col1 * col1 + - col1 FROM tab1 AS cor0
----
-110
-182
-702

query I rowsort
SELECT + col2 * cor0.col1 + + col1 AS col0 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT col2 * - col2 - col1 * col0 AS col2 FROM tab0 cor0
----
-14823
-3153
-3396

query I rowsort
SELECT DISTINCT + col1 + - cor0.col0 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT + col0 + - col1 + col0 FROM tab1
----
-20
118
147

query I rowsort
SELECT col1 + + col2 * - col1 - col1 FROM tab0
----
-2838
-7462
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + col0 - col0 col1 FROM tab2
----
-26
-27
-38

query I rowsort
SELECT + tab0.col1 - + col1 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL tab2.col2 * col1 - col2 AS col2 FROM tab2
----
1508
608
810

onlyif mysql # use DIV operator for integer division
query I rowsort label-8785
SELECT ALL - col0 * col2 DIV col2 FROM tab0 AS cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-8785
SELECT ALL - col0 * col2 / col2 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT ALL - col1 + col2 * col0 FROM tab1 AS cor0
----
136
3638
7667

query I rowsort
SELECT + col2 * col0 + col0 * cor0.col2 * cor0.col0 FROM tab1 AS cor0
----
237120
622080
648

query I rowsort
SELECT + col1 * - cor0.col1 FROM tab0 cor0
----
-7396
-8281
-9409

query I rowsort
SELECT DISTINCT 36 AS col0 FROM tab0, tab2 AS cor0, tab1 cor1
----
36

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8790
SELECT ( - col1 ) * + CAST( 85 * - col0 AS SIGNED ) + + col2 FROM tab2
----
114193
18472
391196

skipif mysql # not compatible
query I rowsort label-8790
SELECT ( - col1 ) * + CAST ( 85 * - col0 AS INTEGER ) + + col2 FROM tab2
----
114193
18472
391196

query I rowsort
SELECT col2 * tab2.col1 AS col1 FROM tab2
----
1534
646
837

query I rowsort
SELECT - 16 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to be22ac76b42c6f7212ecc0ba7c89eb34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 + + col2 col2 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + col2 + - tab1.col0 AS col1 FROM tab1
----
-7
16
51

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8795
SELECT DISTINCT col2 * CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8795
SELECT DISTINCT col2 * CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8796
SELECT DISTINCT CAST( NULL AS DECIMAL ) FROM tab1, tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8796
SELECT DISTINCT CAST ( NULL AS REAL ) FROM tab1, tab2 cor0
----
NULL

query I rowsort
SELECT + col0 * + col0 + col0 FROM tab0
----
1260
600
8010

query I rowsort
SELECT - col0 * 31 FROM tab2 AS cor0
----
-217
-2418
-2449

query I rowsort
SELECT + col1 + - cor0.col1 * col2 + + col1 FROM tab1 AS cor0
----
-1222
-1352
-550

query I rowsort
SELECT DISTINCT col2 * + ( ( - col2 ) ) FROM tab0
----
-1
-1089
-6724

query I rowsort
SELECT - col0 * + 44 AS col2 FROM tab0
----
-1056
-1540
-3916

query I rowsort
SELECT DISTINCT ( + cor1.col0 ) FROM tab0, tab2 cor0, tab1 AS cor1
----
3
64
80

query I rowsort
SELECT + col1 * - ( + tab0.col0 ) AS col0 FROM tab0
----
-2064
-3395
-8099

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8804
SELECT ALL + - col2 * CAST( NULL AS SIGNED ) * + 77 + col1 * col2 col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8804
SELECT ALL + - col2 * CAST ( NULL AS INTEGER ) * + 77 + col1 * col2 col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 * col2 * + 52 FROM tab2
----
105456
156104
9828

query I rowsort
SELECT - col0 * + tab2.col2 - tab2.col2 FROM tab2
----
-2054
-216
-3040

query I rowsort
SELECT ( 8 ) AS col1 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 33069adc3c1142d31511ec88fcfa40af

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8808
SELECT - 25 + + col1 * - CAST( NULL AS SIGNED ) / + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8808
SELECT - 25 + + col1 * - CAST ( NULL AS INTEGER ) / + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + ( col0 ) * - ( - 73 * - col0 ) + - col0 FROM tab2 cor0
----
-3584
-444210
-455672

query I rowsort
SELECT ALL - ( + col2 ) * col2 AS col2 FROM tab1
----
-2916
-3249
-9216

query I rowsort
SELECT DISTINCT + col0 * - 18 AS col2 FROM tab0
----
-1602
-432
-630

query I rowsort
SELECT 89 + + col1 FROM tab1
----
102
115
99

query I rowsort
SELECT - 70 + + col2 * col1 AS col2 FROM tab2
----
1464
576
767

query I rowsort
SELECT ALL - ( - col0 ) * + col0 AS col1 FROM tab1
----
4096
6400
9

query I rowsort
SELECT + col1 * col0 - 15 AS col1 FROM tab2 cor0
----
1328
202
4587

onlyif mysql # use DIV operator for integer division
query I rowsort label-8816
SELECT - 68 DIV tab2.col1 AS col0 FROM tab2
----
-1
-2
-4

skipif mysql # not compatible
query I rowsort label-8816
SELECT - 68 / tab2.col1 AS col0 FROM tab2
----
-1
-2
-4

query I rowsort
SELECT ALL + col0 * + col2 - + col0 * 76 FROM tab2 AS cor0
----
-3002
-343
-3900

onlyif mysql # use DIV operator for integer division
query I rowsort label-8818
SELECT + - col2 + col2 DIV - col2 AS col2 FROM tab1 cor0
----
-55
-58
-97

skipif mysql # not compatible
query I rowsort label-8818
SELECT + - col2 + col2 / - col2 AS col2 FROM tab1 cor0
----
-55
-58
-97

query I rowsort
SELECT - + col2 + - col1 AS col2 FROM tab2 AS cor0
----
-55
-58
-85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - col1 col1 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT DISTINCT 56 + col2 + + 86 AS col2 FROM tab0 cor0
----
143
175
224

query I rowsort
SELECT ALL - col0 - - col1 * + ( - 9 ) AS col2 FROM tab1 AS cor0
----
-154
-197
-237

query I rowsort
SELECT col0 + - col2 * cor0.col2 AS col2 FROM tab1 AS cor0
----
-2913
-3185
-9136

query I rowsort
SELECT ALL cor0.col2 - cor0.col0 AS col2 FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT 53 + col2 FROM tab1 cor0
----
107
110
149

query I rowsort
SELECT DISTINCT + + col1 * + col2 + cor0.col0 AS col1 FROM tab2 AS cor0
----
1612
725
844

query I rowsort
SELECT + ( - col1 ) - col0 * + col1 AS col1 FROM tab2 cor0
----
-1360
-248
-4661

query I rowsort
SELECT DISTINCT col1 * col1 + - col2 AS col1 FROM tab0 AS cor0
----
7363
8199
9408

query I rowsort
SELECT ALL + 79 * + col1 AS col1 FROM tab2 AS cor0
----
1343
2449
4661

onlyif mysql # use DIV operator for integer division
query I rowsort label-8830
SELECT - col1 DIV tab0.col2 AS col0 FROM tab0
----
-1
-2
-97

skipif mysql # not compatible
query I rowsort label-8830
SELECT - col1 / tab0.col2 AS col0 FROM tab0
----
-1
-2
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 31 col2 FROM tab1
----
31
31
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + - col0 * 86 col1 FROM tab1
----
-204
-5447
-6784

query I rowsort
SELECT col0 * - cor0.col0 FROM tab1 cor0
----
-4096
-6400
-9

query I rowsort
SELECT col2 + - 94 FROM tab2 cor0
----
-56
-67
-68

query I rowsort
SELECT - col1 + - 89 * cor0.col1 * col2 AS col2 FROM tab1 AS cor0
----
-111085
-124982
-50740

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8836
SELECT col0 + - CAST( 13 + - col2 AS SIGNED ) AS col1 FROM tab2 cor0
----
104
21
91

skipif mysql # not compatible
query I rowsort label-8836
SELECT col0 + - CAST ( 13 + - col2 AS INTEGER ) AS col1 FROM tab2 cor0
----
104
21
91

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8837
SELECT DISTINCT + col0 - - CAST( - col0 * col0 AS SIGNED ) FROM tab2
----
-42
-6006
-6162

skipif mysql # not compatible
query I rowsort label-8837
SELECT DISTINCT + col0 - - CAST ( - col0 * col0 AS INTEGER ) FROM tab2
----
-42
-6006
-6162

query I rowsort
SELECT + + cor0.col2 + + ( col0 ) AS col0 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT + cor0.col0 * 8 + - 8 + col0 * col0 FROM tab1 AS cor0
----
25
4600
7032

query I rowsort
SELECT ALL - + col2 + - cor0.col2 * + 17 FROM tab0 AS cor0
----
-1476
-18
-594

query I rowsort
SELECT col0 - col0 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + ( 98 ) * + cor0.col2 FROM tab0 AS cor0
----
3234
8036
98

query I rowsort
SELECT - 21 * col0 + col2 * ( 46 ) AS col2 FROM tab2 AS cor0
----
-442
1095
89

query I rowsort
SELECT ALL - col1 * - cor0.col0 AS col2 FROM tab0 cor0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT ( + col2 ) AS col1 FROM tab1
----
54
57
96

query I rowsort
SELECT + cor1.col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63

query I rowsort
SELECT ( - col1 ) * col2 + col0 + col1 FROM tab2 AS cor0
----
-1397
-550
-799

onlyif mysql # use DIV operator for integer division
query I rowsort label-8848
SELECT 63 + + col1 + - col1 DIV + 56 FROM tab0 AS cor0
----
148
153
159

skipif mysql # not compatible
query I rowsort label-8848
SELECT 63 + + col1 + - col1 / + 56 FROM tab0 AS cor0
----
148
153
159

onlyif mysql # use DIV operator for integer division
query I rowsort label-8849
SELECT - 72 DIV + 60 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8849
SELECT - 72 / + 60 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT + 70 * - col2 * col2 AS col2 FROM tab1 AS cor0
----
-204120
-227430
-645120

query I rowsort
SELECT - 52 * + col1 AS col0 FROM tab1 AS cor0
----
-1352
-520
-676

query I rowsort
SELECT ALL - 50 * - 50 FROM tab1, tab1 AS cor0 CROSS JOIN tab0
----
27 values hashing to 82ce360234f28584efaf10de7b02f23f

query I rowsort
SELECT ( - 0 ) * - col0 * + 20 + - col2 FROM tab0
----
-1
-33
-82

onlyif mysql # use DIV operator for integer division
query I rowsort label-8854
SELECT col2 DIV col2 + col2 FROM tab0 AS cor0
----
2
34
83

skipif mysql # not compatible
query I rowsort label-8854
SELECT col2 / col2 + col2 FROM tab0 AS cor0
----
2
34
83

query I rowsort
SELECT DISTINCT - 99 + tab0.col0 * + col1 AS col2 FROM tab0
----
1965
3296
8000

query I rowsort
SELECT col0 - tab0.col2 * - col1 AS col0 FROM tab0
----
132
2862
7551

onlyif mysql # use DIV operator for integer division
query I rowsort label-8857
SELECT ALL + 90 DIV 96 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-8857
SELECT ALL + 90 / 96 col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT 7 FROM tab2 cor0
----
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-8859
SELECT col2 * + 51 + col2 * cor0.col0 * 1 + + col2 DIV - 12 AS col1 FROM tab0 AS cor0
----
11474
2473
86

skipif mysql # not compatible
query I rowsort label-8859
SELECT col2 * + 51 + col2 * cor0.col0 * 1 + + col2 / - 12 AS col1 FROM tab0 AS cor0
----
11474
2473
86

query I rowsort
SELECT ALL + + col1 + - 10 FROM tab2 AS cor0
----
21
49
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - col0 ) col0 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT - + ( - 13 ) * - cor0.col1 + + cor0.col2 AS col0 FROM tab2 AS cor0
----
-183
-376
-741

query I rowsort
SELECT + ( ( - cor0.col1 ) ) FROM tab2, tab2 AS cor0, tab0 cor1
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2

query I rowsort
SELECT ALL - + col2 * col0 AS col1 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT ALL - + ( col2 ) AS col0 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT ALL col2 * + col2 * 23 AS col1 FROM tab0 AS cor0
----
154652
23
25047

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8867
SELECT DISTINCT - col1 * col2 * CAST( 34 * - col0 + col0 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
1203840
138996
3294720

skipif mysql # not compatible
query I rowsort label-8867
SELECT DISTINCT - col1 * col2 * CAST ( 34 * - col0 + col0 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
1203840
138996
3294720

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 64 col2 FROM tab2
----
64

query I rowsort
SELECT + - cor0.col0 * cor0.col2 + col0 + col0 AS col2 FROM tab2 cor0
----
-175
-1872
-2844

query I rowsort
SELECT DISTINCT col1 * - col1 AS col2 FROM tab0 AS cor0
----
-7396
-8281
-9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-8871
SELECT ALL tab2.col2 DIV - 37 FROM tab2, tab1 cor0, tab0 AS cor1
----
27 values hashing to a46f44f30b2183508f32c16a79479cd9

skipif mysql # not compatible
query I rowsort label-8871
SELECT ALL tab2.col2 / - 37 FROM tab2, tab1 cor0, tab0 AS cor1
----
27 values hashing to a46f44f30b2183508f32c16a79479cd9

onlyif mysql # use DIV operator for integer division
query I rowsort label-8872
SELECT + col0 - + ( - 50 ) DIV + col0 FROM tab2 AS cor0
----
14
78
79

skipif mysql # not compatible
query I rowsort label-8872
SELECT + col0 - + ( - 50 ) / + col0 FROM tab2 AS cor0
----
14
78
79

query I rowsort
SELECT + 34 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039

query I rowsort
SELECT DISTINCT + - tab2.col0 + + cor0.col0 FROM tab2, tab1, tab2 AS cor0
----
-1
-71
-72
0
1
71
72

query I rowsort
SELECT DISTINCT col1 * + 90 AS col2 FROM tab1
----
1170
2340
900

query I rowsort
SELECT - col2 * - ( + col0 ) FROM tab1
----
162
3648
7680

query I rowsort
SELECT DISTINCT col2 * + cor0.col1 AS col1 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT tab2.col1 + - 51 * ( - col2 ) FROM tab2
----
1385
1408
1955

query I rowsort
SELECT - cor0.col0 * col0 + - col0 FROM tab0 cor0
----
-1260
-600
-8010

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * 55 col2 FROM tab0
----
1320
1925
4895

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0, tab2 cor1, tab2, tab2 AS cor2
----
3645 values hashing to f1fc3f16747aca82b54b2b759d1f5ea2

query I rowsort
SELECT DISTINCT - + col0 * + col2 + + col1 FROM tab1 AS cor0
----
-136
-3638
-7667

query I rowsort
SELECT DISTINCT + col0 + + col1 * col0 * - 86 FROM tab1 AS cor0
----
-54976
-6705
-89360

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( col2 ) + - col1 col0 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT ALL - + 1 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

query I rowsort
SELECT ALL + col0 - tab2.col1 FROM tab2
----
-24
19
62

query I rowsort
SELECT ALL col1 * + tab2.col2 + - col2 * ( col2 ) FROM tab2
----
-798
108
858

query I rowsort
SELECT - ( + col2 ) - + col1 FROM tab2 AS cor0
----
-55
-58
-85

query I rowsort
SELECT ALL - 52 AS col0 FROM tab2 AS cor0
----
-52
-52
-52

query I rowsort
SELECT + col0 * + col0 AS col0 FROM tab1 cor0
----
4096
6400
9

query I rowsort
SELECT DISTINCT - + col0 * col2 AS col1 FROM tab0 cor0
----
-35
-7298
-792

onlyif mysql # use DIV operator for integer division
query I rowsort label-8892
SELECT + ( cor0.col0 ) DIV col0 + cor0.col0 AS col0 FROM tab1 AS cor0
----
4
65
81

skipif mysql # not compatible
query I rowsort label-8892
SELECT + ( cor0.col0 ) / col0 + cor0.col0 AS col0 FROM tab1 AS cor0
----
4
65
81

query I rowsort
SELECT DISTINCT + - col0 - - col2 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT ALL - col2 * + cor0.col1 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT ALL - 80 FROM tab1, tab0, tab0 cor0
----
27 values hashing to 26dbcc98d4b4e864ffa31be685a5dfbd

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 99 col1 FROM tab1
----
-99
-99
-99

query I rowsort
SELECT - cor0.col0 AS col1 FROM tab2, tab1 cor0, tab2 cor1
----
27 values hashing to 729c1edda9332398299f39cd174ed840

query I rowsort
SELECT + 43 - - col0 AS col2 FROM tab0
----
132
67
78

query I rowsort
SELECT - tab0.col2 + + col0 * col1 FROM tab0
----
2031
3394
8017

query I rowsort
SELECT + 33 - + col1 FROM tab0
----
-53
-58
-64

query I rowsort
SELECT ALL ( col0 + + col2 ) AS col2 FROM tab1
----
121
176
57

query I rowsort
SELECT 2 FROM tab0, tab1 AS cor0, tab1 AS cor1, tab2 AS cor2
----
81 values hashing to 6d1be3904d6870ba21bc766b979d1110

query I rowsort
SELECT DISTINCT 11 AS col0 FROM tab1
----
11

query I rowsort
SELECT DISTINCT col1 * col1 * ( - tab1.col2 ) FROM tab1
----
-16224
-36504
-5700

query I rowsort
SELECT - col1 + + tab0.col1 * col1 AS col1 FROM tab0
----
7310
8190
9312

onlyif mysql # use DIV operator for integer division
query I rowsort label-8906
SELECT col2 + col2 DIV + ( - col1 ) col2 FROM tab0
----
1
33
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8906
SELECT col2 + col2 / + ( - col1 ) col2 FROM tab0
----
1
33
82

query I rowsort
SELECT + col0 + - col0 * 75 FROM tab1 AS cor0
----
-222
-4736
-5920

query I rowsort
SELECT col0 * cor0.col1 AS col1 FROM tab0 cor0
----
2064
3395
8099

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8909
SELECT ALL + col0 - - CAST( NULL AS SIGNED ) * - 73 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8909
SELECT ALL + col0 - - CAST ( NULL AS INTEGER ) * - 73 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col2 + + col2 AS col0 FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT ALL - cor0.col1 + + ( col0 ) AS col0 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT + col2 * - ( 99 ) AS col2 FROM tab1 AS cor0
----
-5346
-5643
-9504

query I rowsort
SELECT ALL cor0.col0 * - cor0.col0 FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT DISTINCT + - col1 + ( col1 * col1 ) AS col0 FROM tab1 AS cor0
----
156
650
90

query I rowsort
SELECT + col0 * + col2 AS col0 FROM tab0 cor0
----
35
7298
792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * - cor0.col1 - - 54 col2 FROM tab1 AS cor0
----
-1194
-1350
-516

query I rowsort
SELECT DISTINCT - + col1 * + col2 * - 37 FROM tab0 AS cor0
----
105006
276094
3589

query I rowsort
SELECT DISTINCT + col2 * - 45 FROM tab0 AS cor0
----
-1485
-3690
-45

query I rowsort
SELECT DISTINCT col0 * ( col0 + col2 ) FROM tab1 AS cor0
----
14080
171
7744

query I rowsort
SELECT DISTINCT + - cor0.col1 * col2 AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-8921
SELECT - + 59 DIV col0 + cor0.col2 - - cor0.col2 AS col2 FROM tab2 AS cor0
----
46
52
76

skipif mysql # not compatible
query I rowsort label-8921
SELECT - + 59 / col0 + cor0.col2 - - cor0.col2 AS col2 FROM tab2 AS cor0
----
46
52
76

query I rowsort
SELECT + col1 * - col2 + + 63 + - ( col1 ) * + 97 * + col1 FROM tab0 AS cor0
----
-720187
-810656
-912707

query I rowsort
SELECT DISTINCT + 9 + + col0 FROM tab0 AS cor0
----
33
44
98

query I rowsort
SELECT - - col2 + - col2 - ( ( col2 ) ) FROM tab2 cor0
----
-26
-27
-38

query I rowsort
SELECT ALL - col1 + col1 + - 50 AS col1 FROM tab2 AS cor0
----
-50
-50
-50

query I rowsort
SELECT + col2 * - 39 AS col0 FROM tab1 AS cor0
----
-2106
-2223
-3744

query I rowsort
SELECT cor0.col0 * col2 - + col0 * - col0 FROM tab0 AS cor0
----
1260
1368
15219

query I rowsort
SELECT - col0 + - cor0.col1 AS col0 FROM tab0 AS cor0
----
-110
-132
-180

query I rowsort
SELECT tab0.col2 FROM tab2, tab1, tab2 AS cor0, tab0
----
81 values hashing to e938777ebffc2e3e9c0cdfaa4f732c05

query I rowsort
SELECT + - col2 + - 7 AS col1 FROM tab0 cor0
----
-40
-8
-89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8931
SELECT - col1 * - CAST( + col2 + col0 * ( - col1 ) AS SIGNED ) FROM tab0 AS cor0
----
-174666
-329218
-729547

skipif mysql # not compatible
query I rowsort label-8931
SELECT - col1 * - CAST ( + col2 + col0 * ( - col1 ) AS INTEGER ) FROM tab0 AS cor0
----
-174666
-329218
-729547

query I rowsort
SELECT col0 * 97 * col2 AS col2 FROM tab0 AS cor0
----
3395
707906
76824

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8933
SELECT DISTINCT CAST( NULL AS SIGNED ) * 3 - cor1.col0 * CAST( NULL AS SIGNED ) AS col2 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-8933
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 3 - cor1.col0 * CAST ( NULL AS INTEGER ) AS col2 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
NULL

query I rowsort
SELECT DISTINCT + - 59 + + cor0.col2 AS col1 FROM tab0, tab2, tab2 AS cor0
----
-21
-32
-33

query I rowsort
SELECT DISTINCT + col0 * col1 + + 97 + 84 FROM tab0
----
2245
3576
8280

onlyif mysql # use DIV operator for integer division
query I rowsort label-8936
SELECT DISTINCT tab0.col1 DIV - col2 + col0 + + col1 FROM tab0
----
108
179
35

skipif mysql # not compatible
query I rowsort label-8936
SELECT DISTINCT tab0.col1 / - col2 + col0 + + col1 FROM tab0
----
108
179
35

onlyif mysql # use DIV operator for integer division
query I rowsort label-8937
SELECT ALL - col1 * - tab2.col2 + + tab2.col2 DIV - col0 AS col1 FROM tab2
----
1534
646
834

skipif mysql # not compatible
query I rowsort label-8937
SELECT ALL - col1 * - tab2.col2 + + tab2.col2 / - col0 AS col1 FROM tab2
----
1534
646
834

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - tab0.col0 IN ( col2 / - col0 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-8939
SELECT - col1 + col1 DIV - col0 FROM tab1
----
-10
-13
-34

skipif mysql # not compatible
query I rowsort label-8939
SELECT - col1 + col1 / - col0 FROM tab1
----
-10
-13
-34

query I rowsort
SELECT - col0 * col0 * + col0 FROM tab1 WHERE NOT col1 BETWEEN - col2 AND - col1
----
-262144
-27
-512000

query I rowsort
SELECT col1 + - col2 AS col0 FROM tab1
----
-28
-47
-83

query I rowsort
SELECT DISTINCT tab2.col0 + - col1 AS col1 FROM tab2
----
-24
19
62

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) NOT IN ( col1 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-8944
SELECT DISTINCT col0 DIV + tab1.col2 - - col2 AS col1 FROM tab1
----
54
58
96

skipif mysql # not compatible
query I rowsort label-8944
SELECT DISTINCT col0 / + tab1.col2 - - col2 AS col1 FROM tab1
----
54
58
96

query I rowsort
SELECT col1 + tab2.col0 + col2 * col2 FROM tab2 WHERE NOT NULL > NULL
----

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab2 WHERE col2 NOT IN ( col0 * col1 )
----
7
78
79

query I rowsort
SELECT DISTINCT + col2 * + col2 + col2 AS col1 FROM tab1
----
2970
3306
9312

query I rowsort
SELECT ALL - col1 - + tab2.col2 AS col0 FROM tab2
----
-55
-58
-85

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col1 NOT IN ( col0 )
----

query I rowsort
SELECT col2 + tab2.col0 + col1 FROM tab2 WHERE NOT NULL NOT IN ( col0 )
----

query I rowsort
SELECT ALL tab1.col1 + - col0 FROM tab1
----
-54
-67
23

query I rowsort
SELECT ALL - tab0.col1 * - col0 + - col1 AS col1 FROM tab0
----
1978
3298
8008

query I rowsort
SELECT ALL - col0 FROM tab0 WHERE NOT ( col2 ) NOT BETWEEN ( + col2 ) AND NULL
----

query I rowsort
SELECT col0 + + col0 FROM tab0 WHERE NOT NULL IN ( col0 )
----

query I rowsort
SELECT DISTINCT - col1 * - col2 + + col0 FROM tab0
----
132
2862
7551

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col0 / col1 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT - col1 / col1 FROM tab0 WHERE NULL NOT IN ( - col1 )
----

query I rowsort
SELECT ALL - tab2.col0 + + col2 FROM tab2
----
-41
-52
20

query I rowsort
SELECT + col0 - tab1.col1 AS col1 FROM tab1
----
-23
54
67

query I rowsort
SELECT ALL col2 - - col0 * + col0 * - col1 AS col2 FROM tab2
----
-106059
-1492
-358930

query I rowsort
SELECT ALL col1 * col1 * + col2 + col2 FROM tab0
----
244101
679124
9410

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-8963
SELECT ALL CAST( - col0 AS SIGNED ) * col0 AS col2 FROM tab1
----
-4096
-6400
-9

skipif mysql # not compatible
query I rowsort label-8963
SELECT ALL CAST ( - col0 AS INTEGER ) * col0 AS col2 FROM tab1
----
-4096
-6400
-9

query I rowsort
SELECT ( + 4 ) AS col1 FROM tab0
----
4
4
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 37 * col0 ) col2 FROM tab2
----
259
2886
2923

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 62 + - col0 col1 FROM tab2 cor0
----
-16
-17
55

onlyif mysql # use DIV operator for integer division
query I rowsort label-8967
SELECT col0 DIV cor0.col2 AS col1 FROM tab0 AS cor0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-8967
SELECT col0 / cor0.col2 AS col1 FROM tab0 AS cor0
----
0
1
35

query I rowsort
SELECT DISTINCT + + cor0.col1 * - 56 AS col0 FROM tab0 AS cor0
----
-4816
-5096
-5432

onlyif mysql # use DIV operator for integer division
query I rowsort label-8969
SELECT - col2 * col2 + - 73 DIV - cor0.col2 + col2 * cor0.col0 FROM tab1 cor0
----
-1536
-2753
400

skipif mysql # not compatible
query I rowsort label-8969
SELECT - col2 * col2 + - 73 / - cor0.col2 + col2 * cor0.col0 FROM tab1 cor0
----
-1536
-2753
400

onlyif mysql # use DIV operator for integer division
query I rowsort label-8970
SELECT + - col1 + 8 DIV 3 AS col2 FROM tab2 AS cor0
----
-15
-29
-57

skipif mysql # not compatible
query I rowsort label-8970
SELECT + - col1 + 8 / 3 AS col2 FROM tab2 AS cor0
----
-15
-29
-57

query I rowsort
SELECT DISTINCT + - col1 * col2 AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-8972
SELECT DISTINCT col0 * col0 DIV + col2 FROM tab0 AS cor0
----
1225
17
96

skipif mysql # not compatible
query I rowsort label-8972
SELECT DISTINCT col0 * col0 / + col2 FROM tab0 AS cor0
----
1225
17
96

query I rowsort
SELECT ALL + + col0 * - ( - 19 ) FROM tab0 AS cor0
----
1691
456
665

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 * - col0 col1 FROM tab2 cor0
----
189
2028
3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 84 col2 FROM tab0 AS cor0
----
84
84
84

query I rowsort
SELECT - col1 * col0 + col0 AS col2 FROM tab1 AS cor0
----
-576
-75
-960

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 + - col0 * - cor0.col1 col1 FROM tab2 AS cor0
----
1305
190
4576

query I rowsort
SELECT - 96 * + col1 * col2 AS col1 FROM tab2
----
-147264
-62016
-80352

query I rowsort
SELECT - 81 * col0 AS col1 FROM tab2
----
-567
-6318
-6399

query I rowsort
SELECT tab0.col1 + - tab0.col0 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 81d3107020f8e1cd31edca99c0a5480a

query I rowsort
SELECT - col0 + + 33 FROM tab0 AS cor0
----
-2
-56
9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8982
SELECT cor0.col2 * ( 86 * + col0 ) + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8982
SELECT cor0.col2 * ( 86 * + col0 ) + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col2 * - col2 + + col2 AS col1 FROM tab1 AS cor0
----
-2862
-3192
-9120

query I rowsort
SELECT + - col2 - col1 FROM tab0 AS cor0
----
-119
-173
-98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8985
SELECT DISTINCT + - col2 * CAST( NULL AS SIGNED ) + col2 AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8985
SELECT DISTINCT + - col2 * CAST ( NULL AS INTEGER ) + col2 AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL + ( tab1.col2 ) - + col0 * + col1 AS col1 FROM tab1
----
-24
-583
-944

query I rowsort
SELECT + tab0.col1 AS col2 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT ALL - 32 - - col2 FROM tab1
----
22
25
64

query I rowsort
SELECT - 3 * tab1.col2 * col0 AS col0 FROM tab1
----
-10944
-23040
-486

query I rowsort
SELECT 31 * + col1 + - col1 * + col0 AS col0 FROM tab2
----
-2773
-816
744

query I rowsort
SELECT + col2 * tab0.col0 + 26 AS col1 FROM tab0
----
61
7324
818

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8992
SELECT DISTINCT + col0 / + col0 - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8992
SELECT DISTINCT + col0 / + col0 - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT ALL col1 + - ( tab2.col0 ) * tab2.col1 AS col2 FROM tab2
----
-1326
-186
-4543

onlyif mysql # use DIV operator for integer division
query I rowsort label-8994
SELECT DISTINCT + col2 DIV 23 + col0 FROM tab2
----
79
8
80

skipif mysql # not compatible
query I rowsort label-8994
SELECT DISTINCT + col2 / 23 + col0 FROM tab2
----
79
8
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8995
SELECT - + col0 - CAST( col0 AS SIGNED ) FROM tab2 AS cor0
----
-14
-156
-158

skipif mysql # not compatible
query I rowsort label-8995
SELECT - + col0 - CAST ( col0 AS INTEGER ) FROM tab2 AS cor0
----
-14
-156
-158

query I rowsort
SELECT DISTINCT - cor0.col0 + + 87 FROM tab1 AS cor0
----
23
7
84

query I rowsort
SELECT DISTINCT col2 + 86 + - col0 AS col0 FROM tab2 AS cor0
----
106
34
45

query I rowsort
SELECT ALL cor0.col1 + - 45 * col1 FROM tab2 AS cor0
----
-1364
-2596
-748

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + - cor0.col2 * + col0 col2 FROM tab2 cor0
----
-2054
-216
-3040

query I rowsort
SELECT DISTINCT + col2 * + 87 + + col1 FROM tab1 AS cor0
----
4724
4969
8365

query I rowsort
SELECT + col2 * + col0 + col0 AS col2 FROM tab1 AS cor0
----
165
3712
7760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * - 52 col2 FROM tab1 AS cor0
----
-2808
-2964
-4992

query I rowsort
SELECT cor1.col1 + + 81 FROM tab0, tab0 cor0, tab0 AS cor1
----
27 values hashing to a9e72f82d9dff7a702bb99fef727e75a

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9004
SELECT CAST( NULL AS SIGNED ) + - ( - cor0.col2 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9004
SELECT CAST ( NULL AS INTEGER ) + - ( - cor0.col2 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-9005
SELECT 83 DIV + col1 FROM tab1 AS cor0
----
3
6
8

skipif mysql # not compatible
query I rowsort label-9005
SELECT 83 / + col1 FROM tab1 AS cor0
----
3
6
8

query I rowsort
SELECT + 55 * - col2 AS col2 FROM tab2 AS cor0
----
-1430
-1485
-2090

query I rowsort
SELECT DISTINCT 80 * col0 AS col1 FROM tab2 AS cor0
----
560
6240
6320

query I rowsort
SELECT ALL 40 - + col0 AS col1 FROM tab0 AS cor0
----
-49
16
5

query I rowsort
SELECT + + col0 - + cor0.col2 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT - col0 - col1 AS col2 FROM tab2 cor0
----
-137
-38
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-9011
SELECT DISTINCT + col2 - + col1 DIV + ( - cor0.col1 ) FROM tab1 AS cor0
----
55
58
97

skipif mysql # not compatible
query I rowsort label-9011
SELECT DISTINCT + col2 - + col1 / + ( - cor0.col1 ) FROM tab1 AS cor0
----
55
58
97

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-9013
SELECT - - cor0.col1 * col2 * - ( - col1 + + col1 * CAST( + col2 AS SIGNED ) ) col1 FROM tab1 AS cor0
----
-1541280
-1934712
-319200

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9013
SELECT - - cor0.col1 * col2 * - ( - col1 + + col1 * CAST ( + col2 AS INTEGER ) ) col1 FROM tab1 AS cor0
----
-1541280
-1934712
-319200

query I rowsort
SELECT ALL - - cor0.col0 * cor0.col1 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT ALL + cor0.col2 * - cor0.col1 AS col0 FROM tab1 AS cor0
----
-1248
-1404
-570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 22 * col1 col1 FROM tab0 AS cor0
----
1892
2002
2134

onlyif mysql # use DIV operator for integer division
query I rowsort label-9017
SELECT ALL col2 * col1 DIV ( cor0.col0 ) FROM tab1 AS cor0
----
15
468
8

skipif mysql # not compatible
query I rowsort label-9017
SELECT ALL col2 * col1 / ( cor0.col0 ) FROM tab1 AS cor0
----
15
468
8

query I rowsort
SELECT - col2 * col2 * - 95 FROM tab2 AS cor0
----
137180
64220
69255

query I rowsort
SELECT DISTINCT - col1 * cor0.col1 AS col2 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT + - cor0.col0 * + col1 AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT ALL col2 * col1 * ( - cor0.col1 * + col0 ) AS col2 FROM tab2 cor0
----
-181629
-7059468
-867578

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col2 * col1 col1 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT + cor0.col2 + cor0.col0 FROM tab1, tab2 AS cor0
----
104
117
34

query I rowsort
SELECT DISTINCT - col0 + - col2 - - col0 AS col1 FROM tab2 AS cor0
----
-26
-27
-38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 * col0 - col1 col1 FROM tab1 AS cor0
----
-17
4086
6387

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9026
SELECT ALL - tab2.col1 * - CAST( 62 AS SIGNED ) FROM tab2, tab0 cor0
----
9 values hashing to f18355edd105fcd558684f1dc1ba3a02

skipif mysql # not compatible
query I rowsort label-9026
SELECT ALL - tab2.col1 * - CAST ( 62 AS INTEGER ) FROM tab2, tab0 cor0
----
9 values hashing to f18355edd105fcd558684f1dc1ba3a02

query I rowsort
SELECT ALL 23 FROM tab2, tab2 AS cor0
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2

query I rowsort
SELECT ALL 14 * - col0 AS col0 FROM tab2 AS cor0
----
-1092
-1106
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * - col0 col2 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT ALL - cor0.col1 + + 64 FROM tab0 AS cor0
----
-22
-27
-33

query I rowsort
SELECT + col1 * ( - col1 ) + - col1 FROM tab2 AS cor0
----
-306
-3540
-992

query I rowsort
SELECT DISTINCT - - col0 + - col0 FROM tab0 cor0
----
0

query I rowsort
SELECT ALL - 60 AS col2 FROM tab0 AS cor0
----
-60
-60
-60

query I rowsort
SELECT DISTINCT - - ( - cor0.col2 ) FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT ALL ( - col1 ) + col1 * col0 FROM tab1 AS cor0
----
1027
52
630

query I rowsort
SELECT ALL col2 + 64 * col2 FROM tab2 AS cor0
----
1690
1755
2470

query I rowsort
SELECT + col0 + col2 * + col0 FROM tab0
----
70
7387
816

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9038
SELECT ALL CAST( NULL AS SIGNED ) * + col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9038
SELECT ALL CAST ( NULL AS INTEGER ) * + col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 * 34 + col2 FROM tab0
----
1155
2870
35

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9040
SELECT ALL CAST( + 30 AS SIGNED ) FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 6c98840ed134c765d56389f4150075f0

skipif mysql # not compatible
query I rowsort label-9040
SELECT ALL CAST ( + 30 AS INTEGER ) FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 6c98840ed134c765d56389f4150075f0

query I rowsort
SELECT - 31 + - 13 * col0 FROM tab0
----
-1188
-343
-486

query I rowsort
SELECT DISTINCT - cor0.col2 AS col0 FROM tab1, tab0 AS cor0, tab1 cor1
----
-1
-33
-82

onlyif mysql # use DIV operator for integer division
query I rowsort label-9043
SELECT ALL col2 DIV + col0 AS col2 FROM tab2 AS cor0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-9043
SELECT ALL col2 / + col0 AS col2 FROM tab2 AS cor0
----
0
0
3

skipif mysql # not compatible
query I rowsort
SELECT - CAST ( 54 AS REAL ) * col2 + 9 * col2 AS col0 FROM tab2
----
-1170
-1215
-1710

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9045
SELECT - col0 * 88 + col2 * - CAST( col0 * + col2 + col0 AS SIGNED ) FROM tab0
----
-29040
-3150
-613566

skipif mysql # not compatible
query I rowsort label-9045
SELECT - col0 * 88 + col2 * - CAST ( col0 * + col2 + col0 AS INTEGER ) FROM tab0
----
-29040
-3150
-613566

query I rowsort
SELECT ( - tab1.col2 ) FROM tab1, tab0 AS cor0
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba

query IIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0, tab0 AS cor0 WHERE NOT NULL IN ( tab1.col0 )
----

query I rowsort
SELECT DISTINCT - col2 * - ( + ( + cor0.col1 ) + + 58 ) FROM tab0 AS cor0
----
12218
155
4752

onlyif mysql # use DIV operator for integer division
query I rowsort label-9049
SELECT ALL cor0.col1 DIV + ( - col0 ) + CAST( col0 + cor0.col0 AS SIGNED ) FROM tab2 AS cor0
----
10
156
158

skipif mysql # not compatible
query I rowsort label-9049
SELECT ALL cor0.col1 / + ( - col0 ) + CAST ( col0 + cor0.col0 AS INTEGER ) FROM tab2 AS cor0
----
10
156
158

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor2.col2 col0 FROM tab0, tab2 AS cor0, tab2 AS cor1, tab2 cor2
----
81 values hashing to c4e6b1f1d28e731664a15a6f7cda4da9

query I rowsort
SELECT ( - ( + col1 ) ) FROM tab0
----
-86
-91
-97

query I rowsort
SELECT + + 12 * cor0.col0 FROM tab0 AS cor0
----
1068
288
420

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9053
SELECT ALL + cor0.col2 + - col2 * CAST( - col2 AS SIGNED ) col0 FROM tab2 AS cor0
----
1482
702
756

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9053
SELECT ALL + cor0.col2 + - col2 * CAST ( - col2 AS INTEGER ) col0 FROM tab2 AS cor0
----
1482
702
756

query I rowsort
SELECT 14 AS col1 FROM tab1 AS cor0
----
14
14
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 * cor0.col0 col0 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT + cor0.col0 * cor0.col1 * 99 FROM tab0 AS cor0
----
204336
336105
801801

query I rowsort
SELECT 33 AS col1 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 76da8bc7cae18ecf856438f872430c80

query I rowsort
SELECT ALL - col2 * - col1 FROM tab2 cor0
----
1534
646
837

query I rowsort
SELECT ALL col0 + - col0 AS col1 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9060
SELECT ALL CAST( NULL AS SIGNED ) FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-9060
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT ALL ( col0 ) * col1 AS col2 FROM tab2 cor0
----
1343
217
4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-9062
SELECT col0 DIV 52 AS col1 FROM tab2 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-9062
SELECT col0 / 52 AS col1 FROM tab2 AS cor0
----
0
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-9063
SELECT DISTINCT col2 DIV tab2.col0 FROM tab2
----
0
3

skipif mysql # not compatible
query I rowsort label-9063
SELECT DISTINCT col2 / tab2.col0 FROM tab2
----
0
3

query I rowsort
SELECT - col0 + + col2 * - col0 FROM tab2 AS cor0
----
-196
-2106
-3081

query I rowsort
SELECT ALL + tab2.col2 * + tab2.col0 * + 54 FROM tab2
----
10206
109512
162108

query I rowsort
SELECT DISTINCT col2 + + cor0.col1 * + 75 * - cor0.col0 FROM tab0 cor0
----
-154767
-254624
-607343

query I rowsort
SELECT DISTINCT + col2 + - col2 + + ( col2 ) AS col1 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT col0 * 5 + col0 * - col1 * col1 AS col2 FROM tab1 AS cor0
----
-13120
-2013
-6080

query I rowsort
SELECT ALL + + col0 * + col2 * col1 AS col0 FROM tab1 AS cor0
----
36480
4212
99840

query I rowsort
SELECT DISTINCT col1 * + 52 FROM tab0
----
4472
4732
5044

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 96 - + ( + col2 ) * col0 col2 FROM tab1 AS cor0
----
-3552
-66
-7584

onlyif mysql # use DIV operator for integer division
query I rowsort label-9072
SELECT ALL 3 * col2 DIV col1 col2 FROM tab1 AS cor0
----
17
22
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9072
SELECT ALL 3 * col2 / col1 col2 FROM tab1 AS cor0
----
17
22
6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9073
SELECT DISTINCT CAST( NULL AS SIGNED ) * col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9073
SELECT DISTINCT CAST ( NULL AS INTEGER ) * col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + - ( - col0 ) + + col2 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT ALL + - cor0.col2 * + 84 AS col0 FROM tab0 AS cor0
----
-2772
-6888
-84

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9076
SELECT ALL col1 * + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9076
SELECT ALL col1 * + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-9077
SELECT ALL - col1 DIV - ( - col1 ) FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9077
SELECT ALL - col1 / - ( - col1 ) FROM tab1
----
-1
-1
-1

query I rowsort
SELECT ALL col2 * - col0 + + col2 AS col0 FROM tab0
----
-34
-7216
-759

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 30 + + col2 col0 FROM tab0 AS cor0
----
112
31
63

query I rowsort
SELECT 50 + col1 * - 66 * col0 AS col2 FROM tab2 cor0
----
-14272
-303682
-88588

onlyif mysql # use DIV operator for integer division
query I rowsort label-9081
SELECT + + col1 DIV + col2 + + ( 44 ) + col2 * 43 AS col1 FROM tab0 AS cor0
----
1465
184
3571

skipif mysql # not compatible
query I rowsort label-9081
SELECT + + col1 / + col2 + + ( 44 ) + col2 * 43 AS col1 FROM tab0 AS cor0
----
1465
184
3571

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 24 col1 FROM tab0
----
24

query I rowsort
SELECT col1 * 49 FROM tab2
----
1519
2891
833

onlyif mysql # use DIV operator for integer division
query I rowsort label-9084
SELECT ALL - CAST( col1 AS SIGNED ) + + col0 DIV + col0 FROM tab0
----
-85
-90
-96

skipif mysql # not compatible
query I rowsort label-9084
SELECT ALL - CAST ( col1 AS INTEGER ) + + col0 / + col0 FROM tab0
----
-85
-90
-96

query I rowsort
SELECT + + ( + cor1.col2 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

query I rowsort
SELECT + 41 + col0 AS col2 FROM tab0 AS cor0
----
130
65
76

query I rowsort
SELECT - col2 * - col2 + - 25 FROM tab2 AS cor0
----
1419
651
704

onlyif mysql # use DIV operator for integer division
query I rowsort label-9088
SELECT 29 DIV col1 + ( - col2 ) FROM tab2 AS cor0
----
-26
-27
-37

skipif mysql # not compatible
query I rowsort label-9088
SELECT 29 / col1 + ( - col2 ) FROM tab2 AS cor0
----
-26
-27
-37

query I rowsort
SELECT DISTINCT - - col0 * ( cor0.col1 ) + + 96 + col1 * col0 FROM tab2 AS cor0
----
2782
530
9300

query I rowsort
SELECT - + col0 + 88 FROM tab2 AS cor0
----
10
81
9

query I rowsort
SELECT DISTINCT + ( col2 ) + cor0.col1 FROM tab2 AS cor0
----
55
58
85

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9092
SELECT ALL 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-9092
SELECT ALL CAST ( NULL AS INTEGER ) col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9093
SELECT + CAST( - col1 AS SIGNED ) + - col1 FROM tab1 AS cor0
----
-20
-26
-52

skipif mysql # not compatible
query I rowsort label-9093
SELECT + CAST ( - col1 AS INTEGER ) + - col1 FROM tab1 AS cor0
----
-20
-26
-52

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9094
SELECT ALL CAST( NULL AS SIGNED ) * 32 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9094
SELECT ALL CAST ( NULL AS INTEGER ) * 32 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + col0 + - cor0.col2 * col0 + + 9 FROM tab1 cor0
----
-156
-3703
-7751

query I rowsort
SELECT ALL - 53 * col0 + - cor0.col0 AS col2 FROM tab2 AS cor0
----
-378
-4212
-4266

onlyif mysql # use DIV operator for integer division
query I rowsort label-9097
SELECT + + col0 + - col2 DIV cor0.col2 AS col1 FROM tab0 AS cor0
----
23
34
88

skipif mysql # not compatible
query I rowsort label-9097
SELECT + + col0 + - col2 / cor0.col2 AS col1 FROM tab0 AS cor0
----
23
34
88

onlyif mysql # use DIV operator for integer division
query I rowsort label-9098
SELECT col2 DIV 5 - + col2 * col1 * - tab2.col2 FROM tab2
----
22604
24555
39889

skipif mysql # not compatible
query I rowsort label-9098
SELECT col2 / 5 - + col2 * col1 * - tab2.col2 FROM tab2
----
22604
24555
39889

query I rowsort
SELECT col1 * + 47 FROM tab1 AS cor0
----
1222
470
611

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9100
SELECT col1 + - ( tab2.col2 ) + - CAST( NULL AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9100
SELECT col1 + - ( tab2.col2 ) + - CAST ( NULL AS REAL ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - + ( - col0 ) * - col2 AS col2 FROM tab2 AS cor0
----
-189
-2028
-3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-9102
SELECT ALL + cor0.col2 * + cor0.col2 + + 36 DIV cor0.col1 AS col0 FROM tab1 AS cor0
----
2917
3252
9218

skipif mysql # not compatible
query I rowsort label-9102
SELECT ALL + cor0.col2 * + cor0.col2 + + 36 / cor0.col1 AS col0 FROM tab1 AS cor0
----
2917
3252
9218

query I rowsort
SELECT - col2 * 55 FROM tab1 AS cor0
----
-2970
-3135
-5280

query I rowsort
SELECT DISTINCT - cor0.col0 + col2 FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT ALL + 9 FROM tab0, tab2 AS cor0
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b

query I rowsort
SELECT + col0 * - ( - 25 + col2 ) AS col2 FROM tab1 AS cor0
----
-2048
-5680
-87

query I rowsort
SELECT DISTINCT - col2 * - col2 + cor0.col2 * col2 FROM tab0 AS cor0
----
13448
2
2178

query I rowsort
SELECT col2 * 21 AS col1 FROM tab0 AS cor0
----
1722
21
693

query I rowsort
SELECT ALL - col2 * 43 + 74 AS col0 FROM tab1 AS cor0
----
-2248
-2377
-4054

onlyif mysql # use DIV operator for integer division
query I rowsort label-9110
SELECT ALL + - col1 DIV col0 FROM tab0 cor0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-9110
SELECT ALL + - col1 / col0 FROM tab0 cor0
----
-1
-2
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * ( + col0 ) col1 FROM tab1 AS cor0
----
162
3648
7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + - 7 * - cor0.col1 col2 FROM tab0 AS cor0
----
626
714
726

query I rowsort
SELECT ALL - col1 * - col1 AS col1 FROM tab0 cor0
----
7396
8281
9409

query I rowsort
SELECT col2 * 31 FROM tab0 AS cor0
----
1023
2542
31

query I rowsort
SELECT ALL - - ( col1 ) * + cor0.col2 + ( cor0.col1 ) FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT cor0.col0 * - cor0.col2 AS col1 FROM tab0 AS cor0
----
-35
-7298
-792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 - col1 * col0 col2 FROM tab1 AS cor0
----
-1136
-132
-697

query I rowsort
SELECT ALL 21 * + col2 + - col1 FROM tab2 AS cor0
----
487
536
781

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 + col1 * col1 - col0 col0 FROM tab2 AS cor0
----
131
3325
947

query I rowsort
SELECT DISTINCT - - col2 + cor0.col0 * col1 AS col0 FROM tab1 AS cor0
----
1136
132
697

query I rowsort
SELECT DISTINCT col1 * + col0 * col1 + - 30 AS col2 FROM tab0 AS cor0
----
177474
329285
736979

query I rowsort
SELECT + 54 * - col1 FROM tab1 AS cor0
----
-1404
-540
-702

query I rowsort
SELECT ALL - 76 * - 22 + col0 FROM tab1 cor0
----
1675
1736
1752

query I rowsort
SELECT DISTINCT - 28 + cor0.col0 FROM tab1, tab1 AS cor0
----
-25
36
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( col1 ) * cor0.col1 col1 FROM tab1 AS cor0
----
-100
-169
-676

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 * + col2 * - col0 col1 FROM tab0 AS cor0
----
-1225
-19008
-649522

query I rowsort
SELECT DISTINCT col0 * + cor0.col0 * + col1 AS col1 FROM tab2 AS cor0
----
106097
1519
358956

query I rowsort
SELECT 13 * 71 FROM tab1 AS cor0
----
923
923
923

query I rowsort
SELECT DISTINCT + cor0.col2 * + col1 AS col2 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT - 61 + - col1 * col2 AS col2 FROM tab0 AS cor0
----
-158
-2899
-7523

query I rowsort
SELECT - - col0 * - col2 - - 83 * - col2 FROM tab2 cor0
----
-2430
-4186
-6156

query I rowsort
SELECT + 21 * col1 AS col1 FROM tab0 AS cor0
----
1806
1911
2037

query I rowsort
SELECT + - tab2.col2 + - tab2.col2 - tab2.col2 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to d840ebe99474250e378b315a1b73ceed

query I rowsort
SELECT + cor0.col2 + + col0 * col2 AS col2 FROM tab2 AS cor0
----
2054
216
3040

query I rowsort
SELECT + + 60 + + col2 FROM tab0 AS cor0
----
142
61
93

query I rowsort
SELECT ALL - col1 + col1 * col0 AS col1 FROM tab0 AS cor0
----
1978
3298
8008

query I rowsort
SELECT DISTINCT + 8 * col1 FROM tab0 cor0
----
688
728
776

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 56 col0 FROM tab0
----
-56

query I rowsort
SELECT col1 * - 27 AS col2 FROM tab0 AS cor0
----
-2322
-2457
-2619

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + col0 col0 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT ALL col0 + tab1.col0 + + 72 AS col2 FROM tab1
----
200
232
78

query I rowsort
SELECT col0 * + col2 * - 37 - col1 * - col2 * ( col0 ) AS col0 FROM tab2
----
-1134
-60040
44616

query I rowsort
SELECT col0 * col1 + col1 FROM tab1 AS cor0
----
104
1053
650

query I rowsort
SELECT DISTINCT - col1 * + col0 + + col2 * col2 * - ( + col2 * col0 ) + + col0 AS col2 FROM tab0 AS cor0
----
-3395
-49079762
-864528

query I rowsort
SELECT + col0 * 92 FROM tab0 cor0
----
2208
3220
8188

query I rowsort
SELECT DISTINCT col0 * + 70 AS col2 FROM tab0 AS cor0
----
1680
2450
6230

query I rowsort
SELECT ALL tab1.col1 + + col1 * + col1 * + col1 + col0 AS col0 FROM tab1
----
1074
17605
2290

query I rowsort
SELECT ALL + tab2.col0 + tab2.col1 AS col1 FROM tab2
----
137
38
96

query I rowsort
SELECT ALL + col2 + + col1 + col1 FROM tab0
----
195
205
264

query I rowsort
SELECT - 13 * + col1 + + col2 * col2 FROM tab2 cor0
----
-91
1223
326

query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2 AS cor0 CROSS JOIN tab2, tab2 cor1
----
972 values hashing to a47a9db07c7de4927c7c28efb4cd13f2

query I rowsort
SELECT - cor0.col0 + col1 * col2 * - 39 FROM tab0 AS cor0
----
-110706
-291107
-3818

query I rowsort
SELECT ALL - 27 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 0259a67676b131a4843853be4811b775

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 84 col0 FROM tab0
----
84
84
84

query I rowsort
SELECT DISTINCT + 16 AS col0 FROM tab1, tab2, tab2 AS cor0
----
16

query I rowsort
SELECT DISTINCT ( + col2 ) * + col2 AS col1 FROM tab1
----
2916
3249
9216

query I rowsort
SELECT + 85 * tab1.col2 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 69cde891f4c644123839f531ef39348c

query I rowsort
SELECT ALL - 81 + - cor0.col0 * col1 FROM tab2 AS cor0
----
-1424
-298
-4683

query I rowsort
SELECT ALL + ( + cor0.col1 ) * ( - col2 ) + + col0 * ( - col2 ) FROM tab1 AS cor0
----
-1566
-4218
-8928

query I rowsort
SELECT DISTINCT + col2 + col1 * ( - col2 ) FROM tab2 AS cor0
----
-1508
-608
-810

query I rowsort
SELECT ALL col0 + ( - ( col1 ) ) * - ( col1 ) AS col2 FROM tab1
----
164
249
679

query I rowsort
SELECT + col1 + - cor0.col1 - + ( + col1 + ( 36 ) ) FROM tab1 cor0
----
-46
-49
-62

query I rowsort
SELECT DISTINCT - col0 * - 40 * col0 FROM tab0 AS cor0
----
23040
316840
49000

query I rowsort
SELECT - + cor0.col1 - cor0.col1 FROM tab2 AS cor0
----
-118
-34
-62

query I rowsort
SELECT ALL - + col0 + + 85 * ( col2 ) FROM tab2 AS cor0
----
2132
2288
3151

query I rowsort
SELECT DISTINCT col2 * + col1 + col0 AS col2 FROM tab2 AS cor0
----
1612
725
844

query I rowsort
SELECT ALL 28 * + 64 + col0 - + ( col0 ) AS col1 FROM tab1 AS cor0
----
1792
1792
1792

query I rowsort
SELECT DISTINCT - - col0 + + col0 * col0 * 96 AS col2 FROM tab1 AS cor0
----
393280
614480
867

query I rowsort
SELECT ALL + col0 * col1 + - col2 FROM tab2 AS cor0
----
1305
190
4576

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9170
SELECT DISTINCT + - ( col2 ) + cor0.col0 + - CAST( 41 AS SIGNED ) FROM tab2 AS cor0
----
-61
0
11

skipif mysql # not compatible
query I rowsort label-9170
SELECT DISTINCT + - ( col2 ) + cor0.col0 + - CAST ( 41 AS INTEGER ) FROM tab2 AS cor0
----
-61
0
11

query I rowsort
SELECT DISTINCT cor0.col1 * + 66 + + cor0.col2 AS col2 FROM tab1 cor0
----
1770
717
954

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9172
SELECT + CAST( NULL AS SIGNED ) + col0 / cor0.col1 col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9172
SELECT + CAST ( NULL AS INTEGER ) + col0 / cor0.col1 col0 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 * - cor0.col0 - cor0.col0 * - 61 AS col0 FROM tab2 AS cor0
----
-1326
-1422
378

onlyif mysql # use DIV operator for integer division
query I rowsort label-9174
SELECT col2 DIV col1 + col0 col1 FROM tab1 AS cor0
----
5
69
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9174
SELECT col2 / col1 + col0 col1 FROM tab1 AS cor0
----
5
69
87

query I rowsort
SELECT ALL col0 * - col1 + col1 + + col1 AS col0 FROM tab2
----
-1309
-155
-4484

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9176
SELECT - - CAST( - col2 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-9176
SELECT - - CAST ( - col2 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT - + ( 60 ) FROM tab0 AS cor0
----
-60
-60
-60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 + col2 * col1 * col1 col2 FROM tab2 AS cor0
----
11061
25954
90584

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9179
SELECT DISTINCT + CAST( NULL AS SIGNED ) * col1 AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9179
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * col1 AS col1 FROM tab2
----
NULL

query I rowsort
SELECT + 38 * 19 AS col1 FROM tab1
----
722
722
722

query I rowsort
SELECT - tab1.col2 * col1 * tab1.col1 AS col0 FROM tab1
----
-16224
-36504
-5700

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9182
SELECT + CAST( NULL AS SIGNED ) * + 12 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9182
SELECT + CAST ( NULL AS INTEGER ) * + 12 AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-9183
SELECT - + cor0.col2 + - col1 * col2 DIV + 13 AS col1 FROM tab0 AS cor0
----
-251
-656
-8

skipif mysql # not compatible
query I rowsort label-9183
SELECT - + cor0.col2 + - col1 * col2 / + 13 AS col1 FROM tab0 AS cor0
----
-251
-656
-8

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9184
SELECT CAST( NULL AS SIGNED ) / 60 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9184
SELECT CAST ( NULL AS INTEGER ) / 60 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-9185
SELECT + col1 + col0 DIV col2 AS col0 FROM tab0 AS cor0
----
132
86
92

skipif mysql # not compatible
query I rowsort label-9185
SELECT + col1 + col0 / col2 AS col0 FROM tab0 AS cor0
----
132
86
92

query I rowsort
SELECT - ( + col1 ) + cor0.col2 * 86 FROM tab1 AS cor0
----
4618
4892
8243

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9187
SELECT + - col1 * col2 + + CAST( col1 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-1475
-629
-806

skipif mysql # not compatible
query I rowsort label-9187
SELECT + - col1 * col2 + + CAST ( col1 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-1475
-629
-806

query I rowsort
SELECT 27 + + col1 * + 84 FROM tab1 cor0
----
1119
2211
867

query I rowsort
SELECT ALL tab1.col2 AS col2 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT ALL + - cor0.col2 * col1 AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570

onlyif mysql # use DIV operator for integer division
query I rowsort label-9191
SELECT - - col0 * - col0 * col2 + + col0 DIV - col0 AS col1 FROM tab0 AS cor0
----
-1226
-19009
-649523

skipif mysql # not compatible
query I rowsort label-9191
SELECT - - col0 * - col0 * col2 + + col0 / - col0 AS col1 FROM tab0 AS cor0
----
-1226
-19009
-649523

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col1 col0 FROM tab0, tab1 cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

query I rowsort
SELECT + tab1.col1 + col1 FROM tab1
----
20
26
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-9194
SELECT + col0 DIV - 30 AS col2 FROM tab2 AS cor0
----
-2
-2
0

skipif mysql # not compatible
query I rowsort label-9194
SELECT + col0 / - 30 AS col2 FROM tab2 AS cor0
----
-2
-2
0

query I rowsort
SELECT col0 + col2 * - ( - col1 ) FROM tab0 cor0
----
132
2862
7551

query I rowsort
SELECT - col0 * col1 + ( - col2 ) AS col2 FROM tab0 AS cor0
----
-2097
-3396
-8181

query I rowsort
SELECT ( col0 ) + + col2 FROM tab2 AS cor0
----
104
117
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * - 56 + + 23 * + col0 col1 FROM tab1 AS cor0
----
237
5056
6320

query I rowsort
SELECT + tab0.col1 * 97 * col1 FROM tab0
----
717412
803257
912673

query I rowsort
SELECT DISTINCT + 29 FROM tab1, tab1 cor0, tab0 AS cor1
----
29

query I rowsort
SELECT col1 * 77 + col2 FROM tab2
----
1347
2414
4569

query I rowsort
SELECT DISTINCT cor0.col0 * 44 FROM tab1 AS cor0
----
132
2816
3520

query I rowsort
SELECT - col1 * + 80 AS col2 FROM tab0 AS cor0
----
-6880
-7280
-7760

query I rowsort
SELECT ALL - - col1 + + ( - 19 ) FROM tab2 cor0
----
-2
12
40

query I rowsort
SELECT col0 + ( + 28 ) * + col2 * ( col0 + + col2 ) AS col0 FROM tab1 AS cor0
----
193180
473168
86187

query I rowsort
SELECT col1 * 84 AS col1 FROM tab1 AS cor0
----
1092
2184
840

query I rowsort
SELECT ALL - + col0 + - 70 FROM tab0 AS cor0
----
-105
-159
-94

onlyif mysql # use DIV operator for integer division
query I rowsort label-9208
SELECT DISTINCT - + col0 DIV + cor0.col1 + col0 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-9208
SELECT DISTINCT - + col0 / + cor0.col1 + col0 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT ALL - ( col1 ) * col2 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT + - ( - 75 ) * col1 FROM tab0 AS cor0
----
6450
6825
7275

query I rowsort
SELECT ALL - col0 * 37 - col0 * ( + col0 ) AS col1 FROM tab2 cor0
----
-308
-8970
-9164

query I rowsort
SELECT DISTINCT - - col2 + ( + col2 ) * 91 AS col0 FROM tab2 AS cor0
----
2392
2484
3496

query I rowsort
SELECT ALL + 2 + + 79 AS col0 FROM tab0 cor0
----
81
81
81

query I rowsort
SELECT + ( 33 ) * + col0 AS col2 FROM tab2 AS cor0
----
231
2574
2607

query I rowsort
SELECT - ( - 44 ) + + col0 * - 27 AS col0 FROM tab1 AS cor0
----
-1684
-2116
-37

query I rowsort
SELECT ALL ( col2 ) * - col2 FROM tab2 AS cor0
----
-1444
-676
-729

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 76 col0 FROM tab0 AS cor0
----
76
76
76

query I rowsort
SELECT DISTINCT - col2 * + col1 FROM tab2 cor0
----
-1534
-646
-837

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - CAST ( col0 AS REAL ) + cor0.col2 FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT + 74 * 7 AS col0 FROM tab1 AS cor0
----
518
518
518

query I rowsort
SELECT - col1 + col1 * - col2 FROM tab1
----
-1261
-1430
-580

query I rowsort
SELECT col2 + - ( col0 + col0 ) FROM tab2
----
-120
-130
13

query I rowsort
SELECT ALL col1 * ( col2 ) * col2 FROM tab2
----
22599
24548
39884

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9224
SELECT DISTINCT CAST( NULL AS SIGNED ) col1 FROM tab2, tab0, tab0 cor0, tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9224
SELECT DISTINCT CAST ( NULL AS INTEGER ) col1 FROM tab2, tab0, tab0 cor0, tab1
----
NULL

query I rowsort
SELECT ALL + - 85 AS col2 FROM tab1 AS cor0
----
-85
-85
-85

query I rowsort
SELECT DISTINCT 96 * - col1 FROM tab0 AS cor0
----
-8256
-8736
-9312

query I rowsort
SELECT - 61 + - col1 AS col2 FROM tab1 cor0
----
-71
-74
-87

query I rowsort
SELECT + 55 + + col2 FROM tab1 AS cor0
----
109
112
151

query I rowsort
SELECT - col2 + + cor0.col1 * 2 * + 78 AS col0 FROM tab1 cor0
----
1503
1932
4002

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9230
SELECT CAST( NULL AS DECIMAL ) * - col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9230
SELECT CAST ( NULL AS REAL ) * - col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - ( - col2 ) FROM tab0
----
1
33
82

query I rowsort
SELECT ALL - 62 * + col1 FROM tab1 AS cor0
----
-1612
-620
-806

onlyif mysql # use DIV operator for integer division
query I rowsort label-9233
SELECT ALL 56 DIV - col0 FROM tab0 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-9233
SELECT ALL 56 / - col0 FROM tab0 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( col1 AS REAL ) FROM tab1
----
10
13
26

onlyif mysql # use DIV operator for integer division
query I rowsort label-9235
SELECT + 86 - - col1 DIV + ( + col0 ) AS col1 FROM tab1
----
86
86
94

skipif mysql # not compatible
query I rowsort label-9235
SELECT + 86 - - col1 / + ( + col0 ) AS col1 FROM tab1
----
86
86
94

query I rowsort
SELECT DISTINCT - col2 + col2 * - col2 FROM tab0
----
-1122
-2
-6806

query I rowsort
SELECT 62 * - cor0.col0 FROM tab0 AS cor0
----
-1488
-2170
-5518

query I rowsort
SELECT + - cor0.col2 + col0 + - 13 AS col2 FROM tab0 AS cor0
----
-22
-6
21

query I rowsort
SELECT DISTINCT - col2 + col1 AS col2 FROM tab2
----
-21
33
4

query I rowsort
SELECT ALL 44 + - col2 AS col2 FROM tab0
----
-38
11
43

query I rowsort
SELECT - col1 + 42 AS col0 FROM tab0 AS cor0
----
-44
-49
-55

onlyif mysql # use DIV operator for integer division
query I rowsort label-9242
SELECT ALL + col2 + col2 DIV - col2 AS col2 FROM tab0 AS cor0
----
0
32
81

skipif mysql # not compatible
query I rowsort label-9242
SELECT ALL + col2 + col2 / - col2 AS col2 FROM tab0 AS cor0
----
0
32
81

query I rowsort
SELECT DISTINCT - col1 + 3 AS col2 FROM tab0 AS cor0
----
-83
-88
-94

query I rowsort
SELECT + + col2 * cor0.col2 AS col0 FROM tab2 cor0
----
1444
676
729

query I rowsort
SELECT - + col1 + col0 * - col1 * col0 + - ( - col0 ) * + col0 * - 8 AS col0 FROM tab1 cor0
----
-134413
-332
-73738

query I rowsort
SELECT ALL + 87 * col2 + + col2 FROM tab0
----
2904
7216
88

query I rowsort
SELECT DISTINCT tab1.col1 + col2 * - col0 FROM tab1
----
-136
-3638
-7667

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9248
SELECT DISTINCT CAST( NULL AS SIGNED ) + 93 AS col2 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-9248
SELECT DISTINCT CAST ( NULL AS INTEGER ) + 93 AS col2 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
NULL

query I rowsort
SELECT ALL ( col1 ) * + ( col0 ) + col1 FROM tab0
----
2150
3492
8190

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9250
SELECT + CAST( - ( tab2.col0 ) AS DECIMAL ) + CAST( NULL AS SIGNED ) AS col1 FROM tab2, tab0 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-9250
SELECT + CAST ( - ( tab2.col0 ) AS REAL ) + CAST ( NULL AS INTEGER ) AS col1 FROM tab2, tab0 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT col0 + ( - col1 ) + col1 AS col0 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT DISTINCT + + cor0.col2 * + cor0.col2 + 25 * col0 + - ( col2 ) FROM tab0 cor0
----
1656
875
8867

query I rowsort
SELECT - cor0.col2 * col0 + cor0.col0 AS col0 FROM tab0 AS cor0
----
-7209
-768
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-9254
SELECT DISTINCT + cor0.col2 + + col1 * ( + col0 ) DIV + col2 FROM tab1 AS cor0
----
106
55
68

skipif mysql # not compatible
query I rowsort label-9254
SELECT DISTINCT + cor0.col2 + + col1 * ( + col0 ) / + col2 FROM tab1 AS cor0
----
106
55
68

query I rowsort
SELECT ALL - - col2 + col1 AS col0 FROM tab0 cor0
----
119
173
98

query I rowsort
SELECT - - col2 * - ( - col1 ) FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT DISTINCT - cor0.col0 + ( - cor0.col0 + col2 * + cor0.col2 ) AS col2 FROM tab0 AS cor0
----
-69
1041
6546

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9258
SELECT col0 + CAST( col1 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
110
132
180

skipif mysql # not compatible
query I rowsort label-9258
SELECT col0 + CAST ( col1 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT ALL + col0 * col1 + + cor0.col2 FROM tab2 AS cor0
----
1381
244
4628

query I rowsort
SELECT ALL - tab0.col0 - col1 AS col2 FROM tab0
----
-110
-132
-180

query I rowsort
SELECT ALL - ( ( + col2 ) ) * col2 * 14 - - col0 FROM tab2
----
-10199
-20137
-9386

query I rowsort
SELECT DISTINCT - cor0.col1 * + 66 - col1 FROM tab2 AS cor0
----
-1139
-2077
-3953

query I rowsort
SELECT ALL col1 * cor0.col0 AS col1 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT ALL col0 * + 79 FROM tab0 AS cor0
----
1896
2765
7031

query I rowsort
SELECT DISTINCT - + 83 FROM tab0 AS cor0
----
-83

query I rowsort
SELECT DISTINCT + 34 * 71 AS col1 FROM tab2 AS cor0
----
2414

query I rowsort
SELECT - + 83 * 77 AS col2 FROM tab0 AS cor0
----
-6391
-6391
-6391

query I rowsort
SELECT ALL + + col1 + cor0.col2 AS col1 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT ALL + cor0.col1 * col1 + ( cor0.col1 ) AS col1 FROM tab2 AS cor0
----
306
3540
992

query I rowsort
SELECT ALL - - col0 * + cor0.col0 + - col2 FROM tab0 AS cor0
----
1224
543
7839

query I rowsort
SELECT DISTINCT - - col1 + col1 * ( - 48 ) + cor0.col1 FROM tab0 AS cor0
----
-3956
-4186
-4462

query I rowsort
SELECT + cor2.col1 AS col2 FROM tab2, tab2 cor0, tab2 AS cor1, tab0, tab2 AS cor2
----
243 values hashing to 42b04a30acb32fcd35bf97afdee87fe6

query I rowsort
SELECT - + 48 * col2 + + col2 FROM tab2 AS cor0
----
-1222
-1269
-1786

query I rowsort
SELECT ALL - tab2.col2 * + col0 + col0 + - col1 FROM tab2
----
-2009
-213
-2940

query I rowsort
SELECT col0 + col2 * - col2 * + col1 AS col0 FROM tab0
----
-611795
-62
-93630

onlyif mysql # use DIV operator for integer division
query I rowsort label-9276
SELECT DISTINCT + col0 DIV col1 FROM tab1
----
0
6

skipif mysql # not compatible
query I rowsort label-9276
SELECT DISTINCT + col0 / col1 FROM tab1
----
0
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + tab1.col1 * - col2 + + col0 col2 FROM tab1
----
-1072
-1347
-449

onlyif mysql # use DIV operator for integer division
query I rowsort label-9278
SELECT + tab0.col1 DIV tab0.col0 FROM tab0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-9278
SELECT + tab0.col1 / tab0.col0 FROM tab0
----
1
2
3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( col2 + col1 ) IN ( col0 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

query I rowsort
SELECT DISTINCT col1 + - col2 + col1 * col0 AS col1 FROM tab2
----
1322
221
4635

query I rowsort
SELECT DISTINCT + col1 + + col2 AS col0 FROM tab1
----
109
67
80

query I rowsort
SELECT + col0 * col2 + - col0 AS col1 FROM tab1
----
159
3584
7600

query I rowsort
SELECT col0 AS col0 FROM tab0 WHERE NOT ( - col2 ) NOT IN ( - col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL <= col1 + - tab1.col1 * + col2 + col1
----

query I rowsort
SELECT ALL - col2 + + col0 - - col0 FROM tab0
----
15
69
96

query I rowsort
SELECT + col1 * col1 * - col1 FROM tab2
----
-205379
-29791
-4913

query I rowsort
SELECT col2 * + col2 - tab1.col2 * - col0 AS col0 FROM tab1
----
16896
3078
6897

query I rowsort
SELECT DISTINCT - tab2.col1 + + col1 AS col1 FROM tab2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + col0 * - col2 + + col2 col1 FROM tab1
----
-105
-3527
-7504

query I rowsort
SELECT ALL - tab2.col1 * col0 AS col2 FROM tab2
----
-1343
-217
-4602

query I rowsort
SELECT col1 * - col2 * tab2.col1 FROM tab2
----
-10982
-25947
-90506

query I rowsort
SELECT col2 * - col1 * - col2 AS col1 FROM tab0
----
611884
93654
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * - col1 col2 FROM tab2
----
289
3481
961

onlyif mysql # use DIV operator for integer division
query I rowsort label-9294
SELECT ALL col2 DIV col2 + - col0 FROM tab0
----
-23
-34
-88

skipif mysql # not compatible
query I rowsort label-9294
SELECT ALL col2 / col2 + - col0 FROM tab0
----
-23
-34
-88

onlyif mysql # use DIV operator for integer division
query I rowsort label-9295
SELECT ALL - col2 DIV - col0 + + col2 * + tab1.col0 col0 FROM tab1
----
180
3648
7681

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9295
SELECT ALL - col2 / - col0 + + col2 * + tab1.col0 col0 FROM tab1
----
180
3648
7681

query I rowsort
SELECT + + col2 * cor0.col2 + + cor0.col0 + col0 FROM tab2 AS cor0
----
1602
743
832

onlyif mysql # use DIV operator for integer division
query I rowsort label-9297
SELECT DISTINCT + col2 + - tab0.col2 DIV col2 AS col2 FROM tab0
----
0
32
81

skipif mysql # not compatible
query I rowsort label-9297
SELECT DISTINCT + col2 + - tab0.col2 / col2 AS col2 FROM tab0
----
0
32
81

query I rowsort
SELECT col0 * + col0 + col0 FROM tab0
----
1260
600
8010

query I rowsort
SELECT + col0 * + col2 + col1 * - col0 AS col2 FROM tab0
----
-1272
-3360
-801

query I rowsort
SELECT DISTINCT col0 + tab0.col2 AS col2 FROM tab0
----
171
36
57

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col1 NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT col1 * + col2 + tab2.col0 FROM tab2
----
1612
725
844

query I rowsort
SELECT ALL col2 + - col2 * col2 AS col0 FROM tab0
----
-1056
-6642
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-9304
SELECT - cor0.col1 * col1 DIV - col2 - col2 * + col2 FROM tab1 AS cor0
----
-2904
-3248
-9215

skipif mysql # not compatible
query I rowsort label-9304
SELECT - cor0.col1 * col1 / - col2 - col2 * + col2 FROM tab1 AS cor0
----
-2904
-3248
-9215

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * tab0.col1 col0 FROM tab0 WHERE NOT NULL BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - col1 + col1 AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL tab2.col1 * col1 * + col1 AS col1 FROM tab2 WHERE NOT col0 / col2 + col1 * - col0 <> NULL
----

query I rowsort
SELECT ALL - col2 AS col1 FROM tab2 WHERE NULL < col0 * col1
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + col1 * col0 ) IN ( col1 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

query I rowsort
SELECT - col1 * tab0.col0 + + col0 FROM tab0
----
-2040
-3360
-8010

query I rowsort
SELECT DISTINCT - col2 * col0 - col1 FROM tab0
----
-132
-7389
-878

query I rowsort
SELECT ALL tab1.col1 * + col1 * col1 FROM tab1
----
1000
17576
2197

query I rowsort
SELECT - col1 * col2 - tab0.col1 FROM tab0
----
-194
-2924
-7553

query I rowsort
SELECT DISTINCT + col2 * - col1 AS col0 FROM tab0
----
-2838
-7462
-97

query I rowsort
SELECT ALL - tab2.col2 * tab2.col1 + - col2 FROM tab2
----
-1560
-684
-864

query I rowsort
SELECT - col1 - + col0 * col2 FROM tab0
----
-132
-7389
-878

query I rowsort
SELECT ALL - col0 / - col2 - + col1 / col0 FROM tab2 WHERE NOT NULL NOT BETWEEN ( col0 - col1 * + col2 ) AND col0 + - col1
----

query III rowsort
SELECT ALL * FROM tab0 WHERE + col0 + - col1 IN ( col2 + - col0 )
----

query I rowsort
SELECT ALL col1 * + col1 * col2 FROM tab2 AS cor0
----
10982
25947
90506

query I rowsort
SELECT ALL col2 + col2 * - col0 AS col2 FROM tab1 cor0
----
-108
-3591
-7584

query I rowsort
SELECT + col2 - - col1 * + col1 AS col2 FROM tab1 AS cor0
----
157
265
730

query I rowsort
SELECT DISTINCT col1 + - col0 + + cor0.col1 * cor0.col2 FROM tab0 AS cor0
----
159
2900
7464

query I rowsort
SELECT col1 FROM tab1 WHERE NULL NOT BETWEEN NULL AND - col1 - + col1
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col0 < + col2
----
3
26
54
80
13
96

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( - col2 * col2 ) >= ( - col1 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

query I rowsort
SELECT ALL + col0 * cor0.col1 * col2 AS col1 FROM tab2 cor0 WHERE - col2 - + col2 = col1
----

query I rowsort
SELECT ALL 7 AS col1 FROM tab1, tab0 AS cor0, tab0 cor1
----
27 values hashing to 4e72e9e33dacac757f48d0ce46094607

onlyif mysql # use DIV operator for integer division
query I rowsort label-9329
SELECT DISTINCT + - 96 DIV - col2 AS col0 FROM tab0 AS cor0
----
1
2
96

skipif mysql # not compatible
query I rowsort label-9329
SELECT DISTINCT + - 96 / - col2 AS col0 FROM tab0 AS cor0
----
1
2
96

query I rowsort
SELECT DISTINCT + col1 * col2 - + col0 AS col0 FROM tab1 cor0
----
1168
1401
506

onlyif mysql # use DIV operator for integer division
query I rowsort label-9331
SELECT col2 DIV - 4 FROM tab2 AS cor0
----
-6
-6
-9

skipif mysql # not compatible
query I rowsort label-9331
SELECT col2 / - 4 FROM tab2 AS cor0
----
-6
-6
-9

onlyif mysql # use DIV operator for integer division
query I rowsort label-9332
SELECT ALL + cor1.col1 DIV 43 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

skipif mysql # not compatible
query I rowsort label-9332
SELECT ALL + cor1.col1 / 43 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

query I rowsort
SELECT col1 * - col0 + 96 AS col2 FROM tab0
----
-1968
-3299
-8003

query I rowsort
SELECT cor0.col2 * ( + cor0.col2 ) AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 8a9dbff4c424879f0bb94abfbb1a134b

query I rowsort
SELECT DISTINCT ( ( + col0 ) ) * tab0.col2 - - ( - col2 ) AS col1 FROM tab0
----
34
7216
759

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9336
SELECT DISTINCT - col1 + - col1 - + tab0.col2 * - CAST( - 87 AS SIGNED ) FROM tab0
----
-281
-3043
-7316

skipif mysql # not compatible
query I rowsort label-9336
SELECT DISTINCT - col1 + - col1 - + tab0.col2 * - CAST ( - 87 AS INTEGER ) FROM tab0
----
-281
-3043
-7316

query I rowsort
SELECT + col0 * col2 - + col0 FROM tab0 AS cor0
----
0
7209
768

query I rowsort
SELECT tab1.col2 - + col0 FROM tab1
----
-7
16
51

query I rowsort
SELECT col0 * - 15 * col2 + 98 FROM tab0
----
-109372
-11782
-427

query I rowsort
SELECT ALL + col0 - 32 * col0 AS col2 FROM tab2
----
-217
-2418
-2449

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + 89 * col0 col0 FROM tab1
----
364544
569600
801

query I rowsort
SELECT - - 14 * col2 FROM tab0 cor0
----
1148
14
462

query I rowsort
SELECT DISTINCT ( col1 ) * - col1 * 48 FROM tab1 cor0
----
-32448
-4800
-8112

query I rowsort
SELECT ALL 28 AS col2 FROM tab2
----
28
28
28

query I rowsort
SELECT DISTINCT - col0 * - col1 * - col2 FROM tab1
----
-36480
-4212
-99840

query I rowsort
SELECT - - 90 AS col0 FROM tab2 AS cor0
----
90
90
90

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 cor0, tab0 cor1, tab1 AS cor2
----
972 values hashing to 7942394eb7766dfb9ea95b7805ff595d

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9348
SELECT CAST( NULL AS SIGNED ) FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-9348
SELECT CAST ( NULL AS INTEGER ) FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT ( - col2 ) * ( ( col1 ) ) AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT - col2 + ( + 41 ) AS col2 FROM tab2 cor0
----
14
15
3

query I rowsort
SELECT - + cor0.col2 * col2 AS col0 FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT col0 * ( col1 ) + col1 FROM tab1 AS cor0
----
104
1053
650

query I rowsort
SELECT - - col2 * + 73 FROM tab0 AS cor0
----
2409
5986
73

query I rowsort
SELECT ALL - - col2 * - col0 - col0 AS col1 FROM tab2 cor0
----
-196
-2106
-3081

query I rowsort
SELECT DISTINCT col1 + ( - 64 ) * col0 FROM tab0 AS cor0
----
-1450
-2143
-5605

onlyif mysql # use DIV operator for integer division
query I rowsort label-9356
SELECT DISTINCT + col1 + - cor0.col0 DIV - 25 col2 FROM tab2 AS cor0
----
20
31
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9356
SELECT DISTINCT + col1 + - cor0.col0 / - 25 col2 FROM tab2 AS cor0
----
20
31
62

query I rowsort
SELECT ALL 93 + + 95 AS col1 FROM tab2
----
188
188
188

query I rowsort
SELECT - 51 + + cor0.col1 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 7fb076950aa31379d97103704ded4005

query I rowsort
SELECT ALL col1 + - 70 FROM tab2
----
-11
-39
-53

query I rowsort
SELECT ALL col0 * - 36 + + col1 * tab1.col0 AS col2 FROM tab1
----
-1664
-1840
-30

query I rowsort
SELECT - + cor0.col1 * cor0.col0 AS col0 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT + 86 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19

query I rowsort
SELECT 83 * ( col0 * + col2 + 56 ) AS col0 FROM tab1 AS cor0
----
18094
307432
642088

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 11 col2 FROM tab1 AS cor0
----
-11
-11
-11

query I rowsort
SELECT DISTINCT + + col1 + col2 AS col2 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT ALL - 39 FROM tab2 AS cor0
----
-39
-39
-39

query I rowsort
SELECT ALL + 27 * col0 FROM tab1 AS cor0
----
1728
2160
81

query I rowsort
SELECT DISTINCT cor0.col1 * - cor0.col2 + - col2 AS col2 FROM tab2 AS cor0
----
-1560
-684
-864

query I rowsort
SELECT ALL - col2 + + col1 * 18 FROM tab2 AS cor0
----
1036
268
531

query I rowsort
SELECT + col1 + - col2 * + cor0.col2 AS col2 FROM tab1 AS cor0
----
-2890
-3239
-9203

query I rowsort
SELECT DISTINCT cor0.col2 + col0 * + 62 AS col1 FROM tab0 AS cor0
----
1521
2171
5600

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9372
SELECT ALL col1 * - col2 * - CAST( NULL AS SIGNED ) + col0 * + col1 + + CAST( + col2 AS SIGNED ) * col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9372
SELECT ALL col1 * - col2 * - CAST ( NULL AS INTEGER ) + col0 * + col1 + + CAST ( + col2 AS INTEGER ) * col1 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 37 + + cor0.col0 * 6 AS col2 FROM tab0 AS cor0
----
107
173
497

query I rowsort
SELECT ALL + col1 - cor0.col0 AS col0 FROM tab2 cor0
----
-19
-62
24

query I rowsort
SELECT DISTINCT col0 + cor0.col0 * col0 FROM tab2 AS cor0
----
56
6162
6320

query I rowsort
SELECT DISTINCT 76 AS col1 FROM tab2, tab2 AS cor0
----
76

query I rowsort
SELECT - - cor0.col1 * - col1 AS col2 FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT ALL - col1 * - cor0.col2 + col0 AS col0 FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT DISTINCT - - col0 * col1 * col2 + col2 AS col2 FROM tab0 AS cor0
----
3396
664200
68145

query I rowsort
SELECT ALL - - col1 - - col0 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT DISTINCT col1 * col0 + + 64 * - 89 * col2 + + 76 FROM tab0 AS cor0
----
-185828
-2225
-458897

query I rowsort
SELECT ALL - col1 * col0 - + col2 AS col1 FROM tab0 cor0
----
-2097
-3396
-8181

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * + col0 col2 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT + col0 * + col2 * 0 - col2 * ( + col2 + col1 ) * - 82 FROM tab1 cor0
----
313158
354240
858048

onlyif mysql # use DIV operator for integer division
query I rowsort label-9385
SELECT - col0 DIV - col1 + + 89 * + col2 AS col1 FROM tab2 AS cor0
----
2315
2403
3386

skipif mysql # not compatible
query I rowsort label-9385
SELECT - col0 / - col1 + + 89 * + col2 AS col1 FROM tab2 AS cor0
----
2315
2403
3386

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + 3 col1 FROM tab1 cor0
----
13
16
29

query I rowsort
SELECT cor0.col2 + - col1 AS col0 FROM tab2 cor0
----
-33
-4
21

query I rowsort
SELECT ALL + col0 + - cor0.col1 * + col1 * + col0 FROM tab1 AS cor0
----
-13440
-2025
-6336

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 + - 2 - + col0 * - col2 col1 FROM tab1 AS cor0
----
163
3710
7758

query I rowsort
SELECT DISTINCT + col2 + - 0 AS col1 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT - col2 * - cor0.col1 * col2 + cor0.col0 AS col2 FROM tab2 AS cor0
----
22606
24627
39962

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 * - col2 * 33 col0 FROM tab2 AS cor0
----
21318
27621
50622

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9393
SELECT - col0 + CAST( NULL AS SIGNED ) * col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9393
SELECT - col0 + CAST ( NULL AS INTEGER ) * col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - ( - col1 ) col0 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT ALL - 98 + col2 AS col0 FROM tab2 AS cor0
----
-60
-71
-72

query I rowsort
SELECT ALL + col0 + - col0 * cor0.col1 FROM tab2 cor0
----
-1264
-210
-4524

query I rowsort
SELECT DISTINCT - ( col1 ) * col1 AS col0 FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT ALL - - cor0.col1 * col0 * col2 + + 14 AS col2 FROM tab2 AS cor0
----
119666
51048
5873

query I rowsort
SELECT 75 * - col1 AS col0 FROM tab1 cor0
----
-1950
-750
-975

query I rowsort
SELECT ALL - col2 * ( col2 ) FROM tab1
----
-2916
-3249
-9216

query I rowsort
SELECT DISTINCT - 54 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-54

query I rowsort
SELECT DISTINCT 26 FROM tab1, tab0 cor0, tab1 AS cor1
----
26

query I rowsort
SELECT ALL + col0 * 0 * col0 AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT + ( - col0 ) - + col2 AS col0 FROM tab1 AS cor0
----
-121
-176
-57

query I rowsort
SELECT ALL - + 54 * col1 * - col2 FROM tab1 AS cor0
----
30780
67392
75816

query I rowsort
SELECT + col2 * ( col2 ) + 87 AS col2 FROM tab0 AS cor0
----
1176
6811
88

query I rowsort
SELECT ALL + ( + col0 ) + col2 * + col0 AS col1 FROM tab0 AS cor0
----
70
7387
816

query I rowsort
SELECT ALL + + 45 + + col2 AS col1 FROM tab0 AS cor0
----
127
46
78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9409
SELECT ALL + ( + col2 ) * - col2 * - CAST( col2 AS SIGNED ) + + col2 * - col0 FROM tab0 AS cor0
----
-34
35145
544070

skipif mysql # not compatible
query I rowsort label-9409
SELECT ALL + ( + col2 ) * - col2 * - CAST ( col2 AS INTEGER ) + + col2 * - col0 FROM tab0 AS cor0
----
-34
35145
544070

query I rowsort
SELECT ALL + col1 * 92 * col1 AS col2 FROM tab0 AS cor0
----
680432
761852
865628

query I rowsort
SELECT 13 * col1 * - cor0.col1 AS col1 FROM tab0 cor0
----
-107653
-122317
-96148

query I rowsort
SELECT ALL + 75 AS col2 FROM tab1 AS cor0
----
75
75
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 col0 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 86 * + col0 col0 FROM tab1 AS cor0
----
258
5504
6880

onlyif mysql # use DIV operator for integer division
query I rowsort label-9415
SELECT DISTINCT - cor0.col2 + + 79 DIV + cor0.col0 FROM tab2 AS cor0
----
-16
-25
-37

skipif mysql # not compatible
query I rowsort label-9415
SELECT DISTINCT - cor0.col2 + + 79 / + cor0.col0 FROM tab2 AS cor0
----
-16
-25
-37

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9416
SELECT - - CAST( + col0 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
7
78
79

skipif mysql # not compatible
query I rowsort label-9416
SELECT - - CAST ( + col0 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT col0 - + tab1.col1 AS col2 FROM tab1
----
-23
54
67

query I rowsort
SELECT ALL + col1 * + col0 - col0 AS col0 FROM tab0
----
2040
3360
8010

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9419
SELECT DISTINCT + CAST( NULL AS SIGNED ) / col2 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9419
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / col2 AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + 74 * 96 FROM tab1
----
7104
7104
7104

query I rowsort
SELECT col0 + - 60 + col0 AS col2 FROM tab1
----
-54
100
68

query I rowsort
SELECT DISTINCT + tab2.col1 * - col1 + - tab2.col2 + col1 AS col0 FROM tab2
----
-310
-3448
-957

query I rowsort
SELECT ALL tab1.col0 + - cor0.col1 FROM tab1, tab0 AS cor0
----
9 values hashing to fa8ce7c049222449af270fb84251971e

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9424
SELECT + ( col0 ) + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9424
SELECT + ( col0 ) + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT cor0.col0 * cor0.col2 AS col1 FROM tab0 cor0
----
35
7298
792

query I rowsort
SELECT DISTINCT + + col0 * 92 - col2 AS col2 FROM tab2 cor0
----
617
7150
7230

query I rowsort
SELECT ALL col0 * col2 + + 25 * - col2 + col1 FROM tab0 cor0
----
107
53
5339

onlyif mysql # use DIV operator for integer division
query I rowsort label-9428
SELECT DISTINCT col1 DIV col1 - - col0 AS col2 FROM tab2
----
79
8
80

skipif mysql # not compatible
query I rowsort label-9428
SELECT DISTINCT col1 / col1 - - col0 AS col2 FROM tab2
----
79
8
80

query I rowsort
SELECT ALL col1 * + ( - 24 + tab0.col0 ) AS col0 FROM tab0
----
0
1067
5915

query I rowsort
SELECT ALL - col0 * - col2 * - col2 + col0 - col0 AS col0 FROM tab0 AS cor0
----
-26136
-35
-598436

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9431
SELECT + 40 * - cor1.col0 - + CAST( NULL AS DECIMAL ) FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-9431
SELECT + 40 * - cor1.col0 - + CAST ( NULL AS REAL ) FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT ALL - col1 * - 41 + col1 * + col2 * col2 AS col2 FROM tab2 AS cor0
----
23870
25245
42303

query I rowsort
SELECT DISTINCT + + col0 - + col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT col2 * - col0 + - col2 AS col1 FROM tab1 AS cor0
----
-216
-3705
-7776

query I rowsort
SELECT DISTINCT + col0 * + 91 + col0 FROM tab1 AS cor0
----
276
5888
7360

query I rowsort
SELECT ALL - - cor0.col1 + + cor0.col1 AS col0 FROM tab2 AS cor0
----
118
34
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab0.col0 - tab0.col1 col2 FROM tab0, tab0 AS cor0, tab1, tab0 AS cor1
----
-110
-132
-180

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9438
SELECT + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-9438
SELECT + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT 78 AS col0 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to d8e5ef4db3419fc251e82c50ba04e048

query I rowsort
SELECT col1 * col0 * ( col0 ) FROM tab2 AS cor0
----
106097
1519
358956

onlyif mysql # use DIV operator for integer division
query I rowsort label-9441
SELECT - + col2 + - col2 DIV - ( cor0.col1 ) FROM tab2 AS cor0
----
-26
-27
-36

skipif mysql # not compatible
query I rowsort label-9441
SELECT - + col2 + - col2 / - ( cor0.col1 ) FROM tab2 AS cor0
----
-26
-27
-36

query I rowsort
SELECT ALL + ( + cor0.col1 ) FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT ALL col0 + + col2 * + col0 FROM tab1 AS cor0
----
165
3712
7760

query I rowsort
SELECT + + ( - col0 ) + col0 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT 74 FROM tab1 cor0
----
74
74
74

query I rowsort
SELECT DISTINCT - 68 + + col0 AS col1 FROM tab0 AS cor0
----
-33
-44
21

query I rowsort
SELECT col0 * - 96 AS col0 FROM tab1 AS cor0
----
-288
-6144
-7680

query I rowsort
SELECT ALL - - cor1.col2 + - cor1.col0 AS col1 FROM tab1, tab0 AS cor0, tab1 AS cor1, tab0, tab2 AS cor2
----
243 values hashing to cd1d3b27116f04e18b284046840fa8d8

query I rowsort
SELECT DISTINCT 93 AS col2 FROM tab1 AS cor0
----
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 50 * + col0 col1 FROM tab1 AS cor0
----
150
3200
4000

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9451
SELECT ALL CAST( NULL AS SIGNED ) FROM tab0, tab0 AS cor0, tab1 AS cor1, tab1 AS cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

skipif mysql # not compatible
query I rowsort label-9451
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab0, tab0 AS cor0, tab1 AS cor1, tab1 AS cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

query I rowsort
SELECT ALL - 11 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 05cc989122d7724c7abefaba9625ef3d

query I rowsort
SELECT DISTINCT + ( - col2 ) * - col0 FROM tab0
----
35
7298
792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + 10 * col2 col2 FROM tab2
----
286
297
418

onlyif mysql # use DIV operator for integer division
query I rowsort label-9455
SELECT + 97 * - col2 DIV col2 AS col2 FROM tab1 AS cor0
----
-97
-97
-97

skipif mysql # not compatible
query I rowsort label-9455
SELECT + 97 * - col2 / col2 AS col2 FROM tab1 AS cor0
----
-97
-97
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-9456
SELECT ALL 94 DIV col2 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-9456
SELECT ALL 94 / col2 FROM tab1
----
0
1
1

query I rowsort
SELECT - - 10 * col2 FROM tab0 AS cor0
----
10
330
820

query I rowsort
SELECT ALL + 94 AS col0 FROM tab2, tab1 AS cor0, tab1 AS cor1, tab1 cor2
----
81 values hashing to d876bb0ae813b06a5ee497ecacf37ee6

query I rowsort
SELECT ALL + 62 + cor0.col2 AS col0 FROM tab2 AS cor0
----
100
88
89

query I rowsort
SELECT DISTINCT - ( + col1 ) * - col0 * col0 + - cor0.col1 AS col1 FROM tab2 AS cor0
----
106080
1488
358897

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9461
SELECT ALL - tab1.col0 - - CAST( NULL AS SIGNED ) AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-9461
SELECT ALL - tab1.col0 - - CAST ( NULL AS INTEGER ) AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT + 23 + + col0 AS col1 FROM tab1 AS cor0
----
103
26
87

query I rowsort
SELECT ALL - - ( - 95 ) FROM tab0, tab2 AS cor0, tab1 AS cor1, tab1, tab0 AS cor2
----
243 values hashing to 7f375e73ca6bbe6b79001c2cbb1efee5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab0.col2 - + col1 col1 FROM tab0
----
-119
-173
-98

onlyif mysql # use DIV operator for integer division
query I rowsort label-9465
SELECT DISTINCT col0 DIV tab2.col1 AS col1 FROM tab2
----
0
1
4

skipif mysql # not compatible
query I rowsort label-9465
SELECT DISTINCT col0 / tab2.col1 AS col1 FROM tab2
----
0
1
4

query I rowsort
SELECT col0 * - tab0.col2 * + tab0.col0 + col0 * + tab0.col2 FROM tab0
----
-1190
-18216
-642224

query I rowsort
SELECT ALL + col1 * + col0 * cor0.col1 FROM tab1 AS cor0
----
13520
2028
6400

onlyif mysql # use DIV operator for integer division
query I rowsort label-9468
SELECT + tab0.col0 DIV + cor0.col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 8f73a798d19ced7f6d593fb39e0d8abc

skipif mysql # not compatible
query I rowsort label-9468
SELECT + tab0.col0 / + cor0.col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 8f73a798d19ced7f6d593fb39e0d8abc

query I rowsort
SELECT + - col0 + - col0 AS col2 FROM tab0 AS cor0
----
-178
-48
-70

query I rowsort
SELECT col0 * 11 FROM tab2
----
77
858
869

query I rowsort
SELECT DISTINCT ( + 84 ) + col2 AS col2 FROM tab2
----
110
111
122

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 72 * tab2.col0 col2 FROM tab2, tab1 cor0, tab1, tab1 AS cor1
----
81 values hashing to ad30d3bffbba124c463c3e04d89c6999

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + ( col2 ) ) * cor0.col1 + - col0 col2 FROM tab2 AS cor0
----
1456
567
830

query I rowsort
SELECT - 28 + col1 AS col1 FROM tab2 AS cor0
----
-11
3
31

query I rowsort
SELECT - col1 + + 83 AS col0 FROM tab0 AS cor0
----
-14
-3
-8

query I rowsort
SELECT - col2 + + ( - col0 ) AS col2 FROM tab0 AS cor0
----
-171
-36
-57

onlyif mysql # use DIV operator for integer division
query I rowsort label-9477
SELECT + col0 * cor0.col2 + col1 DIV col2 AS col2 FROM tab0 AS cor0
----
132
7299
794

skipif mysql # not compatible
query I rowsort label-9477
SELECT + col0 * cor0.col2 + col1 / col2 AS col2 FROM tab0 AS cor0
----
132
7299
794

query I rowsort
SELECT + + col1 + + 58 * col0 AS col1 FROM tab1 AS cor0
----
200
3722
4653

onlyif mysql # use DIV operator for integer division
query I rowsort label-9479
SELECT ALL - col2 DIV cor0.col0 FROM tab1 AS cor0
----
-1
-18
0

skipif mysql # not compatible
query I rowsort label-9479
SELECT ALL - col2 / cor0.col0 FROM tab1 AS cor0
----
-1
-18
0

query I rowsort
SELECT + col1 + + ( 25 ) AS col0 FROM tab1 AS cor0
----
35
38
51

query I rowsort
SELECT + col1 - + cor0.col0 * ( - col0 ) AS col2 FROM tab1 AS cor0
----
35
4106
6413

query I rowsort
SELECT ALL + - cor0.col1 * - ( + 65 ) AS col0 FROM tab1 cor0
----
1690
650
845

query I rowsort
SELECT DISTINCT - 80 + + 17 FROM tab0 cor0 CROSS JOIN tab2 cor1
----
-63

query I rowsort
SELECT ALL + col1 + - tab1.col0 * - col2 * col1 + + col2 AS col1 FROM tab1
----
36547
4292
99949

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9485
SELECT ALL - col0 + - CAST( col0 AS SIGNED ) col0 FROM tab2
----
-14
-156
-158

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9485
SELECT ALL - col0 + - CAST ( col0 AS INTEGER ) col0 FROM tab2
----
-14
-156
-158

query I rowsort
SELECT ALL + col0 * ( 51 ) + col1 + ( 61 ) * - col0 AS col0 FROM tab1
----
-4
-630
-787

query I rowsort
SELECT ALL + ( 6 ) FROM tab0, tab1 AS cor0
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

query I rowsort
SELECT DISTINCT col1 + + ( + col1 ) * + col2 FROM tab1 AS cor0
----
1261
1430
580

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + ( 87 ) + col1 col1 FROM tab2
----
120
66
91

query I rowsort
SELECT DISTINCT 9 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * 94 col0 FROM tab2 AS cor0
----
1598
2914
5546

query I rowsort
SELECT - 8 - - col1 AS col0 FROM tab1
----
18
2
5

query I rowsort
SELECT ALL - ( - tab1.col2 ) AS col2 FROM tab1
----
54
57
96

query I rowsort
SELECT - 54 * 76 + + col0 FROM tab0
----
-4015
-4069
-4080

onlyif mysql # use DIV operator for integer division
query I rowsort label-9495
SELECT + - 64 DIV - col0 AS col1 FROM tab1 cor0
----
0
1
21

skipif mysql # not compatible
query I rowsort label-9495
SELECT + - 64 / - col0 AS col1 FROM tab1 cor0
----
0
1
21

onlyif mysql # use DIV operator for integer division
query I rowsort label-9496
SELECT + cor0.col2 + cor0.col0 DIV + col2 AS col0 FROM tab1 AS cor0
----
54
58
96

skipif mysql # not compatible
query I rowsort label-9496
SELECT + cor0.col2 + cor0.col0 / + col2 AS col0 FROM tab1 AS cor0
----
54
58
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-9497
SELECT - 39 DIV - col0 AS col0 FROM tab0 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-9497
SELECT - 39 / - col0 AS col0 FROM tab0 AS cor0
----
0
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-9498
SELECT DISTINCT - col1 + col1 DIV - col1 FROM tab1 AS cor0
----
-11
-14
-27

skipif mysql # not compatible
query I rowsort label-9498
SELECT DISTINCT - col1 + col1 / - col1 FROM tab1 AS cor0
----
-11
-14
-27

query I rowsort
SELECT DISTINCT + - col0 * col2 + - col2 * + col0 FROM tab0 AS cor0
----
-14596
-1584
-70

query I rowsort
SELECT ALL - col0 * - cor0.col1 + col1 AS col0 FROM tab2 AS cor0
----
1360
248
4661

onlyif mysql # use DIV operator for integer division
query I rowsort label-9501
SELECT ( col0 ) DIV col2 AS col1 FROM tab0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-9501
SELECT ( col0 ) / col2 AS col1 FROM tab0
----
0
1
35

query I rowsort
SELECT 96 AS col2 FROM tab1 AS cor0
----
96
96
96

query I rowsort
SELECT ALL 26 + - col1 FROM tab1 AS cor0
----
0
13
16

onlyif mysql # use DIV operator for integer division
query I rowsort label-9504
SELECT DISTINCT + col0 + + col0 DIV 92 AS col0 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-9504
SELECT DISTINCT + col0 + + col0 / 92 AS col0 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT DISTINCT - 30 AS col1 FROM tab1 cor0
----
-30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 * col1 col0 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT DISTINCT - col2 * + col0 + + col2 FROM tab0 AS cor0
----
-34
-7216
-759

query I rowsort
SELECT DISTINCT + - ( + col0 ) * + 49 + col2 * + col0 AS col0 FROM tab1 cor0
----
15
3760
512

onlyif mysql # use DIV operator for integer division
query I rowsort label-9509
SELECT col1 + + col1 DIV - col1 FROM tab1
----
12
25
9

skipif mysql # not compatible
query I rowsort label-9509
SELECT col1 + + col1 / - col1 FROM tab1
----
12
25
9

query I rowsort
SELECT DISTINCT - 4 + cor0.col1 FROM tab2 cor0
----
13
27
55

query I rowsort
SELECT ALL - col2 * + cor0.col0 AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT ALL - cor0.col0 + col2 AS col0 FROM tab0 AS cor0
----
-34
-7
9

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 AS cor0, tab0 cor1, tab0, tab2 cor2
----
3645 values hashing to 61c64d7c972af4105004f57e1913df08

query I rowsort
SELECT ALL + + col2 * - col0 + - 64 AS col2 FROM tab2 AS cor0
----
-2092
-253
-3066

onlyif mysql # use DIV operator for integer division
query I rowsort label-9515
SELECT DISTINCT col1 DIV cor0.col0 + col2 FROM tab2 cor0
----
26
31
38

skipif mysql # not compatible
query I rowsort label-9515
SELECT DISTINCT col1 / cor0.col0 + col2 FROM tab2 cor0
----
26
31
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-9516
SELECT DISTINCT + col2 * col0 + + col2 * + col1 DIV - cor0.col1 AS col2 FROM tab0 AS cor0
----
34
7216
759

skipif mysql # not compatible
query I rowsort label-9516
SELECT DISTINCT + col2 * col0 + + col2 * + col1 / - cor0.col1 AS col2 FROM tab0 AS cor0
----
34
7216
759

query I rowsort
SELECT + - col0 + ( - cor0.col2 * - cor0.col0 + + col0 ) AS col1 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT ALL - - col2 * - 40 - - 27 AS col1 FROM tab0 AS cor0
----
-1293
-13
-3253

query I rowsort
SELECT col2 + 29 * + col1 FROM tab2 AS cor0
----
1737
531
926

query I rowsort
SELECT ALL - col1 + 93 FROM tab1 cor0
----
67
80
83

query I rowsort
SELECT DISTINCT col1 + col2 * - col0 FROM tab0 AS cor0
----
-706
-7207
62

query I rowsort
SELECT cor0.col2 - - col2 * - col0 FROM tab0 AS cor0
----
-34
-7216
-759

query I rowsort
SELECT - col0 + col0 * + col2 FROM tab1
----
159
3584
7600

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 80 * - col2 col1 FROM tab2
----
-2080
-2160
-3040

query I rowsort
SELECT DISTINCT 48 * + col1 AS col1 FROM tab1 AS cor0
----
1248
480
624

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9526
SELECT ALL + + CAST( NULL AS SIGNED ) * col1 * - col0 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-9526
SELECT ALL + + CAST ( NULL AS INTEGER ) * col1 * - col0 col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - 43 FROM tab0 AS cor0
----
43
43
43

query I rowsort
SELECT DISTINCT + 77 AS col0 FROM tab2 AS cor0
----
77

query I rowsort
SELECT col1 + + col1 + col1 FROM tab2 AS cor0
----
177
51
93

query I rowsort
SELECT ALL - col1 + cor0.col1 * cor0.col1 FROM tab2 AS cor0
----
272
3422
930

query I rowsort
SELECT + 62 + + 1 + + col1 AS col1 FROM tab1 AS cor0
----
73
76
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-9532
SELECT ALL + 1 DIV + 36 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9532
SELECT ALL + 1 / + 36 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - col2 + - 63 FROM tab0 AS cor0
----
-145
-64
-96

query I rowsort
SELECT 63 + col0 AS col0 FROM tab1 AS cor0
----
127
143
66

query I rowsort
SELECT - + col2 * 3 AS col1 FROM tab2 AS cor0
----
-114
-78
-81

query I rowsort
SELECT col0 + + tab2.col2 AS col2 FROM tab2
----
104
117
34

query I rowsort
SELECT tab2.col0 * - ( - 5 ) FROM tab2
----
35
390
395

query I rowsort
SELECT ALL + + col0 * - col1 AS col1 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT + col1 * - 7 FROM tab2 AS cor0
----
-119
-217
-413

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - ( - cor0.col1 ) col2 FROM tab2 AS cor0
----
-17
-31
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + cor0.col1 col0 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT + col0 * col1 + + col2 AS col0 FROM tab1 AS cor0
----
1136
132
697

query I rowsort
SELECT ALL + col1 + col0 * + col1 FROM tab0 AS cor0
----
2150
3492
8190

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9544
SELECT + col0 * - col1 + + col0 * CAST( NULL AS SIGNED ) + + 46 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9544
SELECT + col0 * - col1 + + col0 * CAST ( NULL AS INTEGER ) + + 46 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 71 * + col1 FROM tab1 AS cor0
----
1846
710
923

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9546
SELECT DISTINCT CAST( ( col1 ) AS SIGNED ) * col0 FROM tab2 AS cor0
----
1343
217
4602

skipif mysql # not compatible
query I rowsort label-9546
SELECT DISTINCT CAST ( ( col1 ) AS INTEGER ) * col0 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT - 87 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 84bcab58a965cc8ae97b39d2d01b3d23

query I rowsort
SELECT - cor0.col1 * col0 FROM tab0 cor0
----
-2064
-3395
-8099

query I rowsort
SELECT 84 + + col0 * col0 * col1 FROM tab1 AS cor0
----
318
41044
83284

query I rowsort
SELECT DISTINCT + col2 * tab1.col1 * - 68 FROM tab1
----
-38760
-84864
-95472

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 23 * cor0.col0 col1 FROM tab1 AS cor0
----
1472
1840
69

skipif mysql # not compatible
query I rowsort
SELECT - + CAST ( col0 AS REAL ) AS col0 FROM tab2 cor0
----
-7
-78
-79

onlyif mysql # use DIV operator for integer division
query I rowsort label-9553
SELECT - 89 DIV + tab0.col0 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to cbfa8de8feb212fe31a1528b9e5261db

skipif mysql # not compatible
query I rowsort label-9553
SELECT - 89 / + tab0.col0 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to cbfa8de8feb212fe31a1528b9e5261db

query I rowsort
SELECT + ( col2 + + col1 ) FROM tab1
----
109
67
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 52 + - col2 col1 FROM tab1 AS cor0
----
-2
-44
-5

onlyif mysql # use DIV operator for integer division
query I rowsort label-9556
SELECT 28 DIV col0 FROM tab1 AS cor0
----
0
0
9

skipif mysql # not compatible
query I rowsort label-9556
SELECT 28 / col0 FROM tab1 AS cor0
----
0
0
9

query I rowsort
SELECT + 71 * - 51 FROM tab2 AS cor0
----
-3621
-3621
-3621

query I rowsort
SELECT - 45 * 61 * col1 AS col1 FROM tab1 AS cor0
----
-27450
-35685
-71370

query I rowsort
SELECT + 73 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496

onlyif mysql # use DIV operator for integer division
query I rowsort label-9560
SELECT DISTINCT tab0.col1 DIV 38 FROM tab0, tab2 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-9560
SELECT DISTINCT tab0.col1 / 38 FROM tab0, tab2 AS cor0
----
2

query I rowsort
SELECT ALL col0 - - col1 * + col2 AS col0 FROM tab0 AS cor0
----
132
2862
7551

query I rowsort
SELECT DISTINCT + ( col1 ) AS col2 FROM tab1 cor0
----
10
13
26

query I rowsort
SELECT 76 * col2 AS col0 FROM tab2 AS cor0
----
1976
2052
2888

query I rowsort
SELECT ALL - 0 + + col0 * ( col1 ) AS col2 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT + 47 AS col2 FROM tab0 cor0
----
47
47
47

onlyif mysql # use DIV operator for integer division
query I rowsort label-9566
SELECT DISTINCT + 99 + col0 DIV + ( + 95 ) FROM tab1 cor0
----
99

skipif mysql # not compatible
query I rowsort label-9566
SELECT DISTINCT + 99 + col0 / + ( + 95 ) FROM tab1 cor0
----
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 + + col1 * col1 col1 FROM tab2 AS cor0
----
251
3455
934

query I rowsort
SELECT - col2 + col0 * ( col1 ) FROM tab1 AS cor0
----
24
583
944

query I rowsort
SELECT + col0 + ( - 31 ) AS col0 FROM tab2 AS cor0
----
-24
47
48

onlyif mysql # use DIV operator for integer division
query I rowsort label-9570
SELECT col0 + col1 DIV - col0 FROM tab0 AS cor0
----
21
33
88

skipif mysql # not compatible
query I rowsort label-9570
SELECT col0 + col1 / - col0 FROM tab0 AS cor0
----
21
33
88

query I rowsort
SELECT + col0 + col2 * + col0 * col1 FROM tab0 AS cor0
----
3430
664207
68136

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 cor0 CROSS JOIN tab2, tab2 AS cor1, tab0 AS cor2, tab1 AS cor3
----
3645 values hashing to d865c68b86e66898eeac28f450e48e70

query I rowsort
SELECT + col0 * tab0.col2 * + 40 + + col1 AS col2 FROM tab0
----
1497
292011
31766

query I rowsort
SELECT col2 + - col0 * 91 AS col1 FROM tab0 AS cor0
----
-2151
-3184
-8017

query I rowsort
SELECT ALL - - cor0.col2 + + 17 FROM tab2 AS cor0
----
43
44
55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * - 13 col0 FROM tab0 AS cor0
----
-1118
-1183
-1261

query I rowsort
SELECT - col2 * 48 AS col2 FROM tab2 AS cor0
----
-1248
-1296
-1824

onlyif mysql # use DIV operator for integer division
query I rowsort label-9578
SELECT - + col1 + - 84 DIV - 2 FROM tab2 AS cor0
----
-17
11
25

skipif mysql # not compatible
query I rowsort label-9578
SELECT - + col1 + - 84 / - 2 FROM tab2 AS cor0
----
-17
11
25

query I rowsort
SELECT ALL + 86 + - col1 * + col0 FROM tab1 cor0
----
-554
-954
8

query I rowsort
SELECT - 46 * 64 FROM tab2 AS cor0
----
-2944
-2944
-2944

query I rowsort
SELECT DISTINCT - col0 - 40 * - col0 AS col0 FROM tab2 AS cor0
----
273
3042
3081

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 * 0 col1 FROM tab0 cor0
----
0
0
0

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab0, tab0 AS cor1, tab2, tab2 AS cor2
----
3645 values hashing to c9ee6ec1bc8c6eb5f95042f98a50bd57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9584
SELECT DISTINCT - + CAST( NULL AS SIGNED ) + col0 col2 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9584
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) + col0 col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9585
SELECT + tab0.col1 * CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9585
SELECT + tab0.col1 * CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - ( col1 ) * col2 + 57 - cor0.col1 FROM tab2 AS cor0
----
-1536
-606
-811

query I rowsort
SELECT + col2 + col1 * + 87 - col1 FROM tab0 AS cor0
----
7429
7908
8343

query I rowsort
SELECT + 90 * col2 AS col2 FROM tab2
----
2340
2430
3420

query I rowsort
SELECT + ( 43 ) FROM tab1, tab1 AS cor0
----
9 values hashing to 199105619049271147956de52e7f5ed4

onlyif mysql # use DIV operator for integer division
query I rowsort label-9590
SELECT col2 DIV - cor0.col0 + - ( + col0 ) AS col2 FROM tab0 AS cor0
----
-25
-35
-89

skipif mysql # not compatible
query I rowsort label-9590
SELECT col2 / - cor0.col0 + - ( + col0 ) AS col2 FROM tab0 AS cor0
----
-25
-35
-89

query I rowsort
SELECT ALL 0 AS col0 FROM tab2, tab0 cor0, tab2 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

query I rowsort
SELECT + cor0.col2 AS col1 FROM tab2, tab1, tab0 cor0, tab1 AS cor1
----
81 values hashing to e938777ebffc2e3e9c0cdfaa4f732c05

query I rowsort
SELECT DISTINCT cor0.col2 FROM tab1, tab0, tab2 AS cor0
----
26
27
38

query I rowsort
SELECT DISTINCT cor1.col0 * + cor1.col1 AS col0 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
2064
3395
8099

query I rowsort
SELECT + 51 + + ( - cor0.col2 ) FROM tab2 AS cor0
----
13
24
25

query I rowsort
SELECT + col0 * 18 * col2 FROM tab1 cor0
----
138240
2916
65664

onlyif mysql # use DIV operator for integer division
query I rowsort label-9597
SELECT + col2 * + col0 DIV cor0.col0 AS col2 FROM tab2 AS cor0
----
26
27
38

skipif mysql # not compatible
query I rowsort label-9597
SELECT + col2 * + col0 / cor0.col0 AS col2 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT + 16 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3

query I rowsort
SELECT DISTINCT + - col0 + col1 + col1 AS col0 FROM tab0 AS cor0
----
148
159
93

query I rowsort
SELECT DISTINCT - + col0 + col1 * col0 AS col0 FROM tab2 AS cor0
----
1264
210
4524

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9601
SELECT + CAST( NULL AS SIGNED ) * - cor0.col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9601
SELECT + CAST ( NULL AS INTEGER ) * - cor0.col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 + 5 AS col1 FROM tab1 AS cor0
----
15
18
31

query I rowsort
SELECT ALL + ( - col0 ) * col0 AS col0 FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT 43 * - col0 FROM tab1 AS cor0
----
-129
-2752
-3440

query I rowsort
SELECT - - col1 * cor0.col0 + - col0 AS col1 FROM tab2 AS cor0
----
1264
210
4524

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9606
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + col2 + col1 * + cor0.col2 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9606
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + col2 + col1 * + cor0.col2 AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + tab0.col2 * - 36 - tab0.col2 * col1 AS col0 FROM tab0
----
-10414
-133
-4026

query I rowsort
SELECT - tab2.col2 * + 54 * col2 + col1 - - tab2.col2 AS col0 FROM tab2
----
-36419
-39308
-77921

query I rowsort
SELECT DISTINCT + 97 * + 23 - col1 AS col2 FROM tab0
----
2134
2140
2145

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - tab1.col0 ) * + tab1.col1 - col0 col0 FROM tab1
----
-1120
-704
-81

onlyif mysql # use DIV operator for integer division
query I rowsort label-9611
SELECT col0 + ( - col2 ) + - col2 DIV - col1 FROM tab2
----
-20
43
52

skipif mysql # not compatible
query I rowsort label-9611
SELECT col0 + ( - col2 ) + - col2 / - col1 FROM tab2
----
-20
43
52

query I rowsort
SELECT ALL + ( - col1 ) + col0 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT - 30 + - col1 + col1 FROM tab1 AS cor0
----
-30
-30
-30

query I rowsort
SELECT ALL + - ( + col0 ) FROM tab1 AS cor0
----
-3
-64
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 + col2 - col0 col0 FROM tab2 AS cor0
----
-11
-111
-58

query I rowsort
SELECT DISTINCT + col1 + - col1 AS col1 FROM tab1 cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-9617
SELECT + col1 * cor0.col1 + col2 + - cor0.col2 DIV cor0.col1 FROM tab1 AS cor0
----
152
258
728

skipif mysql # not compatible
query I rowsort label-9617
SELECT + col1 * cor0.col1 + col2 + - cor0.col2 / cor0.col1 FROM tab1 AS cor0
----
152
258
728

query I rowsort
SELECT 57 + col1 - col0 AS col2 FROM tab1
----
-10
3
80

query I rowsort
SELECT + 86 FROM tab0, tab0 AS cor0
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19

query I rowsort
SELECT ALL tab2.col0 + + tab2.col2 FROM tab2
----
104
117
34

query I rowsort
SELECT DISTINCT - col2 + - col1 * - col0 FROM tab0 AS cor0
----
2031
3394
8017

query I rowsort
SELECT - 9 AS col0 FROM tab1
----
-9
-9
-9

query I rowsort
SELECT DISTINCT - 19 * - col2 FROM tab0
----
1558
19
627

onlyif mysql # use DIV operator for integer division
query I rowsort label-9624
SELECT ALL - col1 * CAST( col0 AS SIGNED ) DIV col1 AS col0 FROM tab2 AS cor0
----
-7
-78
-79

skipif mysql # not compatible
query I rowsort label-9624
SELECT ALL - col1 * CAST ( col0 AS INTEGER ) / col1 AS col0 FROM tab2 AS cor0
----
-7
-78
-79

onlyif mysql # use DIV operator for integer division
query I rowsort label-9625
SELECT DISTINCT + cor0.col2 * - col1 * ( + col0 ) + + cor0.col0 DIV cor0.col1 AS col0 FROM tab0 AS cor0
----
-3395
-664118
-68112

skipif mysql # not compatible
query I rowsort label-9625
SELECT DISTINCT + cor0.col2 * - col1 * ( + col0 ) + + cor0.col0 / cor0.col1 AS col0 FROM tab0 AS cor0
----
-3395
-664118
-68112

query I rowsort
SELECT ALL cor0.col1 - - cor0.col1 * col0 AS col2 FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT ALL - + col1 + - col2 FROM tab1 cor0
----
-109
-67
-80

query I rowsort
SELECT ALL 37 + col2 FROM tab0
----
119
38
70

onlyif mysql # use DIV operator for integer division
query I rowsort label-9629
SELECT ALL + col0 DIV col1 + ( - col1 * col2 ) FROM tab1
----
-1242
-1404
-564

skipif mysql # not compatible
query I rowsort label-9629
SELECT ALL + col0 / col1 + ( - col1 * col2 ) FROM tab1
----
-1242
-1404
-564

query I rowsort
SELECT DISTINCT + + tab1.col1 FROM tab1, tab2, tab0 AS cor0
----
10
13
26

query I rowsort
SELECT 17 + + col2 FROM tab1
----
113
71
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + col2 col0 FROM tab2
----
0

query I rowsort
SELECT DISTINCT 40 * 62 AS col2 FROM tab1, tab0 AS cor0
----
2480

query I rowsort
SELECT tab2.col1 - - col2 * col1 FROM tab2
----
1593
663
868

onlyif mysql # use DIV operator for integer division
query I rowsort label-9635
SELECT ALL + - cor0.col1 DIV - 87 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9635
SELECT ALL + - cor0.col1 / - 87 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + col2 * 91 + - col1 AS col2 FROM tab1 AS cor0
----
4888
5177
8723

query I rowsort
SELECT DISTINCT + + col1 * ( - col1 ) + cor0.col2 FROM tab1 cor0
----
-43
-622
-73

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9638
SELECT DISTINCT - col0 * - CAST( NULL AS SIGNED ) * col1 + + col0 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9638
SELECT DISTINCT - col0 * - CAST ( NULL AS INTEGER ) * col1 + + col0 AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - cor0.col1 + - ( col2 ) AS col1 FROM tab1 cor0
----
-109
-67
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-9640
SELECT cor0.col1 DIV - 94 AS col0 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9640
SELECT cor0.col1 / - 94 AS col0 FROM tab1 cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9641
SELECT + col0 * + CAST( col0 AS SIGNED ) * col2 AS col2 FROM tab2 AS cor0
----
1323
158184
237158

skipif mysql # not compatible
query I rowsort label-9641
SELECT + col0 * + CAST ( col0 AS INTEGER ) * col2 AS col2 FROM tab2 AS cor0
----
1323
158184
237158

onlyif mysql # use DIV operator for integer division
query I rowsort label-9642
SELECT col1 * + col0 + + col0 DIV col1 AS col2 FROM tab0
----
2064
3395
8099

skipif mysql # not compatible
query I rowsort label-9642
SELECT col1 * + col0 + + col0 / col1 AS col2 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT + col2 * + col2 * col0 AS col0 FROM tab2
----
114076
5103
52728

query I rowsort
SELECT - col2 * + col1 + - col2 + - col2 * col2 AS col2 FROM tab0 AS cor0 WHERE NOT col0 NOT IN ( + col1 + col1 - + cor0.col2 * col0 * col0 ) OR ( col2 ) BETWEEN NULL AND - col0 * col2
----

query I rowsort
SELECT ALL - - col1 * + col1 AS col1 FROM tab1 AS cor0
----
100
169
676

onlyif mysql # use DIV operator for integer division
query I rowsort label-9646
SELECT DISTINCT + col1 DIV + cor0.col0 AS col2 FROM tab2 cor0
----
0
4

skipif mysql # not compatible
query I rowsort label-9646
SELECT DISTINCT + col1 / + cor0.col0 AS col2 FROM tab2 cor0
----
0
4

query I rowsort
SELECT ALL + - cor0.col0 + - col1 AS col1 FROM tab1 AS cor0
----
-29
-74
-93

query I rowsort
SELECT DISTINCT - col2 * col2 + - col2 * - col2 FROM tab0 cor0
----
0

query I rowsort
SELECT ALL - 67 FROM tab2
----
-67
-67
-67

onlyif mysql # use DIV operator for integer division
query I rowsort label-9650
SELECT DISTINCT - ( col2 ) DIV col0 + + col1 FROM tab2 AS cor0
----
17
28
59

skipif mysql # not compatible
query I rowsort label-9650
SELECT DISTINCT - ( col2 ) / col0 + + col1 FROM tab2 AS cor0
----
17
28
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + col0 ) + - col1 * col2 + - col0 col1 FROM tab0
----
-167
-2886
-7640

onlyif mysql # use DIV operator for integer division
query I rowsort label-9652
SELECT DISTINCT - col0 DIV col1 + + col1 * - col0 col1 FROM tab2
----
-1347
-217
-4603

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9652
SELECT DISTINCT - col0 / col1 + + col1 * - col0 col1 FROM tab2
----
-1347
-217
-4603

query I rowsort
SELECT - col1 * - col0 AS col2 FROM tab2
----
1343
217
4602

query I rowsort
SELECT DISTINCT - 82 FROM tab2 cor0
----
-82

query I rowsort
SELECT DISTINCT + + col1 + - col0 AS col0 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT col1 * cor0.col0 + col1 * + col0 - - cor0.col1 FROM tab2 AS cor0
----
2703
465
9263

query I rowsort
SELECT DISTINCT + - col2 * cor0.col2 FROM tab1 cor0
----
-2916
-3249
-9216

query I rowsort
SELECT + - 44 + col2 AS col1 FROM tab2 AS cor0
----
-17
-18
-6

query I rowsort
SELECT ALL col1 - col0 * col1 * col2 FROM tab2 AS cor0
----
-119593
-51017
-5828

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 2 col2 FROM tab0 AS cor0
----
-2

query I rowsort
SELECT ALL - + 18 * + col0 AS col1 FROM tab2 AS cor0
----
-126
-1404
-1422

query I rowsort
SELECT ALL col0 + - col1 * + col0 FROM tab2 cor0
----
-1264
-210
-4524

query I rowsort
SELECT DISTINCT - col2 * + col2 AS col1 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT DISTINCT 93 + col2 FROM tab0
----
126
175
94

query I rowsort
SELECT ( col0 ) + + col1 * col0 FROM tab1 AS cor0
----
1120
704
81

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9666
SELECT DISTINCT CAST( NULL AS DECIMAL ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9666
SELECT DISTINCT CAST ( NULL AS REAL ) AS col2 FROM tab2
----
NULL

query I rowsort
SELECT ( tab0.col1 ) AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

query I rowsort
SELECT ALL - 63 FROM tab0, tab1 AS cor0
----
9 values hashing to 5a7845ef6e239561caf9a17a28e274b5

onlyif mysql # use DIV operator for integer division
query I rowsort label-9669
SELECT + col0 + col1 DIV col1 + col0 * + col2 AS col2 FROM tab1 AS cor0
----
166
3713
7761

skipif mysql # not compatible
query I rowsort label-9669
SELECT + col0 + col1 / col1 + col0 * + col2 AS col2 FROM tab1 AS cor0
----
166
3713
7761

query I rowsort
SELECT 10 * + col0 + + col2 AS col0 FROM tab0
----
273
351
972

query I rowsort
SELECT - - 79 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f

query I rowsort
SELECT - - 3 * + cor0.col2 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to af27384311fa29801835eb53e5d73905

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9673
SELECT - ( col1 ) * + CAST( NULL AS SIGNED ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9673
SELECT - ( col1 ) * + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + ( + cor0.col1 ) AS col2 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT ALL + ( col2 ) * + col0 * + col1 FROM tab1 AS cor0
----
36480
4212
99840

query I rowsort
SELECT ALL - col2 * - col1 AS col1 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT DISTINCT - - col0 * ( col0 ) + + col0 + 82 AS col0 FROM tab0 AS cor0
----
1342
682
8092

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab2.col0 col0 FROM tab2, tab2 AS cor0, tab2 cor1
----
7
78
79

query I rowsort
SELECT - 81 * + col1 * col2 FROM tab0 AS cor0
----
-229878
-604422
-7857

query I rowsort
SELECT DISTINCT + col0 * - 50 FROM tab1 AS cor0
----
-150
-3200
-4000

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9681
SELECT DISTINCT CAST( 75 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-9681
SELECT DISTINCT CAST ( 75 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
75

query I rowsort
SELECT + cor0.col2 + 10 AS col1 FROM tab1 AS cor0
----
106
64
67

query I rowsort
SELECT - + cor0.col0 + - 47 FROM tab2 AS cor0
----
-125
-126
-54

query I rowsort
SELECT col2 - ( col0 + 53 ) AS col0 FROM tab0 AS cor0
----
-44
-60
-87

query I rowsort
SELECT 21 + - tab0.col1 + - ( 41 ) FROM tab0, tab0 AS cor0
----
9 values hashing to 4b569e8881cfce0614436d9c3f76eef9

query I rowsort
SELECT DISTINCT col0 * + col2 - tab0.col2 FROM tab0
----
34
7216
759

query I rowsort
SELECT col1 - + 34 * col0 FROM tab0 AS cor0
----
-1093
-2935
-730

query I rowsort
SELECT - 88 + + col0 FROM tab1 AS cor0
----
-24
-8
-85

query I rowsort
SELECT ALL 78 + col2 * + ( - 21 + tab1.col1 ) * - tab1.col1 FROM tab1
----
-6942
10062
6348

query I rowsort
SELECT ALL 30 * - col0 + - col0 AS col2 FROM tab0
----
-1085
-2759
-744

query I rowsort
SELECT - 39 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to a08a82dc9276c0173448e9a1c89dba93

query I rowsort
SELECT ALL col2 * - col2 + - col0 FROM tab0 AS cor0
----
-1113
-36
-6813

query I rowsort
SELECT ALL col0 + + cor0.col2 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT - - col0 * - cor0.col1 AS col1 FROM tab1 cor0
----
-1040
-640
-78

query I rowsort
SELECT - + col2 + col2 * + cor0.col2 AS col1 FROM tab2 AS cor0
----
1406
650
702

query I rowsort
SELECT + 3 AS col0 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 3e22859a313d85a6146c6df5f23d77cf

query I rowsort
SELECT ALL - col2 * + cor0.col1 * col1 - + 68 FROM tab2 AS cor0
----
-11050
-26015
-90574

query I rowsort
SELECT 94 + - col0 AS col0 FROM tab0 AS cor0
----
5
59
70

query I rowsort
SELECT col1 * 54 + + col0 FROM tab1 AS cor0
----
1407
604
782

query I rowsort
SELECT DISTINCT + cor0.col1 + - col2 AS col1 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT ALL + col0 - col1 FROM tab1 cor0
----
-23
54
67

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9702
SELECT - CAST( NULL AS SIGNED ) + col2 + + col2 * - col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9702
SELECT - CAST ( NULL AS INTEGER ) + col2 + + col2 * - col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 39 + col2 col0 FROM tab2 AS cor0
----
65
66
77

query I rowsort
SELECT ALL 4 - + ( tab2.col2 ) FROM tab2, tab2 AS cor0
----
9 values hashing to 050400ae08f988ea4e3c401ee74f1c4c

query I rowsort
SELECT 83 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c

query I rowsort
SELECT ALL + ( cor0.col0 ) AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

query I rowsort
SELECT ALL - + col2 - cor0.col0 AS col1 FROM tab0 AS cor0
----
-171
-36
-57

query I rowsort
SELECT - col0 + col2 * + col1 * + col2 FROM tab2 AS cor0
----
22592
24469
39806

query I rowsort
SELECT DISTINCT - col0 * + cor0.col2 * - col2 AS col1 FROM tab0 cor0
----
26136
35
598436

query I rowsort
SELECT DISTINCT - 23 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab0 AS cor2
----
-23

query I rowsort
SELECT ALL - col0 * - col2 * 78 FROM tab1 AS cor0
----
12636
284544
599040

query I rowsort
SELECT DISTINCT + cor0.col2 + 97 * + 50 FROM tab0 AS cor0
----
4851
4883
4932

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 26 * + col1 - cor0.col0 col2 FROM tab0 AS cor0
----
2212
2277
2487

query I rowsort
SELECT DISTINCT - + col2 + ( col1 ) + col0 AS col2 FROM tab2 AS cor0
----
11
111
58

onlyif mysql # use DIV operator for integer division
query I rowsort label-9715
SELECT - + 43 DIV - 19 AS col0 FROM tab1 AS cor0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-9715
SELECT - + 43 / - 19 AS col0 FROM tab1 AS cor0
----
2
2
2

query I rowsort
SELECT - col2 * - 36 AS col2 FROM tab2 AS cor0
----
1368
936
972

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9717
SELECT DISTINCT + + ( + col2 ) * + cor0.col1 + + CAST( + col2 AS SIGNED ) * col1 FROM tab1 cor0
----
1140
2496
2808

skipif mysql # not compatible
query I rowsort label-9717
SELECT DISTINCT + + ( + col2 ) * + cor0.col1 + + CAST ( + col2 AS INTEGER ) * col1 FROM tab1 cor0
----
1140
2496
2808

query I rowsort
SELECT DISTINCT + - 48 * + 93 + + col1 FROM tab1 AS cor0
----
-4438
-4451
-4454

query I rowsort
SELECT ALL + - col2 * + col0 * - col1 FROM tab1 cor0
----
36480
4212
99840

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9720
SELECT + - CAST( + 75 AS SIGNED ) * - cor0.col1 AS col0 FROM tab1 AS cor0
----
1950
750
975

skipif mysql # not compatible
query I rowsort label-9720
SELECT + - CAST ( + 75 AS INTEGER ) * - cor0.col1 AS col0 FROM tab1 AS cor0
----
1950
750
975

query I rowsort
SELECT ALL cor0.col1 * - col0 + + col2 AS col0 FROM tab2 AS cor0
----
-1305
-190
-4576

query I rowsort
SELECT DISTINCT + ( + col0 ) - + col1 AS col0 FROM tab0 AS cor0
----
-2
-62

query I rowsort
SELECT ALL 56 FROM tab1, tab1 AS cor0, tab1 AS cor1, tab0 AS cor2
----
81 values hashing to 9cee91ca9c60ba6e45a33b388a3b7d9b

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9724
SELECT DISTINCT - CAST( cor0.col2 AS SIGNED ) * + col0 + + ( cor0.col2 ) FROM tab2 AS cor0
----
-162
-2002
-2964

skipif mysql # not compatible
query I rowsort label-9724
SELECT DISTINCT - CAST ( cor0.col2 AS INTEGER ) * + col0 + + ( cor0.col2 ) FROM tab2 AS cor0
----
-162
-2002
-2964

query I rowsort
SELECT ALL col1 * - col0 + + col2 + 49 * col0 * col2 FROM tab1 cor0
----
178169
375376
7914

query I rowsort
SELECT ALL - 96 * col0 FROM tab2 AS cor0
----
-672
-7488
-7584

onlyif mysql # use DIV operator for integer division
query I rowsort label-9727
SELECT cor0.col0 DIV col0 AS col2 FROM tab2 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9727
SELECT cor0.col0 / col0 AS col2 FROM tab2 cor0
----
1
1
1

query I rowsort
SELECT ALL 0 AS col1 FROM tab2, tab1 cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT DISTINCT + col2 + - col2 * + col0 FROM tab0 AS cor0
----
-34
-7216
-759

onlyif mysql # use DIV operator for integer division
query I rowsort label-9730
SELECT ALL - + cor0.col0 + - cor0.col1 DIV 69 FROM tab0 AS cor0
----
-25
-36
-90

skipif mysql # not compatible
query I rowsort label-9730
SELECT ALL - + cor0.col0 + - cor0.col1 / 69 FROM tab0 AS cor0
----
-25
-36
-90

onlyif mysql # use DIV operator for integer division
query I rowsort label-9731
SELECT ALL + cor0.col2 DIV cor0.col1 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to e30b1feec13aa0bbbc46a0526de3ebe0

skipif mysql # not compatible
query I rowsort label-9731
SELECT ALL + cor0.col2 / cor0.col1 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to e30b1feec13aa0bbbc46a0526de3ebe0

query I rowsort
SELECT 64 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to c8b19f4c3ff38700cd2bb8a077bf29b9

query I rowsort
SELECT ( - col2 ) * - col1 * + 0 AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + col0 + col0 * col1 AS col0 FROM tab2 AS cor0
----
1422
224
4680

query I rowsort
SELECT DISTINCT + 41 AS col2 FROM tab2 AS cor0
----
41

query I rowsort
SELECT DISTINCT + col1 + - col1 * col1 FROM tab1 AS cor0
----
-156
-650
-90

query I rowsort
SELECT col2 * - ( + 65 * col1 ) + cor0.col2 AS col0 FROM tab2 AS cor0
----
-41952
-54378
-99684

query I rowsort
SELECT DISTINCT 46 * col0 + - col0 * - col1 FROM tab0
----
12193
3168
5005

query I rowsort
SELECT 89 + col2 FROM tab1
----
143
146
185

query I rowsort
SELECT tab1.col0 - col0 AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT - - col0 + col2 * col1 AS col0 FROM tab2 cor0
----
1612
725
844

onlyif mysql # use DIV operator for integer division
query I rowsort label-9742
SELECT ALL + col2 DIV + 64 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9742
SELECT ALL + col2 / + 64 FROM tab1 AS cor0
----
0
0
1

query I rowsort
SELECT ALL - + col0 * col0 AS col2 FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT cor0.col0 + 71 * cor0.col0 AS col0 FROM tab0, tab0 cor0
----
9 values hashing to fe20150335d45a712966ec09eeef6dbf

query I rowsort
SELECT DISTINCT + ( col0 ) * - ( - col0 ) + + col1 * - col0 AS col0 FROM tab1
----
-69
3456
5360

query I rowsort
SELECT ALL + cor0.col1 * 56 FROM tab2 AS cor0
----
1736
3304
952

query I rowsort
SELECT DISTINCT - + col1 * + 92 AS col1 FROM tab0 cor0
----
-7912
-8372
-8924

query I rowsort
SELECT + tab0.col1 + tab0.col1 FROM tab0
----
172
182
194

query I rowsort
SELECT - 35 * col0 AS col0 FROM tab2
----
-245
-2730
-2765

onlyif mysql # use DIV operator for integer division
query I rowsort label-9750
SELECT ALL col0 DIV - col0 + 8 + 53 DIV tab0.col1 AS col0 FROM tab0
----
7
7
7

skipif mysql # not compatible
query I rowsort label-9750
SELECT ALL col0 / - col0 + 8 + 53 / tab0.col1 AS col0 FROM tab0
----
7
7
7

query I rowsort
SELECT cor0.col1 * col0 + + 88 FROM tab0 AS cor0
----
2152
3483
8187

query IIIIIIIII rowsort
SELECT * FROM tab2, tab1, tab0 cor0 WHERE NOT NULL > NULL
----

query I rowsort
SELECT - cor0.col1 + 94 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 41363ab004b1aa2ac9a58e8e8e1780d1

query I rowsort
SELECT + col0 * - col1 * - col0 FROM tab0
----
118825
49536
720811

onlyif mysql # use DIV operator for integer division
query I rowsort label-9755
SELECT DISTINCT + col1 DIV 98 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9755
SELECT DISTINCT + col1 / 98 FROM tab1
----
0

query I rowsort
SELECT DISTINCT - col0 * - tab2.col2 * + tab2.col1 AS col0 FROM tab2
----
119652
51034
5859

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab0.col2 * - ( col1 ) * col0 col1 FROM tab0
----
-3395
-664118
-68112

query I rowsort
SELECT + col1 * + 20 AS col0 FROM tab1
----
200
260
520

query I rowsort
SELECT - + col0 * + ( - 97 * + col0 ) + + ( + ( + col0 ) * + col2 ) FROM tab2 AS cor0
----
4942
592176
608379

query I rowsort
SELECT ALL 62 AS col1 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 4911b1417a3797d23dd8f38b6ed05c1b

query I rowsort
SELECT DISTINCT col2 * ( - 97 ) FROM tab0
----
-3201
-7954
-97

query I rowsort
SELECT ALL + 43 FROM tab1, tab2 cor0, tab1 AS cor1
----
27 values hashing to ee5108f6248be48c54e069545f81c5d9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 4 col0 FROM tab2, tab1 cor0
----
9 values hashing to 5784540a5af6ca2be84399d314acd2fd

query I rowsort
SELECT ( + col0 ) + tab0.col1 FROM tab0
----
110
132
180

query I rowsort
SELECT 14 - cor0.col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 063cbdca6bae6b1cb143483030bf5f36

query I rowsort
SELECT - 74 * col1 + col1 + col2 AS col1 FROM tab1
----
-1844
-673
-853

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9767
SELECT - CAST( col2 AS SIGNED ) * col0 FROM tab2
----
-189
-2028
-3002

skipif mysql # not compatible
query I rowsort label-9767
SELECT - CAST ( col2 AS INTEGER ) * col0 FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT DISTINCT + 23 * col1 AS col2 FROM tab2
----
1357
391
713

query I rowsort
SELECT - ( col2 ) * 89 - col0 AS col1 FROM tab1 AS cor0
----
-4809
-5137
-8624

onlyif mysql # use DIV operator for integer division
query I rowsort label-9770
SELECT DISTINCT + cor1.col1 + + 15 DIV cor1.col0 AS col0 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
10
13
31

skipif mysql # not compatible
query I rowsort label-9770
SELECT DISTINCT + cor1.col1 + + 15 / cor1.col0 AS col0 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
10
13
31

query I rowsort
SELECT ALL - 33 * tab2.col1 AS col1 FROM tab2, tab1, tab0 AS cor0, tab0
----
81 values hashing to 839238d9e928dc74d096354d883b5126

query I rowsort
SELECT ALL + 36 + col0 FROM tab2 AS cor0
----
114
115
43

query I rowsort
SELECT DISTINCT - - 98 FROM tab0 cor0
----
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9774
SELECT - 32 * col0 + + CAST( col2 * - col0 AS SIGNED ) FROM tab1 AS cor0
----
-10240
-258
-5696

skipif mysql # not compatible
query I rowsort label-9774
SELECT - 32 * col0 + + CAST ( col2 * - col0 AS INTEGER ) FROM tab1 AS cor0
----
-10240
-258
-5696

query I rowsort
SELECT ALL + col1 * + col1 + - ( col0 + + cor0.col1 ) * 33 AS col2 FROM tab1 cor0
----
-2342
-281
-2900

query I rowsort
SELECT + ( col2 ) * - col0 + 15 * col0 AS col2 FROM tab1 AS cor0
----
-117
-2688
-6480

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 + + col2 * col1 col1 FROM tab2 AS cor0
----
1560
684
864

query I rowsort
SELECT ALL - col1 * - col1 + - 85 AS col2 FROM tab0 AS cor0
----
7311
8196
9324

query I rowsort
SELECT - 39 * col0 - col1 AS col1 FROM tab0 AS cor0
----
-1022
-1462
-3562

query I rowsort
SELECT ALL cor0.col0 * - col0 + 52 FROM tab1 cor0
----
-4044
-6348
43

query I rowsort
SELECT ALL col2 * + col1 * + col0 FROM tab0 cor0
----
3395
664118
68112

query I rowsort
SELECT - col1 * + col0 + - col1 + tab1.col1 AS col1 FROM tab1
----
-1040
-640
-78

query I rowsort
SELECT ( + col0 + col2 ) AS col2 FROM tab1
----
121
176
57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9784
SELECT CAST( col2 + + col0 AS SIGNED ) * + ( + col0 + col0 ) FROM tab1
----
15488
28160
342

skipif mysql # not compatible
query I rowsort label-9784
SELECT CAST ( col2 + + col0 AS INTEGER ) * + ( + col0 + col0 ) FROM tab1
----
15488
28160
342

query I rowsort
SELECT - + col0 * cor0.col2 - + col0 FROM tab2 AS cor0
----
-196
-2106
-3081

query I rowsort
SELECT + - col2 + + col2 * - ( col2 * - col0 + col1 ) FROM tab0 AS cor0
----
-63
23265
590892

query I rowsort
SELECT cor0.col0 + - col0 AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + 71 * - col1 FROM tab1 AS cor0
----
-1846
-710
-923

query I rowsort
SELECT ALL ( + col2 ) + col2 AS col2 FROM tab0 AS cor0
----
164
2
66

query I rowsort
SELECT ALL + ( col0 ) * col1 * col1 + col1 FROM tab1 cor0
----
13533
2054
6410

query I rowsort
SELECT ALL ( - col1 ) * col0 + col0 AS col0 FROM tab1 AS cor0
----
-576
-75
-960

query I rowsort
SELECT - col0 * + col1 AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602

skipif mysql # not compatible
query I rowsort
SELECT + col0 * + CAST ( col2 AS REAL ) AS col2 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT - col0 + + 80 AS col2 FROM tab0 AS cor0
----
-9
45
56

query I rowsort
SELECT DISTINCT tab0.col2 * col2 AS col1 FROM tab0
----
1
1089
6724

query I rowsort
SELECT col0 * + col0 * tab0.col1 AS col0 FROM tab0
----
118825
49536
720811

query I rowsort
SELECT + col1 + 8 AS col1 FROM tab0 AS cor0
----
105
94
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + ( col0 ) col1 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT ALL col2 * + 96 FROM tab2
----
2496
2592
3648

query I rowsort
SELECT col1 * + ( col0 * + col0 ) FROM tab2
----
106097
1519
358956

query I rowsort
SELECT col2 * + col1 * col2 AS col0 FROM tab1
----
119808
32490
75816

query I rowsort
SELECT ALL + ( 89 ) + col2 FROM tab0 AS cor0
----
122
171
90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9803
SELECT + CAST( col2 AS SIGNED ) + + col2 * + col2 FROM tab2 AS cor0
----
1482
702
756

skipif mysql # not compatible
query I rowsort label-9803
SELECT + CAST ( col2 AS INTEGER ) + + col2 * + col2 FROM tab2 AS cor0
----
1482
702
756

query I rowsort
SELECT - ( 72 ) FROM tab0 AS cor0
----
-72
-72
-72

query I rowsort
SELECT - - col0 * + 60 FROM tab0 AS cor0
----
1440
2100
5340

query I rowsort
SELECT DISTINCT - 1 FROM tab2 cor0
----
-1

query I rowsort
SELECT - col2 + col2 * col2 - + 5 * - 82 FROM tab1 AS cor0
----
3272
3602
9530

query I rowsort
SELECT - col2 + col0 + col2 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT ALL + + ( + ( col2 ) ) AS col1 FROM tab1 cor0
----
54
57
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-9810
SELECT DISTINCT + - 20 + 77 DIV col2 FROM tab0 AS cor0
----
-18
-20
57

skipif mysql # not compatible
query I rowsort label-9810
SELECT DISTINCT + - 20 + 77 / col2 FROM tab0 AS cor0
----
-18
-20
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + col2 * col2 col0 FROM tab2 AS cor0
----
1365
598
722

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9812
SELECT - + CAST( NULL AS SIGNED ) + col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9812
SELECT - + CAST ( NULL AS INTEGER ) + col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 6 - 22 AS col1 FROM tab0 AS cor0
----
-28
-28
-28

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9814
SELECT ALL col0 * - CAST( col2 AS SIGNED ) FROM tab0
----
-35
-7298
-792

skipif mysql # not compatible
query I rowsort label-9814
SELECT ALL col0 * - CAST ( col2 AS INTEGER ) FROM tab0
----
-35
-7298
-792

query I rowsort
SELECT ALL + 28 FROM tab1, tab2 AS cor0
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97

onlyif mysql # use DIV operator for integer division
query I rowsort label-9816
SELECT ALL + col0 DIV - tab2.col0 AS col0 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9816
SELECT ALL + col0 / - tab2.col0 AS col0 FROM tab2
----
-1
-1
-1

query I rowsort
SELECT - ( col0 ) * + cor0.col2 + - cor0.col1 * 76 - - col2 FROM tab1 AS cor0
----
-2084
-4351
-8572

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( cor0.col1 ) * + col2 * 11 + col0 - - col2 col0 FROM tab2 AS cor0
----
16978
7223
9241

query I rowsort
SELECT DISTINCT - 10 AS col1 FROM tab2 AS cor0
----
-10

query I rowsort
SELECT + ( col0 ) * 75 + + col0 FROM tab1
----
228
4864
6080

query I rowsort
SELECT 61 * col1 + col2 AS col2 FROM tab1 AS cor0
----
1640
667
889

query I rowsort
SELECT - + col0 + + cor0.col2 * - ( col1 + + col0 ) FROM tab2 AS cor0
----
-1033
-3640
-3727

query I rowsort
SELECT + tab1.col0 * 64 + col0 FROM tab1
----
195
4160
5200

query I rowsort
SELECT - tab1.col2 AS col0 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e

query I rowsort
SELECT ALL - - col1 * 58 FROM tab2 AS cor0
----
1798
3422
986

query I rowsort
SELECT ALL - - col2 + + 29 + + 11 * + col2 AS col2 FROM tab1 AS cor0
----
1181
677
713

query I rowsort
SELECT DISTINCT col0 * cor0.col2 + - ( col2 ) AS col1 FROM tab0 AS cor0
----
34
7216
759

query I rowsort
SELECT DISTINCT - - col0 * col2 + - col2 FROM tab2 AS cor0
----
162
2002
2964

query I rowsort
SELECT - - cor0.col0 + cor0.col0 * 57 AS col0 FROM tab1 AS cor0
----
174
3712
4640

query I rowsort
SELECT DISTINCT - + col1 * 29 * - col0 + - col2 FROM tab2 AS cor0
----
133432
38909
6266

onlyif mysql # use DIV operator for integer division
query I rowsort label-9831
SELECT col1 DIV + col0 FROM tab0 AS cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-9831
SELECT col1 / + col0 FROM tab0 AS cor0
----
1
2
3

onlyif mysql # use DIV operator for integer division
query I rowsort label-9832
SELECT DISTINCT - col2 DIV col2 + - col0 FROM tab0
----
-25
-36
-90

skipif mysql # not compatible
query I rowsort label-9832
SELECT DISTINCT - col2 / col2 + - col0 FROM tab0
----
-25
-36
-90

query I rowsort
SELECT DISTINCT + col2 + + col0 * - 99 * - col2 AS col0 FROM tab1 AS cor0
----
16092
361209
760416

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - - col1 * + tab1.col2 * col0 col2 FROM tab1
----
36544
4215
99920

query I rowsort
SELECT DISTINCT tab0.col2 + - 18 * col1 FROM tab0
----
-1515
-1556
-1745

query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2 cor0, tab1, tab2 cor1
----
972 values hashing to bcf430f79386b43bc4077271fcd15cf0

query I rowsort
SELECT + 91 + - col2 FROM tab2
----
53
64
65

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9838
SELECT ALL - CAST( NULL AS SIGNED ) - + 0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9838
SELECT ALL - CAST ( NULL AS INTEGER ) - + 0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col1 + - 13 AS col1 FROM tab0 AS cor0
----
73
78
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + 99 col0 FROM tab0
----
123
134
188

onlyif mysql # use DIV operator for integer division
query I rowsort label-9841
SELECT DISTINCT tab2.col2 * - col1 DIV - col1 + ( 55 + col2 ) FROM tab2
----
107
109
131

skipif mysql # not compatible
query I rowsort label-9841
SELECT DISTINCT tab2.col2 * - col1 / - col1 + ( 55 + col2 ) FROM tab2
----
107
109
131

onlyif mysql # use DIV operator for integer division
query I rowsort label-9842
SELECT + + col2 DIV - col2 col1 FROM tab1 AS cor0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9842
SELECT + + col2 / - col2 col1 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT 37 * - tab1.col2 + - col2 FROM tab1
----
-2052
-2166
-3648

query I rowsort
SELECT DISTINCT 57 * col1 + ( 93 ) FROM tab1 AS cor0
----
1575
663
834

query I rowsort
SELECT DISTINCT - 23 AS col0 FROM tab1 cor0
----
-23

query I rowsort
SELECT ALL - 32 * col2 AS col0 FROM tab1 cor0
----
-1728
-1824
-3072

query I rowsort
SELECT ALL 47 FROM tab1 cor0
----
47
47
47

query I rowsort
SELECT DISTINCT - col1 + - col1 * + 57 FROM tab2
----
-1798
-3422
-986

query I rowsort
SELECT ALL col0 + ( + 29 ) + tab2.col2 FROM tab2
----
133
146
63

query I rowsort
SELECT col1 + col1 + - col2 * - col0 FROM tab1
----
214
3668
7706

onlyif mysql # use DIV operator for integer division
query I rowsort label-9851
SELECT - col2 * - 57 + + tab0.col2 + - col1 DIV tab0.col1 AS col0 FROM tab0
----
1913
4755
57

skipif mysql # not compatible
query I rowsort label-9851
SELECT - col2 * - 57 + + tab0.col2 + - col1 / tab0.col1 AS col0 FROM tab0
----
1913
4755
57

query I rowsort
SELECT - col1 + ( - col2 ) * + col1 AS col2 FROM tab1
----
-1261
-1430
-580

query I rowsort
SELECT DISTINCT col0 - + ( tab0.col2 + col0 ) AS col0 FROM tab0
----
-1
-33
-82

query I rowsort
SELECT DISTINCT + col2 - - col2 AS col0 FROM tab1
----
108
114
192

query I rowsort
SELECT DISTINCT col0 * + col0 - cor0.col2 FROM tab2 AS cor0
----
22
6058
6203

query I rowsort
SELECT ALL + col2 + + 91 * - cor0.col1 AS col1 FROM tab0 AS cor0
----
-7793
-8199
-8826

query I rowsort
SELECT ALL - cor0.col2 * 12 AS col0 FROM tab1 AS cor0
----
-1152
-648
-684

query I rowsort
SELECT col1 - - 30 * - col0 * - col0 FROM tab0 cor0
----
17366
237721
36847

onlyif mysql # use DIV operator for integer division
query I rowsort label-9859
SELECT DISTINCT - col1 * CAST( + col2 * + col0 AS SIGNED ) - ( 2 ) DIV col2 FROM tab0 AS cor0
----
-3397
-664118
-68112

skipif mysql # not compatible
query I rowsort label-9859
SELECT DISTINCT - col1 * CAST ( + col2 * + col0 AS INTEGER ) - ( 2 ) / col2 FROM tab0 AS cor0
----
-3397
-664118
-68112

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9860
SELECT ALL CAST( NULL AS SIGNED ) * - col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9860
SELECT ALL CAST ( NULL AS INTEGER ) * - col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + ( - 98 ) col1 FROM tab0 AS cor0
----
98

query I rowsort
SELECT + col0 + 83 AS col0 FROM tab1 AS cor0
----
147
163
86

query I rowsort
SELECT ALL - + 76 * + col0 + - col1 * + col2 * 59 + - col0 FROM tab0 AS cor0
----
-169290
-447111
-8418

query I rowsort
SELECT ALL + cor0.col1 + + col2 AS col2 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT - + col2 + col0 FROM tab0 cor0
----
-9
34
7

query I rowsort
SELECT ALL - ( - col2 ) + col0 + col0 * + col1 FROM tab1 AS cor0
----
1216
135
761

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9867
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + cor0.col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9867
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + cor0.col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - 38 + - cor0.col1 + - col1 AS col2 FROM tab1 cor0
----
-58
-64
-90

query I rowsort
SELECT DISTINCT + 60 * col0 + col0 AS col0 FROM tab2 AS cor0
----
427
4758
4819

query I rowsort
SELECT ALL - col2 - 95 FROM tab0 AS cor0
----
-128
-177
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( col1 ) + - col1 col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9872
SELECT ALL + ( ( + col1 ) ) + CAST( + ( + col1 ) * + col0 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
104
1053
650

skipif mysql # not compatible
query I rowsort label-9872
SELECT ALL + ( ( + col1 ) ) + CAST ( + ( + col1 ) * + col0 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
104
1053
650

query I rowsort
SELECT - - cor0.col0 * + col1 FROM tab0 AS cor0
----
2064
3395
8099

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9874
SELECT col1 * + ( col0 ) * - col2 + - CAST( NULL AS SIGNED ) + - col0 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9874
SELECT col1 * + ( col0 ) * - col2 + - CAST ( NULL AS INTEGER ) + - col0 AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 - - ( + 89 ) FROM tab1
----
153
169
92

query I rowsort
SELECT - 61 + cor0.col0 FROM tab2, tab2 AS cor0
----
9 values hashing to b692b9967591f1f5b25520417ace1567

query I rowsort
SELECT ALL ( col2 ) * col2 + col0 AS col1 FROM tab0 AS cor0
----
1113
36
6813

query I rowsort
SELECT ALL + - 60 * - col2 + col1 AS col2 FROM tab1 AS cor0
----
3266
3430
5773

query I rowsort
SELECT ALL + - ( - ( col0 ) ) * - col1 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT - - col0 * 73 + - col0 AS col0 FROM tab2 AS cor0
----
504
5616
5688

query I rowsort
SELECT DISTINCT - col2 * 37 - col0 * + cor0.col0 FROM tab2 AS cor0
----
-1048
-7046
-7647

onlyif mysql # use DIV operator for integer division
query I rowsort label-9882
SELECT ALL - CAST( - ( - col0 - - ( col2 ) ) AS SIGNED ) + - col2 DIV + ( - col2 ) - + col1 FROM tab0 AS cor0
----
-130
-76
-97

skipif mysql # not compatible
query I rowsort label-9882
SELECT ALL - CAST ( - ( - col0 - - ( col2 ) ) AS INTEGER ) + - col2 / + ( - col2 ) - + col1 FROM tab0 AS cor0
----
-130
-76
-97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9883
SELECT CAST( NULL AS DECIMAL ) * col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9883
SELECT CAST ( NULL AS REAL ) * col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-9884
SELECT ( - col2 ) DIV col1 col2 FROM tab2
----
-2
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9884
SELECT ( - col2 ) / col1 col2 FROM tab2
----
-2
0
0

query I rowsort
SELECT + col0 * 46 - + col0 FROM tab2 AS cor0
----
315
3510
3555

query I rowsort
SELECT ALL ( col0 ) * + col1 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT - col2 * - col2 + - col2 FROM tab2 AS cor0
----
1406
650
702

query I rowsort
SELECT - + col0 * cor0.col0 + col1 FROM tab1 AS cor0
----
-4086
-6387
17

query I rowsort
SELECT + 19 + col2 AS col0 FROM tab0 AS cor0
----
101
20
52

query I rowsort
SELECT cor0.col2 + cor0.col1 AS col0 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT + - 71 + - col0 FROM tab1 AS cor0
----
-135
-151
-74

query I rowsort
SELECT + + cor0.col1 + - tab2.col1 * - tab2.col2 AS col0 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 23e4235b17454f98ebda93395ab673c1

query I rowsort
SELECT ALL + col0 + + 93 AS col2 FROM tab2 cor0
----
100
171
172

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 * + col1 col1 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT + + col2 * cor0.col1 + - col1 * - cor0.col2 AS col2 FROM tab2 AS cor0
----
1292
1674
3068

onlyif mysql # use DIV operator for integer division
query I rowsort label-9896
SELECT - + col1 DIV - ( - col1 ) col1 FROM tab1 AS cor0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9896
SELECT - + col1 / - ( - col1 ) col1 FROM tab1 AS cor0
----
-1
-1
-1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9897
SELECT ALL + + col0 + + CAST( - col1 AS SIGNED ) * col1 FROM tab2 AS cor0
----
-210
-3403
-954

skipif mysql # not compatible
query I rowsort label-9897
SELECT ALL + + col0 + + CAST ( - col1 AS INTEGER ) * col1 FROM tab2 AS cor0
----
-210
-3403
-954

query I rowsort
SELECT col0 * ( - 48 ) FROM tab2 AS cor0
----
-336
-3744
-3792

onlyif mysql # use DIV operator for integer division
query I rowsort label-9899
SELECT ALL + cor0.col1 + ( + 24 ) DIV - col0 AS col1 FROM tab1 AS cor0
----
10
13
18

skipif mysql # not compatible
query I rowsort label-9899
SELECT ALL + cor0.col1 + ( + 24 ) / - col0 AS col1 FROM tab1 AS cor0
----
10
13
18

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9900
SELECT ALL - col2 * CAST( - col2 AS SIGNED ) + col0 AS col0 FROM tab2 AS cor0
----
1523
736
754

skipif mysql # not compatible
query I rowsort label-9900
SELECT ALL - col2 * CAST ( - col2 AS INTEGER ) + col0 AS col0 FROM tab2 AS cor0
----
1523
736
754

query I rowsort
SELECT DISTINCT cor0.col0 * cor0.col0 FROM tab2 AS cor0
----
49
6084
6241

onlyif mysql # use DIV operator for integer division
query I rowsort label-9902
SELECT DISTINCT - col2 DIV - tab2.col1 AS col1 FROM tab2
----
0
2

skipif mysql # not compatible
query I rowsort label-9902
SELECT DISTINCT - col2 / - tab2.col1 AS col1 FROM tab2
----
0
2

onlyif mysql # use DIV operator for integer division
query I rowsort label-9903
SELECT + 49 * - col2 + + ( - tab0.col2 ) DIV - col0 AS col0 FROM tab0
----
-1616
-4018
-49

skipif mysql # not compatible
query I rowsort label-9903
SELECT + 49 * - col2 + + ( - tab0.col2 ) / - col0 AS col0 FROM tab0
----
-1616
-4018
-49

query I rowsort
SELECT ALL - cor0.col0 * + col2 AS col0 FROM tab2 cor0
----
-189
-2028
-3002

query I rowsort
SELECT DISTINCT col1 + 5 AS col2 FROM tab2 AS cor0
----
22
36
64

query I rowsort
SELECT ALL + + col0 * col0 * - col1 AS col0 FROM tab2 AS cor0
----
-106097
-1519
-358956

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + col1 + col2 col0 FROM tab1 AS cor0
----
157
265
730

query I rowsort
SELECT ALL + cor0.col0 * col2 AS col0 FROM tab0 AS cor0
----
35
7298
792

onlyif mysql # use DIV operator for integer division
query I rowsort label-9909
SELECT DISTINCT col1 DIV col1 FROM tab0 cor0
----
1

skipif mysql # not compatible
query I rowsort label-9909
SELECT DISTINCT col1 / col1 FROM tab0 cor0
----
1

query I rowsort
SELECT DISTINCT tab0.col0 * col2 * col1 FROM tab0
----
3395
664118
68112

query I rowsort
SELECT ALL + tab0.col1 AS col1 FROM tab0, tab0 cor0, tab2 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT ALL 58 * + tab2.col2 + + col0 FROM tab2
----
1573
1586
2283

query I rowsort
SELECT + 89 + + col0 FROM tab0 AS cor0
----
113
124
178

query I rowsort
SELECT DISTINCT - 92 FROM tab1
----
-92

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9915
SELECT CAST( 6 AS SIGNED ) FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to f1e8f0199f3714ee8fcc24ce0cc3ea04

skipif mysql # not compatible
query I rowsort label-9915
SELECT CAST ( 6 AS INTEGER ) FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to f1e8f0199f3714ee8fcc24ce0cc3ea04

query I rowsort
SELECT + - col0 * ( ( + col1 ) * col1 ) - + col1 * col2 FROM tab1 AS cor0
----
-14768
-3432
-6970

onlyif mysql # use DIV operator for integer division
query I rowsort label-9917
SELECT + - col1 + - 52 * col1 DIV col2 FROM tab1 AS cor0
----
-19
-20
-51

skipif mysql # not compatible
query I rowsort label-9917
SELECT + - col1 + - 52 * col1 / col2 FROM tab1 AS cor0
----
-19
-20
-51

query I rowsort
SELECT col0 - ( + col1 ) * - col2 FROM tab1
----
1328
1407
634

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + ( - col1 ) + col2 col0 FROM tab2 AS cor0
----
-1508
-608
-810

query I rowsort
SELECT + - col0 * 52 + 47 * + col0 AS col2 FROM tab1 AS cor0
----
-15
-320
-400

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9921
SELECT DISTINCT + col2 * - CAST( 41 AS SIGNED ) col0 FROM tab1 cor0
----
-2214
-2337
-3936

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9921
SELECT DISTINCT + col2 * - CAST ( 41 AS INTEGER ) col0 FROM tab1 cor0
----
-2214
-2337
-3936

query I rowsort
SELECT ALL - + col2 * - 38 * + cor0.col0 + col0 * col1 FROM tab2 AS cor0
----
115419
7399
81666

query I rowsort
SELECT col1 - - col0 * - col1 AS col0 FROM tab0 cor0
----
-1978
-3298
-8008

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * cor0.col2 col2 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT col2 + - col0 * col0 AS col0 FROM tab0 AS cor0
----
-1224
-543
-7839

query I rowsort
SELECT ALL ( - cor0.col2 ) + - cor0.col2 - - col2 * col2 FROM tab2 AS cor0
----
1368
624
675

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9927
SELECT ALL - + CAST( NULL AS SIGNED ) * cor0.col0 + + col2 * - col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9927
SELECT ALL - + CAST ( NULL AS INTEGER ) * cor0.col0 + + col2 * - col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 6 FROM tab0 cor0
----
6
6
6

query I rowsort
SELECT DISTINCT ( - 59 ) AS col1 FROM tab2
----
-59

query I rowsort
SELECT - - 29 * - col0 AS col0 FROM tab2 AS cor0
----
-203
-2262
-2291

query I rowsort
SELECT 33 * + col1 + - col0 AS col2 FROM tab0 AS cor0
----
2814
2914
3166

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-9933
SELECT - CAST( col2 AS SIGNED ) * + cor0.col1 AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97

skipif mysql # not compatible
query I rowsort label-9933
SELECT - CAST ( col2 AS INTEGER ) * + cor0.col1 AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT + + cor0.col1 * col0 AS col0 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT + 48 * col1 + ( + ( + col1 ) ) AS col2 FROM tab0 AS cor0
----
4214
4459
4753

query I rowsort
SELECT + 77 + col2 FROM tab1 AS cor0
----
131
134
173

query I rowsort
SELECT - ( - col0 ) * 48 * col0 FROM tab0 AS cor0
----
27648
380208
58800

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * col2 + 66 col1 FROM tab0 AS cor0
----
101
7364
858

onlyif mysql # use DIV operator for integer division
query I rowsort label-9939
SELECT - - ( col0 ) DIV col2 AS col1 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9939
SELECT - - ( col0 ) / col2 AS col1 FROM tab1 AS cor0
----
0
0
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-9940
SELECT col1 DIV col2 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9940
SELECT col1 / col2 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - - 78 * cor0.col2 AS col1 FROM tab0 AS cor0
----
2574
6396
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + cor0.col0 col1 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT - ( col2 ) * col1 AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT ALL + + col0 + + col0 AS col0 FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT DISTINCT + 26 AS col2 FROM tab1 AS cor0
----
26

query I rowsort
SELECT DISTINCT - col1 * + 11 AS col1 FROM tab2 AS cor0
----
-187
-341
-649

query I rowsort
SELECT - col0 * cor0.col1 AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT ALL + cor0.col0 AS col2 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT col2 + - col2 * col0 FROM tab1 cor0
----
-108
-3591
-7584

query I rowsort
SELECT ALL - + col2 * 52 FROM tab0 cor0
----
-1716
-4264
-52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 82 + - col0 col0 FROM tab0
----
-7
47
58

query I rowsort
SELECT DISTINCT - ( col1 ) + + col0 + cor0.col0 * ( col0 + cor0.col1 ) * col1 FROM tab1 AS cor0
----
2239
47414
96787

query I rowsort
SELECT col1 * - 62 + + col1 FROM tab2 AS cor0
----
-1037
-1891
-3599

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9954
SELECT ALL + - CAST( NULL AS SIGNED ) * - col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9954
SELECT ALL + - CAST ( NULL AS INTEGER ) * - col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 19 * + 87 AS col1 FROM tab0 AS cor0
----
1653

query I rowsort
SELECT col2 * + 15 FROM tab2 AS cor0
----
390
405
570

query I rowsort
SELECT ALL - cor0.col2 + + col0 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT ALL 25 * 12 FROM tab1, tab1 AS cor0
----
9 values hashing to 051dd47c7027701e5db0a6b5c203cbc7

query I rowsort
SELECT ALL - 77 + 57 * - col2 AS col2 FROM tab2
----
-1559
-1616
-2243

onlyif mysql # use DIV operator for integer division
query I rowsort label-9960
SELECT DISTINCT + 70 DIV - col0 AS col1 FROM tab0
----
-2
0

skipif mysql # not compatible
query I rowsort label-9960
SELECT DISTINCT + 70 / - col0 AS col1 FROM tab0
----
-2
0

query I rowsort
SELECT + ( - col1 + col2 * + ( + 47 ) ) AS col2 FROM tab2
----
1163
1238
1769

query I rowsort
SELECT - 65 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 4ca93c42a91c7dff917e7b7090ba9e57

query I rowsort
SELECT ( - col1 * tab0.col0 ) FROM tab0
----
-2064
-3395
-8099

query I rowsort
SELECT - 63 * - 90 FROM tab2 AS cor0
----
5670
5670
5670

query I rowsort
SELECT ALL - cor1.col0 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to c82df1de3cb666224690a83f3d790d79

query I rowsort
SELECT + ( ( col0 ) ) * + 87 FROM tab2 AS cor0
----
609
6786
6873

query I rowsort
SELECT col2 * col2 * - col1 + tab2.col2 AS col0 FROM tab2
----
-22572
-24510
-39858

query I rowsort
SELECT + + cor0.col1 * - col0 + + cor0.col0 AS col2 FROM tab1 cor0
----
-576
-75
-960

query I rowsort
SELECT + col0 + + col1 AS col2 FROM tab1 cor0
----
29
74
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-9970
SELECT - col2 - - 91 DIV col2 FROM tab0 AS cor0
----
-31
-81
90

skipif mysql # not compatible
query I rowsort label-9970
SELECT - col2 - - 91 / col2 FROM tab0 AS cor0
----
-31
-81
90

query I rowsort
SELECT ALL + + cor0.col2 * - 59 * + 11 AS col0 FROM tab0 cor0
----
-21417
-53218
-649

query I rowsort
SELECT + col2 * - ( - col2 ) + col0 FROM tab0 AS cor0
----
1113
36
6813

query I rowsort
SELECT - col1 + ( col0 ) * + cor0.col2 FROM tab0 AS cor0
----
-62
706
7207

query I rowsort
SELECT DISTINCT col1 * + 67 FROM tab1 AS cor0
----
1742
670
871

query I rowsort
SELECT col2 * tab0.col1 AS col0 FROM tab0
----
2838
7462
97

query I rowsort
SELECT DISTINCT + ( + col0 ) * col0 - - 39 FROM tab2
----
6123
6280
88

query I rowsort
SELECT ALL + col1 + + ( col2 ) AS col0 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT DISTINCT col1 - tab2.col1 FROM tab2
----
0

query I rowsort
SELECT + tab1.col0 * 5 AS col1 FROM tab1
----
15
320
400

query I rowsort
SELECT ALL col0 + - col1 + col2 FROM tab1
----
111
163
31

query I rowsort
SELECT cor0.col1 + cor0.col2 AS col1 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT 6 FROM tab1, tab0 AS cor0
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

onlyif mysql # use DIV operator for integer division
query I rowsort label-9983
SELECT col2 * 1 DIV + 13 AS col2 FROM tab2
----
2
2
2

skipif mysql # not compatible
query I rowsort label-9983
SELECT col2 * 1 / + 13 AS col2 FROM tab2
----
2
2
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 4 col2 FROM tab0 cor0
----
-4
-4
-4

query I rowsort
SELECT DISTINCT 1 * col1 AS col0 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT DISTINCT 19 * 64 FROM tab1, tab0 cor0, tab2 AS cor1
----
1216

query I rowsort
SELECT + 96 FROM tab0, tab1 AS cor0
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303

query I rowsort
SELECT col2 + + cor0.col2 * - col0 AS col0 FROM tab2 AS cor0
----
-162
-2002
-2964

query I rowsort
SELECT ALL + ( col0 ) + col2 * ( + col2 ) AS col0 FROM tab1 AS cor0
----
2919
3313
9296

query I rowsort
SELECT DISTINCT 57 AS col2 FROM tab2, tab2 AS cor0
----
57

query I rowsort
SELECT - 99 FROM tab1, tab0 AS cor0
----
9 values hashing to 64d06513850a26495bc6c2fddeb254b7

query I rowsort
SELECT - col0 * col1 * col2 + + col2 AS col2 FROM tab0
----
-3394
-664036
-68079

query I rowsort
SELECT ALL + 61 FROM tab0
----
61
61
61

query I rowsort
SELECT DISTINCT 60 + - tab2.col0 * col2 + col1 FROM tab2
----
-1909
-2925
-98

query I rowsort
SELECT DISTINCT - col2 - + col0 * 87 * + col1 FROM tab1
----
-55737
-6840
-90576

query I rowsort
SELECT + col1 * tab1.col2 + + col1 AS col1 FROM tab1
----
1261
1430
580

query I rowsort
SELECT DISTINCT ( - tab2.col1 ) + ( + col0 ) AS col0 FROM tab2
----
-24
19
62

query I rowsort
SELECT ALL + col0 + col0 * 15 FROM tab0
----
1424
384
560

query I rowsort
SELECT ALL + 20 * - col0 AS col0 FROM tab0 cor0
----
-1780
-480
-700