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 DISTINCT + col1 * 36 FROM tab0 AS cor0
----
3096
3276
3492

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

query I rowsort
SELECT - 85 + cor0.col0 AS col1 FROM tab2 AS cor0
----
-6
-7
-78

query I rowsort
SELECT DISTINCT + ( + col0 ) * + col1 + 96 + - col1 FROM tab0 AS cor0
----
2074
3394
8104

query I rowsort
SELECT - col1 + 72 AS col1 FROM tab1
----
46
59
62

query I rowsort
SELECT + tab2.col2 * - col1 + 9 AS col2 FROM tab2
----
-1525
-637
-828

query I rowsort
SELECT col1 * 72 + col0 * + col0 AS col1 FROM tab1
----
1881
4816
7336

query I rowsort
SELECT + + 65 + col2 * - ( col1 ) FROM tab1 AS cor0
----
-1183
-1339
-505

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

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

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

query I rowsort
SELECT + col2 * - col0 * + col1 + + col1 * + col1 FROM tab0 cor0
----
-60716
-655837
6014

query I rowsort
SELECT DISTINCT + 9 * + col0 AS col1 FROM tab0 AS cor0
----
216
315
801

query I rowsort
SELECT ALL + col1 * col0 * - 18 FROM tab0 AS cor0
----
-145782
-37152
-61110

query I rowsort
SELECT DISTINCT - 85 - col1 FROM tab1
----
-111
-95
-98

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

query I rowsort
SELECT - col2 + - col2 * - 63 - col2 FROM tab2 AS cor0
----
1586
1647
2318

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

skipif mysql # not compatible
query I rowsort label-7023
SELECT 12 / + col2 FROM tab1 AS cor0
----
0
0
0

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-7026
SELECT 86 - + col1 DIV - col1 FROM tab1
----
87
87
87

skipif mysql # not compatible
query I rowsort label-7026
SELECT 86 - + col1 / - col1 FROM tab1
----
87
87
87

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

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

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

query I rowsort
SELECT ALL - - 32 - col2 FROM tab1 AS cor0
----
-22
-25
-64

query I rowsort
SELECT + + col0 + 55 FROM tab0 AS cor0
----
144
79
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col1 ) * ( col1 ) + + col2 + - col1 * col0 col1 FROM tab1
----
-483
-775
652

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7033
SELECT - 96 * tab0.col1 + CAST( 20 AS SIGNED ) FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to c78fc9c759fff06a4da2917e065b50fe

skipif mysql # not compatible
query I rowsort label-7033
SELECT - 96 * tab0.col1 + CAST ( 20 AS INTEGER ) FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to c78fc9c759fff06a4da2917e065b50fe

onlyif mysql # use DIV operator for integer division
query I rowsort label-7034
SELECT + col1 - + 30 * col2 DIV col1 col2 FROM tab2 AS cor0
----
-50
46
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7034
SELECT + col1 - + 30 * col2 / col1 col2 FROM tab2 AS cor0
----
-50
46
5

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

query I rowsort
SELECT ALL + 75 + + col0 + - 97 FROM tab2
----
-15
56
57

query I rowsort
SELECT DISTINCT - 77 + col1 AS col0 FROM tab1
----
-51
-64
-67

query I rowsort
SELECT DISTINCT col2 * + 11 AS col2 FROM tab2
----
286
297
418

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

query I rowsort
SELECT col1 + - 43 + + 22 * col1 FROM tab0 AS cor0
----
1935
2050
2188

query I rowsort
SELECT ALL + + cor0.col0 + 8 FROM tab2 AS cor0
----
15
86
87

query I rowsort
SELECT + - cor0.col2 - + 33 AS col1 FROM tab0 AS cor0
----
-115
-34
-66

query I rowsort
SELECT + 46 + 72 FROM tab2
----
118
118
118

query I rowsort
SELECT + 19 + + col2 FROM tab1 AS cor0
----
115
73
76

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

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

query I rowsort
SELECT DISTINCT - + 64 * 54 AS col2 FROM tab0 AS cor0
----
-3456

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7049
SELECT ALL CAST( col0 AS SIGNED ) * cor0.col0 AS col2 FROM tab2 AS cor0
----
49
6084
6241

skipif mysql # not compatible
query I rowsort label-7049
SELECT ALL CAST ( col0 AS INTEGER ) * cor0.col0 AS col2 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT ALL 54 + - 82 * cor0.col2 FROM tab2 AS cor0
----
-2078
-2160
-3062

query I rowsort
SELECT DISTINCT + 81 + col1 FROM tab2 cor0
----
112
140
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-7052
SELECT + + cor0.col1 DIV col1 - cor0.col0 * col0 DIV col2 AS col2 FROM tab0 cor0
----
-1224
-16
-95

skipif mysql # not compatible
query I rowsort label-7052
SELECT + + cor0.col1 / col1 - cor0.col0 * col0 / col2 AS col2 FROM tab0 cor0
----
-1224
-16
-95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 89 col2 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 860d55eb6785972467218a9c3badb5ad

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

query I rowsort
SELECT ( - 56 + col2 ) AS col0 FROM tab1
----
-2
1
40

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

skipif mysql # not compatible
query I rowsort label-7056
SELECT - col2 * cor0.col1 + + CAST ( ( col2 ) AS INTEGER ) FROM tab0 cor0
----
-2805
-7380
-96

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

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

query I rowsort
SELECT ALL 28 + tab0.col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 27a91d9d2c7980948fd903ad56d735e5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * ( col0 + col0 ) * 39 col2 FROM tab0 AS cor0
----
-44928
-617838
-95550

query I rowsort
SELECT + + 51 * + 95 FROM tab1 cor0
----
4845
4845
4845

query I rowsort
SELECT ALL 69 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 85d9b90a03b9def161891b13085271f7

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( 96 ) * + col0 col1 FROM tab0 AS cor0
----
2304
3360
8544

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

skipif mysql # not compatible
query I rowsort label-7067
SELECT ALL + + 95 - col0 / + col2 FROM tab0 AS cor0
----
60
94
95

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

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

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

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

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

query I rowsort
SELECT ALL - ( - col0 * - ( + 46 ) ) FROM tab1
----
-138
-2944
-3680

query I rowsort
SELECT - cor0.col1 + - 84 AS col1 FROM tab1 AS cor0
----
-110
-94
-97

query I rowsort
SELECT ALL - 91 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 745d1c3a09d935465cad552325c5c945

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

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

skipif mysql # not compatible
query I rowsort label-7075
SELECT - cor0.col1 + - cor0.col1 / col1 FROM tab2 AS cor0
----
-18
-32
-60

query I rowsort
SELECT ALL + - col0 * 46 FROM tab2 AS cor0
----
-322
-3588
-3634

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7077
SELECT ALL col1 / col1 col0 FROM tab2 AS cor0
----
1
1
1

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

query I rowsort
SELECT - 2 + - 36 FROM tab1 cor0
----
-38
-38
-38

query I rowsort
SELECT ALL + col0 + - col2 + - col2 FROM tab0 AS cor0
----
-42
-75
33

onlyif mysql # use DIV operator for integer division
query I rowsort label-7081
SELECT ALL + col0 DIV col2 + col0 + - 47 FROM tab1 AS cor0
----
-44
18
33

skipif mysql # not compatible
query I rowsort label-7081
SELECT ALL + col0 / col2 + col0 + - 47 FROM tab1 AS cor0
----
-44
18
33

query I rowsort
SELECT - cor0.col0 + + 12 AS col1 FROM tab0 AS cor0
----
-12
-23
-77

query I rowsort
SELECT DISTINCT - + 3 + - col1 * col0 FROM tab2 AS cor0
----
-1346
-220
-4605

query I rowsort
SELECT ALL + 42 AS col2 FROM tab0 AS cor0
----
42
42
42

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

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

query I rowsort
SELECT DISTINCT - - 64 + col0 FROM tab2 AS cor0
----
142
143
71

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

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

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

query I rowsort
SELECT col2 + ( - 99 ) * col0 AS col2 FROM tab0
----
-2343
-3464
-8729

query I rowsort
SELECT col2 * 46 + + col1 AS col2 FROM tab2
----
1255
1273
1765

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

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

query I rowsort
SELECT ALL tab0.col1 + ( col1 ) FROM tab0
----
172
182
194

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

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

query I rowsort
SELECT ALL col1 + cor0.col1 + col2 * col2 AS col2 FROM tab1 AS cor0
----
2968
3269
9242

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

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

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

skipif mysql # not compatible
query I rowsort label-7098
SELECT DISTINCT - + col1 / cor0.col1 AS col1 FROM tab2 AS cor0
----
-1

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * + col1 * + col0 col2 FROM tab2 AS cor0
----
-119652
-51034
-5859

query I rowsort
SELECT + - 55 * col2 FROM tab1 AS cor0
----
-2970
-3135
-5280

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-7103
SELECT DISTINCT + col2 DIV + col2 - col2 FROM tab0
----
-32
-81
0

skipif mysql # not compatible
query I rowsort label-7103
SELECT DISTINCT + col2 / + col2 - col2 FROM tab0
----
-32
-81
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 48 + col0 col0 FROM tab0 AS cor0
----
-13
-24
41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 + - col0 * col1 col2 FROM tab2 AS cor0
----
-1264
-210
-4524

query I rowsort
SELECT - cor0.col1 * col2 + + 7 AS col0 FROM tab2 AS cor0
----
-1527
-639
-830

query I rowsort
SELECT DISTINCT + 34 + + col1 AS col0 FROM tab0
----
120
125
131

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

query I rowsort
SELECT - 26 * 56 FROM tab1
----
-1456
-1456
-1456

query I rowsort
SELECT DISTINCT ( - 59 ) * col0 + - 75 AS col2 FROM tab1
----
-252
-3851
-4795

onlyif mysql # use DIV operator for integer division
query I rowsort label-7111
SELECT DISTINCT col0 + - 83 DIV + col0 AS col0 FROM tab0
----
21
33
89

skipif mysql # not compatible
query I rowsort label-7111
SELECT DISTINCT col0 + - 83 / + col0 AS col0 FROM tab0
----
21
33
89

query I rowsort
SELECT col0 + - col2 - - col0 FROM tab0
----
15
69
96

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

query I rowsort
SELECT DISTINCT - col1 + - col0 + col2 * col0 FROM tab1 AS cor0
----
133
3574
7587

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 59 + col2 col2 FROM tab1 AS cor0
----
-2
-5
37

query I rowsort
SELECT + ( col2 ) * col0 + - col2 AS col1 FROM tab2 AS cor0
----
162
2002
2964

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

skipif mysql # not compatible
query I rowsort label-7118
SELECT + - CAST ( col0 AS INTEGER ) - col1 FROM tab0 AS cor0
----
-110
-132
-180

query I rowsort
SELECT DISTINCT + 91 * + 82 + cor0.col2 AS col2 FROM tab1 AS cor0
----
7516
7519
7558

query I rowsort
SELECT DISTINCT 93 + - ( - col1 * - ( tab2.col0 ) ) FROM tab2
----
-124
-1250
-4509

query I rowsort
SELECT 30 * 84 + col2 FROM tab0 AS cor0
----
2521
2553
2602

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7122
SELECT DISTINCT - ( + ( + col1 ) ) * CAST( + 80 * col1 AS SIGNED ) + col1 * col1 AS col1 FROM tab1 AS cor0
----
-13351
-53404
-7900

skipif mysql # not compatible
query I rowsort label-7122
SELECT DISTINCT - ( + ( + col1 ) ) * CAST ( + 80 * col1 AS INTEGER ) + col1 * col1 AS col1 FROM tab1 AS cor0
----
-13351
-53404
-7900

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

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

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

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

query I rowsort
SELECT ALL + 22 * + col0 + - 13 FROM tab2 AS cor0
----
141
1703
1725

query I rowsort
SELECT DISTINCT - + col0 + col1 + - cor0.col0 * + 84 FROM tab2 AS cor0
----
-564
-6571
-6698

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

query I rowsort
SELECT ALL - 10 * col2 * 3 AS col0 FROM tab2 cor0
----
-1140
-780
-810

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

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

query I rowsort
SELECT - col0 * - col1 + 36 AS col1 FROM tab2 AS cor0
----
1379
253
4638

onlyif mysql # use DIV operator for integer division
query I rowsort label-7132
SELECT 13 DIV - col0 - + col1 * CAST( + col2 AS SIGNED ) FROM tab1
----
-1248
-1408
-570

skipif mysql # not compatible
query I rowsort label-7132
SELECT 13 / - col0 - + col1 * CAST ( + col2 AS INTEGER ) FROM tab1
----
-1248
-1408
-570

query I rowsort
SELECT DISTINCT - col2 + col2 * ( col2 ) FROM tab1 AS cor0
----
2862
3192
9120

query I rowsort
SELECT + + 45 + + cor0.col2 * 54 * 25 AS col0 FROM tab2 AS cor0
----
35145
36495
51345

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

query I rowsort
SELECT + col0 * + 52 FROM tab1 AS cor0
----
156
3328
4160

query I rowsort
SELECT - col2 * + 54 AS col2 FROM tab0 AS cor0
----
-1782
-4428
-54

query I rowsort
SELECT DISTINCT + + col2 * 10 AS col1 FROM tab1 AS cor0
----
540
570
960

query I rowsort
SELECT DISTINCT + cor0.col2 + col1 + col1 FROM tab1 AS cor0
----
106
122
77

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

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

query I rowsort
SELECT ALL + col2 * + 41 * col1 AS col0 FROM tab1 AS cor0
----
23370
51168
57564

query I rowsort
SELECT - col2 + - 1 FROM tab1 cor0
----
-55
-58
-97

query I rowsort
SELECT DISTINCT + col0 + + 29 FROM tab0 AS cor0
----
118
53
64

query I rowsort
SELECT ALL + col0 * col0 - col2 FROM tab0 AS cor0
----
1224
543
7839

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-7147
SELECT ALL - col1 + - 40 DIV 66 FROM tab0 AS cor0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-7147
SELECT ALL - col1 + - 40 / 66 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT + - col0 + 9 * + col1 FROM tab0 AS cor0
----
730
750
838

query I rowsort
SELECT 26 + + 92 FROM tab0 AS cor0
----
118
118
118

query I rowsort
SELECT - col2 * - 93 + col1 AS col0 FROM tab2 AS cor0
----
2477
2542
3551

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

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

query I rowsort
SELECT ALL col0 * 56 + + col1 FROM tab1 AS cor0
----
194
3594
4493

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

query I rowsort
SELECT ALL + 14 + 58 * + col1 AS col1 FROM tab2 AS cor0
----
1000
1812
3436

query I rowsort
SELECT + 40 * + cor0.col0 AS col2 FROM tab1 AS cor0
----
120
2560
3200

query I rowsort
SELECT DISTINCT + col0 + 79 + + col0 AS col2 FROM tab2 AS cor0
----
235
237
93

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-7160
SELECT DISTINCT cor0.col0 DIV tab2.col0 FROM tab2, tab1 AS cor0
----
0
1
11
9

skipif mysql # not compatible
query I rowsort label-7160
SELECT DISTINCT cor0.col0 / tab2.col0 FROM tab2, tab1 AS cor0
----
0
1
11
9

query I rowsort
SELECT + ( col2 ) - + 80 AS col1 FROM tab0 AS cor0
----
-47
-79
2

query I rowsort
SELECT - ( - 97 ) FROM tab0
----
97
97
97

query I rowsort
SELECT DISTINCT - 49 * tab0.col2 FROM tab0, tab1 AS cor0
----
-1617
-4018
-49

query I rowsort
SELECT + 95 AS col2 FROM tab0, tab2 AS cor0 CROSS JOIN tab1
----
27 values hashing to 14faa6dda52e3dfe1f5db2579c274a7e

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

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

query I rowsort
SELECT DISTINCT 95 - col0 FROM tab0 AS cor0
----
6
60
71

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-7169
SELECT - col0 DIV + ( 96 ) AS col0 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7169
SELECT - col0 / + ( 96 ) AS col0 FROM tab1 cor0
----
0
0
0

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

query I rowsort
SELECT ALL tab2.col2 * + 22 * col0 FROM tab2
----
4158
44616
66044

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * 77 col1 FROM tab1
----
1001
2002
770

query I rowsort
SELECT DISTINCT + cor0.col1 * 18 FROM tab1 AS cor0
----
180
234
468

query I rowsort
SELECT ALL - cor0.col1 * - col1 * 30 FROM tab1 AS cor0
----
20280
3000
5070

query I rowsort
SELECT DISTINCT - col2 * + 91 AS col1 FROM tab2 cor0
----
-2366
-2457
-3458

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

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

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

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

query I rowsort
SELECT ALL + + col1 + - 14 * col0 FROM tab0 AS cor0
----
-1155
-250
-393

onlyif mysql # use DIV operator for integer division
query I rowsort label-7179
SELECT + cor0.col2 + col0 DIV + col0 + - col0 FROM tab0 cor0
----
-33
-6
10

skipif mysql # not compatible
query I rowsort label-7179
SELECT + cor0.col2 + col0 / + col0 + - col0 FROM tab0 cor0
----
-33
-6
10

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

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

query I rowsort
SELECT DISTINCT 28 * col1 AS col1 FROM tab1 AS cor0
----
280
364
728

query I rowsort
SELECT - + 36 * - col1 + col0 FROM tab1 AS cor0
----
424
548
939

query I rowsort
SELECT DISTINCT col0 * 96 FROM tab1
----
288
6144
7680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7185
SELECT - CAST( - 97 AS SIGNED ) * col1 * + tab0.col1 FROM tab0
----
717412
803257
912673

skipif mysql # not compatible
query I rowsort label-7185
SELECT - CAST ( - 97 AS INTEGER ) * col1 * + tab0.col1 FROM tab0
----
717412
803257
912673

query I rowsort
SELECT tab1.col0 * 2 AS col2 FROM tab1
----
128
160
6

query I rowsort
SELECT DISTINCT - 8 * - col1 FROM tab0 AS cor0
----
688
728
776

query I rowsort
SELECT 58 * 58 AS col2 FROM tab0
----
3364
3364
3364

query I rowsort
SELECT col2 * 35 AS col2 FROM tab2
----
1330
910
945

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

query I rowsort
SELECT - - 37 * col2 AS col1 FROM tab0 cor0
----
1221
3034
37

query I rowsort
SELECT + - cor1.col1 - + cor1.col2 AS col0 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5f7b5c5678d2f6f42d8763f44ca95184

query I rowsort
SELECT - cor0.col2 + - cor1.col2 * cor1.col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 9cbc76a82eb774d616bc433bbc19d2a6

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - col0 ) + - col0 * col0 col0 FROM tab0 AS cor0
----
-1190
-552
-7832

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

query I rowsort
SELECT 40 + col2 + + cor0.col0 AS col0 FROM tab0 AS cor0
----
211
76
97

query I rowsort
SELECT ALL - col1 + col0 - + col2 FROM tab0
----
-63
-84
-95

query I rowsort
SELECT ALL 81 - + col0 FROM tab0
----
-8
46
57

query I rowsort
SELECT - col2 + 10 * + col1 * col1 AS col2 FROM tab0 AS cor0
----
73927
82728
94089

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - - col2 * - col1 col0 FROM tab0
----
-2805
-7380
-96

query I rowsort
SELECT ALL col2 - col2 * col1 AS col0 FROM tab2
----
-1508
-608
-810

query I rowsort
SELECT ALL - col1 * col1 - col0 AS col0 FROM tab0
----
-7420
-8370
-9444

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-7205
SELECT col2 + - col0 DIV + col0 + col0 FROM tab0
----
170
35
56

skipif mysql # not compatible
query I rowsort label-7205
SELECT col2 + - col0 / + col0 + col0 FROM tab0
----
170
35
56

query IIIIII rowsort
SELECT ALL * FROM tab1, tab0 AS cor0 WHERE ( NULL ) <= NULL
----

query I rowsort
SELECT DISTINCT col2 + cor0.col2 * - cor0.col2 * - col0 AS col1 FROM tab2 AS cor0
----
114114
5130
52754

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-7209
SELECT cor0.col0 DIV - cor0.col2 - + cor0.col1 * col0 * col0 FROM tab1 AS cor0
----
-234
-40961
-83200

skipif mysql # not compatible
query I rowsort label-7209
SELECT cor0.col0 / - cor0.col2 - + cor0.col1 * col0 * col0 FROM tab1 AS cor0
----
-234
-40961
-83200

query I rowsort
SELECT + col0 FROM tab1 AS cor0 WHERE NOT col2 + + col1 BETWEEN NULL AND - col0
----
3
64
80

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

query I rowsort
SELECT col0 * - col2 FROM tab2 cor0 WHERE NOT col0 IN ( col2 + - cor0.col2 )
----
-189
-2028
-3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-7213
SELECT + col0 * col1 * + col0 + - col0 DIV col1 AS col2 FROM tab1
----
234
40954
83194

skipif mysql # not compatible
query I rowsort label-7213
SELECT + col0 * col1 * + col0 + - col0 / col1 AS col2 FROM tab1
----
234
40954
83194

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-7215
SELECT ALL col1 * + cor0.col1 DIV - col1 + - col0 FROM tab1 AS cor0
----
-29
-74
-93

skipif mysql # not compatible
query I rowsort label-7215
SELECT ALL col1 * + cor0.col1 / - col1 + - col0 FROM tab1 AS cor0
----
-29
-74
-93

query I rowsort
SELECT ALL col0 * - col0 + - col0 * col2 * + col0 AS col0 FROM tab1 cor0
----
-237568
-495
-620800

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab2.col1 - col0 col2 FROM tab2
----
-137
-38
-96

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

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

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

query I rowsort
SELECT + ( + col1 ) + 42 FROM tab0
----
128
133
139

onlyif mysql # use DIV operator for integer division
query I rowsort label-7223
SELECT tab1.col1 DIV 76 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7223
SELECT tab1.col1 / 76 FROM tab1
----
0
0
0

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

query I rowsort
SELECT ALL 45 + - 39 FROM tab1, tab2 AS cor0
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

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

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

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

query I rowsort
SELECT + col0 * ( - 74 ) * + col1 + ( col0 * cor0.col2 ) AS col0 FROM tab0 AS cor0
----
-151944
-251195
-592028

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

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

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

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

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

query I rowsort
SELECT - col2 * - col2 * - col2 + - tab2.col1 FROM tab2
----
-17635
-19714
-54889

query I rowsort
SELECT 27 * tab0.col0 + + col1 AS col0 FROM tab0
----
1042
2494
734

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

query I rowsort
SELECT ( col0 ) * + col2 + 81 FROM tab0 AS cor0
----
116
7379
873

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + 87 ) * col0 col2 FROM tab2 AS cor0
----
-609
-6786
-6873

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

query I rowsort
SELECT DISTINCT - 87 AS col0 FROM tab0 AS cor0
----
-87

query I rowsort
SELECT DISTINCT + 34 * - col1 + + 56 FROM tab0 AS cor0
----
-2868
-3038
-3242

query I rowsort
SELECT DISTINCT - 57 + col0 * 58 AS col2 FROM tab2 AS cor0
----
349
4467
4525

query I rowsort
SELECT DISTINCT - 86 + col2 AS col1 FROM tab1 AS cor0
----
-29
-32
10

query I rowsort
SELECT - 68 * col2 AS col1 FROM tab2 cor0
----
-1768
-1836
-2584

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

query I rowsort
SELECT + - col1 * + 43 AS col2 FROM tab1 AS cor0
----
-1118
-430
-559

onlyif mysql # use DIV operator for integer division
query I rowsort label-7245
SELECT ALL col0 * col1 DIV 96 FROM tab1
----
0
10
6

skipif mysql # not compatible
query I rowsort label-7245
SELECT ALL col0 * col1 / 96 FROM tab1
----
0
10
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 69 - col2 col2 FROM tab1 AS cor0
----
-27
12
15

query I rowsort
SELECT 20 + col1 FROM tab2 AS cor0
----
37
51
79

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

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

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

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

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

query I rowsort
SELECT + 84 + - ( col1 ) * col2 * 85 AS col0 FROM tab1 AS cor0
----
-105996
-119256
-48366

query I rowsort
SELECT DISTINCT - - col2 + 4 AS col2 FROM tab0 AS cor0
----
37
5
86

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

query I rowsort
SELECT - + cor0.col2 + - col0 * col1 * ( + col0 ) FROM tab1 AS cor0
----
-288
-41017
-83296

query I rowsort
SELECT + ( - 74 ) * col2 + + 82 FROM tab0 AS cor0
----
-2360
-5986
8

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

query I rowsort
SELECT DISTINCT col1 * col2 + - 31 AS col2 FROM tab2
----
1503
615
806

query I rowsort
SELECT - col2 * - 54 AS col2 FROM tab1 AS cor0
----
2916
3078
5184

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

query I rowsort
SELECT + col1 * 25 FROM tab2
----
1475
425
775

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 76 + col1 col0 FROM tab1 AS cor0
----
-50
-63
-66

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

query I rowsort
SELECT + 54 - col1 AS col1 FROM tab1 AS cor0
----
28
41
44

query I rowsort
SELECT 11 + + col0 AS col1 FROM tab0 cor0
----
100
35
46

query I rowsort
SELECT DISTINCT - 94 - col2 AS col1 FROM tab1 AS cor0
----
-148
-151
-190

query I rowsort
SELECT 47 * - col0 + col1 FROM tab1 AS cor0
----
-115
-2998
-3747

onlyif mysql # use DIV operator for integer division
query I rowsort label-7269
SELECT ALL - + 61 * - ( - col2 ) + cor0.col0 DIV cor0.col1 FROM tab0 AS cor0
----
-2013
-5002
-61

skipif mysql # not compatible
query I rowsort label-7269
SELECT ALL - + 61 * - ( - col2 ) + cor0.col0 / cor0.col1 FROM tab0 AS cor0
----
-2013
-5002
-61

onlyif mysql # use DIV operator for integer division
query I rowsort label-7270
SELECT DISTINCT - col2 DIV - col0 + + col1 + + 74 AS col0 FROM tab0 AS cor0
----
161
165
171

skipif mysql # not compatible
query I rowsort label-7270
SELECT DISTINCT - col2 / - col0 + + col1 + + 74 AS col0 FROM tab0 AS cor0
----
161
165
171

query I rowsort
SELECT DISTINCT 81 AS col2 FROM tab0 AS cor0
----
81

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

skipif mysql # not compatible
query I rowsort
SELECT + CAST ( col2 AS REAL ) * col0 - - 86 AS col0 FROM tab1 AS cor0
----
248
3734
7766

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

skipif mysql # not compatible
query I rowsort label-7274
SELECT DISTINCT - - col1 * - cor0.col1 / col1 FROM tab2 AS cor0
----
-17
-31
-59

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-7277
SELECT ALL - - col1 DIV - cor0.col1 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7277
SELECT ALL - - col1 / - cor0.col1 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT + 40 * col1 FROM tab1
----
1040
400
520

onlyif mysql # use DIV operator for integer division
query I rowsort label-7279
SELECT DISTINCT ( + tab1.col2 ) - - col1 DIV - tab1.col0 FROM tab1
----
46
57
96

skipif mysql # not compatible
query I rowsort label-7279
SELECT DISTINCT ( + tab1.col2 ) - - col1 / - tab1.col0 FROM tab1
----
46
57
96

query I rowsort
SELECT - 69 + 64 + col0 AS col0 FROM tab1
----
-2
59
75

query I rowsort
SELECT col1 * 10 AS col0 FROM tab0 AS cor0
----
860
910
970

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

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

query I rowsort
SELECT DISTINCT - 74 FROM tab0, tab1 cor0, tab1 AS cor1
----
-74

query I rowsort
SELECT + cor0.col1 * - 91 AS col1 FROM tab2 AS cor0
----
-1547
-2821
-5369

query I rowsort
SELECT ALL - tab0.col1 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f

onlyif mysql # use DIV operator for integer division
query I rowsort label-7286
SELECT - + 6 * col0 DIV - col1 FROM tab0 AS cor0
----
1
2
5

skipif mysql # not compatible
query I rowsort label-7286
SELECT - + 6 * col0 / - col1 FROM tab0 AS cor0
----
1
2
5

query I rowsort
SELECT - + col0 * + 87 AS col0 FROM tab2 AS cor0
----
-609
-6786
-6873

onlyif mysql # use DIV operator for integer division
query I rowsort label-7288
SELECT CAST( col0 AS SIGNED ) + col0 * ( - 97 ) DIV - col1 AS col1 FROM tab0
----
183
51
70

skipif mysql # not compatible
query I rowsort label-7288
SELECT CAST ( col0 AS INTEGER ) + col0 * ( - 97 ) / - col1 AS col1 FROM tab0
----
183
51
70

query I rowsort
SELECT tab1.col1 - 37 FROM tab1
----
-11
-24
-27

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

query I rowsort
SELECT ALL + + col2 * - 55 AS col2 FROM tab0 AS cor0
----
-1815
-4510
-55

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-7294
SELECT + 98 + + col2 + col2 * col1 DIV + col0 FROM tab2
----
143
144
244

skipif mysql # not compatible
query I rowsort label-7294
SELECT + 98 + + col2 + col2 * col1 / + col0 FROM tab2
----
143
144
244

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

skipif mysql # not compatible
query I rowsort label-7295
SELECT tab0.col2 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

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

skipif mysql # not compatible
query I rowsort label-7296
SELECT - 34 + - col1 / - col2 AS col1 FROM tab1 cor0
----
-34
-34
-34

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-7298
SELECT col0 DIV + col0 + - col0 * - col0 FROM tab1 AS cor0
----
10
4097
6401

skipif mysql # not compatible
query I rowsort label-7298
SELECT col0 / + col0 + - col0 * - col0 FROM tab1 AS cor0
----
10
4097
6401

query I rowsort
SELECT ALL + cor0.col0 + - 59 * + col0 * + col2 FROM tab0 AS cor0
----
-2030
-430493
-46704

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

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

query I rowsort
SELECT DISTINCT + col1 + 47 * col0 FROM tab2 AS cor0
----
360
3725
3730

query I rowsort
SELECT - col0 + - 90 FROM tab2 AS cor0
----
-168
-169
-97

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

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

query I rowsort
SELECT ALL + - col1 + - 67 AS col1 FROM tab2 AS cor0
----
-126
-84
-98

query I rowsort
SELECT ALL - 61 * col2 * + 1 FROM tab2
----
-1586
-1647
-2318

query I rowsort
SELECT ( + cor0.col2 ) - ( + 64 ) FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to ad58e0aa78117378e7579db4fb8c53a6

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

query I rowsort
SELECT ALL + col1 + - ( col1 ) * + col1 FROM tab1 cor0
----
-156
-650
-90

onlyif mysql # use DIV operator for integer division
query I rowsort label-7310
SELECT DISTINCT - cor0.col0 DIV + CAST( - 51 AS SIGNED ) + + col1 * col0 * col2 FROM tab1 cor0
----
36481
4212
99841

skipif mysql # not compatible
query I rowsort label-7310
SELECT DISTINCT - cor0.col0 / + CAST ( - 51 AS INTEGER ) + + col1 * col0 * col2 FROM tab1 cor0
----
36481
4212
99841

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7311
SELECT + col2 + + CAST( col1 AS SIGNED ) FROM tab1 AS cor0
----
109
67
80

skipif mysql # not compatible
query I rowsort label-7311
SELECT + col2 + + CAST ( col1 AS INTEGER ) FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT DISTINCT + + col1 * + col1 * col0 + cor0.col1 AS col1 FROM tab1 AS cor0
----
13533
2054
6410

query I rowsort
SELECT ALL - 10 + col1 FROM tab0 AS cor0
----
76
81
87

query I rowsort
SELECT col1 - - col2 * - col0 * - col1 FROM tab1
----
36490
4238
99853

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

query I rowsort
SELECT tab0.col1 + col1 AS col1 FROM tab0 WHERE col1 BETWEEN col2 * + col2 + col1 AND - col2 / col1 + col0
----

query I rowsort
SELECT + 24 + col2 AS col0 FROM tab0 AS cor0
----
106
25
57

query I rowsort
SELECT col2 * + col2 + 37 * + 69 AS col0 FROM tab2
----
3229
3282
3997

query I rowsort
SELECT ALL - 21 * - tab1.col2 FROM tab1
----
1134
1197
2016

query I rowsort
SELECT cor0.col0 + - 59 AS col2 FROM tab0 AS cor0
----
-24
-35
30

query I rowsort
SELECT ALL + 70 * col1 AS col0 FROM tab2
----
1190
2170
4130

query I rowsort
SELECT ALL col1 + + tab0.col0 * + col1 + col2 AS col1 FROM tab0
----
2183
3493
8272

query I rowsort
SELECT + col1 * - col2 + col0 * col2 * col1 AS col0 FROM tab1
----
2808
35910
98592

query I rowsort
SELECT ALL - col0 + - col2 * + col2 + + col2 FROM tab2
----
-1485
-709
-728

query I rowsort
SELECT DISTINCT col2 + - tab1.col2 * col1 FROM tab1
----
-1152
-1350
-513

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 col0 FROM tab1 WHERE ( NULL ) >= ( NULL )
----

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

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

query I rowsort
SELECT ALL - col1 * - col2 + col0 + - col1 AS col1 FROM tab2
----
1553
708
813

query I rowsort
SELECT + col2 FROM tab2 WHERE ( col1 ) IN ( + col1 )
----
26
27
38

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-7337
SELECT + col2 DIV + col1 + col2 * + tab1.col0 * + col2 + col2 AS col1 FROM tab1
----
207998
737383
8804

skipif mysql # not compatible
query I rowsort label-7337
SELECT + col2 / + col1 + col2 * + tab1.col0 * + col2 + col2 AS col1 FROM tab1
----
207998
737383
8804

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

query I rowsort
SELECT col2 - + col0 * tab2.col2 AS col1 FROM tab2
----
-162
-2002
-2964

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

query I rowsort
SELECT DISTINCT tab1.col2 * - ( col0 + 80 ) AS col0 FROM tab1
----
-15360
-4482
-8208

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

query I rowsort
SELECT DISTINCT + + 18 * col2 FROM tab1 AS cor0
----
1026
1728
972

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

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

query I rowsort
SELECT + + 42 * col1 + col1 * 30 AS col0 FROM tab2 AS cor0
----
1224
2232
4248

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

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

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

skipif mysql # not compatible
query I rowsort label-7348
SELECT DISTINCT + col0 * CAST ( + col2 AS INTEGER ) + col1 + - col2 AS col2 FROM tab1 cor0
----
134
3601
7597

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-7350
SELECT ALL - - col0 * 56 + + 37 DIV - col2 FROM tab0 AS cor0
----
1343
1923
4984

skipif mysql # not compatible
query I rowsort label-7350
SELECT ALL - - col0 * 56 + + 37 / - col2 FROM tab0 AS cor0
----
1343
1923
4984

query I rowsort
SELECT + + col2 * ( 61 ) AS col0 FROM tab0 AS cor0
----
2013
5002
61

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

query I rowsort
SELECT DISTINCT col0 + 94 + col0 AS col2 FROM tab2 AS cor0
----
108
250
252

query I rowsort
SELECT DISTINCT - col1 + - col0 - - 13 FROM tab0 AS cor0
----
-119
-167
-97

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

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

query I rowsort
SELECT - ( 55 ) * + col0 * + 49 - col2 FROM tab1 AS cor0
----
-172537
-215696
-8139

query I rowsort
SELECT - 37 - + col2 FROM tab2 cor0
----
-63
-64
-75

query I rowsort
SELECT DISTINCT - col2 + + 70 AS col1 FROM tab2 AS cor0
----
32
43
44

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

query I rowsort
SELECT DISTINCT + 41 * - col2 FROM tab2
----
-1066
-1107
-1558

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

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

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

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

query I rowsort
SELECT + + col0 + + col2 * col2 * + col2 AS col0 FROM tab1 AS cor0
----
157467
185257
884816

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

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

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

query I rowsort
SELECT DISTINCT - cor0.col1 * - 80 + - col2 AS col0 FROM tab0 cor0
----
6847
7198
7759

query I rowsort
SELECT + + col0 + ( + 7 ) * col0 FROM tab0 AS cor0
----
192
280
712

skipif mysql # not compatible
query I rowsort
SELECT ALL + col2 * + CAST ( - col2 AS REAL ) FROM tab1 AS cor0
----
-2916
-3249
-9216

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-7372
SELECT + col1 DIV + 38 FROM tab0 AS cor0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-7372
SELECT + col1 / + 38 FROM tab0 AS cor0
----
2
2
2

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

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

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

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

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

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

query I rowsort
SELECT 12 + + cor0.col0 AS col1 FROM tab0 cor0
----
101
36
47

query I rowsort
SELECT - 57 + 44 * - col2 FROM tab2 AS cor0
----
-1201
-1245
-1729

query I rowsort
SELECT + 87 * - col2 AS col1 FROM tab0 AS cor0
----
-2871
-7134
-87

query I rowsort
SELECT ALL - + col0 + + col1 * 80 AS col1 FROM tab0 cor0
----
6856
7191
7725

query I rowsort
SELECT ALL + - 79 + col1 + + 39 * - col2 * - col2 AS col0 FROM tab1 cor0
----
113671
126642
359358

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 14 + cor0.col1 col2 FROM tab1 AS cor0
----
24
27
40

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

query I rowsort
SELECT DISTINCT col2 + col2 + col0 * + 28 AS col1 FROM tab1 AS cor0
----
1906
192
2432

query I rowsort
SELECT DISTINCT - + col2 * col2 - 89 AS col0 FROM tab1 AS cor0
----
-3005
-3338
-9305

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

query I rowsort
SELECT DISTINCT - 35 + - col2 * + cor0.col1 + + col2 AS col1 FROM tab2 AS cor0
----
-1543
-643
-845

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

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

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

query I rowsort
SELECT ALL 22 * - col0 + + col1 * col0 * tab1.col2 AS col1 FROM tab1
----
35072
4146
98080

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

query I rowsort
SELECT ALL cor0.col0 * - col1 - - col0 * col0 AS col1 FROM tab2 AS cor0
----
-168
1482
4898

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

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

query I rowsort
SELECT DISTINCT + 4 * + col0 + col2 + col0 * col1 AS col2 FROM tab2 AS cor0
----
1697
272
4940

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

query I rowsort
SELECT ALL + col0 + col0 + col2 FROM tab2 AS cor0
----
182
196
41

query I rowsort
SELECT 65 AS col1 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 1c9d0bf96cd3361942fadad668138b9c

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

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

query I rowsort
SELECT 81 + + col0 AS col0 FROM tab0 AS cor0
----
105
116
170

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

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7405
SELECT ALL + CAST( NULL AS SIGNED ) * 61 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-7405
SELECT ALL + CAST ( NULL AS INTEGER ) * 61 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

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

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

skipif mysql # not compatible
query I rowsort label-7407
SELECT + 63 / 76 + col1 / col1 AS col0 FROM tab2
----
1
1
1

query I rowsort
SELECT DISTINCT + 86 * - col1 + + col1 * tab0.col0 FROM tab0
----
-4947
-5332
273

query I rowsort
SELECT 94 - - 96 AS col1 FROM tab1
----
190
190
190

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7410
SELECT ALL - CAST ( NULL AS REAL ) col2 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT - 26 * col1 - - col1 * - col1 AS col1 FROM tab1 AS cor0
----
-1352
-360
-507

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - col1 * col2 col1 FROM tab1
----
36480
4212
99840

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 60 * - col0 + + col2 * + col2 col1 FROM tab2 AS cor0
----
-3296
-4004
309

query I rowsort
SELECT col0 * + ( + 94 ) AS col0 FROM tab0
----
2256
3290
8366

query I rowsort
SELECT 35 FROM tab1, tab1 cor0
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29

query I rowsort
SELECT - 36 * tab1.col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 32295d3af4c14773cdb609573391733d

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

query I rowsort
SELECT ALL + col2 * col2 * + 54 FROM tab2 AS cor0
----
36504
39366
77976

query I rowsort
SELECT DISTINCT - - cor0.col0 + cor0.col0 * + 67 FROM tab1 AS cor0
----
204
4352
5440

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

query I rowsort
SELECT ALL + col0 + col2 * col2 - col1 FROM tab0 AS cor0
----
-61
1027
6722

query I rowsort
SELECT DISTINCT + + col2 * 59 + - col2 AS col1 FROM tab1 AS cor0
----
3132
3306
5568

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + col1 + - col0 col2 FROM tab2 cor0
----
-1612
-725
-844

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 + col1 * - cor0.col1 col0 FROM tab2 AS cor0
----
-306
-3540
-992

query I rowsort
SELECT DISTINCT col2 * cor0.col0 + col2 + - col1 * col1 AS col0 FROM tab2 AS cor0
----
-1427
-745
2751

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

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

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

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

query I rowsort
SELECT ALL + 92 * cor0.col0 * + col1 FROM tab2 AS cor0
----
123556
19964
423384

query I rowsort
SELECT + 61 * - col1 * + col0 AS col2 FROM tab1 AS cor0
----
-39040
-4758
-63440

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

query I rowsort
SELECT + 85 * + col1 + - col1 AS col2 FROM tab2 AS cor0
----
1428
2604
4956

query I rowsort
SELECT ALL - cor0.col1 + + col0 + 28 FROM tab0 cor0
----
-34
-34
26

query I rowsort
SELECT DISTINCT + + ( + col2 ) * 87 FROM tab2 AS cor0
----
2262
2349
3306

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * + col1 - 35 col2 FROM tab2 AS cor0
----
-1569
-681
-872

query I rowsort
SELECT - + col0 * col2 * cor0.col0 + col1 * col2 FROM tab2 cor0
----
-156650
-236512
-486

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-7442
SELECT + col2 DIV + col0 + - 25 + col2 * tab1.col2 DIV + tab1.col1 FROM tab1
----
105
299
684

skipif mysql # not compatible
query I rowsort label-7442
SELECT + col2 / + col0 + - 25 + col2 * tab1.col2 / + tab1.col1 FROM tab1
----
105
299
684

query I rowsort
SELECT ALL col0 + + col2 * + ( + col0 ) FROM tab2
----
196
2106
3081

query I rowsort
SELECT DISTINCT 36 + col2 FROM tab1
----
132
90
93

query I rowsort
SELECT col1 * ( 16 + col0 ) * + col1 FROM tab2 cor0
----
22103
27455
327214

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

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

query I rowsort
SELECT ALL + 95 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3

query I rowsort
SELECT DISTINCT - ( col0 ) * + col0 + + col0 * + col1 FROM tab2 AS cor0
----
-1482
-4898
168

query I rowsort
SELECT DISTINCT 99 + + 48 * + col1 * - 7 FROM tab1 AS cor0
----
-3261
-4269
-8637

query I rowsort
SELECT DISTINCT + - 28 + + 75 FROM tab0 AS cor0
----
47

onlyif mysql # use DIV operator for integer division
query I rowsort label-7452
SELECT ALL - + CAST( + 45 AS SIGNED ) DIV - cor0.col2 AS col2 FROM tab0 AS cor0
----
0
1
45

skipif mysql # not compatible
query I rowsort label-7452
SELECT ALL - + CAST ( + 45 AS INTEGER ) / - cor0.col2 AS col2 FROM tab0 AS cor0
----
0
1
45

query I rowsort
SELECT ALL - col2 - - 9 * tab0.col0 AS col2 FROM tab0
----
183
314
719

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

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

query I rowsort
SELECT - col2 + - col0 * - 27 FROM tab1 AS cor0
----
1671
2064
27

query I rowsort
SELECT ( + col1 ) + + col1 * col1 AS col2 FROM tab0 AS cor0
----
7482
8372
9506

query I rowsort
SELECT + ( + 19 + + col0 ) AS col1 FROM tab1
----
22
83
99

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

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

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

query I rowsort
SELECT 32 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to d30a2acbf33c88274474306936d3227b

onlyif mysql # use DIV operator for integer division
query I rowsort label-7462
SELECT - - col1 DIV - col1 col1 FROM tab1 cor0
----
-1
-1
-1

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

query I rowsort
SELECT - 76 * - col0 * + 36 FROM tab2 AS cor0
----
19152
213408
216144

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

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

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

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

query I rowsort
SELECT ALL - - ( + 67 ) * cor0.col0 AS col1 FROM tab1 cor0
----
201
4288
5360

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

query I rowsort
SELECT DISTINCT tab2.col1 + - tab2.col2 + + col2 * tab2.col1 * col0 FROM tab2
----
119685
51013
5863

query I rowsort
SELECT + col0 * + 91 + col2 * + col1 AS col0 FROM tab0
----
15561
3282
5022

query I rowsort
SELECT ALL col1 * ( - 22 ) AS col2 FROM tab0
----
-1892
-2002
-2134

query I rowsort
SELECT col1 * - 38 * + 15 FROM tab0
----
-49020
-51870
-55290

onlyif mysql # use DIV operator for integer division
query I rowsort label-7473
SELECT - 72 + col1 DIV cor0.col0 FROM tab0 cor0
----
-69
-70
-71

skipif mysql # not compatible
query I rowsort label-7473
SELECT - 72 + col1 / cor0.col0 FROM tab0 cor0
----
-69
-70
-71

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT + col0 * + ( col2 ) + CAST ( + 19 AS REAL ) * - col1 col1 FROM tab1 AS cor0
----
-332
3458
7433

query I rowsort
SELECT ALL + 89 * col2 + - col2 FROM tab0 AS cor0
----
2904
7216
88

query I rowsort
SELECT DISTINCT col0 - - cor0.col0 AS col2 FROM tab0 AS cor0
----
178
48
70

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

query I rowsort
SELECT + + col1 * 8 AS col2 FROM tab0 AS cor0
----
688
728
776

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7481
SELECT - CAST ( NULL AS INTEGER ) col2 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

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

query I rowsort
SELECT ALL ( + col2 + - tab1.col0 ) * 62 * + col0 AS col2 FROM tab1
----
-27776
79360
9486

query I rowsort
SELECT 57 + + col0 FROM tab1 AS cor0
----
121
137
60

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7486
SELECT DISTINCT - col2 - - col1 * CAST( - col0 AS SIGNED ) * + col0 FROM tab1
----
-288
-41017
-83296

skipif mysql # not compatible
query I rowsort label-7486
SELECT DISTINCT - col2 - - col1 * CAST ( - col0 AS INTEGER ) * + col0 FROM tab1
----
-288
-41017
-83296

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-7488
SELECT - col2 DIV - col1 + col0 * - ( - cor0.col1 ) col2 FROM tab2 AS cor0
----
1345
217
4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7488
SELECT - col2 / - col1 + col0 * - ( - cor0.col1 ) col2 FROM tab2 AS cor0
----
1345
217
4602

query I rowsort
SELECT + col2 + + col2 + + col2 FROM tab0 AS cor0
----
246
3
99

onlyif mysql # use DIV operator for integer division
query I rowsort label-7490
SELECT - col2 * 36 DIV + 7 AS col1 FROM tab2 AS cor0
----
-133
-138
-195

skipif mysql # not compatible
query I rowsort label-7490
SELECT - col2 * 36 / + 7 AS col1 FROM tab2 AS cor0
----
-133
-138
-195

query I rowsort
SELECT - col2 - - ( - col1 ) * col1 * col2 FROM tab0
----
-244101
-679124
-9410

query I rowsort
SELECT ALL - col2 + - 25 * + col0 FROM tab2
----
-1976
-2013
-202

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 - + 77 * 50 col2 FROM tab2 AS cor0
----
-3812
-3823
-3824

query I rowsort
SELECT - col1 * + ( - col0 * col2 ) + 48 * 43 FROM tab1 AS cor0
----
101904
38544
6276

query I rowsort
SELECT ALL - col0 * - 4 AS col0 FROM tab0 AS cor0
----
140
356
96

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

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

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

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

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

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

query I rowsort
SELECT - cor0.col0 * 62 FROM tab2 AS cor0
----
-434
-4836
-4898

query I rowsort
SELECT + col0 + + 99 FROM tab0 AS cor0
----
123
134
188

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

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

skipif mysql # not compatible
query I rowsort label-7505
SELECT DISTINCT col2 / 76 AS col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL - col1 * 48 AS col1 FROM tab2 cor0
----
-1488
-2832
-816

query I rowsort
SELECT ALL col0 + + col2 * col1 + + col0 FROM tab1
----
1408
1410
698

query I rowsort
SELECT DISTINCT - col2 * - col2 + cor0.col0 * + 49 + col0 FROM tab1 cor0
----
13216
3066
6449

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7509
SELECT ALL ( + col0 ) + - ( 93 ) * col1 - CAST( + 14 AS SIGNED ) * + col0 FROM tab1 cor0
----
-1762
-2249
-2457

skipif mysql # not compatible
query I rowsort label-7509
SELECT ALL ( + col0 ) + - ( 93 ) * col1 - CAST ( + 14 AS INTEGER ) * + col0 FROM tab1 cor0
----
-1762
-2249
-2457

query I rowsort
SELECT ALL + col2 * col2 - + 83 * col1 * cor0.col0 AS col1 FROM tab2 AS cor0
----
-110025
-17282
-381290

query I rowsort
SELECT ALL + cor0.col1 * - col2 + + 57 * - col0 AS col0 FROM tab2 AS cor0
----
-1236
-5149
-5980

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

query I rowsort
SELECT + - 46 * + col2 AS col1 FROM tab1 AS cor0
----
-2484
-2622
-4416

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 74 * - col2 col1 FROM tab1 AS cor0
----
3996
4218
7104

query I rowsort
SELECT + col2 * - col0 + ( - tab1.col1 ) + col1 * - col1 FROM tab1
----
-3758
-7862
-864

query I rowsort
SELECT DISTINCT + col1 - + col1 * ( col1 ) FROM tab1
----
-156
-650
-90

query I rowsort
SELECT DISTINCT - col0 + - ( + 6 * col0 ) AS col2 FROM tab2 AS cor0
----
-49
-546
-553

onlyif mysql # use DIV operator for integer division
query I rowsort label-7518
SELECT ALL col1 * cor0.col0 DIV 68 AS col2 FROM tab2 AS cor0
----
19
3
67

skipif mysql # not compatible
query I rowsort label-7518
SELECT ALL col1 * cor0.col0 / 68 AS col2 FROM tab2 AS cor0
----
19
3
67

query I rowsort
SELECT - col0 + + 80 * - 28 * col1 AS col1 FROM tab1 AS cor0
----
-22464
-29200
-58243

query I rowsort
SELECT DISTINCT - + cor0.col0 * 28 * + col1 + col2 * + ( - col0 ) AS col1 FROM tab1 AS cor0
----
-21568
-2346
-36800

onlyif mysql # use DIV operator for integer division
query I rowsort label-7521
SELECT + col1 * col1 + 3 DIV col0 FROM tab2 AS cor0
----
289
3481
961

skipif mysql # not compatible
query I rowsort label-7521
SELECT + col1 * col1 + 3 / col0 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT ALL - col0 * + col1 * + col2 + + ( col0 ) + - col1 AS col1 FROM tab2
----
-119633
-50972
-5883

query I rowsort
SELECT ALL - 96 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to a7b3e5dd01c8929180b7ffda67f79798

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

skipif mysql # not compatible
query I rowsort label-7524
SELECT - 73 / - col1 AS col2 FROM tab0
----
0
0
0

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

query I rowsort
SELECT + ( + col1 ) + + col1 + col2 * + 31 AS col2 FROM tab0 AS cor0
----
1195
225
2724

query I rowsort
SELECT 82 * - col2 FROM tab0
----
-2706
-6724
-82

skipif mysql # not compatible
query I rowsort
SELECT + col1 + col0 * CAST ( 57 AS REAL ) + + col1 FROM tab0 AS cor0
----
1540
2189
5255

query I rowsort
SELECT ALL 98 * + col0 * 49 AS col1 FROM tab1
----
14406
307328
384160

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-7533
SELECT DISTINCT - + cor0.col1 + col2 DIV - col1 FROM tab2 AS cor0
----
-19
-31
-59

skipif mysql # not compatible
query I rowsort label-7533
SELECT DISTINCT - + cor0.col1 + col2 / - col1 FROM tab2 AS cor0
----
-19
-31
-59

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

query I rowsort
SELECT ALL - col1 + + col1 * + 21 * - col2 AS col0 FROM tab0 AS cor0
----
-156793
-2134
-59684

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7537
SELECT DISTINCT col0 / - col1 col1 FROM tab2 AS cor0
----
-1
-4
0

query I rowsort
SELECT ALL - col2 + - 11 * col1 AS col1 FROM tab2 AS cor0
----
-225
-368
-675

query I rowsort
SELECT + 68 AS col1 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 10aa25f1c6b97582c34521ac6452e0b4

query I rowsort
SELECT 49 AS col1 FROM tab0, tab0 cor0, tab0 AS cor1
----
27 values hashing to a40d8754a5be3ce2309c61bfd3e00197

query I rowsort
SELECT cor0.col2 - + 32 AS col0 FROM tab0 cor0
----
-31
1
50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 * - col1 * col2 col1 FROM tab2 AS cor0
----
119652
51034
5859

query I rowsort
SELECT - - 42 * col0 * col1 FROM tab0 AS cor0
----
142590
340158
86688

query I rowsort
SELECT DISTINCT col1 + + 26 * + col0 FROM tab0 AS cor0
----
1007
2405
710

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

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

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

query I rowsort
SELECT DISTINCT - 64 + - 92 * + col0 AS col0 FROM tab0 AS cor0
----
-2272
-3284
-8252

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-7549
SELECT - + 65 * 47 DIV col2 + - 18 + - col1 FROM tab1 AS cor0
----
-100
-62
-81

skipif mysql # not compatible
query I rowsort label-7549
SELECT - + 65 * 47 / col2 + - 18 + - col1 FROM tab1 AS cor0
----
-100
-62
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - 75 ) col1 FROM tab0 AS cor0
----
75

skipif mysql # not compatible
query I rowsort
SELECT CAST ( - col0 AS REAL ) + + col0 * 67 * 32 FROM tab2 AS cor0
----
15001
167154
169297

query I rowsort
SELECT - 69 + 29 FROM tab1 AS cor0
----
-40
-40
-40

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * - 77 col1 FROM tab2 AS cor0
----
539
6006
6083

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 79 * + ( + col0 ) col1 FROM tab0 cor0
----
1896
2765
7031

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - 57 ) + col2 col2 FROM tab2
----
-19
-30
-31

query I rowsort
SELECT + 56 * + col2 FROM tab0 AS cor0
----
1848
4592
56

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7561
SELECT DISTINCT - CAST ( col2 AS INTEGER ) col0 FROM tab1
----
-54
-57
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-7562
SELECT + ( - col1 ) DIV - col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7562
SELECT + ( - col1 ) / - col2 FROM tab1
----
0
0
0

query I rowsort
SELECT 10 * - col1 * col0 FROM tab2
----
-13430
-2170
-46020

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-7565
SELECT + col2 + + ( + col1 ) * col2 DIV + col1 col1 FROM tab1 AS cor0
----
108
114
192

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7565
SELECT + col2 + + ( + col1 ) * col2 / + col1 col1 FROM tab1 AS cor0
----
108
114
192

query I rowsort
SELECT - col0 + + 63 FROM tab1 AS cor0
----
-1
-17
60

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

query I rowsort
SELECT DISTINCT - - 23 + - cor0.col1 AS col0 FROM tab0, tab1, tab2 cor0
----
-36
-8
6

query I rowsort
SELECT + col2 + col2 * - 46 FROM tab2 cor0
----
-1170
-1215
-1710

query I rowsort
SELECT DISTINCT + col2 * ( 60 ) * + col1 FROM tab1 AS cor0
----
34200
74880
84240

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7572
SELECT ALL - col1 + CAST( 92 AS SIGNED ) * col0 AS col2 FROM tab0 AS cor0
----
2122
3123
8097

skipif mysql # not compatible
query I rowsort label-7572
SELECT ALL - col1 + CAST ( 92 AS INTEGER ) * col0 AS col2 FROM tab0 AS cor0
----
2122
3123
8097

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

query I rowsort
SELECT ALL - col1 + - 5 AS col1 FROM tab0 AS cor0
----
-102
-91
-96

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-7576
SELECT DISTINCT col2 DIV col1 + tab2.col1 + - col0 col2 FROM tab2
----
-19
-60
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7576
SELECT DISTINCT col2 / col1 + tab2.col1 + - col0 col2 FROM tab2
----
-19
-60
24

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

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

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

query I rowsort
SELECT DISTINCT - 95 * cor0.col0 AS col0 FROM tab2, tab0 cor0
----
-2280
-3325
-8455

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

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

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

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

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

query I rowsort
SELECT DISTINCT col2 * 55 + 20 - + col1 FROM tab0 AS cor0
----
-22
1749
4439

onlyif mysql # use DIV operator for integer division
query I rowsort label-7585
SELECT DISTINCT + ( 92 ) DIV - col1 FROM tab0 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-7585
SELECT DISTINCT + ( 92 ) / - col1 FROM tab0 AS cor0
----
-1
0

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7588
SELECT ALL CAST( NULL AS SIGNED ) * 24 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-7588
SELECT ALL CAST ( NULL AS INTEGER ) * 24 col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 5 * - 88 FROM tab1 AS cor0
----
-440
-440
-440

query I rowsort
SELECT DISTINCT ( col1 ) * col0 * + 7 + + col2 * col1 * col0 AS col2 FROM tab2 AS cor0
----
151866
60435
7378

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-7594
SELECT ALL col0 DIV col0 + - col2 * col0 AS col1 FROM tab1
----
-161
-3647
-7679

skipif mysql # not compatible
query I rowsort label-7594
SELECT ALL col0 / col0 + - col2 * col0 AS col1 FROM tab1
----
-161
-3647
-7679

query I rowsort
SELECT col2 + - ( 62 + col2 ) FROM tab2
----
-62
-62
-62

onlyif mysql # use DIV operator for integer division
query I rowsort label-7596
SELECT - col2 DIV - col0 + col2 col0 FROM tab0
----
1
34
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7596
SELECT - col2 / - col0 + col2 col0 FROM tab0
----
1
34
82

query I rowsort
SELECT DISTINCT 21 * + col0 + + col2 AS col0 FROM tab0 cor0
----
1951
537
736

query I rowsort
SELECT ALL + 21 + col1 * col2 - + 26 FROM tab1 AS cor0
----
1243
1399
565

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

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

query I rowsort
SELECT ALL - 99 + col0 * + col0 AS col0 FROM tab2 AS cor0
----
-50
5985
6142

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 3 - + col1 col0 FROM tab1 AS cor0
----
-13
-16
-29

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

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

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

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

query I rowsort
SELECT ALL col0 * 23 FROM tab0
----
2047
552
805

query I rowsort
SELECT 29 AS col1 FROM tab1, tab1 cor0
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2

query I rowsort
SELECT DISTINCT 78 * 30 * - col1 FROM tab0
----
-201240
-212940
-226980

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

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

query I rowsort
SELECT - + 44 - + col0 FROM tab0 AS cor0
----
-133
-68
-79

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

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

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

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

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

query I rowsort
SELECT + col0 * + col1 + col1 * col0 FROM tab0 AS cor0
----
16198
4128
6790

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - col0 * - 57 col0 FROM tab2 AS cor0
----
426
4472
4541

query I rowsort
SELECT ALL + col2 * 6 * cor0.col1 FROM tab0 AS cor0
----
17028
44772
582

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

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

query I rowsort
SELECT - col0 * + 56 + ( - col2 ) + - col2 * + ( col1 ) FROM tab1 AS cor0
----
-1626
-4211
-5824

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

query I rowsort
SELECT + col2 * - 56 * + ( - cor0.col0 ) AS col2 FROM tab2 AS cor0
----
10584
113568
168112

query I rowsort
SELECT - - col1 * + col1 - cor0.col2 FROM tab0 AS cor0
----
7363
8199
9408

query I rowsort
SELECT + cor0.col0 - + 66 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to aeec9435c2db7ee048192c8c22bb1f2f

query I rowsort
SELECT DISTINCT - 38 + - col0 AS col1 FROM tab0 cor0
----
-127
-62
-73

query I rowsort
SELECT ALL - 39 * + ( col0 ) FROM tab0 AS cor0
----
-1365
-3471
-936

query I rowsort
SELECT DISTINCT 47 * col1 + col1 AS col1 FROM tab2 cor0
----
1488
2832
816

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

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

query I rowsort
SELECT ALL + 41 + col1 * col0 FROM tab1 AS cor0
----
1081
119
681

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

query I rowsort
SELECT DISTINCT - + col2 * col0 * col2 + + col2 * col0 FROM tab0 cor0
----
-25344
-591138
0

query I rowsort
SELECT 11 + - 3 AS col0 FROM tab0 AS cor0
----
8
8
8

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-7634
SELECT ALL + col1 DIV - col1 + col1 AS col2 FROM tab0 AS cor0
----
85
90
96

skipif mysql # not compatible
query I rowsort label-7634
SELECT ALL + col1 / - col1 + col1 AS col2 FROM tab0 AS cor0
----
85
90
96

query I rowsort
SELECT 45 * col2 FROM tab1 cor0
----
2430
2565
4320

onlyif mysql # use DIV operator for integer division
query I rowsort label-7636
SELECT ALL + 37 DIV col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7636
SELECT ALL + 37 / col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7637
SELECT + - CAST( NULL AS SIGNED ) + + 35 FROM tab1, tab0 cor0, tab2 AS cor1, tab0, tab0 AS cor2
----
243 values hashing to 76933ee8cce600e48802fbdea2376d45

skipif mysql # not compatible
query I rowsort label-7637
SELECT + - CAST ( NULL AS INTEGER ) + + 35 FROM tab1, tab0 cor0, tab2 AS cor1, tab0, tab0 AS cor2
----
243 values hashing to 76933ee8cce600e48802fbdea2376d45

query I rowsort
SELECT + + col1 + - col0 * - col0 * 47 AS col2 FROM tab2 cor0
----
2334
286007
293344

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + + col1 * - 65 col2 FROM tab1 AS cor0
----
-1744
-707
-941

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

skipif mysql # not compatible
query I rowsort label-7640
SELECT DISTINCT col2 * - col1 + CAST ( col1 AS INTEGER ) + - cor0.col0 AS col1 FROM tab2 AS cor0
----
-1553
-708
-813

query I rowsort
SELECT DISTINCT - col0 FROM tab1 WHERE ( col0 ) <> col0
----

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

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

query I rowsort
SELECT + col0 FROM tab0 WHERE NOT col0 <= NULL
----

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

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

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

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

query III rowsort
SELECT * FROM tab0 WHERE col2 < ( col2 * col2 )
----
24
86
33
89
91
82

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

skipif mysql # not compatible
query I rowsort label-7650
SELECT ALL col0 / + col0 + + col0 AS col2 FROM tab0
----
25
36
90

query I rowsort
SELECT ALL col1 * col2 * col2 + col2 AS col0 FROM tab1
----
119904
32547
75870

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 + col2 > - col2
----
78
59
26

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

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

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

skipif mysql # not compatible
query I rowsort label-7654
SELECT + col1 * col0 + + CAST ( col0 AS INTEGER ) FROM tab0 AS cor0
----
2088
3430
8188

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

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

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

query I rowsort
SELECT + col1 * + col0 AS col1 FROM tab2 WHERE NOT NULL < NULL
----

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

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

query I rowsort
SELECT col1 * + col2 + tab0.col2 + col1 FROM tab0 WHERE col2 NOT IN ( - col1 + + col1 )
----
195
2957
7635

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

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

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

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

skipif mysql # not compatible
query I rowsort label-7664
SELECT DISTINCT col2 / + col0 + + col1 / - col1 FROM tab1
----
-1
0
17

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-7666
SELECT ALL + col0 + col1 DIV - col2 AS col2 FROM tab0
----
-62
22
88

skipif mysql # not compatible
query I rowsort label-7666
SELECT ALL + col0 + col1 / - col2 AS col2 FROM tab0
----
-62
22
88

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 > NULL
----

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

query I rowsort
SELECT - 21 + col1 FROM tab2 cor0
----
-4
10
38

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

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

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

skipif mysql # not compatible
query I rowsort label-7672
SELECT + ( tab0.col2 ) / col2 - CAST ( NULL AS REAL ) * + col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + 41 + + tab2.col1 AS col0 FROM tab2
----
100
58
72

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

query I rowsort
SELECT + cor1.col1 * 81 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 5fb8c1b88e9844595941410d2bfa66de

onlyif mysql # use DIV operator for integer division
query I rowsort label-7676
SELECT + col1 * cor0.col1 DIV + col1 AS col0 FROM tab1 AS cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-7676
SELECT + col1 * cor0.col1 / + col1 AS col0 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT ALL - - col1 * + col2 + 16 FROM tab0 AS cor0
----
113
2854
7478

query I rowsort
SELECT + 90 * col2 + - col2 AS col2 FROM tab0 AS cor0
----
2937
7298
89

query I rowsort
SELECT cor0.col2 + + col0 + + col0 FROM tab0 AS cor0
----
260
71
81

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

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

query I rowsort
SELECT ALL col1 - - 72 * col2 * + col1 FROM tab2
----
110507
46529
60295

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

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

query I rowsort
SELECT ALL + col0 + 93 FROM tab0
----
117
128
182

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

query I rowsort
SELECT ALL + 48 - + 59 AS col2 FROM tab0
----
-11
-11
-11

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

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

query I rowsort
SELECT ALL 54 + + col1 AS col2 FROM tab0 AS cor0
----
140
145
151

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + - col0 * 99 col2 FROM tab1 AS cor0
----
-294
-6272
-7840

query I rowsort
SELECT DISTINCT 44 * col2 + - 75 + col1 AS col1 FROM tab2 AS cor0
----
1128
1144
1614

query I rowsort
SELECT cor0.col0 + + col2 * + cor0.col2 + + col1 AS col0 FROM tab0 AS cor0
----
1199
133
6904

query I rowsort
SELECT - - col1 * col0 + - col0 - - cor0.col1 AS col1 FROM tab1 cor0
----
101
586
973

query I rowsort
SELECT DISTINCT - ( + col1 ) * 32 AS col2 FROM tab1 AS cor0
----
-320
-416
-832

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 88 + - col1 col0 FROM tab0 AS cor0
----
-174
-179
-185

query I rowsort
SELECT - - 78 + col0 AS col1 FROM tab2 AS cor0
----
156
157
85

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

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

skipif mysql # not compatible
query I rowsort label-7700
SELECT col1 / + tab1.col1 AS col1 FROM tab1
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 69 * + col0 + col2 * col1 col2 FROM tab2 cor0
----
-3848
-4805
354

query I rowsort
SELECT ALL - 17 * tab0.col1 AS col1 FROM tab0
----
-1462
-1547
-1649

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

query I rowsort
SELECT ALL + col0 + ( 83 ) AS col2 FROM tab1 AS cor0
----
147
163
86

query I rowsort
SELECT DISTINCT - col1 * - col2 + + 34 AS col0 FROM tab2 AS cor0
----
1568
680
871

query I rowsort
SELECT ALL + col2 * ( + 6 ) FROM tab1 AS cor0
----
324
342
576

query I rowsort
SELECT DISTINCT - 15 FROM tab0, tab2 AS cor0, tab1 AS cor1, tab1 AS cor2
----
-15

query I rowsort
SELECT ALL - ( - col2 ) * col1 * - 77 + 76 * - col2 FROM tab2 AS cor0
----
-120094
-52630
-66501

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

query I rowsort
SELECT ALL + cor1.col2 * + cor0.col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 819103d3cf87b5ea7ab7d6e1018478a0

query I rowsort
SELECT DISTINCT + 74 * col1 FROM tab2 AS cor0
----
1258
2294
4366

query I rowsort
SELECT DISTINCT - 86 * col2 - cor0.col2 * - col0 AS col2 FROM tab0 AS cor0
----
-2046
-51
246

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

query I rowsort
SELECT DISTINCT - 51 * col2 + cor0.col0 + + col1 * - col0 FROM tab1 AS cor0
----
-2829
-3483
-5856

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

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

query I rowsort
SELECT ALL + ( 89 ) * + cor0.col2 - + cor0.col0 FROM tab1 AS cor0
----
4803
5009
8464

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

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

query I rowsort
SELECT + tab1.col1 + 68 * + col0 FROM tab1
----
230
4362
5453

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7722
SELECT ALL - CAST ( - col2 AS INTEGER ) * col0 col2 FROM tab1 cor0
----
162
3648
7680

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

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

query I rowsort
SELECT DISTINCT - col0 + col0 + - col1 AS col0 FROM tab0
----
-86
-91
-97

query I rowsort
SELECT DISTINCT - 39 * col0 AS col2 FROM tab2
----
-273
-3042
-3081

query I rowsort
SELECT DISTINCT + 77 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
77

query I rowsort
SELECT - 70 * + col0 FROM tab0
----
-1680
-2450
-6230

query I rowsort
SELECT ALL + 64 * - col2 + col2 FROM tab0
----
-2079
-5166
-63

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

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

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

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

query I rowsort
SELECT DISTINCT + - col1 + 41 AS col2 FROM tab2 AS cor0
----
-18
10
24

query I rowsort
SELECT ALL + col2 + ( 63 ) * col1 * col2 FROM tab1 AS cor0
----
35967
78720
88506

onlyif mysql # use DIV operator for integer division
query I rowsort label-7734
SELECT col0 DIV - 52 + - ( - col2 ) AS col1 FROM tab2
----
25
27
37

skipif mysql # not compatible
query I rowsort label-7734
SELECT col0 / - 52 + - ( - col2 ) AS col1 FROM tab2
----
25
27
37

query I rowsort
SELECT DISTINCT + col1 + - 34 * + 46 FROM tab0 AS cor0
----
-1467
-1473
-1478

query I rowsort
SELECT col0 * - ( col0 ) + - col2 AS col1 FROM tab2 AS cor0
----
-6110
-6279
-76

query I rowsort
SELECT ALL - 57 AS col2 FROM tab2, tab0 cor0, tab0 AS cor1
----
27 values hashing to 0b74bbd7631afe9b2eeb9f18b9dc6505

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

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

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

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

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

query I rowsort
SELECT DISTINCT - 18 * + cor1.col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-1548
-1638
-1746

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-7746
SELECT DISTINCT - ( 42 ) DIV col1 - col2 AS col1 FROM tab2 AS cor0
----
-26
-28
-40

skipif mysql # not compatible
query I rowsort label-7746
SELECT DISTINCT - ( 42 ) / col1 - col2 AS col1 FROM tab2 AS cor0
----
-26
-28
-40

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

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

query I rowsort
SELECT ALL col1 + - ( 6 ) FROM tab1
----
20
4
7

query I rowsort
SELECT - tab0.col2 * 66 AS col1 FROM tab0
----
-2178
-5412
-66

query I rowsort
SELECT 34 * col0 AS col2 FROM tab1 AS cor0
----
102
2176
2720

query I rowsort
SELECT col0 * + col0 + - col0 AS col1 FROM tab0
----
1190
552
7832

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * 23 col2 FROM tab0 AS cor0
----
2047
552
805

query I rowsort
SELECT + 17 + col2 * col2 FROM tab2 AS cor0
----
1461
693
746

query I rowsort
SELECT + 78 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4

query IIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0, tab1 AS cor0 WHERE ( NULL ) <> ( NULL )
----

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

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

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

skipif mysql # not compatible
query I rowsort label-7759
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col0 FROM tab0, tab1 cor0 CROSS JOIN tab2
----
NULL

query I rowsort
SELECT ALL + 3 + - col2 FROM tab1
----
-51
-54
-93

query I rowsort
SELECT 50 AS col0 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 314aace40e704c20a6be06204a329f80

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

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

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

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

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

query I rowsort
SELECT ALL 11 FROM tab1, tab0 AS cor0
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00

query I rowsort
SELECT - 24 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 797d0f7c145f8ac623924448c714bbcc

query I rowsort
SELECT ALL - col2 * 89 AS col0 FROM tab2
----
-2314
-2403
-3382

onlyif mysql # use DIV operator for integer division
query I rowsort label-7768
SELECT tab1.col2 DIV ( col0 ) col0 FROM tab1
----
0
1
18

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7768
SELECT tab1.col2 / ( col0 ) col0 FROM tab1
----
0
1
18

query I rowsort
SELECT DISTINCT + tab0.col1 * 92 * + col1 FROM tab0
----
680432
761852
865628

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

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

query I rowsort
SELECT - cor0.col0 * col2 + - cor0.col2 + - 36 FROM tab1 AS cor0
----
-252
-3741
-7812

query I rowsort
SELECT + col0 * + 65 + - col1 FROM tab2 AS cor0
----
424
5011
5118

query I rowsort
SELECT 49 + col0 AS col2 FROM tab1 AS cor0
----
113
129
52

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

query I rowsort
SELECT + col2 + col1 + + col1 * - cor0.col0 * - 3 FROM tab1 cor0
----
1987
314
3229

query I rowsort
SELECT - - 13 * + 20 AS col1 FROM tab1 cor0
----
260
260
260

query I rowsort
SELECT - col2 * 5 * col0 FROM tab1 AS cor0
----
-18240
-38400
-810

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col1 + - cor0.col2 col1 FROM tab2 cor0
----
-21
33
4

query I rowsort
SELECT ALL + + cor0.col1 * 85 AS col0 FROM tab0 AS cor0
----
7310
7735
8245

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

query I rowsort
SELECT ALL + 76 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 7b2b08dd3f1adef028d3f40ef7c716da

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 * + 22 col1 FROM tab2 AS cor0
----
154
1716
1738

query I rowsort
SELECT - - col0 + 36 * cor0.col0 FROM tab2 AS cor0
----
259
2886
2923

query I rowsort
SELECT ALL col1 + - 8 AS col2 FROM tab1 AS cor0
----
18
2
5

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

skipif mysql # not compatible
query I rowsort label-7786
SELECT DISTINCT - + col1 * - col1 / col1 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT DISTINCT - tab0.col1 + 7 + col2 FROM tab0
----
-2
-46
-89

query I rowsort
SELECT 40 + - col1 AS col1 FROM tab2
----
-19
23
9

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col1 col2 FROM tab2, tab1 cor0
----
-10
-13
-26

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col1 + - 0 col0 FROM tab1
----
10
13
26

query I rowsort
SELECT col1 * col2 * col2 + col1 * col1 + col1 FROM tab2 AS cor0
----
23591
24854
43424

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

query I rowsort
SELECT DISTINCT 27 + col1 FROM tab2 cor0
----
44
58
86

query I rowsort
SELECT col2 * - cor0.col0 * 78 FROM tab2 AS cor0
----
-14742
-158184
-234156

query I rowsort
SELECT 69 * col2 * - cor0.col1 FROM tab2 cor0
----
-105846
-44574
-57753

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-7801
SELECT ALL + tab1.col0 DIV + col0 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7801
SELECT ALL + tab1.col0 / + col0 FROM tab1
----
1
1
1

query I rowsort
SELECT ALL - cor0.col2 + - col2 * - ( + 24 ) FROM tab1 AS cor0
----
1242
1311
2208

onlyif mysql # use DIV operator for integer division
query I rowsort label-7803
SELECT - 73 DIV - col0 FROM tab2 AS cor0
----
0
0
10

skipif mysql # not compatible
query I rowsort label-7803
SELECT - 73 / - col0 FROM tab2 AS cor0
----
0
0
10

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

query I rowsort
SELECT 34 * col1 AS col2 FROM tab0 AS cor0
----
2924
3094
3298

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

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

query I rowsort
SELECT DISTINCT col0 * - col0 * 13 + - col1 FROM tab0 AS cor0
----
-103064
-16022
-7574

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

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

query I rowsort
SELECT ALL col2 + 41 * - col1 + col1 AS col2 FROM tab1 AS cor0
----
-343
-424
-986

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7813
SELECT - ( col1 ) + - CAST( + col2 AS SIGNED ) AS col0 FROM tab0
----
-119
-173
-98

skipif mysql # not compatible
query I rowsort label-7813
SELECT - ( col1 ) + - CAST ( + col2 AS INTEGER ) AS col0 FROM tab0
----
-119
-173
-98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7814
SELECT - CAST( + col2 AS SIGNED ) + + cor0.col0 * ( - 96 * + col0 ) AS col2 FROM tab2 AS cor0
----
-4731
-584090
-599174

skipif mysql # not compatible
query I rowsort label-7814
SELECT - CAST ( + col2 AS INTEGER ) + + cor0.col0 * ( - 96 * + col0 ) AS col2 FROM tab2 AS cor0
----
-4731
-584090
-599174

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

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

skipif mysql # not compatible
query I rowsort label-7816
SELECT DISTINCT - + ( - col2 ) / + cor0.col1 AS col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT 56 * col2 + + col2 AS col0 FROM tab1 AS cor0
----
3078
3249
5472

query I rowsort
SELECT DISTINCT + 6 * + col1 AS col1 FROM tab0 AS cor0
----
516
546
582

query I rowsort
SELECT ALL + 10 * + 60 AS col2 FROM tab2 AS cor0
----
600
600
600

query I rowsort
SELECT DISTINCT - 12 * - col0 + + col0 FROM tab1 AS cor0
----
1040
39
832

query I rowsort
SELECT 93 + + ( cor0.col0 ) AS col1 FROM tab0 AS cor0
----
117
128
182

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

skipif mysql # not compatible
query I rowsort label-7822
SELECT ALL - - ( col0 ) / + col0 AS col0 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT ALL tab0.col1 - 7 * - col2 AS col0 FROM tab0
----
104
317
665

onlyif mysql # use DIV operator for integer division
query I rowsort label-7824
SELECT col2 * - col0 - col0 * col1 DIV cor0.col0 AS col1 FROM tab0 AS cor0
----
-132
-7389
-878

skipif mysql # not compatible
query I rowsort label-7824
SELECT col2 * - col0 - col0 * col1 / cor0.col0 AS col1 FROM tab0 AS cor0
----
-132
-7389
-878

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

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

query I rowsort
SELECT DISTINCT 56 * + ( cor0.col1 ) - 59 * - col0 FROM tab2 cor0
----
2149
5613
7906

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-7828
SELECT + + col0 DIV + 2 + col0 AS col0 FROM tab2 AS cor0
----
10
117
118

skipif mysql # not compatible
query I rowsort label-7828
SELECT + + col0 / + 2 + col0 AS col0 FROM tab2 AS cor0
----
10
117
118

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

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

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

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

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

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

query I rowsort
SELECT col2 - 36 * col2 FROM tab0
----
-1155
-2870
-35

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7833
SELECT DISTINCT CAST ( - ( col0 ) AS INTEGER ) * tab2.col1 + - 33 + col0 col0 FROM tab2
----
-1297
-243
-4557

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

query I rowsort
SELECT DISTINCT - ( cor0.col0 ) * col0 * + 38 + + cor0.col1 FROM tab1 cor0
----
-155638
-243187
-316

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 89 + ( col1 ) col2 FROM tab0 cor0
----
-3
2
8

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

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

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

query I rowsort
SELECT DISTINCT col2 * + 46 * - 2 AS col2 FROM tab1
----
-4968
-5244
-8832

query I rowsort
SELECT col1 + + ( col1 ) + col1 FROM tab2 AS cor0
----
177
51
93

query I rowsort
SELECT + col0 + ( + col1 ) FROM tab1
----
29
74
93

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

query I rowsort
SELECT - 88 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 467301f887614eb7beda22c561b0fad2

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

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT col1 + + col1 * 26 AS col2 FROM tab1 AS cor0
----
270
351
702

query I rowsort
SELECT - 75 * + col2 - + col1 AS col2 FROM tab0 AS cor0
----
-172
-2561
-6241

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-7854
SELECT col2 * + col1 + - col0 DIV col2 + - col1 AS col1 FROM tab1 AS cor0
----
1235
1378
559

skipif mysql # not compatible
query I rowsort label-7854
SELECT col2 * + col1 + - col0 / col2 + - col1 AS col1 FROM tab1 AS cor0
----
1235
1378
559

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-7856
SELECT DISTINCT 15 DIV col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7856
SELECT DISTINCT 15 / col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT - - 89 * col1 + col0 FROM tab2 AS cor0
----
1592
2766
5329

query I rowsort
SELECT ALL + 10 + col0 AS col2 FROM tab2 cor0
----
17
88
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-7859
SELECT + + 11 DIV col0 + 4 * - 8 FROM tab1 AS cor0
----
-29
-32
-32

skipif mysql # not compatible
query I rowsort label-7859
SELECT + + 11 / col0 + 4 * - 8 FROM tab1 AS cor0
----
-29
-32
-32

query I rowsort
SELECT - cor0.col2 + - 86 + + col0 FROM tab2 AS cor0
----
-106
-34
-45

onlyif mysql # use DIV operator for integer division
query I rowsort label-7861
SELECT + - cor0.col0 * - 56 * - cor0.col2 - col2 DIV - col1 FROM tab1 AS cor0
----
-204283
-430073
-9070

skipif mysql # not compatible
query I rowsort label-7861
SELECT + - cor0.col0 * - 56 * - cor0.col2 - col2 / - col1 FROM tab1 AS cor0
----
-204283
-430073
-9070

query I rowsort
SELECT + cor0.col2 + 10 + + col1 AS col0 FROM tab2 AS cor0
----
65
68
95

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-7864
SELECT - - col0 * col2 - col0 * - cor0.col1 DIV + col1 AS col2 FROM tab0 AS cor0
----
70
7387
816

skipif mysql # not compatible
query I rowsort label-7864
SELECT - - col0 * col2 - col0 * - cor0.col1 / + col1 AS col2 FROM tab0 AS cor0
----
70
7387
816

query I rowsort
SELECT col0 + + ( + tab1.col1 ) * + col0 + - col2 AS col1 FROM tab1
----
1024
27
647

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

query I rowsort
SELECT + + col1 * - 14 AS col2 FROM tab0 cor0
----
-1204
-1274
-1358

onlyif mysql # use DIV operator for integer division
query I rowsort label-7868
SELECT DISTINCT + cor0.col1 DIV ( - col2 * col1 ) + col1 AS col1 FROM tab1 AS cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-7868
SELECT DISTINCT + cor0.col1 / ( - col2 * col1 ) + col1 AS col1 FROM tab1 AS cor0
----
10
13
26

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-7870
SELECT ALL + - col1 + ( col2 ) + + col1 DIV col1 AS col0 FROM tab0 AS cor0
----
-52
-8
-95

skipif mysql # not compatible
query I rowsort label-7870
SELECT ALL + - col1 + ( col2 ) + + col1 / col1 AS col0 FROM tab0 AS cor0
----
-52
-8
-95

query I rowsort
SELECT col0 * 96 + - 39 AS col1 FROM tab1 AS cor0
----
249
6105
7641

onlyif mysql # use DIV operator for integer division
query I rowsort label-7872
SELECT ALL - col2 DIV + 60 + + col0 + col1 FROM tab1 AS cor0
----
29
74
92

skipif mysql # not compatible
query I rowsort label-7872
SELECT ALL - col2 / + 60 + + col0 + col1 FROM tab1 AS cor0
----
29
74
92

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

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

query I rowsort
SELECT + - col2 * 40 + ( col1 ) FROM tab1 AS cor0
----
-2134
-2270
-3827

query I rowsort
SELECT ALL - col2 * - ( col2 * - col1 ) - cor0.col1 FROM tab1 AS cor0
----
-119821
-32500
-75842

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-7877
SELECT + ( col1 ) + cor0.col1 DIV + 77 AS col0 FROM tab1 AS cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-7877
SELECT + ( col1 ) + cor0.col1 / + 77 AS col0 FROM tab1 AS cor0
----
10
13
26

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

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

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

query I rowsort
SELECT DISTINCT + + 5 * - col1 AS col2 FROM tab2 AS cor0
----
-155
-295
-85

query I rowsort
SELECT 42 FROM tab0, tab2 AS cor0, tab2 cor1, tab2 AS cor2
----
81 values hashing to 4d49d5ffe533e92cf06d98cb59a19b10

query I rowsort
SELECT DISTINCT - - 96 - col1 FROM tab0 AS cor0
----
-1
10
5

query I rowsort
SELECT 87 AS col1 FROM tab1, tab1 AS cor0, tab2 AS cor1, tab0, tab2 AS cor2
----
243 values hashing to 8bc10da748e01dcb4f9c3610cdff39b0

query I rowsort
SELECT DISTINCT + col1 * + col1 + + col0 FROM tab2 AS cor0
----
3559
368
968

query I rowsort
SELECT + 51 + + col1 FROM tab0
----
137
142
148

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

skipif mysql # not compatible
query I rowsort label-7886
SELECT + tab1.col1 / + col1 AS col1 FROM tab1
----
1
1
1

query I rowsort
SELECT col0 * col2 * 85 FROM tab0
----
2975
620330
67320

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

query I rowsort
SELECT + 63 + cor0.col0 FROM tab1, tab2, tab2 cor0
----
27 values hashing to eb138bbc5115aeab4f3271c776315bc7

query I rowsort
SELECT 91 - col1 FROM tab1
----
65
78
81

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

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

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

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

query I rowsort
SELECT + col2 * 77 + - col0 FROM tab2
----
1924
2072
2847

query I rowsort
SELECT col1 * tab0.col0 + col2 * col2 FROM tab0
----
14823
3153
3396

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

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

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

query I rowsort
SELECT DISTINCT + cor0.col1 + cor0.col2 FROM tab1, tab1 cor0
----
109
67
80

query I rowsort
SELECT + 38 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to a7827a79248ee7bf2cee915a631d02cb

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

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

query I rowsort
SELECT - col2 * - ( col2 ) * col2 + col0 AS col2 FROM tab1 AS cor0
----
157467
185257
884816

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

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

query I rowsort
SELECT ALL col0 * + col1 + col2 + + col0 AS col1 FROM tab2 AS cor0
----
1460
251
4706

query I rowsort
SELECT ALL - ( col2 ) * ( ( - col2 ) ) - col1 FROM tab1
----
2890
3239
9203

query I rowsort
SELECT 60 - col0 FROM tab2 AS cor0
----
-18
-19
53

onlyif mysql # use DIV operator for integer division
query I rowsort label-7910
SELECT DISTINCT - 18 DIV - tab0.col2 - ( + col1 ) FROM tab0
----
-79
-86
-91

skipif mysql # not compatible
query I rowsort label-7910
SELECT DISTINCT - 18 / - tab0.col2 - ( + col1 ) FROM tab0
----
-79
-86
-91

query I rowsort
SELECT 39 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to ed2ebd9def3e2c38aa46cb3af60fe229

query I rowsort
SELECT - 51 * + tab0.col0 * tab0.col1 FROM tab0
----
-105264
-173145
-413049

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

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

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

query I rowsort
SELECT + + col2 * col2 + 80 * col0 FROM tab2 AS cor0
----
1289
6916
7764

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

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

query I rowsort
SELECT ALL + - col1 + ( col1 ) AS col1 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 AS cor0
----
1225
576
7921

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-7921
SELECT DISTINCT - col2 DIV - tab1.col0 + + col1 + - col0 FROM tab1
----
-54
-66
41

skipif mysql # not compatible
query I rowsort label-7921
SELECT DISTINCT - col2 / - tab1.col0 + + col1 + - col0 FROM tab1
----
-54
-66
41

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

query I rowsort
SELECT ALL + col1 * + col0 + + col0 + col1 AS col2 FROM tab2
----
1439
255
4739

query I rowsort
SELECT DISTINCT tab2.col0 * - col1 * - col2 + col0 FROM tab2
----
119730
51113
5866

query I rowsort
SELECT + col2 * + col2 * + tab1.col2 AS col1 FROM tab1
----
157464
185193
884736

query I rowsort
SELECT col1 + + col2 + + col1 FROM tab2
----
144
72
89

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-7928
SELECT - col1 + + tab0.col0 + col0 DIV - col1 FROM tab0
----
-2
-62
-62

skipif mysql # not compatible
query I rowsort label-7928
SELECT - col1 + + tab0.col0 + col0 / - col1 FROM tab0
----
-2
-62
-62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 + - cor0.col0 col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 5b9ded363f55d1d4bbc85491d2b84046

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

skipif mysql # not compatible
query I rowsort label-7930
SELECT ALL + col1 + - col2 / cor0.col1 AS col2 FROM tab1 AS cor0
----
24
5
6

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

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <= ( NULL ) AND ( + col2 + - col2 ) NOT BETWEEN col0 + - col1 * + col0 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * col0 * + col1 col2 FROM tab1
----
13520
2028
6400

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

query I rowsort
SELECT - + col0 * + col1 + col2 * col0 AS col2 FROM tab2 AS cor0
----
-2574
-28
1659

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

query I rowsort
SELECT cor0.col0 + - col2 * + col0 + col2 AS col0 FROM tab1 AS cor0
----
-105
-3527
-7504

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

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

query I rowsort
SELECT col2 AS col2 FROM tab2 AS cor0 WHERE NOT ( + col1 ) IN ( + col0 ) OR NULL NOT IN ( col0 )
----
26
27
38

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

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

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

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

query I rowsort
SELECT - cor0.col0 * col0 * col0 FROM tab2 AS cor0
----
-343
-474552
-493039

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

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

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-7952
SELECT DISTINCT + - cor0.col1 / col2 + - col0 FROM tab0 cor0
----
-132
-26
-90

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

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

query I rowsort
SELECT DISTINCT - 96 - + col1 AS col1 FROM tab0
----
-182
-187
-193

query I rowsort
SELECT - + 70 * col1 + - col1 FROM tab2 AS cor0
----
-1207
-2201
-4189

query I rowsort
SELECT DISTINCT 52 AS col0 FROM tab1, tab1 AS cor0
----
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-7957
SELECT 44 * cor0.col2 DIV col2 FROM tab0 AS cor0
----
44
44
44

skipif mysql # not compatible
query I rowsort label-7957
SELECT 44 * cor0.col2 / col2 FROM tab0 AS cor0
----
44
44
44

query I rowsort
SELECT DISTINCT tab1.col1 * - 23 AS col2 FROM tab1
----
-230
-299
-598

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

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

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

skipif mysql # not compatible
query I rowsort label-7961
SELECT - col0 / + col0 AS col1 FROM tab1
----
-1
-1
-1

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

query I rowsort
SELECT ALL - ( + col1 ) * ( + col1 ) + - col1 * ( 31 ) + col1 AS col2 FROM tab0 AS cor0
----
-11011
-12319
-9976

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-7965
SELECT ALL + cor0.col1 DIV 80 FROM tab0, tab0 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

skipif mysql # not compatible
query I rowsort label-7965
SELECT ALL + cor0.col1 / 80 FROM tab0, tab0 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

onlyif mysql # use DIV operator for integer division
query I rowsort label-7966
SELECT tab1.col0 DIV - tab1.col2 + 5 FROM tab1
----
4
5
5

skipif mysql # not compatible
query I rowsort label-7966
SELECT tab1.col0 / - tab1.col2 + 5 FROM tab1
----
4
5
5

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

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

query I rowsort
SELECT DISTINCT + col2 + ( cor0.col0 * col1 ) + col1 AS col1 FROM tab2 AS cor0
----
1398
275
4687

onlyif mysql # use DIV operator for integer division
query I rowsort label-7969
SELECT ALL col0 * col1 DIV + ( cor0.col2 ) + col1 col1 FROM tab1 AS cor0
----
21
23
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7969
SELECT ALL col0 * col1 / + ( cor0.col2 ) + col1 col1 FROM tab1 AS cor0
----
21
23
27

onlyif mysql # use DIV operator for integer division
query I rowsort label-7970
SELECT cor0.col2 * col1 DIV - 49 FROM tab2 AS cor0
----
-13
-17
-31

skipif mysql # not compatible
query I rowsort label-7970
SELECT cor0.col2 * col1 / - 49 FROM tab2 AS cor0
----
-13
-17
-31

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

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

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

query I rowsort
SELECT ( - 68 ) * + cor0.col2 + cor0.col2 FROM tab2 AS cor0
----
-1742
-1809
-2546

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

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

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

query I rowsort
SELECT DISTINCT - 8 * + col1 - col2 AS col0 FROM tab1 AS cor0
----
-137
-200
-262

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-7979
SELECT + col2 + + 85 DIV col0 FROM tab2 AS cor0
----
27
39
39

skipif mysql # not compatible
query I rowsort label-7979
SELECT + col2 + + 85 / col0 FROM tab2 AS cor0
----
27
39
39

query I rowsort
SELECT - 50 + col2 AS col0 FROM tab1 AS cor0
----
4
46
7

query I rowsort
SELECT + 7 * col1 + - cor0.col1 FROM tab0 AS cor0
----
516
546
582

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 69 * + col0 col2 FROM tab0 AS cor0
----
1656
2415
6141

query I rowsort
SELECT + 81 * + cor0.col2 + col0 AS col0 FROM tab1 cor0
----
4377
4681
7856

onlyif mysql # use DIV operator for integer division
query I rowsort label-7984
SELECT - col1 DIV col1 - 78 FROM tab1 cor0
----
-79
-79
-79

skipif mysql # not compatible
query I rowsort label-7984
SELECT - col1 / col1 - 78 FROM tab1 cor0
----
-79
-79
-79

query I rowsort
SELECT col1 * - cor0.col1 * - ( - 17 ) - + col0 FROM tab1 cor0
----
-11495
-1764
-2953

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 50 * - col2 * - col0 + 24 col1 FROM tab1 AS cor0
----
-182376
-383976
-8076

query I rowsort
SELECT DISTINCT 90 * + tab1.col1 AS col1 FROM tab1, tab1 AS cor0
----
1170
2340
900

query I rowsort
SELECT ALL - ( 32 ) AS col0 FROM tab0
----
-32
-32
-32

query I rowsort
SELECT ALL 1 + cor0.col2 * ( - col2 ) * + col1 FROM tab0 AS cor0
----
-611883
-93653
-96

query I rowsort
SELECT - tab1.col0 FROM tab0, tab1 AS cor0 CROSS JOIN tab1
----
27 values hashing to 729c1edda9332398299f39cd174ed840

query I rowsort
SELECT DISTINCT - 36 + + col2 FROM tab1 AS cor0
----
18
21
60

query I rowsort
SELECT ALL cor0.col0 FROM tab2, tab1 cor0, tab1 AS cor1, tab2 AS cor2
----
81 values hashing to e28bf7f922650ca423ade3642ce0285b

query I rowsort
SELECT - 17 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 28cd5b4c959cb41fbc56389ab43d167e

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

query I rowsort
SELECT ALL + 22 * 14 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f7d438455fe2a011c5a1ef465d8e6894

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

query I rowsort
SELECT ALL + 78 + + cor0.col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 31d7b2c3de10d7e07cbbabc373ab380c

query I rowsort
SELECT DISTINCT 17 + - col2 + col2 * - col1 AS col0 FROM tab0 AS cor0
----
-2854
-7527
-81

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * 15 * - 35 col2 FROM tab0
----
45150
47775
50925

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

query I rowsort
SELECT + 87 FROM tab0, tab0 cor0, tab1 AS cor1
----
27 values hashing to 8661ffbd1a72897c495405c53b816e50

query I rowsort
SELECT ALL + cor0.col1 + col2 * - 39 AS col0 FROM tab2 AS cor0
----
-1022
-1465
-955

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

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

query I rowsort
SELECT ALL - col2 + 11 + - ( col0 ) FROM tab2 AS cor0
----
-106
-23
-93

query I rowsort
SELECT - col2 + 31 * cor0.col0 FROM tab0 AS cor0
----
1084
2677
711

query I rowsort
SELECT DISTINCT col2 + - 27 * col0 FROM tab2 AS cor0
----
-162
-2080
-2095

query I rowsort
SELECT ALL col2 * col0 + - 71 AS col0 FROM tab1 cor0
----
3577
7609
91

query I rowsort
SELECT + col1 + 59 * + cor0.col1 + - col2 FROM tab2 AS cor0
----
1833
3514
982

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

query I rowsort
SELECT DISTINCT - + cor0.col2 * 82 * - 89 + + cor0.col2 + - cor0.col2 AS col0 FROM tab1 cor0
----
394092
415986
700608

query I rowsort
SELECT ALL cor0.col0 + cor0.col0 * 53 AS col2 FROM tab2 AS cor0
----
378
4212
4266

query I rowsort
SELECT col1 + + ( col1 ) * col2 * - cor0.col1 + + col1 AS col2 FROM tab2 AS cor0
----
-10948
-25885
-90388

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

query I rowsort
SELECT DISTINCT - + 87 * col2 FROM tab2 AS cor0
----
-2262
-2349
-3306

query I rowsort
SELECT 79 + - ( col2 ) * - col0 * 64 FROM tab2 AS cor0
----
12175
129871
192207

query I rowsort
SELECT ALL - 91 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 745d1c3a09d935465cad552325c5c945

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8019
SELECT DISTINCT + col0 * col2 - CAST( 73 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
3575
7607
89

skipif mysql # not compatible
query I rowsort label-8019
SELECT DISTINCT + col0 * col2 - CAST ( 73 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
3575
7607
89

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

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

query I rowsort
SELECT ALL + 94 + + col1 + cor0.col1 * + col0 FROM tab2 cor0
----
1454
342
4755

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

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

query I rowsort
SELECT 81 AS col1 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 0a85639e0dddbffdab2cb16b027cb360

query I rowsort
SELECT DISTINCT - cor0.col1 * + col0 * - cor0.col0 + - col2 * - col2 AS col1 FROM tab0 AS cor0
----
118826
50625
727535

query I rowsort
SELECT DISTINCT 32 - + col1 FROM tab2
----
-27
1
15

query I rowsort
SELECT 12 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 702478c53caf2f7ebb9fff96d800f5a6

onlyif mysql # use DIV operator for integer division
query I rowsort label-8028
SELECT ALL + col2 DIV col1 + 66 - - col1 AS col1 FROM tab1
----
81
86
94

skipif mysql # not compatible
query I rowsort label-8028
SELECT ALL + col2 / col1 + 66 - - col1 AS col1 FROM tab1
----
81
86
94

query I rowsort
SELECT ALL - - col0 + - 7 * ( - col1 * col1 ) FROM tab2 AS cor0
----
2102
24445
6734

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

query I rowsort
SELECT DISTINCT cor0.col1 + - 51 + - 55 AS col1 FROM tab1 AS cor0
----
-80
-93
-96

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

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

skipif mysql # not compatible
query I rowsort label-8033
SELECT - col0 / - col1 AS col1 FROM tab1
----
0
6
6

onlyif mysql # use DIV operator for integer division
query I rowsort label-8034
SELECT DISTINCT 18 DIV col0 - 40 FROM tab1
----
-34
-40

skipif mysql # not compatible
query I rowsort label-8034
SELECT DISTINCT 18 / col0 - 40 FROM tab1
----
-34
-40

query I rowsort
SELECT ALL + 43 + col0 * + 1 AS col2 FROM tab0
----
132
67
78

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

query I rowsort
SELECT - - col2 + + col2 - - col0 AS col1 FROM tab2 AS cor0
----
130
155
61

onlyif mysql # use DIV operator for integer division
query I rowsort label-8038
SELECT col0 + tab1.col1 DIV + col0 FROM tab1
----
11
64
80

skipif mysql # not compatible
query I rowsort label-8038
SELECT col0 + tab1.col1 / + col0 FROM tab1
----
11
64
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-8039
SELECT DISTINCT 11 DIV + ( + cor0.col1 ) FROM tab2, tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8039
SELECT DISTINCT 11 / + ( + cor0.col1 ) FROM tab2, tab2 AS cor0
----
0

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

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

query I rowsort
SELECT ALL + col0 + col2 * ( col1 ) * + ( - 23 ) FROM tab1
----
-13046
-28624
-32289

query I rowsort
SELECT DISTINCT col0 + col0 - col1 * - col1 AS col0 FROM tab1 cor0
----
228
329
682

query I rowsort
SELECT DISTINCT + 58 * - cor0.col0 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
-406
-4524
-4582

query I rowsort
SELECT ALL col1 - + ( 67 * + col0 ) FROM tab0 AS cor0
----
-1522
-2248
-5872

query I rowsort
SELECT + 20 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

query I rowsort
SELECT col2 * + 26 AS col0 FROM tab1
----
1404
1482
2496

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

query I rowsort
SELECT 46 * + 8 + + col0 AS col2 FROM tab1
----
371
432
448

query I rowsort
SELECT + 57 + col1 * - tab0.col1 AS col0 FROM tab0
----
-7339
-8224
-9352

query I rowsort
SELECT - 31 + + 92 AS col0 FROM tab0
----
61
61
61

skipif mysql # not compatible
query I rowsort
SELECT + + CAST ( + ( cor0.col1 ) AS REAL ) * 61 * cor0.col0 AS col0 FROM tab2 cor0
----
13237
280722
81923

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

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

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

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

query I rowsort
SELECT DISTINCT 30 * 20 FROM tab0 cor0
----
600

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

skipif mysql # not compatible
query I rowsort label-8055
SELECT DISTINCT CAST ( + col2 AS INTEGER ) * col1 FROM tab2
----
1534
646
837

query I rowsort
SELECT DISTINCT - 73 * col0 AS col1 FROM tab1
----
-219
-4672
-5840

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col1 * + col0 * col0 col1 FROM tab1 cor0
----
-234
-40960
-83200

query I rowsort
SELECT - cor0.col0 + + col2 * - ( + 80 ) AS col0 FROM tab2 AS cor0
----
-2158
-2167
-3119

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

query I rowsort
SELECT + - 19 + + col0 * ( col2 ) FROM tab1 AS cor0
----
143
3629
7661

query I rowsort
SELECT DISTINCT ( - 63 ) AS col1 FROM tab1
----
-63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 58 col0 FROM tab0, tab0 AS cor0
----
9 values hashing to ef6e63aeed2581a168f07646d258f666

query I rowsort
SELECT - col2 * + 0 + - cor0.col2 AS col0 FROM tab2 AS cor0
----
-26
-27
-38

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

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

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

query I rowsort
SELECT + ( col2 ) + + ( + col0 ) FROM tab0 AS cor0
----
171
36
57

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

skipif mysql # not compatible
query I rowsort label-8067
SELECT + CAST ( col2 + + col0 AS INTEGER ) FROM tab1
----
121
176
57

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8068
SELECT + CAST ( + 45 AS INTEGER ) col2 FROM tab2
----
45
45
45

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

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

query I rowsort
SELECT + col0 * cor0.col2 + 25 AS col1 FROM tab1 AS cor0
----
187
3673
7705

query I rowsort
SELECT + + col2 + - 48 FROM tab1 AS cor0
----
48
6
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 62 + tab1.col1 col1 FROM tab1
----
72
75
88

query I rowsort
SELECT + 39 FROM tab2, tab2 cor0, tab0, tab0 AS cor1
----
81 values hashing to 9c9fbbb9cf0068f5900dff6ceb1046eb

query I rowsort
SELECT - cor1.col2 * 39 FROM tab1, tab0 AS cor0, tab2, tab0 AS cor1
----
81 values hashing to 4e7a6053c715b76b1c54de80fa535e73

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

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

query I rowsort
SELECT ALL + - col0 + 4 AS col1 FROM tab0 AS cor0
----
-20
-31
-85

query I rowsort
SELECT DISTINCT - - 13 AS col2 FROM tab2 AS cor0
----
13

query I rowsort
SELECT ALL 83 * + 23 FROM tab1 AS cor0
----
1909
1909
1909

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

query I rowsort
SELECT DISTINCT col1 * tab2.col1 + col0 AS col2 FROM tab2
----
3559
368
968

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

query I rowsort
SELECT DISTINCT - 1 + - 15 * col2 FROM tab0 AS cor0
----
-1231
-16
-496

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 62 * col0 col2 FROM tab2 AS cor0
----
-434
-4836
-4898

query I rowsort
SELECT ALL + cor0.col1 * + 81 FROM tab0 AS cor0
----
6966
7371
7857

query I rowsort
SELECT ALL - - 2 + - col2 * + col1 FROM tab1 AS cor0
----
-1246
-1402
-568

query I rowsort
SELECT - ( - 55 ) * col0 AS col2 FROM tab1 AS cor0
----
165
3520
4400

query I rowsort
SELECT ( - col0 ) * col1 * + 36 AS col2 FROM tab0
----
-122220
-291564
-74304

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8090
SELECT CAST ( NULL AS INTEGER ) + + 7 col1 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 94 - col2 col0 FROM tab2 AS cor0
----
56
67
68

query I rowsort
SELECT col2 + col2 + - col1 FROM tab2
----
-7
23
59

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

query I rowsort
SELECT DISTINCT col1 * tab1.col0 + - 39 - col0 AS col0 FROM tab1
----
36
537
921

query I rowsort
SELECT - col0 * col1 + 34 AS col1 FROM tab0 AS cor0
----
-2030
-3361
-8065

query I rowsort
SELECT + + col1 + cor0.col1 * + col2 + cor0.col0 FROM tab0 AS cor0
----
229
2948
7642

query I rowsort
SELECT col1 + 73 AS col0 FROM tab2 AS cor0
----
104
132
90

query I rowsort
SELECT - col1 * 31 * + col1 + - col1 + 29 AS col2 FROM tab1 AS cor0
----
-20953
-3081
-5223

query I rowsort
SELECT ALL 10 AS col0 FROM tab0
----
10
10
10

query I rowsort
SELECT - col2 + 37 AS col0 FROM tab1 AS cor0
----
-17
-20
-59

query I rowsort
SELECT - cor0.col0 * - 77 + + cor0.col1 * + col0 FROM tab0 AS cor0
----
14952
3912
6090

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

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

query I rowsort
SELECT DISTINCT - col1 + + 73 AS col0 FROM tab1
----
47
60
63

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-8105
SELECT - 25 DIV 9 + - col2 FROM tab2
----
-28
-29
-40

skipif mysql # not compatible
query I rowsort label-8105
SELECT - 25 / 9 + - col2 FROM tab2
----
-28
-29
-40

query I rowsort
SELECT DISTINCT + col1 - 55 * + col2 FROM tab1
----
-2944
-3125
-5267

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

query I rowsort
SELECT ALL - col2 * 90 FROM tab1 AS cor0
----
-4860
-5130
-8640

query I rowsort
SELECT + col2 * 40 - + col1 * col2 * - ( col2 ) FROM tab2 AS cor0
----
23679
26068
40924

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

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

query I rowsort
SELECT DISTINCT - + 83 + ( col2 + ( col1 ) * col2 ) AS col0 FROM tab2 AS cor0
----
1477
601
781

query I rowsort
SELECT ALL - 43 * - col1 * - col0 AS col1 FROM tab2 cor0
----
-197886
-57749
-9331

query I rowsort
SELECT 14 FROM tab2, tab1 cor0 CROSS JOIN tab1
----
27 values hashing to 409c1790b702540dd9dc067c1965b7c0

query I rowsort
SELECT ALL + 81 FROM tab2, tab2 cor0, tab2 AS cor1, tab1 AS cor2
----
81 values hashing to 50d500b1082f81e0b02096b2afac91cd

query I rowsort
SELECT DISTINCT + col0 * col1 + - 51 + col1 FROM tab2 AS cor0
----
1309
197
4610

query I rowsort
SELECT DISTINCT col2 - col1 * - 67 FROM tab0 AS cor0
----
5795
6179
6500

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 * + col0 * col1 + - 64 col2 FROM tab0 AS cor0
----
177440
329251
736945

query I rowsort
SELECT col2 + - col2 * + 51 + - col0 * col0 FROM tab0 AS cor0
----
-12021
-1275
-2226

query I rowsort
SELECT col2 - col0 * - ( - 5 * col1 + col0 ) AS col2 FROM tab0 AS cor0
----
-15749
-32492
-9711

query I rowsort
SELECT + - 92 * cor0.col1 AS col1 FROM tab0 AS cor0
----
-7912
-8372
-8924

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

query I rowsort
SELECT DISTINCT - 42 * cor0.col2 AS col0 FROM tab2 AS cor0
----
-1092
-1134
-1596

query I rowsort
SELECT - - 32 * - col0 * cor0.col0 AS col2 FROM tab2 AS cor0
----
-1568
-194688
-199712

query I rowsort
SELECT - - 63 * - col2 * col0 AS col1 FROM tab2 AS cor0
----
-11907
-127764
-189126

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

query I rowsort
SELECT + col1 * + 94 FROM tab1 AS cor0
----
1222
2444
940

query I rowsort
SELECT col1 * col0 + 38 AS col1 FROM tab1
----
1078
116
678

skipif mysql # not compatible
query I rowsort
SELECT tab1.col1 + CAST ( + col0 + col0 AS REAL ) * col2 AS col0 FROM tab1
----
15373
350
7306

query I rowsort
SELECT ALL col2 + - 74 * + col2 AS col2 FROM tab1 AS cor0
----
-3942
-4161
-7008

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

query I rowsort
SELECT DISTINCT - cor0.col2 * + col1 + 32 + col1 FROM tab1 AS cor0
----
-1203
-1346
-528

query I rowsort
SELECT ALL + - col1 + - col0 * 51 FROM tab1 AS cor0
----
-179
-3274
-4093

query I rowsort
SELECT 11 * - col2 FROM tab1 AS cor0
----
-1056
-594
-627

query I rowsort
SELECT ALL + 99 * - col0 AS col1 FROM tab2 AS cor0
----
-693
-7722
-7821

query I rowsort
SELECT 79 * 76 FROM tab1 AS cor0
----
6004
6004
6004

query I rowsort
SELECT - + ( + ( col2 ) ) + ( - 47 ) AS col1 FROM tab1 AS cor0
----
-101
-104
-143

query I rowsort
SELECT DISTINCT - ( + 16 ) * - col1 * 8 AS col0 FROM tab0 cor0
----
11008
11648
12416

query I rowsort
SELECT DISTINCT - - ( + col2 ) * col2 + - 67 FROM tab1 AS cor0
----
2849
3182
9149

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

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

query I rowsort
SELECT col1 * col1 * col1 + col2 FROM tab2
----
205405
29818
4951

query I rowsort
SELECT DISTINCT - 86 * cor0.col0 + col1 AS col2 FROM tab1 AS cor0
----
-232
-5494
-6867

onlyif mysql # use DIV operator for integer division
query I rowsort label-8143
SELECT ALL - cor0.col1 + col0 DIV col2 FROM tab0 AS cor0
----
-62
-86
-90

skipif mysql # not compatible
query I rowsort label-8143
SELECT ALL - cor0.col1 + col0 / col2 FROM tab0 AS cor0
----
-62
-86
-90

query I rowsort
SELECT ALL 27 AS col0 FROM tab1, tab2 AS cor0, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to 092918b9163061e291041d594b1a402a

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

skipif mysql # not compatible
query I rowsort label-8145
SELECT + - cor0.col2 + 42 / + col0 AS col2 FROM tab0 AS cor0
----
-32
-82
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-8146
SELECT col1 * + col1 DIV + col1 + 9 FROM tab1
----
19
22
35

skipif mysql # not compatible
query I rowsort label-8146
SELECT col1 * + col1 / + col1 + 9 FROM tab1
----
19
22
35

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

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

query I rowsort
SELECT 91 + 20 AS col0 FROM tab2
----
111
111
111

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8150
SELECT CAST( + 51 + + col2 AS SIGNED ) AS col2 FROM tab1
----
105
108
147

skipif mysql # not compatible
query I rowsort label-8150
SELECT CAST ( + 51 + + col2 AS INTEGER ) AS col2 FROM tab1
----
105
108
147

query I rowsort
SELECT col2 + 67 FROM tab0 AS cor0
----
100
149
68

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 + + ( + 56 ) col0 FROM tab2 AS cor0
----
-3
25
39

query I rowsort
SELECT - + col2 + - 55 AS col1 FROM tab0 AS cor0
----
-137
-56
-88

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-8157
SELECT - col1 + col0 DIV col1 + cor0.col2 * - col0 AS col0 FROM tab1 AS cor0
----
-188
-3652
-7687

skipif mysql # not compatible
query I rowsort label-8157
SELECT - col1 + col0 / col1 + cor0.col2 * - col0 AS col0 FROM tab1 AS cor0
----
-188
-3652
-7687

onlyif mysql # use DIV operator for integer division
query I rowsort label-8158
SELECT - col2 * col0 * ( + 79 * + col2 ) + col0 DIV col0 FROM tab2
----
-403136
-4165511
-9012003

skipif mysql # not compatible
query I rowsort label-8158
SELECT - col2 * col0 * ( + 79 * + col2 ) + col0 / col0 FROM tab2
----
-403136
-4165511
-9012003

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 61 col2 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 8d4dfe649433a599fc4b10830cc7ce55

query I rowsort
SELECT ALL 85 * + col0 + + 46 FROM tab1
----
301
5486
6846

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

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

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

query I rowsort
SELECT DISTINCT 81 * + tab1.col0 * - col0 + - col0 FROM tab1
----
-331840
-518480
-732

query I rowsort
SELECT + tab0.col0 * col1 * + 97 AS col1 FROM tab0
----
200208
329315
785603

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

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

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

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

query I rowsort
SELECT - - col2 + + 86 * + col1 + col2 FROM tab2 AS cor0
----
1538
2720
5126

query I rowsort
SELECT ALL col1 + col1 - + col2 * col2 * - 67 AS col1 FROM tab0 AS cor0
----
261
450690
73135

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

query I rowsort
SELECT ALL + cor0.col1 - - ( + 36 * - cor0.col2 ) AS col0 FROM tab2 AS cor0
----
-1351
-877
-941

query I rowsort
SELECT DISTINCT col2 * col0 * 88 FROM tab1
----
14256
321024
675840

query I rowsort
SELECT 72 FROM tab1, tab0 cor0, tab0 AS cor1
----
27 values hashing to 92cc3d5daa550304e96c1542787691c7

query I rowsort
SELECT - + 68 + - cor0.col1 FROM tab1 AS cor0
----
-78
-81
-94

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

query I rowsort
SELECT + 1 * + col0 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT ALL - cor0.col1 FROM tab1, tab2 cor0, tab1 AS cor1
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8180
SELECT col0 * CAST ( col2 AS INTEGER ) col2 FROM tab2 AS cor0
----
189
2028
3002

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

query I rowsort
SELECT + col0 + 43 AS col2 FROM tab0 AS cor0
----
132
67
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-8183
SELECT + ( + col2 ) * cor0.col0 DIV + cor0.col1 + 14 AS col1 FROM tab1 cor0
----
20
378
604

skipif mysql # not compatible
query I rowsort label-8183
SELECT + ( + col2 ) * cor0.col0 / + cor0.col1 + 14 AS col1 FROM tab1 cor0
----
20
378
604

query I rowsort
SELECT DISTINCT 62 AS col2 FROM tab2 cor0
----
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-8185
SELECT - - col1 DIV + 10 AS col2 FROM tab1 AS cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-8185
SELECT - - col1 / + 10 AS col2 FROM tab1 AS cor0
----
1
1
2

onlyif mysql # use DIV operator for integer division
query I rowsort label-8186
SELECT ALL + + 56 + 80 DIV - col0 AS col1 FROM tab2 AS cor0
----
45
55
55

skipif mysql # not compatible
query I rowsort label-8186
SELECT ALL + + 56 + 80 / - col0 AS col1 FROM tab2 AS cor0
----
45
55
55

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8187
SELECT + CAST( col0 AS SIGNED ) AS col2 FROM tab0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-8187
SELECT + CAST ( col0 AS INTEGER ) AS col2 FROM tab0
----
24
35
89

query I rowsort
SELECT + ( col1 ) * - col2 + + 16 FROM tab1 AS cor0
----
-1232
-1388
-554

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

query I rowsort
SELECT DISTINCT + 15 - 41 AS col2 FROM tab0 AS cor0
----
-26

query I rowsort
SELECT - - 36 + - cor0.col2 FROM tab1 AS cor0
----
-18
-21
-60

query I rowsort
SELECT 37 * + col2 + col2 FROM tab1 AS cor0
----
2052
2166
3648

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

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

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

query I rowsort
SELECT 27 AS col2 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 1a3cef5c33b8f87ffeded378fd207753

onlyif mysql # use DIV operator for integer division
query I rowsort label-8197
SELECT DISTINCT 50 + + col1 DIV + ( + 40 ) AS col2 FROM tab1 AS cor0
----
50

skipif mysql # not compatible
query I rowsort label-8197
SELECT DISTINCT 50 + + col1 / + ( + 40 ) AS col2 FROM tab1 AS cor0
----
50

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-8199
SELECT ALL + + col1 * col1 * col1 + + col1 DIV - col1 AS col1 FROM tab2 AS cor0
----
205378
29790
4912

skipif mysql # not compatible
query I rowsort label-8199
SELECT ALL + + col1 * col1 * col1 + + col1 / - col1 AS col1 FROM tab2 AS cor0
----
205378
29790
4912

query I rowsort
SELECT 57 * 84 AS col1 FROM tab0
----
4788
4788
4788

query I rowsort
SELECT 63 + + col2 AS col0 FROM tab2
----
101
89
90

query I rowsort
SELECT DISTINCT + col1 * 16 + 71 FROM tab2 AS cor0
----
1015
343
567

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

query I rowsort
SELECT DISTINCT + 37 + cor1.col1 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
54
68
96

query I rowsort
SELECT ALL ( - 87 ) * + col1 AS col1 FROM tab1 AS cor0
----
-1131
-2262
-870

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-8207
SELECT - ( + 34 + tab1.col2 ) DIV - ( 61 ) FROM tab1
----
1
1
2

skipif mysql # not compatible
query I rowsort label-8207
SELECT - ( + 34 + tab1.col2 ) / - ( 61 ) FROM tab1
----
1
1
2

query I rowsort
SELECT - 68 * - col1 * col1 - + ( col1 ) FROM tab0 AS cor0
----
502842
563017
639715

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

query I rowsort
SELECT ALL cor0.col2 + col2 * - 89 AS col0 FROM tab0 AS cor0
----
-2904
-7216
-88

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8211
SELECT + col2 * + CAST( + 9 * col0 AS SIGNED ) FROM tab2 AS cor0
----
1701
18252
27018

skipif mysql # not compatible
query I rowsort label-8211
SELECT + col2 * + CAST ( + 9 * col0 AS INTEGER ) FROM tab2 AS cor0
----
1701
18252
27018

query I rowsort
SELECT DISTINCT - col0 - col2 * - col1 * - col2 AS col2 FROM tab2 AS cor0
----
-22606
-24627
-39962

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

query I rowsort
SELECT DISTINCT + cor0.col0 * col0 - - col0 * cor0.col0 FROM tab2 AS cor0
----
12168
12482
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - col2 * 62 col2 FROM tab0 AS cor0
----
-159
-2132
-5175

query I rowsort
SELECT - 65 + + col0 * col2 FROM tab1
----
3583
7615
97

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

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

query I rowsort
SELECT ALL - col2 + 52 AS col1 FROM tab0 cor0
----
-30
19
51

query I rowsort
SELECT ALL + - col2 - 12 AS col1 FROM tab1 AS cor0
----
-108
-66
-69

query I rowsort
SELECT DISTINCT + col2 * + col1 - + 96 FROM tab1 AS cor0
----
1152
1308
474

query I rowsort
SELECT ALL - - col1 + - cor0.col1 * 84 FROM tab0 cor0
----
-7138
-7553
-8051

query I rowsort
SELECT - - col2 * - 81 AS col0 FROM tab2 AS cor0
----
-2106
-2187
-3078

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

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

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

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

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

query I rowsort
SELECT - 45 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 63e2b488a204f83ec8c063dafdfd4371

query I rowsort
SELECT ALL 34 * col2 AS col0 FROM tab1
----
1836
1938
3264

query I rowsort
SELECT col0 * + col2 * 18 + col0 * - col2 * tab2.col1 FROM tab2
----
-2457
-83148
3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-8229
SELECT DISTINCT + cor0.col0 DIV + 5 - 83 FROM tab0, tab0 cor0
----
-66
-76
-79

skipif mysql # not compatible
query I rowsort label-8229
SELECT DISTINCT + cor0.col0 / + 5 - 83 FROM tab0, tab0 cor0
----
-66
-76
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + cor0.col1 * 66 col1 FROM tab2 AS cor0
----
1139
2077
3953

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

query I rowsort
SELECT ALL - 21 * col1 FROM tab0
----
-1806
-1911
-2037

onlyif mysql # use DIV operator for integer division
query I rowsort label-8233
SELECT ( - col2 ) + col0 DIV tab0.col0 AS col1 FROM tab0
----
-32
-81
0

skipif mysql # not compatible
query I rowsort label-8233
SELECT ( - col2 ) + col0 / tab0.col0 AS col1 FROM tab0
----
-32
-81
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + col0 * col2 col1 FROM tab2 AS cor0
----
196
2106
3081

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

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

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

query I rowsort
SELECT ALL 58 * col0 FROM tab0 AS cor0
----
1392
2030
5162

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * col0 * + col0 col0 FROM tab1 AS cor0
----
234
40960
83200

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

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

query I rowsort
SELECT - 43 * - col0 + col0 FROM tab0 AS cor0
----
1056
1540
3916

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8246
SELECT ALL + col0 / 21 col0 FROM tab2 AS cor0
----
0
3
3

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

query I rowsort
SELECT DISTINCT - ( ( - col1 ) ) FROM tab1
----
10
13
26

query I rowsort
SELECT - 17 * tab2.col1 * col2 FROM tab2
----
-10982
-14229
-26078

query I rowsort
SELECT col2 * + ( + tab1.col0 * - col0 ) FROM tab1
----
-233472
-486
-614400

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

query I rowsort
SELECT DISTINCT + 67 * col1 + col2 + + cor0.col0 FROM tab1 AS cor0
----
1047
1799
791

query I rowsort
SELECT + 80 - col2 AS col2 FROM tab0 AS cor0
----
-2
47
79

query I rowsort
SELECT + ( + 15 ) - - col0 * cor0.col1 FROM tab2 AS cor0
----
1358
232
4617

query I rowsort
SELECT DISTINCT - + col1 * 27 + - cor0.col0 AS col1 FROM tab2 AS cor0
----
-1671
-538
-844

query I rowsort
SELECT ALL - 71 * 15 AS col0 FROM tab1 cor0
----
-1065
-1065
-1065

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

query I rowsort
SELECT ALL + 76 + col2 FROM tab0
----
109
158
77

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

skipif mysql # not compatible
query I rowsort label-8259
SELECT + - col2 + + col1 / col0 FROM tab0 AS cor0
----
-30
-81
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-8260
SELECT - 16 + col1 * col2 + - col2 DIV + cor0.col0 FROM tab2 cor0
----
1518
630
818

skipif mysql # not compatible
query I rowsort label-8260
SELECT - 16 + col1 * col2 + - col2 / + cor0.col0 FROM tab2 cor0
----
1518
630
818

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

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

query I rowsort
SELECT ALL - 9 + col0 * - tab0.col0 AS col0 FROM tab0
----
-1234
-585
-7930

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

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

query I rowsort
SELECT col2 * - 79 AS col1 FROM tab2
----
-2054
-2133
-3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-8265
SELECT ALL col0 DIV col1 + - col2 * + col2 FROM tab2
----
-1440
-675
-729

skipif mysql # not compatible
query I rowsort label-8265
SELECT ALL col0 / col1 + - col2 * + col2 FROM tab2
----
-1440
-675
-729

query I rowsort
SELECT ALL - 10 + col2 + + col1 FROM tab2
----
45
48
75

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

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

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

query I rowsort
SELECT + 35 AS col1 FROM tab2, tab0 cor0
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29

query I rowsort
SELECT - col0 * - 97 AS col1 FROM tab1
----
291
6208
7760

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

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

query I rowsort
SELECT ALL 93 * col0 AS col2 FROM tab0
----
2232
3255
8277

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

query I rowsort
SELECT - - col1 + - 38 * cor0.col1 AS col2 FROM tab2 AS cor0
----
-1147
-2183
-629

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

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

query I rowsort
SELECT DISTINCT 94 * + col1 + - col0 + 79 AS col1 FROM tab1
----
1221
2520
955

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 33 * + col1 col0 FROM tab0
----
2838
3003
3201

query I rowsort
SELECT ALL - 51 AS col0 FROM tab0
----
-51
-51
-51

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

skipif mysql # not compatible
query I rowsort label-8279
SELECT + + col0 + col1 / col2 + cor0.col0 AS col2 FROM tab0 AS cor0
----
167
179
50

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

query I rowsort
SELECT col1 + - 35 * - col0 FROM tab1 AS cor0
----
131
2250
2813

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 * - 98 + 96 col0 FROM tab2 AS cor0
----
7740
782
7838

query I rowsort
SELECT DISTINCT col2 + + col0 + 56 FROM tab0
----
113
227
92

query I rowsort
SELECT + + col1 + - col0 * 4 AS col2 FROM tab1 AS cor0
----
-246
-307
14

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

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

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

query I rowsort
SELECT ALL col2 + + col0 * + 31 AS col1 FROM tab0
----
1086
2841
777

query I rowsort
SELECT ALL + col2 * ( col1 ) * tab0.col0 + + 13 + col0 FROM tab0
----
3443
664220
68149

query I rowsort
SELECT cor0.col1 * + 14 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 115b668dcc332f7fa8ae4851324e54ab

query I rowsort
SELECT ALL + col0 * 66 - col2 AS col2 FROM tab0
----
1551
2309
5792

onlyif mysql # use DIV operator for integer division
query I rowsort label-8292
SELECT - tab1.col2 DIV 10 + + col0 AS col2 FROM tab1
----
-2
59
71

skipif mysql # not compatible
query I rowsort label-8292
SELECT - tab1.col2 / 10 + + col0 AS col2 FROM tab1
----
-2
59
71

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - ( + cor0.col2 ) col2 FROM tab2 AS cor0
----
-21
33
4

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

query I rowsort
SELECT - col1 - 56 AS col1 FROM tab0 AS cor0
----
-142
-147
-153

query I rowsort
SELECT + col2 * - cor0.col0 + + col2 + cor0.col2 FROM tab2 AS cor0
----
-135
-1976
-2926

onlyif mysql # use DIV operator for integer division
query I rowsort label-8298
SELECT - + ( ( + col1 ) ) * - 9 + - col1 DIV col0 + + cor0.col1 * col0 FROM tab1 AS cor0
----
1157
304
730

skipif mysql # not compatible
query I rowsort label-8298
SELECT - + ( ( + col1 ) ) * - 9 + - col1 / col0 + + cor0.col1 * col0 FROM tab1 AS cor0
----
1157
304
730

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

query I rowsort
SELECT DISTINCT 78 * - 14 FROM tab2 AS cor0
----
-1092

query I rowsort
SELECT + - col1 + 85 * + col2 * cor0.col1 FROM tab0 AS cor0
----
241144
634179
8148

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-8303
SELECT + + 73 DIV col2 + - col0 + + ( 64 ) AS col1 FROM tab0 AS cor0
----
-25
102
42

skipif mysql # not compatible
query I rowsort label-8303
SELECT + + 73 / col2 + - col0 + + ( 64 ) AS col1 FROM tab0 AS cor0
----
-25
102
42

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8304
SELECT ALL - CAST ( col0 AS INTEGER ) col2 FROM tab1 AS cor0
----
-3
-64
-80

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

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

query I rowsort
SELECT DISTINCT tab2.col2 * + ( + 12 ) * + col0 FROM tab2
----
2268
24336
36024

query I rowsort
SELECT col2 + - ( col1 ) * tab1.col0 + + 94 AS col2 FROM tab1
----
-489
-850
70

query I rowsort
SELECT + col1 + col0 * + cor0.col0 * col2 FROM tab1 AS cor0
----
233482
512
614413

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

query I rowsort
SELECT DISTINCT + ( - 99 ) * col0 FROM tab1 AS cor0
----
-297
-6336
-7920

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

query I rowsort
SELECT - ( + col2 ) * + 4 AS col0 FROM tab2 AS cor0
----
-104
-108
-152

query I rowsort
SELECT ALL - + 23 + col2 * - 81 * 89 AS col2 FROM tab1 AS cor0
----
-389309
-410936
-692087

query I rowsort
SELECT DISTINCT - col2 * - col0 + - 32 * - cor0.col0 AS col1 FROM tab2 AS cor0
----
413
4524
5530

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

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

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

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

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

query I rowsort
SELECT ALL - col1 + - cor0.col1 * col0 + - col0 AS col2 FROM tab2 AS cor0
----
-1439
-255
-4739

query I rowsort
SELECT DISTINCT - col2 * 24 + col0 FROM tab0 AS cor0
----
-1879
-768
11

query I rowsort
SELECT + col0 - - 88 AS col0 FROM tab0 AS cor0
----
112
123
177

query I rowsort
SELECT ALL - col1 * 51 + + cor0.col2 AS col1 FROM tab0 AS cor0
----
-4353
-4559
-4946

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

query I rowsort
SELECT ALL + ( + 88 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-8328
SELECT ALL + col2 + + col1 + + cor0.col0 DIV col0 FROM tab2 AS cor0
----
56
59
86

skipif mysql # not compatible
query I rowsort label-8328
SELECT ALL + col2 + + col1 + + cor0.col0 / col0 FROM tab2 AS cor0
----
56
59
86

query I rowsort
SELECT DISTINCT - 58 * col1 AS col2 FROM tab1 AS cor0
----
-1508
-580
-754

onlyif mysql # use DIV operator for integer division
query I rowsort label-8330
SELECT ALL - 61 DIV - col0 FROM tab2 AS cor0
----
0
0
8

skipif mysql # not compatible
query I rowsort label-8330
SELECT ALL - 61 / - col0 FROM tab2 AS cor0
----
0
0
8

query I rowsort
SELECT ALL - + 60 + col1 FROM tab2 AS cor0
----
-1
-29
-43

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

query I rowsort
SELECT DISTINCT + - 87 * col1 AS col1 FROM tab1 cor0
----
-1131
-2262
-870

query I rowsort
SELECT DISTINCT 97 * col0 AS col1 FROM tab2 AS cor0
----
679
7566
7663

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

query I rowsort
SELECT ALL - col1 + - cor0.col2 + 68 AS col2 FROM tab1 cor0
----
-12
-41
1

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

query I rowsort
SELECT col0 * - col2 * + col1 + + 51 * + col1 AS col2 FROM tab2 AS cor0
----
-116643
-4278
-50167

query I rowsort
SELECT DISTINCT + 35 * col2 + + col2 * - cor0.col2 AS col1 FROM tab0 AS cor0
----
-3854
34
66

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

query I rowsort
SELECT 68 * - col2 FROM tab2 AS cor0
----
-1768
-1836
-2584

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

query I rowsort
SELECT ALL - 90 * col2 * - 38 FROM tab1 cor0
----
184680
194940
328320

query I rowsort
SELECT + - col1 + + cor0.col2 * col0 FROM tab2 AS cor0
----
158
1969
2985

query I rowsort
SELECT ALL + col1 * col0 + - 6 + - 26 FROM tab1 AS cor0
----
1008
46
608

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

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

query I rowsort
SELECT ALL + col2 + + 50 * - cor0.col1 + + col1 AS col1 FROM tab0 AS cor0
----
-4181
-4377
-4752

query I rowsort
SELECT - 80 * 59 AS col0 FROM tab2 AS cor0
----
-4720
-4720
-4720

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

query I rowsort
SELECT ALL - + 56 - col2 FROM tab2 AS cor0
----
-82
-83
-94

query I rowsort
SELECT DISTINCT + + cor0.col1 + + 85 * - cor0.col2 AS col2 FROM tab2 AS cor0
----
-2151
-2264
-3213

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

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

query I rowsort
SELECT DISTINCT - 15 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1, tab2 AS cor1
----
-15

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

query I rowsort
SELECT ALL 57 FROM tab0, tab2, tab1 cor0
----
27 values hashing to 220a93709e207779b34ef74b544764a5

query I rowsort
SELECT DISTINCT + col2 - - ( cor0.col2 + col1 ) FROM tab1 cor0
----
124
134
205

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - 12 * + col0 col2 FROM tab0 AS cor0
----
-264
-385
-979

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab1 cor0, tab2 cor1, tab1, tab0 AS cor2
----
3645 values hashing to 95cc5fe1844e2fb00b447bbee94ccc5e

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

query I rowsort
SELECT ALL + cor0.col1 * 24 FROM tab2 AS cor0
----
1416
408
744

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-8363
SELECT DISTINCT + col2 DIV col0 + col1 * - tab0.col1 DIV col1 AS col2 FROM tab0
----
-85
-91
-97

skipif mysql # not compatible
query I rowsort label-8363
SELECT DISTINCT + col2 / col0 + col1 * - tab0.col1 / col1 AS col2 FROM tab0
----
-85
-91
-97

query I rowsort
SELECT 45 * - 48 FROM tab2
----
-2160
-2160
-2160

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

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

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

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

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

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

query I rowsort
SELECT - ( - ( - col1 ) ) * col1 + col0 AS col2 FROM tab1 AS cor0
----
-36
-673
-89

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8372
SELECT ALL + col0 + - col2 / col2 col0 FROM tab0
----
23
34
88

query I rowsort
SELECT DISTINCT col0 * col2 * col0 AS col1 FROM tab0
----
1225
19008
649522

query I rowsort
SELECT - 42 FROM tab2, tab0 cor0, tab0 AS cor1
----
27 values hashing to 56f86ff01cd96a3511acd46e0e811e27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - col1 + col1 * + col1 * col2 col0 FROM tab2
----
25730
85904
9639

query I rowsort
SELECT DISTINCT + col2 + + 17 AS col2 FROM tab2 AS cor0
----
43
44
55

query I rowsort
SELECT 37 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to a10b03e72860b949bdff53827700a9a8

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

query I rowsort
SELECT + 92 + + col1 + col1 * 20 AS col2 FROM tab0 AS cor0
----
1898
2003
2129

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

skipif mysql # not compatible
query I rowsort label-8380
SELECT ALL cor0.col0 * cor0.col0 / - col0 AS col1 FROM tab2 cor0
----
-7
-78
-79

query I rowsort
SELECT + + 51 - + cor0.col0 FROM tab0 AS cor0
----
-38
16
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 0 - col2 col2 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT + cor0.col1 * + ( col2 ) + - 80 FROM tab0 cor0
----
17
2758
7382

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-8385
SELECT - + col2 * + col0 + + col0 DIV + ( 85 ) + col0 DIV - 82 AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002

skipif mysql # not compatible
query I rowsort label-8385
SELECT - + col2 * + col0 + + col0 / + ( 85 ) + col0 / - 82 AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002

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

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

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

query I rowsort
SELECT ALL - - col1 + - 95 FROM tab0 AS cor0
----
-4
-9
2

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

query I rowsort
SELECT tab2.col1 - + ( - tab2.col2 ) FROM tab2
----
55
58
85

onlyif mysql # use DIV operator for integer division
query I rowsort label-8391
SELECT - col1 DIV - col0 + col1 + col0 AS col0 FROM tab2
----
137
42
96

skipif mysql # not compatible
query I rowsort label-8391
SELECT - col1 / - col0 + col1 + col0 AS col0 FROM tab2
----
137
42
96

query I rowsort
SELECT ALL + 89 FROM tab0, tab2 AS cor0
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743

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

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

query I rowsort
SELECT + ( col0 ) * col1 * ( - 30 ) FROM tab0 AS cor0
----
-101850
-242970
-61920

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

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL <= + col2 + col1 * + col1
----

query I rowsort
SELECT ALL - col1 FROM tab2 WHERE NULL BETWEEN col0 AND ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + tab1.col1 * + col0 + col0 col1 FROM tab1
----
107
1133
714

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

query I rowsort
SELECT ALL - col1 + col2 * col2 * col1 - col2 FROM tab2
----
22541
24493
39799

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab1.col1 + - col1 * - col1 col1 FROM tab1
----
110
182
702

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

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

query III rowsort
SELECT * FROM tab1 WHERE col0 + col2 * - col0 * col0 > + col2
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL IN ( + col1 * - cor0.col2 + cor0.col0 / - cor0.col2 + + col1 ) OR NULL IN ( col0 )
----

query I rowsort
SELECT cor0.col2 + - col0 * + col2 AS col2 FROM tab2 AS cor0
----
-162
-2002
-2964

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

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

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

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

query I rowsort
SELECT - col2 * col1 * - 3 + + col0 AS col1 FROM tab1
----
1774
3824
4215

query I rowsort
SELECT + col0 + cor0.col1 - + col1 * - col1 FROM tab0 AS cor0
----
7506
8461
9541

query I rowsort
SELECT ALL + col2 * - col0 + cor0.col1 - - col1 * + col1 FROM tab0 AS cor0
----
1074
6690
9471

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8419
SELECT + col2 + CAST( 21 AS SIGNED ) * col1 * + tab1.col2 AS col1 FROM tab1
----
12027
26304
29538

skipif mysql # not compatible
query I rowsort label-8419
SELECT + col2 + CAST ( 21 AS INTEGER ) * col1 * + tab1.col2 AS col1 FROM tab1
----
12027
26304
29538

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

query I rowsort
SELECT - cor0.col2 + - ( 38 ) AS col0 FROM tab0 AS cor0
----
-120
-39
-71

query I rowsort
SELECT + + col1 * 86 - col2 * - col1 FROM tab0 AS cor0
----
10234
15288
8439

query I rowsort
SELECT ALL col0 + ( - col1 + cor0.col2 ) FROM tab1 cor0
----
111
163
31

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-8425
SELECT ALL + - cor0.col0 - - ( + col1 ) DIV col0 FROM tab0 AS cor0
----
-21
-33
-88

skipif mysql # not compatible
query I rowsort label-8425
SELECT ALL + - cor0.col0 - - ( + col1 ) / col0 FROM tab0 AS cor0
----
-21
-33
-88

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * + col0 col2 FROM tab1
----
-4096
-6400
-9

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * tab1.col2 + col0 col0 FROM tab1
----
1328
1407
634

query I rowsort
SELECT DISTINCT - tab1.col0 AS col1 FROM tab1 WHERE NULL = ( NULL )
----

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

query I rowsort
SELECT col0 + col0 + + tab0.col2 * col2 * col2 AS col1 FROM tab0
----
35985
551546
71

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

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

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

query I rowsort
SELECT col2 / - col1 AS col2 FROM tab2 WHERE NOT NULL NOT IN ( - col2 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-8437
SELECT DISTINCT col2 * col2 + + col0 DIV + col2 FROM tab1
----
2916
3250
9216

skipif mysql # not compatible
query I rowsort label-8437
SELECT DISTINCT col2 * col2 + + col0 / + col2 FROM tab1
----
2916
3250
9216

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

skipif mysql # not compatible
query I rowsort label-8438
SELECT DISTINCT - + 95 + col1 / - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - cor2.col1 FROM tab0, tab2 AS cor0, tab1 AS cor1, tab1 cor2
----
81 values hashing to 96e9ef2950805bca93a295eeea43ef5b

query I rowsort
SELECT ALL + - col2 * - col2 AS col0 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT ALL - 92 AS col2 FROM tab0, tab1 AS cor0, tab0 AS cor1, tab1 AS cor2
----
81 values hashing to 95b4f8d1f8c6430076327dcc6092a86c

query I rowsort
SELECT DISTINCT + col1 * - col0 + col2 * + tab2.col1 * - col1 AS col1 FROM tab2
----
-12325
-26164
-95108

query I rowsort
SELECT ALL - 95 * col1 AS col0 FROM tab0 AS cor0
----
-8170
-8645
-9215

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col2 * col1 col2 FROM tab2 WHERE ( - col2 ) <= NULL
----

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-8448
SELECT ALL col0 + + tab2.col0 DIV - col0 FROM tab2
----
6
77
78

skipif mysql # not compatible
query I rowsort label-8448
SELECT ALL col0 + + tab2.col0 / - col0 FROM tab2
----
6
77
78

query I rowsort
SELECT DISTINCT + col1 + 86 FROM tab0
----
172
177
183

onlyif mysql # use DIV operator for integer division
query I rowsort label-8450
SELECT + col0 DIV 21 - - col0 AS col0 FROM tab1 cor0
----
3
67
83

skipif mysql # not compatible
query I rowsort label-8450
SELECT + col0 / 21 - - col0 AS col0 FROM tab1 cor0
----
3
67
83

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

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

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

query I rowsort
SELECT + 12 + - ( cor0.col0 ) AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 5a6462c1718033ca4310a04f24dbaa96

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * + 38 col0 FROM tab0
----
1254
3116
38

query I rowsort
SELECT ALL + + 37 * col1 AS col0 FROM tab2 AS cor0
----
1147
2183
629

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

query I rowsort
SELECT ALL + ( + col2 ) * col1 - col0 * col1 FROM tab1 AS cor0
----
-70
1326
208

query I rowsort
SELECT DISTINCT - - 88 * + 87 AS col2 FROM tab0 AS cor0
----
7656

query I rowsort
SELECT col2 * + 56 AS col0 FROM tab2 AS cor0
----
1456
1512
2128

query I rowsort
SELECT ALL - tab2.col1 + 61 + 65 AS col2 FROM tab2
----
109
67
95

query I rowsort
SELECT ALL - col1 + ( - 48 ) FROM tab0
----
-134
-139
-145

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-8465
SELECT ALL ( cor0.col1 ) DIV - 36 + col2 FROM tab2 AS cor0
----
25
27
38

skipif mysql # not compatible
query I rowsort label-8465
SELECT ALL ( cor0.col1 ) / - 36 + col2 FROM tab2 AS cor0
----
25
27
38

query I rowsort
SELECT ALL - ( col1 ) * 18 + ( col0 ) FROM tab0 AS cor0
----
-1524
-1549
-1711

query I rowsort
SELECT + col0 + - cor0.col0 * + col0 AS col2 FROM tab0 cor0
----
-1190
-552
-7832

query I rowsort
SELECT DISTINCT + + cor0.col0 + - 46 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
-43
18
34

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

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

query I rowsort
SELECT DISTINCT - 28 * + col1 + + 9 * col1 + col0 AS col1 FROM tab2 AS cor0
----
-1043
-244
-582

query I rowsort
SELECT - - col1 + col1 * 57 FROM tab2 AS cor0
----
1798
3422
986

onlyif mysql # use DIV operator for integer division
query I rowsort label-8472
SELECT 49 DIV - col1 AS col0 FROM tab1 AS cor0
----
-1
-3
-4

skipif mysql # not compatible
query I rowsort label-8472
SELECT 49 / - col1 AS col0 FROM tab1 AS cor0
----
-1
-3
-4

query I rowsort
SELECT DISTINCT + 0 * - col1 + col1 AS col2 FROM tab0 AS cor0
----
86
91
97

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

skipif mysql # not compatible
query I rowsort label-8474
SELECT + - cor0.col2 + col1 / + col0 FROM tab1 AS cor0
----
-46
-57
-96

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

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

query I rowsort
SELECT - col0 * col2 + + 61 FROM tab1 cor0
----
-101
-3587
-7619

query I rowsort
SELECT col1 * col0 - 61 AS col0 FROM tab0 AS cor0
----
2003
3334
8038

query I rowsort
SELECT ALL + col0 + - 19 AS col0 FROM tab2 AS cor0
----
-12
59
60

query I rowsort
SELECT 20 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

onlyif mysql # use DIV operator for integer division
query I rowsort label-8481
SELECT - tab1.col2 * col1 + tab1.col1 DIV + 40 AS col2 FROM tab1
----
-1248
-1404
-570

skipif mysql # not compatible
query I rowsort label-8481
SELECT - tab1.col2 * col1 + tab1.col1 / + 40 AS col2 FROM tab1
----
-1248
-1404
-570

query I rowsort
SELECT - 90 * - col2 AS col1 FROM tab1
----
4860
5130
8640

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

skipif mysql # not compatible
query I rowsort label-8483
SELECT + col2 + - col0 / 54 AS col2 FROM tab0 AS cor0
----
1
33
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-8484
SELECT DISTINCT - - col2 + - CAST( - 70 AS SIGNED ) * cor0.col0 DIV - ( col2 ) FROM tab1 AS cor0
----
-21
38
51

skipif mysql # not compatible
query I rowsort label-8484
SELECT DISTINCT - - col2 + - CAST ( - 70 AS INTEGER ) * cor0.col0 / - ( col2 ) FROM tab1 AS cor0
----
-21
38
51

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 - col0 + - 36 FROM tab0 cor0
----
-125
-60
-71

query I rowsort
SELECT - col2 - 27 AS col0 FROM tab0 AS cor0
----
-109
-28
-60

query I rowsort
SELECT - 26 AS col1 FROM tab2, tab2 cor0, tab0 AS cor1
----
27 values hashing to 4e49eac022daeae6f88f610644ba3754

query I rowsort
SELECT + - cor0.col2 AS col2 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc

query I rowsort
SELECT - + cor0.col2 + ( 20 ) FROM tab2 AS cor0
----
-18
-6
-7

query I rowsort
SELECT + 14 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 83e5779d2487d12495e7d816c797264f

query I rowsort
SELECT + col1 - - 38 FROM tab0 AS cor0
----
124
129
135

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

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

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

query I rowsort
SELECT ALL + cor0.col2 * - 69 FROM tab0 AS cor0
----
-2277
-5658
-69

query I rowsort
SELECT ALL - ( 27 ) AS col1 FROM tab1
----
-27
-27
-27

query I rowsort
SELECT DISTINCT + ( tab0.col1 ) * + cor0.col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 23253cfee4cea5e1d4f993bec937f9fe

query I rowsort
SELECT + 33 * 16 * col0 FROM tab2
----
3696
41184
41712

query I rowsort
SELECT tab0.col2 * tab0.col1 AS col0 FROM tab2, tab0 AS cor0 CROSS JOIN tab0
----
27 values hashing to 7623ebe74018211e6a4da91fc8c37d6d

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

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

query I rowsort
SELECT 34 * col2 * + col0 FROM tab0 AS cor0
----
1190
248132
26928

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8503
SELECT + CAST( + col2 AS SIGNED ) + col1 FROM tab1 AS cor0
----
109
67
80

skipif mysql # not compatible
query I rowsort label-8503
SELECT + CAST ( + col2 AS INTEGER ) + col1 FROM tab1 AS cor0
----
109
67
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-8504
SELECT DISTINCT + 31 DIV + col0 FROM tab2 AS cor0
----
0
4

skipif mysql # not compatible
query I rowsort label-8504
SELECT DISTINCT + 31 / + col0 FROM tab2 AS cor0
----
0
4

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

query I rowsort
SELECT ALL - + col0 * - cor0.col1 * + 19 - + ( - col1 ) FROM tab0 cor0
----
153972
39302
64602

query I rowsort
SELECT ALL - + cor0.col1 + - col0 * - 33 - + col1 * col1 AS col0 FROM tab0 AS cor0
----
-5435
-6690
-8351

query I rowsort
SELECT - col2 + - ( col2 * col2 ) AS col2 FROM tab0 AS cor0
----
-1122
-2
-6806

query I rowsort
SELECT DISTINCT + 4 AS col0 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
4

query I rowsort
SELECT - ( - 94 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 + - col0 * + col1 col2 FROM tab2 AS cor0
----
-1264
-210
-4524

query I rowsort
SELECT ALL cor0.col1 * + 95 AS col2 FROM tab1 AS cor0
----
1235
2470
950

query I rowsort
SELECT - 9 + + col0 * col2 AS col2 FROM tab0 AS cor0
----
26
7289
783

query I rowsort
SELECT ALL + - 67 + col1 FROM tab0 AS cor0
----
19
24
30

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8515
SELECT DISTINCT - - CAST( + col2 AS SIGNED ) FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-8515
SELECT DISTINCT - - CAST ( + col2 AS INTEGER ) FROM tab0 AS cor0
----
1
33
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - ( + cor0.col0 ) ) + - 8 + - col0 col0 FROM tab1 AS cor0
----
-136
-14
-168

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

query I rowsort
SELECT - col1 * 22 + ( col1 ) AS col2 FROM tab2
----
-1239
-357
-651

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

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

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

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

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

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

query I rowsort
SELECT - 48 + - ( + col1 ) FROM tab1
----
-58
-61
-74

query I rowsort
SELECT + 22 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

skipif mysql # not compatible
query I rowsort
SELECT CAST ( col0 AS REAL ) + + tab2.col0 * + col0 AS col2 FROM tab2
----
56
6162
6320

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8527
SELECT DISTINCT + CAST( + col0 AS SIGNED ) * + col1 AS col1 FROM tab1 AS cor0
----
1040
640
78

skipif mysql # not compatible
query I rowsort label-8527
SELECT DISTINCT + CAST ( + col0 AS INTEGER ) * + col1 AS col1 FROM tab1 AS cor0
----
1040
640
78

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

query I rowsort
SELECT 63 * + col0 AS col1 FROM tab1
----
189
4032
5040

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-8531
SELECT DISTINCT + - cor0.col1 DIV CAST( - col1 AS SIGNED ) - col0 FROM tab0 AS cor0
----
-23
-34
-88

skipif mysql # not compatible
query I rowsort label-8531
SELECT DISTINCT + - cor0.col1 / CAST ( - col1 AS INTEGER ) - col0 FROM tab0 AS cor0
----
-23
-34
-88

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8532
SELECT - cor0.col1 * - CAST ( col0 AS INTEGER ) * cor0.col0 col0 FROM tab2 AS cor0
----
106097
1519
358956

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

skipif mysql # not compatible
query I rowsort label-8533
SELECT + col2 * + CAST ( - col1 AS INTEGER ) + col2 FROM tab2 AS cor0
----
-1508
-608
-810

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

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

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

query I rowsort
SELECT ALL + tab2.col0 + col2 * col2 FROM tab2
----
1523
736
754

query I rowsort
SELECT ALL 37 + col1 FROM tab1
----
47
50
63

query I rowsort
SELECT ALL 96 - + col2 AS col0 FROM tab2
----
58
69
70

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

query I rowsort
SELECT - 61 + - col1 * 4 * - col1 - col0 FROM tab2
----
1016
13785
3776

query I rowsort
SELECT - col2 + 53 AS col0 FROM tab0 AS cor0
----
-29
20
52

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-8544
SELECT ALL cor0.col0 * col0 + + col0 DIV - col0 + ( - cor0.col1 ) * col0 DIV + 60 AS col0 FROM tab2 AS cor0
----
45
6007
6218

skipif mysql # not compatible
query I rowsort label-8544
SELECT ALL cor0.col0 * col0 + + col0 / - col0 + ( - cor0.col1 ) * col0 / + 60 AS col0 FROM tab2 AS cor0
----
45
6007
6218

query I rowsort
SELECT - + col0 * 10 + + col1 AS col0 FROM tab0 AS cor0
----
-154
-253
-799

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + tab0.col2 ) - - col0 col2 FROM tab0
----
171
36
57

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

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

query I rowsort
SELECT ( + tab2.col2 + + 60 ) FROM tab2, tab1 AS cor0
----
9 values hashing to 27d4b97dac8eff4a971d8a35d9c8411f

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

query I rowsort
SELECT + 89 * + col0 AS col2 FROM tab1 AS cor0
----
267
5696
7120

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

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

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

query I rowsort
SELECT + 48 + + col2 * + col0 FROM tab2 cor0
----
2076
237
3050

query I rowsort
SELECT DISTINCT col0 * col0 * - 98 - - col2 * + cor0.col2 FROM tab1 AS cor0
----
-398159
-617984
2034

query I rowsort
SELECT + 58 * + col2 FROM tab1 AS cor0
----
3132
3306
5568

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

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

query I rowsort
SELECT DISTINCT - 50 FROM tab0 cor0
----
-50

onlyif mysql # use DIV operator for integer division
query I rowsort label-8560
SELECT DISTINCT + col2 + - cor0.col0 DIV 35 FROM tab0 AS cor0
----
0
33
80

skipif mysql # not compatible
query I rowsort label-8560
SELECT DISTINCT + col2 + - cor0.col0 / 35 FROM tab0 AS cor0
----
0
33
80

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-8563
SELECT ALL 52 DIV col0 AS col2 FROM tab0 cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-8563
SELECT ALL 52 / col0 AS col2 FROM tab0 cor0
----
0
1
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 31 + col0 col0 FROM tab1 AS cor0
----
111
34
95

query I rowsort
SELECT ALL cor1.col2 FROM tab2 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab0, tab0 AS cor2
----
243 values hashing to 291cdf20f55dc7bbcb55f561dc0b74d8

onlyif mysql # use DIV operator for integer division
query I rowsort label-8566
SELECT DISTINCT - cor0.col1 DIV + 19 col2 FROM tab2 AS cor0
----
-1
-3
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8566
SELECT DISTINCT - cor0.col1 / + 19 col2 FROM tab2 AS cor0
----
-1
-3
0

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

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

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

query I rowsort
SELECT DISTINCT + col2 * 59 AS col0 FROM tab2 AS cor0
----
1534
1593
2242

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

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

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

query I rowsort
SELECT ALL + - 49 + - col2 AS col0 FROM tab2 AS cor0
----
-75
-76
-87

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

skipif mysql # not compatible
query I rowsort label-8574
SELECT col2 / - 6 AS col0 FROM tab2 AS cor0
----
-4
-4
-6

query I rowsort
SELECT 9 - 14 AS col1 FROM tab2, tab0 AS cor0, tab0 cor1, tab1 AS cor2
----
81 values hashing to ede490c59604723c000449e027e5cf18

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

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

query I rowsort
SELECT - col0 * 20 AS col1 FROM tab0 AS cor0
----
-1780
-480
-700

query I rowsort
SELECT col1 - 45 AS col2 FROM tab2
----
-14
-28
14

query I rowsort
SELECT ALL + col2 * + 48 + + col2 * + 95 + - 86 AS col2 FROM tab2 AS cor0
----
3632
3775
5348

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

query I rowsort
SELECT ALL 89 FROM tab2 cor0
----
89
89
89

query I rowsort
SELECT + col0 * 84 FROM tab0 AS cor0
----
2016
2940
7476

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

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

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

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

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

query I rowsort
SELECT DISTINCT ( + 64 ) FROM tab0
----
64

query I rowsort
SELECT DISTINCT + cor0.col2 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
54
57
96

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-8590
SELECT - cor0.col0 DIV 1 FROM tab2 AS cor0
----
-7
-78
-79

skipif mysql # not compatible
query I rowsort label-8590
SELECT - cor0.col0 / 1 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT - col1 * 61 AS col0 FROM tab0 AS cor0
----
-5246
-5551
-5917

query I rowsort
SELECT DISTINCT - - 5 * + 27 * cor0.col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
10800
405
8640

query I rowsort
SELECT DISTINCT col2 + + col1 * 95 FROM tab2
----
1653
2972
5631

query I rowsort
SELECT - col0 + 97 AS col1 FROM tab0
----
62
73
8

query I rowsort
SELECT DISTINCT col1 * - 19 FROM tab2
----
-1121
-323
-589

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

query I rowsort
SELECT + col2 * cor0.col2 + + 81 AS col0 FROM tab0 AS cor0
----
1170
6805
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - 6 ) * - cor0.col0 col1 FROM tab0, tab0 AS cor0
----
9 values hashing to db0e4131803545a8cb9d5124a84d835a

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

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

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

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

skipif mysql # not compatible
query I rowsort label-8602
SELECT - col1 + - CAST ( - col2 AS INTEGER ) * - col1 AS col1 FROM tab1 cor0
----
-1261
-1430
-580

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

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

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

query I rowsort
SELECT DISTINCT col2 * 91 AS col1 FROM tab1
----
4914
5187
8736

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

query I rowsort
SELECT ( - 0 ) * col2 * 5 AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT - ( col1 ) * + col1 + cor0.col2 + col2 FROM tab2 cor0
----
-213
-3429
-907

query I rowsort
SELECT 76 + - col2 * - col1 FROM tab1 AS cor0
----
1324
1480
646

query I rowsort
SELECT - col0 * + col0 + col0 FROM tab1 AS cor0
----
-4032
-6
-6320

query I rowsort
SELECT + + 80 * + col0 + col2 FROM tab1 AS cor0
----
294
5177
6496

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

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

query I rowsort
SELECT + 65 * col1 * col2 FROM tab0
----
184470
485030
6305

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

query I rowsort
SELECT 89 * - col0 AS col0 FROM tab0
----
-2136
-3115
-7921

onlyif mysql # use DIV operator for integer division
query I rowsort label-8617
SELECT DISTINCT + 5 * - col0 + ( - cor0.col0 ) * col1 DIV col0 AS col1 FROM tab0 AS cor0
----
-206
-272
-536

skipif mysql # not compatible
query I rowsort label-8617
SELECT DISTINCT + 5 * - col0 + ( - cor0.col0 ) * col1 / col0 AS col1 FROM tab0 AS cor0
----
-206
-272
-536

query I rowsort
SELECT ALL - + 95 * col1 FROM tab0 AS cor0
----
-8170
-8645
-9215

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-8621
SELECT ALL - + 77 DIV + col1 FROM tab2 AS cor0
----
-1
-2
-4

skipif mysql # not compatible
query I rowsort label-8621
SELECT ALL - + 77 / + col1 FROM tab2 AS cor0
----
-1
-2
-4

query I rowsort
SELECT DISTINCT col1 + col2 * 29 * - 55 FROM tab1 AS cor0
----
-153107
-86104
-90905

query I rowsort
SELECT ALL - col2 + 76 * + col2 FROM tab1 AS cor0
----
4050
4275
7200

onlyif mysql # use DIV operator for integer division
query I rowsort label-8624
SELECT col1 DIV col1 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-8624
SELECT col1 / col1 col2 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT ALL + col2 * - 27 + 27 * col2 AS col0 FROM tab1 AS cor0
----
0
0
0

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

query I rowsort
SELECT + col0 * - ( 4 ) + col1 FROM tab1 AS cor0
----
-246
-307
14

query I rowsort
SELECT DISTINCT + - col2 * - col2 + - col2 FROM tab0 AS cor0
----
0
1056
6642

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8630
SELECT ALL + col0 / - col1 + CAST ( NULL AS INTEGER ) col0 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 38 * - col0 - 37 * - col0 col0 FROM tab0
----
-24
-35
-89

query I rowsort
SELECT - 27 + - tab2.col1 AS col0 FROM tab2
----
-44
-58
-86

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-8634
SELECT 23 * + col0 - col1 DIV + col1 FROM tab2
----
160
1793
1816

skipif mysql # not compatible
query I rowsort label-8634
SELECT 23 * + col0 - col1 / + col1 FROM tab2
----
160
1793
1816

query I rowsort
SELECT ALL + 35 * col1 + + 20 * col0 + col2 AS col2 FROM tab2
----
1252
2213
3651

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

query I rowsort
SELECT ALL - + 97 + col2 AS col1 FROM tab1 AS cor0
----
-1
-40
-43

query I rowsort
SELECT DISTINCT 76 - col2 * + col1 * col1 FROM tab0 AS cor0
----
-243992
-678966
-9333

query I rowsort
SELECT 17 * + col0 - col2 FROM tab2 AS cor0
----
1300
1305
92

query I rowsort
SELECT DISTINCT + + col0 + - 24 - + col2 FROM tab2 cor0
----
-44
17
28

onlyif mysql # use DIV operator for integer division
query I rowsort label-8641
SELECT col0 + - 24 DIV col2 FROM tab0 AS cor0
----
11
24
89

skipif mysql # not compatible
query I rowsort label-8641
SELECT col0 + - 24 / col2 FROM tab0 AS cor0
----
11
24
89

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

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

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

query I rowsort
SELECT DISTINCT + col2 * - cor0.col2 + col2 - ( + col1 ) FROM tab0 AS cor0
----
-1142
-6733
-97

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8648
SELECT - col0 * CAST ( NULL AS INTEGER ) / 7 col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-8649
SELECT DISTINCT - col2 - + col2 * col1 DIV + 81 AS col2 FROM tab0
----
-174
-2
-68

skipif mysql # not compatible
query I rowsort label-8649
SELECT DISTINCT - col2 - + col2 * col1 / + 81 AS col2 FROM tab0
----
-174
-2
-68

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

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

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

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

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

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

query I rowsort
SELECT + ( + 10 ) + col1 * + tab2.col1 AS col1 FROM tab2
----
299
3491
971

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

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

query I rowsort
SELECT - 56 + - col1 FROM tab0 AS cor0
----
-142
-147
-153

query I rowsort
SELECT DISTINCT 25 AS col1 FROM tab0, tab1 cor0
----
25

onlyif mysql # use DIV operator for integer division
query I rowsort label-8659
SELECT ALL - col2 DIV 43 FROM tab1
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-8659
SELECT ALL - col2 / 43 FROM tab1
----
-1
-1
-2

query I rowsort
SELECT DISTINCT cor0.col2 * + col2 + ( col0 ) + - col2 FROM tab1 AS cor0
----
2865
3256
9200

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

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

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

query I rowsort
SELECT + 94 * col0 FROM tab0
----
2256
3290
8366

onlyif mysql # use DIV operator for integer division
query I rowsort label-8664
SELECT ALL - 2 * col2 + ( col1 ) DIV col2 FROM tab1
----
-108
-114
-192

skipif mysql # not compatible
query I rowsort label-8664
SELECT ALL - 2 * col2 + ( col1 ) / col2 FROM tab1
----
-108
-114
-192

query I rowsort
SELECT - cor1.col0 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0

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

query I rowsort
SELECT ALL - cor0.col1 + - 58 * cor0.col2 FROM tab0 AS cor0
----
-155
-2000
-4847

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

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

query I rowsort
SELECT DISTINCT + col1 * 2 + col1 FROM tab0 AS cor0
----
258
273
291

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

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

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

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

query I rowsort
SELECT DISTINCT - col0 * col1 * 35 FROM tab0
----
-118825
-283465
-72240

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col2 + - 25 col0 FROM tab0
----
2813
72
7437

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8677
SELECT tab0.col2 * CAST( 39 AS SIGNED ) + col1 FROM tab0
----
136
1373
3289

skipif mysql # not compatible
query I rowsort label-8677
SELECT tab0.col2 * CAST ( 39 AS INTEGER ) + col1 FROM tab0
----
136
1373
3289

query I rowsort
SELECT - + col0 * 21 AS col1 FROM tab2 AS cor0
----
-147
-1638
-1659

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

query I rowsort
SELECT - + 98 * - col0 AS col0 FROM tab1 AS cor0
----
294
6272
7840

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

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

query I rowsort
SELECT col0 * + col0 - - 11 AS col0 FROM tab2 AS cor0
----
60
6095
6252

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

query I rowsort
SELECT + + 24 - col2 FROM tab1 AS cor0
----
-30
-33
-72

query I rowsort
SELECT DISTINCT - - 65 + - col1 FROM tab2 cor0
----
34
48
6

query I rowsort
SELECT - col2 + - cor0.col2 * - 13 * 19 FROM tab1 AS cor0
----
13284
14022
23616

query I rowsort
SELECT DISTINCT - + 92 * col1 FROM tab1 AS cor0
----
-1196
-2392
-920

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

query I rowsort
SELECT + cor0.col1 + + 24 AS col1 FROM tab2 cor0
----
41
55
83

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

query I rowsort
SELECT DISTINCT 50 * 47 - - tab2.col1 AS col1 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
2367
2381
2409

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

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

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

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

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

query I rowsort
SELECT DISTINCT - col0 * - col2 * + col0 + - col2 * cor0.col0 FROM tab1 AS cor0
----
229824
324
606720

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

query I rowsort
SELECT DISTINCT col1 + col1 + - col1 * + col2 AS col0 FROM tab0 AS cor0
----
-2666
-7280
97

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8703
SELECT ALL - cor0.col1 / col1 col2 FROM tab0 AS cor0
----
-1
-1
-1

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + col2 col2 FROM tab0
----
171
36
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - tab0.col1 + + col2 * col1 * col2 col2 FROM tab0
----
0
604422
90816

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

query I rowsort
SELECT + col2 * - col1 * col2 - col2 AS col1 FROM tab0 AS cor0
----
-611966
-93687
-98

query I rowsort
SELECT ALL - tab0.col2 * + col2 * col1 + + col2 * + col1 AS col0 FROM tab0
----
-604422
-90816
0

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-8712
SELECT DISTINCT tab0.col0 * - tab0.col2 DIV col2 - + col2 col0 FROM tab0
----
-171
-36
-57

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8712
SELECT DISTINCT tab0.col0 * - tab0.col2 / col2 - + col2 col0 FROM tab0
----
-171
-36
-57

query I rowsort
SELECT - col0 * + col0 * - col1 + col2 AS col0 FROM tab1 AS cor0
----
288
41017
83296

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

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

query I rowsort
SELECT DISTINCT - tab1.col0 + + col1 + - col1 * + col0 * + col0 FROM tab1
----
-211
-41014
-83267

onlyif mysql # use DIV operator for integer division
query I rowsort label-8717
SELECT ALL col1 + - tab1.col0 DIV - col0 + + col0 * col0 * + col2 col2 FROM tab1
----
233483
513
614414

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8717
SELECT ALL col1 + - tab1.col0 / - col0 + + col0 * col0 * + col2 col2 FROM tab1
----
233483
513
614414

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-8720
SELECT DISTINCT - col1 DIV tab0.col2 + col1 FROM tab0
----
0
84
90

skipif mysql # not compatible
query I rowsort label-8720
SELECT DISTINCT - col1 / tab0.col2 + col1 FROM tab0
----
0
84
90

query I rowsort
SELECT - col0 * col2 * tab1.col0 FROM tab1
----
-233472
-486
-614400

query I rowsort
SELECT ALL col2 * col2 * col1 + - col2 + col2 * - col1 FROM tab1
----
118464
31863
74358

onlyif mysql # use DIV operator for integer division
query I rowsort label-8723
SELECT + col2 DIV col0 - col2 * col2 AS col0 FROM tab0
----
-1
-1088
-6724

skipif mysql # not compatible
query I rowsort label-8723
SELECT + col2 / col0 - col2 * col2 AS col0 FROM tab0
----
-1
-1088
-6724

query I rowsort
SELECT DISTINCT col0 - col2 FROM tab1 WHERE col1 + col1 NOT BETWEEN ( tab1.col2 ) AND NULL
----
-16
-51
7

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT IN ( - col1 + col2 - + col1 )
----

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

query I rowsort
SELECT ALL + - col2 - + col0 AS col0 FROM tab0 AS cor0
----
-171
-36
-57

query I rowsort
SELECT DISTINCT + col1 + col1 * + col2 * 45 AS col1 FROM tab0 AS cor0
----
127796
335881
4462

query I rowsort
SELECT - 42 * - cor0.col0 + col2 FROM tab0 AS cor0
----
1041
1471
3820

query I rowsort
SELECT - + cor0.col0 - cor0.col0 AS col1 FROM tab0 AS cor0
----
-178
-48
-70

query I rowsort
SELECT ALL + col0 - - col0 FROM tab2 AS cor0
----
14
156
158

query I rowsort
SELECT DISTINCT + col0 - cor0.col0 AS col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT + col2 - - col2 AS col0 FROM tab2 cor0
----
52
54
76

query I rowsort
SELECT - col2 + col0 * col0 + - col0 FROM tab1
----
-48
3975
6224

query I rowsort
SELECT ALL + - cor0.col1 * col2 AS col2 FROM tab2 AS cor0
----
-1534
-646
-837

onlyif mysql # use DIV operator for integer division
query I rowsort label-8736
SELECT DISTINCT + cor0.col1 + col1 DIV - 63 AS col1 FROM tab2 AS cor0
----
17
31
59

skipif mysql # not compatible
query I rowsort label-8736
SELECT DISTINCT + cor0.col1 + col1 / - 63 AS col1 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT 60 - - col0 AS col1 FROM tab2 AS cor0
----
138
139
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 col0 FROM tab0 AS cor0 WHERE NULL BETWEEN ( NULL ) AND col1
----

query I rowsort
SELECT col1 FROM tab2 WHERE NOT + col2 * tab2.col0 * col0 NOT IN ( - col2 )
----

query III rowsort
SELECT * FROM tab0 WHERE ( col1 ) NOT IN ( col1 )
----

query IIIIII rowsort
SELECT * FROM tab2, tab0 AS cor0 WHERE ( NULL ) BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN - col1 + - col2 AND col0 / - col0
----

query I rowsort
SELECT ALL - col2 + col0 * col2 FROM tab0
----
34
7216
759

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + + col0 * - col0 * tab0.col2 col2 FROM tab0
----
-1260
-19032
-649611

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 IN ( col2 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

query I rowsort
SELECT col0 + col1 * + col1 * + col2 AS col2 FROM tab0
----
244092
679131
9444

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + tab2.col1 col2 FROM tab2
----
0

query I rowsort
SELECT - col0 FROM tab2 WHERE NULL <= + col2 / + col1 - col0 * + tab2.col0
----

query I rowsort
SELECT ALL - tab1.col2 + - col2 * - col2 * + col2 AS col2 FROM tab1
----
157410
185136
884640

query I rowsort
SELECT ALL + cor0.col1 * col0 * + col2 AS col1 FROM tab1 cor0
----
36480
4212
99840

onlyif mysql # use DIV operator for integer division
query I rowsort label-8751
SELECT ALL - 10 DIV tab1.col1 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8751
SELECT ALL - 10 / tab1.col1 FROM tab1
----
-1
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-8752
SELECT - col2 DIV + col0 AS col1 FROM tab1 cor0
----
-1
-18
0

skipif mysql # not compatible
query I rowsort label-8752
SELECT - col2 / + col0 AS col1 FROM tab1 cor0
----
-1
-18
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-8753
SELECT + col0 + + col2 DIV 70 AS col2 FROM tab0 AS cor0
----
24
35
90

skipif mysql # not compatible
query I rowsort label-8753
SELECT + col0 + + col2 / 70 AS col2 FROM tab0 AS cor0
----
24
35
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 + 86 col2 FROM tab0, tab0 cor0
----
9 values hashing to 43d86059ddc06082a67de9833451fd91

query I rowsort
SELECT col1 * + col2 + - 3 FROM tab1 AS cor0
----
1245
1401
567

query I rowsort
SELECT + - col2 * 11 AS col1 FROM tab1 AS cor0
----
-1056
-594
-627

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - 75 col2 FROM tab1 AS cor0
----
-4050
-4275
-7200

query I rowsort
SELECT ALL col0 * col2 * col0 AS col0 FROM tab0 AS cor0
----
1225
19008
649522

query I rowsort
SELECT - col1 + 55 FROM tab0 AS cor0
----
-31
-36
-42

query I rowsort
SELECT - tab1.col1 * 85 FROM tab1, tab2, tab1 AS cor0, tab0
----
81 values hashing to 3916de459bf8e7d445211ed889ff03ed

query I rowsort
SELECT ALL 95 AS col2 FROM tab0 AS cor0
----
95
95
95

query I rowsort
SELECT + col0 * col1 + + col0 * col2 AS col1 FROM tab2 AS cor0
----
406
4345
6630

query I rowsort
SELECT ALL - 65 * + col2 * + col0 + - col0 * + col2 * col2 FROM tab0 AS cor0
----
-1072806
-2310
-77616

query I rowsort
SELECT ALL 69 + col1 AS col2 FROM tab0 AS cor0
----
155
160
166

query I rowsort
SELECT DISTINCT - + 99 * + col0 + + col0 FROM tab0 AS cor0
----
-2352
-3430
-8722

query I rowsort
SELECT + + ( ( col1 ) ) * - 95 FROM tab0 AS cor0
----
-8170
-8645
-9215

query I rowsort
SELECT DISTINCT - col1 * + col2 + + col0 + cor0.col0 AS col0 FROM tab0 AS cor0
----
-27
-2790
-7284

query I rowsort
SELECT DISTINCT col1 * 41 + col2 * - col1 * + 62 FROM tab2 cor0
----
-39355
-50623
-92689

query I rowsort
SELECT DISTINCT - col1 - + 49 AS col0 FROM tab1
----
-59
-62
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 - ( - col0 ) col0 FROM tab2
----
14
156
158

query I rowsort
SELECT - col1 * + col0 + + col2 + - col0 FROM tab0
----
-2055
-3429
-8106

query I rowsort
SELECT ALL - 36 + - col0 - + col0 AS col0 FROM tab1 AS cor0
----
-164
-196
-42

query I rowsort
SELECT + 79 * - 96 + col1 AS col0 FROM tab0 cor0
----
-7487
-7493
-7498

query I rowsort
SELECT DISTINCT - ( ( + cor0.col0 ) ) AS col2 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT col1 * - 26 * col0 + ( - col2 * - col1 ) + + 23 FROM tab1 AS cor0
----
-16047
-25769
-601

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + tab2.col2 col0 FROM tab2
----
104
117
34

query I rowsort
SELECT 65 + - col0 AS col1 FROM tab2 AS cor0
----
-13
-14
58

query I rowsort
SELECT ALL + ( + cor0.col0 ) FROM tab2, tab2 AS cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

onlyif mysql # use DIV operator for integer division
query I rowsort label-8779
SELECT ALL - ( cor0.col2 ) DIV + col2 + 48 * col0 FROM tab0 AS cor0
----
1151
1679
4271

skipif mysql # not compatible
query I rowsort label-8779
SELECT ALL - ( cor0.col2 ) / + col2 + 48 * col0 FROM tab0 AS cor0
----
1151
1679
4271

query I rowsort
SELECT DISTINCT - col0 * + col1 + col1 * + col1 * col1 + - col0 * + col1 FROM tab2
----
196175
2227
29357

query I rowsort
SELECT col1 * col2 - 93 * col0 FROM tab2 AS cor0
----
-5720
-6701
186

onlyif mysql # use DIV operator for integer division
query I rowsort label-8782
SELECT + ( - col0 ) * tab0.col1 DIV 32 FROM tab0
----
-106
-253
-64

skipif mysql # not compatible
query I rowsort label-8782
SELECT + ( - col0 ) * tab0.col1 / 32 FROM tab0
----
-106
-253
-64

query I rowsort
SELECT ALL - 96 + cor0.col0 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 4bd46e2a03feeebc5a9f7b179494ade9

query I rowsort
SELECT DISTINCT col1 * col1 + + col0 AS col1 FROM tab1
----
164
249
679

onlyif mysql # use DIV operator for integer division
query I rowsort label-8785
SELECT ALL + col2 DIV - 79 + + col1 FROM tab2
----
17
31
59

skipif mysql # not compatible
query I rowsort label-8785
SELECT ALL + col2 / - 79 + + col1 FROM tab2
----
17
31
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col0 ) * ( col2 ) * - col1 + 96 col1 FROM tab1 AS cor0
----
-36384
-4116
-99744

query I rowsort
SELECT - ( - col2 ) + 3 * - col1 FROM tab2 AS cor0
----
-13
-151
-66

query I rowsort
SELECT + - cor0.col1 + - col0 FROM tab1 AS cor0
----
-29
-74
-93

query I rowsort
SELECT + 37 * - col2 FROM tab0
----
-1221
-3034
-37

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8790
SELECT col0 / cor0.col1 + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8790
SELECT col0 / cor0.col1 + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 * col2 + - ( ( col2 ) ) * col0 AS col0 FROM tab2 AS cor0
----
-2356
-494
648

query I rowsort
SELECT 33 AS col2 FROM tab1, tab1 cor0, tab1 AS cor1
----
27 values hashing to 76da8bc7cae18ecf856438f872430c80

query I rowsort
SELECT + col1 + + 3 * col1 FROM tab1
----
104
40
52

query I rowsort
SELECT 48 AS col0 FROM tab1, tab1 cor0, tab0 cor1
----
27 values hashing to 0ef571a8722ab7270aa7272c1174b88e

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8795
SELECT ALL cor0.col2 * CAST( 33 AS SIGNED ) FROM tab2 AS cor0
----
1254
858
891

skipif mysql # not compatible
query I rowsort label-8795
SELECT ALL cor0.col2 * CAST ( 33 AS INTEGER ) FROM tab2 AS cor0
----
1254
858
891

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * col0 col2 FROM tab2 cor0
----
1343
217
4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-8797
SELECT ALL + + col0 DIV - CAST( - col2 AS SIGNED ) FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8797
SELECT ALL + + col0 / - CAST ( - col2 AS INTEGER ) FROM tab1 AS cor0
----
0
0
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8798
SELECT + CAST( NULL AS DECIMAL ) - + col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8798
SELECT + CAST ( NULL AS REAL ) - + col0 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 * 9 FROM tab2 cor0
----
153
279
531

query I rowsort
SELECT - col0 - ( - col1 ) * cor0.col0 AS col2 FROM tab2 AS cor0
----
1264
210
4524

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8801
SELECT ALL - - 52 * ( + col2 * CAST( + col1 AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
147576
388024
5044

skipif mysql # not compatible
query I rowsort label-8801
SELECT ALL - - 52 * ( + col2 * CAST ( + col1 AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
147576
388024
5044

query I rowsort
SELECT + ( col1 ) * col1 + ( col1 ) FROM tab0 cor0
----
7482
8372
9506

query I rowsort
SELECT - ( col1 ) * col0 + + ( + col1 * col1 ) AS col0 FROM tab2 AS cor0
----
-1054
-1121
744

onlyif mysql # use DIV operator for integer division
query I rowsort label-8804
SELECT tab0.col1 DIV ( col2 + - col0 ) AS col2 FROM tab0
----
-13
-2
9

skipif mysql # not compatible
query I rowsort label-8804
SELECT tab0.col1 / ( col2 + - col0 ) AS col2 FROM tab0
----
-13
-2
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * 42 - col1 * - 73 col1 FROM tab2 AS cor0
----
1829
527
961

query I rowsort
SELECT + 7 - - col0 FROM tab2 AS cor0
----
14
85
86

query I rowsort
SELECT - + ( + 95 ) - col1 * col1 FROM tab1 AS cor0
----
-195
-264
-771

onlyif mysql # use DIV operator for integer division
query I rowsort label-8808
SELECT col1 DIV + ( + col2 * col1 ) + - col0 FROM tab1 AS cor0
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-8808
SELECT col1 / + ( + col2 * col1 ) + - col0 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT + + col2 + - 52 AS col0 FROM tab0 AS cor0
----
-19
-51
30

query I rowsort
SELECT col0 + col2 + + col2 AS col1 FROM tab0
----
253
37
90

query I rowsort
SELECT DISTINCT + col0 + 51 + + tab2.col0 * col0 FROM tab2
----
107
6213
6371

query I rowsort
SELECT DISTINCT - 17 FROM tab2 cor0 CROSS JOIN tab1, tab0 cor1, tab1 AS cor2
----
-17

query I rowsort
SELECT + col0 * + col1 + - col0 * - col0 + 95 FROM tab0 AS cor0
----
16115
2735
4715

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + 31 * + 50 + col2 + + ( + 93 ) * - cor0.col1 col2 FROM tab1 AS cor0
----
147687
81336
87477

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + ( - col1 ) * col0 + + cor0.col0 * + col2 col0 FROM tab2 AS cor0
----
-2600
-55
1621

onlyif mysql # use DIV operator for integer division
query I rowsort label-8816
SELECT + col2 DIV + 92 + - col1 + + col1 * + cor0.col0 * - ( col0 ) FROM tab1 cor0
----
-260
-40970
-83212

skipif mysql # not compatible
query I rowsort label-8816
SELECT + col2 / + 92 + - col1 + + col1 * + cor0.col0 * - ( col0 ) FROM tab1 cor0
----
-260
-40970
-83212

query I rowsort
SELECT DISTINCT - col2 * + col0 + + col2 AS col0 FROM tab2 cor0
----
-162
-2002
-2964

query I rowsort
SELECT - 64 FROM tab0, tab1 AS cor0, tab1 cor1, tab0 cor2
----
81 values hashing to 11a0bc70e08dac4e49bd0140a49d04fb

query I rowsort
SELECT DISTINCT + 37 AS col1 FROM tab1 cor0
----
37

onlyif mysql # use DIV operator for integer division
query I rowsort label-8820
SELECT + + col1 DIV 98 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8820
SELECT + + col1 / 98 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - ( cor0.col2 ) FROM tab0, tab2 cor0
----
-26
-27
-38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8822
SELECT ALL + CAST( + col1 AS SIGNED ) + col1 * 11 AS col0 FROM tab2 AS cor0
----
204
372
708

skipif mysql # not compatible
query I rowsort label-8822
SELECT ALL + CAST ( + col1 AS INTEGER ) + col1 * 11 AS col0 FROM tab2 AS cor0
----
204
372
708

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8823
SELECT + col2 * CAST( NULL AS SIGNED ) - 79 * + col1 / + ( + col1 ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8823
SELECT + col2 * CAST ( NULL AS INTEGER ) - 79 * + col1 / + ( + col1 ) AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( + 56 ) FROM tab2, tab2 AS cor0
----
56

onlyif mysql # use DIV operator for integer division
query I rowsort label-8825
SELECT DISTINCT + col1 DIV col0 + 61 * + col2 - col0 * + col1 FROM tab0
----
-3096
-3332
-48

skipif mysql # not compatible
query I rowsort label-8825
SELECT DISTINCT + col1 / col0 + 61 * + col2 - col0 * + col1 FROM tab0
----
-3096
-3332
-48

query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2, tab2 AS cor1 WHERE ( NULL ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + cor0.col2 * col1 + 75 * cor0.col1 FROM tab0 AS cor0
----
14287
7372
9288

query I rowsort
SELECT ALL + col2 - + col0 * - col2 FROM tab1 AS cor0
----
216
3705
7776

query I rowsort
SELECT ALL - 66 * col2 + cor0.col2 AS col2 FROM tab1 cor0
----
-3510
-3705
-6240

query I rowsort
SELECT + 17 FROM tab0, tab0 AS cor0 CROSS JOIN tab2
----
27 values hashing to e0dd9155e4d67132637a04c18ef46b2a

query I rowsort
SELECT ALL tab2.col0 AS col0 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT ALL col0 + + col2 * cor0.col1 FROM tab0 AS cor0
----
132
2862
7551

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8833
SELECT ALL + - col1 * - ( - col2 ) + + col1 + - CAST( col2 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-1501
-667
-833

skipif mysql # not compatible
query I rowsort label-8833
SELECT ALL + - col1 * - ( - col2 ) + + col1 + - CAST ( col2 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-1501
-667
-833

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8834
SELECT DISTINCT - col2 - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8834
SELECT DISTINCT - col2 - CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL ( - 90 ) FROM tab2, tab0 AS cor0
----
9 values hashing to f6f26b9a04da14807208b93d507095c5

query I rowsort
SELECT ALL - col2 + - 50 * col0 * + col1 AS col0 FROM tab0
----
-103233
-169751
-405032

query I rowsort
SELECT DISTINCT - col2 * - col2 + - 46 + - cor0.col2 FROM tab2 AS cor0
----
1360
604
656

query I rowsort
SELECT - col2 + 87 * 38 + + col1 * 72 * + 35 AS col0 FROM tab1
----
28449
35970
68772

query I rowsort
SELECT col1 + - 46 AS col0 FROM tab0
----
40
45
51

onlyif mysql # use DIV operator for integer division
query I rowsort label-8840
SELECT ALL + col2 + tab0.col1 DIV 82 AS col0 FROM tab0
----
2
34
83

skipif mysql # not compatible
query I rowsort label-8840
SELECT ALL + col2 + tab0.col1 / 82 AS col0 FROM tab0
----
2
34
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-8841
SELECT ALL col2 * - 56 + 75 * + col0 DIV col0 + 78 * + cor0.col2 FROM tab0 AS cor0
----
1879
801
97

skipif mysql # not compatible
query I rowsort label-8841
SELECT ALL col2 * - 56 + 75 * + col0 / col0 + 78 * + cor0.col2 FROM tab0 AS cor0
----
1879
801
97

query I rowsort
SELECT ALL + col1 + - ( + col0 ) FROM tab2 cor0
----
-19
-62
24

query I rowsort
SELECT DISTINCT + + col1 * + col0 + - col2 + + cor0.col0 FROM tab2 AS cor0
----
1384
197
4654

onlyif mysql # use DIV operator for integer division
query I rowsort label-8844
SELECT - col2 - col1 DIV 66 AS col2 FROM tab1 AS cor0
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-8844
SELECT - col2 - col1 / 66 AS col2 FROM tab1 AS cor0
----
-54
-57
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-8845
SELECT DISTINCT - col1 * col1 + + col0 DIV - cor0.col2 AS col2 FROM tab0 cor0
----
-7396
-8282
-9444

skipif mysql # not compatible
query I rowsort label-8845
SELECT DISTINCT - col1 * col1 + + col0 / - cor0.col2 AS col2 FROM tab0 cor0
----
-7396
-8282
-9444

query I rowsort
SELECT + - col1 * ( cor0.col0 ) - + col1 FROM tab1 AS cor0
----
-104
-1053
-650

query I rowsort
SELECT DISTINCT col2 + - col1 * col0 * cor0.col1 FROM tab2 AS cor0
----
-22793
-271492
-6700

onlyif mysql # use DIV operator for integer division
query I rowsort label-8848
SELECT DISTINCT + col0 + - col0 DIV - tab0.col2 AS col0 FROM tab0
----
24
70
90

skipif mysql # not compatible
query I rowsort label-8848
SELECT DISTINCT + col0 + - col0 / - tab0.col2 AS col0 FROM tab0
----
24
70
90

query I rowsort
SELECT + cor1.col1 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

query I rowsort
SELECT ALL + col1 + 7 FROM tab2
----
24
38
66

query I rowsort
SELECT DISTINCT + + cor0.col1 FROM tab2, tab1, tab1 AS cor0
----
10
13
26

query I rowsort
SELECT ALL 11 * + cor0.col0 AS col1 FROM tab0 AS cor0
----
264
385
979

query I rowsort
SELECT DISTINCT - col2 * + col0 + + col2 AS col2 FROM tab0
----
-34
-7216
-759

query I rowsort
SELECT ALL + 28 * + col0 AS col1 FROM tab0 AS cor0
----
2492
672
980

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 79 * + col2 col2 FROM tab2 AS cor0
----
2054
2133
3002

query I rowsort
SELECT ALL + col0 + col0 * - ( - col1 * + cor0.col0 ) AS col0 FROM tab1 cor0
----
237
41024
83280

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + cor0.col1 col2 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT DISTINCT - 34 * - col0 AS col1 FROM tab0 AS cor0
----
1190
3026
816

query I rowsort
SELECT DISTINCT 14 + col2 FROM tab2 AS cor0
----
40
41
52

query I rowsort
SELECT ALL + - ( - col2 ) - col2 * col1 * col2 AS col1 FROM tab1 AS cor0
----
-119712
-32433
-75762

query I rowsort
SELECT col1 + - col1 * + 11 FROM tab2 AS cor0
----
-170
-310
-590

onlyif mysql # use DIV operator for integer division
query I rowsort label-8862
SELECT DISTINCT - ( col0 ) + 43 DIV + cor0.col1 FROM tab1 AS cor0
----
-2
-60
-77

skipif mysql # not compatible
query I rowsort label-8862
SELECT DISTINCT - ( col0 ) + 43 / + cor0.col1 FROM tab1 AS cor0
----
-2
-60
-77

query I rowsort
SELECT - ( + cor0.col1 ) * ( - 39 + + col1 ) * + col2 AS col0 FROM tab2 AS cor0
----
-30680
14212
6696

onlyif mysql # use DIV operator for integer division
query I rowsort label-8864
SELECT ALL + 47 DIV col0 - col1 AS col2 FROM tab1 AS cor0
----
-10
-11
-13

skipif mysql # not compatible
query I rowsort label-8864
SELECT ALL + 47 / col0 - col1 AS col2 FROM tab1 AS cor0
----
-10
-11
-13

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8865
SELECT DISTINCT - ( col0 ) * + CAST( NULL AS SIGNED ) + col2 * col2 * + 83 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8865
SELECT DISTINCT - ( col0 ) * + CAST ( NULL AS INTEGER ) + col2 * col2 * + 83 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT tab0.col0 * 77 AS col1 FROM tab0
----
1848
2695
6853

query I rowsort
SELECT col1 * + col0 + + col2 AS col1 FROM tab0
----
2097
3396
8181

query I rowsort
SELECT DISTINCT tab2.col2 + + col1 * col2 FROM tab2
----
1560
684
864

query I rowsort
SELECT + cor0.col2 * 97 * 48 + + col2 AS col2 FROM tab0 AS cor0
----
153681
381874
4657

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * ( - tab1.col1 ) col0 FROM tab1
----
-100
-169
-676

query I rowsort
SELECT - col1 * ( ( + col1 ) * - tab1.col2 ) FROM tab1
----
16224
36504
5700

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8872
SELECT CAST( ( - col0 ) AS SIGNED ) * ( col1 ) AS col1 FROM tab2
----
-1343
-217
-4602

skipif mysql # not compatible
query I rowsort label-8872
SELECT CAST ( ( - col0 ) AS INTEGER ) * ( col1 ) AS col1 FROM tab2
----
-1343
-217
-4602

query I rowsort
SELECT - ( 73 ) * - col0 AS col2 FROM tab0
----
1752
2555
6497

query I rowsort
SELECT ( col1 ) * + col1 FROM tab2
----
289
3481
961

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 79 col0 FROM tab2
----
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 col0 FROM tab0, tab1, tab1 cor0
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 56 col0 FROM tab2
----
56
56
56

query I rowsort
SELECT ALL col1 * col2 * - 57 FROM tab0
----
-161766
-425334
-5529

onlyif mysql # use DIV operator for integer division
query I rowsort label-8879
SELECT DISTINCT + col1 + col1 DIV col1 FROM tab2
----
18
32
60

skipif mysql # not compatible
query I rowsort label-8879
SELECT DISTINCT + col1 + col1 / col1 FROM tab2
----
18
32
60

query I rowsort
SELECT 67 * col0 * + col1 + + 66 FROM tab1
----
42946
5292
69746

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 23 col2 FROM tab2, tab0 AS cor0, tab0 AS cor1, tab1 cor2
----
81 values hashing to d3b0357ceadb3a70da7f1649b1ef2a30

query I rowsort
SELECT 74 + + col1 AS col1 FROM tab1 AS cor0
----
100
84
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 12 + col0 + + col2 col2 FROM tab2 AS cor0
----
116
129
46

query I rowsort
SELECT col1 - + col2 AS col0 FROM tab2 cor0
----
-21
33
4

query I rowsort
SELECT cor0.col2 * ( 24 ) + + cor0.col0 FROM tab0 AS cor0
----
2057
59
816

onlyif mysql # use DIV operator for integer division
query I rowsort label-8886
SELECT DISTINCT + + col0 DIV - col0 + col0 FROM tab0 AS cor0
----
23
34
88

skipif mysql # not compatible
query I rowsort label-8886
SELECT DISTINCT + + col0 / - col0 + col0 FROM tab0 AS cor0
----
23
34
88

onlyif mysql # use DIV operator for integer division
query I rowsort label-8887
SELECT ALL + cor0.col2 - cor0.col0 DIV col2 FROM tab0 AS cor0
----
-34
33
81

skipif mysql # not compatible
query I rowsort label-8887
SELECT ALL + cor0.col2 - cor0.col0 / col2 FROM tab0 AS cor0
----
-34
33
81

query I rowsort
SELECT - col2 + - col1 * ( + col1 ) AS col0 FROM tab0 AS cor0
----
-7429
-8363
-9410

onlyif mysql # use DIV operator for integer division
query I rowsort label-8889
SELECT DISTINCT - col2 * 96 DIV + col2 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-8889
SELECT DISTINCT - col2 * 96 / + col2 FROM tab1 AS cor0
----
-96

query I rowsort
SELECT ALL - col2 - + ( - col1 + + col1 ) * col2 FROM tab2 AS cor0
----
-26
-27
-38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 - - 75 col1 FROM tab0 AS cor0
----
108
157
76

skipif mysql # not compatible
query I rowsort
SELECT + tab0.col2 + + col0 + CAST ( col0 AS REAL ) FROM tab0
----
260
71
81

query I rowsort
SELECT - + col2 - + cor0.col2 * 79 AS col2 FROM tab2 cor0
----
-2080
-2160
-3040

onlyif mysql # use DIV operator for integer division
query I rowsort label-8894
SELECT col0 - CAST( - ( + col0 ) AS SIGNED ) DIV col2 FROM tab0 AS cor0
----
24
70
90

skipif mysql # not compatible
query I rowsort label-8894
SELECT col0 - CAST ( - ( + col0 ) AS INTEGER ) / col2 FROM tab0 AS cor0
----
24
70
90

query I rowsort
SELECT DISTINCT tab0.col1 * ( + tab0.col1 * col1 ) AS col2 FROM tab0
----
636056
753571
912673

query I rowsort
SELECT col1 * ( + col1 + col1 ) AS col1 FROM tab2
----
1922
578
6962

onlyif mysql # use DIV operator for integer division
query I rowsort label-8897
SELECT col0 DIV CAST( 3 AS SIGNED ) FROM tab2
----
2
26
26

skipif mysql # not compatible
query I rowsort label-8897
SELECT col0 / CAST ( 3 AS INTEGER ) FROM tab2
----
2
26
26

query I rowsort
SELECT col1 + - col2 + - col2 AS col2 FROM tab0
----
-73
20
95

query I rowsort
SELECT col1 + + 37 * - 62 FROM tab1 AS cor0
----
-2268
-2281
-2284

query I rowsort
SELECT - col2 - + col0 * - col2 AS col0 FROM tab2 AS cor0
----
162
2002
2964

query I rowsort
SELECT ALL - - ( + 30 ) FROM tab2 AS cor0
----
30
30
30

onlyif mysql # use DIV operator for integer division
query I rowsort label-8902
SELECT ( col2 ) * + col2 + - col0 * col1 DIV - col0 AS col1 FROM tab2 AS cor0
----
1461
735
760

skipif mysql # not compatible
query I rowsort label-8902
SELECT ( col2 ) * + col2 + - col0 * col1 / - col0 AS col1 FROM tab2 AS cor0
----
1461
735
760

query I rowsort
SELECT - col2 * + col0 * col1 AS col1 FROM tab0 cor0
----
-3395
-664118
-68112

query I rowsort
SELECT - 7 * 99 + col0 + ( - col2 ) * cor0.col2 FROM tab2 cor0
----
-1291
-1415
-2058

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 81 * cor0.col1 + - 28 col0 FROM tab2, tab1 cor0, tab0 AS cor1
----
1025
2078
782

onlyif mysql # use DIV operator for integer division
query I rowsort label-8906
SELECT ALL col2 DIV - ( 72 ) AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8906
SELECT ALL col2 / - ( 72 ) AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT - 64 + col0 * 0 AS col1 FROM tab2 AS cor0
----
-64
-64
-64

query I rowsort
SELECT ALL - tab0.col1 * - tab0.col0 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to f2938bee011b8d49dd931b1f9235e7f5

onlyif mysql # use DIV operator for integer division
query I rowsort label-8909
SELECT DISTINCT - 72 DIV + col2 FROM tab0
----
-2
-72
0

skipif mysql # not compatible
query I rowsort label-8909
SELECT DISTINCT - 72 / + col2 FROM tab0
----
-2
-72
0

query I rowsort
SELECT ALL - 11 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 05cc989122d7724c7abefaba9625ef3d

query I rowsort
SELECT DISTINCT col2 * 70 AS col1 FROM tab2 AS cor0
----
1820
1890
2660

onlyif mysql # use DIV operator for integer division
query I rowsort label-8912
SELECT DISTINCT + ( col0 ) DIV ( col1 ) AS col0 FROM tab2
----
0
1
4

skipif mysql # not compatible
query I rowsort label-8912
SELECT DISTINCT + ( col0 ) / ( col1 ) AS col0 FROM tab2
----
0
1
4

query I rowsort
SELECT col0 + ( - col1 ) FROM tab1
----
-23
54
67

query I rowsort
SELECT DISTINCT - ( 58 ) * - col1 AS col2 FROM tab1
----
1508
580
754

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 47 col2 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to a4d3a02c376c52ddb0a38a801f7b50d5

query I rowsort
SELECT + 81 - - col2 AS col2 FROM tab0
----
114
163
82

query I rowsort
SELECT + ( + col2 ) - + tab2.col0 AS col0 FROM tab2
----
-41
-52
20

query I rowsort
SELECT 56 + - col2 * col2 AS col2 FROM tab0
----
-1033
-6668
55

query I rowsort
SELECT ALL + ( + col2 + col1 ) * col0 AS col2 FROM tab0
----
15397
2856
3430

query I rowsort
SELECT DISTINCT - + 99 * col1 * + col2 - - col2 * + col1 * col2 FROM tab0 AS cor0
----
-126854
-187308
-9506

query I rowsort
SELECT col1 * col1 + - 32 AS col2 FROM tab1 cor0
----
137
644
68

query I rowsort
SELECT DISTINCT - col0 * cor0.col0 + - col0 FROM tab1 AS cor0
----
-12
-4160
-6480

query I rowsort
SELECT + 90 * + col0 - ( cor0.col1 ) FROM tab1 AS cor0
----
244
5750
7187

query I rowsort
SELECT DISTINCT 18 + col2 FROM tab0 cor0
----
100
19
51

query I rowsort
SELECT DISTINCT - col0 + - col2 * tab0.col2 FROM tab0
----
-1113
-36
-6813

query I rowsort
SELECT + + 60 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to a97561e17ecaa618227c75a57b268f33

onlyif mysql # use DIV operator for integer division
query I rowsort label-8927
SELECT col0 * col1 + + col2 DIV col2 FROM tab0 AS cor0
----
2065
3396
8100

skipif mysql # not compatible
query I rowsort label-8927
SELECT col0 * col1 + + col2 / col2 FROM tab0 AS cor0
----
2065
3396
8100

query I rowsort
SELECT ALL - ( - col0 ) * col2 + - 55 AS col1 FROM tab0 AS cor0
----
-20
7243
737

onlyif mysql # use DIV operator for integer division
query I rowsort label-8929
SELECT + ( col1 ) + - cor0.col1 DIV col1 AS col1 FROM tab2 AS cor0
----
16
30
58

skipif mysql # not compatible
query I rowsort label-8929
SELECT + ( col1 ) + - cor0.col1 / col1 AS col1 FROM tab2 AS cor0
----
16
30
58

query I rowsort
SELECT ALL + col2 * col1 + cor0.col2 * + ( cor0.col0 ) + ( + 42 ) AS col1 FROM tab2 AS cor0
----
1068
3604
3690

query I rowsort
SELECT DISTINCT - cor0.col0 + + cor0.col2 * - 19 FROM tab1 AS cor0
----
-1029
-1147
-1904

query I rowsort
SELECT ALL + - col0 * + col0 + + col0 * 67 - - col0 AS col2 FROM tab1 AS cor0
----
-960
195
256

query I rowsort
SELECT ALL - + 88 FROM tab0 AS cor0
----
-88
-88
-88

query I rowsort
SELECT cor0.col1 * cor0.col0 + + 56 AS col0 FROM tab0 AS cor0
----
2120
3451
8155

onlyif mysql # use DIV operator for integer division
query I rowsort label-8935
SELECT DISTINCT + + cor0.col0 + - col2 DIV - col1 + - col2 * col0 FROM tab0 AS cor0
----
-7209
-768
0

skipif mysql # not compatible
query I rowsort label-8935
SELECT DISTINCT + + cor0.col0 + - col2 / - col1 + - col2 * col0 FROM tab0 AS cor0
----
-7209
-768
0

query I rowsort
SELECT + col1 - + 15 FROM tab1
----
-2
-5
11

query I rowsort
SELECT tab0.col0 * 31 AS col2 FROM tab0, tab1 AS cor0, tab2, tab0 AS cor1
----
81 values hashing to b74c60169276e346e02f1039d080c98b

query I rowsort
SELECT col2 * + ( + col1 ) FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT DISTINCT + col2 * col1 + col0 AS col1 FROM tab0 AS cor0
----
132
2862
7551

onlyif mysql # use DIV operator for integer division
query I rowsort label-8940
SELECT - col2 DIV ( - 65 * + col0 ) AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8940
SELECT - col2 / ( - 65 * + col0 ) AS col1 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-8941
SELECT - + col2 DIV + 95 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8941
SELECT - + col2 / + 95 FROM tab2 cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8942
SELECT col1 * ( + col0 * CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8942
SELECT col1 * ( + col0 * 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-8943
SELECT DISTINCT - 96 DIV col0 FROM tab2 AS cor0
----
-1
-13

skipif mysql # not compatible
query I rowsort label-8943
SELECT DISTINCT - 96 / col0 FROM tab2 AS cor0
----
-1
-13

query I rowsort
SELECT ALL + 28 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97

query I rowsort
SELECT ALL + col2 * - ( col1 ) AS col2 FROM tab1
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT 45 * + col2 AS col2 FROM tab0 cor0
----
1485
3690
45

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8947
SELECT DISTINCT ( 4 ) * col0 + + CAST( - col1 AS SIGNED ) FROM tab1 AS cor0
----
-14
246
307

skipif mysql # not compatible
query I rowsort label-8947
SELECT DISTINCT ( 4 ) * col0 + + CAST ( - col1 AS INTEGER ) FROM tab1 AS cor0
----
-14
246
307

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8948
SELECT ALL + CAST( - col2 AS SIGNED ) AS col2 FROM tab1 cor0
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-8948
SELECT ALL + CAST ( - col2 AS INTEGER ) AS col2 FROM tab1 cor0
----
-54
-57
-96

query I rowsort
SELECT ALL - + ( + 67 ) AS col2 FROM tab0 AS cor0
----
-67
-67
-67

query I rowsort
SELECT - 16 * col0 AS col2 FROM tab2 cor0
----
-112
-1248
-1264

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8951
SELECT - col1 / col1 + - col2 * + CAST( NULL AS SIGNED ) * - 41 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8951
SELECT - col1 / col1 + - col2 * + CAST ( NULL AS INTEGER ) * - 41 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - 2 * 71 FROM tab1 AS cor0
----
-142
-142
-142

query I rowsort
SELECT ALL - + ( 29 ) * col0 AS col2 FROM tab0 AS cor0
----
-1015
-2581
-696

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + + col2 + 28 * - col0 * + CAST ( 1 AS REAL ) FROM tab1 AS cor0
----
-1735
-2144
-30

query I rowsort
SELECT 47 * - col2 FROM tab2 cor0
----
-1222
-1269
-1786

query I rowsort
SELECT ALL + + ( col1 ) * - cor0.col2 AS col0 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT DISTINCT + 58 * - 26 AS col1 FROM tab2 AS cor0
----
-1508

onlyif mysql # use DIV operator for integer division
query I rowsort label-8958
SELECT col2 DIV - 57 FROM tab1 cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-8958
SELECT col2 / - 57 FROM tab1 cor0
----
-1
-1
0

query I rowsort
SELECT ALL - col1 + - col0 + col2 AS col2 FROM tab0
----
-131
-77
-98

query I rowsort
SELECT ALL col2 + + ( 51 + + col0 * ( col0 ) ) AS col1 FROM tab2
----
127
6161
6330

skipif mysql # not compatible
query I rowsort
SELECT ALL - CAST ( col1 AS REAL ) + cor0.col2 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT + col1 * 58 + - col2 * + 40 * - 37 FROM tab0 AS cor0
----
126638
53828
7106

query I rowsort
SELECT DISTINCT + - col1 + 67 AS col2 FROM tab0 AS cor0
----
-19
-24
-30

query I rowsort
SELECT DISTINCT - col2 + + col2 * col2 FROM tab1 cor0
----
2862
3192
9120

onlyif mysql # use DIV operator for integer division
query I rowsort label-8965
SELECT ALL + ( + col2 ) * col0 + + 21 DIV 84 AS col1 FROM tab1 AS cor0
----
162
3648
7680

skipif mysql # not compatible
query I rowsort label-8965
SELECT ALL + ( + col2 ) * col0 + + 21 / 84 AS col1 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT ALL - ( - col1 ) * cor0.col0 FROM tab1 AS cor0
----
1040
640
78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8967
SELECT + - col1 * col2 * - CAST( - col0 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-36480
-4212
-99840

skipif mysql # not compatible
query I rowsort label-8967
SELECT + - col1 * col2 * - CAST ( - col0 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-36480
-4212
-99840

onlyif mysql # use DIV operator for integer division
query I rowsort label-8968
SELECT DISTINCT + + col0 DIV + col1 AS col1 FROM tab1 AS cor0
----
0
6

skipif mysql # not compatible
query I rowsort label-8968
SELECT DISTINCT + + col0 / + col1 AS col1 FROM tab1 AS cor0
----
0
6

query I rowsort
SELECT ALL - col1 * + ( col2 ) + col0 AS col0 FROM tab1 AS cor0
----
-1168
-1401
-506

query I rowsort
SELECT 21 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

query I rowsort
SELECT ALL col0 - + col1 AS col2 FROM tab1
----
-23
54
67

query I rowsort
SELECT ALL - col2 + + col1 + col1 AS col0 FROM tab1
----
-2
-37
-70

query I rowsort
SELECT ALL col2 + - 24 AS col0 FROM tab1
----
30
33
72

query I rowsort
SELECT DISTINCT + + col2 * cor0.col1 AS col2 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT + - col1 + col0 + 92 FROM tab1 AS cor0
----
146
159
69

query I rowsort
SELECT tab0.col0 + col2 * + 70 AS col1 FROM tab0
----
105
2334
5829

onlyif mysql # use DIV operator for integer division
query I rowsort label-8977
SELECT ALL - col2 DIV + 27 + cor0.col0 * + col2 FROM tab2 AS cor0
----
188
2028
3001

skipif mysql # not compatible
query I rowsort label-8977
SELECT ALL - col2 / + 27 + cor0.col0 * + col2 FROM tab2 AS cor0
----
188
2028
3001

query I rowsort
SELECT - 83 - col0 * + cor0.col1 * + col2 FROM tab0 cor0
----
-3478
-664201
-68195

query I rowsort
SELECT col0 * - col2 + + col1 FROM tab2
----
-158
-1969
-2985

onlyif mysql # use DIV operator for integer division
query I rowsort label-8980
SELECT DISTINCT + 15 - - tab2.col2 DIV col0 FROM tab2
----
15
18

skipif mysql # not compatible
query I rowsort label-8980
SELECT DISTINCT + 15 - - tab2.col2 / col0 FROM tab2
----
15
18

query I rowsort
SELECT ALL 78 + - col0 AS col1 FROM tab0
----
-11
43
54

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8982
SELECT + 61 + - col2 * CAST( NULL AS SIGNED ) + - 84 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8982
SELECT + 61 + - col2 * CAST ( NULL AS INTEGER ) + - 84 AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-8983
SELECT col1 * + col1 + 19 DIV + col2 FROM tab1
----
100
169
676

skipif mysql # not compatible
query I rowsort label-8983
SELECT col1 * + col1 + 19 / + col2 FROM tab1
----
100
169
676

query I rowsort
SELECT 53 AS col1 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 866ae1b4ab9e5b4043ac1bcfd413aaa6

query I rowsort
SELECT ALL col0 + - col1 + tab2.col0 AS col1 FROM tab2
----
-17
141
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-8986
SELECT col1 DIV - col0 + 73 * col2 + col1 DIV + col1 FROM tab1
----
3935
4162
7009

skipif mysql # not compatible
query I rowsort label-8986
SELECT col1 / - col0 + 73 * col2 + col1 / + col1 FROM tab1
----
3935
4162
7009

query I rowsort
SELECT + 10 AS col0 FROM tab1, tab1 AS cor0, tab2 cor1
----
27 values hashing to 0fe3e45a9ecd49584c2ab442100d5176

onlyif mysql # use DIV operator for integer division
query I rowsort label-8988
SELECT ALL + - 83 DIV + col0 + + 0 AS col1 FROM tab1 AS cor0
----
-1
-1
-27

skipif mysql # not compatible
query I rowsort label-8988
SELECT ALL + - 83 / + col0 + + 0 AS col1 FROM tab1 AS cor0
----
-1
-1
-27

onlyif mysql # use DIV operator for integer division
query I rowsort label-8989
SELECT - 10 * + col1 - + 18 DIV 15 FROM tab1 AS cor0
----
-101
-131
-261

skipif mysql # not compatible
query I rowsort label-8989
SELECT - 10 * + col1 - + 18 / 15 FROM tab1 AS cor0
----
-101
-131
-261

query I rowsort
SELECT 4 * tab1.col2 * 66 AS col1 FROM tab1
----
14256
15048
25344

query I rowsort
SELECT DISTINCT + col0 * - cor0.col0 AS col1 FROM tab1 AS cor0
----
-4096
-6400
-9

query I rowsort
SELECT cor0.col2 + col0 + 92 FROM tab0 cor0
----
128
149
263

query I rowsort
SELECT DISTINCT col0 * + col1 * - col2 FROM tab2
----
-119652
-51034
-5859

query I rowsort
SELECT DISTINCT + 15 * cor0.col2 FROM tab2, tab0 AS cor0
----
1230
15
495

query I rowsort
SELECT + col2 * 15 + col0 * col0 AS col1 FROM tab0
----
1071
1240
9151

query I rowsort
SELECT ALL + col2 * + col0 + + 26 * + col1 - col2 AS col2 FROM tab0 AS cor0
----
2556
2995
9582

query I rowsort
SELECT ALL - col1 * + col0 + + cor0.col1 AS col0 FROM tab2 cor0
----
-1326
-186
-4543

query I rowsort
SELECT DISTINCT + col0 + - ( + col1 ) * - 58 + col1 * + col0 FROM tab0 AS cor0
----
13466
7076
9056

query I rowsort
SELECT DISTINCT + col0 - + 65 AS col0 FROM tab0 AS cor0
----
-30
-41
24

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9000
SELECT DISTINCT + CAST( NULL AS SIGNED ) + ( col2 ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9000
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + ( col2 ) AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL - - col1 * - col2 * + cor0.col1 + + col1 AS col0 FROM tab0 AS cor0
----
-243982
-678951
-9312

query I rowsort
SELECT 24 * ( + col2 ) FROM tab2 cor0
----
624
648
912

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 87 col2 FROM tab1 AS cor0
----
-87
-87
-87

query I rowsort
SELECT DISTINCT + col0 * cor0.col2 * + col0 AS col0 FROM tab0 AS cor0
----
1225
19008
649522

query I rowsort
SELECT ALL 53 * + col0 AS col1 FROM tab2 cor0
----
371
4134
4187

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 96 + col1 col2 FROM tab0 AS cor0
----
182
187
193

query I rowsort
SELECT ALL - ( col1 * + col1 ) AS col2 FROM tab0
----
-7396
-8281
-9409

query I rowsort
SELECT ALL - col1 * + col0 * - col1 FROM tab2
----
22831
271518
6727

query I rowsort
SELECT ALL col0 * + 89 AS col2 FROM tab2
----
623
6942
7031

query I rowsort
SELECT - col0 * 65 * + col1 AS col0 FROM tab2 AS cor0
----
-14105
-299130
-87295

query I rowsort
SELECT - col1 + 33 * + col1 FROM tab0 AS cor0
----
2752
2912
3104

onlyif mysql # use DIV operator for integer division
query I rowsort label-9012
SELECT + - col1 + - 50 DIV col1 FROM tab2 cor0
----
-19
-32
-59

skipif mysql # not compatible
query I rowsort label-9012
SELECT + - col1 + - 50 / col1 FROM tab2 cor0
----
-19
-32
-59

query I rowsort
SELECT - 92 * col0 * col0 FROM tab2 AS cor0
----
-4508
-559728
-574172

query I rowsort
SELECT - 21 * + col0 FROM tab2 cor0
----
-147
-1638
-1659

query I rowsort
SELECT - + 61 + col0 * col1 FROM tab0 cor0
----
2003
3334
8038

query I rowsort
SELECT col0 + - cor0.col1 * col0 AS col0 FROM tab0 AS cor0
----
-2040
-3360
-8010

query I rowsort
SELECT ALL - + col0 * col1 * - col0 AS col1 FROM tab2 AS cor0
----
106097
1519
358956

query I rowsort
SELECT DISTINCT + ( + 38 ) AS col0 FROM tab0
----
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + col0 * col1 col2 FROM tab0 AS cor0
----
177504
329315
737009

query I rowsort
SELECT DISTINCT + 20 * + col0 + + col2 + + col0 AS col2 FROM tab1 AS cor0
----
117
1401
1776

query I rowsort
SELECT ALL - + col1 * - cor0.col2 AS col2 FROM tab0 AS cor0
----
2838
7462
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col1 + ( 8 ) col2 FROM tab0 AS cor0
----
-78
-83
-89

onlyif mysql # use DIV operator for integer division
query I rowsort label-9023
SELECT + + col0 DIV col1 + - col1 FROM tab2 AS cor0
----
-13
-31
-58

skipif mysql # not compatible
query I rowsort label-9023
SELECT + + col0 / col1 + - col1 FROM tab2 AS cor0
----
-13
-31
-58

query I rowsort
SELECT + col0 * 74 + + col2 AS col1 FROM tab2 AS cor0
----
545
5798
5884

query I rowsort
SELECT DISTINCT + col2 + + 14 * - col1 AS col0 FROM tab1 AS cor0
----
-310
-83
-86

query I rowsort
SELECT - cor0.col2 + - col1 + cor0.col0 AS col0 FROM tab2 AS cor0
----
-51
-7
24

onlyif mysql # use DIV operator for integer division
query I rowsort label-9027
SELECT DISTINCT col0 + + col1 * + col1 * - col2 + col2 DIV + col0 AS col1 FROM tab2 AS cor0
----
-10903
-25937
-90428

skipif mysql # not compatible
query I rowsort label-9027
SELECT DISTINCT col0 + + col1 * + col1 * - col2 + col2 / + col0 AS col1 FROM tab2 AS cor0
----
-10903
-25937
-90428

query I rowsort
SELECT ALL + col2 + + ( cor0.col0 ) FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT - col0 + 6 + col1 FROM tab1 AS cor0
----
-48
-61
29

query I rowsort
SELECT + col1 * 76 + - col2 FROM tab0 cor0
----
6503
6834
7371

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * col1 + col2 col2 FROM tab2
----
-251
-3455
-934

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9032
SELECT - + cor0.col1 + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9032
SELECT - + cor0.col1 + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - col1 + + col2 AS col1 FROM tab1 cor0
----
28
47
83

query I rowsort
SELECT - ( - 87 ) * col2 AS col1 FROM tab2 AS cor0
----
2262
2349
3306

query I rowsort
SELECT DISTINCT - 40 AS col1 FROM tab0, tab0 AS cor0
----
-40

onlyif mysql # use DIV operator for integer division
query I rowsort label-9036
SELECT DISTINCT - col2 DIV 59 + + col2 * col2 FROM tab0 AS cor0
----
1
1089
6723

skipif mysql # not compatible
query I rowsort label-9036
SELECT DISTINCT - col2 / 59 + + col2 * col2 FROM tab0 AS cor0
----
1
1089
6723

onlyif mysql # use DIV operator for integer division
query I rowsort label-9037
SELECT - cor0.col0 DIV - 22 FROM tab0, tab1 AS cor0
----
9 values hashing to 3294894d5691618c467f11d859a940f4

skipif mysql # not compatible
query I rowsort label-9037
SELECT - cor0.col0 / - 22 FROM tab0, tab1 AS cor0
----
9 values hashing to 3294894d5691618c467f11d859a940f4

query I rowsort
SELECT ALL - - col2 * + col2 * col2 - - cor0.col2 FROM tab0 AS cor0
----
2
35970
551450

query I rowsort
SELECT ALL - col2 + + 67 FROM tab1 AS cor0
----
-29
10
13

query I rowsort
SELECT DISTINCT - col0 * - ( col2 ) + - col2 FROM tab1 AS cor0
----
108
3591
7584

query I rowsort
SELECT ALL + col2 * + col1 AS col1 FROM tab1 cor0
----
1248
1404
570

query I rowsort
SELECT ALL + col2 + - col0 * - col0 - - col0 * + cor0.col0 FROM tab0 AS cor0
----
1185
15924
2451

query I rowsort
SELECT DISTINCT + col2 + 99 FROM tab1 AS cor0
----
153
156
195

query I rowsort
SELECT col0 * - col0 - - 76 AS col1 FROM tab0
----
-1149
-500
-7845

query I rowsort
SELECT ALL - col0 * col0 + + 81 * - col1 FROM tab1
----
-2115
-4906
-7453

query I rowsort
SELECT DISTINCT 73 AS col2 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
73

query I rowsort
SELECT ALL - col0 + - ( + col0 ) AS col1 FROM tab1 cor0
----
-128
-160
-6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9048
SELECT DISTINCT - col2 * CAST( ( - col2 ) AS SIGNED ) * - col0 + + 55 + col0 AS col0 FROM tab2 AS cor0
----
-113942
-5041
-52595

skipif mysql # not compatible
query I rowsort label-9048
SELECT DISTINCT - col2 * CAST ( ( - col2 ) AS INTEGER ) * - col0 + + 55 + col0 AS col0 FROM tab2 AS cor0
----
-113942
-5041
-52595

query I rowsort
SELECT DISTINCT + col2 + + 4 FROM tab0 AS cor0
----
37
5
86

onlyif mysql # use DIV operator for integer division
query I rowsort label-9050
SELECT - cor0.col2 DIV + 5 AS col0 FROM tab0 AS cor0
----
-16
-6
0

skipif mysql # not compatible
query I rowsort label-9050
SELECT - cor0.col2 / + 5 AS col0 FROM tab0 AS cor0
----
-16
-6
0

query I rowsort
SELECT + 63 AS col1 FROM tab0, tab1 cor0
----
9 values hashing to c3eea92c46f2c49716f386a58b575025

query I rowsort
SELECT DISTINCT - 35 * - col1 AS col1 FROM tab1
----
350
455
910

query I rowsort
SELECT col2 * 47 - col1 * col1 AS col0 FROM tab1 AS cor0
----
1862
2579
4343

query I rowsort
SELECT + - 37 * cor0.col0 + - col2 FROM tab1 AS cor0
----
-165
-2425
-3056

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 2 col0 FROM tab1, tab2 AS cor0, tab0, tab0 AS cor1
----
81 values hashing to 6d1be3904d6870ba21bc766b979d1110

onlyif mysql # use DIV operator for integer division
query I rowsort label-9056
SELECT + ( - col1 ) + col2 + col0 DIV col1 AS col1 FROM tab2
----
-32
-4
25

skipif mysql # not compatible
query I rowsort label-9056
SELECT + ( - col1 ) + col2 + col0 / col1 AS col1 FROM tab2
----
-32
-4
25

query I rowsort
SELECT - col1 + col1 * 99 AS col2 FROM tab2 AS cor0
----
1666
3038
5782

query I rowsort
SELECT + col1 * - col0 * - col2 + + ( + col2 ) FROM tab0
----
3396
664200
68145

query I rowsort
SELECT ALL + col2 * cor0.col1 + + ( + col0 ) * cor0.col0 AS col2 FROM tab1 AS cor0
----
1413
4666
7648

query I rowsort
SELECT 85 * col1 AS col0 FROM tab0 AS cor0
----
7310
7735
8245

query I rowsort
SELECT ALL + ( col0 ) * + cor0.col2 AS col2 FROM tab0 cor0
----
35
7298
792

query I rowsort
SELECT DISTINCT - cor0.col2 + col0 * - cor0.col2 AS col2 FROM tab0 AS cor0
----
-36
-7380
-825

query I rowsort
SELECT DISTINCT - - 46 * col2 FROM tab2 AS cor0
----
1196
1242
1748

query I rowsort
SELECT - col2 * + tab0.col2 + 35 + col0 * col1 FROM tab0
----
1010
1410
3429

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + tab2.col2 * - col0 + ( + col2 * 25 ) col1 FROM tab2
----
-1352
-2014
513

query I rowsort
SELECT ALL 11 + col1 + 81 AS col0 FROM tab2
----
109
123
151

query I rowsort
SELECT + col2 * col1 + - 49 AS col1 FROM tab2 AS cor0
----
1485
597
788

query I rowsort
SELECT ALL - 95 * col2 * col0 FROM tab1 AS cor0
----
-15390
-346560
-729600

query I rowsort
SELECT ALL - + col1 * col2 + + col1 AS col0 FROM tab1 AS cor0
----
-1235
-1378
-560

query I rowsort
SELECT ALL + - 29 + + col1 AS col2 FROM tab0 cor0
----
57
62
68

query I rowsort
SELECT + + cor0.col0 + - col1 + + col0 AS col0 FROM tab0 AS cor0
----
-27
-38
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - col2 * 74 col0 FROM tab2 AS cor0
----
-113516
-47804
-61938

query I rowsort
SELECT DISTINCT col0 * ( + 93 ) FROM tab1 AS cor0
----
279
5952
7440

query I rowsort
SELECT - col1 + col0 * 42 FROM tab1 AS cor0
----
100
2678
3347

query I rowsort
SELECT - 93 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 38f445d95788c7dc754ff688a62df03b

query I rowsort
SELECT DISTINCT col2 + + ( + col2 ) * + col0 AS col2 FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT ALL col1 + + col1 * 66 AS col0 FROM tab1 cor0
----
1742
670
871

onlyif mysql # use DIV operator for integer division
query I rowsort label-9078
SELECT DISTINCT + col2 + + col0 DIV 85 AS col2 FROM tab0
----
1
33
83

skipif mysql # not compatible
query I rowsort label-9078
SELECT DISTINCT + col2 + + col0 / 85 AS col2 FROM tab0
----
1
33
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-9079
SELECT ALL - + col1 + - 55 DIV + col1 FROM tab2 AS cor0
----
-20
-32
-59

skipif mysql # not compatible
query I rowsort label-9079
SELECT ALL - + col1 + - 55 / + col1 FROM tab2 AS cor0
----
-20
-32
-59

query I rowsort
SELECT ALL + col0 + + 49 AS col2 FROM tab0 AS cor0
----
138
73
84

query I rowsort
SELECT ALL 31 * col0 + cor0.col0 AS col0 FROM tab1 AS cor0
----
2048
2560
96

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - CAST ( col0 AS REAL ) * + col2 FROM tab1 cor0
----
-162
-3648
-7680

query I rowsort
SELECT - col1 * col1 - - col1 AS col1 FROM tab1 AS cor0
----
-156
-650
-90

query I rowsort
SELECT - - 3 + 89 AS col0 FROM tab2 cor0
----
92
92
92

query I rowsort
SELECT DISTINCT 50 * - col0 FROM tab1 cor0
----
-150
-3200
-4000

query I rowsort
SELECT ALL + cor0.col1 + 62 FROM tab2 AS cor0
----
121
79
93

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9087
SELECT DISTINCT - + ( col2 ) * col0 * + CAST( - 83 AS SIGNED ) - col0 FROM tab1 cor0
----
13443
302720
637360

skipif mysql # not compatible
query I rowsort label-9087
SELECT DISTINCT - + ( col2 ) * col0 * + CAST ( - 83 AS INTEGER ) - col0 FROM tab1 cor0
----
13443
302720
637360

query I rowsort
SELECT DISTINCT 87 + 74 FROM tab1 cor0
----
161

query I rowsort
SELECT ( + col0 ) + - col1 - tab1.col1 AS col0 FROM tab1
----
-49
44
54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col0 ) * col0 + tab2.col1 - + tab2.col1 col2 FROM tab2
----
-49
-6084
-6241

query I rowsort
SELECT DISTINCT + col2 * 34 * - col2 + - ( col0 ) - col1 FROM tab0
----
-166
-228796
-37136

query I rowsort
SELECT DISTINCT col1 * col1 - - col2 * + col1 FROM tab1
----
1417
2080
670

onlyif mysql # use DIV operator for integer division
query I rowsort label-9093
SELECT DISTINCT col0 DIV 30 - - col2 * + col0 * col1 AS col1 FROM tab2
----
119654
51036
5859

skipif mysql # not compatible
query I rowsort label-9093
SELECT DISTINCT col0 / 30 - - col2 * + col0 * col1 AS col1 FROM tab2
----
119654
51036
5859

onlyif mysql # use DIV operator for integer division
query I rowsort label-9094
SELECT - 27 * - col2 + col0 + col1 * col0 DIV + cor0.col1 AS col0 FROM tab1 AS cor0
----
1464
1667
2752

skipif mysql # not compatible
query I rowsort label-9094
SELECT - 27 * - col2 + col0 + col1 * col0 / + cor0.col1 AS col0 FROM tab1 AS cor0
----
1464
1667
2752

query I rowsort
SELECT DISTINCT - - 60 * - cor0.col1 FROM tab1 AS cor0
----
-1560
-600
-780

query I rowsort
SELECT col2 + - col2 + - 77 * ( col1 * col0 ) AS col2 FROM tab2 AS cor0
----
-103411
-16709
-354354

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 97 col1 FROM tab2
----
97
97
97

query I rowsort
SELECT ALL - 3 + + ( + col2 ) + col2 * col2 * - col1 FROM tab2
----
-22575
-24513
-39861

query I rowsort
SELECT ALL + tab0.col1 * 16 + col2 FROM tab0
----
1409
1538
1553

query I rowsort
SELECT ALL col0 + 96 AS col2 FROM tab2
----
103
174
175

query I rowsort
SELECT col1 - 76 * - col1 AS col0 FROM tab1
----
1001
2002
770

onlyif mysql # use DIV operator for integer division
query I rowsort label-9102
SELECT DISTINCT 64 DIV - col2 FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-9102
SELECT DISTINCT 64 / - col2 FROM tab1 AS cor0
----
-1
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-9103
SELECT - + 16 DIV ( + col1 ) AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9103
SELECT - + 16 / ( + col1 ) AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + + ( - 70 ) + col0 * - 85 * col2 FROM tab1 AS cor0
----
-13840
-310150
-652870

query I rowsort
SELECT ALL col0 * 87 AS col0 FROM tab0 cor0
----
2088
3045
7743

query I rowsort
SELECT DISTINCT + 69 + + cor0.col2 FROM tab0 AS cor0
----
102
151
70

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9107
SELECT - CAST( 12 AS SIGNED ) * col1 * col1 col1 FROM tab2 AS cor0
----
-11532
-3468
-41772

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9107
SELECT - CAST ( 12 AS INTEGER ) * col1 * col1 col1 FROM tab2 AS cor0
----
-11532
-3468
-41772

onlyif mysql # use DIV operator for integer division
query I rowsort label-9108
SELECT ( - col2 ) DIV col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9108
SELECT ( - col2 ) / col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + 84 + col0 * + col1 FROM tab0 AS cor0
----
2148
3479
8183

query I rowsort
SELECT - - col1 * - cor0.col1 * col1 AS col2 FROM tab1 AS cor0
----
-1000
-17576
-2197

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0 AS cor0, tab2 cor1, tab0, tab2 AS cor2
----
3645 values hashing to 0c9c9a26da1b45580001288543ac8dbe

query I rowsort
SELECT - - 32 * - col1 FROM tab0 AS cor0
----
-2752
-2912
-3104

skipif mysql # not compatible
query I rowsort
SELECT CAST ( col1 AS REAL ) + - tab2.col0 * col0 AS col2 FROM tab2
----
-18
-6025
-6224

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9114
SELECT ALL + col2 * CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9114
SELECT ALL + col2 * CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 * - col1 * col2 FROM tab1 AS cor0
----
16224
36504
5700

query I rowsort
SELECT DISTINCT col0 + col1 * 42 FROM tab0 AS cor0
----
3636
3911
4109

query I rowsort
SELECT DISTINCT ( col2 ) + - 34 FROM tab0
----
-1
-33
48

query I rowsort
SELECT + tab0.col2 * tab0.col0 + col1 AS col0 FROM tab0
----
132
7389
878

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9119
SELECT - col2 * - 90 * + ( + col0 ) + - CAST( - col1 AS SIGNED ) FROM tab2
----
17041
182579
270197

skipif mysql # not compatible
query I rowsort label-9119
SELECT - col2 * - 90 * + ( + col0 ) + - CAST ( - col1 AS INTEGER ) FROM tab2
----
17041
182579
270197

query I rowsort
SELECT - + cor0.col2 * 6 AS col0 FROM tab2 AS cor0
----
-156
-162
-228

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9121
SELECT DISTINCT + col0 * CAST( + col1 AS SIGNED ) AS col1 FROM tab1
----
1040
640
78

skipif mysql # not compatible
query I rowsort label-9121
SELECT DISTINCT + col0 * CAST ( + col1 AS INTEGER ) AS col1 FROM tab1
----
1040
640
78

query I rowsort
SELECT DISTINCT + col1 * 31 AS col0 FROM tab2 AS cor0
----
1829
527
961

query I rowsort
SELECT + + col0 + + ( + col0 ) * cor0.col2 AS col0 FROM tab2 AS cor0
----
196
2106
3081

onlyif mysql # use DIV operator for integer division
query I rowsort label-9124
SELECT ALL col1 DIV 9 FROM tab1 AS cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-9124
SELECT ALL col1 / 9 FROM tab1 AS cor0
----
1
1
2

query I rowsort
SELECT DISTINCT - cor1.col1 * + 1 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
-86
-91
-97

query I rowsort
SELECT DISTINCT - - ( - col2 ) * col1 + col2 AS col0 FROM tab2 AS cor0
----
-1508
-608
-810

query I rowsort
SELECT - 43 * - cor0.col2 AS col2 FROM tab2 AS cor0
----
1118
1161
1634

onlyif mysql # use DIV operator for integer division
query I rowsort label-9128
SELECT - tab1.col2 * col0 DIV + col2 FROM tab1
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-9128
SELECT - tab1.col2 * col0 / + col2 FROM tab1
----
-3
-64
-80

query I rowsort
SELECT - col1 * - col2 * - col0 + + col2 AS col0 FROM tab1 AS cor0
----
-36423
-4158
-99744

query I rowsort
SELECT DISTINCT - 15 AS col2 FROM tab2, tab0 AS cor0
----
-15

onlyif mysql # use DIV operator for integer division
query I rowsort label-9131
SELECT ( + col2 ) DIV ( - col1 ) AS col2 FROM tab1
----
-2
-5
-7

skipif mysql # not compatible
query I rowsort label-9131
SELECT ( + col2 ) / ( - col1 ) AS col2 FROM tab1
----
-2
-5
-7

query I rowsort
SELECT + col0 - + ( col0 ) * + col0 FROM tab1 AS cor0
----
-4032
-6
-6320

onlyif mysql # use DIV operator for integer division
query I rowsort label-9133
SELECT + col0 DIV - col2 + 83 AS col1 FROM tab1 AS cor0
----
82
83
83

skipif mysql # not compatible
query I rowsort label-9133
SELECT + col0 / - col2 + 83 AS col1 FROM tab1 AS cor0
----
82
83
83

query I rowsort
SELECT col0 + 67 FROM tab0 cor0
----
102
156
91

onlyif mysql # use DIV operator for integer division
query I rowsort label-9135
SELECT ALL + col0 DIV 45 col0 FROM tab1 AS cor0
----
0
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9135
SELECT ALL + col0 / 45 col0 FROM tab1 AS cor0
----
0
1
1

query I rowsort
SELECT DISTINCT - + col2 + col2 FROM tab1 cor0
----
0

query I rowsort
SELECT - col2 * + cor0.col0 + - 47 AS col2 FROM tab1 AS cor0
----
-209
-3695
-7727

query I rowsort
SELECT - + col0 * ( + col0 ) + cor0.col2 FROM tab1 AS cor0
----
-4039
-6304
45

query I rowsort
SELECT + col0 * 23 * col1 AS col2 FROM tab0 AS cor0
----
186277
47472
78085

query I rowsort
SELECT col2 + 43 * - ( col0 ) * + cor0.col1 FROM tab2 AS cor0
----
-197860
-57711
-9304

onlyif mysql # use DIV operator for integer division
query I rowsort label-9141
SELECT - col2 DIV + col0 + 47 + - col1 AS col1 FROM tab0 AS cor0
----
-40
-44
-50

skipif mysql # not compatible
query I rowsort label-9141
SELECT - col2 / + col0 + 47 + - col1 AS col1 FROM tab0 AS cor0
----
-40
-44
-50

query I rowsort
SELECT DISTINCT + + col0 * col0 * - ( - col0 ) AS col2 FROM tab2 AS cor0
----
343
474552
493039

onlyif mysql # use DIV operator for integer division
query I rowsort label-9143
SELECT ALL - + 84 DIV col2 AS col2 FROM tab0 AS cor0
----
-1
-2
-84

skipif mysql # not compatible
query I rowsort label-9143
SELECT ALL - + 84 / col2 AS col2 FROM tab0 AS cor0
----
-1
-2
-84

query I rowsort
SELECT ALL - - 13 AS col2 FROM tab0 AS cor0
----
13
13
13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col2 + - ( 67 ) col2 FROM tab2 AS cor0
----
1467
579
770

query I rowsort
SELECT DISTINCT - - col2 * + col1 + - 26 FROM tab0 cor0
----
2812
71
7436

query I rowsort
SELECT + cor0.col1 * ( + col0 ) + - col2 AS col1 FROM tab1 AS cor0
----
24
583
944

query I rowsort
SELECT DISTINCT + col1 * - 22 AS col0 FROM tab0 AS cor0
----
-1892
-2002
-2134

query I rowsort
SELECT ALL col1 + - col1 * col1 FROM tab0 AS cor0
----
-7310
-8190
-9312

onlyif mysql # use DIV operator for integer division
query I rowsort label-9150
SELECT ALL 37 + tab2.col1 * ( + col0 ) DIV col1 FROM tab2
----
115
116
44

skipif mysql # not compatible
query I rowsort label-9150
SELECT ALL 37 + tab2.col1 * ( + col0 ) / col1 FROM tab2
----
115
116
44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - col0 ) + + 72 col0 FROM tab2
----
-6
-7
65

query I rowsort
SELECT col0 * - ( - col1 * col0 ) AS col1 FROM tab0 AS cor0
----
118825
49536
720811

query I rowsort
SELECT DISTINCT col2 * cor0.col2 + + col1 * col0 AS col1 FROM tab2 AS cor0
----
2787
5278
946

query I rowsort
SELECT - col1 * col1 * - col2 FROM tab1 AS cor0
----
16224
36504
5700

query I rowsort
SELECT DISTINCT col0 - col0 * - 33 AS col1 FROM tab0 AS cor0
----
1190
3026
816

query I rowsort
SELECT DISTINCT + cor0.col2 * + ( + ( col1 ) ) FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT ( - col2 * + ( col1 ) ) + + col0 AS col2 FROM tab2
----
-1456
-567
-830

query I rowsort
SELECT ALL col2 + - col2 + tab0.col0 AS col1 FROM tab0
----
24
35
89

query I rowsort
SELECT col1 - + col1 * + ( + col0 ) * - col2 AS col0 FROM tab0
----
3492
664209
68198

query I rowsort
SELECT DISTINCT + - cor0.col0 * - col2 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT ALL col0 + 44 * col2 FROM tab0 AS cor0
----
1476
3697
79

query I rowsort
SELECT + 5 + + col2 * cor0.col2 FROM tab2 AS cor0
----
1449
681
734

query I rowsort
SELECT DISTINCT + + 30 + - col1 FROM tab2 AS cor0
----
-1
-29
13

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9164
SELECT CAST( NULL AS SIGNED ) + cor0.col0 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9164
SELECT CAST ( NULL AS INTEGER ) + cor0.col0 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 66 - + cor0.col0 FROM tab1 AS cor0
----
-14
2
63

query I rowsort
SELECT DISTINCT - col0 + - 6 FROM tab0 AS cor0
----
-30
-41
-95

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9167
SELECT + CAST( ( col0 ) AS SIGNED ) * 49 + col2 * + cor0.col2 + - col1 AS col0 FROM tab2 cor0
----
1041
4439
5298

skipif mysql # not compatible
query I rowsort label-9167
SELECT + CAST ( ( col0 ) AS INTEGER ) * 49 + col2 * + cor0.col2 + - col1 AS col0 FROM tab2 cor0
----
1041
4439
5298

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * cor0.col0 + col0 * - 50 * 48 - + col2 col0 FROM tab1 AS cor0
----
-149561
-185696
-7245

query I rowsort
SELECT tab1.col1 + 45 FROM tab1, tab0 AS cor0
----
9 values hashing to c646207615c2745ffbc171cd4ca4c906

onlyif mysql # use DIV operator for integer division
query I rowsort label-9170
SELECT DISTINCT col1 + ( + col2 ) + + ( + col1 ) DIV - col1 FROM tab1
----
108
66
79

skipif mysql # not compatible
query I rowsort label-9170
SELECT DISTINCT col1 + ( + col2 ) + + ( + col1 ) / - col1 FROM tab1
----
108
66
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-9171
SELECT - col0 DIV cor0.col0 - col2 FROM tab0 AS cor0
----
-2
-34
-83

skipif mysql # not compatible
query I rowsort label-9171
SELECT - col0 / cor0.col0 - col2 FROM tab0 AS cor0
----
-2
-34
-83

query I rowsort
SELECT - - ( - 90 ) * - col0 * col1 AS col0 FROM tab0 AS cor0
----
185760
305550
728910

query I rowsort
SELECT DISTINCT col1 - + tab2.col1 AS col0 FROM tab2
----
0

query I rowsort
SELECT DISTINCT - ( 34 ) - - col0 AS col2 FROM tab0
----
-10
1
55

query I rowsort
SELECT DISTINCT + col1 + - col0 * col2 AS col2 FROM tab1
----
-136
-3638
-7667

onlyif mysql # use DIV operator for integer division
query I rowsort label-9176
SELECT + 85 DIV col1 FROM tab2
----
1
2
5

skipif mysql # not compatible
query I rowsort label-9176
SELECT + 85 / col1 FROM tab2
----
1
2
5

onlyif mysql # use DIV operator for integer division
query I rowsort label-9177
SELECT DISTINCT 62 DIV col1 - col0 AS col1 FROM tab2
----
-5
-76
-77

skipif mysql # not compatible
query I rowsort label-9177
SELECT DISTINCT 62 / col1 - col0 AS col1 FROM tab2
----
-5
-76
-77

query I rowsort
SELECT col2 * - col0 - - 79 FROM tab1 AS cor0
----
-3569
-7601
-83

query I rowsort
SELECT ALL col0 * - col1 * col2 + 62 AS col1 FROM tab1
----
-36418
-4150
-99778

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9180
SELECT ALL + CAST( NULL AS SIGNED ) * - col2 + col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9180
SELECT ALL + CAST ( NULL AS INTEGER ) * - col2 + col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 21 + - col1 * tab2.col2 FROM tab2
----
-1555
-667
-858

query I rowsort
SELECT ALL col1 + - col0 * + col1 AS col0 FROM tab1
----
-1027
-52
-630

query I rowsort
SELECT ALL + ( + 53 ) + col2 FROM tab2
----
79
80
91

query I rowsort
SELECT tab0.col2 - - cor0.col2 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to a451dbe509e87d1600234f39388c7bd3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 91 * - 45 + col2 col2 FROM tab1
----
-3999
-4038
-4041

onlyif mysql # use DIV operator for integer division
query I rowsort label-9186
SELECT ALL - 20 + + 78 * col0 DIV + ( + 5 ) FROM tab1
----
1228
26
978

skipif mysql # not compatible
query I rowsort label-9186
SELECT ALL - 20 + + 78 * col0 / + ( + 5 ) FROM tab1
----
1228
26
978

query I rowsort
SELECT - - 87 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

query I rowsort
SELECT DISTINCT - 28 + col0 AS col1 FROM tab0 AS cor0
----
-4
61
7

query I rowsort
SELECT ALL - + col2 + + col0 * + ( col1 ) AS col2 FROM tab1 AS cor0
----
24
583
944

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 42 + col0 * - ( - ( + col0 ) * 42 + 78 ) col2 FROM tab1 AS cor0
----
102
166998
262518

query I rowsort
SELECT 43 * cor0.col1 + - 88 FROM tab2 cor0
----
1245
2449
643

query I rowsort
SELECT DISTINCT + + ( - cor0.col0 ) + col1 AS col2 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT ALL - - col0 * col0 + + col1 - + col0 AS col0 FROM tab1 AS cor0
----
32
4042
6333

query I rowsort
SELECT ALL - col2 - + 40 * col0 AS col0 FROM tab1 AS cor0
----
-174
-2617
-3296

query I rowsort
SELECT DISTINCT - + cor0.col0 * - col2 AS col2 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT ALL col1 * - 42 - 31 AS col2 FROM tab0 cor0
----
-3643
-3853
-4105

onlyif mysql # use DIV operator for integer division
query I rowsort label-9197
SELECT DISTINCT - col1 DIV + col0 AS col1 FROM tab0 AS cor0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-9197
SELECT DISTINCT - col1 / + col0 AS col1 FROM tab0 AS cor0
----
-1
-2
-3

onlyif mysql # use DIV operator for integer division
query I rowsort label-9198
SELECT ALL - col1 DIV col0 + - col0 AS col2 FROM tab0 AS cor0
----
-27
-37
-90

skipif mysql # not compatible
query I rowsort label-9198
SELECT ALL - col1 / col0 + - col0 AS col2 FROM tab0 AS cor0
----
-27
-37
-90

query I rowsort
SELECT ALL + col0 * ( cor0.col0 ) + - cor0.col0 AS col2 FROM tab1 AS cor0
----
4032
6
6320

query I rowsort
SELECT + col0 * ( - col0 ) AS col1 FROM tab1 cor0
----
-4096
-6400
-9

query I rowsort
SELECT DISTINCT - cor0.col1 + 58 FROM tab1 AS cor0
----
32
45
48

query I rowsort
SELECT + + col1 * + ( - 62 ) AS col2 FROM tab0 AS cor0
----
-5332
-5642
-6014

query I rowsort
SELECT DISTINCT - - 3 * ( + col1 ) + - ( col1 ) + cor0.col0 AS col0 FROM tab1 AS cor0
----
106
55
84

query I rowsort
SELECT DISTINCT + 68 * col1 * cor0.col0 - + col1 FROM tab0 AS cor0
----
140266
230763
550641

onlyif mysql # use DIV operator for integer division
query I rowsort label-9205
SELECT ALL cor0.col1 + col0 + col2 DIV col2 AS col2 FROM tab0 cor0
----
111
133
181

skipif mysql # not compatible
query I rowsort label-9205
SELECT ALL cor0.col1 + col0 + col2 / col2 AS col2 FROM tab0 cor0
----
111
133
181

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9206
SELECT ALL - + CAST( NULL AS SIGNED ) + col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9206
SELECT ALL - + CAST ( NULL AS INTEGER ) + col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 96 * - cor0.col1 FROM tab2, tab2 AS cor0
----
-1632
-2976
-5664

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9208
SELECT ALL col1 + + col1 * - col1 + ( + col1 + col0 * - CAST( col1 AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
-12610
-16198
-9288

skipif mysql # not compatible
query I rowsort label-9208
SELECT ALL col1 + + col1 * - col1 + ( + col1 + col0 * - CAST ( col1 AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
-12610
-16198
-9288

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9209
SELECT ALL - + 29 * - col1 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9209
SELECT ALL - + 29 * - col1 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col0 + col2 - - cor0.col2 AS col2 FROM tab1 AS cor0
----
105
112
50

query I rowsort
SELECT ALL + + 39 * - col1 + col0 FROM tab2 AS cor0
----
-1202
-2223
-584

query I rowsort
SELECT - + col0 * - cor0.col2 + - 80 * col2 * col0 + + cor0.col1 * col2 AS col1 FROM tab2 cor0
----
-14094
-158678
-236512

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * + col2 col1 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT + col2 * + cor0.col2 + + col1 AS col2 FROM tab1 AS cor0
----
2942
3259
9229

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 AS cor0, tab0 cor1, tab1, tab0 AS cor2
----
3645 values hashing to 2566f3fa788816c8bfc482e730aaed74

query I rowsort
SELECT DISTINCT - col0 * - 42 FROM tab1 AS cor0
----
126
2688
3360

query I rowsort
SELECT ALL + + 97 * - 83 FROM tab0 cor0
----
-8051
-8051
-8051

query I rowsort
SELECT col1 + 28 + - col1 AS col2 FROM tab2 AS cor0
----
28
28
28

query I rowsort
SELECT 87 * - 67 AS col2 FROM tab1, tab2 cor0, tab2 AS cor1, tab1 AS cor2
----
81 values hashing to 4ab3b187014ad46b0352fd26818e1d52

query I rowsort
SELECT ALL 90 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 96f7a90428db93f472e0d219bab64853

query I rowsort
SELECT 71 + - cor0.col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 459e5ea6674d84f79aea35bc44cc428e

query I rowsort
SELECT - ( + col1 ) * + col2 FROM tab0
----
-2838
-7462
-97

query I rowsort
SELECT - col0 - - 97 * - col1 FROM tab1 AS cor0
----
-1034
-1341
-2525

query I rowsort
SELECT DISTINCT + + 53 * cor0.col2 + - col2 AS col0 FROM tab2 AS cor0
----
1352
1404
1976

query I rowsort
SELECT + + ( - col2 ) + col0 AS col2 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT - cor0.col2 * - col1 * 90 AS col2 FROM tab1 cor0
----
112320
126360
51300

query I rowsort
SELECT ALL - ( - col0 ) + col1 FROM tab1
----
29
74
93

query I rowsort
SELECT ALL - col2 * col0 + col0 + ( - col1 * col0 ) AS col0 FROM tab2
----
-399
-4266
-6552

query I rowsort
SELECT - - col0 * col0 + + ( + cor0.col2 + col2 ) * - 69 AS col2 FROM tab0 AS cor0
----
-3395
-3978
1087

query I rowsort
SELECT - col0 * col1 + col0 + 1 AS col0 FROM tab2 AS cor0
----
-1263
-209
-4523

query I rowsort
SELECT ALL - 21 FROM tab0, tab0 AS cor0
----
9 values hashing to 631fbd1fd929405aba54a22c2a06c757

query I rowsort
SELECT cor0.col1 FROM tab0, tab2 AS cor0, tab2 cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

query I rowsort
SELECT col2 + + 75 * - tab1.col0 + col1 * - col2 AS col2 FROM tab1
----
-1575
-5313
-7152

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9234
SELECT - col2 + - col2 * CAST( NULL AS SIGNED ) + col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9234
SELECT - col2 + - col2 * CAST ( NULL AS INTEGER ) + col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 75 * tab0.col2 FROM tab0
----
-2475
-6150
-75

query I rowsort
SELECT ALL - 94 AS col2 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 7eeab220fc6bbc2fb3fa4aef8600159f

query I rowsort
SELECT DISTINCT - col0 * + 76 AS col0 FROM tab2 AS cor0
----
-532
-5928
-6004

query I rowsort
SELECT - + col2 + - col2 * col2 FROM tab2 cor0
----
-1482
-702
-756

query I rowsort
SELECT 37 + - col1 * col1 + col2 AS col1 FROM tab2
----
-214
-3418
-897

onlyif mysql # use DIV operator for integer division
query I rowsort label-9240
SELECT ( - cor0.col1 ) DIV - ( - col0 ) FROM tab0 AS cor0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-9240
SELECT ( - cor0.col1 ) / - ( - col0 ) FROM tab0 AS cor0
----
-1
-2
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 15 * - tab2.col0 col0 FROM tab2
----
105
1170
1185

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9242
SELECT + CAST( NULL AS DECIMAL ) AS col0 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-9242
SELECT + CAST ( NULL AS REAL ) AS col0 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT - 51 AS col0 FROM tab0 cor0
----
-51
-51
-51

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + CAST ( - 48 AS REAL ) AS col0 FROM tab2, tab1 AS cor0
----
-48

query I rowsort
SELECT DISTINCT + 3 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
3

query I rowsort
SELECT ALL 0 * col2 * col1 AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL + 96 * - tab2.col2 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 43a49b085c3ca9606dadb69c605259c4

query I rowsort
SELECT 1 * col2 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT - + ( - cor0.col1 ) * cor0.col1 - - 67 AS col0 FROM tab1 cor0
----
167
236
743

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col0 ) + + cor0.col0 col1 FROM tab1 AS cor0
----
128
160
6

onlyif mysql # use DIV operator for integer division
query I rowsort label-9251
SELECT - col1 DIV cor0.col2 - col1 FROM tab1 AS cor0
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-9251
SELECT - col1 / cor0.col2 - col1 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT - 21 * + ( cor0.col2 ) + - col2 * + col0 * + col2 + - 85 AS col1 FROM tab1 AS cor0
----
-209218
-739381
-9967

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + col0 + - col0 * - col1 col1 FROM tab0
----
16020
2640
4620

query I rowsort
SELECT ALL - tab0.col0 - + 54 * tab0.col2 AS col1 FROM tab0
----
-1806
-4517
-89

onlyif mysql # use DIV operator for integer division
query I rowsort label-9255
SELECT - - col2 DIV + 3 - - col2 FROM tab0 AS cor0
----
1
109
44

skipif mysql # not compatible
query I rowsort label-9255
SELECT - - col2 / + 3 - - col2 FROM tab0 AS cor0
----
1
109
44

query I rowsort
SELECT - - col0 - - 79 FROM tab2 cor0
----
157
158
86

query I rowsort
SELECT DISTINCT - + col1 - + ( + col2 ) FROM tab0 AS cor0
----
-119
-173
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 42 col0 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 325aada2239b6fe1fe2d843515ae8c5e

query I rowsort
SELECT + col2 * - col0 - col2 * + col1 FROM tab0 AS cor0
----
-132
-14760
-3630

query I rowsort
SELECT - - col0 * - col0 + - col2 FROM tab2 AS cor0
----
-6110
-6279
-76

query I rowsort
SELECT ALL + col2 * - col0 * - col0 - ( col2 + col2 ) * + cor0.col2 AS col1 FROM tab0 cor0
----
1223
16830
636074

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - col1 ) col1 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT DISTINCT - + cor0.col0 * 13 + - col2 FROM tab1 AS cor0
----
-1136
-889
-93

query I rowsort
SELECT ALL + cor0.col0 + cor0.col1 * - col1 FROM tab1 AS cor0
----
-36
-673
-89

query I rowsort
SELECT ALL - ( cor0.col1 ) - + col2 AS col0 FROM tab0 AS cor0
----
-119
-173
-98

query I rowsort
SELECT DISTINCT col0 + + 31 * col1 AS col0 FROM tab2 AS cor0
----
1907
606
968

query I rowsort
SELECT + col0 - - ( col1 ) * col2 AS col1 FROM tab0
----
132
2862
7551

query I rowsort
SELECT DISTINCT col2 - tab2.col0 * + col1 AS col1 FROM tab2
----
-1305
-190
-4576

query I rowsort
SELECT + + 46 * - 77 + col0 AS col2 FROM tab1 AS cor0
----
-3462
-3478
-3539

query I rowsort
SELECT + 92 + col1 * + col1 AS col2 FROM tab0 AS cor0
----
7488
8373
9501

onlyif mysql # use DIV operator for integer division
query I rowsort label-9271
SELECT DISTINCT - 56 DIV col0 AS col1 FROM tab2 AS cor0
----
-8
0

skipif mysql # not compatible
query I rowsort label-9271
SELECT DISTINCT - 56 / col0 AS col1 FROM tab2 AS cor0
----
-8
0

query I rowsort
SELECT - + 6 * - col0 AS col2 FROM tab0 AS cor0
----
144
210
534

query I rowsort
SELECT ALL 3 + col1 * + col1 AS col0 FROM tab0 AS cor0
----
7399
8284
9412

query I rowsort
SELECT DISTINCT - cor0.col0 * + col0 + ( col2 ) FROM tab0 cor0
----
-1224
-543
-7839

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 + col0 col2 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT ALL 11 * cor0.col1 * cor0.col0 + col0 * col2 + + ( - 7 ) AS col0 FROM tab2 AS cor0
----
17768
2569
52643

query I rowsort
SELECT DISTINCT 16 + col1 + col1 FROM tab0 AS cor0
----
188
198
210

onlyif mysql # use DIV operator for integer division
query I rowsort label-9278
SELECT - + col0 DIV 9 FROM tab1 AS cor0
----
-7
-8
0

skipif mysql # not compatible
query I rowsort label-9278
SELECT - + col0 / 9 FROM tab1 AS cor0
----
-7
-8
0

query I rowsort
SELECT col2 * + col0 - col2 FROM tab2 cor0
----
162
2002
2964

query I rowsort
SELECT + col1 * 62 AS col1 FROM tab1 AS cor0
----
1612
620
806

onlyif mysql # use DIV operator for integer division
query I rowsort label-9281
SELECT ALL col0 * cor0.col0 + + col2 DIV - col1 + ( 90 ) FROM tab0 AS cor0
----
1315
666
8011

skipif mysql # not compatible
query I rowsort label-9281
SELECT ALL col0 * cor0.col0 + + col2 / - col1 + ( 90 ) FROM tab0 AS cor0
----
1315
666
8011

query I rowsort
SELECT DISTINCT + col1 + + 81 * col0 + col2 AS col1 FROM tab1 cor0
----
323
5251
6589

onlyif mysql # use DIV operator for integer division
query I rowsort label-9283
SELECT ALL - - col2 DIV ( + col0 ) AS col1 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9283
SELECT ALL - - col2 / ( + col0 ) AS col1 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT + col0 + col2 * ( col0 * + col1 ) AS col2 FROM tab2 cor0
----
119730
51113
5866

query I rowsort
SELECT ALL - col2 * - 36 FROM tab0 AS cor0
----
1188
2952
36

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9286
SELECT - col0 * + CAST( NULL AS SIGNED ) * - col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9286
SELECT - col0 * + CAST ( NULL AS INTEGER ) * - col0 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 82 * - col2 + + col0 AS col2 FROM tab1
----
4431
4738
7952

query I rowsort
SELECT ALL - 39 FROM tab0 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab2 AS cor2
----
81 values hashing to fe3460a5258986a2d83e1ea75c1e275e

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 + + cor0.col1 col1 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT cor0.col0 * col2 * ( col1 ) FROM tab2 cor0
----
119652
51034
5859

query I rowsort
SELECT - col0 + + ( + 2 ) * col0 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT - col0 * - tab1.col2 * - tab1.col2 FROM tab1
----
-207936
-737280
-8748

query I rowsort
SELECT - col0 * 61 + + col2 * col2 * + col1 AS col2 FROM tab2
----
19729
22172
35126

query I rowsort
SELECT ALL 90 + col0 * tab0.col1 FROM tab0
----
2154
3485
8189

onlyif mysql # use DIV operator for integer division
query I rowsort label-9295
SELECT DISTINCT - + cor0.col2 DIV + col0 + cor0.col2 FROM tab2 AS cor0
----
24
26
38

skipif mysql # not compatible
query I rowsort label-9295
SELECT DISTINCT - + cor0.col2 / + col0 + cor0.col2 FROM tab2 AS cor0
----
24
26
38

query I rowsort
SELECT + 23 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 546d49aa433406dd83ea19885588e658

query I rowsort
SELECT + - cor0.col2 * - col2 AS col0 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT DISTINCT 85 AS col2 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
85

query I rowsort
SELECT DISTINCT - 24 + col0 FROM tab2 AS cor0
----
-17
54
55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 1 + col0 col0 FROM tab2
----
79
8
80

query I rowsort
SELECT ALL + col0 * col1 + - 93 * - ( + col2 ) FROM tab2 AS cor0
----
2728
4877
7020

query I rowsort
SELECT ALL + col1 + col1 * - 63 AS col1 FROM tab2 AS cor0
----
-1054
-1922
-3658

onlyif mysql # use DIV operator for integer division
query I rowsort label-9303
SELECT col1 DIV 49 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9303
SELECT col1 / 49 FROM tab2 AS cor0
----
0
0
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-9304
SELECT - cor0.col2 + 29 DIV cor0.col1 FROM tab0 AS cor0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-9304
SELECT - cor0.col2 + 29 / cor0.col1 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT - - 97 * - col0 + col1 FROM tab2 AS cor0
----
-648
-7507
-7646

query I rowsort
SELECT DISTINCT 78 FROM tab1, tab0 cor0, tab0 AS cor1
----
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-9307
SELECT - cor0.col0 + - 60 DIV - col1 col1 FROM tab2 AS cor0
----
-6
-76
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9307
SELECT - cor0.col0 + - 60 / - col1 col1 FROM tab2 AS cor0
----
-6
-76
-77

query I rowsort
SELECT + cor0.col0 * col1 + + col0 * col1 + col2 AS col2 FROM tab0 AS cor0
----
16280
4161
6791

onlyif mysql # use DIV operator for integer division
query I rowsort label-9309
SELECT col2 DIV + 75 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9309
SELECT col2 / + 75 AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT + tab0.col1 * - 41 FROM tab0
----
-3526
-3731
-3977

query I rowsort
SELECT ALL - col0 + 86 AS col1 FROM tab0
----
-3
51
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + 85 col2 FROM tab1 cor0
----
139
142
181

query I rowsort
SELECT 24 + - 99 * cor0.col0 AS col1 FROM tab2 AS cor0
----
-669
-7698
-7797

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9314
SELECT + col0 * + CAST( NULL AS DECIMAL ) - - col0 col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9314
SELECT + col0 * + CAST ( NULL AS REAL ) - - col0 col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 0 + - col0 AS col0 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT DISTINCT - 87 FROM tab0 cor0
----
-87

query I rowsort
SELECT ALL - col2 + - col2 * cor0.col0 FROM tab1 AS cor0
----
-216
-3705
-7776

query I rowsort
SELECT - col2 * + col1 * col0 - - col0 AS col1 FROM tab0 AS cor0
----
-3360
-664029
-68088

query I rowsort
SELECT DISTINCT + col2 * 80 + col2 AS col1 FROM tab2 AS cor0
----
2106
2187
3078

query I rowsort
SELECT DISTINCT + col0 * - 32 + + cor0.col2 * col2 FROM tab2 AS cor0
----
-1084
-1820
505

query I rowsort
SELECT col0 * - 55 FROM tab0
----
-1320
-1925
-4895

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * - 34 * + tab0.col1 col2 FROM tab0
----
-251464
-281554
-319906

onlyif mysql # use DIV operator for integer division
query I rowsort label-9323
SELECT DISTINCT + col1 + + col1 DIV col0 + + col2 AS col2 FROM tab1 AS cor0
----
109
67
88

skipif mysql # not compatible
query I rowsort label-9323
SELECT DISTINCT + col1 + + col1 / col0 + + col2 AS col2 FROM tab1 AS cor0
----
109
67
88

query I rowsort
SELECT - - col0 * - col2 - + col1 AS col2 FROM tab1 AS cor0
----
-188
-3658
-7693

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9325
SELECT + + col2 * + CAST( NULL AS SIGNED ) + col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9325
SELECT + + col2 * + CAST ( NULL AS INTEGER ) + col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + cor0.col0 + + col0 * col1 FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT + col0 * col1 - col0 FROM tab0 AS cor0
----
2040
3360
8010

query I rowsort
SELECT + + 72 * - col1 + - col1 AS col0 FROM tab0 AS cor0
----
-6278
-6643
-7081

onlyif mysql # use DIV operator for integer division
query I rowsort label-9329
SELECT DISTINCT + + 51 DIV col0 - col1 * cor0.col0 AS col2 FROM tab2 AS cor0
----
-1343
-210
-4602

skipif mysql # not compatible
query I rowsort label-9329
SELECT DISTINCT + + 51 / col0 - col1 * cor0.col0 AS col2 FROM tab2 AS cor0
----
-1343
-210
-4602

query I rowsort
SELECT ALL - 24 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 797d0f7c145f8ac623924448c714bbcc

query I rowsort
SELECT - col2 * col0 - + col0 AS col0 FROM tab0 AS cor0
----
-70
-7387
-816

query I rowsort
SELECT ALL - ( + col1 ) * + col2 + cor0.col2 - - col2 FROM tab1 AS cor0
----
-1056
-1296
-456

query I rowsort
SELECT + - 40 AS col0 FROM tab0 AS cor0
----
-40
-40
-40

query I rowsort
SELECT ( col0 ) + - 54 FROM tab0
----
-19
-30
35

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9335
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - 60 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9335
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - 60 FROM tab1
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-9336
SELECT + - col1 + + cor0.col0 DIV ( - col2 ) FROM tab0 AS cor0
----
-132
-86
-92

skipif mysql # not compatible
query I rowsort label-9336
SELECT + - col1 + + cor0.col0 / ( - col2 ) FROM tab0 AS cor0
----
-132
-86
-92

query I rowsort
SELECT ALL + col0 * 33 FROM tab1 AS cor0
----
2112
2640
99

query I rowsort
SELECT DISTINCT - 66 * + col0 * + col0 AS col2 FROM tab1
----
-270336
-422400
-594

query I rowsort
SELECT DISTINCT 87 AS col1 FROM tab1, tab2, tab1 AS cor0
----
87

query I rowsort
SELECT ALL - col2 * cor0.col0 + cor0.col2 * - cor0.col0 * col1 FROM tab0 AS cor0
----
-3430
-671416
-68904

onlyif mysql # use DIV operator for integer division
query I rowsort label-9341
SELECT ALL + cor0.col1 DIV - 61 + + col0 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-9341
SELECT ALL + cor0.col1 / - 61 + + col0 FROM tab1 AS cor0
----
3
64
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9342
SELECT + cor0.col1 * - CAST( - cor0.col1 AS SIGNED ) FROM tab2 AS cor0
----
289
3481
961

skipif mysql # not compatible
query I rowsort label-9342
SELECT + cor0.col1 * - CAST ( - cor0.col1 AS INTEGER ) FROM tab2 AS cor0
----
289
3481
961

onlyif mysql # use DIV operator for integer division
query I rowsort label-9343
SELECT ALL cor0.col2 * 98 DIV col0 col1 FROM tab0 AS cor0
----
134
2
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9343
SELECT ALL cor0.col2 * 98 / col0 col1 FROM tab0 AS cor0
----
134
2
90

query I rowsort
SELECT DISTINCT - col1 * - col1 - col0 AS col0 FROM tab2 AS cor0
----
210
3403
954

query I rowsort
SELECT + 25 + col2 FROM tab0
----
107
26
58

query I rowsort
SELECT ALL col2 * col1 * ( col0 ) FROM tab1
----
36480
4212
99840

query I rowsort
SELECT DISTINCT - col0 * col2 + ( 23 ) AS col2 FROM tab0 cor0
----
-12
-7275
-769

query I rowsort
SELECT - ( + col2 ) * - col2 FROM tab2 AS cor0
----
1444
676
729

onlyif mysql # use DIV operator for integer division
query I rowsort label-9349
SELECT ALL col2 + tab2.col0 DIV CAST( - col0 AS SIGNED ) + col1 AS col1 FROM tab2
----
54
57
84

skipif mysql # not compatible
query I rowsort label-9349
SELECT ALL col2 + tab2.col0 / CAST ( - col0 AS INTEGER ) + col1 AS col1 FROM tab2
----
54
57
84

onlyif mysql # use DIV operator for integer division
query I rowsort label-9350
SELECT + 62 DIV tab1.col0 FROM tab1
----
0
0
20

skipif mysql # not compatible
query I rowsort label-9350
SELECT + 62 / tab1.col0 FROM tab1
----
0
0
20

query I rowsort
SELECT ALL ( + col2 * - col0 ) + - tab2.col2 FROM tab2
----
-2054
-216
-3040

query I rowsort
SELECT - 68 AS col0 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 6fbba7db5bccb533a35aa5125a231f88

query I rowsort
SELECT - col1 * col2 + - ( col0 ) + + col2 * - col2 FROM tab0
----
-133
-14275
-3951

query I rowsort
SELECT 62 * col0 AS col1 FROM tab2
----
434
4836
4898

query I rowsort
SELECT DISTINCT + - tab2.col2 AS col1 FROM tab2, tab1, tab1 AS cor0
----
-26
-27
-38

query I rowsort
SELECT DISTINCT tab1.col0 * col0 + + col0 FROM tab1
----
12
4160
6480

query I rowsort
SELECT DISTINCT 93 - - col1 FROM tab0 AS cor0
----
179
184
190

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9358
SELECT - + col2 * - col0 + CAST( ( - col0 ) AS SIGNED ) FROM tab2 AS cor0
----
182
1950
2923

skipif mysql # not compatible
query I rowsort label-9358
SELECT - + col2 * - col0 + CAST ( ( - col0 ) AS INTEGER ) FROM tab2 AS cor0
----
182
1950
2923

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9359
SELECT DISTINCT - - cor0.col0 / cor0.col0 + + CAST( NULL AS SIGNED ) * col0 * col0 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9359
SELECT DISTINCT - - cor0.col0 / cor0.col0 + + CAST ( NULL AS INTEGER ) * col0 * col0 AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + col1 * cor0.col1 + - col1 * col0 * - col0 FROM tab2 AS cor0
----
106386
2480
362437

query I rowsort
SELECT 85 * col1 AS col2 FROM tab0 AS cor0
----
7310
7735
8245

query I rowsort
SELECT ALL col2 * + col2 + - col1 FROM tab0 AS cor0
----
-96
1003
6633

query I rowsort
SELECT ALL + 23 * + cor0.col0 AS col1 FROM tab0 AS cor0
----
2047
552
805

query I rowsort
SELECT - col0 * ( col0 ) * + col0 AS col0 FROM tab1
----
-262144
-27
-512000

query I rowsort
SELECT ALL col1 * ( + col1 ) + col1 AS col2 FROM tab2
----
306
3540
992

query I rowsort
SELECT ALL col0 + - 88 * 66 FROM tab2
----
-5729
-5730
-5801

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - col1 + col1 col0 FROM tab0
----
-1978
-3298
-8008

query I rowsort
SELECT col0 * - 76 * col1 FROM tab1
----
-48640
-5928
-79040

query I rowsort
SELECT + tab0.col2 FROM tab0, tab2, tab1 cor0
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT ALL col2 * 28 * 95 FROM tab1
----
143640
151620
255360

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9371
SELECT - col2 + col2 + + col0 * col1 * - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9371
SELECT - col2 + col2 + + col0 * col1 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 82 + + col0 col0 FROM tab2 AS cor0
----
-3
-4
-75

query I rowsort
SELECT - ( - col1 ) * cor0.col0 AS col1 FROM tab1 cor0
----
1040
640
78

query I rowsort
SELECT DISTINCT + 81 + 78 FROM tab2 cor0
----
159

query I rowsort
SELECT DISTINCT + + 47 * + col0 AS col1 FROM tab1 AS cor0
----
141
3008
3760

query I rowsort
SELECT ALL + + col2 * + cor0.col2 + - col2 FROM tab1 AS cor0
----
2862
3192
9120

onlyif mysql # use DIV operator for integer division
query I rowsort label-9377
SELECT DISTINCT + 79 + + col0 DIV + col0 AS col0 FROM tab1 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-9377
SELECT DISTINCT + 79 + + col0 / + col0 AS col0 FROM tab1 AS cor0
----
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9378
SELECT ALL CAST( NULL AS SIGNED ) + cor0.col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9378
SELECT ALL CAST ( NULL AS INTEGER ) + cor0.col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - cor0.col2 * 43 + + col1 - - cor0.col2 * col0 FROM tab2 AS cor0
----
1381
3205
4653

query I rowsort
SELECT DISTINCT + - col2 * + ( - col2 ) AS col2 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT 40 * cor0.col2 FROM tab2 AS cor0
----
1040
1080
1520

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9382
SELECT ALL + CAST( col2 AS SIGNED ) + cor0.col0 FROM tab1 AS cor0
----
121
176
57

skipif mysql # not compatible
query I rowsort label-9382
SELECT ALL + CAST ( col2 AS INTEGER ) + cor0.col0 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT DISTINCT + col2 * col0 + + col2 - - ( - col2 + col0 ) AS col1 FROM tab0 AS cor0
----
70
7387
816

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * 31 col1 FROM tab2 cor0
----
1829
527
961

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9385
SELECT ALL + CAST( + col2 AS SIGNED ) * + cor0.col0 + - ( + cor0.col1 * col2 + - ( col2 ) * - col2 ) AS col0 FROM tab2 AS cor0
----
-1377
-182
912

skipif mysql # not compatible
query I rowsort label-9385
SELECT ALL + CAST ( + col2 AS INTEGER ) * + cor0.col0 + - ( + cor0.col1 * col2 + - ( col2 ) * - col2 ) AS col0 FROM tab2 AS cor0
----
-1377
-182
912

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9386
SELECT DISTINCT - + CAST( NULL AS SIGNED ) - col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9386
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) - col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - ( - col0 ) - + col2 AS col2 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT ALL + ( + col1 ) * + col0 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT DISTINCT col1 * - 20 FROM tab0
----
-1720
-1820
-1940

query I rowsort
SELECT - cor0.col2 * cor0.col1 AS col2 FROM tab1, tab2 cor0
----
9 values hashing to c52f276f0448e9317aa4a2c462e0bab5

query I rowsort
SELECT ALL ( cor0.col0 ) * cor0.col2 AS col1 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT ALL - + cor0.col0 * cor0.col2 * - col2 FROM tab1 AS cor0
----
207936
737280
8748

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9393
SELECT DISTINCT CAST( NULL AS SIGNED ) + col2 * + col1 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9393
SELECT DISTINCT CAST ( NULL AS INTEGER ) + col2 * + col1 AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col1 + 30 AS col0 FROM tab1 cor0
----
40
43
56

onlyif mysql # use DIV operator for integer division
query I rowsort label-9395
SELECT + col0 * 17 DIV col0 FROM tab1 AS cor0
----
17
17
17

skipif mysql # not compatible
query I rowsort label-9395
SELECT + col0 * 17 / col0 FROM tab1 AS cor0
----
17
17
17

query I rowsort
SELECT + - col1 + + cor0.col2 * - col0 FROM tab1 AS cor0
----
-188
-3658
-7693

query I rowsort
SELECT ALL + col0 + col2 + col2 FROM tab2 AS cor0
----
130
155
61

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9398
SELECT DISTINCT - col2 + + col1 * + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9398
SELECT DISTINCT - col2 + + col1 * + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-9399
SELECT + 5 + + ( col0 + - 45 ) * - col1 DIV + tab0.col1 AS col2 FROM tab0
----
-39
15
26

skipif mysql # not compatible
query I rowsort label-9399
SELECT + 5 + + ( col0 + - 45 ) * - col1 / + tab0.col1 AS col2 FROM tab0
----
-39
15
26

query I rowsort
SELECT + col1 + col2 * ( + cor0.col1 ) * - col0 FROM tab0 AS cor0
----
-3298
-664027
-68026

query I rowsort
SELECT ALL ( + col2 ) * col0 AS col1 FROM tab2
----
189
2028
3002

query I rowsort
SELECT ALL + col1 * - 1 AS col2 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT - cor0.col0 * + ( cor0.col2 ) * + col2 + col0 * ( col0 ) * + col0 + col0 FROM tab1 AS cor0
----
-225200
-8718
54272

query I rowsort
SELECT ALL - col2 + + 53 AS col0 FROM tab1 AS cor0
----
-1
-4
-43

query I rowsort
SELECT + + col0 + 27 + 41 FROM tab0 AS cor0
----
103
157
92

query I rowsort
SELECT + col1 * - col1 + cor0.col1 FROM tab0 AS cor0
----
-7310
-8190
-9312

query I rowsort
SELECT DISTINCT col1 * col2 * - col1 - + tab2.col1 FROM tab2
----
-10999
-25978
-90565

query I rowsort
SELECT 1 AS col0 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to da8a72a7967c0c73d91239275230aed9

onlyif mysql # use DIV operator for integer division
query I rowsort label-9409
SELECT DISTINCT + 14 DIV col1 - + col2 * 32 FROM tab2
----
-1216
-832
-864

skipif mysql # not compatible
query I rowsort label-9409
SELECT DISTINCT + 14 / col1 - + col2 * 32 FROM tab2
----
-1216
-832
-864

query I rowsort
SELECT ( col2 ) + - 18 * + col1 FROM tab1
----
-123
-138
-414

query I rowsort
SELECT ALL col2 * col0 + - 30 FROM tab2
----
159
1998
2972

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 - 49 * cor0.col2 * col1 col0 FROM tab0 cor0
----
-139038
-365549
-4718

query I rowsort
SELECT col1 * 58 AS col0 FROM tab0
----
4988
5278
5626

query I rowsort
SELECT DISTINCT + 87 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
87

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9415
SELECT col1 * - CAST( 50 AS SIGNED ) + col2 FROM tab1 AS cor0
----
-1246
-443
-554

skipif mysql # not compatible
query I rowsort label-9415
SELECT col1 * - CAST ( 50 AS INTEGER ) + col2 FROM tab1 AS cor0
----
-1246
-443
-554

onlyif mysql # use DIV operator for integer division
query I rowsort label-9416
SELECT cor0.col1 * cor0.col0 DIV col0 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-9416
SELECT cor0.col1 * cor0.col0 / col0 FROM tab0 AS cor0
----
86
91
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9417
SELECT + col2 * - CAST( + ( col2 ) + 38 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-1664
-1755
-2888

skipif mysql # not compatible
query I rowsort label-9417
SELECT + col2 * - CAST ( + ( col2 ) + 38 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-1664
-1755
-2888

query I rowsort
SELECT + - col0 + col1 * col0 + col2 FROM tab2 AS cor0
----
1302
237
4550

onlyif mysql # use DIV operator for integer division
query I rowsort label-9419
SELECT - cor0.col0 DIV ( + 6 ) FROM tab0 AS cor0
----
-14
-4
-5

skipif mysql # not compatible
query I rowsort label-9419
SELECT - cor0.col0 / ( + 6 ) FROM tab0 AS cor0
----
-14
-4
-5

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9420
SELECT col1 * CAST( NULL AS SIGNED ) + cor0.col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9420
SELECT col1 * CAST ( NULL AS INTEGER ) + cor0.col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - col2 * - col2 * + col0 - + col1 AS col1 FROM tab0 AS cor0
----
-132
-26222
-598527

query I rowsort
SELECT - + cor0.col1 + cor0.col2 AS col0 FROM tab2 AS cor0
----
-33
-4
21

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9423
SELECT + + cor0.col0 - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9423
SELECT + + cor0.col0 - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT cor0.col2 - - col1 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT + - cor1.col2 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75

query I rowsort
SELECT DISTINCT 38 FROM tab1, tab2 cor0, tab2 AS cor1
----
38

query I rowsort
SELECT ALL + col2 * ( 82 ) AS col1 FROM tab0
----
2706
6724
82

query I rowsort
SELECT DISTINCT - - cor0.col0 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
3
64
80

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab0 AS cor2, tab1 cor3
----
3645 values hashing to 77ce60d8d42550cc1b5a38c7d1dc5d13

query I rowsort
SELECT - tab2.col0 + - col0 AS col0 FROM tab2
----
-14
-156
-158

query I rowsort
SELECT - 54 + col2 * + col1 AS col2 FROM tab1 AS cor0
----
1194
1350
516

onlyif mysql # use DIV operator for integer division
query I rowsort label-9432
SELECT DISTINCT col1 * col0 - + col2 DIV + col1 col0 FROM tab0
----
2064
3395
8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9432
SELECT DISTINCT col1 * col0 - + col2 / + col1 col0 FROM tab0
----
2064
3395
8099

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL <= col1
----

query I rowsort
SELECT ALL - + 57 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 0b74bbd7631afe9b2eeb9f18b9dc6505

query I rowsort
SELECT - 69 + col1 * col2 * 1 FROM tab2
----
1465
577
768

query I rowsort
SELECT ALL + 64 * col1 AS col1 FROM tab0
----
5504
5824
6208

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + cor0.col0 + col0 col0 FROM tab2 AS cor0
----
14
156
158

query I rowsort
SELECT - - col0 + - col1 * col1 FROM tab1 cor0
----
-36
-673
-89

query I rowsort
SELECT - col0 + - col1 AS col1 FROM tab1 cor0
----
-29
-74
-93

query I rowsort
SELECT col1 * - cor0.col1 + + 29 AS col1 FROM tab2 AS cor0
----
-260
-3452
-932

query I rowsort
SELECT - col2 + + 74 FROM tab2
----
36
47
48

query I rowsort
SELECT tab0.col1 - - col0 * - 81 AS col0 FROM tab0
----
-1858
-2738
-7118

query I rowsort
SELECT 87 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 + - col1 col0 FROM tab1 AS cor0
----
-109
-67
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-9445
SELECT DISTINCT + - col0 DIV col1 - + col0 AS col0 FROM tab1 AS cor0
----
-3
-70
-86

skipif mysql # not compatible
query I rowsort label-9445
SELECT DISTINCT + - col0 / col1 - + col0 AS col0 FROM tab1 AS cor0
----
-3
-70
-86

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9446
SELECT DISTINCT CAST( - col1 AS SIGNED ) * tab2.col2 FROM tab2
----
-1534
-646
-837

skipif mysql # not compatible
query I rowsort label-9446
SELECT DISTINCT CAST ( - col1 AS INTEGER ) * tab2.col2 FROM tab2
----
-1534
-646
-837

query I rowsort
SELECT ALL - 9 + + col2 * - col0 AS col2 FROM tab0
----
-44
-7307
-801

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 96 * + 0 col1 FROM tab2
----
0
0
0

query I rowsort
SELECT col2 * - 33 + - cor0.col2 FROM tab0 AS cor0
----
-1122
-2788
-34

query I rowsort
SELECT + - 35 + col0 * cor0.col1 FROM tab1 AS cor0
----
1005
43
605

query I rowsort
SELECT 52 + + col1 * col0 FROM tab0 AS cor0
----
2116
3447
8151

query I rowsort
SELECT ALL - 89 + - col1 AS col0 FROM tab1 AS cor0
----
-102
-115
-99

query I rowsort
SELECT ALL + col2 * cor0.col2 * col2 FROM tab2 AS cor0
----
17576
19683
54872

query I rowsort
SELECT - col2 * col2 * + col0 FROM tab1 AS cor0
----
-207936
-737280
-8748

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 * cor0.col1 col2 FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT + 78 + tab0.col1 * - col2 * col1 FROM tab0
----
-243990
-678964
-9331

query I rowsort
SELECT DISTINCT + col2 + col2 + - col2 * col2 FROM tab0 AS cor0
----
-1023
-6560
1

query I rowsort
SELECT DISTINCT + - col2 + col0 FROM tab2 cor0
----
-20
41
52

query I rowsort
SELECT col2 * + tab1.col0 + col2 FROM tab1
----
216
3705
7776

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + col0 * col2 col2 FROM tab1
----
207936
737280
8748

query I rowsort
SELECT ( + 45 ) * - col1 FROM tab0
----
-3870
-4095
-4365

query I rowsort
SELECT - ( + col2 + + col1 ) * + col0 FROM tab1
----
-240
-4288
-8720

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab0.col1 * col0 col2 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT + - col0 * + col0 + col1 * - col0 + col0 FROM tab2 cor0
----
-10608
-259
-7505

query I rowsort
SELECT ALL + + col1 * col2 + col0 AS col1 FROM tab2 AS cor0
----
1612
725
844

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 28 * + col2 col1 FROM tab1
----
1512
1596
2688

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( col2 AS REAL ) AS col2 FROM tab2
----
26
27
38

query I rowsort
SELECT ALL 19 * - col0 + tab2.col1 FROM tab2
----
-102
-1423
-1484

query I rowsort
SELECT ALL col0 + col2 * + tab1.col2 AS col1 FROM tab1
----
2919
3313
9296

query I rowsort
SELECT ALL col1 * + tab1.col0 + col0 AS col0 FROM tab1
----
1120
704
81

query I rowsort
SELECT DISTINCT + col2 * + col2 + + tab1.col1 * - col2 FROM tab1
----
1512
2679
7968

query I rowsort
SELECT DISTINCT - cor0.col1 AS col1 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
-17
-31
-59

query I rowsort
SELECT DISTINCT + cor0.col0 + col0 * + cor0.col2 FROM tab1 AS cor0
----
165
3712
7760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - col0 col1 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT DISTINCT - - 27 AS col2 FROM tab2 AS cor0
----
27

query I rowsort
SELECT - 86 * + col2 AS col2 FROM tab0 AS cor0
----
-2838
-7052
-86

query I rowsort
SELECT DISTINCT - 21 + col1 FROM tab1 AS cor0
----
-11
-8
5

onlyif mysql # use DIV operator for integer division
query I rowsort label-9478
SELECT ALL - + col0 - col2 DIV - col1 FROM tab2 AS cor0
----
-7
-77
-78

skipif mysql # not compatible
query I rowsort label-9478
SELECT ALL - + col0 - col2 / - col1 FROM tab2 AS cor0
----
-7
-77
-78

query I rowsort
SELECT ALL + + col0 + - col0 * - col1 * - cor0.col2 AS col1 FROM tab2 AS cor0
----
-119574
-50955
-5852

query I rowsort
SELECT DISTINCT + col1 + col1 + - col1 * - col1 FROM tab2 cor0
----
1023
323
3599

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * - col0 col1 FROM tab1
----
-4096
-6400
-9

query I rowsort
SELECT + col0 * col2 - + tab1.col2 FROM tab1
----
108
3591
7584

query I rowsort
SELECT DISTINCT + col2 + + tab0.col1 AS col0 FROM tab0
----
119
173
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + col0 * col2 col2 FROM tab2
----
2054
216
3040

query I rowsort
SELECT ALL + col2 * col0 * tab0.col1 + - col2 FROM tab0
----
3394
664036
68079

query III rowsort
SELECT * FROM tab0 WHERE col1 * - col2 + - col1 IN ( - col1 )
----

query I rowsort
SELECT col2 - cor0.col1 * col0 FROM tab1 AS cor0
----
-24
-583
-944

query I rowsort
SELECT col0 * col1 + - col2 * col0 FROM tab0 AS cor0
----
1272
3360
801

query I rowsort
SELECT DISTINCT col0 FROM tab2 WHERE ( NULL ) >= col2 + col2
----

query I rowsort
SELECT DISTINCT col2 + - col2 * - col2 FROM tab1
----
2970
3306
9312

query I rowsort
SELECT col0 * + tab2.col0 * col0 FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN NULL AND ( + col1 + col1 )
----

query I rowsort
SELECT ALL - col1 + col1 FROM tab0 WHERE ( col1 ) NOT IN ( col0 * + col0 * tab0.col1 + col0 * - col1 - col0 * - col2 )
----
0
0
0

query I rowsort
SELECT - tab0.col0 + + col2 * + tab0.col1 * col1 AS col1 FROM tab0
----
244044
678953
9374

query I rowsort
SELECT DISTINCT tab2.col2 * tab2.col0 + - col2 FROM tab2
----
162
2002
2964

query I rowsort
SELECT ALL col2 + - col0 * col2 AS col0 FROM tab2 WHERE NOT + col1 * - col1 + col0 NOT BETWEEN col0 AND NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-9496
SELECT + col0 + + tab2.col1 DIV col0 FROM tab2
----
11
78
79

skipif mysql # not compatible
query I rowsort label-9496
SELECT + col0 + + tab2.col1 / col0 FROM tab2
----
11
78
79

query I rowsort
SELECT ALL tab0.col2 * col0 * + col2 AS col0 FROM tab0
----
26136
35
598436

onlyif mysql # use DIV operator for integer division
query I rowsort label-9498
SELECT DISTINCT - col1 DIV col2 + col0 * tab0.col0 AS col1 FROM tab0
----
1128
574
7920

skipif mysql # not compatible
query I rowsort label-9498
SELECT DISTINCT - col1 / col2 + col0 * tab0.col0 AS col1 FROM tab0
----
1128
574
7920

query I rowsort
SELECT - tab0.col0 * col1 + col1 + - tab0.col2 AS col2 FROM tab0
----
-2011
-3299
-8090

query I rowsort
SELECT col1 FROM tab1 WHERE NULL NOT IN ( col1 )
----

query I rowsort
SELECT col2 + - col0 * col2 + col0 * - col0 FROM tab0
----
-1259
-1335
-15137

query I rowsort
SELECT DISTINCT - col2 + - col0 * col1 AS col0 FROM tab2 WHERE NOT NULL >= NULL
----

query I rowsort
SELECT + col0 + - cor0.col0 * col0 FROM tab0 AS cor0
----
-1190
-552
-7832

query I rowsort
SELECT DISTINCT - cor0.col0 + + col2 FROM tab1 cor0
----
-7
16
51

query I rowsort
SELECT - - cor0.col0 * + col2 AS col0 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT ALL + + col0 * - col1 FROM tab0 cor0
----
-2064
-3395
-8099

query I rowsort
SELECT DISTINCT - col1 * + col1 - + cor0.col1 FROM tab2 AS cor0
----
-306
-3540
-992

onlyif mysql # use DIV operator for integer division
query I rowsort label-9508
SELECT DISTINCT cor0.col0 DIV + cor0.col1 FROM tab1 AS cor0
----
0
6

skipif mysql # not compatible
query I rowsort label-9508
SELECT DISTINCT cor0.col0 / + cor0.col1 FROM tab1 AS cor0
----
0
6

query I rowsort
SELECT col2 + - tab0.col1 * col1 * col1 FROM tab0
----
-636023
-753489
-912672

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + col1 * + col1 * col1 col2 FROM tab2
----
205457
29798
4992

query I rowsort
SELECT ALL ( col2 * col1 ) AS col2 FROM tab2
----
1534
646
837

query I rowsort
SELECT - ( + col2 + tab2.col2 ) FROM tab2
----
-52
-54
-76

query I rowsort
SELECT DISTINCT + + col0 - - cor0.col1 FROM tab2 AS cor0
----
137
38
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + col1 * col0 col2 FROM tab2 AS cor0
----
1264
210
4524

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 + cor0.col2 col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + 50 AS col1 FROM tab1 cor0
----
50

query I rowsort
SELECT ALL - cor0.col2 + col1 * col1 AS col1 FROM tab2 AS cor0
----
251
3455
934

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9518
SELECT - cor0.col0 + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9518
SELECT - cor0.col0 + CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 79 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f

query I rowsort
SELECT DISTINCT col1 + + 23 * + 75 FROM tab1 AS cor0
----
1735
1738
1751

query I rowsort
SELECT DISTINCT - + col1 - - col2 * cor0.col2 AS col0 FROM tab1 AS cor0
----
2890
3239
9203

onlyif mysql # use DIV operator for integer division
query I rowsort label-9522
SELECT - col0 + - ( 5 ) * + col0 DIV cor0.col0 col1 FROM tab2 AS cor0
----
-12
-83
-84

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9522
SELECT - col0 + - ( 5 ) * + col0 / cor0.col0 col1 FROM tab2 AS cor0
----
-12
-83
-84

query I rowsort
SELECT + cor0.col1 + - 29 + - cor0.col1 AS col0 FROM tab0 AS cor0
----
-29
-29
-29

query I rowsort
SELECT + - cor0.col1 * 65 AS col1 FROM tab2 AS cor0
----
-1105
-2015
-3835

query I rowsort
SELECT + - ( 44 ) FROM tab1 AS cor0
----
-44
-44
-44

query I rowsort
SELECT DISTINCT ( cor1.col0 ) AS col1 FROM tab0, tab1 cor0, tab2 AS cor1
----
7
78
79

query I rowsort
SELECT + 68 * + ( + cor0.col1 ) AS col0 FROM tab1 AS cor0
----
1768
680
884

query I rowsort
SELECT DISTINCT col0 + - 40 AS col2 FROM tab0 AS cor0
----
-16
-5
49

onlyif mysql # use DIV operator for integer division
query I rowsort label-9529
SELECT - col2 DIV col0 + + col0 * CAST( col0 AS SIGNED ) FROM tab0 AS cor0
----
1225
575
7921

skipif mysql # not compatible
query I rowsort label-9529
SELECT - col2 / col0 + + col0 * CAST ( col0 AS INTEGER ) FROM tab0 AS cor0
----
1225
575
7921

query I rowsort
SELECT - 15 * ( - col0 + + col0 ) * + ( - col2 + + col1 ) AS col2 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT + col0 + 39 * + col2 AS col1 FROM tab1 AS cor0
----
2109
2287
3824

query I rowsort
SELECT ALL ( + 3 ) + cor0.col2 AS col2 FROM tab1 cor0
----
57
60
99

onlyif mysql # use DIV operator for integer division
query I rowsort label-9533
SELECT + col2 DIV - 15 AS col2 FROM tab1 AS cor0
----
-3
-3
-6

skipif mysql # not compatible
query I rowsort label-9533
SELECT + col2 / - 15 AS col2 FROM tab1 AS cor0
----
-3
-3
-6

query I rowsort
SELECT DISTINCT - ( - col0 ) + + col1 + - 24 AS col2 FROM tab0
----
108
156
86

query I rowsort
SELECT 44 + col0 FROM tab1
----
108
124
47

query I rowsort
SELECT ALL - cor0.col2 * - col2 + - col1 FROM tab1 AS cor0
----
2890
3239
9203

query I rowsort
SELECT ALL - 96 AS col0 FROM tab0
----
-96
-96
-96

query I rowsort
SELECT - 49 * + col2 * col0 FROM tab0 AS cor0
----
-1715
-357602
-38808

query I rowsort
SELECT ALL 68 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990

query I rowsort
SELECT - col2 + 42 FROM tab1
----
-12
-15
-54

onlyif mysql # use DIV operator for integer division
query I rowsort label-9541
SELECT DISTINCT + col0 DIV ( 8 ) col1 FROM tab2 cor0
----
0
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9541
SELECT DISTINCT + col0 / ( 8 ) col1 FROM tab2 cor0
----
0
9

query I rowsort
SELECT - col0 - ( + 27 ) FROM tab1 AS cor0
----
-107
-30
-91

query I rowsort
SELECT DISTINCT - col1 + ( - 79 * + cor0.col1 ) FROM tab0 AS cor0
----
-6880
-7280
-7760

query I rowsort
SELECT col2 * 16 * col1 FROM tab0
----
119392
1552
45408

query I rowsort
SELECT ALL col2 + col0 * tab0.col0 AS col1 FROM tab0
----
1226
609
8003

onlyif mysql # use DIV operator for integer division
query I rowsort label-9546
SELECT + col0 * - 10 + + col2 DIV tab0.col1 FROM tab0
----
-240
-350
-890

skipif mysql # not compatible
query I rowsort label-9546
SELECT + col0 * - 10 + + col2 / tab0.col1 FROM tab0
----
-240
-350
-890

onlyif mysql # use DIV operator for integer division
query I rowsort label-9547
SELECT DISTINCT col1 DIV ( 68 ) + - tab0.col0 + col1 FROM tab0
----
3
63

skipif mysql # not compatible
query I rowsort label-9547
SELECT DISTINCT col1 / ( 68 ) + - tab0.col0 + col1 FROM tab0
----
3
63

query I rowsort
SELECT DISTINCT col0 * col2 + + 87 * col0 * + 90 AS col2 FROM tab1
----
23652
504768
634080

query I rowsort
SELECT - col0 - + col0 * + 44 AS col2 FROM tab0 AS cor0
----
-1080
-1575
-4005

query I rowsort
SELECT col1 + col0 + col2 * col1 FROM tab0
----
229
2948
7642

query I rowsort
SELECT ALL 37 + col2 FROM tab2 AS cor0
----
63
64
75

query I rowsort
SELECT DISTINCT + 0 AS col2 FROM tab1 cor0
----
0

query I rowsort
SELECT - col0 * - col0 + col1 * cor0.col1 + col0 AS col0 FROM tab1 AS cor0
----
4260
6649
688

onlyif mysql # use DIV operator for integer division
query I rowsort label-9554
SELECT col2 + + col1 + + 77 * col0 DIV - col1 FROM tab2 cor0
----
-16
-302
41

skipif mysql # not compatible
query I rowsort label-9554
SELECT col2 + + col1 + + 77 * col0 / - col1 FROM tab2 cor0
----
-16
-302
41

query I rowsort
SELECT DISTINCT 79 * - col1 AS col1 FROM tab0 AS cor0
----
-6794
-7189
-7663

query I rowsort
SELECT 16 * col2 * + 17 FROM tab2 AS cor0
----
10336
7072
7344

query I rowsort
SELECT DISTINCT 67 - - col2 * col2 FROM tab2 AS cor0
----
1511
743
796

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 + cor0.col2 col1 FROM tab1 cor0
----
28
47
83

query I rowsort
SELECT - 52 + col1 AS col1 FROM tab2 AS cor0
----
-21
-35
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 83 + col1 col1 FROM tab2 AS cor0
----
100
114
142

query I rowsort
SELECT DISTINCT - 1 - - 95 FROM tab2, tab0 AS cor0
----
94

onlyif mysql # use DIV operator for integer division
query I rowsort label-9562
SELECT DISTINCT + col1 * col2 * - ( col2 ) + 78 * col0 DIV col1 FROM tab2 cor0
----
-22582
-24186
-39781

skipif mysql # not compatible
query I rowsort label-9562
SELECT DISTINCT + col1 * col2 * - ( col2 ) + 78 * col0 / col1 FROM tab2 cor0
----
-22582
-24186
-39781

query I rowsort
SELECT DISTINCT + - col2 + ( col1 ) * - col0 * + ( col2 * col2 + 5 * cor0.col2 ) FROM tab0 AS cor0
----
-20371
-2588289
-57778348

query I rowsort
SELECT DISTINCT col1 * + col2 + + col2 FROM tab1
----
1344
1458
627

query I rowsort
SELECT - col2 + 9 AS col0 FROM tab2 AS cor0
----
-17
-18
-29

query I rowsort
SELECT ALL + ( + 38 ) AS col2 FROM tab1 AS cor0
----
38
38
38

query I rowsort
SELECT DISTINCT + - cor0.col1 + 9 AS col2 FROM tab0 AS cor0
----
-77
-82
-88

query I rowsort
SELECT ALL + cor1.col2 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

onlyif mysql # use DIV operator for integer division
query I rowsort label-9569
SELECT ALL + - cor0.col2 DIV - col0 - col2 * col2 FROM tab2 AS cor0
----
-1444
-676
-726

skipif mysql # not compatible
query I rowsort label-9569
SELECT ALL + - cor0.col2 / - col0 - col2 * col2 FROM tab2 AS cor0
----
-1444
-676
-726

onlyif mysql # use DIV operator for integer division
query I rowsort label-9570
SELECT - col0 + + 84 DIV col0 col1 FROM tab1 AS cor0
----
-63
-79
25

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9570
SELECT - col0 + + 84 / col0 col1 FROM tab1 AS cor0
----
-63
-79
25

query I rowsort
SELECT DISTINCT 71 * 40 * + col2 - - col1 * - 79 FROM tab1 AS cor0
----
151306
161090
271613

query I rowsort
SELECT - ( - col0 ) - cor0.col0 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + col2 * 20 + - col1 * col2 - col2 FROM tab2 AS cor0
----
-1040
-324
76

query I rowsort
SELECT ALL + - col0 + - col0 + col0 FROM tab1 AS cor0
----
-3
-64
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-9575
SELECT + col2 * - 59 * col1 + 66 - - col2 DIV col2 FROM tab1
----
-33563
-73565
-82769

skipif mysql # not compatible
query I rowsort label-9575
SELECT + col2 * - 59 * col1 + 66 - - col2 / col2 FROM tab1
----
-33563
-73565
-82769

onlyif mysql # use DIV operator for integer division
query I rowsort label-9576
SELECT col0 DIV col0 + + tab0.col1 DIV + 27 FROM tab0
----
4
4
4

skipif mysql # not compatible
query I rowsort label-9576
SELECT col0 / col0 + + tab0.col1 / + 27 FROM tab0
----
4
4
4

query I rowsort
SELECT DISTINCT - col1 - - col2 * - col0 * - 6 AS col0 FROM tab2
----
1103
12109
17995

query I rowsort
SELECT + col0 * col2 * 24 + 45 FROM tab2 AS cor0
----
4581
48717
72093

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 19 + - col2 * col2 col0 FROM tab1 AS cor0
----
-2897
-3230
-9197

query I rowsort
SELECT DISTINCT + 21 - - col1 FROM tab2 AS cor0
----
38
52
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-9581
SELECT 72 DIV - col2 + - col1 DIV - ( cor0.col0 ) AS col1 FROM tab1 AS cor0
----
-1
0
7

skipif mysql # not compatible
query I rowsort label-9581
SELECT 72 / - col2 + - col1 / - ( cor0.col0 ) AS col1 FROM tab1 AS cor0
----
-1
0
7

query I rowsort
SELECT DISTINCT col2 + col1 * + col2 * - col1 + - col1 * col1 AS col1 FROM tab0
----
-18817
-251431
-687241

query I rowsort
SELECT - 26 * - col2 * - col0 - + 81 FROM tab1
----
-199761
-4293
-94929

onlyif mysql # use DIV operator for integer division
query I rowsort label-9584
SELECT - 10 * + col2 DIV + cor0.col2 + + 43 * col0 * col1 FROM tab0 AS cor0
----
145975
348247
88742

skipif mysql # not compatible
query I rowsort label-9584
SELECT - 10 * + col2 / + cor0.col2 + + 43 * col0 * col1 FROM tab0 AS cor0
----
145975
348247
88742

query I rowsort
SELECT - + col0 - - col1 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT + tab0.col1 * + col1 + + col2 AS col1 FROM tab0
----
7429
8363
9410

query I rowsort
SELECT DISTINCT 19 + - 12 * col1 AS col1 FROM tab1
----
-101
-137
-293

query I rowsort
SELECT + cor0.col1 FROM tab0 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

query I rowsort
SELECT ALL - col2 * + col1 * tab2.col1 AS col0 FROM tab2
----
-10982
-25947
-90506

onlyif mysql # use DIV operator for integer division
query I rowsort label-9590
SELECT + + 99 + col2 + - ( col0 ) DIV col1 FROM tab1 AS cor0
----
150
153
189

skipif mysql # not compatible
query I rowsort label-9590
SELECT + + 99 + col2 + - ( col0 ) / col1 FROM tab1 AS cor0
----
150
153
189

query I rowsort
SELECT DISTINCT - 30 * - col1 AS col1 FROM tab2 AS cor0
----
1770
510
930

query I rowsort
SELECT DISTINCT - 33 + - col1 FROM tab1 cor0
----
-43
-46
-59

query I rowsort
SELECT - + 84 - col0 AS col0 FROM tab0 AS cor0
----
-108
-119
-173

onlyif mysql # use DIV operator for integer division
query I rowsort label-9594
SELECT ALL + - col1 * col2 + ( col2 ) DIV - col2 FROM tab0 AS cor0
----
-2839
-7463
-98

skipif mysql # not compatible
query I rowsort label-9594
SELECT ALL + - col1 * col2 + ( col2 ) / - col2 FROM tab0 AS cor0
----
-2839
-7463
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 16 * + col0 col0 FROM tab1
----
1024
1280
48

query I rowsort
SELECT DISTINCT - 86 * - col2 FROM tab0
----
2838
7052
86

query I rowsort
SELECT ALL + cor0.col2 AS col1 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT ALL - tab0.col2 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc

query I rowsort
SELECT ALL + - col0 * + cor0.col2 * 83 + - col1 * - ( - col1 ) * col0 - - col2 FROM tab1 AS cor0
----
-15420
-309127
-650864

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9600
SELECT ALL CAST( - 44 AS SIGNED ) AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 07457d9e571e036a9a3a0f5a5a2e1ef2

skipif mysql # not compatible
query I rowsort label-9600
SELECT ALL CAST ( - 44 AS INTEGER ) AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 07457d9e571e036a9a3a0f5a5a2e1ef2

query I rowsort
SELECT DISTINCT cor0.col0 + - 88 * cor0.col0 AS col2 FROM tab0 AS cor0
----
-2088
-3045
-7743

query I rowsort
SELECT DISTINCT ( col0 ) * - col1 AS col2 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT - + col0 + 17 AS col1 FROM tab0 AS cor0
----
-18
-7
-72

query I rowsort
SELECT - 85 * 67 + col2 FROM tab2 AS cor0
----
-5657
-5668
-5669

onlyif mysql # use DIV operator for integer division
query I rowsort label-9605
SELECT ALL - + 16 + col0 DIV + col1 AS col0 FROM tab0 AS cor0
----
-16
-16
-16

skipif mysql # not compatible
query I rowsort label-9605
SELECT ALL - + 16 + col0 / + col1 AS col0 FROM tab0 AS cor0
----
-16
-16
-16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 85 col1 FROM tab0 AS cor0
----
85
85
85

query I rowsort
SELECT DISTINCT + - ( - col2 ) * cor0.col0 + 61 FROM tab0 AS cor0
----
7359
853
96

query I rowsort
SELECT + ( - tab1.col2 ) AS col0 FROM tab1
----
-54
-57
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-9609
SELECT + col2 DIV 41 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9609
SELECT + col2 / 41 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + cor0.col1 * + 29 AS col0 FROM tab2 AS cor0
----
1711
493
899

query I rowsort
SELECT + - col2 + - col2 * + 10 * col1 FROM tab2 cor0
----
-15366
-6498
-8397

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 39 col2 FROM tab2
----
39
39
39

query I rowsort
SELECT - col0 * col2 + - 77 FROM tab0 cor0
----
-112
-7375
-869

query I rowsort
SELECT + - 22 * ( + col2 + - col1 ) FROM tab2 AS cor0
----
-462
726
88

query I rowsort
SELECT + - 23 + col1 AS col1 FROM tab2 AS cor0
----
-6
36
8

query I rowsort
SELECT - col1 + - col1 * cor0.col0 * 4 AS col2 FROM tab1 AS cor0
----
-2570
-338
-4173

query I rowsort
SELECT DISTINCT 7 * - 96 AS col2 FROM tab2 cor0
----
-672

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9618
SELECT - + CAST( NULL AS SIGNED ) + 72 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9618
SELECT - + CAST ( NULL AS INTEGER ) + 72 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-9619
SELECT ALL - cor0.col0 DIV col1 AS col0 FROM tab2 AS cor0
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-9619
SELECT ALL - cor0.col0 / col1 AS col0 FROM tab2 AS cor0
----
-1
-4
0

query I rowsort
SELECT - ( - col0 ) - col0 * col2 FROM tab1 AS cor0
----
-159
-3584
-7600

query I rowsort
SELECT DISTINCT - col0 * - col1 + - cor0.col1 FROM tab1 cor0
----
1027
52
630

query I rowsort
SELECT ALL - - ( + col2 ) AS col1 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT ALL - 99 FROM tab0, tab1 cor0 CROSS JOIN tab2
----
27 values hashing to 761f5f1a166a00db99360141565a85da

query I rowsort
SELECT + + col2 * col1 * 35 AS col1 FROM tab0 AS cor0
----
261170
3395
99330

query I rowsort
SELECT + col1 * col2 + + 81 + col1 AS col0 FROM tab1 cor0
----
1342
1511
661

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9626
SELECT + tab1.col0 * - col0 * + col1 + col2 / - col0 + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9626
SELECT + tab1.col0 * - col0 * + col1 + col2 / - col0 + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - 83 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d55748f39f403ec273099c0d87b0bfbb

onlyif mysql # use DIV operator for integer division
query I rowsort label-9628
SELECT ALL 86 + + col1 * - col1 DIV col1 FROM tab1
----
60
73
76

skipif mysql # not compatible
query I rowsort label-9628
SELECT ALL 86 + + col1 * - col1 / col1 FROM tab1
----
60
73
76

onlyif mysql # use DIV operator for integer division
query I rowsort label-9629
SELECT + 11 DIV cor0.col2 AS col2 FROM tab0 AS cor0
----
0
0
11

skipif mysql # not compatible
query I rowsort label-9629
SELECT + 11 / cor0.col2 AS col2 FROM tab0 AS cor0
----
0
0
11

query I rowsort
SELECT ALL + + col0 * cor0.col0 * - col0 FROM tab2 AS cor0
----
-343
-474552
-493039

onlyif mysql # use DIV operator for integer division
query I rowsort label-9631
SELECT ALL + - col1 + col1 DIV 50 FROM tab0 AS cor0
----
-85
-90
-96

skipif mysql # not compatible
query I rowsort label-9631
SELECT ALL + - col1 + col1 / 50 FROM tab0 AS cor0
----
-85
-90
-96

query I rowsort
SELECT - 74 * - col2 + + col2 + col1 AS col1 FROM tab2 AS cor0
----
2009
2056
2867

query I rowsort
SELECT - - col2 * col0 - 17 FROM tab1 AS cor0
----
145
3631
7663

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9634
SELECT DISTINCT - - cor0.col1 + CAST( col2 AS SIGNED ) FROM tab2 AS cor0
----
55
58
85

skipif mysql # not compatible
query I rowsort label-9634
SELECT DISTINCT - - cor0.col1 + CAST ( col2 AS INTEGER ) FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT ALL + col0 * + col2 AS col2 FROM tab2 cor0
----
189
2028
3002

query I rowsort
SELECT - + cor0.col2 * + col2 + - 40 FROM tab1 AS cor0
----
-2956
-3289
-9256

query I rowsort
SELECT ALL + - col1 * cor0.col2 + + col1 * col2 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - col2 + col1 + col2 FROM tab1
----
10
13
26

query I rowsort
SELECT ALL 7 AS col2 FROM tab0 AS cor0
----
7
7
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-9640
SELECT - 8 + - cor0.col1 DIV cor0.col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 5bbfc98fc2ee171981e440c094b18528

skipif mysql # not compatible
query I rowsort label-9640
SELECT - 8 + - cor0.col1 / cor0.col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 5bbfc98fc2ee171981e440c094b18528

query I rowsort
SELECT DISTINCT - col2 * + ( - col1 ) + - col1 * - 58 AS col2 FROM tab0 AS cor0
----
12740
5723
7826

query I rowsort
SELECT 10 + - 57 FROM tab0 AS cor0
----
-47
-47
-47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( ( col2 ) ) col1 FROM tab1 cor0
----
-54
-57
-96

query I rowsort
SELECT ALL + 70 FROM tab2 AS cor0 CROSS JOIN tab2, tab1 cor1, tab1 AS cor2
----
81 values hashing to c07fb58c935d7dd3a559c80465f90463

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 * cor0.col1 col0 FROM tab0 AS cor0
----
-7396
-8281
-9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-9646
SELECT - - col2 + + col1 DIV cor0.col0 FROM tab0 cor0
----
3
36
83

skipif mysql # not compatible
query I rowsort label-9646
SELECT - - col2 + + col1 / cor0.col0 FROM tab0 cor0
----
3
36
83

query I rowsort
SELECT DISTINCT + 98 AS col2 FROM tab1, tab2 AS cor0
----
98

query I rowsort
SELECT ALL 78 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4

query I rowsort
SELECT col2 + 93 AS col1 FROM tab2 AS cor0
----
119
120
131

query I rowsort
SELECT DISTINCT - 45 - tab2.col0 FROM tab2
----
-123
-124
-52

query I rowsort
SELECT DISTINCT col1 - 83 FROM tab2
----
-24
-52
-66

query I rowsort
SELECT DISTINCT col0 * 22 + col2 - 56 * + col1 AS col1 FROM tab0
----
-3056
-4255
-4661

onlyif mysql # use DIV operator for integer division
query I rowsort label-9653
SELECT col1 DIV - tab1.col2 + col0 AS col2 FROM tab1
----
3
64
80

skipif mysql # not compatible
query I rowsort label-9653
SELECT col1 / - tab1.col2 + col0 AS col2 FROM tab1
----
3
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + 33 * col2 ) col0 FROM tab0
----
-1089
-2706
-33

query I rowsort
SELECT DISTINCT + 11 * - col2 AS col0 FROM tab2
----
-286
-297
-418

query I rowsort
SELECT - col0 + 49 AS col1 FROM tab1 AS cor0
----
-15
-31
46

query I rowsort
SELECT + cor0.col0 * ( col2 ) + col1 - - cor0.col1 FROM tab0 AS cor0
----
229
7480
964

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9658
SELECT ALL + cor0.col2 * - CAST( - col0 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
189
2028
3002

skipif mysql # not compatible
query I rowsort label-9658
SELECT ALL + cor0.col2 * - CAST ( - col0 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT DISTINCT - - col0 * - ( col2 * - cor0.col1 ) AS col1 FROM tab2 AS cor0
----
119652
51034
5859

query I rowsort
SELECT ALL + + cor0.col0 * 37 * col1 + cor0.col0 AS col1 FROM tab2 AS cor0
----
170352
49770
8036

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9661
SELECT DISTINCT + - CAST( NULL AS SIGNED ) * + col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9661
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) * + col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + ( - 70 ) + + col1 FROM tab2 AS cor0
----
-11
-39
-53

query I rowsort
SELECT DISTINCT - col2 * 34 + col2 * - col2 AS col2 FROM tab2 cor0
----
-1560
-1647
-2736

query I rowsort
SELECT + 55 + + cor0.col2 + cor0.col0 AS col2 FROM tab2 AS cor0
----
159
172
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + ( col1 * col1 ) col1 FROM tab0 AS cor0
----
7420
8370
9444

query I rowsort
SELECT - - 54 * + col1 FROM tab2 AS cor0
----
1674
3186
918

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + col1 * col1 col2 FROM tab2 AS cor0
----
210
3403
954

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9668
SELECT ALL - CAST( - 48 AS SIGNED ) + col1 AS col1 FROM tab0 AS cor0
----
134
139
145

skipif mysql # not compatible
query I rowsort label-9668
SELECT ALL - CAST ( - 48 AS INTEGER ) + col1 AS col1 FROM tab0 AS cor0
----
134
139
145

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9669
SELECT - ( + col1 ) + CAST( NULL AS SIGNED ) * col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9669
SELECT - ( + col1 ) + CAST ( NULL AS INTEGER ) * col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - tab1.col2 col2 FROM tab1
----
-28
-47
-83

query I rowsort
SELECT + ( col1 ) * - ( - 49 ) FROM tab2 AS cor0
----
1519
2891
833

query I rowsort
SELECT DISTINCT + - 97 AS col1 FROM tab2 AS cor0
----
-97

query I rowsort
SELECT DISTINCT 66 * col0 FROM tab0 AS cor0
----
1584
2310
5874

query I rowsort
SELECT DISTINCT - + col2 + col0 + 45 AS col0 FROM tab2 cor0
----
25
86
97

query I rowsort
SELECT ALL col1 + + col0 AS col1 FROM tab2 cor0
----
137
38
96

query I rowsort
SELECT DISTINCT + col1 * + 18 + + 36 FROM tab1 cor0
----
216
270
504

query I rowsort
SELECT DISTINCT col0 * + cor0.col2 - + col2 * + col2 FROM tab0 AS cor0
----
-297
34
574

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * + col2 + col1 col1 FROM tab0 AS cor0
----
132
7389
878

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * col2 + col0 + col1 col2 FROM tab0 AS cor0
----
-2728
-7282
35

query I rowsort
SELECT DISTINCT - + cor0.col2 - - col0 * - col1 FROM tab2 cor0
----
-1381
-244
-4628

query I rowsort
SELECT DISTINCT + - col0 + 92 FROM tab2 AS cor0
----
13
14
85

onlyif mysql # use DIV operator for integer division
query I rowsort label-9682
SELECT + - col2 * - col1 - 76 DIV col2 AS col0 FROM tab1 cor0
----
1248
1403
569

skipif mysql # not compatible
query I rowsort label-9682
SELECT + - col2 * - col1 - 76 / col2 AS col0 FROM tab1 cor0
----
1248
1403
569

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - col0 col0 FROM tab2
----
-49
-6084
-6241

query I rowsort
SELECT col2 * - col1 + 99 * 10 FROM tab1
----
-258
-414
420

query I rowsort
SELECT col0 - - col2 * + col0 * 52 FROM tab2
----
105534
156183
9835

query I rowsort
SELECT DISTINCT col2 * 91 AS col1 FROM tab1 cor0
----
4914
5187
8736

skipif mysql # not compatible
query I rowsort
SELECT + col1 + + CAST ( + col1 AS REAL ) * col1 FROM tab1 AS cor0
----
110
182
702

query I rowsort
SELECT DISTINCT - 35 * - cor1.col0 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
245
2730
2765

query I rowsort
SELECT DISTINCT ( - 69 ) AS col0 FROM tab2, tab2 AS cor0
----
-69

query I rowsort
SELECT - 90 * - col0 FROM tab2 AS cor0
----
630
7020
7110

query I rowsort
SELECT col0 * 38 FROM tab2
----
266
2964
3002

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9692
SELECT DISTINCT + CAST( NULL AS SIGNED ) FROM tab1, tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9692
SELECT DISTINCT + CAST ( NULL AS INTEGER ) FROM tab1, tab2 cor0
----
NULL

query I rowsort
SELECT col2 * cor0.col0 + col2 * col2 FROM tab1 cor0
----
16896
3078
6897

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9694
SELECT + CAST( NULL AS SIGNED ) * col2 + + 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-9694
SELECT + CAST ( NULL AS INTEGER ) * col2 + + col1 col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + ( - ( col0 ) ) + - col1 * - col2 AS col2 FROM tab0 AS cor0
----
2814
62
7373

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + 1 + tab2.col1 ) col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 2036013494344f92349618089e7342a0

query I rowsort
SELECT - 7 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to ba940cd66e21e94e95aada5f28e1faf5

query I rowsort
SELECT + ( col1 ) + col1 AS col2 FROM tab0 AS cor0
----
172
182
194

onlyif mysql # use DIV operator for integer division
query I rowsort label-9699
SELECT DISTINCT col2 DIV col1 AS col2 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-9699
SELECT DISTINCT col2 / col1 AS col2 FROM tab0 cor0
----
0

query I rowsort
SELECT - col0 + col2 * 27 FROM tab1 AS cor0
----
1455
1475
2512

query I rowsort
SELECT col2 + - col1 * 22 FROM tab0 AS cor0
----
-1859
-1920
-2133

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 + - col1 * ( col0 ) col1 FROM tab2 AS cor0
----
-1264
-210
-4524

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + tab0.col1 col1 FROM tab0
----
110
132
180

query I rowsort
SELECT ALL col0 + + 46 FROM tab2
----
124
125
53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + cor0.col1 col0 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT ALL + col2 * col2 + 63 AS col2 FROM tab2 cor0
----
1507
739
792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col1 + + col2 * + col0 * col2 col2 FROM tab2 AS cor0
----
114093
5134
52787

query I rowsort
SELECT ALL 93 + cor0.col2 FROM tab0 AS cor0
----
126
175
94

query I rowsort
SELECT ALL + - col2 * cor0.col2 + 77 AS col2 FROM tab2 AS cor0
----
-1367
-599
-652

query I rowsort
SELECT ALL - cor0.col0 + 32 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 299b5ad21565e4692b25c306ac7a1f29

onlyif mysql # use DIV operator for integer division
query I rowsort label-9711
SELECT col1 DIV - col0 - - col1 AS col1 FROM tab0
----
83
90
95

skipif mysql # not compatible
query I rowsort label-9711
SELECT col1 / - col0 - - col1 AS col1 FROM tab0
----
83
90
95

onlyif mysql # use DIV operator for integer division
query I rowsort label-9712
SELECT DISTINCT + col2 - col1 DIV col1 FROM tab1
----
53
56
95

skipif mysql # not compatible
query I rowsort label-9712
SELECT DISTINCT + col2 - col1 / col1 FROM tab1
----
53
56
95

onlyif mysql # use DIV operator for integer division
query I rowsort label-9713
SELECT DISTINCT - col1 DIV + tab2.col1 + - col0 AS col1 FROM tab2
----
-79
-8
-80

skipif mysql # not compatible
query I rowsort label-9713
SELECT DISTINCT - col1 / + tab2.col1 + - col0 AS col1 FROM tab2
----
-79
-8
-80

query I rowsort
SELECT + col0 * col0 + col1 FROM tab0
----
1322
662
8012

query I rowsort
SELECT - + 65 AS col0 FROM tab1 AS cor0
----
-65
-65
-65

query I rowsort
SELECT DISTINCT 75 + - col0 AS col0 FROM tab1 AS cor0
----
-5
11
72

query I rowsort
SELECT ALL + col1 + col1 * - col2 FROM tab2 AS cor0
----
-1475
-629
-806

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9718
SELECT DISTINCT 97 * tab1.col0 * + CAST( - col1 AS SIGNED ) FROM tab1
----
-100880
-62080
-7566

skipif mysql # not compatible
query I rowsort label-9718
SELECT DISTINCT 97 * tab1.col0 * + CAST ( - col1 AS INTEGER ) FROM tab1
----
-100880
-62080
-7566

query I rowsort
SELECT - col0 + + ( - cor0.col2 ) * col2 FROM tab2 cor0
----
-1523
-736
-754

onlyif mysql # use DIV operator for integer division
query I rowsort label-9720
SELECT ALL + col1 DIV + col0 col0 FROM tab0 AS cor0
----
1
2
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9720
SELECT ALL + col1 / + col0 col0 FROM tab0 AS cor0
----
1
2
3

query I rowsort
SELECT DISTINCT col1 + ( col0 + col0 ) FROM tab1 AS cor0
----
138
173
32

query I rowsort
SELECT - - col1 + ( - 98 * col1 + 82 ) AS col1 FROM tab2 AS cor0
----
-1567
-2925
-5641

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9723
SELECT ALL + - cor0.col1 * CAST( NULL AS SIGNED ) + ( col1 ) * col1 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9723
SELECT ALL + - cor0.col1 * CAST ( NULL AS INTEGER ) + ( col1 ) * col1 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab1, tab0 AS cor0, tab1 cor1
----
972 values hashing to 0a9194f200a4220e419d35c461f9fcfe

query I rowsort
SELECT 57 + col1 FROM tab2
----
116
74
88

query I rowsort
SELECT - col0 * - col0 * + col0 FROM tab1
----
262144
27
512000

query I rowsort
SELECT DISTINCT + col2 + col2 * col2 AS col1 FROM tab2
----
1482
702
756

query I rowsort
SELECT - col0 AS col1 FROM tab0 WHERE + col0 > ( + col2 )
----
-35
-89

query I rowsort
SELECT ALL - col1 + - tab2.col2 AS col0 FROM tab2
----
-55
-58
-85

query I rowsort
SELECT + col0 * col2 + + col1 - - col2 AS col0 FROM tab0
----
133
7471
911

onlyif mysql # use DIV operator for integer division
query I rowsort label-9731
SELECT - col2 DIV col1 FROM tab0 WHERE NOT - col1 IN ( col0 )
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9731
SELECT - col2 / col1 FROM tab0 WHERE NOT - col1 IN ( col0 )
----
0
0
0

query I rowsort
SELECT ALL col1 * col2 - + col2 FROM tab2
----
1508
608
810

query I rowsort
SELECT DISTINCT col0 * - col0 + - col1 * + col1 FROM tab1
----
-4196
-6569
-685

query I rowsort
SELECT DISTINCT col0 * col2 + + col0 AS col1 FROM tab2
----
196
2106
3081

query I rowsort
SELECT DISTINCT + col1 + tab1.col2 AS col2 FROM tab1
----
109
67
80

query I rowsort
SELECT DISTINCT col1 FROM tab2 WHERE - col1 BETWEEN col2 * + col1 AND ( NULL )
----

query I rowsort
SELECT col0 + tab1.col1 * - tab1.col2 FROM tab1
----
-1168
-1401
-506

query I rowsort
SELECT DISTINCT + col2 + - col2 + + col1 * col1 * col0 AS col0 FROM tab2
----
22831
271518
6727

query I rowsort
SELECT ALL + col2 FROM tab2 WHERE NOT NULL = NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-9740
SELECT DISTINCT + col1 DIV col0 col2 FROM tab0
----
1
2
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9740
SELECT DISTINCT + col1 / col0 col2 FROM tab0
----
1
2
3

onlyif mysql # use DIV operator for integer division
query I rowsort label-9741
SELECT ALL + col1 DIV - tab2.col1 AS col0 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9741
SELECT ALL + col1 / - tab2.col1 AS col0 FROM tab2
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + col2 * + col2 col2 FROM tab0
----
611884
93654
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-9743
SELECT ALL col0 DIV - tab0.col1 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9743
SELECT ALL col0 / - tab0.col1 AS col2 FROM tab0
----
0
0
0

query I rowsort
SELECT tab2.col2 * + tab2.col1 + col0 - col0 FROM tab2
----
1534
646
837

query I rowsort
SELECT ALL col1 + - col0 + + col0 FROM tab0
----
86
91
97

query I rowsort
SELECT col2 * + col1 * col0 FROM tab2
----
119652
51034
5859

query I rowsort
SELECT ALL + col1 AS col0 FROM tab1 WHERE NOT col0 + col2 * col2 - + col1 > col1
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 + col2 / col2 - col1 IN ( - col0 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

query I rowsort
SELECT ALL col2 * - col0 * col1 AS col0 FROM tab1
----
-36480
-4212
-99840

query I rowsort
SELECT - ( - 54 ) FROM tab2
----
54
54
54

query I rowsort
SELECT + ( + 38 ) * tab0.col0 - - 77 FROM tab0
----
1407
3459
989

query I rowsort
SELECT ALL - col2 * - col2 * - 16 - - ( + col0 ) AS col2 FROM tab0 AS cor0
----
-107495
-17400
19

query I rowsort
SELECT col1 + col2 * ( col2 ) AS col1 FROM tab2 AS cor0
----
1461
735
760

query I rowsort
SELECT + col2 * + col2 + - 9 + + 13 * + col0 FROM tab1 AS cor0
----
10247
2946
4072

query I rowsort
SELECT DISTINCT + cor0.col1 * col0 + + col0 + col1 FROM tab1 cor0
----
107
1133
714

query I rowsort
SELECT col2 + col1 * + col2 + + col1 AS col1 FROM tab0 AS cor0
----
195
2957
7635

query I rowsort
SELECT + 57 * cor0.col1 AS col1 FROM tab1 AS cor0
----
1482
570
741

query I rowsort
SELECT ALL + col2 + col1 * + 88 FROM tab0 AS cor0
----
7601
8090
8537

onlyif mysql # use DIV operator for integer division
query I rowsort label-9759
SELECT - 2 DIV cor0.col1 + + 5 * + col2 + col2 * - ( + col2 ) FROM tab1 AS cor0
----
-2646
-2964
-8736

skipif mysql # not compatible
query I rowsort label-9759
SELECT - 2 / cor0.col1 + + 5 * + col2 + col2 * - ( + col2 ) FROM tab1 AS cor0
----
-2646
-2964
-8736

query I rowsort
SELECT DISTINCT - 80 * cor0.col0 AS col2 FROM tab0 AS cor0
----
-1920
-2800
-7120

query I rowsort
SELECT DISTINCT + + 75 + + col2 * + 73 FROM tab2 AS cor0
----
1973
2046
2849

query I rowsort
SELECT DISTINCT + + col0 + col2 * col0 AS col0 FROM tab2 AS cor0
----
196
2106
3081

query I rowsort
SELECT + col1 - col1 * ( - col1 ) AS col2 FROM tab1 AS cor0
----
110
182
702

query I rowsort
SELECT DISTINCT - 44 * cor0.col0 - cor0.col2 FROM tab0 AS cor0
----
-1089
-1541
-3998

query I rowsort
SELECT DISTINCT - 89 + - col2 + + ( - col1 * col0 ) FROM tab0 AS cor0
----
-2186
-3485
-8270

query I rowsort
SELECT ALL + 82 + - col2 FROM tab1 cor0
----
-14
25
28

query I rowsort
SELECT ALL - 81 * col0 + + 93 * + col0 + - col2 * + 22 AS col0 FROM tab0 AS cor0
----
-438
-736
398

query I rowsort
SELECT + ( - col0 ) - + col2 FROM tab2 AS cor0
----
-104
-117
-34

query I rowsort
SELECT DISTINCT - cor0.col0 + col1 AS col2 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT - col2 + 92 * - col0 FROM tab0 AS cor0
----
-2241
-3221
-8270

query I rowsort
SELECT + col0 * col0 + col2 * col1 AS col0 FROM tab2
----
6887
7618
886

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9772
SELECT + col2 + + CAST( col2 AS SIGNED ) * + col2 FROM tab0 AS cor0
----
1122
2
6806

skipif mysql # not compatible
query I rowsort label-9772
SELECT + col2 + + CAST ( col2 AS INTEGER ) * + col2 FROM tab0 AS cor0
----
1122
2
6806

query I rowsort
SELECT col0 * col0 + + col0 * - col1 AS col2 FROM tab2 AS cor0
----
-168
1482
4898

query I rowsort
SELECT + + cor0.col0 * - col1 AS col0 FROM tab2 cor0
----
-1343
-217
-4602

query I rowsort
SELECT + cor0.col1 * - 7 FROM tab2 AS cor0
----
-119
-217
-413

query I rowsort
SELECT cor0.col2 * 65 + - col2 * col2 FROM tab0 AS cor0
----
-1394
1056
64

query I rowsort
SELECT + ( ( cor0.col0 ) ) * + col2 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT ALL + ( + col2 ) + col0 * col0 AS col0 FROM tab0 AS cor0
----
1226
609
8003

query I rowsort
SELECT - - 36 * cor0.col1 AS col2 FROM tab0 AS cor0
----
3096
3276
3492

query I rowsort
SELECT DISTINCT + - 53 + col1 AS col1 FROM tab1 cor0
----
-27
-40
-43

query I rowsort
SELECT ALL - - col2 * cor0.col0 * + col2 + col0 FROM tab0 AS cor0
----
26160
598525
70

query I rowsort
SELECT ALL + ( - col0 ) * - col2 + + col2 AS col0 FROM tab2 AS cor0
----
2054
216
3040

query I rowsort
SELECT + col2 * cor0.col0 + + col0 FROM tab2 cor0
----
196
2106
3081

query I rowsort
SELECT DISTINCT + col1 * + col0 - col2 FROM tab0 AS cor0
----
2031
3394
8017

query I rowsort
SELECT + + 40 * col1 AS col0 FROM tab1 AS cor0
----
1040
400
520

query I rowsort
SELECT - 34 + - col1 * - col2 FROM tab2 AS cor0
----
1500
612
803

query I rowsort
SELECT DISTINCT - col1 + col1 + - col0 * - col2 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT ALL 39 AS col2 FROM tab2 cor0
----
39
39
39

query I rowsort
SELECT ALL + ( col0 ) * - col2 * col0 AS col0 FROM tab2 cor0
----
-1323
-158184
-237158

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( col2 ) col1 FROM tab1 cor0
----
-54
-57
-96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9791
SELECT CAST( col0 AS SIGNED ) + - col1 AS col0 FROM tab1
----
-23
54
67

skipif mysql # not compatible
query I rowsort label-9791
SELECT CAST ( col0 AS INTEGER ) + - col1 AS col0 FROM tab1
----
-23
54
67

query I rowsort
SELECT ALL 69 AS col1 FROM tab1, tab1 cor0
----
9 values hashing to 85d9b90a03b9def161891b13085271f7

query I rowsort
SELECT DISTINCT - 93 AS col2 FROM tab2
----
-93

onlyif mysql # use DIV operator for integer division
query I rowsort label-9794
SELECT ALL - 66 * col2 DIV + col0 AS col0 FROM tab2
----
-22
-254
-31

skipif mysql # not compatible
query I rowsort label-9794
SELECT ALL - 66 * col2 / + col0 AS col0 FROM tab2
----
-22
-254
-31

query I rowsort
SELECT ALL col1 * - col0 + + col0 FROM tab2
----
-1264
-210
-4524

query I rowsort
SELECT + + 71 + col1 * col1 AS col1 FROM tab2 AS cor0
----
1032
3552
360

onlyif mysql # use DIV operator for integer division
query I rowsort label-9797
SELECT ALL - col1 + - col2 DIV + col2 AS col2 FROM tab1 AS cor0
----
-11
-14
-27

skipif mysql # not compatible
query I rowsort label-9797
SELECT ALL - col1 + - col2 / + col2 AS col2 FROM tab1 AS cor0
----
-11
-14
-27

onlyif mysql # use DIV operator for integer division
query I rowsort label-9798
SELECT col0 * col2 DIV + col2 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-9798
SELECT col0 * col2 / + col2 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT ALL + - col0 * col0 + col0 FROM tab1 AS cor0
----
-4032
-6
-6320

query I rowsort
SELECT DISTINCT + col0 + + col1 * + col0 FROM tab0
----
2088
3430
8188

query I rowsort
SELECT + 35 * + col1 AS col1 FROM tab2
----
1085
2065
595

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + - 90 col1 FROM tab0 AS cor0
----
-123
-172
-91

query I rowsort
SELECT DISTINCT col0 * cor0.col1 - - cor0.col1 AS col0 FROM tab2 cor0
----
1360
248
4661

query I rowsort
SELECT + - col2 + - 55 AS col1 FROM tab1 AS cor0
----
-109
-112
-151

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9805
SELECT col2 * + CAST( ( + col1 ) AS SIGNED ) AS col1 FROM tab1
----
1248
1404
570

skipif mysql # not compatible
query I rowsort label-9805
SELECT col2 * + CAST ( ( + col1 ) AS INTEGER ) AS col1 FROM tab1
----
1248
1404
570

query I rowsort
SELECT ALL cor0.col0 * + 17 AS col1 FROM tab1 cor0
----
1088
1360
51

skipif mysql # not compatible
query I rowsort
SELECT - CAST ( col2 AS REAL ) AS col2 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT ALL + col1 + - 51 FROM tab2 AS cor0
----
-20
-34
8

onlyif mysql # use DIV operator for integer division
query I rowsort label-9809
SELECT - CAST( - col2 AS SIGNED ) + col1 DIV - col0 FROM tab2
----
23
26
38

skipif mysql # not compatible
query I rowsort label-9809
SELECT - CAST ( - col2 AS INTEGER ) + col1 / - col0 FROM tab2
----
23
26
38

query I rowsort
SELECT 14 * 77 + col2 FROM tab1
----
1132
1135
1174

query I rowsort
SELECT - + col0 * + cor0.col1 AS col2 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT ALL + 94 + col1 AS col2 FROM tab0 AS cor0
----
180
185
191

query I rowsort
SELECT + 61 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 07149905a72bd87553381f34d19ed290

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 col0 FROM tab1 cor0
----
3
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * 82 col2 FROM tab1 AS cor0
----
-4428
-4674
-7872

query I rowsort
SELECT DISTINCT 22 + cor0.col1 AS col1 FROM tab0, tab0 AS cor0
----
108
113
119

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL IN ( col1 * col0 * - col0 + col1 * + col2 )
----

query I rowsort
SELECT DISTINCT + col0 * - col1 - - cor0.col0 * - col2 * col1 FROM tab0 AS cor0
----
-672217
-6790
-70176

query I rowsort
SELECT ALL + col2 - + col0 AS col0 FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT DISTINCT - - col1 + + col0 * col2 * col0 AS col0 FROM tab1 AS cor0
----
233482
512
614413

query I rowsort
SELECT DISTINCT - + col2 * col2 + col0 * col0 + + col1 AS col1 FROM tab1 AS cor0
----
-2803
-2881
857

query I rowsort
SELECT + - col2 + col0 * - col0 FROM tab0 AS cor0
----
-1226
-609
-8003

query I rowsort
SELECT DISTINCT col1 + - col2 + col1 * + col0 FROM tab0 cor0
----
2117
3491
8108

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col0 FROM tab1 AS cor0 WHERE NOT col0 NOT BETWEEN - col1 AND NULL
----

query I rowsort
SELECT col2 + + col0 * - tab2.col0 AS col2 FROM tab2
----
-22
-6058
-6203

query I rowsort
SELECT ALL tab1.col2 * + col1 + col1 * col1 AS col2 FROM tab1
----
1417
2080
670

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN + col2 AND NULL
----

query I rowsort
SELECT ALL - cor0.col1 * cor0.col2 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to c52f276f0448e9317aa4a2c462e0bab5

query I rowsort
SELECT DISTINCT col1 * - col2 * + col0 FROM tab0 cor0 WHERE NULL <= col2
----

query I rowsort
SELECT ALL col1 - col1 * + col1 AS col2 FROM tab0 AS cor0
----
-7310
-8190
-9312

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 - col2 * cor0.col1 * col1 col0 FROM tab2 AS cor0
----
-10944
-25920
-90480

query I rowsort
SELECT DISTINCT + col1 - col2 * col1 AS col2 FROM tab0 AS cor0
----
-2752
-7371
0

query I rowsort
SELECT - + col1 + - col2 * - cor0.col1 AS col0 FROM tab2 AS cor0
----
1475
629
806

query I rowsort
SELECT + + col0 + col2 * - col2 AS col2 FROM tab0 AS cor0
----
-1065
-6635
34

query I rowsort
SELECT ALL col2 * tab0.col2 + - col0 FROM tab0
----
-34
1065
6635

query I rowsort
SELECT col0 * - col1 + cor0.col1 AS col1 FROM tab1 cor0
----
-1027
-52
-630

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * - col1 col1 FROM tab1
----
-1248
-1404
-570

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL > ( col0 * + col2 ) AND NOT ( col1 ) NOT IN ( col1 - + col0 )
----

query I rowsort
SELECT + col1 * - col0 * col1 AS col1 FROM tab1
----
-13520
-2028
-6400

onlyif mysql # use DIV operator for integer division
query I rowsort label-9840
SELECT ALL + col2 + - col1 DIV - col2 AS col0 FROM tab1
----
54
57
96

skipif mysql # not compatible
query I rowsort label-9840
SELECT ALL + col2 + - col1 / - col2 AS col0 FROM tab1
----
54
57
96

query I rowsort
SELECT - + col2 - ( + 96 ) FROM tab2 AS cor0
----
-122
-123
-134

onlyif mysql # use DIV operator for integer division
query I rowsort label-9842
SELECT - col2 DIV col2 + - 63 FROM tab1 AS cor0
----
-64
-64
-64

skipif mysql # not compatible
query I rowsort label-9842
SELECT - col2 / col2 + - 63 FROM tab1 AS cor0
----
-64
-64
-64

query I rowsort
SELECT + col1 * + col1 - col0 AS col2 FROM tab0 AS cor0
----
7372
8192
9374

query I rowsort
SELECT tab2.col0 * ( - tab2.col0 * + col0 + 75 * - col1 ) FROM tab2
----
-16618
-593764
-819702

query I rowsort
SELECT - col1 + - tab1.col2 - + ( col1 ) FROM tab1
----
-106
-122
-77

onlyif mysql # use DIV operator for integer division
query I rowsort label-9846
SELECT + col1 DIV + ( col0 * + col0 ) + - col2 - col1 AS col0 FROM tab2
----
-55
-58
-85

skipif mysql # not compatible
query I rowsort label-9846
SELECT + col1 / + ( col0 * + col0 ) + - col2 - col1 AS col0 FROM tab2
----
-55
-58
-85

onlyif mysql # use DIV operator for integer division
query I rowsort label-9847
SELECT + - col2 DIV + 84 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9847
SELECT + - col2 / + 84 FROM tab1 AS cor0
----
-1
0
0

query I rowsort
SELECT + col2 + 25 * + col2 AS col2 FROM tab2 AS cor0
----
676
702
988

query I rowsort
SELECT - + cor0.col1 * ( + col1 ) AS col2 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT DISTINCT - - col0 * + col1 AS col1 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT + 72 - 59 * + col2 FROM tab0 AS cor0
----
-1875
-4766
13

query I rowsort
SELECT ALL + - cor0.col2 + 41 FROM tab2 cor0
----
14
15
3

query I rowsort
SELECT DISTINCT + col0 + - col2 * + col0 AS col1 FROM tab1 AS cor0
----
-159
-3584
-7600

query I rowsort
SELECT - - cor0.col1 * cor0.col1 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT DISTINCT col0 * 79 AS col0 FROM tab1
----
237
5056
6320

query I rowsort
SELECT DISTINCT 91 FROM tab0, tab2 AS cor0
----
91

query I rowsort
SELECT + 3 + 50 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to fede6033dee346dbd272085c05724fda

onlyif mysql # use DIV operator for integer division
query I rowsort label-9858
SELECT + 9 DIV - col0 AS col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9858
SELECT + 9 / - col0 AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + - col2 + - col0 * - 24 AS col0 FROM tab2 AS cor0
----
141
1846
1858

onlyif mysql # use DIV operator for integer division
query I rowsort label-9860
SELECT ALL - col0 DIV - tab2.col0 AS col1 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9860
SELECT ALL - col0 / - tab2.col0 AS col1 FROM tab2
----
1
1
1

query I rowsort
SELECT - cor1.col0 FROM tab2, tab2 AS cor0, tab1 cor1
----
27 values hashing to 729c1edda9332398299f39cd174ed840

query I rowsort
SELECT DISTINCT - + col0 * + ( + cor0.col0 ) FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT DISTINCT + 32 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
32

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9864
SELECT DISTINCT - + col1 + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9864
SELECT DISTINCT - + col1 + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-9865
SELECT ALL + col2 + - 67 DIV 16 AS col1 FROM tab2 AS cor0
----
22
23
34

skipif mysql # not compatible
query I rowsort label-9865
SELECT ALL + col2 + - 67 / 16 AS col1 FROM tab2 AS cor0
----
22
23
34

query I rowsort
SELECT cor0.col0 * 51 AS col1 FROM tab0 AS cor0
----
1224
1785
4539

query I rowsort
SELECT ALL + - col1 + 55 FROM tab1 AS cor0
----
29
42
45

query I rowsort
SELECT - col1 + col0 * - ( + cor0.col0 ) * col1 FROM tab1 AS cor0
----
-260
-40970
-83213

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9869
SELECT + - col2 * CAST( - 60 + - col1 AS SIGNED ) AS col0 FROM tab2 cor0
----
2457
2926
3094

skipif mysql # not compatible
query I rowsort label-9869
SELECT + - col2 * CAST ( - 60 + - col1 AS INTEGER ) AS col0 FROM tab2 cor0
----
2457
2926
3094

onlyif mysql # use DIV operator for integer division
query I rowsort label-9870
SELECT + col0 + + col2 DIV - col2 AS col0 FROM tab1
----
2
63
79

skipif mysql # not compatible
query I rowsort label-9870
SELECT + col0 + + col2 / - col2 AS col0 FROM tab1
----
2
63
79

query I rowsort
SELECT - 37 FROM tab1, tab0 cor0, tab0 AS cor1
----
27 values hashing to 395d44ccbce08828bc493e93ec3d9207

query I rowsort
SELECT ALL - col2 + - col1 * + 0 * - cor0.col1 + ( col1 * col1 ) AS col0 FROM tab1 cor0
----
43
622
73

query I rowsort
SELECT col2 + 32 FROM tab0 AS cor0
----
114
33
65

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9874
SELECT DISTINCT + + col1 + CAST( cor0.col1 AS SIGNED ) FROM tab1 AS cor0
----
20
26
52

skipif mysql # not compatible
query I rowsort label-9874
SELECT DISTINCT + + col1 + CAST ( cor0.col1 AS INTEGER ) FROM tab1 AS cor0
----
20
26
52

query I rowsort
SELECT ALL + - col0 + - ( ( col1 ) ) + col2 FROM tab0 AS cor0
----
-131
-77
-98

onlyif mysql # use DIV operator for integer division
query I rowsort label-9876
SELECT ALL + col0 DIV ( - col2 ) + cor0.col1 * + cor0.col2 FROM tab1 AS cor0
----
1248
1404
569

skipif mysql # not compatible
query I rowsort label-9876
SELECT ALL + col0 / ( - col2 ) + cor0.col1 * + cor0.col2 FROM tab1 AS cor0
----
1248
1404
569

onlyif mysql # use DIV operator for integer division
query I rowsort label-9877
SELECT - - cor0.col1 DIV + 18 AS col2 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9877
SELECT - - cor0.col1 / + 18 AS col2 FROM tab1 AS cor0
----
0
0
1

query I rowsort
SELECT + + cor0.col1 * col0 AS col2 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT ALL - 15 + col0 * + col1 AS col1 FROM tab2
----
1328
202
4587

query I rowsort
SELECT - + col2 + col1 * - col1 AS col1 FROM tab1 AS cor0
----
-157
-265
-730

query I rowsort
SELECT + + 28 * col1 AS col0 FROM tab0 AS cor0
----
2408
2548
2716

query I rowsort
SELECT + + 29 * - col2 FROM tab1 AS cor0
----
-1566
-1653
-2784

query I rowsort
SELECT - 55 * col0 + - cor0.col2 * col1 FROM tab2 AS cor0
----
-1222
-4991
-5824

query I rowsort
SELECT ALL 69 + col1 * col2 FROM tab0
----
166
2907
7531

onlyif mysql # use DIV operator for integer division
query I rowsort label-9885
SELECT tab1.col2 + col1 * col1 DIV col2 + 1 AS col2 FROM tab1
----
59
67
98

skipif mysql # not compatible
query I rowsort label-9885
SELECT tab1.col2 + col1 * col1 / col2 + 1 AS col2 FROM tab1
----
59
67
98

query I rowsort
SELECT + - col0 + - cor0.col1 AS col1 FROM tab2 AS cor0
----
-137
-38
-96

query I rowsort
SELECT 26 + col1 * + col0 FROM tab0
----
2090
3421
8125

query I rowsort
SELECT DISTINCT - ( + col0 ) + cor0.col2 + 6 AS col0 FROM tab2 AS cor0
----
-35
-46
26

onlyif mysql # use DIV operator for integer division
query I rowsort label-9889
SELECT ALL + 88 * col1 + - col0 DIV col2 AS col1 FROM tab0 cor0
----
7568
8007
8501

skipif mysql # not compatible
query I rowsort label-9889
SELECT ALL + 88 * col1 + - col0 / col2 AS col1 FROM tab0 cor0
----
7568
8007
8501

query I rowsort
SELECT - 17 * cor0.col0 AS col1 FROM tab1 AS cor0
----
-1088
-1360
-51

query I rowsort
SELECT ALL + 61 * + col0 + + col1 AS col0 FROM tab1 AS cor0
----
209
3914
4893

query I rowsort
SELECT ( cor0.col0 ) * col1 * - col1 FROM tab1 AS cor0
----
-13520
-2028
-6400

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9893
SELECT DISTINCT CAST( col1 AS SIGNED ) + col1 * col0 FROM tab1 AS cor0
----
104
1053
650

skipif mysql # not compatible
query I rowsort label-9893
SELECT DISTINCT CAST ( col1 AS INTEGER ) + col1 * col0 FROM tab1 AS cor0
----
104
1053
650

query I rowsort
SELECT ALL + cor0.col1 * + cor0.col0 + - col1 AS col1 FROM tab2 AS cor0
----
1326
186
4543

query I rowsort
SELECT - 72 + - col1 FROM tab2 cor0
----
-103
-131
-89

query I rowsort
SELECT tab1.col2 + - 7 FROM tab1
----
47
50
89

query I rowsort
SELECT DISTINCT - 23 + ( col2 ) AS col2 FROM tab1 cor0
----
31
34
73

query I rowsort
SELECT ALL - 23 + cor0.col1 AS col0 FROM tab1 AS cor0
----
-10
-13
3

query I rowsort
SELECT + 66 AS col0 FROM tab0 cor0
----
66
66
66

query I rowsort
SELECT ALL col0 * + col2 * cor0.col2 AS col1 FROM tab0 AS cor0
----
26136
35
598436

query I rowsort
SELECT DISTINCT 35 + col2 * col1 AS col2 FROM tab2 AS cor0
----
1569
681
872

query I rowsort
SELECT DISTINCT + 28 * col0 AS col1 FROM tab0 AS cor0
----
2492
672
980

query I rowsort
SELECT + 31 + + col1 * + col0 FROM tab2 cor0
----
1374
248
4633

onlyif mysql # use DIV operator for integer division
query I rowsort label-9904
SELECT - cor0.col1 DIV 3 FROM tab2 AS cor0
----
-10
-19
-5

skipif mysql # not compatible
query I rowsort label-9904
SELECT - cor0.col1 / 3 FROM tab2 AS cor0
----
-10
-19
-5

query I rowsort
SELECT 7 + + col2 FROM tab0
----
40
8
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-9906
SELECT DISTINCT + + 74 DIV col0 FROM tab2 AS cor0
----
0
10

skipif mysql # not compatible
query I rowsort label-9906
SELECT DISTINCT + + 74 / col0 FROM tab2 AS cor0
----
0
10

query I rowsort
SELECT + tab0.col1 AS col1 FROM tab2, tab1 AS cor0 CROSS JOIN tab0, tab2 AS cor1
----
81 values hashing to 8c9db501a604ea66e3b5e5598f3f2a91

query I rowsort
SELECT DISTINCT - + cor0.col0 FROM tab2, tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT ALL - cor0.col2 + ( - col2 ) AS col0 FROM tab0 AS cor0
----
-164
-2
-66

query I rowsort
SELECT ALL + - col1 + col1 * col0 + col1 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT DISTINCT col0 + - 57 * col0 AS col2 FROM tab1 AS cor0
----
-168
-3584
-4480

query I rowsort
SELECT DISTINCT - + cor0.col2 * - ( col0 ) AS col0 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT - col1 + + cor0.col1 * - 1 * - col0 AS col2 FROM tab1 AS cor0
----
1027
52
630

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + - col0 * tab1.col2 * col1 col2 FROM tab1
----
-36544
-4215
-99920

query I rowsort
SELECT DISTINCT 46 FROM tab2, tab0 cor0, tab1 AS cor1
----
46

query I rowsort
SELECT - col1 + ( col1 * - col2 ) FROM tab2
----
-1593
-663
-868

onlyif mysql # use DIV operator for integer division
query I rowsort label-9917
SELECT ALL + col2 + ( col0 ) DIV col0 AS col2 FROM tab2
----
27
28
39

skipif mysql # not compatible
query I rowsort label-9917
SELECT ALL + col2 + ( col0 ) / col0 AS col2 FROM tab2
----
27
28
39

query I rowsort
SELECT DISTINCT tab0.col2 * 30 + col0 * col0 * col2 AS col1 FROM tab0
----
1255
19998
651982

query I rowsort
SELECT ALL col2 + - col0 + + 79 FROM tab1
----
130
72
95

query I rowsort
SELECT ( 12 ) AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to d4f5a8e032294c3b9342821617800972

query I rowsort
SELECT + col1 * ( col2 ) + col2 * + ( - cor0.col2 ) + col0 FROM tab2 AS cor0
----
-719
115
936

query I rowsort
SELECT - cor0.col1 + col1 + 51 AS col1 FROM tab1 AS cor0
----
51
51
51

query I rowsort
SELECT DISTINCT col1 * 81 FROM tab2 AS cor0
----
1377
2511
4779

query I rowsort
SELECT DISTINCT - 28 FROM tab0, tab2 AS cor0
----
-28

onlyif mysql # use DIV operator for integer division
query I rowsort label-9925
SELECT ALL - + col1 DIV 7 + + cor0.col2 FROM tab0 AS cor0
----
-12
21
69

skipif mysql # not compatible
query I rowsort label-9925
SELECT ALL - + col1 / 7 + + cor0.col2 FROM tab0 AS cor0
----
-12
21
69

query I rowsort
SELECT ALL - col0 * 77 FROM tab0
----
-1848
-2695
-6853

query I rowsort
SELECT DISTINCT - 91 + - col1 FROM tab1 AS cor0
----
-101
-104
-117

query I rowsort
SELECT - - 84 FROM tab2, tab0, tab1 cor0
----
27 values hashing to e8cd683fe8cea77b4326d9b80f21c74a

query I rowsort
SELECT DISTINCT - 85 FROM tab0, tab1, tab1 cor0, tab2
----
-85

query I rowsort
SELECT ALL + cor1.col1 AS col1 FROM tab2, tab2 AS cor0, tab0 cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT DISTINCT col0 + tab2.col2 AS col1 FROM tab2
----
104
117
34

query I rowsort
SELECT 0 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

query I rowsort
SELECT cor0.col1 + 32 * 14 FROM tab0, tab1 AS cor0
----
9 values hashing to acd4ef643afdaa839d0cc19aab778cea

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9934
SELECT ALL + ( + col0 ) + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9934
SELECT ALL + ( + col0 ) + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 80 * - col0 AS col2 FROM tab0 cor0
----
-1920
-2800
-7120

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 29 col0 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
-29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 * + col1 + col2 col0 FROM tab1 cor0
----
1136
132
697

query I rowsort
SELECT DISTINCT - cor0.col1 + + col2 * cor0.col0 AS col0 FROM tab2 AS cor0
----
158
1969
2985

query I rowsort
SELECT ALL - col0 + - col0 - + col0 AS col2 FROM tab0 AS cor0
----
-105
-267
-72

query I rowsort
SELECT - - col2 - 58 FROM tab0 AS cor0
----
-25
-57
24

query I rowsort
SELECT - cor0.col0 * ( col2 ) + - col1 * col2 FROM tab1 AS cor0
----
-1566
-4218
-8928

query I rowsort
SELECT + - col2 + - col0 AS col1 FROM tab2 cor0
----
-104
-117
-34

query I rowsort
SELECT ALL + col2 + col1 * col1 AS col1 FROM tab0 AS cor0
----
7429
8363
9410

onlyif mysql # use DIV operator for integer division
query I rowsort label-9944
SELECT col2 + - col2 + + col2 DIV tab2.col1 FROM tab2
----
0
0
2

skipif mysql # not compatible
query I rowsort label-9944
SELECT col2 + - col2 + + col2 / tab2.col1 FROM tab2
----
0
0
2

query I rowsort
SELECT + - col1 + - 9 AS col2 FROM tab1 AS cor0
----
-19
-22
-35

query I rowsort
SELECT + cor0.col2 * 25 + col0 * 97 AS col1 FROM tab1 AS cor0
----
10160
1641
7633

query I rowsort
SELECT col0 + 92 AS col2 FROM tab1
----
156
172
95

query I rowsort
SELECT cor0.col0 + + 67 FROM tab0, tab1 cor0
----
9 values hashing to d707ef9c98c6799c38d1f0842a97d741

query I rowsort
SELECT DISTINCT + col2 - - col2 * - ( + col0 + + col1 ) FROM tab1
----
-1512
-4161
-8832

query I rowsort
SELECT col0 * col0 * 58 FROM tab0 AS cor0
----
33408
459418
71050

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 14 col0 FROM tab2 AS cor0
----
14

query I rowsort
SELECT ALL - + col1 * col2 + - 28 FROM tab2 AS cor0
----
-1562
-674
-865

query I rowsort
SELECT - ( + 20 * - cor0.col1 ) FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 65dc52da6e4ddedde5a12e424f735abb

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 cor0, tab2 AS cor1, tab2 cor2
----
972 values hashing to a698694a7dac245e42212ff0316bdf45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * + 17 + - 26 col2 FROM tab2
----
416
433
620

skipif mysql # not compatible
query I rowsort
SELECT - CAST ( + 14 AS REAL ) * + tab0.col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 9dc4c3d27681348c44327a9c80a79b08

query I rowsort
SELECT col1 * ( ( col1 ) ) AS col0 FROM tab0
----
7396
8281
9409

query I rowsort
SELECT + - col1 * + col2 * col1 + cor0.col0 * cor0.col2 AS col2 FROM tab1 AS cor0
----
-2052
-36342
-8544

query I rowsort
SELECT + - 85 * 85 AS col0 FROM tab1 AS cor0
----
-7225
-7225
-7225

query I rowsort
SELECT ALL + + ( - ( + col1 ) ) FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT + + col1 + - col2 * col0 FROM tab1 AS cor0
----
-136
-3638
-7667

query I rowsort
SELECT - cor0.col0 + + cor0.col1 FROM tab1 cor0
----
-54
-67
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 * col1 + col0 + - 30 col0 FROM tab2 AS cor0
----
1392
194
4650

query I rowsort
SELECT ALL - + ( 49 ) + col1 FROM tab1 AS cor0
----
-23
-36
-39

query I rowsort
SELECT ALL + 8 - + col0 * + col1 * + col1 FROM tab2 AS cor0
----
-22823
-271510
-6719

query I rowsort
SELECT + + ( ( col1 ) ) AS col0 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT col0 * + 88 * col1 + + 59 AS col0 FROM tab2
----
118243
19155
405035

query I rowsort
SELECT ( col2 ) + - col1 AS col0 FROM tab0
----
-53
-9
-96

query I rowsort
SELECT DISTINCT - 78 * col0 AS col2 FROM tab1
----
-234
-4992
-6240

query I rowsort
SELECT 70 * + 35 AS col1 FROM tab0 AS cor0
----
2450
2450
2450

query I rowsort
SELECT DISTINCT + 26 * + col0 FROM tab2 AS cor0
----
182
2028
2054

query I rowsort
SELECT 90 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 96f7a90428db93f472e0d219bab64853

query I rowsort
SELECT DISTINCT + ( 72 ) FROM tab1 AS cor0
----
72

query I rowsort
SELECT DISTINCT + col0 + - 27 AS col1 FROM tab0 cor0
----
-3
62
8

query I rowsort
SELECT ALL + col0 * col0 * - ( - cor0.col0 ) FROM tab0 AS cor0
----
13824
42875
704969

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 * - col1 + + 76 * - col1 col2 FROM tab0 cor0
----
-14378
-7469
-9374

onlyif mysql # use DIV operator for integer division
query I rowsort label-9977
SELECT ALL + col1 - col0 DIV ( col0 + + cor0.col1 ) col2 FROM tab0 AS cor0
----
86
91
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9977
SELECT ALL + col1 - col0 / ( col0 + + cor0.col1 ) col2 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT DISTINCT + ( - col1 ) + - col1 FROM tab1 cor0
----
-20
-26
-52

query I rowsort
SELECT ALL + col1 * + col2 + - 3 * ( col0 ) FROM tab2 AS cor0
----
1300
409
816

query I rowsort
SELECT + + cor0.col2 + - col0 AS col0 FROM tab0 cor0
----
-34
-7
9

query I rowsort
SELECT ALL + 75 * - col2 + col2 AS col0 FROM tab0
----
-2442
-6068
-74

onlyif mysql # use DIV operator for integer division
query I rowsort label-9982
SELECT col0 DIV col1 - tab1.col1 FROM tab1
----
-26
-4
-7

skipif mysql # not compatible
query I rowsort label-9982
SELECT col0 / col1 - tab1.col1 FROM tab1
----
-26
-4
-7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9983
SELECT - col0 * - CAST( col1 AS SIGNED ) + col0 + 8 AS col2 FROM tab1 AS cor0
----
1128
712
89

skipif mysql # not compatible
query I rowsort label-9983
SELECT - col0 * - CAST ( col1 AS INTEGER ) + col0 + 8 AS col2 FROM tab1 AS cor0
----
1128
712
89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9984
SELECT ALL - cor0.col0 + + CAST( col0 AS SIGNED ) FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9984
SELECT ALL - cor0.col0 + + CAST ( col0 AS INTEGER ) FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + col2 * - 38 FROM tab2 AS cor0
----
-1026
-1444
-988

query I rowsort
SELECT + col1 - + ( cor0.col0 ) FROM tab0 AS cor0
----
2
62
62

query I rowsort
SELECT ALL - cor0.col2 + ( col0 ) AS col2 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT ALL col0 * ( 10 ) + - col2 AS col0 FROM tab2 AS cor0
----
43
752
754

onlyif mysql # use DIV operator for integer division
query I rowsort label-9989
SELECT col2 + + col0 + col0 DIV col2 FROM tab0 AS cor0
----
172
57
71

skipif mysql # not compatible
query I rowsort label-9989
SELECT col2 + + col0 + col0 / col2 FROM tab0 AS cor0
----
172
57
71

skipif mysql # not compatible
query I rowsort
SELECT ALL - col0 * CAST ( 4 AS REAL ) AS col1 FROM tab1 AS cor0
----
-12
-256
-320

query I rowsort
SELECT ALL col1 * col0 + 2 * col1 * - col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT - cor0.col1 + + 38 * col1 FROM tab2 AS cor0
----
1147
2183
629

query I rowsort
SELECT ALL + cor0.col0 + + col2 * col2 * col0 FROM tab1 cor0
----
208000
737360
8751

query I rowsort
SELECT ALL + 7 + col2 - col2 * - ( col0 * col0 ) FROM tab0
----
1233
19048
649611

query I rowsort
SELECT 46 AS col0 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 2f97924b57b73102233df7c9ce8ad602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 25 col2 FROM tab1
----
25
25
25

query I rowsort
SELECT 71 AS col2 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 95a6ff35b7b8f00868fb58bcaa32d0c2

query I rowsort
SELECT col1 + + ( + ( col2 ) ) * - col1 AS col0 FROM tab2 AS cor0
----
-1475
-629
-806

query I rowsort
SELECT - col1 + - col2 + + 7 AS col2 FROM tab0 AS cor0
----
-112
-166
-91

