sqllogictest
Artifact Content
Not logged in

Artifact 3e3594463a536de41a14a2bcfb573dee9bf5d179:


hash-threshold 8

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

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

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT ( col1 ) * col2 * + ( col2 ) + - cor0.col0 * col0 FROM tab0 AS cor0
----
-1128
603963
93078

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

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

query I rowsort
SELECT DISTINCT - col1 * col0 - col1 * + col0 FROM tab2 AS cor0
----
-2686
-434
-9204

query I rowsort
SELECT 56 + + col1 * 33 * + ( + cor0.col2 * + col0 ) AS col2 FROM tab1 AS cor0
----
1203896
139052
3294776

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

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

query I rowsort
SELECT ALL - - ( - col1 ) * 17 + col0 FROM tab1 AS cor0
----
-106
-141
-439

query I rowsort
SELECT DISTINCT + - 31 - col1 FROM tab2 AS cor0
----
-48
-62
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * col0 + ( 84 + - col2 ) * col1 col2 FROM tab1 cor0
----
3918
7524
942

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

query I rowsort
SELECT + 27 + - col2 FROM tab1 AS cor0
----
-27
-30
-69

query I rowsort
SELECT ALL - - 8 FROM tab0, tab0 cor0
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57

query I rowsort
SELECT DISTINCT + - col0 * 67 FROM tab0 AS cor0
----
-1608
-2345
-5963

query I rowsort
SELECT ALL + col2 * - cor0.col2 + col1 + + col2 AS col1 FROM tab0 AS cor0
----
-6551
-970
97

query I rowsort
SELECT - col0 * - 49 AS col1 FROM tab0 cor0
----
1176
1715
4361

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

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

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

query I rowsort
SELECT - - 25 * - col2 - - cor0.col2 FROM tab0 AS cor0
----
-1968
-24
-792

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

query I rowsort
SELECT col0 + + tab1.col0 * + ( col2 * - 85 ) AS col1 FROM tab1
----
-13767
-310016
-652720

query I rowsort
SELECT + ( + col1 ) * col1 * ( col0 ) + col2 * col0 AS col0 FROM tab0 cor0
----
178296
329350
744307

query I rowsort
SELECT + col0 * + 83 + - col1 AS col1 FROM tab1
----
223
5302
6627

query I rowsort
SELECT - col0 * 82 FROM tab1
----
-246
-5248
-6560

query I rowsort
SELECT DISTINCT col2 + - 56 FROM tab2
----
-18
-29
-30

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

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

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

query I rowsort
SELECT ( tab1.col1 * 12 ) FROM tab1
----
120
156
312

query I rowsort
SELECT ALL - col1 + + col1 * + col2 * - col2 + 6 FROM tab1
----
-119815
-32494
-75836

query I rowsort
SELECT ALL col1 * - 82 * + col0 AS col0 FROM tab2
----
-110126
-17794
-377364

query I rowsort
SELECT - col1 * 81 * ( - col1 ) AS col0 FROM tab2
----
23409
281961
77841

query I rowsort
SELECT col2 * + cor0.col0 + + 98 FROM tab0 AS cor0
----
133
7396
890

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

query I rowsort
SELECT - col2 + + cor0.col1 * 80 * col1 AS col1 FROM tab0 AS cor0
----
591647
662398
752719

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * - 91 col0 FROM tab1
----
1183
2366
910

onlyif mysql # use DIV operator for integer division
query I rowsort label-36
SELECT ( col2 ) DIV - tab0.col1 + 63 AS col1 FROM tab0
----
63
63
63

skipif mysql # not compatible
query I rowsort label-36
SELECT ( col2 ) / - tab0.col1 + 63 AS col1 FROM tab0
----
63
63
63

query I rowsort
SELECT ( - 9 ) FROM tab2
----
-9
-9
-9

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

query I rowsort
SELECT ALL - 12 - + cor0.col2 FROM tab2 AS cor0
----
-38
-39
-50

query I rowsort
SELECT + 82 - - col2 FROM tab0 AS cor0
----
115
164
83

query I rowsort
SELECT + 77 * - col2 AS col1 FROM tab2 AS cor0
----
-2002
-2079
-2926

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 84 * col1 col2 FROM tab2 AS cor0
----
-1428
-2604
-4956

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

query I rowsort
SELECT ALL + 56 * + col2 AS col1 FROM tab1
----
3024
3192
5376

query I rowsort
SELECT ALL - ( - col1 ) * - ( - 70 ) AS col1 FROM tab0 AS cor0
----
6020
6370
6790

query I rowsort
SELECT 26 * col1 FROM tab1 AS cor0
----
260
338
676

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 15 * col2 col1 FROM tab2 AS cor0
----
390
405
570

query I rowsort
SELECT ALL col0 * ( 93 ) FROM tab1 cor0
----
279
5952
7440

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

skipif mysql # not compatible
query I rowsort label-52
SELECT col2 + - CAST ( + col0 + col1 AS INTEGER ) * ( - col0 ) FROM tab2 AS cor0
----
10712
293
7622

query I rowsort
SELECT col1 - col0 * 59 AS col1 FROM tab2 AS cor0
----
-382
-4543
-4644

query I rowsort
SELECT col1 + 47 AS col1 FROM tab2 AS cor0
----
106
64
78

query I rowsort
SELECT - col2 + - col2 * 60 AS col0 FROM tab1 cor0
----
-3294
-3477
-5856

query I rowsort
SELECT ALL - cor0.col2 + 69 * + cor0.col0 FROM tab1 cor0
----
153
4359
5424

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - 5 col1 FROM tab1 AS cor0
----
-69
-8
-85

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

skipif mysql # not compatible
query I rowsort label-58
SELECT - + col2 / cor0.col0 - col0 FROM tab1 AS cor0
----
-21
-64
-81

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

skipif mysql # not compatible
query I rowsort label-59
SELECT DISTINCT cor0.col1 * - cor0.col1 + col2 * - col2 * CAST ( + 20 + col0 * 87 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-12474
-2303008
-52206693

query I rowsort
SELECT - - cor0.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 + col1 - col1 * col2 col2 FROM tab1 cor0
----
-1235
-1378
-560

query I rowsort
SELECT + cor0.col1 * ( 6 * + col1 ) AS col2 FROM tab1 AS cor0
----
1014
4056
600

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-63
SELECT cor0.col2 / CAST( NULL AS DECIMAL ) col1 FROM tab2, tab0, tab2 AS cor0, tab1
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-63
SELECT cor0.col2 / CAST ( NULL AS REAL ) col1 FROM tab2, tab0, tab2 AS cor0, tab1
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

query I rowsort
SELECT DISTINCT + col0 * + col0 * col0 + col0 FROM tab0 AS cor0
----
13848
42910
705058

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - 22 col2 FROM tab1 cor0
----
-12
-9
4

query I rowsort
SELECT ALL col0 - - 8 * col2 FROM tab1 AS cor0
----
435
520
848

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-68
SELECT ALL - 75 DIV tab2.col1 AS col2 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 911f5c48719063d43cdfa81569cd88f7

skipif mysql # not compatible
query I rowsort label-68
SELECT ALL - 75 / tab2.col1 AS col2 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 911f5c48719063d43cdfa81569cd88f7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * 5 + - col1 col1 FROM tab2 AS cor0
----
104
173
71

query I rowsort
SELECT 58 * - col1 + cor0.col1 FROM tab1 AS cor0
----
-1482
-570
-741

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 1 + col1 + tab2.col0 col2 FROM tab2
----
138
39
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-72
SELECT + 75 * col1 DIV col0 - + ( tab2.col0 ) * + col0 * col1 AS col1 FROM tab2
----
-106081
-1187
-358900

skipif mysql # not compatible
query I rowsort label-72
SELECT + 75 * col1 / col0 - + ( tab2.col0 ) * + col0 * col1 AS col1 FROM tab2
----
-106081
-1187
-358900

query I rowsort
SELECT - col1 * + col0 - col1 * col1 * col2 FROM tab0
----
-12804
-246132
-687141

query I rowsort
SELECT DISTINCT + col0 + + col2 * + col0 FROM tab0
----
70
7387
816

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

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

query I rowsort
SELECT DISTINCT - col0 * tab0.col1 * col2 + - col1 FROM tab0
----
-3492
-664209
-68198

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

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

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

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

query I rowsort
SELECT col1 * - tab1.col2 * col1 FROM tab1 WHERE ( - col1 * col1 + col0 ) NOT BETWEEN + col1 + - col2 AND ( col2 )
----
-16224
-36504

query I rowsort
SELECT ALL col2 + - col1 AS col0 FROM tab2 WHERE NOT ( + col2 + col2 / + col0 ) = ( NULL )
----

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

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

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

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

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + tab0.col0 + + col2 * col1 col0 FROM tab0
----
229
2948
7642

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

query III rowsort
SELECT * FROM tab0 WHERE col2 + - col0 <= NULL
----

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

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

query I rowsort
SELECT col1 * col0 + - col0 * - col1 FROM tab2
----
2686
434
9204

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

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

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

skipif mysql # not compatible
query I rowsort label-100
SELECT DISTINCT + tab1.col2 / + col0 AS col1 FROM tab1
----
0
1
18

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

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

query I rowsort
SELECT + col2 FROM tab0 WHERE ( NULL ) IN ( col1 )
----

query I rowsort
SELECT ALL col0 + col1 * col2 + - tab0.col1 AS col2 FROM tab0
----
2776
35
7460

query I rowsort
SELECT - col2 * + col2 FROM tab1 cor0 WHERE ( + col2 ) = - col2
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-106
SELECT col0 DIV + col1 + cor0.col1 AS col0 FROM tab1 AS cor0
----
16
19
26

skipif mysql # not compatible
query I rowsort label-106
SELECT col0 / + col1 + cor0.col1 AS col0 FROM tab1 AS cor0
----
16
19
26

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

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

query I rowsort
SELECT - cor0.col2 * col2 + - cor0.col0 * col0 FROM tab2 AS cor0
----
-6760
-7685
-778

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

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

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

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

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

query I rowsort
SELECT - ( - col1 ) + - cor0.col2 + 17 AS col0 FROM tab0 AS cor0
----
113
26
70

query I rowsort
SELECT DISTINCT - 52 + - cor0.col1 * col1 AS col1 FROM tab2 cor0
----
-1013
-341
-3533

onlyif mysql # use DIV operator for integer division
query I rowsort label-116
SELECT 44 DIV + col2 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-116
SELECT 44 / + col2 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + col1 + 61 FROM tab1 cor0
----
71
74
87

query I rowsort
SELECT + 10 - + ( col2 ) AS col0 FROM tab2 AS cor0
----
-16
-17
-28

query I rowsort
SELECT ALL cor1.col2 FROM tab0, tab0 AS cor0, tab0 cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

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

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

query I rowsort
SELECT ALL - + 19 * 84 FROM tab2 AS cor0
----
-1596
-1596
-1596

query I rowsort
SELECT 34 + + col2 AS col2 FROM tab0
----
116
35
67

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 * col0 * col2 col1 FROM tab1 AS cor0
----
233472
486
614400

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-128
SELECT DISTINCT + + col1 * - ( - col0 ) DIV cor0.col0 FROM tab2 AS cor0
----
17
31
59

skipif mysql # not compatible
query I rowsort label-128
SELECT DISTINCT + + col1 * - ( - col0 ) / cor0.col0 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT ALL col0 + - col2 + - ( col1 ) AS col1 FROM tab0 AS cor0
----
-63
-84
-95

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

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

query I rowsort
SELECT DISTINCT - + cor0.col0 * + 16 * + cor0.col0 + + cor0.col0 AS col0 FROM tab1 cor0
----
-102320
-141
-65472

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - 50 ) * tab1.col2 col0 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 813db339ff4b5b293b1141f5b69e99c6

query I rowsort
SELECT ALL col1 * + col1 * - col1 FROM tab1
----
-1000
-17576
-2197

onlyif mysql # use DIV operator for integer division
query I rowsort label-138
SELECT ALL col1 * col1 DIV + ( col1 ) FROM tab1
----
10
13
26

skipif mysql # not compatible
query I rowsort label-138
SELECT ALL col1 * col1 / + ( col1 ) FROM tab1
----
10
13
26

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

query I rowsort
SELECT ALL + col2 + - 85 * + col1 + - tab1.col0 * - col0 FROM tab1
----
-2147
3303
5391

onlyif mysql # use DIV operator for integer division
query I rowsort label-141
SELECT - col1 * cor0.col1 * col2 + - col2 - - col0 DIV col1 AS col1 FROM tab0 AS cor0
----
-244101
-679124
-9410

skipif mysql # not compatible
query I rowsort label-141
SELECT - col1 * cor0.col1 * col2 + - col2 - - col0 / col1 AS col1 FROM tab0 AS cor0
----
-244101
-679124
-9410

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

query I rowsort
SELECT + 85 * + col0 FROM tab0
----
2040
2975
7565

query I rowsort
SELECT DISTINCT 41 * tab1.col1 FROM tab1
----
1066
410
533

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-146
SELECT - col1 DIV tab0.col0 + - tab0.col1 * tab0.col2 * + col0 AS col2 FROM tab0
----
-3397
-664119
-68115

skipif mysql # not compatible
query I rowsort label-146
SELECT - col1 / tab0.col0 + - tab0.col1 * tab0.col2 * + col0 AS col2 FROM tab0
----
-3397
-664119
-68115

query I rowsort
SELECT ( - col1 ) + 71 FROM tab0
----
-15
-20
-26

query I rowsort
SELECT ( col1 ) * 94 FROM tab1
----
1222
2444
940

query I rowsort
SELECT DISTINCT col1 + - 81 * col0 FROM tab2 cor0
----
-536
-6259
-6382

query I rowsort
SELECT ALL - + cor0.col0 * 76 FROM tab2 AS cor0
----
-532
-5928
-6004

query I rowsort
SELECT - 66 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to a408108d423d7784b7d610cb779e515a

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

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

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

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

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

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

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

query I rowsort
SELECT ALL + col1 * + col1 + col0 AS col2 FROM tab1
----
164
249
679

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 * - col0 * + col1 col0 FROM tab0 AS cor0
----
-118825
-49536
-720811

query I rowsort
SELECT ALL - col2 + - col1 * - col0 + col2 AS col0 FROM tab2 AS cor0 WHERE NOT + col2 = ( + col0 ) OR ( NULL ) > NULL
----
1343
217
4602

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

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

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

query I rowsort
SELECT DISTINCT col0 * col1 + col0 AS col0 FROM tab1 cor0
----
1120
704
81

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

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

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

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-168
SELECT - 22 + col2 DIV col0 + col2 DIV col1 col0 FROM tab2
----
-19
-20
-22

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-168
SELECT - 22 + col2 / col0 + col2 / col1 col0 FROM tab2
----
-19
-20
-22

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

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

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

skipif mysql # not compatible
query I rowsort label-171
SELECT - col1 / + col2 AS col2 FROM tab0 cor0
----
-1
-2
-97

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-173
SELECT col2 + - col2 DIV + col0 col1 FROM tab1 AS cor0
----
36
57
95

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

query I rowsort
SELECT DISTINCT col1 * + col1 - col1 * col2 FROM tab0 AS cor0
----
4558
819
9312

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-176
SELECT col1 + + tab0.col2 + col0 DIV + col0 AS col1 FROM tab0
----
120
174
99

skipif mysql # not compatible
query I rowsort label-176
SELECT col1 + + tab0.col2 + col0 / + col0 AS col1 FROM tab0
----
120
174
99

onlyif mysql # use DIV operator for integer division
query I rowsort label-177
SELECT - col0 * + tab1.col2 + + ( - col0 ) DIV + col1 AS col2 FROM tab1
----
-162
-3654
-7686

skipif mysql # not compatible
query I rowsort label-177
SELECT - col0 * + tab1.col2 + + ( - col0 ) / + col1 AS col2 FROM tab1
----
-162
-3654
-7686

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

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

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

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

query I rowsort
SELECT DISTINCT 18 * cor0.col0 * + col1 + 90 AS col2 FROM tab1 AS cor0
----
11610
1494
18810

query I rowsort
SELECT ALL col0 * + tab2.col0 + col1 * - 33 FROM tab2
----
-974
4137
5680

query I rowsort
SELECT DISTINCT ( + col1 ) + 96 AS col1 FROM tab1
----
106
109
122

query I rowsort
SELECT 18 * col2 * col2 + col0 + - col1 AS col0 FROM tab0
----
-44
121030
19540

query I rowsort
SELECT ALL - col2 + col1 * 46 FROM tab0
----
3923
4104
4461

query I rowsort
SELECT DISTINCT - ( + col2 ) * col0 * - 29 FROM tab0 AS cor0
----
1015
211642
22968

onlyif mysql # use DIV operator for integer division
query I rowsort label-188
SELECT cor0.col1 DIV ( - 24 ) + col2 FROM tab2 cor0
----
24
26
38

skipif mysql # not compatible
query I rowsort label-188
SELECT cor0.col1 / ( - 24 ) + col2 FROM tab2 cor0
----
24
26
38

query I rowsort
SELECT DISTINCT + - cor0.col1 * + 42 + 29 AS col0 FROM tab1 AS cor0
----
-1063
-391
-517

query I rowsort
SELECT ALL - - col2 + ( 44 ) AS col1 FROM tab1 AS cor0
----
101
140
98

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

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

query I rowsort
SELECT DISTINCT + col0 * ( - col1 * + col0 ) - + col0 AS col1 FROM tab2 AS cor0
----
-106176
-1526
-359034

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

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

query I rowsort
SELECT ALL + col0 * + ( col0 ) + cor0.col0 * cor0.col1 FROM tab0 AS cor0
----
16020
2640
4620

query I rowsort
SELECT cor0.col0 + - col1 * + 6 FROM tab2 cor0
----
-179
-23
-276

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

query I rowsort
SELECT + col1 * 53 + col1 AS col0 FROM tab0 AS cor0
----
4644
4914
5238

query I rowsort
SELECT DISTINCT col0 * + 80 FROM tab2 AS cor0
----
560
6240
6320

query I rowsort
SELECT ALL cor0.col1 * - 68 + - 91 FROM tab1 AS cor0
----
-1859
-771
-975

onlyif mysql # use DIV operator for integer division
query I rowsort label-201
SELECT DISTINCT - col0 + 46 DIV col0 FROM tab0 AS cor0
----
-23
-34
-89

skipif mysql # not compatible
query I rowsort label-201
SELECT DISTINCT - col0 + 46 / col0 FROM tab0 AS cor0
----
-23
-34
-89

query I rowsort
SELECT - + 55 * - col1 + cor0.col0 FROM tab1 AS cor0
----
1433
614
795

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

query I rowsort
SELECT + 49 * + 66 AS col0 FROM tab0 AS cor0
----
3234
3234
3234

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

query I rowsort
SELECT - ( col1 ) + col0 * ( - 80 ) AS col2 FROM tab1 cor0
----
-266
-5130
-6413

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-208
SELECT DISTINCT + CAST( ( - col1 ) AS SIGNED ) * 63 FROM tab1 AS cor0
----
-1638
-630
-819

skipif mysql # not compatible
query I rowsort label-208
SELECT DISTINCT + CAST ( ( - col1 ) AS INTEGER ) * 63 FROM tab1 AS cor0
----
-1638
-630
-819

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

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

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

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

query I rowsort
SELECT DISTINCT 79 + col0 * - col1 AS col1 FROM tab0 AS cor0
----
-1985
-3316
-8020

query I rowsort
SELECT ALL - ( + ( col0 ) ) + 80 FROM tab1 AS cor0
----
0
16
77

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

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

query I rowsort
SELECT ( - 68 ) FROM tab0 cor0
----
-68
-68
-68

query I rowsort
SELECT DISTINCT - + col0 + - 35 - - col2 FROM tab1 AS cor0
----
-19
-42
16

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-219
SELECT DISTINCT col0 DIV cor0.col0 + + col1 * + col2 AS col0 FROM tab1 AS cor0
----
1249
1405
571

skipif mysql # not compatible
query I rowsort label-219
SELECT DISTINCT col0 / cor0.col0 + + col1 * + col2 AS col0 FROM tab1 AS cor0
----
1249
1405
571

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

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

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

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

query I rowsort
SELECT DISTINCT + + 55 * + col1 FROM tab0 AS cor0
----
4730
5005
5335

query I rowsort
SELECT - + 31 + cor0.col0 FROM tab0 AS cor0
----
-7
4
58

query I rowsort
SELECT ALL + 14 AS col0 FROM tab2, tab1, tab1 cor0, tab0
----
81 values hashing to 742ac5d81e64168a26fbd2bc8c808eff

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

skipif mysql # not compatible
query I rowsort label-226
SELECT 97 * + col2 * + CAST ( col1 AS INTEGER ) FROM tab0 AS cor0
----
275286
723814
9409

query I rowsort
SELECT col1 * 96 FROM tab0 AS cor0
----
8256
8736
9312

query I rowsort
SELECT - col2 * ( 76 ) AS col1 FROM tab2 cor0
----
-1976
-2052
-2888

query I rowsort
SELECT DISTINCT + 32 * - cor1.col1 FROM tab2 cor0 CROSS JOIN tab1 cor1
----
-320
-416
-832

query I rowsort
SELECT col1 * 25 FROM tab0
----
2150
2275
2425

query I rowsort
SELECT - col0 * - 80 AS col0 FROM tab2
----
560
6240
6320

query I rowsort
SELECT ALL col1 * - 34 FROM tab2
----
-1054
-2006
-578

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

query I rowsort
SELECT - ( - ( + col2 ) ) + 19 + - col0 FROM tab0 AS cor0
----
-15
12
28

query I rowsort
SELECT DISTINCT + 9 + + col2 * col1 AS col1 FROM tab0 AS cor0
----
106
2847
7471

query I rowsort
SELECT - - 24 * 54 + + col0 + cor0.col2 AS col0 FROM tab2 AS cor0
----
1330
1400
1413

query I rowsort
SELECT ALL + - 55 * cor0.col1 FROM tab0 AS cor0
----
-4730
-5005
-5335

query I rowsort
SELECT DISTINCT col0 * + 79 AS col2 FROM tab0
----
1896
2765
7031

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

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

query I rowsort
SELECT - col1 + + 37 FROM tab2 cor0
----
-22
20
6

onlyif mysql # use DIV operator for integer division
query I rowsort label-242
SELECT ALL - ( cor0.col1 ) + - col2 * 99 DIV cor0.col0 FROM tab0 cor0
----
-182
-222
-99

skipif mysql # not compatible
query I rowsort label-242
SELECT ALL - ( cor0.col1 ) + - col2 * 99 / cor0.col0 FROM tab0 cor0
----
-182
-222
-99

query I rowsort
SELECT - 80 * + cor0.col1 FROM tab0 AS cor0
----
-6880
-7280
-7760

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

query I rowsort
SELECT - cor0.col2 - - ( - 32 ) AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to e0703f51f85af2eb1b1d1b20bf633374

query I rowsort
SELECT - 33 * + col1 AS col2 FROM tab1
----
-330
-429
-858

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-250
SELECT - 56 DIV col0 + + cor0.col0 * col0 FROM tab2 cor0
----
41
6084
6241

skipif mysql # not compatible
query I rowsort label-250
SELECT - 56 / col0 + + cor0.col0 * col0 FROM tab2 cor0
----
41
6084
6241

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

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

query I rowsort
SELECT DISTINCT - - cor0.col2 + col2 * 63 FROM tab0 cor0
----
2112
5248
64

onlyif mysql # use DIV operator for integer division
query I rowsort label-254
SELECT ALL + + col1 * col1 DIV col2 FROM tab1 AS cor0
----
1
1
12

skipif mysql # not compatible
query I rowsort label-254
SELECT ALL + + col1 * col1 / col2 FROM tab1 AS cor0
----
1
1
12

query I rowsort
SELECT ALL + col2 * 92 + + col0 FROM tab2 AS cor0
----
2470
2491
3575

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

query I rowsort
SELECT + + col1 * 56 + - 89 FROM tab1 AS cor0
----
1367
471
639

query I rowsort
SELECT ( - col1 + 78 * - col0 ) AS col2 FROM tab0
----
-1958
-2827
-7033

query I rowsort
SELECT DISTINCT col2 * + col1 * tab2.col0 - + col1 FROM tab2
----
119593
51017
5828

query I rowsort
SELECT DISTINCT col1 + 37 FROM tab2
----
54
68
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + tab0.col2 col0 FROM tab0
----
-53
-9
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + col0 + col1 * + col0 col0 FROM tab2 cor0
----
1501
231
4758

onlyif mysql # use DIV operator for integer division
query I rowsort label-263
SELECT - col0 DIV col2 + col1 * + tab0.col1 AS col0 FROM tab0
----
7396
8280
9374

skipif mysql # not compatible
query I rowsort label-263
SELECT - col0 / col2 + col1 * + tab0.col1 AS col0 FROM tab0
----
7396
8280
9374

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-265
SELECT + 12 + - col1 DIV - 22 FROM tab0 AS cor0
----
15
16
16

skipif mysql # not compatible
query I rowsort label-265
SELECT + 12 + - col1 / - 22 FROM tab0 AS cor0
----
15
16
16

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

query I rowsort
SELECT ALL col0 * - 39 AS col1 FROM tab2
----
-273
-3042
-3081

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - col1 * - cor0.col1 - col2 * col1 col1 FROM tab2 AS cor0
----
22185
269984
5890

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-273
SELECT - 28 DIV col0 + 96 FROM tab0 AS cor0
----
95
96
96

skipif mysql # not compatible
query I rowsort label-273
SELECT - 28 / col0 + 96 FROM tab0 AS cor0
----
95
96
96

query I rowsort
SELECT ALL - col0 * + col2 * + 7 AS col2 FROM tab2 AS cor0
----
-1323
-14196
-21014

query I rowsort
SELECT ALL - - 80 + col2 * col1 * - ( + col0 ) FROM tab0 cor0
----
-3315
-664038
-68032

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-277
SELECT cor0.col1 DIV col1 - cor0.col0 FROM tab0 AS cor0
----
-23
-34
-88

skipif mysql # not compatible
query I rowsort label-277
SELECT cor0.col1 / col1 - cor0.col0 FROM tab0 AS cor0
----
-23
-34
-88

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 37 * col2 col0 FROM tab2 AS cor0
----
1406
962
999

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 23 * col2 col2 FROM tab2 AS cor0
----
598
621
874

query I rowsort
SELECT - - 74 - + col2 * col2 FROM tab0 AS cor0
----
-1015
-6650
73

query I rowsort
SELECT ALL col0 * - 8 AS col1 FROM tab2
----
-56
-624
-632

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

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

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

query I rowsort
SELECT DISTINCT + 25 + col0 AS col1 FROM tab2 AS cor0
----
103
104
32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 74 + col0 col1 FROM tab0 AS cor0
----
-39
-50
15

onlyif mysql # use DIV operator for integer division
query I rowsort label-288
SELECT - 80 DIV + cor0.col0 AS col0 FROM tab2 AS cor0
----
-1
-1
-11

skipif mysql # not compatible
query I rowsort label-288
SELECT - 80 / + cor0.col0 AS col0 FROM tab2 AS cor0
----
-1
-1
-11

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

query I rowsort
SELECT ALL 86 + + col1 * col1 FROM tab2 AS cor0
----
1047
3567
375

query I rowsort
SELECT DISTINCT + - cor0.col2 + - col0 * col0 * 68 AS col1 FROM tab1 AS cor0
----
-278585
-435296
-666

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

query I rowsort
SELECT ALL cor0.col2 + 59 + cor0.col0 AS col2 FROM tab2 AS cor0
----
163
176
93

query I rowsort
SELECT cor0.col2 * col2 * col2 FROM tab0 cor0
----
1
35937
551368

query I rowsort
SELECT ALL + - cor0.col1 * 55 + col2 AS col1 FROM tab2 AS cor0
----
-1678
-3219
-897

query I rowsort
SELECT DISTINCT 24 * - 82 + - col0 * - col1 + + cor0.col1 * + col2 FROM tab1 AS cor0
----
-486
-758
320

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

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

query I rowsort
SELECT ALL - + 25 FROM tab2 AS cor0
----
-25
-25
-25

query I rowsort
SELECT DISTINCT - - 96 + col2 AS col2 FROM tab2 AS cor0
----
122
123
134

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-301
SELECT ALL 12 DIV - cor0.col2 AS col2 FROM tab0 AS cor0
----
-12
0
0

skipif mysql # not compatible
query I rowsort label-301
SELECT ALL 12 / - cor0.col2 AS col2 FROM tab0 AS cor0
----
-12
0
0

query I rowsort
SELECT DISTINCT + 52 * + col1 + 7 AS col2 FROM tab1 cor0
----
1359
527
683

query I rowsort
SELECT - 97 * + col2 AS col1 FROM tab2 AS cor0
----
-2522
-2619
-3686

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

query I rowsort
SELECT - 66 + cor0.col2 FROM tab0 AS cor0
----
-33
-65
16

query I rowsort
SELECT ALL - 8 + - col0 * - col0 FROM tab1 cor0
----
1
4088
6392

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-309
SELECT DISTINCT 1 + - cor0.col0 * ( 70 ) DIV cor0.col0 AS col1 FROM tab1 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-309
SELECT DISTINCT 1 + - cor0.col0 * ( 70 ) / cor0.col0 AS col1 FROM tab1 AS cor0
----
-69

query I rowsort
SELECT DISTINCT + col0 - - col1 * - col2 * cor0.col0 FROM tab0 AS cor0
----
-3360
-664029
-68088

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

query I rowsort
SELECT ALL - - col1 + 6 FROM tab2 AS cor0
----
23
37
65

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

query I rowsort
SELECT ALL + col0 + 48 * col1 AS col2 FROM tab2 AS cor0
----
1495
2910
895

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-318
SELECT - + col2 * + col2 + - col0 DIV col0 + - ( col2 ) FROM tab1 cor0
----
-2971
-3307
-9313

skipif mysql # not compatible
query I rowsort label-318
SELECT - + col2 * + col2 + - col0 / col0 + - ( col2 ) FROM tab1 cor0
----
-2971
-3307
-9313

query I rowsort
SELECT DISTINCT - col0 * col0 + - 12 * col1 AS col0 FROM tab0 AS cor0
----
-1608
-2389
-9013

query I rowsort
SELECT + col0 * ( cor0.col0 ) * - col2 + col1 FROM tab1 AS cor0
----
-233462
-460
-614387

query I rowsort
SELECT - col0 * - 85 * col0 FROM tab1 AS cor0
----
348160
544000
765

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

skipif mysql # not compatible
query I rowsort
SELECT - - CAST ( cor0.col1 AS REAL ) + + col0 AS col1 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT ALL col0 * col0 * 58 FROM tab1
----
237568
371200
522

query I rowsort
SELECT ALL - 61 + 4 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 520dc393896969e02a72ab6c5d92126b

query I rowsort
SELECT DISTINCT 77 * + col0 + col1 AS col2 FROM tab0 AS cor0
----
1934
2792
6944

onlyif mysql # use DIV operator for integer division
query I rowsort label-327
SELECT col1 DIV - col1 - - 2 * col2 FROM tab2 AS cor0
----
51
53
75

skipif mysql # not compatible
query I rowsort label-327
SELECT col1 / - col1 - - 2 * col2 FROM tab2 AS cor0
----
51
53
75

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

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

query I rowsort
SELECT - col2 * - col1 + + col2 * + 64 * - cor0.col0 FROM tab0 AS cor0
----
-2143
-459610
-47850

query I rowsort
SELECT ALL - 27 + + col2 FROM tab0
----
-26
55
6

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

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

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

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

query I rowsort
SELECT ALL - col1 + + col0 * - col1 + - 5 FROM tab2
----
-1365
-253
-4666

onlyif mysql # use DIV operator for integer division
query I rowsort label-336
SELECT col1 * ( col1 ) DIV col0 FROM tab0 AS cor0
----
268
308
93

skipif mysql # not compatible
query I rowsort label-336
SELECT col1 * ( col1 ) / col0 FROM tab0 AS cor0
----
268
308
93

query I rowsort
SELECT col0 * col0 + + col1 * ( col2 ) * col0 - + 79 FROM tab0
----
4541
671960
68609

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 63 + col1 + + col2 * + col2 col0 FROM tab2
----
1398
672
697

query I rowsort
SELECT + 37 * tab1.col2 AS col0 FROM tab1
----
1998
2109
3552

query I rowsort
SELECT ALL 19 * - col0 FROM tab1
----
-1216
-1520
-57

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-343
SELECT DISTINCT 56 DIV - 11 AS col0 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
-5

skipif mysql # not compatible
query I rowsort label-343
SELECT DISTINCT 56 / - 11 AS col0 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
-5

query I rowsort
SELECT ALL - 55 AS col2 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to b90e74bece5521b514096c5b6e105fde

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

query I rowsort
SELECT - 9 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 3dfe689e16ce3a87877d40f349e6c7b5

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

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

query I rowsort
SELECT - - col0 + - ( + col2 ) AS col1 FROM tab0 AS cor0
----
-9
34
7

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

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

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

query I rowsort
SELECT DISTINCT + col0 + 32 AS col0 FROM tab1
----
112
35
96

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

query I rowsort
SELECT - col0 * 94 * col2 AS col0 FROM tab1
----
-15228
-342912
-721920

query I rowsort
SELECT + 67 + + cor0.col0 AS col2 FROM tab1 AS cor0
----
131
147
70

query I rowsort
SELECT DISTINCT + 57 - + 63 AS col2 FROM tab2 cor0
----
-6

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 25 col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 40ac8fd000b2e49317aed2411077839e

query I rowsort
SELECT + col1 * + 51 - col1 FROM tab1 AS cor0
----
1300
500
650

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 63 * col0 col0 FROM tab2 AS cor0
----
441
4914
4977

query I rowsort
SELECT + col0 + 91 FROM tab0 cor0
----
115
126
180

query I rowsort
SELECT DISTINCT + - col1 * - col1 * 13 FROM tab1 AS cor0
----
1300
2197
8788

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-365
SELECT DISTINCT col0 + - cor0.col2 DIV ( col1 ) AS col1 FROM tab1 AS cor0
----
1
59
73

skipif mysql # not compatible
query I rowsort label-365
SELECT DISTINCT col0 + - cor0.col2 / ( col1 ) AS col1 FROM tab1 AS cor0
----
1
59
73

query I rowsort
SELECT - + 5 * - col2 + - 34 * + 95 FROM tab1 AS cor0
----
-2750
-2945
-2960

query I rowsort
SELECT 1 - col2 * col1 AS col0 FROM tab0
----
-2837
-7461
-96

query I rowsort
SELECT - 4 + + col0 + + col0 FROM tab1
----
124
156
2

query I rowsort
SELECT DISTINCT col2 + - 5 + - col0 FROM tab2
----
-46
-57
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 90 * col2 + + col2 * ( - col1 ) col0 FROM tab1
----
3456
4560
7392

query I rowsort
SELECT DISTINCT + 9 + col2 * - tab0.col0 FROM tab0
----
-26
-7289
-783

query I rowsort
SELECT DISTINCT 52 + + 36 FROM tab2
----
88

query I rowsort
SELECT DISTINCT col0 * - 25 AS col0 FROM tab2 AS cor0
----
-175
-1950
-1975

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

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

query I rowsort
SELECT DISTINCT + col2 * col1 + 20 + - col2 FROM tab0 cor0
----
116
2825
7400

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

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

query I rowsort
SELECT cor0.col1 * 3 AS col2 FROM tab0 AS cor0
----
258
273
291

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-380
SELECT DISTINCT + col1 DIV - tab0.col2 FROM tab0
----
-1
-2
-97

skipif mysql # not compatible
query I rowsort label-380
SELECT DISTINCT + col1 / - tab0.col2 FROM tab0
----
-1
-2
-97

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

query I rowsort
SELECT - col1 * + 52 FROM tab0 AS cor0
----
-4472
-4732
-5044

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

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

query I rowsort
SELECT col0 + 51 AS col0 FROM tab2 cor0
----
129
130
58

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + cor0.col0 + col0 col1 FROM tab2 AS cor0
----
175
215
45

query I rowsort
SELECT ALL col0 + - col1 * tab2.col2 * col2 FROM tab2
----
-22592
-24469
-39806

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

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

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

query I rowsort
SELECT ALL tab2.col1 * tab2.col0 AS col1 FROM tab2 WHERE NOT NULL NOT IN ( col0 )
----

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

skipif mysql # not compatible
query I rowsort label-392
SELECT ALL col0 + tab0.col1 / col2 AS col0 FROM tab0
----
132
26
90

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT tab0.col1 BETWEEN + col2 AND + col2
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

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

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

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

skipif mysql # not compatible
query I rowsort label-397
SELECT - col0 + - col0 / - col2 FROM tab1
----
-3
-63
-80

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-400
SELECT + col2 DIV tab0.col0 + + col1 FROM tab0
----
87
91
97

skipif mysql # not compatible
query I rowsort label-400
SELECT + col2 / tab0.col0 + + col1 FROM tab0
----
87
91
97

query I rowsort
SELECT DISTINCT + col0 + - col0 * + col0 * - col2 AS col0 FROM tab0
----
1260
19032
649611

onlyif mysql # use DIV operator for integer division
query I rowsort label-402
SELECT - col2 + col2 * col1 DIV col0 AS col2 FROM tab2
----
-30
-7
92

skipif mysql # not compatible
query I rowsort label-402
SELECT - col2 + col2 * col1 / col0 AS col2 FROM tab2
----
-30
-7
92

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + col0 + col2 + - tab0.col1 col1 FROM tab0
----
-2117
-3491
-8108

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-407
SELECT col1 * col1 DIV - tab1.col2 + + col1 AS col2 FROM tab1
----
12
14
9

skipif mysql # not compatible
query I rowsort label-407
SELECT col1 * col1 / - tab1.col2 + + col1 AS col2 FROM tab1
----
12
14
9

query I rowsort
SELECT DISTINCT + tab0.col0 AS col0 FROM tab2, tab1 AS cor0 CROSS JOIN tab0
----
24
35
89

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

skipif mysql # not compatible
query I rowsort label-409
SELECT col1 / col1 + - col2 AS col1 FROM tab1
----
-53
-56
-95

query I rowsort
SELECT DISTINCT col0 * col0 * col0 + col2 + col2 AS col2 FROM tab2
----
397
474604
493115

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col1 + - col2 BETWEEN NULL AND NULL OR NOT - col0 <= NULL
----

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

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

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

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

query I rowsort
SELECT - + 67 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 95c9eba643f6489e03be4d5e83f1ef99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 94 * col2 col1 FROM tab0
----
3102
7708
94

onlyif mysql # use DIV operator for integer division
query I rowsort label-420
SELECT ALL cor0.col2 DIV - col1 + col1 + col2 col0 FROM tab0 AS cor0
----
119
173
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-420
SELECT ALL cor0.col2 / - col1 + col1 + col2 col0 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT + - col2 * 56 + - col2 FROM tab0 cor0
----
-1881
-4674
-57

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

skipif mysql # not compatible
query I rowsort label-422
SELECT col1 / - col1 + cor0.col1 AS col2 FROM tab2 AS cor0
----
16
30
58

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

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

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

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-428
SELECT ALL - col1 * - tab1.col0 DIV - col0 + - col2 FROM tab1
----
-109
-67
-80

skipif mysql # not compatible
query I rowsort label-428
SELECT ALL - col1 * - tab1.col0 / - col0 + - col2 FROM tab1
----
-109
-67
-80

query I rowsort
SELECT DISTINCT col2 + - tab1.col2 AS col2 FROM tab1 WHERE NOT NULL IN ( col2 )
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-431
SELECT DISTINCT - col1 / col2 + col1 * tab1.col0 col1 FROM tab1
----
1040
640
78

query I rowsort
SELECT DISTINCT - col0 * - col1 + - tab2.col2 * + col0 FROM tab2
----
-1659
2574
28

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

query I rowsort
SELECT col2 * + col0 + col2 AS col1 FROM tab2 WHERE col2 < ( NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 <> - col2
----

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col2 NOT BETWEEN NULL AND NULL
----

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

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

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-441
SELECT col0 * + CAST( NULL AS DECIMAL ) + - 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-441
SELECT col0 * + CAST ( NULL AS REAL ) + - col0 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT - cor0.col1 * 34 + col1 * col1 FROM tab2 AS cor0
----
-289
-93
1475

query I rowsort
SELECT col1 * col2 + + 21 FROM tab1 cor0
----
1269
1425
591

query I rowsort
SELECT - col0 * + col1 - + col0 * col0 * col2 AS col0 FROM tab1 AS cor0
----
-234112
-564
-615440

query I rowsort
SELECT col0 * - 89 AS col0 FROM tab2 AS cor0
----
-623
-6942
-7031

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-448
SELECT + + cor0.col0 * cor0.col1 DIV - col1 - cor0.col0 * col1 AS col0 FROM tab1 cor0
----
-1120
-704
-81

skipif mysql # not compatible
query I rowsort label-448
SELECT + + cor0.col0 * cor0.col1 / - col1 - cor0.col0 * col1 AS col0 FROM tab1 cor0
----
-1120
-704
-81

query I rowsort
SELECT DISTINCT col2 - + 92 FROM tab0
----
-10
-59
-91

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

query I rowsort
SELECT ALL - - cor0.col2 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

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

query I rowsort
SELECT - - cor0.col2 * col2 * 16 FROM tab1 cor0
----
147456
46656
51984

query I rowsort
SELECT col0 + + col1 * + col1 * + tab2.col1 AS col0 FROM tab2
----
205457
29798
4992

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + col0 * col1 - col1 col2 FROM tab0 cor0
----
177418
329218
736918

query I rowsort
SELECT col2 + + col1 * col2 * - col1 FROM tab1
----
-16128
-36450
-5643

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

query I rowsort
SELECT ALL + - cor0.col2 * col2 + + col2 AS col1 FROM tab0 AS cor0
----
-1056
-6642
0

query I rowsort
SELECT DISTINCT col0 + + col1 * - col1 FROM tab2
----
-210
-3403
-954

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

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

query I rowsort
SELECT + - 67 + + col1 * + cor0.col1 AS col1 FROM tab0 cor0
----
7329
8214
9342

query I rowsort
SELECT + 93 - col0 * + col1 AS col2 FROM tab0
----
-1971
-3302
-8006

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

query I rowsort
SELECT ALL + col0 + col2 * - col1 * col2 FROM tab2
----
-22592
-24469
-39806

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

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

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

query I rowsort
SELECT ALL ( + 33 ) * col0 - + col2 FROM tab1 AS cor0
----
2055
2544
45

query I rowsort
SELECT DISTINCT - + col2 * + col2 - - cor0.col0 * - cor0.col1 FROM tab2 AS cor0
----
-2787
-5278
-946

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

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

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

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

query I rowsort
SELECT ALL - - 51 + - col2 * - col2 AS col2 FROM tab2 cor0
----
1495
727
780

query I rowsort
SELECT ALL col1 + + cor0.col1 * - col1 AS col1 FROM tab0 AS cor0
----
-7310
-8190
-9312

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

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

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

query I rowsort
SELECT DISTINCT + 38 + + col0 * col0 AS col0 FROM tab1
----
4134
47
6438

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

query I rowsort
SELECT DISTINCT 60 * + 2 * + tab0.col0 AS col2 FROM tab0
----
10680
2880
4200

skipif mysql # not compatible
query I rowsort
SELECT - CAST ( + col1 AS REAL ) + col0 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT 53 * 71 AS col0 FROM tab0, tab2 AS cor0, tab0 AS cor1, tab2 AS cor2
----
81 values hashing to 8dc456981a252a6d89aff9ad6e0102e8

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

skipif mysql # not compatible
query I rowsort label-484
SELECT ALL CAST ( col0 AS INTEGER ) * + col1 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT ALL col0 - - 25 * + col0 AS col2 FROM tab1 cor0
----
1664
2080
78

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

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

query I rowsort
SELECT + col2 + + 82 AS col2 FROM tab1 AS cor0
----
136
139
178

query I rowsort
SELECT + - 12 + cor0.col1 * col1 AS col0 FROM tab1 AS cor0
----
157
664
88

query I rowsort
SELECT DISTINCT + - ( + col1 ) * - col2 * ( col1 ) + - col0 FROM tab2 AS cor0
----
10903
25940
90428

query I rowsort
SELECT DISTINCT + + 64 + col1 FROM tab2 AS cor0
----
123
81
95

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

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

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

query I rowsort
SELECT 2 * - tab2.col0 AS col0 FROM tab2
----
-14
-156
-158

query I rowsort
SELECT DISTINCT 77 + tab0.col2 AS col1 FROM tab0
----
110
159
78

query I rowsort
SELECT - - 28 + col1 * + ( + col0 ) AS col1 FROM tab1 cor0
----
106
1068
668

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * 52 col0 FROM tab1 AS cor0
----
1352
520
676

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

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

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

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

skipif mysql # not compatible
query I rowsort label-502
SELECT + + col1 + - col0 / - col2 AS col2 FROM tab1 AS cor0
----
11
13
26

query I rowsort
SELECT ALL + 18 FROM tab1, tab0, tab2 cor0
----
27 values hashing to 903ac227935c1532300db45a8537c595

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-504
SELECT ALL ( + col0 ) * CAST( 34 AS SIGNED ) FROM tab1
----
102
2176
2720

skipif mysql # not compatible
query I rowsort label-504
SELECT ALL ( + col0 ) * CAST ( 34 AS INTEGER ) FROM tab1
----
102
2176
2720

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT 78 FROM tab2 AS cor0 CROSS JOIN tab2, tab2 cor1, tab2 AS cor2
----
78

query I rowsort
SELECT col0 * 2 AS col1 FROM tab2 AS cor0
----
14
156
158

query I rowsort
SELECT + col0 + - 14 FROM tab2
----
-7
64
65

query I rowsort
SELECT 5 + col1 - col0 AS col1 FROM tab1 AS cor0
----
-49
-62
28

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

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

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

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

query I rowsort
SELECT ALL + + cor0.col2 * 44 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to ed28cc3f5e10c97468d6f506ff166410

skipif mysql # not compatible
query I rowsort
SELECT + + CAST ( - cor0.col0 AS REAL ) - col2 AS col2 FROM tab1 AS cor0
----
-121
-176
-57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 66 * - col0 + - col1 * col0 col2 FROM tab2 AS cor0
----
245
3871
546

onlyif mysql # use DIV operator for integer division
query I rowsort label-520
SELECT DISTINCT - 21 * cor0.col1 DIV - col1 FROM tab0 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-520
SELECT DISTINCT - 21 * cor0.col1 / - col1 FROM tab0 AS cor0
----
21

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-524
SELECT - col0 DIV col2 + + 74 DIV + 27 FROM tab0
----
-33
1
2

skipif mysql # not compatible
query I rowsort label-524
SELECT - col0 / col2 + + 74 / + 27 FROM tab0
----
-33
1
2

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

skipif mysql # not compatible
query I rowsort label-525
SELECT ALL - ( + col0 ) * + CAST ( cor0.col1 AS INTEGER ) + + col0 AS col2 FROM tab2 AS cor0
----
-1264
-210
-4524

query I rowsort
SELECT ALL + col2 + col0 * + ( 56 ) AS col0 FROM tab0 AS cor0
----
1377
1961
5066

query I rowsort
SELECT DISTINCT + - col2 * + col0 * + 76 FROM tab2 AS cor0
----
-14364
-154128
-228152

query I rowsort
SELECT ALL - col2 + + col1 + + col2 * 25 * col0 AS col2 FROM tab2 AS cor0
----
4729
50733
75029

skipif mysql # not compatible
query I rowsort
SELECT ALL - - col2 * + CAST ( + col0 AS REAL ) - col2 FROM tab2 AS cor0
----
162
2002
2964

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

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

query I rowsort
SELECT DISTINCT + 56 - - col2 FROM tab1 cor0
----
110
113
152

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-534
SELECT ALL + col0 * col2 DIV 16 FROM tab0 AS cor0
----
2
456
49

skipif mysql # not compatible
query I rowsort label-534
SELECT ALL + col0 * col2 / 16 FROM tab0 AS cor0
----
2
456
49

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

query I rowsort
SELECT DISTINCT + col1 * 60 + col2 + cor0.col0 AS col1 FROM tab0 AS cor0
----
5217
5631
5856

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 53 col0 FROM tab1, tab2 AS cor0
----
9 values hashing to fee5c00ad71c23e23683a32c71fe6e7d

onlyif mysql # use DIV operator for integer division
query I rowsort label-539
SELECT 4 DIV - col0 FROM tab1 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-539
SELECT 4 / - col0 FROM tab1 cor0
----
-1
0
0

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

query I rowsort
SELECT ALL ( + cor0.col0 ) FROM tab2, tab0 AS cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63

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

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

query I rowsort
SELECT - col1 + col0 + col1 AS col2 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT tab0.col1 * - tab0.col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 9be0dab92dd50faf37ee99ac8db7c57d

query I rowsort
SELECT ALL + 44 * col0 AS col0 FROM tab1
----
132
2816
3520

query I rowsort
SELECT ALL + tab0.col0 * - 88 AS col2 FROM tab0
----
-2112
-3080
-7832

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * 51 * col2 + col1 col0 FROM tab2
----
103487
153119
9670

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

query I rowsort
SELECT - 20 * - col2 + - ( + col1 ) FROM tab0
----
-77
1549
574

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

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

query I rowsort
SELECT ALL ( - col1 ) * tab1.col1 * - col0 FROM tab1
----
13520
2028
6400

query I rowsort
SELECT DISTINCT tab1.col1 * - 68 + - 45 AS col1 FROM tab1, tab1 cor0
----
-1813
-725
-929

query I rowsort
SELECT - - cor0.col2 * cor0.col2 * - ( col2 ) FROM tab2 cor0
----
-17576
-19683
-54872

query I rowsort
SELECT ALL + - col0 * + col0 + + ( col0 ) * - cor0.col0 AS col2 FROM tab0 AS cor0
----
-1152
-15842
-2450

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

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

query I rowsort
SELECT DISTINCT + - 36 + - col2 * col2 FROM tab0 cor0
----
-1125
-37
-6760

onlyif mysql # use DIV operator for integer division
query I rowsort label-559
SELECT ALL + ( + col1 ) DIV - col2 FROM tab0 AS cor0
----
-1
-2
-97

skipif mysql # not compatible
query I rowsort label-559
SELECT ALL + ( + col1 ) / - col2 FROM tab0 AS cor0
----
-1
-2
-97

query I rowsort
SELECT - 82 + col0 * + 64 AS col0 FROM tab2 cor0
----
366
4910
4974

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

query I rowsort
SELECT ALL 57 * col1 FROM tab1 AS cor0
----
1482
570
741

query I rowsort
SELECT ALL + - 70 + + col2 * 85 AS col1 FROM tab0 AS cor0
----
15
2735
6900

query I rowsort
SELECT + ( 35 ) AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29

query I rowsort
SELECT DISTINCT + col0 + - ( col0 ) * + col2 AS col0 FROM tab0
----
-7209
-768
0

query I rowsort
SELECT ALL - tab0.col0 * 45 - tab0.col1 FROM tab0
----
-1166
-1672
-4096

query I rowsort
SELECT ALL col2 * ( - 31 ) - col0 FROM tab2
----
-1257
-844
-884

onlyif mysql # use DIV operator for integer division
query I rowsort label-568
SELECT DISTINCT col1 DIV tab1.col2 + + col0 * + col2 FROM tab1
----
162
3648
7680

skipif mysql # not compatible
query I rowsort label-568
SELECT DISTINCT col1 / tab1.col2 + + col0 * + col2 FROM tab1
----
162
3648
7680

query I rowsort
SELECT + col1 + + ( + 21 ) AS col2 FROM tab2 cor0
----
38
52
80

query I rowsort
SELECT DISTINCT - - 5 + col2 AS col0 FROM tab0 AS cor0
----
38
6
87

query I rowsort
SELECT ALL - col1 + + 53 AS col2 FROM tab2 AS cor0
----
-6
22
36

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

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

skipif mysql # not compatible
query I rowsort label-573
SELECT DISTINCT + + 15 / col2 FROM tab0 cor0
----
0
15

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

query I rowsort
SELECT - + 74 + - col0 FROM tab1 cor0
----
-138
-154
-77

onlyif mysql # use DIV operator for integer division
query I rowsort label-576
SELECT + col0 + + ( col0 ) DIV - ( 49 ) FROM tab0 AS cor0
----
24
35
88

skipif mysql # not compatible
query I rowsort label-576
SELECT + col0 + + ( col0 ) / - ( 49 ) FROM tab0 AS cor0
----
24
35
88

query I rowsort
SELECT ALL - col1 + 88 + col0 AS col0 FROM tab2 AS cor0
----
107
150
64

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

query I rowsort
SELECT - + ( 51 ) + col2 AS col1 FROM tab0 AS cor0
----
-18
-50
31

query I rowsort
SELECT DISTINCT + + 22 * + cor0.col0 FROM tab0 AS cor0
----
1958
528
770

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

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

query I rowsort
SELECT DISTINCT 87 * + col1 AS col1 FROM tab0 AS cor0
----
7482
7917
8439

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

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

query I rowsort
SELECT col1 * col1 * - col2 + cor0.col1 * col2 AS col0 FROM tab1 AS cor0
----
-14976
-35100
-5130

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

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

skipif mysql # not compatible
query I rowsort label-587
SELECT DISTINCT - col2 + CAST ( + col2 AS INTEGER ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT col0 * col1 + 61 * + col1 AS col1 FROM tab2 AS cor0
----
2108
2380
8201

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-590
SELECT DISTINCT + - col0 DIV + col2 AS col0 FROM tab1 cor0
----
-1
0

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + col1 + 64 col1 FROM tab1 AS cor0
----
-14
-576
-976

query I rowsort
SELECT DISTINCT + cor0.col1 * + col2 + - 61 FROM tab1 AS cor0
----
1187
1343
509

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-593
SELECT CAST( + col1 AS SIGNED ) AS col2 FROM tab1
----
10
13
26

skipif mysql # not compatible
query I rowsort label-593
SELECT CAST ( + col1 AS INTEGER ) AS col2 FROM tab1
----
10
13
26

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

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

query I rowsort
SELECT ALL 59 * col1 + + col0 * - col1 AS col1 FROM tab2 AS cor0
----
-1121
-340
1612

query I rowsort
SELECT - + ( - col1 ) + - cor0.col1 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL col0 - - col2 AS col0 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT DISTINCT + + 3 + 90 FROM tab0 cor0
----
93

query I rowsort
SELECT ALL - 86 + + cor0.col0 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 5a82ffbd6688629b872b6ed21ababa94

query I rowsort
SELECT DISTINCT + 68 * + col1 AS col2 FROM tab1 AS cor0
----
1768
680
884

query I rowsort
SELECT ALL - 2 - - col1 FROM tab1 cor0
----
11
24
8

query I rowsort
SELECT ALL - + col0 - ( col1 + col0 ) * col1 FROM tab0 AS cor0
----
-12839
-16469
-9484

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 AS cor0, tab0 AS cor1, tab1, tab0 cor2
----
3645 values hashing to 6dd6930689f177711fda407b5ce0d072

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

query I rowsort
SELECT DISTINCT - cor0.col0 * - col1 + col1 * - col1 FROM tab2 AS cor0
----
-744
1054
1121

query I rowsort
SELECT ALL + + 29 * + col1 * 10 + col2 * col0 * col0 FROM tab0 AS cor0
----
29355
43948
675912

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

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

query I rowsort
SELECT + - 47 * - col1 AS col1 FROM tab2 AS cor0
----
1457
2773
799

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 33 + col2 col2 FROM tab0 AS cor0
----
115
34
66

onlyif mysql # use DIV operator for integer division
query I rowsort label-611
SELECT ALL col2 DIV col0 + col0 + - col1 * - cor0.col2 FROM tab2 AS cor0
----
1612
725
847

skipif mysql # not compatible
query I rowsort label-611
SELECT ALL col2 / col0 + col0 + - col1 * - cor0.col2 FROM tab2 AS cor0
----
1612
725
847

query I rowsort
SELECT ALL - - 94 * col1 + - col1 + 14 FROM tab0 AS cor0
----
8012
8477
9035

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

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

query I rowsort
SELECT + 70 * col2 AS col1 FROM tab0 AS cor0
----
2310
5740
70

query I rowsort
SELECT - col0 + + col2 * - 94 FROM tab2 AS cor0
----
-2522
-2545
-3651

query I rowsort
SELECT - 37 AS col1 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 395d44ccbce08828bc493e93ec3d9207

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

query I rowsort
SELECT cor2.col2 * cor1.col2 FROM tab0, tab0 AS cor0, tab2 AS cor1, tab2 cor2
----
81 values hashing to 837560911d4f64dacb5750277d457f1a

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

query I rowsort
SELECT ALL - - 12 AS col1 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 702478c53caf2f7ebb9fff96d800f5a6

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

query I rowsort
SELECT + - col0 * + cor0.col0 + col2 * + 23 FROM tab1 AS cor0
----
-2785
-4192
1233

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

query I rowsort
SELECT + + cor0.col1 * 67 FROM tab1 AS cor0
----
1742
670
871

query I rowsort
SELECT - cor0.col1 * + 9 AS col2 FROM tab2 AS cor0
----
-153
-279
-531

onlyif mysql # use DIV operator for integer division
query I rowsort label-627
SELECT col2 DIV - 25 + - col1 col2 FROM tab2 AS cor0
----
-18
-32
-60

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-627
SELECT col2 / - 25 + - col1 col2 FROM tab2 AS cor0
----
-18
-32
-60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + col0 + + 64 * + col0 col0 FROM tab1
----
270
4736
6160

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-629
SELECT - col1 * - CAST( col2 AS SIGNED ) FROM tab0
----
2838
7462
97

skipif mysql # not compatible
query I rowsort label-629
SELECT - col1 * - CAST ( col2 AS INTEGER ) FROM tab0
----
2838
7462
97

query I rowsort
SELECT - 98 + ( col1 ) FROM tab2 cor0
----
-39
-67
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col0 + col2 * col1 col0 FROM tab0
----
-1128
-459
2262

query I rowsort
SELECT ALL 81 * tab1.col2 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to b03a487d842d1b1b52d4eddc48b27ad7

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

skipif mysql # not compatible
query I rowsort label-633
SELECT + ( + col1 ) + + cor0.col2 / ( col0 * col0 ) FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT DISTINCT + col2 + 31 AS col0 FROM tab1 AS cor0
----
127
85
88

query I rowsort
SELECT DISTINCT col1 * + col0 * + col1 - + col0 AS col2 FROM tab0 AS cor0
----
177480
329280
736920

query I rowsort
SELECT + col1 * + 30 FROM tab2 AS cor0
----
1770
510
930

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

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

skipif mysql # not compatible
query I rowsort label-638
SELECT 95 / + col2 AS col1 FROM tab0 AS cor0
----
1
2
95

query I rowsort
SELECT DISTINCT + ( + 92 ) * - col2 AS col2 FROM tab1 AS cor0
----
-4968
-5244
-8832

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( ( col1 ) ) * + 40 + + 64 col1 FROM tab1 cor0
----
1104
464
584

onlyif mysql # use DIV operator for integer division
query I rowsort label-641
SELECT + col2 + + col2 * cor0.col0 DIV ( - 44 ) AS col2 FROM tab1 AS cor0
----
-25
-78
51

skipif mysql # not compatible
query I rowsort label-641
SELECT + col2 + + col2 * cor0.col0 / ( - 44 ) AS col2 FROM tab1 AS cor0
----
-25
-78
51

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

skipif mysql # not compatible
query I rowsort label-642
SELECT + + 78 * cor0.col1 / col1 AS col2 FROM tab1 AS cor0
----
78
78
78

query I rowsort
SELECT DISTINCT + - ( - 83 ) * col0 FROM tab2 cor0
----
581
6474
6557

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

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

query I rowsort
SELECT + 2 * 65 AS col0 FROM tab0 AS cor0
----
130
130
130

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

skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( col0 AS REAL ) * + col1 AS col1 FROM tab2 AS cor0
----
1343
217
4602

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

query I rowsort
SELECT ALL col0 * + col2 * - col2 + - 46 * + 99 AS col0 FROM tab1 cor0
----
-13302
-212490
-741834

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

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

query I rowsort
SELECT col0 * col2 * - 15 + cor0.col1 FROM tab1 AS cor0
----
-115187
-2404
-54710

query I rowsort
SELECT ALL + 84 + col1 AS col2 FROM tab0
----
170
175
181

query I rowsort
SELECT - + 57 FROM tab0 AS cor0
----
-57
-57
-57

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

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

query I rowsort
SELECT + + 95 + - col2 FROM tab2 cor0
----
57
68
69

onlyif mysql # use DIV operator for integer division
query I rowsort label-657
SELECT DISTINCT - - cor0.col1 DIV 21 col2 FROM tab0 AS cor0
----
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-657
SELECT DISTINCT - - cor0.col1 / 21 col2 FROM tab0 AS cor0
----
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-658
SELECT - - cor0.col0 DIV + 80 + 25 FROM tab0 cor0
----
25
25
26

skipif mysql # not compatible
query I rowsort label-658
SELECT - - cor0.col0 / + 80 + 25 FROM tab0 cor0
----
25
25
26

query I rowsort
SELECT DISTINCT - 66 * 6 FROM tab2, tab0 AS cor0
----
-396

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

query I rowsort
SELECT DISTINCT + + col0 * - ( cor0.col0 ) + + cor0.col0 AS col0 FROM tab1 AS cor0
----
-4032
-6
-6320

query I rowsort
SELECT cor1.col2 AS col1 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

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

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

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

query I rowsort
SELECT + + col2 + + 81 * - cor0.col0 AS col0 FROM tab1 cor0
----
-189
-5127
-6384

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

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

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

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

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

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

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

query I rowsort
SELECT + 5 + + cor0.col1 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to daf35a5663fd523e32d6004df16d7292

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

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

skipif mysql # not compatible
query I rowsort label-674
SELECT - col1 / + 86 FROM tab1 AS cor0
----
0
0
0

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

query I rowsort
SELECT 65 FROM tab2, tab2 AS cor0, tab1, tab0 AS cor1
----
81 values hashing to 1654646feeae82f39d2f564fe4ea26c2

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

query I rowsort
SELECT + col1 * 18 AS col0 FROM tab2
----
1062
306
558

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

query I rowsort
SELECT ALL - 26 + col0 FROM tab1 AS cor0
----
-23
38
54

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-682
SELECT ALL + ( col1 ) DIV col2 col0 FROM tab0
----
1
2
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-682
SELECT ALL + ( col1 ) / col2 col0 FROM tab0
----
1
2
97

query I rowsort
SELECT ALL + tab1.col2 + tab1.col1 * 84 FROM tab1, tab2 AS cor0
----
9 values hashing to f3b9c8ca160d6da2a9582a0f953d18c1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col0 * 97 + - 74 col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 2a4b4b7c80f8166cc6f014df636fa556

query I rowsort
SELECT + col1 + - col1 * - col1 + - tab2.col0 * - col0 FROM tab2
----
1041
6547
9624

onlyif mysql # use DIV operator for integer division
query I rowsort label-686
SELECT DISTINCT col1 DIV - col0 + 27 * col1 DIV - col0 + 97 AS col0 FROM tab1
----
-145
93

skipif mysql # not compatible
query I rowsort label-686
SELECT DISTINCT col1 / - col0 + 27 * col1 / - col0 + 97 AS col0 FROM tab1
----
-145
93

query I rowsort
SELECT ALL + col0 - + tab0.col2 * + 33 FROM tab0
----
-1065
-2617
2

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

skipif mysql # not compatible
query I rowsort label-688
SELECT - col0 * - col1 + - CAST ( NULL AS REAL ) * + 13 + col0 FROM tab1
----
NULL
NULL
NULL

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

query I rowsort
SELECT - 95 + + col0 * + col2 * + col2 FROM tab0 AS cor0
----
-60
26041
598341

query I rowsort
SELECT ALL 10 + + col1 AS col0 FROM tab0 AS cor0
----
101
107
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-692
SELECT 47 DIV - col2 + col0 + - col1 * - col2 FROM tab0
----
2861
7551
85

skipif mysql # not compatible
query I rowsort label-692
SELECT 47 / - col2 + col0 + - col1 * - col2 FROM tab0
----
2861
7551
85

query I rowsort
SELECT 40 + cor0.col2 FROM tab1 AS cor0
----
136
94
97

query I rowsort
SELECT - 81 * col2 + col2 * col0 AS col0 FROM tab1 AS cor0
----
-4212
-96
-969

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-695
SELECT + + CAST( - 52 AS SIGNED ) * - col2 FROM tab1 AS cor0
----
2808
2964
4992

skipif mysql # not compatible
query I rowsort label-695
SELECT + + CAST ( - 52 AS INTEGER ) * - col2 FROM tab1 AS cor0
----
2808
2964
4992

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

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

query I rowsort
SELECT col1 * col1 + col1 * col0 FROM tab0
----
12804
16380
9460

query I rowsort
SELECT DISTINCT + 51 * cor0.col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
1326
1377
1938

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-700
SELECT + CAST( NULL AS DECIMAL ) * + 36 FROM tab0, tab2 AS cor0, tab1, tab1 cor1
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

skipif mysql # not compatible
query I rowsort label-700
SELECT + CAST ( NULL AS REAL ) * + 36 FROM tab0, tab2 AS cor0, tab1, tab1 cor1
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

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

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

skipif mysql # not compatible
query I rowsort label-702
SELECT DISTINCT + col1 / 48 FROM tab2
----
0
1

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

query I rowsort
SELECT col1 * - 8 + + col2 AS col0 FROM tab1
----
-154
-23
-8

query I rowsort
SELECT DISTINCT 58 * cor0.col0 FROM tab2, tab0 AS cor0
----
1392
2030
5162

query I rowsort
SELECT - ( 34 ) * col0 FROM tab1 AS cor0
----
-102
-2176
-2720

query I rowsort
SELECT col2 + + 75 AS col1 FROM tab2 AS cor0
----
101
102
113

query I rowsort
SELECT ALL + 36 AS col0 FROM tab2
----
36
36
36

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + col2 * - 4 col0 FROM tab2
----
-115
-182
-231

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - 37 + - 58 + col0 * col2 * col0 col1 FROM tab1 cor0
----
231046
317
611382

query I rowsort
SELECT DISTINCT - ( - col1 ) * - col2 + - 76 FROM tab2
----
-1610
-722
-913

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

query I rowsort
SELECT ALL - 81 * col1 + + 27 AS col1 FROM tab0 AS cor0
----
-6939
-7344
-7830

query I rowsort
SELECT ALL + 92 * col1 AS col0 FROM tab1 AS cor0
----
1196
2392
920

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + ( - 45 ) col2 FROM tab1 AS cor0
----
12
51
9

query I rowsort
SELECT DISTINCT + - col2 * 70 + col2 AS col0 FROM tab1 AS cor0
----
-3726
-3933
-6624

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

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

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

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

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

query I rowsort
SELECT DISTINCT - - col1 + - ( 89 ) * col1 FROM tab2 AS cor0
----
-1496
-2728
-5192

onlyif mysql # use DIV operator for integer division
query I rowsort label-723
SELECT DISTINCT + - cor0.col2 DIV - 8 FROM tab0 AS cor0
----
0
10
4

skipif mysql # not compatible
query I rowsort label-723
SELECT DISTINCT + - cor0.col2 / - 8 FROM tab0 AS cor0
----
0
10
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-724
SELECT DISTINCT - tab0.col0 DIV + 73 FROM tab0, tab0 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-724
SELECT DISTINCT - tab0.col0 / + 73 FROM tab0, tab0 AS cor0
----
-1
0

query I rowsort
SELECT col0 * 10 FROM tab0
----
240
350
890

query I rowsort
SELECT - col2 * - 22 * - col2 + - col1 * ( - col1 ) FROM tab2 cor0
----
-11391
-15077
-31479

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-728
SELECT + col1 DIV 20 + 50 AS col0 FROM tab2 cor0
----
50
51
52

skipif mysql # not compatible
query I rowsort label-728
SELECT + col1 / 20 + 50 AS col0 FROM tab2 cor0
----
50
51
52

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-731
SELECT ALL - 12 + - col0 DIV col2 FROM tab0 AS cor0
----
-12
-13
-47

skipif mysql # not compatible
query I rowsort label-731
SELECT ALL - 12 + - col0 / col2 FROM tab0 AS cor0
----
-12
-13
-47

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

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

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

query I rowsort
SELECT ALL + col1 * - col2 + + 82 * + col0 FROM tab2 AS cor0
----
-263
4862
5832

query I rowsort
SELECT + col0 * - col0 + - 19 FROM tab2 AS cor0
----
-6103
-6260
-68

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

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

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

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

query I rowsort
SELECT + 5 * col2 AS col1 FROM tab1
----
270
285
480

onlyif mysql # use DIV operator for integer division
query I rowsort label-741
SELECT ALL col0 * - col0 + col2 DIV 73 AS col0 FROM tab1
----
-4096
-6399
-9

skipif mysql # not compatible
query I rowsort label-741
SELECT ALL col0 * - col0 + col2 / 73 AS col0 FROM tab1
----
-4096
-6399
-9

query I rowsort
SELECT - ( 69 ) AS col1 FROM tab1
----
-69
-69
-69

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

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

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

query I rowsort
SELECT cor0.col2 * 12 FROM tab2, tab0 AS cor0
----
9 values hashing to c3504c68aac32df261d69c414d7a67f5

query I rowsort
SELECT + ( col0 ) * - col2 * + 46 AS col1 FROM tab1 cor0
----
-167808
-353280
-7452

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

query I rowsort
SELECT ALL 70 * col2 FROM tab1 AS cor0
----
3780
3990
6720

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + col2 + + 37 col0 FROM tab1 AS cor0
----
145
151
229

query I rowsort
SELECT + cor0.col2 * cor0.col0 + - ( ( - col0 ) ) + col1 FROM tab2 AS cor0
----
2165
227
3098

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + col1 * - col2 + - col1 col2 FROM tab2
----
-1515
-584
-861

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 99 + col2 + - col0 col2 FROM tab2
----
119
47
58

query I rowsort
SELECT - 56 * col1 * + tab2.col1 + - tab2.col2 FROM tab2
----
-16222
-194962
-53843

query I rowsort
SELECT + cor0.col1 + + cor0.col1 + - ( + cor0.col2 ) * col2 AS col1 FROM tab2 AS cor0
----
-1410
-558
-667

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT cor0.col2 + - col2 * CAST ( ( + col2 ) * col0 AS REAL ) AS col1 FROM tab0 cor0
----
-26103
-34
-598354

query I rowsort
SELECT 40 * + col1 + ( col1 ) * col2 * + cor0.col0 + col0 AS col1 FROM tab2 AS cor0
----
122090
51793
7106

query I rowsort
SELECT + + col0 + + col0 * 17 FROM tab2 AS cor0
----
126
1404
1422

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

query I rowsort
SELECT - col2 + + col0 * - 40 FROM tab2 AS cor0
----
-307
-3146
-3198

query I rowsort
SELECT ALL + 64 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-766
SELECT - col1 DIV 65 AS col0 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-766
SELECT - col1 / 65 AS col0 FROM tab0 AS cor0
----
-1
-1
-1

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 81 - col0 * cor0.col1 col2 FROM tab1 AS cor0
----
-1121
-159
-721

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

query I rowsort
SELECT DISTINCT + 96 * - col0 FROM tab2 AS cor0
----
-672
-7488
-7584

query I rowsort
SELECT ALL - - 5 * col1 FROM tab0 AS cor0
----
430
455
485

query I rowsort
SELECT cor0.col1 - + 96 FROM tab0 AS cor0
----
-10
-5
1

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

query I rowsort
SELECT DISTINCT - ( 8 ) + col2 FROM tab2 AS cor0
----
18
19
30

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

query I rowsort
SELECT DISTINCT + + 15 - - 85 * col1 FROM tab0 AS cor0
----
7325
7750
8260

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

query I rowsort
SELECT DISTINCT col2 * 78 + col1 FROM tab2 AS cor0
----
2087
2137
2981

query I rowsort
SELECT DISTINCT - + 57 FROM tab2 cor0
----
-57

query I rowsort
SELECT ALL - ( + 29 ) * col2 + + col2 FROM tab2 AS cor0
----
-1064
-728
-756

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

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

query I rowsort
SELECT DISTINCT - col1 + - col1 - - 93 AS col1 FROM tab2 AS cor0
----
-25
31
59

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

skipif mysql # not compatible
query I rowsort label-785
SELECT + cor0.col2 * col1 + CAST ( - col1 AS INTEGER ) FROM tab0 cor0
----
0
2752
7371

query I rowsort
SELECT DISTINCT + + 79 + col1 * 80 * + 57 AS col0 FROM tab1 AS cor0
----
118639
45679
59359

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-787
SELECT ALL - col2 * col1 + - CAST( - cor0.col2 AS SIGNED ) - col0 * 18 AS col2 FROM tab0 AS cor0
----
-3237
-726
-8982

skipif mysql # not compatible
query I rowsort label-787
SELECT ALL - col2 * col1 + - CAST ( - cor0.col2 AS INTEGER ) - col0 * 18 AS col2 FROM tab0 AS cor0
----
-3237
-726
-8982

query I rowsort
SELECT - ( + col1 ) - - col0 * - col0 FROM tab1
----
-35
-4106
-6413

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

query I rowsort
SELECT + ( 20 ) + tab0.col2 AS col1 FROM tab0
----
102
21
53

onlyif mysql # use DIV operator for integer division
query I rowsort label-791
SELECT col0 DIV 35 FROM tab2 AS cor0
----
0
2
2

skipif mysql # not compatible
query I rowsort label-791
SELECT col0 / 35 FROM tab2 AS cor0
----
0
2
2

query I rowsort
SELECT + col2 * - 40 AS col2 FROM tab0 cor0
----
-1320
-3280
-40

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

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

skipif mysql # not compatible
query I rowsort label-794
SELECT DISTINCT col1 / - col1 AS col1 FROM tab1 cor0
----
-1

query I rowsort
SELECT ALL + - col1 * 4 + col1 FROM tab1 AS cor0
----
-30
-39
-78

query I rowsort
SELECT ALL ( 35 ) * - col2 AS col1 FROM tab0 AS cor0
----
-1155
-2870
-35

query I rowsort
SELECT DISTINCT - 71 + col1 FROM tab1 AS cor0
----
-45
-58
-61

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

query I rowsort
SELECT 76 * - 45 FROM tab0, tab1 AS cor0
----
9 values hashing to 1bb6d5d246f4f9c65d703adadd050b3f

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

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

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

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

query I rowsort
SELECT DISTINCT - + col0 * col0 + + 13 FROM tab1 AS cor0
----
-4083
-6387
4

query I rowsort
SELECT ALL - + cor0.col2 * 59 FROM tab0 AS cor0
----
-1947
-4838
-59

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

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

query I rowsort
SELECT col0 + + col2 * 16 AS col0 FROM tab1 AS cor0
----
1616
867
976

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + 16 col0 FROM tab1 AS cor0
----
-1536
-864
-912

onlyif mysql # use DIV operator for integer division
query I rowsort label-810
SELECT ALL 35 DIV cor0.col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-810
SELECT ALL 35 / cor0.col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

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

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

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

query I rowsort
SELECT 2 * 82 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to a1509e33d3aaa01839fa4f2fb69edf25

query I rowsort
SELECT - + ( col2 ) * col2 + 32 AS col2 FROM tab2 AS cor0
----
-1412
-644
-697

query I rowsort
SELECT DISTINCT - 37 * - col0 FROM tab1 cor0
----
111
2368
2960

query I rowsort
SELECT + 49 - col2 * col1 FROM tab0 AS cor0
----
-2789
-48
-7413

query I rowsort
SELECT ALL - 67 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 95c9eba643f6489e03be4d5e83f1ef99

query I rowsort
SELECT - ( tab1.col2 ) * 26 + col0 AS col1 FROM tab1
----
-1401
-1418
-2416

query I rowsort
SELECT + 27 * col1 AS col2 FROM tab2
----
1593
459
837

query I rowsort
SELECT ALL + col1 + cor0.col2 * ( 87 + + col1 ) FROM tab1 AS cor0
----
5539
6128
9613

query I rowsort
SELECT ALL 3 + col2 FROM tab0 AS cor0
----
36
4
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + tab1.col1 ) * - 40 col1 FROM tab1
----
-1040
-400
-520

query I rowsort
SELECT + col1 * - 89 * col2 FROM tab2 AS cor0
----
-136526
-57494
-74493

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 * - 52 col2 FROM tab2 AS cor0
----
-364
-4056
-4108

onlyif mysql # use DIV operator for integer division
query I rowsort label-826
SELECT DISTINCT - col0 + - col2 DIV 29 AS col0 FROM tab0
----
-25
-35
-91

skipif mysql # not compatible
query I rowsort label-826
SELECT DISTINCT - col0 + - col2 / 29 AS col0 FROM tab0
----
-25
-35
-91

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-828
SELECT ALL col2 * - CAST( col1 AS SIGNED ) FROM tab0
----
-2838
-7462
-97

skipif mysql # not compatible
query I rowsort label-828
SELECT ALL col2 * - CAST ( col1 AS INTEGER ) FROM tab0
----
-2838
-7462
-97

query I rowsort
SELECT ALL ( 30 ) - - cor0.col1 FROM tab2, tab0 AS cor0
----
9 values hashing to e6daed6620cb5c5e841be7b52e20f033

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-830
SELECT col2 + CAST( - 44 AS SIGNED ) * + col0 AS col2 FROM tab2 AS cor0
----
-281
-3406
-3438

skipif mysql # not compatible
query I rowsort label-830
SELECT col2 + CAST ( - 44 AS INTEGER ) * + col0 AS col2 FROM tab2 AS cor0
----
-281
-3406
-3438

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

skipif mysql # not compatible
query I rowsort label-831
SELECT col0 - ( col1 ) / + col2 FROM tab1
----
3
64
80

query I rowsort
SELECT col0 * + 73 FROM tab2
----
511
5694
5767

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

query I rowsort
SELECT DISTINCT - ( 35 ) AS col0 FROM tab1
----
-35

query I rowsort
SELECT DISTINCT + - col0 + 35 - col1 AS col2 FROM tab1 AS cor0
----
-39
-58
6

query I rowsort
SELECT ALL - + ( - col0 ) * col0 + - col0 FROM tab1 AS cor0
----
4032
6
6320

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

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

query I rowsort
SELECT - - 67 + cor0.col2 * 28 - - col2 AS col1 FROM tab1 AS cor0
----
1633
1720
2851

query I rowsort
SELECT + 76 * + col0 + 56 AS col2 FROM tab2 cor0
----
588
5984
6060

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

skipif mysql # not compatible
query I rowsort label-840
SELECT - col1 / col1 + cor0.col0 AS col1 FROM tab0 AS cor0
----
23
34
88

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-842
SELECT + col2 + - col2 DIV cor0.col0 FROM tab1 AS cor0
----
36
57
95

skipif mysql # not compatible
query I rowsort label-842
SELECT + col2 + - col2 / cor0.col0 FROM tab1 AS cor0
----
36
57
95

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

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

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

query I rowsort
SELECT - 51 + col1 AS col2 FROM tab0 AS cor0
----
35
40
46

query I rowsort
SELECT + 92 + - 82 FROM tab0, tab2 AS cor0, tab1 AS cor1, tab2 AS cor2
----
81 values hashing to bf75e71325a06683558cf93fd725ad16

onlyif mysql # use DIV operator for integer division
query I rowsort label-847
SELECT ALL + 30 + - col2 DIV col0 + col0 col1 FROM tab1 AS cor0
----
109
15
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-847
SELECT ALL + 30 + - col2 / col0 + col0 col1 FROM tab1 AS cor0
----
109
15
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 2 + col0 * + col0 col2 FROM tab2
----
51
6086
6243

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

query I rowsort
SELECT ALL - col1 + - 6 FROM tab1 cor0
----
-16
-19
-32

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 18 col0 FROM tab0 AS cor0
----
18
18
18

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

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

query I rowsort
SELECT - + col1 + col1 - col0 AS col2 FROM tab0 cor0
----
-24
-35
-89

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

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

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

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

query I rowsort
SELECT DISTINCT - 69 + - col1 AS col1 FROM tab1 cor0
----
-79
-82
-95

query I rowsort
SELECT - ( 3 ) * + col0 * + 68 FROM tab1
----
-13056
-16320
-612

query I rowsort
SELECT ALL - 17 * col2 + col0 AS col2 FROM tab1 AS cor0
----
-1552
-905
-915

query I rowsort
SELECT DISTINCT - col0 * col1 * + col0 + col0 * - col2 FROM tab1 cor0
----
-396
-44608
-90880

query I rowsort
SELECT ALL + cor0.col1 + + col1 * - 47 - cor0.col1 FROM tab0 AS cor0
----
-4042
-4277
-4559

query I rowsort
SELECT col0 - 94 FROM tab1
----
-14
-30
-91

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

query I rowsort
SELECT DISTINCT 53 + + tab2.col0 FROM tab2
----
131
132
60

query I rowsort
SELECT DISTINCT - 84 + col0 FROM tab0
----
-49
-60
5

query I rowsort
SELECT ALL col2 + col1 * ( - col1 ) * + cor0.col0 FROM tab2 AS cor0
----
-22793
-271492
-6700

onlyif mysql # use DIV operator for integer division
query I rowsort label-868
SELECT DISTINCT col2 DIV + ( 36 ) AS col1 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-868
SELECT DISTINCT col2 / + ( 36 ) AS col1 FROM tab2 AS cor0
----
0
1

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

query I rowsort
SELECT DISTINCT + col0 * 67 FROM tab0 AS cor0
----
1608
2345
5963

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-871
SELECT DISTINCT - - col1 + + col2 / cor0.col2 col2 FROM tab0 AS cor0
----
87
92
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-872
SELECT DISTINCT col0 + - CAST( col2 AS SIGNED ) * + cor0.col0 FROM tab2 AS cor0
----
-182
-1950
-2923

skipif mysql # not compatible
query I rowsort label-872
SELECT DISTINCT col0 + - CAST ( col2 AS INTEGER ) * + cor0.col0 FROM tab2 AS cor0
----
-182
-1950
-2923

query I rowsort
SELECT ALL 21 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 312c166f4dc412730c43555105b1f44b

query I rowsort
SELECT 68 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab1 AS cor2
----
81 values hashing to 7ff6433dda3248dce73040b2c590f3da

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-877
SELECT + col2 DIV + 37 AS col0 FROM tab0 AS cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-877
SELECT + col2 / + 37 AS col0 FROM tab0 AS cor0
----
0
0
2

onlyif mysql # use DIV operator for integer division
query I rowsort label-878
SELECT ALL + col0 DIV + 59 AS col1 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-878
SELECT ALL + col0 / + 59 AS col1 FROM tab2
----
0
1
1

query I rowsort
SELECT ALL + col1 * 3 FROM tab2
----
177
51
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 39 col1 FROM tab0, tab1 cor0
----
9 values hashing to 504d14939d58aeb4a14f31c80de5b53e

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

query I rowsort
SELECT ALL - col2 + 48 FROM tab2
----
10
21
22

query I rowsort
SELECT + 96 + col2 * col0 FROM tab2 AS cor0
----
2124
285
3098

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-885
SELECT ALL - ( - col1 ) + col0 DIV + col0 AS col0 FROM tab1 AS cor0
----
11
14
27

skipif mysql # not compatible
query I rowsort label-885
SELECT ALL - ( - col1 ) + col0 / + col0 AS col0 FROM tab1 AS cor0
----
11
14
27

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

query I rowsort
SELECT DISTINCT + cor0.col1 * 87 AS col0 FROM tab0 AS cor0
----
7482
7917
8439

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

skipif mysql # not compatible
query I rowsort label-888
SELECT - CAST ( 42 AS INTEGER ) * + col2 AS col0 FROM tab0 AS cor0
----
-1386
-3444
-42

query I rowsort
SELECT ALL + - 20 + + cor0.col1 AS col0 FROM tab0 AS cor0
----
66
71
77

query I rowsort
SELECT - col1 * 64 AS col1 FROM tab0 AS cor0
----
-5504
-5824
-6208

query I rowsort
SELECT DISTINCT 86 * + col1 + col2 * col1 FROM tab2 AS cor0
----
2108
3503
6608

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

query I rowsort
SELECT ALL col1 + col2 * - col1 + ( col2 ) * + ( - 31 ) AS col1 FROM tab1
----
-2327
-3052
-4211

query I rowsort
SELECT 88 + + tab0.col1 AS col0 FROM tab0
----
174
179
185

query I rowsort
SELECT ALL + col0 * col2 + 96 FROM tab0 cor0
----
131
7394
888

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

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

query I rowsort
SELECT ALL - - 12 + - col1 AS col1 FROM tab1 AS cor0
----
-1
-14
2

onlyif mysql # use DIV operator for integer division
query I rowsort label-899
SELECT col1 DIV col0 + col2 AS col1 FROM tab0 AS cor0
----
3
36
83

skipif mysql # not compatible
query I rowsort label-899
SELECT col1 / col0 + col2 AS col1 FROM tab0 AS cor0
----
3
36
83

query I rowsort
SELECT DISTINCT + 20 * + col2 + col1 * - col2 AS col0 FROM tab1 AS cor0
----
-324
570
672

query I rowsort
SELECT DISTINCT - col2 + col2 * col2 * col1 FROM tab0 AS cor0
----
611802
93621
96

query I rowsort
SELECT - col0 * + 33 AS col1 FROM tab2 AS cor0
----
-231
-2574
-2607

query I rowsort
SELECT DISTINCT + col2 * 65 FROM tab1 AS cor0
----
3510
3705
6240

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

query I rowsort
SELECT + + col1 + 18 AS col0 FROM tab2 AS cor0
----
35
49
77

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

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

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

query I rowsort
SELECT ALL col0 + + 24 * - cor0.col2 FROM tab0 AS cor0
----
-1879
-768
11

query I rowsort
SELECT DISTINCT - ( + col2 ) + + cor0.col1 + col0 * + col1 FROM tab0 AS cor0
----
2117
3491
8108

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-912
SELECT DISTINCT - 13 + - col2 DIV col2 + ( - col2 ) * - col0 * - 92 AS col1 FROM tab1 AS cor0
----
-14918
-335630
-706574

skipif mysql # not compatible
query I rowsort label-912
SELECT DISTINCT - 13 + - col2 / col2 + ( - col2 ) * - col0 * - 92 AS col1 FROM tab1 AS cor0
----
-14918
-335630
-706574

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

query I rowsort
SELECT DISTINCT + col0 * 15 + + col1 AS col1 FROM tab0 AS cor0
----
1426
446
622

query I rowsort
SELECT DISTINCT 86 * col0 * - col0 + - col2 AS col2 FROM tab1 cor0
----
-352313
-550496
-828

query I rowsort
SELECT DISTINCT col2 * + cor0.col2 + 91 + 20 * - col0 FROM tab1 AS cor0
----
2060
2947
7707

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-918
SELECT 69 + cor0.col2 * 49 DIV - 41 col2 FROM tab2 cor0
----
24
37
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-918
SELECT 69 + cor0.col2 * 49 / - 41 col2 FROM tab2 cor0
----
24
37
38

query I rowsort
SELECT - + 24 * - col2 + 3 * ( + col0 ) FROM tab1 AS cor0
----
1305
1560
2544

query I rowsort
SELECT + col1 * 10 AS col1 FROM tab1 AS cor0
----
100
130
260

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

query I rowsort
SELECT - + col1 * ( 6 ) FROM tab1 AS cor0
----
-156
-60
-78

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

query I rowsort
SELECT 48 + - col2 AS col2 FROM tab1 AS cor0
----
-48
-6
-9

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

skipif mysql # not compatible
query I rowsort label-925
SELECT DISTINCT + CAST ( NULL AS REAL ) FROM tab0, tab1 AS cor0
----
NULL

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-927
SELECT ALL col1 + 5 DIV col1 AS col1 FROM tab0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-927
SELECT ALL col1 + 5 / col1 AS col1 FROM tab0
----
86
91
97

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

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

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

query I rowsort
SELECT - 99 * col1 AS col0 FROM tab2 AS cor0
----
-1683
-3069
-5841

query I rowsort
SELECT ALL - cor0.col2 AS col1 FROM tab0, tab0 AS cor0, tab2 cor1
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * 27 col0 FROM tab1
----
1458
1539
2592

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 - - cor0.col2 * 58 col2 FROM tab2 AS cor0
----
1573
1586
2283

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-938
SELECT DISTINCT + cor0.col0 + cor0.col0 * 14 DIV col2 - + col0 AS col0 FROM tab0 AS cor0
----
10
15
490

skipif mysql # not compatible
query I rowsort label-938
SELECT DISTINCT + cor0.col0 + cor0.col0 * 14 / col2 - + col0 AS col0 FROM tab0 AS cor0
----
10
15
490

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-940
SELECT - 49 DIV + col0 FROM tab2
----
-7
0
0

skipif mysql # not compatible
query I rowsort label-940
SELECT - 49 / + col0 FROM tab2
----
-7
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-941
SELECT - col2 * + tab2.col1 + col1 DIV + col0 - + col0 col2 FROM tab2
----
-1612
-725
-840

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-941
SELECT - col2 * + tab2.col1 + col1 / + col0 - + col0 col2 FROM tab2
----
-1612
-725
-840

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

query I rowsort
SELECT col2 * + ( cor0.col2 + - col0 ) FROM tab0 AS cor0
----
-34
-574
297

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-944
SELECT DISTINCT cor0.col2 * CAST( + 64 AS SIGNED ) AS col0 FROM tab0, tab1 AS cor0
----
3456
3648
6144

skipif mysql # not compatible
query I rowsort label-944
SELECT DISTINCT cor0.col2 * CAST ( + 64 AS INTEGER ) AS col0 FROM tab0, tab1 AS cor0
----
3456
3648
6144

query I rowsort
SELECT + 83 FROM tab1, tab0 AS cor0
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c

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

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

query I rowsort
SELECT - cor0.col0 * 74 FROM tab0 cor0
----
-1776
-2590
-6586

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + col0 col2 FROM tab2 cor0
----
49
6084
6241

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

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

skipif mysql # not compatible
query I rowsort label-953
SELECT DISTINCT + CAST ( - 12 AS INTEGER ) AS col0 FROM tab0, tab0 cor0, tab0 cor1
----
-12

query I rowsort
SELECT - + 88 FROM tab0, tab2 AS cor0
----
9 values hashing to 467301f887614eb7beda22c561b0fad2

query I rowsort
SELECT ALL - 23 * cor0.col1 + cor0.col2 * 32 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to c2e488af7f22d560b81d83d8d75fdb15

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

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

query I rowsort
SELECT - + 46 * + col1 FROM tab0 AS cor0
----
-3956
-4186
-4462

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

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

query I rowsort
SELECT + col2 * col1 + + 90 FROM tab2 cor0
----
1624
736
927

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

skipif mysql # not compatible
query I rowsort label-961
SELECT DISTINCT + col0 + - CAST ( + col0 AS INTEGER ) * cor0.col0 AS col0 FROM tab1 cor0
----
-4032
-6
-6320

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

query I rowsort
SELECT ALL - col2 + 5 AS col0 FROM tab1 AS cor0
----
-49
-52
-91

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

query I rowsort
SELECT - - cor0.col0 * + 16 + - 66 AS col0 FROM tab1 AS cor0
----
-18
1214
958

query I rowsort
SELECT DISTINCT - - col0 * ( 97 ) FROM tab0 AS cor0
----
2328
3395
8633

query I rowsort
SELECT ALL - cor0.col2 * + col0 + col1 * + col2 * + col0 FROM tab1 AS cor0
----
32832
4050
92160

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

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

query I rowsort
SELECT - - col0 * cor0.col1 + col0 FROM tab1 AS cor0
----
1120
704
81

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * 80 col2 FROM tab2 AS cor0
----
1360
2480
4720

query I rowsort
SELECT + ( + col0 ) * 41 FROM tab1
----
123
2624
3280

query I rowsort
SELECT + - cor0.col1 * - 43 + col0 * + col0 FROM tab2 AS cor0
----
1382
6972
8621

query I rowsort
SELECT - - col1 * + 13 AS col1 FROM tab1 AS cor0
----
130
169
338

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

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

query I rowsort
SELECT + - 95 * 90 FROM tab0 AS cor0
----
-8550
-8550
-8550

query I rowsort
SELECT - - 99 + + col0 FROM tab2 AS cor0
----
106
177
178

onlyif mysql # use DIV operator for integer division
query I rowsort label-979
SELECT + - 87 DIV - cor0.col1 + + col2 FROM tab1 AS cor0
----
102
57
65

skipif mysql # not compatible
query I rowsort label-979
SELECT + - 87 / - cor0.col1 + + col2 FROM tab1 AS cor0
----
102
57
65

query I rowsort
SELECT ALL + 20 - + 44 AS col0 FROM tab0 AS cor0
----
-24
-24
-24

query I rowsort
SELECT ALL + + ( 94 ) * col0 FROM tab0 AS cor0
----
2256
3290
8366

query I rowsort
SELECT col1 + + col0 + + col2 * ( col1 ) FROM tab2 AS cor0
----
1671
742
875

query I rowsort
SELECT DISTINCT 95 + col2 AS col0 FROM tab0 cor0
----
128
177
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-984
SELECT DISTINCT + ( - col2 ) * col2 DIV + ( - col1 ) FROM tab0 AS cor0
----
0
12
73

skipif mysql # not compatible
query I rowsort label-984
SELECT DISTINCT + ( - col2 ) * col2 / + ( - col1 ) FROM tab0 AS cor0
----
0
12
73

query I rowsort
SELECT - 81 * ( - col1 * - col1 ) FROM tab0 AS cor0
----
-599076
-670761
-762129

query I rowsort
SELECT DISTINCT + 67 * - 3 AS col0 FROM tab0 AS cor0
----
-201

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

query I rowsort
SELECT - + 18 * - col0 FROM tab2 AS cor0
----
126
1404
1422

query I rowsort
SELECT ALL - ( tab2.col0 ) * + col1 * - 65 FROM tab2
----
14105
299130
87295

query I rowsort
SELECT DISTINCT + - 56 + col0 * - 12 AS col1 FROM tab2 AS cor0
----
-1004
-140
-992

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-993
SELECT - 48 DIV + col1 FROM tab1 AS cor0
----
-1
-3
-4

skipif mysql # not compatible
query I rowsort label-993
SELECT - 48 / + col1 FROM tab1 AS cor0
----
-1
-3
-4

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-996
SELECT ALL + - col1 + col1 DIV + 99 FROM tab2 AS cor0
----
-17
-31
-59

skipif mysql # not compatible
query I rowsort label-996
SELECT ALL + - col1 + col1 / + 99 FROM tab2 AS cor0
----
-17
-31
-59

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

query I rowsort
SELECT ALL col1 + + col1 * 88 AS col2 FROM tab0 AS cor0
----
7654
8099
8633

query I rowsort
SELECT DISTINCT - ( col2 ) + tab0.col0 FROM tab0
----
-9
34
7

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

query I rowsort
SELECT ALL 81 * - col0 + col1 FROM tab1
----
-217
-5174
-6467

query I rowsort
SELECT 40 + col0 AS col1 FROM tab1
----
104
120
43

query I rowsort
SELECT DISTINCT 20 + col2 * - col0 AS col1 FROM tab0
----
-15
-7278
-772

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1006
SELECT DISTINCT - - col0 DIV col0 - 57 AS col2 FROM tab2 AS cor0
----
-56

skipif mysql # not compatible
query I rowsort label-1006
SELECT DISTINCT - - col0 / col0 - 57 AS col2 FROM tab2 AS cor0
----
-56

query I rowsort
SELECT + 6 + cor0.col0 * col2 AS col2 FROM tab2 AS cor0
----
195
2034
3008

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

query I rowsort
SELECT ALL cor1.col0 - 69 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0, tab0 AS cor1
----
27 values hashing to 8cb8bf5e76ce47667e443e91d42bb106

query I rowsort
SELECT - col2 * ( + col0 * col1 ) + 42 AS col0 FROM tab1 cor0
----
-36438
-4170
-99798

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

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1016
SELECT + col0 * ( col0 ) + col2 + col0 DIV col0 col2 FROM tab0 AS cor0
----
1227
610
8004

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1016
SELECT + col0 * ( col0 ) + col2 + col0 / col0 col2 FROM tab0 AS cor0
----
1227
610
8004

query I rowsort
SELECT DISTINCT - - 39 * cor0.col2 AS col1 FROM tab1 AS cor0
----
2106
2223
3744

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

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

query I rowsort
SELECT DISTINCT + 78 * - ( col0 ) + 86 + 80 FROM tab2 AS cor0
----
-380
-5918
-5996

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

query I rowsort
SELECT DISTINCT + 36 + + 49 FROM tab1 AS cor0
----
85

query I rowsort
SELECT - - 61 * - cor0.col0 + col1 FROM tab0 AS cor0
----
-1378
-2038
-5338

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

skipif mysql # not compatible
query I rowsort label-1023
SELECT - col2 * CAST ( - col1 AS INTEGER ) - col0 FROM tab0 AS cor0
----
2814
62
7373

onlyif mysql # use DIV operator for integer division
query I rowsort label-1024
SELECT + + col0 * CAST( col1 AS SIGNED ) + col2 - col2 DIV col2 FROM tab1 AS cor0
----
1135
131
696

skipif mysql # not compatible
query I rowsort label-1024
SELECT + + col0 * CAST ( col1 AS INTEGER ) + col2 - col2 / col2 FROM tab1 AS cor0
----
1135
131
696

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

skipif mysql # not compatible
query I rowsort label-1025
SELECT + col1 / + col2 + col0 / col0 FROM tab1 AS cor0
----
1
1
1

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

query I rowsort
SELECT + col1 * 97 - - col0 AS col2 FROM tab0 AS cor0
----
8366
8916
9444

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

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

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

query I rowsort
SELECT DISTINCT + ( 51 ) - col2 * ( col2 * cor0.col2 ) FROM tab0 AS cor0
----
-35886
-551317
50

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

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

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

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

query I rowsort
SELECT ALL - 49 FROM tab2, tab0 cor0, tab2 AS cor1
----
27 values hashing to adfccb10c9468825d9961e3613140f89

query I rowsort
SELECT DISTINCT - 16 * col0 * col1 FROM tab1
----
-10240
-1248
-16640

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

query I rowsort
SELECT + + ( cor0.col1 ) * ( + 51 ) AS col0 FROM tab2 AS cor0
----
1581
3009
867

query I rowsort
SELECT + 58 * - col2 AS col1 FROM tab1 cor0
----
-3132
-3306
-5568

query I rowsort
SELECT 83 + tab2.col2 * + tab2.col2 FROM tab2
----
1527
759
812

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

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

skipif mysql # not compatible
query I rowsort label-1040
SELECT col1 / ( 29 ) FROM tab2 AS cor0
----
0
1
2

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

query I rowsort
SELECT ALL - tab1.col2 AS col2 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e

query I rowsort
SELECT ALL - col1 * cor0.col1 + col2 * - col1 + + col0 AS col1 FROM tab1 AS cor0
----
-1337
-2077
-606

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

query I rowsort
SELECT + + col0 + 39 FROM tab0 AS cor0
----
128
63
74

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

query I rowsort
SELECT - 62 * 9 FROM tab1 AS cor0
----
-558
-558
-558

query I rowsort
SELECT - - 99 * - col1 FROM tab0 AS cor0
----
-8514
-9009
-9603

query I rowsort
SELECT - ( cor0.col2 ) * + 19 FROM tab0 AS cor0
----
-1558
-19
-627

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

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

skipif mysql # not compatible
query I rowsort label-1051
SELECT ALL - - col2 / + col0 AS col0 FROM tab1 AS cor0
----
0
1
18

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

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

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

query I rowsort
SELECT ALL - col0 + - col1 + ( tab2.col2 ) FROM tab2
----
-11
-111
-58

onlyif mysql # use DIV operator for integer division
query I rowsort label-1055
SELECT ALL 16 DIV col2 AS col0 FROM tab0 AS cor0
----
0
0
16

skipif mysql # not compatible
query I rowsort label-1055
SELECT ALL 16 / col2 AS col0 FROM tab0 AS cor0
----
0
0
16

query I rowsort
SELECT DISTINCT - + 61 * - 30 FROM tab2 AS cor0
----
1830

query I rowsort
SELECT ALL + + 0 + - 38 * col0 FROM tab1 AS cor0
----
-114
-2432
-3040

query I rowsort
SELECT ALL + + col1 * col2 + - col1 * col0 * col1 AS col1 FROM tab1 cor0
----
-12272
-5830
-624

query I rowsort
SELECT ALL 24 + - cor0.col2 * + cor0.col1 AS col0 FROM tab0 AS cor0
----
-2814
-73
-7438

query I rowsort
SELECT + cor2.col2 AS col2 FROM tab2, tab0 AS cor0, tab1 AS cor1, tab0, tab1 AS cor2
----
243 values hashing to 39c7e653e7a493eb9c9e3dad9ba3b8c2

query I rowsort
SELECT + tab0.col1 AS col1 FROM tab0, tab2, tab0 AS cor0, tab1 cor1
----
81 values hashing to 8c9db501a604ea66e3b5e5598f3f2a91

query I rowsort
SELECT - col2 * col0 + col0 * + col1 AS col0 FROM tab2
----
-1659
2574
28

query I rowsort
SELECT + - 15 * + col0 + col1 AS col0 FROM tab0 AS cor0
----
-1244
-274
-428

query I rowsort
SELECT + 29 * col1 - col2 * cor0.col2 AS col2 FROM tab0 AS cor0
----
-4085
1405
2812

onlyif mysql # use DIV operator for integer division
query I rowsort label-1065
SELECT DISTINCT col1 DIV + col1 AS col1 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-1065
SELECT DISTINCT col1 / + col1 AS col1 FROM tab2 AS cor0
----
1

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

skipif mysql # not compatible
query I rowsort label-1066
SELECT ALL + col1 / ( + col1 ) AS col1 FROM tab0 cor0
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-1067
SELECT - col0 DIV 12 col2 FROM tab2 AS cor0
----
-6
-6
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1067
SELECT - col0 / 12 col2 FROM tab2 AS cor0
----
-6
-6
0

query I rowsort
SELECT ALL + col2 * - 27 AS col0 FROM tab1 cor0
----
-1458
-1539
-2592

query I rowsort
SELECT DISTINCT cor0.col2 + + 29 AS col2 FROM tab2 AS cor0
----
55
56
67

query I rowsort
SELECT + cor0.col1 + 28 * + col0 FROM tab0 AS cor0
----
1077
2583
758

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + col1 + - 55 + + col0 * - ( + col2 ) col2 FROM tab2 AS cor0
----
-1205
-3346
-5564

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1072
SELECT DISTINCT - + col0 + CAST( 70 AS SIGNED ) + - col2 AS col0 FROM tab2 AS cor0
----
-34
-47
36

skipif mysql # not compatible
query I rowsort label-1072
SELECT DISTINCT - + col0 + CAST ( 70 AS INTEGER ) + - col2 AS col0 FROM tab2 AS cor0
----
-34
-47
36

query I rowsort
SELECT DISTINCT + col2 * + col1 + col0 * col0 + col2 * + 1 FROM tab2 AS cor0
----
6925
7644
913

query I rowsort
SELECT - + cor0.col1 * 8 * - 36 + - col1 AS col2 FROM tab2 AS cor0
----
16933
4879
8897

query I rowsort
SELECT DISTINCT - + col1 * + col2 + - 25 FROM tab0 AS cor0
----
-122
-2863
-7487

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

query I rowsort
SELECT DISTINCT + col0 * + 22 - ( col0 ) AS col2 FROM tab1 AS cor0
----
1344
1680
63

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

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

query I rowsort
SELECT ALL + col0 * col2 - 76 * + col0 AS col1 FROM tab2 AS cor0
----
-3002
-343
-3900

query I rowsort
SELECT ALL + + col2 + 71 FROM tab1 AS cor0
----
125
128
167

onlyif mysql # use DIV operator for integer division
query I rowsort label-1081
SELECT - col0 + col1 DIV - cor0.col0 FROM tab0 AS cor0
----
-27
-37
-90

skipif mysql # not compatible
query I rowsort label-1081
SELECT - col0 + col1 / - cor0.col0 FROM tab0 AS cor0
----
-27
-37
-90

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

skipif mysql # not compatible
query I rowsort label-1082
SELECT DISTINCT - + col1 / 46 + - 2 AS col2 FROM tab2 cor0
----
-2
-3

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

query I rowsort
SELECT - - col2 * 24 + + col2 FROM tab2 AS cor0
----
650
675
950

query I rowsort
SELECT col0 * - 16 AS col2 FROM tab1 AS cor0
----
-1024
-1280
-48

onlyif mysql # use DIV operator for integer division
query I rowsort label-1086
SELECT col1 DIV ( - col0 * col0 ) + + 39 * col0 AS col0 FROM tab0 AS cor0
----
1365
3471
936

skipif mysql # not compatible
query I rowsort label-1086
SELECT col1 / ( - col0 * col0 ) + + 39 * col0 AS col0 FROM tab0 AS cor0
----
1365
3471
936

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

query I rowsort
SELECT - col2 + 42 * - col0 * col2 AS col1 FROM tab2 AS cor0
----
-126122
-7965
-85202

query I rowsort
SELECT DISTINCT + - 20 + col2 FROM tab0 cor0
----
-19
13
62

query I rowsort
SELECT + ( - col0 ) + 37 FROM tab1 AS cor0
----
-27
-43
34

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

query I rowsort
SELECT ALL - col2 * - cor0.col1 + 4 FROM tab1 AS cor0
----
1252
1408
574

query I rowsort
SELECT ALL - ( + col2 ) * + 34 FROM tab2 AS cor0
----
-1292
-884
-918

query I rowsort
SELECT 18 * + col1 FROM tab1 cor0
----
180
234
468

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

query I rowsort
SELECT ALL col2 + + col1 * + col0 * + cor0.col0 AS col1 FROM tab0 cor0
----
118826
49569
720893

query I rowsort
SELECT + - 96 * - col0 - cor0.col0 * cor0.col1 FROM tab0 cor0
----
-35
240
445

query I rowsort
SELECT DISTINCT - col2 * + col2 + - 48 * - col1 FROM tab1 AS cor0
----
-1668
-2769
-8592

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

skipif mysql # not compatible
query I rowsort label-1099
SELECT DISTINCT - col2 / col1 + + col0 FROM tab2 AS cor0
----
7
77
78

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

query I rowsort
SELECT - cor0.col0 + + col1 * col1 * col0 AS col2 FROM tab1 AS cor0
----
13440
2025
6336

query I rowsort
SELECT DISTINCT col0 * + col1 + 43 AS col1 FROM tab1 cor0
----
1083
121
683

query I rowsort
SELECT - 50 + col0 * 38 FROM tab2 AS cor0
----
216
2914
2952

onlyif mysql # use DIV operator for integer division
query I rowsort label-1104
SELECT DISTINCT - col0 DIV col0 + + CAST( col2 AS SIGNED ) * - col0 AS col1 FROM tab1 AS cor0
----
-163
-3649
-7681

skipif mysql # not compatible
query I rowsort label-1104
SELECT DISTINCT - col0 / col0 + + CAST ( col2 AS INTEGER ) * - col0 AS col1 FROM tab1 AS cor0
----
-163
-3649
-7681

query I rowsort
SELECT ALL - col1 * - 96 FROM tab1
----
1248
2496
960

onlyif mysql # use DIV operator for integer division
query I rowsort label-1106
SELECT cor0.col0 DIV - 21 AS col2 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to e6d63ab432fc7a7f17fe6cf3b6fac380

skipif mysql # not compatible
query I rowsort label-1106
SELECT cor0.col0 / - 21 AS col2 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to e6d63ab432fc7a7f17fe6cf3b6fac380

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

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

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

skipif mysql # not compatible
query I rowsort label-1109
SELECT DISTINCT + col1 * + col2 * - CAST ( col1 AS INTEGER ) FROM tab1 AS cor0
----
-16224
-36504
-5700

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

query I rowsort
SELECT ALL 89 + col0 FROM tab0
----
113
124
178

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

query I rowsort
SELECT DISTINCT + col1 * + col0 + col0 * col1 AS col0 FROM tab0 AS cor0
----
16198
4128
6790

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL <> + col1 AND col1 BETWEEN col1 AND NULL
----

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

query I rowsort
SELECT DISTINCT + col2 / - col0 AS col0 FROM tab0 WHERE NULL BETWEEN NULL AND ( NULL )
----

query IIIIII rowsort
SELECT ALL * FROM tab1, tab2 AS cor0 WHERE NULL NOT IN ( cor0.col0 )
----

query I rowsort
SELECT DISTINCT - tab2.col1 * + col0 AS col0 FROM tab2 WHERE NOT - col2 * + col0 >= NULL
----

query I rowsort
SELECT ALL - col2 + col0 - + col1 FROM tab0 AS cor0
----
-63
-84
-95

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

query I rowsort
SELECT ALL col0 * col2 * col1 AS col2 FROM tab1
----
36480
4212
99840

query I rowsort
SELECT ALL col1 + - col1 * - col1 * col1 AS col0 FROM tab2
----
205438
29822
4930

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1126
SELECT + col1 * - col0 + cor0.col2 DIV col2 + - col2 col1 FROM tab1 cor0
----
-1135
-131
-696

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1126
SELECT + col1 * - col0 + cor0.col2 / col2 + - col2 col1 FROM tab1 cor0
----
-1135
-131
-696

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

query I rowsort
SELECT ALL col0 FROM tab1 WHERE NOT - col0 BETWEEN NULL AND NULL
----

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

query I rowsort
SELECT col2 * col1 + + col1 + + tab2.col1 FROM tab2
----
1652
680
899

onlyif mysql # use DIV operator for integer division
query I rowsort label-1131
SELECT DISTINCT col1 DIV + col1 + col0 + col2 FROM tab1
----
122
177
58

skipif mysql # not compatible
query I rowsort label-1131
SELECT DISTINCT col1 / + col1 + col0 + col2 FROM tab1
----
122
177
58

onlyif mysql # use DIV operator for integer division
query I rowsort label-1132
SELECT ALL col1 DIV col2 + - col2 + col1 col0 FROM tab0
----
10
193
55

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1132
SELECT ALL col1 / col2 + - col2 + col1 col0 FROM tab0
----
10
193
55

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

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

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

query I rowsort
SELECT + col2 * col2 + tab0.col2 + col0 FROM tab0
----
1146
37
6895

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1138
SELECT + col0 + col0 DIV col2 col0 FROM tab0
----
24
70
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1138
SELECT + col0 + col0 / col2 col0 FROM tab0
----
24
70
90

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1141
SELECT col1 + - col2 DIV + col2 + 7 * + col2 FROM tab1 AS cor0
----
403
408
684

skipif mysql # not compatible
query I rowsort label-1141
SELECT col1 + - col2 / + col2 + 7 * + col2 FROM tab1 AS cor0
----
403
408
684

query I rowsort
SELECT - - col0 * col2 + ( 29 ) * - cor0.col1 + ( col1 ) AS col2 FROM tab2 AS cor0
----
-679
2526
376

onlyif mysql # use DIV operator for integer division
query I rowsort label-1143
SELECT col0 * - tab0.col0 * col1 + - col1 DIV - col0 FROM tab0
----
-118823
-49533
-720810

skipif mysql # not compatible
query I rowsort label-1143
SELECT col0 * - tab0.col0 * col1 + - col1 / - col0 FROM tab0
----
-118823
-49533
-720810

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

query I rowsort
SELECT col1 + - tab0.col0 AS col2 FROM tab0 WHERE NOT col1 <= NULL
----

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

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

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

query I rowsort
SELECT ALL + col1 * - col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( col1 + - col1 + col2 * col0 )
----

query I rowsort
SELECT + col2 AS col0 FROM tab1 WHERE NOT + col1 / col0 + - col0 IN ( col1 )
----
54
57
96

query I rowsort
SELECT col2 * tab0.col0 * - col2 - col2 FROM tab0
----
-26169
-36
-598518

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col0 * - col1 / - col0 + - col2 + - col2 * col1 BETWEEN ( NULL ) AND + col0
----

query I rowsort
SELECT DISTINCT tab2.col2 * col1 + tab2.col1 + col0 * col1 FROM tab2
----
1085
2006
6195

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1155
SELECT tab1.col0 DIV - col0 + + tab1.col2 * col1 col0 FROM tab1
----
1247
1403
569

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1155
SELECT tab1.col0 / - col0 + + tab1.col2 * col1 col0 FROM tab1
----
1247
1403
569

query I rowsort
SELECT - tab1.col1 FROM tab1 WHERE NULL NOT BETWEEN NULL AND ( col2 + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col2 * tab0.col1 * - col0 - + col1 col1 FROM tab0
----
-3492
-664209
-68198

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

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

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

query I rowsort
SELECT DISTINCT 94 + + col0 AS col0 FROM tab0 cor0
----
118
129
183

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

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

query I rowsort
SELECT ALL - - 52 * col2 - - cor0.col1 FROM tab2 AS cor0
----
1411
1435
1993

query I rowsort
SELECT DISTINCT 63 - col0 AS col2 FROM tab0 AS cor0
----
-26
28
39

query I rowsort
SELECT - 49 + + col2 * ( col2 ) AS col2 FROM tab0 AS cor0
----
-48
1040
6675

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 27 + 94 col1 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
121

query I rowsort
SELECT ALL - 59 * col2 * + col0 FROM tab1 AS cor0
----
-215232
-453120
-9558

query I rowsort
SELECT ALL + 7 AS col0 FROM tab2
----
7
7
7

query I rowsort
SELECT + col2 * + col0 + ( + col2 + - col2 * - col0 ) AS col1 FROM tab1
----
15456
378
7353

query I rowsort
SELECT 46 + - col1 FROM tab1 AS cor0
----
20
33
36

query I rowsort
SELECT - 74 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 5a477330c946251f814fbbfd08e77c28

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

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

query I rowsort
SELECT DISTINCT col2 + - cor0.col2 * - col2 AS col1 FROM tab0 AS cor0
----
1122
2
6806

query I rowsort
SELECT 39 * 54 * col1 AS col1 FROM tab2 AS cor0
----
124254
35802
65286

query I rowsort
SELECT ALL + + 53 + col2 AS col2 FROM tab0 AS cor0
----
135
54
86

query I rowsort
SELECT + 83 * - col0 + col1 AS col1 FROM tab2 AS cor0
----
-550
-6415
-6540

query I rowsort
SELECT ALL - + cor0.col0 * + 44 + cor0.col0 FROM tab2 AS cor0
----
-301
-3354
-3397

query I rowsort
SELECT ( - 16 ) + col1 FROM tab0 AS cor0
----
70
75
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 * + 61 col2 FROM tab2 AS cor0
----
-427
-4758
-4819

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

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

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

query I rowsort
SELECT tab2.col2 AS col1 FROM tab2, tab0 cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

query I rowsort
SELECT col2 + + 47 - col2 FROM tab2
----
47
47
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 - - col2 col2 FROM tab0
----
-53
-9
-96

query I rowsort
SELECT 27 + col0 * col1 FROM tab2 cor0
----
1370
244
4629

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

query I rowsort
SELECT 97 + + ( + col2 ) AS col2 FROM tab0
----
130
179
98

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

skipif mysql # not compatible
query I rowsort label-1188
SELECT ALL + CAST ( NULL AS REAL ) + + 60 AS col2 FROM tab0
----
NULL
NULL
NULL

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

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

query I rowsort
SELECT - col2 * col1 - - col0 * + col0 AS col2 FROM tab0 AS cor0
----
-2262
1128
459

query I rowsort
SELECT ALL + ( + ( cor0.col1 ) ) + + col1 * col0 AS col1 FROM tab2 AS cor0
----
1360
248
4661

query I rowsort
SELECT DISTINCT + col1 + 11 FROM tab1 AS cor0
----
21
24
37

query I rowsort
SELECT ALL col2 * + 85 AS col2 FROM tab2 cor0
----
2210
2295
3230

onlyif mysql # use DIV operator for integer division
query I rowsort label-1194
SELECT ALL cor0.col2 DIV 42 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1194
SELECT ALL cor0.col2 / 42 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - 59 + + cor0.col0 * + col2 * col0 FROM tab1 AS cor0
----
233413
427
614341

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

skipif mysql # not compatible
query I rowsort label-1196
SELECT col2 / 81 FROM tab0 AS cor0
----
0
0
1

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

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

query I rowsort
SELECT DISTINCT - 63 + + col2 FROM tab2
----
-25
-36
-37

onlyif mysql # use DIV operator for integer division
query I rowsort label-1200
SELECT DISTINCT - tab1.col1 + + 57 DIV col2 AS col0 FROM tab1
----
-13
-25
-9

skipif mysql # not compatible
query I rowsort label-1200
SELECT DISTINCT - tab1.col1 + + 57 / col2 AS col0 FROM tab1
----
-13
-25
-9

query I rowsort
SELECT col1 * col0 + - col2 - col2 AS col0 FROM tab1
----
-30
526
848

query I rowsort
SELECT ALL - 14 * ( col1 ) + - col0 * - tab2.col2 FROM tab2
----
-245
1202
2764

onlyif mysql # use DIV operator for integer division
query I rowsort label-1203
SELECT ALL CAST( 19 AS SIGNED ) DIV + col1 + col2 * + col2 FROM tab2
----
1445
676
729

skipif mysql # not compatible
query I rowsort label-1203
SELECT ALL CAST ( 19 AS INTEGER ) / + col1 + col2 * + col2 FROM tab2
----
1445
676
729

query I rowsort
SELECT DISTINCT 72 + tab0.col2 * col0 + + col0 * - col0 AS col2 FROM tab0
----
-1118
-551
288

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

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

query I rowsort
SELECT DISTINCT + 29 * + ( - col0 ) + col2 FROM tab1 AS cor0
----
-1799
-2224
-33

query I rowsort
SELECT DISTINCT ( col2 ) + - col0 FROM tab0
----
-34
-7
9

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

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

query I rowsort
SELECT DISTINCT + 32 AS col0 FROM tab0, tab1 cor0
----
32

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

skipif mysql # not compatible
query I rowsort label-1211
SELECT col1 * cor0.col1 / cor0.col1 + + col2 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT DISTINCT 95 * col1 + col2 * cor0.col1 FROM tab2 AS cor0
----
2261
3782
7139

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

query I rowsort
SELECT 53 * - col1 - col2 FROM tab0 AS cor0
----
-4591
-4905
-5142

query I rowsort
SELECT DISTINCT + 4 + col0 FROM tab2 AS cor0
----
11
82
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 9 * col2 + + col1 + - col2 col1 FROM tab0 AS cor0
----
105
350
747

onlyif mysql # use DIV operator for integer division
query I rowsort label-1217
SELECT ALL + 60 * - col0 + + col0 DIV + col2 - - col1 FROM tab1
----
-154
-3829
-4787

skipif mysql # not compatible
query I rowsort label-1217
SELECT ALL + 60 * - col0 + + col0 / + col2 - - col1 FROM tab1
----
-154
-3829
-4787

query I rowsort
SELECT ALL - 6 * col0 AS col2 FROM tab0 AS cor0
----
-144
-210
-534

onlyif mysql # use DIV operator for integer division
query I rowsort label-1219
SELECT - col1 + + col1 DIV col0 FROM tab0 AS cor0
----
-83
-90
-95

skipif mysql # not compatible
query I rowsort label-1219
SELECT - col1 + + col1 / col0 FROM tab0 AS cor0
----
-83
-90
-95

query I rowsort
SELECT - + 40 * cor0.col1 + - col0 FROM tab1 AS cor0
----
-1043
-464
-600

query I rowsort
SELECT - - 62 * col2 + col2 FROM tab2 cor0
----
1638
1701
2394

query I rowsort
SELECT DISTINCT col1 * 93 AS col1 FROM tab1 cor0
----
1209
2418
930

query I rowsort
SELECT DISTINCT - + cor0.col0 * 53 * - col1 + col2 * col0 AS col2 FROM tab0 AS cor0
----
110184
179970
436545

query I rowsort
SELECT DISTINCT + col1 - - col2 * + 5 FROM tab2 AS cor0
----
166
189
207

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

query I rowsort
SELECT ALL - cor0.col0 * - 61 FROM tab1 AS cor0
----
183
3904
4880

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

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

query I rowsort
SELECT DISTINCT col1 + ( 23 ) FROM tab1 cor0
----
33
36
49

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1230
SELECT DISTINCT - col0 * - ( col2 ) * col0 - col2 DIV col1 FROM tab2 AS cor0
----
1323
158184
237156

skipif mysql # not compatible
query I rowsort label-1230
SELECT DISTINCT - col0 * - ( col2 ) * col0 - col2 / col1 FROM tab2 AS cor0
----
1323
158184
237156

query I rowsort
SELECT DISTINCT + col0 * ( + 24 ) FROM tab0 AS cor0
----
2136
576
840

query I rowsort
SELECT ALL 18 * + ( - col0 ) FROM tab1 cor0
----
-1152
-1440
-54

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

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

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0 cor0 CROSS JOIN tab0, tab1 cor1, tab0 AS cor2
----
972 values hashing to 5342fb4caf4767cb98bd21989bad099f

query I rowsort
SELECT col0 * 49 + tab1.col1 * + col1 FROM tab1
----
3236
4089
823

query I rowsort
SELECT DISTINCT col2 * 62 FROM tab0
----
2046
5084
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-1237
SELECT + 62 DIV - cor0.col2 AS col2 FROM tab2, tab0 cor0
----
9 values hashing to 2939ed7b8a11e374ec1ae5f0de72f796

skipif mysql # not compatible
query I rowsort label-1237
SELECT + 62 / - cor0.col2 AS col2 FROM tab2, tab0 cor0
----
9 values hashing to 2939ed7b8a11e374ec1ae5f0de72f796

onlyif mysql # use DIV operator for integer division
query I rowsort label-1238
SELECT ALL tab1.col1 DIV 55 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1238
SELECT ALL tab1.col1 / 55 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 91 col0 FROM tab1, tab1 AS cor0, tab2 AS cor1, tab2, tab1 AS cor2
----
243 values hashing to d6f0339e9f022f317c10dc07cb55927b

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

query I rowsort
SELECT + 63 AS col1 FROM tab2, tab2 cor0
----
9 values hashing to c3eea92c46f2c49716f386a58b575025

query I rowsort
SELECT ALL - cor0.col0 + ( 65 + - col2 ) FROM tab0 AS cor0
----
-106
29
8

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

skipif mysql # not compatible
query I rowsort label-1243
SELECT - + col2 / ( - col1 ) + col2 FROM tab0 AS cor0
----
1
33
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-1244
SELECT + col0 + - ( col1 ) DIV col1 FROM tab2 cor0
----
6
77
78

skipif mysql # not compatible
query I rowsort label-1244
SELECT + col0 + - ( col1 ) / col1 FROM tab2 cor0
----
6
77
78

query I rowsort
SELECT + 16 + col0 FROM tab2 AS cor0
----
23
94
95

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + 25 col1 FROM tab0 cor0
----
2150
2275
2425

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

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

query I rowsort
SELECT + - ( - 65 ) * - col2 FROM tab1 AS cor0
----
-3510
-3705
-6240

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

skipif mysql # not compatible
query I rowsort label-1251
SELECT DISTINCT - col0 + col1 + - 33 / + col0 FROM tab0 AS cor0
----
2
61
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col1 + col1 * + 10 * + col2 col0 FROM tab2 AS cor0
----
15281
6443
8339

query I rowsort
SELECT 80 * - cor0.col2 + col1 * + 90 * col0 AS col0 FROM tab1 AS cor0
----
2700
53040
85920

query I rowsort
SELECT 99 * + col0 + - ( col0 * col1 + col1 ) FROM tab1 cor0
----
193
5686
6867

query I rowsort
SELECT + + 1 + + col2 FROM tab2 AS cor0
----
27
28
39

query I rowsort
SELECT + tab1.col0 + 94 + - col0 FROM tab1
----
94
94
94

query I rowsort
SELECT col2 - + cor0.col0 * + ( - 7 ) * + col2 FROM tab2 AS cor0
----
1350
14222
21052

query I rowsort
SELECT + + ( + col1 ) - 25 AS col0 FROM tab0 AS cor0
----
61
66
72

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1260
SELECT + col0 DIV - cor0.col1 + cor0.col0 * col2 + col0 FROM tab2 AS cor0
----
196
2105
3077

skipif mysql # not compatible
query I rowsort label-1260
SELECT + col0 / - cor0.col1 + cor0.col0 * col2 + col0 FROM tab2 AS cor0
----
196
2105
3077

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

query I rowsort
SELECT + + 78 * 45 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 751e5c56838c0285b6ce095fdc915d4d

query I rowsort
SELECT ALL cor1.col1 AS col0 FROM tab2, tab0 AS cor0, tab0, tab2 AS cor1
----
81 values hashing to a5b6acb471910ea4ad7f31cae3b818f7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col1 * 5 + col1 col1 FROM tab1 AS cor0
----
156
60
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-1265
SELECT DISTINCT col0 * - ( - 61 ) - + col2 DIV 82 col1 FROM tab1 AS cor0
----
183
3904
4879

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1265
SELECT DISTINCT col0 * - ( - 61 ) - + col2 / 82 col1 FROM tab1 AS cor0
----
183
3904
4879

query I rowsort
SELECT ALL - col0 * - 56 - + col2 * + col1 AS col1 FROM tab1 AS cor0
----
-1236
3014
3232

query I rowsort
SELECT ALL + col1 + 21 - cor0.col1 AS col2 FROM tab1 AS cor0
----
21
21
21

query I rowsort
SELECT col1 - ( col0 ) * + col2 * - col0 FROM tab2 AS cor0
----
1354
158243
237175

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

query I rowsort
SELECT DISTINCT - 54 * + col2 FROM tab2
----
-1404
-1458
-2052

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

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

query I rowsort
SELECT DISTINCT - col0 * 97 + col1 AS col1 FROM tab1 AS cor0
----
-265
-6198
-7747

query I rowsort
SELECT col2 + + ( 68 ) * + col2 - + 84 FROM tab2 AS cor0
----
1710
1779
2538

query I rowsort
SELECT DISTINCT + 5 * - col2 FROM tab0
----
-165
-410
-5

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

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

query I rowsort
SELECT ALL col0 + 83 * + col1 FROM tab1
----
1159
2161
894

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

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

query I rowsort
SELECT DISTINCT + 21 * 36 AS col0 FROM tab2
----
756

onlyif mysql # use DIV operator for integer division
query I rowsort label-1282
SELECT ALL + col2 DIV + cor0.col1 + cor0.col1 FROM tab1 AS cor0
----
15
20
28

skipif mysql # not compatible
query I rowsort label-1282
SELECT ALL + col2 / + cor0.col1 + cor0.col1 FROM tab1 AS cor0
----
15
20
28

query I rowsort
SELECT DISTINCT + - 1 - col0 FROM tab1 AS cor0
----
-4
-65
-81

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

skipif mysql # not compatible
query I rowsort label-1284
SELECT DISTINCT - ( - col2 ) / + col0 AS col1 FROM tab0 AS cor0
----
0
1

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

query I rowsort
SELECT - 73 AS col1 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 2931474b870c05694e446771031a6949

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1290
SELECT + 69 * col2 DIV + col2 FROM tab1 cor0
----
69
69
69

skipif mysql # not compatible
query I rowsort label-1290
SELECT + 69 * col2 / + col2 FROM tab1 cor0
----
69
69
69

query I rowsort
SELECT + col0 + col1 * 32 AS col1 FROM tab2 AS cor0
----
1966
623
999

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

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

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

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

query I rowsort
SELECT - col2 * - 75 FROM tab2
----
1950
2025
2850

query I rowsort
SELECT ALL + 57 * col2 + col0 FROM tab1 AS cor0
----
3081
3313
5552

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

query I rowsort
SELECT DISTINCT + col0 * + 67 + col2 * - col1 FROM tab2 AS cor0
----
-368
3692
4647

query I rowsort
SELECT DISTINCT - - 59 * col2 + col2 + ( - col1 ) FROM tab2 AS cor0
----
1501
1589
2263

query I rowsort
SELECT ALL - + cor0.col2 * 72 + col1 AS col2 FROM tab2 AS cor0
----
-1813
-1913
-2719

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1302
SELECT ALL - CAST( - 90 AS SIGNED ) DIV cor0.col2 - + col2 FROM tab1 AS cor0
----
-53
-56
-96

skipif mysql # not compatible
query I rowsort label-1302
SELECT ALL - CAST ( - 90 AS INTEGER ) / cor0.col2 - + col2 FROM tab1 AS cor0
----
-53
-56
-96

query I rowsort
SELECT ALL - col1 + + 18 AS col2 FROM tab0 AS cor0
----
-68
-73
-79

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

query I rowsort
SELECT DISTINCT + + 87 + col1 AS col0 FROM tab0 AS cor0
----
173
178
184

query I rowsort
SELECT + ( 25 ) - col1 FROM tab1 AS cor0
----
-1
12
15

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

query I rowsort
SELECT DISTINCT - 58 + col2 * + col2 FROM tab2 cor0
----
1386
618
671

query I rowsort
SELECT ALL col1 - 18 * - cor0.col0 FROM tab2 AS cor0
----
1439
1463
157

query I rowsort
SELECT DISTINCT + - ( 80 ) + cor0.col1 AS col1 FROM tab0 AS cor0
----
11
17
6

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

query I rowsort
SELECT 11 * - col0 + col0 * + 51 AS col1 FROM tab1 AS cor0
----
120
2560
3200

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - CAST ( - 56 AS REAL ) FROM tab0 AS cor0
----
56

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

query I rowsort
SELECT - + col0 + - col2 * 7 AS col0 FROM tab1 cor0
----
-381
-463
-752

query I rowsort
SELECT - 66 * + col1 + - 62 + - col1 FROM tab1 AS cor0
----
-1804
-732
-933

query I rowsort
SELECT + 60 * - col0 + col2 AS col0 FROM tab2
----
-393
-4654
-4702

query I rowsort
SELECT - col1 - + 17 AS col1 FROM tab0
----
-103
-108
-114

query I rowsort
SELECT - 85 FROM tab0, tab1 AS cor0 CROSS JOIN tab0 cor1
----
27 values hashing to 91e44ead5e72fa22f87a57243e232ede

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( col2 * + col0 ) + 79 * - col1 col0 FROM tab1
----
-2216
-4438
-8707

query I rowsort
SELECT ALL + - col1 * - 7 + + col2 * col2 * - col1 AS col2 FROM tab1 AS cor0
----
-119717
-32420
-75634

query I rowsort
SELECT ALL - - cor0.col1 * col0 + 71 * - cor0.col2 FROM tab2 AS cor0
----
-1355
-1700
2756

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

skipif mysql # not compatible
query I rowsort label-1324
SELECT ALL col0 + CAST ( col2 AS INTEGER ) FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT DISTINCT + col2 + + col0 * 16 AS col1 FROM tab0 AS cor0
----
1506
417
561

query I rowsort
SELECT - col2 * - 17 FROM tab2 AS cor0
----
442
459
646

query I rowsort
SELECT DISTINCT col1 * 18 FROM tab2 cor0
----
1062
306
558

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1328
SELECT + - col2 * + col0 + - col2 + - CAST ( cor0.col2 * - col0 AS INTEGER ) col1 FROM tab0 AS cor0
----
-1
-33
-82

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

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

query I rowsort
SELECT ALL - 80 FROM tab1, tab2 AS cor0
----
9 values hashing to 4dde3bd5652d30396b9cadd0e2cfb680

query I rowsort
SELECT - + 54 * + col0 FROM tab1 AS cor0
----
-162
-3456
-4320

query I rowsort
SELECT col2 * - ( col2 ) + col2 AS col0 FROM tab0
----
-1056
-6642
0

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

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

query I rowsort
SELECT + 39 + + tab2.col1 FROM tab0, tab1, tab2 AS cor0, tab2
----
81 values hashing to 3dc9435116b40f51179b367b0dad7f1d

query I rowsort
SELECT + 92 * col0 + - col1 FROM tab2
----
613
7117
7251

query I rowsort
SELECT - 7 + cor0.col1 * - col2 FROM tab2 AS cor0
----
-1541
-653
-844

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

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

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

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

query I rowsort
SELECT ALL - + 48 FROM tab0 cor0
----
-48
-48
-48

query I rowsort
SELECT - 84 * - col0 * ( - col1 * + col0 ) FROM tab0
----
-4161024
-60548124
-9981300

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1343
SELECT + 98 * - col1 * + CAST( col1 AS SIGNED ) + + col0 FROM tab0
----
-724784
-811449
-922047

skipif mysql # not compatible
query I rowsort label-1343
SELECT + 98 * - col1 * + CAST ( col1 AS INTEGER ) + + col0 FROM tab0
----
-724784
-811449
-922047

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

query I rowsort
SELECT DISTINCT col0 * - col2 + ( - col1 ) + + tab0.col0 AS col0 FROM tab0
----
-7300
-854
-97

query I rowsort
SELECT ALL + - ( - col2 ) + + col0 * + col0 AS col1 FROM tab1 AS cor0
----
4153
63
6496

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

query I rowsort
SELECT ALL - ( - col0 ) + - 92 + col1 * - col2 AS col2 FROM tab0 AS cor0
----
-154
-2906
-7465

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

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

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

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

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

query I rowsort
SELECT DISTINCT - + col0 + 14 * 41 FROM tab2 AS cor0
----
495
496
567

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

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

query I rowsort
SELECT + col0 + col1 * + col1 * col2 FROM tab0 AS cor0
----
244092
679131
9444

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col0 + - col2 col0 FROM tab1 AS cor0
----
24
583
944

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1359
SELECT DISTINCT ( tab2.col2 ) * - col0 + - tab2.col0 * - col0 DIV - col0 AS col1 FROM tab2
----
-196
-2106
-3081

skipif mysql # not compatible
query I rowsort label-1359
SELECT DISTINCT ( tab2.col2 ) * - col0 + - tab2.col0 * - col0 / - col0 AS col1 FROM tab2
----
-196
-2106
-3081

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

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

query I rowsort
SELECT DISTINCT + col2 + col2 + col2 AS col1 FROM tab2
----
114
78
81

query I rowsort
SELECT ALL - ( + 58 ) * cor0.col0 AS col0 FROM tab1 AS cor0
----
-174
-3712
-4640

query I rowsort
SELECT ( 3 ) * + tab1.col2 FROM tab1
----
162
171
288

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

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

query I rowsort
SELECT col0 + col0 * 53 AS col0 FROM tab0 AS cor0
----
1296
1890
4806

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

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

query I rowsort
SELECT - 5 + col0 + cor0.col0 * col1 FROM tab0 AS cor0
----
2083
3425
8183

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

query I rowsort
SELECT DISTINCT - col1 + + col1 * 15 FROM tab2 AS cor0
----
238
434
826

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

query I rowsort
SELECT ALL + col1 - col1 * + 70 AS col1 FROM tab0 AS cor0
----
-5934
-6279
-6693

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1376
SELECT DISTINCT - - col1 DIV - col1 + col0 + cor0.col1 AS col1 FROM tab1 AS cor0
----
28
73
92

skipif mysql # not compatible
query I rowsort label-1376
SELECT DISTINCT - - col1 / - col1 + col0 + cor0.col1 AS col1 FROM tab1 AS cor0
----
28
73
92

query I rowsort
SELECT ALL - col0 + + 91 * + col0 * - col1 FROM tab2 AS cor0
----
-122292
-19754
-418860

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

skipif mysql # not compatible
query I rowsort label-1378
SELECT - CAST ( + 59 AS INTEGER ) - - cor0.col2 FROM tab2 AS cor0
----
-21
-32
-33

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

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

query I rowsort
SELECT + - col1 + 84 AS col2 FROM tab2 cor0
----
25
53
67

onlyif mysql # use DIV operator for integer division
query I rowsort label-1381
SELECT col0 DIV 9 col0 FROM tab0 AS cor0
----
2
3
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1381
SELECT col0 / 9 col0 FROM tab0 AS cor0
----
2
3
9

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

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1386
SELECT + CAST ( + 27 AS INTEGER ) * + col1 FROM tab2 AS cor0
----
1593
459
837

query I rowsort
SELECT DISTINCT - 59 + 85 AS col0 FROM tab1 AS cor0
----
26

query I rowsort
SELECT - - col0 * + col1 + ( col1 ) + col2 * + 10 AS col1 FROM tab2 cor0
----
1740
4921
518

query I rowsort
SELECT cor0.col1 - cor0.col0 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to c99cbeca6e6fdb3507b2e08470c1cda6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 92 + col2 * cor0.col0 col2 FROM tab2 AS cor0
----
2120
281
3094

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

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

query I rowsort
SELECT + 1 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

query I rowsort
SELECT ALL ( + 61 ) FROM tab1, tab1 AS cor0
----
9 values hashing to 07149905a72bd87553381f34d19ed290

query I rowsort
SELECT DISTINCT ( tab1.col1 ) + + tab1.col1 + + 46 FROM tab1, tab2 AS cor0
----
66
72
98

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

skipif mysql # not compatible
query I rowsort label-1395
SELECT + CAST ( NULL AS INTEGER ) * cor1.col2 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

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

query I rowsort
SELECT ALL + + col0 * - col1 + 65 AS col2 FROM tab2 AS cor0
----
-1278
-152
-4537

query I rowsort
SELECT ALL - - 70 * - col2 AS col2 FROM tab2 AS cor0
----
-1820
-1890
-2660

query I rowsort
SELECT 12 + + tab0.col1 FROM tab0
----
103
109
98

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1401
SELECT - tab1.col1 DIV - col0 FROM tab1
----
0
0
8

skipif mysql # not compatible
query I rowsort label-1401
SELECT - tab1.col1 / - col0 FROM tab1
----
0
0
8

query I rowsort
SELECT DISTINCT + col1 + 59 AS col0 FROM tab1
----
69
72
85

query I rowsort
SELECT ALL col0 + 19 * + col0 + col2 AS col2 FROM tab2
----
1586
1618
167

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1404
SELECT + col1 * + CAST( - 68 AS SIGNED ) + col2 AS col1 FROM tab0 AS cor0
----
-5815
-6106
-6595

skipif mysql # not compatible
query I rowsort label-1404
SELECT + col1 * + CAST ( - 68 AS INTEGER ) + col2 AS col1 FROM tab0 AS cor0
----
-5815
-6106
-6595

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

query I rowsort
SELECT DISTINCT - col1 * 47 * col1 + - cor0.col0 * col2 AS col1 FROM tab2 cor0
----
-165635
-16585
-45356

query I rowsort
SELECT ALL + col1 * 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 + col0 * ( + col1 ) + - col2 col1 FROM tab0 AS cor0
----
2031
3394
8017

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

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

query I rowsort
SELECT 1 AS col0 FROM tab0, tab2, tab0 AS cor0, tab1 AS cor1
----
81 values hashing to 2a004dce2d308bae163576f54ee1a3fc

query I rowsort
SELECT + 99 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db

query I rowsort
SELECT ALL - 96 AS col1 FROM tab2
----
-96
-96
-96

query I rowsort
SELECT - 57 + + col2 FROM tab2
----
-19
-30
-31

query I rowsort
SELECT DISTINCT 20 * + col0 AS col1 FROM tab2 AS cor0
----
140
1560
1580

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

skipif mysql # not compatible
query I rowsort label-1415
SELECT ALL + col0 / + 15 AS col1 FROM tab1 AS cor0
----
0
4
5

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

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

skipif mysql # not compatible
query I rowsort label-1417
SELECT ALL + + 23 / - col1 - col2 AS col0 FROM tab2 AS cor0
----
-26
-27
-39

query I rowsort
SELECT - - 8 + + 30 FROM tab1 AS cor0
----
38
38
38

query I rowsort
SELECT DISTINCT + + 75 * + col2 + col1 * + col1 AS col1 FROM tab1 AS cor0
----
4375
4726
7369

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + col2 * col1 col0 FROM tab2 AS cor0
----
1593
663
868

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

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

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

skipif mysql # not compatible
query I rowsort label-1422
SELECT DISTINCT - 51 * col1 / CAST ( NULL AS REAL ) AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL col0 + - col1 * + 0 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT ALL + col0 + + col0 * + col0 * + col1 AS col0 FROM tab0 cor0
----
118860
49560
720900

query I rowsort
SELECT DISTINCT + cor0.col2 * + col2 + 48 AS col1 FROM tab0 AS cor0
----
1137
49
6772

onlyif mysql # use DIV operator for integer division
query I rowsort label-1426
SELECT - - 7 DIV cor0.col1 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1426
SELECT - - 7 / cor0.col1 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - col2 * 76 + tab1.col2 FROM tab1
----
-4050
-4275
-7200

query I rowsort
SELECT - 60 - - 7 * col1 * - ( - col0 ) AS col0 FROM tab0
----
14388
23705
56633

query I rowsort
SELECT col1 - + 86 * - col0 FROM tab2
----
633
6767
6811

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

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

query I rowsort
SELECT + 5 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 6797d40099023779b89feb627d94a3e7

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

query I rowsort
SELECT ALL + 97 AS col0 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to c73fa6978df8525c99d6bc792bb27123

query I rowsort
SELECT 45 + col1 FROM tab1
----
55
58
71

query I rowsort
SELECT ALL - 53 AS col2 FROM tab0, tab1 cor0
----
9 values hashing to fee5c00ad71c23e23683a32c71fe6e7d

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

query I rowsort
SELECT + ( col0 ) + - 93 * + col1 AS col1 FROM tab2 AS cor0
----
-1502
-2876
-5409

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

skipif mysql # not compatible
query I rowsort label-1438
SELECT ALL + col0 * 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 46 + + col2 col2 FROM tab1 AS cor0
----
100
103
142

query I rowsort
SELECT ALL 3 + - 54 FROM tab1
----
-51
-51
-51

query I rowsort
SELECT + col0 * 79 + - col1 AS col2 FROM tab2 cor0
----
522
6103
6224

query I rowsort
SELECT col1 - - 62 AS col1 FROM tab1 cor0
----
72
75
88

onlyif mysql # use DIV operator for integer division
query I rowsort label-1443
SELECT DISTINCT - col1 + - ( col1 ) DIV col1 AS col1 FROM tab1
----
-11
-14
-27

skipif mysql # not compatible
query I rowsort label-1443
SELECT DISTINCT - col1 + - ( col1 ) / col1 AS col1 FROM tab1
----
-11
-14
-27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 - + 23 * + col0 col0 FROM tab0
----
-1965
-519
-804

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

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

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

query I rowsort
SELECT ALL + 97 + + col2 AS col1 FROM tab2 AS cor0
----
123
124
135

query I rowsort
SELECT - - 47 * 27 AS col1 FROM tab1 AS cor0
----
1269
1269
1269

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1450
SELECT - 35 DIV + 5 + col2 FROM tab2 cor0
----
19
20
31

skipif mysql # not compatible
query I rowsort label-1450
SELECT - 35 / + 5 + col2 FROM tab2 cor0
----
19
20
31

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1452
SELECT - ( col0 ) DIV col0 + + 52 AS col2 FROM tab2 AS cor0
----
51
51
51

skipif mysql # not compatible
query I rowsort label-1452
SELECT - ( col0 ) / col0 + + 52 AS col2 FROM tab2 AS cor0
----
51
51
51

query I rowsort
SELECT DISTINCT - col2 + + 75 AS col2 FROM tab2
----
37
48
49

query I rowsort
SELECT DISTINCT + tab0.col0 + col0 * col1 * col1 + 75 AS col1 FROM tab0
----
177603
329425
737173

query I rowsort
SELECT DISTINCT - col1 + - 97 AS col2 FROM tab1
----
-107
-110
-123

query I rowsort
SELECT ALL + - 88 * ( + col1 + col0 ) AS col1 FROM tab1 AS cor0
----
-2552
-6512
-8184

onlyif mysql # use DIV operator for integer division
query I rowsort label-1457
SELECT ( + cor0.col1 ) + col2 DIV ( - 92 ) AS col2 FROM tab1 AS cor0
----
10
12
26

skipif mysql # not compatible
query I rowsort label-1457
SELECT ( + cor0.col1 ) + col2 / ( - 92 ) AS col2 FROM tab1 AS cor0
----
10
12
26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1458
SELECT DISTINCT CAST( + 92 AS SIGNED ) + cor0.col2 FROM tab0 AS cor0
----
125
174
93

skipif mysql # not compatible
query I rowsort label-1458
SELECT DISTINCT CAST ( + 92 AS INTEGER ) + cor0.col2 FROM tab0 AS cor0
----
125
174
93

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col2 * col0 col2 FROM tab0 AS cor0
----
70
7387
816

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

query I rowsort
SELECT - ( ( col1 ) ) * - 68 + 65 AS col2 FROM tab1 AS cor0
----
1833
745
949

query I rowsort
SELECT + - col0 + col0 * col1 * col0 AS col0 FROM tab0 AS cor0
----
118790
49512
720722

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * + col2 + + cor0.col0 col1 FROM tab0 AS cor0
----
-1065
-6635
34

query I rowsort
SELECT ALL col2 - col0 * - col2 AS col1 FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT + col1 * - col2 * + col1 + col1 + col2 AS col2 FROM tab1 cor0
----
-16115
-36424
-5633

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

query I rowsort
SELECT + cor0.col0 + - col1 * col0 * cor0.col0 FROM tab2 AS cor0
----
-106018
-1512
-358878

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

query I rowsort
SELECT + col0 + - col0 * - cor0.col2 * col1 FROM tab2 AS cor0
----
119730
51113
5866

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1474
SELECT ALL - CAST( - 78 AS SIGNED ) * + col2 AS col1 FROM tab2
----
2028
2106
2964

skipif mysql # not compatible
query I rowsort label-1474
SELECT ALL - CAST ( - 78 AS INTEGER ) * + col2 AS col1 FROM tab2
----
2028
2106
2964

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + col0 col1 FROM tab2 WHERE col0 / col0 >= ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + tab2.col2 + col2 col2 FROM tab2
----
1560
684
864

query I rowsort
SELECT DISTINCT - tab1.col2 + - col0 * col0 * col2 FROM tab1
----
-233529
-540
-614496

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL >= - col0
----

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

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

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

query I rowsort
SELECT ALL + col1 * tab1.col1 + col0 * + col2 AS col0 FROM tab1
----
3748
7849
838

query I rowsort
SELECT ALL + col2 - + col1 * + tab1.col0 FROM tab1 WHERE NOT NULL <= col1
----

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

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

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

query I rowsort
SELECT DISTINCT - col1 + + col2 * + col0 FROM tab0
----
-62
706
7207

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

query I rowsort
SELECT + col1 + + cor0.col2 * - col2 * col2 AS col2 FROM tab2 AS cor0
----
-17517
-19652
-54855

query I rowsort
SELECT ALL + col2 - col1 * - cor0.col0 * col0 AS col1 FROM tab1 cor0
----
288
41017
83296

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

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

query I rowsort
SELECT + col1 * + col2 * col1 + col2 FROM tab2 AS cor0
----
11020
25974
90532

query I rowsort
SELECT ALL - 50 * + 82 + col0 FROM tab2 cor0
----
-4021
-4022
-4093

query I rowsort
SELECT DISTINCT + + col0 + + cor0.col0 * + col0 + col2 FROM tab2 AS cor0
----
6188
6358
83

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1502
SELECT ALL + + col1 + col0 * col1 + cor0.col0 DIV col0 AS col2 FROM tab1 AS cor0
----
105
1054
651

skipif mysql # not compatible
query I rowsort label-1502
SELECT ALL + + col1 + col0 * col1 + cor0.col0 / col0 AS col2 FROM tab1 AS cor0
----
105
1054
651

query I rowsort
SELECT ALL 12 AS col2 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 702478c53caf2f7ebb9fff96d800f5a6

query I rowsort
SELECT DISTINCT - col1 * - ( + col2 * col1 ) + col0 AS col2 FROM tab1
----
16304
36507
5764

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1505
SELECT col1 + CAST( col0 * col2 AS SIGNED ) FROM tab1
----
188
3658
7693

skipif mysql # not compatible
query I rowsort label-1505
SELECT col1 + CAST ( col0 * col2 AS INTEGER ) FROM tab1
----
188
3658
7693

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + ( 84 ) + + col0 col1 FROM tab0
----
2040
2975
7565

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

query I rowsort
SELECT DISTINCT col0 * 52 * tab0.col2 + - col1 FROM tab0
----
1723
379405
41098

query I rowsort
SELECT - col2 + + 96 AS col2 FROM tab1
----
0
39
42

query I rowsort
SELECT 26 * ( - col2 ) + col1 FROM tab0
----
-2041
-772
71

query I rowsort
SELECT cor0.col2 AS col2 FROM tab2, tab0 AS cor0, tab0, tab2 AS cor1
----
81 values hashing to e938777ebffc2e3e9c0cdfaa4f732c05

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

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

skipif mysql # not compatible
query I rowsort label-1513
SELECT ALL + - CAST ( + col2 AS INTEGER ) FROM tab0 AS cor0
----
-1
-33
-82

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

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

skipif mysql # not compatible
query I rowsort label-1515
SELECT - CAST ( col1 AS INTEGER ) AS col1 FROM tab0
----
-86
-91
-97

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 4 + col0 * col0 col1 FROM tab1
----
4092
5
6396

query I rowsort
SELECT ALL 8 * 53 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 6bd8848196b850a65a8954e0a58595c1

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

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

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1522
SELECT ALL - cor0.col1 * CAST( 35 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-3010
-3185
-3395

skipif mysql # not compatible
query I rowsort label-1522
SELECT ALL - cor0.col1 * CAST ( 35 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-3010
-3185
-3395

query I rowsort
SELECT col1 * + col0 + + col1 * + tab0.col1 AS col2 FROM tab0
----
12804
16380
9460

onlyif mysql # use DIV operator for integer division
query I rowsort label-1524
SELECT + col2 DIV + 51 + col2 + tab2.col2 AS col2 FROM tab2
----
52
54
76

skipif mysql # not compatible
query I rowsort label-1524
SELECT + col2 / + 51 + col2 + tab2.col2 AS col2 FROM tab2
----
52
54
76

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

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

query I rowsort
SELECT + - col2 + col0 + + ( col0 * col0 + col1 ) AS col2 FROM tab2 AS cor0
----
60
6195
6299

query I rowsort
SELECT ALL 30 + - 16 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 83e5779d2487d12495e7d816c797264f

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

query I rowsort
SELECT + 53 FROM tab0, tab0 cor0, tab2 AS cor1
----
27 values hashing to 866ae1b4ab9e5b4043ac1bcfd413aaa6

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

skipif mysql # not compatible
query I rowsort
SELECT ALL + col2 * - CAST ( + col1 AS REAL ) + + col2 FROM tab0 AS cor0
----
-2805
-7380
-96

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

query I rowsort
SELECT col2 * - 24 FROM tab1
----
-1296
-1368
-2304

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1537
SELECT DISTINCT col2 + - CAST( + 7 AS SIGNED ) col2 FROM tab0 AS cor0
----
-6
26
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1537
SELECT DISTINCT col2 + - CAST ( + 7 AS INTEGER ) col2 FROM tab0 AS cor0
----
-6
26
75

query I rowsort
SELECT - col0 + - 68 * col2 FROM tab1 AS cor0
----
-3675
-3940
-6608

onlyif mysql # use DIV operator for integer division
query I rowsort label-1539
SELECT + col2 * 86 + cor0.col1 + + col0 DIV col2 FROM tab1 AS cor0
----
4670
4913
8269

skipif mysql # not compatible
query I rowsort label-1539
SELECT + col2 * 86 + cor0.col1 + + col0 / col2 FROM tab1 AS cor0
----
4670
4913
8269

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

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

skipif mysql # not compatible
query I rowsort
SELECT - CAST ( 79 AS REAL ) + + col0 FROM tab0 AS cor0
----
-44
-55
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 99 * - 42 * + col1 col2 FROM tab2 cor0
----
128898
245322
70686

query I rowsort
SELECT - 3 * col2 + + col1 * - col2 + - col0 FROM tab2 AS cor0
----
-1690
-839
-925

query I rowsort
SELECT DISTINCT 39 * col0 FROM tab0 AS cor0
----
1365
3471
936

onlyif mysql # use DIV operator for integer division
query I rowsort label-1545
SELECT - col2 * col0 DIV CAST( - col1 AS SIGNED ) col0 FROM tab1 AS cor0
----
364
590
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1545
SELECT - col2 * col0 / CAST ( - col1 AS INTEGER ) col0 FROM tab1 AS cor0
----
364
590
6

query I rowsort
SELECT ALL 13 + - col2 FROM tab2
----
-13
-14
-25

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1547
SELECT DISTINCT + 54 * + col1 + CAST( + 50 AS SIGNED ) FROM tab2
----
1724
3236
968

skipif mysql # not compatible
query I rowsort label-1547
SELECT DISTINCT + 54 * + col1 + CAST ( + 50 AS INTEGER ) FROM tab2
----
1724
3236
968

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

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

query I rowsort
SELECT - 85 * + col0 FROM tab0 cor0
----
-2040
-2975
-7565

query I rowsort
SELECT ALL - 30 * - col1 FROM tab2 AS cor0
----
1770
510
930

query I rowsort
SELECT DISTINCT + - 73 * col0 + + ( - col2 * - col1 ) FROM tab1 cor0
----
-4102
-4592
1185

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

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

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

query I rowsort
SELECT col1 * - col2 * - col1 AS col0 FROM tab0 AS cor0
----
244068
679042
9409

query I rowsort
SELECT + col0 + tab0.col0 + tab0.col0 AS col2 FROM tab0
----
105
267
72

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1559
SELECT 17 DIV col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1559
SELECT 17 / col1 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT 21 + tab2.col0 AS col2 FROM tab2
----
100
28
99

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1564
SELECT DISTINCT col2 * tab2.col2 DIV 51 AS col2 FROM tab2
----
13
14
28

skipif mysql # not compatible
query I rowsort label-1564
SELECT DISTINCT col2 * tab2.col2 / 51 AS col2 FROM tab2
----
13
14
28

query I rowsort
SELECT + col0 * - 89 AS col2 FROM tab1 AS cor0
----
-267
-5696
-7120

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

skipif mysql # not compatible
query I rowsort label-1566
SELECT - col2 / - 46 AS col1 FROM tab2 cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 + ( col1 ) * col0 * 36 + col1 col2 FROM tab2 AS cor0
----
165809
48444
7850

query I rowsort
SELECT col1 + 71 FROM tab0 AS cor0
----
157
162
168

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

skipif mysql # not compatible
query I rowsort label-1569
SELECT cor0.col1 / - cor0.col1 AS col0 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 84da757b1b7b0069ce25607f39bc08d9

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

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

query I rowsort
SELECT tab1.col1 + 14 + + cor0.col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 02eef7b8c321b33a24e8334fc53319d2

query I rowsort
SELECT - 94 * - 65 + col2 FROM tab2 AS cor0
----
6136
6137
6148

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1575
SELECT col2 * CAST( 24 AS SIGNED ) * col1 + + 73 * + col0 AS col2 FROM tab2
----
20599
21271
42510

skipif mysql # not compatible
query I rowsort label-1575
SELECT col2 * CAST ( 24 AS INTEGER ) * col1 + + 73 * + col0 AS col2 FROM tab2
----
20599
21271
42510

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

skipif mysql # not compatible
query I rowsort
SELECT - + CAST ( 54 AS REAL ) + col0 FROM tab1 AS cor0
----
-51
10
26

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

query I rowsort
SELECT DISTINCT - ( 70 ) FROM tab1 AS cor0
----
-70

query I rowsort
SELECT ALL 30 + - 7 * col0 AS col1 FROM tab2 AS cor0
----
-19
-516
-523

query I rowsort
SELECT ( + 1 ) + - cor0.col2 AS col0 FROM tab0 cor0
----
-32
-81
0

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

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

query I rowsort
SELECT - ( + 80 ) FROM tab1
----
-80
-80
-80

query I rowsort
SELECT DISTINCT - + 45 + - cor0.col1 + + 18 FROM tab1 AS cor0
----
-37
-40
-53

query I rowsort
SELECT + col0 + col2 * col1 + 8 FROM tab1 AS cor0
----
1336
1415
642

query I rowsort
SELECT ALL + + col1 * col1 + ( - col2 + - col0 ) * - col2 AS col0 FROM tab0 AS cor0
----
22303
9277
9445

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

query I rowsort
SELECT DISTINCT + 42 * col1 + col2 * + ( - col1 ) AS col0 FROM tab1 AS cor0
----
-150
-312
-702

query I rowsort
SELECT DISTINCT 13 + - col0 + col0 AS col0 FROM tab0
----
13

onlyif mysql # use DIV operator for integer division
query I rowsort label-1591
SELECT tab0.col1 + 28 + tab0.col2 DIV + ( - col0 * + col2 ) FROM tab0
----
114
119
125

skipif mysql # not compatible
query I rowsort label-1591
SELECT tab0.col1 + 28 + tab0.col2 / + ( - col0 * + col2 ) FROM tab0
----
114
119
125

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1593
SELECT DISTINCT CAST( + 22 AS SIGNED ) * + col2 + ( col0 ) FROM tab0
----
1893
57
750

skipif mysql # not compatible
query I rowsort label-1593
SELECT DISTINCT CAST ( + 22 AS INTEGER ) * + col2 + ( col0 ) FROM tab0
----
1893
57
750

onlyif mysql # use DIV operator for integer division
query I rowsort label-1594
SELECT col0 * 64 DIV col1 - - col1 FROM tab0
----
103
120
153

skipif mysql # not compatible
query I rowsort label-1594
SELECT col0 * 64 / col1 - - col1 FROM tab0
----
103
120
153

query I rowsort
SELECT 91 * cor0.col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1fc445c6fb70ae097efd8764ee35f76d

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

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

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

query I rowsort
SELECT - + 68 * col1 FROM tab1 cor0
----
-1768
-680
-884

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1602
SELECT cor0.col2 + 80 DIV + col1 col2 FROM tab0 AS cor0
----
1
33
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1602
SELECT cor0.col2 + 80 / + col1 col2 FROM tab0 AS cor0
----
1
33
82

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

query I rowsort
SELECT + col2 * + col2 + + col1 * + col1 * 57 AS col0 FROM tab1 AS cor0
----
18849
41448
8949

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

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

skipif mysql # not compatible
query I rowsort label-1606
SELECT DISTINCT CAST ( col2 AS INTEGER ) * col1 + col1 AS col1 FROM tab1
----
1261
1430
580

query I rowsort
SELECT - col1 - 18 AS col0 FROM tab1
----
-28
-31
-44

query I rowsort
SELECT 43 * - 60 AS col0 FROM tab1 AS cor0
----
-2580
-2580
-2580

query I rowsort
SELECT DISTINCT - ( col2 ) * + col2 + ( - col0 ) FROM tab1 cor0
----
-2919
-3313
-9296

query I rowsort
SELECT + col0 * ( + col2 ) - 35 * + 64 FROM tab0 cor0
----
-1448
-2205
5058

query I rowsort
SELECT ALL + 41 AS col0 FROM tab0, tab2 AS cor0, tab1, tab0 AS cor1
----
81 values hashing to 0733f496a5445ffeac9d19797afe4831

onlyif mysql # use DIV operator for integer division
query I rowsort label-1612
SELECT ALL - cor0.col0 * + cor0.col1 + + col1 DIV 43 AS col1 FROM tab0 AS cor0
----
-2062
-3393
-8097

skipif mysql # not compatible
query I rowsort label-1612
SELECT ALL - cor0.col0 * + cor0.col1 + + col1 / 43 AS col1 FROM tab0 AS cor0
----
-2062
-3393
-8097

onlyif mysql # use DIV operator for integer division
query I rowsort label-1613
SELECT - + col0 * col0 + col1 DIV + 98 FROM tab1 AS cor0
----
-4096
-6400
-9

skipif mysql # not compatible
query I rowsort label-1613
SELECT - + col0 * col0 + col1 / + 98 FROM tab1 AS cor0
----
-4096
-6400
-9

query I rowsort
SELECT - 76 + col2 * + col2 AS col1 FROM tab0 cor0
----
-75
1013
6648

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

query I rowsort
SELECT + col2 * + col2 + col1 * + col0 AS col1 FROM tab2 AS cor0
----
2787
5278
946

query I rowsort
SELECT cor0.col2 + - 17 * 99 FROM tab0 AS cor0
----
-1601
-1650
-1682

query I rowsort
SELECT DISTINCT + - col1 * - 58 + + col2 AS col2 FROM tab2 AS cor0
----
1024
1825
3448

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1620
SELECT ALL col2 * 43 DIV col1 AS col2 FROM tab0 AS cor0
----
0
16
38

skipif mysql # not compatible
query I rowsort label-1620
SELECT ALL col2 * 43 / col1 AS col2 FROM tab0 AS cor0
----
0
16
38

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

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

query I rowsort
SELECT DISTINCT + - cor0.col1 * + cor0.col2 + - 51 FROM tab0 AS cor0
----
-148
-2889
-7513

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1623
SELECT ALL - col1 / - 4 col2 FROM tab1 AS cor0
----
2
3
6

query I rowsort
SELECT DISTINCT col2 * - 10 AS col0 FROM tab1 AS cor0
----
-540
-570
-960

onlyif mysql # use DIV operator for integer division
query I rowsort label-1625
SELECT DISTINCT - - col2 + col0 DIV col0 FROM tab2 AS cor0
----
27
28
39

skipif mysql # not compatible
query I rowsort label-1625
SELECT DISTINCT - - col2 + col0 / col0 FROM tab2 AS cor0
----
27
28
39

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

query I rowsort
SELECT + + col1 * - 14 * - 99 + - col1 FROM tab2 AS cor0
----
23545
42935
81715

query I rowsort
SELECT ( tab1.col1 ) + - 86 FROM tab1
----
-60
-73
-76

onlyif mysql # use DIV operator for integer division
query I rowsort label-1629
SELECT DISTINCT + col0 DIV 27 - - col1 * + cor0.col1 FROM tab0 AS cor0
----
7396
8284
9410

skipif mysql # not compatible
query I rowsort label-1629
SELECT DISTINCT + col0 / 27 - - col1 * + cor0.col1 FROM tab0 AS cor0
----
7396
8284
9410

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1630
SELECT ALL + col0 * CAST( 61 AS SIGNED ) + cor0.col0 * 91 FROM tab2 AS cor0
----
1064
11856
12008

skipif mysql # not compatible
query I rowsort label-1630
SELECT ALL + col0 * CAST ( 61 AS INTEGER ) + cor0.col0 * 91 FROM tab2 AS cor0
----
1064
11856
12008

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

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

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

query I rowsort
SELECT + ( col2 ) * col2 * 97 FROM tab0 AS cor0
----
105633
652228
97

query I rowsort
SELECT + cor1.col2 + 83 * + cor0.col2 + + cor0.col1 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 30a1630bfc6760f984a62d04caf6b241

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

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

query I rowsort
SELECT ALL + 59 * - col2 + + ( - col0 ) - + col2 FROM tab2 AS cor0
----
-1627
-1638
-2359

onlyif mysql # use DIV operator for integer division
query I rowsort label-1638
SELECT DISTINCT + ( - col0 ) DIV + col1 + + col2 AS col0 FROM tab1 AS cor0
----
51
54
90

skipif mysql # not compatible
query I rowsort label-1638
SELECT DISTINCT + ( - col0 ) / + col1 + + col2 AS col0 FROM tab1 AS cor0
----
51
54
90

onlyif mysql # use DIV operator for integer division
query I rowsort label-1639
SELECT col0 - - col0 DIV - col2 FROM tab1
----
3
63
80

skipif mysql # not compatible
query I rowsort label-1639
SELECT col0 - - col0 / - col2 FROM tab1
----
3
63
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-1640
SELECT DISTINCT - col0 DIV + tab1.col1 + col0 AS col0 FROM tab1
----
3
58
74

skipif mysql # not compatible
query I rowsort label-1640
SELECT DISTINCT - col0 / + tab1.col1 + col0 AS col0 FROM tab1
----
3
58
74

query I rowsort
SELECT col0 - tab1.col1 * + col0 * - tab1.col0 FROM tab1
----
237
41024
83280

query I rowsort
SELECT col2 + tab2.col1 * + col1 + tab2.col0 FROM tab2
----
3585
406
995

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

query I rowsort
SELECT DISTINCT + tab1.col2 * col2 + - col1 + col2 FROM tab1
----
2944
3296
9299

onlyif mysql # use DIV operator for integer division
query I rowsort label-1645
SELECT - col1 * col2 DIV 91 FROM tab1
----
-13
-15
-6

skipif mysql # not compatible
query I rowsort label-1645
SELECT - col1 * col2 / 91 FROM tab1
----
-13
-15
-6

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

query I rowsort
SELECT ALL 39 + - col1 FROM tab2
----
-20
22
8

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

query I rowsort
SELECT 56 + col1 * - cor0.col0 FROM tab2 AS cor0
----
-1287
-161
-4546

query I rowsort
SELECT - ( col1 ) + - col1 - 29 AS col1 FROM tab2 AS cor0
----
-147
-63
-91

skipif mysql # not compatible
query I rowsort
SELECT col2 + + col1 + CAST ( col0 AS REAL ) / + col0 FROM tab2
----
56
59
86

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

query I rowsort
SELECT + cor0.col1 * + 61 FROM tab0, tab0 AS cor0
----
9 values hashing to ed0672ef97c138fe27694d55a920f8e8

query I rowsort
SELECT - col2 + - 35 AS col0 FROM tab2 AS cor0
----
-61
-62
-73

query I rowsort
SELECT - ( col0 ) * + 75 FROM tab1 AS cor0
----
-225
-4800
-6000

query I rowsort
SELECT DISTINCT + - col0 * - col2 * ( - col2 ) + cor0.col1 + col1 * col0 AS col1 FROM tab0 AS cor0
----
-23986
-590246
3457

query I rowsort
SELECT DISTINCT + col2 + + col1 * - 38 FROM tab0 AS cor0
----
-3235
-3376
-3685

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

query I rowsort
SELECT ALL + 63 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 38764a6e696d1a6b5095e29ef84959c0

query I rowsort
SELECT + col1 + col2 - - 64 * col1 FROM tab1 AS cor0
----
1744
707
941

query I rowsort
SELECT 51 AS col0 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 02a7de94365b8cb5b5cb92c4b1d1e7c5

query I rowsort
SELECT ALL - + 12 * - cor0.col2 FROM tab2 AS cor0
----
312
324
456

query I rowsort
SELECT 15 * col0 + + cor0.col0 FROM tab0 cor0
----
1424
384
560

query I rowsort
SELECT DISTINCT col0 - 22 FROM tab0 AS cor0
----
13
2
67

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

query I rowsort
SELECT DISTINCT - 92 * - 79 * - col1 AS col0 FROM tab2 AS cor0
----
-123556
-225308
-428812

query I rowsort
SELECT DISTINCT + - 75 * - ( + col2 * - 21 ) FROM tab0 AS cor0
----
-129150
-1575
-51975

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1670
SELECT - col0 + - cor0.col1 DIV - col0 col1 FROM tab0 AS cor0
----
-21
-33
-88

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1670
SELECT - col0 + - cor0.col1 / - col0 col1 FROM tab0 AS cor0
----
-21
-33
-88

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

query I rowsort
SELECT 15 + + col1 * - col0 AS col0 FROM tab1 cor0
----
-1025
-625
-63

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

query I rowsort
SELECT - 91 + + col2 AS col0 FROM tab2 AS cor0
----
-53
-64
-65

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

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

query I rowsort
SELECT ALL 37 FROM tab2, tab0 AS cor0
----
9 values hashing to a10b03e72860b949bdff53827700a9a8

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

query I rowsort
SELECT - 88 * col0 AS col2 FROM tab0 AS cor0
----
-2112
-3080
-7832

query I rowsort
SELECT 8 + - col2 AS col1 FROM tab0
----
-25
-74
7

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

query I rowsort
SELECT ( 54 ) AS col0 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 81150d59d6c3fc48b4ef5a4a5495bc7a

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 80 * 96 col0 FROM tab0 cor0
----
7680
7680
7680

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

query I rowsort
SELECT ALL 57 + col2 AS col1 FROM tab0 AS cor0
----
139
58
90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1685
SELECT 60 + + cor0.col0 * CAST( NULL AS SIGNED ) FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-1685
SELECT 60 + + cor0.col0 * CAST ( NULL AS INTEGER ) FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 42 * col2 col2 FROM tab1 AS cor0
----
2268
2394
4032

query I rowsort
SELECT DISTINCT - 46 FROM tab0 cor0
----
-46

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1688
SELECT - 18 * col1 * CAST( - 40 AS SIGNED ) AS col0 FROM tab1
----
18720
7200
9360

skipif mysql # not compatible
query I rowsort label-1688
SELECT - 18 * col1 * CAST ( - 40 AS INTEGER ) AS col0 FROM tab1
----
18720
7200
9360

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

skipif mysql # not compatible
query I rowsort label-1689
SELECT - 17 + + col2 / col1 AS col2 FROM tab0 AS cor0
----
-17
-17
-17

query I rowsort
SELECT - + col1 + - col2 + - col0 * col0 AS col2 FROM tab1 AS cor0
----
-4163
-6509
-89

onlyif mysql # use DIV operator for integer division
query I rowsort label-1691
SELECT + + col2 * col1 DIV + CAST( 33 AS SIGNED ) + col2 AS col2 FROM tab0 AS cor0
----
119
3
308

skipif mysql # not compatible
query I rowsort label-1691
SELECT + + col2 * col1 / + CAST ( 33 AS INTEGER ) + col2 AS col2 FROM tab0 AS cor0
----
119
3
308

query I rowsort
SELECT + col2 + 27 * 10 FROM tab1 AS cor0
----
324
327
366

onlyif mysql # use DIV operator for integer division
query I rowsort label-1693
SELECT + - col0 * ( 22 ) DIV col2 + + cor0.col0 AS col2 FROM tab1 AS cor0
----
2
40
62

skipif mysql # not compatible
query I rowsort label-1693
SELECT + - col0 * ( 22 ) / col2 + + cor0.col0 AS col2 FROM tab1 AS cor0
----
2
40
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-1694
SELECT + - col0 * 19 + col2 DIV col0 AS col1 FROM tab1 AS cor0
----
-1216
-1519
-39

skipif mysql # not compatible
query I rowsort label-1694
SELECT + - col0 * 19 + col2 / col0 AS col1 FROM tab1 AS cor0
----
-1216
-1519
-39

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

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

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

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

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

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

query I rowsort
SELECT 17 + - col1 FROM tab0
----
-69
-74
-80

query I rowsort
SELECT DISTINCT + col0 + col1 * 40 AS col1 FROM tab1 AS cor0
----
1043
464
600

query I rowsort
SELECT ALL col1 + col2 + + 2 FROM tab0 AS cor0
----
100
121
175

query I rowsort
SELECT DISTINCT tab2.col0 + - 31 * - col2 AS col2 FROM tab2
----
1257
844
884

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

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

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

query I rowsort
SELECT DISTINCT + tab1.col2 + 81 FROM tab1, tab0 AS cor0
----
135
138
177

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

query I rowsort
SELECT DISTINCT col1 * 55 + col0 FROM tab0 AS cor0
----
4754
5094
5370

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

query I rowsort
SELECT DISTINCT + col2 + - cor0.col1 * cor0.col0 * cor0.col0 + - 43 AS col0 FROM tab2 AS cor0
----
-106102
-1535
-358973

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 72 * cor0.col1 col2 FROM tab1 AS cor0
----
-1872
-720
-936

query I rowsort
SELECT - ( - col0 ) + + col1 + + 20 AS col2 FROM tab1 AS cor0
----
113
49
94

query I rowsort
SELECT + 26 * - ( + col0 * 76 ) AS col0 FROM tab2 AS cor0
----
-13832
-154128
-156104

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

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

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

query I rowsort
SELECT ALL - 4 * - 58 + col1 FROM tab1 AS cor0
----
242
245
258

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

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

query I rowsort
SELECT + - 18 + col1 * - col0 FROM tab1 AS cor0
----
-1058
-658
-96

query I rowsort
SELECT ALL ( 73 ) FROM tab2 AS cor0
----
73
73
73

query I rowsort
SELECT tab1.col2 + 27 - + col0 FROM tab1
----
20
43
78

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1724
SELECT ALL + tab2.col2 * - CAST( NULL AS SIGNED ) * - col1 + tab2.col2 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1724
SELECT ALL + tab2.col2 * - CAST ( NULL AS INTEGER ) * - col1 + tab2.col2 AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 78 AS col0 FROM tab0, tab0 AS cor0
----
78

query I rowsort
SELECT + col0 * 44 + 52 FROM tab1
----
184
2868
3572

query I rowsort
SELECT ALL col1 + col1 + + col2 AS col0 FROM tab0
----
195
205
264

query I rowsort
SELECT ALL + col0 + col1 * tab1.col0 * col1 FROM tab1
----
13600
2031
6464

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + col2 col2 FROM tab2
----
52
54
76

onlyif mysql # use DIV operator for integer division
query I rowsort label-1730
SELECT ALL - col0 + cor0.col1 DIV cor0.col0 FROM tab2 AS cor0
----
-3
-78
-79

skipif mysql # not compatible
query I rowsort label-1730
SELECT ALL - col0 + cor0.col1 / cor0.col0 FROM tab2 AS cor0
----
-3
-78
-79

query I rowsort
SELECT - + col2 + + cor0.col1 * 15 FROM tab0 cor0
----
1257
1283
1454

query I rowsort
SELECT DISTINCT - cor0.col2 - - cor0.col1 FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT DISTINCT - col2 * + col1 * ( ( col0 ) ) AS col2 FROM tab0 AS cor0
----
-3395
-664118
-68112

query I rowsort
SELECT + col2 + col2 * + 25 AS col0 FROM tab2 AS cor0
----
676
702
988

onlyif mysql # use DIV operator for integer division
query I rowsort label-1735
SELECT DISTINCT - + col2 * col1 DIV - ( col2 ) FROM tab1 cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-1735
SELECT DISTINCT - + col2 * col1 / - ( col2 ) FROM tab1 cor0
----
10
13
26

query I rowsort
SELECT ALL - 37 * + col1 + + col2 * ( col2 + col2 ) FROM tab2 AS cor0
----
-831
2259
311

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 72 col1 FROM tab1
----
-72

query I rowsort
SELECT DISTINCT ( + 93 ) FROM tab1
----
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + ( - col1 ) ) + + col1 col1 FROM tab1
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-1740
SELECT + ( col0 ) DIV + tab2.col1 AS col1 FROM tab2
----
0
1
4

skipif mysql # not compatible
query I rowsort label-1740
SELECT + ( col0 ) / + tab2.col1 AS col1 FROM tab2
----
0
1
4

query I rowsort
SELECT - 27 + + col1 FROM tab2
----
-10
32
4

query I rowsort
SELECT DISTINCT 40 AS col1 FROM tab2, tab1 AS cor0
----
40

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1743
SELECT col0 - cor0.col0 * col0 / - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1743
SELECT col0 - cor0.col0 * col0 / - CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 12 AS col0 FROM tab0, tab1 AS cor0
----
12

query I rowsort
SELECT ALL cor0.col0 AS col2 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT - ( + 3 ) * col0 FROM tab2
----
-21
-234
-237

query I rowsort
SELECT DISTINCT ( col2 ) + + col0 + + ( + col0 * + tab1.col0 ) AS col0 FROM tab1
----
4217
6576
66

query I rowsort
SELECT DISTINCT + 11 AS col0 FROM tab0 cor0
----
11

query I rowsort
SELECT + cor2.col0 FROM tab0, tab1 cor0, tab2 AS cor1, tab1 AS cor2
----
81 values hashing to e28bf7f922650ca423ade3642ce0285b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 + - col2 col1 FROM tab2 AS cor0
----
-104
-117
-34

onlyif mysql # use DIV operator for integer division
query I rowsort label-1751
SELECT DISTINCT 85 DIV col1 - ( + col0 ) * col0 FROM tab2 AS cor0
----
-47
-6083
-6236

skipif mysql # not compatible
query I rowsort label-1751
SELECT DISTINCT 85 / col1 - ( + col0 ) * col0 FROM tab2 AS cor0
----
-47
-6083
-6236

query I rowsort
SELECT 41 + + col1 FROM tab2 AS cor0
----
100
58
72

query I rowsort
SELECT DISTINCT ( - col0 ) * - 2 FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT + ( + cor0.col0 ) + + col0 FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT col0 * + col1 + - col0 AS col0 FROM tab2 AS cor0
----
1264
210
4524

query I rowsort
SELECT ( col1 ) + col0 FROM tab2 cor0
----
137
38
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-1757
SELECT ALL + + col2 + col2 DIV col0 AS col0 FROM tab0 AS cor0
----
1
34
82

skipif mysql # not compatible
query I rowsort label-1757
SELECT ALL + + col2 + col2 / col0 AS col0 FROM tab0 AS cor0
----
1
34
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + col0 col1 FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT + - 20 - + col0 FROM tab2 cor0
----
-27
-98
-99

query I rowsort
SELECT + - col1 * cor0.col2 * + cor0.col1 AS col1 FROM tab1 AS cor0
----
-16224
-36504
-5700

query I rowsort
SELECT ALL 98 + - col1 + col1 * 42 AS col0 FROM tab2
----
1369
2517
795

query I rowsort
SELECT + col2 * + col2 + + 27 FROM tab2 AS cor0
----
1471
703
756

query I rowsort
SELECT ALL + - col1 + - col2 * col0 FROM tab0 AS cor0
----
-132
-7389
-878

onlyif mysql # use DIV operator for integer division
query I rowsort label-1764
SELECT + col1 DIV - cor0.col0 AS col2 FROM tab1 AS cor0
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-1764
SELECT + col1 / - cor0.col0 AS col2 FROM tab1 AS cor0
----
-8
0
0

query I rowsort
SELECT DISTINCT - col1 + ( cor0.col0 ) FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT DISTINCT + - cor0.col1 + + col1 * - col1 FROM tab1 AS cor0
----
-110
-182
-702

query I rowsort
SELECT ALL - + cor0.col0 * col2 AS col1 FROM tab1 AS cor0
----
-162
-3648
-7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 * ( 50 * - col1 ) col1 FROM tab2 AS cor0
----
10850
230100
67150

onlyif mysql # use DIV operator for integer division
query I rowsort label-1769
SELECT ALL - col1 DIV + col2 + col1 FROM tab1 AS cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-1769
SELECT ALL - col1 / + col2 + col1 FROM tab1 AS cor0
----
10
13
26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1770
SELECT - CAST( NULL AS DECIMAL ) * col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1770
SELECT - CAST ( NULL AS REAL ) * col2 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT cor0.col0 + col0 * col2 AS col0 FROM tab1 AS cor0
----
165
3712
7760

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1772
SELECT DISTINCT + + CAST( NULL AS SIGNED ) * - col2 + + cor0.col0 + col0 * col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1772
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) * - col2 + + cor0.col0 + col0 * col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1773
SELECT DISTINCT - CAST( col1 AS SIGNED ) col0 FROM tab1 AS cor0
----
-10
-13
-26

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1773
SELECT DISTINCT - CAST ( col1 AS INTEGER ) col0 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT DISTINCT - 70 + + 68 FROM tab2 AS cor0
----
-2

query I rowsort
SELECT col0 + - col0 * + 25 * - col1 FROM tab1
----
16064
1953
26080

onlyif mysql # use DIV operator for integer division
query I rowsort label-1776
SELECT DISTINCT + + 93 DIV cor0.col2 AS col2 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-1776
SELECT DISTINCT + + 93 / cor0.col2 AS col2 FROM tab1 AS cor0
----
0
1

query I rowsort
SELECT + ( 27 ) FROM tab2 AS cor0
----
27
27
27

query I rowsort
SELECT - + 87 * + col2 FROM tab1 AS cor0
----
-4698
-4959
-8352

query I rowsort
SELECT DISTINCT - 38 - ( cor0.col2 ) FROM tab0 AS cor0
----
-120
-39
-71

query I rowsort
SELECT - col1 + 63 FROM tab0
----
-23
-28
-34

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1781
SELECT CAST( ( + col1 ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
17
31
59

skipif mysql # not compatible
query I rowsort label-1781
SELECT CAST ( ( + col1 ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
17
31
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-1782
SELECT ALL 88 DIV tab0.col2 col0 FROM tab0
----
1
2
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1782
SELECT ALL 88 / tab0.col2 col0 FROM tab0
----
1
2
88

query I rowsort
SELECT ALL - ( col2 ) * 98 + + 3 AS col2 FROM tab0
----
-3231
-8033
-95

query I rowsort
SELECT DISTINCT + + 9 + 25 FROM tab0, tab1, tab2 AS cor0, tab2
----
34

query I rowsort
SELECT + - 12 FROM tab1, tab0, tab1 AS cor0, tab2
----
81 values hashing to 60b4654b2477631ac8f4a95ec4a22fd3

query I rowsort
SELECT ALL 5 AS col0 FROM tab2, tab0 cor0, tab0 AS cor1
----
27 values hashing to 6797d40099023779b89feb627d94a3e7

query I rowsort
SELECT + col0 + + ( col0 ) FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT ALL + col0 - 50 AS col0 FROM tab2 AS cor0
----
-43
28
29

query I rowsort
SELECT - 52 + + cor1.col2 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 5e23abb6ec9ec1627fdab15742bba9ec

query I rowsort
SELECT DISTINCT col0 + cor0.col1 * 95 FROM tab0 AS cor0
----
8194
8734
9250

onlyif mysql # use DIV operator for integer division
query I rowsort label-1791
SELECT ALL - cor0.col2 DIV + col1 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1791
SELECT ALL - cor0.col2 / + col1 AS col2 FROM tab0 AS cor0
----
0
0
0

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab1 AS cor0 CROSS JOIN tab0, tab1 cor1, tab0 AS cor2
----
3645 values hashing to 28a820d445f1d1e09fd3c7443bd16e29

onlyif mysql # use DIV operator for integer division
query I rowsort label-1793
SELECT col2 + + col0 DIV col1 AS col2 FROM tab1 AS cor0
----
102
54
63

skipif mysql # not compatible
query I rowsort label-1793
SELECT col2 + + col0 / col1 AS col2 FROM tab1 AS cor0
----
102
54
63

onlyif mysql # use DIV operator for integer division
query I rowsort label-1794
SELECT - col2 * col1 + 44 DIV col0 FROM tab2 AS cor0
----
-1534
-646
-831

skipif mysql # not compatible
query I rowsort label-1794
SELECT - col2 * col1 + 44 / col0 FROM tab2 AS cor0
----
-1534
-646
-831

query I rowsort
SELECT DISTINCT + - 8 * + col0 FROM tab2 AS cor0
----
-56
-624
-632

onlyif mysql # use DIV operator for integer division
query I rowsort label-1796
SELECT + 32 DIV + cor2.col1 AS col1 FROM tab0, tab2 AS cor0, tab1 AS cor1, tab0 AS cor2
----
81 values hashing to 1f117f467f45d8c6b7553e2e3c842942

skipif mysql # not compatible
query I rowsort label-1796
SELECT + 32 / + cor2.col1 AS col1 FROM tab0, tab2 AS cor0, tab1 AS cor1, tab0 AS cor2
----
81 values hashing to 1f117f467f45d8c6b7553e2e3c842942

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1797
SELECT DISTINCT CAST( NULL AS SIGNED ) * + tab1.col2 AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1797
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + tab1.col2 AS col1 FROM tab1
----
NULL

query I rowsort
SELECT 82 * - col2 AS col2 FROM tab1
----
-4428
-4674
-7872

query I rowsort
SELECT DISTINCT + col1 * + tab2.col1 + col0 AS col1 FROM tab2
----
3559
368
968

query I rowsort
SELECT 11 - + tab2.col1 FROM tab2
----
-20
-48
-6

query I rowsort
SELECT - 27 * col2 + ( col2 ) * col2 FROM tab2 AS cor0
----
-26
0
418

onlyif mysql # use DIV operator for integer division
query I rowsort label-1802
SELECT col0 DIV col1 - + ( + col0 ) AS col1 FROM tab1
----
-3
-58
-74

skipif mysql # not compatible
query I rowsort label-1802
SELECT col0 / col1 - + ( + col0 ) AS col1 FROM tab1
----
-3
-58
-74

query I rowsort
SELECT DISTINCT - + 59 FROM tab0, tab1, tab1 AS cor0
----
-59

query I rowsort
SELECT DISTINCT + 53 AS col2 FROM tab1, tab2, tab2 AS cor0
----
53

onlyif mysql # use DIV operator for integer division
query I rowsort label-1805
SELECT col0 DIV + ( - col1 ) + + col1 AS col2 FROM tab1
----
26
4
7

skipif mysql # not compatible
query I rowsort label-1805
SELECT col0 / + ( - col1 ) + + col1 AS col2 FROM tab1
----
26
4
7

query I rowsort
SELECT DISTINCT - cor0.col1 + - 94 * col1 AS col1 FROM tab1 AS cor0
----
-1235
-2470
-950

query I rowsort
SELECT col0 * - 23 AS col2 FROM tab2 cor0
----
-161
-1794
-1817

query I rowsort
SELECT ALL - 33 * 61 FROM tab2, tab0, tab1 cor0, tab1
----
81 values hashing to 9f4feca974cb00cf0ab0558778b03a18

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1809
SELECT - - CAST( NULL AS DECIMAL ) + - col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1809
SELECT - - CAST ( NULL AS REAL ) + - col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-1810
SELECT - + col0 * + col1 + + col0 DIV + ( + col1 + - col2 * col0 ) AS col2 FROM tab1 AS cor0
----
-1040
-640
-78

skipif mysql # not compatible
query I rowsort label-1810
SELECT - + col0 * + col1 + + col0 / + ( + col1 + - col2 * col0 ) AS col2 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT - col1 + + ( col0 ) * 13 AS col2 FROM tab2 AS cor0
----
1010
60
955

query I rowsort
SELECT 84 + - col2 * + col0 * + col0 FROM tab1
----
-233388
-402
-614316

query I rowsort
SELECT DISTINCT + - tab0.col1 FROM tab0, tab2 AS cor0, tab1, tab1 AS cor1
----
-86
-91
-97

query I rowsort
SELECT + 49 - - 58 AS col0 FROM tab1 AS cor0
----
107
107
107

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + 23 ) col0 FROM tab2 AS cor0
----
-23
-23
-23

query I rowsort
SELECT - - col2 * 22 FROM tab1 AS cor0
----
1188
1254
2112

query I rowsort
SELECT + - 32 FROM tab1 AS cor0
----
-32
-32
-32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + 82 ) * + col0 + + cor0.col0 - + col0 col1 FROM tab2 cor0
----
-574
-6396
-6478

query I rowsort
SELECT 53 * + col2 + + col0 + - col1 FROM tab1
----
2839
3075
5155

query I rowsort
SELECT ALL - col1 * 75 AS col2 FROM tab1
----
-1950
-750
-975

query I rowsort
SELECT ALL + ( + col2 ) + - cor0.col0 FROM tab1 AS cor0
----
-7
16
51

onlyif mysql # use DIV operator for integer division
query I rowsort label-1822
SELECT ALL - ( col2 ) DIV col2 + col2 FROM tab1 AS cor0
----
53
56
95

skipif mysql # not compatible
query I rowsort label-1822
SELECT ALL - ( col2 ) / col2 + col2 FROM tab1 AS cor0
----
53
56
95

query I rowsort
SELECT 48 + + col2 FROM tab1 cor0
----
102
105
144

query I rowsort
SELECT - ( col2 ) + 45 AS col0 FROM tab0 cor0
----
-37
12
44

query I rowsort
SELECT + 81 * col0 FROM tab0 cor0
----
1944
2835
7209

query I rowsort
SELECT DISTINCT - - 19 + - col0 AS col1 FROM tab2 AS cor0
----
-59
-60
12

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1827
SELECT - ( - col2 ) * - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1827
SELECT - ( - col2 ) * - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col2 * col2 * + 89 FROM tab1 AS cor0
----
259524
289161
820224

onlyif mysql # use DIV operator for integer division
query I rowsort label-1829
SELECT + 30 * - col0 DIV - col0 FROM tab0
----
30
30
30

skipif mysql # not compatible
query I rowsort label-1829
SELECT + 30 * - col0 / - col0 FROM tab0
----
30
30
30

query I rowsort
SELECT + 8 * 58 AS col0 FROM tab2
----
464
464
464

query I rowsort
SELECT DISTINCT ( - col2 ) - col2 FROM tab2
----
-52
-54
-76

query I rowsort
SELECT ALL - 95 * - col1 - - tab0.col2 FROM tab0
----
8203
8727
9216

query I rowsort
SELECT ALL - 68 + col1 * col2 AS col1 FROM tab0 AS cor0
----
2770
29
7394

onlyif mysql # use DIV operator for integer division
query I rowsort label-1834
SELECT - + col2 DIV col1 + col0 * col0 FROM tab1 AS cor0
----
4091
6393
7

skipif mysql # not compatible
query I rowsort label-1834
SELECT - + col2 / col1 + col0 * col0 FROM tab1 AS cor0
----
4091
6393
7

query I rowsort
SELECT + ( - col1 ) + col1 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - 61 * + col2 AS col1 FROM tab1 AS cor0
----
-3294
-3477
-5856

query I rowsort
SELECT ALL - + col2 * col0 * - col0 AS col1 FROM tab1 AS cor0
----
233472
486
614400

query I rowsort
SELECT DISTINCT - - 74 AS col0 FROM tab2 cor0
----
74

query I rowsort
SELECT + col1 * col0 + 53 FROM tab0 cor0
----
2117
3448
8152

query I rowsort
SELECT DISTINCT col2 + 36 FROM tab1 cor0
----
132
90
93

query I rowsort
SELECT + col2 * - 63 FROM tab0 AS cor0
----
-2079
-5166
-63

query I rowsort
SELECT - col2 * + col2 * col1 FROM tab1 AS cor0
----
-119808
-32490
-75816

query I rowsort
SELECT DISTINCT + col1 * + ( + 30 ) - cor0.col2 FROM tab0 AS cor0
----
2547
2648
2909

query I rowsort
SELECT ALL + - col1 * + ( 96 ) + col1 FROM tab0 AS cor0
----
-8170
-8645
-9215

query I rowsort
SELECT ALL - col1 + col0 * col1 + - cor0.col0 AS col1 FROM tab1 cor0
----
49
566
947

query I rowsort
SELECT DISTINCT - col0 * + cor0.col0 * cor0.col0 AS col2 FROM tab2 AS cor0
----
-343
-474552
-493039

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1847
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - 84 FROM tab0, tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1847
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - 84 FROM tab0, tab2 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-1848
SELECT DISTINCT + + col1 * + col0 + - cor0.col1 DIV + ( - cor0.col0 ) AS col2 FROM tab0 AS cor0
----
2067
3397
8100

skipif mysql # not compatible
query I rowsort label-1848
SELECT DISTINCT + + col1 * + col0 + - cor0.col1 / + ( - cor0.col0 ) AS col2 FROM tab0 AS cor0
----
2067
3397
8100

query I rowsort
SELECT DISTINCT - 47 * + 5 + - col1 FROM tab1 cor0
----
-245
-248
-261

query I rowsort
SELECT DISTINCT + + col1 + col1 + col0 * col0 AS col2 FROM tab2 AS cor0
----
111
6202
6275

query I rowsort
SELECT ALL + + col2 * 92 AS col0 FROM tab1 AS cor0
----
4968
5244
8832

query I rowsort
SELECT - col2 + tab2.col2 * - col0 FROM tab2
----
-2054
-216
-3040

query I rowsort
SELECT - col0 + - col2 * + ( col2 ) FROM tab1 AS cor0
----
-2919
-3313
-9296

query I rowsort
SELECT - cor0.col1 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2

query I rowsort
SELECT + + col2 * 62 FROM tab1 cor0
----
3348
3534
5952

query I rowsort
SELECT ALL 31 * - 73 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 15f3315710b340297fb15b648b495f61

query I rowsort
SELECT + col2 * - 45 FROM tab1 AS cor0
----
-2430
-2565
-4320

query I rowsort
SELECT ALL + col2 + - col2 * - 75 AS col0 FROM tab2 AS cor0
----
1976
2052
2888

query I rowsort
SELECT col1 - + 72 * 38 AS col2 FROM tab2 AS cor0
----
-2677
-2705
-2719

query I rowsort
SELECT DISTINCT - cor0.col2 + + col0 * - 20 AS col0 FROM tab0 AS cor0
----
-1862
-513
-701

query I rowsort
SELECT ALL - + col2 + cor0.col0 * + ( col2 ) AS col2 FROM tab1 AS cor0
----
108
3591
7584

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1862
SELECT + + CAST( NULL AS DECIMAL ) + ( - col0 ) * col1 col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1862
SELECT + + CAST ( NULL AS REAL ) + ( - col0 ) * col1 col0 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + ( - col1 ) + + col0 * ( col1 ) FROM tab2 AS cor0
----
1326
186
4543

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * cor0.col1 + col2 * 37 + col2 col2 FROM tab1 AS cor0
----
1526
1974
2608

query I rowsort
SELECT + col2 * - 17 * - col1 FROM tab1 AS cor0
----
21216
23868
9690

query I rowsort
SELECT DISTINCT - - 33 * col2 AS col2 FROM tab1 cor0
----
1782
1881
3168

onlyif mysql # use DIV operator for integer division
query I rowsort label-1867
SELECT ALL + - ( 44 ) DIV - col2 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1867
SELECT ALL + - ( 44 ) / - col2 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT col1 * + col0 + + col2 + - 7 * col0 AS col2 FROM tab0 cor0
----
1929
3151
7558

onlyif mysql # use DIV operator for integer division
query I rowsort label-1869
SELECT DISTINCT 31 + + col2 DIV + cor0.col2 FROM tab1 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-1869
SELECT DISTINCT 31 + + col2 / + cor0.col2 FROM tab1 AS cor0
----
32

query I rowsort
SELECT DISTINCT - - 97 * + col2 FROM tab2 AS cor0
----
2522
2619
3686

query I rowsort
SELECT col0 * - col1 * 87 FROM tab1 AS cor0
----
-55680
-6786
-90480

query I rowsort
SELECT - - col0 * + cor0.col0 * - col2 FROM tab2 AS cor0
----
-1323
-158184
-237158

query I rowsort
SELECT DISTINCT col1 * col0 * + col2 AS col1 FROM tab2 AS cor0
----
119652
51034
5859

query I rowsort
SELECT - col0 + + col0 * - 4 FROM tab1 AS cor0
----
-15
-320
-400

query I rowsort
SELECT - + col2 + + col1 * col0 AS col2 FROM tab2 cor0
----
1305
190
4576

query I rowsort
SELECT ALL + + 33 + - col2 FROM tab1 AS cor0
----
-21
-24
-63

onlyif mysql # use DIV operator for integer division
query I rowsort label-1877
SELECT DISTINCT - ( col0 ) DIV + col0 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-1877
SELECT DISTINCT - ( col0 ) / + col0 FROM tab1 AS cor0
----
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-1878
SELECT - 85 DIV - col1 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1878
SELECT - 85 / - col1 AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - 25 * - col0 AS col2 FROM tab2 AS cor0
----
175
1950
1975

query I rowsort
SELECT DISTINCT 71 * cor0.col1 AS col0 FROM tab0 AS cor0
----
6106
6461
6887

onlyif mysql # use DIV operator for integer division
query I rowsort label-1881
SELECT 33 DIV col1 AS col0 FROM tab1 AS cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-1881
SELECT 33 / col1 AS col0 FROM tab1 AS cor0
----
1
2
3

onlyif mysql # use DIV operator for integer division
query I rowsort label-1882
SELECT ALL - col0 DIV col2 + + col0 AS col0 FROM tab0 AS cor0
----
0
24
88

skipif mysql # not compatible
query I rowsort label-1882
SELECT ALL - col0 / col2 + + col0 AS col0 FROM tab0 AS cor0
----
0
24
88

onlyif mysql # use DIV operator for integer division
query I rowsort label-1883
SELECT - col0 + cor0.col2 DIV + cor0.col1 FROM tab0 AS cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-1883
SELECT - col0 + cor0.col2 / + cor0.col1 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT + 6 AS col2 FROM tab0 cor0
----
6
6
6

query I rowsort
SELECT - + cor0.col2 * - 64 AS col1 FROM tab0 AS cor0
----
2112
5248
64

onlyif mysql # use DIV operator for integer division
query I rowsort label-1886
SELECT + + cor0.col1 * col1 DIV + 93 FROM tab1 AS cor0
----
1
1
7

skipif mysql # not compatible
query I rowsort label-1886
SELECT + + cor0.col1 * col1 / + 93 FROM tab1 AS cor0
----
1
1
7

query I rowsort
SELECT ALL cor0.col2 AS col0 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

query I rowsort
SELECT cor0.col1 + + 9 * - col0 FROM tab0 AS cor0
----
-130
-218
-710

query I rowsort
SELECT col2 + 50 AS col1 FROM tab0 AS cor0
----
132
51
83

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2 cor0, tab2 AS cor1, tab0 cor2
----
972 values hashing to e4c748f267e8d2a0e6d563281e1fb975

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + ( - 70 ) + cor0.col0 + + CAST ( col0 AS REAL ) col2 FROM tab0 AS cor0
----
-22
0
108

query I rowsort
SELECT + - col1 * + col0 + + col0 AS col1 FROM tab2 AS cor0
----
-1264
-210
-4524

query I rowsort
SELECT DISTINCT tab2.col2 + - 70 FROM tab2
----
-32
-43
-44

query I rowsort
SELECT ALL col0 + col1 * + col2 FROM tab0
----
132
2862
7551

query I rowsort
SELECT - col1 * - col1 - + col0 AS col2 FROM tab0 AS cor0
----
7372
8192
9374

query I rowsort
SELECT - - cor0.col0 * - cor0.col1 AS col1 FROM tab1, tab2 cor0
----
9 values hashing to 9b23e5e74ef3405a4dbf05cceb18c8a8

query I rowsort
SELECT DISTINCT - cor1.col1 AS col0 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
-17
-31
-59

query I rowsort
SELECT + tab1.col1 * 49 FROM tab1
----
1274
490
637

query I rowsort
SELECT + 2 * - 46 FROM tab0
----
-92
-92
-92

query I rowsort
SELECT + col2 + - ( col2 * col2 ) + - col1 * col0 AS col1 FROM tab2
----
-2749
-5252
-919

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 91 + col0 col0 FROM tab0 AS cor0
----
115
126
180

query I rowsort
SELECT + ( col0 ) * + col2 + + 1 AS col2 FROM tab1 AS cor0
----
163
3649
7681

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1903
SELECT - CAST( 41 AS SIGNED ) * + col1 - 26 FROM tab1 cor0
----
-1092
-436
-559

skipif mysql # not compatible
query I rowsort label-1903
SELECT - CAST ( 41 AS INTEGER ) * + col1 - 26 FROM tab1 cor0
----
-1092
-436
-559

query I rowsort
SELECT - 72 * + cor0.col1 - + col1 FROM tab1 AS cor0
----
-1898
-730
-949

query I rowsort
SELECT - ( 58 ) AS col1 FROM tab1
----
-58
-58
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 + + ( cor0.col1 ) col0 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT - - 56 AS col1 FROM tab2 AS cor0
----
56
56
56

query I rowsort
SELECT ALL - 15 + + 74 AS col0 FROM tab1 cor0
----
59
59
59

query I rowsort
SELECT ALL ( + col2 ) + - col2 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + - cor0.col1 + col0 * col0 FROM tab1 AS cor0
----
-17
4086
6387

query I rowsort
SELECT + + 53 + - col2 * - col2 FROM tab1 AS cor0
----
2969
3302
9269

query I rowsort
SELECT ( 4 ) AS col2 FROM tab2 AS cor0
----
4
4
4

query I rowsort
SELECT ALL + + cor0.col0 + col2 AS col0 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT - - col0 - - col0 FROM tab2 cor0
----
14
156
158

query I rowsort
SELECT DISTINCT + 16 + + col2 FROM tab2 AS cor0
----
42
43
54

query I rowsort
SELECT + ( ( - col1 ) ) AS col1 FROM tab2
----
-17
-31
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - + col1 col0 FROM tab2 AS cor0
----
-24
19
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-1918
SELECT ALL - col2 DIV 68 - + col1 AS col1 FROM tab2
----
-17
-31
-59

skipif mysql # not compatible
query I rowsort label-1918
SELECT ALL - col2 / 68 - + col1 AS col1 FROM tab2
----
-17
-31
-59

query I rowsort
SELECT - col0 - - 0 AS col0 FROM tab2
----
-7
-78
-79

query I rowsort
SELECT DISTINCT 38 AS col1 FROM tab0, tab0 AS cor0 CROSS JOIN tab1
----
38

query I rowsort
SELECT DISTINCT tab1.col2 * + ( - 96 ) FROM tab1, tab0, tab1 AS cor0
----
-5184
-5472
-9216

query I rowsort
SELECT ALL - 29 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 0cc9ddad93fc783055518ae4b6be054b

query I rowsort
SELECT ALL + cor1.col0 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT 66 FROM tab1 cor0
----
66
66
66

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1925
SELECT ALL + + CAST( + ( col1 ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-1925
SELECT ALL + + CAST ( + ( col1 ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT ALL col0 * ( tab1.col1 ) * col1 FROM tab1
----
13520
2028
6400

onlyif mysql # use DIV operator for integer division
query I rowsort label-1927
SELECT col2 + - col1 * + col1 DIV col1 FROM tab0
----
-53
-9
-96

skipif mysql # not compatible
query I rowsort label-1927
SELECT col2 + - col1 * + col1 / col1 FROM tab0
----
-53
-9
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + 79 ) * + col0 col1 FROM tab0
----
-1896
-2765
-7031

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 37 * - col1 col1 FROM tab1 cor0
----
370
481
962

query I rowsort
SELECT DISTINCT - + col0 * - col0 + + col1 FROM tab1 AS cor0
----
35
4106
6413

query I rowsort
SELECT DISTINCT + col2 - ( + col0 + + ( - col0 ) ) FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT + + ( 51 ) FROM tab0 AS cor0
----
51
51
51

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2 AS cor0, tab1 cor1, tab2, tab2 AS cor2
----
3645 values hashing to e3826bc27970dd1a441a9cd4c13b096d

query I rowsort
SELECT ALL + ( 71 ) AS col2 FROM tab2 AS cor0
----
71
71
71

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0, tab0 cor1, tab2, tab0 AS cor2
----
3645 values hashing to ba0381921410f59519cc658d8e65eee3

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1936
SELECT DISTINCT ( + tab1.col1 ) + CAST( ( + col1 ) AS SIGNED ) FROM tab1
----
20
26
52

skipif mysql # not compatible
query I rowsort label-1936
SELECT DISTINCT ( + tab1.col1 ) + CAST ( ( + col1 ) AS INTEGER ) FROM tab1
----
20
26
52

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1937
SELECT - 48 - col2 * CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1937
SELECT - 48 - col2 * CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - + col1 * col1 + + col1 + + col0 * + col0 AS col1 FROM tab2 cor0
----
-881
2662
5969

query I rowsort
SELECT - + col1 + cor0.col2 + + col0 * + 95 FROM tab2 cor0
----
661
7377
7526

query I rowsort
SELECT ALL col0 - + 63 FROM tab0 AS cor0
----
-28
-39
26

query I rowsort
SELECT DISTINCT + col1 * - ( col2 ) FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT - col2 * - 51 + 92 * col0 AS col2 FROM tab2 AS cor0
----
2021
8502
9206

query I rowsort
SELECT ALL + - cor0.col0 * 35 + col1 * + col1 AS col0 FROM tab0 cor0
----
5166
6556
8184

query I rowsort
SELECT - col2 + - col2 * + col1 AS col0 FROM tab0 AS cor0
----
-2871
-7544
-98

query I rowsort
SELECT ALL - col0 * 52 AS col1 FROM tab2 AS cor0
----
-364
-4056
-4108

query I rowsort
SELECT - + col2 + col1 * - col1 + + col1 FROM tab0 AS cor0
----
-7343
-8272
-9313

query I rowsort
SELECT col1 * - 24 AS col0 FROM tab0 cor0
----
-2064
-2184
-2328

onlyif mysql # use DIV operator for integer division
query I rowsort label-1948
SELECT DISTINCT col2 + + 6 DIV cor0.col2 FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-1948
SELECT DISTINCT col2 + + 6 / cor0.col2 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT + col2 * - col1 + - col1 AS col0 FROM tab0 AS cor0
----
-194
-2924
-7553

query I rowsort
SELECT + + cor0.col1 + - col2 * col1 FROM tab2 AS cor0
----
-1475
-629
-806

onlyif mysql # use DIV operator for integer division
query I rowsort label-1951
SELECT DISTINCT - col2 DIV - col2 AS col2 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-1951
SELECT DISTINCT - col2 / - col2 AS col2 FROM tab0 AS cor0
----
1

query I rowsort
SELECT + col2 + col1 * - col2 + col0 * col2 AS col0 FROM tab0 AS cor0
----
-2013
-61
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * 88 col1 FROM tab2 AS cor0
----
1496
2728
5192

query I rowsort
SELECT ALL + + col2 * - col2 AS col1 FROM tab0 cor0
----
-1
-1089
-6724

query I rowsort
SELECT DISTINCT - - col2 * col0 - col0 * + cor0.col1 AS col0 FROM tab1 AS cor0
----
3008
6640
84

onlyif mysql # use DIV operator for integer division
query I rowsort label-1956
SELECT - col2 + - col0 DIV - col1 AS col2 FROM tab2 AS cor0
----
-25
-27
-34

skipif mysql # not compatible
query I rowsort label-1956
SELECT - col2 + - col0 / - col1 AS col2 FROM tab2 AS cor0
----
-25
-27
-34

query I rowsort
SELECT ALL cor0.col2 * - col2 AS col1 FROM tab1 AS cor0
----
-2916
-3249
-9216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( col1 * 78 ) col2 FROM tab0
----
-6708
-7098
-7566

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1959
SELECT - CAST( 68 AS SIGNED ) AS col0 FROM tab2, tab2 cor0, tab1 cor1
----
27 values hashing to 6fbba7db5bccb533a35aa5125a231f88

skipif mysql # not compatible
query I rowsort label-1959
SELECT - CAST ( 68 AS INTEGER ) AS col0 FROM tab2, tab2 cor0, tab1 cor1
----
27 values hashing to 6fbba7db5bccb533a35aa5125a231f88

query I rowsort
SELECT ALL + + col2 - col0 * col1 AS col2 FROM tab2 cor0
----
-1305
-190
-4576

query III rowsort
SELECT ALL * FROM tab1 WHERE col2 * col2 + col1 / + col1 <= NULL
----

query I rowsort
SELECT col2 * tab2.col0 + - col2 FROM tab2
----
162
2002
2964

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - col1 * + col0 - - col0 col2 FROM tab1
----
-49
-566
-947

query I rowsort
SELECT + cor0.col0 * + col2 + + col1 * col0 FROM tab0 AS cor0
----
15397
2856
3430

query I rowsort
SELECT + tab1.col1 * + tab1.col0 * + col2 FROM tab1
----
36480
4212
99840

query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab0 WHERE NOT col1 + col1 < NULL
----

query I rowsort
SELECT ALL col0 + col1 * + col2 * col0 + + col0 FROM tab0
----
3465
664296
68160

query I rowsort
SELECT ALL + col1 * col2 + col0 AS col0 FROM tab1
----
1328
1407
634

query I rowsort
SELECT DISTINCT + tab1.col0 + col1 + - col1 FROM tab1
----
3
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + - tab2.col2 col2 FROM tab2 WHERE NOT ( + col0 + col2 * - tab2.col2 ) > NULL
----

query I rowsort
SELECT DISTINCT + tab1.col2 * - tab1.col2 * tab1.col1 FROM tab1
----
-119808
-32490
-75816

query I rowsort
SELECT + col0 * - col0 * col2 FROM tab1
----
-233472
-486
-614400

query I rowsort
SELECT col1 - - col0 * - col1 AS col0 FROM tab0
----
-1978
-3298
-8008

query I rowsort
SELECT DISTINCT col0 + + tab2.col1 * col2 + + col0 * - col0 AS col2 FROM tab2
----
-4472
-5516
795

query I rowsort
SELECT - tab0.col0 + tab0.col1 * col0 FROM tab0
----
2040
3360
8010

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab0.col2 * + col0 col0 FROM tab0
----
35
7298
792

query I rowsort
SELECT col0 AS col1 FROM tab0 WHERE NOT ( col0 ) NOT IN ( col0 )
----
24
35
89

query I rowsort
SELECT - col2 * col0 * tab1.col1 FROM tab1
----
-36480
-4212
-99840

query I rowsort
SELECT ALL tab2.col0 + - col2 * - col1 * - col2 AS col2 FROM tab2
----
-22592
-24469
-39806

query I rowsort
SELECT - col0 - col1 * col2 AS col0 FROM tab1
----
-1328
-1407
-634

query I rowsort
SELECT DISTINCT + col1 * col2 + - col1 * + col2 FROM tab0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-1982
SELECT - col2 + tab0.col2 DIV - col2 col1 FROM tab0
----
-2
-34
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1982
SELECT - col2 + tab0.col2 / - col2 col1 FROM tab0
----
-2
-34
-83

query I rowsort
SELECT ALL - col2 FROM tab1 WHERE NOT col2 = ( NULL )
----

query I rowsort
SELECT DISTINCT + col1 + + col1 * + col1 AS col2 FROM tab2
----
306
3540
992

query I rowsort
SELECT - 66 * + col1 FROM tab0
----
-5676
-6006
-6402

query I rowsort
SELECT 85 * - 43 AS col1 FROM tab1
----
-3655
-3655
-3655

query I rowsort
SELECT + col1 * + col0 + 59 FROM tab1 cor0
----
1099
137
699

query I rowsort
SELECT 95 * col1 FROM tab0
----
8170
8645
9215

query I rowsort
SELECT DISTINCT + 35 * col2 FROM tab1
----
1890
1995
3360

query I rowsort
SELECT + 64 * col0 FROM tab0 AS cor0
----
1536
2240
5696

query I rowsort
SELECT DISTINCT - col1 * - ( + col0 ) AS col1 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT - col0 + 0 AS col0 FROM tab2 AS cor0
----
-7
-78
-79

onlyif mysql # use DIV operator for integer division
query I rowsort label-1993
SELECT + col1 DIV + col0 FROM tab1 cor0
----
0
0
8

skipif mysql # not compatible
query I rowsort label-1993
SELECT + col1 / + col0 FROM tab1 cor0
----
0
0
8

query I rowsort
SELECT + + col0 * 41 FROM tab2 AS cor0
----
287
3198
3239

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1995
SELECT 26 * + col2 + col2 / + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1995
SELECT 26 * + col2 + col2 / + 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 - col0 - + ( col0 ) col2 FROM tab2 AS cor0
----
-14
-156
-158

query I rowsort
SELECT + - ( - 90 ) * - cor0.col1 + col1 FROM tab2 cor0
----
-1513
-2759
-5251

query I rowsort
SELECT - 3 + col2 AS col1 FROM tab2 cor0
----
23
24
35

query I rowsort
SELECT + col2 + - 53 * col0 AS col0 FROM tab0 AS cor0
----
-1239
-1854
-4635

query I rowsort
SELECT DISTINCT - col1 + 89 AS col1 FROM tab1
----
63
76
79

query I rowsort
SELECT ALL 52 - - cor0.col1 AS col1 FROM tab0, tab0 cor0
----
9 values hashing to cff7bcdd3ef9428cdeb409e12e97c9e3

query I rowsort
SELECT - 70 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to c2a2994a4e94583683ccda2cc098c58f

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2003
SELECT ALL CAST( NULL AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2003
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT + - 95 + col0 FROM tab2 AS cor0
----
-16
-17
-88

query I rowsort
SELECT + - 86 * + col0 AS col0 FROM tab1 AS cor0
----
-258
-5504
-6880

query I rowsort
SELECT - cor0.col2 * - 88 FROM tab1 AS cor0
----
4752
5016
8448

query I rowsort
SELECT DISTINCT - col0 + ( col0 ) * + col0 AS col2 FROM tab2 AS cor0
----
42
6006
6162

query I rowsort
SELECT DISTINCT - 62 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-62

query I rowsort
SELECT DISTINCT - 21 - 47 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-68

onlyif mysql # use DIV operator for integer division
query I rowsort label-2010
SELECT ALL + - cor0.col2 + - col1 DIV - col2 FROM tab1 AS cor0
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-2010
SELECT ALL + - cor0.col2 + - col1 / - col2 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT ALL - col0 * col1 * - col2 AS col0 FROM tab1 AS cor0
----
36480
4212
99840

onlyif mysql # use DIV operator for integer division
query I rowsort label-2012
SELECT - - 6 DIV - col1 + - col0 AS col1 FROM tab0 cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-2012
SELECT - - 6 / - col1 + - col0 AS col1 FROM tab0 cor0
----
-24
-35
-89

query I rowsort
SELECT DISTINCT col1 * tab0.col0 + col2 * col2 AS col1 FROM tab0
----
14823
3153
3396

query I rowsort
SELECT + 6 + col1 * + col2 * - col2 AS col1 FROM tab0 AS cor0
----
-611878
-91
-93648

query I rowsort
SELECT DISTINCT 6 FROM tab0, tab2 AS cor0
----
6

query I rowsort
SELECT ALL + + 57 + col2 * col2 AS col0 FROM tab0 AS cor0
----
1146
58
6781

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2017
SELECT CAST( ( col0 ) AS SIGNED ) * - col1 FROM tab1
----
-1040
-640
-78

skipif mysql # not compatible
query I rowsort label-2017
SELECT CAST ( ( col0 ) AS INTEGER ) * - col1 FROM tab1
----
-1040
-640
-78

query I rowsort
SELECT ALL + 38 * cor0.col0 * - 6 FROM tab1, tab2 AS cor0
----
9 values hashing to 883c12b101f282461cff66b1492a40f7

onlyif mysql # use DIV operator for integer division
query I rowsort label-2019
SELECT ALL 54 DIV + col1 AS col0 FROM tab2
----
0
1
3

skipif mysql # not compatible
query I rowsort label-2019
SELECT ALL 54 / + col1 AS col0 FROM tab2
----
0
1
3

query I rowsort
SELECT DISTINCT + 15 * + col1 + ( col0 ) FROM tab0 AS cor0
----
1314
1454
1490

query I rowsort
SELECT + 50 + ( + cor1.col0 ) FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 5632a31f3e7eb3f97245acf8dd4ab44e

query I rowsort
SELECT - + 33 + + cor0.col1 AS col1 FROM tab1 AS cor0
----
-20
-23
-7

query I rowsort
SELECT DISTINCT + - ( + col0 ) * col0 FROM tab1 AS cor0
----
-4096
-6400
-9

query I rowsort
SELECT ALL + ( col2 ) + col0 * col1 AS col0 FROM tab0 AS cor0
----
2097
3396
8181

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2025
SELECT - - col0 + - col1 * CAST( - col1 AS SIGNED ) FROM tab1 AS cor0
----
164
249
679

skipif mysql # not compatible
query I rowsort label-2025
SELECT - - col0 + - col1 * CAST ( - col1 AS INTEGER ) FROM tab1 AS cor0
----
164
249
679

query I rowsort
SELECT ALL col2 * + col0 - 87 * col0 FROM tab0 AS cor0
----
-1296
-3010
-445

query I rowsort
SELECT + col2 + - col2 * - col1 AS col0 FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT - col0 + + col0 * - col0 AS col2 FROM tab1
----
-12
-4160
-6480

query I rowsort
SELECT DISTINCT - - col0 * col2 + + col0 * col1 FROM tab1 cor0
----
240
4288
8720

query I rowsort
SELECT DISTINCT col1 * + col1 * + col0 - + 12 AS col2 FROM tab1 AS cor0
----
13508
2016
6388

query I rowsort
SELECT - col0 + col2 * + 83 AS col2 FROM tab2
----
2080
2234
3075

query I rowsort
SELECT DISTINCT + tab2.col0 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
7
78
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-2033
SELECT col2 DIV + 9 FROM tab0
----
0
3
9

skipif mysql # not compatible
query I rowsort label-2033
SELECT col2 / + 9 FROM tab0
----
0
3
9

query I rowsort
SELECT - col1 * 43 AS col2 FROM tab2
----
-1333
-2537
-731

query I rowsort
SELECT - + col1 * + col2 + col2 * 88 FROM tab0 AS cor0
----
-246
-9
66

query I rowsort
SELECT ALL 72 * col2 + + cor0.col1 * 31 FROM tab2 AS cor0
----
2905
3263
3701

query I rowsort
SELECT DISTINCT - - 49 AS col0 FROM tab0 AS cor0
----
49

query I rowsort
SELECT ALL col2 + col2 - 77 AS col2 FROM tab0
----
-11
-75
87

onlyif mysql # use DIV operator for integer division
query I rowsort label-2039
SELECT col0 DIV - ( + col2 ) + col0 * tab1.col2 - + col2 FROM tab1
----
108
3590
7584

skipif mysql # not compatible
query I rowsort label-2039
SELECT col0 / - ( + col2 ) + col0 * tab1.col2 - + col2 FROM tab1
----
108
3590
7584

query I rowsort
SELECT cor1.col1 AS col1 FROM tab0, tab0 cor0, tab1 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT - ( col1 ) + col0 AS col0 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT ( cor1.col0 ) FROM tab1, tab0 AS cor0, tab0, tab0 AS cor1
----
81 values hashing to 2304fcc140e955eb2d1ee28ab1eea994

query I rowsort
SELECT - 66 * - col0 - col0 AS col2 FROM tab2 AS cor0
----
455
5070
5135

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2044
SELECT DISTINCT - - CAST( NULL AS SIGNED ) * - ( col0 ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2044
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) * - ( col0 ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + 76 * col2 + - col2 FROM tab2 AS cor0
----
1950
2025
2850

query I rowsort
SELECT + col1 * col0 + - col2 FROM tab2 AS cor0
----
1305
190
4576

query I rowsort
SELECT + + 16 + + col0 * - col0 AS col0 FROM tab2 AS cor0
----
-33
-6068
-6225

query I rowsort
SELECT ALL + - col1 - 33 FROM tab1 cor0
----
-43
-46
-59

query I rowsort
SELECT ALL - col0 + + ( - col2 ) - + col2 AS col1 FROM tab1 AS cor0
----
-111
-178
-272

onlyif mysql # use DIV operator for integer division
query I rowsort label-2050
SELECT ALL - col0 DIV + CAST( 77 AS SIGNED ) FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-2050
SELECT ALL - col0 / + CAST ( 77 AS INTEGER ) FROM tab2
----
-1
-1
0

query I rowsort
SELECT col2 + + ( col1 ) + + col0 AS col1 FROM tab2 AS cor0
----
134
163
65

query I rowsort
SELECT + tab2.col0 + 18 * - 16 AS col0 FROM tab2
----
-209
-210
-281

query I rowsort
SELECT DISTINCT + + col1 * 91 + + col0 + col2 * 55 * col0 FROM tab0 AS cor0
----
10787
409760
51410

query I rowsort
SELECT DISTINCT col2 + - 33 FROM tab0 AS cor0
----
-32
0
49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * col0 + col0 * + col0 + col2 * col0 col1 FROM tab2 AS cor0
----
10140
12245
427

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( cor0.col1 ) * - col0 + - 77 col1 FROM tab2 AS cor0
----
-1420
-294
-4679

query I rowsort
SELECT - col1 * 16 * - col2 + - col2 + - col2 AS col1 FROM tab1 AS cor0
----
19776
22356
9006

query I rowsort
SELECT ALL + + 82 * + col1 + - col2 * - col0 * + col2 FROM tab0 cor0
----
33188
605898
7989

query I rowsort
SELECT ( ( col0 ) ) * + cor0.col2 + - col2 FROM tab1 cor0
----
108
3591
7584

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2060
SELECT col1 * + CAST( + col1 AS SIGNED ) * + col1 col2 FROM tab1
----
1000
17576
2197

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2060
SELECT col1 * + CAST ( + col1 AS INTEGER ) * + col1 col2 FROM tab1
----
1000
17576
2197

onlyif mysql # use DIV operator for integer division
query I rowsort label-2061
SELECT + 64 DIV col0 AS col2 FROM tab1 AS cor0
----
0
1
21

skipif mysql # not compatible
query I rowsort label-2061
SELECT + 64 / col0 AS col2 FROM tab1 AS cor0
----
0
1
21

onlyif mysql # use DIV operator for integer division
query I rowsort label-2062
SELECT ALL - 21 DIV - col0 + col0 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-2062
SELECT ALL - 21 / - col0 + col0 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT DISTINCT + + 21 * col2 FROM tab0 AS cor0
----
1722
21
693

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 4 * cor0.col0 col1 FROM tab1 AS cor0
----
-12
-256
-320

query I rowsort
SELECT ALL + 43 * + col1 + cor0.col1 FROM tab1 AS cor0
----
1144
440
572

onlyif mysql # use DIV operator for integer division
query I rowsort label-2066
SELECT DISTINCT - + 31 + + col1 DIV - 67 AS col2 FROM tab0 AS cor0
----
-32

skipif mysql # not compatible
query I rowsort label-2066
SELECT DISTINCT - + 31 + + col1 / - 67 AS col2 FROM tab0 AS cor0
----
-32

query I rowsort
SELECT + + col0 - cor0.col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + - 90 * - cor0.col0 + ( - col1 ) * + col2 * - col1 FROM tab0 AS cor0
----
12559
246228
687052

onlyif mysql # use DIV operator for integer division
query I rowsort label-2069
SELECT ALL col1 + - col0 DIV + col1 AS col1 FROM tab1 AS cor0
----
26
4
7

skipif mysql # not compatible
query I rowsort label-2069
SELECT ALL col1 + - col0 / + col1 AS col1 FROM tab1 AS cor0
----
26
4
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-2070
SELECT DISTINCT col2 DIV + col1 + - 65 * 70 FROM tab1 AS cor0
----
-4543
-4545
-4548

skipif mysql # not compatible
query I rowsort label-2070
SELECT DISTINCT col2 / + col1 + - 65 * 70 FROM tab1 AS cor0
----
-4543
-4545
-4548

query I rowsort
SELECT - col2 - col0 * 72 FROM tab1 AS cor0
----
-270
-4665
-5856

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 18 col2 FROM tab1
----
18
18
18

query I rowsort
SELECT 63 - - col1 FROM tab2
----
122
80
94

query I rowsort
SELECT DISTINCT - - ( col0 ) + col2 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT ALL - col0 + col0 * 18 FROM tab1 cor0
----
1088
1360
51

onlyif mysql # use DIV operator for integer division
query I rowsort label-2076
SELECT DISTINCT - ( col2 ) DIV cor0.col1 + col2 * - col0 * col1 FROM tab1 AS cor0
----
-36485
-4214
-99847

skipif mysql # not compatible
query I rowsort label-2076
SELECT DISTINCT - ( col2 ) / cor0.col1 + col2 * - col0 * col1 FROM tab1 AS cor0
----
-36485
-4214
-99847

query I rowsort
SELECT + col2 + + 70 FROM tab1 AS cor0
----
124
127
166

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2078
SELECT ALL + ( col0 ) * CAST( col2 AS SIGNED ) * col1 + ( - col0 ) FROM tab0
----
3360
664029
68088

skipif mysql # not compatible
query I rowsort label-2078
SELECT ALL + ( col0 ) * CAST ( col2 AS INTEGER ) * col1 + ( - col0 ) FROM tab0
----
3360
664029
68088

onlyif mysql # use DIV operator for integer division
query I rowsort label-2079
SELECT DISTINCT + + 55 DIV - 93 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-2079
SELECT DISTINCT + + 55 / - 93 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
0

query I rowsort
SELECT ALL + col1 * col0 - + cor0.col1 * + col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + col2 * 52 - col1 FROM tab1 AS cor0
----
2782
2954
4979

query I rowsort
SELECT - - col1 * col2 + + col1 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT - - tab2.col0 AS col0 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT DISTINCT tab2.col1 * col2 * col0 FROM tab2
----
119652
51034
5859

query I rowsort
SELECT DISTINCT col0 * col0 + - 4 FROM tab1
----
4092
5
6396

query I rowsort
SELECT ALL cor0.col2 AS col0 FROM tab2, tab0, tab0 cor0
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT + cor0.col2 - cor0.col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 81a5cd95f3bf6bcb4ae24bb35bb8df50

query I rowsort
SELECT + + col2 + 23 FROM tab0 AS cor0
----
105
24
56

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2089
SELECT + col0 + + CAST( col1 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
29
74
93

skipif mysql # not compatible
query I rowsort label-2089
SELECT + col0 + + CAST ( col1 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT ALL 22 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

query I rowsort
SELECT DISTINCT - col1 * 80 AS col0 FROM tab0
----
-6880
-7280
-7760

query I rowsort
SELECT 82 + 75 FROM tab0
----
157
157
157

onlyif mysql # use DIV operator for integer division
query I rowsort label-2093
SELECT + 63 DIV col2 AS col1 FROM tab0 AS cor0
----
0
1
63

skipif mysql # not compatible
query I rowsort label-2093
SELECT + 63 / col2 AS col1 FROM tab0 AS cor0
----
0
1
63

query I rowsort
SELECT ALL 96 * + 9 FROM tab2 AS cor0
----
864
864
864

query I rowsort
SELECT ALL + - 2 * + cor0.col1 FROM tab0 cor0
----
-172
-182
-194

skipif mysql # not compatible
query I rowsort
SELECT ALL - CAST ( - col1 AS REAL ) * col2 AS col0 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT DISTINCT - 55 + - col1 * col1 AS col2 FROM tab2 AS cor0
----
-1016
-344
-3536

query I rowsort
SELECT ( + col2 + + tab1.col2 ) FROM tab1
----
108
114
192

query I rowsort
SELECT ALL cor0.col0 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT + 68 * 0 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + 93 * + col2 FROM tab2 AS cor0
----
2418
2511
3534

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + 97 col0 FROM tab0 AS cor0
----
121
132
186

query I rowsort
SELECT - 54 + - 68 * cor0.col0 FROM tab2 AS cor0
----
-530
-5358
-5426

query I rowsort
SELECT DISTINCT + cor0.col1 * 24 AS col2 FROM tab1 AS cor0
----
240
312
624

onlyif mysql # use DIV operator for integer division
query I rowsort label-2105
SELECT DISTINCT + + col2 DIV + col1 - col1 FROM tab1 AS cor0
----
-24
-5
-6

skipif mysql # not compatible
query I rowsort label-2105
SELECT DISTINCT + + col2 / + col1 - col1 FROM tab1 AS cor0
----
-24
-5
-6

query I rowsort
SELECT ALL + 14 * - col2 * + col0 - + col1 AS col1 FROM tab0 AS cor0
----
-102263
-11174
-587

query I rowsort
SELECT + - ( + 29 ) + col2 AS col2 FROM tab1 AS cor0
----
25
28
67

query I rowsort
SELECT DISTINCT - col2 + + 51 + col2 FROM tab2 cor0
----
51

query I rowsort
SELECT - + 39 * + 90 AS col2 FROM tab2 AS cor0
----
-3510
-3510
-3510

query I rowsort
SELECT ALL 42 * - col0 AS col0 FROM tab2 AS cor0
----
-294
-3276
-3318

query I rowsort
SELECT - - 40 * col2 AS col1 FROM tab0 AS cor0
----
1320
3280
40

query I rowsort
SELECT + col1 * 62 - + col0 * col2 AS col0 FROM tab1
----
-3028
-6874
1450

skipif mysql # not compatible
query I rowsort
SELECT col0 + CAST ( col1 AS REAL ) + + col0 * ( 72 ) AS col2 FROM tab1
----
245
4682
5853

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col2 + tab0.col2 col0 FROM tab0
----
2871
7544
98

query I rowsort
SELECT col2 - 44 FROM tab1
----
10
13
52

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2116
SELECT CAST( - 84 AS SIGNED ) col0 FROM tab1
----
-84
-84
-84

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2116
SELECT CAST ( - 84 AS INTEGER ) col0 FROM tab1
----
-84
-84
-84

query I rowsort
SELECT ALL 71 + col1 * - cor0.col0 * col0 + + 98 AS col1 FROM tab1 AS cor0
----
-40791
-65
-83031

query I rowsort
SELECT DISTINCT - + col1 * col0 - - cor0.col1 FROM tab1 AS cor0
----
-1027
-52
-630

query I rowsort
SELECT DISTINCT ( + cor0.col1 ) + - cor0.col2 FROM tab2 cor0
----
-21
33
4

query I rowsort
SELECT DISTINCT - ( + 11 ) AS col2 FROM tab0 AS cor0
----
-11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col1 ) + - col2 * ( - 69 ) col2 FROM tab2 AS cor0
----
1735
1832
2605

query I rowsort
SELECT ALL + ( - cor0.col0 ) + cor0.col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2123
SELECT - CAST( NULL AS SIGNED ) + - 56 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2123
SELECT - CAST ( NULL AS INTEGER ) + - 56 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 61 AS col1 FROM tab1 cor0
----
-61
-61
-61

query I rowsort
SELECT DISTINCT - - 5 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
5

query I rowsort
SELECT + cor0.col1 - cor0.col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

onlyif mysql # use DIV operator for integer division
query I rowsort label-2127
SELECT + col0 * col2 + col2 * col2 - col2 DIV col2 AS col0 FROM tab0 AS cor0
----
14021
1880
35

skipif mysql # not compatible
query I rowsort label-2127
SELECT + col0 * col2 + col2 * col2 - col2 / col2 AS col0 FROM tab0 AS cor0
----
14021
1880
35

query I rowsort
SELECT + col1 * - cor0.col0 + - col0 FROM tab2 AS cor0
----
-1422
-224
-4680

query I rowsort
SELECT + col2 + - col2 - ( col0 ) AS col0 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT 16 - col0 * col1 FROM tab2
----
-1327
-201
-4586

query I rowsort
SELECT col1 + - col0 * + col0 * - col0 - - col0 * + cor0.col1 FROM tab0 AS cor0
----
15974
46367
713159

query I rowsort
SELECT - - cor0.col1 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

query I rowsort
SELECT ALL - 36 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to afecaf209e79e23b6674a73fffa3e837

query I rowsort
SELECT + tab0.col2 + 59 AS col1 FROM tab0
----
141
60
92

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2135
SELECT - - col2 * CAST( - col2 AS SIGNED ) FROM tab1 AS cor0
----
-2916
-3249
-9216

skipif mysql # not compatible
query I rowsort label-2135
SELECT - - col2 * CAST ( - col2 AS INTEGER ) FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT - + col0 * cor0.col0 - 61 * col2 AS col2 FROM tab2 AS cor0
----
-1696
-7670
-8559

query I rowsort
SELECT DISTINCT + - cor0.col0 * - col2 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT ALL + col2 * cor0.col1 + + 64 * - col0 AS col1 FROM tab2 cor0
----
-3458
-4410
389

query I rowsort
SELECT DISTINCT - col1 * - 89 FROM tab0 AS cor0
----
7654
8099
8633

query I rowsort
SELECT cor0.col2 * 82 AS col2 FROM tab2 AS cor0
----
2132
2214
3116

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2141
SELECT DISTINCT - - cor0.col0 * + CAST( + col2 AS SIGNED ) * - cor0.col1 + - CAST( - col0 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-3360
-664029
-68088

skipif mysql # not compatible
query I rowsort label-2141
SELECT DISTINCT - - cor0.col0 * + CAST ( + col2 AS INTEGER ) * - cor0.col1 + - CAST ( - col0 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-3360
-664029
-68088

query I rowsort
SELECT + - col0 * col1 + 54 * + cor0.col2 - cor0.col0 * + col2 * + col1 AS col1 FROM tab2 AS cor0
----
-122850
-4618
-50325

query I rowsort
SELECT col1 * + col2 + - col0 * - col0 AS col0 FROM tab1 AS cor0
----
1413
4666
7648

query I rowsort
SELECT cor0.col1 * + col0 + 66 AS col2 FROM tab1 AS cor0
----
1106
144
706

query I rowsort
SELECT DISTINCT col2 + - ( + col2 ) * - col1 AS col2 FROM tab2 AS cor0
----
1560
684
864

query I rowsort
SELECT - - col2 * 75 + col1 * + col2 FROM tab0 AS cor0
----
13612
172
5313

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2147
SELECT DISTINCT + CAST( + cor0.col1 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-2147
SELECT DISTINCT + CAST ( + cor0.col1 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT - + col2 * 27 AS col0 FROM tab0 AS cor0
----
-2214
-27
-891

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2149
SELECT DISTINCT - CAST( NULL AS SIGNED ) - col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2149
SELECT DISTINCT - CAST ( NULL AS INTEGER ) - col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - - 9 + 37 AS col1 FROM tab0 cor0
----
46
46
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 28 col0 FROM tab0 AS cor0
----
28

query I rowsort
SELECT DISTINCT col1 * + 39 + + col2 AS col1 FROM tab0
----
3387
3631
3784

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - col2 * + col2 + + CAST ( + cor0.col2 AS REAL ) * + col0 AS col2 FROM tab1 AS cor0
----
-1536
-2754
399

query I rowsort
SELECT + 40 AS col1 FROM tab0 cor0
----
40
40
40

query I rowsort
SELECT DISTINCT + - cor0.col1 * + col0 AS col0 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT ALL - 18 + col2 AS col1 FROM tab2 AS cor0
----
20
8
9

query I rowsort
SELECT ALL + col0 * cor0.col0 + cor0.col1 * + ( col0 ) FROM tab2 AS cor0
----
10686
266
7584

query I rowsort
SELECT DISTINCT + 86 * - col2 FROM tab0 AS cor0
----
-2838
-7052
-86

query I rowsort
SELECT ALL + 72 * col0 + col1 AS col0 FROM tab1 AS cor0
----
242
4618
5773

query I rowsort
SELECT - - 37 * - col1 FROM tab2 AS cor0
----
-1147
-2183
-629

query I rowsort
SELECT - 71 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 3907e0aa4f29c002120742c4abb3e23a

query I rowsort
SELECT DISTINCT + ( + col0 * col1 ) - + col1 FROM tab0
----
1978
3298
8008

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + tab2.col0 ) col1 FROM tab2
----
7
78
79

query I rowsort
SELECT + 33 - - col2 * col0 AS col0 FROM tab2
----
2061
222
3035

query I rowsort
SELECT DISTINCT - col2 * - 95 + col2 FROM tab2 AS cor0
----
2496
2592
3648

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2166
SELECT - col1 - - CAST( - col1 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-172
-182
-194

skipif mysql # not compatible
query I rowsort label-2166
SELECT - col1 - - CAST ( - col1 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-172
-182
-194

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + col2 * col0 col2 FROM tab0 AS cor0
----
70
7387
816

query I rowsort
SELECT + - cor0.col1 * col1 - - cor0.col2 AS col1 FROM tab2 AS cor0
----
-251
-3455
-934

query I rowsort
SELECT ALL col2 * - 85 * ( cor0.col0 ) FROM tab2 cor0
----
-16065
-172380
-255170

query I rowsort
SELECT DISTINCT 10 * col1 AS col1 FROM tab2
----
170
310
590

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 8 col0 FROM tab0
----
-8
-8
-8

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2172
SELECT DISTINCT + CAST( tab0.col2 AS SIGNED ) + col2 AS col0 FROM tab0
----
164
2
66

skipif mysql # not compatible
query I rowsort label-2172
SELECT DISTINCT + CAST ( tab0.col2 AS INTEGER ) + col2 AS col0 FROM tab0
----
164
2
66

query I rowsort
SELECT ALL - col1 + 87 AS col2 FROM tab1
----
61
74
77

query I rowsort
SELECT 11 + col2 FROM tab1 cor0
----
107
65
68

query I rowsort
SELECT DISTINCT cor1.col0 + + 61 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
125
141
64

onlyif mysql # use DIV operator for integer division
query I rowsort label-2176
SELECT ALL - col1 * + col1 * col2 + + 35 DIV - 7 AS col0 FROM tab1
----
-16229
-36509
-5705

skipif mysql # not compatible
query I rowsort label-2176
SELECT ALL - col1 * + col1 * col2 + + 35 / - 7 AS col0 FROM tab1
----
-16229
-36509
-5705

query I rowsort
SELECT 49 AS col0 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to a40d8754a5be3ce2309c61bfd3e00197

query I rowsort
SELECT ALL ( + tab1.col0 * - ( tab1.col0 ) ) FROM tab1
----
-4096
-6400
-9

query I rowsort
SELECT + cor0.col2 * - col2 + 86 AS col2 FROM tab2 AS cor0
----
-1358
-590
-643

query I rowsort
SELECT DISTINCT - col1 * - 2 AS col2 FROM tab1
----
20
26
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( 50 ) col0 FROM tab0, tab0 cor0
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52

query I rowsort
SELECT ALL - col1 * 68 + + col2 FROM tab0 AS cor0
----
-5815
-6106
-6595

query I rowsort
SELECT ALL + col2 + ( - cor0.col0 ) * + col1 AS col1 FROM tab0 AS cor0
----
-2031
-3394
-8017

onlyif mysql # use DIV operator for integer division
query I rowsort label-2184
SELECT DISTINCT + col1 DIV col2 col1 FROM tab0 AS cor0
----
1
2
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2184
SELECT DISTINCT + col1 / col2 col1 FROM tab0 AS cor0
----
1
2
97

query I rowsort
SELECT + col1 + - 27 * col1 FROM tab1 AS cor0
----
-260
-338
-676

query I rowsort
SELECT - col1 * ( 52 ) AS col0 FROM tab0 AS cor0
----
-4472
-4732
-5044

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 20 col0 FROM tab1 AS cor0
----
20

query I rowsort
SELECT - - col2 * 70 + col0 FROM tab1 AS cor0
----
3783
4054
6800

query I rowsort
SELECT ALL 39 AS col0 FROM tab1 AS cor0
----
39
39
39

query I rowsort
SELECT DISTINCT + - ( + col1 ) + cor0.col2 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT + 35 + col2 AS col0 FROM tab1 AS cor0
----
131
89
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * 79 col1 FROM tab1 AS cor0
----
4266
4503
7584

query I rowsort
SELECT DISTINCT + 63 + + col1 FROM tab0 AS cor0
----
149
154
160

query I rowsort
SELECT DISTINCT - col1 * tab0.col0 AS col0 FROM tab0
----
-2064
-3395
-8099

query I rowsort
SELECT + + cor0.col1 + 83 AS col2 FROM tab1 AS cor0
----
109
93
96

query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 cor0 WHERE ( NULL ) >= ( NULL )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-2197
SELECT - 6 DIV 67 AS col2 FROM tab0, tab2, tab2 cor0
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

skipif mysql # not compatible
query I rowsort label-2197
SELECT - 6 / 67 AS col2 FROM tab0, tab2, tab2 cor0
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

query I rowsort
SELECT ( tab0.col2 ) + col0 * ( - col0 ) AS col1 FROM tab0
----
-1224
-543
-7839

query I rowsort
SELECT + col2 * + 79 AS col0 FROM tab0 AS cor0
----
2607
6478
79

query I rowsort
SELECT - - col1 * ( col1 + col0 ) * ( + col0 ) FROM tab1 cor0
----
2262
47360
96720

query I rowsort
SELECT DISTINCT - 25 * + col1 + - 23 FROM tab0 AS cor0
----
-2173
-2298
-2448

query I rowsort
SELECT - + 26 * col1 + cor0.col1 * + col2 + + cor0.col2 AS col2 FROM tab0 AS cor0
----
-2424
5178
635

query I rowsort
SELECT - - cor0.col1 + col2 * - ( 29 ) AS col2 FROM tab2 AS cor0
----
-1085
-695
-752

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 83 + col1 * + col0 col1 FROM tab0 AS cor0
----
1981
3312
8016

onlyif mysql # use DIV operator for integer division
query I rowsort label-2205
SELECT DISTINCT 61 DIV col2 FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-2205
SELECT DISTINCT 61 / col2 FROM tab1
----
0
1

query I rowsort
SELECT + 95 FROM tab1, tab2 cor0
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3

onlyif mysql # use DIV operator for integer division
query I rowsort label-2207
SELECT DISTINCT 20 DIV - 44 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2207
SELECT DISTINCT 20 / - 44 FROM tab0
----
0

query I rowsort
SELECT cor0.col1 + - col2 * - cor0.col0 AS col2 FROM tab0 AS cor0
----
132
7389
878

onlyif mysql # use DIV operator for integer division
query I rowsort label-2209
SELECT col0 DIV + 84 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2209
SELECT col0 / + 84 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - - col0 * + ( - 97 ) FROM tab1 AS cor0
----
-291
-6208
-7760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 72 col2 FROM tab2 AS cor0 CROSS JOIN tab2, tab1 AS cor1
----
27 values hashing to 92cc3d5daa550304e96c1542787691c7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2212
SELECT - - 46 * - cor0.col1 / + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2212
SELECT - - 46 * - cor0.col1 / + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT col2 * col0 + col2 * + col1 * - col0 FROM tab2 AS cor0
----
-117624
-48032
-5670

onlyif mysql # use DIV operator for integer division
query I rowsort label-2214
SELECT DISTINCT col1 DIV + col0 col0 FROM tab0
----
1
2
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2214
SELECT DISTINCT col1 / + col0 col0 FROM tab0
----
1
2
3

skipif mysql # not compatible
query I rowsort
SELECT + col1 * + CAST ( + col0 AS REAL ) AS col2 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT - + col0 + cor0.col0 AS col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL - + 9 * + cor0.col0 + col1 FROM tab2 AS cor0
----
-32
-643
-694

query I rowsort
SELECT + col1 - cor0.col0 AS col2 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT ALL - - col0 * + col0 + - col0 * col0 + col1 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT + + 66 - + col1 AS col1 FROM tab1 cor0
----
40
53
56

onlyif mysql # use DIV operator for integer division
query I rowsort label-2221
SELECT ALL + col1 + col1 * col2 DIV col1 FROM tab1 AS cor0
----
109
67
80

skipif mysql # not compatible
query I rowsort label-2221
SELECT ALL + col1 + col1 * col2 / col1 FROM tab1 AS cor0
----
109
67
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 69 col1 FROM tab1
----
-69
-69
-69

query I rowsort
SELECT col0 * + tab2.col0 * col2 FROM tab2
----
1323
158184
237158

onlyif mysql # use DIV operator for integer division
query I rowsort label-2224
SELECT ALL + cor0.col0 + - col1 DIV + col2 FROM tab1 cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-2224
SELECT ALL + cor0.col0 + - col1 / + col2 FROM tab1 cor0
----
3
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 - - col0 col0 FROM tab1 cor0
----
128
160
6

query I rowsort
SELECT DISTINCT col2 + col2 + col0 FROM tab1
----
111
178
272

query I rowsort
SELECT ALL col0 + col1 + + col0 * tab2.col2 AS col1 FROM tab2
----
2165
227
3098

query I rowsort
SELECT ALL - + 61 AS col1 FROM tab1 AS cor0
----
-61
-61
-61

query I rowsort
SELECT DISTINCT + 30 * 72 * + tab2.col2 AS col0 FROM tab2, tab0 cor0
----
56160
58320
82080

query I rowsort
SELECT ALL + 45 * col2 - + col2 FROM tab1
----
2376
2508
4224

query I rowsort
SELECT ALL ( 11 ) - + col1 FROM tab1
----
-15
-2
1

query I rowsort
SELECT ALL col1 * col2 - col1 AS col0 FROM tab1
----
1235
1378
560

query I rowsort
SELECT DISTINCT 89 - col0 AS col2 FROM tab2
----
10
11
82

query I rowsort
SELECT ALL - col2 * + col0 - col0 FROM tab1
----
-165
-3712
-7760

query I rowsort
SELECT - + col0 - + col1 AS col1 FROM tab0 AS cor0
----
-110
-132
-180

query I rowsort
SELECT tab2.col0 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

query I rowsort
SELECT DISTINCT - - col2 + col0 * - col0 AS col2 FROM tab0 AS cor0
----
-1224
-543
-7839

query I rowsort
SELECT ALL - col1 + col1 * col2 FROM tab0 cor0
----
0
2752
7371

query I rowsort
SELECT - + cor0.col0 + + col1 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT col2 * col1 AS col0 FROM tab2 AS cor0 WHERE NULL NOT IN ( - col0 )
----

query I rowsort
SELECT DISTINCT - col1 * cor0.col2 * + col0 + + col1 FROM tab1 AS cor0
----
-36470
-4186
-99827

query I rowsort
SELECT ALL tab1.col1 - + tab1.col2 FROM tab1
----
-28
-47
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab0.col2 * - col0 col2 FROM tab0
----
35
7298
792

query I rowsort
SELECT DISTINCT col2 + col2 * + col2 AS col2 FROM tab0
----
1122
2
6806

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL = ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + col0 - - col1 col0 FROM tab1 AS cor0
----
131
189
83

query I rowsort
SELECT + col0 + + col1 * - col2 AS col1 FROM tab2
----
-1456
-567
-830

query I rowsort
SELECT ALL + col0 * - col0 + col0 FROM tab0 cor0
----
-1190
-552
-7832

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL < ( + col0 )
----

query I rowsort
SELECT ALL cor0.col0 + col0 * + col1 FROM tab1 AS cor0
----
1120
704
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-2251
SELECT col1 * tab0.col2 * - col2 + col2 DIV col1 AS col0 FROM tab0
----
-611884
-93654
-97

skipif mysql # not compatible
query I rowsort label-2251
SELECT col1 * tab0.col2 * - col2 + col2 / col1 AS col0 FROM tab0
----
-611884
-93654
-97

query I rowsort
SELECT col0 * + col0 + col2 AS col2 FROM tab2 cor0
----
6110
6279
76

query I rowsort
SELECT + - col0 * cor0.col0 + - cor0.col1 + + cor0.col2 AS col0 FROM tab0 AS cor0
----
-1321
-629
-7930

query I rowsort
SELECT ALL col1 + + col2 * + col2 AS col2 FROM tab2 cor0
----
1461
735
760

onlyif mysql # use DIV operator for integer division
query I rowsort label-2255
SELECT DISTINCT + col0 DIV col2 AS col2 FROM tab1 cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-2255
SELECT DISTINCT + col0 / col2 AS col2 FROM tab1 cor0
----
0
1

query I rowsort
SELECT + tab0.col0 - col1 FROM tab0
----
-2
-62
-62

query I rowsort
SELECT DISTINCT + col0 * col0 * + col2 FROM tab0
----
1225
19008
649522

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 48 col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 31c94943c073954e4ca20b170ab61f8c

query I rowsort
SELECT - col1 + 70 FROM tab2
----
11
39
53

query I rowsort
SELECT DISTINCT + col1 + + col2 * - 72 FROM tab0
----
-2290
-5813
25

query I rowsort
SELECT DISTINCT - col2 + + 92 AS col0 FROM tab2
----
54
65
66

query I rowsort
SELECT + col1 + + ( - 81 ) FROM tab1
----
-55
-68
-71

onlyif mysql # use DIV operator for integer division
query I rowsort label-2263
SELECT DISTINCT tab0.col1 + + tab0.col2 DIV col2 FROM tab0
----
87
92
98

skipif mysql # not compatible
query I rowsort label-2263
SELECT DISTINCT tab0.col1 + + tab0.col2 / col2 FROM tab0
----
87
92
98

query I rowsort
SELECT DISTINCT + 69 AS col2 FROM tab1, tab1 AS cor0
----
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + cor0.col2 * + col1 col0 FROM tab1 AS cor0
----
1261
1430
580

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2266
SELECT DISTINCT + cor0.col0 * CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2266
SELECT DISTINCT + cor0.col0 * CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2267
SELECT DISTINCT + - col0 + - 4 DIV 23 FROM tab1 AS cor0
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-2267
SELECT DISTINCT + - col0 + - 4 / 23 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT DISTINCT - + cor0.col1 + - 78 FROM tab1 AS cor0
----
-104
-88
-91

query I rowsort
SELECT ALL - col2 + col2 AS col2 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT ( + col2 + + col1 ) * - tab1.col2 FROM tab1
----
-10464
-3819
-4320

query I rowsort
SELECT col2 + + 94 * + col1 FROM tab2
----
1636
2941
5572

query I rowsort
SELECT - ( + col2 ) + col1 AS col0 FROM tab1
----
-28
-47
-83

query I rowsort
SELECT - col1 + 73 AS col0 FROM tab1
----
47
60
63

query I rowsort
SELECT - tab0.col1 * col0 + + col0 * ( ( col2 ) + col1 ) FROM tab0
----
35
7298
792

query I rowsort
SELECT - tab0.col0 AS col2 FROM tab0, tab2 AS cor0, tab1 cor1
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8

query I rowsort
SELECT ALL + tab2.col1 * 99 AS col2 FROM tab2
----
1683
3069
5841

query I rowsort
SELECT ALL + tab0.col0 * - 39 FROM tab0
----
-1365
-3471
-936

onlyif mysql # use DIV operator for integer division
query I rowsort label-2278
SELECT DISTINCT col2 DIV + col2 + + cor0.col1 - - col1 AS col0 FROM tab1 AS cor0
----
21
27
53

skipif mysql # not compatible
query I rowsort label-2278
SELECT DISTINCT col2 / + col2 + + cor0.col1 - - col1 AS col0 FROM tab1 AS cor0
----
21
27
53

query I rowsort
SELECT - 90 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f6f26b9a04da14807208b93d507095c5

query I rowsort
SELECT + col0 * - col0 + ( col0 ) * col1 + col2 * + cor0.col2 * col2 AS col2 FROM tab0 AS cor0
----
2171
37425
551546

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 * - col1 + + col1 col0 FROM tab2 AS cor0
----
1360
248
4661

query I rowsort
SELECT DISTINCT - + ( col2 ) * 23 - ( + col1 ) AS col0 FROM tab1 AS cor0
----
-1268
-1321
-2221

query I rowsort
SELECT ALL - 19 + col1 - ( col1 ) FROM tab0 AS cor0
----
-19
-19
-19

onlyif mysql # use DIV operator for integer division
query I rowsort label-2284
SELECT DISTINCT 90 DIV col1 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-2284
SELECT DISTINCT 90 / col1 FROM tab0
----
0
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2285
SELECT ALL + col2 * - col2 / CAST( NULL AS DECIMAL ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2285
SELECT ALL + col2 * - col2 / CAST ( NULL AS REAL ) AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT 10 * col0 * - 48 AS col2 FROM tab0
----
-11520
-16800
-42720

query I rowsort
SELECT + 6 + - col0 + + 23 AS col2 FROM tab0 AS cor0
----
-6
-60
5

query I rowsort
SELECT + col0 * - ( + col2 ) + + col1 FROM tab0 AS cor0
----
-706
-7207
62

query I rowsort
SELECT + col2 * 89 FROM tab0 AS cor0
----
2937
7298
89

query I rowsort
SELECT - col1 * + 7 FROM tab1 AS cor0
----
-182
-70
-91

query I rowsort
SELECT DISTINCT - - col0 + - 24 * + col2 AS col0 FROM tab2 AS cor0
----
-546
-641
-833

onlyif mysql # use DIV operator for integer division
query I rowsort label-2292
SELECT ALL - col2 * tab0.col2 DIV - ( - col2 ) FROM tab0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-2292
SELECT ALL - col2 * tab0.col2 / - ( - col2 ) FROM tab0
----
-1
-33
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 + col1 * + 9 col0 FROM tab2 cor0
----
191
306
557

query I rowsort
SELECT ALL + col0 * 44 FROM tab1 AS cor0
----
132
2816
3520

query I rowsort
SELECT + 36 * col2 + + cor0.col1 * + col2 FROM tab2 AS cor0
----
1809
2014
2470

query I rowsort
SELECT DISTINCT col0 - - 56 * - col0 FROM tab0 AS cor0
----
-1320
-1925
-4895

query I rowsort
SELECT 5 + - 20 FROM tab2 AS cor0
----
-15
-15
-15

query I rowsort
SELECT 99 * - 87 * col0 FROM tab2
----
-60291
-671814
-680427

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2299
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - col0 AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2299
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - col0 AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - col0 * + col1 * + col0 AS col1 FROM tab2 AS cor0
----
-106097
-1519
-358956

query I rowsort
SELECT ALL - 74 + col0 * - col2 + + 38 AS col0 FROM tab2 cor0
----
-2064
-225
-3038

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * 11 + col1 col0 FROM tab1
----
1069
620
637

onlyif mysql # use DIV operator for integer division
query I rowsort label-2303
SELECT - col1 - cor0.col2 DIV + cor0.col0 col0 FROM tab2 AS cor0
----
-17
-34
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2303
SELECT - col1 - cor0.col2 / + cor0.col0 col0 FROM tab2 AS cor0
----
-17
-34
-59

query I rowsort
SELECT + - col2 * 68 + - col0 FROM tab1 AS cor0
----
-3675
-3940
-6608

onlyif mysql # use DIV operator for integer division
query I rowsort label-2305
SELECT + col2 DIV + 44 - + cor0.col0 AS col2 FROM tab2 AS cor0
----
-7
-78
-79

skipif mysql # not compatible
query I rowsort label-2305
SELECT + col2 / + 44 - + cor0.col0 AS col2 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT + col1 * - col2 + - col2 + 99 FROM tab0 AS cor0
----
-2772
-7445
1

query I rowsort
SELECT - cor0.col1 * 87 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 352c4b1af5f20fae6e0ec2fd2c3a36ec

onlyif mysql # use DIV operator for integer division
query I rowsort label-2308
SELECT ALL + col2 DIV col2 AS col0 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2308
SELECT ALL + col2 / col2 AS col0 FROM tab1
----
1
1
1

query I rowsort
SELECT ALL 64 - + tab1.col1 * - col1 * + col0 FROM tab1
----
13584
2092
6464

query I rowsort
SELECT ALL col1 - - 78 AS col2 FROM tab0
----
164
169
175

query I rowsort
SELECT ALL - col1 * 14 FROM tab1 cor0
----
-140
-182
-364

query I rowsort
SELECT + ( ( - cor0.col1 ) ) + - col2 * - 44 FROM tab0 AS cor0
----
-53
1366
3517

query I rowsort
SELECT 85 + + col0 AS col2 FROM tab0 AS cor0
----
109
120
174

query I rowsort
SELECT + col1 + col1 * + col2 AS col1 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT DISTINCT - + 1 * + col1 FROM tab0 AS cor0
----
-86
-91
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 91 col2 FROM tab0 AS cor0
----
91

query I rowsort
SELECT DISTINCT - 11 + + col1 FROM tab1 AS cor0
----
-1
15
2

query I rowsort
SELECT DISTINCT + + col1 * - cor0.col0 AS col2 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT DISTINCT - 2 AS col2 FROM tab1 cor0
----
-2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col2 * - col1 col1 FROM tab1 cor0
----
1248
1404
570

query I rowsort
SELECT DISTINCT + ( + tab0.col1 ) * col2 - col2 FROM tab0
----
2805
7380
96

query I rowsort
SELECT DISTINCT col0 * 78 - col0 FROM tab2
----
539
6006
6083

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2323
SELECT ALL col1 + col1 - - CAST( NULL AS SIGNED ) col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2323
SELECT ALL col1 + col1 - - CAST ( NULL AS INTEGER ) col0 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col1 * col1 + + col0 FROM tab0 cor0
----
-7372
-8192
-9374

query I rowsort
SELECT ALL col2 + cor0.col2 * col1 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT + 82 * + col2 + - 32 AS col2 FROM tab2 AS cor0
----
2100
2182
3084

query I rowsort
SELECT DISTINCT - - col1 * + cor0.col1 + - cor0.col0 FROM tab2 AS cor0
----
210
3403
954

query I rowsort
SELECT DISTINCT + col0 - - col1 * - col2 FROM tab1 AS cor0
----
-1168
-1401
-506

query I rowsort
SELECT - col0 * 52 + + col2 FROM tab2
----
-337
-4030
-4070

query I rowsort
SELECT col2 + 32 * col2 AS col0 FROM tab2 AS cor0
----
1254
858
891

onlyif mysql # use DIV operator for integer division
query I rowsort label-2331
SELECT DISTINCT + col1 * cor0.col0 DIV col0 + col1 AS col2 FROM tab0 AS cor0
----
172
182
194

skipif mysql # not compatible
query I rowsort label-2331
SELECT DISTINCT + col1 * cor0.col0 / col0 + col1 AS col2 FROM tab0 AS cor0
----
172
182
194

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2332
SELECT ALL - col1 * - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2332
SELECT ALL - col1 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + + cor0.col2 * - ( cor0.col1 + col1 ) FROM tab1 AS cor0
----
-1140
-2496
-2808

query I rowsort
SELECT DISTINCT col2 * col0 * col2 AS col0 FROM tab2 cor0
----
114076
5103
52728

query I rowsort
SELECT DISTINCT col1 + + 68 AS col0 FROM tab2 cor0
----
127
85
99

query I rowsort
SELECT - + col0 + + col1 * + col1 AS col1 FROM tab0 cor0
----
7372
8192
9374

onlyif mysql # use DIV operator for integer division
query I rowsort label-2337
SELECT ALL - - ( cor0.col2 ) + + col0 DIV - col1 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-2337
SELECT ALL - - ( cor0.col2 ) + + col0 / - col1 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT cor2.col1 * + 34 FROM tab0 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab2, tab0 AS cor2
----
243 values hashing to cffe185b1671d224d4b515c648f50b5e

query I rowsort
SELECT ( col1 ) * - cor0.col2 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT col1 + + col2 * col2 * - col0 FROM tab0 AS cor0
----
-26050
-598345
62

query I rowsort
SELECT col1 * 23 AS col0 FROM tab0 AS cor0
----
1978
2093
2231

query I rowsort
SELECT ALL + col2 - col1 FROM tab1 cor0
----
28
47
83

query I rowsort
SELECT DISTINCT - 98 * col0 FROM tab0 AS cor0
----
-2352
-3430
-8722

query I rowsort
SELECT ALL + cor0.col1 * col2 AS col0 FROM tab2 cor0
----
1534
646
837

query I rowsort
SELECT ALL 4 + + 59 FROM tab2 cor0
----
63
63
63

query I rowsort
SELECT DISTINCT 54 + + col2 AS col1 FROM tab0 AS cor0
----
136
55
87

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-2348
SELECT DISTINCT + col0 * - col1 * - col2 + CAST( NULL AS SIGNED ) * 58 * + col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2348
SELECT DISTINCT + col0 * - col1 * - col2 + CAST ( NULL AS INTEGER ) * 58 * + col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2349
SELECT col2 DIV - 70 + + col0 AS col0 FROM tab0
----
24
35
88

skipif mysql # not compatible
query I rowsort label-2349
SELECT col2 / - 70 + + col0 AS col0 FROM tab0
----
24
35
88

query I rowsort
SELECT - tab1.col1 - + col0 * col0 FROM tab1
----
-35
-4106
-6413

onlyif mysql # use DIV operator for integer division
query I rowsort label-2351
SELECT + 72 + ( col2 ) DIV 43 AS col0 FROM tab2
----
72
72
72

skipif mysql # not compatible
query I rowsort label-2351
SELECT + 72 + ( col2 ) / 43 AS col0 FROM tab2
----
72
72
72

query I rowsort
SELECT DISTINCT - + 47 * col1 AS col0 FROM tab0 AS cor0
----
-4042
-4277
-4559

query I rowsort
SELECT - 98 + + col1 AS col1 FROM tab2 AS cor0
----
-39
-67
-81

query I rowsort
SELECT ALL - col1 * + col2 * + col2 + col1 FROM tab0 AS cor0
----
-611793
-93568
0

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 col2 + - col0 * + col0 FROM tab2 AS cor0
----
-22
-6058
-6203

skipif mysql # not compatible
query I rowsort
SELECT ALL - + CAST ( col0 AS REAL ) * + col0 + ( + col0 ) * - col1 FROM tab0 AS cor0
----
-16020
-2640
-4620

query I rowsort
SELECT DISTINCT 40 * ( col0 ) + - col2 AS col1 FROM tab0 AS cor0
----
1399
3478
927

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 70 * tab2.col1 col2 FROM tab2, tab1 AS cor0
----
9 values hashing to f768aa8467156c86f2503935ffbf2688

query I rowsort
SELECT - 10 * - 20 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1c734013817d0afa325fe4159928c4c4

query I rowsort
SELECT + col1 + 80 FROM tab1 AS cor0
----
106
90
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 * + col0 - + col2 * col2 col1 FROM tab1 AS cor0
----
-2609
-2838
-8176

query I rowsort
SELECT cor0.col1 * 30 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 9693f5ea9151a0c78bc109319136ccd6

query I rowsort
SELECT - 35 + + col0 FROM tab1 AS cor0
----
-32
29
45

query I rowsort
SELECT DISTINCT - tab2.col1 + tab2.col0 FROM tab2
----
-24
19
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + + col2 * + col1 col2 FROM tab2
----
1560
684
864

query I rowsort
SELECT + - col0 + + 24 AS col1 FROM tab2 AS cor0
----
-54
-55
17

onlyif mysql # use DIV operator for integer division
query I rowsort label-2368
SELECT - col1 + col0 DIV + col0 AS col1 FROM tab0
----
-85
-90
-96

skipif mysql # not compatible
query I rowsort label-2368
SELECT - col1 + col0 / + col0 AS col1 FROM tab0
----
-85
-90
-96

query I rowsort
SELECT - col1 * 41 + col1 AS col0 FROM tab2 AS cor0
----
-1240
-2360
-680

query I rowsort
SELECT DISTINCT col2 + + col1 * + col0 * cor0.col2 AS col0 FROM tab0 AS cor0
----
3396
664200
68145

query I rowsort
SELECT DISTINCT - col0 * ( + col0 * col2 ) FROM tab2 cor0
----
-1323
-158184
-237158

query I rowsort
SELECT ALL - col1 + 59 FROM tab1 AS cor0
----
33
46
49

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2373
SELECT DISTINCT + - col2 * + col2 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2373
SELECT DISTINCT + - col2 * + col2 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 * cor0.col0 + 21 * - col1 col2 FROM tab0 cor0
----
-2072
-2598
-9209

query I rowsort
SELECT + cor0.col1 * + 0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + ( col1 ) * col0 + - col2 AS col2 FROM tab2 AS cor0
----
1305
190
4576

onlyif mysql # use DIV operator for integer division
query I rowsort label-2377
SELECT + col0 + col0 DIV + col0 FROM tab2 AS cor0
----
79
8
80

skipif mysql # not compatible
query I rowsort label-2377
SELECT + col0 + col0 / + col0 FROM tab2 AS cor0
----
79
8
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-2378
SELECT + - 25 DIV - ( cor0.col1 ) + - cor0.col2 FROM tab0 AS cor0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-2378
SELECT + - 25 / - ( cor0.col1 ) + - cor0.col2 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT ALL - ( + 75 ) * cor0.col0 + 82 FROM tab2 AS cor0
----
-443
-5768
-5843

query I rowsort
SELECT ALL - 23 * - col0 + col1 FROM tab0 AS cor0
----
2138
638
902

query I rowsort
SELECT ALL + 95 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3

query I rowsort
SELECT ( + col1 ) - cor0.col0 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT ALL - ( - 81 ) FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 0a85639e0dddbffdab2cb16b027cb360

query I rowsort
SELECT ALL + 28 * - cor0.col1 FROM tab1, tab2 AS cor0
----
9 values hashing to c79572642404bbb8aa0a6695400bcf4e

query I rowsort
SELECT - 61 + - col0 AS col1 FROM tab1 AS cor0
----
-125
-141
-64

query I rowsort
SELECT - ( - 52 ) * col1 + + col1 * - ( col1 * tab0.col2 ) AS col1 FROM tab0
----
-239596
-4365
-674310

query I rowsort
SELECT ALL + + cor0.col2 * col0 * - col1 AS col0 FROM tab0 AS cor0
----
-3395
-664118
-68112

query I rowsort
SELECT ALL + ( col2 ) + col2 + col1 AS col0 FROM tab0 AS cor0
----
152
255
99

query I rowsort
SELECT DISTINCT - ( + col0 ) * col1 FROM tab2
----
-1343
-217
-4602

query I rowsort
SELECT DISTINCT 66 + - cor0.col2 * ( + col1 * + col0 ) AS col2 FROM tab0 AS cor0
----
-3329
-664052
-68046

query I rowsort
SELECT - 99 + - col0 AS col0 FROM tab0 AS cor0
----
-123
-134
-188

query I rowsort
SELECT + col1 * col1 * + col0 + col0 AS col0 FROM tab0 AS cor0
----
177528
329350
737098

query I rowsort
SELECT 8 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57

query I rowsort
SELECT DISTINCT - 28 AS col0 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
-28

onlyif mysql # use DIV operator for integer division
query I rowsort label-2395
SELECT cor0.col0 + + col2 DIV col0 AS col2 FROM tab2 AS cor0
----
10
78
79

skipif mysql # not compatible
query I rowsort label-2395
SELECT cor0.col0 + + col2 / col0 AS col2 FROM tab2 AS cor0
----
10
78
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 17 * - cor0.col2 + - col2 * - cor0.col0 col1 FROM tab0 AS cor0
----
18
231
5904

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 + + col1 * - ( 95 + col2 ) col1 FROM tab1 AS cor0
----
-1510
-2470
-3848

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2398
SELECT 18 * cor0.col1 + ( ( - cor0.col1 ) ) * + CAST( 76 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-1508
-580
-754

skipif mysql # not compatible
query I rowsort label-2398
SELECT 18 * cor0.col1 + ( ( - cor0.col1 ) ) * + CAST ( 76 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-1508
-580
-754

query I rowsort
SELECT DISTINCT col2 * col2 * - ( + 11 * col2 ) + col2 AS col0 FROM tab1
----
-1732050
-2037066
-9732000

query I rowsort
SELECT 5 * + col0 + col1 * - 38 AS col0 FROM tab2
----
-1143
-1852
-251

query I rowsort
SELECT ALL cor0.col0 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT DISTINCT - col0 * ( 94 ) + + col1 AS col1 FROM tab2
----
-627
-7273
-7409

query I rowsort
SELECT DISTINCT - 68 * - 23 FROM tab0, tab2 AS cor0
----
1564

query I rowsort
SELECT + + col0 * cor0.col1 * 34 FROM tab2 AS cor0
----
156468
45662
7378

query I rowsort
SELECT - 6 AS col0 FROM tab2 cor0
----
-6
-6
-6

query I rowsort
SELECT 2 - col2 AS col2 FROM tab1 AS cor0
----
-52
-55
-94

query I rowsort
SELECT + 48 + col0 AS col0 FROM tab2 cor0
----
126
127
55

query I rowsort
SELECT - + 7 AS col2 FROM tab2 AS cor0
----
-7
-7
-7

query I rowsort
SELECT ALL tab1.col0 AS col0 FROM tab0, tab2 cor0 CROSS JOIN tab1, tab0 cor1
----
81 values hashing to e28bf7f922650ca423ade3642ce0285b

query I rowsort
SELECT - cor0.col0 + 49 * cor0.col0 FROM tab2 AS cor0
----
336
3744
3792

query I rowsort
SELECT DISTINCT + col0 + 92 + + cor0.col0 AS col0 FROM tab0 AS cor0
----
140
162
270

query I rowsort
SELECT DISTINCT 92 + col2 * col1 + - 28 FROM tab2 AS cor0
----
1598
710
901

query I rowsort
SELECT ( - ( - cor0.col0 ) ) + cor0.col1 FROM tab1 AS cor0
----
29
74
93

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2414
SELECT col2 - - ( cor0.col0 + - CAST( + col0 AS SIGNED ) ) FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-2414
SELECT col2 - - ( cor0.col0 + - CAST ( + col0 AS INTEGER ) ) FROM tab1 AS cor0
----
54
57
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-2415
SELECT - col1 DIV + col2 + - ( col1 + + col0 ) * col2 AS col2 FROM tab1
----
-1566
-4218
-8928

skipif mysql # not compatible
query I rowsort label-2415
SELECT - col1 / + col2 + - ( col1 + + col0 ) * col2 AS col2 FROM tab1
----
-1566
-4218
-8928

query I rowsort
SELECT - 53 * + col0 FROM tab0 AS cor0
----
-1272
-1855
-4717

query I rowsort
SELECT 16 * col1 - 68 FROM tab1
----
140
348
92

query I rowsort
SELECT + 13 * col2 * 23 - + tab2.col0 FROM tab2
----
11283
7696
8066

query I rowsort
SELECT ALL + + cor0.col1 + - col1 * - col1 FROM tab2 cor0
----
306
3540
992

query I rowsort
SELECT - col0 * + col0 + col1 AS col1 FROM tab1
----
-4086
-6387
17

query I rowsort
SELECT + - col2 * + col1 * 4 AS col0 FROM tab1 AS cor0
----
-2280
-4992
-5616

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 * - cor0.col1 + 91 col2 FROM tab1 AS cor0
----
191
260
767

query I rowsort
SELECT ALL + col0 * cor0.col2 - cor0.col0 FROM tab1 AS cor0
----
159
3584
7600

onlyif mysql # use DIV operator for integer division
query I rowsort label-2424
SELECT DISTINCT - cor0.col0 DIV 57 AS col0 FROM tab2 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-2424
SELECT DISTINCT - cor0.col0 / 57 AS col0 FROM tab2 AS cor0
----
-1
0

query I rowsort
SELECT DISTINCT - col0 * - 70 + col1 FROM tab1 AS cor0
----
236
4490
5613

query I rowsort
SELECT DISTINCT - col0 * + 45 + - 1 FROM tab0 AS cor0
----
-1081
-1576
-4006

query I rowsort
SELECT ALL col2 * 87 * col0 + - cor0.col0 + 12 AS col1 FROM tab2 cor0
----
16448
176370
261107

query I rowsort
SELECT + 94 + cor0.col2 * + col1 AS col1 FROM tab1 AS cor0
----
1342
1498
664

query I rowsort
SELECT + col0 * 85 * - cor0.col0 FROM tab2 AS cor0
----
-4165
-517140
-530485

query I rowsort
SELECT ALL + + col0 * + 25 AS col0 FROM tab1 cor0
----
1600
2000
75

query I rowsort
SELECT ALL - col0 * col2 + col0 * + ( + col2 ) FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + 67 * col1 + cor0.col2 * - 85 * - col2 FROM tab0 cor0
----
577637
6584
98327

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2433
SELECT DISTINCT - 57 * cor0.col1 + CAST( + col0 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-1760
-3285
-890

skipif mysql # not compatible
query I rowsort label-2433
SELECT DISTINCT - 57 * cor0.col1 + CAST ( + col0 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-1760
-3285
-890

query I rowsort
SELECT DISTINCT - 9 FROM tab1 cor0
----
-9

query I rowsort
SELECT DISTINCT - col0 * + 71 FROM tab2
----
-497
-5538
-5609

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 col0 FROM tab0, tab2 cor0
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5

query I rowsort
SELECT - + col0 + + col0 * 86 AS col1 FROM tab1 AS cor0
----
255
5440
6800

query I rowsort
SELECT col2 * cor0.col1 + - col2 AS col1 FROM tab0 AS cor0
----
2805
7380
96

query I rowsort
SELECT DISTINCT + - col2 * col0 + + col1 FROM tab0 AS cor0
----
-706
-7207
62

query I rowsort
SELECT ALL + + 42 AS col0 FROM tab0 AS cor0
----
42
42
42

query I rowsort
SELECT ALL + 10 AS col0 FROM tab1
----
10
10
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * col1 + - col2 col1 FROM tab2 cor0
----
1508
608
810

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2443
SELECT DISTINCT - + col0 * - col2 + + CAST( NULL AS SIGNED ) / col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2443
SELECT DISTINCT - + col0 * - col2 + + CAST ( NULL AS INTEGER ) / col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT 41 + col0 + ( + col0 ) FROM tab0 AS cor0
----
111
219
89

query I rowsort
SELECT ( col2 ) + + 81 FROM tab2 AS cor0
----
107
108
119

query I rowsort
SELECT ALL - ( col1 ) + col0 * - col1 FROM tab1
----
-104
-1053
-650

query I rowsort
SELECT - 43 * col2 + - col2 + col0 FROM tab0 AS cor0
----
-1428
-3519
-9

query I rowsort
SELECT ALL + ( col0 ) * ( + col2 ) * - col1 FROM tab2 AS cor0
----
-119652
-51034
-5859

query I rowsort
SELECT DISTINCT + 57 FROM tab0 cor0
----
57

query I rowsort
SELECT - 34 * - col0 + + ( + col1 ) * col1 + + col1 FROM tab2 AS cor0
----
1230
2992
6192

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - col1 + 38 col2 FROM tab0 AS cor0
----
135
2876
7500

query I rowsort
SELECT 42 - - 71 FROM tab1 AS cor0
----
113
113
113

query I rowsort
SELECT + + col1 + + cor0.col0 AS col2 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT + ( 48 ) - + col1 FROM tab2 cor0
----
-11
17
31

query I rowsort
SELECT DISTINCT 54 - + col0 AS col2 FROM tab1 AS cor0
----
-10
-26
51

query I rowsort
SELECT DISTINCT + + col2 * + col2 AS col0 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT ALL + + col2 * 35 AS col0 FROM tab2 AS cor0
----
1330
910
945

query I rowsort
SELECT DISTINCT 23 + col1 * col1 * cor0.col2 FROM tab1 AS cor0
----
16247
36527
5723

query I rowsort
SELECT ALL 93 + + col0 FROM tab0 AS cor0
----
117
128
182

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( col1 AS REAL ) * + col2 - - col2 * + col1 FROM tab2 AS cor0
----
1292
1674
3068

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1, tab0 cor1, tab0 cor2, tab1 AS cor3
----
3645 values hashing to d0428a2939e158628acd4bd449471d5b

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2462
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + col0 * col2 col1 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2462
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + col0 * col2 col1 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + + col0 col2 FROM tab1
----
-23
54
67

query I rowsort
SELECT ALL 77 * 76 + col1 AS col1 FROM tab2
----
5869
5883
5911

query I rowsort
SELECT ALL col1 + + col1 * col0 FROM tab0
----
2150
3492
8190

query I rowsort
SELECT ALL 3 + - col2 AS col0 FROM tab0
----
-30
-79
2

query I rowsort
SELECT - + 11 * - cor0.col1 + cor0.col2 AS col2 FROM tab2 AS cor0
----
225
368
675

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2468
SELECT DISTINCT + CAST( + 25 AS SIGNED ) + - col1 + col0 FROM tab1 AS cor0
----
2
79
92

skipif mysql # not compatible
query I rowsort label-2468
SELECT DISTINCT + CAST ( + 25 AS INTEGER ) + - col1 + col0 FROM tab1 AS cor0
----
2
79
92

query I rowsort
SELECT ALL - ( - col2 ) + col2 AS col0 FROM tab0 AS cor0
----
164
2
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * 51 + - col1 col0 FROM tab2 AS cor0
----
1550
2950
850

query I rowsort
SELECT DISTINCT ( col0 ) + + col0 * ( col0 ) FROM tab2 AS cor0
----
56
6162
6320

query I rowsort
SELECT + col0 * ( - tab1.col2 ) AS col0 FROM tab1
----
-162
-3648
-7680

query I rowsort
SELECT + - cor0.col0 * + col1 FROM tab0 cor0
----
-2064
-3395
-8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-2474
SELECT + col2 DIV col0 - cor0.col0 FROM tab0 AS cor0
----
-23
-35
-89

skipif mysql # not compatible
query I rowsort label-2474
SELECT + col2 / col0 - cor0.col0 FROM tab0 AS cor0
----
-23
-35
-89

onlyif mysql # use DIV operator for integer division
query I rowsort label-2475
SELECT DISTINCT - - col0 * ( col2 ) DIV + col2 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-2475
SELECT DISTINCT - - col0 * ( col2 ) / + col2 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT DISTINCT + - 71 AS col0 FROM tab2 AS cor0
----
-71

query I rowsort
SELECT + col1 + - 14 * + col1 FROM tab1 AS cor0
----
-130
-169
-338

query I rowsort
SELECT 81 * 67 FROM tab1 cor0
----
5427
5427
5427

query I rowsort
SELECT + col0 + col2 * col0 * col1 AS col2 FROM tab0 AS cor0
----
3430
664207
68136

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2480
SELECT - - 47 * col0 + - CAST( NULL AS SIGNED ) * 74 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2480
SELECT - - 47 * col0 + - CAST ( NULL AS INTEGER ) * 74 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - cor0.col0 + + cor0.col2 * + 5 AS col2 FROM tab1 AS cor0
----
221
267
400

onlyif mysql # use DIV operator for integer division
query I rowsort label-2482
SELECT - + col1 * col1 + - cor0.col1 DIV 21 AS col0 FROM tab1 AS cor0
----
-100
-169
-677

skipif mysql # not compatible
query I rowsort label-2482
SELECT - + col1 * col1 + - cor0.col1 / 21 AS col0 FROM tab1 AS cor0
----
-100
-169
-677

query I rowsort
SELECT - col2 * ( col1 ) + + cor0.col2 * - col2 AS col1 FROM tab1 AS cor0
----
-10464
-3819
-4320

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2484
SELECT - col2 * + CAST( NULL AS SIGNED ) + - col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2484
SELECT - col2 * + CAST ( NULL AS INTEGER ) + - col2 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - cor0.col1 * 0 + col0 * - col0 FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT + col2 * 46 - + 94 FROM tab1 AS cor0
----
2390
2528
4322

onlyif mysql # use DIV operator for integer division
query I rowsort label-2487
SELECT + - cor0.col1 DIV 11 + + ( + col2 ) AS col1 FROM tab1 AS cor0
----
52
57
95

skipif mysql # not compatible
query I rowsort label-2487
SELECT + - cor0.col1 / 11 + + ( + col2 ) AS col1 FROM tab1 AS cor0
----
52
57
95

query I rowsort
SELECT - - cor0.col2 + col0 * + 73 * col0 FROM tab0 cor0
----
42081
578315
89426

query I rowsort
SELECT DISTINCT col0 + + col1 * col2 AS col0 FROM tab2
----
1612
725
844

query I rowsort
SELECT ALL 38 * - col2 + + 99 + col2 AS col2 FROM tab0
----
-1122
-2935
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-2491
SELECT + col2 + col2 DIV 10 AS col0 FROM tab2 AS cor0
----
28
29
41

skipif mysql # not compatible
query I rowsort label-2491
SELECT + col2 + col2 / 10 AS col0 FROM tab2 AS cor0
----
28
29
41

query I rowsort
SELECT + - cor0.col2 + 3 AS col1 FROM tab2 AS cor0
----
-23
-24
-35

query I rowsort
SELECT DISTINCT - 62 AS col0 FROM tab1
----
-62

query I rowsort
SELECT + - col2 - + col0 * - col0 * + col0 FROM tab0 AS cor0
----
13791
42874
704887

query I rowsort
SELECT DISTINCT - col2 * - 29 + + cor0.col0 * col2 AS col1 FROM tab0 AS cor0
----
1749
64
9676

query I rowsort
SELECT - col2 * - col2 - col1 FROM tab2 AS cor0
----
1427
617
698

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2497
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - 13 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2497
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - 13 AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - + col1 - cor0.col2 FROM tab1 AS cor0
----
-109
-67
-80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2499
SELECT ALL - CAST( NULL AS SIGNED ) / 5 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2499
SELECT ALL - CAST ( NULL AS INTEGER ) / 5 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col1 * 62 FROM tab0 AS cor0
----
-5332
-5642
-6014

query I rowsort
SELECT DISTINCT + - 26 * 70 + cor0.col2 FROM tab2 AS cor0
----
-1782
-1793
-1794

query I rowsort
SELECT col1 * - 73 AS col0 FROM tab1
----
-1898
-730
-949

query I rowsort
SELECT ALL - col2 - 99 AS col1 FROM tab0
----
-100
-132
-181

query I rowsort
SELECT DISTINCT + 9 AS col2 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
9

query I rowsort
SELECT 78 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4

query I rowsort
SELECT ALL - ( + col2 + col0 ) FROM tab1
----
-121
-176
-57

query I rowsort
SELECT DISTINCT col2 * - col2 * + col1 AS col1 FROM tab0
----
-611884
-93654
-97

query I rowsort
SELECT ALL + + tab2.col1 AS col2 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

query I rowsort
SELECT ALL - cor1.col1 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + 98 col2 FROM tab1 AS cor0
----
2
41
44

query I rowsort
SELECT DISTINCT + 51 + + 92 + col1 FROM tab0 cor0
----
229
234
240

query I rowsort
SELECT DISTINCT - cor0.col1 - col1 * col1 FROM tab2 AS cor0
----
-306
-3540
-992

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2513
SELECT ALL + CAST( NULL AS SIGNED ) * col2 + - col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2513
SELECT ALL + CAST ( NULL AS INTEGER ) * col2 + - col1 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( 11 ) * col0 AS col2 FROM tab2 AS cor0
----
77
858
869

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 95 col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1c7934db0632c123332c43f17b661d6c

query I rowsort
SELECT + tab2.col0 - + col1 * - col0 FROM tab2
----
1422
224
4680

query I rowsort
SELECT ( col2 ) * tab0.col2 + + col2 * - col1 FROM tab0
----
-1749
-738
-96

query I rowsort
SELECT DISTINCT ( - 71 * col0 ) FROM tab0
----
-1704
-2485
-6319

onlyif mysql # use DIV operator for integer division
query I rowsort label-2519
SELECT DISTINCT + 47 DIV - 43 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-2519
SELECT DISTINCT + 47 / - 43 FROM tab2
----
-1

query I rowsort
SELECT + 40 FROM tab0, tab1 AS cor0
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3

query I rowsort
SELECT 46 + - 70 * - col0 FROM tab1
----
256
4526
5646

query I rowsort
SELECT ALL - ( col2 ) * - col0 AS col2 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT + tab0.col1 * col2 * ( - col0 ) FROM tab0
----
-3395
-664118
-68112

query I rowsort
SELECT ALL tab1.col0 * col0 - 55 FROM tab1
----
-46
4041
6345

query I rowsort
SELECT - - col0 + - col2 * + col1 * - col2 FROM tab2 cor0
----
22606
24627
39962

skipif mysql # not compatible
query I rowsort
SELECT ALL cor0.col0 * CAST ( + col1 AS REAL ) + + col2 AS col1 FROM tab0 AS cor0
----
2097
3396
8181

onlyif mysql # use DIV operator for integer division
query I rowsort label-2527
SELECT ALL - col2 * col0 + col2 DIV + col2 + - col2 * + col1 FROM tab1 AS cor0
----
-1565
-4217
-8927

skipif mysql # not compatible
query I rowsort label-2527
SELECT ALL - col2 * col0 + col2 / + col2 + - col2 * + col1 FROM tab1 AS cor0
----
-1565
-4217
-8927

query I rowsort
SELECT ALL - col0 - 82 * + ( - col1 ) AS col0 FROM tab2 AS cor0
----
1315
2535
4760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + 24 col1 FROM tab2 AS cor0
----
-35
-7
7

query I rowsort
SELECT ALL + 50 - col0 * 91 AS col1 FROM tab2
----
-587
-7048
-7139

query I rowsort
SELECT DISTINCT - col1 - col1 * - 45 AS col1 FROM tab2
----
1364
2596
748

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2532
SELECT - col0 + - col0 - + CAST( col1 AS SIGNED ) AS col1 FROM tab0
----
-134
-167
-269

skipif mysql # not compatible
query I rowsort label-2532
SELECT - col0 + - col0 - + CAST ( col1 AS INTEGER ) AS col1 FROM tab0
----
-134
-167
-269

query I rowsort
SELECT DISTINCT 25 AS col0 FROM tab0, tab2 AS cor0
----
25

query I rowsort
SELECT + col1 * 84 + col0 AS col0 FROM tab0 AS cor0
----
7248
7733
8183

query I rowsort
SELECT - cor0.col1 - ( 49 * cor0.col0 + - col0 ) AS col1 FROM tab0 AS cor0
----
-1238
-1777
-4363

query I rowsort
SELECT ALL - cor0.col2 * - ( - cor0.col1 ) * col1 + col0 AS col0 FROM tab0 AS cor0
----
-244044
-678953
-9374

query I rowsort
SELECT - col2 * col1 + + 54 FROM tab2 AS cor0
----
-1480
-592
-783

query I rowsort
SELECT ALL col2 + 81 AS col0 FROM tab0 AS cor0
----
114
163
82

query I rowsort
SELECT DISTINCT - col1 * col2 + col1 * - col0 FROM tab0 AS cor0
----
-15561
-3492
-4902

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2540
SELECT + cor0.col0 + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2540
SELECT + cor0.col0 + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 * + col2 + + 20 FROM tab0 AS cor0
----
1109
21
6744

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + col0 - col1 col0 FROM tab0 AS cor0
----
-2150
-3492
-8190

onlyif mysql # use DIV operator for integer division
query I rowsort label-2543
SELECT col1 * - col2 DIV + col2 + col1 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2543
SELECT col1 * - col2 / + col2 + col1 AS col1 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2544
SELECT DISTINCT + - col2 * + CAST( ( - col1 ) AS SIGNED ) + - col2 * - col2 FROM tab0 AS cor0
----
14186
3927
98

skipif mysql # not compatible
query I rowsort label-2544
SELECT DISTINCT + - col2 * + CAST ( ( - col1 ) AS INTEGER ) + - col2 * - col2 FROM tab0 AS cor0
----
14186
3927
98

query I rowsort
SELECT ALL + tab0.col1 + + col2 * - tab0.col2 AS col0 FROM tab0
----
-1003
-6633
96

query I rowsort
SELECT DISTINCT col0 + tab2.col1 + col1 AS col2 FROM tab2
----
113
196
69

query I rowsort
SELECT - tab1.col0 + col0 * + col1 FROM tab1
----
576
75
960

query I rowsort
SELECT + - col2 * + col0 + - col1 AS col0 FROM tab2 AS cor0
----
-2087
-220
-3019

query I rowsort
SELECT - col0 * + col0 + col2 * col0 + col1 AS col0 FROM tab0
----
-1093
-532
302

query I rowsort
SELECT DISTINCT tab0.col1 + tab0.col0 FROM tab0
----
110
132
180

query I rowsort
SELECT DISTINCT col1 + - col2 + + col2 * col2 FROM tab0
----
1142
6733
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-2552
SELECT + tab1.col1 DIV col1 + col0 * col2 + + tab1.col1 * col2 FROM tab1
----
1567
4219
8929

skipif mysql # not compatible
query I rowsort label-2552
SELECT + tab1.col1 / col1 + col0 * col2 + + tab1.col1 * col2 FROM tab1
----
1567
4219
8929

query I rowsort
SELECT col2 * - col2 * col1 FROM tab2
----
-22599
-24548
-39884

onlyif mysql # use DIV operator for integer division
query I rowsort label-2554
SELECT DISTINCT col1 + col0 DIV - col2 FROM tab1 AS cor0
----
13
26
9

skipif mysql # not compatible
query I rowsort label-2554
SELECT DISTINCT col1 + col0 / - col2 FROM tab1 AS cor0
----
13
26
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-2555
SELECT + col2 * col2 + - col0 DIV col1 AS col2 FROM tab2 AS cor0
----
1440
675
729

skipif mysql # not compatible
query I rowsort label-2555
SELECT + col2 * col2 + - col0 / col1 AS col2 FROM tab2 AS cor0
----
1440
675
729

onlyif mysql # use DIV operator for integer division
query I rowsort label-2556
SELECT - cor0.col1 + - col2 DIV col1 AS col0 FROM tab1 AS cor0
----
-15
-20
-28

skipif mysql # not compatible
query I rowsort label-2556
SELECT - cor0.col1 + - col2 / col1 AS col0 FROM tab1 AS cor0
----
-15
-20
-28

query I rowsort
SELECT ALL + tab2.col0 + tab2.col1 FROM tab2
----
137
38
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-2558
SELECT - col1 - col1 DIV + col2 FROM tab1 AS cor0
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-2558
SELECT - col1 - col1 / + col2 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT ALL + col2 * col1 * col2 AS col2 FROM tab2 AS cor0
----
22599
24548
39884

query I rowsort
SELECT DISTINCT + col2 + + col0 * - cor0.col0 * cor0.col2 AS col1 FROM tab2 AS cor0
----
-1296
-158158
-237120

query I rowsort
SELECT + 0 + col1 AS col2 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT - col2 + + cor0.col0 * col1 AS col2 FROM tab1 AS cor0
----
24
583
944

onlyif mysql # use DIV operator for integer division
query I rowsort label-2563
SELECT - cor0.col1 DIV col2 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2563
SELECT - cor0.col1 / col2 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT col2 + col1 * col2 FROM tab2 cor0
----
1560
684
864

query I rowsort
SELECT DISTINCT + col2 * - cor0.col0 * + col1 AS col1 FROM tab1 cor0
----
-36480
-4212
-99840

query I rowsort
SELECT + 0 - - col0 AS col0 FROM tab0 cor0
----
24
35
89

query I rowsort
SELECT col0 - cor0.col2 AS col0 FROM tab1 cor0
----
-16
-51
7

query I rowsort
SELECT + col0 * + ( col0 ) AS col0 FROM tab0
----
1225
576
7921

query I rowsort
SELECT 60 * + col0 AS col2 FROM tab0
----
1440
2100
5340

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2570
SELECT DISTINCT CAST( col0 * + col0 AS SIGNED ) + - 61 * col1 * col0 FROM tab1
----
-34944
-4749
-57040

skipif mysql # not compatible
query I rowsort label-2570
SELECT DISTINCT CAST ( col0 * + col0 AS INTEGER ) + - 61 * col1 * col0 FROM tab1
----
-34944
-4749
-57040

query I rowsort
SELECT DISTINCT tab0.col2 AS col1 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
1
33
82

query I rowsort
SELECT ( col2 * col1 + 34 ) AS col1 FROM tab0
----
131
2872
7496

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2573
SELECT ALL + ( col0 + - CAST( col1 AS SIGNED ) ) FROM tab1
----
-23
54
67

skipif mysql # not compatible
query I rowsort label-2573
SELECT ALL + ( col0 + - CAST ( col1 AS INTEGER ) ) FROM tab1
----
-23
54
67

query I rowsort
SELECT - 52 * - col0 + ( col2 ) + + col1 * 74 AS col0 FROM tab0 AS cor0
----
11444
7645
8999

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2575
SELECT col2 * col0 + CAST( col0 AS SIGNED ) + + cor0.col2 col0 FROM tab2 AS cor0
----
2132
223
3119

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2575
SELECT col2 * col0 + CAST ( col0 AS INTEGER ) + + cor0.col2 col0 FROM tab2 AS cor0
----
2132
223
3119

query I rowsort
SELECT - - col1 + - col0 * + col0 FROM tab1 AS cor0
----
-4086
-6387
17

query I rowsort
SELECT - ( col2 ) * - ( 75 ) * col1 AS col1 FROM tab0
----
212850
559650
7275

query I rowsort
SELECT DISTINCT + col0 * + 0 FROM tab1
----
0

query I rowsort
SELECT cor0.col0 + - 99 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to e564e0e4f9313dba39a4fd000fa54178

query I rowsort
SELECT - 89 * col1 AS col0 FROM tab0 AS cor0
----
-7654
-8099
-8633

query I rowsort
SELECT ALL - col2 + ( col1 ) FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT - - cor0.col0 * - col0 + - col1 * - 4 FROM tab2 AS cor0
----
-5848
-6173
75

query I rowsort
SELECT ALL + 92 AS col2 FROM tab0
----
92
92
92

query I rowsort
SELECT ALL col2 * 73 FROM tab2
----
1898
1971
2774

query I rowsort
SELECT - col0 * 47 AS col0 FROM tab1 AS cor0
----
-141
-3008
-3760

query I rowsort
SELECT ( cor0.col2 ) * cor0.col0 AS col1 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT ALL + col0 + col1 * - 60 AS col1 FROM tab1 AS cor0
----
-1557
-536
-700

query I rowsort
SELECT DISTINCT + - 23 FROM tab2 AS cor0
----
-23

query I rowsort
SELECT + cor0.col2 + col1 * + col0 AS col1 FROM tab0 AS cor0
----
2097
3396
8181

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2590
SELECT + + 35 + cor0.col0 * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2590
SELECT + + 35 + cor0.col0 * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 + + cor0.col0 * + 35 AS col0 FROM tab2 cor0
----
238
2652
2686

query I rowsort
SELECT ALL col1 * - col2 + - col1 AS col2 FROM tab1 cor0
----
-1261
-1430
-580

onlyif mysql # use DIV operator for integer division
query I rowsort label-2593
SELECT + col2 DIV + col2 + - ( - col0 ) + - col2 AS col0 FROM tab1 AS cor0
----
-15
-50
8

skipif mysql # not compatible
query I rowsort label-2593
SELECT + col2 / + col2 + - ( - col0 ) + - col2 AS col0 FROM tab1 AS cor0
----
-15
-50
8

query I rowsort
SELECT - + col2 * - col0 + + 7 AS col0 FROM tab0 AS cor0
----
42
7305
799

onlyif mysql # use DIV operator for integer division
query I rowsort label-2595
SELECT DISTINCT + col1 DIV - 52 + - col0 FROM tab2
----
-7
-79

skipif mysql # not compatible
query I rowsort label-2595
SELECT DISTINCT + col1 / - 52 + - col0 FROM tab2
----
-7
-79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2596
SELECT DISTINCT tab0.col0 + CAST( NULL AS SIGNED ) + tab0.col1 * + col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2596
SELECT DISTINCT tab0.col0 + CAST ( NULL AS INTEGER ) + tab0.col1 * + col0 FROM tab0
----
NULL

query I rowsort
SELECT - col2 + + ( col2 * col2 ) + col1 FROM tab1 AS cor0
----
2888
3202
9133

onlyif mysql # use DIV operator for integer division
query I rowsort label-2598
SELECT - col0 DIV - 4 FROM tab0 AS cor0
----
22
6
8

skipif mysql # not compatible
query I rowsort label-2598
SELECT - col0 / - 4 FROM tab0 AS cor0
----
22
6
8

query I rowsort
SELECT DISTINCT cor0.col0 * + ( cor0.col0 * - col1 ) AS col2 FROM tab1 AS cor0
----
-234
-40960
-83200

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2600
SELECT DISTINCT CAST( NULL AS SIGNED ) * - 15 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2600
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 15 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + 14 * + 70 AS col2 FROM tab1 AS cor0
----
980
980
980

query I rowsort
SELECT 64 * - col2 * col1 AS col1 FROM tab2 AS cor0
----
-41344
-53568
-98176

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2603
SELECT ALL col0 * CAST( NULL AS DECIMAL ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2603
SELECT ALL col0 * CAST ( NULL AS REAL ) AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 * cor0.col0 * - col2 FROM tab0 AS cor0
----
-26136
-35
-598436

query I rowsort
SELECT ALL - - ( - cor0.col0 ) FROM tab1 cor0
----
-3
-64
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-2606
SELECT - + 63 DIV + col1 FROM tab2 AS cor0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-2606
SELECT - + 63 / + col1 FROM tab2 AS cor0
----
-1
-2
-3

query I rowsort
SELECT + + 62 * - ( col0 ) AS col1 FROM tab1 AS cor0
----
-186
-3968
-4960

query I rowsort
SELECT ALL col1 + - col0 + - col1 * - col0 FROM tab1
----
101
586
973

query I rowsort
SELECT ALL col1 * - ( + col1 ) FROM tab2
----
-289
-3481
-961

onlyif mysql # use DIV operator for integer division
query I rowsort label-2610
SELECT + col2 DIV ( + col2 ) + + col1 FROM tab0 AS cor0
----
87
92
98

skipif mysql # not compatible
query I rowsort label-2610
SELECT + col2 / ( + col2 ) + + col1 FROM tab0 AS cor0
----
87
92
98

query I rowsort
SELECT DISTINCT + + col1 * + ( 30 ) FROM tab0 AS cor0
----
2580
2730
2910

query I rowsort
SELECT ALL + cor0.col2 * col1 + + col0 FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT - col0 * col0 + 2 + col0 FROM tab1
----
-4
-4030
-6318

query I rowsort
SELECT + col2 * 57 * - 42 FROM tab0
----
-196308
-2394
-79002

query I rowsort
SELECT col1 * + 43 + cor0.col0 AS col0 FROM tab2 AS cor0
----
1340
2615
810

query I rowsort
SELECT ALL + col2 * + 56 AS col2 FROM tab0 AS cor0
----
1848
4592
56

onlyif mysql # use DIV operator for integer division
query I rowsort label-2617
SELECT ALL - col1 * - col0 + col1 DIV cor0.col1 FROM tab0 AS cor0
----
2065
3396
8100

skipif mysql # not compatible
query I rowsort label-2617
SELECT ALL - col1 * - col0 + col1 / cor0.col1 FROM tab0 AS cor0
----
2065
3396
8100

query I rowsort
SELECT DISTINCT + col2 + - ( + 57 ) FROM tab0 AS cor0
----
-24
-56
25

query I rowsort
SELECT - cor0.col0 * col2 + - col2 + - col1 AS col2 FROM tab1 AS cor0
----
-242
-3715
-7789

query I rowsort
SELECT ALL + 10 AS col0 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 0fe3e45a9ecd49584c2ab442100d5176

onlyif mysql # use DIV operator for integer division
query I rowsort label-2621
SELECT - col2 DIV - ( cor0.col0 ) + col2 * + ( - col1 + col2 ) AS col2 FROM tab0 cor0
----
-1748
-738
-96

skipif mysql # not compatible
query I rowsort label-2621
SELECT - col2 / - ( cor0.col0 ) + col2 * + ( - col1 + col2 ) AS col2 FROM tab0 cor0
----
-1748
-738
-96

query I rowsort
SELECT + tab1.col1 - - 13 FROM tab1
----
23
26
39

query I rowsort
SELECT + + col1 * col2 + - cor0.col2 + + 12 AS col1 FROM tab2 cor0
----
1520
620
822

query I rowsort
SELECT + col1 + + 91 + - col1 AS col1 FROM tab1 AS cor0
----
91
91
91

query I rowsort
SELECT DISTINCT ( + ( col2 ) ) * 4 AS col1 FROM tab1 cor0
----
216
228
384

query I rowsort
SELECT DISTINCT + ( + cor0.col1 ) * col0 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT DISTINCT - ( - cor0.col2 ) + col2 FROM tab0 AS cor0
----
164
2
66

onlyif mysql # use DIV operator for integer division
query I rowsort label-2628
SELECT 61 + 99 DIV - col0 FROM tab1 AS cor0
----
28
60
60

skipif mysql # not compatible
query I rowsort label-2628
SELECT 61 + 99 / - col0 FROM tab1 AS cor0
----
28
60
60

onlyif mysql # use DIV operator for integer division
query I rowsort label-2629
SELECT - col1 DIV + 31 - + col0 * + col1 * col0 FROM tab1
----
-234
-40960
-83200

skipif mysql # not compatible
query I rowsort label-2629
SELECT - col1 / + 31 - + col0 * + col1 * col0 FROM tab1
----
-234
-40960
-83200

query I rowsort
SELECT DISTINCT + col0 * + col2 + + col0 + col1 FROM tab1
----
191
3722
7773

query I rowsort
SELECT DISTINCT 85 + col2 FROM tab0 AS cor0
----
118
167
86

query I rowsort
SELECT DISTINCT col0 + - col2 * - ( col1 ) FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT DISTINCT + + ( - col2 ) * - col1 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT ALL - cor0.col0 + col0 * 7 * col1 FROM tab0 AS cor0
----
14424
23730
56604

query I rowsort
SELECT - 81 * col2 AS col2 FROM tab2 AS cor0
----
-2106
-2187
-3078

query I rowsort
SELECT DISTINCT 78 * cor0.col2 + col2 FROM tab1 AS cor0
----
4266
4503
7584

onlyif mysql # use DIV operator for integer division
query I rowsort label-2637
SELECT DISTINCT 44 * - col0 + + 24 DIV - 9 AS col0 FROM tab0 AS cor0
----
-1058
-1542
-3918

skipif mysql # not compatible
query I rowsort label-2637
SELECT DISTINCT 44 * - col0 + + 24 / - 9 AS col0 FROM tab0 AS cor0
----
-1058
-1542
-3918

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * col2 * ( col0 ) + - col2 col2 FROM tab1 AS cor0
----
233415
432
614304

query I rowsort
SELECT - 0 + - cor0.col2 FROM tab0 AS cor0
----
-1
-33
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 20 col1 FROM tab2 AS cor0
----
-20
-20
-20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 42 * - col0 - tab1.col0 col2 FROM tab1
----
123
2624
3280

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2642
SELECT + ( 7 * col1 ) + - CAST( 64 AS SIGNED ) AS col1 FROM tab2
----
153
349
55

skipif mysql # not compatible
query I rowsort label-2642
SELECT + ( 7 * col1 ) + - CAST ( 64 AS INTEGER ) AS col1 FROM tab2
----
153
349
55

query I rowsort
SELECT 13 * + tab0.col1 + col0 * + col1 FROM tab0
----
3182
4656
9282

query I rowsort
SELECT 29 + + col1 FROM tab1 AS cor0
----
39
42
55

query I rowsort
SELECT col0 + - cor0.col2 * col0 FROM tab2 AS cor0
----
-182
-1950
-2923

query I rowsort
SELECT DISTINCT - 79 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-79

query I rowsort
SELECT + 58 * + col0 + + 74 AS col0 FROM tab2
----
4598
4656
480

query I rowsort
SELECT DISTINCT + col2 + + 86 FROM tab1 AS cor0
----
140
143
182

query I rowsort
SELECT 90 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 96f7a90428db93f472e0d219bab64853

query I rowsort
SELECT 90 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 96f7a90428db93f472e0d219bab64853

query I rowsort
SELECT DISTINCT col0 * - col1 + tab1.col0 * col2 * + col2 AS col1 FROM tab1
----
207296
736240
8670

query I rowsort
SELECT - - col2 - + 36 AS col0 FROM tab0 cor0
----
-3
-35
46

query I rowsort
SELECT DISTINCT col0 + - 68 AS col1 FROM tab2 cor0
----
-61
10
11

query I rowsort
SELECT ALL - col0 + + col0 * ( - col1 ) FROM tab2 AS cor0
----
-1422
-224
-4680

query I rowsort
SELECT ALL - + col1 + cor0.col0 * - col1 AS col0 FROM tab0 AS cor0
----
-2150
-3492
-8190

query I rowsort
SELECT DISTINCT + col0 * col0 * + 15 + col1 * col0 + col2 FROM tab0 AS cor0
----
10737
126996
21771

query I rowsort
SELECT ALL - col0 * ( + 40 ) FROM tab0 AS cor0
----
-1400
-3560
-960

query I rowsort
SELECT DISTINCT col2 + + 5 FROM tab0 AS cor0
----
38
6
87

query I rowsort
SELECT col2 - 72 FROM tab0 AS cor0
----
-39
-71
10

query I rowsort
SELECT ALL + - cor0.col0 * + ( + col0 ) FROM tab2 AS cor0
----
-49
-6084
-6241

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * - ( + col1 ) + col1 col1 FROM tab2 cor0
----
-272
-3422
-930

query I rowsort
SELECT ALL + col2 * - ( col0 + col2 ) * col1 AS col0 FROM tab1
----
-219648
-68970
-80028

query I rowsort
SELECT - + ( 60 ) AS col2 FROM tab2 AS cor0
----
-60
-60
-60

query I rowsort
SELECT ALL - 9 * col1 FROM tab1 cor0
----
-117
-234
-90

query I rowsort
SELECT DISTINCT + - cor0.col2 * cor0.col0 AS col1 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT DISTINCT - col0 + 39 AS col1 FROM tab1 cor0
----
-25
-41
36

query I rowsort
SELECT ALL - col1 + - 81 * col1 AS col1 FROM tab1 AS cor0
----
-1066
-2132
-820

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2668
SELECT - CAST( NULL AS SIGNED ) * 58 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2668
SELECT - CAST ( NULL AS INTEGER ) * 58 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - col2 + cor0.col1 - col2 * col1 FROM tab1 AS cor0
----
-1331
-1432
-617

onlyif mysql # use DIV operator for integer division
query I rowsort label-2670
SELECT DISTINCT + col1 DIV 45 + + col0 - col2 AS col2 FROM tab2 AS cor0
----
-20
41
53

skipif mysql # not compatible
query I rowsort label-2670
SELECT DISTINCT + col1 / 45 + + col0 - col2 AS col2 FROM tab2 AS cor0
----
-20
41
53

query I rowsort
SELECT ALL ( + 76 ) + cor0.col0 FROM tab2 AS cor0
----
154
155
83

query I rowsort
SELECT ALL 14 FROM tab2, tab0 cor0, tab1 cor1
----
27 values hashing to 409c1790b702540dd9dc067c1965b7c0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + col2 * 59 col1 FROM tab1 cor0
----
172044
191691
543744

query I rowsort
SELECT 21 * col1 AS col1 FROM tab2 cor0
----
1239
357
651

onlyif mysql # use DIV operator for integer division
query I rowsort label-2675
SELECT col2 * col0 + col1 * col0 DIV col1 FROM tab1
----
165
3712
7760

skipif mysql # not compatible
query I rowsort label-2675
SELECT col2 * col0 + col1 * col0 / col1 FROM tab1
----
165
3712
7760

query I rowsort
SELECT - 49 AS col1 FROM tab0, tab0 AS cor0, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to f1b2d4fe76c1d323cc1ffd93b2fcab89

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL IN ( - col2 )
----

query I rowsort
SELECT tab2.col0 * - col2 * col2 + col2 + + col0 AS col0 FROM tab2
----
-113959
-5069
-52624

query I rowsort
SELECT DISTINCT - col0 + col0 AS col1 FROM tab2 WHERE + col0 NOT BETWEEN col2 AND NULL
----
0

query I rowsort
SELECT DISTINCT col2 * + tab2.col1 + col1 FROM tab2
----
1593
663
868

onlyif mysql # use DIV operator for integer division
query I rowsort label-2681
SELECT col1 DIV - tab0.col1 AS col2 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2681
SELECT col1 / - tab0.col1 AS col2 FROM tab0
----
-1
-1
-1

query I rowsort
SELECT ALL + tab1.col0 * col1 + + col2 AS col1 FROM tab1
----
1136
132
697

onlyif mysql # use DIV operator for integer division
query I rowsort label-2683
SELECT ALL - col0 * col2 + + col1 * col0 DIV - col2 FROM tab0
----
-3430
-7396
-854

skipif mysql # not compatible
query I rowsort label-2683
SELECT ALL - col0 * col2 + + col1 * col0 / - col2 FROM tab0
----
-3430
-7396
-854

query I rowsort
SELECT DISTINCT tab2.col0 + + col1 AS col1 FROM tab2
----
137
38
96

query I rowsort
SELECT ALL col1 AS col2 FROM tab2 WHERE NOT ( NULL ) IN ( col2 )
----

query III rowsort
SELECT * FROM tab1 WHERE - col1 * + col1 / col2 NOT IN ( col0 * col2 * col2 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

query I rowsort
SELECT + col2 + col0 FROM tab2 WHERE NOT NULL IN ( col0 )
----

query I rowsort
SELECT ALL tab0.col2 + - col1 * + col0 FROM tab0
----
-2031
-3394
-8017

query I rowsort
SELECT ALL - col2 * - tab1.col1 + col2 * - col0 AS col2 FROM tab1
----
-3078
-6432
1242

query I rowsort
SELECT + col1 + col1 * col1 AS col1 FROM tab1
----
110
182
702

query I rowsort
SELECT - col1 + + col0 * 70 * col2 FROM tab1 AS cor0
----
11314
255350
537587

onlyif mysql # use DIV operator for integer division
query I rowsort label-2692
SELECT + col2 DIV + col2 + - 53 DIV col1 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2692
SELECT + col2 / + col2 + - 53 / col1 FROM tab0 AS cor0
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-2693
SELECT - 6 DIV - col2 - + col2 AS col2 FROM tab1 AS cor0
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-2693
SELECT - 6 / - col2 - + col2 AS col2 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT ALL - col0 * tab2.col1 * + col1 + - col2 * + col0 AS col0 FROM tab2
----
-25833
-273546
-6916

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col2 NOT BETWEEN NULL AND ( + col1 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

query I rowsort
SELECT col2 AS col2 FROM tab2 WHERE NULL > NULL
----

query I rowsort
SELECT col2 + col2 * col0 * + col0 + - col2 FROM tab2 cor0 WHERE NOT ( NULL ) IN ( col1 )
----

query I rowsort
SELECT - col2 FROM tab0 WHERE NULL NOT IN ( col2 )
----

query I rowsort
SELECT tab1.col1 + - tab1.col2 * + col0 AS col0 FROM tab1
----
-136
-3638
-7667

query I rowsort
SELECT ALL - col2 * tab1.col2 + col0 * col1 AS col2 FROM tab1
----
-2609
-2838
-8176

onlyif mysql # use DIV operator for integer division
query I rowsort label-2701
SELECT ALL col1 DIV tab2.col0 - + col0 * col1 AS col1 FROM tab2
----
-1343
-213
-4602

skipif mysql # not compatible
query I rowsort label-2701
SELECT ALL col1 / tab2.col0 - + col0 * col1 AS col1 FROM tab2
----
-1343
-213
-4602

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab2 WHERE NULL <> col0
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-2703
SELECT DISTINCT col0 DIV + col0 - col2 AS col1 FROM tab2
----
-25
-26
-37

skipif mysql # not compatible
query I rowsort label-2703
SELECT DISTINCT col0 / + col0 - col2 AS col1 FROM tab2
----
-25
-26
-37

query I rowsort
SELECT DISTINCT col1 * cor0.col2 * - col2 + col2 FROM tab0 AS cor0
----
-611802
-93621
-96

query I rowsort
SELECT ALL 65 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805

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-2707
SELECT + col0 + - col2 DIV 93 FROM tab2 AS cor0
----
7
78
79

skipif mysql # not compatible
query I rowsort label-2707
SELECT + col0 + - col2 / 93 FROM tab2 AS cor0
----
7
78
79

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1, tab2 cor1, tab2 AS cor2, tab0 AS cor3
----
3645 values hashing to 66d12da55ea14263893cfc3170a3c57e

query I rowsort
SELECT DISTINCT + ( + col2 * + col2 ) FROM tab1
----
2916
3249
9216

query I rowsort
SELECT - - cor0.col1 + - 55 + + 82 FROM tab0, tab1 cor0
----
9 values hashing to 448aa4b975eb2a1a6146022537ad7dbd

query I rowsort
SELECT ALL cor1.col0 * - 29 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 657b2b3cdd15ad15cd7ee6eca57e22fe

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2712
SELECT DISTINCT - - CAST( col0 AS SIGNED ) * cor0.col2 + - ( 65 ) AS col2 FROM tab2 AS cor0
----
124
1963
2937

skipif mysql # not compatible
query I rowsort label-2712
SELECT DISTINCT - - CAST ( col0 AS INTEGER ) * cor0.col2 + - ( 65 ) AS col2 FROM tab2 AS cor0
----
124
1963
2937

query I rowsort
SELECT col2 * + ( + col1 ) AS col1 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT ALL - col1 * 64 * - col0 FROM tab2 AS cor0
----
13888
294528
85952

query I rowsort
SELECT DISTINCT 66 FROM tab1, tab1 AS cor0, tab0 cor1
----
66

onlyif mysql # use DIV operator for integer division
query I rowsort label-2716
SELECT + cor0.col0 DIV + col0 AS col1 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2716
SELECT + cor0.col0 / + col0 AS col1 FROM tab0 AS cor0
----
1
1
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2717
SELECT - cor0.col0 + - CAST( col0 AS SIGNED ) * - cor0.col2 AS col0 FROM tab2 AS cor0
----
182
1950
2923

skipif mysql # not compatible
query I rowsort label-2717
SELECT - cor0.col0 + - CAST ( col0 AS INTEGER ) * - cor0.col2 AS col0 FROM tab2 AS cor0
----
182
1950
2923

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 * 32 col1 FROM tab1 AS cor0
----
-2048
-2560
-96

query I rowsort
SELECT - - col0 + + ( + col2 ) * - col0 FROM tab0 AS cor0
----
-7209
-768
0

query I rowsort
SELECT + 50 * + col1 FROM tab1
----
1300
500
650

query I rowsort
SELECT + 27 FROM tab1, tab2 cor0, tab2 AS cor1
----
27 values hashing to 1a3cef5c33b8f87ffeded378fd207753

query I rowsort
SELECT + col2 + 61 * 48 * - col0 FROM tab0 AS cor0
----
-102479
-260510
-70239

query I rowsort
SELECT ALL - col2 - 99 FROM tab1 AS cor0
----
-153
-156
-195

query I rowsort
SELECT + col0 * 94 + col1 AS col1 FROM tab0 AS cor0
----
2342
3387
8457

query I rowsort
SELECT ALL - col0 * ( col2 + + col0 ) AS col2 FROM tab1 AS cor0
----
-14080
-171
-7744

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 68 * + 4 * - col1 + 73 col2 FROM tab0 cor0
----
-23319
-24679
-26311

query I rowsort
SELECT ALL - col2 - ( - col1 ) AS col0 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT ALL - 45 * + col2 AS col2 FROM tab2 AS cor0
----
-1170
-1215
-1710

query I rowsort
SELECT ALL + col2 * + col1 + + col0 AS col2 FROM tab0 cor0
----
132
2862
7551

query I rowsort
SELECT DISTINCT - + 25 + col0 FROM tab0 cor0
----
-1
10
64

query I rowsort
SELECT + - 98 - cor0.col0 FROM tab2 AS cor0
----
-105
-176
-177

query I rowsort
SELECT - 20 + - col2 AS col2 FROM tab0 AS cor0
----
-102
-21
-53

onlyif mysql # use DIV operator for integer division
query I rowsort label-2733
SELECT ALL + col2 DIV cor0.col0 + col1 FROM tab1 AS cor0
----
10
14
44

skipif mysql # not compatible
query I rowsort label-2733
SELECT ALL + col2 / cor0.col0 + col1 FROM tab1 AS cor0
----
10
14
44

query I rowsort
SELECT DISTINCT - 57 + col0 + - 91 AS col2 FROM tab0 AS cor0
----
-113
-124
-59

onlyif mysql # use DIV operator for integer division
query I rowsort label-2735
SELECT DISTINCT col2 DIV - col2 + + col1 AS col0 FROM tab1
----
12
25
9

skipif mysql # not compatible
query I rowsort label-2735
SELECT DISTINCT col2 / - col2 + + col1 AS col0 FROM tab1
----
12
25
9

query I rowsort
SELECT ALL col0 * col0 + col1 * + col0 + col2 * + col2 FROM tab1 AS cor0
----
16656
3003
7985

query I rowsort
SELECT col1 * - col1 * + ( 89 ) + + col0 FROM tab1 AS cor0
----
-14961
-60161
-8836

query I rowsort
SELECT + + cor0.col0 - + col2 * + cor0.col0 AS col0 FROM tab2 AS cor0
----
-182
-1950
-2923

query I rowsort
SELECT - + 66 + cor0.col0 FROM tab0 AS cor0
----
-31
-42
23

query I rowsort
SELECT 95 + - col2 FROM tab2 AS cor0
----
57
68
69

query I rowsort
SELECT DISTINCT + ( - col1 ) - 81 AS col1 FROM tab1 AS cor0
----
-107
-91
-94

query I rowsort
SELECT DISTINCT col1 * + col1 + - col2 * - cor0.col2 FROM tab2 AS cor0
----
1690
1733
4157

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 col2 FROM tab2, tab1, tab0 AS cor0, tab2 AS cor1
----
81 values hashing to 786a240f80bef6f9c6a190e92cd4f9e8

query I rowsort
SELECT ALL - + cor0.col1 FROM tab1, tab2, tab2 AS cor0, tab0
----
81 values hashing to b7a1b38fe8e4f34388e3be1f52601ae5

query I rowsort
SELECT ALL - col0 + 1 FROM tab1 cor0
----
-2
-63
-79

query I rowsort
SELECT ALL - col1 + col1 + - 51 AS col2 FROM tab2 AS cor0
----
-51
-51
-51

query I rowsort
SELECT - + 55 AS col2 FROM tab2 cor0
----
-55
-55
-55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 20 * + ( - col0 ) col1 FROM tab2 AS cor0
----
-140
-1560
-1580

query I rowsort
SELECT DISTINCT + col1 * - col2 AS col1 FROM tab0 cor0
----
-2838
-7462
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-2750
SELECT ALL - + cor0.col1 DIV - cor0.col1 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2750
SELECT ALL - + cor0.col1 / - cor0.col1 FROM tab0 AS cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - col2 + - col2 * col1 col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL col2 - col2 * col1 FROM tab1 AS cor0
----
-1152
-1350
-513

query I rowsort
SELECT DISTINCT col1 * 36 FROM tab0 AS cor0
----
3096
3276
3492

query I rowsort
SELECT DISTINCT + col0 + col1 + col2 * + ( col0 ) FROM tab0 cor0
----
167
7478
902

query I rowsort
SELECT ALL - - col1 - 73 AS col0 FROM tab1 AS cor0
----
-47
-60
-63

query I rowsort
SELECT DISTINCT 29 AS col0 FROM tab0 AS cor0
----
29

query I rowsort
SELECT - col2 * col1 + col0 AS col0 FROM tab0
----
-2814
-62
-7373

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 - + 91 col0 FROM tab0
----
-124
-173
-92

query I rowsort
SELECT + 71 * col0 * col0 FROM tab1 AS cor0
----
290816
454400
639

onlyif mysql # use DIV operator for integer division
query I rowsort label-2760
SELECT + + col0 DIV col0 AS col2 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2760
SELECT + + col0 / col0 AS col2 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT ( - col1 ) + - col0 * col1 AS col2 FROM tab1 AS cor0
----
-104
-1053
-650

query I rowsort
SELECT ALL + ( col0 + col2 * - 20 ) AS col0 FROM tab2
----
-442
-533
-681

query I rowsort
SELECT ALL - + 91 * col2 AS col1 FROM tab2 AS cor0
----
-2366
-2457
-3458

query I rowsort
SELECT + cor1.col0 AS col1 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

onlyif mysql # use DIV operator for integer division
query I rowsort label-2765
SELECT DISTINCT + 85 DIV + 49 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2765
SELECT DISTINCT + 85 / + 49 FROM tab1 AS cor0
----
1

query I rowsort
SELECT ALL col2 * + ( col0 ) FROM tab2
----
189
2028
3002

query I rowsort
SELECT ( - 47 ) AS col2 FROM tab2
----
-47
-47
-47

query I rowsort
SELECT + 0 * 28 AS col0 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

query I rowsort
SELECT ALL - 46 AS col2 FROM tab1
----
-46
-46
-46

query I rowsort
SELECT + - col2 - col0 FROM tab1 cor0
----
-121
-176
-57

query I rowsort
SELECT ALL col2 + col1 + + col1 AS col2 FROM tab0 AS cor0
----
195
205
264

query I rowsort
SELECT - + col1 + - 63 AS col1 FROM tab1 AS cor0
----
-73
-76
-89

query I rowsort
SELECT ALL + + col1 * col2 + - ( cor0.col0 * col2 ) AS col2 FROM tab1 AS cor0
----
-3078
-6432
1242

onlyif mysql # use DIV operator for integer division
query I rowsort label-2774
SELECT ALL - ( tab1.col2 ) * - 95 * tab1.col2 + col1 DIV 73 FROM tab1
----
277020
308655
875520

skipif mysql # not compatible
query I rowsort label-2774
SELECT ALL - ( tab1.col2 ) * - 95 * tab1.col2 + col1 / 73 FROM tab1
----
277020
308655
875520

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + tab2.col2 col0 FROM tab2
----
104
117
34

query I rowsort
SELECT ALL - 49 + + tab1.col1 * col2 AS col2 FROM tab1
----
1199
1355
521

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab2 cor2, tab0 AS cor3
----
3645 values hashing to 5acb69cde71208fe580e10b8b669428e

query I rowsort
SELECT + col2 * 8 FROM tab1
----
432
456
768

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 + ( col1 ) col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + col2 * col0 + + col1 + col1 FROM tab0 AS cor0
----
229
7480
964

query I rowsort
SELECT - cor0.col0 + 59 + 16 FROM tab1 AS cor0
----
-5
11
72

query I rowsort
SELECT DISTINCT col0 + ( - col0 ) FROM tab2 AS cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2783
SELECT ALL + col2 * col1 + col2 DIV col2 FROM tab1 AS cor0
----
1249
1405
571

skipif mysql # not compatible
query I rowsort label-2783
SELECT ALL + col2 * col1 + col2 / col2 FROM tab1 AS cor0
----
1249
1405
571

query I rowsort
SELECT DISTINCT - + col2 * 75 + + col0 AS col0 FROM tab1 AS cor0
----
-4047
-4211
-7120

query I rowsort
SELECT ALL - cor0.col1 * + col1 + - col1 * - col0 - + 20 AS col0 FROM tab1 AS cor0
----
-618
520
851

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 + cor0.col1 col1 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT DISTINCT col2 * + ( + col2 ) AS col0 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT DISTINCT col0 * + col1 * - ( - col1 ) FROM tab1
----
13520
2028
6400

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 52 col2 FROM tab1, tab0 cor0, tab2 AS cor1
----
27 values hashing to e8a5cb10c0973a78554f344d4f6e7e74

query I rowsort
SELECT 52 FROM tab2, tab2 AS cor0, tab0 cor1
----
27 values hashing to 76100d10f51995d20efdeb657e444d3c

query I rowsort
SELECT cor0.col0 + + cor0.col2 + cor0.col2 AS col1 FROM tab1 cor0
----
111
178
272

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 + - col1 col2 FROM tab1 cor0
----
28
47
83

query I rowsort
SELECT ALL - col0 * col0 + + ( cor0.col2 ) FROM tab1 AS cor0
----
-4039
-6304
45

query I rowsort
SELECT DISTINCT 29 AS col2 FROM tab1
----
29

query I rowsort
SELECT DISTINCT - - cor0.col0 * cor0.col2 + col0 FROM tab2 AS cor0
----
196
2106
3081

query I rowsort
SELECT DISTINCT + cor0.col1 + + ( 94 ) AS col2 FROM tab0 cor0
----
180
185
191

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2797
SELECT + col1 + CAST( NULL AS SIGNED ) * col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2797
SELECT + col1 + CAST ( NULL AS INTEGER ) * col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 * col2 + + col0 AS col1 FROM tab0 AS cor0
----
-7209
-768
0

query I rowsort
SELECT col1 + + 26 + + col2 * ( + col2 ) FROM tab0 AS cor0
----
1201
124
6841

query I rowsort
SELECT ALL + 88 * - cor0.col2 AS col2 FROM tab2 AS cor0
----
-2288
-2376
-3344

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2801
SELECT col2 + + ( col2 ) * CAST( + 52 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
1378
1431
2014

skipif mysql # not compatible
query I rowsort label-2801
SELECT col2 + + ( col2 ) * CAST ( + 52 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
1378
1431
2014

query I rowsort
SELECT - + 11 * 29 AS col1 FROM tab1 AS cor0
----
-319
-319
-319

query I rowsort
SELECT - - 57 * + col1 FROM tab2 AS cor0
----
1767
3363
969

query I rowsort
SELECT + col0 * cor0.col2 + - col2 FROM tab2 AS cor0
----
162
2002
2964

query I rowsort
SELECT ALL + 49 AS col0 FROM tab0 AS cor0
----
49
49
49

query I rowsort
SELECT DISTINCT - 76 + - col0 * cor0.col1 * 47 AS col1 FROM tab1 AS cor0
----
-30156
-3742
-48956

query I rowsort
SELECT ALL 38 + col1 AS col0 FROM tab0 AS cor0
----
124
129
135

query I rowsort
SELECT DISTINCT + - cor0.col0 * - cor0.col1 AS col2 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT 26 + - col0 AS col0 FROM tab2 AS cor0
----
-52
-53
19

query I rowsort
SELECT DISTINCT - + col0 * col0 * 83 AS col1 FROM tab1 AS cor0
----
-339968
-531200
-747

query I rowsort
SELECT DISTINCT ( + col2 ) + 8 + - col1 * + col1 FROM tab1 AS cor0
----
-35
-614
-65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - col0 col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - + col0 + + col1 + col2 FROM tab0 AS cor0
----
63
84
95

query I rowsort
SELECT ALL - 71 + col2 * ( + col0 ) * - col1 AS col2 FROM tab2 AS cor0
----
-119723
-51105
-5930

query I rowsort
SELECT ALL + col1 * 80 AS col2 FROM tab1
----
1040
2080
800

onlyif mysql # use DIV operator for integer division
query I rowsort label-2816
SELECT + col1 DIV + 50 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2816
SELECT + col1 / + 50 FROM tab1
----
0
0
0

query I rowsort
SELECT - 53 * col1 AS col2 FROM tab0 AS cor0
----
-4558
-4823
-5141

query I rowsort
SELECT ALL 10 * + col0 + col0 * - col2 AS col0 FROM tab0 AS cor0
----
-552
-6408
315

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2819
SELECT ALL - col0 * col0 + 98 * ( col2 ) * CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2819
SELECT ALL - col0 * col0 + 98 * ( col2 ) * CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + ( + col2 ) * - col1 - - col2 FROM tab1 AS cor0
----
-1152
-1350
-513

onlyif mysql # use DIV operator for integer division
query I rowsort label-2821
SELECT ALL + 75 DIV col1 AS col1 FROM tab2
----
1
2
4

skipif mysql # not compatible
query I rowsort label-2821
SELECT ALL + 75 / col1 AS col1 FROM tab2
----
1
2
4

query I rowsort
SELECT 5 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 6797d40099023779b89feb627d94a3e7

query I rowsort
SELECT + + col1 * 62 FROM tab1 AS cor0
----
1612
620
806

query I rowsort
SELECT - 1 * col1 AS col0 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT DISTINCT 4 * - col1 * cor0.col1 + col2 * - cor0.col1 AS col0 FROM tab1 AS cor0
----
-1924
-4108
-970

onlyif mysql # use DIV operator for integer division
query I rowsort label-2826
SELECT ALL col1 + + col2 DIV col0 col1 FROM tab2 AS cor0
----
17
34
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2826
SELECT ALL col1 + + col2 / col0 col1 FROM tab2 AS cor0
----
17
34
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 85 col2 FROM tab2 AS cor0
----
-85
-85
-85

onlyif mysql # use DIV operator for integer division
query I rowsort label-2828
SELECT DISTINCT - col0 DIV col1 + - col1 FROM tab1 AS cor0
----
-16
-19
-26

skipif mysql # not compatible
query I rowsort label-2828
SELECT DISTINCT - col0 / col1 + - col1 FROM tab1 AS cor0
----
-16
-19
-26

query I rowsort
SELECT cor0.col1 * - cor0.col0 + 31 * 38 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 1ab67cf723ab2db276e0521c504df388

query I rowsort
SELECT ALL - ( cor0.col0 ) FROM tab1, tab0 AS cor0
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e

query I rowsort
SELECT ALL + 26 AS col1 FROM tab0, tab2 cor0
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584

query I rowsort
SELECT - 77 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 3a24155cb91ceff1e67bb51c07b72107

onlyif mysql # use DIV operator for integer division
query I rowsort label-2833
SELECT ALL 38 - col0 DIV + col0 AS col0 FROM tab1
----
37
37
37

skipif mysql # not compatible
query I rowsort label-2833
SELECT ALL 38 - col0 / + col0 AS col0 FROM tab1
----
37
37
37

query I rowsort
SELECT + + 79 + 98 FROM tab1 AS cor0
----
177
177
177

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - 60 col0 FROM tab0 cor0
----
-1980
-4920
-60

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2836
SELECT ALL CAST( NULL AS SIGNED ) + 60 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2836
SELECT ALL CAST ( NULL AS INTEGER ) + 60 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + cor0.col1 * + 18 + col2 FROM tab1 AS cor0
----
237
330
522

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2838
SELECT + CAST( NULL AS SIGNED ) / col1 - col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2838
SELECT + CAST ( NULL AS INTEGER ) / col1 - col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2839
SELECT DISTINCT - cor0.col1 DIV col0 + col2 * + col1 AS col1 FROM tab2 AS cor0
----
1534
646
833

skipif mysql # not compatible
query I rowsort label-2839
SELECT DISTINCT - cor0.col1 / col0 + col2 * + col1 AS col1 FROM tab2 AS cor0
----
1534
646
833

query I rowsort
SELECT col0 * + ( + col2 ) AS col1 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT ALL + col0 * + 17 FROM tab0 AS cor0
----
1513
408
595

query I rowsort
SELECT ALL col1 + - col0 * + col1 AS col0 FROM tab0 AS cor0
----
-1978
-3298
-8008

onlyif mysql # use DIV operator for integer division
query I rowsort label-2843
SELECT DISTINCT - col2 DIV + col1 + + col1 + col0 FROM tab2 AS cor0
----
137
38
94

skipif mysql # not compatible
query I rowsort label-2843
SELECT DISTINCT - col2 / + col1 + + col1 + col0 FROM tab2 AS cor0
----
137
38
94

query I rowsort
SELECT col2 + col0 * 36 * col2 FROM tab2
----
108110
6831
73034

query I rowsort
SELECT ALL - cor0.col2 + + col0 * - cor0.col0 FROM tab0 AS cor0
----
-1226
-609
-8003

query I rowsort
SELECT DISTINCT - col0 * - col2 + + col1 FROM tab0 AS cor0
----
132
7389
878

query I rowsort
SELECT ALL + cor1.col2 FROM tab2, tab0 cor0, tab2 cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2848
SELECT col2 * - CAST( - col2 AS SIGNED ) * + col2 FROM tab2 AS cor0
----
17576
19683
54872

skipif mysql # not compatible
query I rowsort label-2848
SELECT col2 * - CAST ( - col2 AS INTEGER ) * + col2 FROM tab2 AS cor0
----
17576
19683
54872

query I rowsort
SELECT ALL cor0.col0 AS col0 FROM tab2, tab1 AS cor0, tab1 cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT - 32 * + tab1.col1 AS col2 FROM tab1, tab1 cor0
----
9 values hashing to 27a0d0744d68a649545fd2bc6573a151

query I rowsort
SELECT + col2 * - ( + col2 ) - + col1 * col0 * + col0 AS col0 FROM tab2
----
-107541
-2248
-359632

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2852
SELECT ALL CAST( NULL AS SIGNED ) + col0 * col1 * + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2852
SELECT ALL CAST ( NULL AS INTEGER ) + col0 * col1 * + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2853
SELECT ALL CAST( 53 AS SIGNED ) + col2 * + col1 FROM tab0
----
150
2891
7515

skipif mysql # not compatible
query I rowsort label-2853
SELECT ALL CAST ( 53 AS INTEGER ) + col2 * + col1 FROM tab0
----
150
2891
7515

query I rowsort
SELECT DISTINCT - + cor0.col2 - - cor0.col1 FROM tab0 cor0
----
53
9
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 62 - 19 * - col0 col0 FROM tab0 AS cor0
----
1753
518
727

query I rowsort
SELECT ALL col1 + ( col0 ) + col1 * - col1 * col2 FROM tab0
----
-243958
-678862
-9277

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2857
SELECT CAST( NULL AS SIGNED ) * - col0 * col2 + col0 * - 30 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2857
SELECT CAST ( NULL AS INTEGER ) * - col0 * col2 + col0 * - 30 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2858
SELECT DISTINCT + col2 DIV col1 + ( col2 ) * - cor0.col1 + - 41 FROM tab2 AS cor0
----
-1575
-685
-878

skipif mysql # not compatible
query I rowsort label-2858
SELECT DISTINCT + col2 / col1 + ( col2 ) * - cor0.col1 + - 41 FROM tab2 AS cor0
----
-1575
-685
-878

query I rowsort
SELECT ALL + - cor0.col2 - + cor0.col2 FROM tab0 cor0
----
-164
-2
-66

query I rowsort
SELECT DISTINCT - - col0 + + cor0.col2 * - 15 + + 32 FROM tab0 AS cor0
----
-1109
-439
52

query I rowsort
SELECT - 12 + col0 * ( - col2 + col0 * - 47 ) FROM tab0 AS cor0
----
-27876
-379597
-57622

query I rowsort
SELECT DISTINCT - 41 - cor0.col1 FROM tab0 cor0
----
-127
-132
-138

query I rowsort
SELECT ALL - - col1 * - col0 + 14 FROM tab0 AS cor0
----
-2050
-3381
-8085

onlyif mysql # use DIV operator for integer division
query I rowsort label-2864
SELECT + + col0 DIV cor0.col2 + cor0.col0 FROM tab0 cor0
----
24
70
90

skipif mysql # not compatible
query I rowsort label-2864
SELECT + + col0 / cor0.col2 + cor0.col0 FROM tab0 cor0
----
24
70
90

query I rowsort
SELECT + 68 + tab2.col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 1d285ff70f68fef3539c547700a64146

query I rowsort
SELECT DISTINCT + + col0 * - col2 AS col0 FROM tab0 AS cor0
----
-35
-7298
-792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 * col2 * - cor0.col0 col2 FROM tab1 AS cor0
----
36480
4212
99840

query I rowsort
SELECT + 41 * col2 FROM tab2
----
1066
1107
1558

query I rowsort
SELECT DISTINCT + 68 * tab0.col2 FROM tab0, tab1, tab1 AS cor0
----
2244
5576
68

query I rowsort
SELECT ALL - - ( col0 ) + ( - col0 ) AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + cor0.col1 * + cor0.col0 + col1 AS col2 FROM tab2 AS cor0
----
1360
248
4661

query I rowsort
SELECT - ( - col2 ) + + 35 FROM tab2 AS cor0
----
61
62
73

query I rowsort
SELECT DISTINCT - 27 + + col2 AS col2 FROM tab1 AS cor0
----
27
30
69

query I rowsort
SELECT ALL + 80 * col1 FROM tab1 AS cor0
----
1040
2080
800

query I rowsort
SELECT - + cor0.col1 * 93 FROM tab1 AS cor0
----
-1209
-2418
-930

query I rowsort
SELECT DISTINCT + - cor0.col2 - col1 * - col0 AS col0 FROM tab2 AS cor0
----
1305
190
4576

query I rowsort
SELECT DISTINCT + - col1 + + col1 AS col0 FROM tab2 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + ( ( + col0 ) ) col2 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT ALL col2 + 42 FROM tab2 AS cor0
----
68
69
80

query I rowsort
SELECT - 72 * - col2 + + col2 FROM tab1
----
3942
4161
7008

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2881
SELECT DISTINCT - col2 * + col1 * CAST( 44 AS SIGNED ) AS col2 FROM tab1
----
-25080
-54912
-61776

skipif mysql # not compatible
query I rowsort label-2881
SELECT DISTINCT - col2 * + col1 * CAST ( 44 AS INTEGER ) AS col2 FROM tab1
----
-25080
-54912
-61776

query I rowsort
SELECT ( col1 ) * - 8 AS col1 FROM tab0
----
-688
-728
-776

query I rowsort
SELECT - col1 * + 12 AS col0 FROM tab1 AS cor0
----
-120
-156
-312

query I rowsort
SELECT + 53 * - tab1.col1 + 53 AS col0 FROM tab1
----
-1325
-477
-636

query I rowsort
SELECT DISTINCT + cor0.col0 AS col2 FROM tab1, tab1 AS cor0, tab1 cor1
----
3
64
80

query I rowsort
SELECT DISTINCT - ( 26 ) FROM tab0 cor0
----
-26

query I rowsort
SELECT ALL + col2 * col1 + cor0.col1 FROM tab1 AS cor0
----
1261
1430
580

onlyif mysql # use DIV operator for integer division
query I rowsort label-2888
SELECT - 49 DIV - col2 + - col0 FROM tab0 AS cor0
----
-23
-89
14

skipif mysql # not compatible
query I rowsort label-2888
SELECT - 49 / - col2 + - col0 FROM tab0 AS cor0
----
-23
-89
14

query I rowsort
SELECT DISTINCT - cor0.col1 * cor0.col1 AS col0 FROM tab1 AS cor0
----
-100
-169
-676

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2890
SELECT DISTINCT - + CAST( + 10 AS SIGNED ) * col1 col2 FROM tab0 AS cor0
----
-860
-910
-970

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2890
SELECT DISTINCT - + CAST ( + 10 AS INTEGER ) * col1 col2 FROM tab0 AS cor0
----
-860
-910
-970

query I rowsort
SELECT ALL + + 66 AS col1 FROM tab1 AS cor0
----
66
66
66

onlyif mysql # use DIV operator for integer division
query I rowsort label-2892
SELECT + + col1 DIV 36 + col0 DIV col0 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2892
SELECT + + col1 / 36 + col0 / col0 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT ALL col0 + col2 * cor0.col1 AS col2 FROM tab0 AS cor0
----
132
2862
7551

query I rowsort
SELECT 31 * - col2 * col2 FROM tab1 AS cor0
----
-100719
-285696
-90396

query I rowsort
SELECT DISTINCT - 83 + - 47 FROM tab1 AS cor0
----
-130

query I rowsort
SELECT ALL - 83 * cor0.col1 AS col1 FROM tab1 AS cor0
----
-1079
-2158
-830

query I rowsort
SELECT ALL tab1.col1 AS col1 FROM tab1, tab2, tab1 AS cor0, tab1 AS cor1
----
81 values hashing to d7d3fabcafbed14f0d6ffd37195c971c

query I rowsort
SELECT - 14 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to d321461994ba49c3a70fa6373032fc94

query I rowsort
SELECT + - ( col2 ) AS col0 FROM tab1 cor0
----
-54
-57
-96

query I rowsort
SELECT + + col0 + col1 * + col2 FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT - ( col2 ) * col2 + 81 FROM tab2
----
-1363
-595
-648

onlyif mysql # use DIV operator for integer division
query I rowsort label-2902
SELECT - col2 * - col2 DIV col2 - 77 AS col2 FROM tab1 AS cor0
----
-20
-23
19

skipif mysql # not compatible
query I rowsort label-2902
SELECT - col2 * - col2 / col2 - 77 AS col2 FROM tab1 AS cor0
----
-20
-23
19

skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( col0 AS REAL ) * tab1.col0 + - col2 * + 75 AS col2 FROM tab1
----
-179
-4041
-800

query I rowsort
SELECT ALL col1 * - 91 FROM tab1
----
-1183
-2366
-910

query I rowsort
SELECT DISTINCT + col2 * - cor0.col1 FROM tab1 cor0
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT 53 + ( col0 ) FROM tab2
----
131
132
60

query I rowsort
SELECT col2 * - 80 FROM tab2
----
-2080
-2160
-3040

query I rowsort
SELECT - col2 * 49 * col2 FROM tab1
----
-142884
-159201
-451584

query I rowsort
SELECT col2 + 15 FROM tab0 AS cor0
----
16
48
97

query I rowsort
SELECT ALL - col1 + + 2 AS col1 FROM tab2 AS cor0
----
-15
-29
-57

query I rowsort
SELECT col2 + col0 + + tab2.col1 AS col1 FROM tab2
----
134
163
65

query I rowsort
SELECT ALL - col0 - - col1 * cor0.col1 FROM tab0 AS cor0
----
7372
8192
9374

onlyif mysql # use DIV operator for integer division
query I rowsort label-2913
SELECT DISTINCT col0 + + col1 DIV col2 AS col1 FROM tab0 cor0
----
132
26
90

skipif mysql # not compatible
query I rowsort label-2913
SELECT DISTINCT col0 + + col1 / col2 AS col1 FROM tab0 cor0
----
132
26
90

query I rowsort
SELECT ALL col0 * - col1 + 65 * + col1 AS col0 FROM tab0 cor0
----
-2184
2910
3526

query I rowsort
SELECT ALL 91 AS col1 FROM tab1, tab2 cor0
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab2.col2 * - col2 col1 FROM tab2
----
1444
676
729

query I rowsort
SELECT ALL - - cor0.col2 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT ALL tab0.col0 + + 44 * col1 * col0 AS col2 FROM tab0
----
149415
356445
90840

query I rowsort
SELECT - 71 + cor0.col0 FROM tab2 AS cor0
----
-64
7
8

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab2 AS cor2
----
3645 values hashing to 6726a15019c52908f1f1d0df0cd4c1b8

onlyif mysql # use DIV operator for integer division
query I rowsort label-2921
SELECT 90 + col2 DIV col0 FROM tab0 AS cor0
----
90
90
91

skipif mysql # not compatible
query I rowsort label-2921
SELECT 90 + col2 / col0 FROM tab0 AS cor0
----
90
90
91

query I rowsort
SELECT - col0 * + col1 + col1 AS col0 FROM tab2 AS cor0
----
-1326
-186
-4543

query I rowsort
SELECT DISTINCT - 83 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2924
SELECT DISTINCT CAST( NULL AS SIGNED ) + cor0.col0 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-2924
SELECT DISTINCT CAST ( NULL AS INTEGER ) + cor0.col0 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

query I rowsort
SELECT col2 * 96 + - 50 - + col2 AS col1 FROM tab0 AS cor0
----
3085
45
7740

query I rowsort
SELECT - + col0 * + ( - col0 ) + - col2 AS col2 FROM tab2 cor0
----
22
6058
6203

query I rowsort
SELECT col2 * - col2 + 42 - col1 FROM tab0 AS cor0
----
-1133
-56
-6773

query I rowsort
SELECT + col2 + cor0.col2 - col1 FROM tab1 AS cor0
----
104
179
82

query I rowsort
SELECT tab2.col2 + 81 * - tab2.col0 FROM tab2
----
-540
-6292
-6361

query I rowsort
SELECT + cor1.col2 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1, tab2 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT + tab2.col0 * 34 AS col2 FROM tab2
----
238
2652
2686

onlyif mysql # use DIV operator for integer division
query I rowsort label-2932
SELECT ALL + col2 DIV - ( col1 * - col1 ) AS col1 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2932
SELECT ALL + col2 / - ( col1 * - col1 ) AS col1 FROM tab1 cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2933
SELECT DISTINCT - col1 * CAST( - 48 AS SIGNED ) * + col2 AS col0 FROM tab1 AS cor0
----
27360
59904
67392

skipif mysql # not compatible
query I rowsort label-2933
SELECT DISTINCT - col1 * CAST ( - 48 AS INTEGER ) * + col2 AS col0 FROM tab1 AS cor0
----
27360
59904
67392

skipif mysql # not compatible
query I rowsort
SELECT - col2 / 53 - - ( + col2 + CAST ( + 74 AS REAL ) ) * col2 FROM tab2 AS cor0
----
2600
2727
4256

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2935
SELECT ALL col2 * + CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2935
SELECT ALL col2 * + CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 43 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 199105619049271147956de52e7f5ed4

query I rowsort
SELECT ALL + col2 + + col2 * col1 AS col0 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT + + ( + col0 ) * col2 + col1 AS col2 FROM tab1 AS cor0
----
188
3658
7693

query I rowsort
SELECT ALL + cor0.col0 * + 8 * col1 AS col0 FROM tab1 AS cor0
----
5120
624
8320

query I rowsort
SELECT cor1.col2 * - 72 * cor1.col2 AS col0 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to c151018d0db4b607b6c95d22e0bcbe70

query I rowsort
SELECT col2 * ( col0 * col0 ) FROM tab0
----
1225
19008
649522

onlyif mysql # use DIV operator for integer division
query I rowsort label-2942
SELECT DISTINCT - ( 43 ) * cor0.col0 + - 65 * 59 DIV - tab0.col1 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 4bdcf2151450b72d635a38b2a46d0111

skipif mysql # not compatible
query I rowsort label-2942
SELECT DISTINCT - ( 43 ) * cor0.col0 + - 65 * 59 / - tab0.col1 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 4bdcf2151450b72d635a38b2a46d0111

onlyif mysql # use DIV operator for integer division
query I rowsort label-2943
SELECT DISTINCT cor1.col2 DIV 30 AS col2 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
0
1

skipif mysql # not compatible
query I rowsort label-2943
SELECT DISTINCT cor1.col2 / 30 AS col2 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
0
1

query I rowsort
SELECT ALL + 82 * col1 + col1 AS col1 FROM tab2 AS cor0
----
1411
2573
4897

query I rowsort
SELECT + cor1.col1 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

query I rowsort
SELECT DISTINCT + cor0.col0 * + ( + col1 ) AS col1 FROM tab1 AS cor0
----
1040
640
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab2.col0 col1 FROM tab2, tab1 cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

query I rowsort
SELECT + tab1.col2 + col2 * + tab1.col0 * - 79 FROM tab1
----
-12744
-288135
-606624

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2949
SELECT - + col1 + + col1 + - CAST( - cor0.col1 + col0 AS SIGNED ) FROM tab2 cor0
----
-19
-62
24

skipif mysql # not compatible
query I rowsort label-2949
SELECT - + col1 + + col1 + - CAST ( - cor0.col1 + col0 AS INTEGER ) FROM tab2 cor0
----
-19
-62
24

query I rowsort
SELECT DISTINCT - + col1 * col2 * - cor0.col0 FROM tab0 AS cor0
----
3395
664118
68112

query I rowsort
SELECT ALL + + 76 * col1 FROM tab2 cor0
----
1292
2356
4484

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2952
SELECT + col2 * col1 * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2952
SELECT + col2 * col1 * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2953
SELECT - cor0.col1 + col2 + + 89 * col1 DIV + col0 AS col0 FROM tab2 AS cor0
----
34
390
40

skipif mysql # not compatible
query I rowsort label-2953
SELECT - cor0.col1 + col2 + + 89 * col1 / + col0 AS col0 FROM tab2 AS cor0
----
34
390
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 58 + col2 col1 FROM tab2
----
-20
-31
-32

query I rowsort
SELECT DISTINCT - - 39 * col0 FROM tab0 cor0
----
1365
3471
936

query I rowsort
SELECT ALL - col2 + - col1 * + col1 FROM tab2 cor0
----
-327
-3507
-988

query I rowsort
SELECT + col1 + col2 + - ( - col2 ) * - col1 AS col2 FROM tab0 AS cor0
----
-2719
-7289
1

query I rowsort
SELECT DISTINCT - 87 * col1 FROM tab1 AS cor0
----
-1131
-2262
-870

query I rowsort
SELECT DISTINCT 71 * + col0 FROM tab2 cor0
----
497
5538
5609

query I rowsort
SELECT ALL col2 + + col0 + col0 * col2 FROM tab2 AS cor0
----
2132
223
3119

query I rowsort
SELECT - - 38 * + col0 FROM tab1 cor0
----
114
2432
3040

query I rowsort
SELECT ALL + - 20 + + col2 * - col0 * 30 FROM tab0 AS cor0
----
-1070
-218960
-23780

query I rowsort
SELECT - cor0.col1 * col0 * - cor0.col0 AS col2 FROM tab0 AS cor0
----
118825
49536
720811

query I rowsort
SELECT 34 AS col1 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 4e2ca147a59e0d5661c28cf3e5431caa

query I rowsort
SELECT + 83 + col2 AS col1 FROM tab2 AS cor0
----
109
110
121

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 * col2 col2 FROM tab1 AS cor0
----
162
3648
7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-2967
SELECT + - ( col0 ) DIV + col2 - + ( + col1 ) FROM tab0 AS cor0
----
-132
-86
-92

skipif mysql # not compatible
query I rowsort label-2967
SELECT + - ( col0 ) / + col2 - + ( + col1 ) FROM tab0 AS cor0
----
-132
-86
-92

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2968
SELECT - CAST( NULL AS DECIMAL ) - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2968
SELECT - CAST ( NULL AS REAL ) - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - cor0.col0 + col1 * - col1 AS col1 FROM tab1 cor0
----
-164
-249
-679

query I rowsort
SELECT ALL + col2 - + 56 FROM tab0
----
-23
-55
26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2971
SELECT DISTINCT + CAST( NULL AS SIGNED ) * col1 + - tab0.col1 col0 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2971
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * col1 + - tab0.col1 col0 FROM tab0
----
NULL

query I rowsort
SELECT ALL col0 + col0 + col2 AS col1 FROM tab2
----
182
196
41

query I rowsort
SELECT ALL - tab0.col0 * - col1 * col1 + tab0.col1 AS col2 FROM tab0
----
177590
329412
737100

onlyif mysql # use DIV operator for integer division
query I rowsort label-2974
SELECT DISTINCT ( - col2 ) + - col1 DIV - col0 + + ( - tab1.col0 ) FROM tab1
----
-121
-176
-49

skipif mysql # not compatible
query I rowsort label-2974
SELECT DISTINCT ( - col2 ) + - col1 / - col0 + + ( - tab1.col0 ) FROM tab1
----
-121
-176
-49

onlyif mysql # use DIV operator for integer division
query I rowsort label-2975
SELECT ALL + col1 * ( - col2 ) + 94 DIV 45 + + col1 FROM tab1 AS cor0
----
-1233
-1376
-558

skipif mysql # not compatible
query I rowsort label-2975
SELECT ALL + col1 * ( - col2 ) + 94 / 45 + + col1 FROM tab1 AS cor0
----
-1233
-1376
-558

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2976
SELECT ALL - CAST( 25 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-25
-25
-25

skipif mysql # not compatible
query I rowsort label-2976
SELECT ALL - CAST ( 25 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-25
-25
-25

query I rowsort
SELECT DISTINCT col1 * col0 + col1 * - tab0.col0 FROM tab0
----
0

query I rowsort
SELECT ALL 91 * - col2 + + col1 FROM tab1
----
-4888
-5177
-8723

query I rowsort
SELECT DISTINCT col1 + + ( + tab2.col0 ) FROM tab2
----
137
38
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * cor0.col0 - + 52 col2 FROM tab0 AS cor0
----
-2116
-3447
-8151

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2981
SELECT + - col2 * + col2 + + CAST( NULL AS SIGNED ) / - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2981
SELECT + - col2 * + col2 + + CAST ( NULL AS INTEGER ) / - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - cor0.col0 + + col1 AS col0 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT - 64 AS col0 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 100c625e45715c20368551989514ba64

query I rowsort
SELECT + ( + 64 ) AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e

query I rowsort
SELECT ALL - col1 + - col0 * ( - col1 ) AS col2 FROM tab0 AS cor0
----
1978
3298
8008

query I rowsort
SELECT DISTINCT - + col2 * + col1 + + 56 * col0 FROM tab0 AS cor0
----
-1494
-2478
1863

query I rowsort
SELECT ALL - col1 * 59 AS col0 FROM tab1
----
-1534
-590
-767

query I rowsort
SELECT + cor0.col0 * 6 FROM tab2 AS cor0
----
42
468
474

onlyif mysql # use DIV operator for integer division
query I rowsort label-2989
SELECT DISTINCT + cor0.col0 DIV col0 + col0 AS col2 FROM tab0 AS cor0
----
25
36
90

skipif mysql # not compatible
query I rowsort label-2989
SELECT DISTINCT + cor0.col0 / col0 + col0 AS col2 FROM tab0 AS cor0
----
25
36
90

query I rowsort
SELECT - - col2 + - 76 AS col2 FROM tab1 AS cor0
----
-19
-22
20

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2991
SELECT DISTINCT CAST( 45 AS SIGNED ) * + col0 FROM tab2 cor0
----
315
3510
3555

skipif mysql # not compatible
query I rowsort label-2991
SELECT DISTINCT CAST ( 45 AS INTEGER ) * + col0 FROM tab2 cor0
----
315
3510
3555

query I rowsort
SELECT ALL - cor0.col0 + ( cor0.col2 ) + - col0 FROM tab0 AS cor0
----
-15
-69
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-2993
SELECT ALL + col2 * + col0 + col2 * col0 DIV + col1 FROM tab0 cor0
----
35
7378
801

skipif mysql # not compatible
query I rowsort label-2993
SELECT ALL + col2 * + col0 + col2 * col0 / + col1 FROM tab0 cor0
----
35
7378
801

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2994
SELECT ALL + CAST( NULL AS SIGNED ) + cor0.col1 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-2994
SELECT ALL + CAST ( NULL AS INTEGER ) + cor0.col1 col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 * + tab0.col2 + col2 AS col2 FROM tab0
----
1122
2
6806

query I rowsort
SELECT + 37 + + col0 * col2 AS col1 FROM tab1 AS cor0
----
199
3685
7717

query I rowsort
SELECT col2 * ( cor0.col0 * + 88 ) FROM tab1 AS cor0
----
14256
321024
675840

query I rowsort
SELECT + col1 * - col2 + - col2 * - col2 FROM tab2 AS cor0
----
-108
-858
798

query I rowsort
SELECT DISTINCT + col1 * - col1 FROM tab0 WHERE NOT col0 / + col0 NOT BETWEEN NULL AND ( + col1 )
----

query I rowsort
SELECT DISTINCT + col2 + - col1 * - col1 AS col0 FROM tab1 AS cor0
----
157
265
730

query I rowsort
SELECT DISTINCT col2 + col0 * col0 + + col2 FROM tab2 AS cor0
----
103
6136
6317

query I rowsort
SELECT DISTINCT tab2.col0 FROM tab2 WHERE NOT + col1 * - col0 NOT IN ( col1 * - col1 * tab2.col1 + - col0 )
----

query I rowsort
SELECT DISTINCT col2 + - col1 FROM tab0 WHERE - col2 = ( + col2 )
----

query I rowsort
SELECT DISTINCT + tab0.col1 - col0 AS col0 FROM tab0
----
2
62

query I rowsort
SELECT DISTINCT col2 + - col2 * col2 AS col0 FROM tab0
----
-1056
-6642
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3006
SELECT ALL col1 * col0 * - col2 + col0 DIV + col1 FROM tab2 WHERE NOT - col2 = col0 * col1
----
-119651
-51030
-5859

skipif mysql # not compatible
query I rowsort label-3006
SELECT ALL col1 * col0 * - col2 + col0 / + col1 FROM tab2 WHERE NOT - col2 = col0 * col1
----
-119651
-51030
-5859

query I rowsort
SELECT ALL col1 * tab0.col1 + - tab0.col0 + + col1 * col1 AS col1 FROM tab0
----
14768
16473
18783

query I rowsort
SELECT DISTINCT + col0 * col0 + + col2 + col1 AS col2 FROM tab2
----
107
6169
6296

query I rowsort
SELECT ALL + col0 * col1 + + col0 + col0 FROM tab0
----
2112
3465
8277

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab1 WHERE + col2 - col1 * - col1 NOT IN ( col2 * col0 )
----
-10
-13
-26

onlyif mysql # use DIV operator for integer division
query I rowsort label-3011
SELECT col2 DIV tab1.col2 + col0 FROM tab1
----
4
65
81

skipif mysql # not compatible
query I rowsort label-3011
SELECT col2 / tab1.col2 + col0 FROM tab1
----
4
65
81

query I rowsort
SELECT ALL + col2 + - tab0.col0 AS col1 FROM tab0 WHERE NULL <> col1 + + col0
----

query I rowsort
SELECT col1 * col2 + col0 * col0 FROM tab2
----
6887
7618
886

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab0.col2 * tab0.col1 - + tab0.col1 * + col0 col2 FROM tab0
----
-3298
-637
774

query I rowsort
SELECT DISTINCT - col1 * col1 + col1 * tab2.col1 * col1 + tab2.col1 FROM tab2
----
201957
28861
4641

onlyif mysql # use DIV operator for integer division
query I rowsort label-3016
SELECT + col0 DIV cor0.col1 AS col0 FROM tab2 AS cor0
----
0
1
4

skipif mysql # not compatible
query I rowsort label-3016
SELECT + col0 / cor0.col1 AS col0 FROM tab2 AS cor0
----
0
1
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-3017
SELECT + cor0.col2 + col1 DIV + col0 FROM tab1 cor0
----
57
62
96

skipif mysql # not compatible
query I rowsort label-3017
SELECT + cor0.col2 + col1 / + col0 FROM tab1 cor0
----
57
62
96

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 JOIN tab2 ON NOT NULL = NULL
----

query I rowsort
SELECT DISTINCT col0 / col1 + + col0 AS col1 FROM tab2 WHERE + col0 BETWEEN col0 AND NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-3020
SELECT cor0.col1 DIV + col0 AS col2 FROM tab2 AS cor0
----
0
0
4

skipif mysql # not compatible
query I rowsort label-3020
SELECT cor0.col1 / + col0 AS col2 FROM tab2 AS cor0
----
0
0
4

query I rowsort
SELECT + + 17 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to e0dd9155e4d67132637a04c18ef46b2a

onlyif mysql # use DIV operator for integer division
query I rowsort label-3022
SELECT DISTINCT col1 * + 28 + col0 DIV - col0 FROM tab2 AS cor0
----
1651
475
867

skipif mysql # not compatible
query I rowsort label-3022
SELECT DISTINCT col1 * + 28 + col0 / - col0 FROM tab2 AS cor0
----
1651
475
867

query I rowsort
SELECT - col2 * col1 + + col1 AS col2 FROM tab1
----
-1235
-1378
-560

query I rowsort
SELECT + 58 + col0 * - col2 FROM tab1
----
-104
-3590
-7622

query I rowsort
SELECT - 2 + col1 * 62 FROM tab1
----
1610
618
804

query I rowsort
SELECT + + cor0.col1 * col2 AS col2 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT ALL + col1 * + ( col0 ) * col0 AS col2 FROM tab1 AS cor0
----
234
40960
83200

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3028
SELECT ALL + col1 + CAST( NULL AS SIGNED ) * + col1 * col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3028
SELECT ALL + col1 + CAST ( NULL AS INTEGER ) * + col1 * col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 + - 35 FROM tab1 AS cor0
----
-131
-89
-92

onlyif mysql # use DIV operator for integer division
query I rowsort label-3030
SELECT DISTINCT - col2 DIV - 17 FROM tab0 AS cor0
----
0
1
4

skipif mysql # not compatible
query I rowsort label-3030
SELECT DISTINCT - col2 / - 17 FROM tab0 AS cor0
----
0
1
4

query I rowsort
SELECT ALL + col2 + - ( 75 ) FROM tab2 cor0
----
-37
-48
-49

query I rowsort
SELECT col1 * - 94 FROM tab1 AS cor0
----
-1222
-2444
-940

query I rowsort
SELECT ALL - cor0.col0 * ( + cor0.col0 ) - + col1 AS col1 FROM tab1 AS cor0
----
-35
-4106
-6413

query I rowsort
SELECT DISTINCT - + col2 + - ( + col1 ) * - col2 FROM tab1 AS cor0
----
1152
1350
513

query I rowsort
SELECT ALL col1 * col1 + 81 FROM tab2 AS cor0
----
1042
3562
370

query I rowsort
SELECT DISTINCT + col1 * col2 * 75 FROM tab0 AS cor0
----
212850
559650
7275

query I rowsort
SELECT ALL + + col1 + col1 * + col0 AS col2 FROM tab1 AS cor0
----
104
1053
650

query I rowsort
SELECT DISTINCT + col2 * 2 - - 94 AS col2 FROM tab1 AS cor0
----
202
208
286

onlyif mysql # use DIV operator for integer division
query I rowsort label-3039
SELECT col2 + tab1.col2 + col1 DIV - col1 FROM tab1
----
107
113
191

skipif mysql # not compatible
query I rowsort label-3039
SELECT col2 + tab1.col2 + col1 / - col1 FROM tab1
----
107
113
191

query I rowsort
SELECT col1 * tab2.col2 - - col0 FROM tab2
----
1612
725
844

onlyif mysql # use DIV operator for integer division
query I rowsort label-3041
SELECT ALL + col0 DIV col2 + col1 * + col2 AS col1 FROM tab1
----
1248
1404
571

skipif mysql # not compatible
query I rowsort label-3041
SELECT ALL + col0 / col2 + col1 * + col2 AS col1 FROM tab1
----
1248
1404
571

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - col1 col2 FROM tab2
----
-55
-58
-85

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NULL ) NOT IN ( col1 + + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab2.col1 + col2 col0 FROM tab2
----
55
58
85

onlyif mysql # use DIV operator for integer division
query I rowsort label-3045
SELECT ALL tab0.col2 DIV col1 + col1 AS col2 FROM tab0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-3045
SELECT ALL tab0.col2 / col1 + col1 AS col2 FROM tab0
----
86
91
97

query I rowsort
SELECT - tab1.col0 * col2 + - col0 FROM tab1
----
-165
-3712
-7760

query I rowsort
SELECT ALL + tab1.col0 * tab1.col2 FROM tab1
----
162
3648
7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 col1 FROM tab1 WHERE NOT NULL IN ( col1 * col1 + + col2 )
----

query I rowsort
SELECT - col1 + + col0 + col2 * + col1 * col0 FROM tab1
----
36534
4189
99907

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 52 col0 FROM tab1 AS cor0
----
-52
-52
-52

query I rowsort
SELECT DISTINCT + + col0 + col2 * - col2 AS col0 FROM tab0 AS cor0
----
-1065
-6635
34

query I rowsort
SELECT DISTINCT + + 52 FROM tab1 AS cor0
----
52

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col1 + col2 * - col0 < NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NULL <= ( col2 * - col2 * col0 )
----

query I rowsort
SELECT ALL 54 * col1 FROM tab0 AS cor0
----
4644
4914
5238

onlyif mysql # use DIV operator for integer division
query I rowsort label-3056
SELECT DISTINCT col1 + + col1 DIV col1 AS col2 FROM tab2
----
18
32
60

skipif mysql # not compatible
query I rowsort label-3056
SELECT DISTINCT col1 + + col1 / col1 AS col2 FROM tab2
----
18
32
60

query I rowsort
SELECT - - col2 * - ( + 96 ) AS col1 FROM tab0 AS cor0
----
-3168
-7872
-96

query I rowsort
SELECT ALL + cor0.col2 - - 79 * - col1 AS col0 FROM tab0 AS cor0
----
-6761
-7107
-7662

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3059
SELECT col0 / CAST( NULL AS DECIMAL ) - col2 * + col2 * col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3059
SELECT col0 / CAST ( NULL AS REAL ) - col2 * + col2 * col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3060
SELECT ALL + col0 * ( cor0.col1 ) * col1 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3060
SELECT ALL + col0 * ( cor0.col1 ) * col1 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col2 * ( + col1 ) FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT cor0.col1 - + col2 AS col0 FROM tab0 AS cor0
----
53
9
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 * 98 col1 FROM tab0 AS cor0
----
-3234
-8036
-98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3064
SELECT DISTINCT - + col0 / CAST( NULL AS DECIMAL ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3064
SELECT DISTINCT - + col0 / CAST ( NULL AS REAL ) AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT col0 * ( - col2 ) * col2 + - col1 * col2 AS col1 FROM tab2 cor0
----
-114722
-54262
-5940

onlyif mysql # use DIV operator for integer division
query I rowsort label-3066
SELECT + cor0.col0 - - col1 DIV + 40 AS col0 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-3066
SELECT + cor0.col0 - - col1 / + 40 AS col0 FROM tab1 AS cor0
----
3
64
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-3067
SELECT + col0 + + col2 DIV ( - col1 * col1 ) FROM tab2 AS cor0
----
7
78
79

skipif mysql # not compatible
query I rowsort label-3067
SELECT + col0 + + col2 / ( - col1 * col1 ) FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT col2 * 96 + col0 FROM tab0 AS cor0
----
131
3192
7961

query I rowsort
SELECT cor0.col2 + col2 * col1 AS col1 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT ALL + 24 + - ( col0 ) FROM tab0 AS cor0
----
-11
-65
0

query I rowsort
SELECT ALL - - cor0.col1 FROM tab0, tab0 cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

query I rowsort
SELECT - 83 * col2 + + col0 * - 74 AS col0 FROM tab0 AS cor0
----
-13392
-2673
-4515

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3073
SELECT - + CAST( + col0 AS SIGNED ) * col2 + - col1 AS col1 FROM tab2 AS cor0
----
-2087
-220
-3019

skipif mysql # not compatible
query I rowsort label-3073
SELECT - + CAST ( + col0 AS INTEGER ) * col2 + - col1 AS col1 FROM tab2 AS cor0
----
-2087
-220
-3019

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( col2 ) - + col2 col0 FROM tab1 AS cor0
----
-108
-114
-192

query I rowsort
SELECT DISTINCT col2 * + 72 + col1 FROM tab1
----
3914
4114
6925

query I rowsort
SELECT col2 + - 42 FROM tab0
----
-41
-9
40

query I rowsort
SELECT + - 72 + - cor0.col0 * - col2 AS col0 FROM tab1 AS cor0
----
3576
7608
90

query I rowsort
SELECT ALL - - 89 AS col2 FROM tab1 AS cor0
----
89
89
89

query I rowsort
SELECT ALL + ( col1 ) * 10 + - col0 FROM tab1 AS cor0
----
257
36
50

query I rowsort
SELECT DISTINCT - + col1 * - col1 + ( col0 ) * - col0 FROM tab0 AS cor0
----
360
6820
8184

query I rowsort
SELECT DISTINCT 8 + + col2 * col2 + - col2 * + col1 * col1 AS col1 FROM tab2 cor0
----
-25210
-89822
-9530

query I rowsort
SELECT + col0 + col2 - col0 FROM tab0
----
1
33
82

query I rowsort
SELECT DISTINCT 33 - - col1 * + 88 FROM tab2
----
1529
2761
5225

onlyif mysql # use DIV operator for integer division
query I rowsort label-3084
SELECT + col0 DIV 1 + col0 AS col2 FROM tab0 AS cor0
----
178
48
70

skipif mysql # not compatible
query I rowsort label-3084
SELECT + col0 / 1 + col0 AS col2 FROM tab0 AS cor0
----
178
48
70

onlyif mysql # use DIV operator for integer division
query I rowsort label-3085
SELECT - col1 * - col2 - + 90 DIV - col2 FROM tab0 AS cor0
----
187
2840
7463

skipif mysql # not compatible
query I rowsort label-3085
SELECT - col1 * - col2 - + 90 / - col2 FROM tab0 AS cor0
----
187
2840
7463

query I rowsort
SELECT ALL cor0.col1 * col2 * - col2 AS col0 FROM tab0 AS cor0
----
-611884
-93654
-97

query I rowsort
SELECT - col0 + ( - col0 ) AS col2 FROM tab2 cor0
----
-14
-156
-158

query I rowsort
SELECT - col2 * + col2 + 40 + + col0 FROM tab0
----
-1025
-6595
74

query I rowsort
SELECT - - col2 * + 7 FROM tab2 AS cor0
----
182
189
266

query I rowsort
SELECT col0 + col1 * - col1 * col1 FROM tab2 cor0
----
-205301
-29784
-4834

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3091
SELECT DISTINCT + CAST( 77 AS SIGNED ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
77

skipif mysql # not compatible
query I rowsort label-3091
SELECT DISTINCT + CAST ( 77 AS INTEGER ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
77

query I rowsort
SELECT - 15 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1172c9a62bdad7db0def9205c06ee1f2

query I rowsort
SELECT + ( - col0 ) * + col0 + + 89 FROM tab1
----
-4007
-6311
80

query I rowsort
SELECT DISTINCT - 6 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
-6

query I rowsort
SELECT DISTINCT - 23 * ( cor0.col2 + ( tab0.col1 ) ) AS col2 FROM tab0, tab0 cor0
----
9 values hashing to b3fdb2bd3388867d49e71df4feea9e41

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3096
SELECT ALL + CAST( NULL AS SIGNED ) + 91 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-3096
SELECT ALL + CAST ( NULL AS INTEGER ) + 91 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT 23 AS col2 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
23

query I rowsort
SELECT + col2 * + 54 * + col1 + + col2 + ( col2 ) AS col1 FROM tab2
----
34960
45252
82888

query I rowsort
SELECT ALL + 98 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809

onlyif mysql # use DIV operator for integer division
query I rowsort label-3100
SELECT + col2 + col1 DIV - ( col1 ) AS col2 FROM tab2 AS cor0
----
25
26
37

skipif mysql # not compatible
query I rowsort label-3100
SELECT + col2 + col1 / - ( col1 ) AS col2 FROM tab2 AS cor0
----
25
26
37

query I rowsort
SELECT DISTINCT + 99 AS col1 FROM tab2, tab1 AS cor0
----
99

query I rowsort
SELECT + ( + 84 ) FROM tab1
----
84
84
84

query I rowsort
SELECT col2 + + 28 * col0 AS col1 FROM tab1
----
138
1849
2336

query I rowsort
SELECT 99 + - col1 FROM tab2 AS cor0
----
40
68
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-3105
SELECT 99 + col1 * col1 DIV col1 FROM tab1
----
109
112
125

skipif mysql # not compatible
query I rowsort label-3105
SELECT 99 + col1 * col1 / col1 FROM tab1
----
109
112
125

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - col0 ) col0 FROM tab0
----
24
35
89

query I rowsort
SELECT + + cor0.col1 * col1 AS col2 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT ALL col1 * col1 - + col2 AS col0 FROM tab1 AS cor0
----
43
622
73

query I rowsort
SELECT col0 * + col0 + 68 AS col1 FROM tab2 AS cor0
----
117
6152
6309

query I rowsort
SELECT ALL tab1.col0 * 31 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 1f469489fc5c6e49f053205e2ac303f8

query I rowsort
SELECT cor0.col0 + - col1 * col1 AS col2 FROM tab1 AS cor0
----
-36
-673
-89

query I rowsort
SELECT - - 70 * - col2 AS col0 FROM tab1 AS cor0
----
-3780
-3990
-6720

onlyif mysql # use DIV operator for integer division
query I rowsort label-3113
SELECT ALL - + col1 DIV col1 + - col0 * col1 FROM tab0 AS cor0
----
-2065
-3396
-8100

skipif mysql # not compatible
query I rowsort label-3113
SELECT ALL - + col1 / col1 + - col0 * col1 FROM tab0 AS cor0
----
-2065
-3396
-8100

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3114
SELECT DISTINCT - cor0.col2 * + CAST( NULL AS SIGNED ) + cor0.col2 FROM tab2, tab2 cor0, tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-3114
SELECT DISTINCT - cor0.col2 * + CAST ( NULL AS INTEGER ) + cor0.col2 FROM tab2, tab2 cor0, tab0 AS cor1
----
NULL

query I rowsort
SELECT + ( 31 ) FROM tab1
----
31
31
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + col0 * col2 col0 FROM tab1
----
188
3658
7693

query I rowsort
SELECT DISTINCT + col1 * 47 * col0 FROM tab0
----
159565
380653
97008

query I rowsort
SELECT + col1 + - 95 * col2 FROM tab2 AS cor0
----
-2411
-2534
-3593

onlyif mysql # use DIV operator for integer division
query I rowsort label-3119
SELECT - 37 DIV + cor0.col0 FROM tab0 cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-3119
SELECT - 37 / + cor0.col0 FROM tab0 cor0
----
-1
-1
0

query I rowsort
SELECT DISTINCT + 97 FROM tab0, tab1 AS cor0, tab1 AS cor1, tab0 AS cor2
----
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-3121
SELECT - + ( col2 ) * col2 DIV col0 - + cor0.col1 AS col0 FROM tab0 AS cor0
----
-131
-166
-97

skipif mysql # not compatible
query I rowsort label-3121
SELECT - + ( col2 ) * col2 / col0 - + cor0.col1 AS col0 FROM tab0 AS cor0
----
-131
-166
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-3122
SELECT ALL - 9 DIV + cor0.col2 FROM tab0 AS cor0
----
-9
0
0

skipif mysql # not compatible
query I rowsort label-3122
SELECT ALL - 9 / + cor0.col2 FROM tab0 AS cor0
----
-9
0
0

query I rowsort
SELECT - col2 + cor0.col0 - + 67 FROM tab0 AS cor0
----
-33
-60
-76

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3124
SELECT DISTINCT + CAST( ( tab1.col0 ) AS SIGNED ) AS col2 FROM tab1
----
3
64
80

skipif mysql # not compatible
query I rowsort label-3124
SELECT DISTINCT + CAST ( ( tab1.col0 ) AS INTEGER ) AS col2 FROM tab1
----
3
64
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-3125
SELECT ALL 10 DIV + col0 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3125
SELECT ALL 10 / + col0 AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL col2 * col2 * tab1.col2 AS col0 FROM tab1
----
157464
185193
884736

onlyif mysql # use DIV operator for integer division
query I rowsort label-3127
SELECT - col2 + + col2 * + col0 DIV + col0 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3127
SELECT - col2 + + col2 * + col0 / + col0 AS col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3128
SELECT - col2 DIV - col2 + col1 * col1 + 16 AS col1 FROM tab1 AS cor0
----
117
186
693

skipif mysql # not compatible
query I rowsort label-3128
SELECT - col2 / - col2 + col1 * col1 + 16 AS col1 FROM tab1 AS cor0
----
117
186
693

onlyif mysql # use DIV operator for integer division
query I rowsort label-3129
SELECT - - col2 * cor0.col0 DIV + 8 AS col2 FROM tab0 AS cor0
----
4
912
99

skipif mysql # not compatible
query I rowsort label-3129
SELECT - - col2 * cor0.col0 / + 8 AS col2 FROM tab0 AS cor0
----
4
912
99

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3130
SELECT + - col0 + + CAST( 70 AS SIGNED ) col2 FROM tab2 AS cor0
----
-8
-9
63

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3130
SELECT + - col0 + + CAST ( 70 AS INTEGER ) col2 FROM tab2 AS cor0
----
-8
-9
63

query I rowsort
SELECT + - col0 * - ( - col0 ) * - cor0.col2 + col2 + - col1 * - col0 AS col2 FROM tab1 AS cor0
----
234169
615536
618

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 73 col1 FROM tab0
----
-73
-73
-73

query I rowsort
SELECT DISTINCT 65 + - 14 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
51

query I rowsort
SELECT - col2 + + col2 * - 60 AS col1 FROM tab2 AS cor0
----
-1586
-1647
-2318

onlyif mysql # use DIV operator for integer division
query I rowsort label-3135
SELECT - 30 DIV - 92 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3135
SELECT - 30 / - 92 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + + 31 * 2 AS col1 FROM tab1 AS cor0
----
62
62
62

query I rowsort
SELECT DISTINCT - ( ( + col0 ) ) FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT ALL col1 + - cor0.col2 * col1 FROM tab2 AS cor0
----
-1475
-629
-806

query I rowsort
SELECT ALL col1 + ( + col2 + col2 ) FROM tab1 AS cor0
----
124
134
205

query I rowsort
SELECT DISTINCT - - cor0.col1 * cor0.col1 * - col0 + col0 * 59 AS col0 FROM tab0 AS cor0
----
-176088
-327250
-731758

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( 8 AS REAL ) * + col2 AS col0 FROM tab1 AS cor0
----
432
456
768

query I rowsort
SELECT ALL col1 + + ( 51 ) + col2 * col2 FROM tab2
----
1512
786
811

query I rowsort
SELECT DISTINCT + 31 * col0 FROM tab0 AS cor0
----
1085
2759
744

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 33 * + 67 col0 FROM tab1 AS cor0
----
2211
2211
2211

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3145
SELECT - - CAST( NULL AS SIGNED ) * col2 * - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3145
SELECT - - CAST ( NULL AS INTEGER ) * col2 * - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col2 * 12 AS col1 FROM tab1 AS cor0
----
1152
648
684

onlyif mysql # use DIV operator for integer division
query I rowsort label-3147
SELECT CAST( col0 AS SIGNED ) DIV col2 AS col1 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3147
SELECT CAST ( col0 AS INTEGER ) / col2 AS col1 FROM tab1 AS cor0
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + 13 ) col2 FROM tab2 AS cor0
----
13
13
13

query I rowsort
SELECT ALL 45 * col2 AS col2 FROM tab2 AS cor0
----
1170
1215
1710

query I rowsort
SELECT + 85 * - col0 + - col2 FROM tab2 AS cor0
----
-622
-6656
-6753

query I rowsort
SELECT - + col1 * - col0 + col2 AS col2 FROM tab1 AS cor0
----
1136
132
697

query I rowsort
SELECT - + col1 * + col1 + - col2 AS col1 FROM tab0 AS cor0
----
-7429
-8363
-9410

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 - + col0 col1 FROM tab2 AS cor0
----
-19
-62
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col1 - col0 col2 FROM tab0
----
2
62
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 75 * + 59 col1 FROM tab0, tab0 AS cor0
----
4425

query I rowsort
SELECT - col1 + + 79 AS col2 FROM tab1
----
53
66
69

onlyif mysql # use DIV operator for integer division
query I rowsort label-3157
SELECT DISTINCT + col0 DIV - ( col0 ) + - col1 FROM tab2
----
-18
-32
-60

skipif mysql # not compatible
query I rowsort label-3157
SELECT DISTINCT + col0 / - ( col0 ) + - col1 FROM tab2
----
-18
-32
-60

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3158
SELECT - col1 * CAST( NULL AS SIGNED ) + col1 * col0 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3158
SELECT - col1 * CAST ( NULL AS INTEGER ) + col1 * col0 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - col0 + - col1 col2 FROM tab2 AS cor0
----
1326
186
4543

query I rowsort
SELECT col1 - - ( col2 ) * - col2 AS col2 FROM tab1 cor0
----
-2890
-3239
-9203

query I rowsort
SELECT DISTINCT + col1 + - 95 - - col1 FROM tab1 AS cor0
----
-43
-69
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 10 col1 FROM tab2, tab1 cor0
----
10

query I rowsort
SELECT ALL col1 - 38 AS col1 FROM tab2 cor0
----
-21
-7
21

query I rowsort
SELECT + - cor0.col2 + cor0.col2 - col1 FROM tab1 cor0
----
-10
-13
-26

query I rowsort
SELECT col2 - + cor0.col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3166
SELECT + 82 * col0 DIV + 22 FROM tab2 AS cor0
----
26
290
294

skipif mysql # not compatible
query I rowsort label-3166
SELECT + 82 * col0 / + 22 FROM tab2 AS cor0
----
26
290
294

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col2 * col0 col2 FROM tab1 cor0
----
-162
-3648
-7680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3168
SELECT CAST( - 93 AS SIGNED ) FROM tab0
----
-93
-93
-93

skipif mysql # not compatible
query I rowsort label-3168
SELECT CAST ( - 93 AS INTEGER ) FROM tab0
----
-93
-93
-93

onlyif mysql # use DIV operator for integer division
query I rowsort label-3169
SELECT DISTINCT 14 * + col2 + + col2 DIV col1 AS col0 FROM tab2
----
364
378
534

skipif mysql # not compatible
query I rowsort label-3169
SELECT DISTINCT 14 * + col2 + + col2 / col1 AS col0 FROM tab2
----
364
378
534

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 55 + col2 col0 FROM tab1 AS cor0
----
109
112
151

query I rowsort
SELECT DISTINCT - 70 * + col1 + cor0.col0 FROM tab0 AS cor0
----
-5996
-6281
-6755

query I rowsort
SELECT - - cor0.col2 * - cor0.col0 - 42 FROM tab2 AS cor0
----
-2070
-231
-3044

query I rowsort
SELECT ALL + col0 + - cor0.col1 * - col2 FROM tab0 AS cor0
----
132
2862
7551

query I rowsort
SELECT ALL - col2 * col1 + + col1 * 24 FROM tab2 AS cor0
----
-118
-238
-93

onlyif mysql # use DIV operator for integer division
query I rowsort label-3175
SELECT ALL + col0 * col1 + + col2 * col2 DIV + col1 FROM tab0 AS cor0
----
2076
3395
8172

skipif mysql # not compatible
query I rowsort label-3175
SELECT ALL + col0 * col1 + + col2 * col2 / + col1 FROM tab0 AS cor0
----
2076
3395
8172

query I rowsort
SELECT col2 * - col0 - col1 * + 18 AS col0 FROM tab2 AS cor0
----
-3090
-3308
-747

onlyif mysql # use DIV operator for integer division
query I rowsort label-3177
SELECT col0 DIV + 59 + 88 + col1 FROM tab2 cor0
----
106
119
148

skipif mysql # not compatible
query I rowsort label-3177
SELECT col0 / + 59 + 88 + col1 FROM tab2 cor0
----
106
119
148

query I rowsort
SELECT + + col2 + ( - col1 ) * cor0.col0 FROM tab1 AS cor0
----
-24
-583
-944

query I rowsort
SELECT DISTINCT - + cor0.col1 * - col0 - - col0 AS col1 FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT DISTINCT 54 * 21 FROM tab2, tab1 AS cor0
----
1134

skipif mysql # not compatible
query I rowsort
SELECT col1 + CAST ( + col2 AS REAL ) * col2 * 3 AS col2 FROM tab1 AS cor0
----
27661
8774
9757

query I rowsort
SELECT ALL col0 + - 75 * col2 * col2 AS col0 FROM tab0 AS cor0
----
-40
-504211
-81651

query I rowsort
SELECT DISTINCT + - cor0.col2 * 92 AS col1 FROM tab2 AS cor0
----
-2392
-2484
-3496

query I rowsort
SELECT DISTINCT - - ( - 8 ) AS col2 FROM tab1 AS cor0
----
-8

query I rowsort
SELECT DISTINCT - col1 * 59 + col2 FROM tab2 AS cor0
----
-1802
-3455
-965

query I rowsort
SELECT - cor1.col0 + + 47 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 3b264dd45366b0241ad18ab3e86e8ae4

query I rowsort
SELECT DISTINCT + - col0 * + 19 FROM tab1 AS cor0
----
-1216
-1520
-57

query I rowsort
SELECT ALL - col0 * col2 + - col2 * col2 * col0 AS col0 FROM tab1 AS cor0
----
-211584
-744960
-8910

query I rowsort
SELECT DISTINCT + 33 AS col1 FROM tab2, tab0 AS cor0
----
33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + col2 + + col0 col0 FROM tab2 AS cor0
----
-182
-1950
-2923

query I rowsort
SELECT ALL ( 75 ) AS col0 FROM tab1 AS cor0
----
75
75
75

query I rowsort
SELECT DISTINCT + - 72 AS col2 FROM tab1 cor0
----
-72

query I rowsort
SELECT - - 31 FROM tab0 cor0
----
31
31
31

query I rowsort
SELECT DISTINCT - - 57 + col0 * - col1 FROM tab0 AS cor0
----
-2007
-3338
-8042

query I rowsort
SELECT DISTINCT col0 * - 37 FROM tab0
----
-1295
-3293
-888

query I rowsort
SELECT + 30 + ( - col2 ) * - ( - 5 ) * col1 + + col0 AS col0 FROM tab1 AS cor0
----
-2756
-6130
-6987

onlyif mysql # use DIV operator for integer division
query I rowsort label-3197
SELECT - col1 DIV 63 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3197
SELECT - col1 / 63 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - - col1 + + col0 AS col2 FROM tab0 cor0
----
110
132
180

query I rowsort
SELECT ALL col2 * - 40 AS col1 FROM tab2
----
-1040
-1080
-1520

query I rowsort
SELECT + col1 * col1 + + 33 + - cor0.col1 FROM tab0 AS cor0
----
7343
8223
9345

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3201
SELECT col0 + + CAST( col1 AS SIGNED ) * col2 FROM tab2 AS cor0
----
1612
725
844

skipif mysql # not compatible
query I rowsort label-3201
SELECT col0 + + CAST ( col1 AS INTEGER ) * col2 FROM tab2 AS cor0
----
1612
725
844

query I rowsort
SELECT DISTINCT - col2 * ( - col0 ) FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT ALL + 45 FROM tab2, tab2 AS cor0
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050

query I rowsort
SELECT - + col0 * 84 + - 1 FROM tab2 AS cor0
----
-589
-6553
-6637

query I rowsort
SELECT DISTINCT + tab2.col1 * - col1 * + 8 AS col0 FROM tab2
----
-2312
-27848
-7688

query I rowsort
SELECT + col1 + col1 * col2 AS col1 FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT - col1 + - ( - col1 + col1 ) FROM tab0
----
-86
-91
-97

query I rowsort
SELECT ALL + col0 * + ( col0 ) FROM tab2
----
49
6084
6241

query I rowsort
SELECT col0 * col1 * 8 FROM tab1
----
5120
624
8320

query I rowsort
SELECT - cor0.col2 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3211
SELECT col0 + + CAST( NULL AS SIGNED ) / 40 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3211
SELECT col0 + + CAST ( NULL AS INTEGER ) / 40 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 64 + + tab1.col1 FROM tab1
----
74
77
90

onlyif mysql # use DIV operator for integer division
query I rowsort label-3213
SELECT - col2 DIV col1 - - col1 AS col0 FROM tab2
----
15
31
59

skipif mysql # not compatible
query I rowsort label-3213
SELECT - col2 / col1 - - col1 AS col0 FROM tab2
----
15
31
59

query I rowsort
SELECT col1 + ( - tab2.col2 * + col1 ) AS col2 FROM tab2
----
-1475
-629
-806

query I rowsort
SELECT DISTINCT - col0 + col1 AS col0 FROM tab0 cor0
----
2
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + - cor0.col0 * + CAST ( + col0 AS REAL ) * col2 col0 FROM tab2 AS cor0
----
-1323
-158184
-237158

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 34 col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * ( - col0 ) col0 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT ALL col2 + + 63 + col2 * + col2 AS col2 FROM tab2 cor0
----
1545
765
819

query I rowsort
SELECT - 45 * 40 * - col0 + 87 - - ( col1 ) * 57 AS col0 FROM tab2
----
143256
143850
14454

query I rowsort
SELECT ( 77 + col2 ) AS col0 FROM tab2
----
103
104
115

query I rowsort
SELECT col1 * - 32 AS col2 FROM tab2
----
-1888
-544
-992

query I rowsort
SELECT - 34 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 40442a74794ded4c78101eefe525a5bb

query I rowsort
SELECT + col2 + - cor0.col0 * + col0 * + col0 FROM tab1 AS cor0
----
-262087
-511904
27

query I rowsort
SELECT DISTINCT + + cor0.col2 FROM tab2, tab0 AS cor0
----
1
33
82

query I rowsort
SELECT - + ( cor0.col2 ) + col1 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT col1 + + 55 FROM tab2 AS cor0
----
114
72
86

query I rowsort
SELECT col1 + + cor0.col1 * - col2 * col1 FROM tab1 AS cor0
----
-16211
-36478
-5690

onlyif mysql # use DIV operator for integer division
query I rowsort label-3229
SELECT - col1 DIV col2 + col0 FROM tab1 cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-3229
SELECT - col1 / col2 + col0 FROM tab1 cor0
----
3
64
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-3230
SELECT ALL + + col1 DIV col1 FROM tab1 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3230
SELECT ALL + + col1 / col1 FROM tab1 cor0
----
1
1
1

query I rowsort
SELECT + col1 * col0 + + col2 * - col1 FROM tab1 AS cor0
----
-1326
-208
70

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3232
SELECT ALL - col2 * - col2 + CAST( + col0 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
1523
736
754

skipif mysql # not compatible
query I rowsort label-3232
SELECT ALL - col2 * - col2 + CAST ( + col0 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
1523
736
754

query I rowsort
SELECT + col1 * col2 + - 11 + 97 AS col1 FROM tab1 AS cor0
----
1334
1490
656

onlyif mysql # use DIV operator for integer division
query I rowsort label-3234
SELECT - - 19 + + col1 DIV ( col0 + col2 ) AS col1 FROM tab0 cor0
----
19
20
21

skipif mysql # not compatible
query I rowsort label-3234
SELECT - - 19 + + col1 / ( col0 + col2 ) AS col1 FROM tab0 cor0
----
19
20
21

query I rowsort
SELECT ALL + col0 * cor0.col0 AS col1 FROM tab1 cor0
----
4096
6400
9

query I rowsort
SELECT ALL cor1.col0 * + 10 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 34aae630843d7547c3fa5af42c9bc72d

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * col1 * - 51 + col1 col0 FROM tab2
----
-14722
-177472
-48980

query I rowsort
SELECT - col0 + col0 * cor0.col0 FROM tab1 cor0
----
4032
6
6320

onlyif mysql # use DIV operator for integer division
query I rowsort label-3239
SELECT - col2 DIV col1 + - ( 95 ) DIV col1 AS col0 FROM tab1 AS cor0
----
-14
-14
-5

skipif mysql # not compatible
query I rowsort label-3239
SELECT - col2 / col1 + - ( 95 ) / col1 AS col0 FROM tab1 AS cor0
----
-14
-14
-5

query I rowsort
SELECT + col0 * col1 - - col1 * col0 AS col1 FROM tab0 AS cor0
----
16198
4128
6790

query I rowsort
SELECT ALL 32 * - col0 FROM tab1 AS cor0
----
-2048
-2560
-96

query I rowsort
SELECT DISTINCT - 86 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
-86

query I rowsort
SELECT + 17 + col1 AS col2 FROM tab1 AS cor0
----
27
30
43

skipif mysql # not compatible
query I rowsort
SELECT - + col2 * + col1 - - CAST ( col1 AS REAL ) FROM tab0 AS cor0
----
-2752
-7371
0

query I rowsort
SELECT DISTINCT 93 + + col0 * + col1 FROM tab2 AS cor0
----
1436
310
4695

query I rowsort
SELECT DISTINCT - + col2 + 86 FROM tab0 AS cor0
----
4
53
85

onlyif mysql # use DIV operator for integer division
query I rowsort label-3247
SELECT DISTINCT + + col0 + + ( col0 ) DIV col1 + col0 * + col1 FROM tab1 AS cor0
----
1126
710
81

skipif mysql # not compatible
query I rowsort label-3247
SELECT DISTINCT + + col0 + + ( col0 ) / col1 + col0 * + col1 FROM tab1 AS cor0
----
1126
710
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-3248
SELECT ALL - cor0.col2 DIV col0 - - col2 AS col2 FROM tab1 cor0
----
36
57
95

skipif mysql # not compatible
query I rowsort label-3248
SELECT ALL - cor0.col2 / col0 - - col2 AS col2 FROM tab1 cor0
----
36
57
95

query I rowsort
SELECT - col1 * ( - 32 ) AS col0 FROM tab0 AS cor0
----
2752
2912
3104

query I rowsort
SELECT ALL + + col1 + - col0 + - cor0.col2 AS col0 FROM tab2 AS cor0
----
-100
-3
-45

onlyif mysql # use DIV operator for integer division
query I rowsort label-3251
SELECT DISTINCT + + cor0.col2 DIV + col1 - + col1 AS col1 FROM tab0 AS cor0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-3251
SELECT DISTINCT + + cor0.col2 / + col1 - + col1 AS col1 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT + - col0 + - col1 * - col1 AS col1 FROM tab2 AS cor0
----
210
3403
954

query I rowsort
SELECT ALL + + cor0.col0 * col0 - 22 FROM tab1 AS cor0
----
-13
4074
6378

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3254
SELECT DISTINCT col0 * + col1 + CAST( NULL AS SIGNED ) * tab1.col1 AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3254
SELECT DISTINCT col0 * + col1 + CAST ( NULL AS INTEGER ) * tab1.col1 AS col0 FROM tab1
----
NULL

query I rowsort
SELECT - 55 * col1 + col1 AS col2 FROM tab0
----
-4644
-4914
-5238

query I rowsort
SELECT ALL - - 60 + + col1 AS col1 FROM tab2 AS cor0
----
119
77
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col0 + cor0.col2 + col0 col0 FROM tab2 AS cor0
----
182
196
41

query I rowsort
SELECT - col1 * + 16 AS col2 FROM tab2 AS cor0
----
-272
-496
-944

query I rowsort
SELECT DISTINCT col1 * col0 + col2 AS col1 FROM tab2 AS cor0
----
1381
244
4628

query I rowsort
SELECT + 83 * - col1 AS col2 FROM tab2 AS cor0
----
-1411
-2573
-4897

query I rowsort
SELECT ALL - + 99 * - 49 AS col2 FROM tab1 AS cor0
----
4851
4851
4851

query I rowsort
SELECT + 14 * - col1 FROM tab1 AS cor0
----
-140
-182
-364

onlyif mysql # use DIV operator for integer division
query I rowsort label-3263
SELECT ALL col1 * cor0.col2 + col1 + - col1 DIV 75 FROM tab0 AS cor0
----
193
2923
7552

skipif mysql # not compatible
query I rowsort label-3263
SELECT ALL col1 * cor0.col2 + col1 + - col1 / 75 FROM tab0 AS cor0
----
193
2923
7552

query I rowsort
SELECT - 21 * - col0 FROM tab2
----
147
1638
1659

query I rowsort
SELECT - col1 * - 3 + + col0 AS col2 FROM tab2 AS cor0
----
100
130
255

query I rowsort
SELECT DISTINCT + - cor0.col2 * + col2 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT + tab2.col1 FROM tab2, tab1 AS cor0, tab1, tab0 AS cor1
----
81 values hashing to a5b6acb471910ea4ad7f31cae3b818f7

query I rowsort
SELECT + col0 * - 17 FROM tab2 AS cor0
----
-119
-1326
-1343

query I rowsort
SELECT + + col0 * - 23 FROM tab1 cor0
----
-1472
-1840
-69

query I rowsort
SELECT + col0 * 26 FROM tab1 cor0
----
1664
2080
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-3271
SELECT DISTINCT + col1 + - 44 DIV + col0 FROM tab0 AS cor0
----
85
91
96

skipif mysql # not compatible
query I rowsort label-3271
SELECT DISTINCT + col1 + - 44 / + col0 FROM tab0 AS cor0
----
85
91
96

query I rowsort
SELECT col2 * col1 + - 67 FROM tab1
----
1181
1337
503

onlyif mysql # use DIV operator for integer division
query I rowsort label-3273
SELECT tab1.col2 * col1 * - 98 + ( col0 ) DIV col2 AS col1 FROM tab1
----
-122304
-137592
-55859

skipif mysql # not compatible
query I rowsort label-3273
SELECT tab1.col2 * col1 * - 98 + ( col0 ) / col2 AS col1 FROM tab1
----
-122304
-137592
-55859

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 * 78 col0 FROM tab2, tab0 cor0
----
9 values hashing to 9438d0df016bd9e06d27edea073c2995

query I rowsort
SELECT ALL 59 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

onlyif mysql # use DIV operator for integer division
query I rowsort label-3276
SELECT ALL + col0 * cor0.col0 + col0 DIV col2 + - col2 DIV col1 FROM tab1 cor0
----
4092
6393
7

skipif mysql # not compatible
query I rowsort label-3276
SELECT ALL + col0 * cor0.col0 + col0 / col2 + - col2 / col1 FROM tab1 cor0
----
4092
6393
7

query I rowsort
SELECT ALL + col0 * ( col1 ) FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT - col0 + ( - col0 ) AS col2 FROM tab0 cor0
----
-178
-48
-70

query I rowsort
SELECT ALL col0 * 78 AS col1 FROM tab1 AS cor0
----
234
4992
6240

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - 91 col2 FROM tab1 AS cor0
----
-4914
-5187
-8736

onlyif mysql # use DIV operator for integer division
query I rowsort label-3281
SELECT DISTINCT + col1 DIV ( - 18 ) FROM tab2 AS cor0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-3281
SELECT DISTINCT + col1 / ( - 18 ) FROM tab2 AS cor0
----
-1
-3
0

query I rowsort
SELECT DISTINCT + - col0 * - col2 AS col2 FROM tab2 cor0
----
189
2028
3002

query I rowsort
SELECT tab2.col0 * 35 * 46 + + tab2.col0 FROM tab2
----
11277
125658
127269

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3284
SELECT CAST( tab2.col1 AS SIGNED ) * + col1 FROM tab2
----
289
3481
961

skipif mysql # not compatible
query I rowsort label-3284
SELECT CAST ( tab2.col1 AS INTEGER ) * + col1 FROM tab2
----
289
3481
961

onlyif mysql # use DIV operator for integer division
query I rowsort label-3285
SELECT DISTINCT + 23 + - 83 DIV col1 col2 FROM tab0
----
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3285
SELECT DISTINCT + 23 + - 83 / col1 col2 FROM tab0
----
23

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3286
SELECT - col1 * col1 + CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3286
SELECT - col1 * col1 + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col0 + - col0 * 35 * + col2 + col0 FROM tab2 AS cor0
----
-105070
-6615
-70980

query I rowsort
SELECT tab0.col1 FROM tab0, tab2 cor0, tab0 cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT - 43 + col2 FROM tab0
----
-10
-42
39

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3290
SELECT ( - col1 ) * CAST( 68 AS SIGNED ) FROM tab1 AS cor0
----
-1768
-680
-884

skipif mysql # not compatible
query I rowsort label-3290
SELECT ( - col1 ) * CAST ( 68 AS INTEGER ) FROM tab1 AS cor0
----
-1768
-680
-884

query I rowsort
SELECT ALL + col1 - col1 * - col2 FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT ALL 98 * col1 FROM tab2 AS cor0
----
1666
3038
5782

query I rowsort
SELECT ALL - 69 + col2 - + 70 AS col2 FROM tab1 AS cor0
----
-43
-82
-85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col1 * + col0 col2 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT + 30 * - cor0.col2 + - col1 FROM tab2 AS cor0
----
-1157
-839
-841

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 91 col2 FROM tab0 AS cor0
----
-91

query I rowsort
SELECT ALL - ( - col0 ) + col0 * col1 AS col0 FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT ALL - ( + cor0.col1 ) + col0 AS col1 FROM tab0 AS cor0
----
-2
-62
-62

query I rowsort
SELECT ( + tab0.col2 ) FROM tab0, tab0 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab2.col1 col0 FROM tab2, tab1, tab0 cor0
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + ( + col2 ) col2 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT - 14 * cor0.col0 FROM tab0 AS cor0
----
-1246
-336
-490

onlyif mysql # use DIV operator for integer division
query I rowsort label-3303
SELECT col1 + col0 DIV - col0 - + col1 AS col2 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3303
SELECT col1 + col0 / - col0 - + col1 AS col2 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT - 76 * + 20 * col2 AS col1 FROM tab0 AS cor0
----
-124640
-1520
-50160

onlyif mysql # use DIV operator for integer division
query I rowsort label-3305
SELECT - ( - ( - col2 ) ) + + col2 DIV - col2 col2 FROM tab0 AS cor0
----
-2
-34
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3305
SELECT - ( - ( - col2 ) ) + + col2 / - col2 col2 FROM tab0 AS cor0
----
-2
-34
-83

query I rowsort
SELECT cor0.col2 * - cor0.col0 AS col2 FROM tab1 cor0
----
-162
-3648
-7680

query I rowsort
SELECT ( + col1 * - col2 ) AS col1 FROM tab0
----
-2838
-7462
-97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3308
SELECT ALL CAST( NULL AS SIGNED ) + 16 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3308
SELECT ALL CAST ( NULL AS INTEGER ) + 16 AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col0 * 55 FROM tab2
----
-385
-4290
-4345

onlyif mysql # use DIV operator for integer division
query I rowsort label-3310
SELECT ALL + col0 * + col2 DIV + col2 + - col2 + - col0 AS col1 FROM tab0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-3310
SELECT ALL + col0 * + col2 / + col2 + - col2 + - col0 AS col1 FROM tab0
----
-1
-33
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( col2 ) * col2 * + tab0.col1 + + col2 col1 FROM tab0
----
611966
93687
98

query I rowsort
SELECT 48 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b

query I rowsort
SELECT 80 * 1 AS col1 FROM tab1 AS cor0
----
80
80
80

query I rowsort
SELECT ALL 79 AS col2 FROM tab2 cor0
----
79
79
79

query I rowsort
SELECT 83 + col2 * - col2 + + col0 AS col1 FROM tab2 AS cor0
----
-1282
-515
-639

onlyif mysql # use DIV operator for integer division
query I rowsort label-3316
SELECT DISTINCT - - ( col0 ) DIV cor0.col2 + col0 AS col1 FROM tab0 AS cor0
----
24
70
90

skipif mysql # not compatible
query I rowsort label-3316
SELECT DISTINCT - - ( col0 ) / cor0.col2 + col0 AS col1 FROM tab0 AS cor0
----
24
70
90

query I rowsort
SELECT DISTINCT + 36 * - col2 AS col0 FROM tab2 AS cor0
----
-1368
-936
-972

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 80 col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94

query I rowsort
SELECT ALL 37 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2, tab0 AS cor1
----
27 values hashing to c023509f63faa044d654943e6df55ca2

query I rowsort
SELECT ALL + col1 + 37 + - col1 AS col2 FROM tab0
----
37
37
37

query I rowsort
SELECT ALL + 8 * + col2 + col1 + - col2 * 32 AS col2 FROM tab2
----
-565
-617
-895

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 56 + + col2 col1 FROM tab1 AS cor0
----
-2
1
40

query I rowsort
SELECT + + cor0.col1 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

onlyif mysql # use DIV operator for integer division
query I rowsort label-3324
SELECT ALL tab0.col2 DIV + 97 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-3324
SELECT ALL tab0.col2 / + 97 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT ALL - 99 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 761f5f1a166a00db99360141565a85da

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 41 col1 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
41

query I rowsort
SELECT 55 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 832128adb1ddc65c3105e29cc2c8b3a3

query I rowsort
SELECT + cor0.col1 * + col0 - + col0 FROM tab2 AS cor0
----
1264
210
4524

onlyif mysql # use DIV operator for integer division
query I rowsort label-3329
SELECT + col0 + + 49 DIV col2 AS col0 FROM tab0 AS cor0
----
25
84
89

skipif mysql # not compatible
query I rowsort label-3329
SELECT + col0 + + 49 / col2 AS col0 FROM tab0 AS cor0
----
25
84
89

query I rowsort
SELECT + col2 - - col0 * - col0 AS col1 FROM tab2 AS cor0
----
-22
-6058
-6203

query I rowsort
SELECT + col0 * - 73 FROM tab2 AS cor0
----
-511
-5694
-5767

query I rowsort
SELECT DISTINCT + col1 + - col1 * + cor0.col1 FROM tab0 AS cor0
----
-7310
-8190
-9312

query I rowsort
SELECT ALL + col0 - col0 * col2 FROM tab1
----
-159
-3584
-7600

query I rowsort
SELECT ALL - col2 * + 47 - ( + col0 ) FROM tab1
----
-2541
-2743
-4592

query I rowsort
SELECT DISTINCT tab2.col2 - - 35 AS col2 FROM tab2
----
61
62
73

query I rowsort
SELECT + col2 * 94 AS col0 FROM tab0 AS cor0
----
3102
7708
94

query I rowsort
SELECT - 67 AS col0 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 95c9eba643f6489e03be4d5e83f1ef99

onlyif mysql # use DIV operator for integer division
query I rowsort label-3338
SELECT DISTINCT + col0 DIV cor0.col0 + col2 * col2 * cor0.col1 col1 FROM tab0 AS cor0
----
611885
93655
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3338
SELECT DISTINCT + col0 / cor0.col0 + col2 * col2 * cor0.col1 col1 FROM tab0 AS cor0
----
611885
93655
98

query I rowsort
SELECT DISTINCT 4 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
4

query I rowsort
SELECT - - col0 * - ( col0 ) AS col1 FROM tab1 AS cor0
----
-4096
-6400
-9

onlyif mysql # use DIV operator for integer division
query I rowsort label-3341
SELECT DISTINCT + col0 * col1 DIV col0 AS col2 FROM tab1 AS cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-3341
SELECT DISTINCT + col0 * col1 / col0 AS col2 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT ALL - col2 * col1 + - col0 FROM tab1 AS cor0
----
-1328
-1407
-634

onlyif mysql # use DIV operator for integer division
query I rowsort label-3343
SELECT DISTINCT - cor0.col2 + - cor0.col0 DIV - col0 FROM tab2 AS cor0
----
-25
-26
-37

skipif mysql # not compatible
query I rowsort label-3343
SELECT DISTINCT - cor0.col2 + - cor0.col0 / - col0 FROM tab2 AS cor0
----
-25
-26
-37

query I rowsort
SELECT - col2 + - 76 FROM tab1 AS cor0
----
-130
-133
-172

query I rowsort
SELECT ALL + 2 + 74 FROM tab1 AS cor0
----
76
76
76

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3346
SELECT ALL CAST( NULL AS SIGNED ) + + 56 * col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3346
SELECT ALL CAST ( NULL AS INTEGER ) + + 56 * col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col0 - - ( + 5 ) * tab0.col2 FROM tab0
----
189
40
499

query I rowsort
SELECT DISTINCT + col0 - tab0.col2 * - 82 FROM tab0
----
117
2730
6813

query I rowsort
SELECT ALL + - col1 * col0 - + col1 FROM tab0 AS cor0
----
-2150
-3492
-8190

query I rowsort
SELECT + 20 + - col0 * col1 AS col2 FROM tab1 AS cor0
----
-1020
-58
-620

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + ( col1 ) * - col1 col1 FROM tab2 AS cor0
----
-306
-3540
-992

onlyif mysql # use DIV operator for integer division
query I rowsort label-3352
SELECT DISTINCT - col1 * - col1 - col2 DIV 26 FROM tab1 AS cor0
----
166
674
98

skipif mysql # not compatible
query I rowsort label-3352
SELECT DISTINCT - col1 * - col1 - col2 / 26 FROM tab1 AS cor0
----
166
674
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 * + col2 * + col2 + col2 col1 FROM tab0 cor0
----
-35904
-551286
0

query I rowsort
SELECT ALL col2 * - 68 FROM tab1 cor0
----
-3672
-3876
-6528

query I rowsort
SELECT + + col2 * col0 + col2 FROM tab1 AS cor0
----
216
3705
7776

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - cor0.col2 ) col1 FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT col0 * cor0.col1 AS col0 FROM tab0 cor0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT cor0.col2 * - cor0.col0 AS col2 FROM tab1 cor0
----
-162
-3648
-7680

query I rowsort
SELECT + col2 * - col0 * + tab0.col0 + + col1 FROM tab0
----
-1128
-18922
-649431

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3360
SELECT ALL - col0 * + col0 * CAST( - col0 AS SIGNED ) + + col0 FROM tab2 AS cor0
----
350
474630
493118

skipif mysql # not compatible
query I rowsort label-3360
SELECT ALL - col0 * + col0 * CAST ( - col0 AS INTEGER ) + + col0 FROM tab2 AS cor0
----
350
474630
493118

query I rowsort
SELECT ALL + + 46 * - col0 FROM tab0 AS cor0
----
-1104
-1610
-4094

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 24 col0 FROM tab0 AS cor0
----
24
24
24

onlyif mysql # use DIV operator for integer division
query I rowsort label-3363
SELECT - 67 DIV col2 FROM tab0 AS cor0
----
-2
-67
0

skipif mysql # not compatible
query I rowsort label-3363
SELECT - 67 / col2 FROM tab0 AS cor0
----
-2
-67
0

query I rowsort
SELECT ALL col0 + col0 + + col1 * - 27 FROM tab2 AS cor0
----
-1437
-301
-823

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 81 * cor0.col2 col1 FROM tab2 AS cor0
----
2106
2187
3078

query I rowsort
SELECT ALL + 60 * col0 FROM tab2
----
420
4680
4740

query I rowsort
SELECT ALL + col1 - - ( + col0 ) * cor0.col1 * - col2 AS col1 FROM tab0 AS cor0
----
-3298
-664027
-68026

query I rowsort
SELECT - col2 * 22 FROM tab1 cor0
----
-1188
-1254
-2112

query I rowsort
SELECT DISTINCT - + col1 + - 79 + + col2 FROM tab0 AS cor0
----
-132
-175
-88

query I rowsort
SELECT ALL + col0 * 28 * col0 - col1 AS col0 FROM tab1 AS cor0
----
114678
179187
226

query I rowsort
SELECT - col0 + col2 * + ( + col0 ) FROM tab0 AS cor0
----
0
7209
768

query I rowsort
SELECT DISTINCT - 45 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-45

query I rowsort
SELECT 51 + - cor1.col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d601dd2fd1beacf3c1d0e67863daf39b

query I rowsort
SELECT - + col2 * col1 + 92 AS col2 FROM tab1 AS cor0
----
-1156
-1312
-478

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 88 col1 FROM tab1 AS cor0
----
88

query I rowsort
SELECT + col2 * cor0.col1 + + ( + 36 ) FROM tab2 AS cor0
----
1570
682
873

query I rowsort
SELECT + ( + col1 ) + + 56 AS col2 FROM tab1 AS cor0
----
66
69
82

query I rowsort
SELECT - col2 * 94 + - col0 FROM tab0 AS cor0
----
-129
-3126
-7797

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3379
SELECT - col1 * + CAST( col0 AS SIGNED ) FROM tab1 AS cor0
----
-1040
-640
-78

skipif mysql # not compatible
query I rowsort label-3379
SELECT - col1 * + CAST ( col0 AS INTEGER ) FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT DISTINCT - col0 * - ( col1 ) FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT + cor0.col1 + 87 * col1 AS col1 FROM tab0 AS cor0
----
7568
8008
8536

onlyif mysql # use DIV operator for integer division
query I rowsort label-3382
SELECT DISTINCT + 46 DIV - 4 AS col2 FROM tab1 AS cor0
----
-11

skipif mysql # not compatible
query I rowsort label-3382
SELECT DISTINCT + 46 / - 4 AS col2 FROM tab1 AS cor0
----
-11

query I rowsort
SELECT ALL + col1 * col1 * col0 FROM tab1 cor0
----
13520
2028
6400

query I rowsort
SELECT ALL - 49 + 6 FROM tab2 AS cor0
----
-43
-43
-43

query I rowsort
SELECT DISTINCT + col1 + - 85 FROM tab1 AS cor0
----
-59
-72
-75

query I rowsort
SELECT ALL 9 AS col0 FROM tab1 cor0
----
9
9
9

query I rowsort
SELECT col2 + ( col0 ) * - 66 FROM tab1 AS cor0
----
-144
-4167
-5184

onlyif mysql # use DIV operator for integer division
query I rowsort label-3388
SELECT ALL col0 DIV 59 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3388
SELECT ALL col0 / 59 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT ( col2 ) * col0 + - col0 * col1 FROM tab0 AS cor0
----
-1272
-3360
-801

query I rowsort
SELECT - ( - cor0.col2 ) + col1 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT + tab2.col2 + + 80 * + 49 + + col0 * col1 AS col1 FROM tab2
----
4164
5301
8548

onlyif mysql # use DIV operator for integer division
query I rowsort label-3392
SELECT col1 DIV - 76 - - col2 col1 FROM tab1 cor0
----
54
57
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3392
SELECT col1 / - 76 - - col2 col1 FROM tab1 cor0
----
54
57
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-3393
SELECT 0 DIV - col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3393
SELECT 0 / - col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT col0 * - col0 - col0 FROM tab1 cor0
----
-12
-4160
-6480

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 93 col1 FROM tab1, tab1 AS cor0
----
93

query I rowsort
SELECT + 67 + + col0 FROM tab0 AS cor0
----
102
156
91

query I rowsort
SELECT 28 FROM tab1, tab2 cor0
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97

query IIIIIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab1 cor0 CROSS JOIN tab1, tab0 AS cor1, tab0 AS cor2, tab1 AS cor3
----
13122 values hashing to 8c4e56d5874724bcd10a5837fb58863d

query I rowsort
SELECT + col2 + 71 AS col2 FROM tab2
----
109
97
98

query I rowsort
SELECT + col2 * col1 + cor0.col0 * col1 FROM tab1 AS cor0
----
1210
1482
2288

query I rowsort
SELECT - + col2 + col0 + + ( col2 ) FROM tab0 AS cor0
----
24
35
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-3402
SELECT - 58 DIV col0 - 63 AS col0 FROM tab1 AS cor0
----
-63
-63
-82

skipif mysql # not compatible
query I rowsort label-3402
SELECT - 58 / col0 - 63 AS col0 FROM tab1 AS cor0
----
-63
-63
-82

query I rowsort
SELECT + col1 + - cor0.col0 FROM tab0 cor0
----
2
62
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-3404
SELECT + - col2 - + col0 DIV col1 FROM tab0 AS cor0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-3404
SELECT + - col2 - + col0 / col1 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT ALL cor1.col0 + 86 AS col0 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to a9444323e61d802965c72a950748ba51

query I rowsort
SELECT col0 * + ( - col0 * ( + 93 ) ) FROM tab1
----
-380928
-595200
-837

query I rowsort
SELECT ALL col1 * 86 + + col1 AS col0 FROM tab0
----
7482
7917
8439

query I rowsort
SELECT - ( col1 ) * tab2.col0 FROM tab2
----
-1343
-217
-4602

query I rowsort
SELECT + 87 + col2 AS col1 FROM tab0 AS cor0
----
120
169
88

onlyif mysql # use DIV operator for integer division
query I rowsort label-3410
SELECT - col0 - col0 DIV - col1 AS col0 FROM tab2 cor0
----
-7
-75
-77

skipif mysql # not compatible
query I rowsort label-3410
SELECT - col0 - col0 / - col1 AS col0 FROM tab2 cor0
----
-7
-75
-77

query I rowsort
SELECT + col2 * - col1 + - cor0.col2 * - col2 AS col0 FROM tab0 AS cor0
----
-1749
-738
-96

query I rowsort
SELECT DISTINCT - col1 + ( + 53 ) * + col1 FROM tab0 AS cor0
----
4472
4732
5044

query I rowsort
SELECT ALL col1 * col0 AS col1 FROM tab0 cor0
----
2064
3395
8099

query I rowsort
SELECT - 18 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 09afafec657a5e9f082beb6a16ec85de

onlyif mysql # use DIV operator for integer division
query I rowsort label-3415
SELECT - - col1 + cor0.col1 DIV + col1 AS col1 FROM tab0 AS cor0
----
87
92
98

skipif mysql # not compatible
query I rowsort label-3415
SELECT - - col1 + cor0.col1 / + col1 AS col1 FROM tab0 AS cor0
----
87
92
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * 89 * col1 col1 FROM tab1 AS cor0
----
-111072
-124956
-50730

onlyif mysql # use DIV operator for integer division
query I rowsort label-3417
SELECT col0 DIV + 66 AS col0 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-3417
SELECT col0 / + 66 AS col0 FROM tab2
----
0
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-3418
SELECT col0 DIV + tab1.col0 AS col0 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3418
SELECT col0 / + tab1.col0 AS col0 FROM tab1
----
1
1
1

query I rowsort
SELECT DISTINCT - ( tab1.col2 ) * tab1.col0 AS col0 FROM tab1
----
-162
-3648
-7680

query I rowsort
SELECT - - 83 * + col2 FROM tab0 AS cor0
----
2739
6806
83

query I rowsort
SELECT + col0 - 41 AS col1 FROM tab1 AS cor0
----
-38
23
39

query I rowsort
SELECT - + col2 + - ( col1 ) FROM tab1 AS cor0
----
-109
-67
-80

query I rowsort
SELECT DISTINCT + 32 FROM tab0 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab1 AS cor2
----
32

query I rowsort
SELECT DISTINCT col0 * 2 + + 97 * col2 FROM tab0
----
167
3249
8132

query I rowsort
SELECT ALL + col0 * + col2 * col1 AS col1 FROM tab1 AS cor0
----
36480
4212
99840

query I rowsort
SELECT + col2 * - ( col1 ) + + col1 * - col0 FROM tab0 AS cor0
----
-15561
-3492
-4902

query I rowsort
SELECT - col2 * ( 85 ) * col0 AS col2 FROM tab0 AS cor0
----
-2975
-620330
-67320

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * ( - col1 ) + col2 * 90 - col2 * + col2 col0 FROM tab2 AS cor0
----
-2938
1484
633

query I rowsort
SELECT DISTINCT + col1 * - 43 FROM tab1 AS cor0
----
-1118
-430
-559

query I rowsort
SELECT + col0 * - col1 + - col2 * col1 * + col2 AS col0 FROM tab0 AS cor0
----
-3492
-619983
-95718

query I rowsort
SELECT + ( col0 ) + col1 * - col1 AS col2 FROM tab2 cor0
----
-210
-3403
-954

onlyif mysql # use DIV operator for integer division
query I rowsort label-3432
SELECT DISTINCT + + col0 + + col2 DIV col0 FROM tab2 AS cor0
----
10
78
79

skipif mysql # not compatible
query I rowsort label-3432
SELECT DISTINCT + + col0 + + col2 / col0 FROM tab2 AS cor0
----
10
78
79

query I rowsort
SELECT ALL ( ( col1 ) ) * - col2 AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 4 + - col0 col1 FROM tab1 cor0
----
-60
-76
1

query I rowsort
SELECT ALL + 88 FROM tab1, tab1 AS cor0, tab2 AS cor1, tab2 AS cor2
----
81 values hashing to 663c36cf4bc51cf4ea19f7275ac6d30e

query I rowsort
SELECT ALL + + col1 * 57 - + col0 * - col0 AS col2 FROM tab2 AS cor0
----
1816
7210
9447

query I rowsort
SELECT ALL 79 FROM tab0, tab2 cor0, tab2 AS cor1
----
27 values hashing to 4857f2e1b1dbd184de4827f145dd02a1

query I rowsort
SELECT - cor0.col2 + + col0 * - col1 AS col2 FROM tab1 AS cor0
----
-1136
-132
-697

query I rowsort
SELECT ALL 71 AS col1 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 95a6ff35b7b8f00868fb58bcaa32d0c2

onlyif mysql # use DIV operator for integer division
query I rowsort label-3440
SELECT DISTINCT + ( col1 + col0 ) DIV + tab0.col0 col2 FROM tab0
----
2
3
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3440
SELECT DISTINCT + ( col1 + col0 ) / + tab0.col0 col2 FROM tab0
----
2
3
4

query I rowsort
SELECT ALL 27 * + col0 FROM tab0
----
2403
648
945

query I rowsort
SELECT 83 * - cor0.col2 AS col2 FROM tab1 AS cor0
----
-4482
-4731
-7968

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3443
SELECT + col2 * col0 * + CAST( + col1 * - cor0.col2 AS SIGNED ) FROM tab0 AS cor0
----
-2247696
-3395
-54457676

skipif mysql # not compatible
query I rowsort label-3443
SELECT + col2 * col0 * + CAST ( + col1 * - cor0.col2 AS INTEGER ) FROM tab0 AS cor0
----
-2247696
-3395
-54457676

query I rowsort
SELECT ALL + - 75 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to c0722b1d77ac0ed13c0f2691a5751c59

query I rowsort
SELECT - 44 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 38f05fdaaf15e64b62f27cd96f73fb79

query I rowsort
SELECT DISTINCT col1 * - col2 * + ( + col0 ) FROM tab1
----
-36480
-4212
-99840

query I rowsort
SELECT - col2 * col2 - 83 AS col0 FROM tab1
----
-2999
-3332
-9299

query I rowsort
SELECT - + col1 * ( + ( + col2 ) ) AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570

onlyif mysql # use DIV operator for integer division
query I rowsort label-3449
SELECT col2 * ( - col1 ) DIV + cor0.col1 AS col0 FROM tab0 AS cor0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-3449
SELECT col2 * ( - col1 ) / + cor0.col1 AS col0 FROM tab0 AS cor0
----
-1
-33
-82

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 - + col0 * cor0.col1 col0 FROM tab1 AS cor0
----
-1040
-640
-78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * tab1.col2 + + 43 + col0 col1 FROM tab1
----
2962
3356
9339

query I rowsort
SELECT DISTINCT col1 + + ( col1 ) FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT + cor0.col0 * ( + cor0.col1 ) * col1 AS col2 FROM tab0 AS cor0
----
177504
329315
737009

query I rowsort
SELECT ALL tab2.col2 + - tab2.col0 FROM tab2
----
-41
-52
20

query I rowsort
SELECT ALL cor0.col0 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

onlyif mysql # use DIV operator for integer division
query I rowsort label-3457
SELECT - col2 * 19 + - col2 DIV - col1 FROM tab0 AS cor0
----
-1558
-19
-627

skipif mysql # not compatible
query I rowsort label-3457
SELECT - col2 * 19 + - col2 / - col1 FROM tab0 AS cor0
----
-1558
-19
-627

query I rowsort
SELECT ALL - col1 + + col1 * + col1 AS col0 FROM tab2 AS cor0
----
272
3422
930

query I rowsort
SELECT ALL - 9 * - 63 FROM tab2 AS cor0
----
567
567
567

onlyif mysql # use DIV operator for integer division
query I rowsort label-3460
SELECT DISTINCT - ( + col2 ) + - col1 DIV 13 AS col1 FROM tab1
----
-56
-57
-97

skipif mysql # not compatible
query I rowsort label-3460
SELECT DISTINCT - ( + col2 ) + - col1 / 13 AS col1 FROM tab1
----
-56
-57
-97

query I rowsort
SELECT + - col1 + - col1 * col1 FROM tab2 cor0
----
-306
-3540
-992

onlyif mysql # use DIV operator for integer division
query I rowsort label-3462
SELECT + col1 + + cor0.col2 * + col1 DIV + col1 FROM tab0 AS cor0
----
119
173
98

skipif mysql # not compatible
query I rowsort label-3462
SELECT + col1 + + cor0.col2 * + col1 / + col1 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT ALL - - cor0.col2 * col2 + - ( + ( - col1 ) ) * col0 AS col1 FROM tab2 AS cor0
----
2787
5278
946

query I rowsort
SELECT DISTINCT 88 * col0 AS col1 FROM tab2 AS cor0
----
616
6864
6952

query I rowsort
SELECT + 53 + col2 AS col0 FROM tab0 AS cor0
----
135
54
86

onlyif mysql # use DIV operator for integer division
query I rowsort label-3466
SELECT ALL col2 DIV col1 + 47 FROM tab2 AS cor0
----
47
47
49

skipif mysql # not compatible
query I rowsort label-3466
SELECT ALL col2 / col1 + 47 FROM tab2 AS cor0
----
47
47
49

query I rowsort
SELECT DISTINCT + - col1 * col2 + + cor0.col1 * + col0 AS col2 FROM tab1 cor0
----
-1326
-208
70

query I rowsort
SELECT ALL + col1 + - col1 * cor0.col1 AS col2 FROM tab2 AS cor0
----
-272
-3422
-930

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - cor0.col1 * + col1 + - CAST ( cor0.col1 AS REAL ) AS col1 FROM tab1 cor0
----
-110
-182
-702

query I rowsort
SELECT ALL - - col1 - col0 AS col1 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT DISTINCT + col0 * + col1 + col1 FROM tab0 cor0
----
2150
3492
8190

query I rowsort
SELECT DISTINCT - col2 * - col2 * ( col0 ) + + col2 FROM tab1 AS cor0
----
207993
737376
8802

query I rowsort
SELECT - cor0.col2 + + col2 * - col2 AS col1 FROM tab0 AS cor0
----
-1122
-2
-6806

query I rowsort
SELECT DISTINCT - - cor0.col1 * col1 * 76 + cor0.col2 AS col1 FROM tab0 cor0
----
562129
629438
715085

query I rowsort
SELECT ALL - ( - col2 ) * - 38 AS col0 FROM tab0 AS cor0
----
-1254
-3116
-38

onlyif mysql # use DIV operator for integer division
query I rowsort label-3476
SELECT DISTINCT - col0 * 15 DIV col0 + col1 AS col0 FROM tab0
----
71
76
82

skipif mysql # not compatible
query I rowsort label-3476
SELECT DISTINCT - col0 * 15 / col0 + col1 AS col0 FROM tab0
----
71
76
82

query I rowsort
SELECT DISTINCT - col0 + + ( - col2 * tab1.col1 ) FROM tab1
----
-1328
-1407
-634

query I rowsort
SELECT - - col0 * col2 * col2 + + col0 AS col2 FROM tab2 cor0
----
114155
5110
52806

query I rowsort
SELECT ALL col1 * + ( 32 ) FROM tab1 AS cor0
----
320
416
832

query I rowsort
SELECT ALL - col1 + + ( - cor0.col2 + - col2 ) AS col1 FROM tab0 AS cor0
----
-152
-255
-99

query I rowsort
SELECT ALL + 64 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to c8b19f4c3ff38700cd2bb8a077bf29b9

query I rowsort
SELECT col0 * + 11 AS col1 FROM tab1
----
33
704
880

query I rowsort
SELECT + col0 * - col1 * 73 FROM tab0
----
-150672
-247835
-591227

query I rowsort
SELECT ALL - col1 * cor0.col1 + col0 FROM tab0 AS cor0
----
-7372
-8192
-9374

query I rowsort
SELECT DISTINCT + + col0 + + col0 AS col2 FROM tab2 AS cor0
----
14
156
158

query I rowsort
SELECT DISTINCT + 14 + col2 * + col1 FROM tab2 AS cor0
----
1548
660
851

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3487
SELECT - CAST( NULL AS SIGNED ) + - ( - cor0.col1 ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3487
SELECT - CAST ( NULL AS INTEGER ) + - ( - cor0.col1 ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col2 + 14 + - col2 * cor0.col1 AS col1 FROM tab0 AS cor0
----
-2857
-7530
-84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * col1 col0 FROM tab1 cor0
----
100
169
676

query I rowsort
SELECT - col1 * col1 * col1 AS col2 FROM tab2
----
-205379
-29791
-4913

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3491
SELECT ALL + - cor0.col0 * col0 + + col2 + CAST( NULL AS SIGNED ) * - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3491
SELECT ALL + - cor0.col0 * col0 + + col2 + CAST ( NULL AS INTEGER ) * - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - 85 + col0 * col2 AS col2 FROM tab2 AS cor0
----
2113
274
3087

query I rowsort
SELECT ALL col2 + - col1 + 20 AS col2 FROM tab0
----
-33
-76
11

query I rowsort
SELECT + ( col2 ) + + col0 * - col2 AS col1 FROM tab1 AS cor0
----
-108
-3591
-7584

query I rowsort
SELECT DISTINCT + 48 * + col1 - - col0 FROM tab1 AS cor0
----
1251
544
704

query I rowsort
SELECT ALL 33 + - col2 AS col2 FROM tab1 cor0
----
-21
-24
-63

query I rowsort
SELECT ALL 33 * - col0 FROM tab1 AS cor0
----
-2112
-2640
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab0.col0 col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63

onlyif mysql # use DIV operator for integer division
query I rowsort label-3499
SELECT - + col0 + + col2 DIV + col1 FROM tab1 AS cor0
----
-1
-59
-73

skipif mysql # not compatible
query I rowsort label-3499
SELECT - + col0 + + col2 / + col1 FROM tab1 AS cor0
----
-1
-59
-73

query I rowsort
SELECT DISTINCT 74 * - col1 FROM tab0 AS cor0
----
-6364
-6734
-7178

query I rowsort
SELECT - col0 + - col0 * + col0 FROM tab2 AS cor0
----
-56
-6162
-6320

query I rowsort
SELECT ALL - + 10 + + cor0.col2 * 48 FROM tab1 cor0
----
2582
2726
4598

query I rowsort
SELECT ALL - + col2 + + col2 * ( + col2 ) FROM tab2 AS cor0
----
1406
650
702

onlyif mysql # use DIV operator for integer division
query I rowsort label-3504
SELECT ALL 14 DIV + cor0.col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3504
SELECT ALL 14 / + cor0.col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + + col1 + col0 * 79 FROM tab2 AS cor0
----
584
6221
6258

query I rowsort
SELECT ALL + - 14 AS col0 FROM tab2 AS cor0
----
-14
-14
-14

query I rowsort
SELECT + col1 * col2 * cor0.col1 + col1 FROM tab1 AS cor0
----
16237
36530
5710

query I rowsort
SELECT - col2 * - 29 - col2 FROM tab1 AS cor0
----
1512
1596
2688

query I rowsort
SELECT DISTINCT + cor0.col0 * + col0 * - col1 AS col2 FROM tab1 AS cor0
----
-234
-40960
-83200

query I rowsort
SELECT - - col1 + - col1 * - col1 AS col2 FROM tab1 AS cor0
----
110
182
702

query I rowsort
SELECT + 98 + - col0 FROM tab2
----
19
20
91

onlyif mysql # use DIV operator for integer division
query I rowsort label-3512
SELECT - ( + col0 ) + + ( - 73 ) DIV col1 FROM tab0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-3512
SELECT - ( + col0 ) + + ( - 73 ) / col1 FROM tab0
----
-24
-35
-89

query I rowsort
SELECT + col1 * 47 AS col0 FROM tab0 AS cor0
----
4042
4277
4559

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col1 * - col1 col2 FROM tab1
----
-156
-650
-90

onlyif mysql # use DIV operator for integer division
query I rowsort label-3515
SELECT col2 * col2 DIV col1 FROM tab1 AS cor0
----
112
324
708

skipif mysql # not compatible
query I rowsort label-3515
SELECT col2 * col2 / col1 FROM tab1 AS cor0
----
112
324
708

onlyif mysql # use DIV operator for integer division
query I rowsort label-3516
SELECT - col0 + + 83 DIV - 45 AS col0 FROM tab0 AS cor0
----
-25
-36
-90

skipif mysql # not compatible
query I rowsort label-3516
SELECT - col0 + + 83 / - 45 AS col0 FROM tab0 AS cor0
----
-25
-36
-90

onlyif mysql # use DIV operator for integer division
query I rowsort label-3517
SELECT - col1 + + col2 * col0 DIV col0 AS col0 FROM tab1 AS cor0
----
28
47
83

skipif mysql # not compatible
query I rowsort label-3517
SELECT - col1 + + col2 * col0 / col0 AS col0 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT 35 AS col1 FROM tab1, tab2 cor0, tab1 AS cor1, tab2 AS cor2
----
81 values hashing to ca814400b6361c20866ff8fe01717430

skipif mysql # not compatible
query I rowsort
SELECT + - CAST ( col2 AS REAL ) AS col2 FROM tab1 AS cor0
----
-54
-57
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-3520
SELECT - cor0.col2 + - col2 DIV col0 FROM tab0 AS cor0
----
-1
-34
-82

skipif mysql # not compatible
query I rowsort label-3520
SELECT - cor0.col2 + - col2 / col0 FROM tab0 AS cor0
----
-1
-34
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * - col0 col2 FROM tab2
----
189
2028
3002

query I rowsort
SELECT DISTINCT - 8 * tab0.col2 AS col2 FROM tab0
----
-264
-656
-8

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3523
SELECT ALL CAST( NULL AS SIGNED ) FROM tab0, tab2 AS cor0, tab2 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-3523
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab0, tab2 AS cor0, tab2 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT ALL + 89 AS col2 FROM tab1 cor0
----
89
89
89

query I rowsort
SELECT - ( 84 ) FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 02f1688b8610806ca28739b1735f6ae4

query I rowsort
SELECT DISTINCT + + 83 * + col1 + + col1 FROM tab2 AS cor0
----
1428
2604
4956

query I rowsort
SELECT col1 * ( + col2 ) AS col0 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT + 1 * col2 AS col2 FROM tab2 cor0
----
26
27
38

query I rowsort
SELECT + col1 * + 17 FROM tab2 AS cor0
----
1003
289
527

query I rowsort
SELECT + + col2 - col1 * col0 AS col0 FROM tab1 AS cor0
----
-24
-583
-944

query I rowsort
SELECT DISTINCT - 4 + col0 AS col2 FROM tab2 AS cor0
----
3
74
75

query I rowsort
SELECT ALL col0 + + col1 * + ( + 80 ) AS col0 FROM tab2 AS cor0
----
1439
2487
4798

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - col2 ) - col0 * col0 col2 FROM tab1 cor0
----
-4039
-6304
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 40 col0 FROM tab0, tab0 AS cor0
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3

query I rowsort
SELECT DISTINCT - col1 * col0 * col0 + col2 FROM tab0 AS cor0
----
-118824
-49503
-720729

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 + 66 col2 FROM tab0 cor0
----
-20
-25
-31

query I rowsort
SELECT DISTINCT col2 + 97 AS col0 FROM tab2
----
123
124
135

query I rowsort
SELECT ALL + col1 + ( + cor0.col1 ) * - col1 * 94 AS col1 FROM tab2 AS cor0
----
-27149
-327155
-90303

onlyif mysql # use DIV operator for integer division
query I rowsort label-3539
SELECT + cor0.col1 DIV 31 + 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-3539
SELECT + cor0.col1 / 31 + col1 col1 FROM tab1 AS cor0
----
10
13
26

onlyif mysql # use DIV operator for integer division
query I rowsort label-3540
SELECT ALL + 51 DIV col2 - col1 * ( + col2 ) DIV col2 col2 FROM tab1 cor0
----
-10
-13
-26

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3540
SELECT ALL + 51 / col2 - col1 * ( + col2 ) / col2 col2 FROM tab1 cor0
----
-10
-13
-26

query I rowsort
SELECT ALL - col0 * 49 FROM tab1
----
-147
-3136
-3920

query I rowsort
SELECT DISTINCT 92 - col2 FROM tab2 AS cor0
----
54
65
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 77 * ( - col2 ) col1 FROM tab2 AS cor0
----
2002
2079
2926

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 7 * col1 + - col2 col2 FROM tab1 AS cor0
----
-127
-187
-236

query I rowsort
SELECT DISTINCT - - 8 + - col0 * col2 FROM tab1 AS cor0
----
-154
-3640
-7672

onlyif mysql # use DIV operator for integer division
query I rowsort label-3546
SELECT DISTINCT + + ( col1 ) DIV - col2 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-3546
SELECT DISTINCT + + ( col1 ) / - col2 FROM tab1 cor0
----
0

query I rowsort
SELECT DISTINCT - ( - col2 ) * + col0 - - col0 * col1 FROM tab2 AS cor0
----
406
4345
6630

query I rowsort
SELECT - col0 * - 19 FROM tab0
----
1691
456
665

query I rowsort
SELECT DISTINCT + 2 FROM tab0, tab0 cor0, tab2 AS cor1
----
2

onlyif mysql # use DIV operator for integer division
query I rowsort label-3550
SELECT + + ( 86 ) DIV col2 AS col0 FROM tab0 cor0
----
1
2
86

skipif mysql # not compatible
query I rowsort label-3550
SELECT + + ( 86 ) / col2 AS col0 FROM tab0 cor0
----
1
2
86

query I rowsort
SELECT ALL + + 53 * + cor0.col2 FROM tab0 AS cor0
----
1749
4346
53

query I rowsort
SELECT 95 AS col2 FROM tab0 cor0
----
95
95
95

query I rowsort
SELECT ALL - ( cor0.col0 ) * + col0 AS col0 FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT - + cor0.col0 + col1 * + col2 AS col1 FROM tab1 AS cor0
----
1168
1401
506

query I rowsort
SELECT DISTINCT 70 + - col2 AS col1 FROM tab1 cor0
----
-26
13
16

query I rowsort
SELECT + col0 - - tab1.col0 AS col2 FROM tab1
----
128
160
6

query I rowsort
SELECT DISTINCT + - 90 * 54 AS col2 FROM tab1 AS cor0
----
-4860

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3558
SELECT CAST( NULL AS SIGNED ) - - col1 * col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3558
SELECT CAST ( NULL AS INTEGER ) - - col1 * col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - 82 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to ce62f59690969f4492d78eb57c3181f0

query I rowsort
SELECT 99 * col1 + - col0 AS col1 FROM tab0
----
8490
8920
9568

query I rowsort
SELECT DISTINCT + cor0.col1 * + 72 FROM tab0 AS cor0
----
6192
6552
6984

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3562
SELECT - CAST( NULL AS DECIMAL ) * ( col2 + col2 ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3562
SELECT - CAST ( NULL AS REAL ) * ( col2 + col2 ) FROM tab2
----
NULL
NULL
NULL

query IIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2, tab2 AS cor0 WHERE NOT NULL > NULL
----

query I rowsort
SELECT DISTINCT + ( 8 * + col2 + tab2.col0 ) AS col2 FROM tab2
----
223
286
383

onlyif mysql # use DIV operator for integer division
query I rowsort label-3565
SELECT - tab1.col2 * col1 + + tab1.col1 DIV - 16 FROM tab1
----
-1248
-1405
-570

skipif mysql # not compatible
query I rowsort label-3565
SELECT - tab1.col2 * col1 + + tab1.col1 / - 16 FROM tab1
----
-1248
-1405
-570

onlyif mysql # use DIV operator for integer division
query I rowsort label-3566
SELECT 99 DIV + col1 AS col2 FROM tab2
----
1
3
5

skipif mysql # not compatible
query I rowsort label-3566
SELECT 99 / + col1 AS col2 FROM tab2
----
1
3
5

skipif mysql # not compatible
query I rowsort
SELECT 4 + col2 - CAST ( col0 + + col1 AS REAL ) AS col0 FROM tab0
----
-127
-73
-94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + col0 + - col2 col0 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT DISTINCT - col1 + - 24 FROM tab2 AS cor0
----
-41
-55
-83

query I rowsort
SELECT DISTINCT - - col0 + - ( col2 ) FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT 38 * tab0.col2 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 5e453588f7c61688fcb7314d8e3eb01c

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3572
SELECT ALL col0 * tab2.col0 + + CAST( - col1 AS SIGNED ) AS col2 FROM tab2
----
18
6025
6224

skipif mysql # not compatible
query I rowsort label-3572
SELECT ALL col0 * tab2.col0 + + CAST ( - col1 AS INTEGER ) AS col2 FROM tab2
----
18
6025
6224

query I rowsort
SELECT DISTINCT + ( + col1 ) * col0 - + col0 AS col0 FROM tab2
----
1264
210
4524

onlyif mysql # use DIV operator for integer division
query I rowsort label-3574
SELECT 37 DIV col2 + CAST( col1 AS SIGNED ) + - col2 FROM tab0
----
133
54
9

skipif mysql # not compatible
query I rowsort label-3574
SELECT 37 / col2 + CAST ( col1 AS INTEGER ) + - col2 FROM tab0
----
133
54
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + ( col0 ) + + col1 col2 FROM tab1 AS cor0
----
-25
-3
17

query I rowsort
SELECT ALL 83 AS col2 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 002a717a3d902d97220759065fb107c3

query I rowsort
SELECT ALL - - col2 * col2 + cor0.col0 AS col2 FROM tab2 AS cor0
----
1523
736
754

query I rowsort
SELECT DISTINCT col2 * + cor0.col2 AS col0 FROM tab0 cor0
----
1
1089
6724

query I rowsort
SELECT - - col1 - + 73 FROM tab2 AS cor0
----
-14
-42
-56

onlyif mysql # use DIV operator for integer division
query I rowsort label-3580
SELECT ALL - col1 * cor0.col0 + ( cor0.col2 ) DIV - col1 AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099

skipif mysql # not compatible
query I rowsort label-3580
SELECT ALL - col1 * cor0.col0 + ( cor0.col2 ) / - col1 AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT ALL + col0 * 18 FROM tab2 AS cor0
----
126
1404
1422

query I rowsort
SELECT DISTINCT + col0 + - 97 + - 13 AS col2 FROM tab2 AS cor0
----
-103
-31
-32

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3583
SELECT DISTINCT + col0 + - CAST( col0 * + col1 + + col1 * col0 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-16109
-4104
-6755

skipif mysql # not compatible
query I rowsort label-3583
SELECT DISTINCT + col0 + - CAST ( col0 * + col1 + + col1 * col0 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-16109
-4104
-6755

query I rowsort
SELECT - col2 * - col0 + - 46 AS col1 FROM tab0 AS cor0
----
-11
7252
746

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + + col1 col2 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT ALL - col2 + + cor0.col2 * col1 AS col1 FROM tab0 AS cor0
----
2805
7380
96

query I rowsort
SELECT DISTINCT - col0 * + ( + ( - col1 ) * - 47 ) AS col2 FROM tab0 cor0
----
-159565
-380653
-97008

query I rowsort
SELECT ALL 8 AS col1 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 33069adc3c1142d31511ec88fcfa40af

query I rowsort
SELECT + 80 + - col0 AS col2 FROM tab2 AS cor0
----
1
2
73

query I rowsort
SELECT 86 AS col1 FROM tab2 cor0
----
86
86
86

onlyif mysql # use DIV operator for integer division
query I rowsort label-3591
SELECT ALL 34 DIV tab0.col1 FROM tab0, tab1 cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-3591
SELECT ALL 34 / tab0.col1 FROM tab0, tab1 cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT + 71 + + tab0.col1 AS col1 FROM tab0
----
157
162
168

query I rowsort
SELECT ALL ( + tab2.col2 ) * + col1 AS col2 FROM tab2
----
1534
646
837

query I rowsort
SELECT ALL - col0 + tab2.col0 * col0 FROM tab2
----
42
6006
6162

query I rowsort
SELECT ALL tab1.col0 * - col0 + - col0 FROM tab1
----
-12
-4160
-6480

query I rowsort
SELECT - ( + 17 ) AS col0 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 28cd5b4c959cb41fbc56389ab43d167e

query I rowsort
SELECT DISTINCT - col2 + col0 * - ( col1 ) FROM tab0 AS cor0
----
-2097
-3396
-8181

query I rowsort
SELECT ALL + - 34 AS col2 FROM tab2 cor0
----
-34
-34
-34

query I rowsort
SELECT + col1 + + 50 AS col0 FROM tab0
----
136
141
147

skipif mysql # not compatible
query I rowsort
SELECT + CAST ( - 10 AS REAL ) FROM tab1 AS cor0
----
-10
-10
-10

query I rowsort
SELECT - ( 57 ) AS col0 FROM tab2 AS cor0
----
-57
-57
-57

query I rowsort
SELECT DISTINCT + col2 * 18 * + 5 FROM tab2
----
2340
2430
3420

query I rowsort
SELECT ALL - col1 + 36 AS col0 FROM tab1 AS cor0
----
10
23
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 * + col1 + cor0.col2 * - col0 col0 FROM tab2 cor0
----
-1659
2574
28

query I rowsort
SELECT DISTINCT + - col1 * - ( cor0.col1 * + ( col0 ) ) AS col1 FROM tab2 AS cor0
----
22831
271518
6727

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3606
SELECT DISTINCT - CAST( NULL AS SIGNED ) * col0 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3606
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * col0 AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + ( 98 ) * - col1 FROM tab0 AS cor0
----
-8428
-8918
-9506

query I rowsort
SELECT - 80 FROM tab2, tab2 AS cor0
----
9 values hashing to 4dde3bd5652d30396b9cadd0e2cfb680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3609
SELECT + CAST( NULL AS SIGNED ) * + col0 + cor0.col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3609
SELECT + CAST ( NULL AS INTEGER ) * + col0 + cor0.col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 75 AS col0 FROM tab2 AS cor0
----
-75

query I rowsort
SELECT + ( + 76 ) FROM tab1 cor0
----
76
76
76

query I rowsort
SELECT ALL + col0 * 52 * - col0 AS col2 FROM tab0 cor0
----
-29952
-411892
-63700

onlyif mysql # use DIV operator for integer division
query I rowsort label-3613
SELECT DISTINCT + - col2 DIV - 3 AS col2 FROM tab1 AS cor0
----
18
19
32

skipif mysql # not compatible
query I rowsort label-3613
SELECT DISTINCT + - col2 / - 3 AS col2 FROM tab1 AS cor0
----
18
19
32

query I rowsort
SELECT + + 51 AS col1 FROM tab1 AS cor0
----
51
51
51

query I rowsort
SELECT DISTINCT - col1 + col1 * + col1 FROM tab1
----
156
650
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * col1 * + tab0.col2 + - col0 col2 FROM tab0
----
3360
664029
68088

query I rowsort
SELECT ALL 60 + ( + col1 ) FROM tab1
----
70
73
86

query I rowsort
SELECT - + cor0.col2 * - cor0.col2 * col2 AS col1 FROM tab0 AS cor0
----
1
35937
551368

query I rowsort
SELECT - col0 + - col0 * col0 * col0 FROM tab2 AS cor0
----
-350
-474630
-493118

query I rowsort
SELECT DISTINCT + col0 + - col0 + cor0.col2 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT ALL + + col2 + cor0.col2 * col1 AS col0 FROM tab1 AS cor0
----
1344
1458
627

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - 64 col0 FROM tab1
----
-128
-144
-67

query I rowsort
SELECT ALL - 1 + - col2 FROM tab0 AS cor0
----
-2
-34
-83

onlyif mysql # use DIV operator for integer division
query I rowsort label-3624
SELECT DISTINCT col2 DIV col2 + - col1 * col0 FROM tab0 cor0
----
-2063
-3394
-8098

skipif mysql # not compatible
query I rowsort label-3624
SELECT DISTINCT col2 / col2 + - col1 * col0 FROM tab0 cor0
----
-2063
-3394
-8098

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3625
SELECT ALL col2 - CAST( NULL AS DECIMAL ) * - 45 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3625
SELECT ALL col2 - CAST ( NULL AS REAL ) * - 45 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + col2 - - 53 FROM tab2 AS cor0
----
15
26
27

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3627
SELECT + col1 + - CAST( cor0.col1 + + cor0.col2 AS SIGNED ) col0 FROM tab1 AS cor0
----
-54
-57
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3627
SELECT + col1 + - CAST ( cor0.col1 + + cor0.col2 AS INTEGER ) col0 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT + col2 * 13 + - col0 AS col2 FROM tab2 AS cor0
----
260
344
415

onlyif mysql # use DIV operator for integer division
query I rowsort label-3629
SELECT + col2 * + ( + 28 ) + + cor0.col2 DIV col0 FROM tab1 AS cor0
----
1530
1596
2689

skipif mysql # not compatible
query I rowsort label-3629
SELECT + col2 * + ( + 28 ) + + cor0.col2 / col0 FROM tab1 AS cor0
----
1530
1596
2689

query I rowsort
SELECT DISTINCT - + 49 * + cor0.col0 FROM tab2 AS cor0
----
-343
-3822
-3871

query I rowsort
SELECT + col0 * - 17 AS col0 FROM tab0 AS cor0
----
-1513
-408
-595

query I rowsort
SELECT DISTINCT 54 AS col1 FROM tab0, tab1 AS cor0
----
54

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 col1 + - 94 * + col0 AS col0 FROM tab2 AS cor0
----
-627
-7273
-7409

query I rowsort
SELECT + col1 + - col1 * 41 * col0 FROM tab0 AS cor0
----
-139098
-331968
-84538

query I rowsort
SELECT ALL - + col2 + - cor0.col2 * + col1 * + col0 FROM tab1 AS cor0
----
-36537
-4266
-99936

query I rowsort
SELECT ALL + - col1 * 29 FROM tab2 cor0
----
-1711
-493
-899

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + ( 63 ) col2 FROM tab1 AS cor0
----
73
76
89

query I rowsort
SELECT ALL + + cor0.col1 * col1 AS col0 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT DISTINCT - - col1 * 44 + 83 * col0 AS col1 FROM tab2 AS cor0
----
1945
7305
9070

onlyif mysql # use DIV operator for integer division
query I rowsort label-3641
SELECT DISTINCT cor0.col2 DIV 81 + + col1 * - col0 + + ( + 60 ) * col2 AS col1 FROM tab0 AS cor0
----
-3178
-3335
-84

skipif mysql # not compatible
query I rowsort label-3641
SELECT DISTINCT cor0.col2 / 81 + + col1 * - col0 + + ( + 60 ) * col2 AS col1 FROM tab0 AS cor0
----
-3178
-3335
-84

query I rowsort
SELECT + cor0.col1 * + ( col1 ) AS col0 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT DISTINCT + cor0.col1 * - 20 FROM tab2 AS cor0
----
-1180
-340
-620

query I rowsort
SELECT ALL 11 + col2 AS col2 FROM tab2
----
37
38
49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 59 col1 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to e29fef8cdec1ee45a71d213f16d2f1d3

query I rowsort
SELECT ALL + 70 + - col2 AS col1 FROM tab0
----
-12
37
69

query I rowsort
SELECT DISTINCT + 97 + - col0 FROM tab2
----
18
19
90

query I rowsort
SELECT ALL - col2 + + col1 * - col0 FROM tab1
----
-1136
-132
-697

query I rowsort
SELECT cor1.col2 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab0 AS cor2
----
81 values hashing to 9d355f1f2edc347a359dad00d2d3f886

query I rowsort
SELECT DISTINCT col2 * + 32 AS col1 FROM tab0 AS cor0
----
1056
2624
32

query I rowsort
SELECT DISTINCT col2 * col2 + - 31 * col1 + + 80 FROM tab1 AS cor0
----
2190
3019
8893

onlyif mysql # use DIV operator for integer division
query I rowsort label-3652
SELECT - ( col1 ) DIV col1 FROM tab1 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3652
SELECT - ( col1 ) / col1 FROM tab1 cor0
----
-1
-1
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-3653
SELECT + 5 + + col2 DIV - col2 + - 57 FROM tab0 AS cor0
----
-53
-53
-53

skipif mysql # not compatible
query I rowsort label-3653
SELECT + 5 + + col2 / - col2 + - 57 FROM tab0 AS cor0
----
-53
-53
-53

query I rowsort
SELECT DISTINCT - cor0.col2 + + col1 AS col1 FROM tab2 cor0
----
-21
33
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 69 col2 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 2810c3097fe4771e273cfff903357b40

query I rowsort
SELECT tab0.col2 + tab0.col0 AS col1 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 651bd87d0835272922fb073806a0b5a0

query I rowsort
SELECT ALL col0 + - tab1.col0 + - tab1.col0 FROM tab1
----
-3
-64
-80

query I rowsort
SELECT - col0 * + col2 + 62 + col1 * + col1 AS col1 FROM tab0 cor0
----
1045
6666
9436

onlyif mysql # use DIV operator for integer division
query I rowsort label-3659
SELECT DISTINCT - - col2 DIV col2 + + col1 AS col1 FROM tab0 AS cor0
----
87
92
98

skipif mysql # not compatible
query I rowsort label-3659
SELECT DISTINCT - - col2 / col2 + + col1 AS col1 FROM tab0 AS cor0
----
87
92
98

query I rowsort
SELECT 59 * + col0 + - 39 FROM tab1 AS cor0
----
138
3737
4681

query I rowsort
SELECT - - 50 AS col1 FROM tab1 cor0
----
50
50
50

query I rowsort
SELECT DISTINCT + 12 + col0 FROM tab1 AS cor0
----
15
76
92

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3663
SELECT - col1 * col2 + + CAST( NULL AS SIGNED ) + col1 * col2 col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3663
SELECT - col1 * col2 + + CAST ( NULL AS INTEGER ) + col1 * col2 col1 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3664
SELECT ALL + CAST( + 59 AS SIGNED ) AS col2 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to e29fef8cdec1ee45a71d213f16d2f1d3

skipif mysql # not compatible
query I rowsort label-3664
SELECT ALL + CAST ( + 59 AS INTEGER ) AS col2 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to e29fef8cdec1ee45a71d213f16d2f1d3

query I rowsort
SELECT - - 28 + - col2 AS col2 FROM tab2 AS cor0
----
-10
1
2

onlyif mysql # use DIV operator for integer division
query I rowsort label-3666
SELECT DISTINCT + + col2 DIV - cor0.col2 + - ( 49 ) AS col0 FROM tab0 cor0
----
-50

skipif mysql # not compatible
query I rowsort label-3666
SELECT DISTINCT + + col2 / - cor0.col2 + - ( 49 ) AS col0 FROM tab0 cor0
----
-50

query I rowsort
SELECT - 42 + - col1 FROM tab0 AS cor0
----
-128
-133
-139

query I rowsort
SELECT ALL - + 17 * + cor0.col1 FROM tab2 AS cor0
----
-1003
-289
-527

query I rowsort
SELECT ALL - col0 + col2 * ( - col0 * col2 ) AS col0 FROM tab0 AS cor0
----
-26160
-598525
-70

onlyif mysql # use DIV operator for integer division
query I rowsort label-3670
SELECT ALL + 12 DIV col0 + CAST( col1 + - col0 AS SIGNED ) FROM tab2 AS cor0
----
-19
-62
25

skipif mysql # not compatible
query I rowsort label-3670
SELECT ALL + 12 / col0 + CAST ( col1 + - col0 AS INTEGER ) FROM tab2 AS cor0
----
-19
-62
25

query I rowsort
SELECT DISTINCT 14 * col0 - 70 AS col0 FROM tab2 AS cor0
----
1022
1036
28

onlyif mysql # use DIV operator for integer division
query I rowsort label-3672
SELECT + ( - col1 ) * cor0.col2 DIV - col1 - - col2 FROM tab2 AS cor0
----
52
54
76

skipif mysql # not compatible
query I rowsort label-3672
SELECT + ( - col1 ) * cor0.col2 / - col1 - - col2 FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT col1 * - col1 + 54 FROM tab2 cor0
----
-235
-3427
-907

query I rowsort
SELECT DISTINCT col1 * col0 + - col1 AS col2 FROM tab2 AS cor0
----
1326
186
4543

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3675
SELECT DISTINCT - col1 * + CAST( - 95 AS SIGNED ) + - col2 * ( 72 ) FROM tab2 AS cor0
----
-1121
1001
3733

skipif mysql # not compatible
query I rowsort label-3675
SELECT DISTINCT - col1 * + CAST ( - 95 AS INTEGER ) + - col2 * ( 72 ) FROM tab2 AS cor0
----
-1121
1001
3733

query I rowsort
SELECT col0 + ( cor0.col2 ) * - col2 FROM tab1 AS cor0
----
-2913
-3185
-9136

onlyif mysql # use DIV operator for integer division
query I rowsort label-3677
SELECT ALL + - cor0.col0 DIV ( + col1 ) + + col1 col0 FROM tab0 cor0
----
86
91
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3677
SELECT ALL + - cor0.col0 / ( + col1 ) + + col1 col0 FROM tab0 cor0
----
86
91
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + 35 - col1 col0 FROM tab1 AS cor0
----
-360
-468
-936

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab1.col2 + col1 col2 FROM tab1
----
109
67
80

query I rowsort
SELECT col0 + tab1.col2 * col2 AS col2 FROM tab1
----
2919
3313
9296

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 72 + + 21 col2 FROM tab2, tab0 AS cor0
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde

query I rowsort
SELECT ALL - col0 + + 50 * + col1 FROM tab1 AS cor0
----
1297
436
570

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3683
SELECT ALL 89 + + col1 * + col1 + CAST( + col0 * - col2 AS SIGNED ) AS col2 FROM tab0 cor0
----
1072
6693
9463

skipif mysql # not compatible
query I rowsort label-3683
SELECT ALL 89 + + col1 * + col1 + CAST ( + col0 * - col2 AS INTEGER ) AS col2 FROM tab0 cor0
----
1072
6693
9463

query I rowsort
SELECT ALL - + cor0.col2 * - col0 AS col2 FROM tab2 cor0
----
189
2028
3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 79 col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f

query I rowsort
SELECT DISTINCT 40 * col2 + - col1 FROM tab1 AS cor0
----
2134
2270
3827

query I rowsort
SELECT - - 99 * - cor0.col1 FROM tab1 AS cor0
----
-1287
-2574
-990

query I rowsort
SELECT DISTINCT col2 * + 64 AS col1 FROM tab2 AS cor0
----
1664
1728
2432

query I rowsort
SELECT + 69 * - col2 AS col1 FROM tab1 cor0
----
-3726
-3933
-6624

query I rowsort
SELECT + + ( - col2 ) + col1 * col2 AS col2 FROM tab2 AS cor0
----
1508
608
810

query I rowsort
SELECT DISTINCT - 83 AS col0 FROM tab0 AS cor0
----
-83

query I rowsort
SELECT + ( tab2.col0 ) * col1 * - tab2.col2 FROM tab2
----
-119652
-51034
-5859

onlyif mysql # use DIV operator for integer division
query I rowsort label-3693
SELECT - 53 + - col2 DIV - col1 FROM tab1
----
-46
-48
-51

skipif mysql # not compatible
query I rowsort label-3693
SELECT - 53 + - col2 / - col1 FROM tab1
----
-46
-48
-51

query I rowsort
SELECT ALL - + col0 * cor0.col2 + - cor0.col2 FROM tab2 cor0
----
-2054
-216
-3040

query I rowsort
SELECT - - col0 + - col2 AS col1 FROM tab0 cor0
----
-9
34
7

query I rowsort
SELECT ALL col2 * col0 + - ( col2 ) * + col1 + 31 FROM tab2 AS cor0
----
-617
2387
525

query I rowsort
SELECT + col2 + - col0 * - col2 FROM tab0 AS cor0
----
36
7380
825

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col0 ) + col0 col0 FROM tab2
----
14
156
158

onlyif mysql # use DIV operator for integer division
query I rowsort label-3699
SELECT ALL col2 + - 76 + col0 * 75 DIV ( col0 ) FROM tab0
----
0
32
81

skipif mysql # not compatible
query I rowsort label-3699
SELECT ALL col2 + - 76 + col0 * 75 / ( col0 ) FROM tab0
----
0
32
81

query I rowsort
SELECT ALL ( col0 ) * - col1 AS col2 FROM tab0
----
-2064
-3395
-8099

query I rowsort
SELECT ( 41 ) + col0 * col0 + ( + col0 + col0 ) * + col0 AS col2 FROM tab0
----
1769
23804
3716

query I rowsort
SELECT ALL ( + col2 ) + col0 AS col0 FROM tab2
----
104
117
34

onlyif mysql # use DIV operator for integer division
query I rowsort label-3703
SELECT ALL - - 55 + 41 DIV + col0 AS col2 FROM tab2 AS cor0
----
55
55
60

skipif mysql # not compatible
query I rowsort label-3703
SELECT ALL - - 55 + 41 / + col0 AS col2 FROM tab2 AS cor0
----
55
55
60

query I rowsort
SELECT DISTINCT - cor0.col2 * 41 AS col1 FROM tab1, tab0 AS cor0
----
-1353
-3362
-41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( - col1 ) col2 FROM tab0 cor0
----
-86
-91
-97

query I rowsort
SELECT DISTINCT tab2.col0 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
7
78
79

query I rowsort
SELECT + 23 FROM tab2, tab2 AS cor0, tab0 AS cor1, tab1 AS cor2
----
81 values hashing to d3b0357ceadb3a70da7f1649b1ef2a30

query I rowsort
SELECT ALL ( - col2 + col2 ) * - col0 AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT - 75 FROM tab1, tab0 AS cor0
----
9 values hashing to 258bc565c64924d905a55eaaa6e57547

query I rowsort
SELECT DISTINCT + 75 AS col1 FROM tab2, tab1 AS cor0
----
75

query I rowsort
SELECT ALL 88 * col2 FROM tab1
----
4752
5016
8448

query I rowsort
SELECT + + col2 + - ( 87 ) + col1 * 75 AS col2 FROM tab0 AS cor0
----
6396
6820
7189

onlyif mysql # use DIV operator for integer division
query I rowsort label-3713
SELECT - col0 * col1 + ( - col0 ) DIV - col0 AS col1 FROM tab2 AS cor0
----
-1342
-216
-4601

skipif mysql # not compatible
query I rowsort label-3713
SELECT - col0 * col1 + ( - col0 ) / - col0 AS col1 FROM tab2 AS cor0
----
-1342
-216
-4601

query I rowsort
SELECT ALL col2 + 43 AS col0 FROM tab1 AS cor0
----
100
139
97

query I rowsort
SELECT - col1 + col0 * col2 + + col1 AS col1 FROM tab0 AS cor0
----
35
7298
792

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3716
SELECT + col0 * CAST( col0 AS SIGNED ) + col1 FROM tab2 AS cor0
----
6143
6258
80

skipif mysql # not compatible
query I rowsort label-3716
SELECT + col0 * CAST ( col0 AS INTEGER ) + col1 FROM tab2 AS cor0
----
6143
6258
80

skipif mysql # not compatible
query I rowsort
SELECT col2 + CAST ( col2 AS REAL ) * - col0 + - 20 AS col1 FROM tab1 AS cor0
----
-128
-3611
-7604

query I rowsort
SELECT ALL 61 + + tab0.col1 FROM tab0
----
147
152
158

query I rowsort
SELECT - 28 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to eac00a95d734c7071360ed392c3f39bc

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3720
SELECT 79 + col0 * - CAST( NULL AS SIGNED ) * 46 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3720
SELECT 79 + col0 * - CAST ( NULL AS INTEGER ) * 46 AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col2 + + col2 + - ( col0 ) FROM tab1
----
-3
-64
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * tab2.col2 col2 FROM tab2
----
189
2028
3002

query I rowsort
SELECT ALL - 18 FROM tab0 AS cor0 CROSS JOIN tab2, tab0 AS cor1
----
27 values hashing to 2dbe09d9295cfd52d854fefabf2cec4e

onlyif mysql # use DIV operator for integer division
query I rowsort label-3724
SELECT DISTINCT - col2 DIV - col0 AS col1 FROM tab2 cor0
----
0
3

skipif mysql # not compatible
query I rowsort label-3724
SELECT DISTINCT - col2 / - col0 AS col1 FROM tab2 cor0
----
0
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * col0 + 19 col1 FROM tab1 AS cor0
----
-143
-3629
-7661

query I rowsort
SELECT DISTINCT col2 * col0 + 29 * + col0 AS col0 FROM tab1 AS cor0
----
10000
249
5504

query I rowsort
SELECT col0 + + col0 + + col2 AS col0 FROM tab2 AS cor0
----
182
196
41

query I rowsort
SELECT col1 * ( - 77 * col2 ) + + col2 * col2 FROM tab1 AS cor0
----
-105192
-40641
-86880

onlyif mysql # use DIV operator for integer division
query I rowsort label-3729
SELECT DISTINCT + - cor0.col0 DIV - ( 2 * col2 ) + - col1 + col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3729
SELECT DISTINCT + - cor0.col0 / - ( 2 * col2 ) + - col1 + col1 FROM tab1 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * ( tab2.col1 ) * + col1 col0 FROM tab2
----
22831
271518
6727

query I rowsort
SELECT - 62 * col1 AS col2 FROM tab0 AS cor0
----
-5332
-5642
-6014

query I rowsort
SELECT ALL 90 AS col1 FROM tab1, tab1 AS cor0, tab2 cor1
----
27 values hashing to 5d25a546acf3ae171e731e50adc0112e

query I rowsort
SELECT col0 * + ( tab1.col0 * col1 ) AS col1 FROM tab1
----
234
40960
83200

query I rowsort
SELECT + - 68 * col1 AS col1 FROM tab1 AS cor0
----
-1768
-680
-884

query I rowsort
SELECT - + ( + col1 ) + col1 AS col2 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT col1 * + ( + cor0.col2 ) + 2 AS col1 FROM tab0 AS cor0
----
2840
7464
99

onlyif mysql # use DIV operator for integer division
query I rowsort label-3737
SELECT - - col2 DIV - col1 + col2 + + col1 AS col1 FROM tab1 AS cor0
----
102
62
78

skipif mysql # not compatible
query I rowsort label-3737
SELECT - - col2 / - col1 + col2 + + col1 AS col1 FROM tab1 AS cor0
----
102
62
78

query I rowsort
SELECT 13 * - col2 FROM tab2 AS cor0
----
-338
-351
-494

query I rowsort
SELECT - 92 * col0 AS col2 FROM tab2 AS cor0
----
-644
-7176
-7268

onlyif mysql # use DIV operator for integer division
query I rowsort label-3740
SELECT - cor0.col2 DIV col1 + - 45 AS col1 FROM tab0 AS cor0
----
-45
-45
-45

skipif mysql # not compatible
query I rowsort label-3740
SELECT - cor0.col2 / col1 + - 45 AS col1 FROM tab0 AS cor0
----
-45
-45
-45

query I rowsort
SELECT ALL + - 64 - col2 FROM tab0 cor0
----
-146
-65
-97

query I rowsort
SELECT - 11 * col1 AS col2 FROM tab0 AS cor0
----
-1001
-1067
-946

query I rowsort
SELECT - - col1 + 59 FROM tab0 AS cor0
----
145
150
156

query I rowsort
SELECT + col2 * + col0 + 9 AS col0 FROM tab2 AS cor0
----
198
2037
3011

query I rowsort
SELECT cor0.col2 * - col0 + col1 AS col2 FROM tab1 AS cor0
----
-136
-3638
-7667

query I rowsort
SELECT DISTINCT + + cor0.col1 * + col1 AS col2 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT - col0 + - cor0.col2 * - cor0.col1 AS col2 FROM tab1 AS cor0
----
1168
1401
506

query I rowsort
SELECT DISTINCT col2 + cor0.col1 * - col2 AS col2 FROM tab2 AS cor0
----
-1508
-608
-810

query I rowsort
SELECT - - col2 * - cor0.col2 * + col1 + - cor0.col2 * col1 FROM tab2 AS cor0
----
-23436
-25194
-41418

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col1 * - cor0.col2 + col1 * col0 NOT BETWEEN ( NULL ) AND col0 * - col0 OR + col0 * - col0 + col0 > NULL
----
35
97
1
89
91
82

query I rowsort
SELECT DISTINCT - col2 - cor0.col0 AS col0 FROM tab1 AS cor0
----
-121
-176
-57

query I rowsort
SELECT - + col0 * col0 * col0 FROM tab0 AS cor0
----
-13824
-42875
-704969

onlyif mysql # use DIV operator for integer division
query I rowsort label-3753
SELECT col2 DIV + col1 + col0 * tab2.col2 AS col1 FROM tab2
----
189
2028
3004

skipif mysql # not compatible
query I rowsort label-3753
SELECT col2 / + col1 + col0 * tab2.col2 AS col1 FROM tab2
----
189
2028
3004

onlyif mysql # use DIV operator for integer division
query I rowsort label-3754
SELECT - col2 * col2 - + tab1.col0 DIV tab1.col2 FROM tab1
----
-2916
-3250
-9216

skipif mysql # not compatible
query I rowsort label-3754
SELECT - col2 * col2 - + tab1.col0 / tab1.col2 FROM tab1
----
-2916
-3250
-9216

query I rowsort
SELECT ALL - col2 * cor0.col0 + col2 FROM tab2 AS cor0
----
-162
-2002
-2964

query I rowsort
SELECT DISTINCT col0 * - col0 + col2 * col0 FROM tab1
----
-448
1280
153

query I rowsort
SELECT col1 * col0 + col1 AS col1 FROM tab1
----
104
1053
650

query I rowsort
SELECT + col0 + tab0.col0 * - tab0.col0 FROM tab0
----
-1190
-552
-7832

onlyif mysql # use DIV operator for integer division
query I rowsort label-3759
SELECT DISTINCT + col0 * + tab2.col1 DIV col1 AS col2 FROM tab2
----
7
78
79

skipif mysql # not compatible
query I rowsort label-3759
SELECT DISTINCT + col0 * + tab2.col1 / col1 AS col2 FROM tab2
----
7
78
79

query I rowsort
SELECT + - col1 * col1 + cor0.col0 * - cor0.col2 FROM tab0 AS cor0
----
-15579
-8188
-9444

query I rowsort
SELECT ALL + col2 * col1 + + tab1.col2 * col2 FROM tab1
----
10464
3819
4320

onlyif mysql # use DIV operator for integer division
query I rowsort label-3762
SELECT ALL - col1 DIV + col1 + col0 + col2 FROM tab2
----
103
116
33

skipif mysql # not compatible
query I rowsort label-3762
SELECT ALL - col1 / + col1 + col0 + col2 FROM tab2
----
103
116
33

query I rowsort
SELECT col0 + + tab1.col0 + col0 * + col0 FROM tab1
----
15
4224
6560

onlyif mysql # use DIV operator for integer division
query I rowsort label-3764
SELECT DISTINCT col2 - + col2 * col2 DIV col0 FROM tab1
----
-19
-918
7

skipif mysql # not compatible
query I rowsort label-3764
SELECT DISTINCT col2 - + col2 * col2 / col0 FROM tab1
----
-19
-918
7

query I rowsort
SELECT col1 * + col2 * col0 - + col2 AS col2 FROM tab2
----
119626
50996
5832

onlyif mysql # use DIV operator for integer division
query I rowsort label-3766
SELECT cor0.col1 DIV col0 - + cor0.col1 * col2 DIV - col0 FROM tab1 AS cor0
----
15
476
8

skipif mysql # not compatible
query I rowsort label-3766
SELECT cor0.col1 / col0 - + cor0.col1 * col2 / - col0 FROM tab1 AS cor0
----
15
476
8

onlyif mysql # use DIV operator for integer division
query I rowsort label-3767
SELECT DISTINCT - - col2 * - col2 + - col0 DIV + col2 FROM tab0 cor0
----
-1089
-36
-6725

skipif mysql # not compatible
query I rowsort label-3767
SELECT DISTINCT - - col2 * - col2 + - col0 / + col2 FROM tab0 cor0
----
-1089
-36
-6725

query I rowsort
SELECT ALL - col1 + - col1 + col0 * - col2 FROM tab2
----
-2146
-251
-3036

onlyif mysql # use DIV operator for integer division
query I rowsort label-3769
SELECT ALL col1 * col1 DIV + col0 FROM tab0
----
268
308
93

skipif mysql # not compatible
query I rowsort label-3769
SELECT ALL col1 * col1 / + col0 FROM tab0
----
268
308
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * tab2.col0 + - col2 + col2 * - col0 col2 FROM tab2
----
-1697
1
2548

query I rowsort
SELECT DISTINCT + col0 + + col1 * + col0 AS col2 FROM tab2
----
1422
224
4680

query I rowsort
SELECT + col0 * col0 * col2 + col2 * + tab2.col0 + + col2 * - tab2.col2 FROM tab2
----
159536
238716
783

onlyif mysql # use DIV operator for integer division
query I rowsort label-3773
SELECT col0 DIV - col1 + col2 * - 48 col2 FROM tab0 AS cor0
----
-1584
-3936
-48

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3773
SELECT col0 / - col1 + col2 * - 48 col2 FROM tab0 AS cor0
----
-1584
-3936
-48

query I rowsort
SELECT + col1 + + col0 + + col2 FROM tab1 AS cor0
----
131
189
83

query I rowsort
SELECT - + 93 + + col1 + - col1 * - cor0.col2 AS col1 FROM tab0 AS cor0
----
101
2831
7460

onlyif mysql # use DIV operator for integer division
query I rowsort label-3776
SELECT DISTINCT + 7 DIV - col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3776
SELECT DISTINCT + 7 / - col2 FROM tab1 AS cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3777
SELECT DISTINCT - 71 DIV - col0 + 27 + col2 * - col1 col1 FROM tab2
----
-1507
-619
-800

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3777
SELECT DISTINCT - 71 / - col0 + 27 + col2 * - col1 col1 FROM tab2
----
-1507
-619
-800

query I rowsort
SELECT + + col2 - col0 * ( + ( - col1 ) ) AS col0 FROM tab0 AS cor0
----
2097
3396
8181

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 10 + - col1 col2 FROM tab0 cor0
----
-101
-107
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-3780
SELECT ALL + col2 DIV col2 + 52 FROM tab1 AS cor0
----
53
53
53

skipif mysql # not compatible
query I rowsort label-3780
SELECT ALL + col2 / col2 + 52 FROM tab1 AS cor0
----
53
53
53

query I rowsort
SELECT ALL col2 * col2 + 1 + + ( + cor0.col2 * - 68 ) FROM tab0 cor0
----
-1154
-66
1149

query I rowsort
SELECT col2 AS col1 FROM tab0 WHERE + col0 = NULL
----

query I rowsort
SELECT ALL tab0.col0 * + col0 + - col0 + col2 FROM tab0 WHERE NOT ( NULL ) NOT IN ( col2 )
----

query I rowsort
SELECT ALL - tab2.col0 * col2 + - col2 * + tab2.col0 FROM tab2
----
-378
-4056
-6004

query III rowsort
SELECT * FROM tab1 WHERE ( - tab1.col2 ) < col0 / col1
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 <> ( col0 + + col2 )
----

query I rowsort
SELECT DISTINCT + col1 FROM tab0 AS cor0 WHERE - col2 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT - col2 * - col1 * col2 AS col0 FROM tab2 AS cor0
----
22599
24548
39884

query I rowsort
SELECT ALL - col2 FROM tab2 WHERE col2 <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + tab1.col0 col0 FROM tab1
----
121
176
57

query I rowsort
SELECT + col2 FROM tab0 WHERE NOT + tab0.col2 = col0 * - col1
----
1
33
82

query I rowsort
SELECT ALL - tab1.col0 * + col1 + + col2 AS col1 FROM tab1
----
-24
-583
-944

query I rowsort
SELECT ALL - col0 FROM tab0 WHERE NOT + col2 NOT IN ( + col1 )
----

query I rowsort
SELECT DISTINCT col0 * col0 + + col2 * + col2 FROM tab1 WHERE ( NULL ) NOT BETWEEN + col0 AND NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-3795
SELECT ALL tab0.col0 * col0 DIV + col2 + col2 AS col2 FROM tab0
----
1226
178
50

skipif mysql # not compatible
query I rowsort label-3795
SELECT ALL tab0.col0 * col0 / + col2 + col2 AS col2 FROM tab0
----
1226
178
50

query I rowsort
SELECT col0 + - col1 * - col2 FROM tab0
----
132
2862
7551

query I rowsort
SELECT DISTINCT tab1.col2 + tab1.col0 * col2 FROM tab1
----
216
3705
7776

query I rowsort
SELECT ALL + col1 * - tab1.col1 + col2 AS col1 FROM tab1
----
-43
-622
-73

query I rowsort
SELECT col0 FROM tab0 WHERE NOT col0 > NULL
----

query I rowsort
SELECT DISTINCT + col0 * - col1 + col0 FROM tab0 AS cor0
----
-2040
-3360
-8010

query I rowsort
SELECT ALL cor0.col1 * + cor0.col2 + ( ( col2 ) ) FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT ALL + cor0.col1 + col0 * col2 FROM tab2 cor0
----
2087
220
3019

query I rowsort
SELECT - - col2 + ( cor0.col2 ) FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT col1 * - cor0.col1 AS col2 FROM tab0 cor0
----
-7396
-8281
-9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-3805
SELECT 39 + col0 * col0 DIV tab1.col1 col2 FROM tab1
----
39
448
531

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3805
SELECT 39 + col0 * col0 / tab1.col1 col2 FROM tab1
----
39
448
531

query I rowsort
SELECT ALL - col0 + - ( - col0 ) FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3807
SELECT DISTINCT - col1 + 59 DIV col2 FROM tab1 AS cor0
----
-13
-25
-9

skipif mysql # not compatible
query I rowsort label-3807
SELECT DISTINCT - col1 + 59 / col2 FROM tab1 AS cor0
----
-13
-25
-9

query I rowsort
SELECT ALL + + 5 * col1 + col2 + + col2 FROM tab0 AS cor0
----
487
496
619

query I rowsort
SELECT ALL col0 + 41 FROM tab2 AS cor0
----
119
120
48

query I rowsort
SELECT + col0 + 68 AS col2 FROM tab0 cor0
----
103
157
92

query I rowsort
SELECT - cor1.col0 AS col0 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8

query I rowsort
SELECT + + col0 * col0 * - col0 + - 17 AS col2 FROM tab2 AS cor0
----
-360
-474569
-493056

query I rowsort
SELECT + 35 + col1 AS col0 FROM tab0 cor0
----
121
126
132

query I rowsort
SELECT - col1 * - cor0.col0 + - col2 AS col0 FROM tab0 cor0
----
2031
3394
8017

query I rowsort
SELECT - col2 + ( + col2 ) AS col0 FROM tab2
----
0
0
0

query I rowsort
SELECT - col2 + col0 * - col1 * - col0 AS col0 FROM tab2
----
106059
1492
358930

query I rowsort
SELECT - cor0.col2 + + cor0.col1 AS col2 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT - - col0 * col1 * - 45 - - col1 FROM tab2 AS cor0
----
-207031
-60418
-9734

onlyif mysql # use DIV operator for integer division
query I rowsort label-3819
SELECT DISTINCT + - col0 DIV col1 col1 FROM tab0 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3819
SELECT DISTINCT + - col0 / col1 col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT - - 93 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 85ef191bf1b307f300b3fd49992fcae7

onlyif mysql # use DIV operator for integer division
query I rowsort label-3821
SELECT DISTINCT + - cor0.col0 DIV - 32 AS col2 FROM tab2 cor0
----
0
2

skipif mysql # not compatible
query I rowsort label-3821
SELECT DISTINCT + - cor0.col0 / - 32 AS col2 FROM tab2 cor0
----
0
2

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3822
SELECT + col2 * CAST( + col2 * - col2 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-157464
-185193
-884736

skipif mysql # not compatible
query I rowsort label-3822
SELECT + col2 * CAST ( + col2 * - col2 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-157464
-185193
-884736

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - tab1.col1 col2 FROM tab1
----
100
169
676

query I rowsort
SELECT ALL 74 * col2 * col0 - + col0 * col2 AS col2 FROM tab2
----
13797
148044
219146

query I rowsort
SELECT ALL 0 * - 81 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - + col1 * cor0.col0 * col1 FROM tab1 AS cor0
----
-13520
-2028
-6400

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3827
SELECT ALL - CAST( - col2 AS SIGNED ) AS col0 FROM tab2
----
26
27
38

skipif mysql # not compatible
query I rowsort label-3827
SELECT ALL - CAST ( - col2 AS INTEGER ) AS col0 FROM tab2
----
26
27
38

query IIIIIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 AS cor0 CROSS JOIN tab0, tab2, tab1 AS cor1, tab0 AS cor2
----
13122 values hashing to b87471c00dbe3227b02e16a50bcbbb64

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3829
SELECT - CAST( + col1 AS SIGNED ) * col0 * - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3829
SELECT - CAST ( + col1 AS INTEGER ) * col0 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - 85 + + ( col0 ) * - 55 * col1 AS col2 FROM tab2 AS cor0
----
-11850
-253025
-73780

query I rowsort
SELECT + col1 + 15 * col2 AS col2 FROM tab2 AS cor0
----
436
449
587

query I rowsort
SELECT - ( + 64 ) FROM tab2 AS cor0
----
-64
-64
-64

query I rowsort
SELECT DISTINCT col0 * - col2 + - 52 + - col1 AS col0 FROM tab0
----
-184
-7441
-930

query I rowsort
SELECT ALL col0 - - 89 * 83 FROM tab0
----
7411
7422
7476

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 - + 55 col0 FROM tab1
----
-52
25
9

query I rowsort
SELECT ALL - - col2 + + col2 FROM tab1 cor0
----
108
114
192

onlyif mysql # use DIV operator for integer division
query I rowsort label-3837
SELECT ALL col0 + 87 DIV cor0.col2 AS col2 FROM tab0 AS cor0
----
122
26
90

skipif mysql # not compatible
query I rowsort label-3837
SELECT ALL col0 + 87 / cor0.col2 AS col2 FROM tab0 AS cor0
----
122
26
90

onlyif mysql # use DIV operator for integer division
query I rowsort label-3838
SELECT DISTINCT + - col2 * col1 DIV 51 + col0 FROM tab1 AS cor0
----
-24
53
56

skipif mysql # not compatible
query I rowsort label-3838
SELECT DISTINCT + - col2 * col1 / 51 + col0 FROM tab1 AS cor0
----
-24
53
56

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3839
SELECT - col1 * col0 / 69 + + col2 * + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3839
SELECT - col1 * col0 / 69 + + col2 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3840
SELECT DISTINCT - cor0.col0 + CAST( NULL AS DECIMAL ) + col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3840
SELECT DISTINCT - cor0.col0 + CAST ( NULL AS REAL ) + col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3841
SELECT - cor0.col1 * + CAST( + col1 AS SIGNED ) + + cor0.col2 FROM tab1 AS cor0
----
-43
-622
-73

skipif mysql # not compatible
query I rowsort label-3841
SELECT - cor0.col1 * + CAST ( + col1 AS INTEGER ) + + cor0.col2 FROM tab1 AS cor0
----
-43
-622
-73

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3842
SELECT DISTINCT CAST( NULL AS SIGNED ) + + 35 AS col2 FROM tab0, tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3842
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + 35 AS col2 FROM tab0, tab2 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3843
SELECT DISTINCT + - cor0.col2 DIV col0 AS col1 FROM tab0 cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-3843
SELECT DISTINCT + - cor0.col2 / col0 AS col1 FROM tab0 cor0
----
-1
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3844
SELECT - + col1 + 98 DIV col0 + - col0 * + col2 * col1 FROM tab2 AS cor0
----
-119710
-51050
-5876

skipif mysql # not compatible
query I rowsort label-3844
SELECT - + col1 + 98 / col0 + - col0 * + col2 * col1 FROM tab2 AS cor0
----
-119710
-51050
-5876

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( 7 ) col1 FROM tab1 AS cor0
----
7
7
7

query I rowsort
SELECT ALL + ( 14 ) + - col2 AS col1 FROM tab1 AS cor0
----
-40
-43
-82

query I rowsort
SELECT DISTINCT + 67 * - col0 AS col1 FROM tab2 AS cor0
----
-469
-5226
-5293

query I rowsort
SELECT DISTINCT - 68 + - col0 FROM tab0 cor0
----
-103
-157
-92

query I rowsort
SELECT + cor0.col2 + 39 * + col1 + cor0.col0 AS col1 FROM tab1 AS cor0
----
1071
511
683

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - 53 ) col1 FROM tab2 cor0
----
-53
-53
-53

query I rowsort
SELECT + col1 + cor0.col0 + col0 * col0 FROM tab1 AS cor0
----
38
4170
6493

query I rowsort
SELECT col1 + col0 + cor0.col2 AS col1 FROM tab2 AS cor0
----
134
163
65

query I rowsort
SELECT DISTINCT + - 17 + + ( + col2 ) * + 46 + 68 FROM tab1 AS cor0
----
2535
2673
4467

query I rowsort
SELECT DISTINCT + - col0 + - col2 AS col0 FROM tab2 AS cor0
----
-104
-117
-34

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3855
SELECT DISTINCT + CAST( + 75 AS SIGNED ) * + col0 AS col2 FROM tab2 AS cor0
----
525
5850
5925

skipif mysql # not compatible
query I rowsort label-3855
SELECT DISTINCT + CAST ( + 75 AS INTEGER ) * + col0 AS col2 FROM tab2 AS cor0
----
525
5850
5925

query I rowsort
SELECT - col2 - ( col1 ) AS col2 FROM tab1
----
-109
-67
-80

query I rowsort
SELECT DISTINCT + col0 - col1 * 47 AS col2 FROM tab2
----
-1450
-2695
-720

query I rowsort
SELECT ALL 39 + + col0 AS col1 FROM tab1 AS cor0
----
103
119
42

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3859
SELECT ALL - + CAST( NULL AS DECIMAL ) + + col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3859
SELECT ALL - + CAST ( NULL AS REAL ) + + col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col2 ) + col1 col0 FROM tab1 cor0
----
109
67
80

query I rowsort
SELECT DISTINCT + + 49 * cor0.col1 + col0 FROM tab2 AS cor0
----
1526
2969
912

query I rowsort
SELECT DISTINCT - col2 * col1 - - ( - ( + col0 ) ) * + col0 FROM tab2 AS cor0
----
-6887
-7618
-886

query I rowsort
SELECT - + 81 AS col2 FROM tab0 AS cor0
----
-81
-81
-81

query I rowsort
SELECT ALL - - 46 + + col2 * - ( + col2 ) AS col1 FROM tab0 AS cor0
----
-1043
-6678
45

query I rowsort
SELECT 86 * + col2 FROM tab2 AS cor0
----
2236
2322
3268

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + col0 * + col0 + CAST ( - col0 AS REAL ) AS col2 FROM tab0 AS cor0
----
1190
552
7832

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3867
SELECT DISTINCT + CAST( NULL AS DECIMAL ) - 2 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-3867
SELECT DISTINCT + CAST ( NULL AS REAL ) - 2 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
NULL

query I rowsort
SELECT + ( col1 ) + + col2 * col0 FROM tab1 AS cor0
----
188
3658
7693

query I rowsort
SELECT ALL ( + ( col1 ) ) * - col0 FROM tab0
----
-2064
-3395
-8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + col1 ) - - ( + ( col1 ) ) * + ( col0 ) col0 FROM tab1 AS cor0
----
104
1053
650

query I rowsort
SELECT DISTINCT 5 AS col2 FROM tab0 AS cor0
----
5

query I rowsort
SELECT DISTINCT - - ( + col1 ) * - col2 + 53 FROM tab0 AS cor0
----
-2785
-44
-7409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 * + col1 * - col0 - - col0 * - col1 col2 FROM tab0 AS cor0
----
175440
325920
728910

query I rowsort
SELECT col2 * col1 * 36 AS col1 FROM tab0 cor0
----
102168
268632
3492

query I rowsort
SELECT DISTINCT + col2 * - col2 AS col2 FROM tab2 cor0
----
-1444
-676
-729

query I rowsort
SELECT DISTINCT - - col2 * cor0.col1 + col2 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT DISTINCT + col2 * + 37 - - col0 FROM tab0 AS cor0
----
1245
3123
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col2 * ( + 90 ) col2 FROM tab2 AS cor0
----
-2340
-2430
-3420

onlyif mysql # use DIV operator for integer division
query I rowsort label-3879
SELECT ALL + col1 * - cor0.col0 + col2 DIV col1 FROM tab1 AS cor0
----
-1033
-635
-76

skipif mysql # not compatible
query I rowsort label-3879
SELECT ALL + col1 * - cor0.col0 + col2 / col1 FROM tab1 AS cor0
----
-1033
-635
-76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - 93 col0 FROM tab0 cor0
----
-3069
-7626
-93

query I rowsort
SELECT ALL col2 * 61 AS col2 FROM tab0 AS cor0
----
2013
5002
61

onlyif mysql # use DIV operator for integer division
query I rowsort label-3882
SELECT col0 DIV - 88 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3882
SELECT col0 / - 88 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 - col0 col2 FROM tab0 cor0
----
0

query I rowsort
SELECT ALL - cor0.col0 * - col0 * cor0.col0 AS col1 FROM tab1 AS cor0
----
262144
27
512000

query I rowsort
SELECT col0 * 89 AS col0 FROM tab2 AS cor0
----
623
6942
7031

query I rowsort
SELECT - col2 + + ( + 1 ) * + col1 AS col0 FROM tab0 cor0
----
53
9
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col0 ) + - col2 col0 FROM tab1
----
-121
-176
-57

query I rowsort
SELECT DISTINCT - col0 * - ( + col2 ) * + col1 AS col0 FROM tab2 cor0
----
119652
51034
5859

query I rowsort
SELECT - col2 * - 69 FROM tab0 cor0
----
2277
5658
69

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3890
SELECT CAST( NULL AS SIGNED ) - 14 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3890
SELECT CAST ( NULL AS INTEGER ) - 14 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - - cor1.col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870

onlyif mysql # use DIV operator for integer division
query I rowsort label-3892
SELECT - + 21 DIV 15 + - col1 * - 36 FROM tab1 AS cor0
----
359
467
935

skipif mysql # not compatible
query I rowsort label-3892
SELECT - + 21 / 15 + - col1 * - 36 FROM tab1 AS cor0
----
359
467
935

query I rowsort
SELECT DISTINCT cor0.col1 * 26 * cor0.col0 + 71 FROM tab0 AS cor0
----
210645
53735
88341

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 cor0 CROSS JOIN tab2, tab1 cor1
----
972 values hashing to 980274175fafec015a83080672486a9a

query I rowsort
SELECT DISTINCT + col2 + + col2 * + ( col1 * - col0 ) AS col1 FROM tab2 cor0
----
-119626
-50996
-5832

query I rowsort
SELECT ALL + - cor0.col2 * col1 * - 5 FROM tab0 AS cor0
----
14190
37310
485

query I rowsort
SELECT DISTINCT col2 * 45 + col1 FROM tab0
----
142
1571
3781

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 95 * 51 col1 FROM tab2, tab2 AS cor0
----
4845

query I rowsort
SELECT DISTINCT ( + 65 + - col1 ) FROM tab1
----
39
52
55

onlyif mysql # use DIV operator for integer division
query I rowsort label-3900
SELECT col0 + + 15 DIV col0 + 68 AS col1 FROM tab0 AS cor0
----
103
157
92

skipif mysql # not compatible
query I rowsort label-3900
SELECT col0 + + 15 / col0 + 68 AS col1 FROM tab0 AS cor0
----
103
157
92

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3901
SELECT CAST( NULL AS SIGNED ) / 54 FROM tab0, tab1, tab1 cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-3901
SELECT CAST ( NULL AS INTEGER ) / 54 FROM tab0, tab1, tab1 cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * 93 * col0 col0 FROM tab2
----
-124899
-20181
-427986

query I rowsort
SELECT - ( ( - tab2.col2 ) ) FROM tab2
----
26
27
38

query I rowsort
SELECT 71 * - col0 + col2 FROM tab2 AS cor0
----
-470
-5512
-5571

query I rowsort
SELECT col2 + - col1 * + col1 AS col1 FROM tab1 cor0
----
-43
-622
-73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col2 ) + - col1 col0 FROM tab0
----
-119
-173
-98

query I rowsort
SELECT DISTINCT - 78 * col0 FROM tab0 AS cor0
----
-1872
-2730
-6942

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 32 col1 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
32

query I rowsort
SELECT ALL + 85 + + col2 AS col2 FROM tab0 AS cor0
----
118
167
86

query I rowsort
SELECT - 22 * cor0.col2 AS col2 FROM tab2 AS cor0
----
-572
-594
-836

query I rowsort
SELECT ALL + - col1 - col0 * col2 FROM tab0 AS cor0
----
-132
-7389
-878

query I rowsort
SELECT - col0 * + col1 - - col2 * + col1 AS col0 FROM tab1 AS cor0
----
-70
1326
208

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - col1 col2 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT DISTINCT - col2 * 45 + col0 FROM tab0 AS cor0
----
-10
-1461
-3601

onlyif mysql # use DIV operator for integer division
query I rowsort label-3915
SELECT ALL + + col0 DIV - col2 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3915
SELECT ALL + + col0 / - col2 FROM tab1 AS cor0
----
-1
0
0

query I rowsort
SELECT - col1 * - 24 AS col0 FROM tab0 AS cor0
----
2064
2184
2328

query I rowsort
SELECT + col1 * + ( + 84 ) AS col0 FROM tab2 AS cor0
----
1428
2604
4956

query I rowsort
SELECT - col1 * + 66 FROM tab0 AS cor0
----
-5676
-6006
-6402

query I rowsort
SELECT ALL - 59 * + col2 FROM tab0 cor0
----
-1947
-4838
-59

query I rowsort
SELECT col0 - 1 AS col0 FROM tab0 AS cor0
----
23
34
88

query I rowsort
SELECT - 31 - col0 FROM tab1 AS cor0
----
-111
-34
-95

query I rowsort
SELECT DISTINCT + cor0.col1 * col0 + col0 AS col0 FROM tab0 AS cor0
----
2088
3430
8188

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3923
SELECT + CAST( - 78 AS SIGNED ) - col0 * - col2 FROM tab2 AS cor0
----
111
1950
2924

skipif mysql # not compatible
query I rowsort label-3923
SELECT + CAST ( - 78 AS INTEGER ) - col0 * - col2 FROM tab2 AS cor0
----
111
1950
2924

query I rowsort
SELECT - col1 + 0 AS col0 FROM tab0 AS cor0
----
-86
-91
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + col0 - - col2 col1 FROM tab1 cor0
----
-4039
-6304
45

query I rowsort
SELECT ALL ( - ( col1 ) ) AS col0 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT - col0 + - cor0.col2 * col2 FROM tab2 AS cor0
----
-1523
-736
-754

query I rowsort
SELECT - col0 * col1 + - col0 AS col2 FROM tab0 AS cor0
----
-2088
-3430
-8188

query I rowsort
SELECT col2 * + col2 * 38 AS col1 FROM tab2 AS cor0
----
25688
27702
54872

skipif mysql # not compatible
query I rowsort
SELECT + CAST ( col2 * - col1 AS REAL ) + - col0 FROM tab1
----
-1328
-1407
-634

query I rowsort
SELECT - tab1.col2 + 3 FROM tab1, tab1 AS cor0
----
9 values hashing to 685d5c3f69a1e66b9e12c38ff9ca0d3a

query I rowsort
SELECT DISTINCT 64 * 69 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
4416

query I rowsort
SELECT 2 * col2 AS col1 FROM tab0 AS cor0
----
164
2
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 19 * col1 + col2 + col0 col1 FROM tab1 AS cor0
----
-437
-69
-71

query I rowsort
SELECT DISTINCT 33 * - col0 FROM tab2
----
-231
-2574
-2607

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-3937
SELECT DISTINCT - col0 * + col0 + CAST( + 81 AS SIGNED ) * + cor0.col2 AS col1 FROM tab2 AS cor0
----
-3163
-3978
2138

skipif mysql # not compatible
query I rowsort label-3937
SELECT DISTINCT - col0 * + col0 + CAST ( + 81 AS INTEGER ) * + cor0.col2 AS col1 FROM tab2 AS cor0
----
-3163
-3978
2138

query I rowsort
SELECT - col0 + col2 * + col1 AS col2 FROM tab1
----
1168
1401
506

query I rowsort
SELECT + 37 * + col0 + + tab1.col1 FROM tab1
----
137
2378
2973

query I rowsort
SELECT ALL - col1 + col1 * + col0 AS col1 FROM tab2 AS cor0
----
1326
186
4543

query I rowsort
SELECT ALL + cor0.col2 * + col1 * + ( col0 ) AS col1 FROM tab1 AS cor0
----
36480
4212
99840

query I rowsort
SELECT ALL + col1 * col1 + col2 AS col0 FROM tab2 cor0
----
327
3507
988

query I rowsort
SELECT ALL - - 61 FROM tab2 AS cor0
----
61
61
61

query I rowsort
SELECT DISTINCT + col1 + - cor0.col0 * ( - col2 ) AS col2 FROM tab1 AS cor0
----
188
3658
7693

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3945
SELECT - - col1 + col0 / CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3945
SELECT - - col1 + col0 / CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3946
SELECT - - ( + col2 ) / CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3946
SELECT - - ( + col2 ) / CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 + col0 + col1 * - cor0.col1 AS col2 FROM tab2 AS cor0
----
-131
-3325
-947

query I rowsort
SELECT ALL 57 AS col0 FROM tab0 cor0
----
57
57
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-3949
SELECT + col0 + col1 DIV col2 AS col0 FROM tab0
----
132
26
90

skipif mysql # not compatible
query I rowsort label-3949
SELECT + col0 + col1 / col2 AS col0 FROM tab0
----
132
26
90

query I rowsort
SELECT DISTINCT - col1 * - 69 - 10 AS col2 FROM tab1 AS cor0
----
1784
680
887

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col2 col1 FROM tab0 cor0
----
35
7298
792

query I rowsort
SELECT DISTINCT cor0.col2 + + 32 FROM tab0 AS cor0
----
114
33
65

query I rowsort
SELECT + + col2 * - cor0.col1 FROM tab0 cor0
----
-2838
-7462
-97

query I rowsort
SELECT col0 + + ( - col0 * + col2 ) FROM tab2 AS cor0
----
-182
-1950
-2923

query I rowsort
SELECT - + col2 + - ( - col2 ) FROM tab0 cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3956
SELECT - - col0 + col2 DIV - cor0.col1 col1 FROM tab2 AS cor0
----
7
77
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3956
SELECT - - col0 + col2 / - cor0.col1 col1 FROM tab2 AS cor0
----
7
77
78

query I rowsort
SELECT DISTINCT + + col0 * + col1 * + col0 FROM tab0 cor0
----
118825
49536
720811

query I rowsort
SELECT DISTINCT 78 FROM tab1, tab1 AS cor0
----
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 82 * 35 col1 FROM tab0 AS cor0
----
2870
2870
2870

query I rowsort
SELECT ALL - 69 * col1 AS col1 FROM tab1 AS cor0
----
-1794
-690
-897

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 67 * + 31 col2 FROM tab0 AS cor0
----
-2077
-2077
-2077

query I rowsort
SELECT DISTINCT - + col2 + col1 * col1 * 2 FROM tab1 AS cor0
----
1298
143
242

query I rowsort
SELECT ALL cor0.col1 + col0 * col2 FROM tab0 AS cor0
----
132
7389
878

query I rowsort
SELECT DISTINCT - col0 + + col2 + + col2 * cor0.col1 AS col2 FROM tab2 AS cor0
----
1482
605
857

query I rowsort
SELECT ALL + - 94 - cor0.col2 FROM tab2 AS cor0
----
-120
-121
-132

query I rowsort
SELECT DISTINCT 24 + + col0 * + cor0.col2 FROM tab0 AS cor0
----
59
7322
816

query I rowsort
SELECT DISTINCT - 8 AS col1 FROM tab0 cor0
----
-8

query I rowsort
SELECT ALL + 37 + + cor0.col1 AS col0 FROM tab1 AS cor0
----
47
50
63

onlyif mysql # use DIV operator for integer division
query I rowsort label-3969
SELECT DISTINCT - - col2 DIV + 23 + cor0.col2 col1 FROM tab2 AS cor0
----
27
28
39

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3969
SELECT DISTINCT - - col2 / + 23 + cor0.col2 col1 FROM tab2 AS cor0
----
27
28
39

query I rowsort
SELECT ALL - 21 * col2 - col1 FROM tab2 AS cor0
----
-598
-605
-815

query I rowsort
SELECT DISTINCT 93 AS col0 FROM tab0, tab0 AS cor0, tab2, tab2 AS cor1
----
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-3972
SELECT ALL + + cor0.col0 + col2 DIV - cor0.col2 FROM tab1 cor0
----
2
63
79

skipif mysql # not compatible
query I rowsort label-3972
SELECT ALL + + cor0.col0 + col2 / - cor0.col2 FROM tab1 cor0
----
2
63
79

query I rowsort
SELECT DISTINCT - - col0 * - col1 + cor0.col0 * col2 * + col1 AS col1 FROM tab0 AS cor0
----
0
656019
66048

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3974
SELECT CAST( NULL AS SIGNED ) + + col0 / - cor0.col2 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3974
SELECT CAST ( NULL AS INTEGER ) + + col0 / - cor0.col2 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + col2 + 20 * + col1 FROM tab2 AS cor0
----
1154
302
593

query I rowsort
SELECT + 58 * 63 FROM tab2, tab2 cor0
----
9 values hashing to fe69557840e95c50134d088790f80536

query I rowsort
SELECT ALL - + 31 - 29 FROM tab1 AS cor0
----
-60
-60
-60

query I rowsort
SELECT ALL 12 * + col0 + col0 * col0 + col1 AS col2 FROM tab0 AS cor0
----
1742
9080
950

query I rowsort
SELECT + + col0 * + cor0.col2 + col2 * 48 AS col2 FROM tab0 AS cor0
----
11234
2376
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-3980
SELECT DISTINCT + col0 * col1 - - col0 DIV - 71 FROM tab1 AS cor0
----
1039
640
78

skipif mysql # not compatible
query I rowsort label-3980
SELECT DISTINCT + col0 * col1 - - col0 / - 71 FROM tab1 AS cor0
----
1039
640
78

query I rowsort
SELECT DISTINCT col2 + - col0 * col1 AS col2 FROM tab0 AS cor0
----
-2031
-3394
-8017

query I rowsort
SELECT + ( - 9 ) AS col2 FROM tab2 AS cor0
----
-9
-9
-9

query I rowsort
SELECT ALL cor0.col0 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63

query I rowsort
SELECT - - col1 * - col0 * cor0.col1 - - col2 FROM tab2 AS cor0
----
-22793
-271492
-6700

query I rowsort
SELECT ALL - 89 AS col0 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to c36e597b7bc5727536f5bb580e6cebbc

query I rowsort
SELECT ALL + - col1 + 74 FROM tab2 AS cor0
----
15
43
57

query I rowsort
SELECT DISTINCT col1 - - ( + col2 ) AS col2 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT + col2 * - ( col1 ) + - col2 AS col2 FROM tab1 AS cor0
----
-1344
-1458
-627

onlyif mysql # use DIV operator for integer division
query I rowsort label-3989
SELECT + col1 DIV col2 + col2 * - col1 * + col0 AS col2 FROM tab1
----
-36480
-4212
-99840

skipif mysql # not compatible
query I rowsort label-3989
SELECT + col1 / col2 + col2 * - col1 * + col0 AS col2 FROM tab1
----
-36480
-4212
-99840

query I rowsort
SELECT ALL col2 - + tab1.col0 * tab1.col2 FROM tab1
----
-108
-3591
-7584

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 87 col1 FROM tab2, tab2 AS cor0
----
87

onlyif mysql # use DIV operator for integer division
query I rowsort label-3992
SELECT ALL + col1 * col1 * col1 + - col0 DIV ( - col0 ) AS col2 FROM tab0
----
636057
753572
912674

skipif mysql # not compatible
query I rowsort label-3992
SELECT ALL + col1 * col1 * col1 + - col0 / ( - col0 ) AS col2 FROM tab0
----
636057
753572
912674

query I rowsort
SELECT ALL col2 + - ( col2 ) + col0 AS col2 FROM tab1
----
3
64
80

query I rowsort
SELECT ALL + col1 + + 17 FROM tab0
----
103
108
114

query I rowsort
SELECT cor0.col1 * + 15 + + cor0.col1 AS col2 FROM tab0 AS cor0
----
1376
1456
1552

query I rowsort
SELECT cor0.col0 + ( 91 * + cor0.col1 ) FROM tab2 AS cor0
----
1626
2828
5447

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3997
SELECT - col2 * - CAST( NULL AS SIGNED ) + col2 * - col2 * col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3997
SELECT - col2 * - CAST ( NULL AS INTEGER ) + col2 * - col2 * col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3998
SELECT col0 * + CAST( + col0 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
1225
576
7921

skipif mysql # not compatible
query I rowsort label-3998
SELECT col0 * + CAST ( + col0 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT ALL - 28 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to c3e7fa3d059fc708f03c60e9cef0c115

query I rowsort
SELECT col1 + - 70 * - col0 FROM tab1 AS cor0
----
236
4490
5613

query I rowsort
SELECT 80 AS col1 FROM tab1, tab2 cor0, tab1 AS cor1
----
27 values hashing to 6dd5038be71dffa82f5ceba787caab91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + col0 + - tab1.col2 col2 FROM tab1
----
-45
4039
6304

query I rowsort
SELECT DISTINCT + 24 AS col0 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
24

query I rowsort
SELECT + + col1 * col2 + + col2 * 57 AS col0 FROM tab0 cor0
----
12136
154
4719

query I rowsort
SELECT 55 - col1 FROM tab1 AS cor0
----
29
42
45

onlyif mysql # use DIV operator for integer division
query I rowsort label-4006
SELECT DISTINCT - col0 DIV + ( col2 * - col2 ) + col0 - col2 * + col1 col1 FROM tab0 AS cor0
----
-27
-2814
-7373

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4006
SELECT DISTINCT - col0 / + ( col2 * - col2 ) + col0 - col2 * + col1 col1 FROM tab0 AS cor0
----
-27
-2814
-7373

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 60 col0 FROM tab0, tab1 AS cor0
----
9 values hashing to a97561e17ecaa618227c75a57b268f33

query I rowsort
SELECT ALL + 70 * + 17 FROM tab2, tab2 AS cor0
----
9 values hashing to 08fa07fed055c156e813d5e2e0eb1103

query I rowsort
SELECT + ( cor0.col1 ) * - cor0.col2 FROM tab2 AS cor0
----
-1534
-646
-837

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 IN ( col0 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 26 col2 FROM tab0, tab2 AS cor0, tab0 cor1
----
27 values hashing to 4e49eac022daeae6f88f610644ba3754

query I rowsort
SELECT col1 * col2 + col1 * col2 FROM tab1
----
1140
2496
2808

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN col2 AND col2
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT BETWEEN NULL AND col2 * + col0 + + col2
----

query I rowsort
SELECT ALL + col2 FROM tab1 WHERE NOT col0 <= col1 + col1
----
57
96

query I rowsort
SELECT ALL 63 AS col0 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 38764a6e696d1a6b5095e29ef84959c0

query I rowsort
SELECT + + col0 + + cor0.col0 * + cor0.col2 * + col2 FROM tab0 AS cor0
----
26160
598525
70

query I rowsort
SELECT ALL - 50 AS col2 FROM tab1 cor0
----
-50
-50
-50

query I rowsort
SELECT ALL - cor0.col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0

query I rowsort
SELECT DISTINCT + cor1.col2 * 45 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
1485
3690
45

onlyif mysql # use DIV operator for integer division
query I rowsort label-4021
SELECT 17 DIV col1 + + col2 AS col2 FROM tab2
----
26
27
39

skipif mysql # not compatible
query I rowsort label-4021
SELECT 17 / col1 + + col2 AS col2 FROM tab2
----
26
27
39

query I rowsort
SELECT + ( tab2.col1 ) - col0 AS col2 FROM tab2
----
-19
-62
24

query I rowsort
SELECT - 20 * - col2 FROM tab2
----
520
540
760

query I rowsort
SELECT + col2 + - ( + col2 * - col0 ) FROM tab0
----
36
7380
825

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4025
SELECT - - col1 + CAST( NULL AS SIGNED ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4025
SELECT - - col1 + CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4026
SELECT DISTINCT + col0 DIV - ( - 23 ) FROM tab2
----
0
3

skipif mysql # not compatible
query I rowsort label-4026
SELECT DISTINCT + col0 / - ( - 23 ) FROM tab2
----
0
3

query I rowsort
SELECT - col1 + + col0 * - col1 FROM tab0 AS cor0
----
-2150
-3492
-8190

query I rowsort
SELECT DISTINCT - - col1 + - col0 * col2 AS col2 FROM tab0 AS cor0
----
-706
-7207
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + 54 * - 41 * col2 col0 FROM tab2 AS cor0
----
-57623
-59809
-84149

onlyif mysql # use DIV operator for integer division
query I rowsort label-4030
SELECT DISTINCT col2 - - 53 DIV col1 FROM tab2
----
26
28
41

skipif mysql # not compatible
query I rowsort label-4030
SELECT DISTINCT col2 - - 53 / col1 FROM tab2
----
26
28
41

query I rowsort
SELECT ALL - ( + col2 ) - - col0 * 58 * col1 AS col2 FROM tab1
----
37063
4470
60224

query I rowsort
SELECT - 89 * - tab2.col1 + col1 AS col1 FROM tab2
----
1530
2790
5310

query I rowsort
SELECT ( - col1 ) * col0 * - 3 AS col1 FROM tab2
----
13806
4029
651

query I rowsort
SELECT + col1 * + 96 FROM tab2
----
1632
2976
5664

query I rowsort
SELECT + ( cor0.col1 ) + + col1 AS col1 FROM tab0 cor0
----
172
182
194

query I rowsort
SELECT 93 + + col1 FROM tab1 AS cor0
----
103
106
119

query I rowsort
SELECT - + 41 + + cor0.col1 * col1 * col2 FROM tab2 AS cor0
----
10941
25906
90465

query I rowsort
SELECT col1 + - cor0.col0 AS col1 FROM tab2 cor0
----
-19
-62
24

query I rowsort
SELECT - 42 * cor0.col0 + 65 * - cor0.col2 FROM tab2 AS cor0
----
-2049
-4966
-5788

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4040
SELECT ( + 22 + col0 ) * CAST( NULL AS DECIMAL ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4040
SELECT ( + 22 + col0 ) * CAST ( NULL AS REAL ) AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 * - 47 * col0 FROM tab2
----
2303
285948
293327

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4042
SELECT DISTINCT - CAST( + tab2.col0 AS SIGNED ) FROM tab2
----
-7
-78
-79

skipif mysql # not compatible
query I rowsort label-4042
SELECT DISTINCT - CAST ( + tab2.col0 AS INTEGER ) FROM tab2
----
-7
-78
-79

query I rowsort
SELECT - + 10 + - col1 FROM tab1 AS cor0
----
-20
-23
-36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + col2 * 13 + + 4 col2 FROM tab1 AS cor0
----
1332
709
809

query I rowsort
SELECT ALL + + 10 + + col2 AS col2 FROM tab1 AS cor0
----
106
64
67

query I rowsort
SELECT col0 + - col0 * 83 FROM tab2 AS cor0
----
-574
-6396
-6478

query I rowsort
SELECT DISTINCT col0 * - col2 + col1 AS col0 FROM tab0 AS cor0
----
-706
-7207
62

query I rowsort
SELECT ALL + - col2 + col2 * col1 AS col2 FROM tab0 AS cor0
----
2805
7380
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 84 col1 FROM tab2
----
84
84
84

onlyif mysql # use DIV operator for integer division
query I rowsort label-4050
SELECT 70 + col0 DIV col0 AS col2 FROM tab1
----
71
71
71

skipif mysql # not compatible
query I rowsort label-4050
SELECT 70 + col0 / col0 AS col2 FROM tab1
----
71
71
71

query I rowsort
SELECT DISTINCT + 24 * col0 + - col0 AS col0 FROM tab2
----
161
1794
1817

query I rowsort
SELECT DISTINCT - - col0 * + col2 + col2 FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT ALL - tab1.col2 * - col1 * col0 AS col2 FROM tab1
----
36480
4212
99840

query I rowsort
SELECT ALL col1 * tab2.col0 * + col2 AS col0 FROM tab2
----
119652
51034
5859

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( - col0 ) AND NOT NULL BETWEEN - col1 * - col1 + + col0 * - col2 AND NULL
----

query I rowsort
SELECT col0 * col2 + col1 AS col1 FROM tab1
----
188
3658
7693

query I rowsort
SELECT DISTINCT - col2 * - col1 * - col2 FROM tab0 AS cor0
----
-611884
-93654
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-4058
SELECT col2 + + tab1.col2 DIV + col2 AS col1 FROM tab1
----
55
58
97

skipif mysql # not compatible
query I rowsort label-4058
SELECT col2 + + tab1.col2 / + col2 AS col1 FROM tab1
----
55
58
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-4059
SELECT col1 DIV col0 + - col1 FROM tab0
----
-83
-90
-95

skipif mysql # not compatible
query I rowsort label-4059
SELECT col1 / col0 + - col1 FROM tab0
----
-83
-90
-95

onlyif mysql # use DIV operator for integer division
query I rowsort label-4060
SELECT col1 + - tab1.col1 DIV + col2 FROM tab1
----
10
13
26

skipif mysql # not compatible
query I rowsort label-4060
SELECT col1 + - tab1.col1 / + col2 FROM tab1
----
10
13
26

query I rowsort
SELECT DISTINCT - 86 * + col0 AS col1 FROM tab2
----
-602
-6708
-6794

onlyif mysql # use DIV operator for integer division
query I rowsort label-4062
SELECT col2 DIV 81 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4062
SELECT col2 / 81 FROM tab0
----
0
0
1

query I rowsort
SELECT DISTINCT - ( 71 ) AS col2 FROM tab1
----
-71

query I rowsort
SELECT + col0 * + col2 + tab0.col2 FROM tab0
----
36
7380
825

query I rowsort
SELECT 43 + - 23 - col0 FROM tab2
----
-58
-59
13

query I rowsort
SELECT ALL + - 54 * col0 * - col1 AS col2 FROM tab0 AS cor0
----
111456
183330
437346

onlyif mysql # use DIV operator for integer division
query I rowsort label-4067
SELECT DISTINCT - ( col1 ) DIV col1 AS col1 FROM tab1 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4067
SELECT DISTINCT - ( col1 ) / col1 AS col1 FROM tab1 cor0
----
-1

query I rowsort
SELECT ALL - col1 * - cor0.col2 + col2 FROM tab2 AS cor0
----
1560
684
864

query I rowsort
SELECT + col0 * - col0 * col0 + + col0 FROM tab0 AS cor0
----
-13800
-42840
-704880

query I rowsort
SELECT DISTINCT - ( + col0 ) + - col0 AS col2 FROM tab0 cor0
----
-178
-48
-70

onlyif mysql # use DIV operator for integer division
query I rowsort label-4071
SELECT col2 + + col2 * col1 DIV + col1 col0 FROM tab2 cor0
----
52
54
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4071
SELECT col2 + + col2 * col1 / + col1 col0 FROM tab2 cor0
----
52
54
76

onlyif mysql # use DIV operator for integer division
query I rowsort label-4072
SELECT ALL col0 * + 10 + col2 * col1 DIV col1 AS col2 FROM tab2
----
806
828
97

skipif mysql # not compatible
query I rowsort label-4072
SELECT ALL col0 * + 10 + col2 * col1 / col1 AS col2 FROM tab2
----
806
828
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-4073
SELECT col1 DIV 68 + col0 AS col2 FROM tab2
----
7
78
79

skipif mysql # not compatible
query I rowsort label-4073
SELECT col1 / 68 + col0 AS col2 FROM tab2
----
7
78
79

query I rowsort
SELECT DISTINCT ( - col2 * + col0 ) - tab0.col0 * + col0 AS col1 FROM tab0
----
-1260
-1368
-15219

query I rowsort
SELECT DISTINCT - 95 * + col2 + - col2 - col0 * + col0 FROM tab2
----
-2641
-8580
-9889

onlyif mysql # use DIV operator for integer division
query I rowsort label-4076
SELECT DISTINCT col1 DIV col0 - col2 AS col1 FROM tab1
----
-46
-57
-96

skipif mysql # not compatible
query I rowsort label-4076
SELECT DISTINCT col1 / col0 - col2 AS col1 FROM tab1
----
-46
-57
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-4077
SELECT col2 + col1 + + col2 DIV col0 FROM tab0
----
120
173
98

skipif mysql # not compatible
query I rowsort label-4077
SELECT col2 + col1 + + col2 / col0 FROM tab0
----
120
173
98

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( ( NULL ) NOT IN ( col0 * + col0 - - col1 ) ) AND NOT col2 IN ( - col1 * - col1 * + tab0.col1 )
----

query I rowsort
SELECT ALL 43 + col1 AS col0 FROM tab0
----
129
134
140

query I rowsort
SELECT + col1 + - col1 * tab1.col1 FROM tab1
----
-156
-650
-90

onlyif mysql # use DIV operator for integer division
query I rowsort label-4081
SELECT DISTINCT cor0.col2 DIV + cor0.col2 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
1

skipif mysql # not compatible
query I rowsort label-4081
SELECT DISTINCT cor0.col2 / + cor0.col2 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-4082
SELECT ALL - + ( col1 ) DIV col0 FROM tab2 cor0
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-4082
SELECT ALL - + ( col1 ) / col0 FROM tab2 cor0
----
-4
0
0

query I rowsort
SELECT - 59 * col2 FROM tab0 AS cor0
----
-1947
-4838
-59

query I rowsort
SELECT + + 14 * col1 + + cor0.col2 FROM tab2 AS cor0
----
276
461
852

query I rowsort
SELECT DISTINCT 54 + - col0 FROM tab1 AS cor0
----
-10
-26
51

onlyif mysql # use DIV operator for integer division
query I rowsort label-4086
SELECT ALL + - 86 DIV col1 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4086
SELECT ALL + - 86 / col1 FROM tab0 AS cor0
----
-1
0
0

query I rowsort
SELECT + - 75 AS col0 FROM tab0 AS cor0
----
-75
-75
-75

query I rowsort
SELECT DISTINCT + 95 + - col1 * col0 AS col2 FROM tab0 AS cor0
----
-1969
-3300
-8004

query I rowsort
SELECT DISTINCT col1 + col1 FROM tab1 WHERE NOT NULL NOT IN ( - col2 )
----

query I rowsort
SELECT DISTINCT + tab1.col2 * - col0 * + col1 AS col0 FROM tab1
----
-36480
-4212
-99840

query I rowsort
SELECT ALL - tab2.col0 * col1 AS col1 FROM tab2
----
-1343
-217
-4602

query III rowsort
SELECT * FROM tab2 WHERE col0 * col0 * - col0 <= NULL
----

query I rowsort
SELECT ALL col1 + - col1 * col0 AS col2 FROM tab2
----
-1326
-186
-4543

query I rowsort
SELECT tab0.col0 * col1 * col0 + - tab0.col0 * + col1 + col1 FROM tab0
----
115527
47558
712803

query I rowsort
SELECT DISTINCT - col1 * col0 + col1 FROM tab1
----
-1027
-52
-630

query I rowsort
SELECT + col2 + col2 FROM tab0 WHERE NULL IN ( col2 )
----

query I rowsort
SELECT ALL cor0.col2 + col1 + + cor0.col1 AS col2 FROM tab2 AS cor0
----
144
72
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-4098
SELECT DISTINCT - col1 * - col2 + col0 DIV col2 FROM tab1 cor0
----
1248
1404
571

skipif mysql # not compatible
query I rowsort label-4098
SELECT DISTINCT - col1 * - col2 + col0 / col2 FROM tab1 cor0
----
1248
1404
571

query I rowsort
SELECT col1 + col1 * - col1 AS col2 FROM tab2 cor0
----
-272
-3422
-930

query I rowsort
SELECT DISTINCT col1 + - col0 * + tab2.col2 FROM tab2
----
-158
-1969
-2985

onlyif mysql # use DIV operator for integer division
query I rowsort label-4101
SELECT + col1 DIV col1 + col2 * col0 AS col0 FROM tab0
----
36
7299
793

skipif mysql # not compatible
query I rowsort label-4101
SELECT + col1 / col1 + col2 * col0 AS col0 FROM tab0
----
36
7299
793

query I rowsort
SELECT + col2 * - col0 * col0 + col0 * - col2 AS col2 FROM tab0 WHERE ( tab0.col2 ) BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT col1 * col1 + + col2 * - tab1.col0 AS col1 FROM tab1
----
-3548
-7511
514

query I rowsort
SELECT - col0 FROM tab2 WHERE NOT col1 + col0 > col0
----

query I rowsort
SELECT col1 * tab0.col0 + col2 AS col1 FROM tab0
----
2097
3396
8181

query I rowsort
SELECT ALL + col2 + + col2 * + tab2.col1 AS col0 FROM tab2
----
1560
684
864

query I rowsort
SELECT col0 * col1 + col2 * tab1.col1 AS col1 FROM tab1
----
1210
1482
2288

query I rowsort
SELECT ALL - tab0.col1 + col2 * col0 * + col0 + col0 AS col1 FROM tab0
----
1163
18946
649520

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + tab1.col2 * col1 col1 FROM tab1
----
1328
1407
634

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * - col0 - + col1 col2 FROM tab2 WHERE NULL NOT IN ( col2 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NULL ) IN ( col2 * col2 * col1 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-4112
SELECT DISTINCT + col1 + + col2 DIV col0 + - col1 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-4112
SELECT DISTINCT + col1 + + col2 / col0 + - col1 FROM tab0
----
0
1

query I rowsort
SELECT ALL col0 + col2 + - col2 * + col2 AS col1 FROM tab2
----
-1327
-572
-695

query I rowsort
SELECT - col2 * - col0 * - col0 FROM tab0
----
-1225
-19008
-649522

query I rowsort
SELECT DISTINCT - - col0 * - col0 * col2 + + col0 FROM tab1 AS cor0
----
-233408
-483
-614320

query I rowsort
SELECT DISTINCT - + col0 + col0 * col0 FROM tab2 cor0
----
42
6006
6162

query I rowsort
SELECT ALL + col0 + + cor0.col0 * - col0 AS col2 FROM tab0 AS cor0
----
-1190
-552
-7832

query I rowsort
SELECT ALL - col2 * cor0.col1 + + col0 * + col2 AS col2 FROM tab1 AS cor0
----
-1242
3078
6432

query I rowsort
SELECT DISTINCT + - col1 - - col0 AS col1 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT ALL col2 * + col0 * + col0 + - col2 AS col1 FROM tab2 AS cor0
----
1296
158158
237120

query I rowsort
SELECT ALL + - col0 * col1 + + col2 FROM tab1 cor0
----
-24
-583
-944

query I rowsort
SELECT + col0 - col2 * + cor0.col2 FROM tab1 AS cor0
----
-2913
-3185
-9136

query I rowsort
SELECT DISTINCT col1 * col2 + + col2 * - col2 AS col1 FROM tab2 AS cor0
----
-798
108
858

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL <> ( cor0.col0 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-4125
SELECT DISTINCT col2 + col2 DIV + col2 + col1 AS col2 FROM tab1 AS cor0
----
110
68
81

skipif mysql # not compatible
query I rowsort label-4125
SELECT DISTINCT col2 + col2 / + col2 + col1 AS col2 FROM tab1 AS cor0
----
110
68
81

query I rowsort
SELECT col2 * + cor0.col2 + cor0.col0 AS col2 FROM tab0 AS cor0
----
1113
36
6813

query I rowsort
SELECT col1 * col1 AS col0 FROM tab0 WHERE NOT ( NULL ) = NULL
----

query I rowsort
SELECT ALL + col2 - - col1 * col0 AS col2 FROM tab2
----
1381
244
4628

query I rowsort
SELECT ALL + 39 * - 80 AS col0 FROM tab1 AS cor0
----
-3120
-3120
-3120

query I rowsort
SELECT 2 + cor0.col1 AS col0 FROM tab0 AS cor0
----
88
93
99

query I rowsort
SELECT ALL - col1 * - col0 + - 77 + - cor0.col0 FROM tab0 cor0
----
1963
3283
7933

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4132
SELECT - col1 * tab0.col0 + col1 * CAST( NULL AS SIGNED ) * col2 col2 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4132
SELECT - col1 * tab0.col0 + col1 * CAST ( NULL AS INTEGER ) * col2 col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - - col0 + + col1 * - col1 AS col2 FROM tab0 AS cor0
----
-7372
-8192
-9374

query I rowsort
SELECT col2 * - tab2.col2 + + col2 AS col1 FROM tab2
----
-1406
-650
-702

query I rowsort
SELECT DISTINCT - col0 * col1 + col1 AS col0 FROM tab1
----
-1027
-52
-630

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4136
SELECT + col1 + CAST( col2 AS SIGNED ) * - col1 FROM tab1 AS cor0
----
-1235
-1378
-560

skipif mysql # not compatible
query I rowsort label-4136
SELECT + col1 + CAST ( col2 AS INTEGER ) * - col1 FROM tab1 AS cor0
----
-1235
-1378
-560

query I rowsort
SELECT ALL + tab2.col2 + + cor0.col2 FROM tab2, tab1, tab2 cor0
----
27 values hashing to 135e61500eadea964d6ea6ab73b38c8f

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab0.col2 col1 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col1 * 99 col2 FROM tab0
----
8600
9100
9700

query I rowsort
SELECT col2 * - col1 + col0 + + cor0.col0 FROM tab1 AS cor0
----
-1088
-1398
-442

query I rowsort
SELECT ALL - - 1 AS col2 FROM tab2 cor0
----
1
1
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4142
SELECT ALL + + CAST( + col1 AS SIGNED ) * col0 FROM tab0 AS cor0
----
2064
3395
8099

skipif mysql # not compatible
query I rowsort label-4142
SELECT ALL + + CAST ( + col1 AS INTEGER ) * col0 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT + col2 * + ( + col0 ) + + 2 + + 90 FROM tab0 AS cor0
----
127
7390
884

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + ( col2 ) * + 47 * col2 col2 FROM tab2 AS cor0
----
31798
34290
67906

onlyif mysql # use DIV operator for integer division
query I rowsort label-4145
SELECT ALL - col0 + - 14 DIV - col1 FROM tab0 AS cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-4145
SELECT ALL - col0 + - 14 / - col1 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT - ( 59 ) + - col0 * 91 FROM tab0 AS cor0
----
-2243
-3244
-8158

query I rowsort
SELECT ALL 12 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to d4f5a8e032294c3b9342821617800972

query I rowsort
SELECT ALL + tab2.col1 * - 10 FROM tab2
----
-170
-310
-590

query I rowsort
SELECT DISTINCT + 49 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
49

query I rowsort
SELECT ALL - col1 * ( col0 ) AS col2 FROM tab0
----
-2064
-3395
-8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + col1 ) * col2 + col2 col0 FROM tab0
----
-2805
-7380
-96

query I rowsort
SELECT + ( col0 ) * + col0 * + col1 - tab2.col2 FROM tab2
----
106059
1492
358930

query I rowsort
SELECT + cor0.col0 FROM tab1, tab0 AS cor0, tab2 cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT col0 - + col2 * - col2 FROM tab2
----
1523
736
754

query I rowsort
SELECT - cor0.col1 * - col1 * + col2 + - cor0.col1 + col0 FROM tab0 AS cor0
----
244006
679040
9347

query I rowsort
SELECT + col2 * - col1 * - 66 - col0 FROM tab1 cor0
----
37556
82288
92661

query I rowsort
SELECT col0 + 90 * - col2 FROM tab2 AS cor0
----
-2262
-2423
-3341

query I rowsort
SELECT - col2 * 25 AS col0 FROM tab2
----
-650
-675
-950

query I rowsort
SELECT DISTINCT col0 * - col2 - col1 FROM tab1
----
-188
-3658
-7693

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4160
SELECT + col1 - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4160
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-4161
SELECT col0 * CAST( cor0.col2 AS SIGNED ) * col0 FROM tab0 cor0
----
1225
19008
649522

skipif mysql # not compatible
query I rowsort label-4161
SELECT col0 * CAST ( cor0.col2 AS INTEGER ) * col0 FROM tab0 cor0
----
1225
19008
649522

query I rowsort
SELECT - col0 - 64 FROM tab2 cor0
----
-142
-143
-71

query I rowsort
SELECT ALL col2 + + 70 AS col2 FROM tab2 AS cor0
----
108
96
97

query I rowsort
SELECT DISTINCT + col1 * + 46 + cor0.col1 FROM tab2 AS cor0
----
1457
2773
799

query I rowsort
SELECT col0 + ( + 6 ) + col0 FROM tab2 AS cor0
----
162
164
20

query I rowsort
SELECT cor0.col1 * col0 AS col0 FROM tab0 cor0
----
2064
3395
8099

query I rowsort
SELECT - - col2 - col0 AS col0 FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT + - col2 * cor0.col1 * col0 AS col1 FROM tab0 AS cor0
----
-3395
-664118
-68112

query I rowsort
SELECT DISTINCT - 86 AS col2 FROM tab1 AS cor0
----
-86

query I rowsort
SELECT ALL + col0 * col1 + + cor0.col2 AS col0 FROM tab0 AS cor0
----
2097
3396
8181

query I rowsort
SELECT + col2 * - col2 * + col0 + - col1 FROM tab0 AS cor0
----
-132
-26222
-598527

query I rowsort
SELECT ALL col1 + + col0 * - 43 FROM tab1 AS cor0
----
-103
-2742
-3427

query I rowsort
SELECT 96 * + col2 FROM tab1 AS cor0
----
5184
5472
9216

query I rowsort
SELECT ALL + col1 * col1 + col2 * + 20 AS col1 FROM tab0 AS cor0
----
8056
9429
9921

query I rowsort
SELECT DISTINCT - - ( + col0 ) * col2 * col1 AS col0 FROM tab2 cor0
----
119652
51034
5859

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4176
SELECT ALL col0 / col0 + + CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4176
SELECT ALL col0 / col0 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 92 + - col0 FROM tab1
----
12
28
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-4178
SELECT ALL col1 + col1 DIV 36 FROM tab0 AS cor0
----
88
93
99

skipif mysql # not compatible
query I rowsort label-4178
SELECT ALL col1 + col1 / 36 FROM tab0 AS cor0
----
88
93
99

query I rowsort
SELECT ALL + ( + col0 ) - col0 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - ( - col2 ) * 44 AS col0 FROM tab0 AS cor0
----
1452
3608
44

query I rowsort
SELECT + col2 + col0 * - 78 AS col1 FROM tab0 AS cor0
----
-1839
-2729
-6860

query I rowsort
SELECT DISTINCT - - col0 - col0 FROM tab2 AS cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4183
SELECT DISTINCT cor0.col0 DIV - col1 - ( cor0.col0 ) FROM tab2 cor0
----
-7
-79
-83

skipif mysql # not compatible
query I rowsort label-4183
SELECT DISTINCT cor0.col0 / - col1 - ( cor0.col0 ) FROM tab2 cor0
----
-7
-79
-83

query I rowsort
SELECT + cor0.col1 - - col2 * col0 AS col2 FROM tab1 AS cor0
----
188
3658
7693

query I rowsort
SELECT - + cor0.col1 + cor0.col0 AS col0 FROM tab0 cor0
----
-2
-62
-62

onlyif mysql # use DIV operator for integer division
query I rowsort label-4186
SELECT - + col1 + 3 DIV - col0 FROM tab1 cor0
----
-10
-13
-27

skipif mysql # not compatible
query I rowsort label-4186
SELECT - + col1 + 3 / - col0 FROM tab1 cor0
----
-10
-13
-27

query I rowsort
SELECT ALL + col0 + ( - col0 * col2 ) FROM tab0 AS cor0
----
-7209
-768
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4188
SELECT DISTINCT - - col2 + 25 DIV - col1 FROM tab0 cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-4188
SELECT DISTINCT - - col2 + 25 / - col1 FROM tab0 cor0
----
1
33
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 + ( col0 ) col2 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT DISTINCT + col0 + col0 * - cor0.col2 AS col2 FROM tab1 AS cor0
----
-159
-3584
-7600

query I rowsort
SELECT ALL col2 + col2 + col0 AS col1 FROM tab1 cor0
----
111
178
272

query I rowsort
SELECT DISTINCT + + col0 * - col1 - 81 FROM tab1 AS cor0
----
-1121
-159
-721

query I rowsort
SELECT ALL + - col2 + ( - col0 ) AS col1 FROM tab2 AS cor0
----
-104
-117
-34

query I rowsort
SELECT DISTINCT - + col0 - ( - col2 ) FROM tab0 AS cor0
----
-34
-7
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-4195
SELECT ALL + col2 + col1 DIV col0 FROM tab2
----
26
31
38

skipif mysql # not compatible
query I rowsort label-4195
SELECT ALL + col2 + col1 / col0 FROM tab2
----
26
31
38

skipif mysql # not compatible
query I rowsort
SELECT ALL col1 * col0 + + CAST ( - col0 AS REAL ) * tab1.col1 * - tab1.col2 FROM tab1
----
100880
37120
4290

query I rowsort
SELECT + ( 46 ) AS col1 FROM tab0 AS cor0
----
46
46
46

query I rowsort
SELECT ALL + ( + col1 ) * col1 - col2 * - col2 FROM tab2 cor0
----
1690
1733
4157

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 31 + 16 col1 FROM tab1 AS cor0
----
47
47
47

query I rowsort
SELECT ALL - - col2 * - cor0.col0 + + col1 FROM tab2 AS cor0
----
-158
-1969
-2985

query I rowsort
SELECT - ( - 18 ) + col0 FROM tab0 AS cor0
----
107
42
53

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4202
SELECT + - CAST( NULL AS SIGNED ) * - ( - col1 ) - col2 * ( col1 ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4202
SELECT + - CAST ( NULL AS INTEGER ) * - ( - col1 ) - col2 * ( col1 ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * col0 col2 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT - 52 * + 62 AS col1 FROM tab0 cor0
----
-3224
-3224
-3224

query I rowsort
SELECT ALL tab0.col0 * 32 * col0 FROM tab0
----
18432
253472
39200

query I rowsort
SELECT - - ( + col2 ) * col0 * + col1 FROM tab1 AS cor0
----
36480
4212
99840

query I rowsort
SELECT ALL + - col2 * 18 AS col2 FROM tab0 AS cor0
----
-1476
-18
-594

query I rowsort
SELECT col1 + + col0 + + col0 AS col1 FROM tab0
----
134
167
269

query I rowsort
SELECT + 61 + col1 * + col2 * 15 AS col0 FROM tab0 AS cor0
----
111991
1516
42631

query I rowsort
SELECT - + cor0.col1 + ( col0 * col1 ) AS col1 FROM tab1 AS cor0
----
1027
52
630

query I rowsort
SELECT + col0 * + col2 + - cor0.col1 FROM tab0 AS cor0
----
-62
706
7207

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 32 * col2 col1 FROM tab0 AS cor0
----
-1056
-2624
-32

query I rowsort
SELECT DISTINCT 47 - + tab1.col0 * - col0 FROM tab1
----
4143
56
6447

query I rowsort
SELECT ALL 8 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57

onlyif mysql # use DIV operator for integer division
query I rowsort label-4215
SELECT col0 * col0 + tab2.col0 + col2 DIV col1 AS col2 FROM tab2
----
56
6162
6322

skipif mysql # not compatible
query I rowsort label-4215
SELECT col0 * col0 + tab2.col0 + col2 / col1 AS col2 FROM tab2
----
56
6162
6322

onlyif mysql # use DIV operator for integer division
query I rowsort label-4216
SELECT DISTINCT col1 DIV - col1 - col1 AS col2 FROM tab2
----
-18
-32
-60

skipif mysql # not compatible
query I rowsort label-4216
SELECT DISTINCT col1 / - col1 - col1 AS col2 FROM tab2
----
-18
-32
-60

query I rowsort
SELECT col2 + cor0.col1 * ( - col2 ) AS col1 FROM tab2 cor0
----
-1508
-608
-810

query I rowsort
SELECT + 50 + col2 AS col2 FROM tab0 cor0
----
132
51
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-4219
SELECT DISTINCT 85 DIV + 94 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4219
SELECT DISTINCT 85 / + 94 FROM tab1
----
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4220
SELECT ALL CAST( 38 AS SIGNED ) AS col1 FROM tab2
----
38
38
38

skipif mysql # not compatible
query I rowsort label-4220
SELECT ALL CAST ( 38 AS INTEGER ) AS col1 FROM tab2
----
38
38
38

query I rowsort
SELECT - 25 FROM tab2, tab2 AS cor0
----
9 values hashing to 40ac8fd000b2e49317aed2411077839e

query I rowsort
SELECT DISTINCT 39 + + 22 * cor0.col0 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
1997
567
809

query I rowsort
SELECT ( + col2 ) * - cor0.col1 + + 76 FROM tab0 AS cor0
----
-21
-2762
-7386

query I rowsort
SELECT - + 28 * col2 + col0 AS col1 FROM tab2 AS cor0
----
-650
-749
-985

query I rowsort
SELECT ALL + - col2 * + col0 AS col0 FROM tab0 AS cor0
----
-35
-7298
-792

onlyif mysql # use DIV operator for integer division
query I rowsort label-4226
SELECT DISTINCT - col2 * + cor0.col2 DIV col2 FROM tab1 AS cor0
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-4226
SELECT DISTINCT - col2 * + cor0.col2 / col2 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT - 6 * + col1 - cor0.col2 FROM tab0 cor0
----
-549
-583
-628

query I rowsort
SELECT ALL - col1 + + cor0.col1 * - cor0.col1 FROM tab0 AS cor0
----
-7482
-8372
-9506

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4229
SELECT DISTINCT col0 + + col0 * + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4229
SELECT DISTINCT col0 + + col0 * + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 76 col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5

query I rowsort
SELECT DISTINCT - + col1 * - col2 + col0 * cor0.col1 FROM tab1 AS cor0
----
1210
1482
2288

query I rowsort
SELECT ALL + - col2 + ( - col2 ) AS col1 FROM tab1 cor0
----
-108
-114
-192

query I rowsort
SELECT DISTINCT - col2 * 91 + col2 FROM tab1 AS cor0
----
-4860
-5130
-8640

query I rowsort
SELECT ALL col2 - - col2 * col1 * col2 FROM tab2 AS cor0
----
22626
24586
39910

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 + - col0 * - col2 col0 FROM tab2 AS cor0
----
182
1950
2923

query I rowsort
SELECT ALL - cor0.col2 * col2 + col0 FROM tab1 cor0
----
-2913
-3185
-9136

onlyif mysql # use DIV operator for integer division
query I rowsort label-4237
SELECT ALL - + cor0.col0 + + col0 DIV + col0 FROM tab1 AS cor0
----
-2
-63
-79

skipif mysql # not compatible
query I rowsort label-4237
SELECT ALL - + cor0.col0 + + col0 / + col0 FROM tab1 AS cor0
----
-2
-63
-79

query I rowsort
SELECT DISTINCT + col0 * + 93 * - 76 + cor0.col1 AS col2 FROM tab2 AS cor0
----
-49445
-551245
-558355

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4239
SELECT DISTINCT + CAST( - 22 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-22

skipif mysql # not compatible
query I rowsort label-4239
SELECT DISTINCT + CAST ( - 22 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-22

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4240
SELECT + + CAST( - 86 AS SIGNED ) FROM tab2 AS cor0
----
-86
-86
-86

skipif mysql # not compatible
query I rowsort label-4240
SELECT + + CAST ( - 86 AS INTEGER ) FROM tab2 AS cor0
----
-86
-86
-86

query I rowsort
SELECT ALL - 23 FROM tab0 cor0
----
-23
-23
-23

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4242
SELECT - CAST( ( col0 ) AS SIGNED ) * col0 FROM tab1 AS cor0
----
-4096
-6400
-9

skipif mysql # not compatible
query I rowsort label-4242
SELECT - CAST ( ( col0 ) AS INTEGER ) * col0 FROM tab1 AS cor0
----
-4096
-6400
-9

query I rowsort
SELECT ALL + col1 + 90 AS col2 FROM tab0 AS cor0
----
176
181
187

query I rowsort
SELECT ALL 89 * - col2 FROM tab0
----
-2937
-7298
-89

query I rowsort
SELECT DISTINCT cor0.col2 * + tab0.col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 6b6947fcb54b3e9529d0c75cfb5b2d32

query I rowsort
SELECT + 62 * col0 * 97 FROM tab0
----
144336
210490
535246

query I rowsort
SELECT + 15 * col1 FROM tab1
----
150
195
390

query I rowsort
SELECT - col2 + + 45 + 55 * col0 * col2 FROM tab0 AS cor0
----
1969
401353
43572

query I rowsort
SELECT - col0 + - 33 * 88 * + col0 FROM tab1 AS cor0
----
-185920
-232400
-8715

onlyif mysql # use DIV operator for integer division
query I rowsort label-4250
SELECT - cor0.col0 * - col1 DIV - ( col1 * 98 ) AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4250
SELECT - cor0.col0 * - col1 / - ( col1 * 98 ) AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + col2 * col0 * 25 FROM tab0 AS cor0
----
182450
19800
875

query I rowsort
SELECT ALL - tab0.col2 * + col2 * - col0 FROM tab0
----
26136
35
598436

query I rowsort
SELECT ALL + 20 FROM tab2, tab1 cor0, tab0, tab0 AS cor1
----
81 values hashing to 8550664862df5be7a3d3f6037537d2d8

query I rowsort
SELECT 26 AS col2 FROM tab2 cor0
----
26
26
26

query I rowsort
SELECT - - ( - 27 ) FROM tab1 AS cor0
----
-27
-27
-27

query I rowsort
SELECT ALL - col1 * ( + col2 * - tab2.col1 + - col2 ) AS col0 FROM tab2
----
11628
26784
92040

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 + col0 col1 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT cor0.col1 + - col0 + + col1 AS col2 FROM tab0 AS cor0
----
148
159
93

query I rowsort
SELECT - col1 * - col1 + 53 * + col2 FROM tab0 AS cor0
----
12627
9145
9462

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4260
SELECT + col2 * col0 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4260
SELECT + col2 * col0 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 * + tab1.col0 + - tab1.col1 AS col1 FROM tab1
----
-17
4086
6387

query I rowsort
SELECT - 67 + + col2 AS col1 FROM tab1 AS cor0
----
-10
-13
29

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4263
SELECT - - 62 * - col0 + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4263
SELECT - - 62 * - col0 + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col2 + col2 * - 2 AS col2 FROM tab2 AS cor0
----
-114
-78
-81

query I rowsort
SELECT ALL - col0 + col0 * - col0 + col1 FROM tab0 AS cor0
----
-1163
-514
-7919

skipif mysql # not compatible
query I rowsort
SELECT ALL - + col2 + col1 * CAST ( + col1 AS REAL ) AS col0 FROM tab1 AS cor0
----
43
622
73

query I rowsort
SELECT - - 82 + col0 FROM tab0 AS cor0
----
106
117
171

query I rowsort
SELECT + + cor0.col1 * col0 + + col0 FROM tab2 cor0
----
1422
224
4680

query I rowsort
SELECT DISTINCT col2 * - col2 - 98 AS col1 FROM tab2 AS cor0
----
-1542
-774
-827

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * col0 + ( 39 * col2 ) col2 FROM tab0 AS cor0
----
-1186
-4723
711

query I rowsort
SELECT col2 + + col1 * 64 * col0 AS col2 FROM tab0 AS cor0
----
132129
217281
518418

query I rowsort
SELECT ALL col2 * + col1 + 26 FROM tab2 AS cor0
----
1560
672
863

onlyif mysql # use DIV operator for integer division
query I rowsort label-4273
SELECT col0 DIV - col2 - - cor0.col1 FROM tab1 AS cor0
----
13
26
9

skipif mysql # not compatible
query I rowsort label-4273
SELECT col0 / - col2 - - cor0.col1 FROM tab1 AS cor0
----
13
26
9

query I rowsort
SELECT DISTINCT col2 + col1 + + cor0.col1 AS col2 FROM tab1 cor0
----
106
122
77

query I rowsort
SELECT ALL col0 + cor0.col2 * col1 * + col1 AS col2 FROM tab0 cor0
----
244092
679131
9444

query I rowsort
SELECT ALL + ( + col1 ) - 87 AS col1 FROM tab2 AS cor0
----
-28
-56
-70

query I rowsort
SELECT ALL - - col1 - col2 * + col0 AS col2 FROM tab1 AS cor0
----
-136
-3638
-7667

query I rowsort
SELECT DISTINCT + + col1 * + 69 FROM tab2 AS cor0
----
1173
2139
4071

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 * + ( - 35 * - col2 ) + ( - 23 * col2 ) col0 FROM tab2 AS cor0
----
23062
24894
49666

query I rowsort
SELECT + col1 * - 68 + - ( col1 + - ( - 26 ) ) * cor0.col1 FROM tab1 AS cor0
----
-1040
-1391
-3120

query I rowsort
SELECT ALL - 26 - + tab2.col1 FROM tab2
----
-43
-57
-85

query I rowsort
SELECT 51 FROM tab1, tab2 AS cor0, tab0 AS cor1, tab1 AS cor2
----
81 values hashing to c9771396949659773ab2fa2a1ac228de

query I rowsort
SELECT ALL + 90 * col0 FROM tab2 AS cor0
----
630
7020
7110

query I rowsort
SELECT - 57 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 520dc393896969e02a72ab6c5d92126b

query I rowsort
SELECT col1 + - col2 * col0 AS col0 FROM tab0 AS cor0
----
-706
-7207
62

query I rowsort
SELECT + cor0.col0 - + col1 FROM tab0 cor0
----
-2
-62
-62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4287
SELECT DISTINCT - col0 + - cor0.col1 + - CAST( + 26 AS SIGNED ) FROM tab1 AS cor0
----
-100
-119
-55

skipif mysql # not compatible
query I rowsort label-4287
SELECT DISTINCT - col0 + - cor0.col1 + - CAST ( + 26 AS INTEGER ) FROM tab1 AS cor0
----
-100
-119
-55

query I rowsort
SELECT DISTINCT + - 13 - - col2 FROM tab1 AS cor0
----
41
44
83

query I rowsort
SELECT ALL + ( - col0 ) * - col0 FROM tab1
----
4096
6400
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-4290
SELECT col0 DIV + 6 - col1 col1 FROM tab2
----
-30
-4
-46

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4290
SELECT col0 / + 6 - col1 col1 FROM tab2
----
-30
-4
-46

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4291
SELECT - CAST( col0 AS SIGNED ) + + col2 FROM tab1
----
-7
16
51

skipif mysql # not compatible
query I rowsort label-4291
SELECT - CAST ( col0 AS INTEGER ) + + col2 FROM tab1
----
-7
16
51

query I rowsort
SELECT DISTINCT + col0 + - cor0.col2 + + col2 * col1 FROM tab2 AS cor0
----
1586
687
817

query I rowsort
SELECT ALL - col2 * col0 + col0 AS col2 FROM tab0 AS cor0
----
-7209
-768
0

query I rowsort
SELECT + cor0.col2 * cor0.col2 * + 29 FROM tab1 cor0
----
267264
84564
94221

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 * 39 * - 25 col0 FROM tab0 AS cor0
----
-83850
-88725
-94575

onlyif mysql # use DIV operator for integer division
query I rowsort label-4296
SELECT col1 DIV - 19 + col2 FROM tab1 AS cor0
----
53
57
96

skipif mysql # not compatible
query I rowsort label-4296
SELECT col1 / - 19 + col2 FROM tab1 AS cor0
----
53
57
96

query I rowsort
SELECT ALL cor0.col2 * col2 * cor0.col2 FROM tab0 AS cor0
----
1
35937
551368

query I rowsort
SELECT DISTINCT - cor0.col1 * - 10 + col0 AS col0 FROM tab1 AS cor0
----
164
210
263

query I rowsort
SELECT col0 * ( - tab0.col1 ) FROM tab0
----
-2064
-3395
-8099

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4300
SELECT CAST( NULL AS SIGNED ) * + tab1.col1 col2 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4300
SELECT CAST ( NULL AS INTEGER ) * + tab1.col1 col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + ( + cor0.col1 ) * col1 AS col1 FROM tab0 AS cor0
----
7396
8281
9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-4302
SELECT - 37 DIV - cor0.col2 - col2 col1 FROM tab1 cor0
----
-54
-57
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4302
SELECT - 37 / - cor0.col2 - col2 col1 FROM tab1 cor0
----
-54
-57
-96

query I rowsort
SELECT + 49 + + 62 FROM tab0 AS cor0
----
111
111
111

query I rowsort
SELECT + - col2 * - 15 - col1 * 98 AS col1 FROM tab1 cor0
----
-125
-1738
166

query I rowsort
SELECT ALL - - 96 + - col1 AS col2 FROM tab0 AS cor0
----
-1
10
5

query I rowsort
SELECT - col2 * - col0 - col2 AS col1 FROM tab0 cor0
----
34
7216
759

query I rowsort
SELECT DISTINCT - - col1 * col1 * + col2 AS col1 FROM tab0 AS cor0
----
244068
679042
9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + cor0.col1 * col1 col2 FROM tab1 cor0
----
100
169
676

query I rowsort
SELECT col0 * - 41 AS col2 FROM tab2 cor0
----
-287
-3198
-3239

query I rowsort
SELECT DISTINCT col2 + - 48 + col2 AS col0 FROM tab2 AS cor0
----
28
4
6

query I rowsort
SELECT + - cor0.col1 * - ( - cor0.col2 ) FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT - col2 + 26 AS col2 FROM tab2 AS cor0
----
-1
-12
0

query I rowsort
SELECT ALL - col0 * + col2 + + col2 + + col0 * - col2 AS col2 FROM tab0 AS cor0
----
-14514
-1551
-69

onlyif mysql # use DIV operator for integer division
query I rowsort label-4314
SELECT ALL cor0.col2 DIV ( - col0 * col1 + 25 ) FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4314
SELECT ALL cor0.col2 / ( - col0 * col1 + 25 ) FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col2 + - 5 AS col0 FROM tab0 cor0
----
-4
28
77

query I rowsort
SELECT + col0 + + col2 * - ( + tab2.col2 ) AS col0 FROM tab2
----
-1365
-598
-722

query I rowsort
SELECT ( + col2 ) + 33 FROM tab0
----
115
34
66

query I rowsort
SELECT ALL - col1 + + 94 * + col1 AS col1 FROM tab0 AS cor0
----
7998
8463
9021

query I rowsort
SELECT - + 59 FROM tab2 cor0
----
-59
-59
-59

query I rowsort
SELECT DISTINCT 58 FROM tab2, tab0 AS cor0
----
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - 1 col2 FROM tab0
----
-2
-34
-83

query I rowsort
SELECT tab1.col2 FROM tab1, tab2 cor0, tab2 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

onlyif mysql # use DIV operator for integer division
query I rowsort label-4323
SELECT + 3 * + col0 + + col2 DIV + col0 FROM tab0 AS cor0
----
105
267
73

skipif mysql # not compatible
query I rowsort label-4323
SELECT + 3 * + col0 + + col2 / + col0 FROM tab0 AS cor0
----
105
267
73

query I rowsort
SELECT ALL - 29 * - 26 + - col1 FROM tab2
----
695
723
737

query I rowsort
SELECT DISTINCT col1 * + col2 AS col2 FROM tab0 cor0
----
2838
7462
97

query I rowsort
SELECT + 77 + cor0.col2 * + col2 FROM tab1 AS cor0
----
2993
3326
9293

query I rowsort
SELECT 45 * + cor0.col1 AS col1 FROM tab2, tab0 cor0
----
9 values hashing to 251f303ab224b8b2300c62b3bb8b1f2d

query I rowsort
SELECT ALL col1 + col0 + tab1.col0 FROM tab1
----
138
173
32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 2 * - 39 + col1 col0 FROM tab1
----
-52
-65
-68

query I rowsort
SELECT ALL - 1 * + col2 FROM tab1 cor0
----
-54
-57
-96

query I rowsort
SELECT col1 * cor0.col1 + - ( col0 ) FROM tab1 AS cor0
----
36
673
89

query I rowsort
SELECT + 52 * - col1 FROM tab2 AS cor0
----
-1612
-3068
-884

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 1 * + col0 + cor0.col0 col2 FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT DISTINCT + 7 * col2 AS col0 FROM tab1 AS cor0
----
378
399
672

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4335
SELECT - CAST( + 28 AS SIGNED ) * col0 + cor0.col1 AS col2 FROM tab0 AS cor0
----
-2401
-586
-883

skipif mysql # not compatible
query I rowsort label-4335
SELECT - CAST ( + 28 AS INTEGER ) * col0 + cor0.col1 AS col2 FROM tab0 AS cor0
----
-2401
-586
-883

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4336
SELECT CAST( NULL AS SIGNED ) * col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4336
SELECT CAST ( NULL AS INTEGER ) * col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - ( - col1 ) * - col2 + 74 FROM tab0 AS cor0
----
-23
-2764
-7388

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4338
SELECT ALL - CAST( col2 AS SIGNED ) * + col0 + - col2 AS col2 FROM tab2 cor0
----
-2054
-216
-3040

skipif mysql # not compatible
query I rowsort label-4338
SELECT ALL - CAST ( col2 AS INTEGER ) * + col0 + - col2 AS col2 FROM tab2 cor0
----
-2054
-216
-3040

query I rowsort
SELECT ( ( - col1 ) ) * + col0 * + cor0.col0 FROM tab0 AS cor0
----
-118825
-49536
-720811

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4340
SELECT CAST( 88 AS SIGNED ) * col1 + ( + cor0.col2 ) - col1 * col1 FROM tab1 cor0
----
1071
1666
837

skipif mysql # not compatible
query I rowsort label-4340
SELECT CAST ( 88 AS INTEGER ) * col1 + ( + cor0.col2 ) - col1 * col1 FROM tab1 cor0
----
1071
1666
837

query I rowsort
SELECT DISTINCT + col1 * - 54 FROM tab2
----
-1674
-3186
-918

query I rowsort
SELECT col0 * 59 * col1 AS col1 FROM tab1 AS cor0
----
37760
4602
61360

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * col2 - col1 * 74 col1 FROM tab0 AS cor0
----
-3526
-7081
728

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + ( - col0 ) col2 FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT ( col1 + + tab1.col2 ) AS col0 FROM tab1
----
109
67
80

query I rowsort
SELECT - - 19 * 31 + col0 FROM tab0 AS cor0
----
613
624
678

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4347
SELECT - CAST( NULL AS SIGNED ) + + 9 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4347
SELECT - CAST ( NULL AS INTEGER ) + + 9 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col0 - tab2.col2 AS col2 FROM tab2
----
-20
41
52

query I rowsort
SELECT ALL - cor1.col1 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5

query I rowsort
SELECT + 84 + 10 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24

query I rowsort
SELECT DISTINCT - 86 * col2 FROM tab0
----
-2838
-7052
-86

query I rowsort
SELECT DISTINCT - + 31 FROM tab1, tab1 AS cor0, tab0 AS cor1, tab0, tab2 AS cor2
----
-31

query I rowsort
SELECT ALL + + col2 + col1 * 71 FROM tab0 cor0
----
6139
6543
6888

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 38 col0 FROM tab0 AS cor0
----
-38

query I rowsort
SELECT + col2 * cor0.col1 AS col0 FROM tab0 cor0
----
2838
7462
97

query I rowsort
SELECT - col0 * - 30 AS col1 FROM tab2
----
210
2340
2370

query I rowsort
SELECT DISTINCT col2 * ( col1 ) FROM tab1
----
1248
1404
570

query I rowsort
SELECT col1 * 93 AS col0 FROM tab2 AS cor0
----
1581
2883
5487

query I rowsort
SELECT cor0.col0 * + col0 AS col2 FROM tab2 cor0
----
49
6084
6241

query I rowsort
SELECT + col0 * + ( - ( - col2 ) ) AS col0 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT ALL 45 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 14cec871edc37b5056cda01c8331fdca

query I rowsort
SELECT col2 * - tab2.col0 - col2 AS col1 FROM tab2
----
-2054
-216
-3040

query I rowsort
SELECT col1 * col1 + cor0.col0 AS col2 FROM tab2 cor0
----
3559
368
968

query I rowsort
SELECT + col0 * 59 + - cor0.col1 * col0 FROM tab1 AS cor0
----
3136
3680
99

query I rowsort
SELECT ALL + col1 * + col0 + + col0 AS col0 FROM tab0 cor0
----
2088
3430
8188

query I rowsort
SELECT DISTINCT 40 * - col2 FROM tab0 AS cor0
----
-1320
-3280
-40

query I rowsort
SELECT - col0 * - col0 + + cor0.col1 * - col0 * + col0 AS col2 FROM tab2 AS cor0
----
-1470
-352872
-99856

query I rowsort
SELECT + - col0 * + col1 + + col1 FROM tab0 AS cor0
----
-1978
-3298
-8008

query I rowsort
SELECT + - ( col2 ) * + col1 + cor0.col0 FROM tab2 AS cor0
----
-1456
-567
-830

query I rowsort
SELECT - 66 * cor0.col0 AS col2 FROM tab2 AS cor0
----
-462
-5148
-5214

query I rowsort
SELECT ALL 20 + - 76 * + col0 AS col1 FROM tab2 cor0
----
-512
-5908
-5984

query I rowsort
SELECT col0 * 22 FROM tab0 AS cor0
----
1958
528
770

query I rowsort
SELECT 91 + + col0 FROM tab1 AS cor0
----
155
171
94

query I rowsort
SELECT DISTINCT 18 + col0 AS col0 FROM tab0
----
107
42
53

onlyif mysql # use DIV operator for integer division
query I rowsort label-4375
SELECT DISTINCT col2 DIV col0 - - col1 AS col2 FROM tab0 AS cor0
----
87
91
97

skipif mysql # not compatible
query I rowsort label-4375
SELECT DISTINCT col2 / col0 - - col1 AS col2 FROM tab0 AS cor0
----
87
91
97

query I rowsort
SELECT ALL - col1 + + col2 * - cor0.col1 AS col1 FROM tab1 AS cor0
----
-1261
-1430
-580

query I rowsort
SELECT DISTINCT cor0.col0 - ( col2 ) FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT DISTINCT + - cor0.col2 + 27 FROM tab2 AS cor0
----
-11
0
1

query I rowsort
SELECT DISTINCT + col0 * ( 30 ) FROM tab2 AS cor0
----
210
2340
2370

query I rowsort
SELECT DISTINCT + col2 * - cor0.col0 + col2 FROM tab2 AS cor0
----
-162
-2002
-2964

query I rowsort
SELECT ALL - cor0.col1 + + col2 * + col0 * col2 FROM tab1 AS cor0
----
207926
737267
8722

onlyif mysql # use DIV operator for integer division
query I rowsort label-4382
SELECT ALL - - col0 DIV 66 + - cor0.col0 - + col0 DIV - col0 FROM tab0 AS cor0
----
-23
-34
-87

skipif mysql # not compatible
query I rowsort label-4382
SELECT ALL - - col0 / 66 + - cor0.col0 - + col0 / - col0 FROM tab0 AS cor0
----
-23
-34
-87

query I rowsort
SELECT ALL + col0 * - col2 + col0 AS col1 FROM tab1
----
-159
-3584
-7600

query I rowsort
SELECT - cor0.col0 FROM tab2, tab1, tab1 cor0
----
27 values hashing to 729c1edda9332398299f39cd174ed840

query I rowsort
SELECT + 12 + col1 * + col0 FROM tab0 AS cor0
----
2076
3407
8111

query I rowsort
SELECT + col1 - 74 AS col0 FROM tab0
----
12
17
23

query I rowsort
SELECT + cor2.col1 AS col0 FROM tab0, tab0 AS cor0, tab2 cor1, tab1 AS cor2
----
81 values hashing to d7d3fabcafbed14f0d6ffd37195c971c

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4388
SELECT DISTINCT - cor0.col2 * col1 + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4388
SELECT DISTINCT - cor0.col2 * col1 + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 49 + col0 * ( - cor0.col0 * col0 + col2 ) col0 FROM tab0 AS cor0
----
-12983
-42791
-697622

query I rowsort
SELECT ALL - 37 + tab1.col2 FROM tab1
----
17
20
59

query I rowsort
SELECT - 47 + col0 AS col0 FROM tab2
----
-40
31
32

onlyif mysql # use DIV operator for integer division
query I rowsort label-4392
SELECT + ( + col1 + tab1.col2 ) * col2 DIV col0 FROM tab1
----
130
1440
59

skipif mysql # not compatible
query I rowsort label-4392
SELECT + ( + col1 + tab1.col2 ) * col2 / col0 FROM tab1
----
130
1440
59

query I rowsort
SELECT + - 50 * col2 AS col0 FROM tab0 AS cor0
----
-1650
-4100
-50

onlyif mysql # use DIV operator for integer division
query I rowsort label-4394
SELECT DISTINCT ( - col2 ) DIV col1 AS col2 FROM tab1 cor0
----
-2
-5
-7

skipif mysql # not compatible
query I rowsort label-4394
SELECT DISTINCT ( - col2 ) / col1 AS col2 FROM tab1 cor0
----
-2
-5
-7

query I rowsort
SELECT ALL cor0.col2 + + cor0.col0 AS col1 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT ALL col2 + 43 AS col2 FROM tab0
----
125
44
76

query I rowsort
SELECT ALL + col0 + - 14 FROM tab0
----
10
21
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab1.col2 col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4399
SELECT col0 * + CAST( - col1 AS SIGNED ) FROM tab1
----
-1040
-640
-78

skipif mysql # not compatible
query I rowsort label-4399
SELECT col0 * + CAST ( - col1 AS INTEGER ) FROM tab1
----
-1040
-640
-78

query I rowsort
SELECT DISTINCT + + col1 * - col2 + col0 AS col0 FROM tab0 cor0
----
-2814
-62
-7373

onlyif mysql # use DIV operator for integer division
query I rowsort label-4401
SELECT - col0 DIV - col1 + col0 * - col0 FROM tab1
----
-4090
-6394
-9

skipif mysql # not compatible
query I rowsort label-4401
SELECT - col0 / - col1 + col0 * - col0 FROM tab1
----
-4090
-6394
-9

query I rowsort
SELECT DISTINCT col2 * tab1.col2 + + col1 * + col0 + + ( - col0 ) FROM tab1
----
10176
2991
3825

query I rowsort
SELECT ALL + col0 * col1 * col2 AS col0 FROM tab2 AS cor0
----
119652
51034
5859

query I rowsort
SELECT DISTINCT + 6 + + 12 FROM tab0 AS cor0
----
18

query I rowsort
SELECT - col2 * + col0 * col0 AS col2 FROM tab1 cor0
----
-233472
-486
-614400

onlyif mysql # use DIV operator for integer division
query I rowsort label-4406
SELECT DISTINCT col2 DIV - col1 + col2 * - col1 FROM tab0 cor0
----
-2838
-7462
-97

skipif mysql # not compatible
query I rowsort label-4406
SELECT DISTINCT col2 / - col1 + col2 * - col1 FROM tab0 cor0
----
-2838
-7462
-97

query I rowsort
SELECT ALL - - 18 + col1 * + cor0.col1 AS col1 FROM tab0 AS cor0
----
7414
8299
9427

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 49 * - col0 + - col1 col0 FROM tab2 AS cor0
----
-374
-3881
-3888

query I rowsort
SELECT DISTINCT - + ( + 37 ) * - col0 FROM tab0 cor0
----
1295
3293
888

onlyif mysql # use DIV operator for integer division
query I rowsort label-4410
SELECT + 67 DIV 90 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4410
SELECT + 67 / 90 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + cor0.col1 + - col0 * - col0 * col0 FROM tab2 AS cor0
----
374
474611
493056

query I rowsort
SELECT ALL col2 + + col1 * ( tab2.col1 ) + + col2 FROM tab2
----
1015
3533
365

query I rowsort
SELECT DISTINCT col0 * - 42 + - col2 FROM tab2
----
-321
-3302
-3356

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * + col0 + col2 col1 FROM tab0 AS cor0
----
1226
609
8003

query I rowsort
SELECT ALL + 68 * - 97 * - col2 AS col2 FROM tab0 AS cor0
----
217668
540872
6596

query I rowsort
SELECT - 67 * col2 AS col0 FROM tab2 AS cor0
----
-1742
-1809
-2546

query I rowsort
SELECT DISTINCT + - 8 + col0 FROM tab0 cor0
----
16
27
81

query I rowsort
SELECT ALL - ( + col2 ) * + col2 FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT DISTINCT - col2 + 21 * col2 FROM tab2 AS cor0
----
520
540
760

query I rowsort
SELECT DISTINCT + - col1 * - col1 + col0 AS col1 FROM tab2 AS cor0
----
3559
368
968

query I rowsort
SELECT ALL + - 65 * col1 FROM tab0 AS cor0
----
-5590
-5915
-6305

query I rowsort
SELECT + cor0.col0 + col2 * - col1 AS col0 FROM tab2 AS cor0
----
-1456
-567
-830

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 78 + + col0 col2 FROM tab0 AS cor0
----
102
113
167

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + col2 * col2 + col2 col0 FROM tab1 AS cor0
----
119904
32547
75870

query I rowsort
SELECT DISTINCT + - col0 * + 62 FROM tab0 AS cor0
----
-1488
-2170
-5518

query I rowsort
SELECT DISTINCT - col2 + ( col1 ) AS col1 FROM tab1 AS cor0
----
-28
-47
-83

onlyif mysql # use DIV operator for integer division
query I rowsort label-4427
SELECT - - col0 - - col2 DIV - col0 col2 FROM tab2 AS cor0
----
4
78
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4427
SELECT - - col0 - - col2 / - col0 col2 FROM tab2 AS cor0
----
4
78
79

query I rowsort
SELECT DISTINCT - cor0.col0 * - col2 * col1 FROM tab2 AS cor0
----
119652
51034
5859

query I rowsort
SELECT ALL - col0 * 71 AS col0 FROM tab0 cor0
----
-1704
-2485
-6319

query I rowsort
SELECT - cor0.col2 - + 62 AS col0 FROM tab2 AS cor0
----
-100
-88
-89

query I rowsort
SELECT 35 AS col2 FROM tab2, tab2 cor0, tab1 AS cor1
----
27 values hashing to 0d13dfd4c4a9d51ace3582c31cadcdbc

query I rowsort
SELECT DISTINCT col0 * - col1 - + 72 FROM tab2
----
-1415
-289
-4674

query I rowsort
SELECT col0 + col0 * 89 * - 66 AS col1 FROM tab1
----
-17619
-375872
-469840

query I rowsort
SELECT - col0 - - 27 * col0 * col1 FROM tab1 AS cor0
----
17216
2103
28000

query I rowsort
SELECT + col1 * col0 + + 72 AS col1 FROM tab0 AS cor0
----
2136
3467
8171

onlyif mysql # use DIV operator for integer division
query I rowsort label-4436
SELECT col0 * ( col1 ) * col0 - - ( col0 + cor0.col0 ) DIV + cor0.col0 AS col2 FROM tab1 AS cor0
----
236
40962
83202

skipif mysql # not compatible
query I rowsort label-4436
SELECT col0 * ( col1 ) * col0 - - ( col0 + cor0.col0 ) / + cor0.col0 AS col2 FROM tab1 AS cor0
----
236
40962
83202

query I rowsort
SELECT + 35 + col1 AS col2 FROM tab1 AS cor0
----
45
48
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor1.col2 + - cor0.col0 col2 FROM tab0 cor0 CROSS JOIN tab2, tab2 AS cor1
----
-51
-62
-63
-8
-9
14
2
3

query I rowsort
SELECT + - col0 * + cor0.col2 * 77 AS col2 FROM tab0 AS cor0
----
-2695
-561946
-60984

query I rowsort
SELECT - col1 - + col0 * + col0 FROM tab0
----
-1322
-662
-8012

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 46 col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39

query I rowsort
SELECT - col0 + 97 AS col2 FROM tab2
----
18
19
90

query I rowsort
SELECT DISTINCT + + cor0.col2 + 55 FROM tab0 cor0
----
137
56
88

query I rowsort
SELECT + cor0.col2 * + 96 FROM tab1 cor0
----
5184
5472
9216

query I rowsort
SELECT ( + 31 ) FROM tab0 AS cor0
----
31
31
31

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4446
SELECT ALL + CAST( NULL AS SIGNED ) / + 73 + col2 * + ( col0 ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4446
SELECT ALL + CAST ( NULL AS INTEGER ) / + 73 + col2 * + ( col0 ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4447
SELECT DISTINCT + + ( col2 ) DIV col1 AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4447
SELECT DISTINCT + + ( col2 ) / col1 AS col2 FROM tab0 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 * 41 col2 FROM tab2 AS cor0
----
1271
2419
697

skipif mysql # not compatible
query I rowsort
SELECT ALL - CAST ( - cor0.col2 AS REAL ) * + col2 + col0 AS col1 FROM tab0 AS cor0
----
1113
36
6813

query I rowsort
SELECT DISTINCT + - 57 + col1 * col2 AS col1 FROM tab0 AS cor0
----
2781
40
7405

query I rowsort
SELECT DISTINCT cor0.col0 + - col1 * cor0.col0 AS col2 FROM tab2 cor0
----
-1264
-210
-4524

query I rowsort
SELECT ALL - ( col0 ) + col2 AS col0 FROM tab1 AS cor0
----
-7
16
51

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4453
SELECT col2 * - ( + col1 ) + + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4453
SELECT col2 * - ( + col1 ) + + CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + col0 + col0 * - col0 * - col2 AS col2 FROM tab0 AS cor0
----
1260
19032
649611

onlyif mysql # use DIV operator for integer division
query I rowsort label-4455
SELECT col1 DIV - col0 + - cor0.col2 col2 FROM tab2 AS cor0
----
-26
-31
-38

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4455
SELECT col1 / - col0 + - cor0.col2 col2 FROM tab2 AS cor0
----
-26
-31
-38

query I rowsort
SELECT ALL + + ( cor0.col2 ) + + col0 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT col1 * 94 FROM tab0
----
8084
8554
9118

query I rowsort
SELECT + 37 FROM tab1, tab2 AS cor0, tab0 cor1
----
27 values hashing to c023509f63faa044d654943e6df55ca2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 51 col2 FROM tab2
----
51
51
51

query I rowsort
SELECT - - 34 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039

query I rowsort
SELECT DISTINCT col1 + 21 AS col0 FROM tab0 cor0
----
107
112
118

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4462
SELECT CAST( NULL AS DECIMAL ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4462
SELECT CAST ( NULL AS REAL ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + + ( - 93 ) col1 FROM tab2 cor0
----
-55
-66
-67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * ( col0 ) + + col2 + + col2 col1 FROM tab2 AS cor0
----
-1267
-163
-4550

query I rowsort
SELECT + col2 + ( cor0.col2 ) * col2 AS col1 FROM tab2 AS cor0
----
1482
702
756

query I rowsort
SELECT ALL + 29 + - col2 * col2 FROM tab1
----
-2887
-3220
-9187

query I rowsort
SELECT col2 * col1 + - 33 * 92 AS col0 FROM tab2
----
-1502
-2199
-2390

query I rowsort
SELECT ALL col0 + - tab2.col1 * 17 AS col2 FROM tab2
----
-210
-520
-925

query I rowsort
SELECT ALL - cor0.col2 + 94 * col2 AS col1 FROM tab2 AS cor0
----
2418
2511
3534

query I rowsort
SELECT DISTINCT + + col2 + col2 * ( - col1 ) FROM tab1 AS cor0
----
-1152
-1350
-513

query I rowsort
SELECT + col2 + ( + col1 ) * col2 AS col2 FROM tab2 AS cor0
----
1560
684
864

query I rowsort
SELECT ALL - cor0.col2 - - 63 * col2 AS col1 FROM tab1 AS cor0
----
3348
3534
5952

query I rowsort
SELECT - col1 + - 64 * 23 AS col2 FROM tab1 AS cor0
----
-1482
-1485
-1498

onlyif mysql # use DIV operator for integer division
query I rowsort label-4474
SELECT DISTINCT - col1 * col0 DIV - 79 FROM tab1 AS cor0
----
0
13
8

skipif mysql # not compatible
query I rowsort label-4474
SELECT DISTINCT - col1 * col0 / - 79 FROM tab1 AS cor0
----
0
13
8

query I rowsort
SELECT - col2 * - 14 + + col1 FROM tab2 AS cor0
----
409
423
549

query I rowsort
SELECT - ( - 17 ) * col1 * 81 - + cor0.col0 FROM tab0 AS cor0
----
118398
125218
133534

onlyif mysql # use DIV operator for integer division
query I rowsort label-4477
SELECT 34 * + col1 * - col1 + 67 DIV col0 + col0 FROM tab0 AS cor0
----
-251438
-281465
-319870

skipif mysql # not compatible
query I rowsort label-4477
SELECT 34 * + col1 * - col1 + 67 / col0 + col0 FROM tab0 AS cor0
----
-251438
-281465
-319870

onlyif mysql # use DIV operator for integer division
query I rowsort label-4478
SELECT + ( ( - col2 ) ) DIV tab1.col0 - - 93 AS col0 FROM tab1
----
75
92
93

skipif mysql # not compatible
query I rowsort label-4478
SELECT + ( ( - col2 ) ) / tab1.col0 - - 93 AS col0 FROM tab1
----
75
92
93

query I rowsort
SELECT DISTINCT + + col0 * cor0.col0 + col0 + col2 FROM tab0 AS cor0
----
1261
633
8092

query I rowsort
SELECT DISTINCT ( col2 ) AS col1 FROM tab2 cor0
----
26
27
38

query I rowsort
SELECT DISTINCT - col2 * tab2.col0 + col2 FROM tab2
----
-162
-2002
-2964

skipif mysql # not compatible
query I rowsort
SELECT ALL col2 + col1 + CAST ( col2 AS REAL ) AS col1 FROM tab2
----
111
85
93

query I rowsort
SELECT 16 + col0 AS col2 FROM tab0 AS cor0
----
105
40
51

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4484
SELECT - - col2 * col2 + - CAST( NULL AS DECIMAL ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4484
SELECT - - col2 * col2 + - CAST ( NULL AS REAL ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + cor0.col0 + 88 FROM tab1 AS cor0
----
24
8
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 - + col2 col0 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT ALL - + 14 * + col0 FROM tab1 AS cor0
----
-1120
-42
-896

query I rowsort
SELECT - 88 + col2 * + col2 AS col0 FROM tab1 cor0
----
2828
3161
9128

query I rowsort
SELECT + 3 FROM tab0 cor0
----
3
3
3

query I rowsort
SELECT DISTINCT + - ( + col0 ) * col0 + + col0 FROM tab2 cor0
----
-42
-6006
-6162

query I rowsort
SELECT DISTINCT - 5 * col1 + - cor0.col1 AS col1 FROM tab0 AS cor0
----
-516
-546
-582

query I rowsort
SELECT DISTINCT + + 24 - col1 FROM tab0 AS cor0
----
-62
-67
-73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 38 * + 94 col1 FROM tab2 AS cor0
----
-3572
-3572
-3572

query I rowsort
SELECT DISTINCT ( + col0 ) * col0 FROM tab2 cor0
----
49
6084
6241

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4495
SELECT + - CAST( + cor0.col0 AS SIGNED ) + + col2 AS col2 FROM tab0 cor0
----
-34
-7
9

skipif mysql # not compatible
query I rowsort label-4495
SELECT + - CAST ( + cor0.col0 AS INTEGER ) + + col2 AS col2 FROM tab0 cor0
----
-34
-7
9

skipif mysql # not compatible
query I rowsort
SELECT + + CAST ( col1 AS REAL ) + + col2 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT ALL + col1 + 34 AS col0 FROM tab1 AS cor0
----
44
47
60

query I rowsort
SELECT + col2 + + col0 * - cor0.col0 AS col0 FROM tab2 AS cor0
----
-22
-6058
-6203

query I rowsort
SELECT ALL ( + col2 ) + + col0 FROM tab1 cor0
----
121
176
57

query I rowsort
SELECT - - ( 64 ) * + col1 + col0 FROM tab0 AS cor0
----
5528
5913
6243

query I rowsort
SELECT ( - 48 ) AS col2 FROM tab1 AS cor0
----
-48
-48
-48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 68 col2 FROM tab0 AS cor0
----
68
68
68

onlyif mysql # use DIV operator for integer division
query I rowsort label-4503
SELECT ALL - col1 * 39 DIV col1 AS col1 FROM tab2
----
-39
-39
-39

skipif mysql # not compatible
query I rowsort label-4503
SELECT ALL - col1 * 39 / col1 AS col1 FROM tab2
----
-39
-39
-39

query I rowsort
SELECT - col0 * cor0.col1 - 42 FROM tab1 AS cor0
----
-1082
-120
-682

query I rowsort
SELECT ALL + - cor0.col0 * - col2 * 24 FROM tab1 AS cor0
----
184320
3888
87552

query I rowsort
SELECT ALL col0 - 0 * + col1 AS col2 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT ALL col0 * - col1 + col0 * - col1 AS col1 FROM tab1 AS cor0
----
-1280
-156
-2080

query I rowsort
SELECT DISTINCT + - col1 + + ( + 88 ) * - col2 AS col1 FROM tab2 AS cor0
----
-2347
-2407
-3361

query I rowsort
SELECT DISTINCT + col1 * - 57 FROM tab0 AS cor0
----
-4902
-5187
-5529

onlyif mysql # use DIV operator for integer division
query I rowsort label-4510
SELECT DISTINCT col1 DIV + ( col1 ) AS col2 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4510
SELECT DISTINCT col1 / + ( col1 ) AS col2 FROM tab1 AS cor0
----
1

query I rowsort
SELECT + + 3 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba

query I rowsort
SELECT + 38 + - 73 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c12e8bdd687c9040a5600dab3b6adf5b

onlyif mysql # use DIV operator for integer division
query I rowsort label-4513
SELECT ALL - col0 DIV - 19 + col0 * tab2.col2 AS col0 FROM tab2
----
189
2032
3006

skipif mysql # not compatible
query I rowsort label-4513
SELECT ALL - col0 / - 19 + col0 * tab2.col2 AS col0 FROM tab2
----
189
2032
3006

query I rowsort
SELECT DISTINCT - col2 * + col2 + + 38 * col1 FROM tab1
----
-1928
-2869
-8722

query I rowsort
SELECT ALL + col0 + + ( col1 + col1 * 0 ) FROM tab2
----
137
38
96

query I rowsort
SELECT col0 * - ( col2 ) AS col2 FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT DISTINCT 68 AS col1 FROM tab2, tab1 AS cor0
----
68

query I rowsort
SELECT ALL cor0.col0 - 95 * col2 AS col1 FROM tab2 AS cor0
----
-2392
-2558
-3531

query I rowsort
SELECT 3 FROM tab1 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba

query I rowsort
SELECT 85 * col2 AS col0 FROM tab1 cor0
----
4590
4845
8160

query I rowsort
SELECT col0 * 75 * col0 FROM tab0 AS cor0
----
43200
594075
91875

query I rowsort
SELECT ALL 92 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

query I rowsort
SELECT DISTINCT - 8 FROM tab0, tab2 cor0
----
-8

query I rowsort
SELECT DISTINCT ( - 84 ) * - tab0.col0 AS col1 FROM tab0
----
2016
2940
7476

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4525
SELECT + col2 * ( col2 * CAST( NULL AS SIGNED ) ) + - col2 * col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4525
SELECT + col2 * ( col2 * CAST ( NULL AS INTEGER ) ) + - col2 * col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4526
SELECT DISTINCT CAST( 5 AS SIGNED ) AS col0 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
5

skipif mysql # not compatible
query I rowsort label-4526
SELECT DISTINCT CAST ( 5 AS INTEGER ) AS col0 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
5

query I rowsort
SELECT ALL col1 * + tab0.col0 AS col0 FROM tab0
----
2064
3395
8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-4528
SELECT + ( col1 ) + CAST( 60 AS SIGNED ) DIV col1 FROM tab1 cor0
----
16
17
28

skipif mysql # not compatible
query I rowsort label-4528
SELECT + ( col1 ) + CAST ( 60 AS INTEGER ) / col1 FROM tab1 cor0
----
16
17
28

onlyif mysql # use DIV operator for integer division
query I rowsort label-4529
SELECT + - col2 DIV - col1 AS col2 FROM tab1 AS cor0
----
2
5
7

skipif mysql # not compatible
query I rowsort label-4529
SELECT + - col2 / - col1 AS col2 FROM tab1 AS cor0
----
2
5
7

query I rowsort
SELECT - col1 * + col1 + + 89 - col0 FROM tab0 AS cor0
----
-7331
-8281
-9355

query I rowsort
SELECT + 38 AS col1 FROM tab2, tab0 cor0, tab0 cor1
----
27 values hashing to a7827a79248ee7bf2cee915a631d02cb

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4532
SELECT DISTINCT + col1 * CAST( col0 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
1040
640
78

skipif mysql # not compatible
query I rowsort label-4532
SELECT DISTINCT + col1 * CAST ( col0 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
1040
640
78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4533
SELECT DISTINCT - + col0 * CAST( - col0 * - col1 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-106097
-1519
-358956

skipif mysql # not compatible
query I rowsort label-4533
SELECT DISTINCT - + col0 * CAST ( - col0 * - col1 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-106097
-1519
-358956

query I rowsort
SELECT + col0 * + ( + col1 ) FROM tab0 AS cor0
----
2064
3395
8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-4535
SELECT + ( col1 ) * 64 + col1 DIV - col0 FROM tab2
----
1088
1980
3776

skipif mysql # not compatible
query I rowsort label-4535
SELECT + ( col1 ) * 64 + col1 / - col0 FROM tab2
----
1088
1980
3776

onlyif mysql # use DIV operator for integer division
query I rowsort label-4536
SELECT DISTINCT - tab0.col1 DIV - col0 FROM tab0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-4536
SELECT DISTINCT - tab0.col1 / - col0 FROM tab0
----
1
2
3

query I rowsort
SELECT cor0.col2 + 92 AS col0 FROM tab0 cor0
----
125
174
93

query I rowsort
SELECT col2 - + col1 FROM tab0 AS cor0
----
-53
-9
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 98 col1 FROM tab2 cor0
----
2548
2646
3724

query I rowsort
SELECT + + col2 - + cor0.col0 FROM tab1 AS cor0
----
-7
16
51

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4541
SELECT - CAST( - 73 AS SIGNED ) FROM tab1
----
73
73
73

skipif mysql # not compatible
query I rowsort label-4541
SELECT - CAST ( - 73 AS INTEGER ) FROM tab1
----
73
73
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor1.col0 col1 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT ALL 60 + + 95 AS col2 FROM tab2
----
155
155
155

onlyif mysql # use DIV operator for integer division
query I rowsort label-4544
SELECT DISTINCT + col0 DIV cor0.col0 AS col1 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4544
SELECT DISTINCT + col0 / cor0.col0 AS col1 FROM tab2 AS cor0
----
1

query I rowsort
SELECT ALL 46 + cor0.col2 * + col0 AS col2 FROM tab1 AS cor0
----
208
3694
7726

onlyif mysql # use DIV operator for integer division
query I rowsort label-4546
SELECT + cor0.col0 * col1 DIV 71 FROM tab1 AS cor0
----
1
14
9

skipif mysql # not compatible
query I rowsort label-4546
SELECT + cor0.col0 * col1 / 71 FROM tab1 AS cor0
----
1
14
9

query I rowsort
SELECT + col0 * + 93 + - col2 * + col0 AS col1 FROM tab2 cor0
----
4345
462
5226

query I rowsort
SELECT + + col1 + col1 AS col2 FROM tab2 cor0
----
118
34
62

query I rowsort
SELECT + cor0.col1 + col2 * + col2 * col2 AS col1 FROM tab2 AS cor0
----
17635
19714
54889

onlyif mysql # use DIV operator for integer division
query I rowsort label-4550
SELECT - col2 + + col0 DIV col2 col2 FROM tab0 AS cor0
----
-33
-81
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4550
SELECT - col2 + + col0 / col2 col2 FROM tab0 AS cor0
----
-33
-81
34

query I rowsort
SELECT col1 + + 4 * col2 FROM tab2 AS cor0
----
139
163
169

query I rowsort
SELECT + - col1 + - 0 * 25 AS col1 FROM tab0 AS cor0
----
-86
-91
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-4553
SELECT ALL - - col2 DIV ( col2 * + 63 ) FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4553
SELECT ALL - - col2 / ( col2 * + 63 ) FROM tab0 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4554
SELECT - ( ( - col0 ) ) + CAST( NULL AS SIGNED ) * - col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4554
SELECT - ( ( - col0 ) ) + CAST ( NULL AS INTEGER ) * - col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * 91 col0 FROM tab0 AS cor0
----
2184
3185
8099

query I rowsort
SELECT ALL - - 74 - cor0.col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 377b91d64b7b93ed30d0426381c602ee

query I rowsort
SELECT ALL + tab1.col2 * - ( + 71 ) FROM tab1
----
-3834
-4047
-6816

onlyif mysql # use DIV operator for integer division
query I rowsort label-4558
SELECT + CAST( 17 AS SIGNED ) DIV cor2.col0 FROM tab1 cor0 CROSS JOIN tab0, tab2 cor1, tab2 AS cor2
----
81 values hashing to 9a885b0e3ef7fa0066f98ec063ea72d7

skipif mysql # not compatible
query I rowsort label-4558
SELECT + CAST ( 17 AS INTEGER ) / cor2.col0 FROM tab1 cor0 CROSS JOIN tab0, tab2 cor1, tab2 AS cor2
----
81 values hashing to 9a885b0e3ef7fa0066f98ec063ea72d7

query I rowsort
SELECT col1 * 0 + col1 AS col0 FROM tab2 AS cor0
----
17
31
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 48 + + col1 * col0 col1 FROM tab1 AS cor0
----
1088
126
688

query I rowsort
SELECT DISTINCT 82 * + cor0.col0 * + col2 FROM tab2 AS cor0
----
15498
166296
246164

query I rowsort
SELECT 59 + + 43 * - col1 FROM tab1 AS cor0
----
-1059
-371
-500

query I rowsort
SELECT ALL - 38 * - col2 AS col1 FROM tab2 cor0
----
1026
1444
988

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4564
SELECT DISTINCT CAST( - col2 AS SIGNED ) * col1 + 18 AS col0 FROM tab2 AS cor0
----
-1516
-628
-819

skipif mysql # not compatible
query I rowsort label-4564
SELECT DISTINCT CAST ( - col2 AS INTEGER ) * col1 + 18 AS col0 FROM tab2 AS cor0
----
-1516
-628
-819

query I rowsort
SELECT DISTINCT + - 39 * col2 * - col0 AS col0 FROM tab1 AS cor0
----
142272
299520
6318

query I rowsort
SELECT - ( col2 ) + - cor0.col1 FROM tab2 AS cor0
----
-55
-58
-85

query I rowsort
SELECT - + ( - col1 ) + cor0.col2 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT col2 * ( 87 ) FROM tab2
----
2262
2349
3306

query I rowsort
SELECT - col1 * - 97 FROM tab0
----
8342
8827
9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - 82 col1 FROM tab2
----
-2132
-2214
-3116

query I rowsort
SELECT 30 * - col0 FROM tab1 AS cor0
----
-1920
-2400
-90

query I rowsort
SELECT + ( cor0.col2 ) + + col2 FROM tab2 cor0
----
52
54
76

query I rowsort
SELECT DISTINCT 26 + - col2 * - col2 AS col2 FROM tab1 AS cor0
----
2942
3275
9242

query I rowsort
SELECT col2 * - col0 + + col1 * col0 AS col1 FROM tab1 AS cor0
----
-3008
-6640
-84

query I rowsort
SELECT ALL + - cor0.col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0

query I rowsort
SELECT DISTINCT col2 + col1 * - cor0.col2 AS col0 FROM tab1 AS cor0
----
-1152
-1350
-513

query I rowsort
SELECT - + col2 + cor0.col0 - + col0 * col1 FROM tab0 AS cor0
----
-2073
-3361
-8092

query I rowsort
SELECT ALL + col2 * 11 * col1 FROM tab1 AS cor0
----
13728
15444
6270

query I rowsort
SELECT + col0 + - 16 * col1 - + col1 AS col1 FROM tab1 cor0
----
-106
-141
-439

query I rowsort
SELECT 94 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24

onlyif mysql # use DIV operator for integer division
query I rowsort label-4581
SELECT col1 + - tab1.col1 + 31 DIV tab1.col1 AS col2 FROM tab1
----
1
2
3

skipif mysql # not compatible
query I rowsort label-4581
SELECT col1 + - tab1.col1 + 31 / tab1.col1 AS col2 FROM tab1
----
1
2
3

query I rowsort
SELECT col1 * 64 FROM tab1
----
1664
640
832

query I rowsort
SELECT ALL col2 + + ( + col0 ) + col0 FROM tab1
----
185
256
60

query I rowsort
SELECT ALL col1 + ( - col2 + col2 ) AS col0 FROM tab1
----
10
13
26

query I rowsort
SELECT DISTINCT + col0 - + col0 * col2 FROM tab2
----
-182
-1950
-2923

query I rowsort
SELECT DISTINCT + col1 - - col1 * + col2 AS col0 FROM tab0
----
194
2924
7553

query I rowsort
SELECT + col1 + col0 - col1 AS col1 FROM tab2
----
7
78
79

query I rowsort
SELECT - col2 + + col2 * + cor0.col1 FROM tab1 AS cor0
----
1152
1350
513

query I rowsort
SELECT + col2 - - ( cor0.col0 ) * + col1 AS col0 FROM tab0 AS cor0
----
2097
3396
8181

query I rowsort
SELECT + col0 * tab0.col2 AS col2 FROM tab0
----
35
7298
792

query I rowsort
SELECT ALL + tab0.col2 * 16 FROM tab0, tab2 AS cor0
----
9 values hashing to 468b7772a1c0d35637601bbc1e1d0ba6

query I rowsort
SELECT DISTINCT + 66 * - col1 + + col1 FROM tab2
----
-1105
-2015
-3835

query I rowsort
SELECT ALL - col0 + col0 + - col2 FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT DISTINCT - col1 * col1 + - 47 AS col1 FROM tab1 AS cor0
----
-147
-216
-723

query I rowsort
SELECT + - col2 * + cor0.col0 + + 2 + - col2 * - col2 AS col2 FROM tab0 AS cor0
----
-32
-572
299

onlyif mysql # use DIV operator for integer division
query I rowsort label-4596
SELECT ALL + col1 DIV + col1 + + 67 * - ( col0 ) AS col1 FROM tab0 AS cor0
----
-1607
-2344
-5962

skipif mysql # not compatible
query I rowsort label-4596
SELECT ALL + col1 / + col1 + + 67 * - ( col0 ) AS col1 FROM tab0 AS cor0
----
-1607
-2344
-5962

query I rowsort
SELECT - ( col1 ) + col2 + - ( col0 ) * cor0.col2 FROM tab1 AS cor0
----
-134
-3601
-7597

query I rowsort
SELECT DISTINCT + - col2 * + col0 AS col2 FROM tab0 cor0
----
-35
-7298
-792

query I rowsort
SELECT ALL + + cor0.col1 * cor0.col0 * + 97 AS col2 FROM tab0 AS cor0
----
200208
329315
785603

query I rowsort
SELECT DISTINCT col0 + - 81 + - cor0.col1 AS col1 FROM tab0 AS cor0
----
-143
-83

query I rowsort
SELECT DISTINCT col2 * - 91 + - col2 * + col0 + cor0.col1 FROM tab1 AS cor0
----
-16403
-5050
-8825

query I rowsort
SELECT + 6 * + 12 FROM tab2 AS cor0
----
72
72
72

query I rowsort
SELECT - - 89 * - col2 FROM tab0 cor0
----
-2937
-7298
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 17 col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 490d008f3fb5b70d3971cfc6d84503f4

onlyif mysql # use DIV operator for integer division
query I rowsort label-4605
SELECT ALL ( col0 ) DIV - col2 col2 FROM tab0 AS cor0
----
-1
-35
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4605
SELECT ALL ( col0 ) / - col2 col2 FROM tab0 AS cor0
----
-1
-35
0

query I rowsort
SELECT DISTINCT - - ( col1 ) * + cor0.col0 + + ( col2 * cor0.col2 ) FROM tab2 cor0
----
2787
5278
946

query I rowsort
SELECT cor0.col0 * - 9 AS col1 FROM tab0 AS cor0
----
-216
-315
-801

query I rowsort
SELECT ALL 68 + col0 FROM tab2 AS cor0
----
146
147
75

query I rowsort
SELECT DISTINCT - 96 + col1 AS col0 FROM tab0 AS cor0
----
-10
-5
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-4610
SELECT ALL + CAST( - 38 AS SIGNED ) DIV - col0 + - col2 FROM tab2 AS cor0
----
-22
-26
-38

skipif mysql # not compatible
query I rowsort label-4610
SELECT ALL + CAST ( - 38 AS INTEGER ) / - col0 + - col2 FROM tab2 AS cor0
----
-22
-26
-38

query I rowsort
SELECT DISTINCT + ( - col2 ) - + col0 AS col0 FROM tab1
----
-121
-176
-57

query I rowsort
SELECT DISTINCT + ( + col1 ) - col0 AS col0 FROM tab1
----
-54
-67
23

query I rowsort
SELECT - 60 + col1 + col0 FROM tab1
----
-31
14
33

onlyif mysql # use DIV operator for integer division
query I rowsort label-4614
SELECT 61 + + col0 DIV + 9 col1 FROM tab2 cor0
----
61
69
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4614
SELECT 61 + + col0 / + 9 col1 FROM tab2 cor0
----
61
69
69

onlyif mysql # use DIV operator for integer division
query I rowsort label-4615
SELECT DISTINCT + col2 DIV + col0 + + ( col2 ) AS col1 FROM tab1 AS cor0
----
57
72
97

skipif mysql # not compatible
query I rowsort label-4615
SELECT DISTINCT + col2 / + col0 + + ( col2 ) AS col1 FROM tab1 AS cor0
----
57
72
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-4616
SELECT + + 76 * col0 - 9 DIV + 19 AS col0 FROM tab0 AS cor0
----
1824
2660
6764

skipif mysql # not compatible
query I rowsort label-4616
SELECT + + 76 * col0 - 9 / + 19 AS col0 FROM tab0 AS cor0
----
1824
2660
6764

query I rowsort
SELECT ALL ( ( - col0 ) ) * + tab2.col1 + - col2 AS col0 FROM tab2
----
-1381
-244
-4628

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4618
SELECT DISTINCT CAST( NULL AS SIGNED ) + + 12 AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4618
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + 12 AS col2 FROM tab2
----
NULL

query I rowsort
SELECT ALL col1 * col2 + tab1.col1 AS col0 FROM tab1
----
1261
1430
580

query I rowsort
SELECT - 59 * + cor1.col0 AS col2 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 93a1423c3bb93b4d34edf39817e598fb

query I rowsort
SELECT + - ( - col2 ) * - 52 AS col0 FROM tab1 cor0
----
-2808
-2964
-4992

query I rowsort
SELECT cor0.col1 * cor0.col0 - col0 AS col1 FROM tab2 AS cor0
----
1264
210
4524

query I rowsort
SELECT - + col0 * col2 + col2 - 49 AS col2 FROM tab1 cor0
----
-157
-3640
-7633

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4624
SELECT col2 + col0 / CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4624
SELECT col2 + col0 / CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL ( col2 ) * 47 * ( - col0 * 73 ) AS col1 FROM tab1
----
-12516288
-26350080
-555822

query I rowsort
SELECT DISTINCT 79 AS col0 FROM tab0, tab1, tab2 cor0
----
79

query I rowsort
SELECT ALL - 55 * - tab0.col0 AS col0 FROM tab0
----
1320
1925
4895

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 + cor0.col0 * - 80 col2 FROM tab1 AS cor0
----
-243
-5184
-6480

onlyif mysql # use DIV operator for integer division
query I rowsort label-4629
SELECT 53 DIV + col1 AS col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4629
SELECT 53 / + col1 AS col1 FROM tab0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4630
SELECT - tab2.col1 * col1 DIV + col0 col2 FROM tab2
----
-137
-3
-44

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4630
SELECT - tab2.col1 * col1 / + col0 col2 FROM tab2
----
-137
-3
-44

query I rowsort
SELECT ALL 5 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 6797d40099023779b89feb627d94a3e7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 73 col0 FROM tab2
----
73
73
73

query I rowsort
SELECT 43 FROM tab2, tab1, tab1 cor0, tab2 AS cor1
----
81 values hashing to 53b2f139a07f856ac44a1158efd4e63d

query I rowsort
SELECT col1 + col1 * tab0.col2 FROM tab0
----
194
2924
7553

query I rowsort
SELECT - - 36 * - 92 FROM tab1 AS cor0
----
-3312
-3312
-3312

query I rowsort
SELECT - cor0.col1 FROM tab0, tab1, tab0 cor0
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84

query I rowsort
SELECT DISTINCT cor1.col1 AS col1 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
10
13
26

query I rowsort
SELECT - ( tab2.col0 ) AS col2 FROM tab2, tab1, tab1 AS cor0, tab0
----
81 values hashing to adaea38eae032c1639715f21831dd376

query I rowsort
SELECT DISTINCT - + col1 + + cor0.col1 * - 63 FROM tab1 AS cor0
----
-1664
-640
-832

query I rowsort
SELECT DISTINCT col2 * + 7 FROM tab1
----
378
399
672

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4641
SELECT DISTINCT CAST( 33 AS SIGNED ) FROM tab0
----
33

skipif mysql # not compatible
query I rowsort label-4641
SELECT DISTINCT CAST ( 33 AS INTEGER ) FROM tab0
----
33

query I rowsort
SELECT + - col1 * 96 FROM tab0 AS cor0
----
-8256
-8736
-9312

query I rowsort
SELECT DISTINCT col2 + + col2 * col1 AS col0 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT DISTINCT + col1 + + col2 * - col1 AS col1 FROM tab1 AS cor0
----
-1235
-1378
-560

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 + cor0.col2 * - col1 col1 FROM tab1 AS cor0
----
-1168
-1401
-506

query I rowsort
SELECT + + ( cor0.col1 ) * + col1 AS col0 FROM tab0 cor0
----
7396
8281
9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * 46 col2 FROM tab2 AS cor0
----
-322
-3588
-3634

query I rowsort
SELECT - - 80 * - 39 * col0 FROM tab1 AS cor0
----
-199680
-249600
-9360

query I rowsort
SELECT DISTINCT - - 53 AS col2 FROM tab1 cor0
----
53

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4650
SELECT ALL - + CAST( NULL AS SIGNED ) + - 84 + col1 * - 82 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4650
SELECT ALL - + CAST ( NULL AS INTEGER ) + - 84 + col1 * - 82 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + cor0.col0 * - col2 AS col2 FROM tab0 AS cor0
----
-35
-7298
-792

onlyif mysql # use DIV operator for integer division
query I rowsort label-4652
SELECT DISTINCT - cor0.col1 DIV - col0 - col2 * 66 AS col2 FROM tab2 AS cor0
----
-1716
-1778
-2508

skipif mysql # not compatible
query I rowsort label-4652
SELECT DISTINCT - cor0.col1 / - col0 - col2 * 66 AS col2 FROM tab2 AS cor0
----
-1716
-1778
-2508

query I rowsort
SELECT 12 * - cor0.col1 AS col1 FROM tab1 AS cor0
----
-120
-156
-312

query I rowsort
SELECT + ( - 86 ) FROM tab0 AS cor0
----
-86
-86
-86

query I rowsort
SELECT DISTINCT + cor0.col0 * + 47 FROM tab1 AS cor0
----
141
3008
3760

query I rowsort
SELECT ALL col0 + - ( col0 ) * + cor0.col0 AS col0 FROM tab2 cor0
----
-42
-6006
-6162

query I rowsort
SELECT ALL + col1 - cor0.col0 * 36 * col2 FROM tab2 AS cor0
----
-108055
-6773
-72949

query I rowsort
SELECT - 32 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to ef8f93119983b962f4c81381ebf4b1e6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 34 col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab2.col0 + + ( ( col2 ) + 7 ) col1 FROM tab2
----
-34
-45
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 38 ) col1 FROM tab1, tab0 AS cor0
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7

query I rowsort
SELECT DISTINCT col0 + 70 FROM tab1
----
134
150
73

query I rowsort
SELECT + + col0 * ( + 80 ) FROM tab0 AS cor0
----
1920
2800
7120

query I rowsort
SELECT DISTINCT - 7 AS col0 FROM tab0, tab0 AS cor0
----
-7

query I rowsort
SELECT ALL ( + col2 + + col2 ) FROM tab2
----
52
54
76

query I rowsort
SELECT + 51 + + col0 AS col0 FROM tab1 AS cor0
----
115
131
54

query I rowsort
SELECT DISTINCT col1 * - 61 FROM tab0
----
-5246
-5551
-5917

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4668
SELECT ALL - CAST( NULL AS SIGNED ) * col1 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4668
SELECT ALL - CAST ( NULL AS INTEGER ) * col1 AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ( ( + col1 ) * + ( - col1 ) ) + col1 FROM tab1
----
-156
-650
-90

query I rowsort
SELECT DISTINCT - col1 - - col0 * col0 FROM tab2
----
18
6025
6224

onlyif mysql # use DIV operator for integer division
query I rowsort label-4671
SELECT 58 DIV - col1 col1 FROM tab0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4671
SELECT 58 / - col1 col1 FROM tab0
----
0
0
0

query I rowsort
SELECT col1 * - col2 - 81 AS col0 FROM tab2 AS cor0
----
-1615
-727
-918

query I rowsort
SELECT + 64 + cor0.col0 FROM tab2 AS cor0
----
142
143
71

query I rowsort
SELECT + + col0 * col2 - 96 FROM tab2 AS cor0
----
1932
2906
93

query I rowsort
SELECT DISTINCT 55 * - col2 AS col2 FROM tab2 AS cor0
----
-1430
-1485
-2090

query I rowsort
SELECT + col2 * + col0 + col0 FROM tab1 cor0
----
165
3712
7760

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4677
SELECT 5 + - cor0.col0 * CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4677
SELECT 5 + - cor0.col0 * CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - col2 + cor0.col0 AS col2 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT col2 * - cor0.col0 + - col1 FROM tab2 AS cor0
----
-2087
-220
-3019

query I rowsort
SELECT - - col0 * col0 + 43 FROM tab2 AS cor0
----
6127
6284
92

skipif mysql # not compatible
query I rowsort
SELECT col0 * col2 + - CAST ( + col2 AS REAL ) * col0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4682
SELECT ( col2 ) DIV - ( + cor0.col0 ) + + col1 FROM tab1 cor0
----
10
12
8

skipif mysql # not compatible
query I rowsort label-4682
SELECT ( col2 ) / - ( + cor0.col0 ) + + col1 FROM tab1 cor0
----
10
12
8

query I rowsort
SELECT + - cor0.col1 + col2 * + cor0.col1 FROM tab0 AS cor0
----
0
2752
7371

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab0.col0 + col0 * - ( - col1 ) col1 FROM tab0
----
2088
3430
8188

query I rowsort
SELECT DISTINCT col1 * - col0 * col2 + 45 FROM tab0
----
-3350
-664073
-68067

onlyif mysql # use DIV operator for integer division
query I rowsort label-4686
SELECT DISTINCT - col1 DIV - col1 - - 36 col2 FROM tab2
----
37

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4686
SELECT DISTINCT - col1 / - col1 - - 36 col2 FROM tab2
----
37

query I rowsort
SELECT DISTINCT - col0 + tab2.col1 * + 30 + + ( col2 ) FROM tab2
----
1718
469
950

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 + col1 col0 FROM tab1 cor0
----
-28
-47
-83

onlyif mysql # use DIV operator for integer division
query I rowsort label-4689
SELECT col0 DIV col1 + - col1 AS col2 FROM tab0 AS cor0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-4689
SELECT col0 / col1 + - col1 AS col2 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT + col2 * - 77 * col2 AS col2 FROM tab1 AS cor0
----
-224532
-250173
-709632

query I rowsort
SELECT ALL + col0 * col1 * col1 + col1 FROM tab2 AS cor0
----
22848
271577
6758

query I rowsort
SELECT ALL + col1 * 13 AS col1 FROM tab1 cor0
----
130
169
338

query I rowsort
SELECT + + cor0.col1 + col2 * + col2 FROM tab2 AS cor0
----
1461
735
760

query I rowsort
SELECT + col2 + 62 * - col0 + + col0 AS col0 FROM tab1 AS cor0
----
-129
-3847
-4784

onlyif mysql # use DIV operator for integer division
query I rowsort label-4695
SELECT DISTINCT + col0 + col1 * cor0.col0 DIV - col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4695
SELECT DISTINCT + col0 + col1 * cor0.col0 / - col1 FROM tab2 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - col0 + + col2 * col0 col0 FROM tab2 AS cor0
----
2009
213
2940

query I rowsort
SELECT DISTINCT + col2 * + 25 AS col0 FROM tab2 cor0
----
650
675
950

query I rowsort
SELECT ( col0 ) * - 45 FROM tab0
----
-1080
-1575
-4005

query I rowsort
SELECT - col0 + + col1 * col1 * - col2 FROM tab1
----
-16304
-36507
-5764

query I rowsort
SELECT DISTINCT col1 + + col0 - + ( tab0.col1 ) FROM tab0
----
24
35
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-4701
SELECT DISTINCT - col2 - col1 * + col1 DIV col1 FROM tab1
----
-109
-67
-80

skipif mysql # not compatible
query I rowsort label-4701
SELECT DISTINCT - col2 - col1 * + col1 / col1 FROM tab1
----
-109
-67
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + 9 * - cor0.col0 col0 FROM tab1 cor0
----
-519
-624
27

query I rowsort
SELECT - - col1 + ( col0 ) FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT cor0.col0 * 21 * - cor0.col1 AS col1 FROM tab0 AS cor0
----
-170079
-43344
-71295

query I rowsort
SELECT ALL + 27 + - 47 FROM tab2 AS cor0
----
-20
-20
-20

query I rowsort
SELECT col2 * - col0 + col1 AS col1 FROM tab0 AS cor0
----
-706
-7207
62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4707
SELECT DISTINCT + - CAST( + 44 AS SIGNED ) + col1 - col2 * - col0 FROM tab1 cor0
----
144
3614
7649

skipif mysql # not compatible
query I rowsort label-4707
SELECT DISTINCT + - CAST ( + 44 AS INTEGER ) + col1 - col2 * - col0 FROM tab1 cor0
----
144
3614
7649

query I rowsort
SELECT DISTINCT 57 * 7 - + col0 AS col1 FROM tab0 AS cor0
----
310
364
375

query I rowsort
SELECT ALL - col1 + + 54 * - cor0.col0 FROM tab0 AS cor0
----
-1382
-1987
-4897

query I rowsort
SELECT - ( 80 ) + col0 * - 92 AS col2 FROM tab2 AS cor0
----
-724
-7256
-7348

onlyif mysql # use DIV operator for integer division
query I rowsort label-4711
SELECT DISTINCT - 65 DIV - cor0.col1 + col1 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-4711
SELECT DISTINCT - 65 / - cor0.col1 + col1 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT DISTINCT col2 + - col0 * + col0 AS col2 FROM tab2 AS cor0
----
-22
-6058
-6203

query I rowsort
SELECT ALL + 96 + 62 * cor0.col0 AS col0 FROM tab0 AS cor0
----
1584
2266
5614

query I rowsort
SELECT DISTINCT - ( + col1 ) * - col1 + cor0.col1 AS col1 FROM tab0 AS cor0
----
7482
8372
9506

query I rowsort
SELECT + 47 * 43 FROM tab0, tab1, tab1 AS cor0, tab2
----
81 values hashing to c43a8a93a797f0732ee5889ccf96e259

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4716
SELECT ALL + CAST( NULL AS DECIMAL ) + col0 * + col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4716
SELECT ALL + CAST ( NULL AS REAL ) + col0 * + col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 38 * - col0 - cor0.col1 AS col2 FROM tab1 cor0
----
2422
3027
88

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4718
SELECT ALL - CAST( - col0 AS SIGNED ) + - col1 col0 FROM tab2 AS cor0
----
-24
19
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4718
SELECT ALL - CAST ( - col0 AS INTEGER ) + - col1 col0 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT - ( 53 ) AS col2 FROM tab1 AS cor0
----
-53
-53
-53

query I rowsort
SELECT ALL + + ( + 46 ) + col1 FROM tab0 AS cor0
----
132
137
143

query I rowsort
SELECT DISTINCT + + col2 + col0 + col0 FROM tab0 AS cor0
----
260
71
81

query I rowsort
SELECT ( + cor0.col1 ) * col0 AS col2 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT DISTINCT - - col2 * - cor0.col1 + + col0 FROM tab2 cor0
----
-1456
-567
-830

query I rowsort
SELECT ALL - col2 + cor0.col0 * 61 AS col0 FROM tab2 AS cor0
----
400
4732
4781

query I rowsort
SELECT + col1 * + cor0.col0 + - col0 AS col0 FROM tab2 AS cor0
----
1264
210
4524

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - 84 * col0 col0 FROM tab2
----
-615
-6578
-6674

onlyif mysql # use DIV operator for integer division
query I rowsort label-4727
SELECT col0 + - col0 * col1 DIV + col0 AS col2 FROM tab2
----
-24
19
62

skipif mysql # not compatible
query I rowsort label-4727
SELECT col0 + - col0 * col1 / + col0 AS col2 FROM tab2
----
-24
19
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + col1 * col0 * - col2 col1 FROM tab1
----
-36416
-4209
-99760

query I rowsort
SELECT - + cor0.col1 + col1 - - col2 * - col2 AS col0 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT DISTINCT + col0 * - col2 * + col1 AS col0 FROM tab2
----
-119652
-51034
-5859

query I rowsort
SELECT DISTINCT + col0 * - ( - 56 ) FROM tab1
----
168
3584
4480

onlyif mysql # use DIV operator for integer division
query I rowsort label-4732
SELECT DISTINCT col0 * - 22 + + col1 * col2 + + 45 DIV col1 FROM tab0
----
-673
2310
5504

skipif mysql # not compatible
query I rowsort label-4732
SELECT DISTINCT col0 * - 22 + + col1 * col2 + + 45 / col1 FROM tab0
----
-673
2310
5504

query I rowsort
SELECT DISTINCT + col1 + + 54 FROM tab0
----
140
145
151

query I rowsort
SELECT ALL - 40 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to f02f17e9bc17e514af018c6f245ed7a9

onlyif mysql # use DIV operator for integer division
query I rowsort label-4735
SELECT col0 + tab1.col0 DIV - col0 + tab1.col0 * + CAST( col0 AS SIGNED ) AS col0 FROM tab1
----
11
4159
6479

skipif mysql # not compatible
query I rowsort label-4735
SELECT col0 + tab1.col0 / - col0 + tab1.col0 * + CAST ( col0 AS INTEGER ) AS col0 FROM tab1
----
11
4159
6479

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 98 col0 FROM tab1, tab0 AS cor0
----
98

query I rowsort
SELECT DISTINCT - 96 + col1 AS col1 FROM tab2
----
-37
-65
-79

query I rowsort
SELECT - 61 * 63 * col2 + - ( col0 ) * + col2 FROM tab2 AS cor0
----
-101946
-103950
-149036

query I rowsort
SELECT + 43 + - col1 FROM tab1 AS cor0
----
17
30
33

query I rowsort
SELECT - 57 * col2 FROM tab0
----
-1881
-4674
-57

query I rowsort
SELECT - 20 * - col1 + cor0.col0 * + cor0.col1 FROM tab0 AS cor0
----
3784
5335
9919

query I rowsort
SELECT - col1 - 6 AS col0 FROM tab0 AS cor0
----
-103
-92
-97

query I rowsort
SELECT DISTINCT - ( + col0 ) * col0 + col2 AS col1 FROM tab2 cor0
----
-22
-6058
-6203

query I rowsort
SELECT ALL + col1 + col2 * col0 FROM tab0 AS cor0
----
132
7389
878

onlyif mysql # use DIV operator for integer division
query I rowsort label-4745
SELECT - - col2 * col2 DIV 12 FROM tab1 cor0
----
243
270
768

skipif mysql # not compatible
query I rowsort label-4745
SELECT - - col2 * col2 / 12 FROM tab1 cor0
----
243
270
768

query I rowsort
SELECT + + 2 AS col2 FROM tab0 AS cor0
----
2
2
2

query I rowsort
SELECT col2 * - col0 * + col0 AS col0 FROM tab0 AS cor0
----
-1225
-19008
-649522

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 + + cor0.col2 * - 47 col0 FROM tab2 cor0
----
-1196
-1242
-1748

onlyif mysql # use DIV operator for integer division
query I rowsort label-4749
SELECT DISTINCT - - col0 DIV col0 AS col1 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4749
SELECT DISTINCT - - col0 / col0 AS col1 FROM tab1 AS cor0
----
1

query I rowsort
SELECT DISTINCT cor0.col0 + - cor0.col2 AS col2 FROM tab2, tab1 cor0, tab2 cor1
----
-16
-51
7

query I rowsort
SELECT ALL - cor0.col1 + col0 * - col0 AS col0 FROM tab2 AS cor0
----
-6143
-6258
-80

query I rowsort
SELECT cor0.col0 * - ( - 75 ) * col0 FROM tab2 AS cor0
----
3675
456300
468075

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 32 col0 FROM tab0, tab1 AS cor0
----
9 values hashing to d30a2acbf33c88274474306936d3227b

query I rowsort
SELECT + col0 * 9 AS col1 FROM tab1 AS cor0
----
27
576
720

query I rowsort
SELECT ALL - 66 * cor0.col1 AS col0 FROM tab2, tab1 cor0
----
9 values hashing to 3a90004c7c8d24603de004ba3ced0401

query I rowsort
SELECT col0 + + 42 AS col2 FROM tab1 AS cor0
----
106
122
45

query I rowsort
SELECT - - 84 FROM tab0 cor0
----
84
84
84

query I rowsort
SELECT + - 67 + 4 AS col1 FROM tab1, tab2 AS cor0, tab2, tab2 AS cor1
----
81 values hashing to 0a6489496517f27fb746473909f2b76b

query I rowsort
SELECT DISTINCT - cor1.col1 + + 31 * cor1.col0 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2, tab2 AS cor1
----
186
2359
2432

query I rowsort
SELECT ALL - + col1 * cor0.col2 + col1 * + cor0.col2 + + col1 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT DISTINCT - - 15 + - 21 FROM tab1 cor0
----
-6

onlyif mysql # use DIV operator for integer division
query I rowsort label-4762
SELECT ALL - - col1 DIV col2 + + 37 FROM tab1 AS cor0
----
37
37
37

skipif mysql # not compatible
query I rowsort label-4762
SELECT ALL - - col1 / col2 + + 37 FROM tab1 AS cor0
----
37
37
37

query I rowsort
SELECT - col0 + 19 * col1 FROM tab2 AS cor0
----
1043
244
582

query I rowsort
SELECT + ( tab0.col2 * + 45 ) FROM tab0
----
1485
3690
45

query I rowsort
SELECT 49 * col2 AS col2 FROM tab1
----
2646
2793
4704

query I rowsort
SELECT + 34 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 4e2ca147a59e0d5661c28cf3e5431caa

query I rowsort
SELECT - 26 - + col0 * ( - col2 ) AS col0 FROM tab0 AS cor0
----
7272
766
9

query I rowsort
SELECT ALL - 27 * 57 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 2028fd68d897bcca30a0d54e9c4715a9

onlyif mysql # use DIV operator for integer division
query I rowsort label-4769
SELECT + + col1 + - cor0.col2 DIV - ( cor0.col0 ) AS col0 FROM tab2 AS cor0
----
17
34
59

skipif mysql # not compatible
query I rowsort label-4769
SELECT + + col1 + - cor0.col2 / - ( cor0.col0 ) AS col0 FROM tab2 AS cor0
----
17
34
59

query I rowsort
SELECT ALL - col2 * + col1 + + tab0.col0 * + col0 FROM tab0
----
-2262
1128
459

query I rowsort
SELECT DISTINCT - col2 * + tab1.col0 + col1 FROM tab1
----
-136
-3638
-7667

query I rowsort
SELECT - col2 * col2 - + ( - col0 ) AS col2 FROM tab0 AS cor0
----
-1065
-6635
34

query I rowsort
SELECT + 96 * tab0.col0 * + tab0.col1 AS col0 FROM tab0
----
198144
325920
777504

query I rowsort
SELECT + - cor0.col0 + ( + cor0.col2 ) * - cor0.col0 * 73 FROM tab0 AS cor0
----
-2590
-532843
-57840

query I rowsort
SELECT ALL - col1 * + 9 + + 9 FROM tab1 AS cor0
----
-108
-225
-81

onlyif mysql # use DIV operator for integer division
query I rowsort label-4776
SELECT col2 + + col1 DIV 40 AS col2 FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-4776
SELECT col2 + + col1 / 40 AS col2 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT DISTINCT - cor0.col2 + + col0 * - col0 FROM tab0 AS cor0
----
-1226
-609
-8003

query I rowsort
SELECT DISTINCT - col1 - col0 * col1 FROM tab0
----
-2150
-3492
-8190

query I rowsort
SELECT DISTINCT + tab1.col1 * - col1 + col0 AS col2 FROM tab1
----
-36
-673
-89

query I rowsort
SELECT tab2.col2 FROM tab2 WHERE col2 NOT BETWEEN col0 AND - col0
----
26
27
38

query I rowsort
SELECT col0 + tab1.col2 + col2 * - col1 * + col0 FROM tab1
----
-36359
-4155
-99664

onlyif mysql # use DIV operator for integer division
query I rowsort label-4782
SELECT DISTINCT col1 + - col0 DIV col2 AS col1 FROM tab1
----
13
26
9

skipif mysql # not compatible
query I rowsort label-4782
SELECT DISTINCT col1 + - col0 / col2 AS col1 FROM tab1
----
13
26
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-4783
SELECT col0 + - col2 DIV col0 FROM tab0
----
23
35
89

skipif mysql # not compatible
query I rowsort label-4783
SELECT col0 + - col2 / col0 FROM tab0
----
23
35
89

query I rowsort
SELECT + col0 * col0 - + col2 * col1 FROM tab1
----
-1395
3526
5152

query I rowsort
SELECT col0 + col2 * col1 + tab1.col1 AS col0 FROM tab1
----
1341
1433
644

query I rowsort
SELECT ALL + col1 * col1 + + col0 * tab1.col2 AS col0 FROM tab1 WHERE ( col0 ) NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT DISTINCT + tab1.col1 * + tab1.col1 + tab1.col2 AS col2 FROM tab1
----
157
265
730

query I rowsort
SELECT col2 * - col0 AS col0 FROM tab2 WHERE NULL NOT IN ( col2 + + col2 )
----

query I rowsort
SELECT ALL + col1 * tab0.col1 + + tab0.col1 AS col1 FROM tab0
----
7482
8372
9506

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * col2 * + col2 + col1 col2 FROM tab1
----
-119795
-32480
-75790

query I rowsort
SELECT col0 * - col0 + col0 * col2 FROM tab0
----
-1190
-623
216

query I rowsort
SELECT ALL - 24 * + col2 * ( col1 + col1 * + col0 ) FROM tab1 AS cor0
----
-134784
-2426112
-889200

query I rowsort
SELECT col2 * - cor0.col1 + + col2 * 30 - col0 AS col1 FROM tab2 AS cor0
----
-34
-832
415

query I rowsort
SELECT ALL - + 45 AS col0 FROM tab1 AS cor0
----
-45
-45
-45

query I rowsort
SELECT DISTINCT + - 15 * col2 FROM tab1 AS cor0
----
-1440
-810
-855

query I rowsort
SELECT DISTINCT - + col2 * col0 + - col2 * col1 AS col1 FROM tab1 AS cor0
----
-1566
-4218
-8928

query I rowsort
SELECT col1 + col0 * - col2 * + col2 FROM tab2 AS cor0
----
-114059
-5072
-52669

query I rowsort
SELECT ALL - - col1 * - col1 + ( - cor0.col1 + col0 * cor0.col1 ) AS col0 FROM tab1 AS cor0
----
-624
530
858

query I rowsort
SELECT + 78 + col0 + - 29 FROM tab2 AS cor0
----
127
128
56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + cor0.col0 col0 FROM tab2 cor0
----
49
6084
6241

query I rowsort
SELECT DISTINCT - + col2 * col2 + - col1 AS col2 FROM tab0 cor0
----
-1175
-6815
-98

query I rowsort
SELECT ALL + 38 * cor0.col2 + col2 FROM tab1 AS cor0
----
2106
2223
3744

query I rowsort
SELECT DISTINCT + 57 - col0 AS col0 FROM tab1 AS cor0
----
-23
-7
54

query I rowsort
SELECT DISTINCT - col1 * col0 * 24 AS col1 FROM tab0 cor0
----
-194376
-49536
-81480

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab2, tab2 AS cor1, tab1 AS cor2, tab2 AS cor3
----
3645 values hashing to a6775d4c5b4880512ff9492a52ee0905

query I rowsort
SELECT - tab2.col1 + + tab2.col2 * + col2 FROM tab2
----
1427
617
698

query I rowsort
SELECT DISTINCT col2 * 5 + 91 * + col1 FROM tab2
----
1737
2956
5499

query I rowsort
SELECT - - col2 + + ( - col0 ) AS col1 FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT ALL - col1 * 48 FROM tab0 AS cor0
----
-4128
-4368
-4656

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 * 93 col0 FROM tab0 AS cor0
----
-2232
-3255
-8277

query I rowsort
SELECT ALL - - col0 + 71 AS col1 FROM tab1 AS cor0
----
135
151
74

query I rowsort
SELECT DISTINCT col2 * 20 + col1 FROM tab1 cor0
----
1106
1150
1933

query I rowsort
SELECT col0 + + 36 AS col0 FROM tab1 cor0
----
100
116
39

query I rowsort
SELECT col0 * 0 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + 57 * 6 FROM tab2 AS cor0
----
342

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor1.col1 * cor0.col1 col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c6f4b0b1d1f7796b05493e23d40b0b75

query I rowsort
SELECT cor1.col1 * cor1.col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f2938bee011b8d49dd931b1f9235e7f5

query I rowsort
SELECT DISTINCT + col2 + - col2 * + col0 AS col0 FROM tab0 AS cor0
----
-34
-7216
-759

query I rowsort
SELECT ALL - 28 * + 2 AS col2 FROM tab2 cor0
----
-56
-56
-56

query I rowsort
SELECT - 36 * - col2 AS col2 FROM tab2 AS cor0
----
1368
936
972

query I rowsort
SELECT DISTINCT + col0 * col0 + + col0 FROM tab0 AS cor0
----
1260
600
8010

query I rowsort
SELECT DISTINCT cor0.col2 * col0 + + col2 FROM tab2 cor0
----
2054
216
3040

query I rowsort
SELECT ALL - 8 - col2 AS col0 FROM tab0 AS cor0
----
-41
-9
-90

query I rowsort
SELECT - 15 * col1 * cor0.col0 AS col1 FROM tab2 AS cor0
----
-20145
-3255
-69030

query I rowsort
SELECT col0 * - cor0.col1 + col0 FROM tab2 AS cor0
----
-1264
-210
-4524

query I rowsort
SELECT DISTINCT - - ( col0 ) + col0 AS col2 FROM tab0 AS cor0
----
178
48
70

onlyif mysql # use DIV operator for integer division
query I rowsort label-4827
SELECT ALL - col1 DIV col0 + col2 FROM tab2 AS cor0
----
23
26
38

skipif mysql # not compatible
query I rowsort label-4827
SELECT ALL - col1 / col0 + col2 FROM tab2 AS cor0
----
23
26
38

query I rowsort
SELECT DISTINCT + ( - col1 * - tab1.col1 + - col2 ) FROM tab1
----
43
622
73

query I rowsort
SELECT col1 * col0 - + col0 * col1 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT + tab0.col1 * + col0 + - col1 + + col2 FROM tab0
----
2011
3299
8090

query I rowsort
SELECT DISTINCT tab2.col0 * tab2.col1 + 16 FROM tab2
----
1359
233
4618

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4832
SELECT ALL col2 * CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4832
SELECT ALL col2 * CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT col2 + col1 + col2 * col0 FROM tab2
----
2113
247
3057

query I rowsort
SELECT + - col0 * + col0 + + col1 + col0 FROM tab0 cor0
----
-1093
-466
-7741

query I rowsort
SELECT ALL + 77 * 38 FROM tab0
----
2926
2926
2926

onlyif mysql # use DIV operator for integer division
query I rowsort label-4836
SELECT DISTINCT + 64 DIV 71 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4836
SELECT DISTINCT + 64 / 71 FROM tab1 AS cor0
----
0

query I rowsort
SELECT - + 41 AS col1 FROM tab0 AS cor0
----
-41
-41
-41

query I rowsort
SELECT ALL - ( + cor0.col1 ) * col2 + col2 AS col1 FROM tab1 AS cor0
----
-1152
-1350
-513

query I rowsort
SELECT - cor0.col1 + 93 * - col2 AS col0 FROM tab2 AS cor0
----
-2477
-2542
-3551

onlyif mysql # use DIV operator for integer division
query I rowsort label-4840
SELECT + 65 DIV + cor0.col0 FROM tab2 AS cor0
----
0
0
9

skipif mysql # not compatible
query I rowsort label-4840
SELECT + 65 / + cor0.col0 FROM tab2 AS cor0
----
0
0
9

query I rowsort
SELECT - - 11 + + col2 AS col1 FROM tab1 AS cor0
----
107
65
68

query I rowsort
SELECT ALL cor0.col1 - ( + col2 * + col1 ) FROM tab2 AS cor0
----
-1475
-629
-806

query I rowsort
SELECT ALL + col0 + col0 AS col1 FROM tab1 WHERE NOT NULL BETWEEN ( NULL ) AND col2
----

query I rowsort
SELECT - col2 + - col1 + - col1 AS col2 FROM tab1 AS cor0
----
-106
-122
-77

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT - col2 - col1 IN ( col1 * - col2 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL >= NULL
----

query I rowsort
SELECT DISTINCT - col2 - col2 AS col0 FROM tab1 WHERE NOT + col2 IN ( col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + col2 col0 FROM tab0
----
-34
-7
9

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL BETWEEN col1 AND NULL
----

query I rowsort
SELECT DISTINCT col1 - - cor0.col2 FROM tab2 AS cor0 WHERE NOT col0 + col1 = cor0.col1
----
55
58
85

query I rowsort
SELECT DISTINCT - col2 + cor0.col1 * - col0 AS col2 FROM tab0 AS cor0
----
-2097
-3396
-8181

onlyif mysql # use DIV operator for integer division
query I rowsort label-4852
SELECT ALL col2 * col0 + + col2 + - col1 DIV col0 FROM tab0 AS cor0
----
34
7379
822

skipif mysql # not compatible
query I rowsort label-4852
SELECT ALL col2 * col0 + + col2 + - col1 / col0 FROM tab0 AS cor0
----
34
7379
822

query I rowsort
SELECT ALL - - cor0.col2 * - cor0.col0 + + col2 FROM tab2 AS cor0
----
-162
-2002
-2964

query I rowsort
SELECT col2 * - col2 * tab1.col2 FROM tab1
----
-157464
-185193
-884736

query I rowsort
SELECT + col0 - + col0 * col2 AS col0 FROM tab0 AS cor0
----
-7209
-768
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4856
SELECT + cor0.col2 DIV - col1 + + col2 + + col1 * + col2 AS col1 FROM tab2 AS cor0
----
1560
682
864

skipif mysql # not compatible
query I rowsort label-4856
SELECT + cor0.col2 / - col1 + + col2 + + col1 * + col2 AS col1 FROM tab2 AS cor0
----
1560
682
864

query I rowsort
SELECT cor0.col0 + col0 + col0 AS col2 FROM tab0 AS cor0
----
105
267
72

query III rowsort
SELECT * FROM tab2 WHERE NULL <= ( NULL ) AND NOT + col2 + col0 BETWEEN + col1 / col0 + - col0 AND NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-4859
SELECT ALL - tab1.col2 + col2 * col0 + - col1 DIV + col1 AS col2 FROM tab1
----
107
3590
7583

skipif mysql # not compatible
query I rowsort label-4859
SELECT ALL - tab1.col2 + col2 * col0 + - col1 / + col1 AS col2 FROM tab1
----
107
3590
7583

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT IN ( col2 / col0 + - col2 * + col2 - - col0 ) AND NULL NOT IN ( col1 )
----

query I rowsort
SELECT ALL col2 + col2 + tab0.col1 FROM tab0
----
152
255
99

onlyif mysql # use DIV operator for integer division
query I rowsort label-4862
SELECT DISTINCT - col1 * col0 DIV col1 + tab2.col1 * - tab2.col1 + + col1 * col0 AS col2 FROM tab2
----
-751
1043
975

skipif mysql # not compatible
query I rowsort label-4862
SELECT DISTINCT - col1 * col0 / col1 + tab2.col1 * - tab2.col1 + + col1 * col0 AS col2 FROM tab2
----
-751
1043
975

query I rowsort
SELECT + cor0.col1 * + 55 FROM tab2 AS cor0
----
1705
3245
935

query I rowsort
SELECT - col1 * + 38 AS col0 FROM tab0 cor0
----
-3268
-3458
-3686

query I rowsort
SELECT + col1 * - 20 * col1 FROM tab2 AS cor0
----
-19220
-5780
-69620

onlyif mysql # use DIV operator for integer division
query I rowsort label-4866
SELECT + + 12 - - col1 DIV - col0 AS col0 FROM tab2 AS cor0
----
12
12
8

skipif mysql # not compatible
query I rowsort label-4866
SELECT + + 12 - - col1 / - col0 AS col0 FROM tab2 AS cor0
----
12
12
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col0 ) * col0 col1 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT 38 + + 77 * - tab0.col1 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to c766a3fb326132e529c9876fe75e3600

onlyif mysql # use DIV operator for integer division
query I rowsort label-4869
SELECT + 84 DIV - col1 - + col1 FROM tab1 cor0
----
-18
-19
-29

skipif mysql # not compatible
query I rowsort label-4869
SELECT + 84 / - col1 - + col1 FROM tab1 cor0
----
-18
-19
-29

query I rowsort
SELECT col0 * col2 + + col1 FROM tab1 AS cor0
----
188
3658
7693

query I rowsort
SELECT - col1 * col2 + - col1 * - ( cor0.col0 ) * col0 FROM tab2 AS cor0
----
105451
357422
682

query I rowsort
SELECT ALL - + col1 * + 35 AS col2 FROM tab1 cor0
----
-350
-455
-910

query I rowsort
SELECT - - col2 * col0 * + col1 + + col1 * col2 FROM tab1 AS cor0
----
101088
37050
5616

query I rowsort
SELECT DISTINCT - 78 AS col2 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
-78

onlyif mysql # use DIV operator for integer division
query I rowsort label-4875
SELECT - + col0 DIV col1 AS col0 FROM tab1 AS cor0
----
-6
-6
0

skipif mysql # not compatible
query I rowsort label-4875
SELECT - + col0 / col1 AS col0 FROM tab1 AS cor0
----
-6
-6
0

query I rowsort
SELECT DISTINCT - + 22 * col1 * 97 AS col2 FROM tab1 AS cor0
----
-21340
-27742
-55484

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + 71 * col1 col0 FROM tab0 AS cor0
----
201498
529802
6887

query I rowsort
SELECT col2 + 26 * col0 AS col2 FROM tab0 AS cor0
----
2396
657
911

query I rowsort
SELECT DISTINCT + col2 * col2 + 17 * col0 FROM tab1 cor0
----
10576
2967
4337

query I rowsort
SELECT DISTINCT + - col0 * - cor0.col1 * - col1 + col1 AS col2 FROM tab2 AS cor0
----
-22814
-271459
-6696

onlyif mysql # use DIV operator for integer division
query I rowsort label-4881
SELECT ALL - + col2 DIV - 59 AS col1 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4881
SELECT ALL - + col2 / - 59 AS col1 FROM tab0 AS cor0
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * + col2 col1 FROM tab0 cor0
----
-35
-7298
-792

query I rowsort
SELECT DISTINCT col0 * - cor0.col1 * col1 + col0 FROM tab2 AS cor0
----
-22752
-271440
-6720

query I rowsort
SELECT ALL col2 + 23 * - col0 AS col2 FROM tab2 AS cor0
----
-134
-1768
-1779

onlyif mysql # use DIV operator for integer division
query I rowsort label-4885
SELECT ALL - - col1 + cor0.col1 * + col2 + - col2 DIV ( col1 + col0 * ( col2 ) ) AS col2 FROM tab1 AS cor0
----
1261
1430
580

skipif mysql # not compatible
query I rowsort label-4885
SELECT ALL - - col1 + cor0.col1 * + col2 + - col2 / ( col1 + col0 * ( col2 ) ) AS col2 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT ALL + col2 * + 13 + col2 FROM tab0 AS cor0
----
1148
14
462

query I rowsort
SELECT ALL - + cor0.col1 - - ( + col2 ) AS col1 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT - col1 * 33 FROM tab0 cor0
----
-2838
-3003
-3201

query I rowsort
SELECT ALL - - col0 + col2 * - col0 AS col0 FROM tab0 AS cor0
----
-7209
-768
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4890
SELECT DISTINCT + col2 * - CAST( cor0.col0 AS SIGNED ) col0 FROM tab1 AS cor0
----
-162
-3648
-7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4890
SELECT DISTINCT + col2 * - CAST ( cor0.col0 AS INTEGER ) col0 FROM tab1 AS cor0
----
-162
-3648
-7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * col2 col2 FROM tab0 cor0
----
-35
-7298
-792

query I rowsort
SELECT - col2 * - ( col2 * col0 ) AS col2 FROM tab1 AS cor0
----
207936
737280
8748

query I rowsort
SELECT DISTINCT - + 2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-2

onlyif mysql # use DIV operator for integer division
query I rowsort label-4894
SELECT DISTINCT - col1 * col1 DIV - col1 AS col2 FROM tab0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-4894
SELECT DISTINCT - col1 * col1 / - col1 AS col2 FROM tab0
----
86
91
97

query I rowsort
SELECT tab0.col0 * - 38 + col2 AS col2 FROM tab0
----
-1329
-3300
-879

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 29 col2 FROM tab0 AS cor0
----
-29

query I rowsort
SELECT col0 + - col1 - + col2 AS col1 FROM tab2
----
-51
-7
24

query I rowsort
SELECT DISTINCT 89 * col0 AS col0 FROM tab0
----
2136
3115
7921

onlyif mysql # use DIV operator for integer division
query I rowsort label-4899
SELECT 25 + + tab2.col0 DIV + col1 AS col2 FROM tab2
----
25
26
29

skipif mysql # not compatible
query I rowsort label-4899
SELECT 25 + + tab2.col0 / + col1 AS col2 FROM tab2
----
25
26
29

query I rowsort
SELECT + ( + tab0.col1 ) + + col1 - col2 FROM tab0
----
100
139
193

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4901
SELECT - CAST( NULL AS SIGNED ) + ( col2 + - 60 ) col2 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4901
SELECT - CAST ( NULL AS INTEGER ) + ( col2 + - 60 ) col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - - col2 - - cor0.col0 * col0 AS col1 FROM tab2 cor0
----
6110
6279
76

query I rowsort
SELECT - col2 + - col0 * 9 FROM tab0 AS cor0
----
-249
-316
-883

query I rowsort
SELECT DISTINCT 30 - + 95 FROM tab1
----
-65

query I rowsort
SELECT ( ( + col0 ) ) - - ( - col0 ) AS col2 FROM tab1
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4906
SELECT + col2 + ( + col2 ) * - CAST( col1 AS SIGNED ) * col1 + tab2.col1 col2 FROM tab2
----
-10927
-25889
-90421

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4906
SELECT + col2 + ( + col2 ) * - CAST ( col1 AS INTEGER ) * col1 + tab2.col1 col2 FROM tab2
----
-10927
-25889
-90421

query I rowsort
SELECT + ( + 65 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805

query I rowsort
SELECT DISTINCT col2 + + col0 * ( - cor0.col0 ) AS col0 FROM tab1 AS cor0
----
-4039
-6304
45

query I rowsort
SELECT DISTINCT - - col1 * col0 * - col1 + + col1 AS col2 FROM tab0 AS cor0
----
-177418
-329218
-736918

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 25 + col1 col2 FROM tab2 AS cor0
----
42
56
84

query I rowsort
SELECT DISTINCT + 46 + col2 * + ( col1 ) * col1 + + col2 AS col1 FROM tab1 AS cor0
----
16366
36604
5803

query I rowsort
SELECT DISTINCT + col0 * + cor0.col2 + 78 + - ( col1 + + col1 ) * col2 FROM tab0 AS cor0
----
-4806
-7548
-81

query I rowsort
SELECT - 47 + - col2 AS col2 FROM tab0 AS cor0
----
-129
-48
-80

query I rowsort
SELECT ALL - + cor0.col2 + - col0 * 68 AS col0 FROM tab2 AS cor0
----
-503
-5330
-5410

query I rowsort
SELECT - + col1 * + col1 AS col2 FROM tab2 cor0
----
-289
-3481
-961

query I rowsort
SELECT ALL + - 89 * col1 FROM tab0 AS cor0
----
-7654
-8099
-8633

query I rowsort
SELECT DISTINCT - + cor0.col2 AS col0 FROM tab0 cor0
----
-1
-33
-82

query I rowsort
SELECT DISTINCT - col1 + col1 * - ( + 90 ) FROM tab0 AS cor0
----
-7826
-8281
-8827

query I rowsort
SELECT DISTINCT + col2 * - 79 AS col1 FROM tab2
----
-2054
-2133
-3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-4920
SELECT cor1.col1 DIV - 25 AS col2 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to a46f44f30b2183508f32c16a79479cd9

skipif mysql # not compatible
query I rowsort label-4920
SELECT cor1.col1 / - 25 AS col2 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to a46f44f30b2183508f32c16a79479cd9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4921
SELECT + CAST( col2 AS SIGNED ) * + col1 AS col2 FROM tab2
----
1534
646
837

skipif mysql # not compatible
query I rowsort label-4921
SELECT + CAST ( col2 AS INTEGER ) * + col1 AS col2 FROM tab2
----
1534
646
837

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4922
SELECT + CAST( + ( - col1 ) AS SIGNED ) FROM tab2 AS cor0
----
-17
-31
-59

skipif mysql # not compatible
query I rowsort label-4922
SELECT + CAST ( + ( - col1 ) AS INTEGER ) FROM tab2 AS cor0
----
-17
-31
-59

onlyif mysql # use DIV operator for integer division
query I rowsort label-4923
SELECT + ( - col0 ) + + cor0.col1 DIV + ( 98 + + col0 ) AS col2 FROM tab0 AS cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-4923
SELECT + ( - col0 ) + + cor0.col1 / + ( 98 + + col0 ) AS col2 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT ALL - cor0.col2 + col2 + - col1 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT col2 + - ( col1 ) * + col2 FROM tab0 AS cor0
----
-2805
-7380
-96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4926
SELECT + CAST( + col2 AS SIGNED ) + - col0 col2 FROM tab2 AS cor0
----
-41
-52
20

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4926
SELECT + CAST ( + col2 AS INTEGER ) + - col0 col2 FROM tab2 AS cor0
----
-41
-52
20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 34 + - 6 col1 FROM tab0 AS cor0
----
28
28
28

onlyif mysql # use DIV operator for integer division
query I rowsort label-4928
SELECT - + col1 DIV - col0 AS col0 FROM tab1 AS cor0
----
0
0
8

skipif mysql # not compatible
query I rowsort label-4928
SELECT - + col1 / - col0 AS col0 FROM tab1 AS cor0
----
0
0
8

query I rowsort
SELECT 85 + col0 FROM tab2 cor0
----
163
164
92

query I rowsort
SELECT tab0.col0 AS col0 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT DISTINCT ( 8 + tab2.col2 ) FROM tab2
----
34
35
46

query I rowsort
SELECT ALL - + col0 - ( 58 ) AS col1 FROM tab2 AS cor0
----
-136
-137
-65

query I rowsort
SELECT col0 * col1 + col0 * - col0 AS col2 FROM tab1 AS cor0
----
-3456
-5360
69

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4934
SELECT ALL - - col1 + + CAST( + col1 AS SIGNED ) * col1 FROM tab0 AS cor0
----
7482
8372
9506

skipif mysql # not compatible
query I rowsort label-4934
SELECT ALL - - col1 + + CAST ( + col1 AS INTEGER ) * col1 FROM tab0 AS cor0
----
7482
8372
9506

query I rowsort
SELECT DISTINCT cor0.col1 + cor0.col0 AS col0 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT DISTINCT + col2 * col0 + col2 FROM tab1 cor0
----
216
3705
7776

query I rowsort
SELECT DISTINCT - 69 - col0 FROM tab0
----
-104
-158
-93

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4938
SELECT DISTINCT - col2 / col2 - + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4938
SELECT DISTINCT - col2 / col2 - + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT - 95 AS col2 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
-95

query I rowsort
SELECT col1 * + col2 * + ( + col1 ) AS col1 FROM tab0
----
244068
679042
9409

query I rowsort
SELECT col1 * + col1 - + cor0.col1 * col1 * + col2 FROM tab0 AS cor0
----
-236672
-670761
0

query I rowsort
SELECT + col1 * 9 + - cor0.col1 FROM tab1 AS cor0
----
104
208
80

query I rowsort
SELECT + col1 * col0 * tab2.col2 FROM tab2
----
119652
51034
5859

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4944
SELECT DISTINCT + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab0, tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-4944
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab0, tab2 AS cor1
----
NULL

query I rowsort
SELECT - 52 * col2 * + col0 + col2 FROM tab1 AS cor0
----
-189639
-399264
-8370

onlyif mysql # use DIV operator for integer division
query I rowsort label-4946
SELECT - cor0.col1 * - 32 + cor0.col0 DIV 24 AS col0 FROM tab2 AS cor0
----
1891
547
992

skipif mysql # not compatible
query I rowsort label-4946
SELECT - cor0.col1 * - 32 + cor0.col0 / 24 AS col0 FROM tab2 AS cor0
----
1891
547
992

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4947
SELECT - col1 + - col0 * col1 * CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4947
SELECT - col1 + - col0 * col1 * CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 col2 FROM tab2 cor0
----
17
31
59

query I rowsort
SELECT - 36 + + 10 AS col1 FROM tab1 AS cor0
----
-26
-26
-26

query I rowsort
SELECT + ( - col1 ) - + col1 FROM tab0 AS cor0
----
-172
-182
-194

query I rowsort
SELECT DISTINCT tab2.col2 AS col2 FROM tab2, tab0, tab2 AS cor0
----
26
27
38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4952
SELECT CAST( NULL AS SIGNED ) * 61 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4952
SELECT CAST ( NULL AS INTEGER ) * 61 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT - 46 + + cor0.col2 * tab2.col2 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 22f5bad91978523a1d7480372bb654f2

query I rowsort
SELECT - col1 * + col2 + col2 * - col1 FROM tab1 AS cor0
----
-1140
-2496
-2808

query I rowsort
SELECT + - 21 + + 27 FROM tab0 cor0
----
6
6
6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4956
SELECT - CAST( - 68 AS SIGNED ) FROM tab1 AS cor0
----
68
68
68

skipif mysql # not compatible
query I rowsort label-4956
SELECT - CAST ( - 68 AS INTEGER ) FROM tab1 AS cor0
----
68
68
68

onlyif mysql # use DIV operator for integer division
query I rowsort label-4957
SELECT ALL + 33 DIV col2 AS col0 FROM tab0 AS cor0
----
0
1
33

skipif mysql # not compatible
query I rowsort label-4957
SELECT ALL + 33 / col2 AS col0 FROM tab0 AS cor0
----
0
1
33

query I rowsort
SELECT + tab0.col1 + - col0 - col0 * - col0 FROM tab0
----
1287
638
7923

query I rowsort
SELECT + + col2 + - col2 * - col1 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT col2 + 7 FROM tab0 cor0
----
40
8
89

skipif mysql # not compatible
query I rowsort
SELECT - - cor0.col0 + CAST ( + col1 AS REAL ) AS col2 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT + col2 + - 52 AS col2 FROM tab0 AS cor0
----
-19
-51
30

query I rowsort
SELECT 18 AS col1 FROM tab0, tab1 AS cor0, tab2, tab1 cor1
----
81 values hashing to a13db73ec93475d2821cb4a6d0eff298

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4964
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - col1 * col1 AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4964
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - col1 * col1 AS col0 FROM tab0
----
NULL

query I rowsort
SELECT - ( - 0 ) * col0 + 18 AS col1 FROM tab1
----
18
18
18

query I rowsort
SELECT + 49 + col2 FROM tab0
----
131
50
82

query I rowsort
SELECT - col1 + - cor0.col0 * - col1 FROM tab0 AS cor0
----
1978
3298
8008

onlyif mysql # use DIV operator for integer division
query I rowsort label-4968
SELECT + 59 - col2 DIV + col1 FROM tab0
----
59
59
59

skipif mysql # not compatible
query I rowsort label-4968
SELECT + 59 - col2 / + col1 FROM tab0
----
59
59
59

query I rowsort
SELECT DISTINCT + ( + col1 ) * - 61 * 98 + col1 AS col0 FROM tab0 AS cor0
----
-514022
-543907
-579769

onlyif mysql # use DIV operator for integer division
query I rowsort label-4970
SELECT ALL + 45 * - col1 + + col0 DIV + col1 FROM tab2 AS cor0
----
-1395
-2654
-761

skipif mysql # not compatible
query I rowsort label-4970
SELECT ALL + 45 * - col1 + + col0 / + col1 FROM tab2 AS cor0
----
-1395
-2654
-761

query I rowsort
SELECT 10 * - cor0.col0 AS col0 FROM tab1 cor0
----
-30
-640
-800

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4972
SELECT ALL + col2 + - col1 * + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4972
SELECT ALL + col2 + - col1 * + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ( + col0 ) * + ( col0 ) FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT DISTINCT + - 36 * + col1 AS col2 FROM tab0 AS cor0
----
-3096
-3276
-3492

query I rowsort
SELECT DISTINCT col1 + 66 + + col2 * col2 AS col2 FROM tab1
----
3008
3325
9295

query I rowsort
SELECT tab1.col0 - col2 * + col1 FROM tab1
----
-1168
-1401
-506

query I rowsort
SELECT - col1 * + col2 + - col0 AS col1 FROM tab1 AS cor0
----
-1328
-1407
-634

query I rowsort
SELECT cor0.col1 - cor0.col2 AS col1 FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT DISTINCT + 98 AS col1 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-4980
SELECT - col1 DIV ( 35 * - col0 ) + col0 AS col1 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-4980
SELECT - col1 / ( 35 * - col0 ) + col0 AS col1 FROM tab1 AS cor0
----
3
64
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4981
SELECT + CAST( ( - col1 ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-4981
SELECT + CAST ( ( - col1 ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-10
-13
-26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4982
SELECT CAST( NULL AS SIGNED ) * - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4982
SELECT CAST ( NULL AS INTEGER ) * - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 60 * + col0 AS col2 FROM tab1 cor0
----
180
3840
4800

query I rowsort
SELECT + + col0 * + col0 + col0 AS col0 FROM tab0 cor0
----
1260
600
8010

query I rowsort
SELECT ( ( - col1 ) ) AS col0 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT + ( + 59 ) AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

query I rowsort
SELECT - cor0.col1 * col1 + col0 FROM tab2 AS cor0
----
-210
-3403
-954

onlyif mysql # use DIV operator for integer division
query I rowsort label-4988
SELECT ALL - col0 DIV + cor0.col1 + col1 AS col0 FROM tab1 AS cor0
----
26
4
7

skipif mysql # not compatible
query I rowsort label-4988
SELECT ALL - col0 / + cor0.col1 + col1 AS col0 FROM tab1 AS cor0
----
26
4
7

query I rowsort
SELECT 74 + - cor0.col1 FROM tab1 AS cor0
----
48
61
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 25 + - col1 col1 FROM tab0 AS cor0
----
-111
-116
-122

query I rowsort
SELECT ALL - 28 + - 0 AS col0 FROM tab1 AS cor0
----
-28
-28
-28

query I rowsort
SELECT - - 37 * + col1 + col2 FROM tab0 cor0
----
3215
3449
3590

query I rowsort
SELECT DISTINCT ( + col0 ) + col1 FROM tab1 cor0
----
29
74
93

query I rowsort
SELECT DISTINCT - + col2 + - cor0.col1 * - col0 AS col2 FROM tab0 AS cor0
----
2031
3394
8017

query I rowsort
SELECT ALL + + col2 * + col2 AS col1 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT DISTINCT - 92 FROM tab1, tab2 AS cor0
----
-92

query I rowsort
SELECT + - 51 - 49 FROM tab0 cor0
----
-100
-100
-100

query I rowsort
SELECT DISTINCT - - 87 + 24 + col2 FROM tab1 cor0
----
165
168
207

query I rowsort
SELECT ALL + col1 + ( col2 ) FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT ALL - - 94 * - col0 - cor0.col1 AS col0 FROM tab0 AS cor0
----
-2342
-3387
-8457

query I rowsort
SELECT ALL - 77 * - col0 + col0 + + col0 FROM tab0 AS cor0
----
1896
2765
7031

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 46 * - col1 + + col2 * 84 col2 FROM tab2 AS cor0
----
-530
2410
842

query I rowsort
SELECT + 59 * col2 + 23 FROM tab2 cor0
----
1557
1616
2265

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 77 col0 FROM tab1, tab1 AS cor0
----
77

query I rowsort
SELECT tab2.col2 + col0 * - col1 FROM tab2
----
-1305
-190
-4576

query I rowsort
SELECT + ( cor0.col1 ) + 26 * col1 FROM tab2 AS cor0
----
1593
459
837

onlyif mysql # use DIV operator for integer division
query I rowsort label-5007
SELECT - + cor0.col1 DIV col1 AS col0 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5007
SELECT - + cor0.col1 / col1 AS col0 FROM tab1 AS cor0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 18 col0 FROM tab0 AS cor0
----
-18
-18
-18

query I rowsort
SELECT - - ( + col2 ) + - col0 + - col1 AS col1 FROM tab2 AS cor0
----
-11
-111
-58

query I rowsort
SELECT ALL + col0 + - 1 + + tab0.col2 FROM tab0
----
170
35
56

query I rowsort
SELECT col1 - - 99 FROM tab2
----
116
130
158

query I rowsort
SELECT DISTINCT ( - col0 ) + col2 AS col0 FROM tab0
----
-34
-7
9

query I rowsort
SELECT DISTINCT - col1 * col2 - - col0 AS col2 FROM tab1 AS cor0
----
-1168
-1401
-506

query I rowsort
SELECT - col0 * col2 + + 96 FROM tab0 AS cor0
----
-696
-7202
61

query I rowsort
SELECT col1 * 57 - + 45 * - col0 * col2 FROM tab0 AS cor0
----
333597
40542
7104

query I rowsort
SELECT ALL + col0 * + 47 - + col0 FROM tab0 AS cor0
----
1104
1610
4094

query I rowsort
SELECT DISTINCT - col0 + 59 * cor0.col2 FROM tab2 AS cor0
----
1456
1586
2163

query I rowsort
SELECT ALL + col2 + + 84 FROM tab0 AS cor0
----
117
166
85

query I rowsort
SELECT ALL - col0 * ( + cor0.col2 ) FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT + col1 - cor0.col2 AS col1 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT DISTINCT - cor0.col1 + + col2 * + col2 AS col1 FROM tab2 AS cor0
----
1427
617
698

query I rowsort
SELECT DISTINCT - cor0.col0 - - 55 FROM tab1 AS cor0
----
-25
-9
52

query I rowsort
SELECT DISTINCT + - col1 * + ( + col0 ) + col1 + 35 * - cor0.col2 FROM tab0 AS cor0
----
-10878
-3133
-3333

query I rowsort
SELECT DISTINCT - col2 + - 98 AS col2 FROM tab0 AS cor0
----
-131
-180
-99

query I rowsort
SELECT ALL - col1 - - ( ( col2 ) ) * + col2 * + col2 AS col2 FROM tab0
----
-96
35851
551277

query I rowsort
SELECT - col1 - ( 78 ) * - col2 FROM tab0
----
-19
2488
6305

query I rowsort
SELECT - + col0 + col2 * cor0.col0 FROM tab1 AS cor0
----
159
3584
7600

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + 68 col0 FROM tab0 AS cor0
----
-14
35
67

query I rowsort
SELECT DISTINCT col0 * + 42 + - 25 AS col0 FROM tab0 AS cor0
----
1445
3713
983

query I rowsort
SELECT 82 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 99920d9f7cd9cdccef99cfa459ae6944

query I rowsort
SELECT DISTINCT + col2 * col1 + - col0 FROM tab2
----
1456
567
830

query IIIIIIIII rowsort
SELECT ALL * FROM tab0, tab2, tab1 AS cor0 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT ALL col2 * col0 * col0 AS col1 FROM tab0
----
1225
19008
649522

query I rowsort
SELECT DISTINCT + 26 + col0 AS col0 FROM tab1 AS cor0
----
106
29
90

query I rowsort
SELECT - col2 + - col0 * + 37 FROM tab2 AS cor0
----
-286
-2912
-2961

query I rowsort
SELECT ALL cor0.col0 * + ( col1 + + cor0.col2 ) AS col2 FROM tab2 AS cor0
----
406
4345
6630

query I rowsort
SELECT ALL - 12 AS col0 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 3983bffe2adf88cb2efc3be93ee620c0

query I rowsort
SELECT - col0 * + col1 + - col1 FROM tab2 AS cor0
----
-1360
-248
-4661

query I rowsort
SELECT + col0 * + 72 + col0 * cor0.col0 AS col0 FROM tab1 AS cor0
----
12160
225
8704

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5040
SELECT - col1 + CAST( 21 + col2 AS SIGNED ) FROM tab0 AS cor0
----
-32
-75
12

skipif mysql # not compatible
query I rowsort label-5040
SELECT - col1 + CAST ( 21 + col2 AS INTEGER ) FROM tab0 AS cor0
----
-32
-75
12

query I rowsort
SELECT - col2 + - 46 FROM tab2 cor0
----
-72
-73
-84

onlyif mysql # use DIV operator for integer division
query I rowsort label-5042
SELECT + + col1 DIV col1 + col2 FROM tab2 AS cor0
----
27
28
39

skipif mysql # not compatible
query I rowsort label-5042
SELECT + + col1 / col1 + col2 FROM tab2 AS cor0
----
27
28
39

query I rowsort
SELECT ALL + 32 + - col1 FROM tab2 AS cor0
----
-27
1
15

query I rowsort
SELECT DISTINCT ( - cor0.col0 ) + col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT 16 * col0 + col2 * ( col2 + - col2 ) AS col1 FROM tab0 AS cor0
----
1424
384
560

query I rowsort
SELECT ALL - ( + col2 ) * - col1 AS col2 FROM tab1 cor0
----
1248
1404
570

query I rowsort
SELECT DISTINCT - - ( 37 ) FROM tab1 AS cor0
----
37

query I rowsort
SELECT DISTINCT + - 12 AS col2 FROM tab2 AS cor0
----
-12

onlyif mysql # use DIV operator for integer division
query I rowsort label-5049
SELECT DISTINCT + col2 * + col2 + col0 + col2 DIV - col1 AS col1 FROM tab0 AS cor0
----
1113
36
6813

skipif mysql # not compatible
query I rowsort label-5049
SELECT DISTINCT + col2 * + col2 + col0 + col2 / - col1 AS col1 FROM tab0 AS cor0
----
1113
36
6813

query I rowsort
SELECT ALL - ( 93 ) + - col0 FROM tab2 AS cor0
----
-100
-171
-172

query I rowsort
SELECT + ( col0 ) + col0 * 77 FROM tab2 AS cor0
----
546
6084
6162

onlyif mysql # use DIV operator for integer division
query I rowsort label-5052
SELECT ALL + - 60 DIV 3 AS col0 FROM tab1 cor0
----
-20
-20
-20

skipif mysql # not compatible
query I rowsort label-5052
SELECT ALL + - 60 / 3 AS col0 FROM tab1 cor0
----
-20
-20
-20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 44 + + 45 col0 FROM tab2 AS cor0
----
89
89
89

query I rowsort
SELECT ALL - col0 * - col2 + + col1 AS col2 FROM tab1 AS cor0
----
188
3658
7693

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 - 26 col0 FROM tab2 AS cor0
----
-104
-105
-33

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5056
SELECT - CAST( NULL AS DECIMAL ) * + ( col1 ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5056
SELECT - CAST ( NULL AS REAL ) * + ( col1 ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 21 - + col0 * ( 16 ) AS col0 FROM tab2 AS cor0
----
-1227
-1243
-91

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5058
SELECT - ( - col2 ) * - CAST( + col0 AS SIGNED ) + col2 AS col1 FROM tab0 AS cor0
----
-34
-7216
-759

skipif mysql # not compatible
query I rowsort label-5058
SELECT - ( - col2 ) * - CAST ( + col0 AS INTEGER ) + col2 AS col1 FROM tab0 AS cor0
----
-34
-7216
-759

query I rowsort
SELECT + - 1 - - col1 FROM tab2 AS cor0
----
16
30
58

query I rowsort
SELECT 50 * + col2 * col0 - col1 FROM tab2 AS cor0
----
101341
150083
9419

onlyif mysql # use DIV operator for integer division
query I rowsort label-5061
SELECT ALL - - col2 + 95 DIV + col2 FROM tab0 AS cor0
----
35
83
96

skipif mysql # not compatible
query I rowsort label-5061
SELECT ALL - - col2 + 95 / + col2 FROM tab0 AS cor0
----
35
83
96

query I rowsort
SELECT DISTINCT + cor0.col2 + col2 * - col1 + col2 * col0 FROM tab1 AS cor0
----
-1188
3135
6528

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 * ( + 88 ) col0 FROM tab0, tab2 AS cor0
----
1496
2728
5192

query I rowsort
SELECT ALL col2 * + 26 FROM tab2
----
676
702
988

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5065
SELECT CAST( NULL AS SIGNED ) * 1 + - col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5065
SELECT CAST ( NULL AS INTEGER ) * 1 + - col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 22 FROM tab0, tab1 AS cor0
----
9 values hashing to fae46f8148b02964f7145eb6ed5819f9

query IIIIIIIIIIIIIIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab2, tab0 AS cor1, tab1, tab2 cor2, tab0
----
13122 values hashing to 753b837e3d667930b4b6e454dff8f620

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab2, tab2 cor1, tab2 AS cor2, tab0 AS cor3
----
3645 values hashing to 5ec52b92c3c8d78cc0a61df3fc16f18b

query I rowsort
SELECT DISTINCT + 37 AS col0 FROM tab1, tab1 AS cor0
----
37

query I rowsort
SELECT - 93 * col0 AS col2 FROM tab0 cor0
----
-2232
-3255
-8277

query I rowsort
SELECT ALL + 27 + + cor0.col2 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to ca27292b3487f07c4670288a49aa8d46

query I rowsort
SELECT DISTINCT - col0 * col0 + - col2 AS col1 FROM tab2
----
-6110
-6279
-76

query I rowsort
SELECT ALL + col0 * - tab2.col0 + col2 * + tab2.col1 * tab2.col1 FROM tab2
----
25898
4741
84422

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 <= ( - col2 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

query I rowsort
SELECT tab1.col2 * tab1.col1 + + col2 + - col1 FROM tab1 WHERE NOT NULL IN ( col2 * + col2 * - col2 + col0 )
----

query I rowsort
SELECT ALL + col1 + col1 * + col1 AS col0 FROM tab2
----
306
3540
992

query I rowsort
SELECT DISTINCT + tab0.col2 + - col1 FROM tab0 WHERE NOT col2 BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT + col0 * + col2 + - tab0.col2 FROM tab0
----
34
7216
759

query III rowsort
SELECT * FROM tab2 WHERE ( col2 ) IN ( - col2 + + tab2.col1 * - col0 )
----

query I rowsort
SELECT DISTINCT col0 * - col1 + + col0 FROM tab0
----
-2040
-3360
-8010

query I rowsort
SELECT + col2 * - tab2.col1 AS col1 FROM tab2 WHERE NULL <> NULL
----

query I rowsort
SELECT ALL - tab2.col1 * + col0 + col2 AS col0 FROM tab2
----
-1305
-190
-4576

query I rowsort
SELECT DISTINCT + col2 * - tab2.col0 FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT ALL - col2 * - col2 + col1 * - tab1.col1 AS col0 FROM tab1
----
2240
3149
9047

query I rowsort
SELECT ALL tab1.col1 FROM tab1 WHERE ( NULL ) <= NULL
----

query I rowsort
SELECT ALL + col1 AS col1 FROM tab0 WHERE NOT ( + col0 ) NOT BETWEEN col0 * col2 AND col0
----
97

query I rowsort
SELECT tab1.col0 * - col0 + col1 AS col0 FROM tab1
----
-4086
-6387
17

query I rowsort
SELECT ALL col0 * + col2 + + col1 FROM tab1 WHERE NULL NOT IN ( col1 )
----

query I rowsort
SELECT DISTINCT + col0 * col2 + col0 FROM tab1
----
165
3712
7760

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NULL ) <> ( NULL )
----

query I rowsort
SELECT + col0 + col2 * col1 FROM tab1
----
1328
1407
634

query I rowsort
SELECT ALL + col1 * + col2 * + col2 FROM tab0
----
611884
93654
97

query I rowsort
SELECT + col2 * col2 - - col2 * col2 AS col1 FROM tab1 cor0
----
18432
5832
6498

query I rowsort
SELECT + col0 * col1 * cor0.col2 - + col2 FROM tab2 AS cor0
----
119626
50996
5832

query I rowsort
SELECT + col2 + + tab0.col1 * + col1 * col1 AS col0 FROM tab0
----
636089
753653
912674

query III rowsort
SELECT * FROM tab1 WHERE col1 + - col1 * - col0 NOT IN ( tab1.col2 * + col1 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

query I rowsort
SELECT DISTINCT tab1.col2 + - col1 + col2 FROM tab1
----
104
179
82

query I rowsort
SELECT + col2 * - col0 * - col0 AS col2 FROM tab1
----
233472
486
614400

query I rowsort
SELECT - col2 + col0 * + col0 + - col0 FROM tab1
----
-48
3975
6224

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + tab1.col0 + col0 col2 FROM tab1
----
192
240
9

query I rowsort
SELECT + col0 * + col1 + col1 + + col2 FROM tab0
----
2183
3493
8272

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab2.col0 + - col1 * col2 - - col0 col0 FROM tab2
----
-1378
-488
-823

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + tab2.col0 + - col1 col1 FROM tab2
----
18
6025
6224

query I rowsort
SELECT - cor0.col2 - col2 AS col1 FROM tab1 cor0
----
-108
-114
-192

query I rowsort
SELECT DISTINCT - col0 + + col0 * cor0.col0 FROM tab2 AS cor0
----
42
6006
6162

query I rowsort
SELECT ALL + col0 * - col1 + cor0.col2 FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( - col1 * col2 * - col0 )
----

query I rowsort
SELECT ALL col0 + + col2 * - col2 + - col1 * + col1 FROM tab1
----
-3285
-3589
-9305

query I rowsort
SELECT DISTINCT - col2 + + col2 * - 11 AS col2 FROM tab2 AS cor0
----
-312
-324
-456

query I rowsort
SELECT ALL col2 * col2 * - col1 FROM tab0 AS cor0
----
-611884
-93654
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 * - col0 col2 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT ( col2 ) + + cor0.col2 * 50 AS col1 FROM tab0 AS cor0
----
1683
4182
51

query I rowsort
SELECT ALL + ( + col2 ) * col2 + - col1 FROM tab2 AS cor0
----
1427
617
698

query I rowsort
SELECT + ( + 43 ) - - cor0.col0 * + 4 FROM tab2 cor0
----
355
359
71

query I rowsort
SELECT DISTINCT + + ( 15 ) * + col2 AS col0 FROM tab0 cor0
----
1230
15
495

query I rowsort
SELECT 17 * col2 + - col0 AS col2 FROM tab0 AS cor0
----
-18
1305
537

query I rowsort
SELECT + + col0 + col0 * col0 AS col0 FROM tab1 AS cor0
----
12
4160
6480

onlyif mysql # use DIV operator for integer division
query I rowsort label-5117
SELECT col0 + 17 * col1 DIV 44 AS col2 FROM tab2 AS cor0
----
100
18
85

skipif mysql # not compatible
query I rowsort label-5117
SELECT col0 + 17 * col1 / 44 AS col2 FROM tab2 AS cor0
----
100
18
85

query I rowsort
SELECT DISTINCT - tab2.col2 * col0 * col2 AS col2 FROM tab2
----
-114076
-5103
-52728

query I rowsort
SELECT ALL + 41 AS col2 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to f6a440b478f0d00f8326a8c51fe094b8

onlyif mysql # use DIV operator for integer division
query I rowsort label-5120
SELECT DISTINCT 47 DIV col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5120
SELECT DISTINCT 47 / col1 FROM tab0
----
0

query I rowsort
SELECT ALL - 47 * col1 AS col0 FROM tab0
----
-4042
-4277
-4559

query I rowsort
SELECT ALL - + col0 * - cor0.col1 * - col2 FROM tab0 AS cor0
----
-3395
-664118
-68112

onlyif mysql # use DIV operator for integer division
query I rowsort label-5123
SELECT + 18 DIV col0 FROM tab2 cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-5123
SELECT + 18 / col0 FROM tab2 cor0
----
0
0
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 15 col1 FROM tab2 cor0
----
15

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5125
SELECT ALL cor0.col2 * + CAST( NULL AS DECIMAL ) + - col0 + + cor0.col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5125
SELECT ALL cor0.col2 * + CAST ( NULL AS REAL ) + - col0 + + cor0.col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - cor0.col2 * - ( + col2 ) AS col2 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT DISTINCT - + col2 * - 90 AS col2 FROM tab2 AS cor0
----
2340
2430
3420

query I rowsort
SELECT col2 + - col2 * - col1 * - col1 FROM tab2 cor0
----
-10944
-25920
-90480

onlyif mysql # use DIV operator for integer division
query I rowsort label-5129
SELECT col2 + col2 DIV - 38 AS col2 FROM tab0 AS cor0
----
1
33
80

skipif mysql # not compatible
query I rowsort label-5129
SELECT col2 + col2 / - 38 AS col2 FROM tab0 AS cor0
----
1
33
80

query I rowsort
SELECT ALL + col1 * - ( cor0.col1 ) * col1 AS col1 FROM tab2 AS cor0
----
-205379
-29791
-4913

query I rowsort
SELECT - - col2 + - col1 * - 85 AS col1 FROM tab0 AS cor0
----
7343
7817
8246

query I rowsort
SELECT + ( col2 ) - + col1 AS col1 FROM tab1 AS cor0
----
28
47
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-5133
SELECT + col1 - + 95 DIV col1 AS col1 FROM tab2 AS cor0
----
12
28
58

skipif mysql # not compatible
query I rowsort label-5133
SELECT + col1 - + 95 / col1 AS col1 FROM tab2 AS cor0
----
12
28
58

query I rowsort
SELECT + - ( col0 ) + col2 AS col2 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT DISTINCT + cor1.col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
10
13
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * - 54 - - col0 col1 FROM tab2 AS cor0
----
1681
3264
997

query I rowsort
SELECT DISTINCT - 94 * col2 + col0 + - col0 AS col2 FROM tab0
----
-3102
-7708
-94

query I rowsort
SELECT - col1 + col2 + + cor0.col1 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT ALL + 80 + + col1 AS col2 FROM tab1 cor0
----
106
90
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( 19 ) col2 FROM tab0
----
-19
-19
-19

query I rowsort
SELECT - 38 * + col2 * tab2.col0 AS col1 FROM tab2
----
-114076
-7182
-77064

query I rowsort
SELECT col2 + - 74 AS col0 FROM tab1 AS cor0
----
-17
-20
22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 66 col2 FROM tab0
----
66
66
66

query I rowsort
SELECT ALL - col1 - 4 AS col0 FROM tab0 AS cor0
----
-101
-90
-95

query I rowsort
SELECT ALL + col2 - ( - 94 * col1 ) FROM tab1 AS cor0
----
1318
2498
997

query I rowsort
SELECT DISTINCT col2 + ( col0 ) AS col2 FROM tab1 AS cor0
----
121
176
57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5147
SELECT DISTINCT + + cor0.col0 + - CAST( NULL AS SIGNED ) * col1 * - col2 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5147
SELECT DISTINCT + + cor0.col0 + - CAST ( NULL AS INTEGER ) * col1 * - col2 AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + - col2 * 75 AS col2 FROM tab1 AS cor0
----
-4050
-4275
-7200

query I rowsort
SELECT - col0 * - col1 * - cor0.col0 AS col1 FROM tab0 AS cor0
----
-118825
-49536
-720811

query I rowsort
SELECT - col0 * - col1 * + col0 FROM tab2 cor0
----
106097
1519
358956

query I rowsort
SELECT ALL - col1 - + col0 * col1 FROM tab1 AS cor0
----
-104
-1053
-650

query I rowsort
SELECT DISTINCT col2 * + cor0.col1 AS col0 FROM tab2 cor0
----
1534
646
837

query I rowsort
SELECT ALL - cor0.col2 + col0 * col2 FROM tab1 AS cor0
----
108
3591
7584

query I rowsort
SELECT DISTINCT col2 + col1 * + col1 AS col2 FROM tab0 AS cor0
----
7429
8363
9410

query I rowsort
SELECT + + 57 * col0 AS col1 FROM tab2 AS cor0
----
399
4446
4503

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col2 + + col1 col2 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT 74 FROM tab2 cor0
----
74
74
74

onlyif mysql # use DIV operator for integer division
query I rowsort label-5158
SELECT + col0 + col2 DIV col0 col1 FROM tab0 AS cor0
----
25
35
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5158
SELECT + col0 + col2 / col0 col1 FROM tab0 AS cor0
----
25
35
89

query I rowsort
SELECT DISTINCT - ( + tab2.col0 ) * col1 FROM tab2
----
-1343
-217
-4602

query I rowsort
SELECT DISTINCT - - col2 * + col0 + cor0.col2 AS col1 FROM tab1 cor0
----
216
3705
7776

query I rowsort
SELECT DISTINCT col2 * col1 + - col0 * col1 * col1 + + col0 * + 50 FROM tab0
----
-173466
-327468
-725097

query I rowsort
SELECT 1 - col2 * 44 AS col1 FROM tab2 cor0
----
-1143
-1187
-1671

query I rowsort
SELECT ALL - ( + col1 ) + col0 * col2 FROM tab1 AS cor0
----
136
3638
7667

query I rowsort
SELECT - col1 * col1 + 5 FROM tab1 AS cor0
----
-164
-671
-95

query I rowsort
SELECT cor0.col0 * - col0 + - ( 77 ) FROM tab1 AS cor0
----
-4173
-6477
-86

query I rowsort
SELECT DISTINCT - 25 + col1 FROM tab2 AS cor0
----
-8
34
6

onlyif mysql # use DIV operator for integer division
query I rowsort label-5167
SELECT 77 DIV - cor0.col0 - col1 AS col1 FROM tab2 AS cor0
----
-17
-42
-59

skipif mysql # not compatible
query I rowsort label-5167
SELECT 77 / - cor0.col0 - col1 AS col1 FROM tab2 AS cor0
----
-17
-42
-59

onlyif mysql # use DIV operator for integer division
query I rowsort label-5168
SELECT ALL + col2 * - col1 DIV + col1 + + col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5168
SELECT ALL + col2 * - col1 / + col1 + + col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + col2 * - cor0.col0 + - cor0.col2 * col1 * - col2 AS col1 FROM tab1 AS cor0
----
112128
28842
75654

query I rowsort
SELECT + - col1 * col0 + ( 27 + - col0 ) FROM tab0 AS cor0
----
-2061
-3403
-8161

onlyif mysql # use DIV operator for integer division
query I rowsort label-5171
SELECT DISTINCT + col1 * col2 + - ( col1 ) DIV cor0.col1 AS col0 FROM tab2 AS cor0
----
1533
645
836

skipif mysql # not compatible
query I rowsort label-5171
SELECT DISTINCT + col1 * col2 + - ( col1 ) / cor0.col1 AS col0 FROM tab2 AS cor0
----
1533
645
836

onlyif mysql # use DIV operator for integer division
query I rowsort label-5172
SELECT DISTINCT + col2 DIV + ( col1 ) FROM tab2 AS cor0
----
0
2

skipif mysql # not compatible
query I rowsort label-5172
SELECT DISTINCT + col2 / + ( col1 ) FROM tab2 AS cor0
----
0
2

query I rowsort
SELECT + + col0 * cor0.col2 * - 2 + + col2 + ( + ( col0 ) + cor0.col1 * - 79 ) AS col1 FROM tab1 AS cor0
----
-16211
-2321
-7965

query I rowsort
SELECT ALL - col2 + + cor0.col2 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL col0 * + col2 - col0 AS col0 FROM tab0
----
0
7209
768

query I rowsort
SELECT tab0.col2 * 39 FROM tab0, tab0 AS cor0
----
9 values hashing to 4b70e57583cb555cbe186753e1351ffb

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5177
SELECT - + CAST( NULL AS SIGNED ) * - 2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5177
SELECT - + CAST ( NULL AS INTEGER ) * - 2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5178
SELECT ALL CAST( ( + col1 ) AS SIGNED ) + CAST( col2 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
109
67
80

skipif mysql # not compatible
query I rowsort label-5178
SELECT ALL CAST ( ( + col1 ) AS INTEGER ) + CAST ( col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
109
67
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5179
SELECT DISTINCT - CAST( col1 AS SIGNED ) + - col2 AS col1 FROM tab0 AS cor0
----
-119
-173
-98

skipif mysql # not compatible
query I rowsort label-5179
SELECT DISTINCT - CAST ( col1 AS INTEGER ) + - col2 AS col1 FROM tab0 AS cor0
----
-119
-173
-98

query I rowsort
SELECT ALL + ( - col2 ) + - col1 * 67 * col1 AS col2 FROM tab2 AS cor0
----
-19401
-233253
-64414

query I rowsort
SELECT DISTINCT + + ( + col0 ) - - cor0.col1 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT + - cor0.col2 * col0 + - col2 FROM tab0 AS cor0
----
-36
-7380
-825

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 99 + + 29 col0 FROM tab2 AS cor0
----
-70
-70
-70

onlyif mysql # use DIV operator for integer division
query I rowsort label-5184
SELECT DISTINCT + col0 DIV - cor0.col1 - col1 col0 FROM tab0 cor0
----
-86
-91
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5184
SELECT DISTINCT + col0 / - cor0.col1 - col1 col0 FROM tab0 cor0
----
-86
-91
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-5185
SELECT + 83 DIV col1 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5185
SELECT + 83 / col1 AS col2 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL + cor0.col2 + - tab0.col1 AS col0 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to a8817a735e8dbbbc251a641bfd8651b6

query I rowsort
SELECT DISTINCT - col0 * col2 + + ( ( col2 ) ) * col0 AS col2 FROM tab1 cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5188
SELECT col1 - - col1 DIV - col0 AS col2 FROM tab2 AS cor0
----
17
27
59

skipif mysql # not compatible
query I rowsort label-5188
SELECT col1 - - col1 / - col0 AS col2 FROM tab2 AS cor0
----
17
27
59

query I rowsort
SELECT - 88 + col2 * tab2.col0 FROM tab2
----
101
1940
2914

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5190
SELECT ALL + col1 + col1 / CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5190
SELECT ALL + col1 + col1 / CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 49 AS col0 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
49

onlyif mysql # use DIV operator for integer division
query I rowsort label-5192
SELECT DISTINCT - cor0.col1 DIV col2 + col1 + - cor0.col2 FROM tab1 cor0
----
-28
-47
-83

skipif mysql # not compatible
query I rowsort label-5192
SELECT DISTINCT - cor0.col1 / col2 + col1 + - cor0.col2 FROM tab1 cor0
----
-28
-47
-83

query I rowsort
SELECT DISTINCT + col0 * + col2 - col2 FROM tab2 AS cor0
----
162
2002
2964

onlyif mysql # use DIV operator for integer division
query I rowsort label-5194
SELECT col0 DIV - tab1.col0 AS col0 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5194
SELECT col0 / - tab1.col0 AS col0 FROM tab1
----
-1
-1
-1

query I rowsort
SELECT ALL 50 * + col1 + - col2 AS col2 FROM tab0
----
4267
4468
4849

onlyif mysql # use DIV operator for integer division
query I rowsort label-5196
SELECT DISTINCT + col0 DIV col0 + - col0 FROM tab0
----
-23
-34
-88

skipif mysql # not compatible
query I rowsort label-5196
SELECT DISTINCT + col0 / col0 + - col0 FROM tab0
----
-23
-34
-88

query I rowsort
SELECT ALL + col0 + tab1.col2 * + col0 AS col1 FROM tab1
----
165
3712
7760

query I rowsort
SELECT DISTINCT + col0 + col0 * ( col0 ) AS col1 FROM tab0
----
1260
600
8010

onlyif mysql # use DIV operator for integer division
query I rowsort label-5199
SELECT DISTINCT - col2 DIV - col0 + ( col1 ) AS col1 FROM tab2
----
17
34
59

skipif mysql # not compatible
query I rowsort label-5199
SELECT DISTINCT - col2 / - col0 + ( col1 ) AS col1 FROM tab2
----
17
34
59

query I rowsort
SELECT - + 81 * tab2.col2 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 640d96604aac8a415b8d187370909909

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col0 + col0 * + 6 col1 FROM tab1 AS cor0
----
15
320
400

query I rowsort
SELECT ALL tab0.col2 + - 46 * 37 AS col1 FROM tab0
----
-1620
-1669
-1701

query I rowsort
SELECT + col0 + - col2 * + col0 AS col0 FROM tab0
----
-7209
-768
0

query I rowsort
SELECT ALL col1 + + col0 * 10 * + col1 AS col1 FROM tab0
----
20726
34047
81081

query I rowsort
SELECT DISTINCT col0 + + col1 * col1 AS col1 FROM tab1 AS cor0
----
164
249
679

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * + col2 + - col1 + - col1 * col1 col1 FROM tab2 AS cor0
----
-263
-2864
1138

query I rowsort
SELECT ALL col2 + + tab2.col1 AS col2 FROM tab2
----
55
58
85

query I rowsort
SELECT + col0 * - col2 + - col1 FROM tab2
----
-2087
-220
-3019

skipif mysql # not compatible
query I rowsort
SELECT ALL + CAST ( + 53 AS REAL ) + col1 AS col2 FROM tab1 cor0
----
63
66
79

query I rowsort
SELECT DISTINCT + + 9 AS col0 FROM tab2 AS cor0
----
9

query I rowsort
SELECT + 54 * col2 FROM tab2 cor0
----
1404
1458
2052

query I rowsort
SELECT ALL + - col1 * - cor0.col2 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT DISTINCT - + 69 * - 98 FROM tab0 cor0
----
6762

query I rowsort
SELECT + 24 * ( + col1 ) AS col0 FROM tab2 cor0
----
1416
408
744

query I rowsort
SELECT + - col0 + - cor0.col0 * col1 + col0 * - 67 FROM tab2 AS cor0
----
-6715
-693
-9906

onlyif mysql # use DIV operator for integer division
query I rowsort label-5216
SELECT DISTINCT - - 52 + col1 DIV col1 FROM tab0 AS cor0
----
53

skipif mysql # not compatible
query I rowsort label-5216
SELECT DISTINCT - - 52 + col1 / col1 FROM tab0 AS cor0
----
53

query I rowsort
SELECT DISTINCT ( - 15 ) AS col1 FROM tab0 AS cor0
----
-15

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5218
SELECT + CAST( NULL AS DECIMAL ) + 53 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5218
SELECT + CAST ( NULL AS REAL ) + 53 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5219
SELECT ALL - cor0.col0 * - cor0.col2 * - col1 + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5219
SELECT ALL - cor0.col0 * - cor0.col2 * - col1 + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 16 + col1 FROM tab1 cor0
----
26
29
42

query I rowsort
SELECT + + 93 * 35 * cor0.col0 AS col1 FROM tab0 AS cor0
----
113925
289695
78120

onlyif mysql # use DIV operator for integer division
query I rowsort label-5222
SELECT DISTINCT - col2 DIV + 66 + 44 * + col2 FROM tab1
----
2376
2508
4223

skipif mysql # not compatible
query I rowsort label-5222
SELECT DISTINCT - col2 / + 66 + 44 * + col2 FROM tab1
----
2376
2508
4223

query I rowsort
SELECT DISTINCT + 68 + col0 FROM tab0 cor0
----
103
157
92

query I rowsort
SELECT + col0 + - ( + col1 ) * - cor0.col1 * - ( - col0 ) FROM tab2 AS cor0
----
22910
271596
6734

query I rowsort
SELECT ALL 58 AS col1 FROM tab0 cor0
----
58
58
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + 28 ) * cor0.col1 + ( + col0 ) col2 FROM tab2 AS cor0
----
1730
555
875

query I rowsort
SELECT DISTINCT - + 28 * cor0.col1 FROM tab2 AS cor0
----
-1652
-476
-868

query I rowsort
SELECT DISTINCT - + col0 * + 74 * col0 AS col2 FROM tab1 AS cor0
----
-303104
-473600
-666

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 + + col0 col2 FROM tab1 cor0
----
29
74
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-5230
SELECT + col2 DIV 13 AS col2 FROM tab2 AS cor0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-5230
SELECT + col2 / 13 AS col2 FROM tab2 AS cor0
----
2
2
2

onlyif mysql # use DIV operator for integer division
query I rowsort label-5231
SELECT - 51 DIV - col1 AS col1 FROM tab2 AS cor0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-5231
SELECT - 51 / - col1 AS col1 FROM tab2 AS cor0
----
0
1
3

query I rowsort
SELECT DISTINCT ( 12 + + tab1.col2 ) FROM tab1, tab2 AS cor0
----
108
66
69

query I rowsort
SELECT + 70 + - 31 FROM tab1 AS cor0
----
39
39
39

query I rowsort
SELECT + + col0 * col1 + - cor0.col1 * 8 FROM tab1 AS cor0
----
-130
560
936

onlyif mysql # use DIV operator for integer division
query I rowsort label-5235
SELECT - col0 DIV - cor0.col0 + - ( col2 ) * - col0 FROM tab0 AS cor0
----
36
7299
793

skipif mysql # not compatible
query I rowsort label-5235
SELECT - col0 / - cor0.col0 + - ( col2 ) * - col0 FROM tab0 AS cor0
----
36
7299
793

query I rowsort
SELECT - - cor0.col1 * - cor0.col0 + 50 FROM tab2 AS cor0
----
-1293
-167
-4552

query I rowsort
SELECT - + 16 * + col2 FROM tab1 AS cor0
----
-1536
-864
-912

query I rowsort
SELECT DISTINCT - 1 * col2 + col1 FROM tab0
----
53
9
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5239
SELECT ALL + col1 * col0 + - col1 * - CAST( 40 * + col2 AS SIGNED ) AS col2 FROM tab0
----
115584
306579
7275

skipif mysql # not compatible
query I rowsort label-5239
SELECT ALL + col1 * col0 + - col1 * - CAST ( 40 * + col2 AS INTEGER ) AS col2 FROM tab0
----
115584
306579
7275

query I rowsort
SELECT - cor0.col0 * - tab0.col2 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 819103d3cf87b5ea7ab7d6e1018478a0

query I rowsort
SELECT DISTINCT + 26 + cor0.col0 AS col1 FROM tab2, tab2 cor0
----
104
105
33

onlyif mysql # use DIV operator for integer division
query I rowsort label-5242
SELECT + - col0 + + cor0.col0 DIV col0 AS col2 FROM tab0 cor0
----
-23
-34
-88

skipif mysql # not compatible
query I rowsort label-5242
SELECT + - col0 + + cor0.col0 / col0 AS col2 FROM tab0 cor0
----
-23
-34
-88

onlyif mysql # use DIV operator for integer division
query I rowsort label-5243
SELECT DISTINCT col0 * col1 DIV + col2 FROM tab0 AS cor0
----
3395
62
98

skipif mysql # not compatible
query I rowsort label-5243
SELECT DISTINCT col0 * col1 / + col2 FROM tab0 AS cor0
----
3395
62
98

query I rowsort
SELECT DISTINCT - cor0.col2 + - cor0.col1 AS col0 FROM tab2 AS cor0
----
-55
-58
-85

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5245
SELECT DISTINCT + 83 * - cor0.col0 + CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5245
SELECT DISTINCT + 83 * - cor0.col0 + CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL

query I rowsort
SELECT ALL - 96 AS col1 FROM tab0
----
-96
-96
-96

query I rowsort
SELECT ALL col2 * ( col1 ) - col0 AS col2 FROM tab1 cor0
----
1168
1401
506

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 - col1 col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col2 + 2 AS col1 FROM tab2 AS cor0
----
-24
-25
-36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * 77 col0 FROM tab0 AS cor0
----
2541
6314
77

query I rowsort
SELECT ALL - cor0.col0 - ( - 56 * col1 ) AS col0 FROM tab0 AS cor0
----
4792
5007
5397

query I rowsort
SELECT DISTINCT 51 * - col0 * + col1 AS col0 FROM tab2
----
-11067
-234702
-68493

query I rowsort
SELECT + 13 * - col1 FROM tab0
----
-1118
-1183
-1261

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + col1 * col2 col2 FROM tab2
----
119652
51034
5859

query I rowsort
SELECT DISTINCT tab2.col0 * - col2 AS col2 FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT DISTINCT + 98 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
98

query I rowsort
SELECT - col0 + ( col2 ) FROM tab0
----
-34
-7
9

query I rowsort
SELECT - - cor0.col0 * - ( col1 ) AS col2 FROM tab0 cor0
----
-2064
-3395
-8099

query I rowsort
SELECT cor0.col0 * + 3 + + 91 FROM tab0 AS cor0
----
163
196
358

query I rowsort
SELECT - col0 + 85 + col2 AS col1 FROM tab2 AS cor0
----
105
33
44

query I rowsort
SELECT + col0 + + col0 * - 68 AS col2 FROM tab0 AS cor0
----
-1608
-2345
-5963

query I rowsort
SELECT + 24 * - col1 AS col1 FROM tab1 AS cor0
----
-240
-312
-624

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5263
SELECT CAST( + 11 AS SIGNED ) - col1 AS col2 FROM tab0 AS cor0
----
-75
-80
-86

skipif mysql # not compatible
query I rowsort label-5263
SELECT CAST ( + 11 AS INTEGER ) - col1 AS col2 FROM tab0 AS cor0
----
-75
-80
-86

query I rowsort
SELECT + col1 + + ( cor0.col2 ) AS col2 FROM tab2 cor0
----
55
58
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 91 * col0 + + col2 col1 FROM tab0 AS cor0
----
2217
3186
8181

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5266
SELECT - CAST( NULL AS DECIMAL ) * + col2 + + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5266
SELECT - CAST ( NULL AS REAL ) * + col2 + + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * cor0.col0 col2 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT - col2 + col1 * + 33 * 14 - - tab1.col2 AS col2 FROM tab1
----
12012
4620
6006

query I rowsort
SELECT - 64 * - col0 * + 11 + col0 FROM tab2 AS cor0
----
4935
54990
55695

query I rowsort
SELECT DISTINCT + cor0.col2 * col0 * cor0.col0 FROM tab1 AS cor0
----
233472
486
614400

onlyif mysql # use DIV operator for integer division
query I rowsort label-5271
SELECT ALL - col2 * 14 + + col0 + - 18 DIV col0 AS col2 FROM tab1 AS cor0
----
-1264
-734
-759

skipif mysql # not compatible
query I rowsort label-5271
SELECT ALL - col2 * 14 + + col0 + - 18 / col0 AS col2 FROM tab1 AS cor0
----
-1264
-734
-759

query I rowsort
SELECT DISTINCT + col1 - + col2 AS col1 FROM tab1 AS cor0
----
-28
-47
-83

onlyif mysql # use DIV operator for integer division
query I rowsort label-5273
SELECT DISTINCT col2 - col1 DIV + col1 AS col1 FROM tab2 AS cor0
----
25
26
37

skipif mysql # not compatible
query I rowsort label-5273
SELECT DISTINCT col2 - col1 / + col1 AS col1 FROM tab2 AS cor0
----
25
26
37

query I rowsort
SELECT DISTINCT - col2 * + col2 * 62 FROM tab2
----
-41912
-45198
-89528

query I rowsort
SELECT + col0 + - 25 AS col0 FROM tab2
----
-18
53
54

query I rowsort
SELECT DISTINCT col0 * ( - tab1.col1 ) AS col0 FROM tab1
----
-1040
-640
-78

query I rowsort
SELECT ALL + 26 * + cor0.col0 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 41b6b26d7cd29c488633bf055b58762b

query I rowsort
SELECT ALL - 51 + - 88 AS col2 FROM tab2 AS cor0
----
-139
-139
-139

query I rowsort
SELECT ALL + col1 - col1 * + col2 AS col2 FROM tab1 AS cor0
----
-1235
-1378
-560

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 56 + col1 * - col0 col0 FROM tab2 cor0
----
-1287
-161
-4546

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5281
SELECT ( col0 ) * col0 - - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5281
SELECT ( 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 DISTINCT - + col2 * col1 + col0 col2 FROM tab1 AS cor0
----
-1168
-1401
-506

onlyif mysql # use DIV operator for integer division
query I rowsort label-5283
SELECT DISTINCT + ( col2 ) DIV + col1 FROM tab2 AS cor0
----
0
2

skipif mysql # not compatible
query I rowsort label-5283
SELECT DISTINCT + ( col2 ) / + col1 FROM tab2 AS cor0
----
0
2

query I rowsort
SELECT ALL + 23 + + col2 * col2 FROM tab0 AS cor0
----
1112
24
6747

query I rowsort
SELECT ALL - col0 - + cor0.col2 * col0 FROM tab2 AS cor0
----
-196
-2106
-3081

query I rowsort
SELECT cor0.col2 + ( + col2 ) * col0 * 79 AS col2 FROM tab2 AS cor0
----
14958
160238
237196

query I rowsort
SELECT DISTINCT + - 98 + col2 FROM tab1 AS cor0
----
-2
-41
-44

query I rowsort
SELECT ALL + 26 + col1 * col2 - - col0 FROM tab1 AS cor0
----
1354
1433
660

query I rowsort
SELECT DISTINCT col0 * + 7 AS col1 FROM tab2 AS cor0
----
49
546
553

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5290
SELECT DISTINCT + CAST( NULL AS SIGNED ) col2 FROM tab0 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5290
SELECT DISTINCT + CAST ( NULL AS INTEGER ) col2 FROM tab0 cor0
----
NULL

query I rowsort
SELECT col1 * 42 - + cor0.col2 AS col1 FROM tab1 AS cor0
----
1038
363
450

query I rowsort
SELECT col1 * col1 - - tab0.col1 * - col1 FROM tab0
----
0
0
0

query I rowsort
SELECT + - 15 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1172c9a62bdad7db0def9205c06ee1f2

query I rowsort
SELECT ALL - - col2 + col2 * + ( + col2 ) FROM tab2 cor0
----
1482
702
756

query I rowsort
SELECT DISTINCT + + col1 + + cor0.col2 FROM tab1 AS cor0
----
109
67
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-5296
SELECT + col1 * col1 DIV col0 + col1 FROM tab0 AS cor0
----
184
365
394

skipif mysql # not compatible
query I rowsort label-5296
SELECT + col1 * col1 / col0 + col1 FROM tab0 AS cor0
----
184
365
394

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * col2 + + 34 col2 FROM tab0 AS cor0
----
69
7332
826

query I rowsort
SELECT ALL + col0 * + col0 + ( - ( - col1 ) ) AS col2 FROM tab0 cor0
----
1322
662
8012

query I rowsort
SELECT col1 + col0 + 85 AS col2 FROM tab0 cor0
----
195
217
265

query I rowsort
SELECT DISTINCT - col2 + col0 * col0 * + col2 AS col1 FROM tab0 AS cor0
----
1224
18975
649440

onlyif mysql # use DIV operator for integer division
query I rowsort label-5301
SELECT ALL + col1 DIV cor0.col0 AS col2 FROM tab0 cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-5301
SELECT ALL + col1 / cor0.col0 AS col2 FROM tab0 cor0
----
1
2
3

query I rowsort
SELECT col2 * 68 * - 38 AS col1 FROM tab2 AS cor0
----
-67184
-69768
-98192

query I rowsort
SELECT col1 * 10 + + col1 FROM tab1 AS cor0
----
110
143
286

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5304
SELECT DISTINCT + col0 + - CAST( + col2 AS SIGNED ) FROM tab0 AS cor0
----
-9
34
7

skipif mysql # not compatible
query I rowsort label-5304
SELECT DISTINCT + col0 + - CAST ( + col2 AS INTEGER ) FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT ALL + col2 * col2 + - col0 AS col2 FROM tab0 cor0
----
-34
1065
6635

query I rowsort
SELECT DISTINCT - cor0.col2 AS col2 FROM tab2, tab1 AS cor0, tab2 cor1, tab0 AS cor2
----
-54
-57
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-5307
SELECT cor0.col0 + 99 DIV - cor0.col2 FROM tab1 AS cor0
----
2
63
79

skipif mysql # not compatible
query I rowsort label-5307
SELECT cor0.col0 + 99 / - cor0.col2 FROM tab1 AS cor0
----
2
63
79

query I rowsort
SELECT ALL + + col0 * 72 AS col2 FROM tab2 AS cor0
----
504
5616
5688

query I rowsort
SELECT ALL col1 * - col0 * + cor0.col1 AS col0 FROM tab1 AS cor0
----
-13520
-2028
-6400

query I rowsort
SELECT DISTINCT cor0.col0 * + ( + col1 ) FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT ALL - col2 + 46 AS col2 FROM tab2 AS cor0
----
19
20
8

query I rowsort
SELECT - col1 + + ( col1 ) FROM tab0 cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 * + 91 col2 FROM tab0 AS cor0
----
3003
7462
91

query I rowsort
SELECT - col0 + - 3 * 5 FROM tab0 cor0
----
-104
-39
-50

onlyif mysql # use DIV operator for integer division
query I rowsort label-5315
SELECT col2 + CAST( + col0 AS SIGNED ) DIV - col1 AS col0 FROM tab2 AS cor0
----
25
27
34

skipif mysql # not compatible
query I rowsort label-5315
SELECT col2 + CAST ( + col0 AS INTEGER ) / - col1 AS col0 FROM tab2 AS cor0
----
25
27
34

query I rowsort
SELECT ALL - col0 + 97 FROM tab0 AS cor0
----
62
73
8

query I rowsort
SELECT DISTINCT - + col1 + col0 * + ( col0 ) * col2 AS col1 FROM tab0 AS cor0
----
1128
18922
649431

query I rowsort
SELECT ALL + col1 + col0 * - col0 AS col1 FROM tab2 AS cor0
----
-18
-6025
-6224

query I rowsort
SELECT ALL + 56 AS col0 FROM tab0, tab0 cor0
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa

query I rowsort
SELECT DISTINCT + col0 * 53 AS col2 FROM tab1
----
159
3392
4240

query I rowsort
SELECT DISTINCT - + col1 * + cor0.col1 + col2 * - ( col2 ) * col0 FROM tab1 AS cor0
----
-208036
-737449
-9424

onlyif mysql # use DIV operator for integer division
query I rowsort label-5322
SELECT ALL - + col1 + - col2 DIV - 9 AS col0 FROM tab2 cor0
----
-13
-28
-57

skipif mysql # not compatible
query I rowsort label-5322
SELECT ALL - + col1 + - col2 / - 9 AS col0 FROM tab2 cor0
----
-13
-28
-57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 * - col0 + 65 col2 FROM tab2 AS cor0
----
-6019
-6176
16

query I rowsort
SELECT DISTINCT - 68 + col1 * - col0 AS col1 FROM tab1 cor0
----
-1108
-146
-708

query I rowsort
SELECT DISTINCT + - 78 + - col2 FROM tab2 AS cor0
----
-104
-105
-116

query I rowsort
SELECT + col2 + + col2 * - 71 AS col1 FROM tab1 AS cor0
----
-3780
-3990
-6720

onlyif mysql # use DIV operator for integer division
query I rowsort label-5327
SELECT - tab0.col2 DIV - tab0.col2 AS col2 FROM tab2, tab2 AS cor0 CROSS JOIN tab0
----
27 values hashing to da8a72a7967c0c73d91239275230aed9

skipif mysql # not compatible
query I rowsort label-5327
SELECT - tab0.col2 / - tab0.col2 AS col2 FROM tab2, tab2 AS cor0 CROSS JOIN tab0
----
27 values hashing to da8a72a7967c0c73d91239275230aed9

query I rowsort
SELECT ALL ( - tab1.col0 ) + + col0 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT + cor0.col1 - + cor0.col0 FROM tab2 AS cor0
----
-19
-62
24

onlyif mysql # use DIV operator for integer division
query I rowsort label-5330
SELECT DISTINCT + 15 * col0 + - 26 DIV - 34 FROM tab1 AS cor0
----
1200
45
960

skipif mysql # not compatible
query I rowsort label-5330
SELECT DISTINCT + 15 * col0 + - 26 / - 34 FROM tab1 AS cor0
----
1200
45
960

query I rowsort
SELECT + + ( col2 ) * + col1 FROM tab1 cor0
----
1248
1404
570

query I rowsort
SELECT + ( cor0.col1 ) AS col1 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT ALL cor1.col0 + 12 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to ba5c0c61c95a71558ba23090196069ec

query I rowsort
SELECT ALL - col1 * + ( col2 ) * + col0 AS col2 FROM tab0
----
-3395
-664118
-68112

query I rowsort
SELECT - col0 * 55 AS col0 FROM tab1 AS cor0
----
-165
-3520
-4400

onlyif mysql # use DIV operator for integer division
query I rowsort label-5336
SELECT - col0 - - col1 DIV col2 FROM tab0 AS cor0
----
-22
-88
62

skipif mysql # not compatible
query I rowsort label-5336
SELECT - col0 - - col1 / col2 FROM tab0 AS cor0
----
-22
-88
62

query I rowsort
SELECT ALL - 16 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to be22ac76b42c6f7212ecc0ba7c89eb34

query I rowsort
SELECT - - col0 * - ( - col2 * col2 ) - - 58 FROM tab2 AS cor0
----
114134
5161
52786

onlyif mysql # use DIV operator for integer division
query I rowsort label-5339
SELECT - cor0.col2 DIV + col1 + + 98 FROM tab0 cor0
----
98
98
98

skipif mysql # not compatible
query I rowsort label-5339
SELECT - cor0.col2 / + col1 + + 98 FROM tab0 cor0
----
98
98
98

query I rowsort
SELECT col0 * ( col0 ) - col1 AS col1 FROM tab2 AS cor0
----
18
6025
6224

query I rowsort
SELECT - 33 + col2 FROM tab2 AS cor0
----
-6
-7
5

query I rowsort
SELECT - + 53 + col1 * + col2 FROM tab0 AS cor0
----
2785
44
7409

query I rowsort
SELECT + + ( col2 ) * + col0 + + col0 * col0 FROM tab2 AS cor0
----
238
8112
9243

onlyif mysql # use DIV operator for integer division
query I rowsort label-5344
SELECT - - 84 * 99 + + cor0.col2 DIV col1 FROM tab0 AS cor0
----
8316
8316
8316

skipif mysql # not compatible
query I rowsort label-5344
SELECT - - 84 * 99 + + cor0.col2 / col1 FROM tab0 AS cor0
----
8316
8316
8316

query I rowsort
SELECT cor0.col2 + ( - cor0.col0 ) FROM tab1 cor0
----
-7
16
51

query I rowsort
SELECT DISTINCT - col2 + - col0 * col1 AS col2 FROM tab2
----
-1381
-244
-4628

query I rowsort
SELECT ALL + col2 * - 71 + + col1 * - col1 + + ( - col1 ) * col1 AS col1 FROM tab0
----
-17135
-18889
-22384

query I rowsort
SELECT - cor0.col0 * - col2 + + col2 + ( + col2 * col0 ) FROM tab0 AS cor0
----
14678
1617
71

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5349
SELECT CAST( NULL AS SIGNED ) * - 11 - + col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5349
SELECT CAST ( NULL AS INTEGER ) * - 11 - + col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 75 FROM tab1, tab1 cor0
----
75

query I rowsort
SELECT - ( cor0.col2 ) * col1 + - col1 + 70 FROM tab0 AS cor0
----
-124
-2854
-7483

query I rowsort
SELECT 91 - col1 * cor0.col2 AS col0 FROM tab0 cor0
----
-2747
-6
-7371

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5353
SELECT DISTINCT - CAST( NULL AS SIGNED ) + col0 + + col0 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5353
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + col0 + + col0 AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + 1 - - cor0.col1 AS col2 FROM tab2 AS cor0
----
18
32
60

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5355
SELECT DISTINCT - CAST( + col0 AS SIGNED ) - cor0.col2 * col2 * col0 FROM tab1 cor0
----
-208000
-737360
-8751

skipif mysql # not compatible
query I rowsort label-5355
SELECT DISTINCT - CAST ( + col0 AS INTEGER ) - cor0.col2 * col2 * col0 FROM tab1 cor0
----
-208000
-737360
-8751

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5356
SELECT DISTINCT + ( + col2 ) / col1 + CAST( NULL AS SIGNED ) * + 4 col1 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5356
SELECT DISTINCT + ( + col2 ) / col1 + CAST ( NULL AS INTEGER ) * + 4 col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - tab2.col0 * 56 AS col0 FROM tab2
----
-392
-4368
-4424

query I rowsort
SELECT ALL - 34 * col0 FROM tab1
----
-102
-2176
-2720

query I rowsort
SELECT DISTINCT + 83 * + col0 FROM tab0 cor0
----
1992
2905
7387

query I rowsort
SELECT DISTINCT + + col2 * + col1 * + col0 AS col2 FROM tab2 AS cor0
----
119652
51034
5859

query I rowsort
SELECT ALL + 85 + col1 * + col1 FROM tab1 AS cor0
----
185
254
761

query I rowsort
SELECT DISTINCT 61 FROM tab0 cor0
----
61

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5363
SELECT - CAST( NULL AS SIGNED ) * - 83 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5363
SELECT - CAST ( NULL AS INTEGER ) * - 83 AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5364
SELECT DISTINCT col2 * 59 + col0 DIV - ( 25 ) AS col1 FROM tab2
----
1531
1593
2239

skipif mysql # not compatible
query I rowsort label-5364
SELECT DISTINCT col2 * 59 + col0 / - ( 25 ) AS col1 FROM tab2
----
1531
1593
2239

query I rowsort
SELECT - cor1.col1 * 22 AS col2 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 6a34907a3f32ffd66f8778936849ae32

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5366
SELECT + CAST( 25 + + col0 AS SIGNED ) * col0 * - 12 AS col2 FROM tab2
----
-2688
-96408
-98592

skipif mysql # not compatible
query I rowsort label-5366
SELECT + CAST ( 25 + + col0 AS INTEGER ) * col0 * - 12 AS col2 FROM tab2
----
-2688
-96408
-98592

query I rowsort
SELECT 36 + ( + tab0.col0 ) AS col1 FROM tab0
----
125
60
71

onlyif mysql # use DIV operator for integer division
query I rowsort label-5368
SELECT DISTINCT CAST( + col0 * col1 AS SIGNED ) + - col2 * col1 DIV col1 AS col1 FROM tab1
----
24
583
944

skipif mysql # not compatible
query I rowsort label-5368
SELECT DISTINCT CAST ( + col0 * col1 AS INTEGER ) + - col2 * col1 / col1 AS col1 FROM tab1
----
24
583
944

onlyif mysql # use DIV operator for integer division
query I rowsort label-5369
SELECT DISTINCT ( + col0 ) * col1 + - tab2.col0 DIV - col1 AS col1 FROM tab2
----
1347
217
4603

skipif mysql # not compatible
query I rowsort label-5369
SELECT DISTINCT ( + col0 ) * col1 + - tab2.col0 / - col1 AS col1 FROM tab2
----
1347
217
4603

query I rowsort
SELECT ALL + col0 + cor0.col1 * col0 AS col2 FROM tab2 AS cor0
----
1422
224
4680

query I rowsort
SELECT - + col2 + + 7 FROM tab1 AS cor0
----
-47
-50
-89

query I rowsort
SELECT + cor0.col0 * - 79 FROM tab1 cor0
----
-237
-5056
-6320

query I rowsort
SELECT DISTINCT + col2 * 86 + ( col1 ) FROM tab0 AS cor0
----
183
2924
7143

query I rowsort
SELECT + cor0.col1 AS col2 FROM tab2, tab0 cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

query I rowsort
SELECT DISTINCT + ( + col1 ) * + 46 FROM tab1
----
1196
460
598

query I rowsort
SELECT DISTINCT 76 AS col2 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
76

query I rowsort
SELECT - + 49 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to adfccb10c9468825d9961e3613140f89

query I rowsort
SELECT 58 FROM tab1, tab1 AS cor0, tab2 cor1
----
27 values hashing to 9ee363c6ac19cfdb8a50c7dfd5cc2b8a

query I rowsort
SELECT + - col1 * + 93 AS col0 FROM tab1 AS cor0
----
-1209
-2418
-930

query I rowsort
SELECT DISTINCT - ( + col2 ) - + col2 * ( + col1 ) * - cor0.col2 AS col0 FROM tab2 AS cor0
----
22572
24510
39858

query I rowsort
SELECT ALL - - 22 + cor0.col1 FROM tab0 AS cor0
----
108
113
119

query I rowsort
SELECT ALL - col2 + + col2 * col0 FROM tab0 AS cor0
----
34
7216
759

query I rowsort
SELECT DISTINCT 41 + col2 * col0 FROM tab1 AS cor0
----
203
3689
7721

query I rowsort
SELECT ALL + col0 + + col0 + ( - col2 ) FROM tab0 AS cor0
----
15
69
96

query I rowsort
SELECT DISTINCT + + col1 * col0 * col1 AS col1 FROM tab2 AS cor0
----
22831
271518
6727

query I rowsort
SELECT DISTINCT + ( - col2 ) + - col2 * col0 AS col0 FROM tab1
----
-216
-3705
-7776

query I rowsort
SELECT ALL col2 + - 72 * col1 FROM tab0
----
-6159
-6470
-6983

query I rowsort
SELECT ALL - 18 + col1 FROM tab0
----
68
73
79

query I rowsort
SELECT ( + col1 * - col2 ) + col2 AS col0 FROM tab2
----
-1508
-608
-810

query I rowsort
SELECT ALL + ( col1 ) + col1 * - col0 * col1 AS col0 FROM tab0
----
-177418
-329218
-736918

query I rowsort
SELECT - 0 * col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5392
SELECT ALL + 48 DIV + col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5392
SELECT ALL + 48 / + col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col0 * - col0 * col0 + 3 FROM tab1 AS cor0
----
262147
30
512003

onlyif mysql # use DIV operator for integer division
query I rowsort label-5394
SELECT - col2 + + col2 DIV + 9 AS col1 FROM tab1 AS cor0
----
-48
-51
-86

skipif mysql # not compatible
query I rowsort label-5394
SELECT - col2 + + col2 / + 9 AS col1 FROM tab1 AS cor0
----
-48
-51
-86

onlyif mysql # use DIV operator for integer division
query I rowsort label-5395
SELECT ALL + col0 + 77 DIV + 27 + col2 AS col1 FROM tab0
----
173
38
59

skipif mysql # not compatible
query I rowsort label-5395
SELECT ALL + col0 + 77 / + 27 + col2 AS col1 FROM tab0
----
173
38
59

query I rowsort
SELECT DISTINCT + 52 * 86 FROM tab1 AS cor0
----
4472

query I rowsort
SELECT ( + 22 ) + + col1 FROM tab2 AS cor0
----
39
53
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + 95 + col0 col0 FROM tab1 AS cor0
----
1014
1315
2473

query I rowsort
SELECT - - cor0.col2 + col2 * col2 FROM tab1 cor0
----
2970
3306
9312

query I rowsort
SELECT ALL + ( 59 ) FROM tab0 cor0
----
59
59
59

query I rowsort
SELECT ALL - 21 + - 93 AS col0 FROM tab2 AS cor0
----
-114
-114
-114

query I rowsort
SELECT ALL + - 83 + - col0 FROM tab2 AS cor0
----
-161
-162
-90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5403
SELECT ALL - CAST( - col0 AS SIGNED ) * - col1 FROM tab2 AS cor0
----
-1343
-217
-4602

skipif mysql # not compatible
query I rowsort label-5403
SELECT ALL - CAST ( - col0 AS INTEGER ) * - col1 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT - 26 * - tab0.col1 FROM tab0
----
2236
2366
2522

query I rowsort
SELECT ALL - 10 * col1 + cor0.col2 * - ( col0 ) FROM tab0 AS cor0
----
-1005
-1652
-8208

query I rowsort
SELECT col2 * col1 + cor0.col1 AS col2 FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT + - col2 * + col2 + + cor0.col1 AS col2 FROM tab1 AS cor0
----
-2890
-3239
-9203

query I rowsort
SELECT DISTINCT + + 59 FROM tab1 AS cor0
----
59

query I rowsort
SELECT ALL + 94 * 63 + + cor0.col2 FROM tab0 cor0
----
5923
5955
6004

query I rowsort
SELECT ALL - 93 * - col1 AS col1 FROM tab2 AS cor0
----
1581
2883
5487

query I rowsort
SELECT DISTINCT + col2 + - 85 FROM tab2 AS cor0
----
-47
-58
-59

query I rowsort
SELECT ( col1 ) + - col2 * 1 AS col2 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT DISTINCT + ( - 48 ) * cor0.col1 FROM tab0 cor0
----
-4128
-4368
-4656

onlyif mysql # use DIV operator for integer division
query I rowsort label-5414
SELECT DISTINCT - col1 DIV col1 - - 82 * col2 AS col2 FROM tab1 AS cor0
----
4427
4673
7871

skipif mysql # not compatible
query I rowsort label-5414
SELECT DISTINCT - col1 / col1 - - 82 * col2 AS col2 FROM tab1 AS cor0
----
4427
4673
7871

query I rowsort
SELECT ALL - + col2 + - col1 AS col2 FROM tab2 AS cor0
----
-55
-58
-85

query I rowsort
SELECT ALL + cor0.col1 + col1 * ( - ( - cor0.col2 ) + + col1 ) FROM tab0 AS cor0
----
10320
15834
9603

onlyif mysql # use DIV operator for integer division
query I rowsort label-5417
SELECT ALL - - cor0.col0 + col1 DIV - col1 FROM tab2 AS cor0
----
6
77
78

skipif mysql # not compatible
query I rowsort label-5417
SELECT ALL - - cor0.col0 + col1 / - col1 FROM tab2 AS cor0
----
6
77
78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5418
SELECT DISTINCT CAST( NULL AS DECIMAL ) * 57 + + col0 AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5418
SELECT DISTINCT CAST ( NULL AS REAL ) * 57 + + col0 AS col2 FROM tab2
----
NULL

query I rowsort
SELECT ALL + col1 * - ( - 58 ) FROM tab2 AS cor0
----
1798
3422
986

query I rowsort
SELECT - 2 * - 62 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to f95a510ef7a720583a4639131b2cccc3

query I rowsort
SELECT ALL + col2 * + col2 * + col1 + - cor0.col2 AS col2 FROM tab2 AS cor0
----
22572
24510
39858

query I rowsort
SELECT - cor0.col1 * col0 + - col1 * - col1 AS col2 FROM tab0 AS cor0
----
182
5332
6014

query I rowsort
SELECT + col1 * + col2 + - 47 * + cor0.col1 * col0 + + 74 AS col0 FROM tab2 AS cor0
----
-214686
-62401
-9288

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 - 44 * + col2 * + cor0.col1 col0 FROM tab2 AS cor0
----
-28407
-36797
-67437

onlyif mysql # use DIV operator for integer division
query I rowsort label-5425
SELECT DISTINCT - col0 DIV - col1 + 27 col2 FROM tab2 AS cor0
----
27
28
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5425
SELECT DISTINCT - col0 / - col1 + 27 col2 FROM tab2 AS cor0
----
27
28
31

query I rowsort
SELECT ALL - col1 * col2 + - cor0.col0 AS col0 FROM tab1 AS cor0
----
-1328
-1407
-634

query I rowsort
SELECT DISTINCT - col2 - - col0 * 42 AS col2 FROM tab2 AS cor0
----
267
3250
3280

query I rowsort
SELECT DISTINCT - col1 * + col0 * col2 + - col0 FROM tab0 AS cor0
----
-3430
-664207
-68136

query I rowsort
SELECT + col2 * col0 * tab0.col0 AS col1 FROM tab0
----
1225
19008
649522

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5430
SELECT DISTINCT tab1.col2 + col2 * col1 - + col0 * + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5430
SELECT DISTINCT tab1.col2 + col2 * col1 - + col0 * + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT - - 1 + - cor0.col2 + + col1 * - 4 * - col2 FROM tab2 AS cor0
----
2547
3322
6111

query I rowsort
SELECT DISTINCT 15 * + 21 AS col0 FROM tab1 AS cor0
----
315

onlyif mysql # use DIV operator for integer division
query I rowsort label-5433
SELECT DISTINCT col2 * col1 + + 5 * col0 DIV + 53 FROM tab2
----
1541
653
837

skipif mysql # not compatible
query I rowsort label-5433
SELECT DISTINCT col2 * col1 + + 5 * col0 / + 53 FROM tab2
----
1541
653
837

query I rowsort
SELECT col2 + 23 AS col1 FROM tab0
----
105
24
56

onlyif mysql # use DIV operator for integer division
query I rowsort label-5435
SELECT - col1 DIV - col1 + + col0 DIV tab0.col1 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5435
SELECT - col1 / - col1 + + col0 / tab0.col1 FROM tab0
----
1
1
1

query I rowsort
SELECT - col0 * + col1 * - 5 AS col2 FROM tab2
----
1085
23010
6715

query I rowsort
SELECT col2 - + 67 FROM tab0 AS cor0
----
-34
-66
15

query I rowsort
SELECT ALL 70 + + col0 * - ( tab1.col2 ) * - col1 AS col0 FROM tab1
----
36550
4282
99910

query I rowsort
SELECT col0 * + ( tab2.col2 ) FROM tab2
----
189
2028
3002

query I rowsort
SELECT DISTINCT + col2 + col0 * 31 * + col2 FROM tab0
----
1086
226320
24585

query I rowsort
SELECT col0 + - ( - col0 ) * + col1 FROM tab2 AS cor0
----
1422
224
4680

query I rowsort
SELECT + + col1 * ( - col1 ) AS col0 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT ALL - col0 * 62 * col1 FROM tab1 cor0
----
-39680
-4836
-64480

onlyif mysql # use DIV operator for integer division
query I rowsort label-5444
SELECT + ( + col2 ) * - col2 - col0 DIV + cor0.col1 AS col1 FROM tab1 AS cor0
----
-2916
-3255
-9222

skipif mysql # not compatible
query I rowsort label-5444
SELECT + ( + col2 ) * - col2 - col0 / + cor0.col1 AS col1 FROM tab1 AS cor0
----
-2916
-3255
-9222

query I rowsort
SELECT - - 88 - col1 * col2 AS col1 FROM tab0 AS cor0
----
-2750
-7374
-9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5446
SELECT DISTINCT col1 * + cor0.col0 - CAST( col1 * col0 + - col0 AS SIGNED ) FROM tab2 AS cor0
----
7
78
79

skipif mysql # not compatible
query I rowsort label-5446
SELECT DISTINCT col1 * + cor0.col0 - CAST ( col1 * col0 + - col0 AS INTEGER ) FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT - - col2 - - col0 * 1 * + 54 FROM tab1 AS cor0
----
216
3513
4416

onlyif mysql # use DIV operator for integer division
query I rowsort label-5448
SELECT - col0 * col0 DIV + col1 FROM tab0 AS cor0
----
-12
-6
-87

skipif mysql # not compatible
query I rowsort label-5448
SELECT - col0 * col0 / + col1 FROM tab0 AS cor0
----
-12
-6
-87

query I rowsort
SELECT + 47 + - tab0.col0 + + col2 FROM tab0
----
13
40
56

query I rowsort
SELECT ALL + col2 + tab2.col1 * + col2 FROM tab2
----
1560
684
864

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5451
SELECT CAST( NULL AS SIGNED ) + + col1 + col2 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5451
SELECT CAST ( NULL AS INTEGER ) + + col1 + col2 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 + col2 col2 FROM tab1 cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5453
SELECT DISTINCT col1 + col1 DIV col1 AS col2 FROM tab2 AS cor0
----
18
32
60

skipif mysql # not compatible
query I rowsort label-5453
SELECT DISTINCT col1 + col1 / col1 AS col2 FROM tab2 AS cor0
----
18
32
60

query I rowsort
SELECT DISTINCT - 80 + col1 * + 6 FROM tab0 cor0
----
436
466
502

query I rowsort
SELECT DISTINCT + - 64 AS col2 FROM tab2 AS cor0
----
-64

query I rowsort
SELECT ALL + 88 + 20 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to bc094bfb79720eed713b3b8a7614c0d1

query I rowsort
SELECT 37 + + col2 AS col0 FROM tab0 AS cor0
----
119
38
70

query I rowsort
SELECT DISTINCT + col2 * 67 FROM tab0 AS cor0
----
2211
5494
67

query I rowsort
SELECT col0 + 26 * col2 * - col2 FROM tab0 AS cor0
----
-174735
-28290
9

query I rowsort
SELECT - cor0.col1 - + col1 AS col0 FROM tab1 AS cor0
----
-20
-26
-52

query I rowsort
SELECT + col0 * - col0 * - 23 AS col2 FROM tab1 AS cor0
----
147200
207
94208

query I rowsort
SELECT - col2 + 60 FROM tab0 AS cor0
----
-22
27
59

query I rowsort
SELECT - col2 * - ( + col2 * + col1 ) FROM tab1 AS cor0
----
119808
32490
75816

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT col1 * CAST ( 3 * col2 AS REAL ) col1 FROM tab0 AS cor0
----
22386
291
8514

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * 22 col0 FROM tab1 AS cor0
----
220
286
572

query I rowsort
SELECT col2 - 0 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT + 37 AS col2 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to c023509f63faa044d654943e6df55ca2

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5468
SELECT - - CAST( NULL AS SIGNED ) * - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5468
SELECT - - CAST ( NULL AS INTEGER ) * - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 + 16 * - cor0.col1 FROM tab2 AS cor0
----
-255
-465
-885

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5470
SELECT + col0 * CAST( NULL AS SIGNED ) + - ( - tab1.col2 * - 35 ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5470
SELECT + col0 * CAST ( NULL AS INTEGER ) + - ( - tab1.col2 * - 35 ) AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5471
SELECT DISTINCT CAST( col0 AS SIGNED ) * - col2 * + 35 + + 92 + col1 FROM tab0 AS cor0
----
-1036
-255247
-27542

skipif mysql # not compatible
query I rowsort label-5471
SELECT DISTINCT CAST ( col0 AS INTEGER ) * - col2 * + 35 + + 92 + col1 FROM tab0 AS cor0
----
-1036
-255247
-27542

onlyif mysql # use DIV operator for integer division
query I rowsort label-5472
SELECT ALL 17 DIV col0 AS col2 FROM tab2
----
0
0
2

skipif mysql # not compatible
query I rowsort label-5472
SELECT ALL 17 / col0 AS col2 FROM tab2
----
0
0
2

query I rowsort
SELECT - ( col2 ) * - ( - cor0.col0 ) AS col2 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT ALL - 15 + col1 * col2 FROM tab2 AS cor0
----
1519
631
822

query I rowsort
SELECT + cor0.col0 + - col1 * col2 AS col0 FROM tab2 cor0
----
-1456
-567
-830

query I rowsort
SELECT ALL + 79 + col2 * cor0.col1 * col2 FROM tab1 cor0
----
119887
32569
75895

query I rowsort
SELECT ALL + + ( - 21 ) * col2 * ( + col0 + + col0 ) AS col2 FROM tab1 AS cor0
----
-153216
-322560
-6804

onlyif mysql # use DIV operator for integer division
query I rowsort label-5478
SELECT ALL + ( + col2 ) DIV + col0 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5478
SELECT ALL + ( + col2 ) / + col0 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT DISTINCT - 35 AS col2 FROM tab1, tab0, tab1 AS cor0
----
-35

query I rowsort
SELECT DISTINCT + col1 + - ( col1 ) * 81 FROM tab0 AS cor0
----
-6880
-7280
-7760

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5481
SELECT + + col0 + - ( - col1 ) * - CAST( NULL AS SIGNED ) + - cor0.col0 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5481
SELECT + + col0 + - ( - col1 ) * - CAST ( NULL AS INTEGER ) + - cor0.col0 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + ( cor0.col2 ) + - col0 AS col1 FROM tab1 cor0
----
-121
-176
-57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + + col0 * col1 col0 FROM tab0 AS cor0
----
2097
3396
8181

query I rowsort
SELECT - - ( col0 ) + + col2 + - col0 AS col1 FROM tab1 AS cor0
----
54
57
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( 34 ) col0 FROM tab1 AS cor0
----
-34

query I rowsort
SELECT DISTINCT - 94 * - col2 FROM tab1 AS cor0
----
5076
5358
9024

query I rowsort
SELECT ALL + + col2 * + col1 + + col1 FROM tab1 AS cor0
----
1261
1430
580

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - cor0.col2 - - col0 col2 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT - col2 * + col2 + - ( col2 ) * col2 FROM tab1 AS cor0
----
-18432
-5832
-6498

query I rowsort
SELECT 27 + + 98 FROM tab1
----
125
125
125

query I rowsort
SELECT DISTINCT + col0 + + tab0.col0 + + col2 AS col0 FROM tab0
----
260
71
81

query I rowsort
SELECT DISTINCT col0 + + 67 AS col0 FROM tab2
----
145
146
74

query I rowsort
SELECT ALL - col2 + - col0 * + col0 * - 37 FROM tab1
----
151495
236704
279

query I rowsort
SELECT DISTINCT - + col1 + + col2 * + col2 AS col1 FROM tab1 AS cor0
----
2890
3239
9203

query I rowsort
SELECT col0 * + 88 AS col2 FROM tab0 AS cor0
----
2112
3080
7832

query I rowsort
SELECT + col0 + + 55 AS col0 FROM tab0 cor0
----
144
79
90

query I rowsort
SELECT DISTINCT col2 + col1 * + col1 AS col0 FROM tab2 AS cor0
----
327
3507
988

query I rowsort
SELECT ALL - + cor0.col2 + col0 * - col2 FROM tab0 AS cor0
----
-36
-7380
-825

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5499
SELECT + cor0.col2 + CAST( col1 * col0 AS SIGNED ) + - col2 FROM tab2 AS cor0
----
1343
217
4602

skipif mysql # not compatible
query I rowsort label-5499
SELECT + cor0.col2 + CAST ( col1 * col0 AS INTEGER ) + - col2 FROM tab2 AS cor0
----
1343
217
4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + 34 col0 FROM tab0 AS cor0
----
1190
3026
816

onlyif mysql # use DIV operator for integer division
query I rowsort label-5501
SELECT DISTINCT - col2 + col1 DIV col0 FROM tab1 AS cor0
----
-46
-57
-96

skipif mysql # not compatible
query I rowsort label-5501
SELECT DISTINCT - col2 + col1 / col0 FROM tab1 AS cor0
----
-46
-57
-96

query I rowsort
SELECT ALL + col2 + col2 * 26 AS col1 FROM tab2 cor0
----
1026
702
729

query I rowsort
SELECT col2 + + 93 FROM tab0 AS cor0
----
126
175
94

query I rowsort
SELECT - col1 * - cor0.col0 + 36 + col1 AS col0 FROM tab2 AS cor0
----
1396
284
4697

query I rowsort
SELECT + col1 * 7 - 9 FROM tab1 AS cor0
----
173
61
82

query I rowsort
SELECT DISTINCT - col1 + - ( ( col1 ) ) * - 18 FROM tab0 AS cor0
----
1462
1547
1649

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 * + 30 col2 FROM tab0 AS cor0
----
2580
2730
2910

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5508
SELECT DISTINCT + - CAST( NULL AS DECIMAL ) * - col2 * col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5508
SELECT DISTINCT + - CAST ( NULL AS REAL ) * - col2 * col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5509
SELECT DISTINCT + 43 DIV - 66 FROM tab2, tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5509
SELECT DISTINCT + 43 / - 66 FROM tab2, tab0 AS cor0
----
0

query I rowsort
SELECT - col2 + ( - col1 * col2 ) + ( col2 ) * + tab0.col0 AS col2 FROM tab0
----
-2079
-246
-63

query I rowsort
SELECT DISTINCT col2 + - 82 * 72 + col1 AS col0 FROM tab2 AS cor0
----
-5819
-5846
-5849

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col2 + - col0 col0 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT - col2 * 57 + - 27 AS col2 FROM tab2 AS cor0
----
-1509
-1566
-2193

query I rowsort
SELECT ALL + col2 * ( col1 + + col1 ) * col1 FROM tab0 AS cor0
----
1358084
18818
488136

query I rowsort
SELECT DISTINCT + + col0 + ( - col2 ) + - col0 * - cor0.col0 FROM tab0 AS cor0
----
1259
567
7928

query I rowsort
SELECT - col1 * - 15 + - col0 FROM tab1
----
115
387
86

query I rowsort
SELECT DISTINCT 73 AS col1 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
73

query I rowsort
SELECT - + 84 - cor0.col1 FROM tab2 AS cor0
----
-101
-115
-143

onlyif mysql # use DIV operator for integer division
query I rowsort label-5519
SELECT + col2 + tab0.col2 DIV + col0 col0 FROM tab0
----
1
34
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5519
SELECT + col2 + tab0.col2 / + col0 col0 FROM tab0
----
1
34
82

query I rowsort
SELECT DISTINCT - col0 * col1 + tab1.col2 AS col1 FROM tab1
----
-24
-583
-944

onlyif mysql # use DIV operator for integer division
query I rowsort label-5521
SELECT DISTINCT - col2 DIV col1 + col2 FROM tab0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-5521
SELECT DISTINCT - col2 / col1 + col2 FROM tab0
----
1
33
82

query I rowsort
SELECT col1 + col0 * + tab1.col0 + col1 FROM tab1
----
4116
61
6426

query I rowsort
SELECT DISTINCT ( - col0 + col0 ) FROM tab2
----
0

query I rowsort
SELECT DISTINCT + col1 * ( col2 ) AS col0 FROM tab2
----
1534
646
837

query I rowsort
SELECT ( + col2 ) * - col1 FROM tab0
----
-2838
-7462
-97

query I rowsort
SELECT + 23 * 81 * + col0 AS col0 FROM tab0
----
165807
44712
65205

query I rowsort
SELECT DISTINCT - ( + 33 ) AS col0 FROM tab0 AS cor0
----
-33

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5528
SELECT + ( col2 ) - col1 * - CAST( 73 AS SIGNED ) FROM tab1 AS cor0
----
1045
1952
787

skipif mysql # not compatible
query I rowsort label-5528
SELECT + ( col2 ) - col1 * - CAST ( 73 AS INTEGER ) FROM tab1 AS cor0
----
1045
1952
787

query I rowsort
SELECT - col2 * - ( - cor0.col1 ) + col0 FROM tab2 AS cor0
----
-1456
-567
-830

query I rowsort
SELECT DISTINCT + 9 * - cor0.col0 - col2 FROM tab2 cor0
----
-728
-749
-90

query I rowsort
SELECT DISTINCT cor0.col1 * + cor0.col2 AS col0 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT ALL - ( - col1 ) * cor0.col0 + col0 * + cor0.col2 AS col1 FROM tab1 AS cor0
----
240
4288
8720

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 - 63 col0 FROM tab1 AS cor0
----
-117
-120
-159

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5534
SELECT ALL + + CAST( NULL AS SIGNED ) + + col1 * col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5534
SELECT ALL + + CAST ( NULL AS INTEGER ) + + col1 * col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5535
SELECT + col1 * - col0 + CAST( col1 + - col0 AS SIGNED ) * + col0 FROM tab0
----
-1225
-576
-7921

skipif mysql # not compatible
query I rowsort label-5535
SELECT + col1 * - col0 + CAST ( col1 + - col0 AS INTEGER ) * + col0 FROM tab0
----
-1225
-576
-7921

query I rowsort
SELECT - ( cor0.col0 ) * 6 + + 46 * + col2 AS col2 FROM tab2 AS cor0
----
1200
1274
728

query I rowsort
SELECT ALL + - col2 * cor0.col0 AS col1 FROM tab1 cor0
----
-162
-3648
-7680

query I rowsort
SELECT ALL + + col2 * cor0.col1 AS col2 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT DISTINCT - col2 + 59 * - ( + col0 ) FROM tab2 AS cor0
----
-440
-4628
-4699

query I rowsort
SELECT DISTINCT + col0 + - col2 * col2 + + col2 FROM tab2 cor0
----
-1327
-572
-695

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5541
SELECT CAST( ( + cor0.col1 ) AS SIGNED ) AS col1 FROM tab0, tab2 cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

skipif mysql # not compatible
query I rowsort label-5541
SELECT CAST ( ( + cor0.col1 ) AS INTEGER ) AS col1 FROM tab0, tab2 cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

query I rowsort
SELECT DISTINCT + - col2 * + col1 + - col0 FROM tab1 AS cor0
----
-1328
-1407
-634

query I rowsort
SELECT ALL - col0 - - col1 * 65 FROM tab1 AS cor0
----
1687
586
765

query I rowsort
SELECT - 93 AS col0 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to ea79c61f7a02d25805171f5e85229fba

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5545
SELECT col2 + + cor0.col2 * - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5545
SELECT col2 + + cor0.col2 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5546
SELECT DISTINCT + cor0.col0 * - col1 + - cor0.col2 DIV col2 FROM tab0 AS cor0
----
-2065
-3396
-8100

skipif mysql # not compatible
query I rowsort label-5546
SELECT DISTINCT + cor0.col0 * - col1 + - cor0.col2 / col2 FROM tab0 AS cor0
----
-2065
-3396
-8100

query I rowsort
SELECT DISTINCT + - col1 * cor0.col0 AS col0 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT 93 * - cor0.col1 FROM tab0 cor0
----
-7998
-8463
-9021

query I rowsort
SELECT + 44 AS col2 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 0cc3e52e781e46962291c3060c6ae73b

query I rowsort
SELECT col2 * col2 * col2 AS col0 FROM tab2
----
17576
19683
54872

query I rowsort
SELECT DISTINCT cor1.col1 * 13 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
221
403
767

query I rowsort
SELECT + 48 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + 39 ) col1 FROM tab1
----
-39
-39
-39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab2.col2 * - col2 col2 FROM tab2
----
-1444
-676
-729

query I rowsort
SELECT - ( + col2 ) + cor0.col0 * - col1 AS col1 FROM tab2 AS cor0
----
-1381
-244
-4628

query I rowsort
SELECT + - col2 + ( - col0 ) FROM tab0 cor0
----
-171
-36
-57

query I rowsort
SELECT DISTINCT - cor1.col0 FROM tab2, tab0 cor0 CROSS JOIN tab0, tab1 cor1
----
-3
-64
-80

query I rowsort
SELECT DISTINCT + ( col2 ) + col1 AS col1 FROM tab2 cor0
----
55
58
85

query I rowsort
SELECT ( ( + col2 ) ) FROM tab1
----
54
57
96

query I rowsort
SELECT tab2.col2 * col0 + ( + col1 ) AS col2 FROM tab2
----
2087
220
3019

query I rowsort
SELECT ALL - cor0.col1 AS col0 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 75 col1 FROM tab1, tab0 AS cor0, tab1 cor1
----
27 values hashing to e61b59795204c348103a58c0a8e4ce16

query I rowsort
SELECT - col2 * + tab2.col1 - ( + col0 ) FROM tab2
----
-1612
-725
-844

query I rowsort
SELECT DISTINCT 56 * cor0.col2 + - col2 AS col1 FROM tab2 AS cor0
----
1430
1485
2090

onlyif mysql # use DIV operator for integer division
query I rowsort label-5565
SELECT ALL - + col1 DIV - cor0.col1 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5565
SELECT ALL - + col1 / - cor0.col1 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT + 63 FROM tab1, tab0 AS cor0, tab1 AS cor1, tab0 cor2
----
81 values hashing to 29cdb8d01f1c3eb072511674b1c6d5fd

query I rowsort
SELECT ALL + - 90 + col0 * - 85 AS col1 FROM tab0 AS cor0
----
-2130
-3065
-7655

query I rowsort
SELECT cor2.col1 AS col2 FROM tab1, tab0 cor0, tab1 cor1, tab0, tab1 AS cor2
----
243 values hashing to de2705ff0bb8b4f714dafb07497c6119

query I rowsort
SELECT DISTINCT - col2 + 15 FROM tab0
----
-18
-67
14

query I rowsort
SELECT + col2 + + 28 AS col2 FROM tab2
----
54
55
66

query I rowsort
SELECT col0 * + 50 + + col2 AS col1 FROM tab2
----
377
3926
3988

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5572
SELECT ALL - CAST( NULL AS SIGNED ) AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5572
SELECT ALL - CAST ( NULL AS INTEGER ) AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT - tab1.col1 * - ( col1 ) FROM tab1
----
100
169
676

query I rowsort
SELECT DISTINCT - col2 * + 18 + col1 FROM tab2
----
-409
-455
-667

query I rowsort
SELECT + tab2.col2 * col0 * col1 - - col2 AS col1 FROM tab2
----
119678
51072
5886

query I rowsort
SELECT col0 + - 3 FROM tab2
----
4
75
76

query I rowsort
SELECT DISTINCT + - cor0.col2 + col2 * col1 * col1 FROM tab2 AS cor0
----
10944
25920
90480

query I rowsort
SELECT - + cor0.col0 * + col0 + - col1 * - 6 FROM tab2 AS cor0
----
-5730
-6139
137

onlyif mysql # use DIV operator for integer division
query I rowsort label-5579
SELECT ALL - - 43 + ( + col0 ) DIV + cor0.col0 - + col1 FROM tab0 AS cor0
----
-42
-47
-53

skipif mysql # not compatible
query I rowsort label-5579
SELECT ALL - - 43 + ( + col0 ) / + cor0.col0 - + col1 FROM tab0 AS cor0
----
-42
-47
-53

query I rowsort
SELECT DISTINCT - ( + col2 ) * cor0.col1 FROM tab1 AS cor0
----
-1248
-1404
-570

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5581
SELECT CAST( cor0.col1 AS SIGNED ) AS col1 FROM tab2 cor0
----
17
31
59

skipif mysql # not compatible
query I rowsort label-5581
SELECT CAST ( cor0.col1 AS INTEGER ) AS col1 FROM tab2 cor0
----
17
31
59

query I rowsort
SELECT DISTINCT - col1 * ( + 75 ) * col0 AS col2 FROM tab2
----
-100725
-16275
-345150

query I rowsort
SELECT ALL 16 AS col1 FROM tab0, tab1 cor0, tab0 AS cor1
----
27 values hashing to ee5bde9f68ee828e8cd86b0d590090bc

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( + 76 AS REAL ) AS col1 FROM tab2 AS cor0
----
76

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5585
SELECT DISTINCT - - CAST( NULL AS SIGNED ) + - 51 * col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5585
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) + - 51 * col2 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 + - 6 + col0 col1 FROM tab1 AS cor0
----
115
170
51

onlyif mysql # use DIV operator for integer division
query I rowsort label-5587
SELECT + cor0.col1 + - col0 DIV col1 AS col1 FROM tab2 cor0
----
13
31
58

skipif mysql # not compatible
query I rowsort label-5587
SELECT + cor0.col1 + - col0 / col1 AS col1 FROM tab2 cor0
----
13
31
58

query I rowsort
SELECT ALL - ( + 34 ) FROM tab1 AS cor0
----
-34
-34
-34

query I rowsort
SELECT DISTINCT 32 * 91 FROM tab0 AS cor0
----
2912

onlyif mysql # use DIV operator for integer division
query I rowsort label-5590
SELECT DISTINCT col1 + + col2 DIV + col0 FROM tab2 AS cor0
----
17
34
59

skipif mysql # not compatible
query I rowsort label-5590
SELECT DISTINCT col1 + + col2 / + col0 FROM tab2 AS cor0
----
17
34
59

query I rowsort
SELECT DISTINCT + col2 + - col1 * - 42 FROM tab2
----
1329
2504
752

query I rowsort
SELECT DISTINCT col0 + tab0.col0 + - ( col0 * col1 ) AS col1 FROM tab0
----
-2016
-3325
-7921

query I rowsort
SELECT - 88 + + col1 + - ( - col1 * col2 ) FROM tab1
----
1173
1342
492

query I rowsort
SELECT + 56 + - col1 + tab0.col2 AS col2 FROM tab0
----
-40
3
47

skipif mysql # not compatible
query I rowsort
SELECT + col1 * col2 / CAST ( col1 AS REAL ) + + col2 * 62 FROM tab1
----
3402
3591
6048

query I rowsort
SELECT col2 + + cor0.col2 - + col2 AS col0 FROM tab1 AS cor0
----
54
57
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5597
SELECT DISTINCT col0 - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5597
SELECT DISTINCT col0 - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5598
SELECT ALL + - col0 DIV + 37 AS col1 FROM tab2 AS cor0
----
-2
-2
0

skipif mysql # not compatible
query I rowsort label-5598
SELECT ALL + - col0 / + 37 AS col1 FROM tab2 AS cor0
----
-2
-2
0

query I rowsort
SELECT ALL + col2 - cor0.col2 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - - col0 * + col1 + col0 * - col1 + 98 FROM tab1 AS cor0
----
98
98
98

query I rowsort
SELECT col0 * cor0.col1 + col2 AS col1 FROM tab1 cor0
----
1136
132
697

query I rowsort
SELECT ALL - + col0 + col1 * + col0 FROM tab2 AS cor0
----
1264
210
4524

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5603
SELECT + col1 * CAST( - col0 AS SIGNED ) * col2 AS col2 FROM tab1 AS cor0
----
-36480
-4212
-99840

skipif mysql # not compatible
query I rowsort label-5603
SELECT + col1 * CAST ( - col0 AS INTEGER ) * col2 AS col2 FROM tab1 AS cor0
----
-36480
-4212
-99840

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col1 ) * - col0 + - tab2.col1 col0 FROM tab2
----
-1360
-248
-4661

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 98 + col1 col1 FROM tab0
----
184
189
195

query I rowsort
SELECT ALL + ( + col1 ) + - 33 * col0 - + col2 FROM tab1
----
-127
-2159
-2723

query I rowsort
SELECT + cor0.col1 * 76 + + col1 * - col0 FROM tab0 AS cor0
----
-1183
3977
4472

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 - + cor0.col2 col0 FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT - + col1 + + 46 * - col1 * + col2 AS col2 FROM tab1 AS cor0
----
-26230
-57421
-64610

query I rowsort
SELECT col1 * - ( + col0 ) * col1 + col2 FROM tab1 cor0
----
-13424
-1974
-6343

query I rowsort
SELECT ALL - - col1 * + cor0.col0 * - 13 AS col2 FROM tab1 AS cor0
----
-1014
-13520
-8320

query I rowsort
SELECT + cor0.col1 + ( col0 ) * - col1 * col0 FROM tab0 cor0
----
-118728
-49450
-720720

query I rowsort
SELECT - col2 * col0 + + col2 AS col0 FROM tab1 AS cor0
----
-108
-3591
-7584

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5614
SELECT ALL - CAST( NULL AS SIGNED ) * col1 + + col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5614
SELECT ALL - CAST ( NULL AS INTEGER ) * col1 + + col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + ( + col0 ) + col1 * col0 FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT ALL + 86 + col1 AS col2 FROM tab0 AS cor0
----
172
177
183

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5617
SELECT DISTINCT + - CAST( NULL AS SIGNED ) * - col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5617
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) * - col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL + + 19 + - col2 * col2 * + col1 + - 10 * + col2 AS col0 FROM tab0 AS cor0
----
-612685
-88
-93965

query I rowsort
SELECT ALL + - col0 + - col2 AS col1 FROM tab1 cor0
----
-121
-176
-57

query I rowsort
SELECT - col2 + - 26 FROM tab0 AS cor0
----
-108
-27
-59

query I rowsort
SELECT ALL - + ( - col1 ) * col2 FROM tab0 AS cor0
----
2838
7462
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5622
SELECT ALL + - CAST( + col1 AS SIGNED ) + col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5622
SELECT ALL + - CAST ( + col1 AS INTEGER ) + col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL col1 * 72 * - col0 + col0 + ( col1 ) * 53 * col2 FROM tab1 AS cor0
----
-15806
-8656
68799

onlyif mysql # use DIV operator for integer division
query I rowsort label-5624
SELECT DISTINCT + cor0.col2 DIV - col2 col0 FROM tab0 AS cor0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5624
SELECT DISTINCT + cor0.col2 / - col2 col0 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT col1 - 90 * col0 AS col1 FROM tab1
----
-244
-5750
-7187

query I rowsort
SELECT ALL + 89 * + col1 FROM tab0 cor0
----
7654
8099
8633

query I rowsort
SELECT ALL + - ( col0 ) + - ( + 9 ) FROM tab1 AS cor0
----
-12
-73
-89

query I rowsort
SELECT + 19 * col0 AS col1 FROM tab0 AS cor0
----
1691
456
665

query I rowsort
SELECT ALL - col1 * + col2 + col1 AS col2 FROM tab2 AS cor0
----
-1475
-629
-806

query I rowsort
SELECT ALL - 58 * col2 AS col2 FROM tab0 AS cor0
----
-1914
-4756
-58

query I rowsort
SELECT DISTINCT + - 66 + col2 FROM tab1 AS cor0
----
-12
-9
30

query I rowsort
SELECT ALL + cor0.col1 + col2 FROM tab2 cor0
----
55
58
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( col2 + col2 * col0 ) col1 FROM tab1
----
216
3705
7776

query I rowsort
SELECT + 6 * + 5 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89

onlyif mysql # use DIV operator for integer division
query I rowsort label-5635
SELECT - col0 DIV + col1 + + col2 FROM tab0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-5635
SELECT - col0 / + col1 + + col2 FROM tab0
----
1
33
82

query I rowsort
SELECT ALL cor1.col0 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870

query I rowsort
SELECT ALL + col0 * + col2 + - 38 * - col0 * col0 AS col0 FROM tab0
----
22680
308296
46585

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 83 + col1 col1 FROM tab0 cor0
----
14
3
8

query I rowsort
SELECT ALL - - cor0.col2 - col0 FROM tab2 AS cor0
----
-41
-52
20

onlyif mysql # use DIV operator for integer division
query I rowsort label-5640
SELECT ALL col2 * col0 DIV + col0 + col2 FROM tab0
----
164
2
66

skipif mysql # not compatible
query I rowsort label-5640
SELECT ALL col2 * col0 / + col0 + col2 FROM tab0
----
164
2
66

query I rowsort
SELECT DISTINCT ( col0 * col2 ) AS col2 FROM tab1
----
162
3648
7680

query I rowsort
SELECT 79 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f

query I rowsort
SELECT - cor1.col2 AS col1 FROM tab0, tab0 AS cor0, tab1 cor1
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e

query I rowsort
SELECT DISTINCT - + cor0.col2 + 49 * col2 FROM tab2 AS cor0
----
1248
1296
1824

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5645
SELECT CAST( NULL AS SIGNED ) * + 29 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5645
SELECT CAST ( NULL AS INTEGER ) * + 29 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5646
SELECT ALL - cor0.col1 - col2 * col2 DIV ( - col2 ) FROM tab0 AS cor0
----
-53
-9
-96

skipif mysql # not compatible
query I rowsort label-5646
SELECT ALL - cor0.col1 - col2 * col2 / ( - col2 ) FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT + + cor0.col0 + 58 * - 18 * col2 FROM tab1 AS cor0
----
-100144
-56373
-59444

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - 86 col2 FROM tab0 AS cor0
----
-7396
-7826
-8342

query I rowsort
SELECT - - col2 * - 23 FROM tab1 AS cor0
----
-1242
-1311
-2208

query I rowsort
SELECT + col2 * + col1 * - cor0.col1 FROM tab0 AS cor0
----
-244068
-679042
-9409

query I rowsort
SELECT DISTINCT + cor1.col2 FROM tab0, tab0 AS cor0, tab1 cor1
----
54
57
96

query I rowsort
SELECT - 35 * + 89 FROM tab1 AS cor0
----
-3115
-3115
-3115

onlyif mysql # use DIV operator for integer division
query I rowsort label-5653
SELECT ALL col1 DIV + ( col0 ) FROM tab2
----
0
0
4

skipif mysql # not compatible
query I rowsort label-5653
SELECT ALL col1 / + ( col0 ) FROM tab2
----
0
0
4

query I rowsort
SELECT + + col2 + col2 * + 1 AS col2 FROM tab0 AS cor0
----
164
2
66

query I rowsort
SELECT ALL + + ( col1 ) FROM tab0 cor0
----
86
91
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-5656
SELECT col2 DIV + col0 + ( cor0.col1 * + cor0.col1 ) + + 84 * col1 AS col0 FROM tab0 cor0
----
14621
15925
17557

skipif mysql # not compatible
query I rowsort label-5656
SELECT col2 / + col0 + ( cor0.col1 * + cor0.col1 ) + + 84 * col1 AS col0 FROM tab0 cor0
----
14621
15925
17557

query I rowsort
SELECT - 12 AS col1 FROM tab0 cor0
----
-12
-12
-12

query I rowsort
SELECT - col2 + + col1 * - cor0.col0 AS col1 FROM tab1 cor0
----
-1136
-132
-697

query I rowsort
SELECT col0 * - col1 * - col2 AS col1 FROM tab0 AS cor0
----
3395
664118
68112

onlyif mysql # use DIV operator for integer division
query I rowsort label-5660
SELECT ALL - tab1.col1 DIV - 60 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-5660
SELECT ALL - tab1.col1 / - 60 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT - 15 * tab1.col0 AS col0 FROM tab1
----
-1200
-45
-960

query I rowsort
SELECT - 59 AS col0 FROM tab0
----
-59
-59
-59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5663
SELECT ALL + col2 + CAST( NULL AS SIGNED ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5663
SELECT ALL + col2 + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + col2 * - ( cor0.col0 ) FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT col2 * - 27 AS col1 FROM tab2 AS cor0
----
-1026
-702
-729

query I rowsort
SELECT ALL - 85 FROM tab1, tab1 cor0
----
9 values hashing to 8ebc8ffafb1517ea04e3a6fc4059d88a

query I rowsort
SELECT DISTINCT + col2 * cor0.col1 + + ( col2 ) * col0 AS col0 FROM tab1 AS cor0
----
1566
4218
8928

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5668
SELECT ALL CAST( NULL AS SIGNED ) FROM tab1, tab2 AS cor0, tab2 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-5668
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab1, tab2 AS cor0, tab2 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT col0 * - col0 - - col2 AS col1 FROM tab1
----
-4039
-6304
45

onlyif mysql # use DIV operator for integer division
query I rowsort label-5670
SELECT - col1 * col2 DIV col0 + + col0 FROM tab2
----
-112
59
71

skipif mysql # not compatible
query I rowsort label-5670
SELECT - col1 * col2 / col0 + + col0 FROM tab2
----
-112
59
71

query I rowsort
SELECT tab2.col2 * 43 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 4df48b292225a1849da2c64bdc5f078e

query I rowsort
SELECT + col2 - 61 FROM tab2
----
-23
-34
-35

onlyif mysql # use DIV operator for integer division
query I rowsort label-5673
SELECT - + col2 + col2 DIV + col1 FROM tab2 AS cor0
----
-26
-27
-36

skipif mysql # not compatible
query I rowsort label-5673
SELECT - + col2 + col2 / + col1 FROM tab2 AS cor0
----
-26
-27
-36

query I rowsort
SELECT ( ( tab0.col2 ) ) AS col1 FROM tab0, tab2, tab2 AS cor0, tab1
----
81 values hashing to e938777ebffc2e3e9c0cdfaa4f732c05

query I rowsort
SELECT ALL - 51 AS col1 FROM tab2
----
-51
-51
-51

query I rowsort
SELECT DISTINCT 65 - + tab2.col2 AS col1 FROM tab2
----
27
38
39

query I rowsort
SELECT DISTINCT ( 92 ) + + col1 * + tab0.col1 - col1 AS col0 FROM tab0
----
7402
8282
9404

query I rowsort
SELECT + - cor0.col2 + + col1 AS col1 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT DISTINCT + + 8 * col0 * + 67 FROM tab2 AS cor0
----
3752
41808
42344

query I rowsort
SELECT + + col0 - col1 AS col0 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT col0 - col1 * col1 AS col2 FROM tab2 cor0
----
-210
-3403
-954

query I rowsort
SELECT - 19 * col2 * + 56 + - cor0.col0 FROM tab1 AS cor0
----
-102224
-57459
-60712

query I rowsort
SELECT + + col1 + col1 * 70 AS col0 FROM tab2 AS cor0
----
1207
2201
4189

query I rowsort
SELECT - cor0.col0 * 60 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to a807a0f03e7fb3654fdf35047fe966dd

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5685
SELECT - tab1.col0 + - CAST( + col2 AS SIGNED ) AS col0 FROM tab1
----
-121
-176
-57

skipif mysql # not compatible
query I rowsort label-5685
SELECT - tab1.col0 + - CAST ( + col2 AS INTEGER ) AS col0 FROM tab1
----
-121
-176
-57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5686
SELECT DISTINCT CAST( 11 AS SIGNED ) AS col1 FROM tab1, tab1 AS cor0
----
11

skipif mysql # not compatible
query I rowsort label-5686
SELECT DISTINCT CAST ( 11 AS INTEGER ) AS col1 FROM tab1, tab1 AS cor0
----
11

skipif mysql # not compatible
query I rowsort
SELECT + CAST ( col1 AS REAL ) AS col2 FROM tab1
----
10
13
26

query I rowsort
SELECT DISTINCT + 21 + - ( col0 * - col1 ) + 96 * col1 FROM tab2
----
10287
2996
3214

query I rowsort
SELECT DISTINCT + 43 + tab0.col0 FROM tab0
----
132
67
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-5690
SELECT - col2 DIV tab1.col2 col1 FROM tab1
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5690
SELECT - col2 / tab1.col2 col1 FROM tab1
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - ( - cor0.col0 ) ) - ( tab2.col1 ) col1 FROM tab2, tab1, tab2 AS cor0
----
9 values hashing to 9f4325dae6326c12df9060a1d97a89d6

query I rowsort
SELECT + col0 + - col0 + + col0 FROM tab1
----
3
64
80

query I rowsort
SELECT + col1 * - col2 * col2 AS col2 FROM tab2
----
-22599
-24548
-39884

query I rowsort
SELECT 89 + ( col1 ) + - 74 * + col2 AS col2 FROM tab1
----
-3881
-4119
-7002

query I rowsort
SELECT DISTINCT + col0 + + col2 * col2 FROM tab2
----
1523
736
754

query I rowsort
SELECT 73 + - col0 FROM tab0 AS cor0
----
-16
38
49

query I rowsort
SELECT DISTINCT + ( - col2 ) * + col0 + + col0 AS col1 FROM tab1 AS cor0
----
-159
-3584
-7600

query I rowsort
SELECT DISTINCT + cor0.col1 * - 82 + col1 * - ( + cor0.col2 + col2 ) AS col2 FROM tab2 AS cor0
----
-2686
-4216
-7906

query I rowsort
SELECT ALL + ( 50 ) * - col2 AS col2 FROM tab0 AS cor0
----
-1650
-4100
-50

query I rowsort
SELECT ALL + col1 * col2 + tab0.col1 FROM tab0
----
194
2924
7553

query I rowsort
SELECT 33 + - col0 FROM tab0
----
-2
-56
9

query I rowsort
SELECT DISTINCT + col0 * col1 + - tab2.col2 * - 97 * col2 FROM tab2
----
141411
70174
70930

onlyif mysql # use DIV operator for integer division
query I rowsort label-5703
SELECT ALL + 63 * + col2 + - col1 DIV 85 + col0 FROM tab1
----
3405
3655
6128

skipif mysql # not compatible
query I rowsort label-5703
SELECT ALL + 63 * + col2 + - col1 / 85 + col0 FROM tab1
----
3405
3655
6128

query I rowsort
SELECT 54 - + col2 FROM tab2
----
16
27
28

query I rowsort
SELECT DISTINCT - 18 * + col1 FROM tab2 AS cor0
----
-1062
-306
-558

query I rowsort
SELECT ALL col0 + + 34 FROM tab0 AS cor0
----
123
58
69

query I rowsort
SELECT + cor0.col1 + - cor0.col0 FROM tab0 cor0
----
2
62
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-5708
SELECT DISTINCT + - col1 DIV - 34 + col0 FROM tab0 AS cor0
----
26
37
91

skipif mysql # not compatible
query I rowsort label-5708
SELECT DISTINCT + - col1 / - 34 + col0 FROM tab0 AS cor0
----
26
37
91

onlyif mysql # use DIV operator for integer division
query I rowsort label-5709
SELECT ALL + col2 + - col2 DIV col2 AS col1 FROM tab0 AS cor0
----
0
32
81

skipif mysql # not compatible
query I rowsort label-5709
SELECT ALL + col2 + - col2 / col2 AS col1 FROM tab0 AS cor0
----
0
32
81

query I rowsort
SELECT ALL - - col0 * - 55 - 70 * col1 * + cor0.col1 FROM tab0 cor0
----
-519040
-584565
-660555

query I rowsort
SELECT ALL - + col1 * - ( + col1 * - col0 ) FROM tab1 AS cor0
----
-13520
-2028
-6400

query I rowsort
SELECT - col2 + col2 * + col1 AS col1 FROM tab0 AS cor0
----
2805
7380
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5713
SELECT DISTINCT + col2 * CAST( - col1 AS SIGNED ) + col0 + 25 FROM tab0 AS cor0
----
-2789
-37
-7348

skipif mysql # not compatible
query I rowsort label-5713
SELECT DISTINCT + col2 * CAST ( - col1 AS INTEGER ) + col0 + 25 FROM tab0 AS cor0
----
-2789
-37
-7348

onlyif mysql # use DIV operator for integer division
query I rowsort label-5714
SELECT ALL - col0 DIV + ( - 67 ) AS col1 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5714
SELECT ALL - col0 / + ( - 67 ) AS col1 FROM tab0 AS cor0
----
0
0
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5715
SELECT col2 * CAST( - col0 AS SIGNED ) col1 FROM tab2 AS cor0
----
-189
-2028
-3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5715
SELECT col2 * CAST ( - col0 AS INTEGER ) col1 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT ALL + col1 + - 24 FROM tab0 cor0
----
62
67
73

query I rowsort
SELECT + - cor0.col2 * 43 FROM tab0 AS cor0
----
-1419
-3526
-43

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5718
SELECT col1 * + CAST( col0 * col2 + - 50 AS SIGNED ) FROM tab2
----
116702
4309
50184

skipif mysql # not compatible
query I rowsort label-5718
SELECT col1 * + CAST ( col0 * col2 + - 50 AS INTEGER ) FROM tab2
----
116702
4309
50184

query I rowsort
SELECT ALL - col0 * + 74 FROM tab0
----
-1776
-2590
-6586

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5720
SELECT - col1 * - CAST( 2 AS SIGNED ) * col1 AS col1 FROM tab1
----
1352
200
338

skipif mysql # not compatible
query I rowsort label-5720
SELECT - col1 * - CAST ( 2 AS INTEGER ) * col1 AS col1 FROM tab1
----
1352
200
338

query I rowsort
SELECT cor0.col0 * - col0 * + col2 + + col1 * + cor0.col1 + + col1 AS col0 FROM tab1 AS cor0
----
-233362
-614218
216

query I rowsort
SELECT DISTINCT - - 98 AS col1 FROM tab0, tab1 AS cor0
----
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5723
SELECT - col0 + + CAST( col2 AS SIGNED ) FROM tab2 AS cor0
----
-41
-52
20

skipif mysql # not compatible
query I rowsort label-5723
SELECT - col0 + + CAST ( col2 AS INTEGER ) FROM tab2 AS cor0
----
-41
-52
20

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5724
SELECT + + col1 * - CAST( NULL AS SIGNED ) + + col0 / col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5724
SELECT + + col1 * - CAST ( NULL AS INTEGER ) + + col0 / col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + cor0.col1 * + 79 AS col1 FROM tab1 AS cor0
----
1027
2054
790

query I rowsort
SELECT ALL + 2 AS col2 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 535345c50a19fdab97ce05d1837b1f09

query I rowsort
SELECT - - col2 * col0 + + cor0.col2 AS col0 FROM tab1 AS cor0
----
216
3705
7776

query I rowsort
SELECT + col2 * + 18 + - cor0.col2 AS col1 FROM tab0 AS cor0
----
1394
17
561

query I rowsort
SELECT 31 * + col2 FROM tab2 AS cor0
----
1178
806
837

query I rowsort
SELECT - 5 * col0 AS col1 FROM tab1 AS cor0
----
-15
-320
-400

query I rowsort
SELECT col1 * + ( + col1 ) AS col2 FROM tab0 AS cor0
----
7396
8281
9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-5732
SELECT DISTINCT + ( col0 ) DIV - 49 FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-5732
SELECT DISTINCT + ( col0 ) / - 49 FROM tab1 AS cor0
----
-1
0

query I rowsort
SELECT + - col0 * - cor0.col1 AS col1 FROM tab2 cor0
----
1343
217
4602

query I rowsort
SELECT ALL + 58 * col2 AS col0 FROM tab2 AS cor0
----
1508
1566
2204

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5735
SELECT - col2 * + col1 * CAST( col2 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-119808
-32490
-75816

skipif mysql # not compatible
query I rowsort label-5735
SELECT - col2 * + col1 * CAST ( col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-119808
-32490
-75816

query I rowsort
SELECT DISTINCT 70 * + col1 + - col1 FROM tab0
----
5934
6279
6693

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5737
SELECT + + col0 - col0 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5737
SELECT + + col0 - col0 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 * + col2 + col1 + col0 * cor0.col1 FROM tab0 cor0
----
1358
3457
892

query I rowsort
SELECT + tab2.col1 * - tab2.col1 AS col0 FROM tab2
----
-289
-3481
-961

query I rowsort
SELECT ( + col0 ) * + col0 FROM tab2
----
49
6084
6241

query I rowsort
SELECT DISTINCT col1 + - cor0.col2 - 71 FROM tab0 AS cor0
----
-18
-62
25

query I rowsort
SELECT ALL - + col2 + col1 + 60 FROM tab1 AS cor0
----
-23
13
32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col0 ) col0 FROM tab0 cor0
----
24
35
89

query I rowsort
SELECT DISTINCT + 10 * col1 FROM tab2 cor0
----
170
310
590

query I rowsort
SELECT ALL 79 * 9 AS col2 FROM tab1
----
711
711
711

onlyif mysql # use DIV operator for integer division
query I rowsort label-5746
SELECT + tab1.col1 DIV - tab1.col2 + col0 AS col1 FROM tab1
----
3
64
80

skipif mysql # not compatible
query I rowsort label-5746
SELECT + tab1.col1 / - tab1.col2 + col0 AS col1 FROM tab1
----
3
64
80

query I rowsort
SELECT DISTINCT col2 * 9 * col0 + col1 AS col1 FROM tab2
----
1732
18311
27035

query I rowsort
SELECT col0 + + col0 * 73 AS col2 FROM tab1
----
222
4736
5920

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5749
SELECT CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5749
SELECT CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT col0 * col1 * + col1 + - col1 FROM tab0 AS cor0
----
177418
329218
736918

query I rowsort
SELECT ALL + col2 + + col1 AS col0 FROM tab0 cor0
----
119
173
98

query I rowsort
SELECT - ( col1 ) + + col0 AS col0 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT DISTINCT col1 * + 30 AS col2 FROM tab0
----
2580
2730
2910

query I rowsort
SELECT col0 * - col1 * col2 + col1 - + cor0.col0 AS col1 FROM tab1 AS cor0
----
-36534
-4189
-99907

query I rowsort
SELECT - + col2 + - col0 - 86 FROM tab1 AS cor0
----
-143
-207
-262

onlyif mysql # use DIV operator for integer division
query I rowsort label-5756
SELECT + - col1 + - col0 DIV - 57 AS col1 FROM tab0 AS cor0
----
-86
-90
-97

skipif mysql # not compatible
query I rowsort label-5756
SELECT + - col1 + - col0 / - 57 AS col1 FROM tab0 AS cor0
----
-86
-90
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + ( ( col1 ) ) col2 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT + - col0 * 53 FROM tab2 cor0
----
-371
-4134
-4187

query I rowsort
SELECT 55 + - 73 FROM tab0 AS cor0
----
-18
-18
-18

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5760
SELECT - + CAST( 62 AS SIGNED ) * - col0 + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5760
SELECT - + CAST ( 62 AS INTEGER ) * - col0 + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 57 + - col0 * + cor0.col2 col0 FROM tab0 AS cor0
----
-7355
-849
-92

query I rowsort
SELECT - ( cor0.col0 ) + col1 * + col0 FROM tab0 AS cor0
----
2040
3360
8010

query I rowsort
SELECT + + 25 - col0 AS col1 FROM tab1 AS cor0
----
-39
-55
22

query I rowsort
SELECT col0 * col2 + - col0 AS col1 FROM tab2 cor0
----
182
1950
2923

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 82 col1 FROM tab2 AS cor0
----
82
82
82

query I rowsort
SELECT - + col0 * - 34 + - col1 AS col2 FROM tab1 AS cor0
----
2166
2707
76

onlyif mysql # use DIV operator for integer division
query I rowsort label-5767
SELECT ALL - + cor0.col2 DIV col2 + col1 FROM tab1 AS cor0
----
12
25
9

skipif mysql # not compatible
query I rowsort label-5767
SELECT ALL - + cor0.col2 / col2 + col1 FROM tab1 AS cor0
----
12
25
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-5768
SELECT + - 44 DIV 94 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5768
SELECT + - 44 / 94 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col0 * + 55 FROM tab2 AS cor0
----
-385
-4290
-4345

query I rowsort
SELECT + 79 * - 75 - - cor0.col0 FROM tab1 AS cor0
----
-5845
-5861
-5922

query I rowsort
SELECT + col2 + - 19 * - cor0.col0 FROM tab2 cor0
----
1508
1539
160

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5772
SELECT ALL + + CAST( NULL AS SIGNED ) * cor0.col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5772
SELECT ALL + + CAST ( NULL AS INTEGER ) * cor0.col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 0 + + col1 * - cor0.col2 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT 0 + col2 * - 19 FROM tab2 AS cor0
----
-494
-513
-722

query I rowsort
SELECT DISTINCT 70 + - col0 AS col0 FROM tab2 AS cor0
----
-8
-9
63

query I rowsort
SELECT DISTINCT - cor0.col2 + + col2 * + 46 AS col2 FROM tab0 AS cor0
----
1485
3690
45

query I rowsort
SELECT ALL - col1 * + col2 - - col2 FROM tab1 AS cor0
----
-1152
-1350
-513

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5778
SELECT CAST( NULL AS SIGNED ) * col0 * col2 col1 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5778
SELECT CAST ( NULL AS INTEGER ) * col0 * col2 col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col1 * + col0 * cor0.col1 AS col0 FROM tab1 cor0
----
-13520
-2028
-6400

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5780
SELECT ALL col2 * CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5780
SELECT ALL col2 * CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 97 col1 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to c73fa6978df8525c99d6bc792bb27123

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - 55 col1 FROM tab0 AS cor0
----
4730
5005
5335

query I rowsort
SELECT DISTINCT - col0 * ( col2 * + col1 ) + - 45 AS col2 FROM tab0 AS cor0
----
-3440
-664163
-68157

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 35 - 85 col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c7432a968c8352c12996dfa54dd4b9e8

query I rowsort
SELECT - + 47 * 39 FROM tab2 AS cor0
----
-1833
-1833
-1833

onlyif mysql # use DIV operator for integer division
query I rowsort label-5786
SELECT + col2 * col2 DIV - col2 + + col0 col2 FROM tab1
----
-16
-51
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5786
SELECT + col2 * col2 / - col2 + + col0 col2 FROM tab1
----
-16
-51
7

query I rowsort
SELECT ALL + 70 * 62 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 82034cee072532795e29d7f87cb43549

query I rowsort
SELECT DISTINCT cor0.col0 * - col0 AS col0 FROM tab1 cor0
----
-4096
-6400
-9

query I rowsort
SELECT DISTINCT col1 - + col2 * + col2 FROM tab1 AS cor0
----
-2890
-3239
-9203

query I rowsort
SELECT + col1 FROM tab1 AS cor0 WHERE col0 / + col1 IN ( + col0 )
----

query I rowsort
SELECT ALL col0 * - cor0.col1 FROM tab0 cor0
----
-2064
-3395
-8099

query III rowsort
SELECT * FROM tab2 cor0 WHERE + col2 <> NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) = ( + col2 )
----

query I rowsort
SELECT ALL col1 FROM tab1 WHERE NOT col0 > NULL
----

query III rowsort
SELECT * FROM tab0 WHERE col2 * col0 > + col2 * + col1 + + col1 / tab0.col1
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT IN ( col1 * col0 / - col2 )
----

query I rowsort
SELECT DISTINCT - col2 + tab0.col0 AS col2 FROM tab0
----
-9
34
7

query I rowsort
SELECT + col2 * col0 + tab0.col2 - col2 FROM tab0
----
35
7298
792

query I rowsort
SELECT - tab2.col0 + + tab2.col2 * + col2 + + col1 * col1 * col0 AS col2 FROM tab2
----
24196
272116
7449

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab0 WHERE NULL IN ( - col1 * - col0 / col2 )
----

query I rowsort
SELECT DISTINCT col1 * tab0.col0 FROM tab0 WHERE NOT NULL < NULL
----

query I rowsort
SELECT ALL - col2 + + tab1.col0 AS col0 FROM tab1
----
-16
-51
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-5803
SELECT + col1 - tab0.col2 DIV tab0.col1 AS col1 FROM tab0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-5803
SELECT + col1 - tab0.col2 / tab0.col1 AS col1 FROM tab0
----
86
91
97

query I rowsort
SELECT ALL - col1 FROM tab1 WHERE NULL = + col2 * col2
----

query IIIIII rowsort
SELECT ALL * FROM tab0, tab1 cor0 WHERE NULL < NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL > NULL OR NOT ( NULL ) IN ( col2 * + col1 )
----

query I rowsort
SELECT + col1 * - col2 * - col0 + - tab2.col2 * col1 * col1 FROM tab2
----
-20088
29146
40052

query I rowsort
SELECT ALL + col2 + - col2 AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT cor0.col2 - col2 AS col0 FROM tab0 AS cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5810
SELECT ALL - + col0 DIV + col2 AS col0 FROM tab0 cor0
----
-1
-35
0

skipif mysql # not compatible
query I rowsort label-5810
SELECT ALL - + col0 / + col2 AS col0 FROM tab0 cor0
----
-1
-35
0

query I rowsort
SELECT DISTINCT + - col1 + col0 * col1 AS col2 FROM tab2 AS cor0
----
1326
186
4543

query I rowsort
SELECT DISTINCT - col1 * tab1.col2 + - col1 AS col0 FROM tab1
----
-1261
-1430
-580

onlyif mysql # use DIV operator for integer division
query I rowsort label-5813
SELECT - col2 DIV - col0 + - col1 FROM tab0
----
-85
-91
-97

skipif mysql # not compatible
query I rowsort label-5813
SELECT - col2 / - col0 + - col1 FROM tab0
----
-85
-91
-97

query I rowsort
SELECT DISTINCT tab2.col2 * tab2.col0 + + col0 AS col2 FROM tab2
----
196
2106
3081

query I rowsort
SELECT ALL - tab1.col2 + tab1.col1 FROM tab1
----
-28
-47
-83

query I rowsort
SELECT DISTINCT + col0 * - tab2.col0 + - col0 FROM tab2
----
-56
-6162
-6320

query I rowsort
SELECT DISTINCT + col2 * + tab1.col1 + col0 FROM tab1
----
1328
1407
634

onlyif mysql # use DIV operator for integer division
query I rowsort label-5818
SELECT col2 DIV col2 + col1 AS col2 FROM tab1
----
11
14
27

skipif mysql # not compatible
query I rowsort label-5818
SELECT col2 / col2 + col1 AS col2 FROM tab1
----
11
14
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + col2 + col0 col1 FROM tab0
----
-29
-61
80

query I rowsort
SELECT col2 * col1 + - col1 - col0 AS col2 FROM tab1
----
1155
1375
496

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN ( col1 + col2 / + col1 ) AND NULL
----

query I rowsort
SELECT tab0.col0 + - col1 * + tab0.col0 AS col1 FROM tab0
----
-2040
-3360
-8010

query I rowsort
SELECT - col2 + + tab0.col2 FROM tab0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5824
SELECT DISTINCT + + cor0.col2 DIV cor0.col2 - col2 AS col2 FROM tab1 AS cor0
----
-53
-56
-95

skipif mysql # not compatible
query I rowsort label-5824
SELECT DISTINCT + + cor0.col2 / cor0.col2 - col2 AS col2 FROM tab1 AS cor0
----
-53
-56
-95

onlyif mysql # use DIV operator for integer division
query I rowsort label-5825
SELECT DISTINCT - col0 DIV cor0.col0 - + col0 AS col0 FROM tab0 cor0
----
-25
-36
-90

skipif mysql # not compatible
query I rowsort label-5825
SELECT DISTINCT - col0 / cor0.col0 - + col0 AS col0 FROM tab0 cor0
----
-25
-36
-90

onlyif mysql # use DIV operator for integer division
query I rowsort label-5826
SELECT DISTINCT + - col0 * + col1 DIV - col1 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-5826
SELECT DISTINCT + - col0 * + col1 / - col1 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT ALL - + col0 * col0 - cor0.col2 * cor0.col1 FROM tab0 cor0
----
-1322
-15383
-3414

query I rowsort
SELECT + + col2 + col0 * col0 FROM tab1 AS cor0
----
4153
63
6496

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + - col0 col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5830
SELECT ALL 65 DIV + col0 + - 31 AS col2 FROM tab2
----
-22
-31
-31

skipif mysql # not compatible
query I rowsort label-5830
SELECT ALL 65 / + col0 + - 31 AS col2 FROM tab2
----
-22
-31
-31

query I rowsort
SELECT ( - col0 ) * ( 95 ) + col0 AS col1 FROM tab0
----
-2256
-3290
-8366

onlyif mysql # use DIV operator for integer division
query I rowsort label-5832
SELECT DISTINCT col2 DIV + tab0.col0 + - 1 * + tab0.col1 FROM tab0
----
-85
-91
-97

skipif mysql # not compatible
query I rowsort label-5832
SELECT DISTINCT col2 / + tab0.col0 + - 1 * + tab0.col1 FROM tab0
----
-85
-91
-97

query I rowsort
SELECT ALL cor0.col1 + + cor0.col2 * col2 + - col0 * col2 * ( col1 ) FROM tab0 AS cor0
----
-3297
-657303
-66937

query I rowsort
SELECT DISTINCT + - col1 * col1 + col2 * cor0.col0 * cor0.col2 FROM tab0 AS cor0
----
-9374
18740
590155

onlyif mysql # use DIV operator for integer division
query I rowsort label-5835
SELECT + col0 * + CAST( + col0 AS SIGNED ) * - col1 + + cor0.col0 DIV 71 FROM tab0 AS cor0
----
-118825
-49536
-720810

skipif mysql # not compatible
query I rowsort label-5835
SELECT + col0 * + CAST ( + col0 AS INTEGER ) * - col1 + + cor0.col0 / 71 FROM tab0 AS cor0
----
-118825
-49536
-720810

query I rowsort
SELECT + + cor0.col1 * - ( + cor0.col0 ) FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT + + col2 * + cor0.col0 + col1 FROM tab2 AS cor0
----
2087
220
3019

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab0 WHERE ( - col0 * col1 + col1 * - col0 * + col1 + col2 ) IN ( + col0 + + col1 * tab0.col1 * col0 - col2 )
----

query I rowsort
SELECT DISTINCT - col0 + col2 FROM tab0 WHERE NOT NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - tab0.col1 + tab0.col1 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL - col0 * col0 * col2 FROM tab0
----
-1225
-19008
-649522

query I rowsort
SELECT + tab1.col0 + col1 * col0 FROM tab1
----
1120
704
81

query I rowsort
SELECT DISTINCT + tab0.col0 + col1 AS col1 FROM tab0
----
110
132
180

query III rowsort
SELECT * FROM tab1 WHERE col2 + - col0 IN ( - col2 * col0 + col2 )
----

query I rowsort
SELECT col2 - col0 * tab2.col0 AS col0 FROM tab2
----
-22
-6058
-6203

query I rowsort
SELECT ALL col1 * col2 - - tab2.col1 AS col1 FROM tab2 WHERE NULL NOT BETWEEN - col1 AND NULL
----

query I rowsort
SELECT ALL col0 + + col2 * - col2 FROM tab2
----
-1365
-598
-722

query I rowsort
SELECT - col2 * + col0 + + col0 * tab2.col2 * col0 FROM tab2 WHERE ( col2 * col2 * - col2 ) NOT IN ( col1 )
----
1134
156156
234156

query I rowsort
SELECT ALL + tab2.col1 + + col1 * col1 FROM tab2
----
306
3540
992

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( col2 * col1 ) <> ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 55 * col1 col2 FROM tab0 AS cor0
----
-4730
-5005
-5335

query I rowsort
SELECT - col0 * + col2 - col1 * col0 FROM tab1 AS cor0
----
-240
-4288
-8720

query I rowsort
SELECT + - 47 * col1 FROM tab0 cor0
----
-4042
-4277
-4559

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 * - col2 + 10 * 33 col0 FROM tab1 AS cor0
----
1578
1734
900

query I rowsort
SELECT + - 42 - col1 AS col2 FROM tab1 AS cor0
----
-52
-55
-68

query I rowsort
SELECT DISTINCT + col0 * + col1 * + col0 AS col1 FROM tab0
----
118825
49536
720811

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + col1 * col0 + - col0 col2 FROM tab2
----
1302
237
4550

query I rowsort
SELECT DISTINCT col1 + - col1 + - col0 * + tab0.col2 * col2 AS col1 FROM tab0
----
-26136
-35
-598436

query I rowsort
SELECT ALL + col0 * col2 * + col2 AS col2 FROM tab0
----
26136
35
598436

onlyif mysql # use DIV operator for integer division
query I rowsort label-5860
SELECT col2 + col0 DIV + tab0.col1 FROM tab0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-5860
SELECT col2 + col0 / + tab0.col1 FROM tab0
----
1
33
82

query I rowsort
SELECT + col1 * col2 + + col2 * cor0.col1 + - col0 * col2 * + col0 AS col0 FROM tab0 cor0
----
-1031
-13332
-634598

query I rowsort
SELECT ALL col2 + - 21 FROM tab1 AS cor0
----
33
36
75

query I rowsort
SELECT - cor0.col2 + - col2 AS col1 FROM tab0 cor0
----
-164
-2
-66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * 41 + col1 col2 FROM tab0 AS cor0
----
-1338
-3558
-898

query I rowsort
SELECT - col0 + 33 + cor0.col1 AS col2 FROM tab1 AS cor0
----
-21
-34
56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 33 col1 FROM tab2
----
-33
-33
-33

query I rowsort
SELECT cor0.col1 + 67 AS col2 FROM tab2 AS cor0
----
126
84
98

query I rowsort
SELECT - ( tab1.col0 ) AS col1 FROM tab1
----
-3
-64
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 39 col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf

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-5871
SELECT ALL + col2 DIV tab1.col2 + + 98 + + col2 AS col2 FROM tab1
----
153
156
195

skipif mysql # not compatible
query I rowsort label-5871
SELECT ALL + col2 / tab1.col2 + + 98 + + col2 AS col2 FROM tab1
----
153
156
195

query I rowsort
SELECT 37 + - cor0.col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 32556b0bd756cbfa0ddb0d8afee29407

query I rowsort
SELECT 40 * + col1 AS col2 FROM tab2 cor0
----
1240
2360
680

query I rowsort
SELECT DISTINCT - ( 78 ) AS col1 FROM tab0
----
-78

query I rowsort
SELECT ( + col0 + + col1 ) AS col0 FROM tab2
----
137
38
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-5876
SELECT - col1 * - col1 + + col0 DIV + 27 - tab0.col1 FROM tab0
----
7310
8193
9313

skipif mysql # not compatible
query I rowsort label-5876
SELECT - col1 * - col1 + + col0 / + 27 - tab0.col1 FROM tab0
----
7310
8193
9313

query I rowsort
SELECT 91 + col0 AS col1 FROM tab0 AS cor0
----
115
126
180

query I rowsort
SELECT 80 * - col1 + - col2 AS col1 FROM tab0 AS cor0
----
-6913
-7362
-7761

query I rowsort
SELECT + + cor0.col0 + - cor0.col2 AS col2 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT + 40 AS col1 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to e4d10f7d6c34a281f524e45e82ebd2a0

query I rowsort
SELECT col2 - - cor0.col1 * - col1 AS col2 FROM tab0 cor0
----
-7363
-8199
-9408

query I rowsort
SELECT - 46 * col0 - + 72 * cor0.col1 AS col0 FROM tab2 cor0
----
-2554
-4858
-7836

query I rowsort
SELECT - + cor0.col2 + + col1 FROM tab2 cor0
----
-21
33
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-5884
SELECT DISTINCT + - col0 DIV cor0.col0 + + col1 DIV - col2 FROM tab0 AS cor0
----
-2
-3
-98

skipif mysql # not compatible
query I rowsort label-5884
SELECT DISTINCT + - col0 / cor0.col0 + + col1 / - col2 FROM tab0 AS cor0
----
-2
-3
-98

query I rowsort
SELECT + cor0.col1 + + col0 * + col2 AS col1 FROM tab2 AS cor0
----
2087
220
3019

query I rowsort
SELECT ALL - - col2 - col0 AS col1 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT cor0.col2 * col0 + col1 - col2 AS col2 FROM tab2 AS cor0
----
193
2061
2981

query I rowsort
SELECT ALL - col1 - cor0.col0 * col1 AS col0 FROM tab2 AS cor0
----
-1360
-248
-4661

query I rowsort
SELECT DISTINCT col1 + cor0.col0 * + col2 FROM tab1 AS cor0
----
188
3658
7693

query I rowsort
SELECT + 3 * col0 AS col0 FROM tab1 AS cor0
----
192
240
9

query I rowsort
SELECT ALL - ( col0 ) * - cor0.col1 AS col2 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT ALL + ( - col1 ) + - col0 FROM tab1 cor0
----
-29
-74
-93

query I rowsort
SELECT ALL + + col2 * - 73 AS col1 FROM tab0 AS cor0
----
-2409
-5986
-73

query I rowsort
SELECT - 55 * ( + col2 ) AS col1 FROM tab1 AS cor0
----
-2970
-3135
-5280

onlyif mysql # use DIV operator for integer division
query I rowsort label-5895
SELECT col0 DIV - 65 AS col0 FROM tab2 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-5895
SELECT col0 / - 65 AS col0 FROM tab2 AS cor0
----
-1
-1
0

query I rowsort
SELECT + 4 * col1 AS col0 FROM tab1 AS cor0
----
104
40
52

query I rowsort
SELECT ALL + - 28 * - col1 FROM tab2 AS cor0
----
1652
476
868

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( col2 ) col2 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT ALL cor0.col1 - - col0 * - col1 AS col0 FROM tab2 cor0
----
-1326
-186
-4543

query I rowsort
SELECT ALL - 15 * col0 + cor0.col1 FROM tab2 cor0
----
-1111
-1168
-74

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - CAST ( col0 + + col1 AS REAL ) * col0 AS col2 FROM tab0
----
-16020
-2640
-4620

query I rowsort
SELECT DISTINCT 59 * col1 * tab2.col0 FROM tab2
----
12803
271518
79237

query I rowsort
SELECT DISTINCT 39 * 65 FROM tab1
----
2535

query I rowsort
SELECT - col0 * - col1 + col1 + 38 * + cor0.col1 FROM tab0 AS cor0
----
11648
5418
7178

query I rowsort
SELECT + col0 * 56 FROM tab2 AS cor0
----
392
4368
4424

query I rowsort
SELECT DISTINCT - - ( col1 ) * col0 AS col2 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT + - ( - col1 ) + - col0 FROM tab0 AS cor0
----
2
62
62

query I rowsort
SELECT - col2 * 32 + col0 FROM tab0 AS cor0
----
-1032
-2535
3

query I rowsort
SELECT ALL + 83 * - 83 FROM tab1 AS cor0
----
-6889
-6889
-6889

query I rowsort
SELECT DISTINCT - + 61 + + 98 + col0 AS col1 FROM tab2 AS cor0
----
115
116
44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 12 + + col2 col1 FROM tab0 AS cor0
----
13
45
94

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5912
SELECT DISTINCT + - col0 + col2 * CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5912
SELECT DISTINCT + - col0 + col2 * CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5913
SELECT + + ( col1 ) + - 46 DIV cor0.col1 + col2 AS col1 FROM tab1 cor0
----
106
63
79

skipif mysql # not compatible
query I rowsort label-5913
SELECT + + ( col1 ) + - 46 / cor0.col1 + col2 AS col1 FROM tab1 cor0
----
106
63
79

query I rowsort
SELECT 99 + 44 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 750c11171f0669c2fa0d412d84db5fa1

query I rowsort
SELECT DISTINCT tab1.col2 * 38 + 91 + col0 AS col0 FROM tab1
----
2146
2321
3819

query I rowsort
SELECT DISTINCT - + col2 * col1 + col0 FROM tab1 AS cor0
----
-1168
-1401
-506

query I rowsort
SELECT + + col0 * + 29 - - 98 AS col1 FROM tab2 AS cor0
----
2360
2389
301

query I rowsort
SELECT col1 * ( - col2 ) - + col0 AS col1 FROM tab1 AS cor0
----
-1328
-1407
-634

onlyif mysql # use DIV operator for integer division
query I rowsort label-5919
SELECT + col1 DIV 84 + col0 FROM tab2 cor0
----
7
78
79

skipif mysql # not compatible
query I rowsort label-5919
SELECT + col1 / 84 + col0 FROM tab2 cor0
----
7
78
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - cor0.col2 col0 FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT + ( 39 ) * - col2 FROM tab2 cor0
----
-1014
-1053
-1482

query I rowsort
SELECT DISTINCT - ( + col0 ) AS col2 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT + 84 * ( - col2 ) * ( col0 + - col1 ) AS col0 FROM tab2 AS cor0
----
-197904
-41496
54432

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 1 + - col2 col1 FROM tab0 AS cor0
----
-32
-81
0

query I rowsort
SELECT + 94 * + 43 + - col0 FROM tab2 AS cor0
----
3963
3964
4035

query I rowsort
SELECT ALL - col0 + + 60 * col2 + - col2 * 16 FROM tab1
----
2373
2444
4144

query I rowsort
SELECT + col0 + + 8 * + col2 + - tab0.col1 FROM tab0
----
-54
202
654

query I rowsort
SELECT ( + 63 ) - col2 * ( col1 ) * col0 AS col2 FROM tab1 AS cor0
----
-36417
-4149
-99777

query I rowsort
SELECT col0 * + col0 - - col0 * 84 FROM tab0 AS cor0
----
15397
2592
4165

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5930
SELECT + CAST( NULL AS SIGNED ) - + 18 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5930
SELECT + CAST ( NULL AS INTEGER ) - + 18 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5931
SELECT ALL col0 * + CAST( col1 AS SIGNED ) * col1 + + 70 AS col0 FROM tab1
----
13590
2098
6470

skipif mysql # not compatible
query I rowsort label-5931
SELECT ALL col0 * + CAST ( col1 AS INTEGER ) * col1 + + 70 AS col0 FROM tab1
----
13590
2098
6470

query I rowsort
SELECT ALL ( col1 ) * col1 * + 35 FROM tab2
----
10115
121835
33635

query I rowsort
SELECT ALL + 93 AS col1 FROM tab1
----
93
93
93

query I rowsort
SELECT col2 * - tab1.col0 * + col0 FROM tab1
----
-233472
-486
-614400

query I rowsort
SELECT DISTINCT + 79 FROM tab0, tab2, tab2 AS cor0
----
79

query I rowsort
SELECT - col0 + + ( + cor0.col1 + - col0 ) FROM tab1 AS cor0
----
-118
-147
20

query I rowsort
SELECT col1 + - col1 * + ( 30 ) AS col2 FROM tab2
----
-1711
-493
-899

query I rowsort
SELECT - cor0.col1 AS col2 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2

query I rowsort
SELECT col2 * col1 + + col2 AS col2 FROM tab2
----
1560
684
864

query I rowsort
SELECT ALL - - col2 + ( 99 ) FROM tab0 AS cor0
----
100
132
181

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 + ( + cor0.col2 ) * col1 col1 FROM tab2 AS cor0
----
1612
725
844

query I rowsort
SELECT DISTINCT cor0.col0 * col1 + 25 AS col0 FROM tab1 cor0
----
103
1065
665

query I rowsort
SELECT DISTINCT col1 * ( - col2 ) AS col0 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT - col1 * 38 AS col1 FROM tab2 cor0
----
-1178
-2242
-646

onlyif mysql # use DIV operator for integer division
query I rowsort label-5945
SELECT ALL - cor0.col2 + cor0.col2 DIV + ( - cor0.col0 * 23 ) AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75

skipif mysql # not compatible
query I rowsort label-5945
SELECT ALL - cor0.col2 + cor0.col2 / + ( - cor0.col0 * 23 ) AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75

onlyif mysql # use DIV operator for integer division
query I rowsort label-5946
SELECT DISTINCT - col2 - col2 DIV 4 AS col0 FROM tab0
----
-1
-102
-41

skipif mysql # not compatible
query I rowsort label-5946
SELECT DISTINCT - col2 - col2 / 4 AS col0 FROM tab0
----
-1
-102
-41

query I rowsort
SELECT ALL + 76 AS col2 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 7b2b08dd3f1adef028d3f40ef7c716da

query I rowsort
SELECT ALL + col0 - tab1.col1 * - 85 FROM tab1
----
1185
2213
914

query I rowsort
SELECT DISTINCT - 27 - col1 * ( + 83 + + col2 * ( 26 ) ) FROM tab0
----
-10600
-201592
-80953

query I rowsort
SELECT + 25 - - col2 * col2 FROM tab0
----
1114
26
6749

query I rowsort
SELECT ALL + + 5 * col1 * ( col1 ) FROM tab2 AS cor0
----
1445
17405
4805

query I rowsort
SELECT - 96 * col0 FROM tab0 AS cor0
----
-2304
-3360
-8544

query I rowsort
SELECT - col1 * col2 - - col2 * - col0 FROM tab1 cor0
----
-1566
-4218
-8928

query I rowsort
SELECT DISTINCT cor0.col1 + + 69 * col2 AS col0 FROM tab0 AS cor0
----
166
2363
5749

query I rowsort
SELECT DISTINCT - col0 + - 1 * + col1 * - col1 AS col1 FROM tab2 AS cor0
----
210
3403
954

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5956
SELECT ALL + - col1 * + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5956
SELECT ALL + - col1 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 + - 22 FROM tab0 AS cor0
----
64
69
75

query I rowsort
SELECT - col1 * cor0.col0 + - cor0.col1 FROM tab1 AS cor0
----
-104
-1053
-650

query I rowsort
SELECT + - col1 * + col1 - cor0.col0 FROM tab1 cor0
----
-164
-249
-679

query I rowsort
SELECT + col1 * - cor0.col2 + - col1 AS col2 FROM tab1 AS cor0
----
-1261
-1430
-580

query I rowsort
SELECT - - col1 * 55 + 98 FROM tab0 AS cor0
----
4828
5103
5433

query I rowsort
SELECT - col2 + 50 * col1 FROM tab0 AS cor0
----
4267
4468
4849

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + ( col2 ) col1 FROM tab1 AS cor0
----
108
114
192

query I rowsort
SELECT ALL + - col2 + col1 * - 30 FROM tab0 AS cor0
----
-2613
-2812
-2911

onlyif mysql # use DIV operator for integer division
query I rowsort label-5965
SELECT 99 DIV + col0 FROM tab0
----
1
2
4

skipif mysql # not compatible
query I rowsort label-5965
SELECT 99 / + col0 FROM tab0
----
1
2
4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5966
SELECT ALL - col0 / CAST( NULL AS DECIMAL ) - col1 * - col0 * - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5966
SELECT ALL - col0 / CAST ( NULL AS REAL ) - col1 * - col0 * - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col0 * - 39 - + 94 AS col2 FROM tab0 AS cor0
----
1271
3377
842

query I rowsort
SELECT - col1 * + 33 + 40 FROM tab0 AS cor0
----
-2798
-2963
-3161

query I rowsort
SELECT DISTINCT cor0.col2 + col2 * 74 FROM tab2 AS cor0
----
1950
2025
2850

query I rowsort
SELECT + - col0 + - cor0.col1 AS col2 FROM tab1 AS cor0
----
-29
-74
-93

onlyif mysql # use DIV operator for integer division
query I rowsort label-5971
SELECT ( + col2 ) DIV col1 FROM tab1 cor0
----
2
5
7

skipif mysql # not compatible
query I rowsort label-5971
SELECT ( + col2 ) / col1 FROM tab1 cor0
----
2
5
7

query I rowsort
SELECT + + col0 + col1 AS col1 FROM tab0 cor0
----
110
132
180

query I rowsort
SELECT DISTINCT - tab2.col1 * cor1.col0 AS col2 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
9 values hashing to 06f1aa65839c1bfc8581580bacdb6787

query I rowsort
SELECT ALL + col1 * ( - col1 ) FROM tab1
----
-100
-169
-676

query I rowsort
SELECT DISTINCT + - 64 * - col1 FROM tab2 AS cor0
----
1088
1984
3776

query I rowsort
SELECT ALL - col2 * - 97 FROM tab2
----
2522
2619
3686

query I rowsort
SELECT DISTINCT + - 4 + col2 AS col2 FROM tab1 AS cor0
----
50
53
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * - cor0.col0 col1 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT DISTINCT col1 * + col1 + col0 AS col0 FROM tab1 AS cor0
----
164
249
679

onlyif mysql # use DIV operator for integer division
query I rowsort label-5980
SELECT DISTINCT 3 * col2 DIV - tab2.col0 FROM tab2
----
-1
-11

skipif mysql # not compatible
query I rowsort label-5980
SELECT DISTINCT 3 * col2 / - tab2.col0 FROM tab2
----
-1
-11

query I rowsort
SELECT - col1 + + col2 * - col0 AS col0 FROM tab1 AS cor0
----
-188
-3658
-7693

query I rowsort
SELECT DISTINCT 60 - + col0 AS col0 FROM tab1 AS cor0
----
-20
-4
57

query I rowsort
SELECT DISTINCT - col0 * col0 * + col2 + + col1 FROM tab2 cor0
----
-1292
-158125
-237141

query I rowsort
SELECT ALL ( + cor0.col1 ) + - col0 AS col1 FROM tab0 AS cor0
----
2
62
62

query I rowsort
SELECT DISTINCT + col0 * cor0.col0 + col1 + col2 AS col0 FROM tab1 AS cor0
----
4163
6509
89

query I rowsort
SELECT DISTINCT - ( - 85 ) FROM tab2
----
85

query I rowsort
SELECT DISTINCT - ( 69 * col0 ) AS col0 FROM tab0
----
-1656
-2415
-6141

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 59 * - 95 col0 FROM tab1
----
-5605
-5605
-5605

query I rowsort
SELECT ALL - + col1 * + col1 + - cor0.col0 AS col1 FROM tab1 AS cor0
----
-164
-249
-679

query I rowsort
SELECT 55 + col0 AS col0 FROM tab1 cor0
----
119
135
58

query I rowsort
SELECT ALL - col1 * tab1.col1 AS col2 FROM tab1
----
-100
-169
-676

query I rowsort
SELECT ALL col0 * col1 + ( - col2 ) * + col2 * + col2 + col0 AS col1 FROM tab1 AS cor0
----
-157383
-184489
-883616

query I rowsort
SELECT - 6 * cor1.col0 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 0a14a4a014d05c3add40443ff29b2715

query I rowsort
SELECT ALL col0 + - ( 76 ) * - col1 AS col1 FROM tab0
----
6560
7005
7407

query I rowsort
SELECT ALL - ( 37 ) * col1 AS col1 FROM tab1 AS cor0
----
-370
-481
-962

query I rowsort
SELECT ALL + - col0 + 49 + + col1 FROM tab2 AS cor0
----
-13
30
73

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5997
SELECT + col0 - CAST( col1 AS SIGNED ) FROM tab0 AS cor0
----
-2
-62
-62

skipif mysql # not compatible
query I rowsort label-5997
SELECT + col0 - CAST ( col1 AS INTEGER ) FROM tab0 AS cor0
----
-2
-62
-62

query I rowsort
SELECT - 19 + - col1 FROM tab1 AS cor0
----
-29
-32
-45

query I rowsort
SELECT DISTINCT 5 + col2 FROM tab1 AS cor0
----
101
59
62

query I rowsort
SELECT DISTINCT + + col0 * - cor0.col1 AS col1 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT ALL - col0 * + cor0.col0 + - col0 * + 75 FROM tab0 AS cor0
----
-14596
-2376
-3850

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6002
SELECT - CAST( - col2 AS SIGNED ) + + col0 AS col1 FROM tab2 AS cor0
----
104
117
34

skipif mysql # not compatible
query I rowsort label-6002
SELECT - CAST ( - col2 AS INTEGER ) + + col0 AS col1 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT DISTINCT col0 * col2 * - col2 FROM tab0 cor0
----
-26136
-35
-598436

query I rowsort
SELECT + 51 + 43 FROM tab1 AS cor0
----
94
94
94

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6005
SELECT ALL - CAST( NULL AS DECIMAL ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-6005
SELECT ALL - CAST ( NULL AS REAL ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab1.col0 * tab1.col0 + + col0 col1 FROM tab1
----
12
4160
6480

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 47 + col2 col0 FROM tab2
----
-20
-21
-9

query I rowsort
SELECT + 12 * - col1 AS col0 FROM tab0
----
-1032
-1092
-1164

query I rowsort
SELECT + col0 - col0 * + col1 AS col1 FROM tab0 AS cor0
----
-2040
-3360
-8010

query I rowsort
SELECT + col1 * col0 + 49 AS col2 FROM tab2 AS cor0
----
1392
266
4651

query I rowsort
SELECT DISTINCT col0 + 41 * col0 FROM tab1 AS cor0
----
126
2688
3360

query I rowsort
SELECT + col0 + col0 * 28 AS col2 FROM tab0 AS cor0
----
1015
2581
696

query I rowsort
SELECT ALL + - col1 * - col1 + cor0.col0 AS col1 FROM tab0 AS cor0
----
7420
8370
9444

query I rowsort
SELECT col2 + - ( - col2 * + col2 ) AS col2 FROM tab2 AS cor0
----
1482
702
756

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( tab2.col1 ) col1 FROM tab2, tab1 AS cor0
----
17
31
59

query I rowsort
SELECT col2 + + 79 AS col0 FROM tab0 AS cor0
----
112
161
80

query I rowsort
SELECT col2 * ( col2 + - col1 ) AS col2 FROM tab0 AS cor0
----
-1749
-738
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 - 35 * 69 * - col2 col0 FROM tab1 cor0
----
130464
137712
231936

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + + ( cor0.col1 ) * + col2 col2 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT DISTINCT - col1 - + col2 * + ( - col0 ) AS col0 FROM tab2 AS cor0
----
158
1969
2985

query I rowsort
SELECT - - col0 + col2 * + col2 AS col2 FROM tab2 cor0
----
1523
736
754

onlyif mysql # use DIV operator for integer division
query I rowsort label-6022
SELECT ALL + 86 DIV - col1 FROM tab2
----
-1
-2
-5

skipif mysql # not compatible
query I rowsort label-6022
SELECT ALL + 86 / - col1 FROM tab2
----
-1
-2
-5

onlyif mysql # use DIV operator for integer division
query I rowsort label-6023
SELECT ALL - ( col2 ) DIV col1 col2 FROM tab2 AS cor0
----
-2
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6023
SELECT ALL - ( col2 ) / col1 col2 FROM tab2 AS cor0
----
-2
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 25 col1 FROM tab0 AS cor0
----
-25

query I rowsort
SELECT DISTINCT 61 * + col0 FROM tab2 AS cor0
----
427
4758
4819

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 29 * - col1 col0 FROM tab0 AS cor0
----
-2494
-2639
-2813

query I rowsort
SELECT - 46 * col1 FROM tab2 cor0
----
-1426
-2714
-782

query I rowsort
SELECT - 24 AS col1 FROM tab2, tab0 cor0
----
9 values hashing to 797d0f7c145f8ac623924448c714bbcc

query I rowsort
SELECT + 36 + - col1 AS col0 FROM tab0 AS cor0
----
-50
-55
-61

query I rowsort
SELECT DISTINCT - + 43 + col2 FROM tab1 AS cor0
----
11
14
53

onlyif mysql # use DIV operator for integer division
query I rowsort label-6031
SELECT DISTINCT + col2 DIV col0 - ( - col0 ) * col2 FROM tab0 AS cor0
----
35
7298
793

skipif mysql # not compatible
query I rowsort label-6031
SELECT DISTINCT + col2 / col0 - ( - col0 ) * col2 FROM tab0 AS cor0
----
35
7298
793

query I rowsort
SELECT DISTINCT 14 + col0 + col1 FROM tab1 AS cor0
----
107
43
88

query I rowsort
SELECT DISTINCT + + ( cor0.col2 ) + - col1 AS col1 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT ALL + col2 * + col0 * + col1 - cor0.col2 FROM tab2 AS cor0
----
119626
50996
5832

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 79 + col2 * - col1 col0 FROM tab2 AS cor0
----
-1455
-567
-758

query I rowsort
SELECT ALL - ( cor0.col2 ) + 85 * col2 FROM tab0 AS cor0
----
2772
6888
84

query I rowsort
SELECT - - 12 * + col1 AS col2 FROM tab2 AS cor0
----
204
372
708

query I rowsort
SELECT - cor0.col1 * col1 - 82 FROM tab2 AS cor0
----
-1043
-3563
-371

onlyif mysql # use DIV operator for integer division
query I rowsort label-6039
SELECT - + col2 * col2 + + ( + col0 ) DIV 95 - col1 col0 FROM tab2 AS cor0
----
-1461
-735
-760

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6039
SELECT - + col2 * col2 + + ( + col0 ) / 95 - col1 col0 FROM tab2 AS cor0
----
-1461
-735
-760

query I rowsort
SELECT - col1 + + col1 - cor0.col0 AS col1 FROM tab1 AS cor0
----
-3
-64
-80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6041
SELECT + CAST( col0 AS SIGNED ) + - col0 col2 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6041
SELECT + CAST ( col0 AS INTEGER ) + - col0 col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - col1 * - col1 + + cor0.col2 * + 8 AS col0 FROM tab1 AS cor0
----
1108
556
937

onlyif mysql # use DIV operator for integer division
query I rowsort label-6043
SELECT + col0 DIV + cor0.col0 + - col1 DIV - col1 AS col2 FROM tab2 AS cor0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-6043
SELECT + col0 / + cor0.col0 + - col1 / - col1 AS col2 FROM tab2 AS cor0
----
2
2
2

query I rowsort
SELECT + + cor0.col0 + col0 FROM tab2 cor0
----
14
156
158

onlyif mysql # use DIV operator for integer division
query I rowsort label-6045
SELECT DISTINCT col1 DIV - CAST( 10 AS SIGNED ) + col2 col1 FROM tab2
----
21
24
37

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6045
SELECT DISTINCT col1 / - CAST ( 10 AS INTEGER ) + col2 col1 FROM tab2
----
21
24
37

query I rowsort
SELECT + col1 * - col1 * - col0 + + tab2.col0 FROM tab2
----
22910
271596
6734

query I rowsort
SELECT col0 * + col1 + + ( tab1.col2 ) FROM tab1
----
1136
132
697

query I rowsort
SELECT DISTINCT + col2 * + 92 FROM tab0
----
3036
7544
92

onlyif mysql # use DIV operator for integer division
query I rowsort label-6049
SELECT ALL tab2.col0 DIV 12 AS col0 FROM tab2
----
0
6
6

skipif mysql # not compatible
query I rowsort label-6049
SELECT ALL tab2.col0 / 12 AS col0 FROM tab2
----
0
6
6

query I rowsort
SELECT ALL cor0.col2 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

query I rowsort
SELECT ALL + + ( cor0.col0 ) + cor0.col0 AS col1 FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT - ( - col1 ) + - col2 FROM tab1 AS cor0
----
-28
-47
-83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6053
SELECT - CAST( ( - col2 ) AS SIGNED ) AS col1 FROM tab1 cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-6053
SELECT - CAST ( ( - col2 ) AS INTEGER ) AS col1 FROM tab1 cor0
----
54
57
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-6054
SELECT DISTINCT - 64 + ( cor0.col2 + + col1 ) DIV 98 FROM tab0 AS cor0
----
-63

skipif mysql # not compatible
query I rowsort label-6054
SELECT DISTINCT - 64 + ( cor0.col2 + + col1 ) / 98 FROM tab0 AS cor0
----
-63

query I rowsort
SELECT ALL - + col2 + - col0 * cor0.col2 AS col2 FROM tab1 AS cor0
----
-216
-3705
-7776

query I rowsort
SELECT DISTINCT - + col1 * - col0 + col0 FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT ( - col1 ) * - col1 AS col0 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT + 28 * col1 FROM tab1 AS cor0
----
280
364
728

query I rowsort
SELECT DISTINCT - col0 - + cor0.col1 AS col0 FROM tab0 AS cor0
----
-110
-132
-180

query I rowsort
SELECT ALL + col1 * - col0 - - col0 * - ( cor0.col1 ) AS col2 FROM tab2 AS cor0
----
-2686
-434
-9204

query I rowsort
SELECT DISTINCT + - col2 * - 78 + col2 AS col2 FROM tab1 AS cor0
----
4266
4503
7584

query I rowsort
SELECT DISTINCT col0 + + col0 + + col0 AS col1 FROM tab0 AS cor0
----
105
267
72

query I rowsort
SELECT ALL 15 FROM tab1, tab1 cor0
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

query I rowsort
SELECT DISTINCT + + col0 - + 42 FROM tab0 AS cor0
----
-18
-7
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 51 col0 FROM tab0 AS cor0
----
51
51
51

query I rowsort
SELECT ALL + - cor0.col1 + - 77 FROM tab0 AS cor0
----
-163
-168
-174

onlyif mysql # use DIV operator for integer division
query I rowsort label-6067
SELECT + + col1 * - cor0.col1 + col1 DIV - col1 col2 FROM tab2 AS cor0
----
-290
-3482
-962

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6067
SELECT + + col1 * - cor0.col1 + col1 / - col1 col2 FROM tab2 AS cor0
----
-290
-3482
-962

query I rowsort
SELECT col2 * col2 * + col1 AS col1 FROM tab1
----
119808
32490
75816

query I rowsort
SELECT ALL ( 88 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37

onlyif mysql # use DIV operator for integer division
query I rowsort label-6070
SELECT + col0 + col0 * 96 DIV + cor0.col1 + + col2 col0 FROM tab2 AS cor0
----
230
55
563

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6070
SELECT + col0 + col0 * 96 / + cor0.col1 + + col2 col0 FROM tab2 AS cor0
----
230
55
563

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6071
SELECT + col0 / col0 + CAST( NULL AS SIGNED ) + col0 * col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6071
SELECT + col0 / col0 + CAST ( NULL AS INTEGER ) + col0 * col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + col0 + col0 + + col0 AS col1 FROM tab1 AS cor0
----
192
240
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col2 * 12 col1 FROM tab0 cor0
----
-12
-396
-984

query I rowsort
SELECT DISTINCT col1 + 23 * - col2 * col1 FROM tab2 AS cor0
----
-14841
-19220
-35223

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + ( 73 ) col1 FROM tab0 AS cor0
----
-16
38
49

onlyif mysql # use DIV operator for integer division
query I rowsort label-6076
SELECT - + col0 DIV + 13 AS col0 FROM tab0 AS cor0
----
-1
-2
-6

skipif mysql # not compatible
query I rowsort label-6076
SELECT - + col0 / + 13 AS col0 FROM tab0 AS cor0
----
-1
-2
-6

onlyif mysql # use DIV operator for integer division
query I rowsort label-6077
SELECT + col0 DIV + 40 + + 49 AS col2 FROM tab2 AS cor0
----
49
50
50

skipif mysql # not compatible
query I rowsort label-6077
SELECT + col0 / + 40 + + 49 AS col2 FROM tab2 AS cor0
----
49
50
50

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6078
SELECT - col2 + CAST( col2 AS SIGNED ) 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-6078
SELECT - col2 + CAST ( col2 AS INTEGER ) col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col1 * ( col0 ) AS col2 FROM tab1 AS cor0
----
-1040
-640
-78

onlyif mysql # use DIV operator for integer division
query I rowsort label-6080
SELECT ALL - col2 + + CAST( - 89 AS SIGNED ) DIV + col1 FROM tab0 AS cor0
----
-1
-34
-82

skipif mysql # not compatible
query I rowsort label-6080
SELECT ALL - col2 + + CAST ( - 89 AS INTEGER ) / + col1 FROM tab0 AS cor0
----
-1
-34
-82

query I rowsort
SELECT + cor0.col1 + 28 AS col1 FROM tab2 AS cor0
----
45
59
87

onlyif mysql # use DIV operator for integer division
query I rowsort label-6082
SELECT DISTINCT + - col0 DIV + cor0.col2 FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-6082
SELECT DISTINCT + - col0 / + cor0.col2 FROM tab1 AS cor0
----
-1
0

query I rowsort
SELECT col0 + cor0.col2 * col1 FROM tab2 AS cor0
----
1612
725
844

query I rowsort
SELECT col2 * col0 - + ( + col0 ) AS col0 FROM tab1
----
159
3584
7600

query I rowsort
SELECT ALL col0 * 12 AS col0 FROM tab0 AS cor0
----
1068
288
420

onlyif mysql # use DIV operator for integer division
query I rowsort label-6086
SELECT - col2 DIV - CAST( ( + col1 ) + + col1 AS SIGNED ) FROM tab1 AS cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-6086
SELECT - col2 / - CAST ( ( + col1 ) + + col1 AS INTEGER ) FROM tab1 AS cor0
----
1
2
3

onlyif mysql # use DIV operator for integer division
query I rowsort label-6087
SELECT DISTINCT - + col2 * - col2 + 69 DIV col1 FROM tab2 AS cor0
----
1448
677
731

skipif mysql # not compatible
query I rowsort label-6087
SELECT DISTINCT - + col2 * - col2 + 69 / col1 FROM tab2 AS cor0
----
1448
677
731

onlyif mysql # use DIV operator for integer division
query I rowsort label-6088
SELECT + 37 DIV col0 FROM tab2 AS cor0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-6088
SELECT + 37 / col0 FROM tab2 AS cor0
----
0
0
5

query I rowsort
SELECT DISTINCT - 0 * 82 AS col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT + col1 * 57 AS col2 FROM tab1
----
1482
570
741

query I rowsort
SELECT DISTINCT - col2 * + cor0.col2 + + 87 FROM tab0 AS cor0
----
-1002
-6637
86

query I rowsort
SELECT ALL 44 + col2 FROM tab1 AS cor0
----
101
140
98

query I rowsort
SELECT DISTINCT - 60 - + col2 * ( 30 * + col1 ) FROM tab2 cor0
----
-19440
-25170
-46080

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - col0 - col0 col1 FROM tab2
----
-1422
-224
-4680

query I rowsort
SELECT ALL + cor0.col0 FROM tab0, tab1 AS cor0, tab1, tab1 AS cor1
----
81 values hashing to e28bf7f922650ca423ade3642ce0285b

query I rowsort
SELECT DISTINCT col2 + + tab0.col2 + + col1 FROM tab0
----
152
255
99

query I rowsort
SELECT - 68 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 6fbba7db5bccb533a35aa5125a231f88

query I rowsort
SELECT ALL - ( col1 ) + 65 FROM tab1
----
39
52
55

query I rowsort
SELECT ALL + 35 AS col1 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 0d13dfd4c4a9d51ace3582c31cadcdbc

query I rowsort
SELECT col2 + - col2 * - col2 FROM tab1
----
2970
3306
9312

query I rowsort
SELECT DISTINCT 92 * - col0 + col0 AS col0 FROM tab2 AS cor0
----
-637
-7098
-7189

query I rowsort
SELECT cor0.col1 * + col1 - - 86 * 15 FROM tab1 AS cor0
----
1390
1459
1966

onlyif mysql # use DIV operator for integer division
query I rowsort label-6103
SELECT DISTINCT + col0 * col2 + - 18 * col0 DIV + col0 AS col1 FROM tab0 cor0
----
17
7280
774

skipif mysql # not compatible
query I rowsort label-6103
SELECT DISTINCT + col0 * col2 + - 18 * col0 / + col0 AS col1 FROM tab0 cor0
----
17
7280
774

query I rowsort
SELECT + cor0.col0 * + col0 + + cor0.col2 AS col2 FROM tab2 AS cor0
----
6110
6279
76

query I rowsort
SELECT ALL + cor0.col1 * col1 + - 43 + 34 * + col1 FROM tab2 AS cor0
----
1972
5444
824

query I rowsort
SELECT - 20 * - col2 + 69 AS col2 FROM tab2
----
589
609
829

query I rowsort
SELECT + col2 * col2 * col0 FROM tab2 cor0
----
114076
5103
52728

query I rowsort
SELECT DISTINCT + cor0.col0 * cor0.col1 + + col0 + col2 AS col2 FROM tab2 AS cor0
----
1460
251
4706

query I rowsort
SELECT ALL + col1 * col0 * + col2 + col2 * col1 FROM tab2
----
121186
51680
6696

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL >= + col0
----

query I rowsort
SELECT - col0 + col2 - - col0 * col2 AS col0 FROM tab1 AS cor0
----
213
3641
7696

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col2 FROM tab2 WHERE NOT col1 + - col1 NOT BETWEEN + col0 * col1 AND ( - col0 )
----

query I rowsort
SELECT DISTINCT + col2 + cor0.col1 * cor0.col1 FROM tab2 AS cor0
----
327
3507
988

query I rowsort
SELECT ALL tab0.col1 * + col0 + + col1 AS col2 FROM tab0
----
2150
3492
8190

query I rowsort
SELECT col1 * col2 FROM tab1 WHERE + col0 IN ( col1 + col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * col2 + col1 + col0 col1 FROM tab2
----
-151
-1891
-2906

query I rowsort
SELECT col1 + + col0 * - col2 * col0 FROM tab1
----
-233462
-460
-614387

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * - col2 * - tab0.col1 col2 FROM tab0
----
244068
679042
9409

query I rowsort
SELECT - - col1 * col2 + col1 FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT col1 + - col2 * - col0 FROM tab2 AS cor0
----
2087
220
3019

query I rowsort
SELECT DISTINCT + col2 * + tab2.col0 + - col2 AS col1 FROM tab2
----
162
2002
2964

query I rowsort
SELECT + col1 FROM tab0 WHERE ( NULL ) >= NULL
----

query I rowsort
SELECT - col0 + + col1 * col0 AS col0 FROM tab2
----
1264
210
4524

query I rowsort
SELECT - col2 * + col2 + col1 FROM tab2
----
-1427
-617
-698

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab0.col1 * + col1 col0 FROM tab0
----
-7396
-8281
-9409

query I rowsort
SELECT ALL - tab0.col0 * - col0 + col2 AS col0 FROM tab0
----
1226
609
8003

query I rowsort
SELECT + col0 * col1 * + col2 FROM tab1
----
36480
4212
99840

query I rowsort
SELECT ALL col1 * tab0.col0 * - col0 AS col1 FROM tab0
----
-118825
-49536
-720811

query I rowsort
SELECT - col1 * col2 + - col1 - col1 FROM tab1
----
-1274
-1456
-590

onlyif mysql # use DIV operator for integer division
query I rowsort label-6130
SELECT ALL col2 DIV col2 + - col0 * col0 AS col0 FROM tab0
----
-1224
-575
-7920

skipif mysql # not compatible
query I rowsort label-6130
SELECT ALL col2 / col2 + - col0 * col0 AS col0 FROM tab0
----
-1224
-575
-7920

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col2 = ( NULL )
----

query I rowsort
SELECT DISTINCT tab0.col0 AS col1 FROM tab0 WHERE col1 < col1
----

query I rowsort
SELECT 91 + 83 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 22217962452e0974ad3f38cf7a710192

query I rowsort
SELECT - - ( + cor0.col2 ) FROM tab0 AS cor0
----
1
33
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-6135
SELECT DISTINCT col1 DIV + col0 + + col1 * - col1 AS col1 FROM tab1
----
-100
-169
-668

skipif mysql # not compatible
query I rowsort label-6135
SELECT DISTINCT col1 / + col0 + + col1 * - col1 AS col1 FROM tab1
----
-100
-169
-668

query I rowsort
SELECT ALL + col2 + col1 * cor0.col1 FROM tab0 cor0
----
7429
8363
9410

query I rowsort
SELECT DISTINCT col0 - col1 FROM tab0 cor0
----
-2
-62

query I rowsort
SELECT col2 * + col0 + col1 FROM tab0 AS cor0
----
132
7389
878

onlyif mysql # use DIV operator for integer division
query I rowsort label-6139
SELECT DISTINCT tab1.col2 + col2 DIV col0 col2 FROM tab1
----
57
72
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6139
SELECT DISTINCT tab1.col2 + col2 / col0 col2 FROM tab1
----
57
72
97

query I rowsort
SELECT - col1 * - tab1.col2 - + col1 FROM tab1
----
1235
1378
560

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 + col2 col0 FROM tab2 AS cor0
----
55
58
85

onlyif mysql # use DIV operator for integer division
query I rowsort label-6142
SELECT DISTINCT col0 DIV col1 + tab1.col2 * - col0 * col2 AS col0 FROM tab1
----
-207930
-737274
-8748

skipif mysql # not compatible
query I rowsort label-6142
SELECT DISTINCT col0 / col1 + tab1.col2 * - col0 * col2 AS col0 FROM tab1
----
-207930
-737274
-8748

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL IN ( + col2 + - col0 )
----

query I rowsort
SELECT - col1 * + col0 * col0 + col2 AS col2 FROM tab2
----
-106059
-1492
-358930

query I rowsort
SELECT DISTINCT col2 + - col0 * - col2 * - col1 AS col0 FROM tab0
----
-3394
-664036
-68079

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN ( + col0 ) AND NULL
----

query I rowsort
SELECT - col1 * col0 * col2 + + col1 FROM tab0
----
-3298
-664027
-68026

query I rowsort
SELECT + col2 + col2 + tab1.col2 * - col2 * col0 FROM tab1
----
-207822
-737088
-8640

query I rowsort
SELECT col1 + col0 * + col2 * + col2 + + col1 FROM tab2
----
114110
5165
52846

query I rowsort
SELECT + col2 * col1 + col1 AS col0 FROM tab2
----
1593
663
868

query I rowsort
SELECT col1 FROM tab1 WHERE NOT col2 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - col0 + - tab1.col2 * - col2 FROM tab1
----
2913
3185
9136

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col2 + col2 * - col0 col2 FROM tab2
----
-378
-4056
-6004

onlyif mysql # use DIV operator for integer division
query I rowsort label-6154
SELECT ALL col2 DIV tab1.col1 + - tab1.col1 * - col1 FROM tab1
----
105
176
678

skipif mysql # not compatible
query I rowsort label-6154
SELECT ALL col2 / tab1.col1 + - tab1.col1 * - col1 FROM tab1
----
105
176
678

query I rowsort
SELECT ALL - col0 * col2 + + col2 * col0 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + - col1 * - cor0.col2 * + ( - 71 ) FROM tab1 AS cor0
----
-40470
-88608
-99684

onlyif mysql # use DIV operator for integer division
query I rowsort label-6157
SELECT + 2 DIV + col0 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6157
SELECT + 2 / + col0 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - cor0.col0 + + 18 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-17
-6
-71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 4 * tab0.col2 col0 FROM tab0
----
132
328
4

query I rowsort
SELECT ALL - 13 * col1 AS col0 FROM tab0
----
-1118
-1183
-1261

query I rowsort
SELECT - col2 * + col2 + col2 FROM tab1
----
-2862
-3192
-9120

query I rowsort
SELECT + col0 * tab1.col2 * - col1 + + 10 FROM tab1
----
-36470
-4202
-99830

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + col2 * col1 * CAST ( col1 AS REAL ) FROM tab0
----
244068
679042
9409

query I rowsort
SELECT + 88 AS col2 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to c46e7cf9bf516fdfde88534336a28177

query I rowsort
SELECT 50 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 314aace40e704c20a6be06204a329f80

query I rowsort
SELECT - - 89 + col1 * + col0 FROM tab0 cor0
----
2153
3484
8188

query I rowsort
SELECT + + 11 * + col2 + - col1 FROM tab1 AS cor0
----
1043
568
617

query I rowsort
SELECT 99 + - col2 FROM tab0
----
17
66
98

query I rowsort
SELECT ALL 34 AS col0 FROM tab2, tab1 AS cor0, tab1 cor1
----
27 values hashing to 4e2ca147a59e0d5661c28cf3e5431caa

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 68 + col0 col2 FROM tab2 cor0
----
146
147
75

query I rowsort
SELECT DISTINCT + col1 + + cor0.col1 * + col1 * col1 AS col2 FROM tab0 AS cor0
----
636142
753662
912770

query I rowsort
SELECT DISTINCT + col0 * + cor0.col0 * col1 + 35 + - col2 AS col1 FROM tab2 AS cor0
----
106094
1527
358965

query I rowsort
SELECT + col2 * tab1.col2 * 44 FROM tab1
----
128304
142956
405504

query I rowsort
SELECT DISTINCT - col1 - 46 FROM tab0
----
-132
-137
-143

onlyif mysql # use DIV operator for integer division
query I rowsort label-6175
SELECT 40 + - col2 * col1 DIV - col0 FROM tab2 AS cor0
----
159
48
59

skipif mysql # not compatible
query I rowsort label-6175
SELECT 40 + - col2 * col1 / - col0 FROM tab2 AS cor0
----
159
48
59

query I rowsort
SELECT + col2 + col1 + - col1 AS col0 FROM tab2
----
26
27
38

query I rowsort
SELECT 31 + + col1 FROM tab2 AS cor0
----
48
62
90

query I rowsort
SELECT DISTINCT cor0.col0 + - col2 + col1 FROM tab0 AS cor0
----
131
77
98

query I rowsort
SELECT DISTINCT + ( 34 ) + - cor0.col1 FROM tab1 AS cor0
----
21
24
8

query I rowsort
SELECT DISTINCT 8 + 71 AS col0 FROM tab2 AS cor0
----
79

query I rowsort
SELECT - + ( + col1 ) * + col0 + + col0 AS col0 FROM tab1 cor0
----
-576
-75
-960

onlyif mysql # use DIV operator for integer division
query I rowsort label-6182
SELECT DISTINCT + - 35 DIV 63 + - col1 * 5 * + ( col0 ) FROM tab0 AS cor0
----
-10320
-16975
-40495

skipif mysql # not compatible
query I rowsort label-6182
SELECT DISTINCT + - 35 / 63 + - col1 * 5 * + ( col0 ) FROM tab0 AS cor0
----
-10320
-16975
-40495

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + ( col0 ) - - col2 col0 FROM tab1 AS cor0
----
216
3705
7776

query I rowsort
SELECT ALL col2 + ( col1 ) * - 84 * + 25 FROM tab1 AS cor0
----
-20943
-27204
-54546

query I rowsort
SELECT + 53 * col0 + - col0 * col2 AS col0 FROM tab2 AS cor0
----
1185
182
2106

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 60 + 72 col0 FROM tab0
----
12

query I rowsort
SELECT - col2 + + col2 + col0 * - col0 FROM tab1
----
-4096
-6400
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + - col0 + col2 * - tab0.col0 * col2 col0 FROM tab0
----
-26193
-598607
-71

query I rowsort
SELECT + col0 + - 88 * tab1.col2 FROM tab1
----
-4749
-4952
-8368

query I rowsort
SELECT DISTINCT 43 * - col0 * col0 + col0 AS col0 FROM tab0
----
-24744
-340514
-52640

query I rowsort
SELECT + ( col2 ) + col0 + + col2 FROM tab0
----
253
37
90

query I rowsort
SELECT - ( + 94 ) + col1 - + col0 AS col0 FROM tab0
----
-32
-32
-92

query I rowsort
SELECT col0 + col2 * + col0 + - col1 FROM tab1
----
139
3702
7747

onlyif mysql # use DIV operator for integer division
query I rowsort label-6194
SELECT + col0 + - tab0.col2 DIV tab0.col2 FROM tab0
----
23
34
88

skipif mysql # not compatible
query I rowsort label-6194
SELECT + col0 + - tab0.col2 / tab0.col2 FROM tab0
----
23
34
88

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6195
SELECT DISTINCT CAST( - 13 AS SIGNED ) * col2 + col0 * col2 FROM tab2
----
-162
1690
2508

skipif mysql # not compatible
query I rowsort label-6195
SELECT DISTINCT CAST ( - 13 AS INTEGER ) * col2 + col0 * col2 FROM tab2
----
-162
1690
2508

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 32 col2 FROM tab0, tab0 AS cor0
----
9 values hashing to d30a2acbf33c88274474306936d3227b

query I rowsort
SELECT - cor0.col0 + - 87 - - col2 AS col0 FROM tab1 AS cor0
----
-36
-71
-94

onlyif mysql # use DIV operator for integer division
query I rowsort label-6198
SELECT ( + col2 ) DIV + col0 FROM tab2
----
0
0
3

skipif mysql # not compatible
query I rowsort label-6198
SELECT ( + col2 ) / + col0 FROM tab2
----
0
0
3

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6199
SELECT DISTINCT - + CAST( 10 AS SIGNED ) * col2 + + col0 FROM tab0 AS cor0
----
-306
-731
25

skipif mysql # not compatible
query I rowsort label-6199
SELECT DISTINCT - + CAST ( 10 AS INTEGER ) * col2 + + col0 FROM tab0 AS cor0
----
-306
-731
25

query I rowsort
SELECT ALL + ( - 83 ) + col2 AS col0 FROM tab1 AS cor0
----
-26
-29
13

query I rowsort
SELECT - + col0 + + cor0.col1 * col1 AS col2 FROM tab2 AS cor0
----
210
3403
954

query I rowsort
SELECT DISTINCT + + col2 * col2 FROM tab1 cor0
----
2916
3249
9216

query I rowsort
SELECT ALL ( + col0 ) * + col1 AS col1 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT DISTINCT + + col1 * col2 + - col1 AS col2 FROM tab1 AS cor0
----
1235
1378
560

query I rowsort
SELECT DISTINCT - 60 * + cor0.col0 + col2 FROM tab2 AS cor0
----
-393
-4654
-4702

query I rowsort
SELECT + + 32 + + cor0.col1 * cor0.col2 AS col1 FROM tab1 AS cor0
----
1280
1436
602

query I rowsort
SELECT + - col2 + - col1 AS col0 FROM tab1 cor0
----
-109
-67
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-6208
SELECT ALL 67 * col1 * col0 + - col0 DIV - col0 AS col2 FROM tab2 AS cor0
----
14540
308335
89982

skipif mysql # not compatible
query I rowsort label-6208
SELECT ALL 67 * col1 * col0 + - col0 / - col0 AS col2 FROM tab2 AS cor0
----
14540
308335
89982

query I rowsort
SELECT DISTINCT - - col2 * col2 - col0 FROM tab1 AS cor0
----
2913
3185
9136

query I rowsort
SELECT - - 43 AS col2 FROM tab2 AS cor0
----
43
43
43

query I rowsort
SELECT DISTINCT 48 + + col1 FROM tab1 AS cor0
----
58
61
74

onlyif mysql # use DIV operator for integer division
query I rowsort label-6212
SELECT DISTINCT - - col2 * col2 DIV col1 FROM tab2 AS cor0
----
11
23
84

skipif mysql # not compatible
query I rowsort label-6212
SELECT DISTINCT - - col2 * col2 / col1 FROM tab2 AS cor0
----
11
23
84

onlyif mysql # use DIV operator for integer division
query I rowsort label-6213
SELECT ALL - - col1 - col2 DIV - col1 FROM tab2 AS cor0
----
19
31
59

skipif mysql # not compatible
query I rowsort label-6213
SELECT ALL - - col1 - col2 / - col1 FROM tab2 AS cor0
----
19
31
59

query I rowsort
SELECT col0 + - 68 - col0 FROM tab1
----
-68
-68
-68

query I rowsort
SELECT DISTINCT ( 79 ) * col1 + col2 AS col1 FROM tab0
----
6827
7271
7664

onlyif mysql # use DIV operator for integer division
query I rowsort label-6216
SELECT DISTINCT - + cor0.col1 DIV - col1 + col2 FROM tab2 AS cor0
----
27
28
39

skipif mysql # not compatible
query I rowsort label-6216
SELECT DISTINCT - + cor0.col1 / - col1 + col2 FROM tab2 AS cor0
----
27
28
39

query I rowsort
SELECT DISTINCT + col1 * - col1 * - col0 FROM tab0 AS cor0
----
177504
329315
737009

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * + ( + col2 * - col2 ) col0 FROM tab2 AS cor0
----
-17576
-19683
-54872

query I rowsort
SELECT ALL + + cor0.col0 * - ( - col1 ) FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT + - col2 * cor0.col0 * col0 FROM tab0 AS cor0
----
-1225
-19008
-649522

query I rowsort
SELECT ALL - col0 * - 7 FROM tab0 AS cor0
----
168
245
623

query I rowsort
SELECT ( col0 + + ( + 56 ) ) AS col0 FROM tab1
----
120
136
59

query I rowsort
SELECT ALL - col2 + 11 AS col2 FROM tab0 AS cor0
----
-22
-71
10

query I rowsort
SELECT + col1 * 80 * 9 FROM tab2 cor0
----
12240
22320
42480

query I rowsort
SELECT ALL + + col1 * cor0.col1 * cor0.col1 FROM tab0 AS cor0
----
636056
753571
912673

onlyif mysql # use DIV operator for integer division
query I rowsort label-6226
SELECT tab1.col2 DIV col0 + col0 * - tab1.col0 AS col1 FROM tab1
----
-4096
-6399
9

skipif mysql # not compatible
query I rowsort label-6226
SELECT tab1.col2 / col0 + col0 * - tab1.col0 AS col1 FROM tab1
----
-4096
-6399
9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6227
SELECT ALL - - col0 * CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6227
SELECT ALL - - col0 * CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * col2 col0 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT col0 * 95 FROM tab2 AS cor0
----
665
7410
7505

query I rowsort
SELECT + - col1 + - 47 * col2 AS col1 FROM tab0 AS cor0
----
-144
-1637
-3945

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6231
SELECT ALL CAST( - 15 AS SIGNED ) col0 FROM tab2, tab0 cor0
----
9 values hashing to 1172c9a62bdad7db0def9205c06ee1f2

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6231
SELECT ALL CAST ( - 15 AS INTEGER ) col0 FROM tab2, tab0 cor0
----
9 values hashing to 1172c9a62bdad7db0def9205c06ee1f2

query I rowsort
SELECT col0 * col2 + + 60 * col0 FROM tab2 AS cor0
----
609
6708
7742

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6233
SELECT col2 * CAST( NULL AS SIGNED ) + ( - col0 ) + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6233
SELECT col2 * CAST ( NULL AS INTEGER ) + ( - col0 ) + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + col0 + col0 * ( col1 ) AS col2 FROM tab2 AS cor0
----
1264
210
4524

query I rowsort
SELECT - - col0 * + 41 * 25 FROM tab2 AS cor0
----
7175
79950
80975

query I rowsort
SELECT - + col1 + - col2 * 85 AS col0 FROM tab0 AS cor0
----
-182
-2891
-7061

query I rowsort
SELECT ( + 7 ) * + col2 AS col2 FROM tab1 cor0
----
378
399
672

skipif mysql # not compatible
query I rowsort
SELECT - CAST ( col0 AS REAL ) * col0 FROM tab0 AS cor0
----
-1225
-576
-7921

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 46 col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39

query I rowsort
SELECT ALL 81 + 58 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to ec60c4a1fe63bc8e6608e204b0ee0405

query I rowsort
SELECT ALL - 1 FROM tab0 cor0 CROSS JOIN tab1, tab0 cor1, tab1 AS cor2
----
81 values hashing to f3aaea07874d9328a91c424c0907a688

query I rowsort
SELECT + - 16 + - col1 FROM tab2 AS cor0
----
-33
-47
-75

onlyif mysql # use DIV operator for integer division
query I rowsort label-6243
SELECT ALL col1 * col0 + 6 DIV ( col2 ) FROM tab0 AS cor0
----
2064
3401
8099

skipif mysql # not compatible
query I rowsort label-6243
SELECT ALL col1 * col0 + 6 / ( col2 ) FROM tab0 AS cor0
----
2064
3401
8099

query I rowsort
SELECT ALL + + col1 + col0 + - col0 * + 69 FROM tab2 AS cor0
----
-445
-5245
-5355

query I rowsort
SELECT DISTINCT - - col1 + + col1 * - ( - col0 ) AS col1 FROM tab2 AS cor0
----
1360
248
4661

query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0 cor0, tab0, tab1 cor1
----
972 values hashing to 9af67d6f98010464af5d560bf949d487

query I rowsort
SELECT + col0 * col2 + - tab0.col1 FROM tab0
----
-62
706
7207

query I rowsort
SELECT - 75 * - col1 AS col0 FROM tab0
----
6450
6825
7275

query I rowsort
SELECT ALL + col0 * col1 * 43 FROM tab0
----
145985
348257
88752

onlyif mysql # use DIV operator for integer division
query I rowsort label-6250
SELECT DISTINCT col2 * tab1.col0 + col1 DIV + 89 + + col0 FROM tab1
----
165
3712
7760

skipif mysql # not compatible
query I rowsort label-6250
SELECT DISTINCT col2 * tab1.col0 + col1 / + 89 + + col0 FROM tab1
----
165
3712
7760

query I rowsort
SELECT DISTINCT col1 + - col1 * 68 AS col1 FROM tab2
----
-1139
-2077
-3953

query I rowsort
SELECT + col1 + col1 * col2 + + 84 FROM tab0 AS cor0
----
278
3008
7637

query I rowsort
SELECT DISTINCT + + col0 + + col0 + ( cor0.col2 ) * - col2 FROM tab1 AS cor0
----
-2910
-3121
-9056

query I rowsort
SELECT DISTINCT + col2 * - 70 AS col2 FROM tab0
----
-2310
-5740
-70

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6255
SELECT DISTINCT col2 + - CAST( - col2 AS SIGNED ) AS col0 FROM tab1
----
108
114
192

skipif mysql # not compatible
query I rowsort label-6255
SELECT DISTINCT col2 + - CAST ( - col2 AS INTEGER ) AS col0 FROM tab1
----
108
114
192

query I rowsort
SELECT + col2 * - ( - col2 ) + + col1 FROM tab1 AS cor0
----
2942
3259
9229

query I rowsort
SELECT col2 + - ( + cor0.col2 ) AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT col2 + - 3 FROM tab2 AS cor0
----
23
24
35

query I rowsort
SELECT DISTINCT - cor0.col1 AS col1 FROM tab1, tab0, tab0 AS cor0
----
-86
-91
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-6260
SELECT + col2 DIV + 86 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6260
SELECT + col2 / + 86 FROM tab1
----
0
0
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6261
SELECT CAST( NULL AS SIGNED ) * col1 col1 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6261
SELECT CAST ( NULL AS INTEGER ) * col1 col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + + ( ( col2 ) ) AS col0 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT ALL - cor0.col2 + col1 * col2 * cor0.col0 FROM tab0 AS cor0
----
3394
664036
68079

query I rowsort
SELECT + ( - col0 ) + - col0 AS col1 FROM tab0 AS cor0
----
-178
-48
-70

query I rowsort
SELECT ALL - col0 - - col2 AS col0 FROM tab0 AS cor0
----
-34
-7
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-6266
SELECT - col1 DIV col0 + ( - col2 ) AS col1 FROM tab1 AS cor0
----
-57
-62
-96

skipif mysql # not compatible
query I rowsort label-6266
SELECT - col1 / col0 + ( - col2 ) AS col1 FROM tab1 AS cor0
----
-57
-62
-96

query I rowsort
SELECT DISTINCT + - col0 * + col0 + 3 AS col1 FROM tab1 AS cor0
----
-4093
-6
-6397

query I rowsort
SELECT + - 8 FROM tab2 AS cor0
----
-8
-8
-8

onlyif mysql # use DIV operator for integer division
query I rowsort label-6269
SELECT ( 70 ) DIV - col1 AS col1 FROM tab1
----
-2
-5
-7

skipif mysql # not compatible
query I rowsort label-6269
SELECT ( 70 ) / - col1 AS col1 FROM tab1
----
-2
-5
-7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6270
SELECT DISTINCT - CAST( + 21 AS SIGNED ) + col2 FROM tab2
----
17
5
6

skipif mysql # not compatible
query I rowsort label-6270
SELECT DISTINCT - CAST ( + 21 AS INTEGER ) + col2 FROM tab2
----
17
5
6

query I rowsort
SELECT + - col2 + + col1 AS col1 FROM tab1 cor0
----
-28
-47
-83

query I rowsort
SELECT + 32 * 41 + - col0 * - col2 FROM tab2 AS cor0
----
1501
3340
4314

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0, tab1 cor1, tab1, tab0 AS cor2
----
3645 values hashing to 1260d4dbe7a8d809e8010586a3c398c5

query I rowsort
SELECT - + cor0.col1 - ( col1 * col2 ) FROM tab0 AS cor0
----
-194
-2924
-7553

onlyif mysql # use DIV operator for integer division
query I rowsort label-6275
SELECT col0 * - col0 * + col2 - - cor0.col1 DIV + col1 FROM tab0 AS cor0
----
-1224
-19007
-649521

skipif mysql # not compatible
query I rowsort label-6275
SELECT col0 * - col0 * + col2 - - cor0.col1 / + col1 FROM tab0 AS cor0
----
-1224
-19007
-649521

query I rowsort
SELECT + col1 * + 80 FROM tab2 AS cor0
----
1360
2480
4720

onlyif mysql # use DIV operator for integer division
query I rowsort label-6277
SELECT - + ( - 36 ) DIV - col1 - cor0.col2 FROM tab0 AS cor0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-6277
SELECT - + ( - 36 ) / - col1 - cor0.col2 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT ALL + 95 * col2 AS col1 FROM tab2 cor0
----
2470
2565
3610

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * col0 col1 FROM tab0 cor0
----
2064
3395
8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-6280
SELECT ALL + + col1 + + col2 DIV - col2 AS col2 FROM tab0 AS cor0
----
85
90
96

skipif mysql # not compatible
query I rowsort label-6280
SELECT ALL + + col1 + + col2 / - col2 AS col2 FROM tab0 AS cor0
----
85
90
96

query I rowsort
SELECT ALL - + 15 AS col0 FROM tab1 cor0
----
-15
-15
-15

onlyif mysql # use DIV operator for integer division
query I rowsort label-6282
SELECT col2 + col1 DIV - 62 + + 99 DIV col2 FROM tab0 AS cor0
----
35
82
99

skipif mysql # not compatible
query I rowsort label-6282
SELECT col2 + col1 / - 62 + + 99 / col2 FROM tab0 AS cor0
----
35
82
99

query I rowsort
SELECT col0 * + col0 * col0 AS col2 FROM tab0
----
13824
42875
704969

onlyif mysql # use DIV operator for integer division
query I rowsort label-6284
SELECT - ( 67 ) - col2 DIV col1 AS col0 FROM tab2
----
-67
-67
-69

skipif mysql # not compatible
query I rowsort label-6284
SELECT - ( 67 ) - col2 / col1 AS col0 FROM tab2
----
-67
-67
-69

query I rowsort
SELECT + col0 * col1 + - col2 * - col0 + col0 FROM tab0
----
15486
2880
3465

onlyif mysql # use DIV operator for integer division
query I rowsort label-6286
SELECT tab0.col2 DIV - ( + tab0.col2 ) col2 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 84da757b1b7b0069ce25607f39bc08d9

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6286
SELECT tab0.col2 / - ( + tab0.col2 ) col2 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 84da757b1b7b0069ce25607f39bc08d9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6287
SELECT ALL + CAST( NULL AS SIGNED ) AS col2 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-6287
SELECT ALL + CAST ( NULL AS INTEGER ) AS col2 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( col1 AS REAL ) * col1 + 55 FROM tab2
----
1016
344
3536

query I rowsort
SELECT ALL col2 + ( + col1 ) FROM tab2 cor0
----
55
58
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + col1 * - col2 col0 FROM tab2 cor0
----
-1508
-608
-810

query I rowsort
SELECT ALL cor0.col0 AS col2 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 - + ( + col1 ) * col0 col2 FROM tab0 AS cor0
----
-1978
-3298
-8008

onlyif mysql # use DIV operator for integer division
query I rowsort label-6293
SELECT ALL + + col0 DIV + cor0.col1 FROM tab1 AS cor0
----
0
6
6

skipif mysql # not compatible
query I rowsort label-6293
SELECT ALL + + col0 / + cor0.col1 FROM tab1 AS cor0
----
0
6
6

query I rowsort
SELECT DISTINCT - 78 * col0 AS col2 FROM tab0
----
-1872
-2730
-6942

query I rowsort
SELECT - col0 * ( col1 ) * col2 AS col1 FROM tab2
----
-119652
-51034
-5859

query I rowsort
SELECT DISTINCT + 39 FROM tab0, tab0 AS cor0, tab2 cor1
----
39

query I rowsort
SELECT col0 * - ( cor0.col2 ) + cor0.col0 * cor0.col2 AS col2 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6298
SELECT + col2 DIV col1 + col1 FROM tab2 AS cor0
----
19
31
59

skipif mysql # not compatible
query I rowsort label-6298
SELECT + col2 / col1 + col1 FROM tab2 AS cor0
----
19
31
59

query I rowsort
SELECT + + col2 - col0 AS col0 FROM tab2 AS cor0
----
-41
-52
20

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6300
SELECT ALL + CAST( NULL AS DECIMAL ) - cor0.col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6300
SELECT ALL + CAST ( NULL AS REAL ) - cor0.col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - ( + ( col2 ) ) * col2 + + 37 FROM tab0 AS cor0
----
-1052
-6687
36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - col2 * + cor0.col0 col0 FROM tab2 cor0
----
-1323
-158184
-237158

query I rowsort
SELECT - col0 + + 44 FROM tab1
----
-20
-36
41

query I rowsort
SELECT ALL - cor0.col0 AS col0 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8

query I rowsort
SELECT - tab1.col1 + - 14 AS col1 FROM tab1
----
-24
-27
-40

query I rowsort
SELECT DISTINCT col2 + + col0 * col2 AS col0 FROM tab2 AS cor0
----
2054
216
3040

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6307
SELECT - + col2 * - cor0.col2 + col0 * CAST( NULL AS SIGNED ) + 41 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6307
SELECT - + col2 * - cor0.col2 + col0 * CAST ( NULL AS INTEGER ) + 41 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 * - 84 FROM tab2 AS cor0
----
-2184
-2268
-3192

query I rowsort
SELECT ALL - - col0 * + 96 + - cor0.col2 AS col1 FROM tab1 AS cor0
----
234
6087
7584

query I rowsort
SELECT col0 * 20 * - col2 AS col0 FROM tab1
----
-153600
-3240
-72960

query I rowsort
SELECT - - 70 + col0 AS col1 FROM tab1 cor0
----
134
150
73

query I rowsort
SELECT DISTINCT + col2 * - 26 + col0 AS col2 FROM tab1 AS cor0
----
-1401
-1418
-2416

query I rowsort
SELECT ALL 57 + col1 AS col1 FROM tab1 AS cor0
----
67
70
83

query I rowsort
SELECT DISTINCT 7 + cor0.col1 FROM tab2 AS cor0
----
24
38
66

query I rowsort
SELECT - - col1 - - col1 AS col1 FROM tab1 cor0
----
20
26
52

query I rowsort
SELECT DISTINCT - - col0 + 35 + + col2 AS col2 FROM tab1 AS cor0
----
156
211
92

query I rowsort
SELECT DISTINCT + ( + 0 ) * col1 AS col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL col0 + col2 * + col2 + + col0 FROM tab2 AS cor0
----
1602
743
832

query I rowsort
SELECT DISTINCT + + cor0.col0 * col2 AS col1 FROM tab0 cor0
----
35
7298
792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 - - 93 col0 FROM tab2 AS cor0
----
55
66
67

query I rowsort
SELECT DISTINCT + 16 + col2 AS col0 FROM tab1 AS cor0
----
112
70
73

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6322
SELECT 24 - col2 * col1 * + CAST( NULL AS SIGNED ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6322
SELECT 24 - col2 * col1 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col0 + - 12 * + col0 + + col2 AS col1 FROM tab2 cor0
----
-64
-988
-989

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 12 - - col0 col0 FROM tab1
----
15
76
92

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6325
SELECT ALL + col2 * col1 * CAST( + col2 AS SIGNED ) FROM tab0
----
611884
93654
97

skipif mysql # not compatible
query I rowsort label-6325
SELECT ALL + col2 * col1 * CAST ( + col2 AS INTEGER ) FROM tab0
----
611884
93654
97

query I rowsort
SELECT DISTINCT + 37 + col1 * cor0.col2 * + col2 FROM tab0 AS cor0
----
134
611921
93691

query I rowsort
SELECT ALL + - cor0.col2 * - col1 FROM tab0 AS cor0
----
2838
7462
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-6328
SELECT ALL - cor0.col2 DIV col2 col2 FROM tab1 AS cor0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6328
SELECT ALL - cor0.col2 / col2 col2 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT + ( - col0 ) * cor0.col1 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT ALL - + 34 AS col0 FROM tab0 AS cor0
----
-34
-34
-34

query I rowsort
SELECT 13 + col2 FROM tab2 AS cor0
----
39
40
51

query I rowsort
SELECT ALL + col1 * col0 + - 85 * - col1 AS col0 FROM tab2 AS cor0
----
2788
2852
9617

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6333
SELECT DISTINCT col2 * - CAST( NULL AS DECIMAL ) + col2 + col2 * - col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6333
SELECT DISTINCT col2 * - CAST ( NULL AS REAL ) + col2 + col2 * - col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + 20 * col1 FROM tab2
----
1180
340
620

query I rowsort
SELECT ALL cor0.col0 + 94 FROM tab1 AS cor0
----
158
174
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col1 + + ( + col1 + col1 ) col0 FROM tab0 AS cor0
----
258
273
291

query I rowsort
SELECT 10 + col2 AS col2 FROM tab0
----
11
43
92

query I rowsort
SELECT ( + ( col2 ) ) * - 49 AS col1 FROM tab2
----
-1274
-1323
-1862

query I rowsort
SELECT ALL - ( + col2 ) * col1 + + 1 FROM tab1 AS cor0
----
-1247
-1403
-569

query I rowsort
SELECT DISTINCT col0 - + 83 FROM tab1 AS cor0
----
-19
-3
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-6341
SELECT DISTINCT - col1 * col1 DIV - col1 + 17 FROM tab2 AS cor0
----
34
48
76

skipif mysql # not compatible
query I rowsort label-6341
SELECT DISTINCT - col1 * col1 / - col1 + 17 FROM tab2 AS cor0
----
34
48
76

query I rowsort
SELECT DISTINCT + col2 + cor0.col2 * - cor0.col2 FROM tab0 AS cor0
----
-1056
-6642
0

skipif mysql # not compatible
query I rowsort
SELECT ALL + col1 + col0 * CAST ( col0 AS REAL ) FROM tab0 AS cor0
----
1322
662
8012

query I rowsort
SELECT + col1 + cor0.col1 * - ( + col0 ) AS col1 FROM tab0 AS cor0
----
-1978
-3298
-8008

query I rowsort
SELECT ALL 89 * - 95 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to a67c9e914052e9ddf5fc7d51bad88f22

query I rowsort
SELECT - col1 - 67 * col1 AS col1 FROM tab0 AS cor0
----
-5848
-6188
-6596

onlyif mysql # use DIV operator for integer division
query I rowsort label-6347
SELECT DISTINCT col2 DIV col2 + 44 AS col2 FROM tab1 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-6347
SELECT DISTINCT col2 / col2 + 44 AS col2 FROM tab1 AS cor0
----
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + 62 + - col2 col0 FROM tab1
----
1558
563
710

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6349
SELECT DISTINCT + - col2 - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6349
SELECT DISTINCT + - col2 - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

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-6351
SELECT DISTINCT + col1 * + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6351
SELECT DISTINCT + col1 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - - cor0.col0 + col0 AS col0 FROM tab2 AS cor0
----
14
156
158

query I rowsort
SELECT ALL - + col1 - col1 AS col0 FROM tab2 AS cor0
----
-118
-34
-62

query I rowsort
SELECT + cor0.col2 + - cor0.col0 * col1 FROM tab1 AS cor0
----
-24
-583
-944

query I rowsort
SELECT ALL - - col0 + + col2 + col2 FROM tab1 AS cor0
----
111
178
272

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6356
SELECT ALL - col2 - + CAST( col2 AS SIGNED ) FROM tab1 AS cor0
----
-108
-114
-192

skipif mysql # not compatible
query I rowsort label-6356
SELECT ALL - col2 - + CAST ( col2 AS INTEGER ) FROM tab1 AS cor0
----
-108
-114
-192

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6357
SELECT DISTINCT + + cor0.col1 * - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6357
SELECT DISTINCT + + cor0.col1 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL - cor0.col0 * - 2 - col1 * + col0 AS col1 FROM tab2 AS cor0
----
-1185
-203
-4446

query I rowsort
SELECT ( 76 ) * + cor0.col2 AS col0 FROM tab1 AS cor0
----
4104
4332
7296

query I rowsort
SELECT + 56 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa

query I rowsort
SELECT DISTINCT + + col2 * + 34 - col0 AS col1 FROM tab1 cor0
----
1833
1874
3184

query I rowsort
SELECT + 13 + col1 * col0 AS col0 FROM tab2 AS cor0
----
1356
230
4615

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT - CAST ( col0 AS REAL ) + col0 col2 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6364
SELECT + col2 * + col1 DIV + col1 AS col0 FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-6364
SELECT + col2 * + col1 / + col1 AS col0 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT + - ( 9 ) * col0 + col1 AS col1 FROM tab1 cor0
----
-1
-566
-707

onlyif mysql # use DIV operator for integer division
query I rowsort label-6366
SELECT + cor0.col1 - 92 DIV - col2 FROM tab1 AS cor0
----
11
13
27

skipif mysql # not compatible
query I rowsort label-6366
SELECT + cor0.col1 - 92 / - col2 FROM tab1 AS cor0
----
11
13
27

query I rowsort
SELECT - col0 + + cor0.col0 - - col0 AS col0 FROM tab0 cor0
----
24
35
89

query I rowsort
SELECT + col2 * + ( col0 ) + - 74 * - col0 * + col2 FROM tab0 AS cor0
----
2625
547350
59400

query I rowsort
SELECT - + col0 * 38 FROM tab2 AS cor0
----
-266
-2964
-3002

query I rowsort
SELECT DISTINCT + col0 * + ( - tab0.col2 ) AS col2 FROM tab0
----
-35
-7298
-792

onlyif mysql # use DIV operator for integer division
query I rowsort label-6371
SELECT - cor0.col0 + col2 * col1 DIV + col2 FROM tab1 AS cor0
----
-54
-67
23

skipif mysql # not compatible
query I rowsort label-6371
SELECT - cor0.col0 + col2 * col1 / + col2 FROM tab1 AS cor0
----
-54
-67
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 * col1 col0 FROM tab1 cor0
----
1248
1404
570

query I rowsort
SELECT DISTINCT 78 AS col0 FROM tab2, tab2 AS cor0
----
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + ( + col1 ) * + col1 col1 FROM tab0 AS cor0
----
7429
8363
9410

query I rowsort
SELECT + 20 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

onlyif mysql # use DIV operator for integer division
query I rowsort label-6376
SELECT DISTINCT + 45 DIV + col1 AS col0 FROM tab1
----
1
3
4

skipif mysql # not compatible
query I rowsort label-6376
SELECT DISTINCT + 45 / + col1 AS col0 FROM tab1
----
1
3
4

query I rowsort
SELECT DISTINCT col0 * + tab1.col0 * - col1 FROM tab1
----
-234
-40960
-83200

query I rowsort
SELECT + col1 * 4 FROM tab0 AS cor0
----
344
364
388

query I rowsort
SELECT 29 + - col1 * col2 AS col2 FROM tab2
----
-1505
-617
-808

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 69 col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
69

query I rowsort
SELECT 7 * col0 + + ( col1 ) * + col0 AS col2 FROM tab1
----
1088
1600
99

query I rowsort
SELECT ALL ( - cor0.col1 ) AS col2 FROM tab2 cor0
----
-17
-31
-59

query I rowsort
SELECT DISTINCT ( cor1.col0 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
3
64
80

query I rowsort
SELECT ALL col2 * 63 + - col1 * col0 AS col2 FROM tab2 AS cor0
----
-2964
1051
1484

query I rowsort
SELECT DISTINCT - col2 * col0 + col0 - col0 FROM tab0 AS cor0
----
-35
-7298
-792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col2 col2 FROM tab0, tab0 cor0
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e

query I rowsort
SELECT + + col2 * + col1 + col1 AS col0 FROM tab0 AS cor0
----
194
2924
7553

onlyif mysql # use DIV operator for integer division
query I rowsort label-6388
SELECT ALL col1 - - col2 * col2 DIV + col2 FROM tab0 AS cor0
----
119
173
98

skipif mysql # not compatible
query I rowsort label-6388
SELECT ALL col1 - - col2 * col2 / + col2 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT cor0.col2 * - 28 AS col1 FROM tab2 AS cor0
----
-1064
-728
-756

query I rowsort
SELECT DISTINCT - col2 + + col0 * + 86 FROM tab0 AS cor0
----
2031
3009
7572

query I rowsort
SELECT ALL - col2 * 96 FROM tab0 AS cor0
----
-3168
-7872
-96

query I rowsort
SELECT DISTINCT - col2 + + cor0.col0 AS col2 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT + - col0 + cor0.col0 * col1 AS col1 FROM tab0 AS cor0
----
2040
3360
8010

query I rowsort
SELECT DISTINCT + + ( 24 ) * col2 AS col1 FROM tab2 AS cor0
----
624
648
912

onlyif mysql # use DIV operator for integer division
query I rowsort label-6395
SELECT ALL + col2 DIV 84 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6395
SELECT ALL + col2 / 84 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - 36 + - col1 FROM tab2 AS cor0
----
-53
-67
-95

query I rowsort
SELECT ALL + - 54 * 28 AS col0 FROM tab1 AS cor0
----
-1512
-1512
-1512

onlyif mysql # use DIV operator for integer division
query I rowsort label-6398
SELECT ALL + ( col1 ) * 92 DIV - col2 FROM tab1 AS cor0
----
-12
-16
-44

skipif mysql # not compatible
query I rowsort label-6398
SELECT ALL + ( col1 ) * 92 / - col2 FROM tab1 AS cor0
----
-12
-16
-44

query I rowsort
SELECT ALL - col0 * - col0 * + ( col0 ) - col1 AS col2 FROM tab2 AS cor0
----
312
474493
493022

query I rowsort
SELECT ALL - 79 * + col2 FROM tab2 cor0
----
-2054
-2133
-3002

query I rowsort
SELECT DISTINCT + + col2 * col0 + + 40 * col0 + + col0 FROM tab2 AS cor0
----
476
5226
6241

query I rowsort
SELECT 45 AS col0 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 14cec871edc37b5056cda01c8331fdca

onlyif mysql # use DIV operator for integer division
query I rowsort label-6403
SELECT - col0 + - col2 DIV + 3 FROM tab1 AS cor0
----
-112
-21
-83

skipif mysql # not compatible
query I rowsort label-6403
SELECT - col0 + - col2 / + 3 FROM tab1 AS cor0
----
-112
-21
-83

query I rowsort
SELECT - ( + col0 ) * - col1 AS col0 FROM tab0 cor0
----
2064
3395
8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-6405
SELECT + - col1 DIV col2 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6405
SELECT + - col1 / col2 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 65 * + col2 col0 FROM tab1 AS cor0
----
3510
3705
6240

query I rowsort
SELECT DISTINCT 79 AS col1 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
79

query I rowsort
SELECT + col1 * 57 * - 56 AS col1 FROM tab1 AS cor0
----
-31920
-41496
-82992

query I rowsort
SELECT ALL 37 * + 66 * - col2 + - col0 + col2 FROM tab0 AS cor0
----
-200251
-2476
-80577

query I rowsort
SELECT ALL - - col2 * col2 + - col0 AS col0 FROM tab1 cor0
----
2913
3185
9136

query I rowsort
SELECT 99 + + col2 FROM tab0 AS cor0
----
100
132
181

query I rowsort
SELECT ALL col0 + + col0 * + col1 AS col2 FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT DISTINCT + 26 * - col0 FROM tab2 AS cor0
----
-182
-2028
-2054

query I rowsort
SELECT DISTINCT - col1 + ( 5 ) AS col1 FROM tab1
----
-21
-5
-8

onlyif mysql # use DIV operator for integer division
query I rowsort label-6415
SELECT ALL + col0 DIV 7 + - col0 AS col2 FROM tab0
----
-21
-30
-77

skipif mysql # not compatible
query I rowsort label-6415
SELECT ALL + col0 / 7 + - col0 AS col2 FROM tab0
----
-21
-30
-77

query I rowsort
SELECT + tab0.col1 + col1 * col1 * col1 AS col2 FROM tab0
----
636142
753662
912770

query I rowsort
SELECT col0 * - 4 FROM tab0
----
-140
-356
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-6418
SELECT col0 + 26 * cor0.col1 * col1 + col1 DIV + col1 AS col2 FROM tab2 AS cor0
----
24994
7594
90585

skipif mysql # not compatible
query I rowsort label-6418
SELECT col0 + 26 * cor0.col1 * col1 + col1 / + col1 AS col2 FROM tab2 AS cor0
----
24994
7594
90585

query I rowsort
SELECT + 5 + cor0.col0 AS col0 FROM tab0 AS cor0
----
29
40
94

query I rowsort
SELECT DISTINCT 90 + - ( + col0 + ( - cor0.col0 ) ) FROM tab0 AS cor0
----
90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6421
SELECT + + ( + col1 ) * col0 + - CAST( NULL AS SIGNED ) + col0 * + cor0.col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6421
SELECT + + ( + col1 ) * col0 + - CAST ( NULL AS INTEGER ) + col0 * + cor0.col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 * - col2 * col1 AS col1 FROM tab2 AS cor0
----
-119652
-51034
-5859

query I rowsort
SELECT + + 41 AS col2 FROM tab1 cor0
----
41
41
41

query I rowsort
SELECT DISTINCT 9 * col0 AS col1 FROM tab1 cor0
----
27
576
720

query I rowsort
SELECT ALL - + 36 + col1 * - col2 * - col2 AS col0 FROM tab1 AS cor0
----
119772
32454
75780

onlyif mysql # use DIV operator for integer division
query I rowsort label-6426
SELECT - 94 DIV + col2 FROM tab1 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-6426
SELECT - 94 / + col2 FROM tab1 AS cor0
----
-1
-1
0

query I rowsort
SELECT DISTINCT + col0 + 65 FROM tab0 AS cor0
----
100
154
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-6428
SELECT - - cor0.col1 + + col1 DIV - col2 FROM tab0 cor0
----
0
84
90

skipif mysql # not compatible
query I rowsort label-6428
SELECT - - cor0.col1 + + col1 / - col2 FROM tab0 cor0
----
0
84
90

query I rowsort
SELECT ALL + 24 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to aeeac431d22528188e8a5a2a60d2d080

query I rowsort
SELECT ALL - col1 * col0 + - 62 FROM tab0
----
-2126
-3457
-8161

query I rowsort
SELECT - col2 - - 92 FROM tab0 AS cor0
----
10
59
91

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6432
SELECT DISTINCT 95 * col0 + ( + 19 ) + col0 * CAST( col2 + col0 AS SIGNED ) AS col2 FROM tab1
----
13843
21699
475

skipif mysql # not compatible
query I rowsort label-6432
SELECT DISTINCT 95 * col0 + ( + 19 ) + col0 * CAST ( col2 + col0 AS INTEGER ) AS col2 FROM tab1
----
13843
21699
475

query I rowsort
SELECT ( - col1 ) + 45 + + col1 FROM tab0
----
45
45
45

query I rowsort
SELECT - 10 * - col0 * - col1 FROM tab0
----
-20640
-33950
-80990

query I rowsort
SELECT - tab0.col1 * - 53 FROM tab0
----
4558
4823
5141

query I rowsort
SELECT - col2 + 39 AS col0 FROM tab0 AS cor0
----
-43
38
6

onlyif mysql # use DIV operator for integer division
query I rowsort label-6437
SELECT cor0.col0 * col1 + + col2 DIV col2 + - cor0.col0 AS col0 FROM tab1 AS cor0
----
577
76
961

skipif mysql # not compatible
query I rowsort label-6437
SELECT cor0.col0 * col1 + + col2 / col2 + - cor0.col0 AS col0 FROM tab1 AS cor0
----
577
76
961

query I rowsort
SELECT ALL + - col0 * - ( + col0 ) AS col2 FROM tab0 AS cor0
----
1225
576
7921

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6439
SELECT ALL - col2 + CAST( + col2 AS SIGNED ) FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6439
SELECT ALL - col2 + CAST ( + col2 AS INTEGER ) FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + col1 + - col1 * + 51 + - col1 FROM tab1 AS cor0
----
-1326
-510
-663

onlyif mysql # use DIV operator for integer division
query I rowsort label-6441
SELECT DISTINCT + - col1 * col0 DIV - 64 FROM tab2 AS cor0
----
20
3
71

skipif mysql # not compatible
query I rowsort label-6441
SELECT DISTINCT + - col1 * col0 / - 64 FROM tab2 AS cor0
----
20
3
71

query I rowsort
SELECT 14 * + col0 + tab1.col0 * col1 * 82 AS col1 FROM tab1
----
53376
6438
86400

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6443
SELECT ALL - CAST( col1 AS SIGNED ) FROM tab1
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-6443
SELECT ALL - CAST ( col1 AS INTEGER ) FROM tab1
----
-10
-13
-26

onlyif mysql # use DIV operator for integer division
query I rowsort label-6444
SELECT DISTINCT - ( + col1 ) * col0 - col2 DIV - col0 FROM tab2 AS cor0
----
-1343
-214
-4602

skipif mysql # not compatible
query I rowsort label-6444
SELECT DISTINCT - ( + col1 ) * col0 - col2 / - col0 FROM tab2 AS cor0
----
-1343
-214
-4602

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6445
SELECT ALL + - CAST( NULL AS SIGNED ) - col0 * col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6445
SELECT ALL + - CAST ( NULL AS INTEGER ) - col0 * col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + + col2 * + col1 + + col1 * + cor0.col1 AS col1 FROM tab0 AS cor0
----
10234
15743
9506

onlyif mysql # use DIV operator for integer division
query I rowsort label-6447
SELECT ALL col0 + 14 DIV col1 AS col0 FROM tab2 AS cor0
----
7
78
79

skipif mysql # not compatible
query I rowsort label-6447
SELECT ALL col0 + 14 / col1 AS col0 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT DISTINCT ( + 0 ) FROM tab1
----
0

query I rowsort
SELECT DISTINCT + + 21 * col0 FROM tab2 cor0
----
147
1638
1659

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6450
SELECT ALL 15 + + col1 * CAST( - ( col0 ) AS SIGNED ) FROM tab2 AS cor0
----
-1328
-202
-4587

skipif mysql # not compatible
query I rowsort label-6450
SELECT ALL 15 + + col1 * CAST ( - ( col0 ) AS INTEGER ) FROM tab2 AS cor0
----
-1328
-202
-4587

query I rowsort
SELECT + col1 * col2 * 28 FROM tab2
----
18088
23436
42952

query I rowsort
SELECT ALL + ( - col2 ) + + col2 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - + ( + col2 ) * ( ( - cor0.col2 ) ) FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT + ( col0 ) + + cor0.col0 FROM tab1 cor0
----
128
160
6

query I rowsort
SELECT - 68 * col1 FROM tab1 AS cor0
----
-1768
-680
-884

query I rowsort
SELECT - col2 + - 48 * col2 * col0 FROM tab2 AS cor0
----
-144134
-9099
-97370

query I rowsort
SELECT + col2 + cor0.col0 * col2 FROM tab1 AS cor0
----
216
3705
7776

query I rowsort
SELECT ALL + ( + col2 ) * + col1 FROM tab0
----
2838
7462
97

query I rowsort
SELECT 28 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97

query I rowsort
SELECT ALL - + col1 * cor0.col1 + + 50 FROM tab1 AS cor0
----
-119
-50
-626

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + cor0.col2 col2 FROM tab1 AS cor0
----
-7
16
51

onlyif mysql # use DIV operator for integer division
query I rowsort label-6462
SELECT ALL - col2 + col0 DIV + 40 + col0 AS col2 FROM tab0 AS cor0
----
-9
34
9

skipif mysql # not compatible
query I rowsort label-6462
SELECT ALL - col2 + col0 / + 40 + col0 AS col2 FROM tab0 AS cor0
----
-9
34
9

query I rowsort
SELECT ALL - - col2 - - col0 AS col0 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT + - 29 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 0cc9ddad93fc783055518ae4b6be054b

query I rowsort
SELECT ALL col0 * + 24 FROM tab0 AS cor0
----
2136
576
840

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6466
SELECT - CAST( NULL AS DECIMAL ) * 74 * - col2 + + col2 + col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6466
SELECT - CAST ( NULL AS REAL ) * 74 * - col2 + + col2 + col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - cor0.col1 AS col0 FROM tab1 cor0 CROSS JOIN tab0, tab1 cor1
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6

query I rowsort
SELECT - 35 FROM tab1, tab0 cor0
----
9 values hashing to c12e8bdd687c9040a5600dab3b6adf5b

query I rowsort
SELECT - + cor0.col2 * - col2 AS col1 FROM tab0 AS cor0
----
1
1089
6724

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 + - cor0.col1 col2 FROM tab1 AS cor0
----
-20
-26
-52

skipif mysql # not compatible
query I rowsort
SELECT + CAST ( - tab2.col2 + - col0 AS REAL ) AS col1 FROM tab2
----
-104
-117
-34

query I rowsort
SELECT DISTINCT 88 FROM tab1, tab2 AS cor0
----
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 49 col0 FROM tab0, tab0 AS cor0
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55

query I rowsort
SELECT 40 * + col2 AS col1 FROM tab2
----
1040
1080
1520

onlyif mysql # use DIV operator for integer division
query I rowsort label-6475
SELECT ALL + col1 DIV 81 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6475
SELECT ALL + col1 / 81 FROM tab0
----
1
1
1

query I rowsort
SELECT ALL - 19 + - 98 * col0 AS col1 FROM tab2 AS cor0
----
-705
-7663
-7761

query I rowsort
SELECT ALL 50 + 1 AS col2 FROM tab0 AS cor0
----
51
51
51

query I rowsort
SELECT + col1 + + ( + col2 ) * col2 FROM tab1 AS cor0
----
2942
3259
9229

query I rowsort
SELECT col1 * tab2.col2 * - col2 + + col2 FROM tab2
----
-22572
-24510
-39858

onlyif mysql # use DIV operator for integer division
query I rowsort label-6480
SELECT CAST( col2 AS SIGNED ) * - col2 + ( col0 ) * col2 DIV col0 col0 FROM tab1
----
-2862
-3192
-9120

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6480
SELECT CAST ( col2 AS INTEGER ) * - col2 + ( col0 ) * col2 / col0 col0 FROM tab1
----
-2862
-3192
-9120

query I rowsort
SELECT 79 + - ( - col1 * 82 ) FROM tab2
----
1473
2621
4917

query I rowsort
SELECT ALL - col0 + + 76 * - col2 FROM tab2 AS cor0
----
-2054
-2059
-2967

query I rowsort
SELECT DISTINCT + - col1 * + 59 FROM tab2 cor0
----
-1003
-1829
-3481

query I rowsort
SELECT DISTINCT 82 FROM tab2, tab1, tab1 AS cor0
----
82

query I rowsort
SELECT DISTINCT - col0 * col2 + - tab0.col0 FROM tab0
----
-70
-7387
-816

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - tab1.col0 * + ( ( - tab1.col2 ) * - 97 ) + 86 col2 FROM tab1
----
-15625
-353706
-744794

query I rowsort
SELECT ALL - - cor0.col0 FROM tab1, tab2, tab1 cor0
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6488
SELECT col1 * - col1 + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6488
SELECT col1 * - col1 + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT 35 - col2 AS col0 FROM tab1
----
-19
-22
-61

query I rowsort
SELECT + + 25 * - col1 FROM tab2 AS cor0
----
-1475
-425
-775

query I rowsort
SELECT DISTINCT col2 + - col0 * - col2 * + col2 FROM tab2 cor0
----
114114
5130
52754

query I rowsort
SELECT - col1 * 88 FROM tab2 AS cor0
----
-1496
-2728
-5192

query I rowsort
SELECT - + col2 + 24 * + col2 FROM tab2 AS cor0
----
598
621
874

query I rowsort
SELECT DISTINCT - cor0.col2 * ( - col1 ) + col1 AS col0 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT ALL col2 * - ( 19 ) FROM tab2 AS cor0
----
-494
-513
-722

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6496
SELECT DISTINCT col2 * + ( - col2 ) / cor0.col0 + CAST( NULL AS SIGNED ) * col0 + col2 * 60 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6496
SELECT DISTINCT col2 * + ( - col2 ) / cor0.col0 + CAST ( NULL AS INTEGER ) * col0 + col2 * 60 AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col2 * - 5 + col0 AS col2 FROM tab1 AS cor0
----
-221
-267
-400

query I rowsort
SELECT ALL + tab1.col1 * - 8 FROM tab1
----
-104
-208
-80

query I rowsort
SELECT ALL col2 * + 10 FROM tab0
----
10
330
820

query I rowsort
SELECT tab0.col0 AS col0 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT ALL 6 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

query I rowsort
SELECT - - col1 * col0 + col2 AS col0 FROM tab0 cor0
----
2097
3396
8181

query I rowsort
SELECT + col1 * - 7 AS col1 FROM tab2 AS cor0
----
-119
-217
-413

onlyif mysql # use DIV operator for integer division
query I rowsort label-6504
SELECT DISTINCT + - col2 - - 9 DIV + col1 FROM tab0 AS cor0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-6504
SELECT DISTINCT + - col2 - - 9 / + col1 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT - col1 * 33 + col1 * - col0 FROM tab1 AS cor0
----
-1469
-936
-970

query I rowsort
SELECT - + col0 * ( + col2 ) AS col1 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT - col1 + + 51 AS col2 FROM tab1 AS cor0
----
25
38
41

query I rowsort
SELECT ( - col1 ) * - col1 + + 76 FROM tab0 AS cor0
----
7472
8357
9485

query I rowsort
SELECT + 59 + ( col2 ) * cor0.col1 FROM tab2 AS cor0
----
1593
705
896

query I rowsort
SELECT DISTINCT + + 17 + - 88 AS col1 FROM tab0 AS cor0
----
-71

query I rowsort
SELECT DISTINCT + 13 + 48 * col2 AS col0 FROM tab1 cor0
----
2605
2749
4621

query I rowsort
SELECT - col2 * + 34 AS col0 FROM tab2
----
-1292
-884
-918

onlyif mysql # use DIV operator for integer division
query I rowsort label-6513
SELECT - tab1.col0 - col0 DIV + tab1.col0 AS col1 FROM tab1
----
-4
-65
-81

skipif mysql # not compatible
query I rowsort label-6513
SELECT - tab1.col0 - col0 / + tab1.col0 AS col1 FROM tab1
----
-4
-65
-81

onlyif mysql # use DIV operator for integer division
query I rowsort label-6514
SELECT - col0 DIV col2 - col2 AS col2 FROM tab0 AS cor0
----
-33
-36
-83

skipif mysql # not compatible
query I rowsort label-6514
SELECT - col0 / col2 - col2 AS col2 FROM tab0 AS cor0
----
-33
-36
-83

onlyif mysql # use DIV operator for integer division
query I rowsort label-6515
SELECT ALL + - col2 + cor0.col0 DIV + col1 FROM tab0 AS cor0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-6515
SELECT ALL + - col2 + cor0.col0 / + col1 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT ALL - - 12 * - col0 AS col0 FROM tab0 AS cor0
----
-1068
-288
-420

query I rowsort
SELECT DISTINCT + + col1 + col2 * col1 FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT - ( cor0.col1 ) * - col1 * cor0.col2 FROM tab2 AS cor0
----
10982
25947
90506

query I rowsort
SELECT ALL + + 3 + col1 * + ( col0 ) FROM tab1 cor0
----
1043
643
81

query I rowsort
SELECT + 18 * col2 FROM tab2 AS cor0
----
468
486
684

query I rowsort
SELECT DISTINCT + col0 * + col1 * - col0 FROM tab2 cor0
----
-106097
-1519
-358956

query I rowsort
SELECT - 84 - col2 FROM tab0 AS cor0
----
-117
-166
-85

query I rowsort
SELECT cor0.col2 - - cor0.col2 FROM tab1 AS cor0
----
108
114
192

query I rowsort
SELECT ALL 51 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6525
SELECT CAST( NULL AS DECIMAL ) + + 76 / cor0.col1 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-6525
SELECT CAST ( NULL AS REAL ) + + 76 / cor0.col1 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT - col0 * + col2 * + col1 + + col1 + col0 AS col2 FROM tab0 AS cor0
----
-3263
-663938
-68002

query I rowsort
SELECT - col0 * - col1 * - 89 FROM tab0 AS cor0
----
-183696
-302155
-720811

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 13 col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-13

query I rowsort
SELECT ( cor0.col0 ) * - col1 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT - 75 AS col0 FROM tab0
----
-75
-75
-75

query I rowsort
SELECT cor0.col1 * cor0.col2 + + col2 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT + col2 * col2 - 9 * + col2 AS col1 FROM tab0 AS cor0
----
-8
5986
792

query I rowsort
SELECT col0 + col0 * - col2 AS col0 FROM tab1 AS cor0
----
-159
-3584
-7600

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6534
SELECT - - CAST( NULL AS SIGNED ) * col2 + - col0 * + col0 + - ( col0 ) * col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6534
SELECT - - CAST ( NULL AS INTEGER ) * col2 + - col0 * + col0 + - ( col0 ) * col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6535
SELECT - - col1 * + col0 DIV + col0 AS col1 FROM tab1 AS cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-6535
SELECT - - col1 * + col0 / + col0 AS col1 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT 9 + + col1 * - col0 AS col2 FROM tab1 AS cor0
----
-1031
-631
-69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - col2 col0 FROM tab1 cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 + + 44 col0 FROM tab2 AS cor0
----
70
71
82

query I rowsort
SELECT + ( - 55 ) AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to ac76841ceecd2311e80c621d15bacdd3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * 84 * + col1 col2 FROM tab0
----
-621264
-695604
-790356

query I rowsort
SELECT DISTINCT - col0 + + ( col1 ) AS col2 FROM tab2
----
-19
-62
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 31 col2 FROM tab1, tab1 AS cor0
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540

query I rowsort
SELECT + col2 * 90 AS col1 FROM tab1
----
4860
5130
8640

onlyif mysql # use DIV operator for integer division
query I rowsort label-6544
SELECT ALL + col2 DIV 10 AS col2 FROM tab1
----
5
5
9

skipif mysql # not compatible
query I rowsort label-6544
SELECT ALL + col2 / 10 AS col2 FROM tab1
----
5
5
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab0.col0 + - tab0.col1 * col1 col0 FROM tab0
----
-7372
-8192
-9374

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6546
SELECT CAST( 31 AS SIGNED ) * + col1 + - col2 * cor0.col0 FROM tab1 AS cor0
----
-3338
-7277
644

skipif mysql # not compatible
query I rowsort label-6546
SELECT CAST ( 31 AS INTEGER ) * + col1 + - col2 * cor0.col0 FROM tab1 AS cor0
----
-3338
-7277
644

query I rowsort
SELECT - - col0 + + 44 FROM tab1 AS cor0
----
108
124
47

query I rowsort
SELECT DISTINCT ( cor0.col0 ) * - col1 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT DISTINCT - col0 * + col1 + 87 * 41 FROM tab0 cor0
----
-4532
1503
172

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6550
SELECT ALL + ( - col0 ) + CAST( NULL AS DECIMAL ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6550
SELECT ALL + ( - col0 ) + CAST ( NULL AS REAL ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + cor0.col2 + col1 AS col0 FROM tab0 cor0
----
53
9
96

query I rowsort
SELECT DISTINCT - cor0.col0 * cor0.col0 * col2 AS col1 FROM tab0 AS cor0
----
-1225
-19008
-649522

query I rowsort
SELECT ALL 81 * cor0.col2 FROM tab0 AS cor0
----
2673
6642
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + col2 col0 FROM tab1
----
162
3648
7680

query I rowsort
SELECT - cor0.col0 FROM tab1, tab2 AS cor0, tab0 cor1
----
27 values hashing to c82df1de3cb666224690a83f3d790d79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6556
SELECT - - col2 * - col2 * CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6556
SELECT - - col2 * - col2 * CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 + cor0.col0 * col0 AS col1 FROM tab0 cor0
----
1224
543
7839

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - - 23 * + 61 * - col2 col1 FROM tab2 AS cor0
----
-36400
-37874
-53235

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6559
SELECT - + cor0.col2 * + CAST( NULL AS SIGNED ) + cor0.col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6559
SELECT - + cor0.col2 * + CAST ( NULL AS INTEGER ) + cor0.col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * 2 col1 FROM tab0 AS cor0
----
-164
-2
-66

query I rowsort
SELECT ALL - col2 * ( 87 ) * col2 - tab2.col1 AS col0 FROM tab2
----
-125645
-58871
-63454

query I rowsort
SELECT + 6 * - col0 FROM tab2 AS cor0
----
-42
-468
-474

query I rowsort
SELECT - col2 + col1 * col1 * - col2 FROM tab2
----
-11020
-25974
-90532

query I rowsort
SELECT + 65 + - cor0.col1 AS col1 FROM tab0 AS cor0
----
-21
-26
-32

query I rowsort
SELECT + col0 * + ( col0 ) + col1 + + 82 AS col1 FROM tab0 AS cor0
----
1404
744
8094

query I rowsort
SELECT DISTINCT - col0 * - 60 AS col1 FROM tab2 AS cor0
----
420
4680
4740

query I rowsort
SELECT ALL - col1 * + cor0.col0 AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * col1 + 90 col2 FROM tab1 AS cor0
----
190
259
766

query I rowsort
SELECT + + col1 + - 8 + col1 AS col0 FROM tab0 AS cor0
----
164
174
186

query I rowsort
SELECT cor0.col0 + col2 + cor0.col2 AS col1 FROM tab0 AS cor0
----
253
37
90

query I rowsort
SELECT ALL + - col1 + ( + col0 ) FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT DISTINCT - col1 + + ( + col2 ) AS col1 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT ALL + col2 * - 44 AS col1 FROM tab0 AS cor0
----
-1452
-3608
-44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * col2 * col2 col1 FROM tab0
----
611884
93654
97

query I rowsort
SELECT DISTINCT col1 * col1 * tab0.col1 FROM tab0
----
636056
753571
912673

query I rowsort
SELECT col1 + + col0 * - ( col2 * cor0.col1 ) AS col0 FROM tab1 AS cor0
----
-36470
-4186
-99827

onlyif mysql # use DIV operator for integer division
query I rowsort label-6577
SELECT ALL col2 DIV - 42 + col2 DIV cor0.col0 AS col2 FROM tab0 AS cor0
----
-1
0
1

skipif mysql # not compatible
query I rowsort label-6577
SELECT ALL col2 / - 42 + col2 / cor0.col0 AS col2 FROM tab0 AS cor0
----
-1
0
1

query I rowsort
SELECT DISTINCT col1 * + col0 + + 72 - col0 FROM tab1 AS cor0
----
1032
147
648

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 + - ( 26 ) * col1 col1 FROM tab2 AS cor0
----
-1508
-404
-779

query I rowsort
SELECT 13 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

query I rowsort
SELECT DISTINCT - cor0.col2 + ( + col2 ) * + ( + col0 ) FROM tab0 cor0
----
34
7216
759

onlyif mysql # use DIV operator for integer division
query I rowsort label-6582
SELECT ALL + 65 * col0 - col2 DIV - cor0.col0 AS col0 FROM tab1 AS cor0
----
213
4160
5201

skipif mysql # not compatible
query I rowsort label-6582
SELECT ALL + 65 * col0 - col2 / - cor0.col0 AS col0 FROM tab1 AS cor0
----
213
4160
5201

query I rowsort
SELECT ALL - 95 + + 95 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT - + 71 - col1 AS col1 FROM tab0 AS cor0
----
-157
-162
-168

query I rowsort
SELECT + col1 * + col2 * - col1 + col1 AS col2 FROM tab2
----
-10965
-25916
-90447

query I rowsort
SELECT - 70 * - cor0.col1 - col0 AS col0 FROM tab0 AS cor0
----
5996
6281
6755

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - ( col0 ) * col2 + + ( cor0.col1 ) col2 FROM tab1 AS cor0
----
188
3658
7693

query I rowsort
SELECT col2 + tab2.col1 * + col1 AS col0 FROM tab2
----
327
3507
988

query I rowsort
SELECT DISTINCT + col1 + - col1 + - col0 * tab2.col1 FROM tab2
----
-1343
-217
-4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-6590
SELECT ALL col0 DIV tab1.col0 AS col0 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6590
SELECT ALL col0 / tab1.col0 AS col0 FROM tab1
----
1
1
1

query I rowsort
SELECT - tab2.col0 * col2 + - col0 + col1 AS col2 FROM tab2
----
-165
-2047
-3064

query I rowsort
SELECT ALL col0 + tab0.col1 * + col1 AS col1 FROM tab0
----
7420
8370
9444

query I rowsort
SELECT tab2.col0 * - col0 - - col2 FROM tab2
----
-22
-6058
-6203

onlyif mysql # use DIV operator for integer division
query I rowsort label-6594
SELECT ALL col1 * - col1 DIV tab1.col1 AS col1 FROM tab1
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-6594
SELECT ALL col1 * - col1 / tab1.col1 AS col1 FROM tab1
----
-10
-13
-26

onlyif mysql # use DIV operator for integer division
query I rowsort label-6595
SELECT + col0 DIV - col2 + ( col2 ) col1 FROM tab1
----
54
56
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6595
SELECT + col0 / - col2 + ( col2 ) col1 FROM tab1
----
54
56
96

query I rowsort
SELECT col1 * col2 + 57 FROM tab1
----
1305
1461
627

query I rowsort
SELECT tab1.col1 + col0 AS col2 FROM tab1
----
29
74
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 55 + - tab1.col1 * - tab1.col2 col2 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 1c58579ad10061d72ba947109045548d

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + - col1 col1 FROM tab1
----
-23
54
67

query I rowsort
SELECT - col2 + col2 + + cor0.col2 AS col0 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT DISTINCT + - cor0.col0 * + col0 FROM tab1 AS cor0
----
-4096
-6400
-9

query I rowsort
SELECT - col2 + - col1 + + col1 AS col1 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT ALL - + 32 FROM tab1 AS cor0
----
-32
-32
-32

query I rowsort
SELECT - - col0 + - col2 + - ( col1 ) AS col1 FROM tab2 AS cor0
----
-51
-7
24

query I rowsort
SELECT - cor0.col1 * col1 * + cor0.col0 + + 7 * col1 AS col1 FROM tab1 AS cor0
----
-13429
-1846
-6330

query I rowsort
SELECT DISTINCT - col0 * col1 + + col0 AS col2 FROM tab2
----
-1264
-210
-4524

query I rowsort
SELECT DISTINCT ( - col2 ) * - tab0.col2 + col0 AS col1 FROM tab0
----
1113
36
6813

query I rowsort
SELECT DISTINCT - col1 + col1 * col0 + + col2 * col0 * col2 AS col0 FROM tab2 AS cor0
----
115402
5289
57271

query I rowsort
SELECT DISTINCT + 25 * - col0 + + ( col0 ) + col0 FROM tab0 cor0
----
-2047
-552
-805

query I rowsort
SELECT - - col1 * ( - ( - col1 ) * - cor0.col2 ) + col1 FROM tab1 cor0
----
-16211
-36478
-5690

query I rowsort
SELECT ALL col0 * 43 + col1 AS col0 FROM tab0 cor0
----
1118
1602
3918

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * 63 col2 FROM tab1 AS cor0
----
-1638
-630
-819

query I rowsort
SELECT - 88 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to eb8cbefa7d831e1a0183e919e2caef32

query I rowsort
SELECT 52 AS col2 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 76100d10f51995d20efdeb657e444d3c

query I rowsort
SELECT - col0 + col2 - + 91 * + col2 * + 74 AS col1 FROM tab0 AS cor0
----
-222213
-552195
-6768

query I rowsort
SELECT - col2 * - 13 + col0 + - col1 * + 29 AS col2 FROM tab0 AS cor0
----
-1484
-2041
-2765

query I rowsort
SELECT + col0 + 38 AS col1 FROM tab0 AS cor0
----
127
62
73

query I rowsort
SELECT - col1 * - 25 * 25 + col2 * + 69 + col0 * col2 FROM tab1 AS cor0
----
13831
20138
22429

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6619
SELECT CAST( + 33 AS SIGNED ) FROM tab2
----
33
33
33

skipif mysql # not compatible
query I rowsort label-6619
SELECT CAST ( + 33 AS INTEGER ) FROM tab2
----
33
33
33

onlyif mysql # use DIV operator for integer division
query I rowsort label-6620
SELECT ALL + ( + 89 ) DIV - col1 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6620
SELECT ALL + ( + 89 ) / - col1 FROM tab0 AS cor0
----
-1
0
0

query I rowsort
SELECT col0 * col0 + col2 AS col2 FROM tab1
----
4153
63
6496

onlyif mysql # use DIV operator for integer division
query I rowsort label-6622
SELECT DISTINCT - - 23 + + col0 DIV + cor0.col1 FROM tab0 cor0
----
23

skipif mysql # not compatible
query I rowsort label-6622
SELECT DISTINCT - - 23 + + col0 / + cor0.col1 FROM tab0 cor0
----
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - 8 col1 FROM tab2 AS cor0
----
208
216
304

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 89 + col0 col1 FROM tab2 AS cor0
----
-10
-11
-82

query I rowsort
SELECT DISTINCT - + 79 AS col0 FROM tab2 AS cor0
----
-79

query I rowsort
SELECT ALL - col0 + col1 + + col2 FROM tab2 AS cor0
----
-24
51
7

query I rowsort
SELECT DISTINCT + cor0.col2 - col1 AS col2 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT DISTINCT + + 63 * col1 FROM tab0 AS cor0
----
5418
5733
6111

onlyif mysql # use DIV operator for integer division
query I rowsort label-6629
SELECT - cor0.col2 * - cor0.col2 - 90 DIV - 81 AS col2 FROM tab2 AS cor0
----
1445
677
730

skipif mysql # not compatible
query I rowsort label-6629
SELECT - cor0.col2 * - cor0.col2 - 90 / - 81 AS col2 FROM tab2 AS cor0
----
1445
677
730

query I rowsort
SELECT ALL + col1 * col0 + - 88 AS col0 FROM tab0 cor0
----
1976
3307
8011

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col1 * cor0.col1 col1 FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT ALL + + col2 * + col1 + + ( + col0 ) + - col0 AS col0 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT + 35 * col0 FROM tab2 AS cor0
----
245
2730
2765

query I rowsort
SELECT DISTINCT + + col2 * col1 + - 47 * + 28 AS col1 FROM tab2 AS cor0
----
-479
-670
218

query I rowsort
SELECT ALL + ( + cor0.col1 ) + 4 * col2 AS col0 FROM tab2 AS cor0
----
139
163
169

query I rowsort
SELECT ALL - + cor0.col0 * col0 + ( + col1 ) + + col1 FROM tab0 cor0
----
-1031
-404
-7739

onlyif mysql # use DIV operator for integer division
query I rowsort label-6637
SELECT ALL + cor0.col2 DIV cor0.col2 - + 3 FROM tab0 AS cor0
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-6637
SELECT ALL + cor0.col2 / cor0.col2 - + 3 FROM tab0 AS cor0
----
-2
-2
-2

query I rowsort
SELECT DISTINCT - + 9 AS col1 FROM tab0 AS cor0
----
-9

query I rowsort
SELECT + 51 + cor0.col2 AS col0 FROM tab1 AS cor0
----
105
108
147

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 43 col1 FROM tab2, tab0 AS cor0
----
9 values hashing to ab0c314d2b589ccedb9a875beeb1f86a

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab2.col1 col0 FROM tab2, tab0 AS cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6642
SELECT - col2 + + CAST( NULL AS SIGNED ) * - 34 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6642
SELECT - col2 + + CAST ( NULL AS INTEGER ) * - 34 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - col0 * + ( col2 ) FROM tab1 AS cor0
----
-162
-3648
-7680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6644
SELECT DISTINCT col1 * - CAST( col2 * + col0 AS SIGNED ) + col1 + + col0 FROM tab2 AS cor0
----
-119515
-50938
-5821

skipif mysql # not compatible
query I rowsort label-6644
SELECT DISTINCT col1 * - CAST ( col2 * + col0 AS INTEGER ) + col1 + + col0 FROM tab2 AS cor0
----
-119515
-50938
-5821

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 + ( - col2 ) * cor0.col0 col1 FROM tab1 cor0
----
-188
-3658
-7693

query I rowsort
SELECT DISTINCT 17 AS col2 FROM tab2, tab2 cor0, tab1 AS cor1
----
17

query I rowsort
SELECT 83 * 91 FROM tab1 AS cor0
----
7553
7553
7553

query I rowsort
SELECT 95 AS col1 FROM tab2 cor0
----
95
95
95

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6649
SELECT 8 + col2 + - CAST( 80 AS SIGNED ) * col1 AS col2 FROM tab2 AS cor0
----
-1314
-2445
-4686

skipif mysql # not compatible
query I rowsort label-6649
SELECT 8 + col2 + - CAST ( 80 AS INTEGER ) * col1 AS col2 FROM tab2 AS cor0
----
-1314
-2445
-4686

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 35 * + col2 col0 FROM tab1 AS cor0
----
1890
1995
3360

onlyif mysql # use DIV operator for integer division
query I rowsort label-6651
SELECT DISTINCT + 59 DIV col1 col2 FROM tab1 AS cor0
----
2
4
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6651
SELECT DISTINCT + 59 / col1 col2 FROM tab1 AS cor0
----
2
4
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 47 * col2 col2 FROM tab1
----
2538
2679
4512

query I rowsort
SELECT DISTINCT + + 51 + col2 * col0 FROM tab1 cor0
----
213
3699
7731

query I rowsort
SELECT DISTINCT + 55 * col1 FROM tab2 AS cor0
----
1705
3245
935

query I rowsort
SELECT - col0 * + col1 + - col0 * col2 FROM tab1 AS cor0
----
-240
-4288
-8720

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6656
SELECT ALL 78 * - col0 + - CAST( + col2 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-1905
-2731
-7024

skipif mysql # not compatible
query I rowsort label-6656
SELECT ALL 78 * - col0 + - CAST ( + col2 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-1905
-2731
-7024

query I rowsort
SELECT DISTINCT col1 * - col2 + cor0.col0 * col1 FROM tab0 AS cor0
----
-774
3298
637

query I rowsort
SELECT - ( + col0 ) * - ( + col0 ) + col1 FROM tab1 AS cor0
----
35
4106
6413

query I rowsort
SELECT + col0 * - col1 + + ( - col2 ) AS col2 FROM tab2 AS cor0
----
-1381
-244
-4628

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6660
SELECT - + col1 * col1 - CAST( NULL AS SIGNED ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6660
SELECT - + col1 * col1 - CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 + col0 + - col2 AS col2 FROM tab0 cor0
----
-63
-84
-95

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6662
SELECT ALL col0 + - col2 * + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6662
SELECT ALL col0 + - col2 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 21 FROM tab2, tab0 cor0
----
9 values hashing to 631fbd1fd929405aba54a22c2a06c757

query I rowsort
SELECT ( + cor1.col1 ) * cor0.col2 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e8cccfbaf514cde36022d227725713e6

query I rowsort
SELECT DISTINCT - - col1 * + col2 + col1 FROM tab2 AS cor0
----
1593
663
868

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6666
SELECT + col2 * CAST( NULL AS SIGNED ) + - col2 col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6666
SELECT + col2 * CAST ( NULL AS INTEGER ) + - col2 col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 + col1 * 92 AS col1 FROM tab0 AS cor0
----
7945
8454
8925

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + + col2 * col2 * col0 col1 FROM tab1 AS cor0
----
207872
737200
8745

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6669
SELECT + - col2 + - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6669
SELECT + - col2 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 73 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 2931474b870c05694e446771031a6949

query I rowsort
SELECT ALL col1 * + col1 * ( + col0 ) AS col2 FROM tab1
----
13520
2028
6400

onlyif mysql # use DIV operator for integer division
query I rowsort label-6672
SELECT ALL - col2 * + cor0.col2 DIV col2 FROM tab0 cor0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-6672
SELECT ALL - col2 * + cor0.col2 / col2 FROM tab0 cor0
----
-1
-33
-82

query I rowsort
SELECT + ( - col2 + 29 ) * - 78 AS col0 FROM tab0
----
-2184
312
4134

query I rowsort
SELECT - 33 FROM tab0, tab2 cor0
----
9 values hashing to 8035c665a75d22be5922be1a4e574e03

query I rowsort
SELECT + col0 + ( + cor0.col2 ) * col2 FROM tab0 cor0
----
1113
36
6813

query I rowsort
SELECT ALL ( - col0 * - col2 ) FROM tab0
----
35
7298
792

onlyif mysql # use DIV operator for integer division
query I rowsort label-6677
SELECT DISTINCT - col1 + col2 DIV - col1 AS col2 FROM tab2 AS cor0
----
-19
-31
-59

skipif mysql # not compatible
query I rowsort label-6677
SELECT DISTINCT - col1 + col2 / - col1 AS col2 FROM tab2 AS cor0
----
-19
-31
-59

query I rowsort
SELECT DISTINCT 90 AS col1 FROM tab2, tab0 AS cor0
----
90

query I rowsort
SELECT 39 * + col2 * - 9 + + 13 * - col1 AS col2 FROM tab0
----
-12701
-1612
-29965

query I rowsort
SELECT ALL + 12 - col1 AS col1 FROM tab1
----
-1
-14
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 53 * + col0 + + col0 col1 FROM tab0 AS cor0
----
-1248
-1820
-4628

query I rowsort
SELECT col2 + - col0 * - ( + cor0.col1 * col0 ) FROM tab2 AS cor0
----
106135
1546
358982

onlyif mysql # use DIV operator for integer division
query I rowsort label-6683
SELECT + - cor0.col1 * cor0.col0 - - ( cor0.col0 ) DIV col2 FROM tab0 AS cor0
----
-2064
-3360
-8098

skipif mysql # not compatible
query I rowsort label-6683
SELECT + - cor0.col1 * cor0.col0 - - ( cor0.col0 ) / col2 FROM tab0 AS cor0
----
-2064
-3360
-8098

query I rowsort
SELECT 17 + + col1 * + ( 83 + + col0 ) AS col1 FROM tab2 AS cor0
----
2771
2807
9516

query I rowsort
SELECT 32 - + col1 FROM tab2 AS cor0
----
-27
1
15

query I rowsort
SELECT + 54 - cor0.col1 FROM tab2 AS cor0
----
-5
23
37

query I rowsort
SELECT DISTINCT + ( + col0 ) * col2 FROM tab1 cor0
----
162
3648
7680

query I rowsort
SELECT ALL ( col1 ) + cor0.col2 AS col1 FROM tab0 AS cor0
----
119
173
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6689
SELECT - - col0 + col0 * col2 * + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6689
SELECT - - col0 + col0 * col2 * + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6690
SELECT ALL col2 * col0 * + col0 + col0 DIV + col0 AS col1 FROM tab1 cor0
----
233473
487
614401

skipif mysql # not compatible
query I rowsort label-6690
SELECT ALL col2 * col0 * + col0 + col0 / + col0 AS col1 FROM tab1 cor0
----
233473
487
614401

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * col0 + cor0.col2 col1 FROM tab2 AS cor0
----
-1305
-190
-4576

onlyif mysql # use DIV operator for integer division
query I rowsort label-6692
SELECT DISTINCT - - 35 DIV col0 AS col0 FROM tab1 AS cor0
----
0
11

skipif mysql # not compatible
query I rowsort label-6692
SELECT DISTINCT - - 35 / col0 AS col0 FROM tab1 AS cor0
----
0
11

query I rowsort
SELECT + 66 * - 68 - col0 FROM tab2 cor0
----
-4495
-4566
-4567

query I rowsort
SELECT - cor0.col0 * 25 AS col2 FROM tab0 AS cor0
----
-2225
-600
-875

query I rowsort
SELECT DISTINCT + 33 * 60 * + col1 + 85 - 85 AS col0 FROM tab0 cor0
----
170280
180180
192060

query I rowsort
SELECT - + col2 + - col0 * col1 FROM tab2 AS cor0
----
-1381
-244
-4628

query I rowsort
SELECT - + ( 32 ) + + col1 FROM tab2 AS cor0
----
-1
-15
27

query I rowsort
SELECT ALL + 35 - 93 FROM tab1 AS cor0
----
-58
-58
-58

query I rowsort
SELECT + - 88 * + col1 AS col2 FROM tab1 AS cor0
----
-1144
-2288
-880

query I rowsort
SELECT DISTINCT 12 AS col1 FROM tab1 AS cor0
----
12

query I rowsort
SELECT ALL + + col0 * - col2 - col0 FROM tab2 AS cor0
----
-196
-2106
-3081

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 80 col1 FROM tab1 AS cor0
----
80
80
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * - col1 col0 FROM tab2 AS cor0
----
1343
217
4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 6 col1 FROM tab2 AS cor0
----
-6

query I rowsort
SELECT + col2 + col0 * 41 AS col2 FROM tab2 cor0
----
314
3224
3277

query I rowsort
SELECT ALL 84 + - 76 * - tab1.col0 * 64 AS col2 FROM tab1
----
14676
311380
389204

query I rowsort
SELECT - + cor0.col1 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f

query I rowsort
SELECT DISTINCT + 41 + + col0 FROM tab2
----
119
120
48

query I rowsort
SELECT ALL - + col0 * ( + col0 ) FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT cor0.col1 + - cor0.col1 * - col1 FROM tab1 AS cor0
----
110
182
702

query I rowsort
SELECT ALL + - col0 + 52 AS col2 FROM tab2 AS cor0
----
-26
-27
45

query I rowsort
SELECT cor0.col1 * - 76 FROM tab2 AS cor0
----
-1292
-2356
-4484

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6713
SELECT ALL + col0 - CAST( NULL AS SIGNED ) / col1 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6713
SELECT ALL + col0 - CAST ( NULL AS INTEGER ) / col1 AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6714
SELECT ALL - col1 * col2 + - col1 - - col0 DIV - col0 AS col2 FROM tab0
----
-195
-2925
-7554

skipif mysql # not compatible
query I rowsort label-6714
SELECT ALL - col1 * col2 + - col1 - - col0 / - col0 AS col2 FROM tab0
----
-195
-2925
-7554

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col2 * + col1 col1 FROM tab1 AS cor0
----
-36480
-4212
-99840

query I rowsort
SELECT DISTINCT ( + ( + col0 ) ) AS col1 FROM tab0 cor0
----
24
35
89

query I rowsort
SELECT ALL 5 * - col0 FROM tab1 AS cor0
----
-15
-320
-400

query I rowsort
SELECT - - ( 57 ) - col0 AS col0 FROM tab2 AS cor0
----
-21
-22
50

query I rowsort
SELECT tab1.col0 * ( tab1.col0 ) FROM tab1
----
4096
6400
9

query I rowsort
SELECT ALL + col1 * ( - col0 ) AS col2 FROM tab1
----
-1040
-640
-78

query I rowsort
SELECT DISTINCT col2 - + tab0.col2 * - 9 AS col1 FROM tab0
----
10
330
820

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6722
SELECT - CAST( 26 AS SIGNED ) FROM tab2, tab1 AS cor0
----
9 values hashing to 47d0574274146de273829785364ada39

skipif mysql # not compatible
query I rowsort label-6722
SELECT - CAST ( 26 AS INTEGER ) FROM tab2, tab1 AS cor0
----
9 values hashing to 47d0574274146de273829785364ada39

query I rowsort
SELECT - col0 * 8 AS col1 FROM tab1
----
-24
-512
-640

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6724
SELECT ALL col0 * CAST( col2 AS SIGNED ) - + col2 * - tab2.col1 AS col1 FROM tab2
----
1026
3562
3648

skipif mysql # not compatible
query I rowsort label-6724
SELECT ALL col0 * CAST ( col2 AS INTEGER ) - + col2 * - tab2.col1 AS col1 FROM tab2
----
1026
3562
3648

query I rowsort
SELECT 86 FROM tab2, tab0 AS cor0
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19

query I rowsort
SELECT col0 + 14 FROM tab0
----
103
38
49

query I rowsort
SELECT tab1.col1 * - 3 FROM tab1
----
-30
-39
-78

onlyif mysql # use DIV operator for integer division
query I rowsort label-6728
SELECT ALL - col2 + col0 * col2 DIV - col2 AS col2 FROM tab1
----
-121
-176
-57

skipif mysql # not compatible
query I rowsort label-6728
SELECT ALL - col2 + col0 * col2 / - col2 AS col2 FROM tab1
----
-121
-176
-57

query I rowsort
SELECT DISTINCT + col0 + + col1 + col2 AS col1 FROM tab2
----
134
163
65

onlyif mysql # use DIV operator for integer division
query I rowsort label-6730
SELECT + col2 + 77 * cor0.col2 DIV + col2 AS col0 FROM tab1 AS cor0
----
131
134
173

skipif mysql # not compatible
query I rowsort label-6730
SELECT + col2 + 77 * cor0.col2 / + col2 AS col0 FROM tab1 AS cor0
----
131
134
173

query I rowsort
SELECT - + ( col2 ) * + col2 + cor0.col1 * - col0 FROM tab2 AS cor0
----
-2787
-5278
-946

query I rowsort
SELECT + - col0 + - 39 AS col1 FROM tab0 AS cor0
----
-128
-63
-74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 41 * col1 col0 FROM tab1 AS cor0
----
1066
410
533

query I rowsort
SELECT 59 * col1 AS col1 FROM tab2
----
1003
1829
3481

query I rowsort
SELECT DISTINCT + 31 AS col0 FROM tab0
----
31

query I rowsort
SELECT ALL + ( - col0 * + ( 17 ) ) AS col1 FROM tab2
----
-119
-1326
-1343

query I rowsort
SELECT col2 * + tab2.col0 - col2 FROM tab2
----
162
2002
2964

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 3 - col1 * col2 col1 FROM tab0
----
-100
-2841
-7465

query I rowsort
SELECT + col1 + - col2 * cor0.col2 AS col1 FROM tab1 AS cor0
----
-2890
-3239
-9203

query I rowsort
SELECT cor0.col2 * - col2 + + 39 FROM tab0 AS cor0
----
-1050
-6685
38

query I rowsort
SELECT ALL col0 * 91 + cor0.col2 FROM tab0 cor0
----
2217
3186
8181

query I rowsort
SELECT DISTINCT - col1 + - ( 86 ) AS col1 FROM tab0 AS cor0
----
-172
-177
-183

query I rowsort
SELECT ALL + col0 + + ( + 98 ) * col2 FROM tab0 cor0
----
133
3258
8125

query I rowsort
SELECT DISTINCT + - cor0.col1 * col1 AS col1 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT ALL + 36 AS col1 FROM tab0, tab2 AS cor0, tab1, tab2 AS cor1
----
81 values hashing to e09b197365a04fabbaaf0718d2ae88c5

query I rowsort
SELECT ALL cor0.col1 + cor0.col2 FROM tab2 AS cor0
----
55
58
85

onlyif mysql # use DIV operator for integer division
query I rowsort label-6747
SELECT - - col1 + + col2 DIV - 29 AS col2 FROM tab0 cor0
----
85
89
97

skipif mysql # not compatible
query I rowsort label-6747
SELECT - - col1 + + col2 / - 29 AS col2 FROM tab0 cor0
----
85
89
97

query I rowsort
SELECT ALL - + cor0.col0 + - col1 FROM tab0 AS cor0
----
-110
-132
-180

query I rowsort
SELECT ALL col1 + + ( cor0.col2 ) AS col0 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT DISTINCT - cor0.col2 * - cor0.col1 AS col0 FROM tab1 cor0
----
1248
1404
570

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6751
SELECT - CAST( NULL AS SIGNED ) AS col0 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-6751
SELECT - CAST ( NULL AS INTEGER ) AS col0 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT - 46 * ( - col1 ) * + col1 FROM tab1
----
31096
4600
7774

query I rowsort
SELECT - ( + 56 + col2 ) * + tab1.col0 FROM tab1
----
-12160
-330
-7232

query I rowsort
SELECT ALL 55 * - col2 AS col2 FROM tab0
----
-1815
-4510
-55

onlyif mysql # use DIV operator for integer division
query I rowsort label-6755
SELECT col0 DIV col0 + - col1 AS col0 FROM tab1 AS cor0
----
-12
-25
-9

skipif mysql # not compatible
query I rowsort label-6755
SELECT col0 / col0 + - col1 AS col0 FROM tab1 AS cor0
----
-12
-25
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 98 + - col2 + - tab0.col2 * col2 col0 FROM tab0
----
-1024
-6708
96

query I rowsort
SELECT ALL + tab2.col1 + col2 AS col2 FROM tab2
----
55
58
85

query I rowsort
SELECT DISTINCT + 35 FROM tab1, tab0 AS cor0
----
35

query I rowsort
SELECT DISTINCT col0 * 27 + - col2 FROM tab1
----
1671
2064
27

query I rowsort
SELECT DISTINCT + + cor0.col1 * 86 FROM tab1 AS cor0
----
1118
2236
860

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 60 col0 FROM tab1, tab0 AS cor0
----
9 values hashing to a97561e17ecaa618227c75a57b268f33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + col1 - cor0.col1 * + 38 col0 FROM tab1 cor0
----
-280
-312
-325

query I rowsort
SELECT - cor0.col0 * + col0 - col0 FROM tab0 AS cor0
----
-1260
-600
-8010

query I rowsort
SELECT + col0 + + 60 * + col2 FROM tab1 cor0
----
3243
3484
5840

query I rowsort
SELECT DISTINCT 29 + + col2 * col0 FROM tab2 cor0
----
2057
218
3031

query I rowsort
SELECT + col0 + ( col2 ) * col0 * - col1 + col2 * + col1 * + col1 AS col2 FROM tab1 cor0
----
-30716
-83536
32295

query I rowsort
SELECT - col2 + - 23 + cor0.col0 AS col0 FROM tab0 AS cor0
----
-16
-32
11

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6768
SELECT + CAST( NULL AS SIGNED ) + - col1 * cor0.col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6768
SELECT + CAST ( NULL AS INTEGER ) + - col1 * cor0.col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6769
SELECT DISTINCT ( col2 ) - + col0 DIV + ( - 37 ) col0 FROM tab1
----
54
58
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6769
SELECT DISTINCT ( col2 ) - + col0 / + ( - 37 ) col0 FROM tab1
----
54
58
98

query I rowsort
SELECT ALL col2 * col1 - col0 AS col0 FROM tab2
----
1456
567
830

query I rowsort
SELECT col2 + col1 * + col2 + col0 FROM tab0
----
133
2895
7633

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 col2 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT DISTINCT 56 - col1 FROM tab1 AS cor0
----
30
43
46

query I rowsort
SELECT + col1 + + 49 - col2 FROM tab2 AS cor0
----
28
53
82

query I rowsort
SELECT ALL + + cor0.col2 * + col2 + ( col1 + cor0.col0 ) FROM tab0 cor0
----
1199
133
6904

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + col0 * 71 col1 FROM tab1 AS cor0
----
187
4534
5667

query I rowsort
SELECT - - 69 FROM tab0 AS cor0
----
69
69
69

query I rowsort
SELECT DISTINCT - + ( col1 ) * + 75 * ( + col0 ) FROM tab2 AS cor0
----
-100725
-16275
-345150

query I rowsort
SELECT DISTINCT - - col2 * - col2 + + col2 - col0 FROM tab0 AS cor0
----
-1080
-35
-6731

query I rowsort
SELECT 18 * cor0.col0 + - col1 AS col0 FROM tab0 AS cor0
----
1511
346
533

query I rowsort
SELECT DISTINCT col2 + + col0 * col2 * + col1 AS col1 FROM tab0 cor0
----
3396
664200
68145

query I rowsort
SELECT ALL + 72 * col0 AS col0 FROM tab0 AS cor0
----
1728
2520
6408

query I rowsort
SELECT ALL - 94 + col0 * 41 * - col2 + + col1 AS col0 FROM tab1 AS cor0
----
-149652
-314961
-6710

query I rowsort
SELECT - col2 + + col0 * + 54 AS col0 FROM tab0 AS cor0
----
1263
1889
4724

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6785
SELECT ALL - CAST( - col1 AS SIGNED ) * col0 - - 51 FROM tab0
----
2115
3446
8150

skipif mysql # not compatible
query I rowsort label-6785
SELECT ALL - CAST ( - col1 AS INTEGER ) * col0 - - 51 FROM tab0
----
2115
3446
8150

onlyif mysql # use DIV operator for integer division
query I rowsort label-6786
SELECT ALL + col1 * col0 + col1 DIV col1 + + col1 FROM tab1 AS cor0
----
105
1054
651

skipif mysql # not compatible
query I rowsort label-6786
SELECT ALL + col1 * col0 + col1 / col1 + + col1 FROM tab1 AS cor0
----
105
1054
651

query I rowsort
SELECT 37 * - cor0.col0 + + 86 FROM tab0 AS cor0
----
-1209
-3207
-802

query I rowsort
SELECT - col1 - + col2 * - 70 AS col2 FROM tab0 AS cor0
----
-27
2224
5649

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6789
SELECT ALL + CAST( NULL AS SIGNED ) * 32 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-6789
SELECT ALL + CAST ( NULL AS INTEGER ) * 32 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT ALL + ( + 93 ) FROM tab2
----
93
93
93

query I rowsort
SELECT ALL ( + ( - tab2.col0 ) * col0 ) FROM tab2
----
-49
-6084
-6241

query I rowsort
SELECT - col2 * ( cor0.col0 ) AS col2 FROM tab1 cor0
----
-162
-3648
-7680

query I rowsort
SELECT - col2 * + 33 * col0 AS col0 FROM tab1 AS cor0
----
-120384
-253440
-5346

query I rowsort
SELECT + col2 * + 81 AS col0 FROM tab0 AS cor0
----
2673
6642
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab0.col2 * col1 col0 FROM tab0
----
2838
7462
97

query I rowsort
SELECT + - col0 * ( + col1 * col2 + - col2 * 42 ) AS col2 FROM tab2 AS cor0
----
-34476
2079
75050

query I rowsort
SELECT ALL col2 * + 97 AS col2 FROM tab2 AS cor0
----
2522
2619
3686

query I rowsort
SELECT ALL - col1 + - 79 * 79 AS col0 FROM tab2 AS cor0
----
-6258
-6272
-6300

query I rowsort
SELECT DISTINCT ( - col1 ) + + col2 + + cor0.col2 FROM tab1 AS cor0
----
104
179
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-6800
SELECT ALL - 52 DIV col2 - - col1 AS col0 FROM tab0 AS cor0
----
45
85
91

skipif mysql # not compatible
query I rowsort label-6800
SELECT ALL - 52 / col2 - - col1 AS col0 FROM tab0 AS cor0
----
45
85
91

query I rowsort
SELECT DISTINCT 93 + + col1 - - col2 AS col2 FROM tab1 AS cor0
----
160
173
202

query I rowsort
SELECT - 32 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to ef8f93119983b962f4c81381ebf4b1e6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6803
SELECT + tab2.col2 - CAST( col0 AS SIGNED ) FROM tab2
----
-41
-52
20

skipif mysql # not compatible
query I rowsort label-6803
SELECT + tab2.col2 - CAST ( col0 AS INTEGER ) FROM tab2
----
-41
-52
20

query I rowsort
SELECT + 92 + col2 * + col1 FROM tab1
----
1340
1496
662

query I rowsort
SELECT DISTINCT - col0 - col2 * col2 AS col1 FROM tab0
----
-1113
-36
-6813

query I rowsort
SELECT + col1 - - 73 * col1 AS col2 FROM tab2 AS cor0
----
1258
2294
4366

query I rowsort
SELECT ALL + + col1 * - 48 + - cor0.col2 * - col0 FROM tab0 AS cor0
----
-3336
-4621
2930

onlyif mysql # use DIV operator for integer division
query I rowsort label-6808
SELECT - + col0 DIV - 9 AS col1 FROM tab0 AS cor0
----
2
3
9

skipif mysql # not compatible
query I rowsort label-6808
SELECT - + col0 / - 9 AS col1 FROM tab0 AS cor0
----
2
3
9

query I rowsort
SELECT + - col1 * + 50 FROM tab1 AS cor0
----
-1300
-500
-650

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 - + tab0.col2 col1 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL + col1 + ( 96 ) AS col1 FROM tab1 AS cor0
----
106
109
122

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * 3 col1 FROM tab1 AS cor0
----
-162
-171
-288

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - 23 col2 FROM tab0 cor0
----
1978
2093
2231

query I rowsort
SELECT col2 * 7 * col0 + - cor0.col0 * 78 AS col2 FROM tab1 AS cor0
----
20544
47520
900

query I rowsort
SELECT DISTINCT + + col2 * + col0 * + ( col0 ) AS col2 FROM tab1 AS cor0
----
233472
486
614400

onlyif mysql # use DIV operator for integer division
query I rowsort label-6816
SELECT - col0 * col1 + - col0 DIV - col2 + col0 FROM tab0 AS cor0
----
-2040
-3325
-8009

skipif mysql # not compatible
query I rowsort label-6816
SELECT - col0 * col1 + - col0 / - col2 + col0 FROM tab0 AS cor0
----
-2040
-3325
-8009

query I rowsort
SELECT - col1 * + 4 AS col1 FROM tab1 AS cor0
----
-104
-40
-52

query I rowsort
SELECT + - col0 + + col2 * cor0.col1 + col2 * ( col1 * col1 ) FROM tab0 AS cor0
----
246882
686415
9471

query I rowsort
SELECT DISTINCT col1 * + 9 FROM tab2 cor0
----
153
279
531

query I rowsort
SELECT ALL - col1 * + col2 + + 75 FROM tab2 AS cor0
----
-1459
-571
-762

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6821
SELECT ALL - - col2 * CAST( + col1 AS SIGNED ) + col0 AS col0 FROM tab1 AS cor0
----
1328
1407
634

skipif mysql # not compatible
query I rowsort label-6821
SELECT ALL - - col2 * CAST ( + col1 AS INTEGER ) + col0 AS col0 FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT + col1 * col0 * + cor0.col0 + - cor0.col0 FROM tab2 AS cor0
----
106018
1512
358878

onlyif mysql # use DIV operator for integer division
query I rowsort label-6823
SELECT DISTINCT cor0.col0 + - CAST( + col2 AS SIGNED ) DIV - col0 FROM tab1 AS cor0
----
21
64
81

skipif mysql # not compatible
query I rowsort label-6823
SELECT DISTINCT cor0.col0 + - CAST ( + col2 AS INTEGER ) / - col0 FROM tab1 AS cor0
----
21
64
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( tab2.col2 ) col0 FROM tab2
----
26
27
38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6825
SELECT + CAST( NULL AS DECIMAL ) * - col0 + - col1 col0 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6825
SELECT + CAST ( NULL AS REAL ) * - col0 + - col1 col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ( + col0 ) * - tab0.col2 - 39 * col1 * col0 FROM tab0
----
-132440
-323159
-81288

query I rowsort
SELECT DISTINCT col0 + col1 + - col1 * 55 * + 57 AS col1 FROM tab1 AS cor0
----
-31276
-40662
-81481

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6828
SELECT ALL - CAST( NULL AS SIGNED ) * + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6828
SELECT ALL - CAST ( NULL AS INTEGER ) * + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col2 * - col2 * - col2 AS col0 FROM tab0 cor0
----
1
35937
551368

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6830
SELECT ALL - - CAST( NULL AS SIGNED ) * - 38 + col1 * - ( cor0.col0 ) * - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6830
SELECT ALL - - CAST ( NULL AS INTEGER ) * - 38 + col1 * - ( cor0.col0 ) * - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6831
SELECT ALL + - col1 - + col2 DIV col1 col0 FROM tab2 AS cor0
----
-19
-31
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6831
SELECT ALL + - col1 - + col2 / col1 col0 FROM tab2 AS cor0
----
-19
-31
-59

query I rowsort
SELECT - + col1 * - ( - col0 ) FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT + ( - 4 ) + col0 AS col2 FROM tab0 AS cor0
----
20
31
85

query I rowsort
SELECT DISTINCT - 22 * col0 + col2 * 82 AS col0 FROM tab0 AS cor0
----
-688
2178
4766

query I rowsort
SELECT ALL - col2 * + col1 AS col1 FROM tab0 cor0
----
-2838
-7462
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-6836
SELECT ALL col1 DIV + cor0.col1 AS col1 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6836
SELECT ALL col1 / + cor0.col1 AS col1 FROM tab1 AS cor0
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-6837
SELECT ALL + col1 DIV - cor0.col2 + - ( col2 ) FROM tab1 AS cor0
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-6837
SELECT ALL + col1 / - cor0.col2 + - ( col2 ) FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT ALL - col1 * + col1 * col0 + col2 AS col0 FROM tab1 AS cor0
----
-13424
-1974
-6343

query I rowsort
SELECT DISTINCT + col1 * - col1 + col0 FROM tab0 AS cor0
----
-7372
-8192
-9374

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + col0 * - 33 col1 FROM tab1 AS cor0
----
-2055
-2544
-45

query I rowsort
SELECT DISTINCT + col0 * cor0.col2 * - col1 + + cor0.col0 FROM tab0 cor0
----
-3360
-664029
-68088

query I rowsort
SELECT ALL - col1 * col0 + - col2 AS col1 FROM tab1 AS cor0
----
-1136
-132
-697

onlyif mysql # use DIV operator for integer division
query I rowsort label-6843
SELECT ALL col0 DIV + col0 AS col1 FROM tab2 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6843
SELECT ALL col0 / + col0 AS col1 FROM tab2 cor0
----
1
1
1

query I rowsort
SELECT DISTINCT + col0 * + col0 * ( 48 ) AS col0 FROM tab2 AS cor0
----
2352
292032
299568

query I rowsort
SELECT + 0 * + col1 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - + 56 + + col0 FROM tab0 AS cor0
----
-21
-32
33

query I rowsort
SELECT cor0.col2 FROM tab2, tab2 AS cor0, tab0 cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + col2 * col0 col2 FROM tab1
----
159
3584
7600

query I rowsort
SELECT DISTINCT - - cor0.col0 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
3
64
80

query I rowsort
SELECT - col1 + col2 * col2 AS col0 FROM tab2
----
1427
617
698

query I rowsort
SELECT + - cor0.col0 + + 5 FROM tab2 AS cor0
----
-2
-73
-74

query I rowsort
SELECT - 12 + col2 + - cor0.col0 AS col1 FROM tab1 cor0
----
-19
39
4

query I rowsort
SELECT ALL - 52 * + 90 FROM tab0, tab1 AS cor0, tab1, tab0 AS cor1
----
81 values hashing to 4d71f33bfe39beba6045887f05746395

query I rowsort
SELECT ALL - col0 * 88 + col2 * + col2 * + col0 FROM tab0
----
-3045
24024
590604

query I rowsort
SELECT ALL 47 * - col2 AS col0 FROM tab2
----
-1222
-1269
-1786

query I rowsort
SELECT 86 * - col2 FROM tab2
----
-2236
-2322
-3268

query I rowsort
SELECT - 54 FROM tab1, tab2 cor0
----
9 values hashing to 4ecdb0f1b85f0d4fdc3a826efd9f2342

query I rowsort
SELECT 76 * - col1 AS col0 FROM tab0
----
-6536
-6916
-7372

query I rowsort
SELECT ALL ( - ( + col2 ) * col2 ) AS col0 FROM tab0
----
-1
-1089
-6724

onlyif mysql # use DIV operator for integer division
query I rowsort label-6860
SELECT + col2 DIV col2 + col0 FROM tab0 AS cor0
----
25
36
90

skipif mysql # not compatible
query I rowsort label-6860
SELECT + col2 / col2 + col0 FROM tab0 AS cor0
----
25
36
90

query I rowsort
SELECT + col2 * + col1 * + col2 AS col2 FROM tab2
----
22599
24548
39884

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6862
SELECT ALL CAST( + col2 AS SIGNED ) AS col2 FROM tab1
----
54
57
96

skipif mysql # not compatible
query I rowsort label-6862
SELECT ALL CAST ( + col2 AS INTEGER ) AS col2 FROM tab1
----
54
57
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-6863
SELECT - 56 DIV col2 AS col1 FROM tab0 AS cor0
----
-1
-56
0

skipif mysql # not compatible
query I rowsort label-6863
SELECT - 56 / col2 AS col1 FROM tab0 AS cor0
----
-1
-56
0

query I rowsort
SELECT - 93 * - col0 + col1 FROM tab2 AS cor0
----
682
7313
7364

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6865
SELECT ALL + CAST( NULL AS SIGNED ) * col1 * col2 col0 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6865
SELECT ALL + CAST ( NULL AS INTEGER ) * col1 * col2 col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6866
SELECT DISTINCT col2 DIV 83 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-6866
SELECT DISTINCT col2 / 83 FROM tab2
----
0

query I rowsort
SELECT ALL 70 * col2 AS col1 FROM tab1
----
3780
3990
6720

query I rowsort
SELECT ALL cor0.col1 * tab1.col2 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 6b6947fcb54b3e9529d0c75cfb5b2d32

onlyif mysql # use DIV operator for integer division
query I rowsort label-6869
SELECT ALL - - col2 DIV col1 + + col2 * col0 FROM tab1 AS cor0
----
164
3653
7687

skipif mysql # not compatible
query I rowsort label-6869
SELECT ALL - - col2 / col1 + + col2 * col0 FROM tab1 AS cor0
----
164
3653
7687

query I rowsort
SELECT ALL - ( - col0 ) * - col0 AS col2 FROM tab1
----
-4096
-6400
-9

query I rowsort
SELECT - 85 + col0 AS col1 FROM tab1 AS cor0
----
-21
-5
-82

onlyif mysql # use DIV operator for integer division
query I rowsort label-6872
SELECT - col0 + - tab2.col1 DIV col0 AS col2 FROM tab2
----
-11
-78
-79

skipif mysql # not compatible
query I rowsort label-6872
SELECT - col0 + - tab2.col1 / col0 AS col2 FROM tab2
----
-11
-78
-79

query I rowsort
SELECT col0 FROM tab0 WHERE NOT ( NULL ) <= NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-6874
SELECT ALL col1 DIV + col0 + col1 FROM tab1
----
10
13
34

skipif mysql # not compatible
query I rowsort label-6874
SELECT ALL col1 / + col0 + col1 FROM tab1
----
10
13
34

query I rowsort
SELECT tab2.col0 + tab2.col0 + col2 AS col0 FROM tab2
----
182
196
41

query I rowsort
SELECT + col1 - + col2 * - col1 FROM tab2
----
1593
663
868

query I rowsort
SELECT ALL tab0.col2 * col2 - col1 AS col2 FROM tab0
----
-96
1003
6633

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col2 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + col0 * - col0 + tab2.col0 AS col0 FROM tab2
----
-42
-6006
-6162

query I rowsort
SELECT ALL col2 * + col0 - tab1.col1 FROM tab1
----
136
3638
7667

query I rowsort
SELECT - col2 + + col2 + + col1 * + col0 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT col2 * - col0 + col2 + + col0 AS col1 FROM tab0
----
-7127
-735
1

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col2 - col0 IN ( col2 * + col0 + col0 + col0 )
----

query I rowsort
SELECT DISTINCT + tab2.col0 * col2 + - tab2.col1 * col1 AS col2 FROM tab2
----
-1453
-772
2713

query I rowsort
SELECT ALL col2 + - col2 * + col1 FROM tab0
----
-2805
-7380
-96

query I rowsort
SELECT - col1 * - col2 + col1 * col2 AS col1 FROM tab1 AS cor0
----
1140
2496
2808

query I rowsort
SELECT ALL + - col0 * - col1 - col1 AS col1 FROM tab2 AS cor0
----
1326
186
4543

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - col0 * - cor0.col2 + - col0 col2 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT - - cor0.col1 + col2 * - col0 FROM tab1 AS cor0
----
-136
-3638
-7667

onlyif mysql # use DIV operator for integer division
query I rowsort label-6890
SELECT DISTINCT col2 * col0 * - col0 + + cor0.col2 * col2 + + col2 DIV - col2 AS col2 FROM tab0 cor0
----
-1225
-17920
-642799

skipif mysql # not compatible
query I rowsort label-6890
SELECT DISTINCT col2 * col0 * - col0 + + cor0.col2 * col2 + + col2 / - col2 AS col2 FROM tab0 cor0
----
-1225
-17920
-642799

query I rowsort
SELECT - cor0.col2 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IN ( + col0 / - cor0.col2 )
----

query I rowsort
SELECT - col1 AS col2 FROM tab1 AS cor0 WHERE + col2 <> ( NULL )
----

query I rowsort
SELECT DISTINCT col2 - cor0.col1 * col1 * - col2 AS col2 FROM tab2 AS cor0
----
11020
25974
90532

query I rowsort
SELECT + cor0.col2 * + cor0.col1 FROM tab1, tab2 AS cor0
----
9 values hashing to f5605ce6cbd6ecc79a4a887488bb6947

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 BETWEEN ( NULL ) AND ( NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 NOT IN ( + col2 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( + col0 * + col0 * + col0 ) = ( - col2 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

query I rowsort
SELECT DISTINCT + col1 * 35 AS col1 FROM tab1 AS cor0
----
350
455
910

onlyif mysql # use DIV operator for integer division
query I rowsort label-6899
SELECT ALL col0 DIV + ( + col0 * col1 ) + + cor0.col1 FROM tab1 AS cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-6899
SELECT ALL col0 / + ( + col0 * col1 ) + + cor0.col1 FROM tab1 AS cor0
----
10
13
26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6900
SELECT + CAST( + 99 AS SIGNED ) * + col1 FROM tab1 AS cor0
----
1287
2574
990

skipif mysql # not compatible
query I rowsort label-6900
SELECT + CAST ( + 99 AS INTEGER ) * + col1 FROM tab1 AS cor0
----
1287
2574
990

onlyif mysql # use DIV operator for integer division
query I rowsort label-6901
SELECT DISTINCT + col0 + + col2 DIV col0 FROM tab1 AS cor0
----
21
64
81

skipif mysql # not compatible
query I rowsort label-6901
SELECT DISTINCT + col0 + + col2 / col0 FROM tab1 AS cor0
----
21
64
81

query I rowsort
SELECT ALL - ( ( col1 ) ) FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT + 24 * - col1 * + col1 AS col0 FROM tab1 AS cor0
----
-16224
-2400
-4056

query I rowsort
SELECT + col1 * + ( + col2 ) - + tab2.col2 FROM tab2
----
1508
608
810

query I rowsort
SELECT ALL + col1 * col1 * col0 AS col0 FROM tab0
----
177504
329315
737009

query I rowsort
SELECT + col1 - 31 AS col1 FROM tab0
----
55
60
66

query I rowsort
SELECT DISTINCT + col2 * 45 FROM tab1
----
2430
2565
4320

query I rowsort
SELECT DISTINCT ( 19 ) FROM tab1
----
19

query I rowsort
SELECT DISTINCT ( - 89 ) AS col0 FROM tab0
----
-89

query I rowsort
SELECT + col2 + 77 FROM tab1
----
131
134
173

query I rowsort
SELECT 35 + 60 * - col0 AS col0 FROM tab2
----
-385
-4645
-4705

query I rowsort
SELECT + col2 * ( + cor0.col0 ) FROM tab2 cor0
----
189
2028
3002

query I rowsort
SELECT ALL + - col2 * - ( col2 ) AS col0 FROM tab1 cor0
----
2916
3249
9216

query I rowsort
SELECT ALL + col2 + tab1.col2 + + ( col0 ) FROM tab1
----
111
178
272

query I rowsort
SELECT ALL + + col2 + + col2 * + col1 AS col0 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT ALL - col1 * - 52 FROM tab0 cor0
----
4472
4732
5044

query I rowsort
SELECT DISTINCT + col0 - - ( - col1 + col0 ) FROM tab0 AS cor0
----
-27
-38
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - 1 col0 FROM tab2 AS cor0
----
-7
-78
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + 14 col1 FROM tab1 AS cor0
----
-12
1
4

query I rowsort
SELECT + col0 * - 21 AS col1 FROM tab0 AS cor0
----
-1869
-504
-735

query I rowsort
SELECT DISTINCT - + col0 + 37 * 59 AS col0 FROM tab0 AS cor0
----
2094
2148
2159

query I rowsort
SELECT DISTINCT col2 * 50 AS col1 FROM tab1 AS cor0
----
2700
2850
4800

query I rowsort
SELECT - 66 FROM tab1, tab2 AS cor0
----
9 values hashing to a408108d423d7784b7d610cb779e515a

query I rowsort
SELECT ALL col2 + ( 22 ) FROM tab2 AS cor0
----
48
49
60

onlyif mysql # use DIV operator for integer division
query I rowsort label-6925
SELECT ALL - col2 * 64 + cor0.col0 DIV col2 FROM tab0 AS cor0
----
-2112
-29
-5247

skipif mysql # not compatible
query I rowsort label-6925
SELECT ALL - col2 * 64 + cor0.col0 / col2 FROM tab0 AS cor0
----
-2112
-29
-5247

query I rowsort
SELECT DISTINCT - - col1 * - ( - col2 ) - - col0 * - col0 FROM tab0 AS cor0
----
-1128
-459
2262

query I rowsort
SELECT DISTINCT - col1 + cor0.col1 AS col0 FROM tab0 cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * cor0.col1 + col1 col2 FROM tab2 AS cor0
----
-1326
-186
-4543

query I rowsort
SELECT + col0 + + 28 FROM tab0 AS cor0
----
117
52
63

query I rowsort
SELECT + col0 + - col0 * 90 FROM tab0 AS cor0
----
-2136
-3115
-7921

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + ( - col1 ) col2 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT DISTINCT cor0.col2 * - col0 + col0 AS col0 FROM tab2 AS cor0
----
-182
-1950
-2923

query I rowsort
SELECT ALL + 96 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303

query I rowsort
SELECT DISTINCT 45 AS col0 FROM tab0, tab1 cor0
----
45

skipif mysql # not compatible
query I rowsort
SELECT ALL - CAST ( col1 AS REAL ) * cor0.col0 AS col1 FROM tab0 cor0
----
-2064
-3395
-8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 35 + col2 col2 FROM tab2 AS cor0
----
61
62
73

query I rowsort
SELECT DISTINCT col1 + 8 AS col0 FROM tab0 AS cor0
----
105
94
99

query I rowsort
SELECT - 19 * - col0 FROM tab0 AS cor0
----
1691
456
665

query I rowsort
SELECT ALL 29 * col1 * col2 AS col0 FROM tab1 AS cor0
----
16530
36192
40716

query I rowsort
SELECT ALL col0 * + col0 + - col1 - - 57 AS col1 FROM tab1 cor0
----
40
4143
6444

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 11 + - col2 col2 FROM tab0 AS cor0
----
-12
-44
-93

query I rowsort
SELECT tab1.col0 * + col1 + - col0 AS col1 FROM tab1
----
576
75
960

query I rowsort
SELECT ALL 72 + col0 * ( - 98 * col0 ) FROM tab2
----
-4730
-596160
-611546

query I rowsort
SELECT DISTINCT col1 + - tab0.col0 + 49 * 56 AS col2 FROM tab0
----
2746
2806

query I rowsort
SELECT DISTINCT + cor0.col1 + cor0.col2 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT col0 + - ( - 82 ) * - col2 FROM tab2 AS cor0
----
-2054
-2207
-3037

query I rowsort
SELECT + col0 * cor0.col0 * + col2 + + col1 AS col1 FROM tab0 AS cor0
----
1322
19094
649613

query I rowsort
SELECT col0 * col2 * 82 FROM tab1 AS cor0
----
13284
299136
629760

query I rowsort
SELECT - col0 * col0 + - col1 * col0 AS col1 FROM tab2
----
-10686
-266
-7584

query I rowsort
SELECT DISTINCT - 83 + col2 * 5 FROM tab1
----
187
202
397

query I rowsort
SELECT DISTINCT - 70 * + tab1.col2 + - col1 FROM tab1
----
-3806
-4000
-6733

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6952
SELECT cor0.col1 * CAST( NULL AS SIGNED ) AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-6952
SELECT cor0.col1 * CAST ( NULL AS INTEGER ) AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT col1 + - col2 * col1 + - col1 * tab2.col1 AS col1 FROM tab2
----
-1767
-4956
-918

query I rowsort
SELECT DISTINCT col1 * tab0.col2 + 54 FROM tab0
----
151
2892
7516

query I rowsort
SELECT 54 * - cor0.col2 AS col1 FROM tab1 AS cor0
----
-2916
-3078
-5184

query I rowsort
SELECT - col2 - ( 43 * col0 ) FROM tab2 AS cor0
----
-328
-3380
-3435

query I rowsort
SELECT DISTINCT + col0 * col0 + - col2 * cor0.col1 AS col1 FROM tab1 AS cor0
----
-1395
3526
5152

query I rowsort
SELECT col0 - 19 AS col0 FROM tab2 AS cor0
----
-12
59
60

query I rowsort
SELECT + col2 - 85 * col2 FROM tab1 AS cor0
----
-4536
-4788
-8064

query I rowsort
SELECT ALL col0 - + ( 35 ) * col0 FROM tab0 AS cor0
----
-1190
-3026
-816

query I rowsort
SELECT ALL - - col1 + - col2 AS col1 FROM tab1 cor0
----
-28
-47
-83

query I rowsort
SELECT 19 * - 63 + cor0.col0 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 54e14562cc1c8b29aaf8c802b1934002

query I rowsort
SELECT 8 FROM tab0, tab2 cor0
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57

query I rowsort
SELECT col2 + 30 * + col2 FROM tab0 AS cor0
----
1023
2542
31

onlyif mysql # use DIV operator for integer division
query I rowsort label-6965
SELECT 43 DIV col1 + col1 AS col2 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-6965
SELECT 43 / col1 + col1 AS col2 FROM tab0 AS cor0
----
86
91
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + col0 + + col0 col0 FROM tab0 cor0
----
1260
600
8010

query I rowsort
SELECT DISTINCT - 8 FROM tab0, tab1 AS cor0
----
-8

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6968
SELECT cor0.col1 + - CAST( + cor0.col1 + cor0.col2 AS SIGNED ) FROM tab0, tab2 AS cor0
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75

skipif mysql # not compatible
query I rowsort label-6968
SELECT cor0.col1 + - CAST ( + cor0.col1 + cor0.col2 AS INTEGER ) FROM tab0, tab2 AS cor0
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75

query I rowsort
SELECT - - ( - col1 ) * - col2 FROM tab1 AS cor0
----
1248
1404
570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 - - col0 col1 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT DISTINCT 9 * cor0.col1 FROM tab1 AS cor0
----
117
234
90

query I rowsort
SELECT + - cor0.col1 + col0 AS col2 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT col0 * 84 AS col0 FROM tab1
----
252
5376
6720

query I rowsort
SELECT DISTINCT + 7 * - col2 FROM tab2
----
-182
-189
-266

query I rowsort
SELECT DISTINCT - ( - tab2.col0 ) * + col2 FROM tab2
----
189
2028
3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col0 * - ( + col2 * - col2 ) col0 FROM tab2 AS cor0
----
1370928
137781
4334888

query I rowsort
SELECT DISTINCT + cor0.col2 * + col0 + + col0 FROM tab0 AS cor0
----
70
7387
816

query I rowsort
SELECT DISTINCT - ( col0 ) * ( ( col0 ) ) FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT - + col0 + col2 * ( - cor0.col1 ) AS col0 FROM tab2 AS cor0
----
-1612
-725
-844

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6980
SELECT - CAST( NULL AS DECIMAL ) * 33 - col2 * + tab0.col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6980
SELECT - CAST ( NULL AS REAL ) * 33 - col2 * + tab0.col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT cor1.col2 AS col1 FROM tab0, tab0 AS cor0, tab1, tab2 AS cor1
----
81 values hashing to c4e6b1f1d28e731664a15a6f7cda4da9

query I rowsort
SELECT + tab1.col2 + - col2 AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT col0 - + col1 * - col0 FROM tab1
----
1120
704
81

query I rowsort
SELECT col2 + - col2 * 52 FROM tab2
----
-1326
-1377
-1938

onlyif mysql # use DIV operator for integer division
query I rowsort label-6985
SELECT DISTINCT - col0 DIV - 31 FROM tab1
----
0
2

skipif mysql # not compatible
query I rowsort label-6985
SELECT DISTINCT - col0 / - 31 FROM tab1
----
0
2

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6986
SELECT + - CAST( NULL AS SIGNED ) * + col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6986
SELECT + - CAST ( NULL AS INTEGER ) * + col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 * + 54 * + col1 + + 24 + - 75 FROM tab1 cor0
----
30729
67341
75765

query I rowsort
SELECT ALL + col1 * - 91 + col1 - - col2 FROM tab2
----
-1492
-2763
-5284

query I rowsort
SELECT - cor0.col0 + - col1 * - col0 + col0 FROM tab2 AS cor0
----
1343
217
4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-6990
SELECT DISTINCT - col1 DIV + 54 - + 28 AS col0 FROM tab2
----
-28
-29

skipif mysql # not compatible
query I rowsort label-6990
SELECT DISTINCT - col1 / + 54 - + 28 AS col0 FROM tab2
----
-28
-29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + col1 + - col2 col1 FROM tab2 AS cor0
----
-4
35
92

query I rowsort
SELECT + + 60 + - cor0.col1 + - col2 AS col1 FROM tab1 AS cor0
----
-20
-49
-7

query I rowsort
SELECT + col0 + cor0.col2 + + col2 FROM tab1 AS cor0
----
111
178
272

query I rowsort
SELECT DISTINCT + col2 + + col2 * + col1 FROM tab1 cor0
----
1344
1458
627

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + cor0.col2 + + col0 * col0 col1 FROM tab2 AS cor0
----
6887
7618
886

query I rowsort
SELECT - col0 + - col2 + col0 AS col1 FROM tab1 AS cor0
----
-54
-57
-96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6997
SELECT DISTINCT - + CAST( - 45 AS SIGNED ) * cor0.col0 FROM tab0 AS cor0
----
1080
1575
4005

skipif mysql # not compatible
query I rowsort label-6997
SELECT DISTINCT - + CAST ( - 45 AS INTEGER ) * cor0.col0 FROM tab0 AS cor0
----
1080
1575
4005

onlyif mysql # use DIV operator for integer division
query I rowsort label-6998
SELECT ALL + - col2 DIV 90 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6998
SELECT ALL + - col2 / 90 FROM tab1 AS cor0
----
-1
0
0

query I rowsort
SELECT - - cor0.col0 * - ( - col1 ) + + 80 AS col0 FROM tab0 AS cor0
----
2144
3475
8179

query I rowsort
SELECT DISTINCT - 12 * ( + col2 ) FROM tab1 AS cor0
----
-1152
-648
-684

query I rowsort
SELECT - 90 + cor1.col2 * cor0.col0 * + 50 FROM tab2, tab0 cor0, tab0 AS cor1
----
27 values hashing to ef4965d9d2c4ed8f3101738d6c239042

onlyif mysql # use DIV operator for integer division
query I rowsort label-7002
SELECT ALL + + col2 - + 48 DIV - ( col2 ) FROM tab0 cor0
----
34
49
82

skipif mysql # not compatible
query I rowsort label-7002
SELECT ALL + + col2 - + 48 / - ( col2 ) FROM tab0 cor0
----
34
49
82

query I rowsort
SELECT DISTINCT + - col0 * 46 AS col2 FROM tab1 AS cor0
----
-138
-2944
-3680

query I rowsort
SELECT + col0 * col2 + - col1 * - col0 FROM tab2 AS cor0
----
406
4345
6630

query I rowsort
SELECT ALL - col2 + ( - col1 ) FROM tab1 cor0
----
-109
-67
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 + ( - ( - col1 ) ) * col2 col1 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT