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)
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 25 col2 FROM tab2 AS cor0
----
25
25
25
query I rowsort
SELECT + 2 * col0 AS col2 FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT 90 AS col0 FROM tab2
----
90
90
90
query I rowsort
SELECT - - cor0.col1 * + col2 + + ( cor0.col1 + - 10 ) FROM tab1 AS cor0
----
1251
1420
570
query I rowsort
SELECT col0 * + 39 + 21 AS col2 FROM tab2 AS cor0
----
294
3063
3102
query I rowsort
SELECT col1 + + ( + col0 ) AS col1 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT + + col0 + - col1 AS col1 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT - - col1 * col0 + - col0 * col0 FROM tab2 cor0
----
-1482
-4898
168
query I rowsort
SELECT ALL col0 * + col0 - col1 * col1 AS col1 FROM tab0 AS cor0
----
-360
-6820
-8184
query I rowsort
SELECT col0 + cor0.col0 AS col2 FROM tab1 AS cor0
----
128
160
6
query I rowsort
SELECT DISTINCT - cor0.col0 * 91 + col0 AS col0 FROM tab2 AS cor0
----
-630
-7020
-7110
query I rowsort
SELECT DISTINCT 48 * + 79 + col2 FROM tab0 AS cor0
----
3793
3825
3874
query I rowsort
SELECT + 22 + col0 FROM tab2 cor0
----
100
101
29
query I rowsort
SELECT DISTINCT 7 * + col2 AS col0 FROM tab2 AS cor0
----
182
189
266
query I rowsort
SELECT + 98 AS col0 FROM tab1 AS cor0
----
98
98
98
query I rowsort
SELECT DISTINCT - ( - col1 ) + col0 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT ALL cor1.col2 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1, tab1 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
query I rowsort
SELECT + tab2.col1 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
query I rowsort
SELECT + 40 + + cor0.col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 4a99b775d5a4bd588554d9f79e4d84d4
query I rowsort
SELECT - + col0 + col2 AS col2 FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT ALL + cor0.col0 * - col1 * 89 + col0 AS col1 FROM tab2 AS cor0
----
-119448
-19306
-409500
query I rowsort
SELECT ALL col1 * + 25 + + ( - tab0.col1 ) AS col2 FROM tab0
----
2064
2184
2328
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-22
SELECT DISTINCT col1 + - CAST( NULL AS SIGNED ) * 41 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-22
SELECT DISTINCT col1 + - CAST ( NULL AS INTEGER ) * 41 FROM tab1
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-23
SELECT ALL + col1 + CAST( - col1 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-23
SELECT ALL + col1 + CAST ( - col1 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - cor0.col1 AS col2 FROM tab0, tab0 cor0, tab1 AS cor1
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84
onlyif mysql # use DIV operator for integer division
query I rowsort label-25
SELECT + + col1 DIV col1 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-25
SELECT + + col1 / col1 FROM tab0 AS cor0
----
1
1
1
query I rowsort
SELECT DISTINCT + - cor0.col2 * cor0.col2 * col2 FROM tab0 AS cor0
----
-1
-35937
-551368
onlyif mysql # use DIV operator for integer division
query I rowsort label-27
SELECT - col0 DIV col0 AS col2 FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-27
SELECT - col0 / col0 AS col2 FROM tab0 AS cor0
----
-1
-1
-1
query I rowsort
SELECT + col0 * - col2 * col0 + col0 AS col1 FROM tab0 AS cor0
----
-1190
-18984
-649433
query I rowsort
SELECT + ( + col0 ) * cor0.col2 + + col0 * + cor0.col0 * + col0 AS col0 FROM tab2 AS cor0
----
476580
496041
532
query I rowsort
SELECT - 55 * col0 FROM tab1 cor0
----
-165
-3520
-4400
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-31
SELECT CAST( NULL AS SIGNED ) + - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-31
SELECT CAST ( NULL AS INTEGER ) + - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + - 41 AS col1 FROM tab1 AS cor0
----
-41
query I rowsort
SELECT ALL col1 + col2 * col1 FROM tab0 AS cor0
----
194
2924
7553
query I rowsort
SELECT DISTINCT - col2 + 28 + 78 * col2 FROM tab1
----
4186
4417
7420
query I rowsort
SELECT DISTINCT col2 * - col1 + tab1.col2 AS col1 FROM tab1
----
-1152
-1350
-513
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-36
SELECT ALL CAST( NULL AS SIGNED ) AS col2 FROM tab1, tab2 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-36
SELECT ALL CAST ( NULL AS INTEGER ) AS col2 FROM tab1, tab2 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT + col1 * - ( + 40 * tab0.col0 ) FROM tab0
----
-135800
-323960
-82560
query I rowsort
SELECT ALL - col1 + ( + col2 ) * col0 AS col2 FROM tab0
----
-62
706
7207
onlyif mysql # use DIV operator for integer division
query I rowsort label-39
SELECT - - col2 DIV + col1 + + cor0.col0 DIV 24 AS col0 FROM tab0 AS cor0
----
1
1
3
skipif mysql # not compatible
query I rowsort label-39
SELECT - - col2 / + col1 + + cor0.col0 / 24 AS col0 FROM tab0 AS cor0
----
1
1
3
query I rowsort
SELECT ALL + col2 - col0 FROM tab0 AS cor0
----
-34
-7
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * - col2 * 40 + cor0.col2 col2 FROM tab1 AS cor0
----
116694
130017
368736
query I rowsort
SELECT ALL + cor0.col0 + + cor0.col2 + ( - cor0.col0 ) AS col2 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT DISTINCT + cor0.col1 - col2 AS col1 FROM tab2 AS cor0
----
-21
33
4
query I rowsort
SELECT 51 + - col2 AS col0 FROM tab1 AS cor0
----
-3
-45
-6
query I rowsort
SELECT ALL + cor0.col1 + - col2 + - 98 * - 61 FROM tab1 AS cor0
----
5895
5931
5950
query I rowsort
SELECT ALL + 65 AS col2 FROM tab2 AS cor0
----
65
65
65
query I rowsort
SELECT DISTINCT - + cor0.col0 * cor0.col2 + 36 * - col0 * col2 AS col1 FROM tab2 AS cor0
----
-111074
-6993
-75036
query I rowsort
SELECT 87 AS col0 FROM tab2 cor0
----
87
87
87
query I rowsort
SELECT ALL + 72 * + col1 + cor0.col2 + + 63 AS col1 FROM tab1 AS cor0
----
1095
1989
840
query I rowsort
SELECT + 57 AS col2 FROM tab2 AS cor0
----
57
57
57
query I rowsort
SELECT DISTINCT + 75 + col2 + col0 AS col0 FROM tab2 AS cor0
----
109
179
192
query I rowsort
SELECT ALL 29 * cor0.col2 - col2 AS col0 FROM tab2 cor0
----
1064
728
756
query I rowsort
SELECT ALL cor0.col0 * + col2 FROM tab2 cor0
----
189
2028
3002
query I rowsort
SELECT ALL - + 69 AS col2 FROM tab1 AS cor0
----
-69
-69
-69
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-55
SELECT DISTINCT ( + col0 ) + - CAST( 49 AS SIGNED ) * + col2 FROM tab1 AS cor0
----
-2643
-2729
-4624
skipif mysql # not compatible
query I rowsort label-55
SELECT DISTINCT ( + col0 ) + - CAST ( 49 AS INTEGER ) * + col2 FROM tab1 AS cor0
----
-2643
-2729
-4624
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * 75 * cor0.col2 + - cor0.col2 * cor0.col0 col0 FROM tab0 AS cor0
----
-2660
-554648
-60192
query I rowsort
SELECT DISTINCT + 37 - + col2 AS col0 FROM tab2
----
-1
10
11
onlyif mysql # use DIV operator for integer division
query I rowsort label-58
SELECT DISTINCT + 85 DIV + col0 + col0 AS col0 FROM tab1 cor0
----
31
65
81
skipif mysql # not compatible
query I rowsort label-58
SELECT DISTINCT + 85 / + col0 + col0 AS col0 FROM tab1 cor0
----
31
65
81
query I rowsort
SELECT 44 + col0 * + ( - 31 * - col0 ) + ( col2 ) FROM tab2
----
1590
188674
193553
query I rowsort
SELECT DISTINCT ( col1 * + col1 ) AS col0 FROM tab2
----
289
3481
961
query I rowsort
SELECT - col2 * + cor0.col2 AS col0 FROM tab2 AS cor0
----
-1444
-676
-729
query I rowsort
SELECT DISTINCT + col0 * - col0 AS col2 FROM tab0
----
-1225
-576
-7921
query I rowsort
SELECT DISTINCT ( - 6 ) FROM tab2, tab1 AS cor0, tab2 AS cor1
----
-6
onlyif mysql # use DIV operator for integer division
query I rowsort label-64
SELECT col0 * - col1 DIV + col1 FROM tab1
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-64
SELECT col0 * - col1 / + col1 FROM tab1
----
-3
-64
-80
onlyif mysql # use DIV operator for integer division
query I rowsort label-65
SELECT DISTINCT col2 + - col0 DIV tab2.col1 FROM tab2
----
25
27
34
skipif mysql # not compatible
query I rowsort label-65
SELECT DISTINCT col2 + - col0 / tab2.col1 FROM tab2
----
25
27
34
query I rowsort
SELECT - cor0.col1 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b234798d4706314ba14eaad539d0aa88
query I rowsort
SELECT ALL col1 * 7 + col0 AS col2 FROM tab0
----
626
714
726
query I rowsort
SELECT DISTINCT + col0 + + col2 * - col1 FROM tab2 AS cor0
----
-1456
-567
-830
query I rowsort
SELECT ALL - col0 * ( + 93 ) + col2 AS col1 FROM tab2 AS cor0
----
-624
-7228
-7309
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-70
SELECT ALL - cor0.col0 * CAST( col2 * col0 AS SIGNED ) + cor0.col2 AS col0 FROM tab2 AS cor0
----
-1296
-158158
-237120
skipif mysql # not compatible
query I rowsort label-70
SELECT ALL - cor0.col0 * CAST ( col2 * col0 AS INTEGER ) + cor0.col2 AS col0 FROM tab2 AS cor0
----
-1296
-158158
-237120
onlyif mysql # use DIV operator for integer division
query I rowsort label-71
SELECT cor0.col1 DIV col0 - cor0.col0 FROM tab2 AS cor0
----
-3
-78
-79
skipif mysql # not compatible
query I rowsort label-71
SELECT cor0.col1 / col0 - cor0.col0 FROM tab2 AS cor0
----
-3
-78
-79
query I rowsort
SELECT - cor0.col2 * - col0 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT + col1 - cor0.col0 AS col0 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT ALL - - col0 * - ( + col1 ) + col1 AS col1 FROM tab1 cor0
----
-1027
-52
-630
query I rowsort
SELECT + col2 + ( - col2 ) FROM tab2 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-76
SELECT 9 / - col2 + + col2 * - CAST( NULL AS DECIMAL ) AS col2 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-76
SELECT 9 / - col2 + + col2 * - CAST ( NULL AS REAL ) AS col2 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT - 21 FROM tab2, tab1 cor0
----
9 values hashing to 631fbd1fd929405aba54a22c2a06c757
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-78
SELECT DISTINCT + + CAST( + col0 AS SIGNED ) + col1 FROM tab1 AS cor0
----
29
74
93
skipif mysql # not compatible
query I rowsort label-78
SELECT DISTINCT + + CAST ( + col0 AS INTEGER ) + col1 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT DISTINCT - - col1 * cor0.col1 AS col1 FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT + 37 * + 55 + col0 FROM tab2 AS cor0
----
2042
2113
2114
query I rowsort
SELECT ALL - 90 * col2 FROM tab0 AS cor0
----
-2970
-7380
-90
query I rowsort
SELECT ALL + ( - 83 ) AS col2 FROM tab1 AS cor0
----
-83
-83
-83
query I rowsort
SELECT ALL cor0.col2 * + cor0.col1 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT DISTINCT - - col1 + 88 AS col2 FROM tab1 AS cor0
----
101
114
98
query I rowsort
SELECT DISTINCT - col2 * col0 * - col1 AS col2 FROM tab2
----
119652
51034
5859
onlyif mysql # use DIV operator for integer division
query I rowsort label-86
SELECT ALL 79 * tab2.col2 * ( 17 ) + + tab2.col0 - 74 DIV + tab2.col1 FROM tab2, tab0 AS cor0
----
9 values hashing to e3e6048752ab00e94ce051ef0dc9062a
skipif mysql # not compatible
query I rowsort label-86
SELECT ALL 79 * tab2.col2 * ( 17 ) + + tab2.col0 - 74 / + tab2.col1 FROM tab2, tab0 AS cor0
----
9 values hashing to e3e6048752ab00e94ce051ef0dc9062a
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 AS cor0 CROSS JOIN tab1, tab0, tab1 AS cor1
----
3645 values hashing to f9101173abc9e524c6310e6c0eeefb0c
skipif mysql # not compatible
query I rowsort
SELECT + CAST ( + col2 + - col1 AS REAL ) FROM tab1
----
28
47
83
query I rowsort
SELECT + col0 * col2 * - col0 AS col2 FROM tab1 cor0
----
-233472
-486
-614400
onlyif mysql # use DIV operator for integer division
query I rowsort label-90
SELECT ALL - - col2 * col1 DIV + col2 FROM tab0 AS cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-90
SELECT ALL - - col2 * col1 / + col2 FROM tab0 AS cor0
----
86
91
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 25 col2 FROM tab2
----
25
25
25
onlyif mysql # use DIV operator for integer division
query I rowsort label-92
SELECT ALL - - col0 DIV - cor0.col2 FROM tab1 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-92
SELECT ALL - - col0 / - cor0.col2 FROM tab1 AS cor0
----
-1
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-93
SELECT + 70 DIV + col1 col0 FROM tab2 AS cor0
----
1
2
4
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-93
SELECT + 70 / + col1 col0 FROM tab2 AS cor0
----
1
2
4
query I rowsort
SELECT - 31 AS col0 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to c6c8eebeb1a59f7c046402e25630c0ac
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + col2 * tab2.col0 - + tab2.col1 col1 FROM tab2
----
127
1910
2968
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + col2 col1 FROM tab2
----
-41
-52
20
query III rowsort
SELECT * FROM tab0 WHERE NOT col0 <> ( NULL )
----
query I rowsort
SELECT ALL - col0 + + col1 * - col0 AS col0 FROM tab1
----
-1120
-704
-81
query III rowsort
SELECT * FROM tab1 WHERE NOT NULL < col0 / col2
----
query I rowsort
SELECT + tab1.col2 * + tab1.col1 AS col1 FROM tab1
----
1248
1404
570
query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN NULL AND ( - col1 + col2 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-102
SELECT col0 DIV - col2 FROM tab0 WHERE NOT + col1 NOT IN ( col2 * col1 )
----
-35
skipif mysql # not compatible
query I rowsort label-102
SELECT col0 / - col2 FROM tab0 WHERE NOT + col1 NOT IN ( col2 * col1 )
----
-35
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL BETWEEN col1 * col0 + col0 + col1 * - col2 AND NULL
----
query I rowsort
SELECT ALL - col0 * col2 + col0 * col0 FROM tab1
----
-1280
-153
448
query I rowsort
SELECT DISTINCT col1 * - col0 + col2 FROM tab1
----
-24
-583
-944
onlyif mysql # use DIV operator for integer division
query I rowsort label-106
SELECT DISTINCT + col1 DIV + col0 + col2 * col2 FROM tab2
----
1444
676
733
skipif mysql # not compatible
query I rowsort label-106
SELECT DISTINCT + col1 / + col0 + col2 * col2 FROM tab2
----
1444
676
733
query III rowsort
SELECT * FROM tab0 WHERE NULL >= NULL
----
query I rowsort
SELECT cor0.col2 * + col0 AS col1 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT - col2 + - col2 + + ( - col2 ) AS col2 FROM tab0 AS cor0
----
-246
-3
-99
query I rowsort
SELECT ALL + cor0.col0 * + col0 * 25 AS col0 FROM tab0 cor0
----
14400
198025
30625
query I rowsort
SELECT DISTINCT tab2.col0 + col1 FROM tab2
----
137
38
96
query I rowsort
SELECT DISTINCT - col1 * + col0 AS col2 FROM tab2 WHERE ( NULL ) < + col2
----
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL >= NULL
----
query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col1 * col0 * col0 IN ( - col2 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
query I rowsort
SELECT col0 + + col1 * + col0 FROM tab2
----
1422
224
4680
query I rowsort
SELECT ALL col1 + col1 * col0 FROM tab2
----
1360
248
4661
query I rowsort
SELECT - col2 + - cor0.col1 * cor0.col1 * + cor0.col2 FROM tab1 cor0
----
-16320
-36558
-5757
query I rowsort
SELECT col0 + + tab1.col0 + + col1 FROM tab1
----
138
173
32
query I rowsort
SELECT col0 FROM tab2 WHERE NOT ( tab2.col2 ) IN ( - tab2.col0 * col2 * tab2.col1 )
----
7
78
79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab2.col1 + col0 col2 FROM tab2
----
137
38
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-121
SELECT DISTINCT + col1 DIV col2 + col0 * - col1 * tab0.col0 AS col0 FROM tab0
----
-118728
-49534
-720810
skipif mysql # not compatible
query I rowsort label-121
SELECT DISTINCT + col1 / col2 + col0 * - col1 * tab0.col0 AS col0 FROM tab0
----
-118728
-49534
-720810
query III rowsort
SELECT ALL * FROM tab1 WHERE ( - col2 ) >= NULL
----
query I rowsort
SELECT ALL + col0 + + col0 AS col1 FROM tab1
----
128
160
6
onlyif mysql # use DIV operator for integer division
query I rowsort label-124
SELECT ALL - col1 DIV col1 + col0 AS col2 FROM tab0
----
23
34
88
skipif mysql # not compatible
query I rowsort label-124
SELECT ALL - col1 / col1 + col0 AS col2 FROM tab0
----
23
34
88
query I rowsort
SELECT ALL - col2 + col1 * col1 FROM tab0
----
7363
8199
9408
query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( NULL ) BETWEEN NULL AND NULL
----
query I rowsort
SELECT col0 - + tab0.col0 * + col1 FROM tab0
----
-2040
-3360
-8010
query I rowsort
SELECT + col2 + col0 AS col1 FROM tab2
----
104
117
34
query I rowsort
SELECT cor0.col0 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63
query I rowsort
SELECT ALL 74 - - col1 AS col0 FROM tab1 AS cor0
----
100
84
87
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + col2 * col2 col0 FROM tab0
----
1175
6815
98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-132
SELECT DISTINCT - CAST( NULL AS SIGNED ) * 86 AS col2 FROM tab1, tab2, tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-132
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * 86 AS col2 FROM tab1, tab2, tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL + tab1.col1 * - ( col0 ) AS col0 FROM tab1
----
-1040
-640
-78
query I rowsort
SELECT - 49 * 7 + - col2 FROM tab2
----
-369
-370
-381
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 - col1 * + col0 * + 48 col1 FROM tab2 AS cor0
----
-10423
-220974
-64543
onlyif mysql # use DIV operator for integer division
query I rowsort label-136
SELECT DISTINCT - cor0.col0 * - col2 + col0 DIV col0 AS col2 FROM tab1 AS cor0
----
163
3649
7681
skipif mysql # not compatible
query I rowsort label-136
SELECT DISTINCT - cor0.col0 * - col2 + col0 / col0 AS col2 FROM tab1 AS cor0
----
163
3649
7681
query I rowsort
SELECT DISTINCT + 21 - col2 FROM tab2 cor0
----
-17
-5
-6
query I rowsort
SELECT + col2 * + col0 + - col1 AS col2 FROM tab2 AS cor0
----
158
1969
2985
query I rowsort
SELECT DISTINCT + - ( col1 ) * cor0.col0 + col1 FROM tab1 cor0
----
-1027
-52
-630
skipif mysql # not compatible
query I rowsort
SELECT col2 * col1 * CAST ( col1 AS REAL ) AS col0 FROM tab2
----
10982
25947
90506
query I rowsort
SELECT 22 - - tab1.col1 * + col0 * + col1 FROM tab1
----
13542
2050
6422
query I rowsort
SELECT ALL 12 AS col1 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 702478c53caf2f7ebb9fff96d800f5a6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - 43 ) col0 FROM tab2, tab0 cor0, tab2 AS cor1
----
-43
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-144
SELECT ALL + ( col1 + + CAST( NULL AS SIGNED ) ) * col2 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-144
SELECT ALL + ( col1 + + CAST ( NULL AS INTEGER ) ) * col2 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT - 42 AS col0 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 56f86ff01cd96a3511acd46e0e811e27
query I rowsort
SELECT + col2 + - col2 AS col2 FROM tab1
----
0
0
0
query I rowsort
SELECT + 5 FROM tab0 cor0
----
5
5
5
query I rowsort
SELECT + col0 + 45 * - col1 + col2 AS col1 FROM tab1 cor0
----
-1113
-329
-409
onlyif mysql # use DIV operator for integer division
query I rowsort label-149
SELECT + + col2 DIV ( cor0.col1 + - col1 * cor0.col1 ) AS col2 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-149
SELECT + + col2 / ( cor0.col1 + - col1 * cor0.col1 ) AS col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + col1 * 93 AS col1 FROM tab2 AS cor0
----
1581
2883
5487
query I rowsort
SELECT - - col2 + col2 + col1 FROM tab1 AS cor0
----
124
134
205
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 + ( - col1 ) col2 FROM tab1 AS cor0
----
-109
-67
-80
query I rowsort
SELECT - col0 * + 53 * 46 + + col1 * cor0.col1 FROM tab0 AS cor0
----
-208701
-51116
-75921
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 col1 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT ALL + col0 * col2 * - col1 FROM tab0
----
-3395
-664118
-68112
query I rowsort
SELECT ALL + cor0.col0 AS col2 FROM tab2, tab2 cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a
query I rowsort
SELECT + cor0.col2 + + ( col2 ) + + col0 FROM tab2 AS cor0
----
130
155
61
query I rowsort
SELECT DISTINCT + - col2 * - ( - 54 ) * cor0.col1 AS col0 FROM tab1 AS cor0
----
-30780
-67392
-75816
query I rowsort
SELECT ALL + col1 + ( - cor0.col0 ) + - col2 * col2 FROM tab1 AS cor0
----
-2893
-3303
-9283
query I rowsort
SELECT ALL col2 + 26 AS col0 FROM tab1 AS cor0
----
122
80
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-161
SELECT + - col1 * col1 * + col0 + col1 + + col0 DIV col2 AS col0 FROM tab1 AS cor0
----
-13507
-2002
-6389
skipif mysql # not compatible
query I rowsort label-161
SELECT + - col1 * col1 * + col0 + col1 + + col0 / col2 AS col0 FROM tab1 AS cor0
----
-13507
-2002
-6389
query I rowsort
SELECT DISTINCT - col0 * - col0 + cor0.col2 AS col2 FROM tab0 AS cor0
----
1226
609
8003
query I rowsort
SELECT DISTINCT col2 * 66 FROM tab2 AS cor0
----
1716
1782
2508
query I rowsort
SELECT col0 * + col0 + col1 AS col1 FROM tab2
----
6143
6258
80
query I rowsort
SELECT DISTINCT + 45 FROM tab0
----
45
query I rowsort
SELECT + 49 AS col2 FROM tab1
----
49
49
49
onlyif mysql # use DIV operator for integer division
query I rowsort label-167
SELECT + col0 + + col1 DIV tab0.col1 AS col2 FROM tab0
----
25
36
90
skipif mysql # not compatible
query I rowsort label-167
SELECT + col0 + + col1 / tab0.col1 AS col2 FROM tab0
----
25
36
90
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 99 col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 97 col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c
query I rowsort
SELECT + 55 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0
query I rowsort
SELECT 25 * - 55 FROM tab0 AS cor0
----
-1375
-1375
-1375
query I rowsort
SELECT 59 FROM tab2, tab0 AS cor0
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc
query I rowsort
SELECT - + 8 FROM tab0 AS cor0
----
-8
-8
-8
query I rowsort
SELECT - + 10 FROM tab1 AS cor0
----
-10
-10
-10
onlyif mysql # use DIV operator for integer division
query I rowsort label-175
SELECT DISTINCT + + col2 DIV + col0 AS col0 FROM tab2 cor0
----
0
3
skipif mysql # not compatible
query I rowsort label-175
SELECT DISTINCT + + col2 / + col0 AS col0 FROM tab2 cor0
----
0
3
query I rowsort
SELECT 33 * col0 AS col0 FROM tab0 AS cor0
----
1155
2937
792
query I rowsort
SELECT - cor0.col1 - col1 FROM tab1 cor0
----
-20
-26
-52
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-178
SELECT col2 * col1 + - CAST( NULL AS SIGNED ) * + col1 + cor0.col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-178
SELECT col2 * col1 + - CAST ( NULL AS INTEGER ) * + col1 + cor0.col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + 42 FROM tab1 AS cor0
----
42
42
42
query I rowsort
SELECT DISTINCT + 35 + - col2 FROM tab1 AS cor0
----
-19
-22
-61
query I rowsort
SELECT ALL - 38 + + col0 * + ( - col1 ) AS col2 FROM tab0 AS cor0
----
-2102
-3433
-8137
query I rowsort
SELECT ALL - col2 + - col2 * + ( - 16 ) FROM tab0 AS cor0
----
1230
15
495
query I rowsort
SELECT - + col1 * + col0 * + 97 FROM tab2 AS cor0
----
-130271
-21049
-446394
query I rowsort
SELECT DISTINCT - 27 AS col2 FROM tab2 AS cor0
----
-27
query I rowsort
SELECT ALL - ( col2 ) * - col1 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT + + col2 + + col0 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT + + col2 * + col2 + + col2 + + 77 FROM tab1 cor0
----
3047
3383
9389
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 39 * col1 col2 FROM tab0 AS cor0
----
-3354
-3549
-3783
query I rowsort
SELECT + cor0.col1 + + col1 AS col2 FROM tab0 AS cor0
----
172
182
194
query I rowsort
SELECT ALL 34 + col2 FROM tab1 AS cor0
----
130
88
91
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 19 * - cor0.col2 col2 FROM tab1 AS cor0
----
-1026
-1083
-1824
onlyif mysql # use DIV operator for integer division
query I rowsort label-192
SELECT DISTINCT + + 70 DIV - col2 FROM tab1 AS cor0
----
-1
0
skipif mysql # not compatible
query I rowsort label-192
SELECT DISTINCT + + 70 / - col2 FROM tab1 AS cor0
----
-1
0
query I rowsort
SELECT + col2 + col0 * ( col1 ) + + col2 FROM tab1 AS cor0
----
1232
186
754
query I rowsort
SELECT ALL + col1 * + col0 - col1 FROM tab1 AS cor0
----
1027
52
630
query I rowsort
SELECT DISTINCT + + col2 + + col1 + 64 * - col0 FROM tab0 AS cor0
----
-1417
-2142
-5523
onlyif mysql # use DIV operator for integer division
query I rowsort label-196
SELECT DISTINCT + cor0.col2 + col0 DIV + col1 FROM tab2 AS cor0
----
27
42
skipif mysql # not compatible
query I rowsort label-196
SELECT DISTINCT + cor0.col2 + col0 / + col1 FROM tab2 AS cor0
----
27
42
query I rowsort
SELECT - + col2 * - col1 AS col0 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT ALL + + col0 + - col1 AS col2 FROM tab2 AS cor0
----
-24
19
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + cor0.col0 + col0 col0 FROM tab2 AS cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-200
SELECT ALL - + col1 DIV + ( 94 ) + + col0 FROM tab0 AS cor0
----
24
34
89
skipif mysql # not compatible
query I rowsort label-200
SELECT ALL - + col1 / + ( 94 ) + + col0 FROM tab0 AS cor0
----
24
34
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 * - cor0.col1 col2 FROM tab0 AS cor0
----
-2838
-7462
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-202
SELECT ALL col0 + - cor0.col0 DIV - 40 - + col1 FROM tab1 AS cor0
----
-23
55
69
skipif mysql # not compatible
query I rowsort label-202
SELECT ALL col0 + - cor0.col0 / - 40 - + col1 FROM tab1 AS cor0
----
-23
55
69
query I rowsort
SELECT + col0 * col0 * cor0.col1 AS col0 FROM tab2 cor0
----
106097
1519
358956
query I rowsort
SELECT DISTINCT - col2 + - col1 FROM tab0 cor0
----
-119
-173
-98
query I rowsort
SELECT ALL - cor0.col1 FROM tab2, tab0 cor0, tab0 AS cor1
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84
onlyif mysql # use DIV operator for integer division
query I rowsort label-206
SELECT ALL col2 DIV + 6 AS col2 FROM tab0 cor0
----
0
13
5
skipif mysql # not compatible
query I rowsort label-206
SELECT ALL col2 / + 6 AS col2 FROM tab0 cor0
----
0
13
5
query I rowsort
SELECT DISTINCT + 14 AS col2 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
14
query I rowsort
SELECT DISTINCT cor0.col2 * cor0.col0 AS col2 FROM tab0 AS cor0
----
35
7298
792
onlyif mysql # use DIV operator for integer division
query I rowsort label-209
SELECT - 59 + - col2 DIV col1 AS col1 FROM tab2 AS cor0
----
-59
-59
-61
skipif mysql # not compatible
query I rowsort label-209
SELECT - 59 + - col2 / col1 AS col1 FROM tab2 AS cor0
----
-59
-59
-61
query I rowsort
SELECT ALL + cor0.col2 + - col0 * col2 AS col0 FROM tab0 AS cor0
----
-34
-7216
-759
onlyif mysql # use DIV operator for integer division
query I rowsort label-211
SELECT DISTINCT + col1 DIV col0 AS col1 FROM tab1 AS cor0
----
0
8
skipif mysql # not compatible
query I rowsort label-211
SELECT DISTINCT + col1 / col0 AS col1 FROM tab1 AS cor0
----
0
8
query I rowsort
SELECT ALL + col2 + 70 AS col1 FROM tab0 AS cor0
----
103
152
71
query I rowsort
SELECT - 97 - - 53 FROM tab0, tab2 AS cor0, tab1, tab1 AS cor1
----
81 values hashing to 9c887509d218271b9365009eba440976
query I rowsort
SELECT tab2.col0 + col2 * 10 FROM tab2
----
277
338
459
query I rowsort
SELECT ALL + col0 * - 62 + - col0 FROM tab2 AS cor0
----
-441
-4914
-4977
query I rowsort
SELECT DISTINCT cor0.col1 - ( + col0 + - col1 * + col2 ) AS col1 FROM tab2 AS cor0
----
1515
584
861
query I rowsort
SELECT - 23 + 3 FROM tab1 AS cor0
----
-20
-20
-20
query I rowsort
SELECT DISTINCT ( col1 ) * cor0.col0 AS col0 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT DISTINCT + + col2 * col1 + + cor0.col1 * col2 * + ( col0 ) FROM tab2 AS cor0
----
121186
51680
6696
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-220
SELECT + - CAST( NULL AS SIGNED ) + - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-220
SELECT + - CAST ( NULL AS INTEGER ) + - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 42 + col0 col2 FROM tab2 AS cor0
----
120
121
49
query I rowsort
SELECT ALL + col2 * cor0.col1 - col2 * col0 FROM tab1 AS cor0
----
-3078
-6432
1242
onlyif mysql # use DIV operator for integer division
query I rowsort label-223
SELECT DISTINCT - - 69 DIV col1 AS col2 FROM tab1 AS cor0
----
2
5
6
skipif mysql # not compatible
query I rowsort label-223
SELECT DISTINCT - - 69 / col1 AS col2 FROM tab1 AS cor0
----
2
5
6
query I rowsort
SELECT col0 + 76 FROM tab2 AS cor0
----
154
155
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-225
SELECT ALL - tab0.col1 DIV 76 AS col0 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 84da757b1b7b0069ce25607f39bc08d9
skipif mysql # not compatible
query I rowsort label-225
SELECT ALL - tab0.col1 / 76 AS col0 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 84da757b1b7b0069ce25607f39bc08d9
query I rowsort
SELECT + + col1 * col0 AS col2 FROM tab2 AS cor0
----
1343
217
4602
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-227
SELECT CAST( ( - col2 ) AS SIGNED ) + + ( + col0 ) FROM tab2 cor0
----
-20
41
52
skipif mysql # not compatible
query I rowsort label-227
SELECT CAST ( ( - col2 ) AS INTEGER ) + + ( + col0 ) FROM tab2 cor0
----
-20
41
52
query I rowsort
SELECT ALL - 64 AS col1 FROM tab1
----
-64
-64
-64
query I rowsort
SELECT 48 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b
query I rowsort
SELECT DISTINCT 76 * 10 + - col1 FROM tab0 AS cor0
----
663
669
674
query I rowsort
SELECT + - cor0.col1 + - 50 + col1 AS col1 FROM tab0 AS cor0
----
-50
-50
-50
query I rowsort
SELECT DISTINCT col2 + col0 * col1 * + 19 FROM tab1
----
12217
1536
19856
query I rowsort
SELECT DISTINCT 30 FROM tab1, tab2 AS cor0
----
30
query I rowsort
SELECT ALL - tab1.col2 * - col1 AS col0 FROM tab1
----
1248
1404
570
query I rowsort
SELECT DISTINCT + - col2 + + ( + ( cor0.col2 ) ) AS col2 FROM tab1 cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-236
SELECT DISTINCT + col0 + col2 DIV 40 AS col0 FROM tab0 AS cor0
----
24
35
91
skipif mysql # not compatible
query I rowsort label-236
SELECT DISTINCT + col0 + col2 / 40 AS col0 FROM tab0 AS cor0
----
24
35
91
query I rowsort
SELECT DISTINCT - - col0 * - cor0.col0 - 1 * cor0.col0 AS col1 FROM tab0 cor0
----
-1260
-600
-8010
query I rowsort
SELECT + col1 * ( - col1 ) + col2 AS col2 FROM tab1 AS cor0
----
-43
-622
-73
query I rowsort
SELECT DISTINCT + col2 + + col2 * + 28 FROM tab1 AS cor0
----
1566
1653
2784
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + col2 + - col1 col0 FROM tab0 AS cor0
----
-96
1003
6633
query I rowsort
SELECT + cor0.col0 + - col2 FROM tab2 cor0
----
-20
41
52
query I rowsort
SELECT + col2 + col0 * col2 AS col0 FROM tab0 AS cor0
----
36
7380
825
query I rowsort
SELECT + col1 + + col1 * 21 * cor0.col2 AS col2 FROM tab0 AS cor0
----
156793
2134
59684
query I rowsort
SELECT + - col2 * - cor0.col2 FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT - 89 FROM tab2 cor0
----
-89
-89
-89
query I rowsort
SELECT - + col0 * col0 AS col2 FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT - cor0.col1 + + cor0.col0 * - ( col2 ) AS col2 FROM tab0 AS cor0
----
-132
-7389
-878
query I rowsort
SELECT - - col1 * ( + 7 ) FROM tab0 AS cor0
----
602
637
679
query I rowsort
SELECT col2 * 75 FROM tab0 AS cor0
----
2475
6150
75
query I rowsort
SELECT ALL - cor0.col1 * + cor0.col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 9b23e5e74ef3405a4dbf05cceb18c8a8
query I rowsort
SELECT DISTINCT - col0 * + col1 + col0 * - col0 FROM tab0 AS cor0
----
-16020
-2640
-4620
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-252
SELECT ALL + col1 * CAST( col1 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
7396
8281
9409
skipif mysql # not compatible
query I rowsort label-252
SELECT ALL + col1 * CAST ( col1 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
7396
8281
9409
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 29 * col0 + col0 col1 FROM tab0 AS cor0
----
1050
2670
720
query I rowsort
SELECT col0 * + 71 FROM tab0
----
1704
2485
6319
query I rowsort
SELECT + 36 AS col2 FROM tab1
----
36
36
36
query I rowsort
SELECT ALL ( + 84 ) + + col1 * + 42 AS col2 FROM tab2 AS cor0
----
1386
2562
798
query I rowsort
SELECT col1 * - col1 AS col1 FROM tab2 AS cor0
----
-289
-3481
-961
query I rowsort
SELECT + 74 FROM tab2, tab0 AS cor0
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31
query I rowsort
SELECT cor1.col0 AS col2 FROM tab1, tab1 AS cor0, tab0 cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
query I rowsort
SELECT + + col1 * col2 + + col1 AS col0 FROM tab2 cor0
----
1593
663
868
query I rowsort
SELECT 35 * col0 + 91 * ( col2 ) FROM tab1 AS cor0
----
11536
5019
7427
onlyif mysql # use DIV operator for integer division
query I rowsort label-262
SELECT + - col2 + + col1 DIV - CAST( col0 AS SIGNED ) FROM tab2 AS cor0
----
-26
-31
-38
skipif mysql # not compatible
query I rowsort label-262
SELECT + - col2 + + col1 / - CAST ( col0 AS INTEGER ) FROM tab2 AS cor0
----
-26
-31
-38
onlyif mysql # use DIV operator for integer division
query I rowsort label-263
SELECT ALL - col1 DIV col0 AS col0 FROM tab2
----
-4
0
0
skipif mysql # not compatible
query I rowsort label-263
SELECT ALL - col1 / col0 AS col0 FROM tab2
----
-4
0
0
query I rowsort
SELECT DISTINCT + col2 * col2 + - ( 92 ) * - col2 FROM tab1 AS cor0
----
18048
7884
8493
query I rowsort
SELECT col1 + - col0 + - 58 * col1 AS col1 FROM tab1 cor0
----
-1485
-634
-821
query I rowsort
SELECT - + 17 * + col2 AS col1 FROM tab2 AS cor0
----
-442
-459
-646
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( cor0.col2 ) + + col1 col1 FROM tab2 AS cor0
----
-21
33
4
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-268
SELECT DISTINCT + col0 + - col1 - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-268
SELECT DISTINCT + col0 + - col1 - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT - + cor0.col1 * cor0.col1 + - col0 * - 29 AS col1 FROM tab1 cor0
----
-589
1756
2151
query I rowsort
SELECT ALL - + 28 * - col2 + - ( col1 ) FROM tab2 AS cor0
----
1047
669
725
query I rowsort
SELECT DISTINCT + ( + col2 ) * col0 FROM tab1
----
162
3648
7680
query I rowsort
SELECT DISTINCT 57 + col1 AS col2 FROM tab2 cor0
----
116
74
88
query I rowsort
SELECT + 50 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52
query I rowsort
SELECT 68 FROM tab1, tab0 AS cor0 CROSS JOIN tab0
----
27 values hashing to 10aa25f1c6b97582c34521ac6452e0b4
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 55 col0 FROM tab1, tab1 AS cor0
----
9 values hashing to ac76841ceecd2311e80c621d15bacdd3
query I rowsort
SELECT DISTINCT + 27 + - col1 AS col0 FROM tab1
----
1
14
17
query I rowsort
SELECT DISTINCT + col1 + + tab1.col2 AS col1 FROM tab1
----
109
67
80
query I rowsort
SELECT 19 * - col2 + col1 FROM tab2
----
-435
-482
-705
query I rowsort
SELECT + col0 + + col2 * ( - col1 + - col0 ) FROM tab2
----
-1019
-3484
-3569
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-280
SELECT + CAST( NULL AS SIGNED ) FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-280
SELECT + CAST ( NULL AS INTEGER ) FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT 25 + - col2 FROM tab0
----
-57
-8
24
query I rowsort
SELECT ALL 94 + + col0 AS col2 FROM tab1
----
158
174
97
query I rowsort
SELECT + col0 * - col0 * col0 + tab2.col2 AS col1 FROM tab2
----
-316
-474526
-493001
onlyif mysql # use DIV operator for integer division
query I rowsort label-284
SELECT ALL tab0.col1 DIV - ( + ( + col1 ) ) FROM tab0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-284
SELECT ALL tab0.col1 / - ( + ( + col1 ) ) FROM tab0
----
-1
-1
-1
query I rowsort
SELECT + ( - 88 ) * cor0.col2 AS col0 FROM tab2 AS cor0
----
-2288
-2376
-3344
query I rowsort
SELECT DISTINCT + col1 * - 38 AS col0 FROM tab1 AS cor0
----
-380
-494
-988
query I rowsort
SELECT DISTINCT - col1 + col1 * - col1 AS col1 FROM tab1 AS cor0
----
-110
-182
-702
query I rowsort
SELECT ( col2 ) - + col0 AS col0 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT ALL + 32 AS col2 FROM tab2 cor0
----
32
32
32
query I rowsort
SELECT DISTINCT - + 21 * + ( - col1 ) FROM tab2 AS cor0
----
1239
357
651
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-291
SELECT CAST( NULL AS SIGNED ) * 2 FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-291
SELECT CAST ( NULL AS INTEGER ) * 2 FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT ALL + 7 + 1 FROM tab1, tab0 cor0
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57
query I rowsort
SELECT 14 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 83e5779d2487d12495e7d816c797264f
onlyif mysql # use DIV operator for integer division
query I rowsort label-294
SELECT - col1 DIV - 67 + + cor0.col1 + - 27 FROM tab0 AS cor0
----
60
65
71
skipif mysql # not compatible
query I rowsort label-294
SELECT - col1 / - 67 + + cor0.col1 + - 27 FROM tab0 AS cor0
----
60
65
71
query I rowsort
SELECT - ( + col1 ) + + col1 * 28 AS col0 FROM tab1 AS cor0
----
270
351
702
onlyif mysql # use DIV operator for integer division
query I rowsort label-296
SELECT ALL - + col1 DIV + col2 + col1 * col1 DIV - col2 - + cor0.col0 FROM tab1 AS cor0
----
-15
-65
-81
skipif mysql # not compatible
query I rowsort label-296
SELECT ALL - + col1 / + col2 + col1 * col1 / - col2 - + cor0.col0 FROM tab1 AS cor0
----
-15
-65
-81
query I rowsort
SELECT + - 71 * col0 AS col1 FROM tab1 AS cor0
----
-213
-4544
-5680
query I rowsort
SELECT col1 + + col0 * col1 * 35 AS col2 FROM tab1 cor0
----
22410
2756
36413
onlyif mysql # use DIV operator for integer division
query I rowsort label-299
SELECT ALL col1 * col1 DIV col2 - col1 * ( + 35 ) AS col0 FROM tab0 AS cor0
----
-2786
-3085
6014
skipif mysql # not compatible
query I rowsort label-299
SELECT ALL col1 * col1 / col2 - col1 * ( + 35 ) AS col0 FROM tab0 AS cor0
----
-2786
-3085
6014
query I rowsort
SELECT + col2 + - tab2.col0 AS col1 FROM tab2
----
-41
-52
20
query I rowsort
SELECT col0 + 84 FROM tab0
----
108
119
173
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-302
SELECT DISTINCT col0 * + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-302
SELECT DISTINCT col0 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
query I rowsort
SELECT DISTINCT + col1 + - 71 FROM tab0
----
15
20
26
query I rowsort
SELECT + col0 + - col1 + + col0 FROM tab1
----
-20
118
147
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 79 + col0 col2 FROM tab2
----
157
158
86
query I rowsort
SELECT + tab2.col2 + + col2 * col2 * col2 AS col1 FROM tab2
----
17602
19710
54910
query I rowsort
SELECT DISTINCT col1 + + 64 AS col2 FROM tab1
----
74
77
90
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + - 80 col0 FROM tab2
----
-42
-53
-54
query I rowsort
SELECT ALL ( 82 ) + cor0.col1 - cor0.col0 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 8678df9be5f4e35c6a21fe0d09dfab8f
query I rowsort
SELECT ALL + col1 + 84 AS col2 FROM tab1
----
110
94
97
query I rowsort
SELECT + 75 FROM tab0, tab1 AS cor0
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea
query I rowsort
SELECT tab1.col0 + col2 AS col1 FROM tab1
----
121
176
57
query I rowsort
SELECT ALL + 20 * col2 FROM tab2 AS cor0
----
520
540
760
query I rowsort
SELECT col0 * col2 * - ( 86 ) FROM tab2 AS cor0
----
-16254
-174408
-258172
query I rowsort
SELECT ALL - - 36 FROM tab0 AS cor0
----
36
36
36
query I rowsort
SELECT - + 43 * col1 + col0 FROM tab0 AS cor0
----
-3674
-3824
-4136
query I rowsort
SELECT ALL - ( cor0.col2 ) AS col0 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT DISTINCT + + col1 * col2 AS col0 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT - 26 AS col1 FROM tab2
----
-26
-26
-26
query I rowsort
SELECT + col0 + col1 * ( cor0.col1 * - col1 ) FROM tab2 AS cor0
----
-205301
-29784
-4834
query I rowsort
SELECT ALL + 90 * col2 FROM tab1 AS cor0
----
4860
5130
8640
query I rowsort
SELECT DISTINCT - 92 + col0 FROM tab2 cor0
----
-13
-14
-85
query I rowsort
SELECT + 88 + col1 FROM tab1 cor0
----
101
114
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-324
SELECT DISTINCT - 93 + - col1 DIV cor0.col1 AS col1 FROM tab2 AS cor0
----
-94
skipif mysql # not compatible
query I rowsort label-324
SELECT DISTINCT - 93 + - col1 / cor0.col1 AS col1 FROM tab2 AS cor0
----
-94
onlyif mysql # use DIV operator for integer division
query I rowsort label-325
SELECT + col1 * cor0.col1 DIV + col1 + col0 AS col1 FROM tab0 AS cor0
----
110
132
180
skipif mysql # not compatible
query I rowsort label-325
SELECT + col1 * cor0.col1 / + col1 + col0 AS col1 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT DISTINCT + - cor0.col0 + + col1 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT ALL - ( col0 ) * + col1 AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT 50 + col0 FROM tab2 AS cor0
----
128
129
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-329
SELECT - 92 DIV + col1 col1 FROM tab2 cor0
----
-1
-2
-5
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-329
SELECT - 92 / + col1 col1 FROM tab2 cor0
----
-1
-2
-5
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + cor0.col2 * 21 col0 FROM tab1 cor0
----
1188
1254
2112
query I rowsort
SELECT 71 * col0 FROM tab1
----
213
4544
5680
query I rowsort
SELECT ALL + ( + col0 + - col2 ) AS col0 FROM tab2
----
-20
41
52
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 30 col1 FROM tab1
----
30
30
30
query I rowsort
SELECT ALL - 31 * + col1 FROM tab1
----
-310
-403
-806
query I rowsort
SELECT DISTINCT + tab0.col1 AS col0 FROM tab0, tab1 cor0
----
86
91
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-336
SELECT DISTINCT tab0.col2 DIV col2 FROM tab0
----
1
skipif mysql # not compatible
query I rowsort label-336
SELECT DISTINCT tab0.col2 / col2 FROM tab0
----
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 * + col2 col2 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT ALL - col2 * col2 AS col2 FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT DISTINCT + col0 + - cor0.col0 FROM tab0 AS cor0
----
0
query I rowsort
SELECT col0 * + 74 * - cor0.col0 AS col1 FROM tab1 AS cor0
----
-303104
-473600
-666
query I rowsort
SELECT + cor0.col1 * + col2 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT - col2 * 40 AS col0 FROM tab2 AS cor0
----
-1040
-1080
-1520
query I rowsort
SELECT col1 * - 50 AS col2 FROM tab1 AS cor0
----
-1300
-500
-650
query I rowsort
SELECT DISTINCT + ( - cor0.col2 ) FROM tab2, tab1 AS cor0, tab0 AS cor1
----
-54
-57
-96
query I rowsort
SELECT - 52 * col1 FROM tab1
----
-1352
-520
-676
onlyif mysql # use DIV operator for integer division
query I rowsort label-346
SELECT - col1 + col0 DIV - col2 col0 FROM tab0 cor0
----
-132
-86
-92
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-346
SELECT - col1 + col0 / - col2 col0 FROM tab0 cor0
----
-132
-86
-92
query I rowsort
SELECT col2 + 65 AS col2 FROM tab1 AS cor0
----
119
122
161
query I rowsort
SELECT DISTINCT + col1 + 69 FROM tab0 AS cor0
----
155
160
166
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-349
SELECT CAST( NULL AS SIGNED ) - col0 * cor0.col2 * - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-349
SELECT CAST ( NULL AS INTEGER ) - col0 * cor0.col2 * - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - ( col1 ) * col2 + + 60 FROM tab0 AS cor0
----
-2778
-37
-7402
skipif mysql # not compatible
query I rowsort
SELECT ALL - - CAST ( col0 AS REAL ) * col0 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT + 14 FROM tab0 cor0
----
14
14
14
query I rowsort
SELECT ALL - col1 * - cor0.col1 + + col0 * 40 + - col2 AS col2 FROM tab2 AS cor0
----
1214
3411
6575
query I rowsort
SELECT ALL - col0 + + 26 * col0 FROM tab0 AS cor0
----
2225
600
875
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-355
SELECT DISTINCT CAST( NULL AS SIGNED ) + col1 * + col0 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-355
SELECT DISTINCT CAST ( NULL AS INTEGER ) + col1 * + col0 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT + col1 * ( col1 ) - col0 * - col0 FROM tab1 AS cor0
----
4196
6569
685
query I rowsort
SELECT + 64 + col2 FROM tab2 AS cor0
----
102
90
91
query I rowsort
SELECT ALL col2 + - col0 + cor0.col2 FROM tab0 AS cor0
----
-33
42
75
query I rowsort
SELECT + + ( 46 ) + col0 FROM tab2 AS cor0
----
124
125
53
query I rowsort
SELECT ALL + 61 + - col2 FROM tab2 AS cor0
----
23
34
35
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + ( col1 ) ) col0 FROM tab1 cor0
----
10
13
26
query I rowsort
SELECT ( + col1 ) + + col2 AS col2 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT + col0 + + col2 * col2 AS col2 FROM tab0 AS cor0
----
1113
36
6813
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-364
SELECT - CAST( col0 AS SIGNED ) - + cor0.col1 AS col1 FROM tab0 cor0
----
-110
-132
-180
skipif mysql # not compatible
query I rowsort label-364
SELECT - CAST ( col0 AS INTEGER ) - + cor0.col1 AS col1 FROM tab0 cor0
----
-110
-132
-180
query I rowsort
SELECT + 87 * + 82 + + cor0.col1 AS col1 FROM tab0 AS cor0
----
7220
7225
7231
query I rowsort
SELECT ALL 36 + col0 AS col2 FROM tab0
----
125
60
71
query I rowsort
SELECT + col0 * col1 + - col1 * - col1 FROM tab2 AS cor0
----
1178
1632
8083
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - col1 col2 FROM tab1 AS cor0
----
-20
-26
-52
query I rowsort
SELECT + - 11 AS col2 FROM tab2 AS cor0
----
-11
-11
-11
query I rowsort
SELECT ALL + ( - col0 ) + + cor0.col1 FROM tab2 AS cor0
----
-19
-62
24
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-371
SELECT + ( - ( - col2 ) ) + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-371
SELECT + ( - ( - col2 ) ) + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-372
SELECT DISTINCT col1 + - col2 - col1 DIV 84 AS col0 FROM tab2 cor0
----
-21
33
4
skipif mysql # not compatible
query I rowsort label-372
SELECT DISTINCT col1 + - col2 - col1 / 84 AS col0 FROM tab2 cor0
----
-21
33
4
query I rowsort
SELECT 80 FROM tab2, tab1 AS cor0
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 * 18 - + col1 col1 FROM tab2 AS cor0
----
1345
1405
95
query I rowsort
SELECT DISTINCT 30 AS col2 FROM tab1 cor0
----
30
query I rowsort
SELECT ALL - col1 + 1 FROM tab2 AS cor0
----
-16
-30
-58
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + 40 col2 FROM tab2 AS cor0
----
66
67
78
query I rowsort
SELECT ALL col1 * - col0 + cor0.col0 * ( 71 ) FROM tab0 AS cor0
----
-1780
-360
-910
query I rowsort
SELECT 30 + + col2 FROM tab0 AS cor0
----
112
31
63
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-380
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - col2 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-380
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - col2 FROM tab1 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col2 - + 60 col0 FROM tab1
----
-3
116
61
query I rowsort
SELECT ALL col0 * + ( + col0 ) AS col2 FROM tab2
----
49
6084
6241
query I rowsort
SELECT ( tab0.col1 ) + - col1 * - col1 * - tab0.col2 FROM tab0
----
-243982
-678951
-9312
query I rowsort
SELECT ALL + 1 + 12 * - col0 FROM tab0
----
-1067
-287
-419
query I rowsort
SELECT ALL cor1.col1 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775
query I rowsort
SELECT + + col1 + cor0.col0 FROM tab0 cor0
----
110
132
180
query I rowsort
SELECT ( 21 ) FROM tab0 AS cor0
----
21
21
21
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 AS cor0, tab0, tab1 cor1
----
972 values hashing to 9af67d6f98010464af5d560bf949d487
query I rowsort
SELECT + - 18 * - cor0.col0 FROM tab1 AS cor0
----
1152
1440
54
onlyif mysql # use DIV operator for integer division
query I rowsort label-390
SELECT ( - col0 ) + + cor0.col1 DIV col0 col2 FROM tab1 AS cor0
----
-64
-80
5
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-390
SELECT ( - col0 ) + + cor0.col1 / col0 col2 FROM tab1 AS cor0
----
-64
-80
5
query I rowsort
SELECT col1 * 70 AS col0 FROM tab1 cor0
----
1820
700
910
onlyif mysql # use DIV operator for integer division
query I rowsort label-392
SELECT ALL col0 + - col0 DIV + ( - ( - tab2.col1 ) * + ( + col0 ) ) AS col1 FROM tab2
----
7
78
79
skipif mysql # not compatible
query I rowsort label-392
SELECT ALL col0 + - col0 / + ( - ( - tab2.col1 ) * + ( + col0 ) ) AS col1 FROM tab2
----
7
78
79
query I rowsort
SELECT - + col1 + - ( col1 ) * + col2 * + ( + col1 ) + - col2 FROM tab2 cor0
----
-11037
-26005
-90591
query I rowsort
SELECT + col2 + - col0 * + col2 FROM tab1 AS cor0
----
-108
-3591
-7584
skipif mysql # not compatible
query I rowsort
SELECT + - col2 + + CAST ( + col2 AS REAL ) FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT 83 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab2 AS cor2
----
81 values hashing to 5ced3720d5aeff0dd77d5059a38001b6
query I rowsort
SELECT DISTINCT + col1 * + ( cor0.col0 ) AS col1 FROM tab1 AS cor0
----
1040
640
78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 * - col0 col0 FROM tab2 cor0
----
-49
-6084
-6241
onlyif mysql # use DIV operator for integer division
query I rowsort label-399
SELECT cor0.col0 DIV col2 FROM tab1 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-399
SELECT cor0.col0 / col2 FROM tab1 AS cor0
----
0
0
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-400
SELECT ALL + col0 * - col1 + + col1 DIV col2 FROM tab1 AS cor0
----
-1040
-640
-78
skipif mysql # not compatible
query I rowsort label-400
SELECT ALL + col0 * - col1 + + col1 / col2 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT - col0 + - col1 AS col1 FROM tab0 cor0
----
-110
-132
-180
query I rowsort
SELECT - col0 + ( + col2 ) AS col2 FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT ALL - 93 + 76 AS col0 FROM tab1 AS cor0
----
-17
-17
-17
query I rowsort
SELECT 65 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805
query I rowsort
SELECT DISTINCT - 98 * col2 AS col2 FROM tab1 AS cor0
----
-5292
-5586
-9408
onlyif mysql # use DIV operator for integer division
query I rowsort label-406
SELECT - col1 DIV col1 + + col2 + + col0 FROM tab2 AS cor0
----
103
116
33
skipif mysql # not compatible
query I rowsort label-406
SELECT - col1 / col1 + + col2 + + col0 FROM tab2 AS cor0
----
103
116
33
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-407
SELECT DISTINCT + + CAST( col0 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-407
SELECT DISTINCT + + CAST ( col0 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
24
35
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 95 * + col2 + - col1 col0 FROM tab2 AS cor0
----
2411
2534
3593
query I rowsort
SELECT DISTINCT + cor0.col1 * col2 * - col2 AS col1 FROM tab2 AS cor0
----
-22599
-24548
-39884
query I rowsort
SELECT DISTINCT + + col2 * col0 AS col0 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT + col1 * + 24 FROM tab1
----
240
312
624
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-412
SELECT DISTINCT - col0 + + col2 - + CAST( 7 AS SIGNED ) * + col0 FROM tab0 AS cor0
----
-159
-279
-630
skipif mysql # not compatible
query I rowsort label-412
SELECT DISTINCT - col0 + + col2 - + CAST ( 7 AS INTEGER ) * + col0 FROM tab0 AS cor0
----
-159
-279
-630
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - cor0.col2 col2 FROM tab0 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 46 col2 FROM tab1 AS cor0
----
46
46
46
query I rowsort
SELECT ALL + ( - ( col0 ) * + col2 ) AS col2 FROM tab2
----
-189
-2028
-3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-416
SELECT ALL + + col1 DIV col0 - CAST( 94 AS SIGNED ) FROM tab0 AS cor0
----
-91
-92
-93
skipif mysql # not compatible
query I rowsort label-416
SELECT ALL + + col1 / col0 - CAST ( 94 AS INTEGER ) FROM tab0 AS cor0
----
-91
-92
-93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + col0 col1 FROM tab0 AS cor0
----
1225
576
7921
onlyif mysql # use DIV operator for integer division
query I rowsort label-418
SELECT ALL + - ( col2 ) DIV col0 + + 31 DIV col1 - col0 * cor0.col0 * col2 FROM tab1 cor0
----
-233469
-503
-614399
skipif mysql # not compatible
query I rowsort label-418
SELECT ALL + - ( col2 ) / col0 + + 31 / col1 - col0 * cor0.col0 * col2 FROM tab1 cor0
----
-233469
-503
-614399
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0, tab1 cor1, tab2, tab2 AS cor2
----
3645 values hashing to 803a5565701c4ced6bba69940782c17a
query I rowsort
SELECT - 84 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 02f1688b8610806ca28739b1735f6ae4
query I rowsort
SELECT ( - tab0.col1 * - col1 + + col0 ) FROM tab0
----
7420
8370
9444
onlyif mysql # use DIV operator for integer division
query I rowsort label-422
SELECT + col1 + 9 DIV + col2 AS col2 FROM tab1 AS cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-422
SELECT + col1 + 9 / + col2 AS col2 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT ALL - + col1 + - col2 * ( col0 + - col0 ) * - 10 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT + col2 + 34 * col0 FROM tab1 AS cor0
----
156
2233
2816
query I rowsort
SELECT ALL ( tab1.col1 ) FROM tab1
----
10
13
26
query I rowsort
SELECT DISTINCT + cor0.col0 * cor1.col1 AS col1 FROM tab1, tab1 cor0, tab0 AS cor1
----
9 values hashing to ae10dfda2508149d338269366c35c584
query I rowsort
SELECT DISTINCT - + 42 * col2 + cor0.col1 FROM tab0 AS cor0
----
-1300
-3353
55
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 + - col2 col0 FROM tab2 AS cor0
----
-55
-58
-85
query I rowsort
SELECT DISTINCT ( col2 ) * col1 * col2 + + col0 + col1 AS col1 FROM tab2 AS cor0
----
22637
24644
40021
onlyif mysql # use DIV operator for integer division
query I rowsort label-430
SELECT - col0 + + 26 * col0 DIV + cor0.col0 FROM tab0 AS cor0
----
-63
-9
2
skipif mysql # not compatible
query I rowsort label-430
SELECT - col0 + + 26 * col0 / + cor0.col0 FROM tab0 AS cor0
----
-63
-9
2
query I rowsort
SELECT ALL 93 * 51 - cor0.col2 FROM tab0 AS cor0
----
4661
4710
4742
query I rowsort
SELECT DISTINCT - ( col0 ) + - col0 + col2 * + col1 * - cor0.col0 AS col2 FROM tab0 AS cor0
----
-3465
-664296
-68160
query I rowsort
SELECT DISTINCT + 58 FROM tab0, tab1 AS cor0
----
58
query I rowsort
SELECT + 43 + + col2 AS col2 FROM tab2 AS cor0
----
69
70
81
query I rowsort
SELECT ALL - - col2 * + cor0.col2 FROM tab0 AS cor0
----
1
1089
6724
skipif mysql # not compatible
query I rowsort
SELECT ALL + + CAST ( + col2 AS REAL ) + + col2 AS col0 FROM tab2 AS cor0
----
52
54
76
query I rowsort
SELECT ALL - - cor0.col1 - + col2 FROM tab2 cor0
----
-21
33
4
query I rowsort
SELECT ( - col2 ) + + col1 AS col2 FROM tab2 AS cor0
----
-21
33
4
query I rowsort
SELECT ALL + + cor0.col0 + + ( cor0.col0 ) + col2 FROM tab0 AS cor0
----
260
71
81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + col2 ) col2 FROM tab1
----
54
57
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-441
SELECT 91 - + 78 DIV col1 AS col0 FROM tab0
----
91
91
91
skipif mysql # not compatible
query I rowsort label-441
SELECT 91 - + 78 / col1 AS col0 FROM tab0
----
91
91
91
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 95 ) + - col1 col0 FROM tab0
----
-2
4
9
query I rowsort
SELECT + 84 + - col0 AS col2 FROM tab1 AS cor0
----
20
4
81
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-444
SELECT ALL CAST( - col0 AS SIGNED ) col1 FROM tab0
----
-24
-35
-89
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-444
SELECT ALL CAST ( - col0 AS INTEGER ) col1 FROM tab0
----
-24
-35
-89
query I rowsort
SELECT ALL col0 * cor0.col2 FROM tab2 cor0
----
189
2028
3002
query I rowsort
SELECT ALL - ( - col2 * - ( + 82 ) ) - col0 * + col0 FROM tab2
----
-2263
-8216
-9357
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 99 - - col0 * + 76 col1 FROM tab0
----
1923
2759
6863
query I rowsort
SELECT ALL + col1 - col2 FROM tab0
----
53
9
96
query I rowsort
SELECT DISTINCT - cor0.col1 * + cor0.col2 - - 38 FROM tab0 AS cor0
----
-2800
-59
-7424
onlyif mysql # use DIV operator for integer division
query I rowsort label-450
SELECT ALL col1 DIV col1 AS col0 FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-450
SELECT ALL col1 / col1 AS col0 FROM tab1 AS cor0
----
1
1
1
query I rowsort
SELECT DISTINCT - col1 * - cor0.col0 + col2 AS col0 FROM tab2 cor0
----
1381
244
4628
onlyif mysql # use DIV operator for integer division
query I rowsort label-452
SELECT col2 + col1 DIV - 15 AS col1 FROM tab1 AS cor0
----
53
57
96
skipif mysql # not compatible
query I rowsort label-452
SELECT col2 + col1 / - 15 AS col1 FROM tab1 AS cor0
----
53
57
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-453
SELECT ALL + - col1 DIV - ( cor0.col0 ) + cor0.col1 DIV col1 AS col1 FROM tab2 AS cor0
----
1
1
5
skipif mysql # not compatible
query I rowsort label-453
SELECT ALL + - col1 / - ( cor0.col0 ) + cor0.col1 / col1 AS col1 FROM tab2 AS cor0
----
1
1
5
query I rowsort
SELECT + col1 * cor0.col1 AS col2 FROM tab1 cor0
----
100
169
676
query I rowsort
SELECT + col0 * - col1 - col1 AS col1 FROM tab2 AS cor0
----
-1360
-248
-4661
onlyif mysql # use DIV operator for integer division
query I rowsort label-456
SELECT DISTINCT + col1 - col2 DIV col2 FROM tab0 AS cor0
----
85
90
96
skipif mysql # not compatible
query I rowsort label-456
SELECT DISTINCT + col1 - col2 / col2 FROM tab0 AS cor0
----
85
90
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-457
SELECT ALL 48 + col2 * col2 DIV col1 AS col1 FROM tab0
----
121
48
60
skipif mysql # not compatible
query I rowsort label-457
SELECT ALL 48 + col2 * col2 / col1 AS col1 FROM tab0
----
121
48
60
onlyif mysql # use DIV operator for integer division
query I rowsort label-458
SELECT ( col2 ) DIV - col1 FROM tab1
----
-2
-5
-7
skipif mysql # not compatible
query I rowsort label-458
SELECT ( col2 ) / - col1 FROM tab1
----
-2
-5
-7
query I rowsort
SELECT + 63 * - tab2.col0 AS col2 FROM tab2
----
-441
-4914
-4977
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + - col0 * + 7 * + col2 - col1 col0 FROM tab2
----
-1323
-14196
-21014
query I rowsort
SELECT 88 + + col1 AS col1 FROM tab2
----
105
119
147
query I rowsort
SELECT ALL ( col0 ) * ( - col1 ) - + col1 AS col0 FROM tab2
----
-1360
-248
-4661
query I rowsort
SELECT DISTINCT col0 * col2 + + tab2.col0 - - col2 FROM tab2
----
2132
223
3119
query I rowsort
SELECT - 45 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 71160abf09589695379a70558726f0ba
query IIIIIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab0, tab0 cor1
----
243 values hashing to 021da207cdc2a046fb0a79bf7cfc38ae
query I rowsort
SELECT DISTINCT col2 + tab1.col1 AS col1 FROM tab1
----
109
67
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-467
SELECT DISTINCT - - col2 + col2 DIV + col0 FROM tab2 AS cor0
----
26
30
38
skipif mysql # not compatible
query I rowsort label-467
SELECT DISTINCT - - col2 + col2 / + col0 FROM tab2 AS cor0
----
26
30
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-468
SELECT ALL + col1 DIV - col1 + cor0.col1 * - cor0.col0 AS col1 FROM tab2 cor0
----
-1344
-218
-4603
skipif mysql # not compatible
query I rowsort label-468
SELECT ALL + col1 / - col1 + cor0.col1 * - cor0.col0 AS col1 FROM tab2 cor0
----
-1344
-218
-4603
query I rowsort
SELECT ALL - cor0.col0 * cor0.col1 + 79 * + col0 * - col0 FROM tab2 AS cor0
----
-4088
-485238
-494382
query I rowsort
SELECT cor0.col2 + 95 * col2 FROM tab0 AS cor0
----
3168
7872
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-471
SELECT ALL + - col2 * + CAST( NULL AS SIGNED ) + 23 * + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-471
SELECT ALL + - col2 * + CAST ( NULL AS INTEGER ) + 23 * + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col1 + 61 + ( - col1 ) * - col2 FROM tab2 cor0
----
1536
690
867
query I rowsort
SELECT ALL + + col2 + - col1 FROM tab2 cor0
----
-33
-4
21
query I rowsort
SELECT cor0.col1 * + 42 AS col1 FROM tab0 AS cor0
----
3612
3822
4074
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col0 + 32 col0 FROM tab2 AS cor0
----
-46
-47
25
query I rowsort
SELECT col0 + col1 + + col2 * col2 AS col0 FROM tab0
----
1199
133
6904
query I rowsort
SELECT col2 * - col0 * tab1.col1 FROM tab1
----
-36480
-4212
-99840
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + tab0.col0 + + col2 col0 FROM tab0
----
133
143
262
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * - col0 + + col2 col1 FROM tab1
----
-108
-3591
-7584
query I rowsort
SELECT ALL + col1 + col1 AS col2 FROM tab1
----
20
26
52
query I rowsort
SELECT DISTINCT col0 + col2 + col2 FROM tab1
----
111
178
272
query I rowsort
SELECT tab1.col0 + tab1.col1 + tab1.col1 * col1 FROM tab1
----
174
262
705
onlyif mysql # use DIV operator for integer division
query I rowsort label-483
SELECT col2 DIV + col0 AS col1 FROM tab1
----
0
1
18
skipif mysql # not compatible
query I rowsort label-483
SELECT col2 / + col0 AS col1 FROM tab1
----
0
1
18
query I rowsort
SELECT col0 * col2 * tab2.col1 AS col1 FROM tab2
----
119652
51034
5859
onlyif mysql # use DIV operator for integer division
query I rowsort label-485
SELECT - - col0 + cor0.col1 DIV col1 + + col1 DIV col1 col0 FROM tab1 AS cor0
----
5
66
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-485
SELECT - - col0 + cor0.col1 / col1 + + col1 / col1 col0 FROM tab1 AS cor0
----
5
66
82
query I rowsort
SELECT DISTINCT + - col1 + col1 * col2 FROM tab1 AS cor0
----
1235
1378
560
query I rowsort
SELECT + + cor0.col0 + + col2 FROM tab2 AS cor0
----
104
117
34
onlyif mysql # use DIV operator for integer division
query I rowsort label-488
SELECT col1 + col0 + + col1 DIV col2 FROM tab1 AS cor0
----
29
74
93
skipif mysql # not compatible
query I rowsort label-488
SELECT col1 + col0 + + col1 / col2 FROM tab1 AS cor0
----
29
74
93
query III rowsort
SELECT * FROM tab2 WHERE NOT col0 NOT IN ( tab2.col1 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-490
SELECT - col0 DIV + col0 + - col1 col1 FROM tab2 AS cor0
----
-18
-32
-60
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-490
SELECT - col0 / + col0 + - col1 col1 FROM tab2 AS cor0
----
-18
-32
-60
query I rowsort
SELECT ALL + ( - col0 ) + + col0 AS col0 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT ALL 21 * + col0 FROM tab2
----
147
1638
1659
query I rowsort
SELECT ALL ( + tab2.col0 ) * - col1 FROM tab2
----
-1343
-217
-4602
query I rowsort
SELECT ALL + - 97 * - col2 FROM tab0 AS cor0
----
3201
7954
97
query I rowsort
SELECT - 97 AS col0 FROM tab1 AS cor0
----
-97
-97
-97
query I rowsort
SELECT DISTINCT + 12 FROM tab0 cor0
----
12
query I rowsort
SELECT DISTINCT + 17 AS col2 FROM tab2 AS cor0
----
17
onlyif mysql # use DIV operator for integer division
query I rowsort label-498
SELECT - 54 DIV col2 FROM tab1 cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-498
SELECT - 54 / col2 FROM tab1 cor0
----
-1
0
0
query I rowsort
SELECT DISTINCT col2 + col0 AS col0 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT ALL 27 * col0 + + col1 * col2 + col2 * col0 AS col2 FROM tab0 AS cor0
----
1077
17163
4278
query I rowsort
SELECT + + 2 AS col0 FROM tab0 AS cor0
----
2
2
2
query I rowsort
SELECT ALL + + col0 + col1 FROM tab0 AS cor0
----
110
132
180
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 * col0 col1 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT - + 53 + col1 FROM tab2 AS cor0
----
-22
-36
6
query I rowsort
SELECT DISTINCT - - col1 * + cor0.col1 AS col1 FROM tab2 cor0
----
289
3481
961
query I rowsort
SELECT DISTINCT + + col2 * + col2 AS col0 FROM tab1 AS cor0
----
2916
3249
9216
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + col2 col2 FROM tab1 cor0
----
-2916
-3249
-9216
query I rowsort
SELECT + 28 AS col1 FROM tab0
----
28
28
28
query I rowsort
SELECT + ( + col1 ) * - col2 + ( - col2 ) FROM tab2 AS cor0
----
-1560
-684
-864
query I rowsort
SELECT + + col1 * col2 + cor0.col1 * col0 AS col2 FROM tab0 cor0
----
15561
3492
4902
query I rowsort
SELECT 25 AS col0 FROM tab2 AS cor0
----
25
25
25
query I rowsort
SELECT DISTINCT + 1 + col0 - ( + col0 * - col1 ) FROM tab0 AS cor0
----
2089
3431
8189
query I rowsort
SELECT col2 * col0 + + 29 FROM tab0 cor0
----
64
7327
821
query I rowsort
SELECT cor0.col0 * col1 + - col1 * - col0 FROM tab0 cor0
----
16198
4128
6790
query I rowsort
SELECT ( + col1 ) * col0 FROM tab0
----
2064
3395
8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-516
SELECT - tab0.col0 DIV + col2 col0 FROM tab0
----
-1
-35
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-516
SELECT - tab0.col0 / + col2 col0 FROM tab0
----
-1
-35
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775
query I rowsort
SELECT DISTINCT 49 FROM tab0, tab0 AS cor0
----
49
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + col2 * col2 - col0 * col0 col2 FROM tab2 AS cor0
----
18307
22550
33800
query I rowsort
SELECT ALL - ( + col2 ) AS col2 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT + - col0 * col0 * 74 FROM tab2 AS cor0
----
-3626
-450216
-461834
onlyif mysql # use DIV operator for integer division
query I rowsort label-522
SELECT - - col2 - col2 DIV + col1 FROM tab1 AS cor0
----
52
52
89
skipif mysql # not compatible
query I rowsort label-522
SELECT - - col2 - col2 / + col1 FROM tab1 AS cor0
----
52
52
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + col1 * - 84 col2 FROM tab1 AS cor0
----
-1172
-2187
-904
query I rowsort
SELECT + cor1.col0 AS col1 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
onlyif mysql # use DIV operator for integer division
query I rowsort label-525
SELECT 84 DIV + col1 FROM tab1
----
3
6
8
skipif mysql # not compatible
query I rowsort label-525
SELECT 84 / + col1 FROM tab1
----
3
6
8
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-526
SELECT - col2 * - CAST( NULL AS SIGNED ) + + ( - col0 ) * 40 * col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-526
SELECT - col2 * - CAST ( NULL AS INTEGER ) + + ( - col0 ) * 40 * col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col1 + col2 * - col1 FROM tab1 AS cor0
----
-1261
-1430
-580
onlyif mysql # use DIV operator for integer division
query I rowsort label-528
SELECT ALL + col2 DIV col1 - - col1 FROM tab0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-528
SELECT ALL + col2 / col1 - - col1 FROM tab0
----
86
91
97
query I rowsort
SELECT col2 * + cor0.col2 - col2 FROM tab1 cor0
----
2862
3192
9120
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab2, tab2 AS cor2
----
3645 values hashing to 5a114c3d024b82b28eeddb04849c8215
query I rowsort
SELECT DISTINCT 83 AS col1 FROM tab0, tab0 AS cor0
----
83
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-532
SELECT ALL CAST( - 45 + + col2 AS SIGNED ) AS col0 FROM tab0
----
-12
-44
37
skipif mysql # not compatible
query I rowsort label-532
SELECT ALL CAST ( - 45 + + col2 AS INTEGER ) AS col0 FROM tab0
----
-12
-44
37
query I rowsort
SELECT ALL - 47 AS col2 FROM tab2
----
-47
-47
-47
query I rowsort
SELECT ALL + 70 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911
query I rowsort
SELECT + cor0.col2 * + col1 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT + tab2.col2 * tab2.col2 + - tab2.col2 AS col1 FROM tab2
----
1406
650
702
query I rowsort
SELECT ALL - 30 * col1 FROM tab1
----
-300
-390
-780
query I rowsort
SELECT 55 + col2 AS col2 FROM tab0
----
137
56
88
query I rowsort
SELECT + ( - 92 ) + - col2 AS col0 FROM tab0 AS cor0
----
-125
-174
-93
query I rowsort
SELECT + 5 * col2 FROM tab2 AS cor0
----
130
135
190
query I rowsort
SELECT + + 37 FROM tab0 AS cor0
----
37
37
37
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-542
SELECT DISTINCT CAST( + 81 AS SIGNED ) * tab2.col0 FROM tab2
----
567
6318
6399
skipif mysql # not compatible
query I rowsort label-542
SELECT DISTINCT CAST ( + 81 AS INTEGER ) * tab2.col0 FROM tab2
----
567
6318
6399
onlyif mysql # use DIV operator for integer division
query I rowsort label-543
SELECT ALL + 19 DIV + col1 AS col2 FROM tab2 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-543
SELECT ALL + 19 / + col1 AS col2 FROM tab2 AS cor0
----
0
0
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-544
SELECT - - col1 + + cor0.col0 DIV - col1 AS col2 FROM tab0 AS cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-544
SELECT - - col1 + + cor0.col0 / - col1 AS col2 FROM tab0 AS cor0
----
86
91
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-545
SELECT DISTINCT + col2 + + tab0.col0 * CAST( col2 AS SIGNED ) * col0 FROM tab0
----
1226
19041
649604
skipif mysql # not compatible
query I rowsort label-545
SELECT DISTINCT + col2 + + tab0.col0 * CAST ( col2 AS INTEGER ) * col0 FROM tab0
----
1226
19041
649604
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col0 + col0 * - 28 col2 FROM tab1
----
-1152
-1200
-6
query I rowsort
SELECT DISTINCT + col0 * + col0 + - 85 AS col1 FROM tab1 AS cor0
----
-76
4011
6315
query I rowsort
SELECT 76 FROM tab2, tab2 AS cor0, tab1 cor1
----
27 values hashing to 7b2b08dd3f1adef028d3f40ef7c716da
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 col0 FROM tab1 AS cor0
----
3
64
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-550
SELECT DISTINCT - - col1 DIV + col2 FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-550
SELECT DISTINCT - - col1 / + col2 FROM tab1 AS cor0
----
0
query I rowsort
SELECT ALL - col1 * - col1 AS col1 FROM tab1 cor0
----
100
169
676
onlyif mysql # use DIV operator for integer division
query I rowsort label-552
SELECT - col2 + + ( col2 ) DIV + col0 AS col0 FROM tab1
----
-36
-57
-95
skipif mysql # not compatible
query I rowsort label-552
SELECT - col2 + + ( col2 ) / + col0 AS col0 FROM tab1
----
-36
-57
-95
onlyif mysql # use DIV operator for integer division
query I rowsort label-553
SELECT DISTINCT col1 DIV col2 + col1 + col0 AS col2 FROM tab0
----
112
181
229
skipif mysql # not compatible
query I rowsort label-553
SELECT DISTINCT col1 / col2 + col1 + col0 AS col2 FROM tab0
----
112
181
229
query I rowsort
SELECT col2 * col2 - - col1 AS col0 FROM tab1
----
2942
3259
9229
onlyif mysql # use DIV operator for integer division
query I rowsort label-555
SELECT - cor0.col2 DIV ( col1 ) + col2 * 65 AS col2 FROM tab0 AS cor0
----
2145
5330
65
skipif mysql # not compatible
query I rowsort label-555
SELECT - cor0.col2 / ( col1 ) + col2 * 65 AS col2 FROM tab0 AS cor0
----
2145
5330
65
query I rowsort
SELECT DISTINCT + col0 + + ( 20 ) FROM tab0 AS cor0
----
109
44
55
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-557
SELECT + CAST( NULL AS SIGNED ) * - col0 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-557
SELECT + CAST ( NULL AS INTEGER ) * - col0 FROM tab0 cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-558
SELECT - - 41 DIV 78 AS col1 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-558
SELECT - - 41 / 78 AS col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT 52 AS col1 FROM tab1 AS cor0
----
52
query I rowsort
SELECT ALL + col2 * + col0 + cor0.col2 * + ( - col2 ) + + col0 AS col0 FROM tab0 AS cor0
----
-273
663
69
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * col0 * - col2 + - col1 col1 FROM tab2 cor0
----
1292
158125
237141
query I rowsort
SELECT + 81 AS col1 FROM tab1 AS cor0
----
81
81
81
query I rowsort
SELECT DISTINCT - cor0.col0 * - 58 FROM tab0 AS cor0
----
1392
2030
5162
query I rowsort
SELECT ALL 1 * + 24 AS col0 FROM tab1 AS cor0
----
24
24
24
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-565
SELECT ALL + + CAST( NULL AS SIGNED ) * + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-565
SELECT ALL + + CAST ( NULL AS INTEGER ) * + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + 51 + col0 * + cor0.col1 FROM tab1 AS cor0
----
1091
129
691
onlyif mysql # use DIV operator for integer division
query I rowsort label-567
SELECT 17 DIV col1 FROM tab1 AS cor0
----
0
1
1
skipif mysql # not compatible
query I rowsort label-567
SELECT 17 / col1 FROM tab1 AS cor0
----
0
1
1
query I rowsort
SELECT DISTINCT + + 3 * + 69 + col2 FROM tab0 AS cor0
----
208
240
289
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-569
SELECT col1 * CAST( - col0 AS SIGNED ) FROM tab1
----
-1040
-640
-78
skipif mysql # not compatible
query I rowsort label-569
SELECT col1 * CAST ( - col0 AS INTEGER ) FROM tab1
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT col2 * col0 * col0 + + col0 FROM tab2
----
1330
158262
237237
query I rowsort
SELECT DISTINCT - col2 * 90 + tab2.col0 + - col1 * col1 AS col1 FROM tab2
----
-3384
-3630
-5743
query I rowsort
SELECT col1 - tab1.col1 FROM tab1
----
0
0
0
query I rowsort
SELECT DISTINCT col0 + - col2 + - col2 AS col0 FROM tab0
----
-42
-75
33
onlyif mysql # use DIV operator for integer division
query I rowsort label-574
SELECT DISTINCT - col2 + col2 DIV + col0 FROM tab0
----
-1
-32
-82
skipif mysql # not compatible
query I rowsort label-574
SELECT DISTINCT - col2 + col2 / + col0 FROM tab0
----
-1
-32
-82
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-575
SELECT CAST( NULL AS SIGNED ) AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-575
SELECT CAST ( NULL AS INTEGER ) AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT DISTINCT + 73 AS col1 FROM tab2, tab0 cor0
----
73
onlyif mysql # use DIV operator for integer division
query I rowsort label-577
SELECT ALL + col1 * col1 + - col2 DIV + tab2.col0 + 42 col0 FROM tab2
----
1000
331
3523
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-577
SELECT ALL + col1 * col1 + - col2 / + tab2.col0 + 42 col0 FROM tab2
----
1000
331
3523
query I rowsort
SELECT - - col0 - col2 * col0 FROM tab1 AS cor0
----
-159
-3584
-7600
query I rowsort
SELECT ALL - col0 + ( col1 ) AS col1 FROM tab2 AS cor0
----
-19
-62
24
onlyif mysql # use DIV operator for integer division
query I rowsort label-580
SELECT DISTINCT + - col0 DIV ( col0 ) + col1 * cor0.col0 AS col0 FROM tab2 AS cor0
----
1342
216
4601
skipif mysql # not compatible
query I rowsort label-580
SELECT DISTINCT + - col0 / ( col0 ) + col1 * cor0.col0 AS col0 FROM tab2 AS cor0
----
1342
216
4601
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 + 5 + cor0.col2 col0 FROM tab0 cor0
----
169
7
71
query I rowsort
SELECT ALL col1 * - 48 FROM tab2 AS cor0
----
-1488
-2832
-816
query I rowsort
SELECT ALL + - 18 - 87 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2, tab2 AS cor1
----
27 values hashing to 74d03e19d57e313b6e96a86187446175
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col1 * cor0.col2 col0 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT DISTINCT - cor0.col2 * + ( - 73 ) FROM tab2 AS cor0
----
1898
1971
2774
query I rowsort
SELECT + cor0.col2 + 27 * + 39 FROM tab0 AS cor0
----
1054
1086
1135
query I rowsort
SELECT ALL cor0.col2 + col2 + col1 AS col2 FROM tab0 cor0
----
152
255
99
query I rowsort
SELECT - col1 * + col2 + 44 * + cor0.col1 * col2 + col2 FROM tab2 AS cor0
----
27816
36018
65988
query I rowsort
SELECT - 91 + - 70 FROM tab2 cor0
----
-161
-161
-161
query I rowsort
SELECT ALL 18 FROM tab2, tab1 cor0
----
9 values hashing to b95bafa733666df39c5d3f94760d010f
onlyif mysql # use DIV operator for integer division
query I rowsort label-591
SELECT ALL + + col0 DIV - ( - col0 ) + cor0.col2 * - 17 * - col2 FROM tab1 AS cor0
----
156673
49573
55234
skipif mysql # not compatible
query I rowsort label-591
SELECT ALL + + col0 / - ( - col0 ) + cor0.col2 * - 17 * - col2 FROM tab1 AS cor0
----
156673
49573
55234
query I rowsort
SELECT + 28 FROM tab1 AS cor0
----
28
28
28
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 11 col1 FROM tab0 AS cor0
----
11
query I rowsort
SELECT DISTINCT col0 + 42 FROM tab2 AS cor0
----
120
121
49
query I rowsort
SELECT + cor0.col2 + 56 * cor0.col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 548c657e01c6b6b006571c814dd7fff8
query I rowsort
SELECT ALL + col1 * - col2 + - 32 FROM tab0
----
-129
-2870
-7494
query I rowsort
SELECT + 1 * col2 + + cor0.col2 FROM tab1 AS cor0
----
108
114
192
query I rowsort
SELECT + 21 + cor0.col0 FROM tab2 AS cor0
----
100
28
99
query I rowsort
SELECT DISTINCT + 24 * + col1 + + 56 FROM tab0 cor0
----
2120
2240
2384
query I rowsort
SELECT ALL + 60 * col2 FROM tab1 AS cor0
----
3240
3420
5760
query I rowsort
SELECT 78 * cor0.col0 AS col0 FROM tab1 AS cor0
----
234
4992
6240
query I rowsort
SELECT + 8 + col2 FROM tab0 AS cor0
----
41
9
90
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 68 * col0 col2 FROM tab0
----
-1632
-2380
-6052
query I rowsort
SELECT ALL + col2 * + col2 + 90 AS col1 FROM tab2 AS cor0
----
1534
766
819
query I rowsort
SELECT - col1 * + 70 - - 87 FROM tab1 AS cor0
----
-1733
-613
-823
onlyif mysql # use DIV operator for integer division
query I rowsort label-606
SELECT ALL + - col2 DIV col0 FROM tab2 AS cor0
----
-3
0
0
skipif mysql # not compatible
query I rowsort label-606
SELECT ALL + - col2 / col0 FROM tab2 AS cor0
----
-3
0
0
query I rowsort
SELECT DISTINCT - + cor0.col2 * cor0.col1 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT ALL + 77 AS col2 FROM tab1
----
77
77
77
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-609
SELECT - 41 + col1 * + CAST( col0 AS SIGNED ) * tab1.col2 FROM tab1
----
36439
4171
99799
skipif mysql # not compatible
query I rowsort label-609
SELECT - 41 + col1 * + CAST ( col0 AS INTEGER ) * tab1.col2 FROM tab1
----
36439
4171
99799
query I rowsort
SELECT ALL - 24 + - col1 - col2 FROM tab2
----
-109
-79
-82
query I rowsort
SELECT ALL - col2 - col1 * + tab1.col2 FROM tab1
----
-1344
-1458
-627
query I rowsort
SELECT ALL ( - cor0.col1 * 48 ) - ( + cor0.col2 ) FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 81433afe90a71ebd9037123b93eb4efe
query I rowsort
SELECT 23 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 546d49aa433406dd83ea19885588e658
query I rowsort
SELECT ALL + 80 * cor0.col1 + - col1 FROM tab0 AS cor0
----
6794
7189
7663
query I rowsort
SELECT col1 + col1 + cor0.col0 FROM tab1 AS cor0
----
106
55
84
query I rowsort
SELECT col2 * 98 AS col2 FROM tab2
----
2548
2646
3724
query I rowsort
SELECT ALL col0 * + col2 AS col2 FROM tab0
----
35
7298
792
query I rowsort
SELECT + - col1 + + col0 * 67 FROM tab1 AS cor0
----
175
4278
5347
query I rowsort
SELECT - + col0 + - cor0.col0 AS col1 FROM tab0 AS cor0
----
-178
-48
-70
query I rowsort
SELECT 6 AS col1 FROM tab0 AS cor0
----
6
6
6
query I rowsort
SELECT ALL 29 AS col1 FROM tab0
----
29
29
29
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0, tab2 cor0, tab0 AS cor1
----
972 values hashing to 9345325155d9f4d7dc4986690c631cb9
query I rowsort
SELECT DISTINCT - cor0.col0 AS col2 FROM tab0, tab1 AS cor0, tab2, tab0 AS cor1
----
-3
-64
-80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-624
SELECT ALL - - col1 * col0 + - CAST( - col0 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
2088
3430
8188
skipif mysql # not compatible
query I rowsort label-624
SELECT ALL - - col1 * col0 + - CAST ( - col0 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
2088
3430
8188
query I rowsort
SELECT cor0.col2 * - col0 * cor0.col2 AS col1 FROM tab0 AS cor0
----
-26136
-35
-598436
query I rowsort
SELECT DISTINCT 29 - + cor0.col0 FROM tab0 AS cor0
----
-6
-60
5
query I rowsort
SELECT ALL + - col0 * + col0 * - col2 - col0 * cor0.col2 AS col2 FROM tab2 AS cor0
----
1134
156156
234156
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + col2 col0 FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT - - col0 * col0 * - ( + col2 ) AS col2 FROM tab2 AS cor0
----
-1323
-158184
-237158
query I rowsort
SELECT - cor0.col0 AS col2 FROM tab0, tab1 AS cor0, tab2 cor1
----
27 values hashing to 729c1edda9332398299f39cd174ed840
query I rowsort
SELECT - col1 + - col0 FROM tab2 AS cor0
----
-137
-38
-96
query I rowsort
SELECT DISTINCT - - col2 AS col2 FROM tab2 cor0
----
26
27
38
query I rowsort
SELECT - + col1 - - cor0.col1 * 23 FROM tab0 AS cor0
----
1892
2002
2134
query I rowsort
SELECT - col2 + - col1 * col1 FROM tab2 AS cor0
----
-327
-3507
-988
query I rowsort
SELECT ALL 25 AS col0 FROM tab2 AS cor0
----
25
25
25
query I rowsort
SELECT DISTINCT + + 78 + col2 * col0 * + col0 AS col0 FROM tab2 AS cor0
----
1401
158262
237236
query I rowsort
SELECT DISTINCT - 90 AS col1 FROM tab2 AS cor0
----
-90
query I rowsort
SELECT col0 - + col1 FROM tab0 cor0
----
-2
-62
-62
query I rowsort
SELECT ALL - col2 + + col1 * - col2 FROM tab0 AS cor0
----
-2871
-7544
-98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col1 + + col0 col1 FROM tab0 AS cor0
----
-2
-62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * col1 col2 FROM tab1
----
100
169
676
query I rowsort
SELECT ALL - + ( - col1 ) FROM tab0 cor0
----
86
91
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-643
SELECT - - col1 DIV col0 AS col1 FROM tab2 cor0
----
0
0
4
skipif mysql # not compatible
query I rowsort label-643
SELECT - - col1 / col0 AS col1 FROM tab2 cor0
----
0
0
4
query I rowsort
SELECT ALL + 92 * - col1 FROM tab0 AS cor0
----
-7912
-8372
-8924
onlyif mysql # use DIV operator for integer division
query I rowsort label-645
SELECT DISTINCT col1 DIV col1 FROM tab1 cor0
----
1
skipif mysql # not compatible
query I rowsort label-645
SELECT DISTINCT col1 / col1 FROM tab1 cor0
----
1
query I rowsort
SELECT DISTINCT + + 66 AS col1 FROM tab2 AS cor0
----
66
query I rowsort
SELECT + 71 * col2 AS col1 FROM tab0 AS cor0
----
2343
5822
71
query I rowsort
SELECT ALL col2 + - col1 AS col1 FROM tab2 AS cor0
----
-33
-4
21
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 + 10 col0 FROM tab2 AS cor0
----
27
41
69
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - col1 col1 FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT - col1 + cor0.col1 AS col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT col0 * 92 + - col0 * col1 * col1 AS col2 FROM tab1 AS cor0
----
-1752
-512
-6160
onlyif mysql # use DIV operator for integer division
query I rowsort label-653
SELECT col2 DIV col1 + col0 AS col2 FROM tab0 AS cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-653
SELECT col2 / col1 + col0 AS col2 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT col0 * col0 + + cor0.col1 * col0 AS col2 FROM tab0 AS cor0
----
16020
2640
4620
query I rowsort
SELECT + + col2 * + col2 + cor0.col0 AS col2 FROM tab1 AS cor0
----
2919
3313
9296
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * + col0 * + 43 + - cor0.col0 col2 FROM tab0 cor0
----
-146020
-348346
-88776
query I rowsort
SELECT DISTINCT + col1 - + ( - col0 ) FROM tab2 AS cor0
----
137
38
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-658
SELECT + + col2 DIV cor0.col2 AS col2 FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-658
SELECT + + col2 / cor0.col2 AS col2 FROM tab1 AS cor0
----
1
1
1
query I rowsort
SELECT DISTINCT + ( - col1 ) AS col1 FROM tab1 AS cor0
----
-10
-13
-26
onlyif mysql # use DIV operator for integer division
query I rowsort label-660
SELECT 51 DIV col1 col1 FROM tab1 AS cor0
----
1
3
5
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-660
SELECT 51 / col1 col1 FROM tab1 AS cor0
----
1
3
5
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-661
SELECT col0 * ( col2 ) * col1 - CAST( ( col1 ) + - col0 AS SIGNED ) FROM tab0
----
3333
664116
68050
skipif mysql # not compatible
query I rowsort label-661
SELECT col0 * ( col2 ) * col1 - CAST ( ( col1 ) + - col0 AS INTEGER ) FROM tab0
----
3333
664116
68050
query I rowsort
SELECT DISTINCT + col0 - cor0.col2 * col0 FROM tab0 AS cor0
----
-7209
-768
0
query I rowsort
SELECT + ( + 40 ) AS col0 FROM tab2 AS cor0
----
40
40
40
query I rowsort
SELECT DISTINCT + - 54 * + cor0.col1 + + col2 FROM tab0 AS cor0
----
-4611
-4832
-5237
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-665
SELECT + CAST( NULL AS SIGNED ) * col1 + + col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-665
SELECT + CAST ( NULL AS INTEGER ) * col1 + + col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - 32 AS col1 FROM tab2 AS cor0
----
-32
-32
-32
query I rowsort
SELECT ALL + - 9 FROM tab2 AS cor0
----
-9
-9
-9
query I rowsort
SELECT DISTINCT col0 * col1 + col0 FROM tab1 AS cor0
----
1120
704
81
query I rowsort
SELECT DISTINCT 67 * 69 FROM tab0 AS cor0
----
4623
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-670
SELECT ALL + - CAST( NULL AS SIGNED ) * cor0.col0 + col0 * ( col1 * - col1 ) FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-670
SELECT ALL + - CAST ( NULL AS INTEGER ) * cor0.col0 + col0 * ( col1 * - col1 ) FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT 18 + 99 AS col2 FROM tab1 AS cor0
----
117
query I rowsort
SELECT ALL - - col1 + - 74 FROM tab0 AS cor0
----
12
17
23
query I rowsort
SELECT - 3 + - 99 AS col0 FROM tab1 AS cor0
----
-102
-102
-102
query I rowsort
SELECT - 29 * - cor0.col0 + - col0 AS col1 FROM tab2 AS cor0
----
196
2184
2212
query I rowsort
SELECT ALL - col2 * col2 + cor0.col0 FROM tab1 cor0
----
-2913
-3185
-9136
query I rowsort
SELECT + col1 * - ( - tab1.col1 ) * - col0 FROM tab1
----
-13520
-2028
-6400
onlyif mysql # use DIV operator for integer division
query I rowsort label-677
SELECT + col0 - + 86 DIV col0 AS col0 FROM tab2
----
-5
77
78
skipif mysql # not compatible
query I rowsort label-677
SELECT + col0 - + 86 / col0 AS col0 FROM tab2
----
-5
77
78
query I rowsort
SELECT ALL 59 - + cor0.col1 AS col1 FROM tab0 AS cor0
----
-27
-32
-38
query I rowsort
SELECT col2 * + 36 * tab2.col1 FROM tab2
----
23256
30132
55224
query I rowsort
SELECT + tab0.col1 + 68 FROM tab0
----
154
159
165
query I rowsort
SELECT DISTINCT + col1 + ( + col0 ) AS col1 FROM tab2
----
137
38
96
query I rowsort
SELECT DISTINCT - col0 + + col2 - col1 FROM tab1 cor0
----
-17
25
3
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-683
SELECT ALL - + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-683
SELECT ALL - + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - - col2 * 24 FROM tab0 AS cor0
----
1968
24
792
query I rowsort
SELECT ALL ( + col2 ) + - col0 FROM tab1 AS cor0
----
-7
16
51
onlyif mysql # use DIV operator for integer division
query I rowsort label-686
SELECT ALL - - col1 DIV + 4 AS col1 FROM tab1 cor0
----
2
3
6
skipif mysql # not compatible
query I rowsort label-686
SELECT ALL - - col1 / + 4 AS col1 FROM tab1 cor0
----
2
3
6
query I rowsort
SELECT DISTINCT + 60 * + col0 FROM tab2 cor0
----
420
4680
4740
query I rowsort
SELECT + 72 * + 49 FROM tab1 AS cor0
----
3528
3528
3528
query I rowsort
SELECT ALL - 76 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f8b6589bc7503fc720ca5430e3569317
query I rowsort
SELECT ( + 31 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540
query I rowsort
SELECT col1 * col1 * + col1 AS col2 FROM tab1
----
1000
17576
2197
query I rowsort
SELECT col0 + col1 AS col1 FROM tab0 cor0
----
110
132
180
query I rowsort
SELECT cor1.col0 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT ALL - - col1 * cor0.col2 + col2 FROM tab0 AS cor0
----
2871
7544
98
query I rowsort
SELECT DISTINCT col1 + 45 AS col2 FROM tab0 AS cor0
----
131
136
142
onlyif mysql # use DIV operator for integer division
query I rowsort label-696
SELECT + col2 DIV + col2 + - col0 * + col2 FROM tab0
----
-34
-7297
-791
skipif mysql # not compatible
query I rowsort label-696
SELECT + col2 / + col2 + - col0 * + col2 FROM tab0
----
-34
-7297
-791
query I rowsort
SELECT ALL col2 + 55 FROM tab2
----
81
82
93
query I rowsort
SELECT DISTINCT col1 + 15 * col0 FROM tab0
----
1426
446
622
query I rowsort
SELECT col0 * - col0 * - col2 FROM tab1
----
233472
486
614400
query I rowsort
SELECT - - col0 * 43 + - cor0.col0 + - col0 FROM tab0 AS cor0
----
1435
3649
984
query I rowsort
SELECT + - col0 + - 83 AS col0 FROM tab0 AS cor0
----
-107
-118
-172
query I rowsort
SELECT cor0.col0 * - col2 AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT DISTINCT + cor0.col1 + 78 * cor0.col2 FROM tab0 AS cor0
----
175
2660
6487
query I rowsort
SELECT ALL col2 + + ( - cor0.col0 ) FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT 54 AS col1 FROM tab2, tab2 AS cor0 CROSS JOIN tab0, tab2 AS cor1
----
81 values hashing to c12c2f39593b3ce157086f29d8391c32
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + 69 col0 FROM tab0
----
-17
-22
-28
query I rowsort
SELECT ALL - 67 FROM tab2, tab2 cor0
----
9 values hashing to fbe03b15d6b951410b38f7e98895006f
query I rowsort
SELECT ALL - - ( ( col2 ) ) + - col1 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT ALL ( 88 ) FROM tab2, tab1 AS cor0 CROSS JOIN tab0
----
27 values hashing to c46e7cf9bf516fdfde88534336a28177
query I rowsort
SELECT col0 + - 24 AS col1 FROM tab2
----
-17
54
55
query I rowsort
SELECT DISTINCT 8 FROM tab1
----
8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor1.col2 col2 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475
query I rowsort
SELECT ALL 69 * + col0 AS col1 FROM tab2
----
483
5382
5451
query I rowsort
SELECT ALL cor0.col2 * col0 - 60 * 75 * - cor0.col1 AS col2 FROM tab1 cor0
----
117162
48648
66180
onlyif mysql # use DIV operator for integer division
query I rowsort label-715
SELECT DISTINCT + col0 + + col2 DIV + col0 FROM tab2 AS cor0
----
10
78
79
skipif mysql # not compatible
query I rowsort label-715
SELECT DISTINCT + col0 + + col2 / + col0 FROM tab2 AS cor0
----
10
78
79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + col0 ) * col0 * 5 col0 FROM tab2 cor0
----
-245
-30420
-31205
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 61 col2 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
61
query I rowsort
SELECT + + col1 * - col1 AS col0 FROM tab1 AS cor0
----
-100
-169
-676
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 67 col0 FROM tab2, tab2 cor0, tab2 AS cor1
----
27 values hashing to eea8a0738728ea55e4e7ba1506c9905a
query I rowsort
SELECT ALL col2 * 22 * - col1 FROM tab0
----
-164164
-2134
-62436
query I rowsort
SELECT ALL col1 + ( cor0.col2 ) * + col1 AS col0 FROM tab1 AS cor0
----
1261
1430
580
query I rowsort
SELECT DISTINCT - col1 * + ( col0 ) + col0 AS col1 FROM tab1 AS cor0
----
-576
-75
-960
onlyif mysql # use DIV operator for integer division
query I rowsort label-723
SELECT - col1 + col2 DIV 43 AS col0 FROM tab0 AS cor0
----
-86
-90
-97
skipif mysql # not compatible
query I rowsort label-723
SELECT - col1 + col2 / 43 AS col0 FROM tab0 AS cor0
----
-86
-90
-97
query I rowsort
SELECT - + col2 + + 1 AS col1 FROM tab1 cor0
----
-53
-56
-95
skipif mysql # not compatible
query I rowsort
SELECT ALL - col0 / CAST ( col0 AS REAL ) AS col2 FROM tab2 AS cor0
----
-1
-1
-1
query I rowsort
SELECT ALL 50 AS col1 FROM tab1, tab1 cor0, tab0 AS cor1
----
27 values hashing to 314aace40e704c20a6be06204a329f80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-727
SELECT CAST( NULL AS DECIMAL ) FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-727
SELECT CAST ( NULL AS REAL ) FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT DISTINCT - cor0.col0 * cor0.col0 + col2 + - col1 FROM tab2 AS cor0
----
-53
-6117
-6220
query I rowsort
SELECT + ( 71 ) + + col0 * + 25 FROM tab2 AS cor0
----
2021
2046
246
query I rowsort
SELECT ALL - col1 * col2 + col0 AS col2 FROM tab1 cor0
----
-1168
-1401
-506
query I rowsort
SELECT ALL 55 * 37 AS col0 FROM tab1 AS cor0
----
2035
2035
2035
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 1 col2 FROM tab1 AS cor0
----
1
query I rowsort
SELECT - - col1 * 22 AS col2 FROM tab2 AS cor0
----
1298
374
682
query I rowsort
SELECT DISTINCT + cor0.col0 * + col1 AS col1 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT ALL - col1 * 86 AS col1 FROM tab2 AS cor0
----
-1462
-2666
-5074
query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2, tab1 AS cor0, tab2 cor1
----
972 values hashing to 2507aa9f48c3db94de9fec065edf3731
query I rowsort
SELECT DISTINCT - - col0 + + col0 AS col0 FROM tab2 cor0
----
14
156
158
onlyif mysql # use DIV operator for integer division
query I rowsort label-738
SELECT - + 43 + - 60 DIV + col0 col2 FROM tab2 AS cor0
----
-43
-43
-51
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-738
SELECT - + 43 + - 60 / + col0 col2 FROM tab2 AS cor0
----
-43
-43
-51
query I rowsort
SELECT - - ( col1 ) AS col2 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT - cor0.col2 + col2 * + col2 FROM tab1 AS cor0
----
2862
3192
9120
query I rowsort
SELECT - + ( - 50 ) AS col2 FROM tab0 AS cor0
----
50
50
50
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-742
SELECT CAST( ( - col2 ) AS SIGNED ) FROM tab1
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-742
SELECT CAST ( ( - col2 ) AS INTEGER ) FROM tab1
----
-54
-57
-96
query I rowsort
SELECT - ( ( col0 ) ) FROM tab1
----
-3
-64
-80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-744
SELECT + CAST( - 89 AS SIGNED ) + col2 AS col0 FROM tab1 AS cor0
----
-32
-35
7
skipif mysql # not compatible
query I rowsort label-744
SELECT + CAST ( - 89 AS INTEGER ) + col2 AS col0 FROM tab1 AS cor0
----
-32
-35
7
query I rowsort
SELECT - col0 + col2 * - 29 FROM tab1 AS cor0
----
-1569
-1717
-2864
query I rowsort
SELECT + - col0 * + col1 AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT 66 * - col0 AS col2 FROM tab0 AS cor0
----
-1584
-2310
-5874
query I rowsort
SELECT + + col0 * col0 AS col2 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT DISTINCT 42 AS col0 FROM tab0
----
42
onlyif mysql # use DIV operator for integer division
query I rowsort label-750
SELECT DISTINCT col2 * col2 DIV col0 AS col2 FROM tab0
----
0
45
75
skipif mysql # not compatible
query I rowsort label-750
SELECT DISTINCT col2 * col2 / col0 AS col2 FROM tab0
----
0
45
75
query I rowsort
SELECT + 98 AS col0 FROM tab1
----
98
98
98
query I rowsort
SELECT ALL + 47 * col1 FROM tab1
----
1222
470
611
query I rowsort
SELECT + ( + col1 + + col0 ) AS col2 FROM tab0
----
110
132
180
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 * col0 col1 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT + col0 + + ( - col2 * - cor0.col0 + col0 ) AS col0 FROM tab0 cor0
----
105
7476
840
query I rowsort
SELECT + col0 * col1 * + col0 + - col2 FROM tab1 AS cor0
----
180
40903
83104
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 13 * tab0.col2 col1 FROM tab0
----
-1066
-13
-429
query I rowsort
SELECT DISTINCT - 74 + col0 FROM tab2
----
-67
4
5
query I rowsort
SELECT ( - col2 ) * - ( + 57 ) * col1 + 83 + 35 FROM tab0
----
161884
425452
5647
query I rowsort
SELECT DISTINCT - col2 + - col0 * + col1 FROM tab1
----
-1136
-132
-697
query I rowsort
SELECT DISTINCT + 90 * tab0.col0 + 18 AS col2 FROM tab0
----
2178
3168
8028
query I rowsort
SELECT - + cor0.col1 - col0 FROM tab2 AS cor0
----
-137
-38
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-763
SELECT DISTINCT + col1 + col1 DIV ( 31 ) FROM tab1
----
10
13
26
skipif mysql # not compatible
query I rowsort label-763
SELECT DISTINCT + col1 + col1 / ( 31 ) FROM tab1
----
10
13
26
query I rowsort
SELECT col2 * - col1 + - col1 FROM tab0
----
-194
-2924
-7553
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-765
SELECT + col2 * + col0 + CAST( 30 AS SIGNED ) * - col1 FROM tab2
----
-741
2492
258
skipif mysql # not compatible
query I rowsort label-765
SELECT + col2 * + col0 + CAST ( 30 AS INTEGER ) * - col1 FROM tab2
----
-741
2492
258
query I rowsort
SELECT DISTINCT + tab0.col0 FROM tab0, tab2 cor0
----
24
35
89
query I rowsort
SELECT DISTINCT + - col2 * + col0 * + ( + col1 ) AS col2 FROM tab0 AS cor0
----
-3395
-664118
-68112
onlyif mysql # use DIV operator for integer division
query I rowsort label-768
SELECT cor0.col0 DIV + 36 FROM tab1 AS cor0
----
0
1
2
skipif mysql # not compatible
query I rowsort label-768
SELECT cor0.col0 / + 36 FROM tab1 AS cor0
----
0
1
2
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-769
SELECT ALL - + cor0.col1 + CAST( NULL AS SIGNED ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-769
SELECT ALL - + cor0.col1 + CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL 43 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 199105619049271147956de52e7f5ed4
query I rowsort
SELECT DISTINCT - 63 * col0 FROM tab1
----
-189
-4032
-5040
query I rowsort
SELECT + 34 AS col2 FROM tab0
----
34
34
34
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-773
SELECT - tab2.col1 / CAST( NULL AS SIGNED ) AS col0 FROM tab2, tab1 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-773
SELECT - tab2.col1 / CAST ( NULL AS INTEGER ) AS col0 FROM tab2, tab1 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 10 col0 FROM tab2 cor0
----
10
10
10
onlyif mysql # use DIV operator for integer division
query I rowsort label-775
SELECT - col2 DIV - col0 + + 23 AS col1 FROM tab2
----
23
23
26
skipif mysql # not compatible
query I rowsort label-775
SELECT - col2 / - col0 + + 23 AS col1 FROM tab2
----
23
23
26
query I rowsort
SELECT DISTINCT col0 * - col1 + ( col0 + - tab1.col0 ) FROM tab1
----
-1040
-640
-78
query I rowsort
SELECT col1 * + 96 AS col1 FROM tab1 AS cor0
----
1248
2496
960
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab0, tab1 AS cor1, tab2, tab0 AS cor2
----
3645 values hashing to 39615739daa2056ffb6e430a8ff0bfc8
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-779
SELECT ALL col0 * CAST( - 50 AS SIGNED ) AS col0 FROM tab0 cor0
----
-1200
-1750
-4450
skipif mysql # not compatible
query I rowsort label-779
SELECT ALL col0 * CAST ( - 50 AS INTEGER ) AS col0 FROM tab0 cor0
----
-1200
-1750
-4450
onlyif mysql # use DIV operator for integer division
query I rowsort label-780
SELECT DISTINCT - col0 DIV ( - col0 * - col0 ) + 20 AS col0 FROM tab1 AS cor0
----
20
skipif mysql # not compatible
query I rowsort label-780
SELECT DISTINCT - col0 / ( - col0 * - col0 ) + 20 AS col0 FROM tab1 AS cor0
----
20
query I rowsort
SELECT DISTINCT + cor0.col2 * + 20 FROM tab0 AS cor0
----
1640
20
660
query I rowsort
SELECT cor0.col2 + + 70 * col1 FROM tab0 AS cor0
----
6053
6452
6791
query I rowsort
SELECT DISTINCT col2 * 74 AS col2 FROM tab0 AS cor0
----
2442
6068
74
query I rowsort
SELECT ALL - + cor0.col1 * + 84 FROM tab2 AS cor0
----
-1428
-2604
-4956
onlyif mysql # use DIV operator for integer division
query I rowsort label-785
SELECT - ( 99 ) * - col0 + 93 DIV 54 + + col0 col0 FROM tab2 cor0
----
701
7801
7901
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-785
SELECT - ( 99 ) * - col0 + 93 / 54 + + col0 col0 FROM tab2 cor0
----
701
7801
7901
query I rowsort
SELECT - col1 + cor0.col0 * col0 FROM tab2 AS cor0
----
18
6025
6224
query I rowsort
SELECT + - col1 + + 67 - col2 FROM tab1 AS cor0
----
-13
-42
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 81 col1 FROM tab0, tab2 cor0
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267
query I rowsort
SELECT + - cor0.col1 * - 17 + col2 * ( + 57 ) - col0 FROM tab1 AS cor0
----
3355
3517
5613
query I rowsort
SELECT + 52 * - col0 + col2 * col0 AS col2 FROM tab0 AS cor0
----
-1785
-456
2670
query I rowsort
SELECT + + 46 + col2 - cor0.col0 * col0 AS col1 FROM tab2 AS cor0
----
-6012
-6157
24
query I rowsort
SELECT col0 + + cor0.col2 FROM tab2 cor0
----
104
117
34
query I rowsort
SELECT + col0 + cor0.col2 * + col2 AS col2 FROM tab1 AS cor0
----
2919
3313
9296
query I rowsort
SELECT cor0.col1 + - col2 AS col2 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT - col1 * cor0.col0 + cor0.col2 FROM tab2 AS cor0
----
-1305
-190
-4576
query I rowsort
SELECT - cor0.col0 * + col1 + + col0 FROM tab1 AS cor0
----
-576
-75
-960
query I rowsort
SELECT - 24 AS col0 FROM tab2 AS cor0
----
-24
-24
-24
query I rowsort
SELECT col0 * - 66 FROM tab1
----
-198
-4224
-5280
query I rowsort
SELECT col2 * - col2 * + col1 FROM tab2
----
-22599
-24548
-39884
onlyif mysql # use DIV operator for integer division
query I rowsort label-800
SELECT DISTINCT - - col0 DIV + col2 col2 FROM tab1 AS cor0
----
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-800
SELECT DISTINCT - - col0 / + col2 col2 FROM tab1 AS cor0
----
0
1
query I rowsort
SELECT DISTINCT col0 + col2 * + cor0.col2 AS col1 FROM tab1 AS cor0
----
2919
3313
9296
query I rowsort
SELECT ALL + 92 * - cor0.col2 + + col2 FROM tab1 cor0
----
-4914
-5187
-8736
query I rowsort
SELECT ALL + + cor0.col1 * col2 + + 33 * - col1 FROM tab0 AS cor0
----
-3104
0
4459
query I rowsort
SELECT - cor0.col2 + - col0 FROM tab0 AS cor0
----
-171
-36
-57
query I rowsort
SELECT DISTINCT + - 78 * + cor0.col2 + 29 FROM tab1 AS cor0
----
-4183
-4417
-7459
onlyif mysql # use DIV operator for integer division
query I rowsort label-806
SELECT 63 DIV cor0.col0 AS col2 FROM tab0 cor0
----
0
1
2
skipif mysql # not compatible
query I rowsort label-806
SELECT 63 / cor0.col0 AS col2 FROM tab0 cor0
----
0
1
2
query I rowsort
SELECT DISTINCT - + col2 + - col1 FROM tab2 AS cor0
----
-55
-58
-85
query I rowsort
SELECT ALL - - col2 + cor0.col1 * cor0.col1 AS col0 FROM tab0 AS cor0
----
7429
8363
9410
query I rowsort
SELECT - - col1 * col0 + col0 AS col1 FROM tab1 AS cor0
----
1120
704
81
query I rowsort
SELECT ALL + col0 * + col2 + - col2 FROM tab2 AS cor0
----
162
2002
2964
query I rowsort
SELECT DISTINCT + - 78 + + col0 FROM tab0 AS cor0
----
-43
-54
11
query I rowsort
SELECT DISTINCT + ( 4 + + tab2.col0 ) FROM tab2
----
11
82
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-813
SELECT ALL - col1 DIV + col2 FROM tab0
----
-1
-2
-97
skipif mysql # not compatible
query I rowsort label-813
SELECT ALL - col1 / + col2 FROM tab0
----
-1
-2
-97
query I rowsort
SELECT ALL + + col2 + + col0 FROM tab1 cor0
----
121
176
57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 60 + col1 col2 FROM tab1 AS cor0
----
70
73
86
query I rowsort
SELECT DISTINCT - col0 - col0 FROM tab0 AS cor0
----
-178
-48
-70
onlyif mysql # use DIV operator for integer division
query I rowsort label-817
SELECT ALL + 63 DIV - col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-817
SELECT ALL + 63 / - col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT - ( col1 ) + - cor0.col1 * col1 FROM tab1 AS cor0
----
-110
-182
-702
onlyif mysql # use DIV operator for integer division
query I rowsort label-819
SELECT ALL + + col2 * + col2 DIV - col2 FROM tab1 AS cor0
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-819
SELECT ALL + + col2 * + col2 / - col2 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT + - col2 - col2 FROM tab0 AS cor0
----
-164
-2
-66
query I rowsort
SELECT DISTINCT cor0.col0 + - col1 FROM tab1 cor0
----
-23
54
67
query I rowsort
SELECT + cor0.col1 * col2 + 8 * + col2 FROM tab1 AS cor0
----
1026
1836
2016
query I rowsort
SELECT - col0 * + col1 + + col0 AS col1 FROM tab0 AS cor0
----
-2040
-3360
-8010
query I rowsort
SELECT DISTINCT 66 * col0 + ( col0 ) FROM tab2
----
469
5226
5293
query I rowsort
SELECT ALL + 73 + 17 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 96f7a90428db93f472e0d219bab64853
onlyif mysql # use DIV operator for integer division
query I rowsort label-826
SELECT DISTINCT col2 DIV 41 FROM tab1 AS cor0
----
1
2
skipif mysql # not compatible
query I rowsort label-826
SELECT DISTINCT col2 / 41 FROM tab1 AS cor0
----
1
2
query I rowsort
SELECT ALL + + cor0.col2 * col0 + - col1 * + col2 AS col0 FROM tab1 AS cor0
----
-1242
3078
6432
onlyif mysql # use DIV operator for integer division
query I rowsort label-828
SELECT + col2 DIV ( + col2 + col1 ) AS col2 FROM tab0 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-828
SELECT + col2 / ( + col2 + col1 ) AS col2 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT ALL + 59 + + col1 AS col1 FROM tab2
----
118
76
90
onlyif mysql # use DIV operator for integer division
query I rowsort label-830
SELECT ALL - 34 DIV 33 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b
skipif mysql # not compatible
query I rowsort label-830
SELECT ALL - 34 / 33 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b
query I rowsort
SELECT DISTINCT + - 17 FROM tab2 AS cor0
----
-17
query I rowsort
SELECT DISTINCT - - 38 + + col1 FROM tab0 AS cor0
----
124
129
135
query I rowsort
SELECT - 2 + - cor0.col1 FROM tab1 AS cor0
----
-12
-15
-28
skipif mysql # not compatible
query I rowsort
SELECT ALL - + CAST ( col1 AS REAL ) FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT + col2 * - ( - col0 ) AS col0 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT DISTINCT - col0 * + ( + 11 ) * + col2 AS col0 FROM tab1
----
-1782
-40128
-84480
onlyif mysql # use DIV operator for integer division
query I rowsort label-837
SELECT - col2 * col1 - col0 DIV col0 FROM tab0
----
-2839
-7463
-98
skipif mysql # not compatible
query I rowsort label-837
SELECT - col2 * col1 - col0 / col0 FROM tab0
----
-2839
-7463
-98
query I rowsort
SELECT DISTINCT + 93 - - tab2.col2 * + col0 AS col2 FROM tab2
----
2121
282
3095
onlyif mysql # use DIV operator for integer division
query I rowsort label-839
SELECT 83 DIV + col1 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-839
SELECT 83 / + col1 FROM tab0
----
0
0
0
query I rowsort
SELECT + ( 13 ) + - col1 - + 38 AS col2 FROM tab1
----
-35
-38
-51
query I rowsort
SELECT ALL ( 78 ) - col2 FROM tab1
----
-18
21
24
query I rowsort
SELECT ALL 90 - col2 * col0 AS col1 FROM tab1
----
-3558
-72
-7590
query I rowsort
SELECT ( - 84 ) + col1 + + col0 FROM tab2
----
-46
12
53
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-844
SELECT + CAST( + col1 AS SIGNED ) - - col2 FROM tab0
----
119
173
98
skipif mysql # not compatible
query I rowsort label-844
SELECT + CAST ( + col1 AS INTEGER ) - - col2 FROM tab0
----
119
173
98
query I rowsort
SELECT DISTINCT - 9 * - cor0.col1 AS col0 FROM tab1 AS cor0
----
117
234
90
query I rowsort
SELECT - + col0 * col2 - + col0 FROM tab0 AS cor0
----
-70
-7387
-816
onlyif mysql # use DIV operator for integer division
query I rowsort label-847
SELECT col2 DIV 42 FROM tab0 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-847
SELECT col2 / 42 FROM tab0 AS cor0
----
0
0
1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-848
SELECT - - col0 * - CAST( col2 + - col2 AS SIGNED ) 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-848
SELECT - - col0 * - CAST ( col2 + - col2 AS INTEGER ) col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + - cor0.col2 * col1 AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT - col2 * - 3 FROM tab2 AS cor0
----
114
78
81
query I rowsort
SELECT DISTINCT col2 * 85 FROM tab1 AS cor0
----
4590
4845
8160
query I rowsort
SELECT DISTINCT - - col0 * + col1 + col2 * - col0 FROM tab1 AS cor0
----
-3008
-6640
-84
query I rowsort
SELECT 85 * + col0 AS col0 FROM tab1
----
255
5440
6800
onlyif mysql # use DIV operator for integer division
query I rowsort label-854
SELECT - col0 DIV - tab0.col0 + col0 FROM tab0
----
25
36
90
skipif mysql # not compatible
query I rowsort label-854
SELECT - col0 / - tab0.col0 + col0 FROM tab0
----
25
36
90
query I rowsort
SELECT - col0 + - cor0.col2 AS col0 FROM tab2 AS cor0
----
-104
-117
-34
query I rowsort
SELECT col2 * 9 AS col0 FROM tab1 AS cor0
----
486
513
864
query I rowsort
SELECT + - 85 + col1 * + col0 FROM tab0 AS cor0
----
1979
3310
8014
query I rowsort
SELECT 80 * + col0 FROM tab2 AS cor0
----
560
6240
6320
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 AS cor0, tab1 cor1, tab2, tab1 AS cor2
----
3645 values hashing to 731e4a6549b312ba21c2e61ca9bede27
query I rowsort
SELECT - col1 * - col1 + col0 * col2 FROM tab1 AS cor0
----
3748
7849
838
query I rowsort
SELECT + col0 + + 5 FROM tab1
----
69
8
85
query I rowsort
SELECT 43 + + col1 AS col0 FROM tab0 AS cor0
----
129
134
140
query I rowsort
SELECT DISTINCT - 29 * - col0 + col1 * col2 AS col2 FROM tab0
----
10043
1112
3534
query I rowsort
SELECT ALL 68 + - col1 AS col1 FROM tab2
----
37
51
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-865
SELECT ALL col1 DIV + col2 AS col1 FROM tab0
----
1
2
97
skipif mysql # not compatible
query I rowsort label-865
SELECT ALL col1 / + col2 AS col1 FROM tab0
----
1
2
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * col2 + - 37 * - 72 * col2 - + col2 * col0 col0 FROM tab0 AS cor0
----
218612
2726
89958
query I rowsort
SELECT 85 * + col1 + + col2 AS col0 FROM tab2 AS cor0
----
1483
2662
5041
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-868
SELECT ALL col2 * + col1 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-868
SELECT ALL col2 * + col1 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col0 * + col1 - - col0 FROM tab1 AS cor0
----
-576
-75
-960
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-870
SELECT ALL CAST( NULL AS SIGNED ) FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-870
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
onlyif mysql # use DIV operator for integer division
query I rowsort label-871
SELECT ALL + - cor0.col1 DIV - col0 + 24 AS col1 FROM tab2 AS cor0
----
24
24
28
skipif mysql # not compatible
query I rowsort label-871
SELECT ALL + - cor0.col1 / - col0 + 24 AS col1 FROM tab2 AS cor0
----
24
24
28
query I rowsort
SELECT ALL - - cor0.col2 * + col2 + + col0 FROM tab1 AS cor0
----
2919
3313
9296
query I rowsort
SELECT ALL - + col1 * + col2 * col2 FROM tab0 AS cor0
----
-611884
-93654
-97
query I rowsort
SELECT 74 * - cor0.col2 + col2 + - col2 FROM tab2 AS cor0
----
-1924
-1998
-2812
query I rowsort
SELECT + col1 + + col0 * col2 AS col1 FROM tab1
----
188
3658
7693
query I rowsort
SELECT col2 * col0 - - col1 AS col1 FROM tab1
----
188
3658
7693
query I rowsort
SELECT + col1 * + col2 - + col2 AS col1 FROM tab2
----
1508
608
810
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + col1 + + col0 col2 FROM tab1 AS cor0
----
138
173
32
onlyif mysql # use DIV operator for integer division
query I rowsort label-879
SELECT + + col2 + cor0.col0 DIV col2 + + cor0.col2 * col2 AS col0 FROM tab0 AS cor0
----
1122
37
6807
skipif mysql # not compatible
query I rowsort label-879
SELECT + + col2 + cor0.col0 / col2 + + cor0.col2 * col2 AS col0 FROM tab0 AS cor0
----
1122
37
6807
onlyif mysql # use DIV operator for integer division
query I rowsort label-880
SELECT DISTINCT - - col2 + + col0 DIV + col1 AS col0 FROM tab0 AS cor0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-880
SELECT DISTINCT - - col2 + + col0 / + col1 AS col0 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT - 65 * 45 AS col0 FROM tab2
----
-2925
-2925
-2925
query I rowsort
SELECT ALL - + ( cor0.col0 ) * col0 FROM tab0 cor0
----
-1225
-576
-7921
query I rowsort
SELECT DISTINCT 16 * - col1 FROM tab2
----
-272
-496
-944
query I rowsort
SELECT ALL - ( + col0 ) FROM tab0
----
-24
-35
-89
query I rowsort
SELECT 23 + 31 * col1 FROM tab1 AS cor0
----
333
426
829
query I rowsort
SELECT - ( cor0.col1 ) * - col0 FROM tab2 AS cor0
----
1343
217
4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 10 * col2 col1 FROM tab2 AS cor0
----
260
270
380
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + col0 + col0 col2 FROM tab0 AS cor0
----
134
167
269
onlyif mysql # use DIV operator for integer division
query I rowsort label-889
SELECT - col2 * col2 * + col0 + - col0 DIV cor0.col0 + col1 FROM tab0 AS cor0
----
-26051
-598346
61
skipif mysql # not compatible
query I rowsort label-889
SELECT - col2 * col2 * + col0 + - col0 / cor0.col0 + col1 FROM tab0 AS cor0
----
-26051
-598346
61
query I rowsort
SELECT - + ( + col2 ) + cor0.col0 AS col0 FROM tab2 cor0
----
-20
41
52
query I rowsort
SELECT DISTINCT tab1.col2 + col0 AS col2 FROM tab1
----
121
176
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-892
SELECT DISTINCT 68 + - 46 DIV - tab1.col1 + + col0 AS col2 FROM tab1
----
136
151
72
skipif mysql # not compatible
query I rowsort label-892
SELECT DISTINCT 68 + - 46 / - tab1.col1 + + col0 AS col2 FROM tab1
----
136
151
72
query I rowsort
SELECT col0 * col1 * col2 FROM tab0
----
3395
664118
68112
query I rowsort
SELECT - - col2 * col0 + col1 FROM tab1 cor0
----
188
3658
7693
query I rowsort
SELECT DISTINCT col2 * - col0 + col0 AS col1 FROM tab1
----
-159
-3584
-7600
query I rowsort
SELECT ALL + cor0.col2 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
query I rowsort
SELECT col1 + col2 + - col1 AS col0 FROM tab2
----
26
27
38
query I rowsort
SELECT ALL + 65 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805
query I rowsort
SELECT + - ( + 44 ) + col2 FROM tab0 AS cor0
----
-11
-43
38
query I rowsort
SELECT DISTINCT - ( + cor0.col1 ) FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT ALL - ( - cor0.col0 + cor0.col1 ) AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to d924577a04b3a692cbbd2348e6f8e88f
onlyif mysql # use DIV operator for integer division
query I rowsort label-902
SELECT ALL col0 DIV cor0.col1 + col0 FROM tab2 AS cor0
----
7
79
83
skipif mysql # not compatible
query I rowsort label-902
SELECT ALL col0 / cor0.col1 + col0 FROM tab2 AS cor0
----
7
79
83
query I rowsort
SELECT ( + 79 ) AS col1 FROM tab0 cor0
----
79
79
79
query I rowsort
SELECT + - ( 70 ) + - col0 FROM tab1 AS cor0
----
-134
-150
-73
query I rowsort
SELECT ALL + - ( - 1 ) * col1 * col0 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT cor0.col0 + 69 * col2 AS col0 FROM tab2 AS cor0
----
1870
1872
2701
query I rowsort
SELECT DISTINCT - ( 34 ) + + col1 AS col0 FROM tab1 AS cor0
----
-21
-24
-8
query I rowsort
SELECT ALL + - col1 * - 54 + + col1 FROM tab1 AS cor0
----
1430
550
715
query I rowsort
SELECT + tab0.col0 * col2 AS col1 FROM tab0
----
35
7298
792
query I rowsort
SELECT DISTINCT + 43 + - col0 + - col2 AS col1 FROM tab0
----
-128
-14
7
query I rowsort
SELECT + 89 * - 77 + - col1 * - tab2.col1 FROM tab2
----
-3372
-5892
-6564
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col1 col1 FROM tab1
----
-100
-169
-676
query I rowsort
SELECT DISTINCT + 7 * - 5 * col1 + col1 + 71 AS col2 FROM tab2
----
-1935
-507
-983
query I rowsort
SELECT col1 - - 85 AS col2 FROM tab0
----
171
176
182
query I rowsort
SELECT + 92 + - 62 FROM tab2
----
30
30
30
query I rowsort
SELECT ALL col0 * 69 * - col1 FROM tab2
----
-14973
-317538
-92667
query I rowsort
SELECT DISTINCT ( 38 ) AS col1 FROM tab0
----
38
query I rowsort
SELECT - col0 * - ( col0 * col0 ) FROM tab2
----
343
474552
493039
query I rowsort
SELECT DISTINCT ( - col0 ) + - col2 FROM tab1
----
-121
-176
-57
onlyif mysql # use DIV operator for integer division
query I rowsort label-920
SELECT DISTINCT col2 DIV 90 + col0 FROM tab0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-920
SELECT DISTINCT col2 / 90 + col0 FROM tab0
----
24
35
89
query I rowsort
SELECT 63 + 57 * - col0 AS col2 FROM tab1
----
-108
-3585
-4497
query I rowsort
SELECT ALL - 80 AS col2 FROM tab0
----
-80
-80
-80
onlyif mysql # use DIV operator for integer division
query I rowsort label-923
SELECT ALL + col1 + ( col1 ) DIV cor0.col2 FROM tab0 AS cor0
----
194
88
92
skipif mysql # not compatible
query I rowsort label-923
SELECT ALL + col1 + ( col1 ) / cor0.col2 FROM tab0 AS cor0
----
194
88
92
query I rowsort
SELECT cor0.col0 - + ( + 62 ) * + col0 AS col1 FROM tab1 AS cor0
----
-183
-3904
-4880
query I rowsort
SELECT DISTINCT + col0 + - 18 FROM tab1 AS cor0
----
-15
46
62
query I rowsort
SELECT DISTINCT cor0.col1 + - col1 * - col1 FROM tab1 cor0
----
110
182
702
query I rowsort
SELECT - - col1 * col1 + + 51 * + col2 FROM tab0 AS cor0
----
12463
9079
9460
query I rowsort
SELECT ALL 93 * - col0 AS col1 FROM tab1
----
-279
-5952
-7440
query I rowsort
SELECT DISTINCT tab0.col1 * + tab0.col2 * tab0.col0 AS col0 FROM tab0
----
3395
664118
68112
query I rowsort
SELECT ALL + col1 * + col2 AS col0 FROM tab2
----
1534
646
837
query I rowsort
SELECT - + col0 * cor0.col2 + - col2 * + col2 FROM tab1 AS cor0
----
-16896
-3078
-6897
query I rowsort
SELECT DISTINCT col2 - 9 * col2 * col2 FROM tab1
----
-26190
-29184
-82848
onlyif mysql # use DIV operator for integer division
query I rowsort label-933
SELECT ALL - col2 DIV + ( col0 * + col2 ) + col1 FROM tab1
----
10
13
26
skipif mysql # not compatible
query I rowsort label-933
SELECT ALL - col2 / + ( col0 * + col2 ) + col1 FROM tab1
----
10
13
26
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-934
SELECT + col1 * + CAST( NULL AS SIGNED ) + - cor0.col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-934
SELECT + col1 * + CAST ( NULL AS INTEGER ) + - cor0.col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + col0 * + cor0.col0 AS col2 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT - + col0 - - col2 AS col0 FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT + - col0 * ( - col2 ) * - col0 + col0 FROM tab2 AS cor0
----
-1316
-158106
-237079
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 59 col1 FROM tab0, tab0 AS cor0
----
59
query I rowsort
SELECT ALL + col1 + tab1.col0 FROM tab1
----
29
74
93
query I rowsort
SELECT ALL col0 * + tab0.col2 + + col1 * col1 FROM tab0
----
15579
8188
9444
query I rowsort
SELECT DISTINCT col2 + 28 FROM tab1
----
124
82
85
query I rowsort
SELECT - col1 * 79 FROM tab2
----
-1343
-2449
-4661
query I rowsort
SELECT ALL - col2 * col1 - + col1 AS col1 FROM tab1
----
-1261
-1430
-580
query I rowsort
SELECT DISTINCT col0 * col0 - col1 FROM tab0
----
1128
490
7830
query I rowsort
SELECT cor0.col1 * - col2 AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT col0 + col2 * + col0 * - col2 AS col1 FROM tab0 AS cor0
----
-26112
-598347
0
query I rowsort
SELECT DISTINCT + + cor0.col2 * - col2 + 27 AS col2 FROM tab1 AS cor0
----
-2889
-3222
-9189
query I rowsort
SELECT DISTINCT - col1 * - 4 AS col0 FROM tab0 AS cor0
----
344
364
388
query I rowsort
SELECT + 12 * col2 + col1 * - col0 AS col0 FROM tab0 AS cor0
----
-1668
-3383
-7115
query I rowsort
SELECT DISTINCT + + 43 + col1 * + col1 AS col1 FROM tab2 AS cor0
----
1004
332
3524
query I rowsort
SELECT DISTINCT 76 + cor0.col2 FROM tab1 AS cor0
----
130
133
172
query I rowsort
SELECT ALL - 88 - - col1 * - col1 FROM tab0 AS cor0
----
-7484
-8369
-9497
query I rowsort
SELECT ( col0 ) + - cor0.col0 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT ALL cor0.col2 * + 78 FROM tab0 cor0
----
2574
6396
78
query I rowsort
SELECT - col2 + + ( col1 ) * col0 FROM tab0 AS cor0
----
2031
3394
8017
query I rowsort
SELECT DISTINCT - + cor0.col2 + ( - col0 ) FROM tab1 AS cor0
----
-121
-176
-57
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-957
SELECT ALL + col2 * ( - col1 ) * CAST( - col1 AS SIGNED ) - + col1 FROM tab1 AS cor0
----
16211
36478
5690
skipif mysql # not compatible
query I rowsort label-957
SELECT ALL + col2 * ( - col1 ) * CAST ( - col1 AS INTEGER ) - + col1 FROM tab1 AS cor0
----
16211
36478
5690
query I rowsort
SELECT ALL + + col0 * col0 * col0 FROM tab1 AS cor0
----
262144
27
512000
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-959
SELECT DISTINCT CAST( - 27 AS SIGNED ) + col2 + 62 * + col1 AS col0 FROM tab2 AS cor0
----
1065
1922
3657
skipif mysql # not compatible
query I rowsort label-959
SELECT DISTINCT CAST ( - 27 AS INTEGER ) + col2 + 62 * + col1 AS col0 FROM tab2 AS cor0
----
1065
1922
3657
query I rowsort
SELECT + 41 - col2 AS col0 FROM tab0 AS cor0
----
-41
40
8
query I rowsort
SELECT ( - col2 ) * + col0 AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT DISTINCT + col0 * col1 - - col2 * - 43 FROM tab0 AS cor0
----
3352
4573
645
query I rowsort
SELECT - 46 * - 91 + + col2 FROM tab1 AS cor0
----
4240
4243
4282
query I rowsort
SELECT ALL + 82 * - col2 FROM tab0 AS cor0
----
-2706
-6724
-82
query I rowsort
SELECT - - 82 + col2 * col1 FROM tab0 AS cor0
----
179
2920
7544
query I rowsort
SELECT - cor0.col0 + + 87 FROM tab0 AS cor0
----
-2
52
63
query I rowsort
SELECT ALL + col1 - + 78 * col1 FROM tab1
----
-1001
-2002
-770
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 1 col1 FROM tab0 AS cor0
----
1
1
1
query I rowsort
SELECT + 88 * + col1 * - cor0.col0 AS col1 FROM tab1 AS cor0
----
-56320
-6864
-91520
query I rowsort
SELECT DISTINCT - + ( + col2 ) AS col1 FROM tab0 cor0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort
SELECT ALL - CAST ( - col1 AS REAL ) + col2 * col0 FROM tab1 AS cor0
----
188
3658
7693
query I rowsort
SELECT DISTINCT col2 * + cor0.col2 AS col2 FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT + col1 + 24 * - col0 AS col0 FROM tab0 AS cor0
----
-2045
-490
-743
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-974
SELECT ALL - CAST( col1 AS SIGNED ) + col0 col0 FROM tab1 AS cor0
----
-23
54
67
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-974
SELECT ALL - CAST ( col1 AS INTEGER ) + col0 col0 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT DISTINCT - ( + col1 ) * + col0 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT col1 * + cor0.col1 AS col0 FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT + cor0.col2 + - col0 * col1 AS col1 FROM tab2 cor0
----
-1305
-190
-4576
query I rowsort
SELECT DISTINCT - 66 AS col2 FROM tab2 AS cor0
----
-66
query I rowsort
SELECT - + 94 * - col0 AS col2 FROM tab0 AS cor0
----
2256
3290
8366
query I rowsort
SELECT col0 + col1 * col0 FROM tab0
----
2088
3430
8188
query I rowsort
SELECT DISTINCT 0 * col0 FROM tab2
----
0
query I rowsort
SELECT DISTINCT - tab0.col0 + tab0.col0 AS col2 FROM tab0, tab0 AS cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-983
SELECT DISTINCT col0 + - col2 * + col0 + - cor0.col2 DIV + col0 AS col2 FROM tab0 AS cor0
----
-7209
-769
0
skipif mysql # not compatible
query I rowsort label-983
SELECT DISTINCT col0 + - col2 * + col0 + - cor0.col2 / + col0 AS col2 FROM tab0 AS cor0
----
-7209
-769
0
query I rowsort
SELECT - + col1 + col1 AS col1 FROM tab1 cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-985
SELECT ALL - 15 DIV col2 - - col0 * - cor0.col0 FROM tab0 AS cor0
----
-1240
-576
-7921
skipif mysql # not compatible
query I rowsort label-985
SELECT ALL - 15 / col2 - - col0 * - cor0.col0 FROM tab0 AS cor0
----
-1240
-576
-7921
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-986
SELECT - col0 + - col1 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-986
SELECT - col0 + - col1 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( cor0.col1 ) col0 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT DISTINCT col2 + - col0 FROM tab0 AS cor0
----
-34
-7
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - col0 col2 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT DISTINCT + + 94 AS col0 FROM tab2 AS cor0
----
94
query I rowsort
SELECT ALL + + col1 + + col1 AS col1 FROM tab2 AS cor0
----
118
34
62
query I rowsort
SELECT ALL + - cor0.col2 * 33 AS col2 FROM tab0 cor0
----
-1089
-2706
-33
query I rowsort
SELECT + - col2 * + col2 FROM tab1 AS cor0
----
-2916
-3249
-9216
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-994
SELECT DISTINCT - + col2 * CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-994
SELECT DISTINCT - + col2 * CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
query I rowsort
SELECT + ( col0 ) * + col1 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT DISTINCT + ( + col0 ) + - col0 FROM tab1 AS cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-997
SELECT ( col2 ) * col0 DIV cor0.col1 col1 FROM tab1 AS cor0
----
364
590
6
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-997
SELECT ( col2 ) * col0 / cor0.col1 col1 FROM tab1 AS cor0
----
364
590
6
query I rowsort
SELECT ALL + + cor0.col2 + col2 * + ( - col0 ) FROM tab0 cor0
----
-34
-7216
-759
onlyif mysql # use DIV operator for integer division
query I rowsort label-999
SELECT DISTINCT + + ( + col0 ) DIV 84 + - col0 FROM tab1 AS cor0
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-999
SELECT DISTINCT + + ( + col0 ) / 84 + - col0 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT - col1 + col0 * - cor0.col2 FROM tab0 AS cor0
----
-132
-7389
-878
query I rowsort
SELECT DISTINCT - + col0 * - col1 + ( col2 ) AS col2 FROM tab2 AS cor0
----
1381
244
4628
query I rowsort
SELECT col1 * col2 + col2 FROM tab2 AS cor0
----
1560
684
864
query I rowsort
SELECT ( - col1 ) + + col2 AS col2 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT ALL cor0.col1 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
onlyif mysql # use DIV operator for integer division
query I rowsort label-1005
SELECT col1 * - col0 + - 92 DIV col2 FROM tab0 AS cor0
----
-2066
-3487
-8100
skipif mysql # not compatible
query I rowsort label-1005
SELECT col1 * - col0 + - 92 / col2 FROM tab0 AS cor0
----
-2066
-3487
-8100
query I rowsort
SELECT + col1 * 44 AS col1 FROM tab0 AS cor0
----
3784
4004
4268
query I rowsort
SELECT DISTINCT + col0 * + col1 * col1 AS col1 FROM tab0
----
177504
329315
737009
query I rowsort
SELECT + 34 + - col2 * col2 AS col1 FROM tab1 AS cor0
----
-2882
-3215
-9182
query I rowsort
SELECT ( col2 ) + col1 * 94 FROM tab2 cor0
----
1636
2941
5572
query I rowsort
SELECT DISTINCT 49 * col1 FROM tab1 cor0
----
1274
490
637
query I rowsort
SELECT - col0 + col0 + + 32 * + col2 AS col2 FROM tab1
----
1728
1824
3072
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1012
SELECT - col0 * - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1012
SELECT - col0 * - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - 75 * - tab2.col1 FROM tab2, tab2 AS cor0
----
1275
2325
4425
query I rowsort
SELECT ALL + col1 - tab0.col1 FROM tab0
----
0
0
0
query I rowsort
SELECT cor0.col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc
query I rowsort
SELECT + ( - col2 ) + - col0 AS col1 FROM tab0 AS cor0
----
-171
-36
-57
onlyif mysql # use DIV operator for integer division
query I rowsort label-1017
SELECT tab1.col1 DIV col2 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1017
SELECT tab1.col1 / col2 FROM tab1
----
0
0
0
query I rowsort
SELECT col0 * 31 + col0 FROM tab2
----
224
2496
2528
query I rowsort
SELECT 85 + col1 AS col1 FROM tab2
----
102
116
144
onlyif mysql # use DIV operator for integer division
query I rowsort label-1020
SELECT - - 28 * col0 + - cor0.col0 DIV - 95 FROM tab1 AS cor0
----
1792
2240
84
skipif mysql # not compatible
query I rowsort label-1020
SELECT - - 28 * col0 + - cor0.col0 / - 95 FROM tab1 AS cor0
----
1792
2240
84
query I rowsort
SELECT ( 70 + col0 ) FROM tab2
----
148
149
77
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1022
SELECT - tab2.col1 * col1 + col1 / CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1022
SELECT - tab2.col1 * col1 + col1 / CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + ( cor0.col0 ) * - col2 FROM tab0 AS cor0
----
-35
-7298
-792
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1024
SELECT ALL - CAST( + col2 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-26
-27
-38
skipif mysql # not compatible
query I rowsort label-1024
SELECT ALL - CAST ( + col2 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT DISTINCT - tab0.col0 FROM tab0, tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT 14 + col1 * - col1 FROM tab2 AS cor0
----
-275
-3467
-947
onlyif mysql # use DIV operator for integer division
query I rowsort label-1027
SELECT col1 * - col1 * - col2 + - col0 DIV cor0.col0 FROM tab1 AS cor0
----
16223
36503
5699
skipif mysql # not compatible
query I rowsort label-1027
SELECT col1 * - col1 * - col2 + - col0 / cor0.col0 FROM tab1 AS cor0
----
16223
36503
5699
query I rowsort
SELECT - 52 + + col1 * - col2 AS col0 FROM tab2 cor0
----
-1586
-698
-889
onlyif mysql # use DIV operator for integer division
query I rowsort label-1029
SELECT col2 DIV - 84 FROM tab1
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-1029
SELECT col2 / - 84 FROM tab1
----
-1
0
0
query I rowsort
SELECT ALL + 74 + col2 AS col1 FROM tab0
----
107
156
75
query I rowsort
SELECT DISTINCT 8 FROM tab2
----
8
query I rowsort
SELECT + cor0.col1 + - col2 FROM tab1 AS cor0
----
-28
-47
-83
query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2, tab1 AS cor0, tab0 AS cor1
----
972 values hashing to 67c5300bc5cba0be4f54a444dc6f05b9
query I rowsort
SELECT col2 + - tab1.col2 * + col1 + + col1 AS col2 FROM tab1
----
-1139
-1324
-503
query I rowsort
SELECT DISTINCT 80 - - col1 FROM tab2
----
111
139
97
query I rowsort
SELECT ALL 24 - + col0 FROM tab2
----
-54
-55
17
query I rowsort
SELECT - + 48 AS col0 FROM tab1 AS cor0
----
-48
-48
-48
query I rowsort
SELECT DISTINCT col1 * + col2 FROM tab0
----
2838
7462
97
query I rowsort
SELECT + col1 + + cor0.col0 * + col0 FROM tab0 AS cor0
----
1322
662
8012
query I rowsort
SELECT + + col1 * + col2 FROM tab2 cor0
----
1534
646
837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 87 col0 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 8661ffbd1a72897c495405c53b816e50
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab2 AS cor0, tab0 AS cor1, tab2 cor2
----
972 values hashing to e486ce227b61d9db6f8414f9d6361094
query I rowsort
SELECT DISTINCT col1 + - col1 * cor0.col0 FROM tab2 AS cor0
----
-1326
-186
-4543
query I rowsort
SELECT ALL - + col2 * cor0.col2 + - col0 + + cor0.col1 AS col1 FROM tab0 AS cor0
----
-1027
-6722
61
onlyif mysql # use DIV operator for integer division
query I rowsort label-1045
SELECT + + col2 DIV 99 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1045
SELECT + + col2 / 99 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - col1 * col2 * 2 FROM tab1
----
-1140
-2496
-2808
onlyif mysql # use DIV operator for integer division
query I rowsort label-1047
SELECT - + col0 * col1 DIV cor0.col0 FROM tab2 cor0
----
-17
-31
-59
skipif mysql # not compatible
query I rowsort label-1047
SELECT - + col0 * col1 / cor0.col0 FROM tab2 cor0
----
-17
-31
-59
query I rowsort
SELECT DISTINCT + col1 * + ( col2 ) AS col1 FROM tab0 cor0
----
2838
7462
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1049
SELECT CAST( NULL AS SIGNED ) * 95 + col2 * - 96 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1049
SELECT CAST ( NULL AS INTEGER ) * 95 + col2 * - 96 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + ( col1 ) + col1 * ( + col1 ) FROM tab0 AS cor0
----
7482
8372
9506
query I rowsort
SELECT DISTINCT ( + col2 ) * col0 + + col1 AS col2 FROM tab1 AS cor0
----
188
3658
7693
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 31 - - ( col2 ) * + 97 col1 FROM tab1 AS cor0
----
5269
5560
9343
query I rowsort
SELECT - 45 AS col2 FROM tab0 AS cor0
----
-45
-45
-45
query I rowsort
SELECT - ( cor0.col1 ) * col1 * col2 FROM tab0 AS cor0
----
-244068
-679042
-9409
query I rowsort
SELECT - - cor0.col0 * + 92 FROM tab1 cor0
----
276
5888
7360
query I rowsort
SELECT ALL tab1.col1 * - col2 AS col2 FROM tab1
----
-1248
-1404
-570
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL <> NULL
----
query I rowsort
SELECT ALL - col0 + col0 + - col0 * col2 AS col2 FROM tab2 AS cor0
----
-189
-2028
-3002
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col0 * col2 + - col2 * - col1 BETWEEN NULL AND ( NULL )
----
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( col2 * col0 ) IN ( col0 * col2 + + col1 )
----
query I rowsort
SELECT DISTINCT col2 * + cor0.col0 FROM tab1 cor0
----
162
3648
7680
query I rowsort
SELECT ALL + col0 + + col2 / + col0 FROM tab2 cor0 WHERE NOT ( NULL ) IN ( col0 * col0 + + col0 )
----
query I rowsort
SELECT DISTINCT - col1 + tab0.col1 AS col1 FROM tab0
----
0
query I rowsort
SELECT col1 * + tab0.col2 + - col2 FROM tab0
----
2805
7380
96
query I rowsort
SELECT - col1 AS col2 FROM tab1 WHERE NOT col2 * col0 <> NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab1.col2 + - col0 * col0 col2 FROM tab1
----
-4039
-6304
45
query I rowsort
SELECT - col0 + col0 + col1 * col0 AS col2 FROM tab1
----
1040
640
78
query I rowsort
SELECT col2 + - col1 * - col0 * col1 - + col2 FROM tab0
----
177504
329315
737009
query I rowsort
SELECT DISTINCT + col2 + col1 + tab2.col0 AS col2 FROM tab2
----
134
163
65
onlyif mysql # use DIV operator for integer division
query I rowsort label-1070
SELECT DISTINCT col0 + tab1.col1 + + col1 DIV - tab1.col0 FROM tab1
----
21
74
93
skipif mysql # not compatible
query I rowsort label-1070
SELECT DISTINCT col0 + tab1.col1 + + col1 / - tab1.col0 FROM tab1
----
21
74
93
query I rowsort
SELECT ALL col1 * tab1.col0 + - col0 + col2 AS col2 FROM tab1
----
1056
129
633
query I rowsort
SELECT + col0 + col1 + col1 * - col0 FROM tab2
----
-1247
-179
-4465
query I rowsort
SELECT col1 / + col1 FROM tab1 WHERE ( NULL ) IN ( col1 )
----
query I rowsort
SELECT col2 * col1 + + col0 AS col1 FROM tab1
----
1328
1407
634
query I rowsort
SELECT DISTINCT col1 * col1 + + col0 AS col2 FROM tab1
----
164
249
679
query I rowsort
SELECT col0 - + tab1.col1 * col2 AS col2 FROM tab1
----
-1168
-1401
-506
query I rowsort
SELECT - col0 AS col2 FROM tab0 WHERE col2 / col0 = NULL
----
query I rowsort
SELECT - tab1.col0 * - col0 AS col2 FROM tab1
----
4096
6400
9
query I rowsort
SELECT col0 + tab0.col0 * - col2 AS col1 FROM tab0
----
-7209
-768
0
query I rowsort
SELECT ALL col1 * + tab0.col2 + + col0 + + col1 AS col0 FROM tab0
----
229
2948
7642
query I rowsort
SELECT ALL col2 + col0 - tab1.col0 * - col1 FROM tab1
----
1216
135
761
query I rowsort
SELECT ALL - + col1 * cor0.col2 * + col2 + col0 FROM tab2 AS cor0
----
-22592
-24469
-39806
query I rowsort
SELECT DISTINCT + col0 + + col2 * col0 FROM tab1 AS cor0
----
165
3712
7760
query I rowsort
SELECT ALL + cor0.col1 + + cor0.col2 * col2 FROM tab1 cor0
----
2942
3259
9229
onlyif mysql # use DIV operator for integer division
query I rowsort label-1085
SELECT ALL col0 + col1 DIV col1 AS col0 FROM tab0 cor0
----
25
36
90
skipif mysql # not compatible
query I rowsort label-1085
SELECT ALL col0 + col1 / col1 AS col0 FROM tab0 cor0
----
25
36
90
query I rowsort
SELECT DISTINCT cor0.col0 * + col0 - col0 AS col0 FROM tab2 AS cor0
----
42
6006
6162
onlyif mysql # use DIV operator for integer division
query I rowsort label-1087
SELECT - col1 DIV col1 AS col0 FROM tab2 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-1087
SELECT - col1 / col1 AS col0 FROM tab2 AS cor0
----
-1
-1
-1
query III rowsort
SELECT * FROM tab2 WHERE + col0 * col2 * col0 + col2 * + tab2.col1 IN ( - col2 - col0 )
----
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col0 IN ( tab0.col2 )
----
query I rowsort
SELECT ALL col0 * col0 * - col1 FROM tab2
----
-106097
-1519
-358956
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col0 * - col2 < col1
----
query I rowsort
SELECT ALL + col2 * - col2 * col0 AS col1 FROM tab1
----
-207936
-737280
-8748
query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col0 * - col1 + col2 * + col2 BETWEEN NULL AND ( - col1 * col2 + - col0 )
----
7
31
27
79
17
38
query I rowsort
SELECT col0 + col1 * + col2 * - col0 AS col2 FROM tab2
----
-119574
-50955
-5852
query I rowsort
SELECT ( col1 ) - + ( 87 ) FROM tab0
----
-1
10
4
query I rowsort
SELECT DISTINCT + col2 + 78 AS col0 FROM tab2 AS cor0
----
104
105
116
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1097
SELECT ALL + col2 * + CAST( col0 AS SIGNED ) col2 FROM tab0 AS cor0
----
35
7298
792
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1097
SELECT ALL + col2 * + CAST ( col0 AS INTEGER ) col2 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT DISTINCT - col0 + - 39 AS col0 FROM tab0 AS cor0
----
-128
-63
-74
query I rowsort
SELECT ALL col0 * + tab1.col1 FROM tab1
----
1040
640
78
query I rowsort
SELECT ALL - ( + cor0.col0 * cor1.col0 ) AS col0 FROM tab2, tab1 cor0, tab1 AS cor1
----
27 values hashing to c86a7c2445d7410c559267e98ed0c591
query I rowsort
SELECT + col0 * col2 + + col2 AS col2 FROM tab1
----
216
3705
7776
query I rowsort
SELECT ALL + col0 * + col1 + + col0 * + col2 FROM tab0 AS cor0
----
15397
2856
3430
onlyif mysql # use DIV operator for integer division
query I rowsort label-1103
SELECT col1 DIV + 4 AS col1 FROM tab2
----
14
4
7
skipif mysql # not compatible
query I rowsort label-1103
SELECT col1 / + 4 AS col1 FROM tab2
----
14
4
7
query I rowsort
SELECT DISTINCT + - col2 * 79 AS col2 FROM tab2 cor0
----
-2054
-2133
-3002
query I rowsort
SELECT - col0 + - col1 * - cor0.col1 AS col1 FROM tab1 AS cor0
----
36
673
89
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1106
SELECT DISTINCT - col1 + - CAST( NULL AS SIGNED ) col1 FROM tab0 cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1106
SELECT DISTINCT - col1 + - CAST ( NULL AS INTEGER ) col1 FROM tab0 cor0
----
NULL
query I rowsort
SELECT - - cor0.col2 * 82 FROM tab0 AS cor0
----
2706
6724
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + cor0.col1 col1 FROM tab1 cor0
----
10
13
26
onlyif mysql # use DIV operator for integer division
query I rowsort label-1109
SELECT DISTINCT - col2 DIV ( + col1 ) + + col2 * - 91 + - col0 FROM tab1 AS cor0
----
-4919
-5256
-8823
skipif mysql # not compatible
query I rowsort label-1109
SELECT DISTINCT - col2 / ( + col1 ) + + col2 * - 91 + - col0 FROM tab1 AS cor0
----
-4919
-5256
-8823
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + col2 col0 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT DISTINCT col2 + + col0 * col1 - - col2 * col0 * + col1 FROM tab2 AS cor0
----
124280
52415
6103
query I rowsort
SELECT - - cor0.col0 * + 64 AS col1 FROM tab1 cor0
----
192
4096
5120
query I rowsort
SELECT DISTINCT + col0 * ( col1 ) + + col1 + ( - cor0.col0 ) FROM tab0 cor0
----
2126
3457
8101
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col1 * col0 col0 FROM tab0 AS cor0
----
-3395
-664118
-68112
query I rowsort
SELECT ALL + col2 - col2 * col0 FROM tab1 AS cor0
----
-108
-3591
-7584
query I rowsort
SELECT col0 + col0 + - col1 * - col1 AS col0 FROM tab2
----
3637
447
975
query III rowsort
SELECT * FROM tab1 WHERE col2 + + col1 = ( - col2 )
----
query I rowsort
SELECT + col2 * - col0 + + col0 AS col2 FROM tab1
----
-159
-3584
-7600
query I rowsort
SELECT ALL - tab1.col0 * - col2 FROM tab1
----
162
3648
7680
query I rowsort
SELECT ALL + col2 + + tab2.col0 FROM tab2
----
104
117
34
query I rowsort
SELECT DISTINCT - col1 * - tab1.col0 * col0 AS col1 FROM tab1
----
234
40960
83200
query I rowsort
SELECT ALL col1 * tab2.col1 AS col0 FROM tab2
----
289
3481
961
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col2 col1 FROM tab2
----
-1444
-676
-729
query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN - col1 + - col1 * - col2 AND NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-1125
SELECT ALL - col0 DIV + col2 + col2 * col2 FROM tab0
----
-34
1089
6723
skipif mysql # not compatible
query I rowsort label-1125
SELECT ALL - col0 / + col2 + col2 * col2 FROM tab0
----
-34
1089
6723
query I rowsort
SELECT tab0.col2 + col2 AS col1 FROM tab0
----
164
2
66
query I rowsort
SELECT ALL - col0 * - col0 * - col1 AS col2 FROM tab0
----
-118825
-49536
-720811
query I rowsort
SELECT + col2 * col2 + col0 FROM tab0
----
1113
36
6813
query I rowsort
SELECT DISTINCT + col1 + tab2.col2 FROM tab2
----
55
58
85
query I rowsort
SELECT + 30 AS col0 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 6c98840ed134c765d56389f4150075f0
query I rowsort
SELECT DISTINCT + ( - col2 ) * col1 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT + - col2 + col2 * + 60 AS col1 FROM tab0 AS cor0
----
1947
4838
59
query I rowsort
SELECT ALL - - col1 + + col0 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT DISTINCT - + cor0.col1 + - col2 * - 2 FROM tab2 AS cor0
----
-7
23
59
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1135
SELECT DISTINCT 94 + col0 * - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1135
SELECT DISTINCT 94 + col0 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT - 74 + col0 * col0 AS col2 FROM tab0 AS cor0
----
1151
502
7847
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1137
SELECT ALL + + col0 * col0 - CAST( NULL AS SIGNED ) * 77 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1137
SELECT ALL + + col0 * col0 - CAST ( NULL AS INTEGER ) * 77 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - + 28 * + col1 AS col0 FROM tab0 AS cor0
----
-2408
-2548
-2716
query I rowsort
SELECT + col2 FROM tab0 WHERE NOT NULL < - col0 + col2
----
query I rowsort
SELECT - col2 * - col1 + + col2 FROM tab1
----
1344
1458
627
query I rowsort
SELECT col1 - - col1 * col0 AS col2 FROM tab2
----
1360
248
4661
query I rowsort
SELECT DISTINCT - col0 - + col0 AS col0 FROM tab0
----
-178
-48
-70
query I rowsort
SELECT ALL - col0 * col0 * tab2.col2 FROM tab2
----
-1323
-158184
-237158
query I rowsort
SELECT - col1 * col0 * + cor0.col1 FROM tab2 AS cor0
----
-22831
-271518
-6727
query I rowsort
SELECT DISTINCT + - ( + col2 ) * + cor0.col0 FROM tab2 AS cor0
----
-189
-2028
-3002
query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab1 AS cor0, tab0 AS cor1, tab1 cor2
----
972 values hashing to 7942394eb7766dfb9ea95b7805ff595d
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab1 AS cor0, tab1 cor1, tab0, tab1 AS cor2
----
3645 values hashing to 9a402ad2669465fb284445c499a48f2c
query I rowsort
SELECT + col0 + - ( - col1 + - col2 ) FROM tab1
----
131
189
83
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1149
SELECT DISTINCT col1 * CAST( NULL AS SIGNED ) + col0 * col0 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-1149
SELECT DISTINCT col1 * CAST ( NULL AS INTEGER ) + col0 * col0 FROM tab2
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1150
SELECT col2 * - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1150
SELECT col2 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-1151
SELECT DISTINCT col0 DIV - tab1.col0 + tab1.col0 AS col1 FROM tab1
----
2
63
79
skipif mysql # not compatible
query I rowsort label-1151
SELECT DISTINCT col0 / - tab1.col0 + tab1.col0 AS col1 FROM tab1
----
2
63
79
query I rowsort
SELECT ALL + tab1.col0 * - col0 + col0 AS col0 FROM tab1
----
-4032
-6
-6320
query I rowsort
SELECT - 76 FROM tab2, tab0 AS cor0
----
9 values hashing to f8b6589bc7503fc720ca5430e3569317
query I rowsort
SELECT ALL - tab0.col1 * + col0 FROM tab0
----
-2064
-3395
-8099
query I rowsort
SELECT - 67 FROM tab0, tab2 cor0
----
9 values hashing to fbe03b15d6b951410b38f7e98895006f
query I rowsort
SELECT ALL cor0.col2 + + col2 * + col2 AS col0 FROM tab2 AS cor0
----
1482
702
756
query I rowsort
SELECT - + 40 + - 39 FROM tab1 AS cor0
----
-79
-79
-79
query I rowsort
SELECT col1 + + col1 AS col1 FROM tab0 AS cor0
----
172
182
194
query I rowsort
SELECT - - cor0.col2 + - col1 * cor0.col1 FROM tab1 AS cor0
----
-43
-622
-73
onlyif mysql # use DIV operator for integer division
query I rowsort label-1160
SELECT + col0 + col2 DIV - col2 AS col2 FROM tab1 AS cor0
----
2
63
79
skipif mysql # not compatible
query I rowsort label-1160
SELECT + col0 + col2 / - col2 AS col2 FROM tab1 AS cor0
----
2
63
79
query I rowsort
SELECT + 77 FROM tab1 AS cor0
----
77
77
77
query I rowsort
SELECT + + 46 * - col0 AS col0 FROM tab0 AS cor0
----
-1104
-1610
-4094
onlyif mysql # use DIV operator for integer division
query I rowsort label-1163
SELECT DISTINCT - cor0.col0 DIV col0 AS col2 FROM tab2 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-1163
SELECT DISTINCT - cor0.col0 / col0 AS col2 FROM tab2 AS cor0
----
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + col2 col1 FROM tab1 AS cor0
----
109
67
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 61 col0 FROM tab1 AS cor0
----
61
61
61
query I rowsort
SELECT + + col0 * + cor0.col0 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT - 41 * col1 FROM tab1 AS cor0
----
-1066
-410
-533
query I rowsort
SELECT + col1 + col2 * cor0.col0 AS col2 FROM tab0 AS cor0
----
132
7389
878
query I rowsort
SELECT ALL + 39 AS col1 FROM tab1 AS cor0
----
39
39
39
query I rowsort
SELECT DISTINCT cor0.col2 * + col2 FROM tab2 cor0
----
1444
676
729
query I rowsort
SELECT ALL + col1 * + col0 * - col2 AS col1 FROM tab0 AS cor0
----
-3395
-664118
-68112
query I rowsort
SELECT ALL + col0 * + cor0.col1 + - col0 AS col1 FROM tab2 AS cor0
----
1264
210
4524
onlyif mysql # use DIV operator for integer division
query I rowsort label-1173
SELECT - cor0.col2 DIV 40 - + cor0.col2 AS col0 FROM tab1 cor0
----
-55
-58
-98
skipif mysql # not compatible
query I rowsort label-1173
SELECT - cor0.col2 / 40 - + cor0.col2 AS col0 FROM tab1 cor0
----
-55
-58
-98
query I rowsort
SELECT + col1 * cor0.col0 AS col1 FROM tab0 AS cor0
----
2064
3395
8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col0 col2 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT + cor0.col0 * + ( col1 ) AS col1 FROM tab2 cor0
----
1343
217
4602
query I rowsort
SELECT + - col0 + ( col0 ) * - col0 AS col0 FROM tab1 cor0
----
-12
-4160
-6480
query I rowsort
SELECT DISTINCT + + col0 * + col0 + ( - col2 * ( col0 ) + - col0 ) AS col2 FROM tab0 AS cor0
----
-240
1155
534
query I rowsort
SELECT 10 FROM tab0, tab1 AS cor0
----
9 values hashing to a47194429f3e0358a3aebffd5f050113
skipif mysql # not compatible
query I rowsort
SELECT + CAST ( col2 AS REAL ) + + col1 / - 94 FROM tab0 AS cor0
----
0
33
82
query I rowsort
SELECT DISTINCT - cor1.col1 * 57 AS col2 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
-4902
-5187
-5529
query I rowsort
SELECT + 19 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 68 + cor0.col2 col2 FROM tab1 cor0
----
122
125
164
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1184
SELECT ALL - CAST( NULL AS DECIMAL ) * 0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1184
SELECT ALL - CAST ( NULL AS REAL ) * 0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL 29 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - col2 col0 FROM tab0
----
53
9
96
query I rowsort
SELECT - 36 FROM tab2, tab1 cor0
----
9 values hashing to afecaf209e79e23b6674a73fffa3e837
query I rowsort
SELECT - 27 + col0 + col2 * + col1 AS col0 FROM tab2 AS cor0
----
1585
698
817
query I rowsort
SELECT col1 * cor0.col2 * col0 FROM tab1 AS cor0
----
36480
4212
99840
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 5 col2 FROM tab0
----
-5
-5
-5
query I rowsort
SELECT 35 AS col2 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 0d13dfd4c4a9d51ace3582c31cadcdbc
query I rowsort
SELECT + + 97 AS col2 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to c73fa6978df8525c99d6bc792bb27123
query I rowsort
SELECT tab2.col0 AS col2 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
query I rowsort
SELECT - ( 55 ) * + col0 FROM tab1 AS cor0
----
-165
-3520
-4400
query I rowsort
SELECT 40 + 70 * col1 * col0 FROM tab1 AS cor0
----
44840
5500
72840
onlyif mysql # use DIV operator for integer division
query I rowsort label-1196
SELECT + 4 DIV + tab1.col2 - col2 FROM tab1
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-1196
SELECT + 4 / + tab1.col2 - col2 FROM tab1
----
-54
-57
-96
query I rowsort
SELECT ALL - col1 * + col2 FROM tab2 cor0
----
-1534
-646
-837
query I rowsort
SELECT ALL + cor0.col1 + + col0 + + cor0.col2 FROM tab1 AS cor0
----
131
189
83
query I rowsort
SELECT DISTINCT - col2 * + col2 - + col0 * - col0 AS col0 FROM tab2 cor0
----
-680
4797
5408
query I rowsort
SELECT + cor1.col2 AS col2 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475
onlyif mysql # use DIV operator for integer division
query I rowsort label-1201
SELECT DISTINCT - tab1.col0 DIV + col0 + tab1.col1 FROM tab1
----
12
25
9
skipif mysql # not compatible
query I rowsort label-1201
SELECT DISTINCT - tab1.col0 / + col0 + tab1.col1 FROM tab1
----
12
25
9
query I rowsort
SELECT - 61 AS col1 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to c91d7b51e91f33d302e697913fb438b6
skipif mysql # not compatible
query I rowsort
SELECT + tab1.col2 + col0 + CAST ( - col2 AS REAL ) * + tab1.col1 FROM tab1
----
-1072
-1347
-449
query I rowsort
SELECT - 19 AS col1 FROM tab2
----
-19
-19
-19
query I rowsort
SELECT ALL - 5 * - col0 + 0 AS col1 FROM tab1 AS cor0
----
15
320
400
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 77 col1 FROM tab2 AS cor0
----
77
onlyif mysql # use DIV operator for integer division
query I rowsort label-1207
SELECT ALL + col2 DIV col0 + - 92 * - col0 FROM tab1 AS cor0
----
294
5888
7361
skipif mysql # not compatible
query I rowsort label-1207
SELECT ALL + col2 / col0 + - 92 * - col0 FROM tab1 AS cor0
----
294
5888
7361
query I rowsort
SELECT + cor0.col2 * col0 * col0 FROM tab2 AS cor0
----
1323
158184
237158
query I rowsort
SELECT DISTINCT + 67 + - col1 * col2 FROM tab1 AS cor0
----
-1181
-1337
-503
query I rowsort
SELECT col2 + + 32 AS col0 FROM tab1
----
128
86
89
query I rowsort
SELECT + cor1.col0 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
query I rowsort
SELECT DISTINCT - col1 + + ( + col2 ) FROM tab0
----
-53
-9
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + 29 col0 FROM tab1 AS cor0
----
39
42
55
query I rowsort
SELECT ALL - cor0.col1 * cor0.col1 + col0 AS col2 FROM tab0 AS cor0
----
-7372
-8192
-9374
query I rowsort
SELECT - - cor0.col2 + col2 FROM tab0 AS cor0
----
164
2
66
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1216
SELECT ALL CAST( cor0.col2 AS SIGNED ) * - col0 + - 80 + col2 FROM tab0 cor0
----
-114
-7296
-839
skipif mysql # not compatible
query I rowsort label-1216
SELECT ALL CAST ( cor0.col2 AS INTEGER ) * - col0 + - 80 + col2 FROM tab0 cor0
----
-114
-7296
-839
query I rowsort
SELECT ALL - ( - cor0.col0 ) * col1 AS col2 FROM tab0 cor0
----
2064
3395
8099
query I rowsort
SELECT ALL 62 FROM tab2 cor0
----
62
62
62
query I rowsort
SELECT ALL - 25 * 46 * col0 FROM tab1 AS cor0
----
-3450
-73600
-92000
query I rowsort
SELECT - - ( col2 ) AS col2 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT ALL - + 71 - ( + col0 ) AS col2 FROM tab2 cor0
----
-149
-150
-78
query I rowsort
SELECT DISTINCT - col1 * + col0 * col2 FROM tab0 AS cor0
----
-3395
-664118
-68112
query I rowsort
SELECT DISTINCT col1 + - col1 + col2 AS col2 FROM tab2
----
26
27
38
query I rowsort
SELECT DISTINCT col0 * + col2 + + 50 AS col0 FROM tab0
----
7348
842
85
query I rowsort
SELECT DISTINCT tab2.col0 * + col1 + col0 FROM tab2
----
1422
224
4680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 4 + + ( col2 ) * + col0 col2 FROM tab0 AS cor0
----
31
7294
788
query I rowsort
SELECT DISTINCT + 30 + - 88 * cor0.col1 AS col1 FROM tab1, tab0 AS cor0
----
-7538
-7978
-8506
query I rowsort
SELECT DISTINCT + ( col0 ) * - col0 AS col1 FROM tab1 AS cor0
----
-4096
-6400
-9
query I rowsort
SELECT - 57 * - col0 AS col0 FROM tab0 AS cor0
----
1368
1995
5073
onlyif mysql # use DIV operator for integer division
query I rowsort label-1230
SELECT DISTINCT + ( cor0.col1 ) DIV + col2 AS col1 FROM tab0 cor0
----
1
2
97
skipif mysql # not compatible
query I rowsort label-1230
SELECT DISTINCT + ( cor0.col1 ) / + col2 AS col1 FROM tab0 cor0
----
1
2
97
query I rowsort
SELECT DISTINCT + + ( col2 ) + col2 FROM tab0 AS cor0
----
164
2
66
query I rowsort
SELECT DISTINCT + - 12 FROM tab0 cor0
----
-12
skipif mysql # not compatible
query I rowsort
SELECT + + CAST ( - 29 AS REAL ) * col0 AS col0 FROM tab2 AS cor0
----
-203
-2262
-2291
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1234
SELECT CAST( col1 AS SIGNED ) + - col0 AS col2 FROM tab0 AS cor0
----
2
62
62
skipif mysql # not compatible
query I rowsort label-1234
SELECT CAST ( col1 AS INTEGER ) + - col0 AS col2 FROM tab0 AS cor0
----
2
62
62
query I rowsort
SELECT ALL col1 + ( + ( - col1 ) ) FROM tab2
----
0
0
0
query I rowsort
SELECT ALL col0 + ( - col1 ) FROM tab0
----
-2
-62
-62
query I rowsort
SELECT ALL - 25 * - col1 AS col1 FROM tab0 AS cor0
----
2150
2275
2425
query I rowsort
SELECT 38 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7
query I rowsort
SELECT col0 * + cor0.col0 + - cor0.col2 FROM tab1 AS cor0
----
-45
4039
6304
query I rowsort
SELECT - - cor0.col0 * cor0.col2 AS col1 FROM tab2 AS cor0
----
189
2028
3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-1241
SELECT + ( + col1 ) DIV col0 + + col0 * 39 FROM tab1
----
125
2496
3120
skipif mysql # not compatible
query I rowsort label-1241
SELECT + ( + col1 ) / col0 + + col0 * 39 FROM tab1
----
125
2496
3120
query I rowsort
SELECT + col2 + tab0.col2 * - col2 AS col0 FROM tab0
----
-1056
-6642
0
query I rowsort
SELECT 46 * + 46 + col2 AS col1 FROM tab0
----
2117
2149
2198
query I rowsort
SELECT + - 25 FROM tab0 cor0
----
-25
-25
-25
query I rowsort
SELECT col0 * - col0 AS col2 FROM tab0 cor0
----
-1225
-576
-7921
query I rowsort
SELECT - 68 * + col1 FROM tab0 AS cor0
----
-5848
-6188
-6596
query I rowsort
SELECT - 28 * - col1 FROM tab0 AS cor0
----
2408
2548
2716
query I rowsort
SELECT 77 AS col1 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to d7b027bca5d37c67e29013904def8125
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * tab2.col0 col1 FROM tab2
----
1343
217
4602
query I rowsort
SELECT ALL 84 AS col0 FROM tab0
----
84
84
84
query I rowsort
SELECT ALL - col2 * - ( col1 ) + + col1 AS col2 FROM tab0 AS cor0
----
194
2924
7553
query I rowsort
SELECT - col1 * col1 + - 63 FROM tab2 AS cor0
----
-1024
-352
-3544
query I rowsort
SELECT - col1 * col1 + - col2 AS col2 FROM tab2 AS cor0
----
-327
-3507
-988
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 - + 52 * - col1 col1 FROM tab1 AS cor0
----
1355
584
756
onlyif mysql # use DIV operator for integer division
query I rowsort label-1255
SELECT DISTINCT col1 + col1 DIV col1 FROM tab2 AS cor0
----
18
32
60
skipif mysql # not compatible
query I rowsort label-1255
SELECT DISTINCT col1 + col1 / col1 FROM tab2 AS cor0
----
18
32
60
query I rowsort
SELECT DISTINCT + + col1 + ( + col1 ) * col0 AS col1 FROM tab2 AS cor0
----
1360
248
4661
query I rowsort
SELECT - col2 + + col1 * + col1 AS col2 FROM tab0 AS cor0
----
7363
8199
9408
query I rowsort
SELECT ALL - col0 * - 29 FROM tab2 AS cor0
----
203
2262
2291
query I rowsort
SELECT - + col2 + - col1 * + 67 AS col2 FROM tab1 AS cor0
----
-1796
-727
-967
query I rowsort
SELECT ALL col2 - + tab2.col1 FROM tab2
----
-33
-4
21
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - col2 col0 FROM tab1
----
162
3648
7680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - col1 col0 FROM tab1
----
-100
-169
-676
query I rowsort
SELECT ALL 63 * + col0 - + 39 FROM tab0
----
1473
2166
5568
query I rowsort
SELECT ALL + tab1.col0 - col1 FROM tab1
----
-23
54
67
query I rowsort
SELECT ALL col1 * + 60 + + 63 FROM tab2
----
1083
1923
3603
query I rowsort
SELECT DISTINCT + col2 * 36 - + col0 AS col0 FROM tab2 cor0
----
1289
858
965
query I rowsort
SELECT + cor0.col2 + - col2 AS col0 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-1268
SELECT ALL + col0 DIV ( + 80 * + col2 ) FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1268
SELECT ALL + col0 / ( + 80 * + col2 ) FROM tab0 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-1269
SELECT ALL + col2 * + 71 - col2 DIV - col1 AS col2 FROM tab2 cor0
----
1846
1917
2700
skipif mysql # not compatible
query I rowsort label-1269
SELECT ALL + col2 * + 71 - col2 / - col1 AS col2 FROM tab2 cor0
----
1846
1917
2700
onlyif mysql # use DIV operator for integer division
query I rowsort label-1270
SELECT col1 * + ( - col2 ) + + cor0.col0 DIV 10 AS col2 FROM tab1 AS cor0
----
-1240
-1404
-564
skipif mysql # not compatible
query I rowsort label-1270
SELECT col1 * + ( - col2 ) + + cor0.col0 / 10 AS col2 FROM tab1 AS cor0
----
-1240
-1404
-564
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * col1 + col2 col2 FROM tab1 AS cor0
----
-24
-583
-944
query I rowsort
SELECT ALL + col1 * col1 FROM tab2 cor0
----
289
3481
961
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1273
SELECT col2 + CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1273
SELECT col2 + CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + ( col2 ) col2 FROM tab2 AS cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-1275
SELECT - 73 DIV cor0.col1 + + col2 AS col2 FROM tab1 AS cor0
----
50
52
91
skipif mysql # not compatible
query I rowsort label-1275
SELECT - 73 / cor0.col1 + + col2 AS col2 FROM tab1 AS cor0
----
50
52
91
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0, tab1 AS cor0, tab0 AS cor1
----
972 values hashing to 5e655b1287771868a8f868574a94d749
query I rowsort
SELECT - ( ( col0 ) ) + + ( 39 ) AS col0 FROM tab2
----
-39
-40
32
query I rowsort
SELECT col0 + 52 * - tab0.col0 FROM tab0
----
-1224
-1785
-4539
query I rowsort
SELECT ( 36 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752
query I rowsort
SELECT ALL + col1 * col2 * - col1 + ( + col0 ) * + ( col1 ) + col2 FROM tab1
----
-15088
-36372
-5003
query I rowsort
SELECT + cor0.col0 + col0 AS col0 FROM tab0 AS cor0
----
178
48
70
query I rowsort
SELECT ALL + col2 + - cor0.col2 FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - + col0 + - col1 FROM tab2 AS cor0
----
-137
-38
-96
query I rowsort
SELECT DISTINCT + col1 + + col0 * + cor0.col1 + col1 FROM tab2 AS cor0
----
1377
279
4720
query I rowsort
SELECT - ( + col2 ) * + ( - 19 ) - cor0.col0 FROM tab1 AS cor0
----
1019
1023
1744
query I rowsort
SELECT + col2 * col0 + + col2 FROM tab0 AS cor0
----
36
7380
825
query I rowsort
SELECT DISTINCT - col2 * col0 + cor0.col0 * - col2 AS col1 FROM tab1 AS cor0
----
-15360
-324
-7296
query I rowsort
SELECT ALL 72 - cor0.col1 FROM tab0 cor0
----
-14
-19
-25
query I rowsort
SELECT - + col2 + + col0 AS col0 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT ALL 33 AS col2 FROM tab1 AS cor0
----
33
33
33
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 6 + 14 * + col2 col1 FROM tab0 cor0
----
1154
20
468
query I rowsort
SELECT ALL ( - 1 ) FROM tab0, tab2 AS cor0
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b
query I rowsort
SELECT tab0.col0 * + ( - col2 ) + tab0.col1 FROM tab0
----
-706
-7207
62
query I rowsort
SELECT DISTINCT - col2 * - 58 FROM tab0 cor0
----
1914
4756
58
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1295
SELECT ALL col1 + CAST( col0 AS SIGNED ) FROM tab0 AS cor0
----
110
132
180
skipif mysql # not compatible
query I rowsort label-1295
SELECT ALL col1 + CAST ( col0 AS INTEGER ) FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT ALL - - col0 * + 4 AS col2 FROM tab0 AS cor0
----
140
356
96
query I rowsort
SELECT col1 * - col1 AS col0 FROM tab0 AS cor0
----
-7396
-8281
-9409
query I rowsort
SELECT ALL - 19 * + col2 + - col0 * 88 AS col1 FROM tab1 AS cor0
----
-1290
-6715
-8864
query I rowsort
SELECT ALL cor0.col0 + 63 * - 39 FROM tab1, tab1 AS cor0, tab1 cor1
----
27 values hashing to 31b34577a29c4b0b5f9cafeb8ef6fc69
query I rowsort
SELECT ALL - + col1 + + col0 + col1 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT DISTINCT + cor0.col2 - cor0.col0 FROM tab0 cor0
----
-34
-7
9
query I rowsort
SELECT DISTINCT cor0.col0 * - 89 FROM tab1 AS cor0
----
-267
-5696
-7120
query I rowsort
SELECT DISTINCT - col2 + - cor0.col0 * col1 FROM tab1 AS cor0
----
-1136
-132
-697
query I rowsort
SELECT DISTINCT cor0.col0 AS col1 FROM tab1, tab2, tab0 AS cor0
----
24
35
89
query I rowsort
SELECT ALL + cor0.col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 52 col1 FROM tab1
----
52
52
52
query I rowsort
SELECT + 75 * - cor0.col1 FROM tab1 AS cor0
----
-1950
-750
-975
query I rowsort
SELECT ALL - 93 AS col2 FROM tab2 cor0
----
-93
-93
-93
query I rowsort
SELECT ALL - ( col2 * + col1 ) FROM tab1
----
-1248
-1404
-570
query I rowsort
SELECT 27 + col1 * col0 FROM tab2 AS cor0
----
1370
244
4629
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1311
SELECT - CAST( NULL AS SIGNED ) / - col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1311
SELECT - CAST ( NULL AS INTEGER ) / - col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-1312
SELECT col0 + - col2 DIV - col1 col2 FROM tab2 AS cor0
----
7
78
81
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1312
SELECT col0 + - col2 / - col1 col2 FROM tab2 AS cor0
----
7
78
81
onlyif mysql # use DIV operator for integer division
query I rowsort label-1313
SELECT - 82 + cor0.col2 DIV col0 AS col2 FROM tab0 AS cor0
----
-81
-82
-82
skipif mysql # not compatible
query I rowsort label-1313
SELECT - 82 + cor0.col2 / col0 AS col2 FROM tab0 AS cor0
----
-81
-82
-82
query I rowsort
SELECT - - ( - col2 ) FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT DISTINCT + - ( - cor0.col2 ) + + 8 AS col2 FROM tab1 AS cor0
----
104
62
65
query I rowsort
SELECT - 63 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to fc0b533c2773a0a802e1fc8317dcebf2
query I rowsort
SELECT ALL 49 AS col2 FROM tab0 AS cor0
----
49
49
49
onlyif mysql # use DIV operator for integer division
query I rowsort label-1318
SELECT cor0.col2 DIV - col2 FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-1318
SELECT cor0.col2 / - col2 FROM tab0 AS cor0
----
-1
-1
-1
query I rowsort
SELECT ALL - - 24 FROM tab0, tab0 AS cor0
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef
query I rowsort
SELECT col2 + + col2 * col2 FROM tab1 AS cor0
----
2970
3306
9312
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1321
SELECT - + col1 * CAST( NULL AS SIGNED ) * - 25 + cor0.col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1321
SELECT - + col1 * CAST ( NULL AS INTEGER ) * - 25 + cor0.col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-1322
SELECT + - col1 DIV - 51 + col0 FROM tab2 AS cor0
----
7
79
79
skipif mysql # not compatible
query I rowsort label-1322
SELECT + - col1 / - 51 + col0 FROM tab2 AS cor0
----
7
79
79
query I rowsort
SELECT 32 * 56 FROM tab2 AS cor0
----
1792
1792
1792
query I rowsort
SELECT DISTINCT + ( - col1 ) * col1 + 65 FROM tab0 cor0
----
-7331
-8216
-9344
query I rowsort
SELECT DISTINCT 52 + + col0 * col1 * - ( 47 ) AS col1 FROM tab0 AS cor0
----
-159513
-380601
-96956
query I rowsort
SELECT + col0 * 41 AS col1 FROM tab0
----
1435
3649
984
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 15 col2 FROM tab2 cor0
----
15
15
15
query I rowsort
SELECT - 98 + - 63 * + col0 FROM tab0 AS cor0
----
-1610
-2303
-5705
query I rowsort
SELECT - ( - cor0.col0 ) + col2 * - col2 AS col2 FROM tab0 AS cor0
----
-1065
-6635
34
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 57 col2 FROM tab0
----
57
57
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-1331
SELECT DISTINCT col1 DIV - CAST( + col2 AS SIGNED ) col2 FROM tab1 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1331
SELECT DISTINCT col1 / - CAST ( + col2 AS INTEGER ) col2 FROM tab1 AS cor0
----
0
query I rowsort
SELECT DISTINCT - - col0 * ( - col2 ) FROM tab2 AS cor0
----
-189
-2028
-3002
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col0 col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63
query I rowsort
SELECT ALL 43 + - col2 AS col1 FROM tab1
----
-11
-14
-53
query I rowsort
SELECT ALL 15 * + tab1.col1 * - col1 + col2 FROM tab1
----
-10086
-1443
-2439
query I rowsort
SELECT tab0.col2 - + 6 AS col1 FROM tab0
----
-5
27
76
query I rowsort
SELECT ALL + col0 * col0 + 63 AS col1 FROM tab0 AS cor0
----
1288
639
7984
query I rowsort
SELECT DISTINCT - col0 + + ( + ( col2 ) ) * ( col0 ) - + col2 AS col2 FROM tab1 AS cor0
----
105
3527
7504
query I rowsort
SELECT ALL - - col2 * + col1 - - col0 AS col0 FROM tab2 AS cor0
----
1612
725
844
query I rowsort
SELECT + 46 AS col0 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 2f97924b57b73102233df7c9ce8ad602
query I rowsort
SELECT ALL + col2 * 35 + col1 AS col2 FROM tab0 AS cor0
----
1241
132
2961
query I rowsort
SELECT + 81 * 97 AS col2 FROM tab2
----
7857
7857
7857
query I rowsort
SELECT 81 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 0a85639e0dddbffdab2cb16b027cb360
query I rowsort
SELECT DISTINCT col2 + col1 + - tab0.col2 AS col1 FROM tab0
----
86
91
97
query I rowsort
SELECT + 92 - - ( col0 ) FROM tab0 AS cor0
----
116
127
181
query I rowsort
SELECT - col1 * 61 * col2 FROM tab0 AS cor0
----
-173118
-455182
-5917
query I rowsort
SELECT - col2 + + col1 * - 58 * col2 AS col2 FROM tab1 AS cor0
----
-33117
-72480
-81486
query I rowsort
SELECT col0 + + col0 AS col0 FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT DISTINCT + + col1 * col2 + 56 AS col1 FROM tab1 AS cor0
----
1304
1460
626
query I rowsort
SELECT DISTINCT - col2 * - col0 + 74 - col0 AS col0 FROM tab1 AS cor0
----
233
3658
7674
query I rowsort
SELECT - + 30 + - col2 AS col2 FROM tab1 AS cor0
----
-126
-84
-87
query I rowsort
SELECT DISTINCT - - cor0.col2 AS col2 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT ALL + 83 + - col1 FROM tab1 AS cor0
----
57
70
73
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1354
SELECT DISTINCT + - ( col2 ) * - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1354
SELECT DISTINCT + - ( col2 ) * - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1355
SELECT ALL - + ( col2 ) / - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1355
SELECT ALL - + ( col2 ) / - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - + col0 * + col2 FROM tab0 cor0
----
-35
-7298
-792
query I rowsort
SELECT 25 * - col0 FROM tab1
----
-1600
-2000
-75
query I rowsort
SELECT + 49 + col1 FROM tab1 AS cor0
----
59
62
75
query I rowsort
SELECT DISTINCT ( + col0 ) * + col0 AS col1 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT 81 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 0a85639e0dddbffdab2cb16b027cb360
query I rowsort
SELECT DISTINCT - col2 + col1 AS col0 FROM tab1
----
-28
-47
-83
query I rowsort
SELECT + - col2 + col1 * + col2 * 31 AS col1 FROM tab2 AS cor0
----
19988
25920
47528
query I rowsort
SELECT DISTINCT 75 * - col0 AS col1 FROM tab0 AS cor0
----
-1800
-2625
-6675
query I rowsort
SELECT ALL + + 23 * - col1 * col1 AS col2 FROM tab1 AS cor0
----
-15548
-2300
-3887
query I rowsort
SELECT + + col2 + + col2 * + 65 AS col2 FROM tab0 AS cor0
----
2178
5412
66
query I rowsort
SELECT + col1 + col1 * - col2 AS col2 FROM tab0 AS cor0
----
-2752
-7371
0
query I rowsort
SELECT ALL - col1 * col2 FROM tab0 cor0
----
-2838
-7462
-97
query I rowsort
SELECT ALL col2 + - cor0.col0 AS col1 FROM tab0 AS cor0
----
-34
-7
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + col1 + - col1 * - col2 * - ( - 96 ) col2 FROM tab0 AS cor0
----
269610
708890
9215
onlyif mysql # use DIV operator for integer division
query I rowsort label-1370
SELECT col1 * col0 DIV col1 AS col2 FROM tab1 AS cor0
----
3
64
80
skipif mysql # not compatible
query I rowsort label-1370
SELECT col1 * col0 / col1 AS col2 FROM tab1 AS cor0
----
3
64
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-1371
SELECT + - col0 + 43 DIV + 37 AS col1 FROM tab1 AS cor0
----
-2
-63
-79
skipif mysql # not compatible
query I rowsort label-1371
SELECT + - col0 + 43 / + 37 AS col1 FROM tab1 AS cor0
----
-2
-63
-79
query I rowsort
SELECT DISTINCT + col1 + - 52 AS col1 FROM tab0 AS cor0
----
34
39
45
query I rowsort
SELECT + col2 + + ( 58 ) * col1 AS col2 FROM tab1 AS cor0
----
1562
637
850
query I rowsort
SELECT DISTINCT + col2 * + col0 + + col0 AS col1 FROM tab2 AS cor0
----
196
2106
3081
query I rowsort
SELECT DISTINCT + col0 * 13 FROM tab1 AS cor0
----
1040
39
832
query I rowsort
SELECT + col2 * col2 * 84 AS col2 FROM tab1
----
244944
272916
774144
query I rowsort
SELECT + ( col0 * 59 ) + + 33 + col0 FROM tab0
----
1473
2133
5373
query I rowsort
SELECT ALL - ( + col2 ) * - col1 AS col2 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT + + ( col1 ) AS col1 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT DISTINCT - - col2 + + col0 FROM tab0 cor0
----
171
36
57
query I rowsort
SELECT ALL - col1 * col2 * col2 AS col2 FROM tab1 AS cor0
----
-119808
-32490
-75816
query I rowsort
SELECT DISTINCT - 20 + + col1 * + col1 FROM tab2 AS cor0
----
269
3461
941
onlyif mysql # use DIV operator for integer division
query I rowsort label-1383
SELECT DISTINCT + 19 DIV - col0 AS col1 FROM tab1 AS cor0
----
-6
0
skipif mysql # not compatible
query I rowsort label-1383
SELECT DISTINCT + 19 / - col0 AS col1 FROM tab1 AS cor0
----
-6
0
query I rowsort
SELECT + 48 AS col1 FROM tab1 AS cor0
----
48
48
48
query I rowsort
SELECT ALL + + col0 * col1 AS col1 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT DISTINCT + 94 * - cor0.col2 - cor0.col1 AS col2 FROM tab2 AS cor0
----
-2503
-2569
-3589
query I rowsort
SELECT ALL - 32 FROM tab2 cor0
----
-32
-32
-32
query I rowsort
SELECT DISTINCT - cor0.col2 * + col0 * + col1 FROM tab2 AS cor0
----
-119652
-51034
-5859
onlyif mysql # use DIV operator for integer division
query I rowsort label-1389
SELECT ALL + col0 DIV 33 AS col1 FROM tab2 AS cor0
----
0
2
2
skipif mysql # not compatible
query I rowsort label-1389
SELECT ALL + col0 / 33 AS col1 FROM tab2 AS cor0
----
0
2
2
query I rowsort
SELECT cor0.col1 + col0 * col1 FROM tab0 AS cor0
----
2150
3492
8190
query I rowsort
SELECT - col2 + + col2 * - col1 AS col2 FROM tab2 AS cor0
----
-1560
-684
-864
query I rowsort
SELECT ALL - - col0 * col0 AS col1 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT cor0.col2 * - cor0.col1 AS col1 FROM tab2 cor0
----
-1534
-646
-837
query I rowsort
SELECT + 83 AS col0 FROM tab2 AS cor0
----
83
83
83
query I rowsort
SELECT DISTINCT - col2 + cor0.col1 * - cor0.col2 FROM tab1 AS cor0
----
-1344
-1458
-627
query I rowsort
SELECT DISTINCT + 24 + - col2 FROM tab0 AS cor0
----
-58
-9
23
onlyif mysql # use DIV operator for integer division
query I rowsort label-1397
SELECT DISTINCT + col2 + - 20 DIV + col0 + - col0 FROM tab2 AS cor0
----
-41
-52
18
skipif mysql # not compatible
query I rowsort label-1397
SELECT DISTINCT + col2 + - 20 / + col0 + - col0 FROM tab2 AS cor0
----
-41
-52
18
onlyif mysql # use DIV operator for integer division
query I rowsort label-1398
SELECT ALL - 84 DIV - 38 + col0 * - CAST( 40 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-278
-3118
-3158
skipif mysql # not compatible
query I rowsort label-1398
SELECT ALL - 84 / - 38 + col0 * - CAST ( 40 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-278
-3118
-3158
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1399
SELECT CAST( NULL AS SIGNED ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1399
SELECT CAST ( NULL AS INTEGER ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 4 * 6 + col2 col2 FROM tab0 AS cor0
----
106
25
57
query I rowsort
SELECT ALL + col0 * ( cor0.col0 ) FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT ( + col2 ) * tab1.col0 AS col1 FROM tab1
----
162
3648
7680
query I rowsort
SELECT + tab2.col2 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3
query I rowsort
SELECT ALL + 71 * cor0.col0 AS col1 FROM tab2 cor0
----
497
5538
5609
query I rowsort
SELECT - col0 + cor0.col0 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT + ( 11 ) + col2 - - col1 * + 92 * + col0 AS col1 FROM tab2
----
123605
20002
423421
query I rowsort
SELECT - 30 - col2 FROM tab2 AS cor0
----
-56
-57
-68
query I rowsort
SELECT ALL col2 * + 95 + tab1.col0 - tab1.col0 AS col2 FROM tab1
----
5130
5415
9120
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 96 col2 FROM tab2
----
96
96
96
query I rowsort
SELECT + 70 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911
onlyif mysql # use DIV operator for integer division
query I rowsort label-1411
SELECT - 71 DIV + 27 FROM tab1 cor0
----
-2
-2
-2
skipif mysql # not compatible
query I rowsort label-1411
SELECT - 71 / + 27 FROM tab1 cor0
----
-2
-2
-2
query I rowsort
SELECT - 57 AS col2 FROM tab0 AS cor0
----
-57
-57
-57
query I rowsort
SELECT + 28 AS col2 FROM tab2 AS cor0
----
28
28
28
query I rowsort
SELECT col1 * + col1 + + col2 AS col1 FROM tab2 AS cor0
----
327
3507
988
query I rowsort
SELECT col2 * - cor0.col2 AS col2 FROM tab1 AS cor0
----
-2916
-3249
-9216
query I rowsort
SELECT ALL + 84 * + 24 FROM tab1
----
2016
2016
2016
onlyif mysql # use DIV operator for integer division
query I rowsort label-1417
SELECT - - col2 DIV - col2 AS col1 FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-1417
SELECT - - col2 / - col2 AS col1 FROM tab0 AS cor0
----
-1
-1
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - ( col2 ) col2 FROM tab1 AS cor0
----
-2916
-3249
-9216
query I rowsort
SELECT ALL + - col1 + col1 * col0 FROM tab0 AS cor0
----
1978
3298
8008
query I rowsort
SELECT + col1 * - col2 * ( + col1 ) AS col1 FROM tab1 AS cor0
----
-16224
-36504
-5700
query I rowsort
SELECT + 14 AS col1 FROM tab0
----
14
14
14
query I rowsort
SELECT DISTINCT + 21 + + col2 FROM tab0
----
103
22
54
query I rowsort
SELECT ALL - col2 * col1 + ( - col1 ) AS col1 FROM tab0
----
-194
-2924
-7553
query I rowsort
SELECT DISTINCT col2 * col2 + + ( col2 * col2 + - col0 * + 51 ) FROM tab1
----
14352
3234
5679
query I rowsort
SELECT ALL col1 + col2 * - col2 FROM tab0 AS cor0
----
-1003
-6633
96
query I rowsort
SELECT DISTINCT + - col0 * + ( + cor0.col0 + col0 ) FROM tab0 AS cor0
----
-1152
-15842
-2450
query I rowsort
SELECT ALL - + col1 + col1 * col2 FROM tab0 AS cor0
----
0
2752
7371
query I rowsort
SELECT ALL - + ( + 75 ) FROM tab2 AS cor0
----
-75
-75
-75
query I rowsort
SELECT col1 * - col1 + - cor0.col2 FROM tab0 AS cor0
----
-7429
-8363
-9410
query I rowsort
SELECT ALL 19 AS col0 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 86c53e8567a17c8d91fc5aff119e0498
onlyif mysql # use DIV operator for integer division
query I rowsort label-1431
SELECT ALL + - col1 DIV + col0 - col1 * + col2 AS col1 FROM tab2 AS cor0
----
-1534
-646
-841
skipif mysql # not compatible
query I rowsort label-1431
SELECT ALL + - col1 / + col0 - col1 * + col2 AS col1 FROM tab2 AS cor0
----
-1534
-646
-841
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 20 + + ( + col1 + 4 ) col1 FROM tab0 AS cor0
----
70
75
81
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1433
SELECT + CAST( NULL AS SIGNED ) * - 64 + - cor0.col2 * - 33 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1433
SELECT + CAST ( NULL AS INTEGER ) * - 64 + - cor0.col2 * - 33 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL ( - 55 ) * + col2 * col2 - + 79 FROM tab0 AS cor0
----
-134
-369899
-59974
query I rowsort
SELECT + col2 * - col2 + - cor0.col0 AS col0 FROM tab2 cor0
----
-1523
-736
-754
query I rowsort
SELECT ALL + + col1 * - col1 * col0 AS col1 FROM tab0 AS cor0
----
-177504
-329315
-737009
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1437
SELECT DISTINCT + + CAST( NULL AS SIGNED ) + ( col1 ) + + col1 * col0 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1437
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) + ( col1 ) + + col1 * col0 FROM tab1 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 + - 38 + - col2 col2 FROM tab2 AS cor0
----
-34
-5
-59
query I rowsort
SELECT - 24 FROM tab1, tab0 cor0, tab1 AS cor1
----
27 values hashing to f2e40f6e5cdbc2877843191cb261975f
query I rowsort
SELECT ALL - col2 * - 19 + col1 FROM tab1
----
1052
1093
1837
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1441
SELECT - CAST( NULL AS DECIMAL ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1441
SELECT - CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + 90 * + ( col1 ) * - 84 + ( col0 ) * - col2 FROM tab2 AS cor0
----
-131522
-234549
-448068
query I rowsort
SELECT - - col2 * - col2 * col1 FROM tab1 AS cor0
----
-119808
-32490
-75816
query I rowsort
SELECT DISTINCT - col2 * + col1 - col0 * col1 FROM tab2
----
-1054
-1989
-6136
query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 AS cor0 WHERE NOT NULL >= ( NULL )
----
query I rowsort
SELECT col0 + 16 FROM tab2 AS cor0
----
23
94
95
query I rowsort
SELECT DISTINCT col0 + - col1 FROM tab1
----
-23
54
67
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col0 * + col0 + - col2 + cor0.col0 col2 FROM tab0 AS cor0
----
-1191
-19017
-649515
query I rowsort
SELECT - 33 AS col2 FROM tab1, tab0 cor0, tab2 AS cor1
----
27 values hashing to bbc05afe7eb6fed16e9d75f7f74d1948
query I rowsort
SELECT - + col1 + - ( cor0.col1 * col0 ) FROM tab2 AS cor0
----
-1360
-248
-4661
onlyif mysql # use DIV operator for integer division
query I rowsort label-1451
SELECT - cor0.col0 DIV cor0.col1 AS col0 FROM tab0, tab1 cor0
----
9 values hashing to 0cf123df00ec8476d9e0a7b2d2f6001e
skipif mysql # not compatible
query I rowsort label-1451
SELECT - cor0.col0 / cor0.col1 AS col0 FROM tab0, tab1 cor0
----
9 values hashing to 0cf123df00ec8476d9e0a7b2d2f6001e
query I rowsort
SELECT ALL + col1 + + col0 * cor0.col2 + cor0.col2 * - 69 * col1 FROM tab1 AS cor0
----
-35672
-78419
-96688
query I rowsort
SELECT ALL - col0 + + col0 AS col0 FROM tab2 cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - col0 * col1 col1 FROM tab1 AS cor0
----
-576
-75
-960
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 + - col2 col0 FROM tab2 AS cor0
----
-104
-117
-34
query I rowsort
SELECT DISTINCT col1 + col2 * cor0.col0 FROM tab0 AS cor0
----
132
7389
878
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col2 * + cor0.col0 * col1 + - col2 col2 FROM tab1 AS cor0
----
36423
4158
99744
query I rowsort
SELECT - + cor0.col1 * col0 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT - + col0 * - col1 * - col2 AS col0 FROM tab1 AS cor0
----
-36480
-4212
-99840
onlyif mysql # use DIV operator for integer division
query I rowsort label-1460
SELECT ALL - + col1 + - cor0.col1 DIV + col2 FROM tab1 cor0
----
-10
-13
-26
skipif mysql # not compatible
query I rowsort label-1460
SELECT ALL - + col1 + - cor0.col1 / + col2 FROM tab1 cor0
----
-10
-13
-26
onlyif mysql # use DIV operator for integer division
query I rowsort label-1461
SELECT col0 + - col2 DIV col2 col0 FROM tab1 AS cor0
----
2
63
79
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1461
SELECT col0 + - col2 / col2 col0 FROM tab1 AS cor0
----
2
63
79
onlyif mysql # use DIV operator for integer division
query I rowsort label-1462
SELECT ALL col0 DIV cor0.col0 AS col0 FROM tab2 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-1462
SELECT ALL col0 / cor0.col0 AS col0 FROM tab2 AS cor0
----
1
1
1
query I rowsort
SELECT col2 + + cor0.col1 AS col2 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT ALL col1 + - col0 + + col1 FROM tab0 AS cor0
----
148
159
93
query I rowsort
SELECT - col1 * - tab2.col0 FROM tab2
----
1343
217
4602
query I rowsort
SELECT + + col2 * col1 + col0 AS col1 FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT + col0 * col2 * col0 + cor0.col0 AS col1 FROM tab2 AS cor0
----
1330
158262
237237
query I rowsort
SELECT ALL - col0 * col0 + - tab0.col0 FROM tab0
----
-1260
-600
-8010
query I rowsort
SELECT DISTINCT - cor0.col2 * cor0.col1 FROM tab0, tab0 AS cor0
----
-2838
-7462
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-1470
SELECT DISTINCT - col2 DIV - col0 + + col1 * + col2 FROM tab1 cor0
----
1249
1422
570
skipif mysql # not compatible
query I rowsort label-1470
SELECT DISTINCT - col2 / - col0 + + col1 * + col2 FROM tab1 cor0
----
1249
1422
570
query I rowsort
SELECT DISTINCT - col0 + - col2 FROM tab1
----
-121
-176
-57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * - col1 + col0 * + col2 + col2 col2 FROM tab1
----
-1188
3135
6528
query I rowsort
SELECT + tab1.col0 + + tab1.col0 FROM tab1
----
128
160
6
query I rowsort
SELECT ALL - tab1.col2 * col0 + tab1.col0 AS col2 FROM tab1
----
-159
-3584
-7600
query I rowsort
SELECT ALL - + cor0.col0 * - col2 AS col1 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT ALL - + col2 + col0 * - cor0.col1 AS col1 FROM tab0 AS cor0
----
-2097
-3396
-8181
query I rowsort
SELECT ALL + cor0.col2 * - cor0.col2 + col2 * - col0 * col0 FROM tab1 AS cor0
----
-236721
-3402
-623616
query I rowsort
SELECT + col2 + col2 * + tab2.col0 + + tab2.col0 AS col2 FROM tab2
----
2132
223
3119
query I rowsort
SELECT ALL cor0.col1 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
query I rowsort
SELECT ALL col1 + + col1 AS col0 FROM tab0
----
172
182
194
query I rowsort
SELECT col1 * - col0 + + tab2.col2 * col2 AS col2 FROM tab2
----
-3926
101
512
onlyif mysql # use DIV operator for integer division
query I rowsort label-1482
SELECT - col1 + + col0 DIV - col2 FROM tab0
----
-132
-86
-92
skipif mysql # not compatible
query I rowsort label-1482
SELECT - col1 + + col0 / - col2 FROM tab0
----
-132
-86
-92
query I rowsort
SELECT ALL - col0 - - col2 * + col2 FROM tab2
----
1365
598
722
query I rowsort
SELECT ALL col2 - col1 * - tab0.col2 AS col1 FROM tab0
----
2871
7544
98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 col1 FROM tab2, tab0 AS cor0
----
86
91
97
query I rowsort
SELECT + col0 * - tab0.col1 * - col1 FROM tab0
----
177504
329315
737009
query I rowsort
SELECT + col1 + + col0 * - tab1.col2 FROM tab1
----
-136
-3638
-7667
query I rowsort
SELECT DISTINCT col1 + + col1 + col0 AS col2 FROM tab1
----
106
55
84
query III rowsort
SELECT * FROM tab1 WHERE NOT ( col1 - + col1 ) > ( col0 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
query I rowsort
SELECT ALL - col2 * col0 - col0 FROM tab2 WHERE NOT NULL IN ( col1 * - col1 + col1 + + col1 )
----
query I rowsort
SELECT ALL + tab0.col1 + + col2 * col2 + - col2 * + tab0.col2 FROM tab0
----
86
91
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * - col1 col0 FROM tab0 WHERE ( NULL ) NOT IN ( - col2 )
----
query I rowsort
SELECT DISTINCT - col1 * + col1 AS col2 FROM tab0
----
-7396
-8281
-9409
query I rowsort
SELECT col1 * col1 * col0 FROM tab0
----
177504
329315
737009
onlyif mysql # use DIV operator for integer division
query I rowsort label-1495
SELECT col2 * col1 + - 25 DIV col1 col0 FROM tab2 AS cor0
----
1534
645
837
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1495
SELECT col2 * col1 + - 25 / col1 col0 FROM tab2 AS cor0
----
1534
645
837
query I rowsort
SELECT ALL + col0 + col0 - + col2 * + col0 FROM tab2
----
-175
-1872
-2844
query I rowsort
SELECT ALL - col1 + col0 * + col1 * - col2 + - col0 AS col1 FROM tab0
----
-3527
-664298
-68222
query I rowsort
SELECT + tab1.col2 + + tab1.col0 AS col0 FROM tab1
----
121
176
57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col1 FROM tab2 WHERE NOT col1 NOT BETWEEN NULL AND ( - col2 * + col2 + - col1 )
----
query I rowsort
SELECT ALL + cor0.col0 AS col0 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 * col1 col0 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT - 38 FROM tab1
----
-38
-38
-38
query I rowsort
SELECT - 76 * cor0.col0 + ( col2 ) * + col2 AS col2 FROM tab2 AS cor0
----
-4560
-5252
197
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 AS cor0, tab1 AS cor1, tab2, tab0 AS cor2
----
3645 values hashing to 5acb69cde71208fe580e10b8b669428e
query I rowsort
SELECT ALL + + 70 + + col2 AS col2 FROM tab2 cor0
----
108
96
97
query I rowsort
SELECT ALL col1 AS col1 FROM tab1 WHERE NULL <= - col2
----
query I rowsort
SELECT + col1 + - col1 * + tab2.col1 FROM tab2
----
-272
-3422
-930
query I rowsort
SELECT ALL col0 + - col0 AS col2 FROM tab0
----
0
0
0
query I rowsort
SELECT DISTINCT + col0 + - col2 AS col0 FROM tab1
----
-16
-51
7
query I rowsort
SELECT ALL - tab2.col1 + col0 FROM tab2
----
-24
19
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab1.col1 + + tab1.col1 + + col0 col1 FROM tab1
----
3
64
80
query I rowsort
SELECT - col2 + col1 * - col0 FROM tab1
----
-1136
-132
-697
query I rowsort
SELECT - col2 FROM tab1 WHERE NULL NOT IN ( col0 * col2 )
----
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( cor0.col2 * - col2 )
----
query III rowsort
SELECT * FROM tab1 WHERE NOT col2 BETWEEN col1 AND col0
----
3
26
54
80
13
96
query I rowsort
SELECT ALL tab0.col0 * + col2 + col2 * + col1 FROM tab0
----
132
14760
3630
query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN col1 * - col2 AND + col1
----
query I rowsort
SELECT col0 + col0 + - col0 AS col1 FROM tab0
----
24
35
89
query I rowsort
SELECT col1 + col0 * col1 FROM tab1
----
104
1053
650
query I rowsort
SELECT + col0 + + col2 AS col1 FROM tab1
----
121
176
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-1521
SELECT ALL - col1 DIV col0 + + col1 * + col0 col0 FROM tab2
----
1343
213
4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1521
SELECT ALL - col1 / col0 + + col1 * + col0 col0 FROM tab2
----
1343
213
4602
query I rowsort
SELECT DISTINCT col2 + + col0 FROM tab2
----
104
117
34
query I rowsort
SELECT col0 * + tab2.col0 FROM tab2
----
49
6084
6241
onlyif mysql # use DIV operator for integer division
query I rowsort label-1524
SELECT + col2 DIV + tab1.col1 FROM tab1
----
2
5
7
skipif mysql # not compatible
query I rowsort label-1524
SELECT + col2 / + tab1.col1 FROM tab1
----
2
5
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-1525
SELECT DISTINCT - col0 DIV - col1 + - col0 FROM tab0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-1525
SELECT DISTINCT - col0 / - col1 + - col0 FROM tab0
----
-24
-35
-89
query I rowsort
SELECT - 1 AS col1 FROM tab1
----
-1
-1
-1
query I rowsort
SELECT col1 + - ( - col1 ) AS col2 FROM tab1 AS cor0
----
20
26
52
query I rowsort
SELECT cor0.col2 + 93 * - col0 FROM tab2 AS cor0
----
-624
-7228
-7309
query I rowsort
SELECT DISTINCT 46 AS col1 FROM tab2, tab1, tab1 AS cor0
----
46
query I rowsort
SELECT - col1 + + ( col0 ) AS col0 FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT - col0 - - col1 FROM tab0 AS cor0
----
2
62
62
query I rowsort
SELECT ALL col0 + 77 * col2 AS col2 FROM tab2 AS cor0
----
2080
2086
3005
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( col0 ) + col0 col2 FROM tab0 cor0
----
178
48
70
query I rowsort
SELECT - col2 * - cor0.col1 AS col0 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT DISTINCT - - 3 FROM tab0 AS cor0
----
3
query I rowsort
SELECT DISTINCT + - col2 + col1 AS col1 FROM tab0 AS cor0
----
53
9
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1537
SELECT + - CAST( NULL AS SIGNED ) * - col0 + + col2 * - ( col2 ) + - col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1537
SELECT + - CAST ( NULL AS INTEGER ) * - col0 + + col2 * - ( col2 ) + - col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 23 * col0 col1 FROM tab1 AS cor0
----
-1472
-1840
-69
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + - col1 col1 FROM tab0 AS cor0
----
-172
-182
-194
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1540
SELECT DISTINCT - + CAST( 81 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-81
skipif mysql # not compatible
query I rowsort label-1540
SELECT DISTINCT - + CAST ( 81 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-81
query I rowsort
SELECT + 20 * + col1 AS col1 FROM tab0 cor0
----
1720
1820
1940
query I rowsort
SELECT - ( - 92 ) FROM tab1 AS cor0
----
92
92
92
query I rowsort
SELECT ALL col0 * ( - col1 ) - + tab0.col0 AS col1 FROM tab0
----
-2088
-3430
-8188
query I rowsort
SELECT 76 + 38 + - col1 FROM tab1 AS cor0
----
101
104
88
query I rowsort
SELECT + - col2 * col0 * - col1 + - cor0.col1 + + col1 AS col1 FROM tab0 AS cor0
----
3395
664118
68112
query I rowsort
SELECT 18 * + cor0.col0 AS col0 FROM tab0 AS cor0
----
1602
432
630
query I rowsort
SELECT - ( - col0 ) + + col2 + col2 AS col2 FROM tab1 AS cor0
----
111
178
272
query I rowsort
SELECT - cor0.col2 + + col2 * + 28 AS col1 FROM tab0 AS cor0
----
2214
27
891
query I rowsort
SELECT - cor0.col0 * col2 + + 99 + - col0 * col0 AS col2 FROM tab1 AS cor0
----
-13981
-72
-7645
query I rowsort
SELECT 47 * + cor0.col2 FROM tab1, tab0 AS cor0
----
9 values hashing to f914ae4533844db68702949391c4acd3
query I rowsort
SELECT DISTINCT tab1.col0 AS col1 FROM tab1, tab1 cor0, tab0 AS cor1
----
3
64
80
query I rowsort
SELECT DISTINCT - - 47 + + col1 * + 90 + col2 AS col2 FROM tab2 cor0
----
1615
2864
5383
query I rowsort
SELECT - cor0.col2 + col0 - + ( - col0 ) * + col1 AS col2 FROM tab0 AS cor0
----
2055
3429
8106
query I rowsort
SELECT - col2 * - col0 * - col2 + - 85 - - cor0.col0 AS col0 FROM tab2 AS cor0
----
-114082
-5181
-52735
query I rowsort
SELECT - + 95 + col2 AS col2 FROM tab2 AS cor0
----
-57
-68
-69
query I rowsort
SELECT - col2 + col0 * - 27 AS col0 FROM tab2 AS cor0
----
-2132
-216
-2171
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 9 col1 FROM tab1
----
9
9
9
query I rowsort
SELECT ALL - - 91 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to deebbcfb9c7803a34dca6bd860849afe
query I rowsort
SELECT tab0.col0 * + col0 AS col2 FROM tab0
----
1225
576
7921
query I rowsort
SELECT DISTINCT + 40 FROM tab1
----
40
query I rowsort
SELECT ALL + 13 * + col2 FROM tab2 AS cor0
----
338
351
494
onlyif mysql # use DIV operator for integer division
query I rowsort label-1562
SELECT DISTINCT - - col0 * + col0 + CAST( col2 AS SIGNED ) DIV cor0.col1 FROM tab2 cor0
----
49
6084
6243
skipif mysql # not compatible
query I rowsort label-1562
SELECT DISTINCT - - col0 * + col0 + CAST ( col2 AS INTEGER ) / cor0.col1 FROM tab2 cor0
----
49
6084
6243
query I rowsort
SELECT - col2 + cor0.col0 AS col1 FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT DISTINCT + 50 FROM tab2
----
50
query I rowsort
SELECT - - col0 * + col2 + + 39 AS col0 FROM tab0 AS cor0
----
7337
74
831
query I rowsort
SELECT ALL - + cor0.col1 * + col2 + ( + col1 ) AS col2 FROM tab0 AS cor0
----
-2752
-7371
0
query I rowsort
SELECT ALL + 18 FROM tab2
----
18
18
18
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1568
SELECT ALL - CAST( - cor1.col0 AS SIGNED ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63
skipif mysql # not compatible
query I rowsort label-1568
SELECT ALL - CAST ( - cor1.col0 AS INTEGER ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1569
SELECT + col0 + CAST( NULL AS DECIMAL ) AS col2 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1569
SELECT + col0 + CAST ( NULL AS REAL ) AS col2 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - cor0.col2 + cor0.col1 * + col1 AS col0 FROM tab0 AS cor0
----
7363
8199
9408
query I rowsort
SELECT ALL + 65 FROM tab2, tab1 AS cor0
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805
query I rowsort
SELECT ALL 9 FROM tab0
----
9
9
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-1573
SELECT 30 DIV - tab0.col0 AS col1 FROM tab0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-1573
SELECT 30 / - tab0.col0 AS col1 FROM tab0
----
-1
0
0
query I rowsort
SELECT + + col2 * - 79 FROM tab1 AS cor0
----
-4266
-4503
-7584
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 72 col2 FROM tab2 AS cor0
----
-72
-72
-72
query I rowsort
SELECT ( 28 ) FROM tab0 AS cor0
----
28
28
28
query I rowsort
SELECT ALL 81 FROM tab1, tab2 cor0, tab2 AS cor1, tab0 AS cor2
----
81 values hashing to 50d500b1082f81e0b02096b2afac91cd
onlyif mysql # use DIV operator for integer division
query I rowsort label-1578
SELECT - cor0.col1 + + col1 DIV + ( - col1 + col2 * - col2 ) FROM tab0 AS cor0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-1578
SELECT - cor0.col1 + + col1 / + ( - col1 + col2 * - col2 ) FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT DISTINCT + col0 + - col1 * col1 + col0 * - 86 AS col2 FROM tab0
----
-12384
-15846
-9436
query I rowsort
SELECT + col0 - ( 10 ) * col0 FROM tab2 AS cor0
----
-63
-702
-711
query I rowsort
SELECT DISTINCT + - col2 * col1 AS col1 FROM tab1 cor0
----
-1248
-1404
-570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 * 10 + - col0 col1 FROM tab0 AS cor0
----
-264
-385
-979
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1583
SELECT + + col0 * + 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-1583
SELECT + + col0 * + CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-1584
SELECT ALL - cor0.col1 + + cor0.col2 DIV - col2 AS col0 FROM tab1 cor0
----
-11
-14
-27
skipif mysql # not compatible
query I rowsort label-1584
SELECT ALL - cor0.col1 + + cor0.col2 / - col2 AS col0 FROM tab1 cor0
----
-11
-14
-27
query I rowsort
SELECT - col2 + - col1 + - ( - cor0.col1 ) FROM tab1 AS cor0
----
-54
-57
-96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1586
SELECT ALL - col2 + CAST( - 22 AS SIGNED ) * - col2 AS col2 FROM tab1 cor0
----
1134
1197
2016
skipif mysql # not compatible
query I rowsort label-1586
SELECT ALL - col2 + CAST ( - 22 AS INTEGER ) * - col2 AS col2 FROM tab1 cor0
----
1134
1197
2016
query I rowsort
SELECT ALL col1 * + 37 AS col2 FROM tab0 AS cor0
----
3182
3367
3589
query I rowsort
SELECT DISTINCT cor0.col2 + + cor0.col0 * ( col1 ) * col0 AS col1 FROM tab0 AS cor0
----
118826
49569
720893
onlyif mysql # use DIV operator for integer division
query I rowsort label-1589
SELECT DISTINCT col2 DIV + cor0.col1 FROM tab2 AS cor0
----
0
2
skipif mysql # not compatible
query I rowsort label-1589
SELECT DISTINCT col2 / + cor0.col1 FROM tab2 AS cor0
----
0
2
query I rowsort
SELECT cor0.col0 * ( + 32 ) AS col0 FROM tab1 AS cor0
----
2048
2560
96
query I rowsort
SELECT + col2 + ( col2 ) * + 72 AS col1 FROM tab1 AS cor0
----
3942
4161
7008
query I rowsort
SELECT DISTINCT - ( col1 ) * + cor0.col2 + - cor0.col2 * - col0 * - col1 FROM tab2 cor0
----
-121186
-51680
-6696
query I rowsort
SELECT DISTINCT + + col2 + - col0 * + col2 AS col0 FROM tab1 AS cor0
----
-108
-3591
-7584
query I rowsort
SELECT 42 + - 86 * cor0.col1 + - col2 FROM tab1 cor0
----
-1172
-2248
-875
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - 43 ) * + col2 col2 FROM tab2 AS cor0
----
-1118
-1161
-1634
onlyif mysql # use DIV operator for integer division
query I rowsort label-1596
SELECT ALL col2 DIV 61 + - col1 + - cor0.col1 * - cor0.col1 FROM tab2 cor0
----
272
3422
930
skipif mysql # not compatible
query I rowsort label-1596
SELECT ALL col2 / 61 + - col1 + - cor0.col1 * - cor0.col1 FROM tab2 cor0
----
272
3422
930
query I rowsort
SELECT + col1 + + 72 - col0 AS col1 FROM tab0
----
134
134
74
query I rowsort
SELECT ( + col2 ) + + col1 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT - - 8 * - col2 FROM tab1 AS cor0
----
-432
-456
-768
query I rowsort
SELECT ALL 92 FROM tab2 AS cor0
----
92
92
92
query I rowsort
SELECT ALL - col1 - 35 * - col0 AS col1 FROM tab2
----
214
2671
2748
query I rowsort
SELECT ALL - col2 + - col2 * - ( + cor0.col2 ) FROM tab0 AS cor0
----
0
1056
6642
query I rowsort
SELECT - - 96 * col2 AS col2 FROM tab2 AS cor0
----
2496
2592
3648
query I rowsort
SELECT DISTINCT + 96 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
96
query I rowsort
SELECT - 24 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to f2e40f6e5cdbc2877843191cb261975f
query I rowsort
SELECT ALL + - col0 * col0 AS col2 FROM tab1 AS cor0
----
-4096
-6400
-9
query I rowsort
SELECT cor2.col2 FROM tab0, tab2 AS cor0, tab0 AS cor1, tab2 cor2
----
81 values hashing to c4e6b1f1d28e731664a15a6f7cda4da9
query I rowsort
SELECT DISTINCT - col2 + cor0.col0 * col2 AS col1 FROM tab1 AS cor0
----
108
3591
7584
onlyif mysql # use DIV operator for integer division
query I rowsort label-1609
SELECT + 84 + col0 DIV + tab1.col0 FROM tab1
----
85
85
85
skipif mysql # not compatible
query I rowsort label-1609
SELECT + 84 + col0 / + tab1.col0 FROM tab1
----
85
85
85
query I rowsort
SELECT DISTINCT + ( + col0 ) * + 61 FROM tab1
----
183
3904
4880
query I rowsort
SELECT ALL + - col0 * col2 AS col2 FROM tab1 AS cor0
----
-162
-3648
-7680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col2 + + col0 col0 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT DISTINCT + col2 * - 48 + - col1 AS col1 FROM tab0 AS cor0
----
-145
-1670
-4027
query I rowsort
SELECT - col0 * cor0.col2 + col1 * col2 AS col2 FROM tab0 cor0
----
164
2046
62
query I rowsort
SELECT + - col0 * ( col1 ) FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT ALL col0 * cor0.col1 + cor0.col0 AS col1 FROM tab0 AS cor0
----
2088
3430
8188
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1617
SELECT ALL + - col2 * CAST( ( - col0 ) AS SIGNED ) AS col1 FROM tab1 cor0
----
162
3648
7680
skipif mysql # not compatible
query I rowsort label-1617
SELECT ALL + - col2 * CAST ( ( - col0 ) AS INTEGER ) AS col1 FROM tab1 cor0
----
162
3648
7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-1618
SELECT DISTINCT col0 * col2 DIV col2 FROM tab0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-1618
SELECT DISTINCT col0 * col2 / col2 FROM tab0
----
24
35
89
query I rowsort
SELECT ALL + 59 * + col2 AS col1 FROM tab1
----
3186
3363
5664
onlyif mysql # use DIV operator for integer division
query I rowsort label-1620
SELECT ALL col2 DIV - tab2.col0 FROM tab2
----
-3
0
0
skipif mysql # not compatible
query I rowsort label-1620
SELECT ALL col2 / - tab2.col0 FROM tab2
----
-3
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-1621
SELECT ALL 7 * + col0 DIV - col0 FROM tab2
----
-7
-7
-7
skipif mysql # not compatible
query I rowsort label-1621
SELECT ALL 7 * + col0 / - col0 FROM tab2
----
-7
-7
-7
query I rowsort
SELECT ALL ( col2 ) * 84 FROM tab0
----
2772
6888
84
query I rowsort
SELECT ALL + 93 * + col2 FROM tab1
----
5022
5301
8928
query I rowsort
SELECT col2 * + col2 * - cor0.col1 FROM tab2 AS cor0
----
-22599
-24548
-39884
query I rowsort
SELECT + col2 * ( + cor0.col1 ) FROM tab0 cor0
----
2838
7462
97
query I rowsort
SELECT DISTINCT cor0.col2 FROM tab1, tab1 cor0, tab0 AS cor1
----
54
57
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1627
SELECT cor0.col2 * CAST( NULL AS SIGNED ) col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1627
SELECT cor0.col2 * CAST ( NULL AS INTEGER ) col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * 99 col0 FROM tab1 AS cor0
----
1287
2574
990
query I rowsort
SELECT - 86 + + col0 FROM tab1
----
-22
-6
-83
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1630
SELECT ALL cor0.col2 * + CAST( NULL AS SIGNED ) AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-1630
SELECT ALL cor0.col2 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT DISTINCT - cor0.col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-24
-35
-89
query I rowsort
SELECT tab0.col2 * col2 + - ( col1 ) * col1 * ( + tab0.col2 ) FROM tab0
----
-242979
-672318
-9408
query I rowsort
SELECT DISTINCT - tab1.col0 AS col0 FROM tab1, tab0, tab0 AS cor0
----
-3
-64
-80
query I rowsort
SELECT 11 FROM tab0, tab1 AS cor0
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00
query I rowsort
SELECT col0 * col1 + tab0.col2 AS col0 FROM tab0
----
2097
3396
8181
query I rowsort
SELECT ALL - col1 * + 13 + + col0 AS col1 FROM tab0 AS cor0
----
-1094
-1094
-1226
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1637
SELECT ALL - cor0.col0 * - CAST( col2 AS SIGNED ) + col1 col0 FROM tab2 cor0
----
2087
220
3019
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1637
SELECT ALL - cor0.col0 * - CAST ( col2 AS INTEGER ) + col1 col0 FROM tab2 cor0
----
2087
220
3019
query I rowsort
SELECT - - col2 + 42 * - col0 AS col2 FROM tab2 AS cor0
----
-267
-3250
-3280
query I rowsort
SELECT DISTINCT - - col2 * - ( + col2 ) - col0 AS col2 FROM tab0 AS cor0
----
-1113
-36
-6813
query I rowsort
SELECT ALL - - col0 + + col0 AS col2 FROM tab1 cor0
----
128
160
6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col1 ) * + col1 + + 88 + col2 * - col0 col1 FROM tab2
----
-1062
-3203
-5421
query I rowsort
SELECT ( + col1 ) + - col1 FROM tab1
----
0
0
0
query I rowsort
SELECT - 41 * col2 FROM tab2
----
-1066
-1107
-1558
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - 35 + col1 col0 FROM tab1
----
-1864
-1985
-3347
query I rowsort
SELECT + 85 + col2 * col1 AS col0 FROM tab2
----
1619
731
922
query I rowsort
SELECT DISTINCT + tab0.col0 + - tab0.col2 FROM tab0
----
-9
34
7
query I rowsort
SELECT DISTINCT tab1.col1 + col1 FROM tab1
----
20
26
52
onlyif mysql # use DIV operator for integer division
query I rowsort label-1648
SELECT - cor0.col0 DIV + col1 + CAST( - col2 AS SIGNED ) * - cor0.col0 FROM tab1 cor0
----
162
3642
7674
skipif mysql # not compatible
query I rowsort label-1648
SELECT - cor0.col0 / + col1 + CAST ( - col2 AS INTEGER ) * - cor0.col0 FROM tab1 cor0
----
162
3642
7674
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1649
SELECT CAST( ( col1 ) AS SIGNED ) + 32 * 79 AS col1 FROM tab2
----
2545
2559
2587
skipif mysql # not compatible
query I rowsort label-1649
SELECT CAST ( ( col1 ) AS INTEGER ) + 32 * 79 AS col1 FROM tab2
----
2545
2559
2587
query I rowsort
SELECT ALL - 14 FROM tab0, tab0 AS cor0
----
9 values hashing to d321461994ba49c3a70fa6373032fc94
query I rowsort
SELECT col2 + - ( col0 ) FROM tab2
----
-41
-52
20
query I rowsort
SELECT ALL 79 AS col0 FROM tab2 AS cor0
----
79
79
79
onlyif mysql # use DIV operator for integer division
query I rowsort label-1653
SELECT - col1 + col1 DIV - 63 col0 FROM tab2 AS cor0
----
-17
-31
-59
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1653
SELECT - col1 + col1 / - 63 col0 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT DISTINCT + ( col1 ) + col0 AS col0 FROM tab0 AS cor0
----
110
132
180
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 5 col2 FROM tab2 AS cor0
----
5
5
5
query I rowsort
SELECT DISTINCT + 1 * + col2 + col1 FROM tab2 cor0
----
55
58
85
query I rowsort
SELECT tab2.col1 + - 80 FROM tab2, tab0 AS cor0
----
9 values hashing to a7730d4c03ae4043a756d27ad85dcb2d
onlyif mysql # use DIV operator for integer division
query I rowsort label-1658
SELECT ALL + + col2 * + cor0.col0 + + 78 DIV cor0.col0 AS col0 FROM tab1 AS cor0
----
188
3649
7680
skipif mysql # not compatible
query I rowsort label-1658
SELECT ALL + + col2 * + cor0.col0 + + 78 / cor0.col0 AS col0 FROM tab1 AS cor0
----
188
3649
7680
query I rowsort
SELECT + 8 AS col0 FROM tab2 AS cor0
----
8
8
8
query I rowsort
SELECT ALL - + 19 * + col2 - - col2 FROM tab2 AS cor0
----
-468
-486
-684
query I rowsort
SELECT ALL - cor0.col0 + - col1 AS col0 FROM tab2 AS cor0
----
-137
-38
-96
query I rowsort
SELECT ALL + 86 + col1 FROM tab1 AS cor0
----
112
96
99
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1663
SELECT DISTINCT CAST( col1 AS SIGNED ) + - col1 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-1663
SELECT DISTINCT CAST ( col1 AS INTEGER ) + - col1 FROM tab0 AS cor0
----
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1664
SELECT ALL + ( col2 ) * cor0.col1 * + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1664
SELECT ALL + ( col2 ) * cor0.col1 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col0 * - 38 + col2 FROM tab1 AS cor0
----
-2375
-2944
-60
onlyif mysql # use DIV operator for integer division
query I rowsort label-1666
SELECT + col0 DIV col1 AS col2 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1666
SELECT + col0 / col1 AS col2 FROM tab0
----
0
0
0
query IIIIIIIIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0, tab2 cor1, tab2, tab2 AS cor2, tab1 AS cor3
----
13122 values hashing to 4e65cc8a72ec955dbc0330ab30556ee6
query I rowsort
SELECT + + cor1.col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
query I rowsort
SELECT ALL - ( + 11 + - col1 * ( - col2 ) ) FROM tab2
----
-1545
-657
-848
query I rowsort
SELECT - + 49 + col0 * col0 AS col1 FROM tab0 cor0
----
1176
527
7872
query I rowsort
SELECT 94 + col1 AS col0 FROM tab1 AS cor0
----
104
107
120
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 87 col0 FROM tab2
----
87
87
87
query I rowsort
SELECT DISTINCT + 59 + + col1 + col0 AS col1 FROM tab0 AS cor0
----
169
191
239
query I rowsort
SELECT ALL - col0 - + col1 * + cor0.col0 AS col2 FROM tab0 AS cor0
----
-2088
-3430
-8188
query I rowsort
SELECT - - ( - col0 ) * 3 FROM tab1 AS cor0
----
-192
-240
-9
query I rowsort
SELECT DISTINCT cor0.col0 * 78 AS col1 FROM tab1, tab0 AS cor0
----
1872
2730
6942
query I rowsort
SELECT ALL col1 - col0 AS col0 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT col0 + col1 * + col2 FROM tab0 AS cor0
----
132
2862
7551
onlyif mysql # use DIV operator for integer division
query I rowsort label-1679
SELECT + col0 DIV + 79 FROM tab2
----
0
0
1
skipif mysql # not compatible
query I rowsort label-1679
SELECT + col0 / + 79 FROM tab2
----
0
0
1
query I rowsort
SELECT ( cor0.col1 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1681
SELECT - col2 - - CAST( + col0 AS SIGNED ) * col0 AS col0 FROM tab2 cor0
----
22
6058
6203
skipif mysql # not compatible
query I rowsort label-1681
SELECT - col2 - - CAST ( + col0 AS INTEGER ) * col0 AS col0 FROM tab2 cor0
----
22
6058
6203
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + cor0.col1 * + col0 col0 FROM tab0 AS cor0
----
2150
3492
8190
query I rowsort
SELECT DISTINCT - ( + cor1.col0 ) AS col2 FROM tab0, tab2, tab1 AS cor0, tab1 cor1
----
-3
-64
-80
onlyif mysql # use DIV operator for integer division
query I rowsort label-1684
SELECT col2 * col2 * col0 - + col2 DIV + col2 AS col0 FROM tab0
----
26135
34
598435
skipif mysql # not compatible
query I rowsort label-1684
SELECT col2 * col2 * col0 - + col2 / + col2 AS col0 FROM tab0
----
26135
34
598435
query I rowsort
SELECT DISTINCT col2 * 16 * 2 FROM tab1
----
1728
1824
3072
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1686
SELECT ALL + col0 / CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1686
SELECT ALL + col0 / CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + 80 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94
query I rowsort
SELECT - cor0.col2 + col0 * col1 AS col1 FROM tab0 AS cor0
----
2031
3394
8017
query I rowsort
SELECT cor0.col0 * - 89 * - cor0.col2 AS col0 FROM tab2 AS cor0
----
16821
180492
267178
query I rowsort
SELECT cor0.col2 * + col0 + + col0 AS col1 FROM tab2 AS cor0
----
196
2106
3081
query I rowsort
SELECT DISTINCT - ( cor0.col1 ) * + col0 AS col0 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT + ( - col2 ) * col2 FROM tab2 AS cor0
----
-1444
-676
-729
onlyif mysql # use DIV operator for integer division
query I rowsort label-1693
SELECT + CAST( - col1 AS SIGNED ) DIV + col2 + - 42 * + col2 FROM tab0 AS cor0
----
-1388
-139
-3445
skipif mysql # not compatible
query I rowsort label-1693
SELECT + CAST ( - col1 AS INTEGER ) / + col2 + - 42 * + col2 FROM tab0 AS cor0
----
-1388
-139
-3445
query I rowsort
SELECT ALL - 97 + col1 * + col1 FROM tab2 cor0
----
192
3384
864
query I rowsort
SELECT ALL - 42 + - cor0.col2 FROM tab0 AS cor0
----
-124
-43
-75
query I rowsort
SELECT + ( col1 ) + - col2 FROM tab2 AS cor0
----
-21
33
4
onlyif mysql # use DIV operator for integer division
query I rowsort label-1697
SELECT DISTINCT + 43 + + 58 DIV - col1 FROM tab1 AS cor0
----
38
39
41
skipif mysql # not compatible
query I rowsort label-1697
SELECT DISTINCT + 43 + + 58 / - col1 FROM tab1 AS cor0
----
38
39
41
query I rowsort
SELECT + col1 + - 54 FROM tab0 AS cor0
----
32
37
43
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + col1 * col0 col1 FROM tab2 cor0
----
106097
1519
358956
query I rowsort
SELECT DISTINCT tab2.col0 AS col0 FROM tab2, tab0 AS cor0
----
7
78
79
query I rowsort
SELECT DISTINCT - col0 * + col0 * + col2 FROM tab0
----
-1225
-19008
-649522
onlyif mysql # use DIV operator for integer division
query I rowsort label-1702
SELECT DISTINCT 66 DIV + col0 - - col0 FROM tab2 AS cor0
----
16
78
79
skipif mysql # not compatible
query I rowsort label-1702
SELECT DISTINCT 66 / + col0 - - col0 FROM tab2 AS cor0
----
16
78
79
query I rowsort
SELECT ALL ( + col2 ) + + col0 AS col1 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT - - ( - 19 ) AS col0 FROM tab2 AS cor0
----
-19
-19
-19
query I rowsort
SELECT ALL - 88 * + cor0.col0 + - col0 FROM tab0 AS cor0
----
-2136
-3115
-7921
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * col2 col1 FROM tab1 cor0
----
162
3648
7680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * + col1 - - col2 col1 FROM tab0 AS cor0
----
-7363
-8199
-9408
query I rowsort
SELECT 43 * col2 FROM tab2 AS cor0
----
1118
1161
1634
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + col2 col1 FROM tab2 cor0
----
1534
646
837
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1710
SELECT + 16 + - col2 * + CAST( col2 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-1428
-660
-713
skipif mysql # not compatible
query I rowsort label-1710
SELECT + 16 + - col2 * + CAST ( col2 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-1428
-660
-713
query I rowsort
SELECT - 4 + + col2 * - col1 AS col0 FROM tab2 AS cor0
----
-1538
-650
-841
query I rowsort
SELECT ALL + - col2 * - col0 AS col1 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT + cor0.col0 + + col1 FROM tab1 AS cor0
----
29
74
93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col0 col0 FROM tab1
----
1040
640
78
query I rowsort
SELECT 55 * col0 + - ( - cor0.col1 ) FROM tab1 AS cor0
----
191
3530
4413
query I rowsort
SELECT DISTINCT - col0 + col1 * - 68 AS col1 FROM tab1 AS cor0
----
-1771
-744
-964
query I rowsort
SELECT - - 98 * + cor0.col1 + + ( 89 ) FROM tab0 cor0
----
8517
9007
9595
query I rowsort
SELECT ALL col2 * 3 AS col0 FROM tab2 AS cor0
----
114
78
81
query I rowsort
SELECT DISTINCT - col2 * cor0.col2 + - col2 AS col1 FROM tab2 AS cor0
----
-1482
-702
-756
onlyif mysql # use DIV operator for integer division
query I rowsort label-1720
SELECT + 63 DIV col0 + + col2 * + 35 AS col2 FROM tab1
----
1911
1995
3360
skipif mysql # not compatible
query I rowsort label-1720
SELECT + 63 / col0 + + col2 * + 35 AS col2 FROM tab1
----
1911
1995
3360
onlyif mysql # use DIV operator for integer division
query I rowsort label-1721
SELECT DISTINCT col1 DIV + 16 FROM tab2
----
1
3
skipif mysql # not compatible
query I rowsort label-1721
SELECT DISTINCT col1 / + 16 FROM tab2
----
1
3
query I rowsort
SELECT ALL + ( + 60 ) FROM tab0, tab1, tab0 cor0
----
27 values hashing to 1d2ab302ae60f95b15e68cf89083b162
query I rowsort
SELECT DISTINCT - - col1 - cor0.col2 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT ALL - col1 * + col1 * 98 AS col1 FROM tab0 AS cor0
----
-724808
-811538
-922082
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + col1 col1 FROM tab1 AS cor0
----
-28
-47
-83
onlyif mysql # use DIV operator for integer division
query I rowsort label-1726
SELECT ALL + col2 DIV + col1 + - col1 * + col2 + col2 AS col1 FROM tab0 AS cor0
----
-2805
-7380
-96
skipif mysql # not compatible
query I rowsort label-1726
SELECT ALL + col2 / + col1 + - col1 * + col2 + col2 AS col1 FROM tab0 AS cor0
----
-2805
-7380
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-1727
SELECT ALL - 96 DIV col2 FROM tab1 cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-1727
SELECT ALL - 96 / col2 FROM tab1 cor0
----
-1
-1
-1
query I rowsort
SELECT + + 47 + + col1 FROM tab0 AS cor0
----
133
138
144
onlyif mysql # use DIV operator for integer division
query I rowsort label-1729
SELECT ALL ( + cor0.col0 ) DIV + cor0.col2 AS col2 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 1637c01c1103272666b1cc3d663ead40
skipif mysql # not compatible
query I rowsort label-1729
SELECT ALL ( + cor0.col0 ) / + cor0.col2 AS col2 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 1637c01c1103272666b1cc3d663ead40
query I rowsort
SELECT ( + col2 * - col2 ) + + 54 FROM tab2
----
-1390
-622
-675
query I rowsort
SELECT ALL - + col1 * - col0 + - col2 + + cor0.col0 AS col0 FROM tab1 AS cor0
----
1024
27
647
query I rowsort
SELECT col0 * col2 + col2 FROM tab0 AS cor0
----
36
7380
825
query I rowsort
SELECT ALL + col1 * + col1 + col0 AS col2 FROM tab1 AS cor0
----
164
249
679
query I rowsort
SELECT DISTINCT + ( + col1 ) * + 81 + 14 FROM tab1 AS cor0
----
1067
2120
824
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 89 col2 FROM tab1 AS cor0
----
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-1736
SELECT - + 25 DIV col2 AS col2 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1736
SELECT - + 25 / col2 AS col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - 96 + col0 * col0 FROM tab0 AS cor0
----
1129
480
7825
onlyif mysql # use DIV operator for integer division
query I rowsort label-1738
SELECT DISTINCT - ( + col2 ) DIV - col0 + + col2 * + col0 AS col2 FROM tab1 AS cor0
----
180
3648
7681
skipif mysql # not compatible
query I rowsort label-1738
SELECT DISTINCT - ( + col2 ) / - col0 + + col2 * + col0 AS col2 FROM tab1 AS cor0
----
180
3648
7681
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 6 col0 FROM tab2 AS cor0
----
6
query I rowsort
SELECT DISTINCT col1 + ( col1 * + cor0.col0 ) FROM tab0 cor0
----
2150
3492
8190
onlyif mysql # use DIV operator for integer division
query I rowsort label-1741
SELECT ALL col1 DIV col1 - + cor0.col1 FROM tab1 AS cor0
----
-12
-25
-9
skipif mysql # not compatible
query I rowsort label-1741
SELECT ALL col1 / col1 - + cor0.col1 FROM tab1 AS cor0
----
-12
-25
-9
onlyif mysql # use DIV operator for integer division
query I rowsort label-1742
SELECT DISTINCT + - col0 * 61 DIV 6 FROM tab0 cor0
----
-244
-355
-904
skipif mysql # not compatible
query I rowsort label-1742
SELECT DISTINCT + - col0 * 61 / 6 FROM tab0 cor0
----
-244
-355
-904
query I rowsort
SELECT col2 * ( + col1 ) * + col0 + - 98 + - ( cor0.col1 ) AS col2 FROM tab2 cor0
----
119495
50919
5730
query I rowsort
SELECT col0 * + ( 31 ) + col0 * col0 FROM tab0
----
10680
1320
2310
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1745
SELECT + cor0.col0 + + CAST( + 53 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
117
133
56
skipif mysql # not compatible
query I rowsort label-1745
SELECT + cor0.col0 + + CAST ( + 53 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
117
133
56
query I rowsort
SELECT col2 + ( - col0 ) * col1 FROM tab0 AS cor0
----
-2031
-3394
-8017
query I rowsort
SELECT DISTINCT 69 + - col1 FROM tab2 cor0
----
10
38
52
query I rowsort
SELECT DISTINCT + 43 + + 27 FROM tab0 AS cor0
----
70
query I rowsort
SELECT 67 * + cor0.col2 AS col1 FROM tab2 AS cor0
----
1742
1809
2546
query I rowsort
SELECT DISTINCT - col2 - + col2 FROM tab1 AS cor0
----
-108
-114
-192
query I rowsort
SELECT DISTINCT - cor0.col2 * - 55 + + col0 AS col1 FROM tab0 AS cor0
----
1839
4599
90
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab0 cor0, tab0 AS cor1, tab1 cor2
----
972 values hashing to 5621675b1bd32b061d284d0444c76601
query I rowsort
SELECT ALL 30 * 44 - col2 FROM tab0 AS cor0
----
1238
1287
1319
onlyif mysql # use DIV operator for integer division
query I rowsort label-1754
SELECT DISTINCT - col2 * col0 + - col2 * col0 DIV - 8 AS col2 FROM tab2
----
-166
-1775
-2627
skipif mysql # not compatible
query I rowsort label-1754
SELECT DISTINCT - col2 * col0 + - col2 * col0 / - 8 AS col2 FROM tab2
----
-166
-1775
-2627
query I rowsort
SELECT DISTINCT - col1 + - 63 FROM tab2 AS cor0
----
-122
-80
-94
query I rowsort
SELECT ALL ( + ( + col0 ) ) - col0 FROM tab1 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor1.col2 * cor1.col2 col1 FROM tab2, tab1 AS cor0, tab2 cor1
----
27 values hashing to 111df31a7673b6df0bd01dfa87fa60a8
query I rowsort
SELECT ALL - col1 - + 67 * - cor0.col0 AS col0 FROM tab1 AS cor0
----
175
4278
5347
query I rowsort
SELECT ALL - 11 + col1 AS col1 FROM tab0 AS cor0
----
75
80
86
query I rowsort
SELECT ALL + - col2 * - col0 - col0 AS col2 FROM tab1 AS cor0
----
159
3584
7600
query I rowsort
SELECT - 71 + 7 * col0 FROM tab0 AS cor0
----
174
552
97
query I rowsort
SELECT DISTINCT + + col1 * + col0 AS col1 FROM tab1 cor0
----
1040
640
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-1763
SELECT ALL col0 DIV + 72 col0 FROM tab2 AS cor0
----
0
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1763
SELECT ALL col0 / + 72 col0 FROM tab2 AS cor0
----
0
1
1
query I rowsort
SELECT ALL - col2 * 8 + + col0 AS col0 FROM tab2 AS cor0
----
-130
-209
-225
query I rowsort
SELECT DISTINCT - 15 - col0 AS col0 FROM tab2 cor0
----
-22
-93
-94
query I rowsort
SELECT DISTINCT + 79 * + col1 * - tab2.col2 FROM tab2
----
-121186
-51034
-66123
query I rowsort
SELECT + - cor0.col2 + 75 * cor0.col0 FROM tab1 AS cor0
----
171
4743
5904
query I rowsort
SELECT 84 + - col2 * col2 FROM tab1 AS cor0
----
-2832
-3165
-9132
query I rowsort
SELECT DISTINCT - + ( - col1 ) AS col2 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT 68 * col0 + col0 * col2 FROM tab2 AS cor0
----
665
7332
8374
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1771
SELECT ALL - - CAST( NULL AS SIGNED ) * + cor0.col1 * - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1771
SELECT ALL - - CAST ( NULL AS INTEGER ) * + cor0.col1 * - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - - col2 * - ( + col1 * ( 55 ) ) FROM tab2 AS cor0
----
-35530
-46035
-84370
query I rowsort
SELECT + cor0.col2 + cor0.col1 AS col0 FROM tab2 cor0
----
55
58
85
query I rowsort
SELECT 70 FROM tab1, tab0 cor0 CROSS JOIN tab0
----
27 values hashing to c76157a7a7ec18de56823b2058b49f32
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1775
SELECT col2 * + col2 * col1 + + CAST( + col2 AS SIGNED ) AS col0 FROM tab1
----
119904
32547
75870
skipif mysql # not compatible
query I rowsort label-1775
SELECT col2 * + col2 * col1 + + CAST ( + col2 AS INTEGER ) AS col0 FROM tab1
----
119904
32547
75870
query I rowsort
SELECT + col1 + - ( + col0 + col2 ) FROM tab0 AS cor0
----
-80
29
61
query I rowsort
SELECT + cor0.col2 + col1 + - col0 AS col2 FROM tab1 AS cor0
----
29
3
77
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1778
SELECT col1 * ( + 85 ) + + col1 + + CAST( NULL AS DECIMAL ) * + cor0.col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1778
SELECT col1 * ( + 85 ) + + col1 + + CAST ( NULL AS REAL ) * + cor0.col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - tab2.col1 + - col2 + - col2 FROM tab2
----
-111
-85
-93
query I rowsort
SELECT ALL + col2 + ( + 72 ) FROM tab0
----
105
154
73
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1781
SELECT DISTINCT + col0 + CAST( NULL AS SIGNED ) * col1 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-1781
SELECT DISTINCT + col0 + CAST ( NULL AS INTEGER ) * col1 FROM tab0
----
NULL
query I rowsort
SELECT col0 * 53 FROM tab1
----
159
3392
4240
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col1 * col0 col1 FROM tab1
----
1120
704
81
query I rowsort
SELECT DISTINCT col2 + col0 * + 79 + - col1 AS col1 FROM tab1
----
265
5103
6403
query I rowsort
SELECT col0 - 19 FROM tab2
----
-12
59
60
query I rowsort
SELECT - tab1.col2 * ( tab1.col1 + tab1.col0 ) * ( 4 + - col2 ) AS col2 FROM tab1
----
223554
78300
821376
query I rowsort
SELECT ALL + col1 + + col2 + col2 AS col2 FROM tab2
----
111
85
93
query I rowsort
SELECT col0 * + ( + col0 ) AS col2 FROM tab2
----
49
6084
6241
query I rowsort
SELECT col2 * + col2 * + tab2.col2 AS col1 FROM tab2
----
17576
19683
54872
onlyif mysql # use DIV operator for integer division
query I rowsort label-1790
SELECT DISTINCT + col1 DIV - col2 FROM tab0
----
-1
-2
-97
skipif mysql # not compatible
query I rowsort label-1790
SELECT DISTINCT + col1 / - col2 FROM tab0
----
-1
-2
-97
query I rowsort
SELECT ALL tab2.col1 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
query I rowsort
SELECT DISTINCT 9 * - 66 FROM tab1, tab1 AS cor0
----
-594
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * + 59 col0 FROM tab0
----
-5074
-5369
-5723
query I rowsort
SELECT ALL 15 FROM tab2, tab1 cor0, tab1 AS cor1
----
27 values hashing to 71dda9a71fc978ea7b0ac5d8cd2ef1f0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 97 + + col1 * tab1.col1 col2 FROM tab1
----
3
579
72
query I rowsort
SELECT ALL 95 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3
onlyif mysql # use DIV operator for integer division
query I rowsort label-1797
SELECT - 59 DIV - col1 AS col0 FROM tab2 AS cor0
----
1
1
3
skipif mysql # not compatible
query I rowsort label-1797
SELECT - 59 / - col1 AS col0 FROM tab2 AS cor0
----
1
1
3
query I rowsort
SELECT col2 + col1 * + cor0.col1 * + 18 AS col2 FROM tab0 cor0
----
133161
149140
169363
query I rowsort
SELECT DISTINCT 44 AS col1 FROM tab0
----
44
onlyif mysql # use DIV operator for integer division
query I rowsort label-1800
SELECT col1 * col2 DIV col0 AS col1 FROM tab1
----
15
468
8
skipif mysql # not compatible
query I rowsort label-1800
SELECT col1 * col2 / col0 AS col1 FROM tab1
----
15
468
8
query I rowsort
SELECT col2 - col2 AS col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT - col2 * - cor0.col0 + 11 + - cor0.col0 AS col1 FROM tab0 AS cor0
----
11
7220
779
onlyif mysql # use DIV operator for integer division
query I rowsort label-1803
SELECT + col2 DIV - col1 FROM tab2
----
-2
0
0
skipif mysql # not compatible
query I rowsort label-1803
SELECT + col2 / - col1 FROM tab2
----
-2
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-1804
SELECT ALL 14 + col2 DIV + 79 - + tab0.col0 AS col0 FROM tab0
----
-10
-21
-74
skipif mysql # not compatible
query I rowsort label-1804
SELECT ALL 14 + col2 / + 79 - + tab0.col0 AS col0 FROM tab0
----
-10
-21
-74
query I rowsort
SELECT + col1 * + col0 * - col0 AS col2 FROM tab2
----
-106097
-1519
-358956
query I rowsort
SELECT ALL - ( + tab1.col2 ) FROM tab1
----
-54
-57
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-1807
SELECT + col2 DIV + tab2.col1 FROM tab2
----
0
0
2
skipif mysql # not compatible
query I rowsort label-1807
SELECT + col2 / + tab2.col1 FROM tab2
----
0
0
2
query I rowsort
SELECT 5 AS col1 FROM tab1 cor0
----
5
5
5
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775
query I rowsort
SELECT col1 * + col0 * + col1 AS col1 FROM tab2
----
22831
271518
6727
query I rowsort
SELECT - 39 * 25 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to c3180f59165cb9f923dc41b644d0fa35
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1812
SELECT CAST( + col1 AS SIGNED ) AS col2 FROM tab0 cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-1812
SELECT CAST ( + col1 AS INTEGER ) AS col2 FROM tab0 cor0
----
86
91
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-1813
SELECT ALL + col1 DIV + 74 AS col2 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-1813
SELECT ALL + col1 / + 74 AS col2 FROM tab0 AS cor0
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 62 col2 FROM tab0 AS cor0
----
62
query I rowsort
SELECT ALL + + ( - col1 ) + cor0.col2 * col2 + + col1 * + cor0.col2 FROM tab0 AS cor0
----
1
14095
3841
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1816
SELECT - CAST( 87 AS SIGNED ) FROM tab2 AS cor0
----
-87
-87
-87
skipif mysql # not compatible
query I rowsort label-1816
SELECT - CAST ( 87 AS INTEGER ) FROM tab2 AS cor0
----
-87
-87
-87
query I rowsort
SELECT - cor0.col0 * 25 + - cor0.col1 * 37 AS col1 FROM tab0 AS cor0
----
-3782
-4464
-5592
query I rowsort
SELECT ( + col1 + col2 ) * - col2 AS col0 FROM tab2
----
-1566
-2090
-2210
query I rowsort
SELECT DISTINCT - 64 FROM tab1, tab2 AS cor0
----
-64
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1820
SELECT ALL + CAST( col0 AS SIGNED ) AS col0 FROM tab2
----
7
78
79
skipif mysql # not compatible
query I rowsort label-1820
SELECT ALL + CAST ( col0 AS INTEGER ) AS col0 FROM tab2
----
7
78
79
query I rowsort
SELECT - ( 72 ) FROM tab2
----
-72
-72
-72
query I rowsort
SELECT ALL col0 * - ( col0 ) FROM tab2
----
-49
-6084
-6241
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1823
SELECT DISTINCT - CAST( NULL AS SIGNED ) + col0 * col1 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-1823
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + col0 * col1 FROM tab1
----
NULL
query I rowsort
SELECT col0 - + tab2.col2 * col2 AS col1 FROM tab2
----
-1365
-598
-722
query I rowsort
SELECT DISTINCT - tab0.col0 + - 96 FROM tab0
----
-120
-131
-185
query I rowsort
SELECT ( 74 ) + + col1 FROM tab0
----
160
165
171
query I rowsort
SELECT ( + 63 ) * + col1 FROM tab0
----
5418
5733
6111
query I rowsort
SELECT DISTINCT 9 + - ( + col1 ) AS col0 FROM tab0
----
-77
-82
-88
query I rowsort
SELECT - 44 + col1 FROM tab1 cor0
----
-18
-31
-34
query I rowsort
SELECT - + 5 FROM tab0 AS cor0
----
-5
-5
-5
query I rowsort
SELECT ALL 61 AS col2 FROM tab1
----
61
61
61
query I rowsort
SELECT ALL - 82 - - col0 * + col2 FROM tab2 AS cor0
----
107
1946
2920
query I rowsort
SELECT + col1 * col2 + + col0 FROM tab0 AS cor0
----
132
2862
7551
query I rowsort
SELECT DISTINCT + col2 * - col2 AS col2 FROM tab2 AS cor0
----
-1444
-676
-729
query I rowsort
SELECT DISTINCT + + 52 * - cor0.col1 FROM tab0 AS cor0
----
-4472
-4732
-5044
onlyif mysql # use DIV operator for integer division
query I rowsort label-1836
SELECT ALL + 87 + cor0.col2 DIV col0 FROM tab2 AS cor0
----
87
87
90
skipif mysql # not compatible
query I rowsort label-1836
SELECT ALL + 87 + cor0.col2 / col0 FROM tab2 AS cor0
----
87
87
90
query I rowsort
SELECT DISTINCT - + col0 + col2 FROM tab2 cor0
----
-41
-52
20
query I rowsort
SELECT ALL col1 * - col2 * + col0 FROM tab2 AS cor0
----
-119652
-51034
-5859
query I rowsort
SELECT DISTINCT col1 + + col0 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT - 0 AS col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL cor0.col0 + + col1 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT ALL + col2 + col2 * col1 * + col0 FROM tab1
----
36537
4266
99936
query I rowsort
SELECT col2 + 99 FROM tab2 AS cor0
----
125
126
137
onlyif mysql # use DIV operator for integer division
query I rowsort label-1844
SELECT - + col0 * + ( col2 ) + col2 DIV + col0 AS col2 FROM tab1 AS cor0
----
-144
-3648
-7679
skipif mysql # not compatible
query I rowsort label-1844
SELECT - + col0 * + ( col2 ) + col2 / + col0 AS col2 FROM tab1 AS cor0
----
-144
-3648
-7679
query I rowsort
SELECT - cor0.col1 + 68 FROM tab1 AS cor0
----
42
55
58
query I rowsort
SELECT col2 + - col1 - - col0 * + col1 * col2 FROM tab0 AS cor0
----
3299
664109
68059
query I rowsort
SELECT + col0 * + 96 FROM tab2 AS cor0
----
672
7488
7584
onlyif mysql # use DIV operator for integer division
query I rowsort label-1848
SELECT ALL - + 41 + - 27 DIV + cor0.col1 FROM tab1 AS cor0
----
-42
-43
-43
skipif mysql # not compatible
query I rowsort label-1848
SELECT ALL - + 41 + - 27 / + cor0.col1 FROM tab1 AS cor0
----
-42
-43
-43
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1849
SELECT - CAST( NULL AS SIGNED ) + col0 * col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1849
SELECT - CAST ( NULL AS INTEGER ) + col0 * col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 14 * - col2 - col1 col0 FROM tab0 AS cor0
----
-83
1057
376
query I rowsort
SELECT DISTINCT - col1 * 36 + + col0 AS col0 FROM tab2 AS cor0
----
-1109
-2046
-533
query I rowsort
SELECT col0 * - col1 + col1 FROM tab1 AS cor0
----
-1027
-52
-630
query I rowsort
SELECT DISTINCT 8 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
8
query I rowsort
SELECT + col2 * - col0 * 97 AS col1 FROM tab2 AS cor0
----
-18333
-196716
-291194
query I rowsort
SELECT + + col0 * - 64 AS col0 FROM tab1 AS cor0
----
-192
-4096
-5120
query I rowsort
SELECT ALL - col2 * 81 * col1 FROM tab2 cor0
----
-124254
-52326
-67797
query I rowsort
SELECT DISTINCT + col2 * + ( col0 ) FROM tab0 AS cor0
----
35
7298
792
onlyif mysql # use DIV operator for integer division
query I rowsort label-1858
SELECT DISTINCT - cor0.col0 DIV col2 AS col0 FROM tab0 AS cor0
----
-1
-35
0
skipif mysql # not compatible
query I rowsort label-1858
SELECT DISTINCT - cor0.col0 / col2 AS col0 FROM tab0 AS cor0
----
-1
-35
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1859
SELECT ALL - - col0 + + CAST( - col1 AS SIGNED ) FROM tab2 cor0
----
-24
19
62
skipif mysql # not compatible
query I rowsort label-1859
SELECT ALL - - col0 + + CAST ( - col1 AS INTEGER ) FROM tab2 cor0
----
-24
19
62
query I rowsort
SELECT ALL + + col2 * ( ( col2 ) ) AS col2 FROM tab1 AS cor0
----
2916
3249
9216
onlyif mysql # use DIV operator for integer division
query I rowsort label-1861
SELECT ALL - cor0.col1 * 98 + 29 DIV - col1 AS col2 FROM tab1 AS cor0
----
-1276
-2549
-982
skipif mysql # not compatible
query I rowsort label-1861
SELECT ALL - cor0.col1 * 98 + 29 / - col1 AS col2 FROM tab1 AS cor0
----
-1276
-2549
-982
query I rowsort
SELECT ALL - col0 * ( - col2 ) * + col0 + + 84 * - ( col2 ) FROM tab2 AS cor0
----
-945
156000
233966
query I rowsort
SELECT ALL - col0 + col2 * + col1 + - cor0.col2 * + col2 AS col2 FROM tab1 AS cor0
----
-1515
-2743
-8048
query I rowsort
SELECT DISTINCT - ( col2 ) + 13 AS col2 FROM tab2
----
-13
-14
-25
query I rowsort
SELECT + 81 FROM tab1
----
81
81
81
query I rowsort
SELECT col1 - - col1 FROM tab1
----
20
26
52
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab0 AS cor2, tab2 AS cor3
----
3645 values hashing to 70af829b2ea63fd8a25dddddb851fcd5
query I rowsort
SELECT col0 + tab1.col2 AS col1 FROM tab1
----
121
176
57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * col1 col2 FROM tab1
----
-1248
-1404
-570
query I rowsort
SELECT ALL - col0 * 72 AS col1 FROM tab2
----
-504
-5616
-5688
onlyif mysql # use DIV operator for integer division
query I rowsort label-1871
SELECT + cor0.col1 DIV + col0 FROM tab1 AS cor0
----
0
0
8
skipif mysql # not compatible
query I rowsort label-1871
SELECT + cor0.col1 / + col0 FROM tab1 AS cor0
----
0
0
8
query I rowsort
SELECT ALL col2 + 97 * - cor0.col2 AS col1 FROM tab0 AS cor0
----
-3168
-7872
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-1873
SELECT col1 DIV ( - 88 + col2 ) AS col0 FROM tab0 AS cor0
----
-1
-1
-15
skipif mysql # not compatible
query I rowsort label-1873
SELECT col1 / ( - 88 + col2 ) AS col0 FROM tab0 AS cor0
----
-1
-1
-15
query I rowsort
SELECT DISTINCT col1 * col1 + col2 * + cor0.col1 AS col1 FROM tab1 cor0
----
1417
2080
670
query I rowsort
SELECT DISTINCT col1 * - col2 + + col0 + + col1 * col0 FROM tab2 AS cor0
----
-613
3146
776
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1876
SELECT + cor0.col2 * + CAST( + col0 AS SIGNED ) FROM tab1 AS cor0
----
162
3648
7680
skipif mysql # not compatible
query I rowsort label-1876
SELECT + cor0.col2 * + CAST ( + col0 AS INTEGER ) FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT + col1 * col2 + col1 * col2 FROM tab2
----
1292
1674
3068
query I rowsort
SELECT 48 * col1 * col0 + + col0 - col1 * + tab1.col0 FROM tab1
----
30144
3669
48960
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 17 col0 FROM tab0, tab0 AS cor0 CROSS JOIN tab0 cor1
----
27 values hashing to e0dd9155e4d67132637a04c18ef46b2a
query I rowsort
SELECT 90 + 18 FROM tab2
----
108
108
108
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + col0 col0 FROM tab1 AS cor0
----
-16
-51
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col1 + col0 col1 FROM tab0 AS cor0
----
-2
-62
query I rowsort
SELECT ALL - 91 - col2 * + ( 91 * col2 ) FROM tab0 AS cor0
----
-182
-611975
-99190
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 + cor0.col2 col2 FROM tab2 cor0
----
104
117
34
query I rowsort
SELECT DISTINCT - ( + col2 ) + + tab1.col2 * 97 AS col2 FROM tab1
----
5184
5472
9216
query I rowsort
SELECT ALL ( col0 ) + col0 FROM tab0
----
178
48
70
onlyif mysql # use DIV operator for integer division
query I rowsort label-1887
SELECT 12 DIV col0 FROM tab2 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-1887
SELECT 12 / col0 FROM tab2 AS cor0
----
0
0
1
query I rowsort
SELECT DISTINCT - 16 FROM tab1 cor0
----
-16
query I rowsort
SELECT + col1 + - cor0.col2 * col2 * 25 AS col2 FROM tab0 AS cor0
----
-168009
-27139
72
onlyif mysql # use DIV operator for integer division
query I rowsort label-1890
SELECT DISTINCT + col0 * - col1 + 29 DIV 12 AS col0 FROM tab0
----
-2062
-3393
-8097
skipif mysql # not compatible
query I rowsort label-1890
SELECT DISTINCT + col0 * - col1 + 29 / 12 AS col0 FROM tab0
----
-2062
-3393
-8097
query I rowsort
SELECT - 76 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to d90b4aa5f03b4a149aa925c4a88acca0
onlyif mysql # use DIV operator for integer division
query I rowsort label-1892
SELECT ALL - col1 DIV col2 AS col0 FROM tab0 AS cor0
----
-1
-2
-97
skipif mysql # not compatible
query I rowsort label-1892
SELECT ALL - col1 / col2 AS col0 FROM tab0 AS cor0
----
-1
-2
-97
query I rowsort
SELECT DISTINCT - 86 + - col2 FROM tab0 AS cor0
----
-119
-168
-87
query I rowsort
SELECT + + col0 * - col1 + col0 FROM tab0 AS cor0
----
-2040
-3360
-8010
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1895
SELECT DISTINCT col0 + col2 * - CAST( NULL AS SIGNED ) * col0 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1895
SELECT DISTINCT col0 + col2 * - CAST ( NULL AS INTEGER ) * col0 FROM tab2 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 17 + + col1 * ( + col0 ) col0 FROM tab0 AS cor0
----
2047
3378
8082
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1897
SELECT DISTINCT + cor0.col1 * CAST( NULL AS SIGNED ) AS col1 FROM tab2, tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1897
SELECT DISTINCT + cor0.col1 * CAST ( NULL AS INTEGER ) AS col1 FROM tab2, tab1 AS cor0
----
NULL
query I rowsort
SELECT ALL - 60 AS col1 FROM tab2, tab0 cor0
----
9 values hashing to 067a4b5daf8747042e3b07ca8459859f
query I rowsort
SELECT ALL 22 + + col0 * + col1 AS col2 FROM tab0 AS cor0
----
2086
3417
8121
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1900
SELECT ALL + col2 + col1 + CAST( col0 AS SIGNED ) FROM tab2
----
134
163
65
skipif mysql # not compatible
query I rowsort label-1900
SELECT ALL + col2 + col1 + CAST ( col0 AS INTEGER ) FROM tab2
----
134
163
65
query I rowsort
SELECT ALL - col1 + + tab0.col2 AS col1 FROM tab0
----
-53
-9
-96
query I rowsort
SELECT + cor0.col2 AS col2 FROM tab2, tab2 cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 91 + cor0.col1 col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ab9a5420557229d11dbd1b8bdeb55842
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + col0 col2 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT + - col1 - - col1 AS col1 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT ALL col0 * cor0.col2 FROM tab1 cor0
----
162
3648
7680
query I rowsort
SELECT - + 8 + col2 * + 3 AS col0 FROM tab1 AS cor0
----
154
163
280
query I rowsort
SELECT ALL ( - col0 ) AS col2 FROM tab1 cor0
----
-3
-64
-80
query I rowsort
SELECT DISTINCT - col1 + + col0 + 45 * + col2 FROM tab1 cor0
----
2407
2619
4387
query I rowsort
SELECT ALL - + cor0.col2 * - col2 - col0 * cor0.col2 FROM tab2 AS cor0
----
-1352
-1558
540
query I rowsort
SELECT - + col0 + col0 * col0 FROM tab0 AS cor0
----
1190
552
7832
query I rowsort
SELECT + - col0 * ( col2 ) FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT DISTINCT - - cor0.col2 * + 77 AS col0 FROM tab2 AS cor0
----
2002
2079
2926
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab1 cor0, tab0 AS cor1, tab2, tab1 AS cor2
----
3645 values hashing to 4c5172baaab682f997bd09d2b5cf0d22
query I rowsort
SELECT + col2 * 55 + + col0 * cor0.col1 FROM tab2 AS cor0
----
1702
3433
6032
query I rowsort
SELECT ALL 32 AS col1 FROM tab1 AS cor0
----
32
32
32
query I rowsort
SELECT ALL 35 * col0 AS col1 FROM tab2 AS cor0
----
245
2730
2765
query I rowsort
SELECT ( 5 ) AS col2 FROM tab0
----
5
5
5
onlyif mysql # use DIV operator for integer division
query I rowsort label-1919
SELECT DISTINCT + col1 DIV + 4 FROM tab0
----
21
22
24
skipif mysql # not compatible
query I rowsort label-1919
SELECT DISTINCT + col1 / + 4 FROM tab0
----
21
22
24
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1920
SELECT + - ( - ( + col1 ) ) + CAST( col1 AS SIGNED ) * col0 FROM tab2 AS cor0
----
1360
248
4661
skipif mysql # not compatible
query I rowsort label-1920
SELECT + - ( - ( + col1 ) ) + CAST ( col1 AS INTEGER ) * col0 FROM tab2 AS cor0
----
1360
248
4661
query I rowsort
SELECT + + cor0.col1 * col2 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT DISTINCT col1 * col1 * col0 FROM tab1 cor0
----
13520
2028
6400
query I rowsort
SELECT + + col2 + - col1 FROM tab1 cor0
----
28
47
83
query I rowsort
SELECT - 71 - cor0.col0 FROM tab1 AS cor0
----
-135
-151
-74
query I rowsort
SELECT + + col0 + cor0.col0 AS col0 FROM tab2 AS cor0
----
14
156
158
onlyif mysql # use DIV operator for integer division
query I rowsort label-1926
SELECT col0 DIV + col0 - + col1 AS col2 FROM tab0 AS cor0
----
-85
-90
-96
skipif mysql # not compatible
query I rowsort label-1926
SELECT col0 / + col0 - + col1 AS col2 FROM tab0 AS cor0
----
-85
-90
-96
query I rowsort
SELECT + col0 * - col0 AS col1 FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT + col0 * - col2 + col2 + + col2 FROM tab1 AS cor0
----
-3534
-54
-7488
query I rowsort
SELECT ALL + ( - ( + col1 ) ) + + ( - col1 * col2 ) AS col2 FROM tab0
----
-194
-2924
-7553
onlyif mysql # use DIV operator for integer division
query I rowsort label-1930
SELECT DISTINCT col0 + + tab2.col0 DIV tab2.col0 FROM tab2
----
79
8
80
skipif mysql # not compatible
query I rowsort label-1930
SELECT DISTINCT col0 + + tab2.col0 / tab2.col0 FROM tab2
----
79
8
80
query I rowsort
SELECT DISTINCT - 74 * - 33 FROM tab0
----
2442
query I rowsort
SELECT ALL col1 - tab1.col0 AS col0 FROM tab1
----
-54
-67
23
query I rowsort
SELECT ALL + col2 * + ( col2 ) - col0 FROM tab2
----
1365
598
722
query I rowsort
SELECT DISTINCT + - 84 FROM tab2, tab2 AS cor0, tab1, tab1 AS cor1
----
-84
query I rowsort
SELECT + 25 * + 78 AS col1 FROM tab0 AS cor0
----
1950
1950
1950
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 9 col2 FROM tab1 cor0
----
9
9
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * + cor0.col1 col0 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT ( + col2 ) * - col2 AS col2 FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT col2 + ( - col2 ) * ( col2 ) FROM tab2 cor0
----
-1406
-650
-702
query I rowsort
SELECT + cor0.col0 * + 28 FROM tab0 AS cor0
----
2492
672
980
query I rowsort
SELECT + cor0.col1 * - cor0.col1 AS col1 FROM tab2 AS cor0
----
-289
-3481
-961
query I rowsort
SELECT ALL cor0.col0 FROM tab2, tab2 AS cor0, tab2 cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
query I rowsort
SELECT DISTINCT - 36 + col2 AS col1 FROM tab0 cor0
----
-3
-35
46
query I rowsort
SELECT ALL 61 + cor0.col0 FROM tab2 AS cor0
----
139
140
68
query I rowsort
SELECT ALL - col0 * + col1 * + col2 FROM tab1 AS cor0
----
-36480
-4212
-99840
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1946
SELECT DISTINCT + col0 * cor0.col0 + + CAST( + col2 AS SIGNED ) AS col0 FROM tab0 cor0
----
1226
609
8003
skipif mysql # not compatible
query I rowsort label-1946
SELECT DISTINCT + col0 * cor0.col0 + + CAST ( + col2 AS INTEGER ) AS col0 FROM tab0 cor0
----
1226
609
8003
query I rowsort
SELECT + + col1 * + col0 + col2 FROM tab2 AS cor0
----
1381
244
4628
query IIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 AS cor0 WHERE NULL <> NULL
----
query I rowsort
SELECT - - col1 * - cor0.col0 AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT tab0.col1 * - tab0.col0 AS col2 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 09a48fec24dd5ded01e53ec00cd6a7a1
query I rowsort
SELECT DISTINCT + col1 + col1 FROM tab2 cor0
----
118
34
62
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1952
SELECT DISTINCT CAST( NULL AS SIGNED ) FROM tab0, tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1952
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab0, tab1 AS cor0
----
NULL
query I rowsort
SELECT ALL + 82 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c
query I rowsort
SELECT + 6 + col1 * - col2 FROM tab1 cor0
----
-1242
-1398
-564
query I rowsort
SELECT - - 92 * col1 AS col2 FROM tab0 AS cor0
----
7912
8372
8924
query I rowsort
SELECT + ( + col0 ) + + col1 AS col0 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT - 61 AS col1 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to c91d7b51e91f33d302e697913fb438b6
query I rowsort
SELECT ALL col0 * col1 AS col1 FROM tab1
----
1040
640
78
query I rowsort
SELECT 48 FROM tab2, tab1 cor0
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b
query I rowsort
SELECT ALL 83 AS col2 FROM tab0 cor0
----
83
83
83
query I rowsort
SELECT + 43 + ( + col0 + cor0.col1 ) * 85 FROM tab1 cor0
----
2508
6333
7948
query I rowsort
SELECT DISTINCT - col2 * + 45 + + col2 FROM tab1 AS cor0
----
-2376
-2508
-4224
query I rowsort
SELECT ALL + + ( col0 ) FROM tab1 cor0
----
3
64
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * col1 col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT DISTINCT col1 + 19 FROM tab2 cor0
----
36
50
78
query I rowsort
SELECT - 38 * + cor1.col1 FROM tab0, tab0 cor0, tab0 AS cor1, tab2 AS cor2
----
81 values hashing to 15aa745952d0955b33e50dc518c7f8d7
query I rowsort
SELECT ALL 23 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2
query I rowsort
SELECT DISTINCT + col1 * col0 + - col1 - + tab2.col0 AS col2 FROM tab2
----
1247
179
4465
query I rowsort
SELECT col1 + ( col1 ) * + col2 + - col0 * col1 * + col2 AS col0 FROM tab2
----
-118059
-4991
-50371
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1970
SELECT ALL + 11 * ( tab0.col1 ) + + CAST( NULL AS SIGNED ) + col1 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1970
SELECT ALL + 11 * ( tab0.col1 ) + + CAST ( NULL AS INTEGER ) + col1 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT - ( 64 ) * - col0 - col0 AS col1 FROM tab0
----
1512
2205
5607
query I rowsort
SELECT DISTINCT - 23 * col0 + col1 FROM tab1
----
-1462
-1827
-43
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1973
SELECT DISTINCT ( + col1 ) * col1 * CAST( NULL AS SIGNED ) + - col2 + tab2.col1 * + col2 * - tab2.col1 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-1973
SELECT DISTINCT ( + col1 ) * col1 * CAST ( NULL AS INTEGER ) + - col2 + tab2.col1 * + col2 * - tab2.col1 FROM tab2
----
NULL
query I rowsort
SELECT ALL cor0.col2 AS col2 FROM tab2, tab1 AS cor0, tab0 cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
query I rowsort
SELECT + + col1 * - col2 AS col2 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT + 51 * - col0 AS col0 FROM tab1
----
-153
-3264
-4080
query I rowsort
SELECT DISTINCT - 47 * col0 AS col1 FROM tab0
----
-1128
-1645
-4183
query I rowsort
SELECT + - 15 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 91b10a00c89b36b5bf0bed723e656ccc
onlyif mysql # use DIV operator for integer division
query I rowsort label-1979
SELECT + col2 DIV - col2 AS col0 FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-1979
SELECT + col2 / - col2 AS col0 FROM tab0 AS cor0
----
-1
-1
-1
onlyif mysql # use DIV operator for integer division
query I rowsort label-1980
SELECT col1 DIV - col1 FROM tab2 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-1980
SELECT col1 / - col1 FROM tab2 AS cor0
----
-1
-1
-1
query I rowsort
SELECT DISTINCT - 81 + - ( col0 * tab2.col0 ) FROM tab2
----
-130
-6165
-6322
query I rowsort
SELECT DISTINCT col2 + tab0.col2 * - col0 * 2 AS col0 FROM tab0
----
-14514
-1551
-69
query I rowsort
SELECT DISTINCT - col0 * col1 + + col1 * col1 AS col0 FROM tab1
----
-540
-871
598
query I rowsort
SELECT ALL tab0.col1 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 40 col1 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 01aad4539198a6509248e086869f90a6
query I rowsort
SELECT DISTINCT - col0 * + col2 AS col2 FROM tab2
----
-189
-2028
-3002
query I rowsort
SELECT ALL + + col0 + - col2 + + col1 FROM tab1 AS cor0
----
-25
-3
17
onlyif mysql # use DIV operator for integer division
query I rowsort label-1988
SELECT - + col2 - 67 DIV + 66 AS col1 FROM tab0 AS cor0
----
-2
-34
-83
skipif mysql # not compatible
query I rowsort label-1988
SELECT - + col2 - 67 / + 66 AS col1 FROM tab0 AS cor0
----
-2
-34
-83
query I rowsort
SELECT ALL - col1 + - col2 * col1 FROM tab1 AS cor0
----
-1261
-1430
-580
query I rowsort
SELECT ALL + cor0.col0 + - 9 FROM tab0 AS cor0
----
15
26
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab1.col2 col2 FROM tab1
----
-54
-57
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-1992
SELECT tab1.col2 DIV + col2 AS col0 FROM tab1
----
1
1
1
skipif mysql # not compatible
query I rowsort label-1992
SELECT tab1.col2 / + col2 AS col0 FROM tab1
----
1
1
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-1993
SELECT - col0 DIV ( col0 ) FROM tab1 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-1993
SELECT - col0 / ( col0 ) FROM tab1 AS cor0
----
-1
-1
-1
query I rowsort
SELECT col0 + col0 - - col1 FROM tab1 AS cor0
----
138
173
32
query IIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab1 cor2
----
972 values hashing to 5621675b1bd32b061d284d0444c76601
query I rowsort
SELECT ALL + + col1 + - cor0.col0 + col2 AS col1 FROM tab2 AS cor0
----
-24
51
7
query I rowsort
SELECT - col2 + - 89 FROM tab1 AS cor0
----
-143
-146
-185
query I rowsort
SELECT DISTINCT + col2 * 77 + - col0 * col2 * 38 FROM tab0 AS cor0
----
-1253
-271010
-27555
query I rowsort
SELECT col0 + - 11 AS col0 FROM tab1 AS cor0
----
-8
53
69
query I rowsort
SELECT ALL cor0.col2 + cor0.col1 * + 61 AS col1 FROM tab1 AS cor0
----
1640
667
889
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2001
SELECT DISTINCT - col0 + CAST( NULL AS DECIMAL ) * 57 FROM tab0 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2001
SELECT DISTINCT - col0 + CAST ( NULL AS REAL ) * 57 FROM tab0 cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - col2 * col1 + col1 - col1 col1 FROM tab2 AS cor0
----
-119652
-51034
-5859
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2003
SELECT - + col1 + CAST( NULL AS SIGNED ) + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2003
SELECT - + col1 + CAST ( NULL AS INTEGER ) + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + col2 * - col1 + - 24 FROM tab0 AS cor0
----
-121
-2862
-7486
onlyif mysql # use DIV operator for integer division
query I rowsort label-2005
SELECT + col2 DIV - col0 + 8 FROM tab2 AS cor0
----
5
8
8
skipif mysql # not compatible
query I rowsort label-2005
SELECT + col2 / - col0 + 8 FROM tab2 AS cor0
----
5
8
8
query I rowsort
SELECT tab1.col1 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775
query IIIIII rowsort
SELECT ALL * FROM tab2, tab0 AS cor0 WHERE NULL < NULL
----
query I rowsort
SELECT ALL + - col2 * + col1 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT DISTINCT col0 + col2 * + col2 * - ( + col2 ) AS col1 FROM tab1 AS cor0
----
-157461
-185129
-884656
query I rowsort
SELECT - cor0.col1 + col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT col0 * col2 AS col1 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT ALL + col0 * col2 * - col2 FROM tab0 cor0
----
-26136
-35
-598436
query I rowsort
SELECT ALL - col1 * + col0 + + col2 FROM tab1 AS cor0
----
-24
-583
-944
query I rowsort
SELECT - - col0 * - 88 FROM tab0 AS cor0
----
-2112
-3080
-7832
onlyif mysql # use DIV operator for integer division
query I rowsort label-2015
SELECT DISTINCT col0 + CAST( + col2 * col0 AS SIGNED ) - ( - 14 ) DIV col1 AS col2 FROM tab2 AS cor0
----
196
2106
3081
skipif mysql # not compatible
query I rowsort label-2015
SELECT DISTINCT col0 + CAST ( + col2 * col0 AS INTEGER ) - ( - 14 ) / col1 AS col2 FROM tab2 AS cor0
----
196
2106
3081
query I rowsort
SELECT ALL + col1 + ( + col1 ) AS col2 FROM tab0 AS cor0
----
172
182
194
query I rowsort
SELECT col0 + 55 FROM tab1 AS cor0
----
119
135
58
query I rowsort
SELECT ALL + col2 - col2 AS col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - col0 + - col0 AS col1 FROM tab2 AS cor0
----
-14
-156
-158
query I rowsort
SELECT + 51 * - col2 * ( - col2 ) FROM tab2
----
34476
37179
73644
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2021
SELECT 82 + - col0 * - CAST( col2 * + col2 AS SIGNED ) AS col2 FROM tab1
----
208018
737362
8830
skipif mysql # not compatible
query I rowsort label-2021
SELECT 82 + - col0 * - CAST ( col2 * + col2 AS INTEGER ) AS col2 FROM tab1
----
208018
737362
8830
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2022
SELECT DISTINCT col2 + col0 * + CAST( + col1 AS SIGNED ) AS col1 FROM tab1
----
1136
132
697
skipif mysql # not compatible
query I rowsort label-2022
SELECT DISTINCT col2 + col0 * + CAST ( + col1 AS INTEGER ) AS col1 FROM tab1
----
1136
132
697
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2023
SELECT + 43 + + col1 * CAST( NULL AS SIGNED ) * - col0 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2023
SELECT + 43 + + col1 * CAST ( NULL AS INTEGER ) * - col0 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT col1 + - tab0.col2 AS col1 FROM tab0
----
53
9
96
query I rowsort
SELECT DISTINCT + col0 + col2 AS col1 FROM tab0
----
171
36
57
query I rowsort
SELECT ALL + + 21 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 312c166f4dc412730c43555105b1f44b
onlyif mysql # use DIV operator for integer division
query I rowsort label-2027
SELECT + cor0.col0 DIV + col0 FROM tab1 cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-2027
SELECT + cor0.col0 / + col0 FROM tab1 cor0
----
1
1
1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2028
SELECT ALL - CAST( NULL AS SIGNED ) + col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2028
SELECT ALL - CAST ( NULL AS INTEGER ) + col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col1 * + 63 + + col0 AS col1 FROM tab2 AS cor0
----
-1946
-3639
-992
query I rowsort
SELECT - col2 * + col1 AS col0 FROM tab1 cor0
----
-1248
-1404
-570
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2031
SELECT DISTINCT CAST( + 38 AS SIGNED ) * - col0 FROM tab2 AS cor0
----
-266
-2964
-3002
skipif mysql # not compatible
query I rowsort label-2031
SELECT DISTINCT CAST ( + 38 AS INTEGER ) * - col0 FROM tab2 AS cor0
----
-266
-2964
-3002
query I rowsort
SELECT cor0.col1 * 93 AS col0 FROM tab0 AS cor0
----
7998
8463
9021
onlyif mysql # use DIV operator for integer division
query I rowsort label-2033
SELECT - ( col1 ) DIV - col0 - - ( 75 ) AS col2 FROM tab0 AS cor0
----
76
77
78
skipif mysql # not compatible
query I rowsort label-2033
SELECT - ( col1 ) / - col0 - - ( 75 ) AS col2 FROM tab0 AS cor0
----
76
77
78
query I rowsort
SELECT + col0 - + ( - col1 ) FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT DISTINCT - - col0 * col1 AS col2 FROM tab0 AS cor0
----
2064
3395
8099
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2036
SELECT ALL CAST( NULL AS SIGNED ) + col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2036
SELECT ALL CAST ( NULL AS INTEGER ) + col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col2 + - tab2.col0 * 51 FROM tab2
----
-330
-3952
-3991
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - 17 ) * cor0.col0 col2 FROM tab2 AS cor0
----
-119
-1326
-1343
query I rowsort
SELECT DISTINCT + 81 + - 24 AS col1 FROM tab1 AS cor0
----
57
query I rowsort
SELECT + ( cor0.col0 ) * - col0 AS col2 FROM tab2 cor0
----
-49
-6084
-6241
query I rowsort
SELECT ALL - cor0.col1 * col2 AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT + 71 * col0 FROM tab2 AS cor0
----
497
5538
5609
query I rowsort
SELECT ALL - + 56 AS col0 FROM tab2 AS cor0
----
-56
-56
-56
query I rowsort
SELECT DISTINCT - col0 * - col2 AS col0 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT col0 + ( col1 * col1 ) + - col2 FROM tab2
----
330
3533
941
onlyif mysql # use DIV operator for integer division
query I rowsort label-2046
SELECT - col0 DIV col1 AS col1 FROM tab1
----
-6
-6
0
skipif mysql # not compatible
query I rowsort label-2046
SELECT - col0 / col1 AS col1 FROM tab1
----
-6
-6
0
query I rowsort
SELECT + ( - col2 ) - ( - col2 + + col0 ) FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT ALL ( tab1.col2 ) - col2 AS col2 FROM tab1
----
0
0
0
query I rowsort
SELECT - col1 - 87 FROM tab2 cor0
----
-104
-118
-146
onlyif mysql # use DIV operator for integer division
query I rowsort label-2050
SELECT + col0 DIV - col0 AS col0 FROM tab0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-2050
SELECT + col0 / - col0 AS col0 FROM tab0
----
-1
-1
-1
query I rowsort
SELECT + 81 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267
query I rowsort
SELECT - 3 * + col1 + ( - 22 ) FROM tab2 AS cor0
----
-115
-199
-73
query I rowsort
SELECT col1 * + col0 + + col2 AS col0 FROM tab1 AS cor0
----
1136
132
697
onlyif mysql # use DIV operator for integer division
query I rowsort label-2054
SELECT ALL - col1 DIV - col0 col2 FROM tab1
----
0
0
8
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2054
SELECT ALL - col1 / - col0 col2 FROM tab1
----
0
0
8
query I rowsort
SELECT - col1 * col1 - + col0 AS col2 FROM tab1 AS cor0
----
-164
-249
-679
query I rowsort
SELECT col1 * cor0.col1 AS col1 FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT + 93 * col0 - + col2 AS col1 FROM tab0 AS cor0
----
2199
3254
8195
onlyif mysql # use DIV operator for integer division
query I rowsort label-2058
SELECT - - 52 + + col0 DIV - ( + 35 ) AS col1 FROM tab1 AS cor0
----
50
51
52
skipif mysql # not compatible
query I rowsort label-2058
SELECT - - 52 + + col0 / - ( + 35 ) AS col1 FROM tab1 AS cor0
----
50
51
52
onlyif mysql # use DIV operator for integer division
query I rowsort label-2059
SELECT DISTINCT 85 DIV col1 AS col0 FROM tab0
----
0
skipif mysql # not compatible
query I rowsort label-2059
SELECT DISTINCT 85 / col1 AS col0 FROM tab0
----
0
query I rowsort
SELECT - 59 * col0 + - col0 AS col2 FROM tab1
----
-180
-3840
-4800
query I rowsort
SELECT - 89 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to c36e597b7bc5727536f5bb580e6cebbc
query I rowsort
SELECT ALL - col0 * - 20 AS col1 FROM tab2
----
140
1560
1580
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + col0 col1 FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT ALL - 67 FROM tab1 AS cor0
----
-67
-67
-67
query I rowsort
SELECT + - col2 - col1 AS col0 FROM tab0 AS cor0
----
-119
-173
-98
query I rowsort
SELECT DISTINCT + - cor0.col0 AS col1 FROM tab2 AS cor0
----
-7
-78
-79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2067
SELECT DISTINCT CAST( 56 AS SIGNED ) FROM tab1, tab2 AS cor0
----
56
skipif mysql # not compatible
query I rowsort label-2067
SELECT DISTINCT CAST ( 56 AS INTEGER ) FROM tab1, tab2 AS cor0
----
56
query I rowsort
SELECT ALL - cor0.col1 + + cor1.col2 FROM tab1 AS cor0 CROSS JOIN tab1, tab0 AS cor1
----
27 values hashing to efedfe558be8ae4bf065663019286f1f
query I rowsort
SELECT 5 * + tab2.col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 4a6896ddd09b72f74e533e3e01c820bb
onlyif mysql # use DIV operator for integer division
query I rowsort label-2070
SELECT DISTINCT - col1 DIV col0 AS col2 FROM tab1 AS cor0
----
-8
0
skipif mysql # not compatible
query I rowsort label-2070
SELECT DISTINCT - col1 / col0 AS col2 FROM tab1 AS cor0
----
-8
0
query I rowsort
SELECT ALL - - col1 * - col1 + - col1 FROM tab1 AS cor0
----
-110
-182
-702
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2072
SELECT ALL - col2 * - CAST( NULL AS SIGNED ) + 37 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2072
SELECT ALL - col2 * - CAST ( NULL AS INTEGER ) + 37 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2073
SELECT ALL - col0 + - CAST( + col2 * col0 + col1 AS SIGNED ) AS col2 FROM tab0 cor0
----
-167
-7478
-902
skipif mysql # not compatible
query I rowsort label-2073
SELECT ALL - col0 + - CAST ( + col2 * col0 + col1 AS INTEGER ) AS col2 FROM tab0 cor0
----
-167
-7478
-902
query I rowsort
SELECT - 6 AS col1 FROM tab1, tab0 AS cor0, tab0, tab1 AS cor1
----
81 values hashing to b27ffe5fca3aedb2653abfcf3561c0ae
query I rowsort
SELECT - ( col1 ) * col1 AS col1 FROM tab1 AS cor0
----
-100
-169
-676
query I rowsort
SELECT ALL - - ( 91 ) FROM tab1 AS cor0
----
91
91
91
query I rowsort
SELECT ( 89 ) + cor0.col0 AS col2 FROM tab0 AS cor0
----
113
124
178
query I rowsort
SELECT + - col0 + + 80 AS col1 FROM tab1 cor0
----
0
16
77
query I rowsort
SELECT + col2 + - ( - col0 ) * col0 * - 72 AS col2 FROM tab0 AS cor0
----
-41439
-570230
-88199
query I rowsort
SELECT DISTINCT 30 + col0 FROM tab2
----
108
109
37
query I rowsort
SELECT col0 * col2 + + ( col0 ) FROM tab0 AS cor0
----
70
7387
816
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col1 + - col0 col2 FROM tab2 AS cor0
----
1264
210
4524
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2083
SELECT - 10 * + col1 / - ( col0 ) + + col1 * CAST( NULL AS SIGNED ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2083
SELECT - 10 * + col1 / - ( col0 ) + + col1 * CAST ( NULL AS INTEGER ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - - col0 + 73 * - cor0.col2 FROM tab0 AS cor0
----
-2385
-38
-5897
query I rowsort
SELECT - col1 * - ( col2 ) * col1 FROM tab1 AS cor0
----
16224
36504
5700
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 48 + - 43 col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 6035628694bdea36f584f3649088551d
query I rowsort
SELECT - - col2 + 44 * cor0.col0 AS col1 FROM tab1 AS cor0
----
186
2873
3616
query I rowsort
SELECT DISTINCT - col0 - ( col2 ) * col0 FROM tab1 AS cor0
----
-165
-3712
-7760
onlyif mysql # use DIV operator for integer division
query I rowsort label-2089
SELECT DISTINCT - col0 + - ( + col2 ) DIV col2 FROM tab0 cor0
----
-25
-36
-90
skipif mysql # not compatible
query I rowsort label-2089
SELECT DISTINCT - col0 + - ( + col2 ) / col2 FROM tab0 cor0
----
-25
-36
-90
query I rowsort
SELECT - + 47 AS col2 FROM tab1 AS cor0
----
-47
-47
-47
query I rowsort
SELECT + 52 FROM tab0
----
52
52
52
query I rowsort
SELECT ALL col0 * - 86 FROM tab0
----
-2064
-3010
-7654
onlyif mysql # use DIV operator for integer division
query I rowsort label-2093
SELECT - col0 * col1 DIV + col1 + - 99 * + cor0.col1 FROM tab0 AS cor0
----
-8538
-9098
-9638
skipif mysql # not compatible
query I rowsort label-2093
SELECT - col0 * col1 / + col1 + - 99 * + cor0.col1 FROM tab0 AS cor0
----
-8538
-9098
-9638
query I rowsort
SELECT 33 * + ( col0 + col1 ) FROM tab2
----
1254
3168
4521
query I rowsort
SELECT DISTINCT + 22 FROM tab1
----
22
query I rowsort
SELECT - - 84 + - col2 AS col1 FROM tab1 AS cor0
----
-12
27
30
query I rowsort
SELECT DISTINCT col1 * col0 * ( - col2 ) AS col1 FROM tab0 cor0
----
-3395
-664118
-68112
query I rowsort
SELECT 94 * - col2 + + col0 AS col0 FROM tab2
----
-2366
-2531
-3493
query I rowsort
SELECT DISTINCT - col0 * col1 * + col2 FROM tab2 AS cor0
----
-119652
-51034
-5859
query I rowsort
SELECT + col0 + cor0.col2 + 55 FROM tab1 AS cor0
----
112
176
231
query I rowsort
SELECT ALL - ( + col0 ) AS col2 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT ALL - ( + cor0.col1 ) * col1 FROM tab2 AS cor0
----
-289
-3481
-961
query I rowsort
SELECT 31 + col1 AS col2 FROM tab2 AS cor0
----
48
62
90
query I rowsort
SELECT ALL - 4 + + col1 FROM tab1 cor0
----
22
6
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - cor0.col1 + col1 + cor0.col0 col2 FROM tab1 AS cor0
----
-26
-647
-76
query I rowsort
SELECT DISTINCT + 9 + col1 * + col0 AS col2 FROM tab0 AS cor0
----
2073
3404
8108
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2107
SELECT - - 55 + + cor0.col1 * CAST( - col0 AS SIGNED ) FROM tab2 AS cor0
----
-1288
-162
-4547
skipif mysql # not compatible
query I rowsort label-2107
SELECT - - 55 + + cor0.col1 * CAST ( - col0 AS INTEGER ) FROM tab2 AS cor0
----
-1288
-162
-4547
query I rowsort
SELECT - 52 + + col0 + 30 AS col1 FROM tab2 AS cor0
----
-15
56
57
query I rowsort
SELECT ALL + col2 + + 50 FROM tab0 AS cor0
----
132
51
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-2110
SELECT - - col1 + ( col2 * - col1 ) + cor0.col1 DIV col0 AS col2 FROM tab2 AS cor0
----
-1475
-629
-802
skipif mysql # not compatible
query I rowsort label-2110
SELECT - - col1 + ( col2 * - col1 ) + cor0.col1 / col0 AS col2 FROM tab2 AS cor0
----
-1475
-629
-802
query I rowsort
SELECT ALL + - col0 * col1 + - 83 * col0 * + col0 FROM tab0 AS cor0
----
-105070
-49872
-665542
query I rowsort
SELECT DISTINCT - - col1 - + cor0.col1 AS col0 FROM tab1 AS cor0
----
0
query I rowsort
SELECT col0 + 67 AS col1 FROM tab0 AS cor0
----
102
156
91
query I rowsort
SELECT - - col0 + col2 + - 35 AS col2 FROM tab2 cor0
----
-1
69
82
query I rowsort
SELECT DISTINCT + col0 * col2 AS col2 FROM tab0 cor0
----
35
7298
792
query I rowsort
SELECT - col0 + + ( + col2 + + col0 ) AS col1 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT ALL ( col0 ) * + ( col0 ) + + col1 FROM tab2
----
6143
6258
80
query I rowsort
SELECT DISTINCT - 67 + - tab0.col0 FROM tab0
----
-102
-156
-91
query I rowsort
SELECT ALL col2 * tab0.col1 - 26 AS col2 FROM tab0
----
2812
71
7436
query I rowsort
SELECT ALL + col2 * + col1 - + 53 * 77 FROM tab2
----
-2547
-3244
-3435
query I rowsort
SELECT col0 * - col1 AS col0 FROM tab2 cor0
----
-1343
-217
-4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - col2 col0 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT ALL - col0 + - col0 * col0 FROM tab2 AS cor0
----
-56
-6162
-6320
query I rowsort
SELECT ALL + col0 * - 28 AS col0 FROM tab0
----
-2492
-672
-980
onlyif mysql # use DIV operator for integer division
query I rowsort label-2125
SELECT ALL col0 DIV + 59 FROM tab1
----
0
1
1
skipif mysql # not compatible
query I rowsort label-2125
SELECT ALL col0 / + 59 FROM tab1
----
0
1
1
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 AS cor0, tab2, tab1 cor1
----
972 values hashing to 980274175fafec015a83080672486a9a
query I rowsort
SELECT 99 * col2 FROM tab2 AS cor0
----
2574
2673
3762
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - col0 col0 FROM tab1 AS cor0
----
-4096
-6400
-9
onlyif mysql # use DIV operator for integer division
query I rowsort label-2129
SELECT DISTINCT - col0 DIV + col0 FROM tab1
----
-1
skipif mysql # not compatible
query I rowsort label-2129
SELECT DISTINCT - col0 / + col0 FROM tab1
----
-1
query I rowsort
SELECT col1 * - col1 + - col1 + col0 * tab0.col1 * col2 AS col0 FROM tab0
----
-6111
60630
655746
query I rowsort
SELECT DISTINCT + col0 - col1 FROM tab0
----
-2
-62
onlyif mysql # use DIV operator for integer division
query I rowsort label-2132
SELECT ALL col0 + col1 DIV col1 FROM tab1
----
4
65
81
skipif mysql # not compatible
query I rowsort label-2132
SELECT ALL col0 + col1 / col1 FROM tab1
----
4
65
81
query I rowsort
SELECT ALL - col2 * col0 AS col0 FROM tab0 cor0
----
-35
-7298
-792
query I rowsort
SELECT - col1 * + cor0.col1 - - col1 FROM tab2 AS cor0
----
-272
-3422
-930
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2135
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col0 FROM tab2, tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2135
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0 FROM tab2, tab2 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT + col1 + + col2 - col2 AS col1 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT DISTINCT + 26 AS col0 FROM tab1, tab0 AS cor0
----
26
query I rowsort
SELECT ALL - col0 * + col0 - col1 AS col0 FROM tab0 cor0
----
-1322
-662
-8012
query I rowsort
SELECT DISTINCT - col0 + ( col2 + col1 ) AS col1 FROM tab1
----
29
3
77
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 35 + 52 + cor0.col0 * col2 col0 FROM tab1 AS cor0
----
249
3735
7767
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2141
SELECT - CAST( cor0.col1 AS SIGNED ) + col1 col1 FROM tab0 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2141
SELECT - CAST ( cor0.col1 AS INTEGER ) + col1 col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + cor0.col0 - 86 AS col0 FROM tab1 AS cor0
----
-22
-6
-83
query I rowsort
SELECT ALL 5 + + ( col0 ) AS col2 FROM tab0 AS cor0
----
29
40
94
query I rowsort
SELECT DISTINCT 62 * - col0 - - col1 * col2 FROM tab0 AS cor0
----
-2073
1350
1944
query I rowsort
SELECT col0 * - col1 + col0 AS col1 FROM tab1 cor0
----
-576
-75
-960
query I rowsort
SELECT DISTINCT - 44 AS col0 FROM tab0 AS cor0
----
-44
query I rowsort
SELECT + - ( 87 ) + col0 AS col1 FROM tab1 AS cor0
----
-23
-7
-84
query I rowsort
SELECT DISTINCT 31 AS col2 FROM tab1 AS cor0
----
31
query I rowsort
SELECT DISTINCT + ( cor0.col1 ) * + col2 * + 53 AS col0 FROM tab0 AS cor0
----
150414
395486
5141
query I rowsort
SELECT ALL + + cor0.col2 * col1 + col1 FROM tab0 AS cor0
----
194
2924
7553
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2151
SELECT + + CAST( NULL AS DECIMAL ) + + 13 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2151
SELECT + + CAST ( NULL AS REAL ) + + 13 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - - col2 * - col1 - - col0 FROM tab1 AS cor0
----
-1168
-1401
-506
query I rowsort
SELECT col0 + 37 AS col0 FROM tab0 AS cor0
----
126
61
72
query I rowsort
SELECT + col0 * col1 * col1 + col1 - tab1.col0 AS col2 FROM tab1
----
13453
2051
6346
onlyif mysql # use DIV operator for integer division
query I rowsort label-2155
SELECT ALL + - 84 DIV 38 + col2 * 30 AS col1 FROM tab1 AS cor0
----
1618
1708
2878
skipif mysql # not compatible
query I rowsort label-2155
SELECT ALL + - 84 / 38 + col2 * 30 AS col1 FROM tab1 AS cor0
----
1618
1708
2878
query I rowsort
SELECT DISTINCT + + col2 * + 54 + col0 * + 99 FROM tab0 AS cor0
----
13239
3519
4158
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * 47 col1 FROM tab0 AS cor0
----
-4042
-4277
-4559
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2158
SELECT - CAST( col2 AS SIGNED ) * + col1 * 45 - col0 FROM tab2 AS cor0
----
-29149
-37672
-69108
skipif mysql # not compatible
query I rowsort label-2158
SELECT - CAST ( col2 AS INTEGER ) * + col1 * 45 - col0 FROM tab2 AS cor0
----
-29149
-37672
-69108
query I rowsort
SELECT ALL + col1 + col0 * - col0 FROM tab1 AS cor0
----
-4086
-6387
17
query I rowsort
SELECT ( + col2 ) * - 90 + 48 FROM tab0 AS cor0
----
-2922
-42
-7332
query I rowsort
SELECT DISTINCT 96 * cor0.col2 FROM tab2 AS cor0
----
2496
2592
3648
query I rowsort
SELECT col2 * + col2 + + col0 FROM tab0 AS cor0
----
1113
36
6813
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2163
SELECT ALL cor0.col2 * cor0.col1 + - col2 / ( col0 ) - CAST( NULL AS SIGNED ) * - col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2163
SELECT ALL cor0.col2 * cor0.col1 + - col2 / ( col0 ) - CAST ( NULL AS INTEGER ) * - col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - 7 FROM tab0 cor0
----
-7
query I rowsort
SELECT - col1 * tab1.col2 + + col1 AS col0 FROM tab1
----
-1235
-1378
-560
query I rowsort
SELECT ALL 15 AS col2 FROM tab2 AS cor0
----
15
15
15
query I rowsort
SELECT DISTINCT - col1 * - cor0.col0 AS col2 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT ALL ( cor0.col2 ) + 29 FROM tab2 AS cor0
----
55
56
67
query I rowsort
SELECT ALL + + col2 + + col2 * cor0.col2 FROM tab1 AS cor0
----
2970
3306
9312
query I rowsort
SELECT DISTINCT + 7 * - col2 AS col1 FROM tab2 AS cor0
----
-182
-189
-266
query I rowsort
SELECT ALL + + col1 * col2 AS col0 FROM tab0 cor0
----
2838
7462
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2172
SELECT + - CAST( NULL AS DECIMAL ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-2172
SELECT + - CAST ( NULL AS REAL ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT + - col1 + + cor0.col1 * - 28 * + col2 AS col1 FROM tab2 AS cor0
----
-18105
-23467
-43011
onlyif mysql # use DIV operator for integer division
query I rowsort label-2174
SELECT ALL + col0 + col1 * + col0 DIV col0 FROM tab2 AS cor0
----
137
38
96
skipif mysql # not compatible
query I rowsort label-2174
SELECT ALL + col0 + col1 * + col0 / col0 FROM tab2 AS cor0
----
137
38
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2175
SELECT ALL + cor0.col2 + - 87 + - ( col1 + CAST( col2 AS SIGNED ) ) FROM tab0 AS cor0
----
-173
-178
-184
skipif mysql # not compatible
query I rowsort label-2175
SELECT ALL + cor0.col2 + - 87 + - ( col1 + CAST ( col2 AS INTEGER ) ) FROM tab0 AS cor0
----
-173
-178
-184
onlyif mysql # use DIV operator for integer division
query I rowsort label-2176
SELECT DISTINCT 4 * col1 DIV - 54 FROM tab1
----
-1
0
skipif mysql # not compatible
query I rowsort label-2176
SELECT DISTINCT 4 * col1 / - 54 FROM tab1
----
-1
0
query I rowsort
SELECT + 1 AS col0 FROM tab1
----
1
1
1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2178
SELECT + + col1 * + CAST( NULL AS SIGNED ) * - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2178
SELECT + + col1 * + CAST ( NULL AS INTEGER ) * - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab1 AS cor0, tab1 AS cor1, tab2, tab1 AS cor2
----
3645 values hashing to 91c4f11552b395e0eb390f09eebaec3d
onlyif mysql # use DIV operator for integer division
query I rowsort label-2180
SELECT col2 DIV - cor0.col0 col2 FROM tab0 AS cor0
----
-1
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2180
SELECT col2 / - cor0.col0 col2 FROM tab0 AS cor0
----
-1
0
0
query I rowsort
SELECT col2 + - col1 AS col0 FROM tab0
----
-53
-9
-96
query I rowsort
SELECT + - col1 + + col1 AS col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT 35 + + col0 AS col0 FROM tab2
----
113
114
42
query I rowsort
SELECT + col0 + - col1 * col2 FROM tab1 AS cor0
----
-1168
-1401
-506
onlyif mysql # use DIV operator for integer division
query I rowsort label-2185
SELECT ALL + 30 * ( - col2 ) + + 46 DIV + tab1.col2 FROM tab1
----
-1620
-1710
-2880
skipif mysql # not compatible
query I rowsort label-2185
SELECT ALL + 30 * ( - col2 ) + + 46 / + tab1.col2 FROM tab1
----
-1620
-1710
-2880
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 25 col0 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 2c77240b60ac01c717a5ed5d0165f450
query I rowsort
SELECT 62 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 4911b1417a3797d23dd8f38b6ed05c1b
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 45 col1 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 63e2b488a204f83ec8c063dafdfd4371
onlyif mysql # use DIV operator for integer division
query I rowsort label-2189
SELECT DISTINCT col2 DIV + col1 col0 FROM tab1 AS cor0
----
2
5
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2189
SELECT DISTINCT col2 / + col1 col0 FROM tab1 AS cor0
----
2
5
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 94 col2 FROM tab2 AS cor0
----
-94
-94
-94
onlyif mysql # use DIV operator for integer division
query I rowsort label-2191
SELECT DISTINCT - 14 DIV - cor0.col2 + - col1 col1 FROM tab0 cor0
----
-83
-86
-91
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2191
SELECT DISTINCT - 14 / - cor0.col2 + - col1 col1 FROM tab0 cor0
----
-83
-86
-91
query I rowsort
SELECT ALL + col0 * cor0.col0 AS col0 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT DISTINCT cor0.col1 FROM tab0, tab0 AS cor0, tab0 AS cor1, tab1 AS cor2
----
86
91
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 + col2 * + cor0.col1 + + col1 col1 FROM tab2 AS cor0
----
1619
701
895
query I rowsort
SELECT - col2 + 71 * + cor0.col2 + col2 AS col0 FROM tab0 AS cor0
----
2343
5822
71
query I rowsort
SELECT DISTINCT + 11 + - col2 FROM tab2 cor0
----
-15
-16
-27
query I rowsort
SELECT - 64 + cor0.col1 + + col2 * - ( - col2 + col2 * - col0 ) AS col0 FROM tab0 cor0
----
27247
605187
69
query I rowsort
SELECT - col2 + - col2 - - col0 FROM tab2 AS cor0
----
-47
26
3
query I rowsort
SELECT ALL + ( - cor0.col1 ) + + col1 * 0 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT DISTINCT + + col1 * cor0.col1 FROM tab1 cor0
----
100
169
676
query I rowsort
SELECT - - col2 * + col1 + + cor0.col0 FROM tab0 AS cor0
----
132
2862
7551
query I rowsort
SELECT - ( 12 ) FROM tab0
----
-12
-12
-12
query I rowsort
SELECT DISTINCT - 61 FROM tab1
----
-61
query I rowsort
SELECT ALL + - col0 * ( col0 ) FROM tab2 cor0
----
-49
-6084
-6241
query I rowsort
SELECT ALL + cor0.col0 * + col2 AS col1 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT ALL - col2 - col0 FROM tab1
----
-121
-176
-57
query I rowsort
SELECT col0 + + 88 + col0 * - col1 FROM tab0
----
-1952
-3272
-7922
onlyif mysql # use DIV operator for integer division
query I rowsort label-2208
SELECT tab0.col0 DIV ( + tab0.col0 + col0 ) col1 FROM tab0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2208
SELECT tab0.col0 / ( + tab0.col0 + col0 ) col1 FROM tab0
----
0
0
0
query I rowsort
SELECT ALL cor0.col1 FROM tab1 cor0 CROSS JOIN tab2, tab2 AS cor1, tab1, tab1 AS cor2
----
243 values hashing to de2705ff0bb8b4f714dafb07497c6119
query I rowsort
SELECT - - cor0.col2 + + col1 FROM tab1 cor0
----
109
67
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-2211
SELECT ALL - col2 DIV + ( - col1 ) + + col0 AS col2 FROM tab1 AS cor0
----
5
69
87
skipif mysql # not compatible
query I rowsort label-2211
SELECT ALL - col2 / + ( - col1 ) + + col0 AS col2 FROM tab1 AS cor0
----
5
69
87
query I rowsort
SELECT DISTINCT - col1 - - ( - col2 + col2 ) AS col0 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT + col2 + ( + col2 ) AS col0 FROM tab2
----
52
54
76
query I rowsort
SELECT ( col1 ) + - col2 * - col0 AS col0 FROM tab1 AS cor0
----
188
3658
7693
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( cor0.col1 ) col2 FROM tab2 cor0
----
17
31
59
query I rowsort
SELECT ALL tab2.col0 * col2 + + col0 * - col0 FROM tab2
----
-3239
-4056
140
query I rowsort
SELECT DISTINCT ( + col2 ) + col0 FROM tab0
----
171
36
57
query I rowsort
SELECT ALL tab0.col0 * tab0.col2 * col2 + - col1 FROM tab0
----
-62
26050
598345
query I rowsort
SELECT + col1 - ( + col2 ) AS col2 FROM tab2 AS cor0
----
-21
33
4
query I rowsort
SELECT + cor0.col2 + 60 FROM tab2 AS cor0
----
86
87
98
query I rowsort
SELECT DISTINCT - 50 * col2 AS col1 FROM tab2 AS cor0
----
-1300
-1350
-1900
query I rowsort
SELECT DISTINCT ( - col2 ) AS col1 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT DISTINCT - + 12 FROM tab2 AS cor0
----
-12
query I rowsort
SELECT ALL - - col0 * 76 FROM tab2 AS cor0
----
532
5928
6004
query I rowsort
SELECT ALL - + 17 + col0 AS col0 FROM tab1 AS cor0
----
-14
47
63
query I rowsort
SELECT DISTINCT + ( + tab0.col2 + + 52 ) * - col1 FROM tab0
----
-12194
-5141
-7310
onlyif mysql # use DIV operator for integer division
query I rowsort label-2227
SELECT - col0 * - col0 DIV col0 AS col1 FROM tab0 AS cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-2227
SELECT - col0 * - col0 / col0 AS col1 FROM tab0 AS cor0
----
24
35
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-2228
SELECT - col1 * col0 DIV - 97 + + col2 AS col2 FROM tab0
----
165
36
54
skipif mysql # not compatible
query I rowsort label-2228
SELECT - col1 * col0 / - 97 + + col2 AS col2 FROM tab0
----
165
36
54
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab2.col2 * tab2.col2 col2 FROM tab2
----
1444
676
729
onlyif mysql # use DIV operator for integer division
query I rowsort label-2230
SELECT DISTINCT - col0 DIV - col2 + + 75 AS col2 FROM tab0
----
110
75
76
skipif mysql # not compatible
query I rowsort label-2230
SELECT DISTINCT - col0 / - col2 + + 75 AS col2 FROM tab0
----
110
75
76
query I rowsort
SELECT + cor0.col1 + + cor0.col2 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT - - col0 + col1 AS col2 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT DISTINCT col2 * cor0.col1 + col1 AS col1 FROM tab1 AS cor0
----
1261
1430
580
query I rowsort
SELECT ALL - + col1 * col1 * 48 AS col1 FROM tab1 AS cor0
----
-32448
-4800
-8112
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + 7 * + 67 col2 FROM tab1 AS cor0
----
479
482
495
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + ( + col1 + + cor0.col0 ) col1 FROM tab2 AS cor0
----
1026
3562
3648
query I rowsort
SELECT cor0.col0 + col2 AS col1 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT ALL + + col0 * - 84 FROM tab1 cor0
----
-252
-5376
-6720
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2239
SELECT - - col1 + CAST( 82 AS SIGNED ) * col2 AS col0 FROM tab0 AS cor0
----
179
2792
6815
skipif mysql # not compatible
query I rowsort label-2239
SELECT - - col1 + CAST ( 82 AS INTEGER ) * col2 AS col0 FROM tab0 AS cor0
----
179
2792
6815
query I rowsort
SELECT ALL col2 * col0 * 46 + + col0 FROM tab0 AS cor0
----
1645
335797
36456
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - cor0.col2 * + col1 col1 FROM tab0 AS cor0
----
2838
7462
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2242
SELECT ALL + + col1 * CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2242
SELECT ALL + + col1 * CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - cor0.col1 + - col1 AS col0 FROM tab2 AS cor0
----
-118
-34
-62
query I rowsort
SELECT ALL col0 + ( col1 ) * + col2 FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT + col1 * + 92 FROM tab0 AS cor0
----
7912
8372
8924
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2246
SELECT DISTINCT + - col2 * + CAST( 80 AS SIGNED ) - + col1 AS col1 FROM tab1 AS cor0
----
-4346
-4570
-7693
skipif mysql # not compatible
query I rowsort label-2246
SELECT DISTINCT + - col2 * + CAST ( 80 AS INTEGER ) - + col1 AS col1 FROM tab1 AS cor0
----
-4346
-4570
-7693
query I rowsort
SELECT DISTINCT col1 - cor0.col2 * cor0.col2 AS col2 FROM tab0 AS cor0
----
-1003
-6633
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + 6 * col0 col0 FROM tab0 AS cor0
----
113
443
58
query I rowsort
SELECT 86 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to ed1a39c2752ca3723602e4a92c54bbc4
query I rowsort
SELECT ALL 32 * col2 + 25 * col1 AS col2 FROM tab1
----
2074
2378
3397
query I rowsort
SELECT - 21 - col2 FROM tab1
----
-117
-75
-78
query I rowsort
SELECT 58 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 9ee363c6ac19cfdb8a50c7dfd5cc2b8a
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col1 col2 FROM tab0 AS cor0
----
-7396
-8281
-9409
query I rowsort
SELECT DISTINCT 6 * 85 AS col0 FROM tab0
----
510
query I rowsort
SELECT ALL + ( col1 ) + - col2 AS col2 FROM tab1
----
-28
-47
-83
query I rowsort
SELECT - 93 FROM tab1, tab1 cor0, tab1 AS cor1
----
27 values hashing to ea79c61f7a02d25805171f5e85229fba
query I rowsort
SELECT - - col2 * + col0 AS col1 FROM tab1 cor0
----
162
3648
7680
query I rowsort
SELECT DISTINCT + - 97 AS col2 FROM tab0 AS cor0
----
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 83 * - col0 col2 FROM tab2 cor0
----
581
6474
6557
query I rowsort
SELECT 3 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2261
SELECT col2 * - CAST( + tab1.col2 AS SIGNED ) + - col1 - - 36 * col0 AS col2 FROM tab1
----
-2834
-6349
-955
skipif mysql # not compatible
query I rowsort label-2261
SELECT col2 * - CAST ( + tab1.col2 AS INTEGER ) + - col1 - - 36 * col0 AS col2 FROM tab1
----
-2834
-6349
-955
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2262
SELECT tab2.col0 + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2262
SELECT tab2.col0 + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-2263
SELECT DISTINCT + col0 DIV + col0 + + col0 AS col0 FROM tab2
----
79
8
80
skipif mysql # not compatible
query I rowsort label-2263
SELECT DISTINCT + col0 / + col0 + + col0 AS col0 FROM tab2
----
79
8
80
query I rowsort
SELECT DISTINCT col2 + - col0 * - col0 FROM tab2
----
6110
6279
76
query I rowsort
SELECT DISTINCT - tab2.col0 FROM tab2, tab0, tab0 AS cor0
----
-7
-78
-79
query I rowsort
SELECT - + 52 FROM tab1, tab1 AS cor0
----
9 values hashing to 9500afe5646d620d5e8943351a29d082
query I rowsort
SELECT ALL col2 * ( ( + cor0.col1 ) ) AS col0 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT - col1 * ( + col1 ) AS col0 FROM tab2
----
-289
-3481
-961
query I rowsort
SELECT ALL + + col2 * 0 + col1 * col1 FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT ALL + col2 * cor0.col2 + col0 + col0 FROM tab0 AS cor0
----
1137
6902
71
query I rowsort
SELECT + col0 * 88 + col1 AS col1 FROM tab0 AS cor0
----
2198
3177
7923
query I rowsort
SELECT DISTINCT - 67 FROM tab1 AS cor0
----
-67
query I rowsort
SELECT ALL + ( + cor0.col1 ) * col0 + 42 FROM tab2 AS cor0
----
1385
259
4644
onlyif mysql # use DIV operator for integer division
query I rowsort label-2274
SELECT ALL ( - col2 ) + + cor0.col1 + + col0 DIV - col1 AS col0 FROM tab2 AS cor0
----
-25
32
4
skipif mysql # not compatible
query I rowsort label-2274
SELECT ALL ( - col2 ) + + cor0.col1 + + col0 / - col1 AS col0 FROM tab2 AS cor0
----
-25
32
4
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 * cor0.col1 - + col2 col0 FROM tab2 AS cor0
----
-1560
-684
-864
onlyif mysql # use DIV operator for integer division
query I rowsort label-2276
SELECT 66 + - ( + col2 ) DIV + ( + col1 ) col1 FROM tab1
----
59
61
64
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2276
SELECT 66 + - ( + col2 ) / + ( + col1 ) col1 FROM tab1
----
59
61
64
onlyif mysql # use DIV operator for integer division
query I rowsort label-2277
SELECT cor1.col1 + cor0.col1 DIV 18 AS col1 FROM tab0, tab2 AS cor0 CROSS JOIN tab2, tab0 AS cor1
----
81 values hashing to 2f0c3094951f0c40b9315e5bad25b264
skipif mysql # not compatible
query I rowsort label-2277
SELECT cor1.col1 + cor0.col1 / 18 AS col1 FROM tab0, tab2 AS cor0 CROSS JOIN tab2, tab0 AS cor1
----
81 values hashing to 2f0c3094951f0c40b9315e5bad25b264
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2278
SELECT DISTINCT - CAST( + col2 AS SIGNED ) AS col1 FROM tab1
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-2278
SELECT DISTINCT - CAST ( + col2 AS INTEGER ) AS col1 FROM tab1
----
-54
-57
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 20 + col0 col0 FROM tab2 cor0
----
27
98
99
query I rowsort
SELECT DISTINCT + col1 + - col0 + - col1 AS col2 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT ALL + + 81 + - col2 FROM tab2 AS cor0
----
43
54
55
query I rowsort
SELECT - - col1 * - 39 + - cor0.col2 FROM tab1 cor0
----
-1068
-447
-603
query I rowsort
SELECT ALL col1 * - col0 * col1 AS col0 FROM tab2 AS cor0
----
-22831
-271518
-6727
query I rowsort
SELECT + + col0 + col2 * + col2 FROM tab2 AS cor0
----
1523
736
754
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2285
SELECT DISTINCT CAST( 74 AS SIGNED ) FROM tab0 AS cor0
----
74
skipif mysql # not compatible
query I rowsort label-2285
SELECT DISTINCT CAST ( 74 AS INTEGER ) FROM tab0 AS cor0
----
74
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2286
SELECT ALL + CAST( NULL AS SIGNED ) + - col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2286
SELECT ALL + CAST ( NULL AS INTEGER ) + - col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + + ( + col1 ) AS col2 FROM tab2 AS cor0
----
17
31
59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + 27 col2 FROM tab2 AS cor0
----
44
58
86
query I rowsort
SELECT DISTINCT - ( 15 ) FROM tab2 AS cor0
----
-15
query I rowsort
SELECT 40 AS col2 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to e4d10f7d6c34a281f524e45e82ebd2a0
query I rowsort
SELECT ALL + tab1.col1 * - ( col0 * ( - tab1.col1 ) + + tab1.col1 ) AS col2 FROM tab1
----
13351
1352
6300
onlyif mysql # use DIV operator for integer division
query I rowsort label-2292
SELECT + 29 DIV 16 + col2 FROM tab1 AS cor0
----
55
58
97
skipif mysql # not compatible
query I rowsort label-2292
SELECT + 29 / 16 + col2 FROM tab1 AS cor0
----
55
58
97
query I rowsort
SELECT - 61 * cor0.col0 FROM tab1 AS cor0
----
-183
-3904
-4880
query I rowsort
SELECT 87 FROM tab0 AS cor0
----
87
87
87
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 53 col0 FROM tab1 cor0
----
53
53
53
query I rowsort
SELECT DISTINCT + col2 * ( + col1 ) AS col0 FROM tab0 AS cor0
----
2838
7462
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-2297
SELECT ALL col0 DIV col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2297
SELECT ALL col0 / col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT - col1 + + col1 * + ( col2 ) AS col0 FROM tab2 AS cor0
----
1475
629
806
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2299
SELECT DISTINCT col1 * + CAST( col2 AS SIGNED ) + + col1 AS col0 FROM tab1 AS cor0
----
1261
1430
580
skipif mysql # not compatible
query I rowsort label-2299
SELECT DISTINCT col1 * + CAST ( col2 AS INTEGER ) + + col1 AS col0 FROM tab1 AS cor0
----
1261
1430
580
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2300
SELECT ALL + - col1 * CAST( NULL AS SIGNED ) + cor0.col1 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2300
SELECT ALL + - col1 * CAST ( NULL AS INTEGER ) + cor0.col1 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col1 * - 47 - - col2 AS col2 FROM tab1 AS cor0
----
1276
527
707
query I rowsort
SELECT - - col0 + col0 * - 90 * - col2 AS col1 FROM tab1 AS cor0
----
14583
328384
691280
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + cor0.col1 * 49 col1 FROM tab0 cor0
----
4214
4459
4753
query I rowsort
SELECT ALL - col2 + cor0.col1 AS col2 FROM tab2 AS cor0
----
-21
33
4
query I rowsort
SELECT - col1 + + cor0.col2 + col2 * - col2 FROM tab0 AS cor0
----
-1142
-6733
-97
query I rowsort
SELECT - - col0 - + col0 * cor0.col2 FROM tab2 AS cor0
----
-182
-1950
-2923
onlyif mysql # use DIV operator for integer division
query I rowsort label-2307
SELECT - col1 - + col1 DIV + cor0.col0 FROM tab2 AS cor0
----
-17
-35
-59
skipif mysql # not compatible
query I rowsort label-2307
SELECT - col1 - + col1 / + cor0.col0 FROM tab2 AS cor0
----
-17
-35
-59
query I rowsort
SELECT ALL col1 + + tab0.col0 AS col2 FROM tab0
----
110
132
180
query I rowsort
SELECT + - col1 + col2 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT + + cor0.col1 + col1 FROM tab0 cor0
----
172
182
194
query I rowsort
SELECT - 98 + cor0.col1 * - col1 * col0 FROM tab1 AS cor0
----
-13618
-2126
-6498
query I rowsort
SELECT + - col2 * col1 * col2 + - 52 * col1 AS col0 FROM tab1 AS cor0
----
-120484
-33010
-77168
query I rowsort
SELECT 88 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37
query I rowsort
SELECT cor1.col1 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc
query I rowsort
SELECT - + col2 * col2 FROM tab2 AS cor0
----
-1444
-676
-729
query I rowsort
SELECT - - col2 * ( col2 * + col1 ) FROM tab2 AS cor0
----
22599
24548
39884
query I rowsort
SELECT + - cor0.col2 AS col2 FROM tab1 cor0
----
-54
-57
-96
query I rowsort
SELECT ALL - col1 * 44 FROM tab1 AS cor0
----
-1144
-440
-572
query I rowsort
SELECT DISTINCT - - col0 * - 70 FROM tab0 AS cor0
----
-1680
-2450
-6230
query I rowsort
SELECT ALL + col1 * 99 AS col0 FROM tab1 AS cor0
----
1287
2574
990
query I rowsort
SELECT ALL 41 * + cor0.col2 + - col1 FROM tab1 AS cor0
----
2188
2327
3923
query I rowsort
SELECT ALL ( col1 ) AS col2 FROM tab0 AS cor0
----
86
91
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2323
SELECT + col2 * 0 - + col0 * - CAST( NULL AS DECIMAL ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2323
SELECT + col2 * 0 - + col0 * - CAST ( NULL AS REAL ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 40 col2 FROM tab1, tab1 AS cor0
----
9 values hashing to f02f17e9bc17e514af018c6f245ed7a9
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab1 AS cor0, tab2 AS cor1, tab2, tab2 AS cor2
----
3645 values hashing to db428ec66bce13149e3129b417b0fe94
onlyif mysql # use DIV operator for integer division
query I rowsort label-2326
SELECT DISTINCT + 44 DIV + 89 AS col1 FROM tab2 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-2326
SELECT DISTINCT + 44 / + 89 AS col1 FROM tab2 AS cor0
----
0
query I rowsort
SELECT DISTINCT + + cor0.col0 * 76 FROM tab0 AS cor0
----
1824
2660
6764
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0 AS cor0, tab0, tab2 cor1
----
972 values hashing to 1e9d01970ae508486ddabec967bb176c
query I rowsort
SELECT + + 43 AS col2 FROM tab0 AS cor0
----
43
43
43
onlyif mysql # use DIV operator for integer division
query I rowsort label-2330
SELECT + - ( col1 ) DIV - col2 AS col2 FROM tab0 AS cor0
----
1
2
97
skipif mysql # not compatible
query I rowsort label-2330
SELECT + - ( col1 ) / - col2 AS col2 FROM tab0 AS cor0
----
1
2
97
query I rowsort
SELECT col2 + + col0 * - col1 FROM tab1 WHERE - col2 NOT IN ( - col2 )
----
query I rowsort
SELECT DISTINCT 59 AS col2 FROM tab1 AS cor0
----
59
query I rowsort
SELECT col0 + col2 * - col0 FROM tab1
----
-159
-3584
-7600
query I rowsort
SELECT col2 * + tab0.col2 + tab0.col0 AS col1 FROM tab0
----
1113
36
6813
query I rowsort
SELECT DISTINCT col0 + + col2 * - col1 FROM tab2
----
-1456
-567
-830
query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col2 * - col2 * - col0 NOT BETWEEN - col0 AND col1
----
query I rowsort
SELECT - cor1.col0 AS col1 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8
query I rowsort
SELECT - 50 AS col1 FROM tab1
----
-50
-50
-50
query I rowsort
SELECT + 68 * - cor0.col0 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 6d6aff03d68882a33674641f8b0cdea4
query I rowsort
SELECT - - 87 + cor0.col0 * cor0.col1 FROM tab2 AS cor0
----
1430
304
4689
query I rowsort
SELECT - 85 - col2 * - col2 FROM tab2
----
1359
591
644
query I rowsort
SELECT ALL 3 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 3e22859a313d85a6146c6df5f23d77cf
onlyif mysql # use DIV operator for integer division
query I rowsort label-2343
SELECT ALL - col0 DIV - col2 + - col0 AS col2 FROM tab1 AS cor0
----
-3
-63
-80
skipif mysql # not compatible
query I rowsort label-2343
SELECT ALL - col0 / - col2 + - col0 AS col2 FROM tab1 AS cor0
----
-3
-63
-80
query I rowsort
SELECT ALL + 62 AS col0 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 4911b1417a3797d23dd8f38b6ed05c1b
query I rowsort
SELECT ALL - - cor0.col1 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775
query I rowsort
SELECT DISTINCT 40 AS col2 FROM tab1, tab0 AS cor0
----
40
query I rowsort
SELECT ALL col0 * 53 FROM tab1
----
159
3392
4240
onlyif mysql # use DIV operator for integer division
query I rowsort label-2348
SELECT col2 DIV + ( 6 ) + col2 FROM tab2
----
30
31
44
skipif mysql # not compatible
query I rowsort label-2348
SELECT col2 / + ( 6 ) + col2 FROM tab2
----
30
31
44
query I rowsort
SELECT col2 * + ( - col2 ) - col1 * ( + col1 ) AS col2 FROM tab2
----
-1690
-1733
-4157
query I rowsort
SELECT - 53 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 2876418587c77a182d88db2907b0a51a
onlyif mysql # use DIV operator for integer division
query I rowsort label-2351
SELECT DISTINCT + col1 * 24 DIV 42 + + col2 AS col0 FROM tab2 AS cor0
----
44
47
59
skipif mysql # not compatible
query I rowsort label-2351
SELECT DISTINCT + col1 * 24 / 42 + + col2 AS col0 FROM tab2 AS cor0
----
44
47
59
query I rowsort
SELECT + col2 * + cor0.col2 * - col1 AS col2 FROM tab2 AS cor0
----
-22599
-24548
-39884
onlyif mysql # use DIV operator for integer division
query I rowsort label-2353
SELECT - col1 DIV + cor0.col1 FROM tab2 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-2353
SELECT - col1 / + cor0.col1 FROM tab2 AS cor0
----
-1
-1
-1
query I rowsort
SELECT DISTINCT cor0.col0 + - col0 * + 92 FROM tab1 AS cor0
----
-273
-5824
-7280
query I rowsort
SELECT DISTINCT + + col2 + - cor0.col2 * + col0 AS col1 FROM tab2 AS cor0
----
-162
-2002
-2964
query I rowsort
SELECT - col2 * ( 72 ) AS col2 FROM tab2 AS cor0
----
-1872
-1944
-2736
query I rowsort
SELECT DISTINCT 0 FROM tab2, tab2 AS cor0
----
0
query I rowsort
SELECT - 16 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to be22ac76b42c6f7212ecc0ba7c89eb34
query I rowsort
SELECT ALL 38 + - col0 FROM tab1
----
-26
-42
35
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 * col0 - ( 64 ) col1 FROM tab1 AS cor0
----
-226
-3712
-7744
query I rowsort
SELECT DISTINCT - cor0.col1 + + col2 FROM tab1 AS cor0
----
28
47
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-2362
SELECT ALL + - 0 DIV + cor0.col1 + + CAST( col1 + - col2 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-28
-47
-83
skipif mysql # not compatible
query I rowsort label-2362
SELECT ALL + - 0 / + cor0.col1 + + CAST ( col1 + - col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT col0 + + col2 * - col0 AS col2 FROM tab1
----
-159
-3584
-7600
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + col2 col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT col0 * + col1 * col1 + - ( cor0.col2 ) FROM tab1 AS cor0
----
13424
1974
6343
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 97 * - col0 + col1 col2 FROM tab0 AS cor0
----
-2242
-3298
-8542
onlyif mysql # use DIV operator for integer division
query I rowsort label-2367
SELECT ALL col2 * + col1 + 82 DIV - 34 + cor0.col1 AS col2 FROM tab1 AS cor0
----
1259
1428
578
skipif mysql # not compatible
query I rowsort label-2367
SELECT ALL col2 * + col1 + 82 / - 34 + cor0.col1 AS col2 FROM tab1 AS cor0
----
1259
1428
578
query I rowsort
SELECT ALL 6 FROM tab1, tab1 AS cor0
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821
query I rowsort
SELECT 69 AS col0 FROM tab2
----
69
69
69
query I rowsort
SELECT col1 * - 10 AS col2 FROM tab1
----
-100
-130
-260
query I rowsort
SELECT ALL col0 * col2 + col1 AS col1 FROM tab2 AS cor0
----
2087
220
3019
query I rowsort
SELECT DISTINCT ( + col2 ) * ( + col2 ) FROM tab0 AS cor0
----
1
1089
6724
onlyif mysql # use DIV operator for integer division
query I rowsort label-2373
SELECT ALL - col0 DIV col1 + - 92 AS col0 FROM tab0 cor0
----
-92
-92
-92
skipif mysql # not compatible
query I rowsort label-2373
SELECT ALL - col0 / col1 + - 92 AS col0 FROM tab0 cor0
----
-92
-92
-92
query I rowsort
SELECT + ( - col1 ) + + ( - col0 ) AS col0 FROM tab2 AS cor0
----
-137
-38
-96
query I rowsort
SELECT DISTINCT - - 39 + + col2 * - col2 AS col2 FROM tab1 AS cor0
----
-2877
-3210
-9177
query I rowsort
SELECT - - 93 + col1 FROM tab1 AS cor0
----
103
106
119
query I rowsort
SELECT ALL - + col1 + col2 FROM tab0 AS cor0
----
-53
-9
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-2378
SELECT ALL + - col0 DIV col0 + + 24 FROM tab2 AS cor0
----
23
23
23
skipif mysql # not compatible
query I rowsort label-2378
SELECT ALL + - col0 / col0 + + 24 FROM tab2 AS cor0
----
23
23
23
onlyif mysql # use DIV operator for integer division
query I rowsort label-2379
SELECT col2 + - col1 DIV col2 AS col0 FROM tab0 AS cor0
----
-96
31
81
skipif mysql # not compatible
query I rowsort label-2379
SELECT col2 + - col1 / col2 AS col0 FROM tab0 AS cor0
----
-96
31
81
query I rowsort
SELECT ALL - col0 * col2 * + col1 FROM tab2 AS cor0
----
-119652
-51034
-5859
query I rowsort
SELECT DISTINCT + - cor0.col1 * col0 AS col0 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT - + col0 * cor0.col1 - - col2 FROM tab2 AS cor0
----
-1305
-190
-4576
onlyif mysql # use DIV operator for integer division
query I rowsort label-2383
SELECT - col1 * - cor0.col2 + - col1 DIV - col1 AS col2 FROM tab0 AS cor0
----
2839
7463
98
skipif mysql # not compatible
query I rowsort label-2383
SELECT - col1 * - cor0.col2 + - col1 / - col1 AS col2 FROM tab0 AS cor0
----
2839
7463
98
query I rowsort
SELECT - col1 * - col0 + col2 * + col0 * col0 AS col2 FROM tab2
----
1540
162786
238501
query I rowsort
SELECT tab0.col1 + tab0.col2 AS col0 FROM tab0
----
119
173
98
query I rowsort
SELECT DISTINCT tab2.col0 AS col0 FROM tab2, tab1, tab2 AS cor0
----
7
78
79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - col0 col1 FROM tab0
----
0
0
0
query I rowsort
SELECT DISTINCT - ( col0 ) * + col1 + col2 AS col0 FROM tab2 cor0
----
-1305
-190
-4576
query I rowsort
SELECT + col2 * col0 + - col1 AS col0 FROM tab0 AS cor0
----
-62
706
7207
query I rowsort
SELECT DISTINCT cor0.col1 + col2 * col1 * cor0.col1 AS col2 FROM tab0 AS cor0
----
244154
679133
9506
query I rowsort
SELECT - col0 * col0 + col2 - cor0.col2 AS col2 FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT ALL + ( cor0.col0 ) + cor0.col2 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT DISTINCT + + col1 + + col2 AS col1 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT ALL tab2.col1 + col2 * col0 FROM tab2
----
2087
220
3019
onlyif mysql # use DIV operator for integer division
query I rowsort label-2395
SELECT ALL + col1 DIV 88 + col0 + col1 FROM tab0
----
110
133
181
skipif mysql # not compatible
query I rowsort label-2395
SELECT ALL + col1 / 88 + col0 + col1 FROM tab0
----
110
133
181
query I rowsort
SELECT - col0 - col2 * col1 FROM tab2
----
-1612
-725
-844
query I rowsort
SELECT DISTINCT cor1.col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
10
13
26
query I rowsort
SELECT + col0 + - col2 * cor0.col1 AS col0 FROM tab0 AS cor0
----
-2814
-62
-7373
query I rowsort
SELECT DISTINCT - - 20 * + col2 FROM tab2 cor0
----
520
540
760
query I rowsort
SELECT - - col1 + cor0.col0 * - cor0.col2 FROM tab1 cor0
----
-136
-3638
-7667
query I rowsort
SELECT DISTINCT - + cor0.col0 AS col2 FROM tab0 AS cor0
----
-24
-35
-89
onlyif mysql # use DIV operator for integer division
query I rowsort label-2402
SELECT + ( col1 ) DIV col1 col2 FROM tab1 cor0
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2402
SELECT + ( col1 ) / col1 col2 FROM tab1 cor0
----
1
1
1
query I rowsort
SELECT ALL col0 + + col0 + + col0 * - col2 * col1 AS col1 FROM tab2 AS cor0
----
-119496
-50876
-5845
query I rowsort
SELECT 31 * + col0 + col0 FROM tab0 AS cor0
----
1120
2848
768
onlyif mysql # use DIV operator for integer division
query I rowsort label-2405
SELECT DISTINCT - col0 * + col0 DIV col0 FROM tab2 AS cor0
----
-7
-78
-79
skipif mysql # not compatible
query I rowsort label-2405
SELECT DISTINCT - col0 * + col0 / col0 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT DISTINCT - ( - cor0.col0 ) FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT ALL - 73 * cor0.col0 FROM tab1 AS cor0
----
-219
-4672
-5840
onlyif mysql # use DIV operator for integer division
query I rowsort label-2408
SELECT ALL - cor0.col1 DIV col1 AS col1 FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-2408
SELECT ALL - cor0.col1 / col1 AS col1 FROM tab0 AS cor0
----
-1
-1
-1
query I rowsort
SELECT ( + col1 ) + col0 FROM tab2 AS cor0
----
137
38
96
query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <> ( + col2 / col1 )
----
query I rowsort
SELECT col1 * - col2 - + col0 * + tab2.col0 AS col1 FROM tab2
----
-6887
-7618
-886
query I rowsort
SELECT DISTINCT + col0 + col2 AS col2 FROM tab1
----
121
176
57
query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) < NULL
----
query I rowsort
SELECT tab0.col1 * col0 * col1 FROM tab0
----
177504
329315
737009
query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 + col0 * - col2 NOT IN ( col2 )
----
query I rowsort
SELECT + col0 * tab2.col2 + + col2 + col1 FROM tab2
----
2113
247
3057
query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) <> ( + col2 + + col1 + col1 )
----
query I rowsort
SELECT DISTINCT tab0.col1 * + col1 + col0 FROM tab0
----
7420
8370
9444
query III rowsort
SELECT * FROM tab0 WHERE NULL <= ( NULL )
----
query I rowsort
SELECT col2 * + col2 - + col1 FROM tab2
----
1427
617
698
query I rowsort
SELECT DISTINCT + tab2.col0 * - col1 AS col1 FROM tab2
----
-1343
-217
-4602
query I rowsort
SELECT DISTINCT + col1 * col2 + + col2 AS col0 FROM tab1
----
1344
1458
627
query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 > ( NULL )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * - col1 + col1 col2 FROM tab1
----
-156
-650
-90
query I rowsort
SELECT DISTINCT - tab1.col2 + col1 FROM tab1
----
-28
-47
-83
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL <= NULL
----
query I rowsort
SELECT + col1 - + col2 FROM tab1
----
-28
-47
-83
query I rowsort
SELECT ALL - col1 + + col2 * + col1 FROM tab2
----
1475
629
806
query I rowsort
SELECT - col2 FROM tab2 WHERE NOT NULL IN ( col1 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab0.col0 * tab0.col0 col2 FROM tab0
----
1225
576
7921
query I rowsort
SELECT - col1 - - col1 AS col2 FROM tab1
----
0
0
0
query I rowsort
SELECT - col1 * col1 + col1 * - col1 AS col1 FROM tab0
----
-14792
-16562
-18818
query I rowsort
SELECT DISTINCT - col2 * + col0 AS col2 FROM tab0 WHERE NULL NOT IN ( col1 )
----
query I rowsort
SELECT ALL + tab1.col2 * tab1.col0 * + col2 + col2 * + tab1.col2 FROM tab1
----
11664
211185
746496
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - col2 * col0 col1 FROM tab0
----
-34
-7216
-759
query I rowsort
SELECT DISTINCT - col0 * + col0 AS col0 FROM tab1
----
-4096
-6400
-9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col1 FROM tab2 WHERE NULL BETWEEN ( col1 + + col0 ) AND col1 + + col0
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-2438
SELECT DISTINCT col0 + - col1 DIV col2 AS col0 FROM tab1
----
3
64
80
skipif mysql # not compatible
query I rowsort label-2438
SELECT DISTINCT col0 + - col1 / col2 AS col0 FROM tab1
----
3
64
80
query I rowsort
SELECT col0 * tab1.col2 AS col0 FROM tab1
----
162
3648
7680
query I rowsort
SELECT ALL col1 * col2 + col2 * tab0.col1 AS col1 FROM tab0
----
14924
194
5676
query I rowsort
SELECT DISTINCT col1 * col0 + col1 + col2 FROM tab2
----
1398
275
4687
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL <> ( NULL )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab2.col0 * tab2.col0 col0 FROM tab2
----
-49
-6084
-6241
query I rowsort
SELECT ALL - tab0.col2 * col1 AS col2 FROM tab0
----
-2838
-7462
-97
query I rowsort
SELECT DISTINCT + col0 * col0 * col0 FROM tab0
----
13824
42875
704969
query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL <> ( NULL )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-2447
SELECT col0 + - col2 * + col2 * col0 + tab1.col0 DIV col0 FROM tab1
----
-207871
-737199
-8744
skipif mysql # not compatible
query I rowsort label-2447
SELECT col0 + - col2 * + col2 * col0 + tab1.col0 / col0 FROM tab1
----
-207871
-737199
-8744
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * col2 col0 FROM tab0
----
-2838
-7462
-97
query I rowsort
SELECT DISTINCT - - col0 + + col0 AS col2 FROM tab0 AS cor0
----
178
48
70
query I rowsort
SELECT - col2 * + col1 AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT + - col2 + + col0 * col1 AS col2 FROM tab1 AS cor0
----
24
583
944
query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE col1 >= - col2 + - cor0.col0 OR ( + col2 ) < col1 * col2
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45
onlyif mysql # use DIV operator for integer division
query I rowsort label-2453
SELECT DISTINCT + col0 + cor0.col2 DIV col0 - + col1 FROM tab1 AS cor0
----
-5
54
68
skipif mysql # not compatible
query I rowsort label-2453
SELECT DISTINCT + col0 + cor0.col2 / col0 - + col1 FROM tab1 AS cor0
----
-5
54
68
query I rowsort
SELECT ALL + + col0 + - col0 * cor0.col1 AS col1 FROM tab2 AS cor0
----
-1264
-210
-4524
query I rowsort
SELECT ALL + col0 * + col0 + cor0.col1 AS col0 FROM tab0 cor0
----
1322
662
8012
query I rowsort
SELECT DISTINCT + + col2 - col0 AS col0 FROM tab1 AS cor0
----
-7
16
51
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 * - col2 * - col1 col1 FROM tab0 AS cor0
----
244068
679042
9409
onlyif mysql # use DIV operator for integer division
query I rowsort label-2458
SELECT DISTINCT col0 DIV + col1 AS col2 FROM tab1 AS cor0
----
0
6
skipif mysql # not compatible
query I rowsort label-2458
SELECT DISTINCT col0 / + col1 AS col2 FROM tab1 AS cor0
----
0
6
query I rowsort
SELECT col1 * + col0 * col1 + - col1 FROM tab1
----
13507
2002
6390
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL BETWEEN NULL AND tab0.col2
----
query I rowsort
SELECT col2 + - col1 * - col1 FROM tab1 cor0
----
157
265
730
query I rowsort
SELECT - 96 AS col2 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to a7b3e5dd01c8929180b7ffda67f79798
onlyif mysql # use DIV operator for integer division
query I rowsort label-2463
SELECT - col0 DIV + col2 + tab0.col0 FROM tab0
----
0
24
88
skipif mysql # not compatible
query I rowsort label-2463
SELECT - col0 / + col2 + tab0.col0 FROM tab0
----
0
24
88
query I rowsort
SELECT ( + col0 ) - + col0 FROM tab2
----
0
0
0
query I rowsort
SELECT DISTINCT 41 FROM tab2
----
41
onlyif mysql # use DIV operator for integer division
query I rowsort label-2466
SELECT - cor0.col1 DIV - cor0.col0 FROM tab2 AS cor0
----
0
0
4
skipif mysql # not compatible
query I rowsort label-2466
SELECT - cor0.col1 / - cor0.col0 FROM tab2 AS cor0
----
0
0
4
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 + col2 * - col0 col2 FROM tab2 AS cor0
----
-162
-2002
-2964
onlyif mysql # use DIV operator for integer division
query I rowsort label-2468
SELECT DISTINCT + col2 DIV + col1 FROM tab1 AS cor0
----
2
5
7
skipif mysql # not compatible
query I rowsort label-2468
SELECT DISTINCT + col2 / + col1 FROM tab1 AS cor0
----
2
5
7
query I rowsort
SELECT ALL + col0 * - col1 AS col2 FROM tab2 cor0
----
-1343
-217
-4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-2470
SELECT + col2 * cor0.col1 DIV ( cor0.col0 ) AS col1 FROM tab2 AS cor0
----
119
19
8
skipif mysql # not compatible
query I rowsort label-2470
SELECT + col2 * cor0.col1 / ( cor0.col0 ) AS col1 FROM tab2 AS cor0
----
119
19
8
query I rowsort
SELECT DISTINCT 85 + + col2 FROM tab0 AS cor0
----
118
167
86
query I rowsort
SELECT ALL + + cor0.col0 * col0 AS col0 FROM tab1 AS cor0
----
4096
6400
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 + + cor0.col0 col0 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT DISTINCT - col1 - + col2 * + ( + 59 ) FROM tab1 AS cor0
----
-3212
-3373
-5677
query I rowsort
SELECT ALL + 79 * + col2 AS col0 FROM tab2 AS cor0
----
2054
2133
3002
query I rowsort
SELECT ALL - - col0 AS col1 FROM tab2 cor0
----
7
78
79
onlyif mysql # use DIV operator for integer division
query I rowsort label-2477
SELECT DISTINCT - col1 + + col1 DIV + tab0.col1 FROM tab0
----
-85
-90
-96
skipif mysql # not compatible
query I rowsort label-2477
SELECT DISTINCT - col1 + + col1 / + tab0.col1 FROM tab0
----
-85
-90
-96
query I rowsort
SELECT col0 * col0 - - col0 AS col2 FROM tab0
----
1260
600
8010
query I rowsort
SELECT tab2.col2 + col2 * + 63 FROM tab2
----
1664
1728
2432
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT col1 - CAST ( col2 AS REAL ) * col0 FROM tab1 cor0
----
-136
-3638
-7667
query I rowsort
SELECT DISTINCT 0 AS col0 FROM tab0, tab0 AS cor0, tab2 AS cor1, tab0 AS cor2
----
0
query I rowsort
SELECT ALL + 50 * col0 - col0 AS col1 FROM tab1 cor0
----
147
3136
3920
query I rowsort
SELECT + col2 * col0 + cor0.col1 AS col2 FROM tab0 AS cor0
----
132
7389
878
query I rowsort
SELECT ALL - + 22 FROM tab0 AS cor0
----
-22
-22
-22
query I rowsort
SELECT - 43 * ( col1 ) + col0 AS col0 FROM tab0 AS cor0
----
-3674
-3824
-4136
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2486
SELECT CAST( NULL AS SIGNED ) * + 91 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2486
SELECT CAST ( NULL AS INTEGER ) * + 91 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-2487
SELECT ALL + ( col2 ) DIV col2 FROM tab1 cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-2487
SELECT ALL + ( col2 ) / col2 FROM tab1 cor0
----
1
1
1
query I rowsort
SELECT ALL - + cor0.col0 * 86 FROM tab0 AS cor0
----
-2064
-3010
-7654
query I rowsort
SELECT DISTINCT + ( - cor0.col2 ) FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT ( - col2 ) * + col1 * - cor0.col0 + + col2 AS col2 FROM tab0 AS cor0
----
3396
664200
68145
query I rowsort
SELECT ALL - col0 * - 47 FROM tab1 AS cor0
----
141
3008
3760
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 * col2 * + col2 + + cor0.col2 col2 FROM tab1 AS cor0
----
-207879
-737184
-8694
query I rowsort
SELECT ALL 65 AS col0 FROM tab2 AS cor0
----
65
65
65
query I rowsort
SELECT DISTINCT + cor0.col2 + ( - col1 ) * - ( - col0 ) FROM tab1 AS cor0
----
-24
-583
-944
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 69 col2 FROM tab2 AS cor0
----
-69
-69
-69
query I rowsort
SELECT 84 * 57 AS col2 FROM tab2 AS cor0
----
4788
4788
4788
query I rowsort
SELECT ALL - col0 * - 19 FROM tab1 cor0
----
1216
1520
57
query I rowsort
SELECT DISTINCT + + 80 + - cor0.col0 AS col2 FROM tab1 AS cor0
----
0
16
77
query I rowsort
SELECT ALL + + col1 * + col0 AS col2 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT ALL cor0.col0 * - col0 AS col0 FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT - ( - col0 ) + col1 AS col0 FROM tab1 AS cor0
----
29
74
93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 94 col1 FROM tab0 AS cor0
----
-94
query I rowsort
SELECT ALL - 75 + - col0 * + col2 + col1 AS col1 FROM tab0 AS cor0
----
-13
-7282
-781
query I rowsort
SELECT - + cor0.col1 + + cor0.col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT 89 FROM tab0, tab0 cor0
----
89
query I rowsort
SELECT DISTINCT 12 * col1 FROM tab1 AS cor0
----
120
156
312
query I rowsort
SELECT DISTINCT - - col1 * + col2 - + col0 FROM tab1 AS cor0
----
1168
1401
506
query I rowsort
SELECT DISTINCT + 19 - col2 AS col2 FROM tab2 AS cor0
----
-19
-7
-8
query I rowsort
SELECT ALL + col2 + 8 AS col0 FROM tab2
----
34
35
46
query I rowsort
SELECT - cor0.col0 + - col0 + - 47 FROM tab0 AS cor0
----
-117
-225
-95
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + 64 + col0 col2 FROM tab1 AS cor0
----
64
64
64
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * 2 col2 FROM tab0 AS cor0
----
164
2
66
query I rowsort
SELECT ALL - col1 + - 69 * - 40 * cor0.col1 FROM tab0 AS cor0
----
237274
251069
267623
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2514
SELECT + col1 + + CAST( col2 AS SIGNED ) AS col2 FROM tab0 cor0
----
119
173
98
skipif mysql # not compatible
query I rowsort label-2514
SELECT + col1 + + CAST ( col2 AS INTEGER ) AS col2 FROM tab0 cor0
----
119
173
98
query I rowsort
SELECT ALL - 0 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2
query I rowsort
SELECT ALL - col1 + + col0 * 9 FROM tab0 AS cor0
----
130
218
710
onlyif mysql # use DIV operator for integer division
query I rowsort label-2517
SELECT ALL ( - col1 ) DIV col2 FROM tab0
----
-1
-2
-97
skipif mysql # not compatible
query I rowsort label-2517
SELECT ALL ( - col1 ) / col2 FROM tab0
----
-1
-2
-97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2518
SELECT ALL + col1 + CAST( NULL AS SIGNED ) + col0 AS col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2518
SELECT ALL + col1 + CAST ( NULL AS INTEGER ) + col0 AS col2 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT + col1 + + col0 + 81 FROM tab0
----
191
213
261
query I rowsort
SELECT ALL tab1.col1 - + col1 FROM tab1
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2521
SELECT ALL - col2 * ( 10 ) * + tab0.col2 - - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2521
SELECT ALL - col2 * ( 10 ) * + tab0.col2 - - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT - - col0 * col0 AS col0 FROM tab0 cor0
----
1225
576
7921
query I rowsort
SELECT - col2 * - 80 AS col1 FROM tab2 AS cor0
----
2080
2160
3040
query I rowsort
SELECT col0 - 23 AS col1 FROM tab1 AS cor0
----
-20
41
57
query I rowsort
SELECT 48 AS col2 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 0ef571a8722ab7270aa7272c1174b88e
query I rowsort
SELECT tab1.col1 + - 81 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 8d5fa57abc18e7b2d902af461b610c57
query I rowsort
SELECT DISTINCT + col0 + - col1 AS col0 FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT DISTINCT 13 + - col1 FROM tab1 AS cor0
----
-13
0
3
query I rowsort
SELECT col1 * + col0 + 25 FROM tab2 AS cor0
----
1368
242
4627
onlyif mysql # use DIV operator for integer division
query I rowsort label-2530
SELECT ALL + - col0 * col1 DIV + ( col2 + col1 ) FROM tab0 AS cor0
----
-17
-34
-46
skipif mysql # not compatible
query I rowsort label-2530
SELECT ALL + - col0 * col1 / + ( col2 + col1 ) FROM tab0 AS cor0
----
-17
-34
-46
query I rowsort
SELECT + 11 * cor0.col0 + ( + 5 ) AS col1 FROM tab0 AS cor0
----
269
390
984
query I rowsort
SELECT ALL 29 FROM tab2 cor0
----
29
29
29
query I rowsort
SELECT DISTINCT + col2 + col0 AS col2 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT - + 30 AS col0 FROM tab2 AS cor0
----
-30
-30
-30
query I rowsort
SELECT ALL - 4 + + col2 * col1 AS col0 FROM tab1 AS cor0
----
1244
1400
566
query I rowsort
SELECT col0 + + 70 AS col2 FROM tab2 AS cor0
----
148
149
77
query I rowsort
SELECT DISTINCT + - col2 + - ( cor0.col2 ) * + col1 FROM tab0 AS cor0
----
-2871
-7544
-98
query I rowsort
SELECT ALL col0 + ( col1 ) * - col0 + col2 FROM tab2 AS cor0
----
-1226
-183
-4498
query I rowsort
SELECT + - cor0.col2 + col2 AS col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT - col2 * col0 + 24 AS col0 FROM tab2 AS cor0
----
-165
-2004
-2978
query I rowsort
SELECT col1 * 84 + col1 FROM tab0 AS cor0
----
7310
7735
8245
query I rowsort
SELECT + cor0.col2 * - 79 + col0 AS col2 FROM tab2 AS cor0
----
-1976
-2126
-2923
query I rowsort
SELECT DISTINCT col1 * ( - col1 ) FROM tab0 AS cor0
----
-7396
-8281
-9409
query I rowsort
SELECT + col0 * + 5 FROM tab2 cor0
----
35
390
395
query I rowsort
SELECT ALL + col0 * + col1 + + col1 FROM tab1 AS cor0
----
104
1053
650
onlyif mysql # use DIV operator for integer division
query I rowsort label-2546
SELECT 93 DIV - col0 AS col0 FROM tab2
----
-1
-1
-13
skipif mysql # not compatible
query I rowsort label-2546
SELECT 93 / - col0 AS col0 FROM tab2
----
-1
-1
-13
query I rowsort
SELECT ALL + cor0.col0 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
query I rowsort
SELECT + col1 * 66 AS col0 FROM tab1 AS cor0
----
1716
660
858
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 19 col1 FROM tab2 cor0
----
19
19
19
query I rowsort
SELECT 61 * + cor0.col0 FROM tab2 AS cor0
----
427
4758
4819
query I rowsort
SELECT DISTINCT + ( 94 ) * col2 FROM tab1 AS cor0
----
5076
5358
9024
query I rowsort
SELECT + + cor0.col1 - + col2 FROM tab2 cor0
----
-21
33
4
query I rowsort
SELECT ALL + col1 * col0 + col0 FROM tab1 AS cor0
----
1120
704
81
onlyif mysql # use DIV operator for integer division
query I rowsort label-2554
SELECT + 9 + col1 DIV - col1 FROM tab2 cor0
----
8
8
8
skipif mysql # not compatible
query I rowsort label-2554
SELECT + 9 + col1 / - col1 FROM tab2 cor0
----
8
8
8
query I rowsort
SELECT ALL + ( col1 ) * + col1 FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT ALL + ( 39 ) * col0 + - ( ( col1 ) + - col2 ) FROM tab0
----
1269
3462
883
query I rowsort
SELECT 27 FROM tab0, tab0 cor0
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8
query I rowsort
SELECT ALL ( - col1 ) + - col1 FROM tab0
----
-172
-182
-194
query I rowsort
SELECT ALL - 6 + col1 * - col2 FROM tab2
----
-1540
-652
-843
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 2 + - tab0.col2 * - col0 col1 FROM tab0
----
37
7300
794
query I rowsort
SELECT - 0 * + col0 + + 6 * + 25 + - col2 * ( 84 ) AS col2 FROM tab0 AS cor0
----
-2622
-6738
66
query I rowsort
SELECT + + 74 FROM tab2, tab0 AS cor0
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31
query I rowsort
SELECT + 33 + - 96 FROM tab2, tab2 AS cor0
----
9 values hashing to 5a7845ef6e239561caf9a17a28e274b5
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 63 * - col2 col1 FROM tab1 AS cor0
----
3402
3591
6048
query I rowsort
SELECT DISTINCT - col2 * + col2 * - 47 FROM tab2
----
31772
34263
67868
query I rowsort
SELECT 96 AS col1 FROM tab0
----
96
96
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-2567
SELECT - - cor0.col1 DIV - col1 - col2 * - col0 FROM tab0 cor0
----
34
7297
791
skipif mysql # not compatible
query I rowsort label-2567
SELECT - - cor0.col1 / - col1 - col2 * - col0 FROM tab0 cor0
----
34
7297
791
query I rowsort
SELECT DISTINCT - cor0.col0 * col0 + col0 AS col2 FROM tab0 AS cor0
----
-1190
-552
-7832
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2569
SELECT DISTINCT col1 * col1 * cor0.col1 + col1 * CAST( NULL AS SIGNED ) col0 FROM tab2 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2569
SELECT DISTINCT col1 * col1 * cor0.col1 + col1 * CAST ( NULL AS INTEGER ) col0 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT + - col0 + - ( - col2 ) * cor0.col2 FROM tab1 AS cor0
----
2913
3185
9136
query I rowsort
SELECT ALL + col1 * - 65 FROM tab1 cor0
----
-1690
-650
-845
query I rowsort
SELECT + col1 + 19 FROM tab2 cor0
----
36
50
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-2573
SELECT + col1 * col1 + 56 DIV col0 + - tab0.col0 AS col2 FROM tab0
----
7374
8192
9375
skipif mysql # not compatible
query I rowsort label-2573
SELECT + col1 * col1 + 56 / col0 + - tab0.col0 AS col2 FROM tab0
----
7374
8192
9375
query I rowsort
SELECT ALL + col0 - col2 * + 83 * - col0 FROM tab0
----
2940
605823
65760
query I rowsort
SELECT DISTINCT - 14 FROM tab2, tab1 AS cor0
----
-14
query I rowsort
SELECT - - col2 * - ( - col2 * 22 ) AS col2 FROM tab0 AS cor0
----
147928
22
23958
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - col0 ) * col2 col1 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT col0 * col0 + - cor0.col0 AS col2 FROM tab0 AS cor0
----
1190
552
7832
query I rowsort
SELECT ALL - col0 * 70 AS col2 FROM tab0
----
-1680
-2450
-6230
query I rowsort
SELECT ALL tab1.col0 AS col2 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2581
SELECT ALL col0 * - CAST( NULL AS SIGNED ) / 0 AS col0 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2581
SELECT ALL col0 * - CAST ( NULL AS INTEGER ) / 0 AS col0 FROM tab2
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( 30 ) col1 FROM tab2, tab0 AS cor0
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89
query I rowsort
SELECT + 22 FROM tab0, tab2 cor0
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9
onlyif mysql # use DIV operator for integer division
query I rowsort label-2584
SELECT ALL 76 DIV - 98 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2584
SELECT ALL 76 / - 98 FROM tab0
----
0
0
0
query I rowsort
SELECT DISTINCT + - 44 FROM tab0, tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-44
query I rowsort
SELECT ALL 35 * col2 AS col2 FROM tab1
----
1890
1995
3360
query I rowsort
SELECT - + col0 + col0 * - col0 FROM tab1 AS cor0
----
-12
-4160
-6480
query I rowsort
SELECT - ( - 99 ) * col1 FROM tab0 AS cor0
----
8514
9009
9603
query I rowsort
SELECT ALL - col1 + col1 * col2 FROM tab0 AS cor0
----
0
2752
7371
query I rowsort
SELECT + + cor0.col1 * - cor0.col2 AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-2591
SELECT ALL - cor0.col0 DIV cor0.col1 FROM tab2 AS cor0
----
-1
-4
0
skipif mysql # not compatible
query I rowsort label-2591
SELECT ALL - cor0.col0 / cor0.col1 FROM tab2 AS cor0
----
-1
-4
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2592
SELECT DISTINCT cor0.col2 + - CAST( cor0.col0 AS SIGNED ) FROM tab2 cor0
----
-41
-52
20
skipif mysql # not compatible
query I rowsort label-2592
SELECT DISTINCT cor0.col2 + - CAST ( cor0.col0 AS INTEGER ) FROM tab2 cor0
----
-41
-52
20
query I rowsort
SELECT - col2 * + cor0.col0 * col2 + col0 FROM tab2 AS cor0
----
-113997
-5096
-52650
query I rowsort
SELECT DISTINCT 99 FROM tab2
----
99
query I rowsort
SELECT - + col1 + col1 * + col2 FROM tab0 cor0
----
0
2752
7371
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2596
SELECT ALL - col0 + - CAST( NULL AS SIGNED ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2596
SELECT ALL - col0 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + col0 * - col1 * col1 AS col2 FROM tab0 AS cor0
----
-177504
-329315
-737009
query I rowsort
SELECT col2 + 27 * + cor0.col1 AS col0 FROM tab2 AS cor0
----
1619
497
864
query I rowsort
SELECT ALL - + col2 * col2 + + 58 * col0 FROM tab0 AS cor0
----
-1562
2029
303
query I rowsort
SELECT DISTINCT col0 + + 15 FROM tab0 AS cor0
----
104
39
50
query I rowsort
SELECT ALL col0 + col2 AS col0 FROM tab2
----
104
117
34
query I rowsort
SELECT + tab1.col2 * col1 - - col2 FROM tab1
----
1344
1458
627
query I rowsort
SELECT col0 * + col2 + - 22 + col0 FROM tab2
----
174
2084
3059
query I rowsort
SELECT ALL col0 * - col1 AS col2 FROM tab0
----
-2064
-3395
-8099
query I rowsort
SELECT DISTINCT + 40 AS col2 FROM tab1, tab1 AS cor0
----
40
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab1 AS cor2
----
972 values hashing to 7942394eb7766dfb9ea95b7805ff595d
query I rowsort
SELECT cor0.col1 AS col0 FROM tab2, tab0 cor0, tab2 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
onlyif mysql # use DIV operator for integer division
query I rowsort label-2608
SELECT - col0 + col2 DIV + col1 FROM tab2 AS cor0
----
-7
-77
-78
skipif mysql # not compatible
query I rowsort label-2608
SELECT - col0 + col2 / + col1 FROM tab2 AS cor0
----
-7
-77
-78
query I rowsort
SELECT col2 + - 83 * col0 FROM tab0 cor0
----
-1959
-2904
-7305
onlyif mysql # use DIV operator for integer division
query I rowsort label-2610
SELECT DISTINCT - col1 DIV - col1 FROM tab0 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-2610
SELECT DISTINCT - col1 / - col1 FROM tab0 AS cor0
----
1
query I rowsort
SELECT col0 + 71 AS col0 FROM tab0 AS cor0
----
106
160
95
query I rowsort
SELECT ALL - 80 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 4dde3bd5652d30396b9cadd0e2cfb680
query I rowsort
SELECT + + col1 - + col1 FROM tab1 cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2614
SELECT - CAST( NULL AS DECIMAL ) * + 25 + - col2 * - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2614
SELECT - CAST ( NULL AS REAL ) * + 25 + - col2 * - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + ( cor0.col2 ) + - col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ( 31 * - tab2.col2 + ( 4 ) ) FROM tab2
----
-1174
-802
-833
query I rowsort
SELECT DISTINCT col0 * col1 - - col0 AS col1 FROM tab0
----
2088
3430
8188
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col2 * + col2 ) + + 83 * 96 col1 FROM tab2
----
8644
8697
9412
query I rowsort
SELECT + cor0.col0 - ( col0 ) FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT + 57 + 56 FROM tab2 AS cor0
----
113
113
113
query I rowsort
SELECT ALL + col2 * - col1 + + col2 FROM tab0
----
-2805
-7380
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-2622
SELECT ALL tab0.col2 DIV col1 + - 26 * - tab0.col0 * col1 AS col1 FROM tab0
----
210574
53664
88270
skipif mysql # not compatible
query I rowsort label-2622
SELECT ALL tab0.col2 / col1 + - 26 * - tab0.col0 * col1 AS col1 FROM tab0
----
210574
53664
88270
query I rowsort
SELECT + 39 + col0 * col1 AS col2 FROM tab1 AS cor0
----
1079
117
679
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 24 + + col0 col2 FROM tab0 AS cor0
----
113
48
59
query I rowsort
SELECT + - col0 * col0 + col0 FROM tab2 cor0
----
-42
-6006
-6162
onlyif mysql # use DIV operator for integer division
query I rowsort label-2626
SELECT + cor0.col1 DIV col0 FROM tab2 AS cor0
----
0
0
4
skipif mysql # not compatible
query I rowsort label-2626
SELECT + cor0.col1 / col0 FROM tab2 AS cor0
----
0
0
4
query I rowsort
SELECT - col2 * - col2 + - col2 FROM tab1 AS cor0
----
2862
3192
9120
query I rowsort
SELECT ALL - tab1.col2 + col2 AS col2 FROM tab1
----
0
0
0
query I rowsort
SELECT - 5 - col1 AS col1 FROM tab1 AS cor0
----
-15
-18
-31
query I rowsort
SELECT ALL col1 + - col2 AS col1 FROM tab2 AS cor0
----
-21
33
4
query I rowsort
SELECT DISTINCT - - col0 * col0 + - col0 AS col1 FROM tab1 AS cor0
----
4032
6
6320
query I rowsort
SELECT + + col2 + + col1 AS col2 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT DISTINCT + col2 * - col1 - - col1 FROM tab1 AS cor0
----
-1235
-1378
-560
query I rowsort
SELECT ALL + 12 + - cor0.col1 FROM tab0 AS cor0
----
-74
-79
-85
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( col0 ) col0 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT DISTINCT - - col1 + + cor0.col0 AS col0 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT ALL - col1 + col0 * + col2 FROM tab2 AS cor0
----
158
1969
2985
query I rowsort
SELECT 75 AS col1 FROM tab1 cor0
----
75
75
75
query I rowsort
SELECT DISTINCT - + col1 * col2 - cor0.col2 AS col0 FROM tab0 AS cor0
----
-2871
-7544
-98
query I rowsort
SELECT + - cor0.col0 + col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - col0 * - col2 * col2 + col1 AS col1 FROM tab1 AS cor0
----
207946
737293
8774
query I rowsort
SELECT DISTINCT + col2 + + col1 AS col0 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT ALL - - col1 + - ( - 23 ) * + col0 FROM tab0 AS cor0
----
2138
638
902
query I rowsort
SELECT - col0 * + ( + 91 ) FROM tab2 AS cor0
----
-637
-7098
-7189
query I rowsort
SELECT DISTINCT + + col1 * + col1 - - col2 FROM tab2 cor0
----
327
3507
988
query I rowsort
SELECT ALL + + col0 + + col2 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT - col1 * ( + 49 * + col1 ) + ( - 65 ) AS col0 FROM tab2 AS cor0
----
-14226
-170634
-47154
query I rowsort
SELECT DISTINCT - - col2 + col0 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT + - cor0.col0 * - col1 FROM tab0 cor0
----
2064
3395
8099
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2650
SELECT DISTINCT col1 * CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2650
SELECT DISTINCT col1 * CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - cor0.col1 col0 FROM tab2 AS cor0
----
17
31
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-2652
SELECT ALL + col0 + col1 DIV - col2 FROM tab1 AS cor0
----
3
64
80
skipif mysql # not compatible
query I rowsort label-2652
SELECT ALL + col0 + col1 / - col2 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT ALL + cor0.col0 * - col1 * - col0 AS col1 FROM tab0 AS cor0
----
118825
49536
720811
onlyif mysql # use DIV operator for integer division
query I rowsort label-2654
SELECT DISTINCT - - col2 DIV - ( + col0 ) FROM tab2 AS cor0
----
-3
0
skipif mysql # not compatible
query I rowsort label-2654
SELECT DISTINCT - - col2 / - ( + col0 ) FROM tab2 AS cor0
----
-3
0
query I rowsort
SELECT + cor0.col2 AS col0 FROM tab0, tab1 cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17
onlyif mysql # use DIV operator for integer division
query I rowsort label-2656
SELECT + 75 DIV - 83 AS col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2656
SELECT + 75 / - 83 AS col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - - 46 * - col1 + - col2 AS col0 FROM tab0 AS cor0
----
-3989
-4268
-4463
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + ( - col1 ) col1 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT ALL - ( + cor0.col2 ) AS col2 FROM tab1 cor0
----
-54
-57
-96
query I rowsort
SELECT - + ( - 7 ) FROM tab0 AS cor0
----
7
7
7
query I rowsort
SELECT DISTINCT 35 AS col0 FROM tab1 AS cor0
----
35
query I rowsort
SELECT - 36 AS col0 FROM tab1 AS cor0
----
-36
-36
-36
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2663
SELECT DISTINCT + + CAST( col1 AS SIGNED ) * col1 AS col2 FROM tab0 AS cor0
----
7396
8281
9409
skipif mysql # not compatible
query I rowsort label-2663
SELECT DISTINCT + + CAST ( col1 AS INTEGER ) * col1 AS col2 FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT DISTINCT 6 * + 17 * + col1 FROM tab2
----
1734
3162
6018
query I rowsort
SELECT - 76 + + col0 * - ( 8 ) FROM tab0 AS cor0
----
-268
-356
-788
query I rowsort
SELECT ALL 51 * col1 FROM tab1 AS cor0
----
1326
510
663
onlyif mysql # use DIV operator for integer division
query I rowsort label-2667
SELECT + col0 DIV col1 - ( + cor0.col2 * + col0 ) col1 FROM tab2 AS cor0
----
-189
-2027
-2998
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2667
SELECT + col0 / col1 - ( + cor0.col2 * + col0 ) col1 FROM tab2 AS cor0
----
-189
-2027
-2998
query I rowsort
SELECT + cor0.col0 + col0 * + 26 FROM tab1 AS cor0
----
1728
2160
81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + col1 col1 FROM tab0
----
7396
8281
9409
query I rowsort
SELECT ALL + 30 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2671
SELECT + CAST( - 25 AS SIGNED ) + col1 FROM tab2
----
-8
34
6
skipif mysql # not compatible
query I rowsort label-2671
SELECT + CAST ( - 25 AS INTEGER ) + col1 FROM tab2
----
-8
34
6
query I rowsort
SELECT DISTINCT - ( + tab2.col0 * col1 ) FROM tab2
----
-1343
-217
-4602
query I rowsort
SELECT DISTINCT + 85 FROM tab0
----
85
query I rowsort
SELECT ALL - tab1.col0 + - ( tab1.col0 ) AS col2 FROM tab1
----
-128
-160
-6
query I rowsort
SELECT DISTINCT col1 * - col2 + col2 FROM tab2
----
-1508
-608
-810
query I rowsort
SELECT - col1 + col0 + - col2 AS col2 FROM tab2
----
-51
-7
24
query I rowsort
SELECT - col0 + + 51 - 51 FROM tab2
----
-7
-78
-79
query I rowsort
SELECT DISTINCT 22 AS col1 FROM tab0, tab2 AS cor0
----
22
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - cor0.col0 ) col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0
query I rowsort
SELECT ALL - 86 + 63 AS col0 FROM tab1 cor0
----
-23
-23
-23
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2681
SELECT DISTINCT - CAST( NULL AS DECIMAL ) AS col2 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2681
SELECT DISTINCT - CAST ( NULL AS REAL ) AS col2 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT col1 + 3 FROM tab0
----
100
89
94
query I rowsort
SELECT - 41 * col1 FROM tab1
----
-1066
-410
-533
query I rowsort
SELECT + ( col2 + - col2 ) FROM tab2
----
0
0
0
query I rowsort
SELECT DISTINCT 54 + + 57 AS col1 FROM tab1, tab2, tab1 cor0
----
111
query I rowsort
SELECT tab0.col2 * + col0 AS col0 FROM tab0
----
35
7298
792
query I rowsort
SELECT + ( col2 ) + col0 FROM tab0 cor0
----
171
36
57
query I rowsort
SELECT DISTINCT 32 * - col2 + col1 AS col0 FROM tab0 AS cor0
----
-2533
-970
65
query I rowsort
SELECT ALL col0 * - tab0.col0 AS col0 FROM tab0
----
-1225
-576
-7921
query I rowsort
SELECT ALL col0 * col2 + 31 AS col2 FROM tab2 cor0
----
2059
220
3033
query I rowsort
SELECT ALL cor0.col0 * col0 - 21 AS col2 FROM tab1 AS cor0
----
-12
4075
6379
query I rowsort
SELECT DISTINCT - 34 FROM tab2 AS cor0
----
-34
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + col1 col1 FROM tab1 AS cor0
----
20
26
52
query I rowsort
SELECT ALL + 58 AS col2 FROM tab1
----
58
58
58
query I rowsort
SELECT + col2 + - col1 AS col2 FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT DISTINCT - - 99 * + col0 + - col2 AS col0 FROM tab0 AS cor0
----
2343
3464
8729
query I rowsort
SELECT + col0 * + 21 FROM tab2 AS cor0
----
147
1638
1659
query I rowsort
SELECT ALL + col0 * + 64 FROM tab0 AS cor0
----
1536
2240
5696
query I rowsort
SELECT ALL - cor0.col0 * - ( col2 * col2 ) - col2 * - col1 FROM tab2 AS cor0
----
114722
54262
5940
query I rowsort
SELECT DISTINCT + col2 * - 56 + - col1 * + col1 + col1 FROM tab1 cor0
----
-3282
-3674
-5532
query I rowsort
SELECT - col2 + col2 * + cor0.col0 FROM tab2 AS cor0
----
162
2002
2964
query I rowsort
SELECT ALL - col2 * + col2 AS col0 FROM tab2 AS cor0
----
-1444
-676
-729
query I rowsort
SELECT cor0.col0 * 22 AS col2 FROM tab0 cor0
----
1958
528
770
query I rowsort
SELECT ALL + col0 * + col2 + - col2 AS col2 FROM tab2 AS cor0
----
162
2002
2964
query I rowsort
SELECT ALL + col1 + cor0.col0 * cor0.col2 * - col2 AS col2 FROM tab0 AS cor0
----
-26050
-598345
62
query I rowsort
SELECT DISTINCT + cor0.col0 + - ( + col0 ) + col2 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT ( + ( cor1.col2 ) ) * - 62 + + 73 AS col2 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 65e89a7b1d46f2b32c2d703b6d7300d5
query I rowsort
SELECT ( col0 ) + 88 AS col2 FROM tab2
----
166
167
95
query I rowsort
SELECT col1 + + cor0.col0 * cor0.col0 AS col0 FROM tab1 AS cor0
----
35
4106
6413
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col2 col0 FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT - + col2 + col2 * - col2 AS col0 FROM tab1 AS cor0
----
-2970
-3306
-9312
query I rowsort
SELECT ALL - cor0.col1 * + tab1.col2 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to f79f8a61ba262bc98fabbc6ce3ba7f1a
query I rowsort
SELECT ALL - ( + cor0.col0 ) FROM tab1, tab1 AS cor0
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0
query I rowsort
SELECT ALL cor0.col1 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272
query I rowsort
SELECT 34 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 4e2ca147a59e0d5661c28cf3e5431caa
query I rowsort
SELECT ALL ( - cor0.col2 ) FROM tab1 cor0
----
-54
-57
-96
query I rowsort
SELECT + col2 * - 36 + col2 * + col2 FROM tab2 AS cor0
----
-243
-260
76
query I rowsort
SELECT ALL - col1 * col0 AS col2 FROM tab1
----
-1040
-640
-78
query I rowsort
SELECT - - cor0.col2 * - col0 + col1 FROM tab0 AS cor0
----
-706
-7207
62
query I rowsort
SELECT - + col1 * - col2 + 73 FROM tab1 AS cor0
----
1321
1477
643
query I rowsort
SELECT col1 + + cor0.col0 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT - - 40 + col2 * col2 FROM tab0 cor0
----
1129
41
6764
query I rowsort
SELECT - col1 + + cor0.col0 * - col1 AS col0 FROM tab1 AS cor0
----
-104
-1053
-650
onlyif mysql # use DIV operator for integer division
query I rowsort label-2724
SELECT + tab0.col1 DIV col2 FROM tab0
----
1
2
97
skipif mysql # not compatible
query I rowsort label-2724
SELECT + tab0.col1 / col2 FROM tab0
----
1
2
97
query I rowsort
SELECT DISTINCT - 14 AS col1 FROM tab1, tab2, tab2 AS cor0
----
-14
query I rowsort
SELECT ALL 0 * col2 FROM tab0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * col2 col2 FROM tab1
----
-162
-3648
-7680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 53 + col1 col1 FROM tab0 AS cor0
----
33
38
44
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2729
SELECT - CAST( 61 AS SIGNED ) AS col2 FROM tab2
----
-61
-61
-61
skipif mysql # not compatible
query I rowsort label-2729
SELECT - CAST ( 61 AS INTEGER ) AS col2 FROM tab2
----
-61
-61
-61
query I rowsort
SELECT ALL col0 * - col0 + + col0 * - 88 FROM tab1
----
-13440
-273
-9728
query I rowsort
SELECT ALL - 21 AS col1 FROM tab1
----
-21
-21
-21
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2732
SELECT CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-2732
SELECT CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT ALL + col2 + col1 * col2 AS col0 FROM tab0 AS cor0
----
2871
7544
98
query I rowsort
SELECT + + col2 + + col0 * col0 FROM tab1 AS cor0
----
4153
63
6496
query I rowsort
SELECT ALL + 81 * col0 FROM tab0 AS cor0
----
1944
2835
7209
query I rowsort
SELECT cor0.col1 * cor0.col0 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT + + ( col2 ) * + col0 AS col1 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT + col2 * + col0 + + 18 FROM tab2 AS cor0
----
2046
207
3020
query I rowsort
SELECT ALL ( col2 ) * 19 AS col2 FROM tab1 AS cor0
----
1026
1083
1824
query I rowsort
SELECT 33 * - col2 + col0 * 13 AS col1 FROM tab1
----
-1049
-1743
-2128
query I rowsort
SELECT DISTINCT + col1 * + col0 + 1 FROM tab0
----
2065
3396
8100
onlyif mysql # use DIV operator for integer division
query I rowsort label-2742
SELECT + col1 + col2 DIV - ( col1 * - tab2.col1 ) + - 15 * tab2.col0 FROM tab2
----
-1111
-1168
-74
skipif mysql # not compatible
query I rowsort label-2742
SELECT + col1 + col2 / - ( col1 * - tab2.col1 ) + - 15 * tab2.col0 FROM tab2
----
-1111
-1168
-74
query I rowsort
SELECT ALL - 78 AS col2 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to c4f3c63f98c3c08f2848f46850a476d4
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2744
SELECT ALL - 72 + col0 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2744
SELECT ALL - 72 + col0 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2745
SELECT - - CAST( NULL AS SIGNED ) AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-2745
SELECT - - CAST ( NULL AS INTEGER ) AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - col1 * ( - col1 * col1 + 32 ) col2 FROM tab0 AS cor0
----
633337
750741
909570
query I rowsort
SELECT ALL - + col2 * col0 AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT DISTINCT + - 10 AS col2 FROM tab1, tab1 cor0
----
-10
query I rowsort
SELECT - - col1 + + col1 FROM tab2 AS cor0
----
118
34
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-2750
SELECT DISTINCT - - col0 DIV col2 FROM tab1 AS cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-2750
SELECT DISTINCT - - col0 / col2 FROM tab1 AS cor0
----
0
1
query I rowsort
SELECT ALL - col0 * - col2 + col1 + + col0 * ( + col0 ) FROM tab0 AS cor0
----
1357
1454
15310
query I rowsort
SELECT - col2 * - col1 + 11 * col1 FROM tab2 AS cor0
----
1178
2183
833
query I rowsort
SELECT DISTINCT - + col0 AS col1 FROM tab0 cor0
----
-24
-35
-89
query I rowsort
SELECT ( + col0 ) * + ( + tab2.col0 ) AS col1 FROM tab2
----
49
6084
6241
query I rowsort
SELECT ALL col1 * + col0 + - cor0.col0 AS col2 FROM tab2 AS cor0
----
1264
210
4524
query I rowsort
SELECT - tab2.col1 * + tab2.col1 AS col0 FROM tab2
----
-289
-3481
-961
query I rowsort
SELECT DISTINCT col0 * - cor0.col2 + col0 + col0 FROM tab2 AS cor0
----
-175
-1872
-2844
query I rowsort
SELECT - + cor0.col2 + + 14 FROM tab1 AS cor0
----
-40
-43
-82
query I rowsort
SELECT DISTINCT + col2 + + col0 * + col2 + col1 FROM tab2 AS cor0
----
2113
247
3057
query I rowsort
SELECT DISTINCT + + col1 + 88 FROM tab0 AS cor0
----
174
179
185
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2761
SELECT ALL + - cor0.col2 - CAST( cor0.col2 + cor0.col1 AS SIGNED ) * + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2761
SELECT ALL + - cor0.col2 - CAST ( cor0.col2 + cor0.col1 AS INTEGER ) * + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2762
SELECT ALL + - cor0.col1 * CAST( - col1 AS SIGNED ) - col2 FROM tab2 AS cor0
----
251
3455
934
skipif mysql # not compatible
query I rowsort label-2762
SELECT ALL + - cor0.col1 * CAST ( - col1 AS INTEGER ) - col2 FROM tab2 AS cor0
----
251
3455
934
onlyif mysql # use DIV operator for integer division
query I rowsort label-2763
SELECT ALL + col2 DIV - tab0.col1 + + col0 FROM tab0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-2763
SELECT ALL + col2 / - tab0.col1 + + col0 FROM tab0
----
24
35
89
query I rowsort
SELECT DISTINCT col0 + + col0 * col1 * tab2.col2 AS col0 FROM tab2
----
119730
51113
5866
query I rowsort
SELECT ALL tab2.col0 + col0 * col1 FROM tab2
----
1422
224
4680
query I rowsort
SELECT col0 + - col1 * - col0 AS col2 FROM tab0
----
2088
3430
8188
query III rowsort
SELECT ALL * FROM tab2 WHERE col2 > - col1
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45
query I rowsort
SELECT ALL col0 + tab0.col0 * col0 * col1 FROM tab0
----
118860
49560
720900
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 / - tab2.col1 col1 FROM tab2 WHERE NULL NOT BETWEEN col2 * col2 * col2 - - col0 AND ( NULL )
----
query I rowsort
SELECT DISTINCT + col0 + tab0.col1 * + col1 * + col2 FROM tab0
----
244092
679131
9444
query I rowsort
SELECT col0 - col1 AS col0 FROM tab2
----
-24
19
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-2772
SELECT tab1.col0 DIV tab1.col0 + tab1.col0 * - col1 * col1 FROM tab1
----
-13519
-2027
-6399
skipif mysql # not compatible
query I rowsort label-2772
SELECT tab1.col0 / tab1.col0 + tab1.col0 * - col1 * col1 FROM tab1
----
-13519
-2027
-6399
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + + col0 * col0 + - col1 col1 FROM tab2
----
11
5947
6145
query III rowsort
SELECT * FROM tab1 WHERE col1 - - col2 NOT IN ( col2 / + col0 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
onlyif mysql # use DIV operator for integer division
query I rowsort label-2775
SELECT DISTINCT - col0 DIV col0 + col0 * + col1 AS col2 FROM tab0
----
2063
3394
8098
skipif mysql # not compatible
query I rowsort label-2775
SELECT DISTINCT - col0 / col0 + col0 * + col1 AS col2 FROM tab0
----
2063
3394
8098
query III rowsort
SELECT * FROM tab1 WHERE NOT ( col2 ) BETWEEN ( col2 - - col0 ) AND NULL
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
query III rowsort
SELECT * FROM tab0 WHERE NOT ( col0 * col0 ) IN ( col1 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
query I rowsort
SELECT col2 + - col0 + - col2 FROM tab0
----
-24
-35
-89
query I rowsort
SELECT ALL col0 AS col2 FROM tab2 WHERE NOT NULL BETWEEN NULL AND col1 + + col0 * - col0 + col1
----
query I rowsort
SELECT col0 + col2 * - col1 - + col2 FROM tab0
----
-2847
-63
-7455
query I rowsort
SELECT col2 + - col1 * col0 FROM tab2
----
-1305
-190
-4576
query I rowsort
SELECT col0 FROM tab1 WHERE NULL BETWEEN NULL AND col2 + + col1
----
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NULL ) NOT IN ( col1 )
----
query I rowsort
SELECT - 96 FROM tab2
----
-96
-96
-96
query I rowsort
SELECT + col2 * - col2 + col1 AS col2 FROM tab1
----
-2890
-3239
-9203
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2786
SELECT DISTINCT + CAST( NULL AS DECIMAL ) AS col2 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-2786
SELECT DISTINCT + CAST ( NULL AS REAL ) AS col2 FROM tab1
----
NULL
query I rowsort
SELECT DISTINCT - ( - col1 ) * 2 AS col1 FROM tab1 cor0
----
20
26
52
query I rowsort
SELECT ALL 18 + col0 FROM tab2 AS cor0
----
25
96
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2789
SELECT ALL + CAST( ( - col0 ) AS SIGNED ) * - col2 FROM tab0
----
35
7298
792
skipif mysql # not compatible
query I rowsort label-2789
SELECT ALL + CAST ( ( - col0 ) AS INTEGER ) * - col2 FROM tab0
----
35
7298
792
query I rowsort
SELECT 73 AS col1 FROM tab0
----
73
73
73
query I rowsort
SELECT tab0.col0 + ( + col0 ) * col1 * - ( col2 * + ( - col2 ) ) AS col0 FROM tab0
----
2247720
3430
54457765
query I rowsort
SELECT - ( col1 ) - col1 FROM tab1 cor0
----
-20
-26
-52
query I rowsort
SELECT - - col2 + + col2 * + cor0.col1 + col0 * col0 FROM tab1 AS cor0
----
1467
4723
7744
query I rowsort
SELECT ALL - col1 + - col0 * + ( 92 ) FROM tab1 AS cor0
----
-302
-5898
-7373
query I rowsort
SELECT DISTINCT + + col0 * + col0 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT DISTINCT - - 44 + cor0.col2 FROM tab1 AS cor0
----
101
140
98
query I rowsort
SELECT ALL + 81 * col1 AS col2 FROM tab1 AS cor0
----
1053
2106
810
query I rowsort
SELECT - cor0.col2 + + col1 * 63 FROM tab1 AS cor0
----
1584
573
723
query I rowsort
SELECT ALL 87 * col1 AS col2 FROM tab0 AS cor0
----
7482
7917
8439
query I rowsort
SELECT ALL col0 * - col1 + - col0 FROM tab0
----
-2088
-3430
-8188
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 82 col0 FROM tab0, tab0 AS cor0
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c
query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0 cor0, tab0, tab2 AS cor1
----
972 values hashing to 1e9d01970ae508486ddabec967bb176c
query I rowsort
SELECT DISTINCT - col2 + ( - col0 + - col2 * col2 ) AS col1 FROM tab2
----
-1561
-763
-780
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col2 * - col1 col2 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT DISTINCT + + col1 + 87 AS col1 FROM tab2 AS cor0
----
104
118
146
query I rowsort
SELECT + + cor0.col0 * - col2 + col0 FROM tab1 AS cor0
----
-159
-3584
-7600
query I rowsort
SELECT DISTINCT + col0 - + 7 * 72 * - col2 FROM tab0 AS cor0
----
16656
41417
539
query I rowsort
SELECT DISTINCT col1 + col1 AS col0 FROM tab0 AS cor0
----
172
182
194
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + 55 col0 FROM tab2
----
81
82
93
query I rowsort
SELECT + cor0.col0 * col1 + col0 FROM tab0 AS cor0
----
2088
3430
8188
query I rowsort
SELECT col2 + 46 FROM tab1 cor0
----
100
103
142
query I rowsort
SELECT ALL col1 * cor0.col0 + - 15 * + col0 FROM tab0 AS cor0
----
1704
2870
6764
query I rowsort
SELECT ALL col1 * + 25 + - cor0.col0 FROM tab0 AS cor0
----
2126
2186
2390
query I rowsort
SELECT DISTINCT + 34 + cor0.col0 FROM tab0 AS cor0
----
123
58
69
query I rowsort
SELECT col2 * + ( col1 * col0 ) AS col0 FROM tab0 AS cor0
----
3395
664118
68112
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0, tab1 AS cor1, tab1, tab0 AS cor2
----
3645 values hashing to f99537dcc805430f79ac82ef70a4bd59
query I rowsort
SELECT DISTINCT + - 5 * col0 AS col1 FROM tab1 cor0
----
-15
-320
-400
query I rowsort
SELECT - - 43 * + col0 + - col2 + - col0 FROM tab0 AS cor0
----
1469
3656
975
query I rowsort
SELECT DISTINCT - 73 FROM tab1, tab1 AS cor0, tab2 AS cor1, tab2 AS cor2
----
-73
query I rowsort
SELECT ALL + 79 FROM tab0, tab1 AS cor0, tab2 cor1, tab1 AS cor2
----
81 values hashing to da0116d31b8af0da9f685c090d378baf
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 33 + cor0.col0 - col0 * + 24 col2 FROM tab2 AS cor0
----
-128
-1761
-1784
query I rowsort
SELECT + - col2 * col1 FROM tab2 cor0
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT + ( col1 ) + - col1 AS col1 FROM tab0 AS cor0
----
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2824
SELECT DISTINCT CAST( NULL AS SIGNED ) - - col1 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2824
SELECT DISTINCT CAST ( NULL AS INTEGER ) - - col1 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL - + col2 * cor0.col1 * col1 FROM tab1 AS cor0
----
-16224
-36504
-5700
query I rowsort
SELECT ( col0 ) * col2 AS col0 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT DISTINCT - + col0 + 77 FROM tab1 cor0
----
-3
13
74
query I rowsort
SELECT + 78 * col0 AS col2 FROM tab1 AS cor0
----
234
4992
6240
onlyif mysql # use DIV operator for integer division
query I rowsort label-2829
SELECT - col2 + - col1 * col2 DIV col0 FROM tab0 AS cor0
----
-151
-165
-3
skipif mysql # not compatible
query I rowsort label-2829
SELECT - col2 + - col1 * col2 / col0 FROM tab0 AS cor0
----
-151
-165
-3
query I rowsort
SELECT ALL 69 + - col0 - - cor0.col0 AS col1 FROM tab0 AS cor0
----
69
69
69
query I rowsort
SELECT DISTINCT - + col1 + - cor0.col1 FROM tab1 AS cor0
----
-20
-26
-52
query I rowsort
SELECT ALL - + col0 + col1 AS col2 FROM tab2 AS cor0
----
-19
-62
24
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + col0 col1 FROM tab0 AS cor0
----
178
48
70
query I rowsort
SELECT ALL col1 - + col0 AS col1 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT DISTINCT col1 * + 75 FROM tab2
----
1275
2325
4425
query I rowsort
SELECT 61 * - col2 AS col2 FROM tab2 AS cor0
----
-1586
-1647
-2318
query I rowsort
SELECT + col1 + + col2 * - col2 FROM tab2
----
-1427
-617
-698
onlyif mysql # use DIV operator for integer division
query I rowsort label-2838
SELECT col2 DIV cor0.col0 + col1 FROM tab0 AS cor0
----
87
91
97
skipif mysql # not compatible
query I rowsort label-2838
SELECT col2 / cor0.col0 + col1 FROM tab0 AS cor0
----
87
91
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2839
SELECT CAST( NULL AS DECIMAL ) * 66 + col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2839
SELECT CAST ( NULL AS REAL ) * 66 + col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col0 * + 32 + col1 * col2 FROM tab0 AS cor0
----
-1023
2070
4614
query I rowsort
SELECT - col0 * ( col2 ) + col2 FROM tab1
----
-108
-3591
-7584
query I rowsort
SELECT + + col2 * - col2 + col1 * + col1 FROM tab0 AS cor0
----
1557
6307
9408
query I rowsort
SELECT ALL - cor1.col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba
query I rowsort
SELECT DISTINCT - col2 * col0 + - col1 FROM tab1
----
-188
-3658
-7693
query I rowsort
SELECT ALL - 2 * - col0 FROM tab1
----
128
160
6
query I rowsort
SELECT ALL + 74 AS col2 FROM tab2
----
74
74
74
query I rowsort
SELECT - 36 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to afecaf209e79e23b6674a73fffa3e837
query I rowsort
SELECT ALL - col2 * - col1 * + col2 AS col2 FROM tab2
----
22599
24548
39884
query I rowsort
SELECT ALL col1 * tab2.col0 FROM tab2
----
1343
217
4602
query I rowsort
SELECT DISTINCT 31 AS col1 FROM tab0
----
31
query I rowsort
SELECT ALL + col2 * col1 * - col0 FROM tab1
----
-36480
-4212
-99840
query I rowsort
SELECT ( + col0 ) * col0 + + col0 AS col1 FROM tab2
----
56
6162
6320
onlyif mysql # use DIV operator for integer division
query I rowsort label-2853
SELECT DISTINCT + 45 DIV ( col2 * col0 ) col2 FROM tab0 AS cor0
----
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2853
SELECT DISTINCT + 45 / ( col2 * col0 ) col2 FROM tab0 AS cor0
----
0
1
query I rowsort
SELECT col2 * ( col1 ) FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT DISTINCT + cor0.col1 * cor0.col0 FROM tab0, tab0 AS cor0
----
2064
3395
8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-2856
SELECT - cor0.col1 * 92 DIV col1 FROM tab1 cor0
----
-92
-92
-92
skipif mysql # not compatible
query I rowsort label-2856
SELECT - cor0.col1 * 92 / col1 FROM tab1 cor0
----
-92
-92
-92
query I rowsort
SELECT ALL col1 * cor0.col1 AS col1 FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT DISTINCT - 88 FROM tab2, tab0 cor0
----
-88
query I rowsort
SELECT DISTINCT + 17 * - col0 - col2 AS col2 FROM tab0 AS cor0
----
-1595
-441
-596
query I rowsort
SELECT col0 / col1 AS col1 FROM tab0 WHERE NOT - col1 * + col0 NOT IN ( col0 )
----
query I rowsort
SELECT + col0 * col0 - col0 AS col0 FROM tab0
----
1190
552
7832
query I rowsort
SELECT + col2 / + col1 AS col1 FROM tab1 WHERE tab1.col1 <> NULL
----
query I rowsort
SELECT col2 + - col1 * tab0.col1 * col1 FROM tab0
----
-636023
-753489
-912672
query I rowsort
SELECT DISTINCT col2 + col1 * - col1 FROM tab0
----
-7363
-8199
-9408
query I rowsort
SELECT ALL col1 + - col2 * + col1 AS col0 FROM tab1
----
-1235
-1378
-560
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + col1 col2 FROM tab2
----
55
58
85
onlyif mysql # use DIV operator for integer division
query I rowsort label-2867
SELECT col1 + + col0 DIV + col0 AS col2 FROM tab1 AS cor0
----
11
14
27
skipif mysql # not compatible
query I rowsort label-2867
SELECT col1 + + col0 / + col0 AS col2 FROM tab1 AS cor0
----
11
14
27
onlyif mysql # use DIV operator for integer division
query I rowsort label-2868
SELECT + col1 * cor0.col1 DIV - col1 AS col0 FROM tab2 AS cor0
----
-17
-31
-59
skipif mysql # not compatible
query I rowsort label-2868
SELECT + col1 * cor0.col1 / - col1 AS col0 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT DISTINCT col1 * - cor0.col2 AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570
onlyif mysql # use DIV operator for integer division
query I rowsort label-2870
SELECT col0 DIV col0 AS col1 FROM tab0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-2870
SELECT col0 / col0 AS col1 FROM tab0
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 - - col1 * - cor0.col2 col0 FROM tab2 AS cor0
----
-1475
-629
-806
query I rowsort
SELECT tab1.col0 * col0 FROM tab1
----
4096
6400
9
query I rowsort
SELECT - col1 * - tab0.col0 AS col1 FROM tab0
----
2064
3395
8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-2874
SELECT - col0 DIV cor0.col0 + col2 AS col1 FROM tab1 AS cor0
----
53
56
95
skipif mysql # not compatible
query I rowsort label-2874
SELECT - col0 / cor0.col0 + col2 AS col1 FROM tab1 AS cor0
----
53
56
95
query I rowsort
SELECT + + col2 * col2 - col1 * col2 FROM tab1 AS cor0
----
1512
2679
7968
query I rowsort
SELECT + col1 * tab1.col0 AS col1 FROM tab1
----
1040
640
78
query I rowsort
SELECT + + col0 * col1 * + col0 + + col2 AS col0 FROM tab0 AS cor0
----
118826
49569
720893
query I rowsort
SELECT DISTINCT + - col2 + col1 FROM tab2 AS cor0
----
-21
33
4
query I rowsort
SELECT ALL + + cor0.col2 * + col1 + + col0 FROM tab2 AS cor0
----
1612
725
844
query I rowsort
SELECT - col2 + 64 * + col1 AS col2 FROM tab1 AS cor0
----
1610
583
736
query I rowsort
SELECT + + col1 * + 90 FROM tab2 AS cor0
----
1530
2790
5310
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2882
SELECT DISTINCT CAST( col0 AS SIGNED ) + col1 * + col2 FROM tab1 AS cor0
----
1328
1407
634
skipif mysql # not compatible
query I rowsort label-2882
SELECT DISTINCT CAST ( col0 AS INTEGER ) + col1 * + col2 FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT ALL + col1 + col0 * - col1 AS col1 FROM tab1 cor0
----
-1027
-52
-630
query I rowsort
SELECT DISTINCT + + cor0.col0 * 17 AS col1 FROM tab2 AS cor0
----
119
1326
1343
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2885
SELECT - + CAST( 72 AS SIGNED ) - col1 * - CAST( 21 AS SIGNED ) FROM tab2 AS cor0
----
1167
285
579
skipif mysql # not compatible
query I rowsort label-2885
SELECT - + CAST ( 72 AS INTEGER ) - col1 * - CAST ( 21 AS INTEGER ) FROM tab2 AS cor0
----
1167
285
579
query I rowsort
SELECT DISTINCT - col0 + + cor0.col0 FROM tab1 cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 * col0 + col1 * 34 * cor0.col2 - + col1 col0 FROM tab2 AS cor0
----
23290
28644
56699
query I rowsort
SELECT cor0.col0 * + col1 + col1 * + col2 FROM tab0 AS cor0
----
15561
3492
4902
onlyif mysql # use DIV operator for integer division
query I rowsort label-2889
SELECT - col0 + 70 DIV col2 FROM tab1 AS cor0
----
-2
-63
-80
skipif mysql # not compatible
query I rowsort label-2889
SELECT - col0 + 70 / col2 FROM tab1 AS cor0
----
-2
-63
-80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 36 + col2 col2 FROM tab2 AS cor0
----
62
63
74
query I rowsort
SELECT ALL - 35 + - 20 * - col0 * + cor0.col0 FROM tab1 cor0
----
127965
145
81885
query I rowsort
SELECT DISTINCT col2 * col2 + col0 + - col0 FROM tab0 AS cor0
----
1
1089
6724
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2893
SELECT CAST( NULL AS SIGNED ) - cor0.col1 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2893
SELECT CAST ( NULL AS INTEGER ) - cor0.col1 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - + ( + col2 ) + + col1 FROM tab2 AS cor0
----
-21
33
4
query I rowsort
SELECT DISTINCT - col1 + + ( col2 ) AS col1 FROM tab0 cor0
----
-53
-9
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col1 ) col0 FROM tab2 cor0
----
17
31
59
query I rowsort
SELECT ALL + + col0 * cor0.col0 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT ALL + + col0 + cor0.col2 AS col1 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT + col2 * col1 + ( col1 ) AS col1 FROM tab2 AS cor0
----
1593
663
868
query I rowsort
SELECT - - 70 AS col1 FROM tab1 AS cor0
----
70
70
70
query I rowsort
SELECT DISTINCT col2 + + col0 AS col0 FROM tab2 cor0
----
104
117
34
query I rowsort
SELECT ALL - 67 - col0 FROM tab2 AS cor0
----
-145
-146
-74
query I rowsort
SELECT ( col0 ) * col1 AS col1 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT 94 FROM tab1, tab0 AS cor0
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24
query I rowsort
SELECT - 59 * - col2 FROM tab0 AS cor0
----
1947
4838
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-2906
SELECT DISTINCT - 11 DIV col1 col1 FROM tab1 AS cor0
----
-1
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2906
SELECT DISTINCT - 11 / col1 col1 FROM tab1 AS cor0
----
-1
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2907
SELECT DISTINCT + + ( - col2 ) * - CAST( NULL AS SIGNED ) + 1 col2 FROM tab1 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2907
SELECT DISTINCT + + ( - col2 ) * - CAST ( NULL AS INTEGER ) + 1 col2 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT ALL - col1 * - col2 * + col0 - 70 * + col2 FROM tab1 AS cor0
----
32490
432
93120
query I rowsort
SELECT DISTINCT - - col1 + cor0.col1 FROM tab2 AS cor0
----
118
34
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-2910
SELECT ALL col2 - col2 DIV - col2 FROM tab1 AS cor0
----
55
58
97
skipif mysql # not compatible
query I rowsort label-2910
SELECT ALL col2 - col2 / - col2 FROM tab1 AS cor0
----
55
58
97
query I rowsort
SELECT DISTINCT - - col1 * - ( col2 + col2 ) FROM tab2 cor0
----
-1292
-1674
-3068
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2912
SELECT + - col0 + + CAST( - col1 AS SIGNED ) * - col2 col1 FROM tab2 AS cor0
----
1456
567
830
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2912
SELECT + - col0 + + CAST ( - col1 AS INTEGER ) * - col2 col1 FROM tab2 AS cor0
----
1456
567
830
query I rowsort
SELECT 31 * + ( cor1.col1 ) + - 13 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d796e0758a6e8f738625b71ffff291ab
query I rowsort
SELECT DISTINCT + + col0 * + col2 AS col1 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT DISTINCT + + col2 * 12 + - col1 * cor0.col0 AS col0 FROM tab0 AS cor0
----
-1668
-3383
-7115
query I rowsort
SELECT ALL - - cor0.col2 * ( col2 ) AS col0 FROM tab1 AS cor0
----
2916
3249
9216
onlyif mysql # use DIV operator for integer division
query I rowsort label-2917
SELECT DISTINCT + col0 DIV col0 col2 FROM tab1 AS cor0
----
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2917
SELECT DISTINCT + col0 / col0 col2 FROM tab1 AS cor0
----
1
query I rowsort
SELECT - col0 * + col2 * col1 FROM tab1 AS cor0
----
-36480
-4212
-99840
query I rowsort
SELECT DISTINCT + cor0.col1 + + col2 AS col2 FROM tab0 AS cor0
----
119
173
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-2920
SELECT ALL - cor0.col0 DIV 51 FROM tab0 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-2920
SELECT ALL - cor0.col0 / 51 FROM tab0 AS cor0
----
-1
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2921
SELECT DISTINCT + col1 * CAST( 34 * cor0.col2 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
21964
28458
52156
skipif mysql # not compatible
query I rowsort label-2921
SELECT DISTINCT + col1 * CAST ( 34 * cor0.col2 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
21964
28458
52156
query I rowsort
SELECT DISTINCT + 26 + - col1 + col0 AS col0 FROM tab2
----
2
45
88
query I rowsort
SELECT - col2 - col0 AS col2 FROM tab0
----
-171
-36
-57
query I rowsort
SELECT ALL - col2 + col2 * col0 FROM tab0
----
34
7216
759
query I rowsort
SELECT ALL 46 * 75 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 9dbb17f76330fcd3bf38907f8fc020cb
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2926
SELECT ALL + col1 / col1 + - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2926
SELECT ALL + col1 / col1 + - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT - col1 + 49 FROM tab0
----
-37
-42
-48
query I rowsort
SELECT cor0.col1 FROM tab1 AS cor0 CROSS JOIN tab0, tab1 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
query I rowsort
SELECT - col1 * - 9 + - col2 AS col2 FROM tab1
----
180
21
33
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col0 * col2 col0 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT ALL - - col1 * ( - col2 ) FROM tab0 AS cor0
----
-2838
-7462
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col1 col1 FROM tab0 AS cor0
----
2838
7462
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-2933
SELECT DISTINCT col0 + - ( - ( + col1 ) ) DIV - col0 FROM tab1 cor0
----
-5
64
80
skipif mysql # not compatible
query I rowsort label-2933
SELECT DISTINCT col0 + - ( - ( + col1 ) ) / - col0 FROM tab1 cor0
----
-5
64
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-2934
SELECT + col0 DIV - col0 AS col2 FROM tab0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-2934
SELECT + col0 / - col0 AS col2 FROM tab0
----
-1
-1
-1
query I rowsort
SELECT + ( + col2 ) + 60 AS col2 FROM tab0 AS cor0
----
142
61
93
query I rowsort
SELECT - + col2 + cor0.col2 * + col2 * + ( col2 + 31 ) FROM tab2 AS cor0
----
38506
42255
99598
query I rowsort
SELECT + ( - col1 ) * - col0 FROM tab0 cor0
----
2064
3395
8099
query I rowsort
SELECT col1 + col2 * col1 FROM tab0
----
194
2924
7553
query I rowsort
SELECT DISTINCT + col1 * col0 + col1 AS col0 FROM tab2
----
1360
248
4661
onlyif mysql # use DIV operator for integer division
query I rowsort label-2940
SELECT DISTINCT ( - col0 ) DIV - 72 AS col1 FROM tab1
----
0
1
skipif mysql # not compatible
query I rowsort label-2940
SELECT DISTINCT ( - col0 ) / - 72 AS col1 FROM tab1
----
0
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-2941
SELECT ALL - ( - col2 ) DIV col1 FROM tab1 AS cor0
----
2
5
7
skipif mysql # not compatible
query I rowsort label-2941
SELECT ALL - ( - col2 ) / col1 FROM tab1 AS cor0
----
2
5
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-2942
SELECT DISTINCT - + ( - col1 ) DIV + col1 + 24 AS col0 FROM tab0 AS cor0
----
25
skipif mysql # not compatible
query I rowsort label-2942
SELECT DISTINCT - + ( - col1 ) / + col1 + 24 AS col0 FROM tab0 AS cor0
----
25
query I rowsort
SELECT - - 27 + + col2 * 26 * - col0 AS col2 FROM tab2 AS cor0
----
-4887
-52701
-78025
query I rowsort
SELECT DISTINCT col0 * - col2 * 33 + tab2.col1 + - col0 FROM tab2
----
-6213
-66943
-99128
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + col2 col0 FROM tab0
----
171
36
57
query I rowsort
SELECT DISTINCT - 69 + + col0 FROM tab1
----
-5
-66
11
onlyif mysql # use DIV operator for integer division
query I rowsort label-2947
SELECT + tab1.col1 DIV col1 + + col1 AS col1 FROM tab1
----
11
14
27
skipif mysql # not compatible
query I rowsort label-2947
SELECT + tab1.col1 / col1 + + col1 AS col1 FROM tab1
----
11
14
27
query I rowsort
SELECT - tab0.col0 + tab0.col0 * col2 AS col2 FROM tab0
----
0
7209
768
query I rowsort
SELECT ALL col1 * col0 + col0 * + col0 FROM tab1 AS cor0
----
4736
7440
87
query I rowsort
SELECT DISTINCT - cor0.col1 * col2 AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT DISTINCT + - 77 * - col2 * col1 + col2 AS col0 FROM tab1 cor0
----
108162
43947
96192
onlyif mysql # use DIV operator for integer division
query I rowsort label-2952
SELECT DISTINCT col1 DIV col2 AS col1 FROM tab0 AS cor0
----
1
2
97
skipif mysql # not compatible
query I rowsort label-2952
SELECT DISTINCT col1 / col2 AS col1 FROM tab0 AS cor0
----
1
2
97
query I rowsort
SELECT - + col2 + col2 * - col0 FROM tab1 AS cor0
----
-216
-3705
-7776
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 6 col0 FROM tab1
----
6
query I rowsort
SELECT ( + ( col1 ) ) AS col0 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT DISTINCT + ( col1 ) * col2 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT - cor0.col2 * - cor0.col0 AS col0 FROM tab2 AS cor0
----
189
2028
3002
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2958
SELECT DISTINCT CAST( 19 AS SIGNED ) AS col2 FROM tab1
----
19
skipif mysql # not compatible
query I rowsort label-2958
SELECT DISTINCT CAST ( 19 AS INTEGER ) AS col2 FROM tab1
----
19
query I rowsort
SELECT - col0 * - col0 AS col2 FROM tab2 cor0
----
49
6084
6241
query I rowsort
SELECT ( - cor0.col2 ) AS col0 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT - ( - col1 ) FROM tab2 cor0
----
17
31
59
query I rowsort
SELECT DISTINCT + 73 AS col2 FROM tab1 cor0
----
73
query I rowsort
SELECT ALL + + ( ( + col2 ) ) FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT DISTINCT + col0 + - col2 * + col0 FROM tab2 AS cor0
----
-182
-1950
-2923
query I rowsort
SELECT - col1 * - 83 * - col1 AS col0 FROM tab2 cor0
----
-23987
-288923
-79763
query I rowsort
SELECT + col1 + + col0 AS col0 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT - 51 AS col2 FROM tab2
----
-51
-51
-51
query I rowsort
SELECT ALL - tab2.col0 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b
query I rowsort
SELECT DISTINCT - + col2 * col2 * col2 FROM tab2 AS cor0
----
-17576
-19683
-54872
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 + 90 col2 FROM tab2 AS cor0
----
116
117
128
query I rowsort
SELECT + + col2 + 15 AS col0 FROM tab1 AS cor0
----
111
69
72
query I rowsort
SELECT + col0 + - col2 AS col0 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT ALL - col2 + + 67 FROM tab1 cor0
----
-29
10
13
query I rowsort
SELECT - + cor0.col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba
onlyif mysql # use DIV operator for integer division
query I rowsort label-2975
SELECT - - col0 + col1 + - cor0.col0 DIV col1 FROM tab1 cor0
----
29
68
87
skipif mysql # not compatible
query I rowsort label-2975
SELECT - - col0 + col1 + - cor0.col0 / col1 FROM tab1 cor0
----
29
68
87
query I rowsort
SELECT ALL col0 + 78 * + col2 FROM tab2
----
2106
2113
3043
query I rowsort
SELECT DISTINCT - tab0.col2 + + tab0.col1 AS col1 FROM tab0
----
53
9
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-2978
SELECT DISTINCT + col1 DIV - ( 83 ) + + tab0.col1 + - ( tab0.col0 * col2 ) col0 FROM tab0
----
-707
-7208
61
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2978
SELECT DISTINCT + col1 / - ( 83 ) + + tab0.col1 + - ( tab0.col0 * col2 ) col0 FROM tab0
----
-707
-7208
61
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2979
SELECT + col0 * - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2979
SELECT + col0 * - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT + col2 * + ( col0 ) + - col0 AS col2 FROM tab2
----
182
1950
2923
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2981
SELECT CAST( NULL AS SIGNED ) + ( + col1 ) * + CAST( col2 AS SIGNED ) / - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2981
SELECT CAST ( NULL AS INTEGER ) + ( + col1 ) * + CAST ( col2 AS INTEGER ) / - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL 44 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2983
SELECT col1 * + CAST( - col0 AS SIGNED ) AS col0 FROM tab2
----
-1343
-217
-4602
skipif mysql # not compatible
query I rowsort label-2983
SELECT col1 * + CAST ( - col0 AS INTEGER ) AS col0 FROM tab2
----
-1343
-217
-4602
query I rowsort
SELECT DISTINCT ( - 4 ) AS col2 FROM tab1, tab2 cor0
----
-4
query I rowsort
SELECT col0 + ( - col2 ) + - col2 * col2 * - col1 AS col2 FROM tab1 AS cor0
----
119792
32497
75765
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 16 col0 FROM tab0 AS cor0
----
16
query I rowsort
SELECT + - cor0.col0 * col2 + - col1 * - 92 FROM tab1 AS cor0
----
-2728
-6484
2230
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + 31 ) * col0 * - col2 + col2 col2 FROM tab1 AS cor0
----
113145
238176
5076
query I rowsort
SELECT DISTINCT tab0.col0 FROM tab0, tab2 AS cor0
----
24
35
89
query I rowsort
SELECT ALL + 87 * - col1 AS col2 FROM tab2
----
-1479
-2697
-5133
query I rowsort
SELECT + ( - col0 ) * + col0 FROM tab1
----
-4096
-6400
-9
query I rowsort
SELECT ALL 72 + - 85 AS col1 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 1c6aaa07ba8d3dc01ee616e16bef60f2
query I rowsort
SELECT - + 55 FROM tab1 AS cor0
----
-55
-55
-55
query I rowsort
SELECT - ( col0 ) * col1 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT + col2 * - 42 AS col1 FROM tab0
----
-1386
-3444
-42
query I rowsort
SELECT ALL 45 + col1 FROM tab1
----
55
58
71
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 12 col2 FROM tab1, tab0 AS cor0
----
9 values hashing to d4f5a8e032294c3b9342821617800972
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0, tab1 cor0, tab2 cor1
----
972 values hashing to f0b9665afa0b835e4e5097af17c51766
query I rowsort
SELECT + + 18 AS col2 FROM tab2 AS cor0
----
18
18
18
query I rowsort
SELECT ALL - col0 * - col1 + + 28 FROM tab1 AS cor0
----
106
1068
668
query I rowsort
SELECT col1 + - col0 AS col0 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT - col0 * 41 + - col0 FROM tab2 cor0
----
-294
-3276
-3318
query I rowsort
SELECT col2 * col2 + + col2 FROM tab0 AS cor0
----
1122
2
6806
query I rowsort
SELECT - + col2 + + col0 AS col1 FROM tab2 cor0
----
-20
41
52
query I rowsort
SELECT ALL + tab0.col0 - col0 FROM tab0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 - - 91 * - 10 col2 FROM tab1 AS cor0
----
-884
-897
-900
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3007
SELECT + col2 + + CAST( - col0 AS SIGNED ) * + col0 FROM tab0 AS cor0
----
-1224
-543
-7839
skipif mysql # not compatible
query I rowsort label-3007
SELECT + col2 + + CAST ( - col0 AS INTEGER ) * + col0 FROM tab0 AS cor0
----
-1224
-543
-7839
query I rowsort
SELECT - col2 * 49 * - col2 AS col1 FROM tab0 AS cor0
----
329476
49
53361
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + 81 col2 FROM tab0 AS cor0
----
114
163
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-3010
SELECT cor0.col2 DIV 9 + + col1 AS col0 FROM tab1 AS cor0
----
16
23
32
skipif mysql # not compatible
query I rowsort label-3010
SELECT cor0.col2 / 9 + + col1 AS col0 FROM tab1 AS cor0
----
16
23
32
query I rowsort
SELECT + - col2 + ( - col0 ) * + cor0.col1 - ( 75 ) AS col2 FROM tab2 AS cor0
----
-1456
-319
-4703
query I rowsort
SELECT 5 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 6035628694bdea36f584f3649088551d
query I rowsort
SELECT DISTINCT cor0.col0 * 91 * 63 AS col0 FROM tab0, tab0 AS cor0
----
137592
200655
510237
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 23 col1 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 546d49aa433406dd83ea19885588e658
query I rowsort
SELECT ALL + 41 * - col2 AS col2 FROM tab1 AS cor0
----
-2214
-2337
-3936
query I rowsort
SELECT + 8 FROM tab0, tab2 AS cor0
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57
query I rowsort
SELECT - 16 + + tab0.col1 AS col1 FROM tab0
----
70
75
81
query I rowsort
SELECT cor0.col0 FROM tab1, tab2 AS cor0, tab1 cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
query I rowsort
SELECT col1 + - col1 * col1 * - 7 FROM tab1
----
1196
4758
710
onlyif mysql # use DIV operator for integer division
query I rowsort label-3020
SELECT col2 - - col0 DIV + col0 AS col1 FROM tab0
----
2
34
83
skipif mysql # not compatible
query I rowsort label-3020
SELECT col2 - - col0 / + col0 AS col1 FROM tab0
----
2
34
83
query I rowsort
SELECT col0 * + col2 + + col2 * + col1 AS col1 FROM tab2
----
1026
3562
3648
query I rowsort
SELECT ALL + - col2 * + col1 * - col0 + + col2 + col1 * col0 FROM tab2 AS cor0
----
124280
52415
6103
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 * - col0 col0 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT ALL - + col0 * col2 AS col1 FROM tab2 AS cor0
----
-189
-2028
-3002
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( col1 ) col2 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT DISTINCT - tab1.col0 FROM tab1, tab0 cor0
----
-3
-64
-80
query I rowsort
SELECT DISTINCT ( - col0 ) + col0 AS col2 FROM tab2 AS cor0
----
0
query I rowsort
SELECT ALL col1 * - 76 + + col2 AS col0 FROM tab1
----
-1922
-703
-892
query I rowsort
SELECT col1 * col0 + + 12 FROM tab1 cor0
----
1052
652
90
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 - col1 * + ( col1 * - col0 + 71 ) FROM tab0 AS cor0
----
171398
322428
730548
query I rowsort
SELECT DISTINCT - + ( - 85 ) * col2 + ( col2 ) * col0 + 99 AS col1 FROM tab0 AS cor0
----
14367
219
3696
query I rowsort
SELECT DISTINCT + - 99 FROM tab0 cor0
----
-99
onlyif mysql # use DIV operator for integer division
query I rowsort label-3034
SELECT ALL - col2 DIV - col0 AS col1 FROM tab1 AS cor0
----
0
1
18
skipif mysql # not compatible
query I rowsort label-3034
SELECT ALL - col2 / - col0 AS col1 FROM tab1 AS cor0
----
0
1
18
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + ( + col0 ) + + col0 * CAST ( + col2 AS REAL ) AS col0 FROM tab1 AS cor0
----
165
3712
7760
query I rowsort
SELECT + + cor0.col1 * col0 FROM tab1 AS cor0
----
1040
640
78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - cor0.col1 + col1 col1 FROM tab2 AS cor0
----
306
3540
992
onlyif mysql # use DIV operator for integer division
query I rowsort label-3038
SELECT ALL - ( - col0 ) DIV - col2 + col0 FROM tab1 AS cor0
----
3
63
80
skipif mysql # not compatible
query I rowsort label-3038
SELECT ALL - ( - col0 ) / - col2 + col0 FROM tab1 AS cor0
----
3
63
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * + ( col2 ) col2 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT ALL 41 - + col2 FROM tab1 AS cor0
----
-13
-16
-55
query I rowsort
SELECT DISTINCT col0 * 56 AS col0 FROM tab1 AS cor0
----
168
3584
4480
query I rowsort
SELECT DISTINCT + ( + cor0.col2 ) AS col1 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT ALL - - 26 FROM tab1 AS cor0
----
26
26
26
query I rowsort
SELECT + + 85 * + col2 + col0 FROM tab0 AS cor0
----
120
2829
7059
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3045
SELECT - CAST( NULL AS SIGNED ) / 93 FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-3045
SELECT - CAST ( NULL AS INTEGER ) / 93 FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
onlyif mysql # use DIV operator for integer division
query I rowsort label-3046
SELECT ALL - col1 DIV - ( - col2 * col2 ) AS col1 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3046
SELECT ALL - col1 / - ( - col2 * col2 ) AS col1 FROM tab1
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-3047
SELECT ALL - col1 DIV - col2 + cor0.col1 AS col0 FROM tab0 cor0
----
194
88
92
skipif mysql # not compatible
query I rowsort label-3047
SELECT ALL - col1 / - col2 + cor0.col1 AS col0 FROM tab0 cor0
----
194
88
92
query I rowsort
SELECT - col0 + - 56 * col2 FROM tab1 cor0
----
-3027
-3256
-5456
query I rowsort
SELECT DISTINCT col1 + 54 FROM tab0 AS cor0
----
140
145
151
query I rowsort
SELECT DISTINCT - 43 * - col2 FROM tab1 AS cor0
----
2322
2451
4128
query I rowsort
SELECT DISTINCT - - cor0.col2 * ( cor0.col0 ) + - col1 FROM tab1 AS cor0
----
136
3638
7667
query I rowsort
SELECT - - 95 * + col2 * col2 + - cor0.col1 FROM tab2 AS cor0
----
137163
64161
69224
query I rowsort
SELECT ALL - col0 + - col1 * - cor0.col2 FROM tab0 AS cor0
----
2814
62
7373
query I rowsort
SELECT ( - col1 ) + + col1 AS col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + 51 AS col0 FROM tab0, tab0 AS cor0
----
51
query I rowsort
SELECT 65 * col2 * col0 FROM tab1
----
10530
237120
499200
query I rowsort
SELECT ALL - col2 + col2 * + cor0.col0 + + ( 57 ) AS col2 FROM tab0 AS cor0
----
7273
816
91
query I rowsort
SELECT ALL + cor2.col2 FROM tab2, tab0 cor0, tab1 AS cor1, tab1 AS cor2
----
81 values hashing to 9d355f1f2edc347a359dad00d2d3f886
query I rowsort
SELECT ALL 57 FROM tab0, tab0 cor0
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( cor0.col1 ) + col2 col2 FROM tab2 AS cor0
----
-33
-4
21
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 AS cor0, tab1 AS cor1, tab2, tab1 AS cor2
----
3645 values hashing to db56d052e81a1ceebb4c3aea124670be
query I rowsort
SELECT DISTINCT + col2 + col2 * 5 FROM tab1 cor0
----
324
342
576
query I rowsort
SELECT - 74 + cor0.col2 * - col0 FROM tab0 AS cor0
----
-109
-7372
-866
query I rowsort
SELECT col2 + cor0.col0 * + col1 + + 46 FROM tab0 AS cor0
----
2143
3442
8227
query I rowsort
SELECT DISTINCT - 9 * - col1 AS col0 FROM tab2 AS cor0
----
153
279
531
query I rowsort
SELECT ALL - col1 * col1 + + ( - col1 ) AS col2 FROM tab0 cor0
----
-7482
-8372
-9506
query I rowsort
SELECT ALL + col2 * col1 + + 7 FROM tab1 AS cor0
----
1255
1411
577
query I rowsort
SELECT DISTINCT col2 + col2 * + col1 + col0 AS col2 FROM tab1
----
1424
1461
691
query I rowsort
SELECT + 83 + + col1 * - ( - col1 ) AS col2 FROM tab0 AS cor0
----
7479
8364
9492
query I rowsort
SELECT - 9 * col2 + 36 FROM tab0 AS cor0
----
-261
-702
27
query I rowsort
SELECT col0 * + 80 FROM tab1 AS cor0
----
240
5120
6400
query I rowsort
SELECT DISTINCT - col0 * + ( + 34 + col2 ) FROM tab0 AS cor0
----
-10324
-1225
-1608
onlyif mysql # use DIV operator for integer division
query I rowsort label-3073
SELECT ALL + - col2 DIV col2 AS col1 FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-3073
SELECT ALL + - col2 / col2 AS col1 FROM tab0 AS cor0
----
-1
-1
-1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3074
SELECT + col2 * CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3074
SELECT + col2 * CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + - cor0.col0 * col0 * col1 FROM tab1 AS cor0
----
-234
-40960
-83200
query I rowsort
SELECT ALL col2 * + ( cor0.col2 ) + + cor0.col2 FROM tab2 AS cor0
----
1482
702
756
query I rowsort
SELECT - col0 + + cor0.col1 AS col1 FROM tab2 cor0
----
-19
-62
24
query I rowsort
SELECT ALL col1 * + col1 AS col2 FROM tab0 cor0
----
7396
8281
9409
query I rowsort
SELECT + - col2 + + col0 AS col2 FROM tab0 AS cor0
----
-9
34
7
query I rowsort
SELECT ALL col2 + col2 * - col2 AS col0 FROM tab2 AS cor0
----
-1406
-650
-702
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3081
SELECT + + col0 * ( + col2 * col1 ) + CAST( 95 + + col2 AS SIGNED ) FROM tab2 AS cor0
----
119773
51167
5981
skipif mysql # not compatible
query I rowsort label-3081
SELECT + + col0 * ( + col2 * col1 ) + CAST ( 95 + + col2 AS INTEGER ) FROM tab2 AS cor0
----
119773
51167
5981
query I rowsort
SELECT DISTINCT + col1 * + col0 AS col2 FROM tab0 cor0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT + cor0.col2 + + 53 FROM tab0 AS cor0
----
135
54
86
onlyif mysql # use DIV operator for integer division
query I rowsort label-3084
SELECT col1 * col0 - col2 * 76 DIV + col2 AS col0 FROM tab1
----
2
564
964
skipif mysql # not compatible
query I rowsort label-3084
SELECT col1 * col0 - col2 * 76 / + col2 AS col0 FROM tab1
----
2
564
964
query I rowsort
SELECT DISTINCT - cor0.col2 FROM tab0, tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT DISTINCT - + col1 AS col2 FROM tab2 cor0
----
-17
-31
-59
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3087
SELECT - col2 + CAST( col1 AS SIGNED ) * col1 FROM tab2 AS cor0
----
251
3455
934
skipif mysql # not compatible
query I rowsort label-3087
SELECT - col2 + CAST ( col1 AS INTEGER ) * col1 FROM tab2 AS cor0
----
251
3455
934
query I rowsort
SELECT DISTINCT + col0 + + 43 AS col0 FROM tab2
----
121
122
50
onlyif mysql # use DIV operator for integer division
query I rowsort label-3089
SELECT - tab0.col0 + 66 DIV + col2 + - col0 * tab0.col2 FROM tab0
----
-4
-7387
-814
skipif mysql # not compatible
query I rowsort label-3089
SELECT - tab0.col0 + 66 / + col2 + - col0 * tab0.col2 FROM tab0
----
-4
-7387
-814
query I rowsort
SELECT + col1 + + ( + 18 ) - col0 AS col2 FROM tab0
----
20
80
80
query I rowsort
SELECT + col0 * col2 + col0 FROM tab0 AS cor0
----
70
7387
816
query IIIIIIIII rowsort
SELECT ALL * FROM tab1 cor0 CROSS JOIN tab2, tab2 cor1
----
243 values hashing to 042fa16c43ab365359ee93c064e44127
onlyif mysql # use DIV operator for integer division
query I rowsort label-3093
SELECT + col0 DIV + 76 FROM tab2
----
0
1
1
skipif mysql # not compatible
query I rowsort label-3093
SELECT + col0 / + 76 FROM tab2
----
0
1
1
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab0 AS cor2, tab2 AS cor3
----
3645 values hashing to 149298fc0224e93f3bc2df24a3ebeeb8
onlyif mysql # use DIV operator for integer division
query I rowsort label-3095
SELECT DISTINCT - col2 DIV - tab0.col0 FROM tab0
----
0
1
skipif mysql # not compatible
query I rowsort label-3095
SELECT DISTINCT - col2 / - tab0.col0 FROM tab0
----
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + 82 col0 FROM tab1 AS cor0
----
4428
4674
7872
query I rowsort
SELECT - 66 * col1 FROM tab1
----
-1716
-660
-858
query I rowsort
SELECT ALL cor0.col1 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
onlyif mysql # use DIV operator for integer division
query I rowsort label-3099
SELECT + col2 + - col1 DIV col1 col2 FROM tab1 AS cor0
----
53
56
95
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3099
SELECT + col2 + - col1 / col1 col2 FROM tab1 AS cor0
----
53
56
95
onlyif mysql # use DIV operator for integer division
query I rowsort label-3100
SELECT + + col1 DIV ( - 23 * - cor0.col0 ) col0 FROM tab2 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3100
SELECT + + col1 / ( - 23 * - cor0.col0 ) col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + - 50 + cor0.col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to babc843ea171005a438c10d58444c76c
query I rowsort
SELECT DISTINCT ( - 71 ) AS col2 FROM tab0, tab1 cor0
----
-71
query I rowsort
SELECT DISTINCT col2 * + 36 AS col1 FROM tab1
----
1944
2052
3456
onlyif mysql # use DIV operator for integer division
query I rowsort label-3104
SELECT + + col2 * cor0.col0 + + 67 DIV + col1 col1 FROM tab2 AS cor0
----
191
2029
3005
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3104
SELECT + + col2 * cor0.col0 + + 67 / + col1 col1 FROM tab2 AS cor0
----
191
2029
3005
query I rowsort
SELECT - - col0 * + 15 FROM tab2 AS cor0
----
105
1170
1185
onlyif mysql # use DIV operator for integer division
query I rowsort label-3106
SELECT + col2 DIV col0 AS col2 FROM tab2 AS cor0
----
0
0
3
skipif mysql # not compatible
query I rowsort label-3106
SELECT + col2 / col0 AS col2 FROM tab2 AS cor0
----
0
0
3
query I rowsort
SELECT - col1 + - ( col0 ) AS col0 FROM tab0 cor0
----
-110
-132
-180
query I rowsort
SELECT + - 55 AS col0 FROM tab0 AS cor0
----
-55
-55
-55
query I rowsort
SELECT + col1 * 71 + + col0 * + 88 FROM tab0 AS cor0
----
14293
8218
9967
query I rowsort
SELECT DISTINCT + 13 + col2 FROM tab1 AS cor0
----
109
67
70
query I rowsort
SELECT ALL + col0 + + col1 * - col0 + + col1 FROM tab1 AS cor0
----
-49
-566
-947
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3112
SELECT - 21 * - col0 + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3112
SELECT - 21 * - col0 + CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - + ( - col0 ) * + col2 + col1 FROM tab1 AS cor0
----
188
3658
7693
query I rowsort
SELECT + cor0.col1 AS col0 FROM tab0, tab2 cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272
onlyif mysql # use DIV operator for integer division
query I rowsort label-3115
SELECT - + 0 + + col0 DIV - col0 AS col1 FROM tab2 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-3115
SELECT - + 0 + + col0 / - col0 AS col1 FROM tab2 AS cor0
----
-1
-1
-1
query I rowsort
SELECT col1 + col0 * col1 + tab0.col2 FROM tab0
----
2183
3493
8272
query I rowsort
SELECT ( 17 ) * tab1.col0 + - col2 + - 55 * col2 FROM tab1
----
-2104
-2973
-4016
onlyif mysql # use DIV operator for integer division
query I rowsort label-3118
SELECT DISTINCT + ( col2 ) + + col2 * col0 DIV 77 + col2 FROM tab2
----
114
56
78
skipif mysql # not compatible
query I rowsort label-3118
SELECT DISTINCT + ( col2 ) + + col2 * col0 / 77 + col2 FROM tab2
----
114
56
78
query I rowsort
SELECT ( + col0 ) * - 43 + 32 FROM tab2 AS cor0
----
-269
-3322
-3365
query I rowsort
SELECT ALL col0 + + 7 FROM tab2
----
14
85
86
onlyif mysql # use DIV operator for integer division
query I rowsort label-3121
SELECT ALL + - col1 DIV - col0 col2 FROM tab0 AS cor0
----
1
2
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3121
SELECT ALL + - col1 / - col0 col2 FROM tab0 AS cor0
----
1
2
3
query I rowsort
SELECT - 37 + + col0 AS col2 FROM tab2 AS cor0
----
-30
41
42
query I rowsort
SELECT ALL + - col1 * - col1 + 3 + + cor0.col1 * col2 FROM tab1 AS cor0
----
1420
2083
673
query I rowsort
SELECT ALL - + col0 * - col2 + ( cor0.col2 ) AS col1 FROM tab2 AS cor0
----
2054
216
3040
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 13 + col2 * col1 + - 99 * col0 col0 FROM tab2 AS cor0
----
-6175
-7162
157
query I rowsort
SELECT - + 53 + col0 FROM tab0 AS cor0
----
-18
-29
36
onlyif mysql # use DIV operator for integer division
query I rowsort label-3127
SELECT ALL - col2 DIV cor0.col0 FROM tab0 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-3127
SELECT ALL - col2 / cor0.col0 FROM tab0 AS cor0
----
-1
0
0
query I rowsort
SELECT ALL - col1 * ( + col1 ) + col0 * col2 FROM tab0 AS cor0
----
-6604
-9374
-983
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3129
SELECT DISTINCT + - cor0.col0 + CAST( col1 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-54
-67
23
skipif mysql # not compatible
query I rowsort label-3129
SELECT DISTINCT + - cor0.col0 + CAST ( col1 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT ALL + col1 * + 35 + col2 * col0 * + ( cor0.col0 + - col0 ) AS col1 FROM tab0 AS cor0
----
3010
3185
3395
query I rowsort
SELECT DISTINCT col0 * + 50 + - 21 * col0 FROM tab0 AS cor0
----
1015
2581
696
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3132
SELECT DISTINCT + - CAST( NULL AS SIGNED ) + 84 col1 FROM tab1 cor0 CROSS JOIN tab0 cor1
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3132
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) + 84 col1 FROM tab1 cor0 CROSS JOIN tab0 cor1
----
NULL
query I rowsort
SELECT ALL 23 AS col1 FROM tab2
----
23
23
23
query I rowsort
SELECT - ( col0 ) * - col1 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT 38 AS col0 FROM tab2, tab2 AS cor0, tab1 AS cor1, tab2 cor2
----
81 values hashing to 9124b06d33995d82062026964cce3a38
query I rowsort
SELECT ALL col1 + + 21 AS col1 FROM tab2 AS cor0
----
38
52
80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3137
SELECT DISTINCT CAST( col1 AS SIGNED ) * col2 FROM tab1
----
1248
1404
570
skipif mysql # not compatible
query I rowsort label-3137
SELECT DISTINCT CAST ( col1 AS INTEGER ) * col2 FROM tab1
----
1248
1404
570
query I rowsort
SELECT ( + col2 ) AS col1 FROM tab2
----
26
27
38
query I rowsort
SELECT + ( + col1 ) AS col2 FROM tab2
----
17
31
59
query I rowsort
SELECT 41 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to f6a440b478f0d00f8326a8c51fe094b8
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3141
SELECT DISTINCT CAST( NULL AS DECIMAL ) * - 10 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-3141
SELECT DISTINCT CAST ( NULL AS REAL ) * - 10 FROM tab0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 - + 90 * col2 col1 FROM tab0
----
-3003
-7462
-91
query I rowsort
SELECT col0 + 45 AS col0 FROM tab0 AS cor0
----
134
69
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + + col2 col1 FROM tab1 AS cor0
----
108
114
192
query I rowsort
SELECT ALL + col0 + ( - col0 ) FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT ALL - cor0.col1 + - col1 AS col1 FROM tab2 AS cor0
----
-118
-34
-62
query IIIIII rowsort
SELECT ALL * FROM tab0, tab1 AS cor0 WHERE ( NULL ) >= NULL
----
query I rowsort
SELECT + + col2 + + ( col2 ) FROM tab2 AS cor0
----
52
54
76
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( + cor0.col1 AS REAL ) FROM tab2, tab2 AS cor0
----
17
31
59
query I rowsort
SELECT DISTINCT - 43 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
-43
query I rowsort
SELECT DISTINCT + col1 + col2 AS col1 FROM tab1
----
109
67
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-3152
SELECT ALL col2 * - col1 + + col2 DIV + col0 AS col0 FROM tab0
----
-2837
-7462
-97
skipif mysql # not compatible
query I rowsort label-3152
SELECT ALL col2 * - col1 + + col2 / + col0 AS col0 FROM tab0
----
-2837
-7462
-97
query I rowsort
SELECT DISTINCT + col1 + + 33 FROM tab1
----
43
46
59
query I rowsort
SELECT - tab0.col2 + + col0 FROM tab0
----
-9
34
7
query I rowsort
SELECT ALL ( 74 ) * - col1 + col1 FROM tab0 AS cor0
----
-6278
-6643
-7081
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3156
SELECT ALL col0 * + cor0.col1 - col0 * CAST( NULL AS SIGNED ) / + col0 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3156
SELECT ALL col0 * + cor0.col1 - col0 * CAST ( NULL AS INTEGER ) / + col0 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + 13 FROM tab0, tab0 cor0, tab0 AS cor1
----
27 values hashing to a90d0f37cec603ae1bc0a60dc7fbaeed
onlyif mysql # use DIV operator for integer division
query I rowsort label-3158
SELECT + col0 DIV + col1 + col0 FROM tab2
----
7
79
83
skipif mysql # not compatible
query I rowsort label-3158
SELECT + col0 / + col1 + col0 FROM tab2
----
7
79
83
query I rowsort
SELECT col0 + + ( + 37 ) FROM tab2
----
115
116
44
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * col1 col1 FROM tab0
----
2064
3395
8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 65 col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805
query I rowsort
SELECT + 30 * col2 * col1 AS col1 FROM tab0
----
223860
2910
85140
onlyif mysql # use DIV operator for integer division
query I rowsort label-3163
SELECT ( - col0 ) DIV col2 AS col0 FROM tab0
----
-1
-35
0
skipif mysql # not compatible
query I rowsort label-3163
SELECT ( - col0 ) / col2 AS col0 FROM tab0
----
-1
-35
0
query I rowsort
SELECT 47 * col1 + - col0 - - col1 AS col2 FROM tab1 AS cor0
----
1245
416
544
query I rowsort
SELECT - ( col0 ) + cor0.col2 + - col1 FROM tab0 AS cor0
----
-131
-77
-98
query I rowsort
SELECT - col1 * - cor0.col1 - + ( - col2 ) * - cor0.col2 FROM tab0 AS cor0
----
1557
6307
9408
query I rowsort
SELECT DISTINCT col1 * + tab0.col1 + + col1 * ( col2 ) - + tab0.col2 FROM tab0
----
10201
15661
9505
query I rowsort
SELECT 10 * - tab1.col1 + col2 - - 20 * - tab1.col1 AS col1 FROM tab1
----
-243
-294
-726
query I rowsort
SELECT ( col1 + tab1.col1 ) * - col1 AS col0 FROM tab1
----
-1352
-200
-338
query I rowsort
SELECT DISTINCT - 65 FROM tab1, tab1 AS cor0
----
-65
onlyif mysql # use DIV operator for integer division
query I rowsort label-3171
SELECT - ( + col2 ) + col0 DIV col0 - - col2 col2 FROM tab1
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3171
SELECT - ( + col2 ) + col0 / col0 - - col2 col2 FROM tab1
----
1
1
1
query I rowsort
SELECT DISTINCT col0 * + col2 - + col2 FROM tab0
----
34
7216
759
query I rowsort
SELECT ALL 44 * 63 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ad4688230971d9466cabd0fc505703db
onlyif mysql # use DIV operator for integer division
query I rowsort label-3174
SELECT + tab2.col0 - tab2.col0 DIV - col0 AS col2 FROM tab2
----
79
8
80
skipif mysql # not compatible
query I rowsort label-3174
SELECT + tab2.col0 - tab2.col0 / - col0 AS col2 FROM tab2
----
79
8
80
query I rowsort
SELECT DISTINCT + ( cor0.col0 ) + ( col2 ) FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT + col1 * col2 * - 17 - 72 * col2 FROM tab1 AS cor0
----
-13794
-27756
-28128
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + col1 col0 FROM tab1 cor0
----
29
74
93
query I rowsort
SELECT 69 * - col2 FROM tab2 AS cor0
----
-1794
-1863
-2622
onlyif mysql # use DIV operator for integer division
query I rowsort label-3179
SELECT - cor0.col2 + col2 DIV + 14 FROM tab1 AS cor0
----
-51
-53
-90
skipif mysql # not compatible
query I rowsort label-3179
SELECT - cor0.col2 + col2 / + 14 FROM tab1 AS cor0
----
-51
-53
-90
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3180
SELECT tab0.col1 + CAST( NULL AS SIGNED ) AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-3180
SELECT tab0.col1 + CAST ( NULL AS INTEGER ) AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT + 58 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 9ee363c6ac19cfdb8a50c7dfd5cc2b8a
query I rowsort
SELECT + ( col0 ) + - 91 FROM tab0
----
-2
-56
-67
query I rowsort
SELECT ALL - ( - col0 ) * ( + 37 ) + col1 AS col0 FROM tab1
----
137
2378
2973
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3184
SELECT ALL + tab2.col2 * col2 / CAST( NULL AS SIGNED ) + - ( - tab2.col0 * col1 ) AS col0 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3184
SELECT ALL + tab2.col2 * col2 / CAST ( NULL AS INTEGER ) + - ( - tab2.col0 * col1 ) AS col0 FROM tab2
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3185
SELECT ALL + ( + col0 ) * - CAST( NULL AS SIGNED ) + + cor0.col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3185
SELECT ALL + ( + col0 ) * - CAST ( NULL AS INTEGER ) + + cor0.col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3186
SELECT + col1 + + col0 - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3186
SELECT + col1 + + col0 - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + + col1 * col0 + col2 AS col2 FROM tab0 AS cor0
----
2097
3396
8181
query I rowsort
SELECT + + 54 + col0 * 69 FROM tab2 cor0
----
537
5436
5505
query I rowsort
SELECT DISTINCT ( cor0.col1 ) FROM tab0 cor0
----
86
91
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 col1 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT DISTINCT - col1 + - col0 * tab1.col0 FROM tab1
----
-35
-4106
-6413
query I rowsort
SELECT ALL col0 * - col1 + - tab1.col0 FROM tab1
----
-1120
-704
-81
query I rowsort
SELECT ALL 85 + col2 AS col1 FROM tab1
----
139
142
181
onlyif mysql # use DIV operator for integer division
query I rowsort label-3194
SELECT + 29 DIV - col1 AS col1 FROM tab1
----
-1
-2
-2
skipif mysql # not compatible
query I rowsort label-3194
SELECT + 29 / - col1 AS col1 FROM tab1
----
-1
-2
-2
query I rowsort
SELECT DISTINCT - cor0.col0 * + 72 + - col0 * + col2 AS col2 FROM tab1 AS cor0
----
-13440
-378
-8256
query I rowsort
SELECT ALL + col2 * ( col0 ) FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT - - col0 * col2 + col2 FROM tab0 AS cor0
----
36
7380
825
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3198
SELECT ALL col1 * + CAST( NULL AS SIGNED ) + col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3198
SELECT ALL col1 * + CAST ( NULL AS INTEGER ) + col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3199
SELECT - cor0.col2 + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3199
SELECT - cor0.col2 + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-3200
SELECT ALL col2 DIV cor0.col2 FROM tab0 cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-3200
SELECT ALL col2 / cor0.col2 FROM tab0 cor0
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + cor0.col2 col0 FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT ALL + + cor0.col2 + + col1 AS col2 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT + - col0 + - col0 AS col0 FROM tab0 AS cor0
----
-178
-48
-70
query I rowsort
SELECT - + col0 + - 76 FROM tab1 AS cor0
----
-140
-156
-79
query I rowsort
SELECT - 96 + + col1 FROM tab0
----
-10
-5
1
query I rowsort
SELECT ALL col0 * col1 + col0 * col2 AS col0 FROM tab2 AS cor0
----
406
4345
6630
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * col0 col1 FROM tab0 cor0
----
-1225
-576
-7921
onlyif mysql # use DIV operator for integer division
query I rowsort label-3208
SELECT DISTINCT + col1 DIV col1 AS col2 FROM tab1 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-3208
SELECT DISTINCT + col1 / col1 AS col2 FROM tab1 AS cor0
----
1
query I rowsort
SELECT + col1 + cor0.col1 FROM tab2 AS cor0
----
118
34
62
query I rowsort
SELECT ALL col2 + ( col1 ) AS col0 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT DISTINCT - + col0 - 44 * - col1 * col2 FROM tab1 AS cor0
----
25016
54832
61773
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 52 + col2 col2 FROM tab2 cor0
----
-14
-25
-26
query I rowsort
SELECT - col2 * col0 * col0 FROM tab0 AS cor0
----
-1225
-19008
-649522
query I rowsort
SELECT DISTINCT - col0 * + col0 + - col0 FROM tab2 AS cor0
----
-56
-6162
-6320
query I rowsort
SELECT ALL - + col2 + cor0.col1 AS col1 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT - - 58 * col2 FROM tab2 AS cor0
----
1508
1566
2204
query I rowsort
SELECT DISTINCT + 7 + col0 AS col0 FROM tab0 cor0
----
31
42
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 - - col1 col2 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT - col0 + 98 FROM tab2
----
19
20
91
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3220
SELECT ALL + + CAST( col1 AS SIGNED ) + + col1 FROM tab2 AS cor0
----
118
34
62
skipif mysql # not compatible
query I rowsort label-3220
SELECT ALL + + CAST ( col1 AS INTEGER ) + + col1 FROM tab2 AS cor0
----
118
34
62
query I rowsort
SELECT - ( cor0.col0 ) AS col2 FROM tab0 AS cor0
----
-24
-35
-89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + 45 * - col2 col2 FROM tab1 AS cor0
----
-2404
-2555
-4307
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3223
SELECT DISTINCT - CAST( - col0 AS SIGNED ) + col2 * col1 + - col1 FROM tab0 AS cor0
----
2776
35
7460
skipif mysql # not compatible
query I rowsort label-3223
SELECT DISTINCT - CAST ( - col0 AS INTEGER ) + col2 * col1 + - col1 FROM tab0 AS cor0
----
2776
35
7460
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 + cor0.col1 * + col2 col0 FROM tab2 AS cor0
----
1612
725
844
query I rowsort
SELECT DISTINCT - 76 + col0 FROM tab2 AS cor0
----
-69
2
3
query I rowsort
SELECT - + col2 * ( col0 ) FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT DISTINCT - col0 * col2 * + col2 AS col2 FROM tab2 AS cor0
----
-114076
-5103
-52728
query I rowsort
SELECT DISTINCT + 82 AS col1 FROM tab0 AS cor0
----
82
query I rowsort
SELECT + ( col2 ) * col1 * col1 FROM tab2 AS cor0
----
10982
25947
90506
query I rowsort
SELECT ( - col2 ) AS col0 FROM tab0 cor0
----
-1
-33
-82
query I rowsort
SELECT ALL + ( 83 ) FROM tab2 AS cor0
----
83
83
83
query I rowsort
SELECT ALL + + col0 * + col0 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT ALL col0 + + col1 AS col2 FROM tab0 cor0
----
110
132
180
query I rowsort
SELECT ALL + col0 * + col0 + + col1 FROM tab0 AS cor0
----
1322
662
8012
query I rowsort
SELECT + col1 + + col1 FROM tab2 cor0
----
118
34
62
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3236
SELECT - - CAST( NULL AS SIGNED ) * cor0.col1 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3236
SELECT - - CAST ( NULL AS INTEGER ) * cor0.col1 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col0 + col0 AS col1 FROM tab1 cor0
----
128
160
6
query I rowsort
SELECT - 7 * col0 AS col0 FROM tab1 cor0
----
-21
-448
-560
query I rowsort
SELECT - + col1 + col1 FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT + col0 + - col0 * col0 + + col0 FROM tab2 AS cor0
----
-35
-5928
-6083
query I rowsort
SELECT DISTINCT - 53 AS col0 FROM tab1, tab2 AS cor0
----
-53
query I rowsort
SELECT DISTINCT cor0.col1 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
17
31
59
query I rowsort
SELECT ALL tab0.col0 * - 23 AS col1 FROM tab0
----
-2047
-552
-805
query I rowsort
SELECT DISTINCT 87 * 19 FROM tab1, tab2 AS cor0 CROSS JOIN tab2, tab0, tab1 AS cor1
----
1653
query I rowsort
SELECT ALL 6 AS col1 FROM tab2
----
6
6
6
query I rowsort
SELECT - col0 * 8 FROM tab2 cor0
----
-56
-624
-632
query I rowsort
SELECT 73 AS col2 FROM tab1 AS cor0
----
73
73
73
query I rowsort
SELECT - + 98 - + col1 AS col0 FROM tab2 AS cor0
----
-115
-129
-157
query I rowsort
SELECT + ( + col2 * col2 ) AS col0 FROM tab1
----
2916
3249
9216
query I rowsort
SELECT ALL - + col2 * col0 * cor0.col2 AS col0 FROM tab1 AS cor0
----
-207936
-737280
-8748
onlyif mysql # use DIV operator for integer division
query I rowsort label-3251
SELECT DISTINCT ( + col0 ) DIV + cor0.col2 AS col1 FROM tab1 AS cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-3251
SELECT DISTINCT ( + col0 ) / + cor0.col2 AS col1 FROM tab1 AS cor0
----
0
1
query I rowsort
SELECT - + 49 + col2 * + col1 + + 34 FROM tab2 AS cor0
----
1519
631
822
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3253
SELECT - tab1.col1 * + CAST( - 58 AS SIGNED ) col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 667eea39aa587e9df76b394baee152c4
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3253
SELECT - tab1.col1 * + CAST ( - 58 AS INTEGER ) col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 667eea39aa587e9df76b394baee152c4
query I rowsort
SELECT + tab0.col2 FROM tab0, tab0 cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
onlyif mysql # use DIV operator for integer division
query I rowsort label-3255
SELECT DISTINCT - - col2 * + col2 + + col2 DIV col1 FROM tab1 AS cor0
----
2918
3254
9223
skipif mysql # not compatible
query I rowsort label-3255
SELECT DISTINCT - - col2 * + col2 + + col2 / col1 FROM tab1 AS cor0
----
2918
3254
9223
query I rowsort
SELECT ALL + col1 + + col2 * + ( - col0 ) FROM tab1 AS cor0
----
-136
-3638
-7667
onlyif mysql # use DIV operator for integer division
query I rowsort label-3257
SELECT + col1 DIV col0 AS col2 FROM tab0 cor0
----
1
2
3
skipif mysql # not compatible
query I rowsort label-3257
SELECT + col1 / col0 AS col2 FROM tab0 cor0
----
1
2
3
query I rowsort
SELECT DISTINCT col2 * cor0.col1 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT ALL + 5 * col0 FROM tab0 AS cor0
----
120
175
445
query I rowsort
SELECT col0 * + col0 * + col2 + 50 * - col2 FROM tab1
----
-2214
230622
609600
query I rowsort
SELECT DISTINCT col1 + 80 + 80 FROM tab0 cor0
----
246
251
257
query I rowsort
SELECT col2 + - col1 * - cor0.col1 FROM tab2 AS cor0
----
327
3507
988
onlyif mysql # use DIV operator for integer division
query I rowsort label-3263
SELECT ALL - col1 DIV + ( col0 ) FROM tab2
----
-4
0
0
skipif mysql # not compatible
query I rowsort label-3263
SELECT ALL - col1 / + ( col0 ) FROM tab2
----
-4
0
0
query I rowsort
SELECT + + col0 * ( - col1 ) AS col1 FROM tab1 cor0
----
-1040
-640
-78
query I rowsort
SELECT ALL 47 AS col2 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 3f991632e9c7c5142e1d80857cd10a2d
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 71 col0 FROM tab1 cor0
----
71
71
71
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col0 col1 FROM tab1, tab1 AS cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870
query I rowsort
SELECT DISTINCT + + col1 * - ( - col1 ) FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT DISTINCT + tab2.col2 * - 65 FROM tab2
----
-1690
-1755
-2470
query I rowsort
SELECT DISTINCT + 10 AS col2 FROM tab0 cor0
----
10
query I rowsort
SELECT DISTINCT col2 + col2 * col0 FROM tab1 AS cor0
----
216
3705
7776
onlyif mysql # use DIV operator for integer division
query I rowsort label-3272
SELECT ALL - + col0 DIV - 13 + col1 * col1 + 54 FROM tab0 AS cor0
----
7451
8341
9465
skipif mysql # not compatible
query I rowsort label-3272
SELECT ALL - + col0 / - 13 + col1 * col1 + 54 FROM tab0 AS cor0
----
7451
8341
9465
query I rowsort
SELECT DISTINCT + + col2 * - ( + cor0.col1 ) FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT ( + col1 ) * - 7 AS col0 FROM tab2 AS cor0
----
-119
-217
-413
query I rowsort
SELECT + 79 + col1 * + 40 AS col2 FROM tab2
----
1319
2439
759
query I rowsort
SELECT - cor0.col2 + col1 AS col0 FROM tab2 AS cor0
----
-21
33
4
query I rowsort
SELECT DISTINCT + 10 AS col0 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
10
query I rowsort
SELECT - - 22 + col1 * - col1 + col1 FROM tab2 AS cor0
----
-250
-3400
-908
onlyif mysql # use DIV operator for integer division
query I rowsort label-3279
SELECT - - 82 * - col1 + + col0 + + col2 * col0 DIV CAST( + col0 AS SIGNED ) FROM tab0 AS cor0
----
-6995
-7291
-7918
skipif mysql # not compatible
query I rowsort label-3279
SELECT - - 82 * - col1 + + col0 + + col2 * col0 / CAST ( + col0 AS INTEGER ) FROM tab0 AS cor0
----
-6995
-7291
-7918
query I rowsort
SELECT ALL + - col2 - col0 FROM tab0 AS cor0
----
-171
-36
-57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 * - cor0.col1 col2 FROM tab0 cor0
----
-2064
-3395
-8099
query I rowsort
SELECT + - col0 + 15 AS col1 FROM tab0 AS cor0
----
-20
-74
-9
query I rowsort
SELECT DISTINCT - + col0 * + col2 + + col0 FROM tab2 AS cor0
----
-182
-1950
-2923
query I rowsort
SELECT DISTINCT col2 + + ( col0 ) AS col1 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT 88 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to c46e7cf9bf516fdfde88534336a28177
query I rowsort
SELECT ( + 11 ) AS col1 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 69116737f3f57e2e3273f6dbb04d036c
query I rowsort
SELECT tab1.col1 * col0 AS col1 FROM tab1
----
1040
640
78
query I rowsort
SELECT ALL - col1 * + col0 + col2 AS col2 FROM tab1 AS cor0
----
-24
-583
-944
query I rowsort
SELECT ALL 62 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 4911b1417a3797d23dd8f38b6ed05c1b
query I rowsort
SELECT ALL - cor1.col1 * 81 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b897251aca934a66dba56529f3d4cbcf
onlyif mysql # use DIV operator for integer division
query I rowsort label-3291
SELECT ALL + col1 DIV + col0 + + ( 71 ) DIV col1 AS col2 FROM tab1 AS cor0
----
10
5
7
skipif mysql # not compatible
query I rowsort label-3291
SELECT ALL + col1 / + col0 + + ( 71 ) / col1 AS col2 FROM tab1 AS cor0
----
10
5
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-3292
SELECT + + cor0.col2 DIV - col0 - + 12 FROM tab0 AS cor0
----
-12
-12
-13
skipif mysql # not compatible
query I rowsort label-3292
SELECT + + cor0.col2 / - col0 - + 12 FROM tab0 AS cor0
----
-12
-12
-13
query I rowsort
SELECT - col1 * col1 * - col0 AS col0 FROM tab2 AS cor0
----
22831
271518
6727
query I rowsort
SELECT ALL + - col0 + - col1 * ( - 55 ) * col1 FROM tab2 AS cor0
----
15816
191377
52848
query I rowsort
SELECT ALL + - col0 * - cor0.col1 + cor0.col1 FROM tab2 AS cor0
----
1360
248
4661
query I rowsort
SELECT - col1 * - col0 + cor0.col0 * ( + col0 ) AS col1 FROM tab1 AS cor0
----
4736
7440
87
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + cor0.col0 ) col0 FROM tab1 AS cor0
----
3
64
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * col2 + - ( - 64 ) col1 FROM tab1 AS cor0
----
1312
1468
634
query I rowsort
SELECT ALL - col1 + - col0 - 89 FROM tab1 cor0
----
-118
-163
-182
query I rowsort
SELECT ALL + - col1 + cor0.col0 FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT + - 58 + + cor0.col1 AS col0 FROM tab1 AS cor0
----
-32
-45
-48
query I rowsort
SELECT ALL - cor1.col2 AS col1 FROM tab0, tab2 AS cor0, tab2 AS cor1, tab1 cor2
----
81 values hashing to c569638e8a09ff819458d62ddbde994c
query I rowsort
SELECT 20 FROM tab0, tab1 cor0, tab0 AS cor1
----
27 values hashing to 0a35fe98f3e7d5fc8ff2ae815bd20ef4
query I rowsort
SELECT - cor0.col0 + + 26 AS col0 FROM tab1 AS cor0
----
-38
-54
23
query I rowsort
SELECT DISTINCT + + col1 * col1 AS col1 FROM tab0 cor0
----
7396
8281
9409
onlyif mysql # use DIV operator for integer division
query I rowsort label-3306
SELECT col1 + 54 DIV col0 FROM tab1 AS cor0
----
10
13
44
skipif mysql # not compatible
query I rowsort label-3306
SELECT col1 + 54 / col0 FROM tab1 AS cor0
----
10
13
44
query I rowsort
SELECT 90 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 5d25a546acf3ae171e731e50adc0112e
query I rowsort
SELECT ALL 87 + - col0 FROM tab1
----
23
7
84
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3309
SELECT + col0 * - col0 + - CAST( + 43 AS SIGNED ) - col1 AS col0 FROM tab2
----
-123
-6186
-6301
skipif mysql # not compatible
query I rowsort label-3309
SELECT + col0 * - col0 + - CAST ( + 43 AS INTEGER ) - col1 AS col0 FROM tab2
----
-123
-6186
-6301
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3310
SELECT DISTINCT + CAST( NULL AS SIGNED ) * col0 + col1 / - col0 - - col2 AS col2 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3310
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * col0 + col1 / - col0 - - col2 AS col2 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL - ( 90 ) FROM tab0 AS cor0
----
-90
-90
-90
query I rowsort
SELECT DISTINCT + col0 + cor0.col0 + col1 * ( col1 ) AS col2 FROM tab2 cor0
----
3637
447
975
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3313
SELECT DISTINCT CAST( NULL AS SIGNED ) + 99 * - cor0.col2 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3313
SELECT DISTINCT CAST ( NULL AS INTEGER ) + 99 * - cor0.col2 FROM tab2 AS cor0
----
NULL
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab2 AS cor2, tab1 cor3
----
3645 values hashing to 97b2ae21242e1e40418ee2ad06544f7a
query I rowsort
SELECT tab1.col2 FROM tab1, tab2 cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17
query I rowsort
SELECT - - col0 + col2 FROM tab0 cor0
----
171
36
57
query I rowsort
SELECT DISTINCT + 16 FROM tab0 AS cor0
----
16
query I rowsort
SELECT + - col1 * 80 FROM tab0 cor0
----
-6880
-7280
-7760
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + ( - 55 ) col0 FROM tab1 cor0
----
55
query I rowsort
SELECT ALL 43 FROM tab0, tab1 AS cor0
----
9 values hashing to 199105619049271147956de52e7f5ed4
query I rowsort
SELECT DISTINCT + 10 FROM tab1
----
10
query I rowsort
SELECT DISTINCT col1 + - col1 AS col2 FROM tab0 cor0
----
0
query I rowsort
SELECT ALL - ( col1 ) + + 9 * + col1 FROM tab0 AS cor0
----
688
728
776
query I rowsort
SELECT - col1 * col1 + 27 AS col2 FROM tab2 AS cor0
----
-262
-3454
-934
query I rowsort
SELECT + col1 - + col0 * + ( - 48 * - col2 ) AS col0 FROM tab1 AS cor0
----
-175094
-368627
-7750
query I rowsort
SELECT col1 - 4 * + col1 FROM tab1
----
-30
-39
-78
query I rowsort
SELECT ALL 40 FROM tab0, tab1, tab0 cor0
----
27 values hashing to e4d10f7d6c34a281f524e45e82ebd2a0
query I rowsort
SELECT - 55 FROM tab0
----
-55
-55
-55
query I rowsort
SELECT + 28 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97
query I rowsort
SELECT + 31 * - tab0.col2 AS col0 FROM tab0, tab2, tab0 cor0
----
27 values hashing to 8afaaae1227c8777433d9c1a60d5127a
query I rowsort
SELECT - ( - col2 ) AS col1 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT 98 + col0 * + col0 AS col2 FROM tab2 AS cor0
----
147
6182
6339
query I rowsort
SELECT - 38 * col2 FROM tab0 cor0
----
-1254
-3116
-38
onlyif mysql # use DIV operator for integer division
query I rowsort label-3334
SELECT ALL - - col1 DIV + cor0.col1 col0 FROM tab0 AS cor0
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3334
SELECT ALL - - col1 / + cor0.col1 col0 FROM tab0 AS cor0
----
1
1
1
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0 cor0, tab2 AS cor1, tab2, tab1 AS cor2
----
3645 values hashing to a8d2ba8b8eb568b0a9a1771ccb0a8f23
query I rowsort
SELECT DISTINCT + ( col1 + - col1 ) * 81 AS col1 FROM tab0
----
0
query I rowsort
SELECT ALL + 9 + col0 FROM tab0
----
33
44
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-3338
SELECT col1 * col2 DIV - col1 + col2 + col1 FROM tab0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-3338
SELECT col1 * col2 / - col1 + col2 + col1 FROM tab0
----
86
91
97
query I rowsort
SELECT ALL tab0.col2 + - col0 AS col1 FROM tab0
----
-34
-7
9
query I rowsort
SELECT ALL - tab0.col1 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84
query I rowsort
SELECT ALL 94 FROM tab2 cor0
----
94
94
94
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 cor0, tab1 AS cor1, tab2 AS cor2
----
972 values hashing to f0b9665afa0b835e4e5097af17c51766
onlyif mysql # use DIV operator for integer division
query I rowsort label-3343
SELECT + col1 + col1 DIV col1 col1 FROM tab2 AS cor0
----
18
32
60
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3343
SELECT + col1 + col1 / col1 col1 FROM tab2 AS cor0
----
18
32
60
query I rowsort
SELECT ALL + cor0.col1 + cor0.col1 AS col0 FROM tab0 AS cor0
----
172
182
194
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 23 col2 FROM tab1 AS cor0
----
23
23
23
query I rowsort
SELECT DISTINCT col1 - cor0.col1 AS col1 FROM tab0 AS cor0
----
0
query I rowsort
SELECT ALL - - col2 * cor0.col0 + + cor0.col0 AS col2 FROM tab1 AS cor0
----
165
3712
7760
query I rowsort
SELECT ALL + tab1.col1 * col0 AS col2 FROM tab1
----
1040
640
78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3349
SELECT col1 + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3349
SELECT col1 + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT + tab2.col2 * - col2 + - col1 * col1 FROM tab2
----
-1690
-1733
-4157
onlyif mysql # use DIV operator for integer division
query I rowsort label-3351
SELECT DISTINCT - col0 DIV - 76 AS col0 FROM tab0
----
0
1
skipif mysql # not compatible
query I rowsort label-3351
SELECT DISTINCT - col0 / - 76 AS col0 FROM tab0
----
0
1
query I rowsort
SELECT ALL - col1 * col2 + 66 FROM tab0
----
-2772
-31
-7396
query I rowsort
SELECT col2 + + ( - col1 + - col2 ) AS col2 FROM tab2
----
-17
-31
-59
query I rowsort
SELECT ALL + - col0 + 0 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT + col1 * ( cor0.col2 ) FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT - tab0.col2 * ( - col1 ) * - col0 + + 45 + + col2 AS col0 FROM tab0
----
-3349
-663991
-68034
query I rowsort
SELECT ALL - 14 AS col1 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to c2bf0e2420d22cd58d7ee3b30827afcc
query I rowsort
SELECT DISTINCT ( ( tab1.col1 ) ) FROM tab1, tab0 AS cor0
----
10
13
26
query I rowsort
SELECT DISTINCT + 16 AS col1 FROM tab2, tab2 AS cor0
----
16
onlyif mysql # use DIV operator for integer division
query I rowsort label-3360
SELECT DISTINCT - cor0.col1 + - col2 DIV + cor0.col0 FROM tab2 cor0
----
-17
-34
-59
skipif mysql # not compatible
query I rowsort label-3360
SELECT DISTINCT - cor0.col1 + - col2 / + cor0.col0 FROM tab2 cor0
----
-17
-34
-59
query I rowsort
SELECT ALL - - cor0.col1 * col0 + - col2 * + cor0.col0 FROM tab0 AS cor0
----
1272
3360
801
query I rowsort
SELECT DISTINCT - - 82 FROM tab1 AS cor0
----
82
query I rowsort
SELECT - col0 * ( - col1 * ( - 37 ) + - cor0.col2 ) FROM tab2 AS cor0
----
-168246
-46689
-7840
query I rowsort
SELECT - cor0.col1 + 19 AS col2 FROM tab2 AS cor0
----
-12
-40
2
query I rowsort
SELECT ALL + col1 * 36 AS col2 FROM tab2 AS cor0
----
1116
2124
612
query I rowsort
SELECT ALL - 50 FROM tab1, tab1 cor0
----
9 values hashing to c7432a968c8352c12996dfa54dd4b9e8
query I rowsort
SELECT DISTINCT + + 71 * col1 * - col1 FROM tab2 AS cor0
----
-20519
-247151
-68231
query I rowsort
SELECT 98 * + cor0.col2 AS col2 FROM tab1 AS cor0
----
5292
5586
9408
query I rowsort
SELECT DISTINCT + 60 * + ( col2 + col0 ) * col2 AS col1 FROM tab2 cor0
----
162240
266760
55080
query I rowsort
SELECT ALL - ( + 77 ) AS col1 FROM tab2 AS cor0
----
-77
-77
-77
onlyif mysql # use DIV operator for integer division
query I rowsort label-3371
SELECT DISTINCT - col0 DIV - col1 col0 FROM tab1 AS cor0
----
0
6
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3371
SELECT DISTINCT - col0 / - col1 col0 FROM tab1 AS cor0
----
0
6
query I rowsort
SELECT ALL + - ( + col0 ) + + cor0.col2 * cor0.col2 AS col1 FROM tab2 AS cor0
----
1365
598
722
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0, tab0 AS cor1, tab2, tab2 AS cor2
----
3645 values hashing to 42d854e4c33cb5afd5528228bff9250d
query I rowsort
SELECT 16 AS col2 FROM tab0, tab0 cor0
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 45 col0 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 14cec871edc37b5056cda01c8331fdca
query I rowsort
SELECT ALL 66 AS col1 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 897b6122ac98340b78905f39d81897fc
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 col1 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT + 23 * cor0.col1 FROM tab1 AS cor0
----
230
299
598
query I rowsort
SELECT ALL - 76 * col0 + + cor0.col0 * ( + col1 ) + col0 AS col1 FROM tab1 AS cor0
----
-147
-4160
-4960
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3380
SELECT DISTINCT - - CAST( NULL AS SIGNED ) * 2 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3380
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) * 2 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT + - 85 AS col0 FROM tab2 AS cor0
----
-85
-85
-85
query I rowsort
SELECT - cor0.col0 + + col0 - col1 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT + cor0.col0 + - col1 AS col1 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT - col0 + col0 * ( col1 * col0 ) FROM tab1 AS cor0
----
231
40896
83120
onlyif mysql # use DIV operator for integer division
query I rowsort label-3385
SELECT - 18 DIV - col0 + 81 * - col1 AS col1 FROM tab0 AS cor0
----
-6966
-7371
-7857
skipif mysql # not compatible
query I rowsort label-3385
SELECT - 18 / - col0 + 81 * - col1 AS col1 FROM tab0 AS cor0
----
-6966
-7371
-7857
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - ( col1 ) + 4 * + 72 col0 FROM tab1
----
316
335
371
query I rowsort
SELECT ALL 86 FROM tab0
----
86
86
86
query I rowsort
SELECT - ( + col0 + tab1.col1 ) AS col2 FROM tab1
----
-29
-74
-93
onlyif mysql # use DIV operator for integer division
query I rowsort label-3389
SELECT ALL - col2 DIV col0 AS col2 FROM tab2 cor0
----
-3
0
0
skipif mysql # not compatible
query I rowsort label-3389
SELECT ALL - col2 / col0 AS col2 FROM tab2 cor0
----
-3
0
0
query I rowsort
SELECT cor0.col1 * col1 + + cor0.col2 * - col0 AS col1 FROM tab0 AS cor0
----
6604
9374
983
query I rowsort
SELECT ALL + col1 + + 32 * - col1 AS col0 FROM tab0 AS cor0
----
-2666
-2821
-3007
query I rowsort
SELECT ALL - + col2 - ( + col1 ) FROM tab0 AS cor0
----
-119
-173
-98
query I rowsort
SELECT DISTINCT + col2 * col2 * 98 AS col2 FROM tab2 AS cor0
----
141512
66248
71442
query I rowsort
SELECT DISTINCT + col2 * 30 FROM tab1 AS cor0
----
1620
1710
2880
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - col1 col1 FROM tab0 AS cor0
----
-110
-132
-180
query I rowsort
SELECT + col0 + ( - col2 + + cor0.col1 ) AS col1 FROM tab1 AS cor0
----
-25
-3
17
query I rowsort
SELECT + - cor0.col1 * - cor0.col1 AS col1 FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT ALL col1 + - col1 + + ( + 50 + col1 ) FROM tab0
----
136
141
147
query I rowsort
SELECT - 80 - col0 AS col2 FROM tab0
----
-104
-115
-169
onlyif mysql # use DIV operator for integer division
query I rowsort label-3400
SELECT col0 * 58 + col0 DIV col2 AS col2 FROM tab1
----
174
3713
4640
skipif mysql # not compatible
query I rowsort label-3400
SELECT col0 * 58 + col0 / col2 AS col2 FROM tab1
----
174
3713
4640
query I rowsort
SELECT + col0 + col2 * - col0 FROM tab2 AS cor0
----
-182
-1950
-2923
query I rowsort
SELECT - cor0.col2 + 4 * - col0 * col1 FROM tab0 AS cor0
----
-13581
-32478
-8289
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3403
SELECT - + col2 * + CAST( - col2 AS SIGNED ) FROM tab0 AS cor0
----
1
1089
6724
skipif mysql # not compatible
query I rowsort label-3403
SELECT - + col2 * + CAST ( - col2 AS INTEGER ) FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT ALL + col0 - col1 AS col1 FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT + + col2 * - 78 FROM tab0 AS cor0
----
-2574
-6396
-78
query I rowsort
SELECT DISTINCT - col1 + col1 * 59 AS col1 FROM tab2 AS cor0
----
1798
3422
986
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3407
SELECT ALL CAST( NULL AS SIGNED ) AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-3407
SELECT ALL CAST ( NULL AS INTEGER ) AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT col1 + col1 * + 83 * + col0 FROM tab1 AS cor0
----
53130
6500
86333
query I rowsort
SELECT + col2 * ( 33 ) FROM tab0 AS cor0
----
1089
2706
33
query I rowsort
SELECT ALL 80 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94
onlyif mysql # use DIV operator for integer division
query I rowsort label-3411
SELECT - 41 * col1 DIV col0 FROM tab2
----
-181
-31
-8
skipif mysql # not compatible
query I rowsort label-3411
SELECT - 41 * col1 / col0 FROM tab2
----
-181
-31
-8
query I rowsort
SELECT + col1 - - 73 FROM tab1 AS cor0
----
83
86
99
query I rowsort
SELECT 71 - + col2 FROM tab2 AS cor0
----
33
44
45
query I rowsort
SELECT + 76 FROM tab2 cor0
----
76
76
76
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2 cor0 CROSS JOIN tab2, tab2 AS cor1, tab0 AS cor2
----
3645 values hashing to 5ec52b92c3c8d78cc0a61df3fc16f18b
query I rowsort
SELECT ALL - - 11 * + col1 + 74 AS col2 FROM tab2 AS cor0
----
261
415
723
query I rowsort
SELECT ALL + - col0 * col2 AS col2 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT ALL + 37 + col0 AS col2 FROM tab1 AS cor0
----
101
117
40
query I rowsort
SELECT - col0 + + col1 * col1 * col2 FROM tab1
----
16144
36501
5636
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - col0 col2 FROM tab1 cor0
----
-1040
-640
-78
onlyif mysql # use DIV operator for integer division
query I rowsort label-3421
SELECT ALL cor0.col2 DIV - ( col1 ) AS col2 FROM tab1 AS cor0
----
-2
-5
-7
skipif mysql # not compatible
query I rowsort label-3421
SELECT ALL cor0.col2 / - ( col1 ) AS col2 FROM tab1 AS cor0
----
-2
-5
-7
query I rowsort
SELECT DISTINCT + + col1 + + 16 FROM tab1 AS cor0
----
26
29
42
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + - col2 + col2 col2 FROM tab0
----
86
91
97
query I rowsort
SELECT ALL col0 + - col1 * col1 AS col2 FROM tab0 AS cor0
----
-7372
-8192
-9374
onlyif mysql # use DIV operator for integer division
query I rowsort label-3425
SELECT 42 DIV - cor0.col0 + + 16 FROM tab0, tab1 AS cor0
----
9 values hashing to e89b5a006b1f73c121a2f035ab3ca0b9
skipif mysql # not compatible
query I rowsort label-3425
SELECT 42 / - cor0.col0 + + 16 FROM tab0, tab1 AS cor0
----
9 values hashing to e89b5a006b1f73c121a2f035ab3ca0b9
query I rowsort
SELECT ALL + col1 * + 65 AS col1 FROM tab1 AS cor0
----
1690
650
845
query I rowsort
SELECT - 66 * + 31 AS col0 FROM tab0 AS cor0
----
-2046
-2046
-2046
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3428
SELECT DISTINCT + CAST( NULL AS SIGNED ) col0 FROM tab2 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3428
SELECT DISTINCT + CAST ( NULL AS INTEGER ) col0 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL col1 + - col2 * col0 AS col2 FROM tab0 AS cor0
----
-706
-7207
62
query I rowsort
SELECT DISTINCT col0 * + col2 FROM tab2 cor0
----
189
2028
3002
query I rowsort
SELECT + col1 * - col0 + 7 FROM tab0 cor0
----
-2057
-3388
-8092
query I rowsort
SELECT DISTINCT - + col0 * col2 + + col2 FROM tab1 AS cor0
----
-108
-3591
-7584
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 + + cor0.col1 col1 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-3434
SELECT + cor0.col0 DIV col2 + - col1 FROM tab1 AS cor0
----
-13
-26
-9
skipif mysql # not compatible
query I rowsort label-3434
SELECT + cor0.col0 / col2 + - col1 FROM tab1 AS cor0
----
-13
-26
-9
onlyif mysql # use DIV operator for integer division
query I rowsort label-3435
SELECT + 98 DIV - col0 + CAST( - ( + col1 ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-11
-14
-58
skipif mysql # not compatible
query I rowsort label-3435
SELECT + 98 / - col0 + CAST ( - ( + col1 ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-11
-14
-58
query I rowsort
SELECT - col1 + cor0.col0 FROM tab0 cor0
----
-2
-62
-62
query I rowsort
SELECT ALL ( col2 ) + 83 FROM tab1 AS cor0
----
137
140
179
query I rowsort
SELECT - col1 * + col0 + + col0 * col0 FROM tab1 cor0
----
-69
3456
5360
query I rowsort
SELECT DISTINCT col1 + - 96 AS col0 FROM tab0 cor0
----
-10
-5
1
query I rowsort
SELECT DISTINCT col1 * - 50 FROM tab2 AS cor0
----
-1550
-2950
-850
query I rowsort
SELECT ALL + col0 * 99 + + col2 FROM tab0 AS cor0
----
2409
3466
8893
query I rowsort
SELECT DISTINCT col1 * 44 AS col1 FROM tab1 AS cor0
----
1144
440
572
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col0 + - col2 col2 FROM tab0 cor0
----
-171
-36
-57
query I rowsort
SELECT ALL + col0 * + 29 FROM tab2 cor0
----
203
2262
2291
query I rowsort
SELECT ALL col0 * + cor0.col1 AS col1 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT col1 * ( 18 ) FROM tab1 cor0
----
180
234
468
query I rowsort
SELECT col0 - col0 * ( col2 ) * + tab1.col1 FROM tab1
----
-36416
-4209
-99760
query I rowsort
SELECT DISTINCT + col0 - - ( 36 ) AS col1 FROM tab1 AS cor0
----
100
116
39
query I rowsort
SELECT + cor1.col1 * + 23 AS col1 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 8c6dd064b8412f30b3990708d6bd5453
query I rowsort
SELECT DISTINCT - cor0.col1 + + 6 AS col2 FROM tab1 AS cor0
----
-20
-4
-7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3451
SELECT + col1 * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3451
SELECT + col1 * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col2 * ( 56 ) + cor0.col1 FROM tab2 AS cor0
----
1515
1543
2145
query I rowsort
SELECT ALL + cor0.col0 * ( col1 ) + + col2 AS col0 FROM tab1 AS cor0
----
1136
132
697
query I rowsort
SELECT DISTINCT + + col1 - - col2 AS col2 FROM tab0 cor0
----
119
173
98
query I rowsort
SELECT - col2 * ( 53 ) FROM tab2 AS cor0
----
-1378
-1431
-2014
query I rowsort
SELECT - + col0 * 16 + 36 AS col2 FROM tab0 AS cor0
----
-1388
-348
-524
query I rowsort
SELECT col2 * - col2 * col0 + ( + tab0.col2 ) FROM tab0
----
-26103
-34
-598354
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3458
SELECT ALL - cor0.col2 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3458
SELECT ALL - cor0.col2 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col1 + col2 * - 71 FROM tab0 AS cor0
----
-168
-2429
-5913
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * cor0.col1 col1 FROM tab2 AS cor0
----
289
3481
961
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col0 + + 95 col1 FROM tab1
----
257
3743
7775
query I rowsort
SELECT + col2 + + col1 AS col1 FROM tab0
----
119
173
98
query I rowsort
SELECT - - 38 + - col0 AS col1 FROM tab2 AS cor0
----
-40
-41
31
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + col0 + + col1 col1 FROM tab1 cor0
----
35
4106
6413
query I rowsort
SELECT + + ( - cor0.col1 ) * - 70 + col2 FROM tab2 AS cor0
----
1228
2197
4156
query I rowsort
SELECT ALL tab2.col1 + col2 - col0 * tab2.col2 FROM tab2
----
-131
-1943
-2947
query I rowsort
SELECT + 75 + - col2 AS col2 FROM tab1 AS cor0
----
-21
18
21
query I rowsort
SELECT + - 50 FROM tab0 AS cor0
----
-50
-50
-50
query I rowsort
SELECT DISTINCT 61 * col2 AS col0 FROM tab0 AS cor0
----
2013
5002
61
query I rowsort
SELECT + col0 + - col0 AS col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT col2 * - col2 AS col0 FROM tab2 AS cor0
----
-1444
-676
-729
query I rowsort
SELECT + ( col0 ) * - col1 AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT col2 + cor0.col1 * col2 AS col1 FROM tab1 AS cor0
----
1344
1458
627
query I rowsort
SELECT ALL 27 + 16 * + tab2.col2 AS col2 FROM tab2
----
443
459
635
query I rowsort
SELECT - ( + ( col1 ) ) FROM tab2
----
-17
-31
-59
onlyif mysql # use DIV operator for integer division
query I rowsort label-3476
SELECT col1 * col2 + - 1 DIV 98 AS col1 FROM tab1
----
1248
1404
570
skipif mysql # not compatible
query I rowsort label-3476
SELECT col1 * col2 + - 1 / 98 AS col1 FROM tab1
----
1248
1404
570
onlyif mysql # use DIV operator for integer division
query I rowsort label-3477
SELECT DISTINCT col1 DIV - col0 + + ( 4 ) FROM tab1
----
-4
4
skipif mysql # not compatible
query I rowsort label-3477
SELECT DISTINCT col1 / - col0 + + ( 4 ) FROM tab1
----
-4
4
query I rowsort
SELECT ALL - col1 * cor0.col0 AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT DISTINCT - + 23 + col1 * ( - col2 ) + + col1 AS col2 FROM tab2 cor0
----
-1498
-652
-829
query I rowsort
SELECT - 30 + col1 FROM tab1 AS cor0
----
-17
-20
-4
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3481
SELECT ALL + col2 - + col0 * CAST( 20 + - col2 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
1460
494
76
skipif mysql # not compatible
query I rowsort label-3481
SELECT ALL + col2 - + col0 * CAST ( 20 + - col2 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
1460
494
76
query I rowsort
SELECT DISTINCT - 47 FROM tab0 AS cor0
----
-47
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + col2 * + 66 col2 FROM tab1 AS cor0
----
3618
3819
6432
query I rowsort
SELECT DISTINCT 7 + - col1 * - 38 FROM tab0 AS cor0
----
3275
3465
3693
onlyif mysql # use DIV operator for integer division
query I rowsort label-3485
SELECT - ( col1 ) DIV - ( - cor0.col0 ) + - col1 + col1 * col0 FROM tab0 cor0
----
1975
3296
8007
skipif mysql # not compatible
query I rowsort label-3485
SELECT - ( col1 ) / - ( - cor0.col0 ) + - col1 + col1 * col0 FROM tab0 cor0
----
1975
3296
8007
onlyif mysql # use DIV operator for integer division
query I rowsort label-3486
SELECT ALL 41 * col1 DIV + col0 col0 FROM tab1
----
355
6
6
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3486
SELECT ALL 41 * col1 / + col0 col0 FROM tab1
----
355
6
6
query I rowsort
SELECT ALL 74 AS col0 FROM tab2
----
74
74
74
skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( + tab2.col0 AS REAL ) * + col1 / + col1 AS col2 FROM tab2
----
7
78
79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3489
SELECT - + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3489
SELECT - + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col0 + col0 * + col1 + + 77 * - col0 FROM tab2 AS cor0
----
-1482
-329
-4819
onlyif mysql # use DIV operator for integer division
query I rowsort label-3491
SELECT + 45 DIV + cor0.col0 FROM tab0 AS cor0
----
0
1
1
skipif mysql # not compatible
query I rowsort label-3491
SELECT + 45 / + cor0.col0 FROM tab0 AS cor0
----
0
1
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-3492
SELECT DISTINCT - - cor0.col2 * - col2 + col0 * col0 DIV col0 FROM tab2 cor0
----
-1365
-598
-722
skipif mysql # not compatible
query I rowsort label-3492
SELECT DISTINCT - - cor0.col2 * - col2 + col0 * col0 / col0 FROM tab2 cor0
----
-1365
-598
-722
query I rowsort
SELECT ALL - + col2 * col2 * col2 + col2 * col0 AS col2 FROM tab2 AS cor0
----
-15548
-19494
-51870
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 50 col1 FROM tab1
----
50
50
50
query I rowsort
SELECT ( - ( + col1 ) ) FROM tab1
----
-10
-13
-26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 63 col1 FROM tab0 AS cor0
----
63
63
63
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3497
SELECT DISTINCT col1 / CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3497
SELECT DISTINCT col1 / CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT ALL + + col0 * - 9 + + col2 AS col1 FROM tab1 AS cor0
----
-519
-624
27
query I rowsort
SELECT ALL col2 * - ( + ( - col0 ) ) + col0 * + col1 * - col1 FROM tab0 cor0
----
-176712
-329280
-729711
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col0 * 17 - col0 col1 FROM tab0 AS cor0
----
-1602
-432
-630
onlyif mysql # use DIV operator for integer division
query I rowsort label-3501
SELECT ALL + cor0.col2 + + col0 * col2 DIV col1 FROM tab0 AS cor0
----
1
162
42
skipif mysql # not compatible
query I rowsort label-3501
SELECT ALL + cor0.col2 + + col0 * col2 / col1 FROM tab0 AS cor0
----
1
162
42
query I rowsort
SELECT - - col0 * + 93 + - col1 AS col1 FROM tab0 AS cor0
----
2146
3158
8186
query I rowsort
SELECT + col2 + + col0 * col1 AS col1 FROM tab1 AS cor0
----
1136
132
697
query I rowsort
SELECT - col0 - + 88 FROM tab1 cor0
----
-152
-168
-91
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - + col2 col0 FROM tab1 AS cor0
----
-28
-47
-83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col0 * - cor0.col2 col0 FROM tab1 AS cor0
----
-136
-3638
-7667
query I rowsort
SELECT - - col1 + - col1 + col1 FROM tab1 AS cor0
----
10
13
26
onlyif mysql # use DIV operator for integer division
query I rowsort label-3508
SELECT - + 0 * - 62 + + col1 DIV + 40 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3508
SELECT - + 0 * - 62 + + col1 / + 40 FROM tab1 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + + 46 col0 FROM tab0
----
135
70
81
onlyif mysql # use DIV operator for integer division
query I rowsort label-3510
SELECT + + ( cor0.col0 ) DIV - col2 AS col1 FROM tab1 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-3510
SELECT + + ( cor0.col0 ) / - col2 AS col1 FROM tab1 AS cor0
----
-1
0
0
query I rowsort
SELECT - + 60 * col1 + + cor0.col2 AS col2 FROM tab2 AS cor0
----
-1833
-3514
-982
query I rowsort
SELECT cor0.col2 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17
query I rowsort
SELECT DISTINCT cor1.col1 FROM tab2, tab0 AS cor0, tab0 cor1
----
86
91
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3514
SELECT + + CAST( NULL AS SIGNED ) + - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3514
SELECT + + CAST ( NULL AS INTEGER ) + - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3515
SELECT ALL + CAST( col2 AS SIGNED ) FROM tab2 AS cor0
----
26
27
38
skipif mysql # not compatible
query I rowsort label-3515
SELECT ALL + CAST ( col2 AS INTEGER ) FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT - + 4 + col1 AS col1 FROM tab0 AS cor0
----
82
87
93
query I rowsort
SELECT + col0 * col2 + + cor0.col2 FROM tab2 AS cor0
----
2054
216
3040
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3518
SELECT DISTINCT + + col1 + - ( + col1 ) * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3518
SELECT DISTINCT + + col1 + - ( + col1 ) * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 - col2 col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - ( 80 ) AS col0 FROM tab0 AS cor0
----
-80
query I rowsort
SELECT ALL + 75 * ( - col2 ) AS col1 FROM tab0 AS cor0
----
-2475
-6150
-75
query I rowsort
SELECT - 94 * - 75 * - tab2.col2 AS col0 FROM tab2
----
-183300
-190350
-267900
query I rowsort
SELECT + col2 + + cor0.col2 AS col0 FROM tab2 AS cor0
----
52
54
76
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3524
SELECT DISTINCT - 96 + + col0 * - CAST( NULL AS SIGNED ) + 56 AS col2 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3524
SELECT DISTINCT - 96 + + col0 * - CAST ( NULL AS INTEGER ) + 56 AS col2 FROM tab1 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + col0 * tab0.col1 col1 FROM tab0
----
2150
3492
8190
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col1 * 46 col2 FROM tab2, tab2 cor0, tab1 AS cor1
----
27 values hashing to 1c6a3d85aee9ac407b6b1c327ddaa39e
query I rowsort
SELECT - col2 - col2 * col0 AS col1 FROM tab0
----
-36
-7380
-825
query I rowsort
SELECT 81 FROM tab1, tab1 cor0
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267
query I rowsort
SELECT + 69 + tab0.col1 * + col0 AS col0 FROM tab0
----
2133
3464
8168
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + col1 + - col2 col1 FROM tab1 AS cor0
----
1152
1350
513
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3531
SELECT DISTINCT col1 * CAST( + col2 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
1534
646
837
skipif mysql # not compatible
query I rowsort label-3531
SELECT DISTINCT col1 * CAST ( + col2 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT ALL 37 * + col0 AS col2 FROM tab1
----
111
2368
2960
query I rowsort
SELECT + col1 + col0 - - tab1.col0 FROM tab1
----
138
173
32
query I rowsort
SELECT col1 + ( col0 * - col2 ) + 89 AS col1 FROM tab0
----
-617
-7118
151
query I rowsort
SELECT DISTINCT col0 * 99 - - col0 FROM tab0
----
2400
3500
8900
query I rowsort
SELECT ALL col0 - - col1 FROM tab1
----
29
74
93
query I rowsort
SELECT col2 * col0 * - tab1.col1 FROM tab1
----
-36480
-4212
-99840
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab2.col1 col1 FROM tab2
----
17
31
59
query I rowsort
SELECT + + col1 - + 71 FROM tab0 AS cor0
----
15
20
26
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3540
SELECT col2 * CAST( col1 AS SIGNED ) - col0 AS col1 FROM tab2 AS cor0
----
1456
567
830
skipif mysql # not compatible
query I rowsort label-3540
SELECT col2 * CAST ( col1 AS INTEGER ) - col0 AS col1 FROM tab2 AS cor0
----
1456
567
830
query I rowsort
SELECT DISTINCT + col1 + cor0.col1 * ( - col2 ) + cor0.col0 FROM tab1 AS cor0
----
-1155
-1375
-496
query I rowsort
SELECT + cor0.col0 * + col0 AS col1 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT ALL - - col0 * cor0.col1 + ( col2 ) FROM tab2 AS cor0
----
1381
244
4628
query I rowsort
SELECT DISTINCT - col0 * - col0 - ( - col0 ) FROM tab0 AS cor0
----
1260
600
8010
onlyif mysql # use DIV operator for integer division
query I rowsort label-3545
SELECT ALL + cor0.col1 + col0 DIV col0 + - col1 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-3545
SELECT ALL + cor0.col1 + col0 / col0 + - col1 FROM tab0 AS cor0
----
1
1
1
query I rowsort
SELECT DISTINCT + + col2 - col0 AS col1 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT DISTINCT col1 + col1 * + col1 AS col2 FROM tab2 AS cor0
----
306
3540
992
query I rowsort
SELECT ALL 54 FROM tab1 AS cor0
----
54
54
54
query I rowsort
SELECT ALL - col0 * col1 + col1 * + 74 AS col2 FROM tab1 AS cor0
----
-78
100
1846
query I rowsort
SELECT DISTINCT 32 AS col1 FROM tab1 cor0
----
32
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3551
SELECT DISTINCT + - col2 - col1 * CAST( NULL AS SIGNED ) * - cor0.col1 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3551
SELECT DISTINCT + - col2 - col1 * CAST ( NULL AS INTEGER ) * - cor0.col1 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT ( col0 ) + col0 * 10 AS col1 FROM tab2
----
77
858
869
query I rowsort
SELECT ALL + 81 * 41 + + col0 AS col1 FROM tab1
----
3324
3385
3401
onlyif mysql # use DIV operator for integer division
query I rowsort label-3554
SELECT + cor0.col0 DIV tab0.col0 FROM tab0, tab1, tab1 cor0, tab2
----
81 values hashing to 4e542d3109de6fcd51b1f00cf1d8cf36
skipif mysql # not compatible
query I rowsort label-3554
SELECT + cor0.col0 / tab0.col0 FROM tab0, tab1, tab1 cor0, tab2
----
81 values hashing to 4e542d3109de6fcd51b1f00cf1d8cf36
query I rowsort
SELECT 92 - tab0.col1 AS col2 FROM tab0
----
-5
1
6
onlyif mysql # use DIV operator for integer division
query I rowsort label-3556
SELECT ALL + CAST( + col2 AS SIGNED ) DIV - col0 + 77 + col2 * - col1 FROM tab1
----
-1172
-1345
-493
skipif mysql # not compatible
query I rowsort label-3556
SELECT ALL + CAST ( + col2 AS INTEGER ) / - col0 + 77 + col2 * - col1 FROM tab1
----
-1172
-1345
-493
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * col2 col2 FROM tab1 AS cor0
----
1248
1404
570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + col2 col1 FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT DISTINCT - 70 AS col0 FROM tab1 AS cor0
----
-70
onlyif mysql # use DIV operator for integer division
query I rowsort label-3560
SELECT ALL - col0 DIV + col1 col2 FROM tab0 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3560
SELECT ALL - col0 / + col1 col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - 7 * - col1 * - 4 FROM tab0 AS cor0
----
-2408
-2548
-2716
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 51 col0 FROM tab1 AS cor0
----
51
51
51
query I rowsort
SELECT - 8 AS col1 FROM tab0
----
-8
-8
-8
query I rowsort
SELECT ALL - 73 * cor0.col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8e247c14ba1d3ae3f51ae81f322c3a51
onlyif mysql # use DIV operator for integer division
query I rowsort label-3565
SELECT - col1 DIV + ( - col1 ) + - col1 AS col2 FROM tab1
----
-12
-25
-9
skipif mysql # not compatible
query I rowsort label-3565
SELECT - col1 / + ( - col1 ) + - col1 AS col2 FROM tab1
----
-12
-25
-9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 * - col2 + cor0.col1 col1 FROM tab1 AS cor0
----
188
3658
7693
query I rowsort
SELECT DISTINCT + col1 - col0 AS col0 FROM tab1 cor0
----
-54
-67
23
query I rowsort
SELECT DISTINCT cor0.col2 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
26
27
38
query I rowsort
SELECT ( col0 ) + + col2 AS col0 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT ALL - tab0.col0 + 72 AS col0 FROM tab0
----
-17
37
48
query I rowsort
SELECT + col1 * cor0.col1 AS col1 FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT 8 + - 41 * + cor0.col1 FROM tab1 AS cor0
----
-1058
-402
-525
query I rowsort
SELECT DISTINCT col1 * col2 + - col1 FROM tab2 AS cor0
----
1475
629
806
query I rowsort
SELECT - 18 + ( col1 ) + 50 FROM tab0 AS cor0
----
118
123
129
query I rowsort
SELECT - + cor0.col0 * 69 FROM tab2 AS cor0
----
-483
-5382
-5451
onlyif mysql # use DIV operator for integer division
query I rowsort label-3576
SELECT DISTINCT - 50 + - col0 DIV col2 AS col0 FROM tab0 AS cor0
----
-50
-51
-85
skipif mysql # not compatible
query I rowsort label-3576
SELECT DISTINCT - 50 + - col0 / col2 AS col0 FROM tab0 AS cor0
----
-50
-51
-85
query I rowsort
SELECT + + 83 * col2 + col0 * col1 FROM tab0 AS cor0
----
14905
3478
4803
query I rowsort
SELECT ALL + ( - col0 * col2 ) FROM tab2
----
-189
-2028
-3002
query I rowsort
SELECT 40 + col1 AS col1 FROM tab0
----
126
131
137
onlyif mysql # use DIV operator for integer division
query I rowsort label-3580
SELECT DISTINCT + col1 DIV + cor0.col1 FROM tab1 cor0
----
1
skipif mysql # not compatible
query I rowsort label-3580
SELECT DISTINCT + col1 / + cor0.col1 FROM tab1 cor0
----
1
query I rowsort
SELECT + + 64 - - col1 AS col0 FROM tab2 AS cor0
----
123
81
95
query I rowsort
SELECT + 87 * + 17 FROM tab0 AS cor0
----
1479
1479
1479
onlyif mysql # use DIV operator for integer division
query I rowsort label-3583
SELECT ALL - ( + cor0.col0 ) + + col0 DIV col1 AS col1 FROM tab2 AS cor0
----
-7
-75
-77
skipif mysql # not compatible
query I rowsort label-3583
SELECT ALL - ( + cor0.col0 ) + + col0 / col1 AS col1 FROM tab2 AS cor0
----
-7
-75
-77
query I rowsort
SELECT - + 69 + + col1 FROM tab2 cor0
----
-10
-38
-52
query I rowsort
SELECT DISTINCT + 20 + + cor0.col2 FROM tab0 cor0
----
102
21
53
query I rowsort
SELECT DISTINCT - - cor0.col0 * col1 + col2 AS col0 FROM tab2 AS cor0
----
1381
244
4628
query I rowsort
SELECT - col2 + + 24 FROM tab0 cor0
----
-58
-9
23
query I rowsort
SELECT ALL - col2 + col2 * col1 FROM tab2 AS cor0
----
1508
608
810
query I rowsort
SELECT ALL - 23 AS col1 FROM tab2 AS cor0
----
-23
-23
-23
query I rowsort
SELECT - + 75 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 258bc565c64924d905a55eaaa6e57547
onlyif mysql # use DIV operator for integer division
query I rowsort label-3591
SELECT DISTINCT - 81 + + ( col2 + + 72 ) DIV + 83 FROM tab1
----
-79
-80
skipif mysql # not compatible
query I rowsort label-3591
SELECT DISTINCT - 81 + + ( col2 + + 72 ) / + 83 FROM tab1
----
-79
-80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 46 col0 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 5a5d45989dcc6a06d9ee5a08945518f9
onlyif mysql # use DIV operator for integer division
query I rowsort label-3593
SELECT + col1 DIV col1 FROM tab0 cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-3593
SELECT + col1 / col1 FROM tab0 cor0
----
1
1
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-3594
SELECT col2 + col1 DIV + 47 FROM tab2 cor0
----
27
27
38
skipif mysql # not compatible
query I rowsort label-3594
SELECT col2 + col1 / + 47 FROM tab2 cor0
----
27
27
38
query I rowsort
SELECT + col0 - + col0 AS col1 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-3596
SELECT DISTINCT + col1 DIV 11 + cor0.col0 FROM tab2 AS cor0
----
80
83
9
skipif mysql # not compatible
query I rowsort label-3596
SELECT DISTINCT + col1 / 11 + cor0.col0 FROM tab2 AS cor0
----
80
83
9
query I rowsort
SELECT tab1.col2 * + col0 AS col0 FROM tab1
----
162
3648
7680
query I rowsort
SELECT + ( + 56 ) AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa
query I rowsort
SELECT ALL + 38 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3600
SELECT ALL + col1 / - CAST( NULL AS SIGNED ) - - cor0.col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3600
SELECT ALL + col1 / - CAST ( NULL AS INTEGER ) - - cor0.col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col0 * col1 + + col1 FROM tab2 AS cor0
----
-1326
-186
-4543
onlyif mysql # use DIV operator for integer division
query I rowsort label-3602
SELECT + ( - col2 ) DIV col0 FROM tab2 AS cor0
----
-3
0
0
skipif mysql # not compatible
query I rowsort label-3602
SELECT + ( - col2 ) / col0 FROM tab2 AS cor0
----
-3
0
0
query I rowsort
SELECT - col2 * cor0.col2 - col1 FROM tab1 AS cor0
----
-2942
-3259
-9229
query I rowsort
SELECT + col2 * 32 + col1 * 64 FROM tab2 cor0
----
2304
2848
4608
onlyif mysql # use DIV operator for integer division
query I rowsort label-3605
SELECT + 42 DIV ( col0 ) FROM tab2 AS cor0
----
0
0
6
skipif mysql # not compatible
query I rowsort label-3605
SELECT + 42 / ( col0 ) FROM tab2 AS cor0
----
0
0
6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + col2 col2 FROM tab2 AS cor0
----
52
54
76
query I rowsort
SELECT ALL tab2.col1 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272
query I rowsort
SELECT ALL - col2 + - 73 AS col0 FROM tab1
----
-127
-130
-169
query I rowsort
SELECT col0 * - 63 FROM tab2
----
-441
-4914
-4977
query I rowsort
SELECT ALL + col1 * + 19 + 81 FROM tab2
----
1202
404
670
query I rowsort
SELECT ALL col2 * 42 + - tab2.col0 FROM tab2
----
1014
1127
1517
onlyif mysql # use DIV operator for integer division
query I rowsort label-3612
SELECT ALL col0 DIV - 62 + 6 col1 FROM tab0
----
5
6
6
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3612
SELECT ALL col0 / - 62 + 6 col1 FROM tab0
----
5
6
6
query I rowsort
SELECT ALL - col1 * 6 + + 18 FROM tab1
----
-138
-42
-60
query I rowsort
SELECT - - col2 + 50 FROM tab2 AS cor0
----
76
77
88
query I rowsort
SELECT DISTINCT col1 + + cor0.col1 FROM tab0 AS cor0
----
172
182
194
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3616
SELECT ALL - col0 + + 10 * col1 * + col2 - - CAST( NULL AS SIGNED ) * + col0 / + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3616
SELECT ALL - col0 + + 10 * col1 * + col2 - - CAST ( NULL AS INTEGER ) * + col0 / + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT cor0.col0 + - ( 91 ) AS col2 FROM tab1 AS cor0
----
-11
-27
-88
query I rowsort
SELECT 34 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 50 col1 FROM tab1, tab1 AS cor0
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52
query I rowsort
SELECT col0 * - ( + col2 ) AS col2 FROM tab2
----
-189
-2028
-3002
query I rowsort
SELECT ALL - cor0.col1 * ( 55 ) FROM tab1, tab2, tab1 cor0
----
27 values hashing to 82e9cc8424132ae9204076ba86a854db
query I rowsort
SELECT + col2 * + col0 + 14 AS col0 FROM tab1 AS cor0
----
176
3662
7694
query I rowsort
SELECT ALL col2 * + tab0.col2 * - col2 AS col1 FROM tab0
----
-1
-35937
-551368
onlyif mysql # use DIV operator for integer division
query I rowsort label-3624
SELECT ALL 84 DIV col0 AS col2 FROM tab1
----
1
1
28
skipif mysql # not compatible
query I rowsort label-3624
SELECT ALL 84 / col0 AS col2 FROM tab1
----
1
1
28
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3625
SELECT ALL + CAST( - col1 AS SIGNED ) AS col2 FROM tab2
----
-17
-31
-59
skipif mysql # not compatible
query I rowsort label-3625
SELECT ALL + CAST ( - col1 AS INTEGER ) AS col2 FROM tab2
----
-17
-31
-59
query I rowsort
SELECT DISTINCT + col2 * 75 FROM tab2
----
1950
2025
2850
query I rowsort
SELECT DISTINCT + col0 * col2 + + col1 * - col0 * + col1 FROM tab0 AS cor0
----
-176712
-329280
-729711
query I rowsort
SELECT DISTINCT - ( + tab1.col0 ) FROM tab1
----
-3
-64
-80
query I rowsort
SELECT ALL - ( col1 ) * - col2 AS col2 FROM tab1 cor0
----
1248
1404
570
query I rowsort
SELECT DISTINCT ( + col1 ) * col0 FROM tab0
----
2064
3395
8099
query I rowsort
SELECT + 51 FROM tab2 AS cor0
----
51
51
51
query I rowsort
SELECT - - col0 + + col1 + cor0.col1 * + col0 FROM tab2 AS cor0
----
1439
255
4739
onlyif mysql # use DIV operator for integer division
query I rowsort label-3633
SELECT col0 + - col0 DIV + col2 AS col1 FROM tab0
----
0
24
88
skipif mysql # not compatible
query I rowsort label-3633
SELECT col0 + - col0 / + col2 AS col1 FROM tab0
----
0
24
88
query I rowsort
SELECT + col1 + - col2 * - ( - col2 ) AS col2 FROM tab0 AS cor0
----
-1003
-6633
96
query I rowsort
SELECT ( col0 ) * + ( + col1 ) + - col2 + + col2 * col2 AS col0 FROM tab1 AS cor0
----
10160
2940
3832
query I rowsort
SELECT - - 26 + - col1 + cor0.col2 * - col0 * cor0.col2 FROM tab0 AS cor0
----
-106
-26196
-598501
query I rowsort
SELECT - 68 * cor0.col1 + - col2 FROM tab1 AS cor0
----
-1822
-737
-980
query I rowsort
SELECT + + 71 - col2 AS col1 FROM tab0 AS cor0
----
-11
38
70
query I rowsort
SELECT col2 * - col0 AS col1 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT - ( + col1 ) * 2 - + col0 * col0 FROM tab0 AS cor0
----
-1419
-748
-8103
onlyif mysql # use DIV operator for integer division
query I rowsort label-3641
SELECT ALL - col0 * col2 DIV ( + col1 ) FROM tab2
----
-176
-34
-6
skipif mysql # not compatible
query I rowsort label-3641
SELECT ALL - col0 * col2 / ( + col1 ) FROM tab2
----
-176
-34
-6
query I rowsort
SELECT - col1 * col1 * + 13 + col0 FROM tab0
----
-107564
-122282
-96124
query I rowsort
SELECT col0 * - col2 + - 70 - 6 * - col1 AS col1 FROM tab0
----
-346
-6822
477
query I rowsort
SELECT DISTINCT - 89 * col0 - 67 FROM tab2
----
-690
-7009
-7098
query I rowsort
SELECT DISTINCT - col0 + col2 - - ( - 36 ) * + col1 * - 29 AS col2 FROM tab0
----
101234
89793
94997
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3646
SELECT DISTINCT + col1 * col2 / + CAST( NULL AS SIGNED ) + - col1 / + col0 - CAST( NULL AS DECIMAL ) AS col0 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-3646
SELECT DISTINCT + col1 * col2 / + CAST ( NULL AS INTEGER ) + - col1 / + col0 - CAST ( NULL AS REAL ) AS col0 FROM tab0
----
NULL
query I rowsort
SELECT col2 * col0 - + col2 * col0 FROM tab0
----
0
0
0
query I rowsort
SELECT DISTINCT col2 * + col1 * 19 FROM tab1
----
10830
23712
26676
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + col1 * - col1 col2 FROM tab2 AS cor0
----
-3559
-368
-968
query I rowsort
SELECT + - cor0.col0 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e
query I rowsort
SELECT ALL - + 91 FROM tab1 AS cor0
----
-91
-91
-91
query I rowsort
SELECT - + col0 * col2 * - col1 + + col2 * col0 + cor0.col1 * cor0.col2 * cor0.col1 AS col0 FROM tab2 AS cor0
----
212186
31995
65018
query I rowsort
SELECT DISTINCT - - col2 + - 34 * 88 * col2 AS col0 FROM tab2 AS cor0
----
-113658
-77766
-80757
query I rowsort
SELECT DISTINCT + + col1 * col1 AS col1 FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT - - col2 + - col2 * - col2 + + col0 FROM tab2 AS cor0
----
1561
763
780
query I rowsort
SELECT - - col2 * - col0 AS col2 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT + + cor0.col0 + + ( col0 ) * col1 AS col1 FROM tab1 cor0
----
1120
704
81
query I rowsort
SELECT DISTINCT - col1 * + col1 * 25 AS col0 FROM tab0 AS cor0
----
-184900
-207025
-235225
query I rowsort
SELECT ALL - - col0 * ( - 54 * + col2 ) FROM tab1 cor0
----
-196992
-414720
-8748
query I rowsort
SELECT - col2 + - 88 - 47 AS col2 FROM tab1 AS cor0
----
-189
-192
-231
query I rowsort
SELECT col2 + - col0 * + ( - tab2.col0 + col0 ) * + tab2.col1 FROM tab2
----
26
27
38
query I rowsort
SELECT ALL + tab1.col2 * - 49 FROM tab1, tab2 AS cor0
----
9 values hashing to ec7b028f570e1876116d7bce8f88df12
query I rowsort
SELECT + + col1 * - ( - col2 ) FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT ALL + col0 * 83 + - cor0.col0 FROM tab2 AS cor0
----
574
6396
6478
query I rowsort
SELECT DISTINCT - + col1 * + col0 + col2 + col0 FROM tab2 AS cor0
----
-1226
-183
-4498
query I rowsort
SELECT - 43 * col0 FROM tab1 AS cor0
----
-129
-2752
-3440
query I rowsort
SELECT ALL + col1 + col1 * - col1 AS col1 FROM tab0 AS cor0
----
-7310
-8190
-9312
query I rowsort
SELECT ( - col1 ) * + col2 AS col0 FROM tab1 AS cor0
----
-1248
-1404
-570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 42 * - col0 + col2 col2 FROM tab2 AS cor0
----
-267
-3250
-3280
query I rowsort
SELECT DISTINCT - + col2 + col2 * col0 FROM tab2 AS cor0
----
162
2002
2964
query I rowsort
SELECT DISTINCT - - 28 AS col1 FROM tab1 cor0
----
28
query I rowsort
SELECT ALL ( + cor0.col2 ) FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT + 62 * 66 FROM tab0 cor0
----
4092
4092
4092
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3674
SELECT ALL + + CAST( + col2 AS SIGNED ) * col1 + col2 FROM tab0 AS cor0
----
2871
7544
98
skipif mysql # not compatible
query I rowsort label-3674
SELECT ALL + + CAST ( + col2 AS INTEGER ) * col1 + col2 FROM tab0 AS cor0
----
2871
7544
98
query I rowsort
SELECT - - col0 * col2 * - col1 AS col2 FROM tab2 cor0
----
-119652
-51034
-5859
query I rowsort
SELECT DISTINCT - + 40 * + col0 - col1 FROM tab1 cor0
----
-146
-2570
-3213
query I rowsort
SELECT - - col0 * + ( cor0.col2 ) * + 66 AS col1 FROM tab1 AS cor0
----
10692
240768
506880
query I rowsort
SELECT ALL ( + 54 ) * - col2 AS col0 FROM tab1 AS cor0
----
-2916
-3078
-5184
query I rowsort
SELECT - + col1 * col1 + col2 FROM tab0 cor0
----
-7363
-8199
-9408
query I rowsort
SELECT ALL 57 + col2 * - col1 FROM tab1 AS cor0
----
-1191
-1347
-513
query I rowsort
SELECT 94 AS col2 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to a4d239626cf0546ac1b2f57bb8407089
query I rowsort
SELECT ALL 76 * - col1 AS col0 FROM tab1 AS cor0
----
-1976
-760
-988
query I rowsort
SELECT col0 * col0 + 44 AS col1 FROM tab2 AS cor0
----
6128
6285
93
query I rowsort
SELECT ALL + 61 + cor0.col2 * - col0 FROM tab2 AS cor0
----
-128
-1967
-2941
query I rowsort
SELECT 34 * cor0.col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 6286f7262c113a162cfb6213b3f82041
query I rowsort
SELECT 71 FROM tab2, tab1 AS cor0
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0
query I rowsort
SELECT - cor0.col2 AS col1 FROM tab2, tab0 cor0 CROSS JOIN tab0, tab2 AS cor1, tab2 AS cor2, tab2 AS cor3
----
729 values hashing to f2665462d63ba2ab42b5b74f08d90bf2
query I rowsort
SELECT col1 * + tab2.col1 * + tab2.col2 + col1 AS col1 FROM tab2
----
10999
25978
90565
query I rowsort
SELECT DISTINCT tab2.col1 * col2 + - tab2.col0 FROM tab2
----
1456
567
830
query I rowsort
SELECT ALL - col0 * + col2 + col2 AS col2 FROM tab0
----
-34
-7216
-759
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab1.col1 * - col0 + tab1.col1 col2 FROM tab1
----
-1027
-52
-630
query I rowsort
SELECT ALL tab0.col2 + tab0.col0 FROM tab0
----
171
36
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-3693
SELECT ALL + col1 + col0 + col1 DIV - col0 AS col1 FROM tab0
----
107
130
179
skipif mysql # not compatible
query I rowsort label-3693
SELECT ALL + col1 + col0 + col1 / - col0 AS col1 FROM tab0
----
107
130
179
query I rowsort
SELECT col1 + - col0 + col0 FROM tab1
----
10
13
26
query I rowsort
SELECT ALL - col2 + - col1 * col2 + col1 FROM tab1 WHERE NOT NULL IN ( col0 )
----
query I rowsort
SELECT DISTINCT - col0 + - col1 + col1 FROM tab1
----
-3
-64
-80
query I rowsort
SELECT DISTINCT col1 + col2 AS col2 FROM tab0
----
119
173
98
query I rowsort
SELECT + col0 * - col2 * - col1 + col1 AS col1 FROM tab0
----
3492
664209
68198
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col2 + + col0 * + col2 + + col2 col2 FROM tab1
----
270
3762
7872
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab1.col2 * - col2 col1 FROM tab1
----
-2916
-3249
-9216
query I rowsort
SELECT col0 + tab1.col0 - + tab1.col1 FROM tab1
----
-20
118
147
query I rowsort
SELECT 39 * - col1 AS col1 FROM tab1 AS cor0
----
-1014
-390
-507
query I rowsort
SELECT + col0 * - tab1.col2 AS col0 FROM tab1
----
-162
-3648
-7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-3704
SELECT ALL + tab0.col0 DIV + col1 + + col0 AS col1 FROM tab0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-3704
SELECT ALL + tab0.col0 / + col1 + + col0 AS col1 FROM tab0
----
24
35
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab0.col2 * + col0 * - tab0.col1 + col0 col1 FROM tab0
----
-3360
-664029
-68088
query I rowsort
SELECT ALL + col2 * + col0 * - col1 FROM tab2
----
-119652
-51034
-5859
query III rowsort
SELECT * FROM tab0 WHERE NULL >= col1
----
query I rowsort
SELECT col2 * col1 * col2 FROM tab0 AS cor0 WHERE NOT + col2 BETWEEN NULL AND NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - col2 col2 FROM tab2 cor0
----
-1444
-676
-729
query I rowsort
SELECT col1 * - col1 FROM tab1 AS cor0 WHERE NULL IN ( col1 )
----
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 NOT BETWEEN - col1 / cor0.col0 AND - col1 * col1
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45
query I rowsort
SELECT DISTINCT col0 + + col2 + + cor0.col0 * - col2 FROM tab2 cor0
----
-155
-1924
-2885
onlyif mysql # use DIV operator for integer division
query I rowsort label-3713
SELECT col1 + + col1 DIV - col1 AS col2 FROM tab1 AS cor0
----
12
25
9
skipif mysql # not compatible
query I rowsort label-3713
SELECT col1 + + col1 / - col1 AS col2 FROM tab1 AS cor0
----
12
25
9
query I rowsort
SELECT tab0.col1 * col1 - col0 FROM tab0
----
7372
8192
9374
query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 * col1 + col2 <= NULL
----
query I rowsort
SELECT ALL col2 + col0 * col1 + col1 AS col0 FROM tab2
----
1398
275
4687
query I rowsort
SELECT DISTINCT + col1 * + col2 + col0 + - col2 FROM tab2
----
1586
687
817
onlyif mysql # use DIV operator for integer division
query I rowsort label-3718
SELECT ALL tab1.col1 + - col2 DIV - col2 + + col0 FROM tab1
----
30
75
94
skipif mysql # not compatible
query I rowsort label-3718
SELECT ALL tab1.col1 + - col2 / - col2 + + col0 FROM tab1
----
30
75
94
query I rowsort
SELECT ALL - col2 * + col0 + - col0 + + col0 AS col1 FROM tab0
----
-35
-7298
-792
query I rowsort
SELECT ALL col2 * col2 FROM tab1 WHERE col0 + col0 BETWEEN ( NULL ) AND col2
----
query I rowsort
SELECT DISTINCT - col2 * col1 AS col2 FROM tab2
----
-1534
-646
-837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + col1 col0 FROM tab1
----
-54
-67
23
onlyif mysql # use DIV operator for integer division
query I rowsort label-3723
SELECT col2 DIV tab2.col1 + col2 * - col1 * - col0 AS col2 FROM tab2
----
119652
51036
5859
skipif mysql # not compatible
query I rowsort label-3723
SELECT col2 / tab2.col1 + col2 * - col1 * - col0 AS col2 FROM tab2
----
119652
51036
5859
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( col1 )
----
query I rowsort
SELECT cor0.col1 + + col1 + + col2 FROM tab0 AS cor0
----
195
205
264
query I rowsort
SELECT ALL - cor0.col0 * col0 + cor0.col2 * - col0 AS col2 FROM tab2 AS cor0
----
-238
-8112
-9243
query I rowsort
SELECT DISTINCT + cor0.col1 * + col2 AS col0 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT + col2 + tab1.col0 + col0 FROM tab1
----
185
256
60
query I rowsort
SELECT ALL 72 AS col2 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 92cc3d5daa550304e96c1542787691c7
query I rowsort
SELECT ALL col2 * 71 + + col1 AS col2 FROM tab0
----
168
2429
5913
query I rowsort
SELECT DISTINCT + 6 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
6
onlyif mysql # use DIV operator for integer division
query I rowsort label-3732
SELECT col1 + + 29 DIV - tab0.col2 + col0 FROM tab0
----
103
110
180
skipif mysql # not compatible
query I rowsort label-3732
SELECT col1 + + 29 / - tab0.col2 + col0 FROM tab0
----
103
110
180
onlyif mysql # use DIV operator for integer division
query I rowsort label-3733
SELECT col1 + 79 DIV col1 + + col2 * col2 AS col2 FROM tab0
----
1175
6815
98
skipif mysql # not compatible
query I rowsort label-3733
SELECT col1 + 79 / col1 + + col2 * col2 AS col2 FROM tab0
----
1175
6815
98
query I rowsort
SELECT DISTINCT + col2 * - tab1.col0 FROM tab1
----
-162
-3648
-7680
query I rowsort
SELECT cor0.col1 + - col1 FROM tab0 cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3736
SELECT DISTINCT + CAST( + col2 AS SIGNED ) AS col2 FROM tab2
----
26
27
38
skipif mysql # not compatible
query I rowsort label-3736
SELECT DISTINCT + CAST ( + col2 AS INTEGER ) AS col2 FROM tab2
----
26
27
38
query I rowsort
SELECT - col1 * - col2 * col1 FROM tab2
----
10982
25947
90506
query I rowsort
SELECT cor0.col0 * - col0 + + col1 * - 30 + + 93 AS col2 FROM tab2 AS cor0
----
-6658
-7761
-886
query I rowsort
SELECT DISTINCT - ( - col1 ) * col0 AS col1 FROM tab2 cor0
----
1343
217
4602
query I rowsort
SELECT ALL - 50 + + col1 AS col1 FROM tab2 AS cor0
----
-19
-33
9
query I rowsort
SELECT ALL 3 AS col0 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 3e22859a313d85a6146c6df5f23d77cf
onlyif mysql # use DIV operator for integer division
query I rowsort label-3742
SELECT + 58 DIV - col0 + + tab1.col2 * - 23 FROM tab1
----
-1261
-1311
-2208
skipif mysql # not compatible
query I rowsort label-3742
SELECT + 58 / - col0 + + tab1.col2 * - 23 FROM tab1
----
-1261
-1311
-2208
query I rowsort
SELECT ( col2 * - col2 ) FROM tab0
----
-1
-1089
-6724
onlyif mysql # use DIV operator for integer division
query I rowsort label-3744
SELECT DISTINCT - tab1.col2 DIV col0 AS col0 FROM tab1
----
-1
-18
0
skipif mysql # not compatible
query I rowsort label-3744
SELECT DISTINCT - tab1.col2 / col0 AS col0 FROM tab1
----
-1
-18
0
query I rowsort
SELECT + 43 AS col2 FROM tab2 AS cor0
----
43
43
43
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3746
SELECT ALL - col0 * cor0.col0 - + CAST( NULL AS SIGNED ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3746
SELECT ALL - col0 * cor0.col0 - + CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col2 * col1 + cor0.col1 FROM tab2 AS cor0
----
1593
663
868
query I rowsort
SELECT ALL + 90 * - col0 + + col0 - col1 * - col2 FROM tab2 AS cor0
----
-5408
-6385
214
onlyif mysql # use DIV operator for integer division
query I rowsort label-3749
SELECT DISTINCT + + col2 * col1 DIV + 2 + col2 AS col2 FROM tab2 AS cor0
----
361
445
793
skipif mysql # not compatible
query I rowsort label-3749
SELECT DISTINCT + + col2 * col1 / + 2 + col2 AS col2 FROM tab2 AS cor0
----
361
445
793
query I rowsort
SELECT - cor0.col1 * 4 FROM tab1 AS cor0
----
-104
-40
-52
query I rowsort
SELECT DISTINCT + + cor0.col1 * cor0.col0 AS col2 FROM tab0 AS cor0
----
2064
3395
8099
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3752
SELECT - + col0 * CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3752
SELECT - + col0 * CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col2 + - col1 * col1 AS col2 FROM tab2 AS cor0
----
-251
-3455
-934
query I rowsort
SELECT ALL - - col0 * + 15 AS col0 FROM tab2 cor0
----
105
1170
1185
query I rowsort
SELECT ALL + - col1 * + col0 FROM tab1 AS cor0
----
-1040
-640
-78
onlyif mysql # use DIV operator for integer division
query I rowsort label-3756
SELECT col1 DIV ( ( col1 ) ) AS col2 FROM tab2 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-3756
SELECT col1 / ( ( col1 ) ) AS col2 FROM tab2 AS cor0
----
1
1
1
query I rowsort
SELECT ALL - col0 + + cor0.col2 * cor0.col2 FROM tab0 AS cor0
----
-34
1065
6635
query I rowsort
SELECT DISTINCT - col1 * 2 FROM tab2
----
-118
-34
-62
query I rowsort
SELECT - + col2 * + cor0.col0 AS col1 FROM tab0 cor0
----
-35
-7298
-792
query I rowsort
SELECT ( - col2 + tab0.col0 ) AS col1 FROM tab0
----
-9
34
7
query I rowsort
SELECT 49 * 20 * + col2 AS col0 FROM tab2
----
25480
26460
37240
query I rowsort
SELECT + 90 * + 54 AS col1 FROM tab1
----
4860
4860
4860
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 57 * + col2 col2 FROM tab1 AS cor0
----
-3078
-3249
-5472
onlyif mysql # use DIV operator for integer division
query I rowsort label-3764
SELECT DISTINCT + - 59 DIV + col0 FROM tab2 AS cor0
----
-8
0
skipif mysql # not compatible
query I rowsort label-3764
SELECT DISTINCT + - 59 / + col0 FROM tab2 AS cor0
----
-8
0
query I rowsort
SELECT + col0 * col1 + col1 FROM tab1 AS cor0
----
104
1053
650
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 61 + col0 col1 FROM tab0 AS cor0
----
-26
-37
28
query I rowsort
SELECT + 49 * + col2 FROM tab0
----
1617
4018
49
query I rowsort
SELECT DISTINCT 74 * - col2 + + col2 * + col0 * + col1 - - col0 * - tab2.col2 FROM tab2
----
115700
3672
45220
query I rowsort
SELECT DISTINCT - 48 AS col0 FROM tab2, tab0 AS cor0
----
-48
query I rowsort
SELECT ALL - col1 * - col2 - tab0.col2 FROM tab0
----
2805
7380
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-3771
SELECT tab2.col1 DIV col0 AS col2 FROM tab2
----
0
0
4
skipif mysql # not compatible
query I rowsort label-3771
SELECT tab2.col1 / col0 AS col2 FROM tab2
----
0
0
4
query I rowsort
SELECT ALL 62 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0
query I rowsort
SELECT DISTINCT - ( + col0 ) AS col2 FROM tab0
----
-24
-35
-89
query I rowsort
SELECT ( 63 * col2 ) FROM tab0
----
2079
5166
63
query I rowsort
SELECT 39 * col1 + col0 * col0 * - col1 FROM tab2
----
-105434
-310
-356655
query I rowsort
SELECT ALL ( tab0.col0 ) * - col2 FROM tab0
----
-35
-7298
-792
query I rowsort
SELECT + col1 + + 17 FROM tab2 AS cor0
----
34
48
76
query I rowsort
SELECT ALL 43 * - col2 * - ( + col2 ) AS col1 FROM tab2
----
29068
31347
62092
query I rowsort
SELECT ALL ( - 34 ) FROM tab0, tab1 AS cor0
----
9 values hashing to 40442a74794ded4c78101eefe525a5bb
query I rowsort
SELECT DISTINCT 81 - 93 FROM tab2, tab2 AS cor0
----
-12
query I rowsort
SELECT + col2 + + 69 * + col2 AS col2 FROM tab2 AS cor0
----
1820
1890
2660
query I rowsort
SELECT DISTINCT 98 AS col2 FROM tab2, tab0 cor0
----
98
query I rowsort
SELECT col0 * + col1 AS col0 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT + col0 + col1 * col1 FROM tab0 AS cor0
----
7420
8370
9444
query IIIIIIIII rowsort
SELECT * FROM tab1, tab0, tab2 AS cor0 WHERE NULL > NULL
----
query I rowsort
SELECT + tab1.col2 - col1 AS col0 FROM tab1
----
28
47
83
query I rowsort
SELECT col2 * - col0 + tab0.col1 FROM tab0
----
-706
-7207
62
query IIIIIIIII rowsort
SELECT * FROM tab0, tab2, tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----
query I rowsort
SELECT DISTINCT - col0 * - col2 - + tab1.col1 AS col2 FROM tab1 WHERE NOT NULL IN ( col0 + + col0 )
----
query I rowsort
SELECT - col2 + col2 * + col1 AS col2 FROM tab1 AS cor0
----
1152
1350
513
query I rowsort
SELECT - cor0.col2 * - col2 AS col1 FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT - tab0.col0 + col0 FROM tab0
----
0
0
0
query I rowsort
SELECT DISTINCT + + cor0.col1 + - col0 AS col2 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT ALL - col1 * col0 + col2 * col2 FROM tab2 AS cor0
----
-3926
101
512
query I rowsort
SELECT DISTINCT + + col1 * - cor0.col2 AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570
onlyif mysql # use DIV operator for integer division
query I rowsort label-3796
SELECT ALL + col1 + col2 DIV - cor0.col1 AS col0 FROM tab0 AS cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-3796
SELECT ALL + col1 + col2 / - cor0.col1 AS col0 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT ALL + col2 + - col2 AS col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - cor0.col2 + + col1 * - col2 AS col1 FROM tab0 AS cor0
----
-2871
-7544
-98
onlyif mysql # use DIV operator for integer division
query I rowsort label-3799
SELECT ALL + + col0 DIV col1 AS col2 FROM tab2 AS cor0
----
0
1
4
skipif mysql # not compatible
query I rowsort label-3799
SELECT ALL + + col0 / col1 AS col2 FROM tab2 AS cor0
----
0
1
4
query I rowsort
SELECT + col0 + - col0 * cor0.col0 FROM tab2 AS cor0
----
-42
-6006
-6162
query I rowsort
SELECT DISTINCT 58 AS col1 FROM tab1
----
58
query I rowsort
SELECT col1 * col1 AS col1 FROM tab0 cor0
----
7396
8281
9409
query I rowsort
SELECT ALL + - col1 + - col0 + + cor0.col2 FROM tab1 AS cor0
----
-17
25
3
query I rowsort
SELECT - col2 * - col1 + + cor0.col2 AS col0 FROM tab1 AS cor0
----
1344
1458
627
query I rowsort
SELECT - + 71 AS col1 FROM tab1 AS cor0
----
-71
-71
-71
query I rowsort
SELECT col1 + col1 * - col2 AS col0 FROM tab2 cor0
----
-1475
-629
-806
query I rowsort
SELECT + + col0 + + cor0.col0 AS col2 FROM tab1 cor0
----
128
160
6
query I rowsort
SELECT + col1 * - col2 + col2 FROM tab2 AS cor0
----
-1508
-608
-810
query I rowsort
SELECT col1 + + col1 AS col0 FROM tab1 AS cor0
----
20
26
52
query I rowsort
SELECT ALL + col2 + - col1 AS col0 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT + col1 * col0 + col1 FROM tab2 AS cor0
----
1360
248
4661
query I rowsort
SELECT + col1 * - cor0.col1 AS col1 FROM tab0 cor0
----
-7396
-8281
-9409
onlyif mysql # use DIV operator for integer division
query I rowsort label-3813
SELECT ALL cor0.col0 DIV - col0 FROM tab2 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-3813
SELECT ALL cor0.col0 / - col0 FROM tab2 AS cor0
----
-1
-1
-1
query I rowsort
SELECT DISTINCT + col0 + - cor0.col2 AS col1 FROM tab2 AS cor0
----
-20
41
52
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor1.col0 col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + col1 col2 FROM tab0
----
110
132
180
query I rowsort
SELECT DISTINCT + cor0.col0 AS col1 FROM tab1, tab1 AS cor0
----
3
64
80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3818
SELECT ALL 37 + - col2 * - CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3818
SELECT ALL 37 + - col2 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - 46 + + col1 AS col1 FROM tab0
----
40
45
51
query I rowsort
SELECT 60 + col2 * + col1 + - col0 AS col2 FROM tab0
----
122
2874
7433
query I rowsort
SELECT DISTINCT col1 + + col0 * - col1 AS col1 FROM tab0
----
-1978
-3298
-8008
query I rowsort
SELECT ALL tab0.col2 + + col0 FROM tab0
----
171
36
57
query I rowsort
SELECT ALL 39 + - col2 * ( tab1.col0 ) FROM tab1
----
-123
-3609
-7641
query I rowsort
SELECT ALL + col1 + tab1.col1 + + ( col1 ) FROM tab1
----
30
39
78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * col2 col0 FROM tab0 cor0
----
2838
7462
97
query I rowsort
SELECT col1 - col0 AS col1 FROM tab0 AS cor0
----
2
62
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * col0 + 79 * col0 col1 FROM tab1 AS cor0
----
-80
228
960
query I rowsort
SELECT ALL tab1.col2 + tab1.col2 FROM tab1
----
108
114
192
query I rowsort
SELECT + col2 * + col0 * - 15 FROM tab0
----
-109470
-11880
-525
query I rowsort
SELECT ALL - cor0.col2 * + 35 FROM tab0 AS cor0
----
-1155
-2870
-35
query I rowsort
SELECT + + col0 + col1 AS col2 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT - - col0 + ( col2 ) * + col2 FROM tab0 cor0
----
1113
36
6813
onlyif mysql # use DIV operator for integer division
query I rowsort label-3833
SELECT + col2 DIV col0 + col1 * col0 * + col0 FROM tab1 AS cor0
----
252
40960
83201
skipif mysql # not compatible
query I rowsort label-3833
SELECT + col2 / col0 + col1 * col0 * + col0 FROM tab1 AS cor0
----
252
40960
83201
query I rowsort
SELECT + col2 + - ( 46 ) * + col2 * + col1 FROM tab0 AS cor0
----
-130515
-343170
-4461
onlyif mysql # use DIV operator for integer division
query I rowsort label-3835
SELECT ALL - + col1 DIV col0 + - col1 * cor0.col1 AS col1 FROM tab1 AS cor0
----
-100
-169
-684
skipif mysql # not compatible
query I rowsort label-3835
SELECT ALL - + col1 / col0 + - col1 * cor0.col1 AS col1 FROM tab1 AS cor0
----
-100
-169
-684
query I rowsort
SELECT - cor0.col0 + cor0.col1 * 64 * col0 AS col1 FROM tab0 AS cor0
----
132072
217245
518247
query I rowsort
SELECT col1 + - ( + cor0.col1 ) + col2 AS col2 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT col2 * 15 + + col1 + - cor0.col1 AS col0 FROM tab0 AS cor0
----
1230
15
495
query I rowsort
SELECT col1 + + col0 * 79 - col2 AS col2 FROM tab1 cor0
----
209
5009
6237
query I rowsort
SELECT DISTINCT - - col0 + col1 * + col0 FROM tab1 AS cor0
----
1120
704
81
query I rowsort
SELECT DISTINCT + col2 + + col1 * + cor0.col1 FROM tab2 AS cor0
----
327
3507
988
query I rowsort
SELECT ALL + col2 * - 30 AS col1 FROM tab0 AS cor0
----
-2460
-30
-990
onlyif mysql # use DIV operator for integer division
query I rowsort label-3843
SELECT + + col1 DIV + col1 AS col1 FROM tab2 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-3843
SELECT + + col1 / + col1 AS col1 FROM tab2 AS cor0
----
1
1
1
query I rowsort
SELECT ALL + - 33 * - ( col0 ) AS col1 FROM tab0 AS cor0
----
1155
2937
792
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3845
SELECT DISTINCT - CAST( - col2 AS SIGNED ) + + col1 AS col0 FROM tab0 AS cor0
----
119
173
98
skipif mysql # not compatible
query I rowsort label-3845
SELECT DISTINCT - CAST ( - col2 AS INTEGER ) + + col1 AS col0 FROM tab0 AS cor0
----
119
173
98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3846
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - col2 / col1 AS col0 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3846
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - col2 / col1 AS col0 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL + ( + col0 ) + col1 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT ALL col1 + - col2 * col1 FROM tab2 AS cor0
----
-1475
-629
-806
query I rowsort
SELECT - - ( 46 ) FROM tab1 AS cor0
----
46
46
46
query I rowsort
SELECT DISTINCT - ( cor0.col0 ) + - col2 FROM tab0 cor0
----
-171
-36
-57
query I rowsort
SELECT DISTINCT + col1 + 82 * + col2 FROM tab2 AS cor0
----
2191
2245
3133
query I rowsort
SELECT ALL - cor0.col1 * - col0 + - cor0.col1 FROM tab2 AS cor0
----
1326
186
4543
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3853
SELECT ALL - + CAST( NULL AS SIGNED ) * + cor0.col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3853
SELECT ALL - + CAST ( NULL AS INTEGER ) * + cor0.col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT 60 - ( col0 + col1 ) * - col0 AS col1 FROM tab0 AS cor0
----
16080
2700
4680
query I rowsort
SELECT ALL - col0 - col0 AS col1 FROM tab2 AS cor0
----
-14
-156
-158
query I rowsort
SELECT - col0 + 99 FROM tab0 AS cor0
----
10
64
75
query I rowsort
SELECT ALL + ( col2 ) + col2 * - 10 * + cor0.col1 AS col2 FROM tab1 AS cor0
----
-12384
-13986
-5643
query I rowsort
SELECT DISTINCT + - ( - cor0.col2 ) * + col0 FROM tab2 AS cor0
----
189
2028
3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-3859
SELECT ALL - 70 DIV col0 AS col1 FROM tab0 AS cor0
----
-2
-2
0
skipif mysql # not compatible
query I rowsort label-3859
SELECT ALL - 70 / col0 AS col1 FROM tab0 AS cor0
----
-2
-2
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - ( cor0.col0 ) + col2 col2 FROM tab1 AS cor0
----
121
176
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-3861
SELECT ALL 90 + - col1 DIV - col0 FROM tab1 AS cor0
----
90
90
98
skipif mysql # not compatible
query I rowsort label-3861
SELECT ALL 90 + - col1 / - col0 FROM tab1 AS cor0
----
90
90
98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3862
SELECT col1 * cor0.col1 * + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3862
SELECT col1 * cor0.col1 * + CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + 55 * col1 AS col0 FROM tab0 AS cor0
----
4730
5005
5335
query I rowsort
SELECT - col1 + - cor0.col0 AS col1 FROM tab1 AS cor0
----
-29
-74
-93
query I rowsort
SELECT ALL - - col0 * col0 AS col0 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT + 61 + + col1 * - cor0.col0 AS col2 FROM tab2 AS cor0
----
-1282
-156
-4541
query I rowsort
SELECT + - cor0.col2 * col2 AS col2 FROM tab1 AS cor0
----
-2916
-3249
-9216
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 8 col2 FROM tab2 AS cor0
----
8
8
8
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3869
SELECT DISTINCT - + cor0.col2 + cor0.col1 - + CAST( ( col2 ) * + col0 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-190
-3695
-7763
skipif mysql # not compatible
query I rowsort label-3869
SELECT DISTINCT - + cor0.col2 + cor0.col1 - + CAST ( ( col2 ) * + col0 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-190
-3695
-7763
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 29 col2 FROM tab2 AS cor0
----
29
29
29
query I rowsort
SELECT DISTINCT col0 + - col1 * + col1 FROM tab1 cor0
----
-36
-673
-89
query I rowsort
SELECT DISTINCT + - 66 FROM tab1 AS cor0
----
-66
query I rowsort
SELECT - col1 * - col2 + col2 FROM tab0 AS cor0
----
2871
7544
98
query I rowsort
SELECT col0 + 29 * tab2.col1 FROM tab2
----
1789
572
906
query I rowsort
SELECT - 91 * + cor0.col1 + + 18 - cor0.col2 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to e67958c2062edb2a46b94be3f2ff5038
query I rowsort
SELECT DISTINCT tab2.col0 AS col1 FROM tab2, tab1 AS cor0
----
7
78
79
query I rowsort
SELECT ALL col0 * + col0 + + 52 FROM tab0
----
1277
628
7973
query I rowsort
SELECT DISTINCT + 44 FROM tab0
----
44
query I rowsort
SELECT col2 * ( - col1 ) + col0 FROM tab1
----
-1168
-1401
-506
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 57 * 76 + - col0 col2 FROM tab1 AS cor0
----
4252
4268
4329
onlyif mysql # use DIV operator for integer division
query I rowsort label-3881
SELECT DISTINCT + col1 DIV + ( - col0 * col1 ) + 2 FROM tab2
----
2
skipif mysql # not compatible
query I rowsort label-3881
SELECT DISTINCT + col1 / + ( - col0 * col1 ) + 2 FROM tab2
----
2
query I rowsort
SELECT DISTINCT ( + col1 ) * tab0.col2 FROM tab0
----
2838
7462
97
query I rowsort
SELECT DISTINCT - 77 FROM tab0
----
-77
query I rowsort
SELECT tab1.col2 + col0 AS col2 FROM tab1
----
121
176
57
query I rowsort
SELECT + cor0.col1 FROM tab0, tab2 AS cor0, tab0 cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
query I rowsort
SELECT col0 + 45 FROM tab2 AS cor0
----
123
124
52
query I rowsort
SELECT ALL + 38 - 70 AS col2 FROM tab1 cor0
----
-32
-32
-32
onlyif mysql # use DIV operator for integer division
query I rowsort label-3888
SELECT ALL col2 DIV + ( - col0 ) FROM tab2
----
-3
0
0
skipif mysql # not compatible
query I rowsort label-3888
SELECT ALL col2 / + ( - col0 ) FROM tab2
----
-3
0
0
query I rowsort
SELECT DISTINCT + cor1.col1 FROM tab2 AS cor0 CROSS JOIN tab1, tab1 cor1
----
10
13
26
query I rowsort
SELECT - 47 FROM tab0, tab2 cor0
----
9 values hashing to 6942a0d9558277afd0d00408d65cf5aa
query I rowsort
SELECT col1 * ( col0 + + col0 ) AS col1 FROM tab0 AS cor0
----
16198
4128
6790
query I rowsort
SELECT cor0.col1 * 48 FROM tab0 AS cor0
----
4128
4368
4656
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3893
SELECT + CAST( 26 AS SIGNED ) FROM tab1 cor0
----
26
26
26
skipif mysql # not compatible
query I rowsort label-3893
SELECT + CAST ( 26 AS INTEGER ) FROM tab1 cor0
----
26
26
26
query I rowsort
SELECT ALL - 2 + col1 FROM tab0 AS cor0
----
84
89
95
query I rowsort
SELECT ALL 63 * - col2 FROM tab0 AS cor0
----
-2079
-5166
-63
query I rowsort
SELECT ALL - - col0 * - 94 FROM tab1 AS cor0
----
-282
-6016
-7520
onlyif mysql # use DIV operator for integer division
query I rowsort label-3897
SELECT ALL - ( col2 ) DIV col2 FROM tab1 cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-3897
SELECT ALL - ( col2 ) / col2 FROM tab1 cor0
----
-1
-1
-1
query I rowsort
SELECT + col0 * cor0.col1 + + col2 + - col2 AS col0 FROM tab0 AS cor0
----
2064
3395
8099
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3899
SELECT - + cor0.col0 * col2 + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3899
SELECT - + cor0.col0 * col2 + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - 53 * + col0 - ( - 2 ) AS col2 FROM tab2 AS cor0
----
-369
-4132
-4185
query I rowsort
SELECT - col2 * col1 + 97 FROM tab0 AS cor0
----
-2741
-7365
0
query I rowsort
SELECT + col0 + + col0 AS col1 FROM tab2 cor0
----
14
156
158
query I rowsort
SELECT + 74 + cor0.col0 AS col0 FROM tab0 AS cor0
----
109
163
98
query I rowsort
SELECT + col2 + + ( - 74 ) FROM tab1 AS cor0
----
-17
-20
22
query I rowsort
SELECT DISTINCT + col1 * - cor0.col2 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT ALL + col2 + 78 * + 41 AS col2 FROM tab0 cor0
----
3199
3231
3280
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 * col0 + - col0 * + col2 col2 FROM tab0 AS cor0
----
-15397
-2856
-3430
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 col1 FROM tab0 cor0
----
1
33
82
query I rowsort
SELECT + - col1 + - col1 * - col0 FROM tab2 AS cor0
----
1326
186
4543
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3910
SELECT ALL + + col0 * CAST( - col2 AS SIGNED ) * col0 FROM tab1 AS cor0
----
-233472
-486
-614400
skipif mysql # not compatible
query I rowsort label-3910
SELECT ALL + + col0 * CAST ( - col2 AS INTEGER ) * col0 FROM tab1 AS cor0
----
-233472
-486
-614400
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * 13 col2 FROM tab2 AS cor0
----
1014
1027
91
query I rowsort
SELECT + col1 * col0 * - col0 FROM tab2
----
-106097
-1519
-358956
query I rowsort
SELECT DISTINCT - + ( - cor0.col1 ) * ( - 55 ) FROM tab1, tab2, tab2 AS cor0
----
-1705
-3245
-935
query I rowsort
SELECT ALL - 14 + - tab2.col2 AS col0 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 715d5e987425e95e443f4aaac78bc132
query I rowsort
SELECT DISTINCT 40 AS col2 FROM tab1
----
40
query I rowsort
SELECT ALL + col2 + cor0.col2 FROM tab1 cor0
----
108
114
192
query I rowsort
SELECT ALL - - col1 * cor0.col2 - + 61 * + cor0.col1 * 67 AS col1 FROM tab2 AS cor0
----
-125860
-239599
-68833
query I rowsort
SELECT DISTINCT col0 * 65 + col2 FROM tab2 AS cor0
----
482
5096
5173
query I rowsort
SELECT DISTINCT + + col1 * 23 AS col0 FROM tab1 AS cor0
----
230
299
598
query I rowsort
SELECT - col0 + - cor0.col0 AS col1 FROM tab2 cor0
----
-14
-156
-158
query I rowsort
SELECT DISTINCT - col1 + tab2.col1 FROM tab2
----
0
query I rowsort
SELECT ALL - cor0.col1 * col1 + 62 - + col2 FROM tab2 AS cor0
----
-265
-3445
-926
query I rowsort
SELECT + cor0.col2 + - ( col1 * col1 + - col1 ) AS col1 FROM tab2 AS cor0
----
-234
-3396
-903
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3924
SELECT DISTINCT + - col2 * - CAST( NULL AS SIGNED ) - 64 AS col0 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3924
SELECT DISTINCT + - col2 * - CAST ( NULL AS INTEGER ) - 64 AS col0 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT + cor0.col2 FROM tab0, tab2, tab2 cor0
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3926
SELECT DISTINCT ( ( - col2 ) ) * - CAST( NULL AS SIGNED ) + col2 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3926
SELECT DISTINCT ( ( - col2 ) ) * - CAST ( NULL AS INTEGER ) + col2 FROM tab1 AS cor0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3927
SELECT DISTINCT + + CAST( NULL AS SIGNED ) + col1 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3927
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) + col1 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT + col2 + - col2 * cor0.col1 FROM tab1 AS cor0
----
-1152
-1350
-513
query I rowsort
SELECT + col2 + 13 * - col2 * col2 FROM tab2
----
-18734
-8762
-9450
query I rowsort
SELECT cor0.col2 + + col1 * cor0.col2 AS col0 FROM tab0 AS cor0
----
2871
7544
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-3931
SELECT DISTINCT - + col0 + - col1 + col1 DIV + col2 FROM tab1 AS cor0
----
-29
-74
-93
skipif mysql # not compatible
query I rowsort label-3931
SELECT DISTINCT - + col0 + - col1 + col1 / + col2 FROM tab1 AS cor0
----
-29
-74
-93
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3932
SELECT DISTINCT CAST( NULL AS SIGNED ) * col1 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-3932
SELECT DISTINCT CAST ( NULL AS INTEGER ) * col1 FROM tab1
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + + col1 * 50 + - col1 col2 FROM tab1 AS cor0
----
1328
547
733
query I rowsort
SELECT ALL + 32 * + col0 - col0 * col0 AS col0 FROM tab1
----
-2048
-3840
87
query I rowsort
SELECT + ( col0 * + col2 ) AS col1 FROM tab1
----
162
3648
7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-3936
SELECT 94 DIV - 65 AS col1 FROM tab2
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-3936
SELECT 94 / - 65 AS col1 FROM tab2
----
-1
-1
-1
query I rowsort
SELECT col2 * + col2 + ( col0 + col2 ) FROM tab1
----
2973
3370
9392
query I rowsort
SELECT 47 AS col2 FROM tab1 AS cor0
----
47
47
47
query I rowsort
SELECT 21 + + tab1.col2 AS col0 FROM tab1
----
117
75
78
query I rowsort
SELECT + + col1 + col0 + - col0 AS col0 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT DISTINCT ( + col2 ) AS col0 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT - 81 + + col0 * - 98 FROM tab0 AS cor0
----
-2433
-3511
-8803
query I rowsort
SELECT DISTINCT + + col1 + cor0.col2 FROM tab2 cor0
----
55
58
85
query I rowsort
SELECT cor0.col1 - + col0 AS col0 FROM tab2 cor0
----
-19
-62
24
query I rowsort
SELECT ALL 56 * col2 FROM tab1 AS cor0
----
3024
3192
5376
query I rowsort
SELECT - col1 + col2 + + 65 FROM tab2 cor0
----
32
61
86
query I rowsort
SELECT ALL - - 44 * + cor0.col0 * - col0 FROM tab1 AS cor0
----
-180224
-281600
-396
query I rowsort
SELECT - col0 * + 32 * ( col0 ) + col0 FROM tab1
----
-131008
-204720
-285
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3949
SELECT - CAST( NULL AS SIGNED ) * - 97 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3949
SELECT - CAST ( NULL AS INTEGER ) * - 97 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + col0 * tab0.col0 AS col2 FROM tab0
----
1225
576
7921
query I rowsort
SELECT + col2 + + ( - 42 ) FROM tab0
----
-41
-9
40
query I rowsort
SELECT ALL - tab0.col0 + 2 FROM tab0
----
-22
-33
-87
query I rowsort
SELECT + 81 + + tab0.col1 * + 21 FROM tab0, tab1 AS cor0
----
9 values hashing to 8ee60798d408d82cd2aa31f98fdcfaf3
query I rowsort
SELECT + 22 + col1 + col2 AS col0 FROM tab0
----
120
141
195
query I rowsort
SELECT ALL 65 + col1 * - cor0.col2 FROM tab1 AS cor0
----
-1183
-1339
-505
query I rowsort
SELECT + col0 * - col0 - - col0 * - col2 FROM tab0 cor0
----
-1260
-1368
-15219
query I rowsort
SELECT - - 86 AS col0 FROM tab1 AS cor0
----
86
86
86
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - 42 ) + col2 col0 FROM tab0 AS cor0
----
-41
-9
40
query I rowsort
SELECT - 6 + + 69 * - col2 AS col0 FROM tab2 AS cor0
----
-1800
-1869
-2628
onlyif mysql # use DIV operator for integer division
query I rowsort label-3960
SELECT ALL 90 * - col2 DIV - col2 FROM tab0 AS cor0
----
90
90
90
skipif mysql # not compatible
query I rowsort label-3960
SELECT ALL 90 * - col2 / - col2 FROM tab0 AS cor0
----
90
90
90
query I rowsort
SELECT DISTINCT + 34 * col2 AS col1 FROM tab2 AS cor0
----
1292
884
918
query I rowsort
SELECT 1 - + cor0.col2 FROM tab1 AS cor0
----
-53
-56
-95
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3963
SELECT - CAST( NULL AS SIGNED ) / - ( cor0.col1 ) - - 0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3963
SELECT - CAST ( NULL AS INTEGER ) / - ( cor0.col1 ) - - 0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + 10 AS col2 FROM tab2 AS cor0
----
10
query I rowsort
SELECT + - col1 + cor0.col2 FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT tab1.col2 + col2 AS col2 FROM tab1
----
108
114
192
query I rowsort
SELECT ALL + col0 * cor0.col2 + col0 + + col0 FROM tab0 AS cor0
----
105
7476
840
query I rowsort
SELECT DISTINCT - col2 + + col1 + + col2 AS col0 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT - cor0.col2 * + col2 + - col1 FROM tab2 cor0
----
-1461
-735
-760
query I rowsort
SELECT - - col1 + col0 AS col0 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT ALL + 68 AS col0 FROM tab2 AS cor0
----
68
68
68
query I rowsort
SELECT DISTINCT + + col2 * + col1 + + col1 AS col1 FROM tab2 AS cor0
----
1593
663
868
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3973
SELECT ALL col0 + CAST( col2 AS SIGNED ) * - cor0.col0 FROM tab0 AS cor0
----
-7209
-768
0
skipif mysql # not compatible
query I rowsort label-3973
SELECT ALL col0 + CAST ( col2 AS INTEGER ) * - cor0.col0 FROM tab0 AS cor0
----
-7209
-768
0
query I rowsort
SELECT DISTINCT - col2 + cor0.col1 * col1 FROM tab2 AS cor0
----
251
3455
934
query I rowsort
SELECT ALL + col2 + col0 * ( - col2 + - ( - col0 ) ) AS col2 FROM tab0 AS cor0
----
-183
1191
705
onlyif mysql # use DIV operator for integer division
query I rowsort label-3976
SELECT - col0 DIV 68 FROM tab0 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-3976
SELECT - col0 / 68 FROM tab0 AS cor0
----
-1
0
0
query I rowsort
SELECT col1 * ( col2 + col2 ) AS col1 FROM tab1 AS cor0
----
1140
2496
2808
query I rowsort
SELECT DISTINCT + col2 * 92 * cor0.col1 FROM tab0 cor0
----
261096
686504
8924
query I rowsort
SELECT ALL - col1 + 20 FROM tab0 AS cor0
----
-66
-71
-77
query I rowsort
SELECT + - col2 * - ( + col1 ) + col0 AS col1 FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT DISTINCT - col0 * cor0.col0 + col0 FROM tab2 AS cor0
----
-42
-6006
-6162
query I rowsort
SELECT + col0 * + col2 * col1 + + cor0.col1 FROM tab2 AS cor0
----
119711
51051
5890
query I rowsort
SELECT DISTINCT - cor0.col0 + col0 * + 4 FROM tab1 cor0
----
192
240
9
query I rowsort
SELECT + col2 + ( col2 ) AS col0 FROM tab1 AS cor0
----
108
114
192
query I rowsort
SELECT ALL cor0.col0 AS col2 FROM tab2, tab0 cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63
query I rowsort
SELECT 49 * cor0.col1 AS col1 FROM tab2 AS cor0
----
1519
2891
833
onlyif mysql # use DIV operator for integer division
query I rowsort label-3987
SELECT - 55 DIV col1 AS col0 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3987
SELECT - 55 / col1 AS col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT - 79 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 1b7b0b34fe3431fb409719624d12791f
query IIIIIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0, tab0 AS cor1 WHERE NOT NULL BETWEEN NULL AND NULL
----
query I rowsort
SELECT - 10 * col0 + + 75 AS col2 FROM tab2 AS cor0
----
-705
-715
5
query I rowsort
SELECT DISTINCT - - col2 * col2 AS col1 FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT + 50 * + col0 AS col1 FROM tab1 AS cor0
----
150
3200
4000
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 * col1 * 73 col2 FROM tab2 AS cor0
----
21097
254113
70153
query I rowsort
SELECT DISTINCT - 80 * + col2 AS col2 FROM tab0 AS cor0
----
-2640
-6560
-80
onlyif mysql # use DIV operator for integer division
query I rowsort label-3995
SELECT DISTINCT - 66 + col1 DIV - col1 + col2 FROM tab0 AS cor0
----
-34
-66
15
skipif mysql # not compatible
query I rowsort label-3995
SELECT DISTINCT - 66 + col1 / - col1 + col2 FROM tab0 AS cor0
----
-34
-66
15
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3996
SELECT + col0 + + col2 * + CAST( col0 AS SIGNED ) FROM tab1 AS cor0
----
165
3712
7760
skipif mysql # not compatible
query I rowsort label-3996
SELECT + col0 + + col2 * + CAST ( col0 AS INTEGER ) FROM tab1 AS cor0
----
165
3712
7760
onlyif mysql # use DIV operator for integer division
query I rowsort label-3997
SELECT col1 DIV ( tab1.col2 ) FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3997
SELECT col1 / ( tab1.col2 ) FROM tab1
----
0
0
0
query I rowsort
SELECT - 91 + + col1 AS col2 FROM tab0 AS cor0
----
-5
0
6
query I rowsort
SELECT DISTINCT - 42 FROM tab2
----
-42
query I rowsort
SELECT + col0 + cor0.col2 * col2 FROM tab1 AS cor0
----
2919
3313
9296
query I rowsort
SELECT + 83 + + col0 FROM tab2
----
161
162
90
query I rowsort
SELECT ALL + 50 * col1 + + col2 FROM tab1
----
1354
557
746
query I rowsort
SELECT - 83 * - col2 FROM tab1
----
4482
4731
7968
query I rowsort
SELECT 98 AS col2 FROM tab2, tab0 AS cor0, tab2 cor1
----
27 values hashing to c758e8afbdfa6aae279045b0e9cbacc2
query I rowsort
SELECT - 54 FROM tab2, tab2 cor0, tab0 AS cor1
----
27 values hashing to 71e27a12767d3a987ce05e4d6edad211
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col1 ) col0 FROM tab2 cor0
----
17
31
59
query I rowsort
SELECT col1 * ( - tab0.col1 * - col0 ) + col1 FROM tab0
----
177590
329412
737100
query I rowsort
SELECT ALL cor1.col0 + + 52 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to e0ab7687b39d863630f7de8e1435afbb
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 AS cor0, tab2 cor1, tab2 cor2
----
972 values hashing to f9adf26f20dc8fcc43c2de18a5fd4859
query I rowsort
SELECT - 99 + col2 * + col0 AS col2 FROM tab0 AS cor0
----
-64
693
7199
query I rowsort
SELECT ALL 71 AS col2 FROM tab1
----
71
71
71
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0, tab1 AS cor0, tab0 AS cor1
----
972 values hashing to 95920403df268a272c4e933cd0bbe0be
query I rowsort
SELECT col2 - + col0 FROM tab2
----
-41
-52
20
query I rowsort
SELECT + + 69 + + col2 * col0 FROM tab0 AS cor0
----
104
7367
861
query I rowsort
SELECT DISTINCT - 48 * + cor1.col1 AS col2 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
-1248
-480
-624
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4016
SELECT col2 * ( tab2.col1 + - col0 * - CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4016
SELECT col2 * ( tab2.col1 + - col0 * - CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT - col2 * 59 FROM tab0
----
-1947
-4838
-59
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4018
SELECT - col1 * + CAST( - col0 AS SIGNED ) AS col1 FROM tab2
----
1343
217
4602
skipif mysql # not compatible
query I rowsort label-4018
SELECT - col1 * + CAST ( - col0 AS INTEGER ) AS col1 FROM tab2
----
1343
217
4602
query I rowsort
SELECT - 40 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to f02f17e9bc17e514af018c6f245ed7a9
query I rowsort
SELECT ALL - - 41 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e
query I rowsort
SELECT col0 * - 97 FROM tab0 AS cor0
----
-2328
-3395
-8633
query I rowsort
SELECT col0 * + col0 + + col0 FROM tab0 cor0
----
1260
600
8010
query I rowsort
SELECT 59 + col1 FROM tab1 AS cor0
----
69
72
85
query I rowsort
SELECT + 25 * cor0.col1 AS col0 FROM tab0 AS cor0
----
2150
2275
2425
onlyif mysql # use DIV operator for integer division
query I rowsort label-4025
SELECT - col2 DIV col0 AS col0 FROM tab2 AS cor0
----
-3
0
0
skipif mysql # not compatible
query I rowsort label-4025
SELECT - col2 / col0 AS col0 FROM tab2 AS cor0
----
-3
0
0
query I rowsort
SELECT col2 * - ( + col1 ) + - col0 FROM tab1 AS cor0
----
-1328
-1407
-634
query I rowsort
SELECT DISTINCT 1 * - 6 FROM tab0 AS cor0
----
-6
query I rowsort
SELECT ALL - + col1 + 8 * + cor0.col0 FROM tab1 AS cor0
----
-2
502
627
onlyif mysql # use DIV operator for integer division
query I rowsort label-4029
SELECT 39 DIV - cor0.col2 FROM tab0 AS cor0
----
-1
-39
0
skipif mysql # not compatible
query I rowsort label-4029
SELECT 39 / - cor0.col2 FROM tab0 AS cor0
----
-1
-39
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-4030
SELECT ALL - + 32 * col1 DIV col2 AS col0 FROM tab0 AS cor0
----
-3104
-35
-83
skipif mysql # not compatible
query I rowsort label-4030
SELECT ALL - + 32 * col1 / col2 AS col0 FROM tab0 AS cor0
----
-3104
-35
-83
query I rowsort
SELECT + col0 + tab2.col0 * + col1 + tab2.col0 FROM tab2
----
1501
231
4758
onlyif mysql # use DIV operator for integer division
query I rowsort label-4032
SELECT + ( + ( - col2 ) ) * + col0 * + 85 + col2 DIV 33 FROM tab1 AS cor0
----
-13769
-310079
-652798
skipif mysql # not compatible
query I rowsort label-4032
SELECT + ( + ( - col2 ) ) * + col0 * + 85 + col2 / 33 FROM tab1 AS cor0
----
-13769
-310079
-652798
query I rowsort
SELECT DISTINCT - - ( 50 ) + - col2 FROM tab2 AS cor0
----
12
23
24
onlyif mysql # use DIV operator for integer division
query I rowsort label-4034
SELECT ALL + + cor0.col1 + - col1 * - col0 DIV ( + col0 ) AS col1 FROM tab2 AS cor0
----
118
34
62
skipif mysql # not compatible
query I rowsort label-4034
SELECT ALL + + cor0.col1 + - col1 * - col0 / ( + col0 ) AS col1 FROM tab2 AS cor0
----
118
34
62
query I rowsort
SELECT ALL - col0 + col1 * col1 * - 41 AS col0 FROM tab1 cor0
----
-27719
-4164
-7009
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-4037
SELECT + - cor0.col2 DIV - cor0.col2 + col0 AS col0 FROM tab1 AS cor0
----
4
65
81
skipif mysql # not compatible
query I rowsort label-4037
SELECT + - cor0.col2 / - cor0.col2 + col0 AS col0 FROM tab1 AS cor0
----
4
65
81
query I rowsort
SELECT ALL col2 * col1 * cor0.col2 AS col2 FROM tab2 AS cor0
----
22599
24548
39884
query I rowsort
SELECT DISTINCT - 65 + 15 AS col1 FROM tab2 AS cor0
----
-50
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4040
SELECT DISTINCT - CAST( 6 AS SIGNED ) * - col0 + + ( + 64 ) FROM tab1 AS cor0
----
448
544
82
skipif mysql # not compatible
query I rowsort label-4040
SELECT DISTINCT - CAST ( 6 AS INTEGER ) * - col0 + + ( + 64 ) FROM tab1 AS cor0
----
448
544
82
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4041
SELECT CAST( + ( + col1 ) AS SIGNED ) + 79 FROM tab2 cor0
----
110
138
96
skipif mysql # not compatible
query I rowsort label-4041
SELECT CAST ( + ( + col1 ) AS INTEGER ) + 79 FROM tab2 cor0
----
110
138
96
query I rowsort
SELECT col0 * + cor0.col1 AS col0 FROM tab0 cor0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT 58 * + cor0.col1 AS col2 FROM tab2 AS cor0
----
1798
3422
986
query I rowsort
SELECT - col0 * col1 * ( col2 ) AS col1 FROM tab2 AS cor0
----
-119652
-51034
-5859
query I rowsort
SELECT DISTINCT - cor0.col0 + - col2 * col1 AS col1 FROM tab0 AS cor0
----
-132
-2862
-7551
query I rowsort
SELECT ALL ( col2 ) + cor0.col0 * - ( - col2 ) FROM tab2 AS cor0
----
2054
216
3040
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 57 + - col1 col0 FROM tab2 AS cor0
----
-116
-74
-88
query I rowsort
SELECT ALL col1 * - cor0.col2 AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT + + col0 + + col1 * - col2 FROM tab2 AS cor0
----
-1456
-567
-830
query I rowsort
SELECT ALL - 66 + col2 FROM tab0 AS cor0
----
-33
-65
16
query I rowsort
SELECT ALL + col1 + col0 * + col1 FROM tab0
----
2150
3492
8190
onlyif mysql # use DIV operator for integer division
query I rowsort label-4052
SELECT DISTINCT col2 * 28 DIV col2 + col2 AS col2 FROM tab0
----
110
29
61
skipif mysql # not compatible
query I rowsort label-4052
SELECT DISTINCT col2 * 28 / col2 + col2 AS col2 FROM tab0
----
110
29
61
query I rowsort
SELECT DISTINCT 20 FROM tab1, tab2 AS cor0
----
20
query I rowsort
SELECT + ( 56 ) FROM tab0
----
56
56
56
query I rowsort
SELECT - col2 + - col2 - tab2.col2 FROM tab2
----
-114
-78
-81
query I rowsort
SELECT ALL - col1 + ( - cor0.col1 ) AS col2 FROM tab1 AS cor0
----
-20
-26
-52
onlyif mysql # use DIV operator for integer division
query I rowsort label-4057
SELECT DISTINCT - col1 + - col0 * col0 DIV - col0 FROM tab1 cor0
----
-23
54
67
skipif mysql # not compatible
query I rowsort label-4057
SELECT DISTINCT - col1 + - col0 * col0 / - col0 FROM tab1 cor0
----
-23
54
67
query I rowsort
SELECT DISTINCT + col2 - - cor0.col2 FROM tab1 AS cor0
----
108
114
192
query I rowsort
SELECT - col1 + - col1 AS col0 FROM tab0 cor0
----
-172
-182
-194
query I rowsort
SELECT - col0 * col0 * 99 FROM tab0 AS cor0
----
-121275
-57024
-784179
query I rowsort
SELECT - - col1 * col2 * - col2 FROM tab1 AS cor0
----
-119808
-32490
-75816
query I rowsort
SELECT + + col0 + + 73 FROM tab1 AS cor0
----
137
153
76
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - col1 col0 FROM tab0 AS cor0
----
-7396
-8281
-9409
query I rowsort
SELECT ALL - col1 + ( - col1 ) * - col2 AS col2 FROM tab2 AS cor0
----
1475
629
806
onlyif mysql # use DIV operator for integer division
query I rowsort label-4065
SELECT ALL - cor0.col1 DIV + col0 + 59 FROM tab1 AS cor0
----
51
59
59
skipif mysql # not compatible
query I rowsort label-4065
SELECT ALL - cor0.col1 / + col0 + 59 FROM tab1 AS cor0
----
51
59
59
query I rowsort
SELECT DISTINCT - 56 * + col2 FROM tab1
----
-3024
-3192
-5376
query I rowsort
SELECT col2 * - col2 + ( 11 ) FROM tab0
----
-1078
-6713
10
query I rowsort
SELECT DISTINCT col0 - - 74 AS col1 FROM tab2 AS cor0
----
152
153
81
query I rowsort
SELECT DISTINCT col2 * 29 FROM tab0
----
2378
29
957
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4070
SELECT + col1 * CAST( col0 AS SIGNED ) FROM tab2 cor0
----
1343
217
4602
skipif mysql # not compatible
query I rowsort label-4070
SELECT + col1 * CAST ( col0 AS INTEGER ) FROM tab2 cor0
----
1343
217
4602
query I rowsort
SELECT col0 * ( - 95 * col1 ) FROM tab1 AS cor0
----
-60800
-7410
-98800
query I rowsort
SELECT - - col2 * + col0 AS col1 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
----
121
176
57
query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <= tab2.col0
----
query I rowsort
SELECT + col1 - col2 AS col0 FROM tab2
----
-21
33
4
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + col1 + col1 col0 FROM tab0 AS cor0
----
2150
3492
8190
query I rowsort
SELECT ALL - col0 * col0 + + col1 AS col2 FROM tab0 AS cor0
----
-1128
-490
-7830
query I rowsort
SELECT - cor0.col2 FROM tab2, tab0 cor0
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e
query I rowsort
SELECT - col1 * + col2 + col2 AS col1 FROM tab1 AS cor0
----
-1152
-1350
-513
onlyif mysql # use DIV operator for integer division
query I rowsort label-4080
SELECT DISTINCT col1 DIV col2 + col0 DIV - col0 FROM tab1
----
-1
skipif mysql # not compatible
query I rowsort label-4080
SELECT DISTINCT col1 / col2 + col0 / - col0 FROM tab1
----
-1
query I rowsort
SELECT DISTINCT + col2 FROM tab0 WHERE NULL <= NULL
----
query I rowsort
SELECT col0 + + tab2.col2 FROM tab2
----
104
117
34
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + col2 * col0 col0 FROM tab0
----
36
7380
825
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) NOT IN ( col1 )
----
query I rowsort
SELECT tab1.col1 AS col0 FROM tab1 WHERE col1 IN ( tab1.col1 )
----
10
13
26
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col0 IN ( col2 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45
query I rowsort
SELECT DISTINCT - col0 * col1 + + col2 * - col1 FROM tab1
----
-1210
-1482
-2288
query I rowsort
SELECT ALL + col0 + + tab1.col1 FROM tab1
----
29
74
93
query III rowsort
SELECT * FROM tab0 WHERE NOT col1 / - col0 IN ( tab0.col0 * col1 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
query I rowsort
SELECT col2 + - col2 * + col1 + col1 AS col1 FROM tab2
----
-1449
-591
-779
query I rowsort
SELECT DISTINCT + col0 * + col0 + + col1 * + col0 FROM tab1
----
4736
7440
87
query I rowsort
SELECT DISTINCT col2 + - col0 AS col1 FROM tab1
----
-7
16
51
query I rowsort
SELECT ALL + - col0 + + col2 * cor0.col2 * + cor0.col1 AS col2 FROM tab2 cor0
----
22592
24469
39806
query I rowsort
SELECT DISTINCT col1 * col1 + + col2 * col2 FROM tab2 AS cor0
----
1690
1733
4157
onlyif mysql # use DIV operator for integer division
query I rowsort label-4095
SELECT ALL - col0 DIV col2 + col2 AS col1 FROM tab1
----
54
56
96
skipif mysql # not compatible
query I rowsort label-4095
SELECT ALL - col0 / col2 + col2 AS col1 FROM tab1
----
54
56
96
query I rowsort
SELECT DISTINCT + col2 + + col0 * + col0 AS col2 FROM tab2
----
6110
6279
76
query I rowsort
SELECT + col2 * - tab0.col1 * col1 AS col0 FROM tab0
----
-244068
-679042
-9409
query I rowsort
SELECT ALL - col0 * + col0 + - col0 * col2 FROM tab2
----
-238
-8112
-9243
query I rowsort
SELECT DISTINCT col0 FROM tab2 WHERE NOT ( NULL ) BETWEEN + col1 * col1 AND NULL
----
query I rowsort
SELECT - col0 * col0 + + col1 AS col0 FROM tab0 AS cor0
----
-1128
-490
-7830
query I rowsort
SELECT ALL - - col2 * col0 + col1 FROM tab2 AS cor0
----
2087
220
3019
query I rowsort
SELECT DISTINCT - - col1 * - col1 - - cor0.col0 AS col2 FROM tab2 AS cor0
----
-210
-3403
-954
query I rowsort
SELECT ALL + - cor0.col0 + col1 - - col2 * + col2 FROM tab1 AS cor0
----
2939
3195
9149
query I rowsort
SELECT - - col0 + col0 * cor0.col1 FROM tab2 AS cor0
----
1422
224
4680
query I rowsort
SELECT - - cor0.col2 * - cor0.col1 AS col2 FROM tab1 cor0
----
-1248
-1404
-570
query I rowsort
SELECT col0 FROM tab2 WHERE NULL NOT IN ( - tab2.col0 )
----
query I rowsort
SELECT col0 FROM tab1 WHERE NULL > NULL
----
query I rowsort
SELECT DISTINCT col2 + col2 * col2 AS col0 FROM tab0 AS cor0
----
1122
2
6806
query I rowsort
SELECT DISTINCT + col0 - - cor0.col0 * - cor0.col0 FROM tab1 AS cor0
----
-4032
-6
-6320
query I rowsort
SELECT - cor0.col0 * + cor0.col0 + - cor0.col1 * col2 * + cor0.col1 AS col1 FROM tab2 AS cor0
----
-17223
-25996
-96590
query I rowsort
SELECT + col0 * col1 + col1 AS col1 FROM tab0
----
2150
3492
8190
query I rowsort
SELECT - col1 + - col1 + + 44 FROM tab1
----
-8
18
24
onlyif mysql # use DIV operator for integer division
query I rowsort label-4113
SELECT - - col2 DIV + ( + 29 ) AS col1 FROM tab1 AS cor0
----
1
1
3
skipif mysql # not compatible
query I rowsort label-4113
SELECT - - col2 / + ( + 29 ) AS col1 FROM tab1 AS cor0
----
1
1
3
query I rowsort
SELECT DISTINCT - cor1.col0 - - 26 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
-63
-9
2
query I rowsort
SELECT DISTINCT - 78 * col2 AS col2 FROM tab0
----
-2574
-6396
-78
query I rowsort
SELECT - 4 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5784540a5af6ca2be84399d314acd2fd
query I rowsort
SELECT + col1 + - 68 * col2 AS col1 FROM tab2 cor0
----
-1709
-1805
-2567
query I rowsort
SELECT DISTINCT 49 FROM tab0, tab2 AS cor0
----
49
query I rowsort
SELECT DISTINCT - 58 FROM tab2, tab0 AS cor0
----
-58
onlyif mysql # use DIV operator for integer division
query I rowsort label-4120
SELECT + col1 + + 22 * 34 DIV col0 FROM tab1 cor0
----
21
22
275
skipif mysql # not compatible
query I rowsort label-4120
SELECT + col1 + + 22 * 34 / col0 FROM tab1 cor0
----
21
22
275
query I rowsort
SELECT col2 + ( 99 ) AS col2 FROM tab0 AS cor0
----
100
132
181
query I rowsort
SELECT + col2 + - col1 AS col1 FROM tab1 cor0
----
28
47
83
query I rowsort
SELECT - col1 * + 91 * ( col0 ) AS col1 FROM tab0 AS cor0
----
-187824
-308945
-737009
query I rowsort
SELECT col0 + tab0.col2 * col1 * col0 AS col1 FROM tab0
----
3430
664207
68136
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col1 NOT BETWEEN NULL AND NULL
----
query I rowsort
SELECT ALL - col1 + + col0 * + tab1.col0 AS col0 FROM tab1
----
-17
4086
6387
query I rowsort
SELECT col0 * col2 + - col1 * col1 FROM tab2
----
-1453
-772
2713
query I rowsort
SELECT col1 * col0 + + col2 + col0 FROM tab2
----
1460
251
4706
query III rowsort
SELECT * FROM tab0 WHERE NULL NOT IN ( col0 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab2.col1 * tab2.col2 + + col1 col2 FROM tab2
----
-1475
-629
-806
query I rowsort
SELECT tab2.col1 + + col2 * + col2 AS col2 FROM tab2
----
1461
735
760
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col1 * col1 * - col2 BETWEEN NULL AND col2
----
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4133
SELECT + + CAST( NULL AS SIGNED ) AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-4133
SELECT + + CAST ( NULL AS INTEGER ) AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT + + 87 + col1 * ( + col2 ) AS col0 FROM tab2 AS cor0
----
1621
733
924
query I rowsort
SELECT 21 * cor0.col1 + 33 AS col1 FROM tab2 AS cor0
----
1272
390
684
query I rowsort
SELECT DISTINCT - tab1.col1 * tab1.col1 FROM tab1
----
-100
-169
-676
query III rowsort
SELECT ALL * FROM tab0 WHERE ( col1 + - col1 * + col2 ) BETWEEN - col1 * col1 AND NULL
----
query I rowsort
SELECT - col2 * - tab0.col0 * - tab0.col2 FROM tab0
----
-26136
-35
-598436
query I rowsort
SELECT DISTINCT tab0.col2 * - col2 * - col1 FROM tab0
----
611884
93654
97
query I rowsort
SELECT ALL - col1 * tab1.col0 + - col0 AS col2 FROM tab1
----
-1120
-704
-81
query I rowsort
SELECT 46 + + col0 AS col1 FROM tab1 AS cor0
----
110
126
49
query I rowsort
SELECT ALL + + col1 + cor0.col2 FROM tab0 AS cor0
----
119
173
98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 col2 FROM tab2 cor0
----
26
27
38
query I rowsort
SELECT DISTINCT - - col0 * - cor0.col0 + - 23 AS col0 FROM tab0 AS cor0
----
-1248
-599
-7944
query I rowsort
SELECT ALL - col1 * 22 AS col2 FROM tab1 AS cor0
----
-220
-286
-572
query I rowsort
SELECT ALL col0 + + 76 * col1 FROM tab2 AS cor0
----
1371
2363
4562
query I rowsort
SELECT - + col1 + - col0 AS col0 FROM tab2 AS cor0
----
-137
-38
-96
query I rowsort
SELECT - cor0.col0 * - col1 + + col2 * col1 FROM tab0 cor0
----
15561
3492
4902
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab0.col0 col2 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8
query I rowsort
SELECT + 54 * col1 * ( col2 ) FROM tab0
----
153252
402948
5238
query I rowsort
SELECT + col2 + - ( + col2 ) AS col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - - col2 + - col0 * - 58 FROM tab0 cor0
----
1425
2031
5244
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + ( - col1 + col1 ) * col2 col0 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT DISTINCT - - col2 * 7 + col2 AS col2 FROM tab2 AS cor0
----
208
216
304
query I rowsort
SELECT DISTINCT + + col2 - + col2 FROM tab2 cor0
----
0
query I rowsort
SELECT - col1 * + col2 + col2 * col2 FROM tab1 AS cor0
----
1512
2679
7968
query I rowsort
SELECT ALL col1 + - cor0.col1 * + col0 AS col1 FROM tab1 AS cor0
----
-1027
-52
-630
query I rowsort
SELECT - 27 + - cor0.col1 AS col1 FROM tab0 cor0
----
-113
-118
-124
query I rowsort
SELECT DISTINCT + + col0 + col0 + - col0 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT ALL - - 89 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743
query I rowsort
SELECT DISTINCT + col2 + + col2 FROM tab0
----
164
2
66
query I rowsort
SELECT col2 + - ( - tab2.col2 ) AS col2 FROM tab2
----
52
54
76
query I rowsort
SELECT + col1 * 45 - 39 * col2 AS col1 FROM tab2
----
-717
1641
342
query I rowsort
SELECT DISTINCT col2 * 97 + - col2 AS col1 FROM tab1
----
5184
5472
9216
query I rowsort
SELECT DISTINCT + ( col2 ) * col2 + col0 FROM tab0 AS cor0
----
1113
36
6813
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0 cor0, tab0 AS cor1, tab0, tab0 AS cor2
----
3645 values hashing to 04ab51615fd2c7e492de6a59e98226e1
query I rowsort
SELECT ALL + 35 + + col2 AS col1 FROM tab0 AS cor0
----
117
36
68
onlyif mysql # use DIV operator for integer division
query I rowsort label-4168
SELECT ALL ( col2 ) DIV col0 AS col0 FROM tab2
----
0
0
3
skipif mysql # not compatible
query I rowsort label-4168
SELECT ALL ( col2 ) / col0 AS col0 FROM tab2
----
0
0
3
query I rowsort
SELECT - cor0.col0 AS col0 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to c82df1de3cb666224690a83f3d790d79
query I rowsort
SELECT ( col0 ) * - col0 * + col1 + + tab0.col2 FROM tab0
----
-118824
-49503
-720729
query I rowsort
SELECT 49 * - col2 AS col2 FROM tab2
----
-1274
-1323
-1862
query I rowsort
SELECT 54 AS col2 FROM tab0
----
54
54
54
query I rowsort
SELECT + ( - col0 ) * - col1 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT - col2 * + col2 - 15 AS col0 FROM tab0 AS cor0
----
-1104
-16
-6739
query I rowsort
SELECT ALL - cor0.col1 + + cor0.col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT - 68 AS col0 FROM tab1 cor0
----
-68
-68
-68
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-4178
SELECT DISTINCT - col1 DIV - col2 AS col0 FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-4178
SELECT DISTINCT - col1 / - col2 AS col0 FROM tab1 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 69 col2 FROM tab1 AS cor0
----
69
69
69
query I rowsort
SELECT col2 * + col0 + + col0 AS col0 FROM tab2 cor0
----
196
2106
3081
query I rowsort
SELECT ALL + + cor0.col2 + cor0.col2 * col2 FROM tab1 AS cor0
----
2970
3306
9312
query I rowsort
SELECT DISTINCT + + col0 + - col1 + col1 AS col1 FROM tab1 cor0
----
3
64
80
query I rowsort
SELECT DISTINCT - cor0.col0 * col2 AS col0 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT ALL + tab2.col0 + col1 AS col1 FROM tab2
----
137
38
96
query I rowsort
SELECT DISTINCT col1 + tab0.col1 AS col2 FROM tab0
----
172
182
194
query I rowsort
SELECT col0 * col1 + col1 AS col2 FROM tab2
----
1360
248
4661
query I rowsort
SELECT - col0 + + col1 * col1 * + col0 + + col2 FROM tab1 AS cor0
----
13536
2079
6393
onlyif mysql # use DIV operator for integer division
query I rowsort label-4188
SELECT ALL + + col0 DIV + col2 col2 FROM tab0 cor0
----
0
1
35
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4188
SELECT ALL + + col0 / + col2 col2 FROM tab0 cor0
----
0
1
35
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 col0 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT DISTINCT + + col2 * col1 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT - col2 * + col2 * col1 + - col2 + col2 FROM tab1 AS cor0
----
-119808
-32490
-75816
query I rowsort
SELECT DISTINCT ( - col0 ) * col0 FROM tab2
----
-49
-6084
-6241
query I rowsort
SELECT ( + col0 * - col2 ) AS col2 FROM tab1
----
-162
-3648
-7680
query I rowsort
SELECT + 57 + + 5 * + col1 AS col2 FROM tab0
----
487
512
542
onlyif mysql # use DIV operator for integer division
query I rowsort label-4195
SELECT col0 + 35 DIV + col1 AS col0 FROM tab1
----
4
67
82
skipif mysql # not compatible
query I rowsort label-4195
SELECT col0 + 35 / + col1 AS col0 FROM tab1
----
4
67
82
query I rowsort
SELECT DISTINCT 37 FROM tab0, tab0 AS cor0
----
37
query I rowsort
SELECT + 9 FROM tab2, tab1 AS cor0
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b
query I rowsort
SELECT ALL - 69 FROM tab2, tab2 AS cor0
----
9 values hashing to 3bd7460efa48c66c072ad5f3c2def7e9
onlyif mysql # use DIV operator for integer division
query I rowsort label-4199
SELECT DISTINCT - + col1 DIV col0 + cor0.col1 AS col0 FROM tab2 AS cor0
----
17
27
59
skipif mysql # not compatible
query I rowsort label-4199
SELECT DISTINCT - + col1 / col0 + cor0.col1 AS col0 FROM tab2 AS cor0
----
17
27
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-4200
SELECT ALL + CAST( + 86 AS SIGNED ) + col2 * col2 DIV + col2 + + col0 * col1 AS col2 FROM tab1 AS cor0
----
1222
218
783
skipif mysql # not compatible
query I rowsort label-4200
SELECT ALL + CAST ( + 86 AS INTEGER ) + col2 * col2 / + col2 + + col0 * col1 AS col2 FROM tab1 AS cor0
----
1222
218
783
query I rowsort
SELECT ALL + + 94 * col1 + col2 AS col2 FROM tab0 cor0
----
8117
8636
9119
query I rowsort
SELECT DISTINCT 57 + + ( - col1 ) * cor0.col2 + + cor0.col1 AS col1 FROM tab2 AS cor0
----
-1418
-572
-749
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + 95 + col0 col1 FROM tab1 AS cor0
----
95
95
95
query I rowsort
SELECT ALL - - 22 + col1 FROM tab1 AS cor0
----
32
35
48
query I rowsort
SELECT + - cor0.col2 * 58 + + cor0.col2 * col2 FROM tab0 AS cor0
----
-57
-825
1968
query I rowsort
SELECT DISTINCT + 1 FROM tab1, tab0 AS cor0
----
1
query I rowsort
SELECT ALL ( - col1 ) + col1 AS col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT - + cor0.col1 * col0 * col2 AS col0 FROM tab1 cor0
----
-36480
-4212
-99840
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 11 col2 FROM tab1 AS cor0
----
11
11
11
query I rowsort
SELECT DISTINCT - ( col2 ) * col0 FROM tab1 AS cor0
----
-162
-3648
-7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-4211
SELECT + col0 DIV - col2 AS col0 FROM tab1 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-4211
SELECT + col0 / - col2 AS col0 FROM tab1 AS cor0
----
-1
0
0
query I rowsort
SELECT ALL + 0 + col0 FROM tab2 AS cor0
----
7
78
79
onlyif mysql # use DIV operator for integer division
query I rowsort label-4213
SELECT DISTINCT + 1 DIV col1 AS col2 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-4213
SELECT DISTINCT + 1 / col1 AS col2 FROM tab0 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * cor0.col2 + + col1 * - col0 * + cor0.col1 col0 FROM tab1 AS cor0
----
-1866
-2752
-5840
query I rowsort
SELECT DISTINCT + 4 + - col0 AS col2 FROM tab1 AS cor0
----
-60
-76
1
query I rowsort
SELECT DISTINCT - col2 * col2 + col2 AS col0 FROM tab0 AS cor0
----
-1056
-6642
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-4217
SELECT + ( col1 ) DIV tab1.col1 + col0 AS col1 FROM tab1
----
4
65
81
skipif mysql # not compatible
query I rowsort label-4217
SELECT + ( col1 ) / tab1.col1 + col0 AS col1 FROM tab1
----
4
65
81
query I rowsort
SELECT - + col0 * col0 * - col1 FROM tab0 AS cor0
----
118825
49536
720811
onlyif mysql # use DIV operator for integer division
query I rowsort label-4219
SELECT col0 DIV + cor0.col0 AS col2 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-4219
SELECT col0 / + cor0.col0 AS col2 FROM tab0 AS cor0
----
1
1
1
query I rowsort
SELECT ALL 93 * - col0 FROM tab1
----
-279
-5952
-7440
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4221
SELECT + CAST( NULL AS SIGNED ) * + tab0.col1 col1 FROM tab0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4221
SELECT + CAST ( NULL AS INTEGER ) * + tab0.col1 col1 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT 88 * + tab2.col1 FROM tab2
----
1496
2728
5192
query I rowsort
SELECT DISTINCT - 20 AS col0 FROM tab1, tab0 AS cor0
----
-20
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 96 col2 FROM tab1
----
96
96
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 77 col0 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to d7b027bca5d37c67e29013904def8125
onlyif mysql # use DIV operator for integer division
query I rowsort label-4226
SELECT ALL - + ( + col0 ) DIV col1 + - CAST( - col1 AS SIGNED ) * - col1 AS col0 FROM tab0 AS cor0
----
-7396
-8281
-9409
skipif mysql # not compatible
query I rowsort label-4226
SELECT ALL - + ( + col0 ) / col1 + - CAST ( - col1 AS INTEGER ) * - col1 AS col0 FROM tab0 AS cor0
----
-7396
-8281
-9409
query I rowsort
SELECT ALL - + col2 * + col0 + cor0.col1 AS col0 FROM tab2 AS cor0
----
-158
-1969
-2985
query I rowsort
SELECT + + cor0.col1 + col1 + col2 AS col2 FROM tab2 cor0
----
144
72
89
skipif mysql # not compatible
query I rowsort
SELECT ALL + CAST ( col1 AS REAL ) FROM tab0 AS cor0
----
86
91
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 * + 3 + col0 col0 FROM tab0 AS cor0
----
282
326
362
query I rowsort
SELECT ALL + 69 * + col0 AS col1 FROM tab2 AS cor0
----
483
5382
5451
query I rowsort
SELECT DISTINCT + ( 90 ) + col0 * 99 AS col0 FROM tab1 AS cor0
----
387
6426
8010
query I rowsort
SELECT DISTINCT - + 56 * col1 + - col1 AS col0 FROM tab0 AS cor0
----
-4902
-5187
-5529
query I rowsort
SELECT 23 FROM tab2 cor0
----
23
23
23
onlyif mysql # use DIV operator for integer division
query I rowsort label-4235
SELECT DISTINCT + 70 DIV + 59 FROM tab0 cor0
----
1
skipif mysql # not compatible
query I rowsort label-4235
SELECT DISTINCT + 70 / + 59 FROM tab0 cor0
----
1
query I rowsort
SELECT DISTINCT - col0 + + col0 AS col2 FROM tab1 AS cor0
----
0
query I rowsort
SELECT col0 * + col2 + cor0.col0 FROM tab1 AS cor0
----
165
3712
7760
query I rowsort
SELECT - col0 + cor0.col0 AS col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT col2 * - col1 * ( + col1 ) + - cor0.col1 + cor0.col2 AS col1 FROM tab1 AS cor0
----
-16141
-36476
-5653
query I rowsort
SELECT - - ( - col1 ) + col1 AS col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - 46 FROM tab0 cor0
----
-46
-46
-46
onlyif mysql # use DIV operator for integer division
query I rowsort label-4242
SELECT ALL - - col0 DIV - col0 AS col0 FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-4242
SELECT ALL - - col0 / - col0 AS col0 FROM tab0 AS cor0
----
-1
-1
-1
query I rowsort
SELECT - 12 AS col0 FROM tab1 AS cor0
----
-12
-12
-12
query I rowsort
SELECT ALL 24 AS col2 FROM tab1
----
24
24
24
query I rowsort
SELECT col2 + - 90 AS col2 FROM tab2
----
-52
-63
-64
query I rowsort
SELECT DISTINCT - ( + col2 + - col1 ) FROM tab2
----
-21
33
4
query I rowsort
SELECT + cor0.col2 * + ( col2 ) - + col1 * + col2 FROM tab1 AS cor0
----
1512
2679
7968
query I rowsort
SELECT DISTINCT - col1 + - 91 * - col1 AS col1 FROM tab0 AS cor0
----
7740
8190
8730
query I rowsort
SELECT cor0.col2 - col2 AS col1 FROM tab2 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 + 19 * col1 col1 FROM tab1 AS cor0
----
254
327
497
query I rowsort
SELECT DISTINCT + + cor0.col1 + - 64 FROM tab0 AS cor0
----
22
27
33
query I rowsort
SELECT DISTINCT col1 + - 70 * col0 FROM tab2 AS cor0
----
-459
-5401
-5513
query I rowsort
SELECT - col1 - + col2 * + cor0.col0 FROM tab0 AS cor0
----
-132
-7389
-878
query I rowsort
SELECT DISTINCT col2 + + col2 AS col1 FROM tab2 AS cor0
----
52
54
76
query I rowsort
SELECT DISTINCT - col2 + cor0.col1 * col2 FROM tab2 AS cor0
----
1508
608
810
query I rowsort
SELECT - + col0 + + col0 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + + col1 * + ( col2 ) - - col0 * col1 FROM tab0 AS cor0
----
15561
3492
4902
query I rowsort
SELECT ALL - + col2 * ( + col0 ) + - col1 FROM tab0 AS cor0
----
-132
-7389
-878
query I rowsort
SELECT - col1 * - 59 AS col1 FROM tab2 AS cor0
----
1003
1829
3481
query I rowsort
SELECT col2 + ( col1 ) FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT + 34 - tab1.col0 * ( col0 ) AS col0 FROM tab1
----
-4062
-6366
25
query I rowsort
SELECT - col2 + - 92 FROM tab0 AS cor0
----
-125
-174
-93
query I rowsort
SELECT + + col0 * col2 - col0 AS col1 FROM tab1 AS cor0
----
159
3584
7600
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4264
SELECT DISTINCT - + cor0.col2 + - ( col2 + - col2 ) * CAST( + col0 AS SIGNED ) FROM tab2 AS cor0
----
-26
-27
-38
skipif mysql # not compatible
query I rowsort label-4264
SELECT DISTINCT - + cor0.col2 + - ( col2 + - col2 ) * CAST ( + col0 AS INTEGER ) FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT + - col1 * col0 + + col1 AS col1 FROM tab2 AS cor0
----
-1326
-186
-4543
query I rowsort
SELECT - - col0 + col0 * - col1 FROM tab0 AS cor0
----
-2040
-3360
-8010
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 cor0, tab0 AS cor1, tab0, tab0 AS cor2
----
3645 values hashing to e7ea8a30caeb35409d15d2ce0abbd5a6
query I rowsort
SELECT + - ( - col2 ) + col2 FROM tab0 AS cor0
----
164
2
66
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4269
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col1 FROM tab1, tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4269
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1 FROM tab1, tab2 AS cor0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4270
SELECT + col2 + CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4270
SELECT + col2 + CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT + 37 * 64 + + col0 FROM tab1 AS cor0
----
2371
2432
2448
query I rowsort
SELECT - col1 - - 12 AS col0 FROM tab1 AS cor0
----
-1
-14
2
query I rowsort
SELECT + col1 * + col2 * col0 FROM tab1 cor0
----
36480
4212
99840
query I rowsort
SELECT 89 - col2 AS col2 FROM tab2 AS cor0
----
51
62
63
query I rowsort
SELECT 60 * col0 + + cor0.col2 AS col1 FROM tab2 AS cor0
----
447
4706
4778
query I rowsort
SELECT ALL 85 AS col1 FROM tab2
----
85
85
85
query I rowsort
SELECT 5 AS col1 FROM tab1, tab2 AS cor0 CROSS JOIN tab2
----
27 values hashing to 6797d40099023779b89feb627d94a3e7
query I rowsort
SELECT - cor0.col0 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0
onlyif mysql # use DIV operator for integer division
query I rowsort label-4279
SELECT + + col0 DIV + 75 AS col2 FROM tab0 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-4279
SELECT + + col0 / + 75 AS col2 FROM tab0 AS cor0
----
0
0
1
query I rowsort
SELECT ALL - + col0 + - col2 AS col0 FROM tab0 AS cor0
----
-171
-36
-57
query I rowsort
SELECT cor0.col0 + + cor0.col2 * - cor0.col1 FROM tab2 cor0
----
-1456
-567
-830
query I rowsort
SELECT ALL + 37 * - col2 * - 34 AS col1 FROM tab2
----
32708
33966
47804
query I rowsort
SELECT DISTINCT col1 * 6 * col0 - + col2 AS col1 FROM tab1 AS cor0
----
3783
414
6144
query I rowsort
SELECT cor0.col1 * col1 * ( + col1 ) FROM tab1 AS cor0
----
1000
17576
2197
query I rowsort
SELECT DISTINCT - + ( 13 ) FROM tab1, tab0, tab1 AS cor0, tab2
----
-13
query I rowsort
SELECT col0 * - 37 * cor0.col1 AS col2 FROM tab1 AS cor0
----
-23680
-2886
-38480
onlyif mysql # use DIV operator for integer division
query I rowsort label-4287
SELECT + - col2 DIV col0 + cor0.col1 - + col0 AS col1 FROM tab2 AS cor0
----
-19
-62
21
skipif mysql # not compatible
query I rowsort label-4287
SELECT + - col2 / col0 + cor0.col1 - + col0 AS col1 FROM tab2 AS cor0
----
-19
-62
21
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4288
SELECT - ( - col2 ) + CAST( col0 AS SIGNED ) - col2 AS col1 FROM tab0 cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-4288
SELECT - ( - col2 ) + CAST ( col0 AS INTEGER ) - col2 AS col1 FROM tab0 cor0
----
24
35
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-4289
SELECT + 23 + + col2 DIV ( - col1 ) + col1 * + ( - col2 ) FROM tab0 AS cor0
----
-2815
-74
-7439
skipif mysql # not compatible
query I rowsort label-4289
SELECT + 23 + + col2 / ( - col1 ) + col1 * + ( - col2 ) FROM tab0 AS cor0
----
-2815
-74
-7439
query I rowsort
SELECT + col0 * - col0 - - ( 34 ) FROM tab2 AS cor0
----
-15
-6050
-6207
query I rowsort
SELECT cor0.col0 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870
query I rowsort
SELECT ALL - + cor0.col2 AS col0 FROM tab0 cor0
----
-1
-33
-82
query I rowsort
SELECT + + 12 * - col2 FROM tab2 AS cor0
----
-312
-324
-456
query I rowsort
SELECT - col2 + - col1 * cor0.col1 AS col0 FROM tab0 AS cor0
----
-7429
-8363
-9410
query I rowsort
SELECT ALL 71 + cor0.col2 AS col2 FROM tab2 AS cor0
----
109
97
98
query I rowsort
SELECT DISTINCT col0 + col2 + + ( + col1 ) FROM tab2 AS cor0
----
134
163
65
query I rowsort
SELECT DISTINCT + - 32 - + col0 AS col2 FROM tab0 AS cor0
----
-121
-56
-67
query I rowsort
SELECT ALL + col0 * + col0 * - 83 FROM tab0 cor0
----
-101675
-47808
-657443
query I rowsort
SELECT + col2 + - col2 * - 73 FROM tab0 AS cor0
----
2442
6068
74
query I rowsort
SELECT DISTINCT + 90 * col2 + - 67 FROM tab2 AS cor0
----
2273
2363
3353
query I rowsort
SELECT - col1 * ( ( col0 ) ) * - col0 + 33 FROM tab2 AS cor0
----
106130
1552
358989
query I rowsort
SELECT cor0.col1 + - col0 AS col1 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT DISTINCT col2 * - 82 FROM tab1 AS cor0
----
-4428
-4674
-7872
query I rowsort
SELECT + + col0 + - 85 FROM tab1 AS cor0
----
-21
-5
-82
query I rowsort
SELECT ALL col2 + - col1 AS col1 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT DISTINCT - - col0 * - col2 + + cor0.col0 AS col2 FROM tab0 AS cor0
----
-7209
-768
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 64 + + 80 col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to a9cc77a5f1bc643a947b8c416f454170
query I rowsort
SELECT DISTINCT + 54 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
54
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 75 + 49 col1 FROM tab1 AS cor0
----
124
124
124
query I rowsort
SELECT DISTINCT cor0.col2 AS col0 FROM tab1, tab0 AS cor0
----
1
33
82
query I rowsort
SELECT ALL + 17 * col0 * - col0 FROM tab2
----
-103428
-106097
-833
query I rowsort
SELECT - 36 * + 49 + - tab1.col2 FROM tab1
----
-1818
-1821
-1860
query I rowsort
SELECT - cor0.col1 AS col0 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84
query I rowsort
SELECT + 79 AS col0 FROM tab1
----
79
79
79
query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab1 AS cor0 CROSS JOIN tab0, tab2 cor1
----
972 values hashing to 9600bdf5bac0caec3229e87170cc40b3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 74 col1 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to dc22979e6d261795bd3ce2990fdbbf82
query I rowsort
SELECT DISTINCT + 39 FROM tab1
----
39
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 71 col2 FROM tab0
----
-71
-71
-71
query I rowsort
SELECT col0 + + col2 * - 30 FROM tab1
----
-1617
-1646
-2800
query I rowsort
SELECT ( col0 ) + col2 FROM tab2
----
104
117
34
query I rowsort
SELECT - + 84 + - col0 AS col2 FROM tab1 AS cor0
----
-148
-164
-87
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + col1 col1 FROM tab2 AS cor0
----
1343
217
4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-4323
SELECT ALL - col1 DIV + col1 - + col1 FROM tab2 AS cor0
----
-18
-32
-60
skipif mysql # not compatible
query I rowsort label-4323
SELECT ALL - col1 / + col1 - + col1 FROM tab2 AS cor0
----
-18
-32
-60
query I rowsort
SELECT ALL + col1 + col2 * 51 - + col1 AS col2 FROM tab0 AS cor0
----
1683
4182
51
query I rowsort
SELECT + ( tab2.col2 ) AS col1 FROM tab2, tab0, tab2 cor0, tab0 AS cor1
----
81 values hashing to c4e6b1f1d28e731664a15a6f7cda4da9
query I rowsort
SELECT ALL + tab0.col0 + - col1 * + col2 AS col1 FROM tab0
----
-2814
-62
-7373
onlyif mysql # use DIV operator for integer division
query I rowsort label-4327
SELECT + + col2 DIV - col1 AS col2 FROM tab1 AS cor0
----
-2
-5
-7
skipif mysql # not compatible
query I rowsort label-4327
SELECT + + col2 / - col1 AS col2 FROM tab1 AS cor0
----
-2
-5
-7
query I rowsort
SELECT ALL - col2 + - 6 FROM tab2
----
-32
-33
-44
query I rowsort
SELECT 74 AS col1 FROM tab2 cor0
----
74
74
74
query I rowsort
SELECT ALL - cor0.col1 + 48 + col1 AS col2 FROM tab1 AS cor0
----
48
48
48
query I rowsort
SELECT DISTINCT + - ( col2 ) - col2 FROM tab1 AS cor0
----
-108
-114
-192
query I rowsort
SELECT DISTINCT + 48 FROM tab0 cor0
----
48
query I rowsort
SELECT ALL + ( + ( col0 ) ) AS col0 FROM tab1 AS cor0
----
3
64
80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4334
SELECT DISTINCT + - CAST( - col2 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
54
57
96
skipif mysql # not compatible
query I rowsort label-4334
SELECT DISTINCT + - CAST ( - col2 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT + 88 * 79 FROM tab2 cor0
----
6952
6952
6952
query I rowsort
SELECT - - cor0.col0 + + col2 AS col0 FROM tab1 cor0
----
121
176
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-4337
SELECT + cor0.col1 * + 11 + - col2 DIV col0 FROM tab1 AS cor0
----
110
142
268
skipif mysql # not compatible
query I rowsort label-4337
SELECT + cor0.col1 * + 11 + - col2 / col0 FROM tab1 AS cor0
----
110
142
268
query I rowsort
SELECT ALL + - cor0.col0 + - 58 FROM tab0 AS cor0
----
-147
-82
-93
query I rowsort
SELECT + 59 * - col2 FROM tab1 cor0
----
-3186
-3363
-5664
query I rowsort
SELECT ALL - 6 * col1 FROM tab1 AS cor0
----
-156
-60
-78
query I rowsort
SELECT DISTINCT - 6 * - col0 AS col2 FROM tab1 AS cor0
----
18
384
480
query I rowsort
SELECT - + col2 + + 13 FROM tab0 AS cor0
----
-20
-69
12
query I rowsort
SELECT - 46 FROM tab1, tab0 AS cor0
----
9 values hashing to 491ad1fb79fec0b5715ea54949d1aa2d
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4344
SELECT CAST( NULL AS DECIMAL ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4344
SELECT CAST ( NULL AS REAL ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - + col2 * col2 FROM tab1 cor0
----
-2916
-3249
-9216
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 * col2 col2 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT ALL + ( 96 ) * - col2 + col0 FROM tab1 AS cor0
----
-5181
-5408
-9136
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4348
SELECT DISTINCT - col1 + + tab1.col2 + CAST( 75 + - col2 AS SIGNED ) FROM tab1
----
49
62
65
skipif mysql # not compatible
query I rowsort label-4348
SELECT DISTINCT - col1 + + tab1.col2 + CAST ( 75 + - col2 AS INTEGER ) FROM tab1
----
49
62
65
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4349
SELECT ALL - - ( + ( cor1.col2 ) ) - CAST( NULL AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-4349
SELECT ALL - - ( + ( cor1.col2 ) ) - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT + + col0 * ( + col0 ) + + col0 AS col2 FROM tab0 AS cor0
----
1260
600
8010
onlyif mysql # use DIV operator for integer division
query I rowsort label-4351
SELECT + tab0.col1 DIV col0 FROM tab0
----
1
2
3
skipif mysql # not compatible
query I rowsort label-4351
SELECT + tab0.col1 / col0 FROM tab0
----
1
2
3
query I rowsort
SELECT DISTINCT - tab0.col1 + tab0.col2 AS col1 FROM tab0, tab1, tab2 AS cor0, tab2
----
-53
-9
-96
query I rowsort
SELECT + col2 * ( col1 ) * col0 AS col1 FROM tab0
----
3395
664118
68112
query I rowsort
SELECT ALL + + col0 * - col1 AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + col1 col1 FROM tab2 AS cor0
----
118
34
62
query I rowsort
SELECT ALL 68 AS col1 FROM tab2, tab1 cor0
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990
query I rowsort
SELECT + cor0.col1 AS col1 FROM tab2, tab2 cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272
query I rowsort
SELECT DISTINCT - col0 + - ( + 92 ) FROM tab2 AS cor0
----
-170
-171
-99
query I rowsort
SELECT ALL col2 + col1 AS col0 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT col0 + - 97 AS col0 FROM tab1
----
-17
-33
-94
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 66 col2 FROM tab0
----
66
66
66
query I rowsort
SELECT - col0 + - 11 AS col1 FROM tab1
----
-14
-75
-91
query I rowsort
SELECT + tab2.col2 * - col2 + col1 AS col1 FROM tab2
----
-1427
-617
-698
onlyif mysql # use DIV operator for integer division
query I rowsort label-4364
SELECT DISTINCT col1 DIV col1 FROM tab0
----
1
skipif mysql # not compatible
query I rowsort label-4364
SELECT DISTINCT col1 / col1 FROM tab0
----
1
query I rowsort
SELECT ALL + col2 * - col2 FROM tab2 cor0
----
-1444
-676
-729
query I rowsort
SELECT ALL - 27 * + col1 + + col1 AS col0 FROM tab0 AS cor0
----
-2236
-2366
-2522
query I rowsort
SELECT ALL 71 AS col1 FROM tab2
----
71
71
71
query I rowsort
SELECT ALL ( tab2.col0 + + col0 ) * - col2 FROM tab2
----
-378
-4056
-6004
query I rowsort
SELECT - cor0.col2 * 3 * - col2 AS col0 FROM tab1 cor0
----
27648
8748
9747
query I rowsort
SELECT - - 12 * - 62 AS col0 FROM tab2 AS cor0
----
-744
-744
-744
query I rowsort
SELECT ALL ( col0 ) AS col1 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT ALL - - 6 - - col1 AS col2 FROM tab0 AS cor0
----
103
92
97
query I rowsort
SELECT DISTINCT - col2 + col0 AS col2 FROM tab0 AS cor0
----
-9
34
7
query I rowsort
SELECT + col2 + col0 * col2 AS col2 FROM tab2 AS cor0
----
2054
216
3040
query I rowsort
SELECT DISTINCT + + 68 FROM tab0 AS cor0
----
68
onlyif mysql # use DIV operator for integer division
query I rowsort label-4376
SELECT ALL - - cor0.col2 DIV col0 FROM tab2 AS cor0
----
0
0
3
skipif mysql # not compatible
query I rowsort label-4376
SELECT ALL - - cor0.col2 / col0 FROM tab2 AS cor0
----
0
0
3
query I rowsort
SELECT - + 59 * col2 FROM tab0 AS cor0
----
-1947
-4838
-59
query I rowsort
SELECT DISTINCT - col1 + - cor0.col2 * + col1 FROM tab2 AS cor0
----
-1593
-663
-868
query I rowsort
SELECT - col2 + col1 * ( + col2 ) FROM tab2 AS cor0
----
1508
608
810
query I rowsort
SELECT + ( - col0 ) * + ( + col2 + col1 ) AS col2 FROM tab1 AS cor0
----
-240
-4288
-8720
onlyif mysql # use DIV operator for integer division
query I rowsort label-4381
SELECT + col1 DIV - col2 AS col0 FROM tab0 AS cor0
----
-1
-2
-97
skipif mysql # not compatible
query I rowsort label-4381
SELECT + col1 / - col2 AS col0 FROM tab0 AS cor0
----
-1
-2
-97
query I rowsort
SELECT + cor0.col0 + col1 * + 62 AS col1 FROM tab2 AS cor0
----
1133
1929
3736
query I rowsort
SELECT DISTINCT + cor0.col2 + 36 * - cor0.col2 FROM tab0, tab1 AS cor0
----
-1890
-1995
-3360
query I rowsort
SELECT + col0 - + col2 AS col2 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT + + col0 + + col2 * ( - col2 ) FROM tab2 AS cor0
----
-1365
-598
-722
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 col0 FROM tab2 cor0
----
26
27
38
query I rowsort
SELECT - + col1 + col1 * col2 FROM tab1 AS cor0
----
1235
1378
560
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4388
SELECT - col2 + + ( ( col1 ) ) * + CAST( NULL AS SIGNED ) + + 92 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4388
SELECT - col2 + + ( ( col1 ) ) * + CAST ( NULL AS INTEGER ) + + 92 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-4389
SELECT ALL - col2 DIV - col0 FROM tab2
----
0
0
3
skipif mysql # not compatible
query I rowsort label-4389
SELECT ALL - col2 / - col0 FROM tab2
----
0
0
3
query I rowsort
SELECT 28 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 8a39580587f2831072e93c319ff94bbf
query I rowsort
SELECT ALL + 74 * + col2 * col1 AS col2 FROM tab0
----
210012
552188
7178
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4392
SELECT - col0 * + CAST( - col1 + col2 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-1659
2574
28
skipif mysql # not compatible
query I rowsort label-4392
SELECT - col0 * + CAST ( - col1 + col2 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-1659
2574
28
skipif mysql # not compatible
query I rowsort
SELECT - - CAST ( - ( + col2 ) AS REAL ) * + 32 FROM tab0 AS cor0
----
-1056
-2624
-32
query I rowsort
SELECT ( + 62 ) AS col2 FROM tab0 AS cor0
----
62
62
62
query I rowsort
SELECT + cor0.col0 * - col1 + + col1 AS col0 FROM tab1 AS cor0
----
-1027
-52
-630
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4396
SELECT - - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4396
SELECT - - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL 79 FROM tab0, tab1 AS cor0
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f
query I rowsort
SELECT DISTINCT - tab1.col1 * - ( - col1 ) AS col0 FROM tab1
----
-100
-169
-676
query I rowsort
SELECT ALL + 81 * col0 AS col1 FROM tab0
----
1944
2835
7209
query I rowsort
SELECT ALL + 24 * - 78 - + col2 * cor0.col2 FROM tab0 AS cor0
----
-1873
-2961
-8596
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 16 col0 FROM tab1, tab0 AS cor0
----
9 values hashing to be22ac76b42c6f7212ecc0ba7c89eb34
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 41 col2 FROM tab1, tab2 AS cor0, tab2, tab0 AS cor1
----
41
query I rowsort
SELECT DISTINCT + 58 AS col2 FROM tab1, tab0 cor0, tab0 AS cor1
----
58
onlyif mysql # use DIV operator for integer division
query I rowsort label-4404
SELECT DISTINCT - col1 * col2 DIV - col0 FROM tab2 AS cor0
----
119
19
8
skipif mysql # not compatible
query I rowsort label-4404
SELECT DISTINCT - col1 * col2 / - col0 FROM tab2 AS cor0
----
119
19
8
query I rowsort
SELECT - 23 * + col0 FROM tab0 AS cor0
----
-2047
-552
-805
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4406
SELECT ALL - CAST( NULL AS SIGNED ) * col0 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4406
SELECT ALL - CAST ( NULL AS INTEGER ) * col0 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + col1 * + ( col2 * col2 ) FROM tab2
----
22599
24548
39884
query I rowsort
SELECT col1 * 98 FROM tab0 AS cor0
----
8428
8918
9506
query I rowsort
SELECT DISTINCT - 86 AS col1 FROM tab1
----
-86
query I rowsort
SELECT ALL - 0 FROM tab0, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
query I rowsort
SELECT ALL - col1 * + col2 * col1 AS col1 FROM tab0
----
-244068
-679042
-9409
query I rowsort
SELECT ALL - 64 * + col0 + + cor0.col0 * 6 - + cor0.col2 FROM tab0 AS cor0
----
-1425
-2031
-5244
query I rowsort
SELECT ALL - 30 AS col2 FROM tab2 cor0
----
-30
-30
-30
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + cor0.col2 ) + col0 col0 FROM tab0 AS cor0
----
-9
34
7
query I rowsort
SELECT + ( col2 ) * - col1 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT + + cor0.col0 * + col2 * cor0.col2 + col0 FROM tab0 AS cor0
----
26160
598525
70
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 47 - + col2 col1 FROM tab2 cor0
----
-73
-74
-85
query I rowsort
SELECT ALL + 91 + - ( col2 ) AS col1 FROM tab2 AS cor0
----
53
64
65
query I rowsort
SELECT - col2 * col2 - - col1 * + 37 AS col0 FROM tab2
----
-815
1507
418
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + col2 * + ( - col1 + + tab1.col0 ) col1 FROM tab1
----
-1188
3135
6528
query I rowsort
SELECT col2 + col0 * - 98 AS col0 FROM tab2 AS cor0
----
-659
-7618
-7704
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col1 ) * ( + col1 ) - + col0 col2 FROM tab1
----
36
673
89
query I rowsort
SELECT - col2 * - col0 * cor0.col0 + - 24 FROM tab1 AS cor0
----
233448
462
614376
query I rowsort
SELECT ALL - col1 + + col0 * + col1 FROM tab0 AS cor0
----
1978
3298
8008
onlyif mysql # use DIV operator for integer division
query I rowsort label-4425
SELECT - cor0.col0 DIV col2 FROM tab0 cor0
----
-1
-35
0
skipif mysql # not compatible
query I rowsort label-4425
SELECT - cor0.col0 / col2 FROM tab0 cor0
----
-1
-35
0
query I rowsort
SELECT - 87 + col1 AS col0 FROM tab1 AS cor0
----
-61
-74
-77
query I rowsort
SELECT 12 + cor0.col0 * col0 FROM tab2 AS cor0
----
6096
61
6253
onlyif mysql # use DIV operator for integer division
query I rowsort label-4428
SELECT - - 0 DIV col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4428
SELECT - - 0 / col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - col2 * col1 + col0 * col0 AS col2 FROM tab1 cor0
----
-1395
3526
5152
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4430
SELECT DISTINCT + + col0 / CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4430
SELECT DISTINCT + + col0 / CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT - - col1 * - col0 + col0 AS col2 FROM tab2 AS cor0
----
-1264
-210
-4524
query I rowsort
SELECT ALL cor0.col1 * - col1 FROM tab2 AS cor0
----
-289
-3481
-961
query I rowsort
SELECT col0 + - cor0.col2 AS col1 FROM tab1 cor0
----
-16
-51
7
query I rowsort
SELECT ALL 83 AS col1 FROM tab0
----
83
83
83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + col2 col2 FROM tab2 AS cor0
----
52
54
76
query I rowsort
SELECT DISTINCT - col2 * col0 + col0 + col0 FROM tab0 AS cor0
----
-7120
-744
35
query I rowsort
SELECT DISTINCT cor0.col1 * + cor0.col2 - + 87 AS col0 FROM tab2 AS cor0
----
1447
559
750
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + 3 * 89 col1 FROM tab1 AS cor0
----
270
331
347
query I rowsort
SELECT col2 + col0 AS col0 FROM tab1 cor0
----
121
176
57
query I rowsort
SELECT ALL - - col0 + col1 * + col2 FROM tab0 AS cor0
----
132
2862
7551
query I rowsort
SELECT DISTINCT + - col1 * col2 + - col2 * col1 AS col2 FROM tab2 AS cor0
----
-1292
-1674
-3068
onlyif mysql # use DIV operator for integer division
query I rowsort label-4442
SELECT DISTINCT + - col1 DIV - col0 AS col2 FROM tab1 AS cor0
----
0
8
skipif mysql # not compatible
query I rowsort label-4442
SELECT DISTINCT + - col1 / - col0 AS col2 FROM tab1 AS cor0
----
0
8
query I rowsort
SELECT DISTINCT + + col1 + + 69 AS col2 FROM tab1 cor0
----
79
82
95
query I rowsort
SELECT ALL - col2 + - ( - col0 ) AS col2 FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT cor0.col1 * + 39 + 31 FROM tab1 AS cor0
----
1045
421
538
query I rowsort
SELECT cor0.col2 * + cor0.col2 FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT DISTINCT col0 + - col0 * col1 FROM tab0 AS cor0
----
-2040
-3360
-8010
query I rowsort
SELECT ALL + col1 * 94 AS col1 FROM tab1 AS cor0
----
1222
2444
940
query I rowsort
SELECT DISTINCT + col2 * + 65 AS col2 FROM tab1 AS cor0
----
3510
3705
6240
onlyif mysql # use DIV operator for integer division
query I rowsort label-4450
SELECT ALL - col2 DIV cor0.col0 + cor0.col0 AS col0 FROM tab1 AS cor0
----
-15
64
79
skipif mysql # not compatible
query I rowsort label-4450
SELECT ALL - col2 / cor0.col0 + cor0.col0 AS col0 FROM tab1 AS cor0
----
-15
64
79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col1 + + col1 col2 FROM tab1 AS cor0
----
20
26
52
query I rowsort
SELECT DISTINCT + col0 * - 6 FROM tab2 cor0
----
-42
-468
-474
onlyif mysql # use DIV operator for integer division
query I rowsort label-4453
SELECT DISTINCT - - cor0.col0 * + col0 + - col0 DIV - col0 + + cor0.col2 FROM tab0 AS cor0
----
1227
610
8004
skipif mysql # not compatible
query I rowsort label-4453
SELECT DISTINCT - - cor0.col0 * + col0 + - col0 / - col0 + + cor0.col2 FROM tab0 AS cor0
----
1227
610
8004
query I rowsort
SELECT - cor0.col2 + 61 AS col0 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to e093ef35e62ea95996c68f033bf514eb
query I rowsort
SELECT DISTINCT - - 65 AS col0 FROM tab1 AS cor0
----
65
query I rowsort
SELECT ( ( + col2 ) ) FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT DISTINCT col2 + - 40 AS col0 FROM tab2 AS cor0
----
-13
-14
-2
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4458
SELECT CAST( cor0.col0 AS SIGNED ) * col0 AS col2 FROM tab0 AS cor0
----
1225
576
7921
skipif mysql # not compatible
query I rowsort label-4458
SELECT CAST ( cor0.col0 AS INTEGER ) * col0 AS col2 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT + cor1.col2 FROM tab0, tab2 AS cor0, tab1 AS cor1, tab2 AS cor2
----
81 values hashing to 9d355f1f2edc347a359dad00d2d3f886
query I rowsort
SELECT - - col2 * cor0.col2 AS col0 FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT + col1 * tab2.col0 + - 88 FROM tab2
----
1255
129
4514
query I rowsort
SELECT + + 90 + - col2 FROM tab0 cor0
----
57
8
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-4463
SELECT ALL + ( + col0 ) * col2 + 9 DIV - col0 FROM tab1 AS cor0
----
159
3648
7680
skipif mysql # not compatible
query I rowsort label-4463
SELECT ALL + ( + col0 ) * col2 + 9 / - col0 FROM tab1 AS cor0
----
159
3648
7680
query I rowsort
SELECT - ( - col1 ) - + 7 FROM tab2 AS cor0
----
10
24
52
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * col1 * - col2 + + col1 col1 FROM tab0 AS cor0
----
-3298
-664027
-68026
query I rowsort
SELECT ALL - col0 * - col2 + - 64 FROM tab0 AS cor0
----
-29
7234
728
query I rowsort
SELECT ALL 91 * cor0.col2 AS col1 FROM tab1 AS cor0
----
4914
5187
8736
query I rowsort
SELECT ALL + + 9 * col2 + col0 + col1 * col0 FROM tab0 AS cor0
----
2385
3439
8926
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4469
SELECT ALL + ( - tab1.col1 ) * tab1.col2 - - CAST( NULL AS DECIMAL ) * + 91 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4469
SELECT ALL + ( - tab1.col1 ) * tab1.col2 - - CAST ( NULL AS REAL ) * + 91 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT + 93 FROM tab0, tab0 AS cor0
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde
query I rowsort
SELECT DISTINCT - col0 + col0 * col0 FROM tab2
----
42
6006
6162
query I rowsort
SELECT ALL col0 + + col2 FROM tab0
----
171
36
57
query I rowsort
SELECT DISTINCT 36 + tab1.col0 * - tab1.col0 AS col2 FROM tab1
----
-4060
-6364
27
query I rowsort
SELECT DISTINCT col0 * + col2 + col0 * + 94 FROM tab2
----
10428
847
9360
query I rowsort
SELECT - col1 + col1 * ( col0 + col0 ) AS col2 FROM tab2
----
2669
403
9145
query I rowsort
SELECT + col2 * - col1 + 93 FROM tab1
----
-1155
-1311
-477
query I rowsort
SELECT col0 * - col2 + + col2 + 87 FROM tab2
----
-1915
-2877
-75
query I rowsort
SELECT + - cor0.col2 + + col2 * + ( col2 ) AS col0 FROM tab0 cor0
----
0
1056
6642
query I rowsort
SELECT DISTINCT + col1 * - cor0.col1 AS col1 FROM tab1 cor0
----
-100
-169
-676
onlyif mysql # use DIV operator for integer division
query I rowsort label-4480
SELECT DISTINCT + - col1 + - cor0.col2 + col1 DIV 36 FROM tab1 AS cor0
----
-109
-67
-80
skipif mysql # not compatible
query I rowsort label-4480
SELECT DISTINCT + - col1 + - cor0.col2 + col1 / 36 FROM tab1 AS cor0
----
-109
-67
-80
query I rowsort
SELECT ALL - ( - 32 ) AS col2 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to cf4f01ac97eb83445b1721f3ae28961a
query I rowsort
SELECT ALL 63 AS col1 FROM tab0, tab0 cor0
----
9 values hashing to c3eea92c46f2c49716f386a58b575025
query I rowsort
SELECT ALL 84 + + 68 * + col2 AS col2 FROM tab0
----
152
2328
5660
query I rowsort
SELECT ALL col0 * col0 + + col2 AS col2 FROM tab0
----
1226
609
8003
query I rowsort
SELECT ALL col0 * 11 + col2 FROM tab2
----
104
884
907
query I rowsort
SELECT col1 + + 35 + - tab0.col2 AS col1 FROM tab0
----
131
44
88
query I rowsort
SELECT DISTINCT + + 50 * + 80 AS col2 FROM tab1 AS cor0
----
4000
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4488
SELECT DISTINCT - - col2 + - ( - cor0.col0 * CAST( NULL AS SIGNED ) ) - 33 / col2 AS col0 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4488
SELECT DISTINCT - - col2 + - ( - cor0.col0 * CAST ( NULL AS INTEGER ) ) - 33 / col2 AS col0 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT ( col0 ) * col0 + - col2 FROM tab2 AS cor0
----
22
6058
6203
query I rowsort
SELECT DISTINCT + 42 - + col2 AS col2 FROM tab1 cor0
----
-12
-15
-54
query I rowsort
SELECT ALL - 53 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to fee5c00ad71c23e23683a32c71fe6e7d
onlyif mysql # use DIV operator for integer division
query I rowsort label-4492
SELECT col2 DIV - col2 FROM tab0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-4492
SELECT col2 / - col2 FROM tab0
----
-1
-1
-1
query I rowsort
SELECT col2 * col0 + + 14 FROM tab2
----
203
2042
3016
query I rowsort
SELECT - 44 + - col1 * 2 AS col1 FROM tab1
----
-64
-70
-96
query I rowsort
SELECT ALL 3 * + tab2.col2 AS col0 FROM tab2
----
114
78
81
query I rowsort
SELECT ALL col1 * col2 AS col1 FROM tab0
----
2838
7462
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4497
SELECT - cor0.col2 + - CAST( NULL AS SIGNED ) FROM tab1, tab2 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-4497
SELECT - cor0.col2 + - CAST ( NULL AS INTEGER ) FROM tab1, tab2 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT DISTINCT + 60 FROM tab0
----
60
query I rowsort
SELECT DISTINCT 64 AS col0 FROM tab0, tab2, tab0 AS cor0
----
64
onlyif mysql # use DIV operator for integer division
query I rowsort label-4500
SELECT ALL - 67 + - col2 DIV - col1 AS col1 FROM tab1 AS cor0
----
-60
-62
-65
skipif mysql # not compatible
query I rowsort label-4500
SELECT ALL - 67 + - col2 / - col1 AS col1 FROM tab1 AS cor0
----
-60
-62
-65
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 70 col0 FROM tab1
----
70
query I rowsort
SELECT ALL col1 * + col2 AS col0 FROM tab0
----
2838
7462
97
query I rowsort
SELECT DISTINCT - ( - col2 ) AS col2 FROM tab1
----
54
57
96
query I rowsort
SELECT + 85 * col2 FROM tab2
----
2210
2295
3230
query I rowsort
SELECT DISTINCT - col2 * - col2 + - col0 AS col1 FROM tab2 AS cor0
----
1365
598
722
query I rowsort
SELECT DISTINCT + cor0.col0 - - cor0.col0 AS col1 FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT DISTINCT + col2 + cor0.col0 * cor0.col1 + col0 * + col1 AS col1 FROM tab0 AS cor0
----
16280
4161
6791
query I rowsort
SELECT ALL + - col0 + 15 AS col2 FROM tab1 AS cor0
----
-49
-65
12
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - 83 col2 FROM tab2 AS cor0
----
-109
-110
-121
query I rowsort
SELECT DISTINCT + col0 * + 19 FROM tab0 AS cor0
----
1691
456
665
query I rowsort
SELECT - + col0 + 48 FROM tab0 AS cor0
----
-41
13
24
query I rowsort
SELECT - col0 + - 0 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT col1 + + 34 FROM tab0 AS cor0
----
120
125
131
query I rowsort
SELECT DISTINCT cor0.col0 + + 65 FROM tab2 AS cor0
----
143
144
72
query I rowsort
SELECT - + cor0.col2 + col0 * - col1 * + col0 AS col0 FROM tab2 AS cor0
----
-106135
-1546
-358982
query I rowsort
SELECT ALL + col1 - - 78 FROM tab2 AS cor0
----
109
137
95
query I rowsort
SELECT + + col0 + ( col0 ) FROM tab1 AS cor0
----
128
160
6
query I rowsort
SELECT ALL col0 - ( col0 ) AS col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + col2 + - 41 FROM tab0 AS cor0
----
-40
-8
41
query I rowsort
SELECT - - col1 * 81 AS col2 FROM tab2 AS cor0
----
1377
2511
4779
query I rowsort
SELECT DISTINCT - - col0 + col0 * cor0.col2 FROM tab2 AS cor0
----
196
2106
3081
onlyif mysql # use DIV operator for integer division
query I rowsort label-4522
SELECT ALL + col1 + - col2 DIV cor0.col1 AS col2 FROM tab2 cor0
----
15
31
59
skipif mysql # not compatible
query I rowsort label-4522
SELECT ALL + col1 + - col2 / cor0.col1 AS col2 FROM tab2 cor0
----
15
31
59
query I rowsort
SELECT ALL col1 * - 27 FROM tab1
----
-270
-351
-702
query I rowsort
SELECT DISTINCT + 76 FROM tab0, tab2 cor0
----
76
onlyif mysql # use DIV operator for integer division
query I rowsort label-4525
SELECT DISTINCT + col2 DIV - 56 col2 FROM tab0
----
-1
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4525
SELECT DISTINCT + col2 / - 56 col2 FROM tab0
----
-1
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-4526
SELECT col0 DIV - cor0.col0 FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-4526
SELECT col0 / - cor0.col0 FROM tab0 AS cor0
----
-1
-1
-1
query I rowsort
SELECT cor0.col2 AS col0 FROM tab0, tab2 cor0, tab2 AS cor1, tab2, tab2 cor2
----
243 values hashing to 3dcd863493ac16ce594c62d4ac8b0412
query I rowsort
SELECT ( cor0.col0 * 44 ) AS col2 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 9cb418b20be0d8db3c577aa2fd328a62
onlyif mysql # use DIV operator for integer division
query I rowsort label-4529
SELECT ALL - col2 DIV + col1 AS col1 FROM tab1
----
-2
-5
-7
skipif mysql # not compatible
query I rowsort label-4529
SELECT ALL - col2 / + col1 AS col1 FROM tab1
----
-2
-5
-7
onlyif mysql # use DIV operator for integer division
query I rowsort label-4530
SELECT col2 DIV col2 AS col2 FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-4530
SELECT col2 / col2 AS col2 FROM tab1 AS cor0
----
1
1
1
query I rowsort
SELECT ( + col1 ) + col0 * 91 FROM tab2 AS cor0
----
668
7157
7206
onlyif mysql # use DIV operator for integer division
query I rowsort label-4532
SELECT + - 22 * cor0.col2 DIV - col2 col2 FROM tab1 cor0
----
22
22
22
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4532
SELECT + - 22 * cor0.col2 / - col2 col2 FROM tab1 cor0
----
22
22
22
query I rowsort
SELECT - col0 * + 15 FROM tab2 AS cor0
----
-105
-1170
-1185
query I rowsort
SELECT DISTINCT 5 * - col2 AS col0 FROM tab1 AS cor0
----
-270
-285
-480
query I rowsort
SELECT DISTINCT - + 45 AS col0 FROM tab1 AS cor0
----
-45
onlyif mysql # use DIV operator for integer division
query I rowsort label-4536
SELECT DISTINCT + col1 DIV col1 col1 FROM tab1
----
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4536
SELECT DISTINCT + col1 / col1 col1 FROM tab1
----
1
query I rowsort
SELECT - 93 AS col2 FROM tab1 cor0
----
-93
-93
-93
query I rowsort
SELECT - + col0 * col2 AS col2 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT 44 + cor0.col1 AS col1 FROM tab1 cor0
----
54
57
70
query I rowsort
SELECT + + col0 * col1 + col0 AS col1 FROM tab0 AS cor0
----
2088
3430
8188
query I rowsort
SELECT ALL + col2 * col1 * col1 - 90 * + cor0.col0 AS col1 FROM tab1 cor0
----
-60
36234
9024
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4542
SELECT - cor0.col2 * - cor0.col1 + - CAST( col0 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
1456
567
830
skipif mysql # not compatible
query I rowsort label-4542
SELECT - cor0.col2 * - cor0.col1 + - CAST ( col0 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
1456
567
830
query I rowsort
SELECT ( - col1 ) * col2 + + col0 - col2 FROM tab0 AS cor0
----
-2847
-63
-7455
onlyif mysql # use DIV operator for integer division
query I rowsort label-4544
SELECT + + ( col2 ) * col0 + + col2 * - cor0.col0 DIV col0 FROM tab1 cor0
----
108
3591
7584
skipif mysql # not compatible
query I rowsort label-4544
SELECT + + ( col2 ) * col0 + + col2 * - cor0.col0 / col0 FROM tab1 cor0
----
108
3591
7584
query I rowsort
SELECT 24 + - col2 FROM tab0 AS cor0
----
-58
-9
23
query I rowsort
SELECT + - 98 * cor0.col0 AS col1 FROM tab1 AS cor0
----
-294
-6272
-7840
query I rowsort
SELECT + col0 * 34 * - col1 + - cor0.col1 FROM tab1 AS cor0
----
-21770
-2678
-35373
query I rowsort
SELECT cor0.col0 * 40 + - col2 FROM tab0 AS cor0
----
1399
3478
927
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4549
SELECT - CAST( NULL AS DECIMAL ) * + 92 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-4549
SELECT - CAST ( NULL AS REAL ) * + 92 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT + col1 + - ( - col0 ) FROM tab0 cor0
----
110
132
180
query I rowsort
SELECT - + col1 + + col2 AS col0 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT DISTINCT + cor1.col0 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
7
78
79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * col2 + + 64 col0 FROM tab2 cor0
----
1508
740
793
query I rowsort
SELECT DISTINCT - cor0.col0 + + col2 AS col2 FROM tab1 AS cor0
----
-7
16
51
onlyif mysql # use DIV operator for integer division
query I rowsort label-4555
SELECT ALL - 17 + col1 DIV - col2 + cor0.col2 FROM tab1 AS cor0
----
37
40
79
skipif mysql # not compatible
query I rowsort label-4555
SELECT ALL - 17 + col1 / - col2 + cor0.col2 FROM tab1 AS cor0
----
37
40
79
onlyif mysql # use DIV operator for integer division
query I rowsort label-4556
SELECT ALL + col1 DIV - col1 col1 FROM tab2 AS cor0
----
-1
-1
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4556
SELECT ALL + col1 / - col1 col1 FROM tab2 AS cor0
----
-1
-1
-1
query I rowsort
SELECT DISTINCT 66 * - col2 + col1 * 3 FROM tab2 AS cor0
----
-1539
-1689
-2457
query I rowsort
SELECT ALL 86 AS col2 FROM tab2 cor0
----
86
86
86
query I rowsort
SELECT - 44 + - col0 FROM tab2
----
-122
-123
-51
query I rowsort
SELECT ALL + 84 AS col0 FROM tab1
----
84
84
84
onlyif mysql # use DIV operator for integer division
query I rowsort label-4561
SELECT col0 DIV col2 + CAST( 81 AS SIGNED ) col2 FROM tab1
----
81
81
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4561
SELECT col0 / col2 + CAST ( 81 AS INTEGER ) col2 FROM tab1
----
81
81
82
query I rowsort
SELECT - ( col0 ) * 61 + col2 FROM tab0 AS cor0
----
-1431
-2134
-5347
query I rowsort
SELECT DISTINCT - col2 - col0 * + col2 AS col0 FROM tab1 AS cor0
----
-216
-3705
-7776
query I rowsort
SELECT DISTINCT + ( col2 ) + + ( col2 ) AS col1 FROM tab2 AS cor0
----
52
54
76
query I rowsort
SELECT ALL + col0 * col1 * col1 FROM tab2
----
22831
271518
6727
query I rowsort
SELECT ALL - cor0.col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0
onlyif mysql # use DIV operator for integer division
query I rowsort label-4567
SELECT + - col1 + CAST( + 50 AS SIGNED ) + + col0 DIV col1 FROM tab2 AS cor0
----
-8
19
37
skipif mysql # not compatible
query I rowsort label-4567
SELECT + - col1 + CAST ( + 50 AS INTEGER ) + + col0 / col1 FROM tab2 AS cor0
----
-8
19
37
onlyif mysql # use DIV operator for integer division
query I rowsort label-4568
SELECT cor0.col1 * + 69 + - col2 + col1 DIV + ( + cor0.col0 ) FROM tab1 AS cor0
----
1748
633
801
skipif mysql # not compatible
query I rowsort label-4568
SELECT cor0.col1 * + 69 + - col2 + col1 / + ( + cor0.col0 ) FROM tab1 AS cor0
----
1748
633
801
query I rowsort
SELECT + + col2 * + col2 + col2 FROM tab0 AS cor0
----
1122
2
6806
query I rowsort
SELECT DISTINCT - cor0.col1 * 12 AS col1 FROM tab1, tab1 AS cor0, tab1 AS cor1, tab1 AS cor2
----
-120
-156
-312
query I rowsort
SELECT ALL - col2 + + col1 + + col1 AS col0 FROM tab2
----
-4
35
92
query I rowsort
SELECT ALL - col1 + - col2 AS col1 FROM tab0
----
-119
-173
-98
query I rowsort
SELECT ALL col2 + tab0.col0 AS col1 FROM tab0
----
171
36
57
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4574
SELECT ALL CAST( NULL AS DECIMAL ) + - 24 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4574
SELECT ALL CAST ( NULL AS REAL ) + - 24 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col0 * - ( - cor0.col0 * + col2 + - col2 ) FROM tab1 AS cor0
----
-237120
-622080
-648
query I rowsort
SELECT DISTINCT ( - 72 ) * + col2 * ( - col0 ) AS col0 FROM tab0 AS cor0
----
2520
525456
57024
onlyif mysql # use DIV operator for integer division
query I rowsort label-4577
SELECT - col1 + 72 + cor0.col1 DIV + ( 94 + - col2 ) FROM tab2 AS cor0
----
13
41
55
skipif mysql # not compatible
query I rowsort label-4577
SELECT - col1 + 72 + cor0.col1 / + ( 94 + - col2 ) FROM tab2 AS cor0
----
13
41
55
onlyif mysql # use DIV operator for integer division
query I rowsort label-4578
SELECT DISTINCT + + 68 DIV - col1 FROM tab2 cor0
----
-1
-2
-4
skipif mysql # not compatible
query I rowsort label-4578
SELECT DISTINCT + + 68 / - col1 FROM tab2 cor0
----
-1
-2
-4
query I rowsort
SELECT + 91 + + col0 * col2 FROM tab0 AS cor0
----
126
7389
883
query I rowsort
SELECT ALL ( 61 ) AS col1 FROM tab1 AS cor0
----
61
61
61
query I rowsort
SELECT DISTINCT - - ( col2 ) + col0 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT ( 66 ) + + col0 FROM tab1
----
130
146
69
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 93 col1 FROM tab2, tab0 AS cor0, tab1, tab2 AS cor1
----
93
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4584
SELECT DISTINCT CAST( 37 * + col0 AS SIGNED ) + - 38 AS col0 FROM tab0
----
1257
3255
850
skipif mysql # not compatible
query I rowsort label-4584
SELECT DISTINCT CAST ( 37 * + col0 AS INTEGER ) + - 38 AS col0 FROM tab0
----
1257
3255
850
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 95 + ( - col0 ) * - ( col1 ) col0 FROM tab0
----
2159
3490
8194
query I rowsort
SELECT DISTINCT - + col0 * col2 + cor0.col0 FROM tab0 AS cor0
----
-7209
-768
0
query I rowsort
SELECT ALL + - 23 AS col2 FROM tab2 AS cor0
----
-23
-23
-23
query I rowsort
SELECT - col2 * - col1 - - col2 AS col2 FROM tab2 AS cor0
----
1560
684
864
query I rowsort
SELECT ALL ( col0 ) * - col1 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT - - 26 FROM tab1 AS cor0
----
26
26
26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 * - cor0.col1 + col2 * + ( 89 * + col1 ) col2 FROM tab0 cor0
----
18042
259978
672399
query I rowsort
SELECT + col0 + - cor0.col0 AS col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + col2 + 40 * col2 FROM tab1 AS cor0
----
2214
2337
3936
query I rowsort
SELECT + 21 FROM tab1 cor0
----
21
21
21
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * + col2 col1 FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT DISTINCT - + 52 AS col0 FROM tab0 AS cor0
----
-52
onlyif mysql # use DIV operator for integer division
query I rowsort label-4597
SELECT + col2 + col2 DIV col0 FROM tab2 AS cor0
----
26
30
38
skipif mysql # not compatible
query I rowsort label-4597
SELECT + col2 + col2 / col0 FROM tab2 AS cor0
----
26
30
38
query I rowsort
SELECT - ( - 70 ) FROM tab0 AS cor0
----
70
70
70
query I rowsort
SELECT - - col1 * col0 + - col2 * - col2 FROM tab1 cor0
----
10256
2994
3889
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 13 * - col1 * + 87 col2 FROM tab1 AS cor0
----
11310
14703
29406
query I rowsort
SELECT + - col2 + + col2 AS col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + cor0.col1 * - col0 FROM tab2 cor0
----
-1343
-217
-4602
query I rowsort
SELECT - + 54 * + cor0.col0 FROM tab2 AS cor0
----
-378
-4212
-4266
query I rowsort
SELECT DISTINCT - - 67 FROM tab1 AS cor0
----
67
query I rowsort
SELECT - ( - ( col2 ) ) + - col1 FROM tab0
----
-53
-9
-96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4606
SELECT ALL + col0 - - CAST( - col2 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-9
34
7
skipif mysql # not compatible
query I rowsort label-4606
SELECT ALL + col0 - - CAST ( - col2 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-9
34
7
query I rowsort
SELECT ALL + + col1 + 24 FROM tab0 AS cor0
----
110
115
121
query I rowsort
SELECT DISTINCT 96 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4609
SELECT ALL + col2 * + CAST( + col0 AS SIGNED ) FROM tab0 AS cor0
----
35
7298
792
skipif mysql # not compatible
query I rowsort label-4609
SELECT ALL + col2 * + CAST ( + col0 AS INTEGER ) FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT DISTINCT col1 * - col2 - + 90 AS col2 FROM tab1
----
-1338
-1494
-660
query I rowsort
SELECT DISTINCT + col1 * 33 - ( - col2 * + col0 ) AS col1 FROM tab0
----
10301
3236
3630
query I rowsort
SELECT DISTINCT - tab1.col0 + - 33 * col1 * - col0 - + 98 * + 56 FROM tab1
----
-2917
15568
28752
query I rowsort
SELECT - ( ( + tab0.col1 ) ) FROM tab0, tab0 AS cor0
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f
query I rowsort
SELECT + col0 * + 36 + col2 - - col0 AS col1 FROM tab1
----
165
2425
3056
query I rowsort
SELECT col0 - col0 * col2 * - ( cor0.col1 ) AS col2 FROM tab2 AS cor0
----
119730
51113
5866
query I rowsort
SELECT DISTINCT + ( - 74 ) FROM tab1 AS cor0
----
-74
query I rowsort
SELECT ALL + 32 AS col2 FROM tab1 AS cor0
----
32
32
32
query I rowsort
SELECT 3 + + col2 AS col1 FROM tab1 AS cor0
----
57
60
99
query I rowsort
SELECT ALL - col1 * 80 + - col0 + - ( 25 ) AS col2 FROM tab0 AS cor0
----
-6929
-7394
-7820
query I rowsort
SELECT ALL - col0 + col2 AS col0 FROM tab1 cor0
----
-7
16
51
query I rowsort
SELECT + cor0.col1 * - col2 + + col1 FROM tab0 AS cor0
----
-2752
-7371
0
query I rowsort
SELECT ALL - col1 + + col2 AS col2 FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT DISTINCT 53 FROM tab1 AS cor0
----
53
query I rowsort
SELECT DISTINCT - tab2.col1 * + ( + tab2.col1 ) FROM tab2
----
-289
-3481
-961
query I rowsort
SELECT col0 + tab1.col2 * tab1.col1 AS col0 FROM tab1
----
1328
1407
634
query I rowsort
SELECT - + 28 + - cor1.col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3253f11c15baa47dca9038ac9b1e0030
query I rowsort
SELECT DISTINCT + - col1 * cor0.col2 FROM tab1 AS cor0
----
-1248
-1404
-570
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4628
SELECT DISTINCT + - col2 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4628
SELECT DISTINCT + - col2 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT + cor0.col2 * - col0 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT - col2 * + 91 AS col0 FROM tab1 AS cor0
----
-4914
-5187
-8736
query I rowsort
SELECT + + cor0.col2 * ( col1 ) + + col2 * - col0 + ( - col0 ) AS col0 FROM tab0 AS cor0
----
2022
27
75
query I rowsort
SELECT ALL - col2 * - 30 FROM tab2 AS cor0
----
1140
780
810
onlyif mysql # use DIV operator for integer division
query I rowsort label-4633
SELECT + - col0 + + col2 + - col0 DIV col1 FROM tab0 AS cor0
----
-34
-7
9
skipif mysql # not compatible
query I rowsort label-4633
SELECT + - col0 + + col2 + - col0 / col1 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT col2 * - ( cor0.col2 ) FROM tab1 AS cor0
----
-2916
-3249
-9216
query I rowsort
SELECT + 97 * - cor0.col0 AS col0 FROM tab2, tab0 cor0
----
9 values hashing to 4201ef3c7ff4df2d4f5c4da7ea0de7d1
query I rowsort
SELECT - 78 AS col0 FROM tab2, tab2 cor0
----
9 values hashing to b6e4cc21599216686f0cf45b85668b2c
query I rowsort
SELECT + 38 * - col1 AS col0 FROM tab2 AS cor0
----
-1178
-2242
-646
query I rowsort
SELECT - 97 AS col2 FROM tab2 cor0
----
-97
-97
-97
query I rowsort
SELECT 79 + + cor0.col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 562b576610ecab31197909be1728dc1f
query I rowsort
SELECT - - col2 * col1 AS col1 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT ALL + - col2 * col2 FROM tab1 cor0
----
-2916
-3249
-9216
query I rowsort
SELECT DISTINCT - + 55 + - col2 FROM tab1 AS cor0
----
-109
-112
-151
query I rowsort
SELECT - + 96 + - cor0.col2 FROM tab1 AS cor0
----
-150
-153
-192
onlyif mysql # use DIV operator for integer division
query I rowsort label-4644
SELECT ALL + col2 DIV - col1 col1 FROM tab1 cor0
----
-2
-5
-7
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4644
SELECT ALL + col2 / - col1 col1 FROM tab1 cor0
----
-2
-5
-7
query I rowsort
SELECT ALL col2 + + col2 AS col0 FROM tab2 AS cor0
----
52
54
76
query I rowsort
SELECT - cor0.col2 + + cor0.col2 * - col0 * 6 AS col2 FROM tab2 AS cor0
----
-1161
-12194
-18050
onlyif mysql # use DIV operator for integer division
query I rowsort label-4647
SELECT + + ( col2 ) DIV + col1 + col2 AS col1 FROM tab1 AS cor0
----
103
56
62
skipif mysql # not compatible
query I rowsort label-4647
SELECT + + ( col2 ) / + col1 + col2 AS col1 FROM tab1 AS cor0
----
103
56
62
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4648
SELECT + 92 * - col2 + + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4648
SELECT + 92 * - col2 + + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col0 + - col2 AS col1 FROM tab2
----
-20
41
52
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4650
SELECT col2 * - col0 * CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4650
SELECT col2 * - col0 * CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-4651
SELECT + col2 DIV + cor0.col0 + - col2 * + col1 FROM tab0 AS cor0
----
-2837
-7462
-97
skipif mysql # not compatible
query I rowsort label-4651
SELECT + col2 / + cor0.col0 + - col2 * + col1 FROM tab0 AS cor0
----
-2837
-7462
-97
query I rowsort
SELECT + + col2 + - col0 * col2 * col0 FROM tab2 AS cor0
----
-1296
-158158
-237120
query I rowsort
SELECT DISTINCT - + col2 * col1 AS col1 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT 46 * tab0.col0 * col0 AS col1 FROM tab0
----
26496
364366
56350
query I rowsort
SELECT col0 * col0 + - col1 + + col2 AS col1 FROM tab2 AS cor0
----
45
6051
6262
query I rowsort
SELECT ALL + + col1 * ( col1 ) + - col0 AS col2 FROM tab0 AS cor0
----
7372
8192
9374
query I rowsort
SELECT DISTINCT - col2 + + cor0.col0 * - col2 * - col1 FROM tab1 AS cor0
----
36423
4158
99744
query I rowsort
SELECT DISTINCT 83 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
83
query I rowsort
SELECT col2 * ( col1 + - tab2.col0 ) AS col2 FROM tab2
----
-2356
-494
648
query I rowsort
SELECT 67 AS col0 FROM tab0, tab0 AS cor0, tab0 cor1
----
27 values hashing to eea8a0738728ea55e4e7ba1506c9905a
query I rowsort
SELECT + col1 * - ( 98 ) - col0 * col2 AS col1 FROM tab1
----
-2710
-4628
-8954
query I rowsort
SELECT ALL - col1 * 58 + - ( col1 ) AS col0 FROM tab1
----
-1534
-590
-767
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4663
SELECT + col1 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4663
SELECT + col1 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col0 + 3 FROM tab1
----
-61
-77
0
query I rowsort
SELECT ALL tab1.col0 + ( + 49 ) AS col1 FROM tab1
----
113
129
52
onlyif mysql # use DIV operator for integer division
query I rowsort label-4666
SELECT - col1 DIV - 68 col2 FROM tab0
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4666
SELECT - col1 / - 68 col2 FROM tab0
----
1
1
1
query I rowsort
SELECT DISTINCT - col2 + - col2 FROM tab2
----
-52
-54
-76
onlyif mysql # use DIV operator for integer division
query I rowsort label-4668
SELECT 24 + + 50 DIV - col1 + col0 * + col2 * tab0.col1 AS col1 FROM tab0
----
3419
664142
68136
skipif mysql # not compatible
query I rowsort label-4668
SELECT 24 + + 50 / - col1 + col0 * + col2 * tab0.col1 AS col1 FROM tab0
----
3419
664142
68136
query I rowsort
SELECT - 12 * col2 FROM tab0 AS cor0
----
-12
-396
-984
query I rowsort
SELECT + col1 - - col2 * + 92 AS col1 FROM tab0 AS cor0
----
189
3122
7635
onlyif mysql # use DIV operator for integer division
query I rowsort label-4671
SELECT + + col0 + + col2 * 39 DIV cor0.col2 AS col1 FROM tab0 AS cor0
----
128
63
74
skipif mysql # not compatible
query I rowsort label-4671
SELECT + + col0 + + col2 * 39 / cor0.col2 AS col1 FROM tab0 AS cor0
----
128
63
74
query I rowsort
SELECT + col1 * col2 + - 30 AS col1 FROM tab0 AS cor0
----
2808
67
7432
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 35 + col2 col2 FROM tab1 AS cor0
----
131
89
92
query I rowsort
SELECT DISTINCT - 84 + col0 * - col0 FROM tab2 cor0
----
-133
-6168
-6325
query I rowsort
SELECT ( col1 ) * + ( - ( col2 ) ) AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT - col1 + + col1 * + col0 AS col1 FROM tab0 cor0
----
1978
3298
8008
query I rowsort
SELECT - - col1 * - col1 - + col1 FROM tab1 AS cor0
----
-110
-182
-702
skipif mysql # not compatible
query I rowsort
SELECT cor0.col0 + col0 * CAST ( + col2 AS REAL ) AS col2 FROM tab0 AS cor0
----
70
7387
816
onlyif mysql # use DIV operator for integer division
query I rowsort label-4679
SELECT - - cor0.col2 DIV - col0 - 84 DIV - col1 AS col0 FROM tab0 cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-4679
SELECT - - cor0.col2 / - col0 - 84 / - col1 AS col0 FROM tab0 cor0
----
-1
0
0
query I rowsort
SELECT - ( - col1 ) - + col0 * col0 FROM tab1 AS cor0
----
-4086
-6387
17
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + col0 col0 FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT DISTINCT - - ( - col1 ) * - col1 AS col1 FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT ALL tab0.col0 + - col1 + col2 * col0 AS col2 FROM tab0
----
-27
7296
730
query I rowsort
SELECT ALL cor0.col1 AS col1 FROM tab0, tab0 cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc
query I rowsort
SELECT 82 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c
query I rowsort
SELECT ALL 57 + + 70 FROM tab1
----
127
127
127
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 80 col0 FROM tab2 cor0
----
80
80
80
query I rowsort
SELECT ALL + + ( + col0 ) FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT ALL - 29 + col0 AS col0 FROM tab2 AS cor0
----
-22
49
50
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4690
SELECT CAST( NULL AS SIGNED ) + - col0 * - cor0.col1 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4690
SELECT CAST ( NULL AS INTEGER ) + - col0 * - cor0.col1 FROM tab2 cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-4691
SELECT DISTINCT ( 3 ) DIV col0 FROM tab2 cor0
----
0
skipif mysql # not compatible
query I rowsort label-4691
SELECT DISTINCT ( 3 ) / col0 FROM tab2 cor0
----
0
query I rowsort
SELECT DISTINCT - ( - 76 ) * cor0.col0 AS col2 FROM tab0 cor0
----
1824
2660
6764
query I rowsort
SELECT DISTINCT + col0 * + col2 AS col1 FROM tab2 AS cor0
----
189
2028
3002
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 11 * - col1 * 71 + col1 col2 FROM tab0 AS cor0
----
-67080
-70980
-75660
query I rowsort
SELECT ALL + 75 * col1 FROM tab0 AS cor0
----
6450
6825
7275
query I rowsort
SELECT + + 27 * col1 FROM tab0 AS cor0
----
2322
2457
2619
query I rowsort
SELECT ALL - col2 + + col0 * - col2 AS col2 FROM tab2 AS cor0
----
-2054
-216
-3040
query I rowsort
SELECT DISTINCT cor0.col2 * - col1 AS col0 FROM tab2 AS cor0
----
-1534
-646
-837
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4699
SELECT DISTINCT tab0.col2 * + ( - col2 ) + CAST( col2 AS SIGNED ) FROM tab0
----
-1056
-6642
0
skipif mysql # not compatible
query I rowsort label-4699
SELECT DISTINCT tab0.col2 * + ( - col2 ) + CAST ( col2 AS INTEGER ) FROM tab0
----
-1056
-6642
0
query I rowsort
SELECT + col1 * + cor0.col2 AS col1 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT ALL 10 + col1 * - col1 AS col0 FROM tab2 AS cor0
----
-279
-3471
-951
query I rowsort
SELECT col0 + col0 * 94 * col2 AS col1 FROM tab0 AS cor0
----
3325
686101
74472
onlyif mysql # use DIV operator for integer division
query I rowsort label-4703
SELECT + + col1 + + cor0.col2 DIV col1 FROM tab2 AS cor0
----
19
31
59
skipif mysql # not compatible
query I rowsort label-4703
SELECT + + col1 + + cor0.col2 / col1 FROM tab2 AS cor0
----
19
31
59
query I rowsort
SELECT DISTINCT - + 37 + col1 AS col2 FROM tab1 AS cor0
----
-11
-24
-27
query I rowsort
SELECT DISTINCT + + 20 * - col1 AS col0 FROM tab1 AS cor0
----
-200
-260
-520
onlyif mysql # use DIV operator for integer division
query I rowsort label-4706
SELECT DISTINCT tab2.col1 + - 60 * tab2.col0 DIV 74 + + col0 FROM tab2
----
32
33
74
skipif mysql # not compatible
query I rowsort label-4706
SELECT DISTINCT tab2.col1 + - 60 * tab2.col0 / 74 + + col0 FROM tab2
----
32
33
74
query I rowsort
SELECT DISTINCT - 33 * - col2 + + col2 AS col0 FROM tab1
----
1836
1938
3264
query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab0, tab0 cor0, tab1 AS cor1
----
972 values hashing to 5621675b1bd32b061d284d0444c76601
onlyif mysql # use DIV operator for integer division
query I rowsort label-4709
SELECT ( - ( col0 ) ) + - col0 - + 74 DIV col2 FROM tab0
----
-144
-178
-50
skipif mysql # not compatible
query I rowsort label-4709
SELECT ( - ( col0 ) ) + - col0 - + 74 / col2 FROM tab0
----
-144
-178
-50
query I rowsort
SELECT DISTINCT col2 + ( 57 ) FROM tab2 AS cor0
----
83
84
95
query I rowsort
SELECT ALL + col0 + 84 - + ( col1 ) AS col2 FROM tab0 AS cor0
----
22
22
82
query I rowsort
SELECT ALL - col1 - ( col1 ) FROM tab1 AS cor0
----
-20
-26
-52
query I rowsort
SELECT DISTINCT - col2 + 22 FROM tab1 AS cor0
----
-32
-35
-74
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4714
SELECT DISTINCT + col0 * + CAST( NULL AS SIGNED ) + col0 + + col2 * - ( + col0 + + col0 ) * col1 AS col1 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4714
SELECT DISTINCT + col0 * + CAST ( NULL AS INTEGER ) + col0 + + col2 * - ( + col0 + + col0 ) * col1 AS col1 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT + + col1 * - col0 + col0 * col1 + - col0 AS col1 FROM tab2 AS cor0
----
-7
-78
-79
onlyif mysql # use DIV operator for integer division
query I rowsort label-4716
SELECT DISTINCT - - col2 * col1 + + col2 DIV + col0 FROM tab1 cor0
----
1249
1422
570
skipif mysql # not compatible
query I rowsort label-4716
SELECT DISTINCT - - col2 * col1 + + col2 / + col0 FROM tab1 cor0
----
1249
1422
570
query I rowsort
SELECT ALL + col0 + + cor0.col1 AS col1 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT DISTINCT 24 AS col2 FROM tab1, tab0, tab2 AS cor0
----
24
query I rowsort
SELECT col1 * - 14 FROM tab0 AS cor0
----
-1204
-1274
-1358
query I rowsort
SELECT ALL - cor0.col1 + col2 FROM tab2 AS cor0
----
-33
-4
21
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4721
SELECT ALL - tab2.col0 * CAST( NULL AS SIGNED ) - col1 * - col1 AS col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4721
SELECT ALL - tab2.col0 * CAST ( NULL AS INTEGER ) - col1 * - col1 AS col1 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT - 55 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ac76841ceecd2311e80c621d15bacdd3
query I rowsort
SELECT ALL - 6 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 8be8910507908e6353d02a545b748252
query I rowsort
SELECT ALL - col2 * col1 + col2 FROM tab1 AS cor0
----
-1152
-1350
-513
query I rowsort
SELECT + + 92 + 25 * + col0 * - col2 FROM tab1 AS cor0
----
-191908
-3958
-91108
onlyif mysql # use DIV operator for integer division
query I rowsort label-4726
SELECT col1 DIV + ( 83 * col0 ) + col0 AS col0 FROM tab0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-4726
SELECT col1 / + ( 83 * col0 ) + col0 AS col0 FROM tab0
----
24
35
89
query I rowsort
SELECT ALL 8 FROM tab1, tab1 AS cor0
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4728
SELECT + col1 * CAST( NULL AS DECIMAL ) * - col0 + + col0 AS col1 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4728
SELECT + col1 * CAST ( NULL AS REAL ) * - col0 + + col0 AS col1 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - 37 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 395d44ccbce08828bc493e93ec3d9207
query I rowsort
SELECT - 71 * tab2.col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 06cf10e1163ecf52368932d3dcdcc36e
query I rowsort
SELECT DISTINCT ( + col0 ) * col2 FROM tab1 cor0
----
162
3648
7680
query I rowsort
SELECT - - 49 + 34 AS col0 FROM tab2 AS cor0
----
83
83
83
query I rowsort
SELECT + + ( - 29 ) * + col0 + - ( 45 + + col2 ) AS col1 FROM tab0 AS cor0
----
-1061
-2708
-774
query I rowsort
SELECT ALL - 2 + cor0.col0 AS col1 FROM tab2 AS cor0
----
5
76
77
query I rowsort
SELECT 13 AS col1 FROM tab1 AS cor0
----
13
13
13
onlyif mysql # use DIV operator for integer division
query I rowsort label-4736
SELECT ALL + - col0 DIV + col2 - col2 col2 FROM tab0 AS cor0
----
-33
-36
-83
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4736
SELECT ALL + - col0 / + col2 - col2 col2 FROM tab0 AS cor0
----
-33
-36
-83
query I rowsort
SELECT col1 - col0 AS col0 FROM tab2 cor0
----
-19
-62
24
query I rowsort
SELECT + - col1 - 56 FROM tab2 AS cor0
----
-115
-73
-87
query I rowsort
SELECT DISTINCT + ( - 29 ) + col2 FROM tab2 AS cor0
----
-2
-3
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-4740
SELECT col1 DIV col1 + - col0 AS col1 FROM tab1 AS cor0
----
-2
-63
-79
skipif mysql # not compatible
query I rowsort label-4740
SELECT col1 / col1 + - col0 AS col1 FROM tab1 AS cor0
----
-2
-63
-79
query I rowsort
SELECT ALL - cor0.col1 * - col0 AS col0 FROM tab0 AS cor0
----
2064
3395
8099
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4742
SELECT - CAST( + col2 AS SIGNED ) - col2 FROM tab1 AS cor0
----
-108
-114
-192
skipif mysql # not compatible
query I rowsort label-4742
SELECT - CAST ( + col2 AS INTEGER ) - col2 FROM tab1 AS cor0
----
-108
-114
-192
onlyif mysql # use DIV operator for integer division
query I rowsort label-4743
SELECT ALL + + ( col0 ) DIV col0 + 94 FROM tab1 AS cor0
----
95
95
95
skipif mysql # not compatible
query I rowsort label-4743
SELECT ALL + + ( col0 ) / col0 + 94 FROM tab1 AS cor0
----
95
95
95
query I rowsort
SELECT col1 + - col0 AS col0 FROM tab0 cor0
----
2
62
62
query I rowsort
SELECT DISTINCT + col0 + - col2 AS col2 FROM tab1 cor0
----
-16
-51
7
query I rowsort
SELECT DISTINCT col2 + + 66 AS col0 FROM tab2 AS cor0
----
104
92
93
query I rowsort
SELECT + 74 * col1 FROM tab1 AS cor0
----
1924
740
962
query I rowsort
SELECT + cor1.col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c61d27a0022e6d022371dc58819ab272
query I rowsort
SELECT ALL - col1 * - col1 FROM tab2
----
289
3481
961
query I rowsort
SELECT + 60 * col1 AS col1 FROM tab2 AS cor0
----
1020
1860
3540
query I rowsort
SELECT - col2 + + col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL 76 * - col0 AS col1 FROM tab2 AS cor0
----
-532
-5928
-6004
query I rowsort
SELECT DISTINCT - col0 * col1 + + col1 AS col0 FROM tab2 AS cor0
----
-1326
-186
-4543
query I rowsort
SELECT - 61 + - col2 AS col2 FROM tab2 AS cor0
----
-87
-88
-99
query I rowsort
SELECT ALL + col0 * + col2 AS col1 FROM tab0 cor0
----
35
7298
792
query I rowsort
SELECT 38 * col0 AS col0 FROM tab0 AS cor0
----
1330
3382
912
onlyif mysql # use DIV operator for integer division
query I rowsort label-4757
SELECT ALL col1 DIV col0 AS col1 FROM tab0 AS cor0
----
1
2
3
skipif mysql # not compatible
query I rowsort label-4757
SELECT ALL col1 / col0 AS col1 FROM tab0 AS cor0
----
1
2
3
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4758
SELECT DISTINCT - col0 - + CAST( col1 AS SIGNED ) * + cor0.col2 AS col1 FROM tab0 AS cor0
----
-132
-2862
-7551
skipif mysql # not compatible
query I rowsort label-4758
SELECT DISTINCT - col0 - + CAST ( col1 AS INTEGER ) * + cor0.col2 AS col1 FROM tab0 AS cor0
----
-132
-2862
-7551
onlyif mysql # use DIV operator for integer division
query I rowsort label-4759
SELECT DISTINCT - col0 DIV + CAST( col1 AS SIGNED ) col1 FROM tab1 AS cor0
----
-6
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4759
SELECT DISTINCT - col0 / + CAST ( col1 AS INTEGER ) col1 FROM tab1 AS cor0
----
-6
0
query I rowsort
SELECT - - col1 + ( 6 ) FROM tab2 AS cor0
----
23
37
65
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col0 * + col0 col0 FROM tab2
----
6143
6258
80
query I rowsort
SELECT col0 * ( + 47 ) FROM tab0 AS cor0
----
1128
1645
4183
query I rowsort
SELECT - col2 + 95 AS col2 FROM tab0 cor0
----
13
62
94
query I rowsort
SELECT ALL - 37 AS col1 FROM tab2 cor0
----
-37
-37
-37
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 68 col2 FROM tab2 cor0
----
68
68
68
query I rowsort
SELECT DISTINCT - - col0 + 79 FROM tab2 AS cor0
----
157
158
86
skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( + col1 AS REAL ) FROM tab0
----
86
91
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-4768
SELECT + cor0.col2 * col1 DIV col0 AS col0 FROM tab1 AS cor0
----
15
468
8
skipif mysql # not compatible
query I rowsort label-4768
SELECT + cor0.col2 * col1 / col0 AS col0 FROM tab1 AS cor0
----
15
468
8
query I rowsort
SELECT col0 + - col0 AS col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT - - col1 + - col1 * - col1 * - col1 AS col2 FROM tab1 AS cor0
----
-17550
-2184
-990
query I rowsort
SELECT - cor0.col1 + col1 * - 30 AS col0 FROM tab0 AS cor0
----
-2666
-2821
-3007
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 71 + col1 * col0 * ( col2 ) col2 FROM tab2 AS cor0
----
119581
50963
5788
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + col2 col0 FROM tab1 AS cor0
----
109
67
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-4774
SELECT + col1 DIV col0 + + col0 + col2 AS col0 FROM tab1
----
121
176
65
skipif mysql # not compatible
query I rowsort label-4774
SELECT + col1 / col0 + + col0 + col2 AS col0 FROM tab1
----
121
176
65
query I rowsort
SELECT col1 * + tab2.col1 AS col2 FROM tab2
----
289
3481
961
query I rowsort
SELECT col1 + + 41 * + ( - col0 ) FROM tab2 AS cor0
----
-256
-3139
-3222
query I rowsort
SELECT - 83 AS col1 FROM tab2, tab2 cor0
----
9 values hashing to d55748f39f403ec273099c0d87b0bfbb
query I rowsort
SELECT + + cor0.col1 * - ( 43 * col0 ) FROM tab2 AS cor0
----
-197886
-57749
-9331
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4779
SELECT - cor0.col0 * - CAST( 49 AS SIGNED ) FROM tab0 AS cor0
----
1176
1715
4361
skipif mysql # not compatible
query I rowsort label-4779
SELECT - cor0.col0 * - CAST ( 49 AS INTEGER ) FROM tab0 AS cor0
----
1176
1715
4361
query I rowsort
SELECT col2 * col1 - col2 AS col0 FROM tab2 cor0
----
1508
608
810
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( 31 ) * - col0 + - col1 * col0 col0 FROM tab1 AS cor0
----
1344
1440
15
query I rowsort
SELECT 50 AS col2 FROM tab2 AS cor0
----
50
50
50
query I rowsort
SELECT + col2 + col1 + col2 FROM tab2 AS cor0
----
111
85
93
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4784
SELECT + CAST( NULL AS SIGNED ) + - col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4784
SELECT + CAST ( NULL AS INTEGER ) + - col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + tab0.col1 + - col1 * - col2 AS col2 FROM tab0
----
194
2924
7553
query I rowsort
SELECT ALL col1 + 10 FROM tab2
----
27
41
69
query I rowsort
SELECT ALL col0 + + ( 25 ) + - col2 * - col2 FROM tab2
----
1548
761
779
query I rowsort
SELECT col0 + - ( + col1 ) FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT ALL - - col1 + - col2 + col1 AS col0 FROM tab1 cor0
----
-2
-37
-70
query I rowsort
SELECT DISTINCT 61 * cor1.col2 + ( cor1.col0 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
2037
5091
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-4791
SELECT + col2 * - col0 DIV + cor0.col0 + + col0 DIV col2 FROM tab0 AS cor0
----
-33
-81
34
skipif mysql # not compatible
query I rowsort label-4791
SELECT + col2 * - col0 / + cor0.col0 + + col0 / col2 FROM tab0 AS cor0
----
-33
-81
34
onlyif mysql # use DIV operator for integer division
query I rowsort label-4792
SELECT ( col0 ) DIV col1 + - col1 FROM tab1 AS cor0
----
-26
-4
-7
skipif mysql # not compatible
query I rowsort label-4792
SELECT ( col0 ) / col1 + - col1 FROM tab1 AS cor0
----
-26
-4
-7
query I rowsort
SELECT ALL - 80 FROM tab2
----
-80
-80
-80
query I rowsort
SELECT ALL - + 49 * col0 * col1 FROM tab1 AS cor0
----
-31360
-3822
-50960
query I rowsort
SELECT + col1 * + col1 - 52 AS col1 FROM tab0 cor0
----
7344
8229
9357
skipif mysql # not compatible
query I rowsort
SELECT - col0 * + col1 * CAST ( + 21 AS REAL ) + + col0 FROM tab0 AS cor0
----
-169990
-43320
-71260
query I rowsort
SELECT DISTINCT - - 0 + col1 * - 26 FROM tab1 cor0
----
-260
-338
-676
query I rowsort
SELECT col2 + + 56 - - tab2.col0 FROM tab2
----
160
173
90
query I rowsort
SELECT DISTINCT - 0 - + col2 FROM tab2
----
-26
-27
-38
query I rowsort
SELECT + col2 * - 51 FROM tab0
----
-1683
-4182
-51
query I rowsort
SELECT + ( + col1 ) * col2 AS col0 FROM tab2
----
1534
646
837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - col1 ) * - tab0.col1 col2 FROM tab0
----
7396
8281
9409
query I rowsort
SELECT DISTINCT + 15 AS col0 FROM tab2
----
15
query I rowsort
SELECT - + col2 * col2 * + col1 AS col2 FROM tab0 AS cor0
----
-611884
-93654
-97
query I rowsort
SELECT + 6 * 30 AS col1 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 328c0ddddaddea2086eec975389a2bcd
query I rowsort
SELECT DISTINCT + 37 * + col1 AS col1 FROM tab1
----
370
481
962
query I rowsort
SELECT DISTINCT tab2.col1 * + tab2.col1 FROM tab2
----
289
3481
961
query I rowsort
SELECT - col0 * col0 + + col2 FROM tab2 AS cor0
----
-22
-6058
-6203
query I rowsort
SELECT + col2 * 35 AS col2 FROM tab0 cor0
----
1155
2870
35
onlyif mysql # use DIV operator for integer division
query I rowsort label-4810
SELECT - 46 DIV - col1 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4810
SELECT - 46 / - col1 FROM tab0
----
0
0
0
query I rowsort
SELECT ALL - col2 * col2 * tab1.col0 - + col1 FROM tab1
----
-207946
-737293
-8774
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 54 * col2 col1 FROM tab2
----
1404
1458
2052
onlyif mysql # use DIV operator for integer division
query I rowsort label-4813
SELECT 33 + + col1 DIV 20 + 41 FROM tab0
----
78
78
78
skipif mysql # not compatible
query I rowsort label-4813
SELECT 33 + + col1 / 20 + 41 FROM tab0
----
78
78
78
query I rowsort
SELECT col0 * + col0 * + col0 + - col2 * col1 FROM tab2
----
-494
473018
492393
query I rowsort
SELECT ALL col2 * - col1 - col0 * 24 FROM tab2
----
-1005
-2542
-3406
query I rowsort
SELECT cor0.col0 * - cor0.col2 AS col0 FROM tab0 cor0
----
-35
-7298
-792
query I rowsort
SELECT - + col0 + col2 AS col2 FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT - col1 - 12 FROM tab2 cor0
----
-29
-43
-71
query I rowsort
SELECT ALL cor0.col0 * col0 FROM tab0 cor0
----
1225
576
7921
query I rowsort
SELECT cor0.col2 * ( + col0 ) + col0 + - cor0.col0 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT DISTINCT cor0.col0 + col1 AS col0 FROM tab2 cor0
----
137
38
96
query I rowsort
SELECT DISTINCT + + col2 * col0 AS col1 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT DISTINCT - + col0 * + col0 AS col0 FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT - col1 * col2 * 7 FROM tab1 AS cor0
----
-3990
-8736
-9828
query I rowsort
SELECT ALL + cor0.col2 * + ( cor0.col0 ) FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT DISTINCT cor0.col0 + - cor0.col1 FROM tab0 AS cor0
----
-2
-62
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4827
SELECT ALL + + col0 * + CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4827
SELECT ALL + + col0 * + CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT ( col0 ) + col1 - + 61 AS col2 FROM tab1
----
-32
13
32
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 7 col0 FROM tab2, tab1, tab2 AS cor0
----
-7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col0 - ( col1 ) col1 FROM tab0 AS cor0
----
-110
-132
-180
onlyif mysql # use DIV operator for integer division
query I rowsort label-4831
SELECT ALL + + cor0.col1 DIV col1 FROM tab2 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-4831
SELECT ALL + + cor0.col1 / col1 FROM tab2 AS cor0
----
1
1
1
query I rowsort
SELECT ALL col1 * + col1 FROM tab2 cor0
----
289
3481
961
query I rowsort
SELECT + col2 * col2 - - col0 FROM tab2 AS cor0
----
1523
736
754
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 82 col0 FROM tab1 AS cor0
----
-82
-82
-82
query I rowsort
SELECT + - ( + col1 ) AS col0 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT ALL - 24 * col2 FROM tab1 cor0
----
-1296
-1368
-2304
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - cor0.col2 + col2 col2 FROM tab2 AS cor0
----
52
54
76
query I rowsort
SELECT ALL + + col0 * 48 AS col0 FROM tab0 AS cor0
----
1152
1680
4272
query I rowsort
SELECT DISTINCT + 89 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
89
query I rowsort
SELECT DISTINCT - - col2 * col0 AS col1 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT + + 60 * 82 * - col1 AS col1 FROM tab0 cor0
----
-423120
-447720
-477240
query I rowsort
SELECT ALL - + ( - col1 ) AS col1 FROM tab1 cor0
----
10
13
26
query I rowsort
SELECT + col2 * col1 + col1 + 73 * - col0 FROM tab1 AS cor0
----
-4092
-4579
1211
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + 66 col2 FROM tab2 AS cor0
----
144
145
73
query I rowsort
SELECT ALL + 68 AS col2 FROM tab1 AS cor0
----
68
68
68
onlyif mysql # use DIV operator for integer division
query I rowsort label-4846
SELECT - - col1 DIV - cor0.col2 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4846
SELECT - - col1 / - cor0.col2 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-4847
SELECT DISTINCT + 53 * col2 DIV ( 89 * col1 ) AS col1 FROM tab2 AS cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-4847
SELECT DISTINCT + 53 * col2 / ( 89 * col1 ) AS col1 FROM tab2 AS cor0
----
0
1
query I rowsort
SELECT + + ( + col2 ) AS col0 FROM tab2 cor0
----
26
27
38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + col2 col2 FROM tab2
----
189
2028
3002
query I rowsort
SELECT ( - col1 ) + + tab2.col0 * col2 FROM tab2
----
158
1969
2985
query I rowsort
SELECT - cor0.col1 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f
query I rowsort
SELECT - cor0.col0 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab2 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab0 AS cor2
----
3645 values hashing to 1751d8ec783486b9121baa2709745253
query I rowsort
SELECT DISTINCT - + 67 * col1 AS col0 FROM tab1 cor0
----
-1742
-670
-871
onlyif mysql # use DIV operator for integer division
query I rowsort label-4855
SELECT ALL - cor0.col1 DIV col1 + 52 FROM tab1 cor0
----
51
51
51
skipif mysql # not compatible
query I rowsort label-4855
SELECT ALL - cor0.col1 / col1 + 52 FROM tab1 cor0
----
51
51
51
query I rowsort
SELECT ALL + + col0 - - cor0.col0 FROM tab1 AS cor0
----
128
160
6
query I rowsort
SELECT ALL + col0 * col2 + + col0 AS col1 FROM tab2 AS cor0
----
196
2106
3081
query I rowsort
SELECT ALL + 1 * - cor0.col1 + - col0 FROM tab2 cor0
----
-137
-38
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-4859
SELECT ALL col0 * - col1 + cor0.col0 * col0 * col1 + CAST( + col1 AS SIGNED ) * col2 DIV - col0 FROM tab0 cor0
----
115428
47354
712629
skipif mysql # not compatible
query I rowsort label-4859
SELECT ALL col0 * - col1 + cor0.col0 * col0 * col1 + CAST ( + col1 AS INTEGER ) * col2 / - col0 FROM tab0 cor0
----
115428
47354
712629
onlyif mysql # use DIV operator for integer division
query I rowsort label-4860
SELECT ALL - - cor0.col2 - col2 DIV col1 FROM tab2 AS cor0
----
26
27
36
skipif mysql # not compatible
query I rowsort label-4860
SELECT ALL - - cor0.col2 - col2 / col1 FROM tab2 AS cor0
----
26
27
36
query I rowsort
SELECT ALL col0 + col2 * + ( - cor0.col2 ) AS col2 FROM tab1 AS cor0
----
-2913
-3185
-9136
onlyif mysql # use DIV operator for integer division
query I rowsort label-4862
SELECT DISTINCT - col1 DIV cor0.col0 FROM tab1 AS cor0
----
-8
0
skipif mysql # not compatible
query I rowsort label-4862
SELECT DISTINCT - col1 / cor0.col0 FROM tab1 AS cor0
----
-8
0
query I rowsort
SELECT DISTINCT + col0 * + cor0.col0 + - col2 * + 83 AS col2 FROM tab1 cor0
----
-1568
-4473
-635
query I rowsort
SELECT ALL + 38 - + col2 AS col1 FROM tab2 AS cor0
----
0
11
12
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4865
SELECT CAST( + col1 AS SIGNED ) + - col2 FROM tab2
----
-21
33
4
skipif mysql # not compatible
query I rowsort label-4865
SELECT CAST ( + col1 AS INTEGER ) + - col2 FROM tab2
----
-21
33
4
query I rowsort
SELECT + col2 - ( col1 ) FROM tab2
----
-33
-4
21
query I rowsort
SELECT ALL col2 * + col2 * - 77 FROM tab1
----
-224532
-250173
-709632
query I rowsort
SELECT ALL 43 AS col1 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to ee5108f6248be48c54e069545f81c5d9
onlyif mysql # use DIV operator for integer division
query I rowsort label-4869
SELECT ALL + + col0 DIV - col0 FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-4869
SELECT ALL + + col0 / - col0 FROM tab0 AS cor0
----
-1
-1
-1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4870
SELECT ALL + CAST( NULL AS SIGNED ) * 88 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4870
SELECT ALL + CAST ( NULL AS INTEGER ) * 88 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL 69 + - 30 FROM tab0 AS cor0
----
39
39
39
query I rowsort
SELECT DISTINCT 94 AS col0 FROM tab2, tab1 AS cor0
----
94
query I rowsort
SELECT ALL + 69 FROM tab0, tab0 AS cor0, tab0 cor1
----
27 values hashing to 2810c3097fe4771e273cfff903357b40
query I rowsort
SELECT DISTINCT + ( + col0 ) * - col1 AS col0 FROM tab2
----
-1343
-217
-4602
query I rowsort
SELECT ALL - ( 94 ) * + col0 + + col2 FROM tab0 AS cor0
----
-2223
-3289
-8284
query I rowsort
SELECT 74 + 36 AS col1 FROM tab0 AS cor0
----
110
110
110
onlyif mysql # use DIV operator for integer division
query I rowsort label-4877
SELECT DISTINCT + - 80 * col0 - - col2 DIV - cor0.col2 AS col1 FROM tab0 AS cor0
----
-1921
-2801
-7121
skipif mysql # not compatible
query I rowsort label-4877
SELECT DISTINCT + - 80 * col0 - - col2 / - cor0.col2 AS col1 FROM tab0 AS cor0
----
-1921
-2801
-7121
onlyif mysql # use DIV operator for integer division
query I rowsort label-4878
SELECT ALL 25 DIV col2 + + cor0.col1 AS col0 FROM tab1 AS cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-4878
SELECT ALL 25 / col2 + + cor0.col1 AS col0 FROM tab1 AS cor0
----
10
13
26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 85 col0 FROM tab0 AS cor0
----
85
query I rowsort
SELECT + + 42 + col1 AS col0 FROM tab0 cor0
----
128
133
139
onlyif mysql # use DIV operator for integer division
query I rowsort label-4881
SELECT ALL + 92 + + 75 DIV + col1 FROM tab1 cor0
----
94
97
99
skipif mysql # not compatible
query I rowsort label-4881
SELECT ALL + 92 + + 75 / + col1 FROM tab1 cor0
----
94
97
99
query I rowsort
SELECT DISTINCT - 93 - - col2 AS col1 FROM tab2 AS cor0
----
-55
-66
-67
onlyif mysql # use DIV operator for integer division
query I rowsort label-4883
SELECT + + col0 DIV 1 + - 12 * + col2 AS col2 FROM tab1 AS cor0
----
-1072
-620
-645
skipif mysql # not compatible
query I rowsort label-4883
SELECT + + col0 / 1 + - 12 * + col2 AS col2 FROM tab1 AS cor0
----
-1072
-620
-645
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + 83 * col2 col0 FROM tab2 AS cor0
----
2132
2214
3116
query I rowsort
SELECT + col0 * + col0 FROM tab1 cor0
----
4096
6400
9
query I rowsort
SELECT - + col0 * col1 * + col2 + col2 AS col2 FROM tab1 AS cor0
----
-36423
-4158
-99744
query I rowsort
SELECT col1 - - ( col1 ) FROM tab1 AS cor0
----
20
26
52
onlyif mysql # use DIV operator for integer division
query I rowsort label-4888
SELECT + - col1 * - col2 * - col0 + col0 DIV - ( 39 + col1 ) AS col2 FROM tab2 AS cor0
----
-119652
-51035
-5859
skipif mysql # not compatible
query I rowsort label-4888
SELECT + - col1 * - col2 * - col0 + col0 / - ( 39 + col1 ) AS col2 FROM tab2 AS cor0
----
-119652
-51035
-5859
query I rowsort
SELECT ALL - col2 + - col1 AS col0 FROM tab2
----
-55
-58
-85
onlyif mysql # use DIV operator for integer division
query I rowsort label-4890
SELECT tab2.col0 DIV tab2.col1 FROM tab2
----
0
1
4
skipif mysql # not compatible
query I rowsort label-4890
SELECT tab2.col0 / tab2.col1 FROM tab2
----
0
1
4
query I rowsort
SELECT DISTINCT + 20 AS col0 FROM tab1, tab0 AS cor0
----
20
query I rowsort
SELECT col2 * + 65 AS col2 FROM tab0
----
2145
5330
65
query I rowsort
SELECT + cor0.col1 * + 9 + - col2 FROM tab2 AS cor0
----
115
252
505
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - 35 + + col2 col2 FROM tab2 AS cor0
----
1112
2091
633
query I rowsort
SELECT + - col1 * + col1 * col2 - col1 * - col0 AS col2 FROM tab1 AS cor0
----
-15184
-36426
-5060
query I rowsort
SELECT ALL 54 * - col0 FROM tab0
----
-1296
-1890
-4806
query I rowsort
SELECT ALL cor0.col0 AS col2 FROM tab0, tab0 cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63
query I rowsort
SELECT + tab0.col1 AS col0 FROM tab0, tab2 AS cor0, tab1 cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT ALL - ( col0 ) + col1 AS col0 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT + col0 + 59 FROM tab0 AS cor0
----
148
83
94
query I rowsort
SELECT ALL - 27 + + col0 * - col1 * ( ( - col1 ) ) - + 17 AS col0 FROM tab1 AS cor0
----
13476
1984
6356
query I rowsort
SELECT ALL - - 58 AS col1 FROM tab0 AS cor0
----
58
58
58
query I rowsort
SELECT + col2 + col1 AS col2 FROM tab1 cor0
----
109
67
80
query I rowsort
SELECT DISTINCT col1 * col1 + col2 AS col1 FROM tab0 AS cor0
----
7429
8363
9410
onlyif mysql # use DIV operator for integer division
query I rowsort label-4905
SELECT DISTINCT - 62 DIV col1 FROM tab2
----
-1
-2
-3
skipif mysql # not compatible
query I rowsort label-4905
SELECT DISTINCT - 62 / col1 FROM tab2
----
-1
-2
-3
query I rowsort
SELECT col1 * + col0 * col1 - - tab1.col0 FROM tab1
----
13600
2031
6464
query I rowsort
SELECT - + 49 FROM tab0 AS cor0
----
-49
-49
-49
query I rowsort
SELECT + 71 * col2 * + col2 AS col1 FROM tab0 AS cor0
----
477404
71
77319
onlyif mysql # use DIV operator for integer division
query I rowsort label-4909
SELECT ALL - - col0 DIV - CAST( - col2 AS SIGNED ) FROM tab1 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-4909
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-4910
SELECT - - col1 * - CAST( 94 * - col1 + col2 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
14638
62140
8830
skipif mysql # not compatible
query I rowsort label-4910
SELECT - - col1 * - CAST ( 94 * - col1 + col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
14638
62140
8830
query I rowsort
SELECT ALL + col1 * cor0.col1 FROM tab1 cor0
----
100
169
676
query I rowsort
SELECT DISTINCT + col2 * + col0 * - 92 + col1 FROM tab1 AS cor0
----
-14878
-335606
-706547
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 68 col2 FROM tab1 AS cor0
----
-68
-68
-68
onlyif mysql # use DIV operator for integer division
query I rowsort label-4914
SELECT - + cor0.col0 + col2 DIV + col2 AS col1 FROM tab0 AS cor0
----
-23
-34
-88
skipif mysql # not compatible
query I rowsort label-4914
SELECT - + cor0.col0 + col2 / + col2 AS col1 FROM tab0 AS cor0
----
-23
-34
-88
query I rowsort
SELECT - ( - ( + col0 ) ) + - ( 36 ) FROM tab1
----
-33
28
44
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4916
SELECT ALL + 74 + ( - col0 + - CAST( + 28 AS SIGNED ) ) AS col0 FROM tab0
----
-43
11
22
skipif mysql # not compatible
query I rowsort label-4916
SELECT ALL + 74 + ( - col0 + - CAST ( + 28 AS INTEGER ) ) AS col0 FROM tab0
----
-43
11
22
query I rowsort
SELECT DISTINCT ( col2 ) FROM tab1 cor0
----
54
57
96
query I rowsort
SELECT + cor0.col2 + + 93 AS col1 FROM tab0, tab2 AS cor0, tab0 cor1
----
27 values hashing to 91056dd0549fb51f4bf75c19315f17bf
query I rowsort
SELECT ALL col2 * col0 * + col0 + col1 * col0 AS col2 FROM tab2 AS cor0
----
1540
162786
238501
onlyif mysql # use DIV operator for integer division
query I rowsort label-4920
SELECT ALL + 52 DIV cor0.col2 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 2c74e3f73b368bd969f50cef11b55e19
skipif mysql # not compatible
query I rowsort label-4920
SELECT ALL + 52 / cor0.col2 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 2c74e3f73b368bd969f50cef11b55e19
query I rowsort
SELECT + - cor0.col1 + - cor0.col1 * col0 AS col0 FROM tab1 AS cor0
----
-104
-1053
-650
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4922
SELECT CAST( NULL AS SIGNED ) / col1 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4922
SELECT CAST ( NULL AS INTEGER ) / col1 FROM tab2 cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-4923
SELECT - 52 DIV col0 FROM tab2 cor0
----
-7
0
0
skipif mysql # not compatible
query I rowsort label-4923
SELECT - 52 / col0 FROM tab2 cor0
----
-7
0
0
query I rowsort
SELECT DISTINCT col1 * + col1 AS col0 FROM tab0 AS cor0
----
7396
8281
9409
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4925
SELECT ALL - col1 * - cor0.col2 + - CAST( col2 AS SIGNED ) + + col2 AS col1 FROM tab0 AS cor0
----
2838
7462
97
skipif mysql # not compatible
query I rowsort label-4925
SELECT ALL - col1 * - cor0.col2 + - CAST ( col2 AS INTEGER ) + + col2 AS col1 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT ALL cor0.col1 + + col0 AS col0 FROM tab0 AS cor0
----
110
132
180
onlyif mysql # use DIV operator for integer division
query I rowsort label-4927
SELECT + col2 + col2 DIV + col2 FROM tab0 AS cor0
----
2
34
83
skipif mysql # not compatible
query I rowsort label-4927
SELECT + col2 + col2 / + col2 FROM tab0 AS cor0
----
2
34
83
query I rowsort
SELECT DISTINCT + + col2 * col0 + col0 * ( col0 + - ( - col1 ) ) AS col0 FROM tab2 AS cor0
----
10586
12714
455
query I rowsort
SELECT - ( - col0 + col1 ) AS col1 FROM tab0
----
-2
-62
-62
query I rowsort
SELECT 93 AS col2 FROM tab2
----
93
93
93
onlyif mysql # use DIV operator for integer division
query I rowsort label-4931
SELECT 24 DIV cor0.col2 col2 FROM tab0 AS cor0
----
0
0
24
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4931
SELECT 24 / cor0.col2 col2 FROM tab0 AS cor0
----
0
0
24
onlyif mysql # use DIV operator for integer division
query I rowsort label-4932
SELECT col0 DIV col2 AS col2 FROM tab0 AS cor0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-4932
SELECT col0 / col2 AS col2 FROM tab0 AS cor0
----
0
1
35
query I rowsort
SELECT DISTINCT - + 36 * col0 AS col0 FROM tab2 AS cor0
----
-252
-2808
-2844
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + 93 * col0 col1 FROM tab0
----
113925
53568
736653
query I rowsort
SELECT ALL - col0 + 86 AS col2 FROM tab0
----
-3
51
62
query I rowsort
SELECT - 71 AS col2 FROM tab1
----
-71
-71
-71
query I rowsort
SELECT - 84 FROM tab0, tab2 AS cor0
----
9 values hashing to 975e2ef2a3bf1ee2622362f4e435752f
query I rowsort
SELECT ( - cor0.col1 ) FROM tab1, tab2 AS cor0
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5
query I rowsort
SELECT - ( col1 ) * + col1 FROM tab2 AS cor0
----
-289
-3481
-961
query I rowsort
SELECT + + 76 AS col1 FROM tab0 AS cor0
----
76
76
76
query I rowsort
SELECT DISTINCT - 99 * - col0 FROM tab0 AS cor0
----
2376
3465
8811
query I rowsort
SELECT ALL - + 92 AS col0 FROM tab0 AS cor0
----
-92
-92
-92
query I rowsort
SELECT 48 * - col2 FROM tab2 AS cor0
----
-1248
-1296
-1824
query I rowsort
SELECT - 45 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 71160abf09589695379a70558726f0ba
query I rowsort
SELECT DISTINCT ( + col0 + - tab0.col1 ) FROM tab0
----
-2
-62
query I rowsort
SELECT ( col0 ) * col1 * tab2.col1 + col1 FROM tab2
----
22848
271577
6758
query I rowsort
SELECT + 36 + + 23 FROM tab0 AS cor0
----
59
59
59
query I rowsort
SELECT ALL - col0 * 0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - ( - col0 ) + col1 FROM tab1 cor0
----
29
74
93
query I rowsort
SELECT DISTINCT + ( + col1 ) * col2 FROM tab1
----
1248
1404
570
query I rowsort
SELECT 78 AS col0 FROM tab2
----
78
78
78
query I rowsort
SELECT 42 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442
query I rowsort
SELECT ALL + col1 * cor0.col2 + + col1 + col2 * col2 FROM tab0 AS cor0
----
14277
195
4013
query I rowsort
SELECT ALL ( + col2 ) * + cor0.col2 + cor0.col0 AS col1 FROM tab2 AS cor0
----
1523
736
754
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 79 + col1 col2 FROM tab1
----
105
89
92
query I rowsort
SELECT DISTINCT 89 + + col1 AS col2 FROM tab0
----
175
180
186
query I rowsort
SELECT ALL + col2 + col1 + 25 FROM tab0
----
123
144
198
query I rowsort
SELECT col0 * 30 * col1 FROM tab2 AS cor0
----
138060
40290
6510
query I rowsort
SELECT DISTINCT - + col2 * 12 + col2 * - col0 AS col1 FROM tab1 AS cor0
----
-4332
-810
-8832
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * col0 col1 FROM tab0 cor0
----
35
7298
792
onlyif mysql # use DIV operator for integer division
query I rowsort label-4961
SELECT ALL - cor0.col0 DIV col1 AS col0 FROM tab2 cor0
----
-1
-4
0
skipif mysql # not compatible
query I rowsort label-4961
SELECT ALL - cor0.col0 / col1 AS col0 FROM tab2 cor0
----
-1
-4
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4962
SELECT + - col2 + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4962
SELECT + - col2 + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + - cor0.col1 * col2 FROM tab1 AS cor0
----
-1248
-1404
-570
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4964
SELECT DISTINCT - + col1 * CAST( NULL AS SIGNED ) - col1 * col0 AS col2 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4964
SELECT DISTINCT - + col1 * CAST ( NULL AS INTEGER ) - col1 * col0 AS col2 FROM tab2 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-4965
SELECT ALL + - col1 DIV - CAST( ( + col2 ) AS SIGNED ) FROM tab0 AS cor0
----
1
2
97
skipif mysql # not compatible
query I rowsort label-4965
SELECT ALL + - col1 / - CAST ( ( + col2 ) AS INTEGER ) FROM tab0 AS cor0
----
1
2
97
query I rowsort
SELECT + col2 + 45 AS col1 FROM tab1 AS cor0
----
102
141
99
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * 94 * col0 + - col2 * col1 col2 FROM tab1 AS cor0
----
-16632
-343482
-723168
query I rowsort
SELECT ALL - col2 + + 57 * + col1 AS col0 FROM tab0 cor0
----
4869
5105
5528
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * ( - cor0.col1 ) col2 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT + col0 + + 30 FROM tab0 AS cor0
----
119
54
65
query I rowsort
SELECT - col2 + + 3 FROM tab1 AS cor0
----
-51
-54
-93
onlyif mysql # use DIV operator for integer division
query I rowsort label-4972
SELECT - col0 DIV ( col1 ) + col1 * + col2 * + cor0.col2 FROM tab1 cor0
----
119802
32484
75816
skipif mysql # not compatible
query I rowsort label-4972
SELECT - col0 / ( col1 ) + col1 * + col2 * + cor0.col2 FROM tab1 cor0
----
119802
32484
75816
query I rowsort
SELECT + - col0 * 5 FROM tab1 AS cor0
----
-15
-320
-400
query I rowsort
SELECT ALL + col1 + ( + col2 ) FROM tab1 cor0
----
109
67
80
query I rowsort
SELECT col0 * - 78 FROM tab0
----
-1872
-2730
-6942
query I rowsort
SELECT DISTINCT + col1 * col2 AS col0 FROM tab2
----
1534
646
837
query I rowsort
SELECT col1 + 37 AS col2 FROM tab2
----
54
68
96
query I rowsort
SELECT - col1 * col0 + - col0 FROM tab0
----
-2088
-3430
-8188
query I rowsort
SELECT col1 * + col0 + - col0 * col2 FROM tab2
----
-1659
2574
28
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * + ( col2 ) col1 FROM tab0
----
-1
-1089
-6724
query I rowsort
SELECT ALL col2 + col0 AS col2 FROM tab2 cor0
----
104
117
34
query I rowsort
SELECT + + 45 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050
query I rowsort
SELECT col0 * + 52 + - col0 * - col2 * - col2 FROM tab0 AS cor0
----
-24888
-593808
1785
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4984
SELECT DISTINCT + - col2 + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4984
SELECT DISTINCT + - col2 + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT + col1 + 38 AS col2 FROM tab2 AS cor0
----
55
69
97
query I rowsort
SELECT + - col0 * ( col0 ) AS col0 FROM tab0 AS cor0
----
-1225
-576
-7921
query I rowsort
SELECT 25 * - col1 FROM tab1 cor0
----
-250
-325
-650
query I rowsort
SELECT + - col1 * 6 FROM tab2 AS cor0
----
-102
-186
-354
query I rowsort
SELECT - + cor0.col2 + col0 * - col2 AS col2 FROM tab1 cor0
----
-216
-3705
-7776
query I rowsort
SELECT + + 45 AS col1 FROM tab0 AS cor0
----
45
45
45
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4991
SELECT DISTINCT + CAST( col0 AS SIGNED ) FROM tab1 AS cor0
----
3
64
80
skipif mysql # not compatible
query I rowsort label-4991
SELECT DISTINCT + CAST ( col0 AS INTEGER ) FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT ALL ( - col0 ) AS col0 FROM tab0 cor0
----
-24
-35
-89
query I rowsort
SELECT + + 21 * + 4 AS col2 FROM tab1 cor0
----
84
84
84
query I rowsort
SELECT ALL + col0 * + 45 FROM tab0 AS cor0
----
1080
1575
4005
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - col2 col0 FROM tab0 AS cor0
----
-119
-173
-98
query I rowsort
SELECT - col0 * 88 FROM tab2
----
-616
-6864
-6952
query I rowsort
SELECT ALL + tab0.col2 * + tab0.col1 AS col1 FROM tab0
----
2838
7462
97
query I rowsort
SELECT ALL col1 * + 61 AS col1 FROM tab1
----
1586
610
793
query I rowsort
SELECT + col1 * ( + col0 * col0 + + col0 ) FROM tab2 AS cor0
----
107440
1736
363558
query I rowsort
SELECT ALL + col2 * 81 AS col1 FROM tab0
----
2673
6642
81
query I rowsort
SELECT + ( - 2 ) + - col1 * - ( col0 ) AS col1 FROM tab2 AS cor0
----
1341
215
4600
query I rowsort
SELECT 16 + col2 AS col0 FROM tab0 AS cor0
----
17
49
98
query I rowsort
SELECT ALL cor0.col1 * + col2 + 20 * + col0 + col1 * - 61 FROM tab2 cor0
----
-505
-914
1189
query I rowsort
SELECT + - 89 FROM tab2 AS cor0
----
-89
-89
-89
query I rowsort
SELECT ALL - - col2 * cor0.col0 + 32 * + 57 FROM tab1 AS cor0
----
1986
5472
9504
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 0 * + col0 + - col2 col0 FROM tab2 AS cor0
----
-26
-27
-38
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5007
SELECT DISTINCT + + col0 + col0 * + ( - ( + col2 ) ) * + CAST( - cor0.col0 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
1260
19032
649611
skipif mysql # not compatible
query I rowsort label-5007
SELECT DISTINCT + + col0 + col0 * + ( - ( + col2 ) ) * + CAST ( - cor0.col0 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
1260
19032
649611
query I rowsort
SELECT ALL + 3 AS col1 FROM tab0 cor0
----
3
3
3
query I rowsort
SELECT col0 + + col2 - col1 AS col2 FROM tab2 AS cor0
----
100
3
45
query I rowsort
SELECT - + col1 * cor0.col0 + - col2 FROM tab0 AS cor0
----
-2097
-3396
-8181
query I rowsort
SELECT DISTINCT - - col1 * + col2 + 81 AS col0 FROM tab2 AS cor0
----
1615
727
918
query I rowsort
SELECT - cor0.col0 * + cor0.col0 + 88 * + col0 FROM tab1 AS cor0
----
1536
255
640
query I rowsort
SELECT ALL - 31 + - col0 * col2 AS col1 FROM tab1 cor0
----
-193
-3679
-7711
query I rowsort
SELECT DISTINCT - col2 * + col0 + cor0.col1 FROM tab0 AS cor0
----
-706
-7207
62
query I rowsort
SELECT DISTINCT + ( + col1 * col2 ) - col1 FROM tab0
----
0
2752
7371
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5016
SELECT CAST( NULL AS SIGNED ) + 43 + + tab1.col2 * + col2 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5016
SELECT CAST ( NULL AS INTEGER ) + 43 + + tab1.col2 * + col2 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + tab2.col1 FROM tab2, tab2 AS cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 50 col2 FROM tab2 AS cor0
----
50
query I rowsort
SELECT + col1 + + col2 AS col0 FROM tab2 cor0
----
55
58
85
query I rowsort
SELECT col0 + col0 + 19 AS col2 FROM tab2
----
175
177
33
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5021
SELECT DISTINCT - col2 * tab0.col0 + - CAST( col0 AS SIGNED ) * col0 FROM tab0
----
-1260
-1368
-15219
skipif mysql # not compatible
query I rowsort label-5021
SELECT DISTINCT - col2 * tab0.col0 + - CAST ( col0 AS INTEGER ) * col0 FROM tab0
----
-1260
-1368
-15219
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5022
SELECT - CAST( + 70 AS SIGNED ) + cor0.col1 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to e8e0fa8a2864d65bffd87959088a59d7
skipif mysql # not compatible
query I rowsort label-5022
SELECT - CAST ( + 70 AS INTEGER ) + cor0.col1 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to e8e0fa8a2864d65bffd87959088a59d7
query I rowsort
SELECT - cor0.col0 * + 93 + col1 FROM tab0 AS cor0
----
-2146
-3158
-8186
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + - cor0.col2 col0 FROM tab1 AS cor0
----
-108
-114
-192
query I rowsort
SELECT ALL - col2 * - col2 + - col0 FROM tab0 AS cor0
----
-34
1065
6635
query I rowsort
SELECT + col0 * col1 * + col2 AS col1 FROM tab1 AS cor0
----
36480
4212
99840
query I rowsort
SELECT col0 * col1 + col0 AS col0 FROM tab2 AS cor0
----
1422
224
4680
query I rowsort
SELECT - - col1 * cor0.col2 AS col2 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT ALL - col1 * - cor0.col2 * - col2 AS col2 FROM tab0 AS cor0
----
-611884
-93654
-97
query I rowsort
SELECT DISTINCT col2 * + col1 + tab1.col2 FROM tab1
----
1344
1458
627
query I rowsort
SELECT col0 + - col0 + + col2 FROM tab0
----
1
33
82
query I rowsort
SELECT col1 * - col1 AS col1 FROM tab2 cor0
----
-289
-3481
-961
query I rowsort
SELECT col1 + + col0 * - col2 + + col1 * - col2 AS col1 FROM tab0 AS cor0
----
-14669
-35
-3544
onlyif mysql # use DIV operator for integer division
query I rowsort label-5034
SELECT DISTINCT col1 DIV col2 AS col2 FROM tab0
----
1
2
97
skipif mysql # not compatible
query I rowsort label-5034
SELECT DISTINCT col1 / col2 AS col2 FROM tab0
----
1
2
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-5035
SELECT ALL - col1 DIV - col1 FROM tab2
----
1
1
1
skipif mysql # not compatible
query I rowsort label-5035
SELECT ALL - col1 / - col1 FROM tab2
----
1
1
1
query I rowsort
SELECT - col0 FROM tab2 WHERE NOT col0 NOT IN ( col0 )
----
-7
-78
-79
query I rowsort
SELECT DISTINCT tab1.col0 * - tab1.col0 + - col2 + + col1 AS col2 FROM tab1
----
-37
-4143
-6483
onlyif mysql # use DIV operator for integer division
query I rowsort label-5038
SELECT col1 DIV + tab2.col0 AS col0 FROM tab2
----
0
0
4
skipif mysql # not compatible
query I rowsort label-5038
SELECT col1 / + tab2.col0 AS col0 FROM tab2
----
0
0
4
onlyif mysql # use DIV operator for integer division
query I rowsort label-5039
SELECT - col2 DIV tab1.col2 FROM tab1
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-5039
SELECT - col2 / tab1.col2 FROM tab1
----
-1
-1
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 + col1 col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT + col2 + - col0 * - col1 AS col2 FROM tab0 AS cor0
----
2097
3396
8181
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NULL <> col1 * col0 ) AND + col1 BETWEEN ( col0 ) AND ( - col1 + col2 + col0 )
----
query I rowsort
SELECT ALL 30 AS col0 FROM tab1
----
30
30
30
query I rowsort
SELECT + ( col0 ) + col1 * + col2 * + col1 FROM tab2
----
11061
25954
90584
query I rowsort
SELECT ALL 19 AS col2 FROM tab0
----
19
19
19
query I rowsort
SELECT ALL + tab1.col0 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870
query I rowsort
SELECT DISTINCT + col2 * - col2 + + col1 FROM tab1 AS cor0
----
-2890
-3239
-9203
query I rowsort
SELECT ALL + + col1 * col1 + col1 AS col0 FROM tab1 AS cor0
----
110
182
702
query I rowsort
SELECT col2 * col2 + col2 AS col0 FROM tab2 AS cor0
----
1482
702
756
query I rowsort
SELECT - col1 / col0 FROM tab0 WHERE NOT NULL BETWEEN col0 + col0 * - col2 AND NULL
----
query I rowsort
SELECT DISTINCT col1 - - col0 * col1 AS col2 FROM tab0
----
2150
3492
8190
query I rowsort
SELECT col2 * tab0.col0 AS col2 FROM tab0
----
35
7298
792
query I rowsort
SELECT ALL - tab2.col0 * col2 AS col0 FROM tab2
----
-189
-2028
-3002
query I rowsort
SELECT DISTINCT + col0 + + col1 * - col1 AS col0 FROM tab0
----
-7372
-8192
-9374
query I rowsort
SELECT ALL col2 FROM tab2 WHERE NOT ( NULL ) <= + col1 * - col0 / + col1 + - col1
----
query I rowsort
SELECT + col0 * col1 + col0 + - col2 AS col0 FROM tab1
----
1024
27
647
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5057
SELECT + col1 + - col0 * CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5057
SELECT + col1 + - col0 * CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - 41 FROM tab0
----
-41
-41
-41
query I rowsort
SELECT + + ( + cor0.col2 ) AS col0 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT - 23 * col1 FROM tab2 AS cor0
----
-1357
-391
-713
query I rowsort
SELECT DISTINCT + - ( col1 ) - 39 * col0 * col1 FROM tab0 AS cor0
----
-132502
-315952
-80582
query I rowsort
SELECT ALL 79 * + col1 FROM tab1 cor0
----
1027
2054
790
query I rowsort
SELECT + tab1.col0 + + col2 AS col1 FROM tab1
----
121
176
57
query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN NULL AND ( - col2 * - col2 )
----
query I rowsort
SELECT ALL col1 + tab1.col0 * + col2 FROM tab1
----
188
3658
7693
query I rowsort
SELECT col0 * + col2 - col0 AS col0 FROM tab2
----
182
1950
2923
query I rowsort
SELECT ALL + col2 + tab2.col0 FROM tab2
----
104
117
34
query I rowsort
SELECT DISTINCT col2 * + col1 FROM tab0 AS cor0 WHERE ( NULL ) <> - col1 * - col1 * + col0
----
query I rowsort
SELECT col0 + + col0 * - cor0.col0 FROM tab1 AS cor0 WHERE ( + col1 ) < NULL
----
query I rowsort
SELECT + col0 * + cor0.col0 + - col0 * - cor0.col0 AS col2 FROM tab2 cor0
----
12168
12482
98
query I rowsort
SELECT + col1 + col1 * + cor0.col1 * - col2 AS col1 FROM tab1 AS cor0
----
-16211
-36478
-5690
query I rowsort
SELECT col2 - tab2.col2 * - col1 AS col2 FROM tab2
----
1560
684
864
query I rowsort
SELECT DISTINCT - col0 * col2 * - col1 FROM tab0
----
3395
664118
68112
onlyif mysql # use DIV operator for integer division
query I rowsort label-5074
SELECT ALL + col1 * + col0 + + tab2.col0 DIV col1 FROM tab2
----
1347
217
4603
skipif mysql # not compatible
query I rowsort label-5074
SELECT ALL + col1 * + col0 + + tab2.col0 / col1 FROM tab2
----
1347
217
4603
query III rowsort
SELECT * FROM tab2 WHERE NULL IN ( - col2 )
----
query I rowsort
SELECT DISTINCT - col2 * col1 * + col2 FROM tab1
----
-119808
-32490
-75816
query I rowsort
SELECT col1 * tab0.col2 AS col1 FROM tab0 WHERE NOT col1 + col0 IN ( col1 )
----
2838
7462
97
query I rowsort
SELECT col0 + col2 + col2 * + col2 FROM tab1
----
2973
3370
9392
query III rowsort
SELECT * FROM tab1 WHERE NULL NOT IN ( tab1.col1 * col1 + - col0 * col0 )
----
query III rowsort
SELECT ALL * FROM tab2 WHERE - col2 * + col2 NOT BETWEEN ( - col0 * col1 ) AND NULL
----
7
31
27
79
17
38
query I rowsort
SELECT - col2 * col1 - col2 * col0 FROM tab0
----
-132
-14760
-3630
query I rowsort
SELECT tab0.col0 + col1 * col2 AS col1 FROM tab0
----
132
2862
7551
query I rowsort
SELECT DISTINCT col0 + - tab2.col2 * - col2 AS col0 FROM tab2
----
1523
736
754
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col0 FROM tab1 WHERE NULL >= col1
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + col2 col1 FROM tab2 AS cor0
----
52
54
76
query I rowsort
SELECT DISTINCT col1 + col1 * + col1 - + col2 FROM tab2 AS cor0
----
268
3514
965
query I rowsort
SELECT - 71 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 3907e0aa4f29c002120742c4abb3e23a
query I rowsort
SELECT - col1 + + col0 * col0 AS col0 FROM tab1 AS cor0
----
-17
4086
6387
onlyif mysql # use DIV operator for integer division
query I rowsort label-5089
SELECT DISTINCT + - col0 DIV - col2 + + col2 * col1 DIV col1 + + col1 * - col1 AS col0 FROM tab0 AS cor0
----
-7363
-8198
-9373
skipif mysql # not compatible
query I rowsort label-5089
SELECT DISTINCT + - col0 / - col2 + + col2 * col1 / col1 + + col1 * - col1 AS col0 FROM tab0 AS cor0
----
-7363
-8198
-9373
query I rowsort
SELECT col0 * - cor0.col2 + col1 AS col2 FROM tab2 AS cor0
----
-158
-1969
-2985
query I rowsort
SELECT DISTINCT + ( col1 ) + + ( col0 ) AS col2 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT + + col2 * - col2 + col2 AS col1 FROM tab1 cor0
----
-2862
-3192
-9120
query I rowsort
SELECT ALL + col2 + - col2 * col2 + - 76 AS col1 FROM tab0 AS cor0
----
-1132
-6718
-76
query I rowsort
SELECT ALL + col0 * + col2 + col0 * col1 FROM tab2 AS cor0
----
406
4345
6630
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 2 + col1 col2 FROM tab0
----
84
89
95
query I rowsort
SELECT ALL + 80 AS col1 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 6dd5038be71dffa82f5ceba787caab91
query I rowsort
SELECT - col1 * cor0.col1 + col0 + - col0 AS col1 FROM tab1 AS cor0
----
-100
-169
-676
query I rowsort
SELECT 92 + + col2 FROM tab2 AS cor0
----
118
119
130
query I rowsort
SELECT DISTINCT + + 33 * col1 + 97 FROM tab0 cor0
----
2935
3100
3298
query I rowsort
SELECT ALL - 46 AS col1 FROM tab0
----
-46
-46
-46
onlyif mysql # use DIV operator for integer division
query I rowsort label-5101
SELECT + + col2 DIV + ( + col1 + - col0 ) AS col2 FROM tab2 AS cor0
----
-1
0
1
skipif mysql # not compatible
query I rowsort label-5101
SELECT + + col2 / + ( + col1 + - col0 ) AS col2 FROM tab2 AS cor0
----
-1
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 45 col0 FROM tab1
----
45
onlyif mysql # use DIV operator for integer division
query I rowsort label-5103
SELECT + col2 DIV col1 + 90 AS col0 FROM tab1
----
92
95
97
skipif mysql # not compatible
query I rowsort label-5103
SELECT + col2 / col1 + 90 AS col0 FROM tab1
----
92
95
97
query I rowsort
SELECT ALL + + col0 + col1 * + 10 FROM tab2 AS cor0
----
249
317
668
onlyif mysql # use DIV operator for integer division
query I rowsort label-5105
SELECT DISTINCT - col0 * col2 DIV 98 AS col2 FROM tab1
----
-1
-37
-78
skipif mysql # not compatible
query I rowsort label-5105
SELECT DISTINCT - col0 * col2 / 98 AS col2 FROM tab1
----
-1
-37
-78
query I rowsort
SELECT ALL + 51 FROM tab0, tab1 cor0
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752
query I rowsort
SELECT ALL - col0 - col1 * - cor0.col0 FROM tab2 AS cor0
----
1264
210
4524
query I rowsort
SELECT ALL + ( cor0.col1 ) * cor0.col0 + - col1 * - col2 AS col0 FROM tab0 AS cor0
----
15561
3492
4902
query I rowsort
SELECT ALL + 99 + col1 AS col2 FROM tab1 AS cor0
----
109
112
125
query I rowsort
SELECT ALL - cor0.col0 * - 74 AS col0 FROM tab1 AS cor0
----
222
4736
5920
query I rowsort
SELECT - 76 * 10 AS col0 FROM tab0 AS cor0
----
-760
-760
-760
query I rowsort
SELECT DISTINCT 61 * col1 AS col0 FROM tab2 AS cor0
----
1037
1891
3599
query I rowsort
SELECT ALL - - col1 + cor0.col2 + - cor0.col1 AS col0 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT DISTINCT - cor0.col2 * 10 - cor0.col0 FROM tab2 AS cor0
----
-277
-338
-459
query I rowsort
SELECT col2 + tab1.col2 * - col2 FROM tab1
----
-2862
-3192
-9120
query I rowsort
SELECT DISTINCT + col1 - col1 * - col1 FROM tab1
----
110
182
702
query I rowsort
SELECT col0 + - col1 + + 22 AS col2 FROM tab0
----
-40
-40
20
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5118
SELECT col1 + + CAST( col1 AS SIGNED ) - tab2.col0 FROM tab2
----
-45
40
55
skipif mysql # not compatible
query I rowsort label-5118
SELECT col1 + + CAST ( col1 AS INTEGER ) - tab2.col0 FROM tab2
----
-45
40
55
query I rowsort
SELECT - 43 AS col2 FROM tab2, tab1 AS cor0, tab0 cor1
----
27 values hashing to 2f72bd9cab68c8d8c38874510a290a3c
onlyif mysql # use DIV operator for integer division
query I rowsort label-5120
SELECT col0 DIV + 32 FROM tab1
----
0
2
2
skipif mysql # not compatible
query I rowsort label-5120
SELECT col0 / + 32 FROM tab1
----
0
2
2
query I rowsort
SELECT + 70 FROM tab2
----
70
70
70
query I rowsort
SELECT ALL + ( - col2 ) * col1 + 31 FROM tab2
----
-1503
-615
-806
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 cor0, tab0, tab0 AS cor1
----
972 values hashing to 3a31dab513390ca6bd05c71a3d9c50f0
query I rowsort
SELECT ALL - 52 FROM tab1 cor0
----
-52
-52
-52
query I rowsort
SELECT DISTINCT + col1 + + 10 * col1 FROM tab1 AS cor0
----
110
143
286
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5126
SELECT ALL + CAST( 59 AS SIGNED ) + + col0 AS col2 FROM tab1 AS cor0
----
123
139
62
skipif mysql # not compatible
query I rowsort label-5126
SELECT ALL + CAST ( 59 AS INTEGER ) + + col0 AS col2 FROM tab1 AS cor0
----
123
139
62
query I rowsort
SELECT - col0 * - 28 * - cor0.col2 + - 96 AS col0 FROM tab2 AS cor0
----
-5388
-56880
-84152
query I rowsort
SELECT ALL + - 70 AS col2 FROM tab2 AS cor0
----
-70
-70
-70
query I rowsort
SELECT + 85 + + col1 * - col0 FROM tab2 AS cor0
----
-1258
-132
-4517
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col0 + - ( + col2 ) * col1 col0 FROM tab1 cor0
----
-1168
-1401
-506
query I rowsort
SELECT 26 * 91 - cor0.col0 * 36 * 5 AS col1 FROM tab1 AS cor0
----
-12034
-9154
1826
query I rowsort
SELECT - ( 25 ) + col2 AS col1 FROM tab2 cor0
----
1
13
2
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 + - col2 * cor0.col0 col0 FROM tab1 AS cor0
----
-159
-3584
-7600
query I rowsort
SELECT ALL + cor0.col2 * col2 AS col2 FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT ALL + col2 * 23 + col0 + tab0.col1 FROM tab0
----
155
2066
869
query I rowsort
SELECT - col2 + + 23 FROM tab2
----
-15
-3
-4
query I rowsort
SELECT + ( - col1 ) + col2 * - tab1.col2 + - col0 AS col1 FROM tab1
----
-2945
-3323
-9309
query I rowsort
SELECT + 34 + col2 FROM tab0
----
116
35
67
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5139
SELECT ALL CAST( NULL AS SIGNED ) + - 30 * - col2 AS col2 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5139
SELECT ALL CAST ( NULL AS INTEGER ) + - 30 * - col2 AS col2 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT ALL 87 * + col0 + col0 * col0 AS col1 FROM tab2
----
12870
13114
658
query I rowsort
SELECT 30 + col2 FROM tab2 cor0
----
56
57
68
query I rowsort
SELECT ALL - + ( col0 ) * + col1 * col2 FROM tab0 cor0
----
-3395
-664118
-68112
query I rowsort
SELECT ALL - 20 + 20 AS col0 FROM tab0
----
0
0
0
query I rowsort
SELECT + ( tab0.col0 ) AS col1 FROM tab0
----
24
35
89
query I rowsort
SELECT DISTINCT 53 AS col2 FROM tab1 AS cor0
----
53
onlyif mysql # use DIV operator for integer division
query I rowsort label-5146
SELECT + 98 * cor0.col0 + + col1 DIV col1 AS col0 FROM tab0 AS cor0
----
2353
3431
8723
skipif mysql # not compatible
query I rowsort label-5146
SELECT + 98 * cor0.col0 + + col1 / col1 AS col0 FROM tab0 AS cor0
----
2353
3431
8723
query I rowsort
SELECT - 87 AS col1 FROM tab0 AS cor0
----
-87
-87
-87
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 + + col1 * + col2 col1 FROM tab1 AS cor0
----
1152
1350
513
query I rowsort
SELECT col1 + - col2 + cor0.col1 FROM tab1 cor0
----
-2
-37
-70
onlyif mysql # use DIV operator for integer division
query I rowsort label-5150
SELECT DISTINCT + col2 DIV + col1 AS col0 FROM tab2 AS cor0
----
0
2
skipif mysql # not compatible
query I rowsort label-5150
SELECT DISTINCT + col2 / + col1 AS col0 FROM tab2 AS cor0
----
0
2
onlyif mysql # use DIV operator for integer division
query I rowsort label-5151
SELECT + - 86 DIV - col0 + + col0 FROM tab0 AS cor0
----
27
37
89
skipif mysql # not compatible
query I rowsort label-5151
SELECT + - 86 / - col0 + + col0 FROM tab0 AS cor0
----
27
37
89
query I rowsort
SELECT tab2.col1 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272
query I rowsort
SELECT ALL 42 AS col0 FROM tab0
----
42
42
42
query I rowsort
SELECT - - col2 + - col1 AS col0 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT + col2 + + col1 * - col0 AS col1 FROM tab1 AS cor0
----
-24
-583
-944
query I rowsort
SELECT col0 + cor0.col1 * - col1 AS col0 FROM tab0 AS cor0
----
-7372
-8192
-9374
query I rowsort
SELECT ALL + + cor0.col2 * col0 + + col2 AS col1 FROM tab1 AS cor0
----
216
3705
7776
query I rowsort
SELECT ALL + + col0 * col2 + + col2 * - col1 AS col0 FROM tab1 cor0
----
-1242
3078
6432
query I rowsort
SELECT + 59 * - tab0.col2 FROM tab0, tab1 cor0
----
9 values hashing to f5964bfe055e657e4761131858113067
query I rowsort
SELECT - 41 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 4ba0c102091f9cbc9fe9439b04584e70
query I rowsort
SELECT ALL + cor0.col1 + cor0.col1 * col2 AS col0 FROM tab1 AS cor0
----
1261
1430
580
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5162
SELECT col0 + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5162
SELECT col0 + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - + cor0.col1 * - 89 + 49 FROM tab2 AS cor0
----
1562
2808
5300
query I rowsort
SELECT ALL + - col0 * col1 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT DISTINCT - col2 * 73 + + col1 FROM tab0 AS cor0
----
-2323
-5895
24
onlyif mysql # use DIV operator for integer division
query I rowsort label-5166
SELECT ALL + cor0.col0 DIV - col1 AS col2 FROM tab1 AS cor0
----
-6
-6
0
skipif mysql # not compatible
query I rowsort label-5166
SELECT ALL + cor0.col0 / - col1 AS col2 FROM tab1 AS cor0
----
-6
-6
0
query I rowsort
SELECT DISTINCT + col0 * - ( - ( - col1 ) ) AS col2 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT ALL - col1 * ( col1 + cor0.col0 ) FROM tab2 AS cor0
----
-1178
-1632
-8083
query I rowsort
SELECT ALL - + col0 * + cor0.col2 + - col1 + - col0 FROM tab0 cor0
----
-167
-7478
-902
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 col0 FROM tab2 AS cor0
----
7
78
79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5171
SELECT - col1 * CAST( + col2 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570
skipif mysql # not compatible
query I rowsort label-5171
SELECT - col1 * CAST ( + col2 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT + col2 * - 28 AS col2 FROM tab2 AS cor0
----
-1064
-728
-756
query I rowsort
SELECT DISTINCT - cor0.col1 * ( col1 ) * + col1 AS col1 FROM tab2 cor0
----
-205379
-29791
-4913
query I rowsort
SELECT - + ( + col2 ) + + col1 FROM tab1 cor0
----
-28
-47
-83
query I rowsort
SELECT - - col2 + 79 FROM tab0 AS cor0
----
112
161
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 34 col2 FROM tab1 AS cor0
----
-34
query I rowsort
SELECT - ( + 1 ) * + cor0.col2 AS col0 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT + cor0.col2 + + 70 + + col2 * col0 * col1 FROM tab0 AS cor0
----
3466
664270
68215
query I rowsort
SELECT DISTINCT - 67 * col2 AS col2 FROM tab2 AS cor0
----
-1742
-1809
-2546
query I rowsort
SELECT DISTINCT + + ( 75 ) AS col2 FROM tab0 AS cor0
----
75
query I rowsort
SELECT ALL cor1.col1 AS col1 FROM tab1, tab1 cor0, tab2 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
query I rowsort
SELECT ALL - cor0.col1 * col0 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT ALL + col0 * tab2.col0 AS col0 FROM tab2
----
49
6084
6241
query I rowsort
SELECT - tab0.col2 - - col0 FROM tab0
----
-9
34
7
query I rowsort
SELECT DISTINCT 82 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
82
query I rowsort
SELECT tab0.col2 AS col0 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5187
SELECT - - cor0.col2 + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5187
SELECT - - cor0.col2 + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col2 * + cor0.col2 AS col0 FROM tab1 AS cor0
----
-2916
-3249
-9216
query I rowsort
SELECT + 17 AS col0 FROM tab1 AS cor0
----
17
17
17
query I rowsort
SELECT ALL ( 96 ) * col0 + col2 + - col1 AS col2 FROM tab2 cor0
----
668
7455
7605
query I rowsort
SELECT + col2 + - ( + cor0.col1 ) FROM tab1 cor0
----
28
47
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-5192
SELECT DISTINCT - col2 DIV 68 - + cor0.col1 FROM tab1 AS cor0
----
-10
-14
-26
skipif mysql # not compatible
query I rowsort label-5192
SELECT DISTINCT - col2 / 68 - + cor0.col1 FROM tab1 AS cor0
----
-10
-14
-26
query I rowsort
SELECT DISTINCT + 48 * 27 FROM tab0 AS cor0
----
1296
query I rowsort
SELECT ALL - col2 + + col0 * col2 FROM tab1 AS cor0
----
108
3591
7584
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - 23 * col0 col0 FROM tab2 AS cor0
----
-168
-1872
-1896
query I rowsort
SELECT ALL - 36 * col0 AS col2 FROM tab2 AS cor0
----
-252
-2808
-2844
onlyif mysql # use DIV operator for integer division
query I rowsort label-5197
SELECT + cor0.col0 * col1 DIV 62 + col0 DIV col2 + + ( + 77 ) * col1 FROM tab0 AS cor0
----
6655
7138
7558
skipif mysql # not compatible
query I rowsort label-5197
SELECT + cor0.col0 * col1 / 62 + col0 / col2 + + ( + 77 ) * col1 FROM tab0 AS cor0
----
6655
7138
7558
query I rowsort
SELECT ALL tab0.col0 * + col0 AS col0 FROM tab0
----
1225
576
7921
query I rowsort
SELECT - col2 * + cor0.col1 + + 96 FROM tab0 AS cor0
----
-1
-2742
-7366
onlyif mysql # use DIV operator for integer division
query I rowsort label-5200
SELECT + col1 DIV + col0 col1 FROM tab0 AS cor0
----
1
2
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5200
SELECT + col1 / + col0 col1 FROM tab0 AS cor0
----
1
2
3
query I rowsort
SELECT - cor0.col2 - - col2 AS col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT - - 1 * col1 + col2 FROM tab0 AS cor0
----
119
173
98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * + cor0.col1 col1 FROM tab0 AS cor0
----
-2838
-7462
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col1 * - 18 col0 FROM tab1 AS cor0
----
-12168
-1800
-3042
query I rowsort
SELECT - col0 * + col0 + cor0.col1 * + col0 AS col0 FROM tab2 AS cor0
----
-1482
-4898
168
query I rowsort
SELECT + + 3 * - 83 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 128e0b6c997ec679646ca4c55624a771
onlyif mysql # use DIV operator for integer division
query I rowsort label-5207
SELECT + + col1 + col0 DIV - col2 AS col0 FROM tab0 cor0
----
62
86
90
skipif mysql # not compatible
query I rowsort label-5207
SELECT + + col1 + col0 / - col2 AS col0 FROM tab0 cor0
----
62
86
90
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5208
SELECT DISTINCT col1 * CAST( NULL AS SIGNED ) + 0 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5208
SELECT DISTINCT col1 * CAST ( NULL AS INTEGER ) + 0 FROM tab0 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-5209
SELECT ALL + - col2 * 14 + - col0 DIV col0 AS col1 FROM tab0 AS cor0
----
-1149
-15
-463
skipif mysql # not compatible
query I rowsort label-5209
SELECT ALL + - col2 * 14 + - col0 / col0 AS col1 FROM tab0 AS cor0
----
-1149
-15
-463
query I rowsort
SELECT DISTINCT + col1 + - 76 FROM tab1 AS cor0
----
-50
-63
-66
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 + 55 * col0 col0 FROM tab0 AS cor0
----
1344
1960
4984
query I rowsort
SELECT ALL - + col2 + + 97 FROM tab2 cor0
----
59
70
71
query I rowsort
SELECT DISTINCT + col2 * ( + col0 ) FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT + + col2 * + cor0.col2 * col0 + col1 AS col1 FROM tab2 AS cor0
----
114093
5134
52787
query I rowsort
SELECT ALL - col2 + ( - col2 + col0 ) * ( - col2 ) AS col0 FROM tab0 AS cor0
----
-35
-656
264
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * col1 col0 FROM tab0 AS cor0
----
7396
8281
9409
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + col1 * - col1 + - cor0.col2 col2 FROM tab1 cor0
----
-13616
-2082
-6457
query I rowsort
SELECT DISTINCT - - col2 * + ( col2 + + cor0.col2 ) AS col2 FROM tab2 AS cor0
----
1352
1458
2888
query I rowsort
SELECT + 87 AS col0 FROM tab1 AS cor0
----
87
87
87
query I rowsort
SELECT DISTINCT col0 + + 62 AS col2 FROM tab0 AS cor0
----
151
86
97
query I rowsort
SELECT ALL + ( + col0 ) * col0 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT cor0.col0 + col1 AS col1 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT DISTINCT - tab1.col2 FROM tab1, tab2 AS cor0, tab2, tab0 cor1
----
-54
-57
-96
query I rowsort
SELECT col0 + 64 FROM tab2
----
142
143
71
query I rowsort
SELECT + - cor0.col2 + - cor0.col0 * + ( + col0 ) AS col0 FROM tab2 AS cor0
----
-6110
-6279
-76
query I rowsort
SELECT - 31 FROM tab1 AS cor0 CROSS JOIN tab2, tab1 AS cor1
----
27 values hashing to c6c8eebeb1a59f7c046402e25630c0ac
query I rowsort
SELECT DISTINCT + cor0.col1 + col1 FROM tab1 AS cor0
----
20
26
52
query I rowsort
SELECT DISTINCT + + ( - col1 ) * + col2 + + ( - col2 ) FROM tab1 AS cor0
----
-1344
-1458
-627
query I rowsort
SELECT DISTINCT - + col2 + col1 + col0 * col0 FROM tab2 cor0
----
53
6117
6220
query I rowsort
SELECT 3 AS col2 FROM tab0
----
3
3
3
query I rowsort
SELECT 56 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to b5ba4b44e3deadce1edb30e76df61200
query I rowsort
SELECT DISTINCT col0 - - col1 FROM tab2
----
137
38
96
query I rowsort
SELECT DISTINCT - ( col1 ) - - 57 FROM tab1
----
31
44
47
query I rowsort
SELECT col2 - col0 * + col2 FROM tab2
----
-162
-2002
-2964
onlyif mysql # use DIV operator for integer division
query I rowsort label-5235
SELECT col2 DIV col2 + tab0.col1 FROM tab0
----
87
92
98
skipif mysql # not compatible
query I rowsort label-5235
SELECT col2 / col2 + tab0.col1 FROM tab0
----
87
92
98
query I rowsort
SELECT ALL + col1 - - col1 * 75 FROM tab2
----
1292
2356
4484
query I rowsort
SELECT DISTINCT + ( - col0 ) AS col1 FROM tab1
----
-3
-64
-80
query I rowsort
SELECT 59 AS col0 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to e29fef8cdec1ee45a71d213f16d2f1d3
query I rowsort
SELECT 81 * + tab0.col2 FROM tab0
----
2673
6642
81
query I rowsort
SELECT - 71 + col0 - col1 AS col2 FROM tab0
----
-133
-133
-73
query I rowsort
SELECT col0 * col2 + - col0 + - tab2.col0 AS col0 FROM tab2
----
175
1872
2844
onlyif mysql # use DIV operator for integer division
query I rowsort label-5242
SELECT col2 + + col2 DIV 34 FROM tab0
----
1
33
84
skipif mysql # not compatible
query I rowsort label-5242
SELECT col2 + + col2 / 34 FROM tab0
----
1
33
84
query I rowsort
SELECT DISTINCT + - 49 FROM tab1, tab1 cor0
----
-49
query I rowsort
SELECT + + col2 * cor0.col1 + 59 AS col0 FROM tab1 AS cor0
----
1307
1463
629
query I rowsort
SELECT DISTINCT 10 AS col1 FROM tab0, tab2 AS cor0
----
10
query I rowsort
SELECT + - 23 * col1 FROM tab2 AS cor0
----
-1357
-391
-713
query I rowsort
SELECT - + col2 * - col1 + 4 FROM tab2 AS cor0
----
1538
650
841
query I rowsort
SELECT DISTINCT - 33 + col1 AS col0 FROM tab0
----
53
58
64
query I rowsort
SELECT - ( + 43 * tab0.col2 ) FROM tab0
----
-1419
-3526
-43
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + col1 col2 FROM tab0 AS cor0
----
119
173
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-5251
SELECT DISTINCT + ( - col2 ) DIV col2 + ( - col1 ) * + col2 * - col0 - 44 FROM tab1 AS cor0
----
36435
4167
99795
skipif mysql # not compatible
query I rowsort label-5251
SELECT DISTINCT + ( - col2 ) / col2 + ( - col1 ) * + col2 * - col0 - 44 FROM tab1 AS cor0
----
36435
4167
99795
query I rowsort
SELECT + cor0.col1 + col1 - + col1 AS col1 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT ALL + ( 86 ) FROM tab1 AS cor0
----
86
86
86
query I rowsort
SELECT DISTINCT - - col0 * - 57 FROM tab2 AS cor0
----
-399
-4446
-4503
onlyif mysql # use DIV operator for integer division
query I rowsort label-5255
SELECT - col0 * - col1 * cor0.col2 + + col1 DIV - col2 + col1 col2 FROM tab1 AS cor0
----
36490
4238
99853
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5255
SELECT - col0 * - col1 * cor0.col2 + + col1 / - col2 + col1 col2 FROM tab1 AS cor0
----
36490
4238
99853
query I rowsort
SELECT ALL - 7 FROM tab0 AS cor0
----
-7
-7
-7
onlyif mysql # use DIV operator for integer division
query I rowsort label-5257
SELECT col1 DIV + col0 + + col1 DIV + 50 - 28 FROM tab1 AS cor0
----
-20
-28
-28
skipif mysql # not compatible
query I rowsort label-5257
SELECT col1 / + col0 + + col1 / + 50 - 28 FROM tab1 AS cor0
----
-20
-28
-28
query I rowsort
SELECT ALL + - 37 * col0 + + col2 AS col0 FROM tab0 cor0
----
-1294
-3211
-855
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( - col2 AS REAL ) * col2 AS col2 FROM tab1 AS cor0
----
-2916
-3249
-9216
query I rowsort
SELECT 11 * col2 FROM tab2 AS cor0
----
286
297
418
query I rowsort
SELECT + - 67 + ( col1 * - col0 ) FROM tab2 AS cor0
----
-1410
-284
-4669
query I rowsort
SELECT ALL + - col0 + - 39 AS col2 FROM tab1 AS cor0
----
-103
-119
-42
query I rowsort
SELECT 21 + col0 + - 90 AS col0 FROM tab1 AS cor0
----
-5
-66
11
query I rowsort
SELECT col0 * + col2 + col2 FROM tab2 AS cor0
----
2054
216
3040
query I rowsort
SELECT DISTINCT 90 * + col1 + col2 * 20 FROM tab1 AS cor0
----
2040
3090
3420
query I rowsort
SELECT 27 * - col2 FROM tab1 cor0
----
-1458
-1539
-2592
query I rowsort
SELECT + 27 + col0 AS col0 FROM tab2 AS cor0
----
105
106
34
query I rowsort
SELECT ( col1 ) * ( - cor0.col2 ) + col0 AS col1 FROM tab1 AS cor0
----
-1168
-1401
-506
query I rowsort
SELECT ALL - - col2 + ( - col0 + - col2 ) FROM tab2 cor0
----
-7
-78
-79
query I rowsort
SELECT ALL - - col2 * + 4 FROM tab1 AS cor0
----
216
228
384
onlyif mysql # use DIV operator for integer division
query I rowsort label-5271
SELECT DISTINCT - col1 DIV - col0 + - col2 AS col1 FROM tab1 AS cor0
----
-46
-57
-96
skipif mysql # not compatible
query I rowsort label-5271
SELECT DISTINCT - col1 / - col0 + - col2 AS col1 FROM tab1 AS cor0
----
-46
-57
-96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5272
SELECT + CAST( NULL AS SIGNED ) FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-5272
SELECT + CAST ( NULL AS INTEGER ) FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT + col2 + + cor0.col2 * + 58 AS col0 FROM tab1 AS cor0
----
3186
3363
5664
query I rowsort
SELECT DISTINCT + col0 * - ( + col0 ) AS col0 FROM tab1 AS cor0
----
-4096
-6400
-9
query I rowsort
SELECT - cor0.col0 * - 1 AS col1 FROM tab0 AS cor0
----
24
35
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 32 col0 FROM tab2
----
-32
-32
-32
query I rowsort
SELECT ( - 46 ) + col0 AS col0 FROM tab0 AS cor0
----
-11
-22
43
query I rowsort
SELECT + col0 * + col1 + col2 * - col0 + - col2 FROM tab1 AS cor0
----
-138
-3065
-6736
query I rowsort
SELECT DISTINCT + + cor0.col1 * - cor0.col2 AS col1 FROM tab2 cor0
----
-1534
-646
-837
onlyif mysql # use DIV operator for integer division
query I rowsort label-5280
SELECT ALL - col2 + - col1 DIV + col1 FROM tab0 AS cor0
----
-2
-34
-83
skipif mysql # not compatible
query I rowsort label-5280
SELECT ALL - col2 + - col1 / + col1 FROM tab0 AS cor0
----
-2
-34
-83
query I rowsort
SELECT 67 + - col1 AS col2 FROM tab2 AS cor0
----
36
50
8
query I rowsort
SELECT ALL + - 60 * + col1 * - cor0.col2 FROM tab0 AS cor0
----
170280
447720
5820
query I rowsort
SELECT + col1 * 33 AS col1 FROM tab1 AS cor0
----
330
429
858
query I rowsort
SELECT DISTINCT - cor0.col1 AS col0 FROM tab0, tab1, tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT col0 * ( - col0 ) AS col0 FROM tab2
----
-49
-6084
-6241
query I rowsort
SELECT DISTINCT - col2 + + col0 - + 17 FROM tab0
----
-10
-26
17
query I rowsort
SELECT ALL 24 * - cor0.col2 AS col2 FROM tab2 cor0
----
-624
-648
-912
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab2 AS cor2, tab0 AS cor3
----
3645 values hashing to 489b7b2b5c4980d50e86e51be30361c3
query I rowsort
SELECT 5 AS col1 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 6797d40099023779b89feb627d94a3e7
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab2 cor2
----
972 values hashing to 958533d1a7bf61199ed7c03eadf37f9a
onlyif mysql # use DIV operator for integer division
query I rowsort label-5291
SELECT ALL + col0 + - 54 DIV + col2 col2 FROM tab1
----
2
64
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5291
SELECT ALL + col0 + - 54 / + col2 col2 FROM tab1
----
2
64
80
query I rowsort
SELECT ALL - 72 * - 76 + + col2 FROM tab0
----
5473
5505
5554
query I rowsort
SELECT ALL + 23 FROM tab1
----
23
23
23
query I rowsort
SELECT + 10 + - ( col2 ) AS col1 FROM tab0
----
-23
-72
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-5295
SELECT CAST( + 63 AS SIGNED ) DIV - col2 + - 75 FROM tab1
----
-75
-76
-76
skipif mysql # not compatible
query I rowsort label-5295
SELECT CAST ( + 63 AS INTEGER ) / - col2 + - 75 FROM tab1
----
-75
-76
-76
query I rowsort
SELECT tab2.col0 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5297
SELECT ALL CAST( NULL AS SIGNED ) AS col0 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-5297
SELECT ALL CAST ( NULL AS INTEGER ) AS col0 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT DISTINCT + col2 + - ( - cor0.col1 ) AS col2 FROM tab2 AS cor0
----
55
58
85
onlyif mysql # use DIV operator for integer division
query I rowsort label-5299
SELECT + - col0 + + 21 DIV col0 - col2 AS col1 FROM tab0 AS cor0
----
-171
-36
-57
skipif mysql # not compatible
query I rowsort label-5299
SELECT + - col0 + + 21 / col0 - col2 AS col1 FROM tab0 AS cor0
----
-171
-36
-57
query I rowsort
SELECT ALL - 82 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to f800b0aad28b82b2deb67f7045c9a45c
query I rowsort
SELECT 68 AS col1 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 10aa25f1c6b97582c34521ac6452e0b4
query I rowsort
SELECT - 49 FROM tab2 AS cor0
----
-49
-49
-49
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * col1 + col0 col2 FROM tab0 AS cor0
----
-2814
-62
-7373
query I rowsort
SELECT DISTINCT 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-5305
SELECT CAST( NULL AS SIGNED ) / + 75 col0 FROM tab2 cor0 CROSS JOIN tab0, tab2 cor1, tab1 AS cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5305
SELECT CAST ( NULL AS INTEGER ) / + 75 col0 FROM tab2 cor0 CROSS JOIN tab0, tab2 cor1, tab1 AS cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c
query I rowsort
SELECT DISTINCT + col2 + ( cor0.col2 ) FROM tab2 AS cor0
----
52
54
76
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5307
SELECT + col0 * CAST( cor0.col2 AS SIGNED ) FROM tab1 cor0
----
162
3648
7680
skipif mysql # not compatible
query I rowsort label-5307
SELECT + col0 * CAST ( cor0.col2 AS INTEGER ) FROM tab1 cor0
----
162
3648
7680
query I rowsort
SELECT DISTINCT - col0 - col1 AS col2 FROM tab2 AS cor0
----
-137
-38
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 + 84 * col0 * + col1 col1 FROM tab2 AS cor0
----
112733
18221
386490
query I rowsort
SELECT DISTINCT col0 - cor0.col1 AS col0 FROM tab0 AS cor0
----
-2
-62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * + cor0.col0 * + col0 col1 FROM tab2 AS cor0
----
-1323
-158184
-237158
onlyif mysql # use DIV operator for integer division
query I rowsort label-5312
SELECT ALL + col1 * + 35 + col2 + col1 * col0 DIV - col0 AS col1 FROM tab0 AS cor0
----
2957
3176
3299
skipif mysql # not compatible
query I rowsort label-5312
SELECT ALL + col1 * + 35 + col2 + col1 * col0 / - col0 AS col1 FROM tab0 AS cor0
----
2957
3176
3299
query I rowsort
SELECT DISTINCT - + col0 * 17 + col0 AS col2 FROM tab0 AS cor0
----
-1424
-384
-560
query I rowsort
SELECT ALL + col1 * - 42 + + col0 * cor0.col1 AS col0 FROM tab1 AS cor0
----
-1014
220
494
query I rowsort
SELECT + 19 AS col2 FROM tab2 AS cor0
----
19
19
19
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5316
SELECT ALL - ( col0 ) + CAST( - col2 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-104
-117
-34
skipif mysql # not compatible
query I rowsort label-5316
SELECT ALL - ( col0 ) + CAST ( - col2 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-104
-117
-34
query I rowsort
SELECT ALL - ( + col2 * col0 ) AS col1 FROM tab2
----
-189
-2028
-3002
query I rowsort
SELECT ( + 13 ) * col1 * col1 FROM tab2
----
12493
3757
45253
query I rowsort
SELECT ALL - 3 AS col1 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 65b7e16aaa7821ace3a45a9846ffa166
query I rowsort
SELECT ALL 54 AS col0 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 81150d59d6c3fc48b4ef5a4a5495bc7a
query I rowsort
SELECT 36 * col0 FROM tab1
----
108
2304
2880
onlyif mysql # use DIV operator for integer division
query I rowsort label-5322
SELECT + col1 + + col2 DIV 12 AS col1 FROM tab0
----
88
97
97
skipif mysql # not compatible
query I rowsort label-5322
SELECT + col1 + + col2 / 12 AS col1 FROM tab0
----
88
97
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col1 col0 FROM tab2 AS cor0
----
118
34
62
query I rowsort
SELECT ALL + + 33 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5
query I rowsort
SELECT - - cor0.col0 * col2 + col1 AS col1 FROM tab0 AS cor0
----
132
7389
878
query I rowsort
SELECT + 11 * col0 + col1 * + 78 FROM tab0 cor0
----
6972
7951
8077
query I rowsort
SELECT + + 21 + col0 AS col1 FROM tab2 AS cor0
----
100
28
99
query I rowsort
SELECT ALL - cor0.col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f
query I rowsort
SELECT col2 * ( - col1 * + col0 ) AS col1 FROM tab1 cor0
----
-36480
-4212
-99840
query I rowsort
SELECT - 71 * 11 AS col2 FROM tab1, tab0 cor0
----
9 values hashing to 612a6d8fc2a1c699b12064c27c663c2e
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 + col2 + - col2 * + col1 FROM tab1 AS cor0
----
-1056
-1296
-456
query I rowsort
SELECT cor0.col0 * ( 74 ) FROM tab0, tab1 AS cor0
----
9 values hashing to 314cebf370507b1cedc0561e8db534e5
query I rowsort
SELECT DISTINCT col1 + 96 FROM tab2
----
113
127
155
query I rowsort
SELECT + cor0.col0 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a
onlyif mysql # use DIV operator for integer division
query I rowsort label-5336
SELECT - cor0.col1 + col0 DIV + col2 FROM tab1 AS cor0
----
-13
-26
-9
skipif mysql # not compatible
query I rowsort label-5336
SELECT - cor0.col1 + col0 / + col2 FROM tab1 AS cor0
----
-13
-26
-9
query I rowsort
SELECT tab1.col1 + - 5 + col0 AS col1 FROM tab1
----
24
69
88
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col1 + - col0 col1 FROM tab0 AS cor0
----
-132
-2862
-7551
query I rowsort
SELECT DISTINCT - cor0.col2 * cor0.col0 AS col2 FROM tab0, tab1 AS cor0
----
-162
-3648
-7680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * cor0.col2 - - col1 col2 FROM tab0 AS cor0
----
1175
6815
98
query I rowsort
SELECT 10 - col0 FROM tab2 AS cor0
----
-68
-69
3
query I rowsort
SELECT ALL - 15 + col1 FROM tab1 AS cor0
----
-2
-5
11
query I rowsort
SELECT - ( + 38 ) * col1 AS col2 FROM tab0 AS cor0
----
-3268
-3458
-3686
query I rowsort
SELECT ALL + col2 * 56 FROM tab0 AS cor0
----
1848
4592
56
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5345
SELECT ALL + - CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5345
SELECT ALL + - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col0 + - 48 FROM tab1 AS cor0
----
-112
-128
-51
query I rowsort
SELECT 78 FROM tab0 AS cor0
----
78
78
78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 88 * - 51 - col0 col2 FROM tab1 AS cor0
----
-4491
-4552
-4568
query I rowsort
SELECT DISTINCT + ( + ( - col0 ) ) AS col1 FROM tab0 cor0
----
-24
-35
-89
query I rowsort
SELECT ALL - 65 + + col2 AS col1 FROM tab1 AS cor0
----
-11
-8
31
query I rowsort
SELECT - ( col0 ) * - col0 + - col2 - col2 * ( - col0 ) FROM tab2 AS cor0
----
211
8086
9205
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 49 + + col0 col1 FROM tab0 AS cor0
----
138
73
84
query I rowsort
SELECT - 98 FROM tab0, tab2 AS cor0, tab2 AS cor1, tab0 cor2
----
81 values hashing to b6a3c9eea26c3759e6417d75f38258d1
query I rowsort
SELECT ALL + 60 * - col2 FROM tab2 AS cor0
----
-1560
-1620
-2280
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0 AS cor0 CROSS JOIN tab1, tab2 cor1
----
972 values hashing to 49c8bf3e931a898ba7af63d0e377eb79
query I rowsort
SELECT - 86 + - col2 FROM tab0
----
-119
-168
-87
onlyif mysql # use DIV operator for integer division
query I rowsort label-5357
SELECT + 99 DIV 88 AS col2 FROM tab1
----
1
1
1
skipif mysql # not compatible
query I rowsort label-5357
SELECT + 99 / 88 AS col2 FROM tab1
----
1
1
1
query I rowsort
SELECT cor0.col2 * col2 + cor0.col0 AS col0 FROM tab2 AS cor0
----
1523
736
754
query I rowsort
SELECT ALL + cor0.col2 * col0 + + 84 AS col1 FROM tab2 AS cor0
----
2112
273
3086
query I rowsort
SELECT - ( - 79 ) * - cor0.col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 799eb6b46fc85c8f7962a894fde3ea6b
onlyif mysql # use DIV operator for integer division
query I rowsort label-5361
SELECT - + col1 * cor0.col0 DIV col0 FROM tab2 AS cor0
----
-17
-31
-59
skipif mysql # not compatible
query I rowsort label-5361
SELECT - + col1 * cor0.col0 / col0 FROM tab2 AS cor0
----
-17
-31
-59
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5362
SELECT + CAST( col0 AS SIGNED ) * col1 AS col1 FROM tab2 AS cor0
----
1343
217
4602
skipif mysql # not compatible
query I rowsort label-5362
SELECT + CAST ( col0 AS INTEGER ) * col1 AS col1 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT ALL + - col0 + col0 * col1 FROM tab0 AS cor0
----
2040
3360
8010
onlyif mysql # use DIV operator for integer division
query I rowsort label-5364
SELECT - col0 * col0 DIV + cor0.col0 FROM tab1 cor0
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-5364
SELECT - col0 * col0 / + cor0.col0 FROM tab1 cor0
----
-3
-64
-80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - ( col2 ) ) col0 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT - + col1 * + ( - col1 ) AS col1 FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT + col2 - tab2.col2 FROM tab2
----
0
0
0
query I rowsort
SELECT ALL 24 * - col1 FROM tab2
----
-1416
-408
-744
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - col2 ) * 29 col2 FROM tab2 AS cor0
----
1102
754
783
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5370
SELECT ALL col2 * col0 - + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5370
SELECT ALL col2 * col0 - + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - - col2 + + col2 * + 73 FROM tab2 AS cor0
----
1924
1998
2812
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + col1 col1 FROM tab1 cor0
----
1040
640
78
query I rowsort
SELECT DISTINCT - 98 * + col2 + - 73 * - col1 - col2 FROM tab0 cor0
----
-1475
3011
6982
query I rowsort
SELECT ALL + tab1.col2 AS col0 FROM tab1, tab0 cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17
query I rowsort
SELECT DISTINCT + cor0.col2 AS col1 FROM tab2, tab1 AS cor0, tab2 cor1
----
54
57
96
query I rowsort
SELECT + 7 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76
query I rowsort
SELECT ALL tab2.col2 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
query I rowsort
SELECT DISTINCT + col0 + 39 AS col1 FROM tab2 AS cor0
----
117
118
46
query I rowsort
SELECT - col2 * ( col0 ) + + col2 AS col0 FROM tab1 cor0
----
-108
-3591
-7584
onlyif mysql # use DIV operator for integer division
query I rowsort label-5380
SELECT DISTINCT - cor0.col0 DIV - col0 FROM tab2 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-5380
SELECT DISTINCT - cor0.col0 / - col0 FROM tab2 AS cor0
----
1
query I rowsort
SELECT - col1 + + 87 FROM tab2 AS cor0
----
28
56
70
query I rowsort
SELECT DISTINCT - - col1 * - ( col2 ) AS col0 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT + col0 + - col2 + + col0 * col1 * col2 FROM tab2 AS cor0
----
119704
51075
5839
query I rowsort
SELECT DISTINCT - col1 * cor0.col2 + - col0 FROM tab1 cor0
----
-1328
-1407
-634
query I rowsort
SELECT col1 * - 57 + col0 AS col2 FROM tab2 AS cor0
----
-1760
-3285
-890
query I rowsort
SELECT - 21 + - 24 * col2 FROM tab1
----
-1317
-1389
-2325
query I rowsort
SELECT ALL - 40 * - ( + col1 * + col1 + + 82 ) FROM tab1
----
10040
30320
7280
query I rowsort
SELECT ALL - col0 + 99 AS col1 FROM tab1 AS cor0
----
19
35
96
query I rowsort
SELECT DISTINCT 86 FROM tab1 AS cor0
----
86
query I rowsort
SELECT col2 * - col0 + col0 AS col0 FROM tab0 AS cor0
----
-7209
-768
0
query I rowsort
SELECT ALL - + 32 + col0 FROM tab0 AS cor0
----
-8
3
57
query I rowsort
SELECT ALL col0 * - col1 AS col0 FROM tab0 cor0
----
-2064
-3395
-8099
query I rowsort
SELECT - ( col0 ) + col2 * 1 AS col2 FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT ALL - 16 * col0 AS col0 FROM tab1 AS cor0
----
-1024
-1280
-48
query I rowsort
SELECT cor0.col2 * col0 AS col2 FROM tab1 cor0
----
162
3648
7680
query I rowsort
SELECT ALL - col2 * - cor0.col2 AS col2 FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT + 35 * col0 AS col0 FROM tab2 AS cor0
----
245
2730
2765
query I rowsort
SELECT ALL + col0 * + col2 + - col2 FROM tab1 AS cor0
----
108
3591
7584
query I rowsort
SELECT 12 * - cor0.col0 AS col0 FROM tab2 AS cor0
----
-84
-936
-948
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 * - col2 * - col0 col1 FROM tab1 AS cor0
----
36480
4212
99840
query I rowsort
SELECT DISTINCT - + col2 * cor0.col1 FROM tab0 cor0
----
-2838
-7462
-97
query I rowsort
SELECT + - col1 * - col0 FROM tab1 cor0
----
1040
640
78
query I rowsort
SELECT DISTINCT + + 73 * - col0 AS col0 FROM tab1 AS cor0
----
-219
-4672
-5840
query I rowsort
SELECT ALL ( 86 ) * col0 FROM tab1
----
258
5504
6880
query I rowsort
SELECT DISTINCT col2 * + ( - col1 ) FROM tab2
----
-1534
-646
-837
query I rowsort
SELECT - - ( col0 ) AS col2 FROM tab0 cor0
----
24
35
89
query I rowsort
SELECT DISTINCT ( cor0.col0 ) AS col2 FROM tab1 AS cor0
----
3
64
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 90 * col0 + - 80 - + 64 col0 FROM tab1 AS cor0
----
126
5616
7056
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 59 col2 FROM tab0
----
59
59
59
query I rowsort
SELECT DISTINCT - - 44 + - cor0.col2 + - col2 * - 30 * - col1 FROM tab1 AS cor0
----
-17113
-37492
-42130
query I rowsort
SELECT ALL 66 * col2 FROM tab1 AS cor0
----
3564
3762
6336
query I rowsort
SELECT 79 AS col1 FROM tab0, tab2 cor0, tab0 AS cor1
----
27 values hashing to 4857f2e1b1dbd184de4827f145dd02a1
query I rowsort
SELECT col1 * - cor0.col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT + - col0 + + ( - col1 ) * col1 FROM tab1 cor0
----
-164
-249
-679
query I rowsort
SELECT - 87 AS col1 FROM tab0
----
-87
-87
-87
onlyif mysql # use DIV operator for integer division
query I rowsort label-5416
SELECT ALL - col2 DIV col2 AS col1 FROM tab0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-5416
SELECT ALL - col2 / col2 AS col1 FROM tab0
----
-1
-1
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - col0 * col2 col2 FROM tab2 AS cor0
----
-158
-1969
-2985
query I rowsort
SELECT + cor0.col2 + col0 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT ALL - + col2 * col1 + cor0.col0 AS col0 FROM tab2 cor0
----
-1456
-567
-830
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 2 col1 FROM tab1 AS cor0
----
2
2
2
onlyif mysql # use DIV operator for integer division
query I rowsort label-5421
SELECT DISTINCT + - 23 + col0 * cor0.col0 DIV + ( col0 ) + + col1 AS col1 FROM tab1 AS cor0
----
51
6
70
skipif mysql # not compatible
query I rowsort label-5421
SELECT DISTINCT + - 23 + col0 * cor0.col0 / + ( col0 ) + + col1 AS col1 FROM tab1 AS cor0
----
51
6
70
query I rowsort
SELECT - + col1 * + 1 + col2 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT DISTINCT - col1 + + 28 AS col1 FROM tab0
----
-58
-63
-69
query I rowsort
SELECT - col0 + 23 * 13 AS col1 FROM tab2
----
220
221
292
query I rowsort
SELECT DISTINCT col1 * ( 90 ) * + col2 + col2 FROM tab0
----
255453
671662
8731
onlyif mysql # use DIV operator for integer division
query I rowsort label-5426
SELECT DISTINCT col0 * col2 * + col2 + - col2 * CAST( - 53 AS SIGNED ) DIV - col2 AS col1 FROM tab1
----
207883
737227
8695
skipif mysql # not compatible
query I rowsort label-5426
SELECT DISTINCT col0 * col2 * + col2 + - col2 * CAST ( - 53 AS INTEGER ) / - col2 AS col1 FROM tab1
----
207883
737227
8695
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5427
SELECT - 76 - + cor0.col0 * - CAST( NULL AS SIGNED ) AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-5427
SELECT - 76 - + cor0.col0 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT ( 47 ) * col0 AS col0 FROM tab2 AS cor0
----
329
3666
3713
query I rowsort
SELECT ALL ( ( col2 ) ) * ( col0 ) AS col2 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT DISTINCT - - 52 * 68 AS col0 FROM tab2 AS cor0
----
3536
query I rowsort
SELECT - - 49 FROM tab2 cor0
----
49
49
49
onlyif mysql # use DIV operator for integer division
query I rowsort label-5432
SELECT ALL - col0 DIV col0 + col2 * 81 + col1 * col0 FROM tab2 AS cor0
----
2403
4420
6707
skipif mysql # not compatible
query I rowsort label-5432
SELECT ALL - col0 / col0 + col2 * 81 + col1 * col0 FROM tab2 AS cor0
----
2403
4420
6707
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - ( + col1 ) + col1 col2 FROM tab1 AS cor0
----
20
26
52
query I rowsort
SELECT ALL + - ( ( - col1 ) ) AS col1 FROM tab0 cor0
----
86
91
97
query I rowsort
SELECT + 77 * col0 AS col0 FROM tab2 AS cor0
----
539
6006
6083
onlyif mysql # use DIV operator for integer division
query I rowsort label-5436
SELECT ALL - 67 * col0 + cor0.col2 DIV - cor0.col1 FROM tab2 AS cor0
----
-469
-5226
-5295
skipif mysql # not compatible
query I rowsort label-5436
SELECT ALL - 67 * col0 + cor0.col2 / - cor0.col1 FROM tab2 AS cor0
----
-469
-5226
-5295
query I rowsort
SELECT ALL - cor0.col1 + col0 AS col2 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT col2 + col1 + + col1 FROM tab2
----
144
72
89
query I rowsort
SELECT - cor0.col2 * col0 + - col0 FROM tab0 AS cor0
----
-70
-7387
-816
onlyif mysql # use DIV operator for integer division
query I rowsort label-5440
SELECT ALL + col1 DIV col0 col1 FROM tab1
----
0
0
8
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5440
SELECT ALL + col1 / col0 col1 FROM tab1
----
0
0
8
query I rowsort
SELECT - col0 * tab2.col1 FROM tab2
----
-1343
-217
-4602
query I rowsort
SELECT DISTINCT + - col2 * + col2 AS col2 FROM tab1 AS cor0
----
-2916
-3249
-9216
onlyif mysql # use DIV operator for integer division
query I rowsort label-5443
SELECT ALL col1 DIV col1 FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-5443
SELECT ALL col1 / col1 FROM tab1 AS cor0
----
1
1
1
query I rowsort
SELECT - + cor0.col2 + col0 * col0 FROM tab0 AS cor0
----
1224
543
7839
onlyif mysql # use DIV operator for integer division
query I rowsort label-5445
SELECT - col1 + col0 DIV + col0 FROM tab0 AS cor0
----
-85
-90
-96
skipif mysql # not compatible
query I rowsort label-5445
SELECT - col1 + col0 / + col0 FROM tab0 AS cor0
----
-85
-90
-96
query I rowsort
SELECT - col2 + - col2 + + col0 FROM tab1
----
-105
-112
-50
query I rowsort
SELECT + col1 + + tab1.col2 - col2 FROM tab1
----
10
13
26
query I rowsort
SELECT col0 * - col0 + - col2 * - col1 - col2 FROM tab2
----
-4576
-5633
761
query I rowsort
SELECT DISTINCT tab0.col2 * - col0 - + col1 FROM tab0
----
-132
-7389
-878
query I rowsort
SELECT DISTINCT - col1 - tab2.col1 AS col1 FROM tab2
----
-118
-34
-62
query I rowsort
SELECT 50 AS col0 FROM tab0 cor0
----
50
50
50
onlyif mysql # use DIV operator for integer division
query I rowsort label-5452
SELECT ALL + 61 DIV + col1 + - col2 FROM tab0 AS cor0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-5452
SELECT ALL + 61 / + col1 + - col2 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT + ( + col0 ) AS col2 FROM tab0 cor0
----
24
35
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-5454
SELECT DISTINCT tab1.col0 DIV col1 AS col1 FROM tab1
----
0
6
skipif mysql # not compatible
query I rowsort label-5454
SELECT DISTINCT tab1.col0 / col1 AS col1 FROM tab1
----
0
6
query I rowsort
SELECT DISTINCT 63 FROM tab1
----
63
query I rowsort
SELECT tab2.col1 + - 6 * col0 AS col2 FROM tab2
----
-11
-409
-457
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 40 col2 FROM tab0
----
40
40
40
query I rowsort
SELECT ALL 85 AS col0 FROM tab0
----
85
85
85
query I rowsort
SELECT DISTINCT col0 * col1 * + col2 AS col2 FROM tab0
----
3395
664118
68112
onlyif mysql # use DIV operator for integer division
query I rowsort label-5460
SELECT DISTINCT + col1 DIV col1 AS col1 FROM tab1
----
1
skipif mysql # not compatible
query I rowsort label-5460
SELECT DISTINCT + col1 / col1 AS col1 FROM tab1
----
1
query I rowsort
SELECT ALL + col1 * - tab0.col1 + col1 FROM tab0
----
-7310
-8190
-9312
query III rowsort
SELECT * FROM tab1 WHERE NOT col0 NOT BETWEEN tab1.col2 AND ( col0 )
----
64
10
57
query III rowsort
SELECT * FROM tab2 WHERE + col1 < ( col0 )
----
78
59
26
79
17
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-5464
SELECT ALL col2 + - col1 DIV + col1 col1 FROM tab1
----
53
56
95
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5464
SELECT ALL col2 + - col1 / + col1 col1 FROM tab1
----
53
56
95
query I rowsort
SELECT tab0.col1 * col1 AS col2 FROM tab0
----
7396
8281
9409
query I rowsort
SELECT DISTINCT + col2 * - col1 + - col1 FROM tab0
----
-194
-2924
-7553
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * col1 col1 FROM tab2 WHERE NOT col0 < col0
----
1343
217
4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - col1 col2 FROM tab1
----
-109
-67
-80
query I rowsort
SELECT ALL + col1 + + col2 AS col2 FROM tab1 WHERE NOT ( + col1 ) < - col1 + col1 + col2
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab0.col2 * + col1 col0 FROM tab0
----
2838
7462
97
query I rowsort
SELECT - tab2.col1 * + col1 AS col1 FROM tab2
----
-289
-3481
-961
query I rowsort
SELECT + col1 + + col2 + col1 * + col1 FROM tab0
----
7515
8454
9507
query I rowsort
SELECT DISTINCT tab1.col1 + - col1 FROM tab1
----
0
query I rowsort
SELECT ALL col0 + + col1 * col1 AS col2 FROM tab0
----
7420
8370
9444
query I rowsort
SELECT DISTINCT col2 + col1 FROM tab0 WHERE ( NULL ) >= NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-5476
SELECT ALL + col2 DIV + col2 FROM tab1
----
1
1
1
skipif mysql # not compatible
query I rowsort label-5476
SELECT ALL + col2 / + col2 FROM tab1
----
1
1
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-5477
SELECT col1 DIV + tab1.col1 + col0 AS col2 FROM tab1
----
4
65
81
skipif mysql # not compatible
query I rowsort label-5477
SELECT col1 / + tab1.col1 + col0 AS col2 FROM tab1
----
4
65
81
query I rowsort
SELECT col1 * col1 * - col1 FROM tab0 WHERE - col2 + col2 < col2 / - col2 + + col1
----
-636056
-753571
-912673
query I rowsort
SELECT + tab0.col2 * col1 * col0 FROM tab0
----
3395
664118
68112
query I rowsort
SELECT - col1 * tab2.col1 * - col0 + col0 FROM tab2 WHERE NULL NOT BETWEEN - col2 AND ( NULL )
----
query I rowsort
SELECT col2 + - col0 AS col2 FROM tab2 WHERE ( NULL ) >= NULL
----
query I rowsort
SELECT - col0 - - tab1.col0 FROM tab1
----
0
0
0
query I rowsort
SELECT DISTINCT tab0.col1 + - tab0.col1 FROM tab0 WHERE NOT NULL BETWEEN col1 AND NULL
----
query I rowsort
SELECT ALL - col2 FROM tab0 WHERE col0 NOT BETWEEN col0 * - col1 AND col0 - + col0
----
-1
-33
-82
query I rowsort
SELECT col1 + - tab0.col0 FROM tab0
----
2
62
62
query I rowsort
SELECT DISTINCT - col0 + tab0.col0 FROM tab0
----
0
query I rowsort
SELECT DISTINCT col0 * + col0 * + col2 + + col0 AS col2 FROM tab0
----
1260
19032
649611
query I rowsort
SELECT - col2 * + cor0.col1 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT + col0 + - col0 * - col2 * + col0 AS col0 FROM tab1 AS cor0
----
233536
489
614480
query I rowsort
SELECT ALL + col0 * - col1 AS col1 FROM tab0 cor0
----
-2064
-3395
-8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-5491
SELECT col1 + - col1 DIV - col2 FROM tab1 AS cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-5491
SELECT col1 + - col1 / - col2 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT cor0.col1 * + cor0.col1 * + col1 FROM tab1 AS cor0
----
1000
17576
2197
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col2 * col0 col0 FROM tab0 AS cor0
----
70
7387
816
query I rowsort
SELECT - col1 + col1 + - col2 AS col2 FROM tab1 AS cor0
----
-54
-57
-96
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col0 BETWEEN NULL AND ( - col2 * col2 + col0 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
query I rowsort
SELECT + - 3 + + col1 * col1 FROM tab2 cor0
----
286
3478
958
query I rowsort
SELECT DISTINCT + ( - col0 ) + - col0 * cor0.col1 * - col0 AS col0 FROM tab0 AS cor0
----
118790
49512
720722
query I rowsort
SELECT ALL - cor0.col2 AS col0 FROM tab1 cor0
----
-54
-57
-96
query I rowsort
SELECT DISTINCT + ( - col0 ) + col1 + - 36 * col0 AS col2 FROM tab1 AS cor0
----
-2358
-2947
-85
query I rowsort
SELECT + col1 * - cor0.col1 FROM tab2 cor0
----
-289
-3481
-961
query I rowsort
SELECT ALL - + 75 AS col0 FROM tab2 AS cor0
----
-75
-75
-75
onlyif mysql # use DIV operator for integer division
query I rowsort label-5502
SELECT + - 13 + col2 DIV + col2 AS col1 FROM tab1 AS cor0
----
-12
-12
-12
skipif mysql # not compatible
query I rowsort label-5502
SELECT + - 13 + col2 / + col2 AS col1 FROM tab1 AS cor0
----
-12
-12
-12
query I rowsort
SELECT ALL + col2 * 20 FROM tab0 AS cor0
----
1640
20
660
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 35 col1 FROM tab0 AS cor0
----
35
query I rowsort
SELECT ALL + + 6 AS col0 FROM tab2 AS cor0
----
6
6
6
onlyif mysql # use DIV operator for integer division
query I rowsort label-5506
SELECT - 60 + 67 DIV + col1 AS col0 FROM tab1 AS cor0
----
-54
-55
-58
skipif mysql # not compatible
query I rowsort label-5506
SELECT - 60 + 67 / + col1 AS col0 FROM tab1 AS cor0
----
-54
-55
-58
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * - 14 col1 FROM tab0
----
1148
14
462
onlyif mysql # use DIV operator for integer division
query I rowsort label-5508
SELECT - col2 DIV col2 + ( col2 ) FROM tab0
----
0
32
81
skipif mysql # not compatible
query I rowsort label-5508
SELECT - col2 / col2 + ( col2 ) FROM tab0
----
0
32
81
query I rowsort
SELECT - 12 * + col2 FROM tab0 cor0
----
-12
-396
-984
query I rowsort
SELECT cor0.col0 FROM tab2, tab1 AS cor0 CROSS JOIN tab0
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT 92 * + col2 FROM tab2 AS cor0
----
2392
2484
3496
query I rowsort
SELECT ALL 71 * + col1 AS col1 FROM tab0
----
6106
6461
6887
query I rowsort
SELECT ( - tab1.col2 ) AS col0 FROM tab1
----
-54
-57
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 56 col1 FROM tab0 cor0
----
56
56
56
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5515
SELECT DISTINCT CAST( col0 AS SIGNED ) * col0 FROM tab1 cor0
----
4096
6400
9
skipif mysql # not compatible
query I rowsort label-5515
SELECT DISTINCT CAST ( col0 AS INTEGER ) * col0 FROM tab1 cor0
----
4096
6400
9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5516
SELECT ALL + col1 * col0 + + ( + col2 ) * + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5516
SELECT ALL + col1 * col0 + + ( + col2 ) * + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + col0 * + col1 + + 0 FROM tab2
----
1343
217
4602
query I rowsort
SELECT + col0 + + tab0.col0 AS col0 FROM tab0
----
178
48
70
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5519
SELECT col1 * CAST( col2 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
2838
7462
97
skipif mysql # not compatible
query I rowsort label-5519
SELECT col1 * CAST ( col2 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT DISTINCT + col2 + 12 * + 50 AS col0 FROM tab1 AS cor0
----
654
657
696
onlyif mysql # use DIV operator for integer division
query I rowsort label-5521
SELECT DISTINCT col0 * col1 DIV 23 AS col1 FROM tab2
----
200
58
9
skipif mysql # not compatible
query I rowsort label-5521
SELECT DISTINCT col0 * col1 / 23 AS col1 FROM tab2
----
200
58
9
query I rowsort
SELECT ALL 9 FROM tab2, tab0 AS cor0
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - col1 col2 FROM tab1
----
28
47
83
query I rowsort
SELECT + col2 + ( + col0 ) + - col0 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT DISTINCT col0 + + 58 * - col1 FROM tab0 AS cor0
----
-4964
-5189
-5591
query I rowsort
SELECT DISTINCT - + col0 + col0 + + col0 AS col0 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT ALL col2 * - 75 + cor0.col2 AS col0 FROM tab0 AS cor0
----
-2442
-6068
-74
query I rowsort
SELECT DISTINCT + - cor0.col2 * col0 + col1 + col1 FROM tab0 AS cor0
----
-620
-7116
159
query I rowsort
SELECT DISTINCT + col2 * 57 + + cor0.col1 FROM tab1 AS cor0
----
3104
3259
5485
query I rowsort
SELECT - col2 + 19 AS col2 FROM tab2 AS cor0
----
-19
-7
-8
query I rowsort
SELECT ALL cor0.col2 - col0 FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT ALL - col1 * - col1 + - col0 * col1 - - col1 FROM tab0 AS cor0
----
273
5418
6111
query I rowsort
SELECT ALL - cor0.col2 + - col0 AS col1 FROM tab0 AS cor0
----
-171
-36
-57
query I rowsort
SELECT DISTINCT - 23 AS col0 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-23
query I rowsort
SELECT + col2 * - 26 + col2 AS col2 FROM tab1 AS cor0
----
-1350
-1425
-2400
query I rowsort
SELECT col0 * ( + cor0.col2 ) + cor0.col2 AS col1 FROM tab2 AS cor0
----
2054
216
3040
query I rowsort
SELECT + + col1 * 55 AS col0 FROM tab0 AS cor0
----
4730
5005
5335
query I rowsort
SELECT ALL - ( 47 ) FROM tab0
----
-47
-47
-47
query I rowsort
SELECT ( col2 ) + cor0.col2 FROM tab2 AS cor0
----
52
54
76
query I rowsort
SELECT + 39 + col2 AS col1 FROM tab0 AS cor0
----
121
40
72
query I rowsort
SELECT ALL 46 FROM tab0, tab1 AS cor0, tab1 cor1
----
27 values hashing to 2f97924b57b73102233df7c9ce8ad602
query I rowsort
SELECT col0 * - col2 + col0 AS col2 FROM tab2 cor0
----
-182
-1950
-2923
onlyif mysql # use DIV operator for integer division
query I rowsort label-5543
SELECT 74 DIV - col0 AS col0 FROM tab1
----
-1
-24
0
skipif mysql # not compatible
query I rowsort label-5543
SELECT 74 / - col0 AS col0 FROM tab1
----
-1
-24
0
query I rowsort
SELECT - 82 FROM tab1, tab0 cor0
----
9 values hashing to f800b0aad28b82b2deb67f7045c9a45c
query I rowsort
SELECT - - col1 * + col1 * + cor0.col0 AS col0 FROM tab1 cor0
----
13520
2028
6400
query I rowsort
SELECT 22 FROM tab1, tab0 cor0, tab0 cor1
----
27 values hashing to 7dda382e7c08428abac8600fd696eb3e
query I rowsort
SELECT DISTINCT - col2 * - cor0.col0 AS col1 FROM tab2 AS cor0
----
189
2028
3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-5548
SELECT + - col0 DIV + col1 + 45 + - col2 * - col1 FROM tab1 AS cor0
----
1287
1449
609
skipif mysql # not compatible
query I rowsort label-5548
SELECT + - col0 / + col1 + 45 + - col2 * - col1 FROM tab1 AS cor0
----
1287
1449
609
query I rowsort
SELECT - ( + col2 ) + - cor0.col1 + col2 * - col2 FROM tab2 AS cor0
----
-1499
-761
-787
query I rowsort
SELECT + + col0 + 92 + + col0 FROM tab0 AS cor0
----
140
162
270
query I rowsort
SELECT + col0 + + 27 FROM tab2 AS cor0
----
105
106
34
query I rowsort
SELECT - - col1 * - cor0.col1 AS col0 FROM tab2 AS cor0
----
-289
-3481
-961
query I rowsort
SELECT ALL + tab2.col1 + + tab2.col0 FROM tab2
----
137
38
96
query I rowsort
SELECT ALL col1 + + col1 AS col2 FROM tab0
----
172
182
194
query I rowsort
SELECT DISTINCT + col2 + + col0 + col0 FROM tab1
----
185
256
60
query I rowsort
SELECT - col1 + col0 * - 33 AS col1 FROM tab2
----
-262
-2624
-2633
query I rowsort
SELECT ALL 12 AS col0 FROM tab2
----
12
12
12
query I rowsort
SELECT - 74 * - col1 FROM tab1 AS cor0
----
1924
740
962
query I rowsort
SELECT ALL col0 * + col2 AS col2 FROM tab1
----
162
3648
7680
query I rowsort
SELECT DISTINCT + ( col0 + ( - col2 ) ) FROM tab2
----
-20
41
52
query I rowsort
SELECT + + col0 * - col0 AS col2 FROM tab1 AS cor0
----
-4096
-6400
-9
onlyif mysql # use DIV operator for integer division
query I rowsort label-5562
SELECT - - 57 + - col1 DIV + ( + 26 * col1 ) AS col2 FROM tab2 AS cor0
----
57
57
57
skipif mysql # not compatible
query I rowsort label-5562
SELECT - - 57 + - col1 / + ( + 26 * col1 ) AS col2 FROM tab2 AS cor0
----
57
57
57
query I rowsort
SELECT + col0 * ( col2 ) + - cor0.col0 FROM tab2 AS cor0
----
182
1950
2923
query I rowsort
SELECT ALL col1 + - 61 AS col1 FROM tab1 AS cor0
----
-35
-48
-51
query I rowsort
SELECT - + col1 - - col0 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT ALL + col0 * - 20 FROM tab0 AS cor0
----
-1780
-480
-700
query I rowsort
SELECT DISTINCT + - col0 * + cor0.col0 AS col0 FROM tab1 AS cor0
----
-4096
-6400
-9
query I rowsort
SELECT col1 + cor0.col1 + - col0 FROM tab2 AS cor0
----
-45
40
55
query I rowsort
SELECT ALL cor0.col0 * ( + col2 ) FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT col0 - 84 AS col1 FROM tab1 AS cor0
----
-20
-4
-81
query I rowsort
SELECT ALL + tab0.col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63
query I rowsort
SELECT ALL + ( - cor1.col1 ) FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84
query I rowsort
SELECT ALL col0 * col2 AS col2 FROM tab2
----
189
2028
3002
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 0 col2 FROM tab1
----
0
0
0
query I rowsort
SELECT + tab1.col1 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775
onlyif mysql # use DIV operator for integer division
query I rowsort label-5576
SELECT DISTINCT - tab1.col2 DIV - col1 FROM tab1
----
2
5
7
skipif mysql # not compatible
query I rowsort label-5576
SELECT DISTINCT - tab1.col2 / - col1 FROM tab1
----
2
5
7
query I rowsort
SELECT + 91 * + ( + col2 ) AS col2 FROM tab0 AS cor0
----
3003
7462
91
query I rowsort
SELECT + + 62 + col2 FROM tab0 cor0
----
144
63
95
query I rowsort
SELECT + col1 + 31 FROM tab2 AS cor0
----
48
62
90
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * col1 + + cor0.col0 + - ( + col0 ) * - col1 col0 FROM tab1 AS cor0
----
1274
1485
2368
query I rowsort
SELECT ( - 74 ) + col0 * - 54 * 54 + col2 * 97 AS col1 FROM tab0 cor0
----
-102037
-251644
-66857
query I rowsort
SELECT ALL - tab2.col2 * + 65 FROM tab2
----
-1690
-1755
-2470
query I rowsort
SELECT DISTINCT - ( + cor0.col1 ) FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT DISTINCT ( - tab2.col0 ) * col1 FROM tab2
----
-1343
-217
-4602
query I rowsort
SELECT ( cor1.col0 ) * + 60 FROM tab0, tab0 AS cor0, tab1, tab0 cor1
----
81 values hashing to 220a65714059f9c9b096eb99cb6f8ab8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 * cor0.col1 - col0 col0 FROM tab2 AS cor0
----
1264
210
4524
query I rowsort
SELECT - + col2 * - col2 + - ( + col1 ) * - col1 AS col0 FROM tab0 AS cor0
----
15005
8485
9410
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col0 + col0 col0 FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT - + 13 * col1 + ( + col0 ) AS col2 FROM tab2 AS cor0
----
-142
-396
-689
query I rowsort
SELECT ALL - 16 + + col0 * 95 AS col0 FROM tab2 AS cor0
----
649
7394
7489
query I rowsort
SELECT DISTINCT + col0 + - col0 AS col2 FROM tab0 AS cor0
----
0
query I rowsort
SELECT + col0 * col1 + + col0 AS col1 FROM tab2 AS cor0
----
1422
224
4680
onlyif mysql # use DIV operator for integer division
query I rowsort label-5593
SELECT ALL - cor0.col1 + col1 DIV + ( col2 ) AS col0 FROM tab0 AS cor0
----
-84
-90
0
skipif mysql # not compatible
query I rowsort label-5593
SELECT ALL - cor0.col1 + col1 / + ( col2 ) AS col0 FROM tab0 AS cor0
----
-84
-90
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-5594
SELECT ALL - ( + cor0.col2 ) DIV + 92 + col2 FROM tab2 AS cor0
----
26
27
38
skipif mysql # not compatible
query I rowsort label-5594
SELECT ALL - ( + cor0.col2 ) / + 92 + col2 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT DISTINCT 93 * - col0 FROM tab1 AS cor0
----
-279
-5952
-7440
query I rowsort
SELECT - col2 * col2 + - col0 * - 48 AS col1 FROM tab0
----
-2452
1679
63
query I rowsort
SELECT ALL tab1.col1 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
query I rowsort
SELECT - 40 FROM tab0
----
-40
-40
-40
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5599
SELECT CAST( NULL AS DECIMAL ) * col0 col1 FROM tab2
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5599
SELECT CAST ( NULL AS REAL ) * col0 col1 FROM tab2
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5600
SELECT - CAST( NULL AS DECIMAL ) AS col2 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5600
SELECT - CAST ( NULL AS REAL ) AS col2 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - 70 + 5 FROM tab2
----
-65
onlyif mysql # use DIV operator for integer division
query I rowsort label-5602
SELECT DISTINCT + 45 DIV col1 + col1 AS col1 FROM tab0 cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-5602
SELECT DISTINCT + 45 / col1 + col1 AS col1 FROM tab0 cor0
----
86
91
97
query I rowsort
SELECT + 80 AS col2 FROM tab2 AS cor0
----
80
80
80
query I rowsort
SELECT DISTINCT + 54 AS col2 FROM tab1 AS cor0
----
54
query I rowsort
SELECT - ( col2 ) * - col1 AS col0 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT + cor1.col2 + cor1.col2 * + cor0.col2 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 429a3a21b2a356b7269c2ee773ba5e74
query I rowsort
SELECT - 48 + + ( + cor0.col2 ) FROM tab1 AS cor0
----
48
6
9
query I rowsort
SELECT + col2 * - col1 + col2 FROM tab2 AS cor0
----
-1508
-608
-810
query I rowsort
SELECT DISTINCT + - cor0.col0 AS col0 FROM tab0, tab2 AS cor0
----
-7
-78
-79
onlyif mysql # use DIV operator for integer division
query I rowsort label-5610
SELECT col1 DIV - col2 + + col2 * - col0 FROM tab1 AS cor0
----
-162
-3648
-7680
skipif mysql # not compatible
query I rowsort label-5610
SELECT col1 / - col2 + + col2 * - col0 FROM tab1 AS cor0
----
-162
-3648
-7680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + tab2.col1 ) + col1 col0 FROM tab2
----
0
query I rowsort
SELECT DISTINCT col2 * + col0 + col1 + col2 FROM tab2 cor0
----
2113
247
3057
onlyif mysql # use DIV operator for integer division
query I rowsort label-5613
SELECT DISTINCT + 50 + - col0 DIV col1 AS col2 FROM tab1 AS cor0
----
44
50
skipif mysql # not compatible
query I rowsort label-5613
SELECT DISTINCT + 50 + - col0 / col1 AS col2 FROM tab1 AS cor0
----
44
50
query I rowsort
SELECT ALL col1 + - col0 * - col2 AS col2 FROM tab0 AS cor0
----
132
7389
878
onlyif mysql # use DIV operator for integer division
query I rowsort label-5615
SELECT - 75 + + 37 DIV + cor0.col1 AS col0 FROM tab2 AS cor0
----
-73
-74
-75
skipif mysql # not compatible
query I rowsort label-5615
SELECT - 75 + + 37 / + cor0.col1 AS col0 FROM tab2 AS cor0
----
-73
-74
-75
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5616
SELECT CAST( + col2 AS SIGNED ) + - col2 * 94 FROM tab1 AS cor0
----
-5022
-5301
-8928
skipif mysql # not compatible
query I rowsort label-5616
SELECT CAST ( + col2 AS INTEGER ) + - col2 * 94 FROM tab1 AS cor0
----
-5022
-5301
-8928
query I rowsort
SELECT DISTINCT + + ( col2 ) * col2 + ( cor0.col1 ) * + col1 FROM tab2 AS cor0
----
1690
1733
4157
query I rowsort
SELECT ALL - col0 * 54 + col0 + 74 FROM tab0 AS cor0
----
-1198
-1781
-4643
query I rowsort
SELECT 6 + ( + cor0.col2 ) FROM tab2 AS cor0
----
32
33
44
query I rowsort
SELECT + col2 * col0 + - col1 FROM tab1 cor0
----
136
3638
7667
query I rowsort
SELECT DISTINCT - - 6 * + ( + col1 ) + + 53 + + col0 * - cor0.col1 AS col1 FROM tab2 AS cor0
----
-1188
-4195
22
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 78 * + col2 + col0 * cor0.col2 col0 FROM tab1 AS cor0
----
-4050
-798
192
onlyif mysql # use DIV operator for integer division
query I rowsort label-5623
SELECT col2 DIV - CAST( - col0 * col0 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
0
0
6
skipif mysql # not compatible
query I rowsort label-5623
SELECT col2 / - CAST ( - col0 * col0 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
0
0
6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + 61 col2 FROM tab1 AS cor0
----
125
141
64
query I rowsort
SELECT DISTINCT + col0 * + col0 * col0 AS col0 FROM tab1 cor0
----
262144
27
512000
query I rowsort
SELECT - col2 * col1 AS col2 FROM tab2 cor0
----
-1534
-646
-837
query I rowsort
SELECT - cor0.col1 * + col0 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT + cor0.col2 * - 54 AS col2 FROM tab2 AS cor0
----
-1404
-1458
-2052
query I rowsort
SELECT DISTINCT - col2 * + 43 * col1 FROM tab0 AS cor0
----
-122034
-320866
-4171
query I rowsort
SELECT - col0 * - 75 * + col1 AS col0 FROM tab1 AS cor0
----
48000
5850
78000
query I rowsort
SELECT DISTINCT - 32 * col1 + - col1 FROM tab2
----
-1023
-1947
-561
query I rowsort
SELECT + + col1 * ( - 21 + col0 ) AS col1 FROM tab1 AS cor0
----
-468
430
767
query I rowsort
SELECT DISTINCT + + col0 * + 12 FROM tab0 AS cor0
----
1068
288
420
query I rowsort
SELECT DISTINCT - col2 + ( 23 + - col2 ) AS col2 FROM tab1 AS cor0
----
-169
-85
-91
query I rowsort
SELECT ALL + + cor0.col1 + col1 AS col0 FROM tab2 AS cor0
----
118
34
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * col0 col0 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT col2 + + col2 * col0 AS col2 FROM tab1 AS cor0
----
216
3705
7776
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5638
SELECT - col2 * CAST( + col2 + col0 AS SIGNED ) FROM tab1 AS cor0
----
-16896
-3078
-6897
skipif mysql # not compatible
query I rowsort label-5638
SELECT - col2 * CAST ( + col2 + col0 AS INTEGER ) FROM tab1 AS cor0
----
-16896
-3078
-6897
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5639
SELECT + CAST( NULL AS DECIMAL ) * cor0.col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5639
SELECT + CAST ( NULL AS REAL ) * cor0.col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT 79 * + 71 AS col0 FROM tab0 AS cor0
----
5609
5609
5609
query I rowsort
SELECT DISTINCT + + 51 * - ( col2 ) AS col0 FROM tab1 AS cor0
----
-2754
-2907
-4896
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab0 AS cor2
----
972 values hashing to 8b4fcda7f1ca76bad7c7d728f54a51e0
query I rowsort
SELECT DISTINCT 46 FROM tab0 AS cor0
----
46
query I rowsort
SELECT + col2 + + cor0.col0 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT ALL + + col0 + col0 FROM tab1 cor0
----
128
160
6
query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab2 cor0, tab0 AS cor1, tab2 AS cor2
----
972 values hashing to e486ce227b61d9db6f8414f9d6361094
query I rowsort
SELECT DISTINCT - ( cor0.col1 ) FROM tab0, tab0 AS cor0
----
-86
-91
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-5648
SELECT ALL - + ( col0 ) + - col0 DIV 16 FROM tab0 AS cor0
----
-25
-37
-94
skipif mysql # not compatible
query I rowsort label-5648
SELECT ALL - + ( col0 ) + - col0 / 16 FROM tab0 AS cor0
----
-25
-37
-94
query I rowsort
SELECT ALL cor0.col1 * col1 AS col1 FROM tab1 cor0
----
100
169
676
onlyif mysql # use DIV operator for integer division
query I rowsort label-5650
SELECT - col2 * col1 DIV 22 + + col1 AS col1 FROM tab1 AS cor0
----
-15
-37
-43
skipif mysql # not compatible
query I rowsort label-5650
SELECT - col2 * col1 / 22 + + col1 AS col1 FROM tab1 AS cor0
----
-15
-37
-43
query I rowsort
SELECT + col1 * + col1 * col1 FROM tab1
----
1000
17576
2197
query I rowsort
SELECT - col0 * col0 * - col1 FROM tab0 WHERE - col2 + col0 - col0 NOT IN ( tab0.col2 )
----
118825
49536
720811
onlyif mysql # use DIV operator for integer division
query I rowsort label-5653
SELECT ALL tab1.col2 DIV col1 AS col1 FROM tab1
----
2
5
7
skipif mysql # not compatible
query I rowsort label-5653
SELECT ALL tab1.col2 / col1 AS col1 FROM tab1
----
2
5
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-5654
SELECT col1 DIV - col1 + col0 FROM tab2
----
6
77
78
skipif mysql # not compatible
query I rowsort label-5654
SELECT col1 / - col1 + col0 FROM tab2
----
6
77
78
query I rowsort
SELECT ALL + col2 + - col1 + + col1 AS col1 FROM tab1
----
54
57
96
query I rowsort
SELECT + col0 + + tab2.col1 + col0 FROM tab2
----
175
215
45
onlyif mysql # use DIV operator for integer division
query I rowsort label-5657
SELECT ALL - col2 DIV - col1 AS col0 FROM tab1
----
2
5
7
skipif mysql # not compatible
query I rowsort label-5657
SELECT ALL - col2 / - col1 AS col0 FROM tab1
----
2
5
7
query I rowsort
SELECT col1 + - col0 + col2 * - col1 FROM tab2
----
-1553
-708
-813
query I rowsort
SELECT DISTINCT 44 + col1 FROM tab0
----
130
135
141
query I rowsort
SELECT + 77 * - col2 AS col0 FROM tab0
----
-2541
-6314
-77
onlyif mysql # use DIV operator for integer division
query I rowsort label-5661
SELECT + col1 + col0 DIV - col2 FROM tab0 AS cor0
----
62
86
90
skipif mysql # not compatible
query I rowsort label-5661
SELECT + col1 + col0 / - col2 FROM tab0 AS cor0
----
62
86
90
query I rowsort
SELECT ALL 31 AS col1 FROM tab1 cor0
----
31
31
31
query I rowsort
SELECT ALL - 21 + + col2 * tab1.col2 * + 12 FROM tab1
----
110571
34971
38967
query I rowsort
SELECT - col0 + 85 AS col2 FROM tab0 cor0
----
-4
50
61
onlyif mysql # use DIV operator for integer division
query I rowsort label-5665
SELECT + + col0 + - col0 DIV + 84 FROM tab2 AS cor0
----
7
78
79
skipif mysql # not compatible
query I rowsort label-5665
SELECT + + col0 + - col0 / + 84 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT DISTINCT - col0 * col0 + tab0.col0 * col1 FROM tab0
----
1488
178
2170
query I rowsort
SELECT 49 FROM tab0, tab0 AS cor0, tab0 cor1
----
27 values hashing to a40d8754a5be3ce2309c61bfd3e00197
query I rowsort
SELECT - col2 * - 20 FROM tab0
----
1640
20
660
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5669
SELECT DISTINCT col0 / CAST( NULL AS SIGNED ) + + col0 + col2 FROM tab2 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5669
SELECT DISTINCT col0 / CAST ( NULL AS INTEGER ) + + col0 + col2 FROM tab2 cor0
----
NULL
query I rowsort
SELECT ALL - - col0 * - col1 + col2 AS col0 FROM tab0 AS cor0
----
-2031
-3394
-8017
query I rowsort
SELECT col1 + - 84 * 31 AS col2 FROM tab1 AS cor0
----
-2578
-2591
-2594
query I rowsort
SELECT ALL - 48 AS col0 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 2558735eaa258a08592aef9d33020c18
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5673
SELECT CAST( + col2 * + col0 + - col1 AS SIGNED ) FROM tab1
----
136
3638
7667
skipif mysql # not compatible
query I rowsort label-5673
SELECT CAST ( + col2 * + col0 + - col1 AS INTEGER ) FROM tab1
----
136
3638
7667
query I rowsort
SELECT ( + tab2.col0 * - col0 ) FROM tab2
----
-49
-6084
-6241
query I rowsort
SELECT col1 * - col1 + - col0 FROM tab1
----
-164
-249
-679
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5676
SELECT ALL col0 * - cor0.col1 - cor0.col0 / CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5676
SELECT ALL col0 * - cor0.col1 - 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-5677
SELECT ALL - 45 * col2 DIV col1 FROM tab2 AS cor0
----
-100
-19
-39
skipif mysql # not compatible
query I rowsort label-5677
SELECT ALL - 45 * col2 / col1 FROM tab2 AS cor0
----
-100
-19
-39
query I rowsort
SELECT 3 AS col2 FROM tab0 AS cor0
----
3
3
3
query I rowsort
SELECT ALL 45 AS col2 FROM tab1
----
45
45
45
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * col1 col0 FROM tab1 cor0
----
1248
1404
570
query I rowsort
SELECT ALL - col1 * - cor0.col2 + - col0 * cor0.col0 - cor0.col0 AS col0 FROM tab0 AS cor0
----
-1163
-548
2238
query I rowsort
SELECT DISTINCT 82 - col2 AS col2 FROM tab2 AS cor0
----
44
55
56
query I rowsort
SELECT - col1 + + col2 AS col0 FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT ALL col2 * - col2 FROM tab2 cor0
----
-1444
-676
-729
onlyif mysql # use DIV operator for integer division
query I rowsort label-5685
SELECT ALL - 69 - col0 DIV col1 FROM tab1 AS cor0
----
-69
-75
-75
skipif mysql # not compatible
query I rowsort label-5685
SELECT ALL - 69 - col0 / col1 FROM tab1 AS cor0
----
-69
-75
-75
query I rowsort
SELECT DISTINCT + col1 + col1 * + col2 FROM tab0 AS cor0
----
194
2924
7553
query I rowsort
SELECT + + col2 - col2 * + ( col0 + col1 ) AS col1 FROM tab0 AS cor0
----
-131
-14678
-3597
query I rowsort
SELECT ALL - 42 * - cor0.col0 + 97 AS col1 FROM tab2 cor0
----
3373
3415
391
query I rowsort
SELECT DISTINCT 51 - + col2 AS col2 FROM tab2 AS cor0
----
13
24
25
onlyif mysql # use DIV operator for integer division
query I rowsort label-5690
SELECT ALL + cor0.col2 DIV - col1 AS col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5690
SELECT ALL + cor0.col2 / - col1 AS col1 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5691
SELECT - + col2 * col0 - - CAST( 8 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-27
-7290
-784
skipif mysql # not compatible
query I rowsort label-5691
SELECT - + col2 * col0 - - CAST ( 8 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-27
-7290
-784
query I rowsort
SELECT ALL - + cor0.col1 * + col2 + + col2 * col0 AS col1 FROM tab2 cor0
----
-648
2356
494
query I rowsort
SELECT - col1 * - col1 * col0 - - col0 AS col0 FROM tab2 AS cor0
----
22910
271596
6734
query I rowsort
SELECT ALL + 58 FROM tab0
----
58
58
58
query I rowsort
SELECT + - 25 * - col2 FROM tab2 AS cor0
----
650
675
950
query I rowsort
SELECT - 28 * col1 AS col1 FROM tab2 AS cor0
----
-1652
-476
-868
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5697
SELECT - col0 + col2 * CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5697
SELECT - col0 + col2 * CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - - 73 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
73
query I rowsort
SELECT col2 * - ( col0 ) + + tab0.col1 FROM tab0
----
-706
-7207
62
query I rowsort
SELECT + + col1 * ( - col2 ) AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT DISTINCT - - 11 + 43 AS col2 FROM tab1 cor0
----
54
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 12 * + col1 col0 FROM tab0 cor0
----
1032
1092
1164
query I rowsort
SELECT + 91 * - col1 AS col2 FROM tab1
----
-1183
-2366
-910
query I rowsort
SELECT col2 + col0 - 76 FROM tab0
----
-19
-40
95
onlyif mysql # use DIV operator for integer division
query I rowsort label-5705
SELECT - col2 * + col0 + ( - col0 ) DIV col1 AS col1 FROM tab2
----
-189
-2029
-3006
skipif mysql # not compatible
query I rowsort label-5705
SELECT - col2 * + col0 + ( - col0 ) / col1 AS col1 FROM tab2
----
-189
-2029
-3006
query I rowsort
SELECT + 75 AS col0 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to e61b59795204c348103a58c0a8e4ce16
query I rowsort
SELECT + 58 * - col0 AS col0 FROM tab1 AS cor0
----
-174
-3712
-4640
query I rowsort
SELECT 75 + col0 FROM tab0 AS cor0
----
110
164
99
onlyif mysql # use DIV operator for integer division
query I rowsort label-5709
SELECT - col0 * - cor0.col2 + + CAST( + col2 + - col0 AS SIGNED ) DIV + 28 AS col0 FROM tab1 AS cor0
----
163
3648
7680
skipif mysql # not compatible
query I rowsort label-5709
SELECT - col0 * - cor0.col2 + + CAST ( + col2 + - col0 AS INTEGER ) / + 28 AS col0 FROM tab1 AS cor0
----
163
3648
7680
query I rowsort
SELECT - col2 + - col0 * col1 + cor0.col0 AS col1 FROM tab1 cor0
----
-1056
-129
-633
query I rowsort
SELECT - + col1 + 47 * + cor0.col0 FROM tab0 cor0
----
1042
1548
4092
query I rowsort
SELECT - - col2 + - 85 AS col2 FROM tab1 AS cor0
----
-28
-31
11
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5713
SELECT - cor0.col0 * - CAST( + col1 AS SIGNED ) FROM tab2 cor0
----
1343
217
4602
skipif mysql # not compatible
query I rowsort label-5713
SELECT - cor0.col0 * - CAST ( + col1 AS INTEGER ) FROM tab2 cor0
----
1343
217
4602
query I rowsort
SELECT + col2 + col1 * col2 AS col1 FROM tab2 AS cor0
----
1560
684
864
query I rowsort
SELECT + + cor0.col1 * col2 FROM tab0 cor0
----
2838
7462
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5716
SELECT col0 / + CAST( NULL AS SIGNED ) + + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5716
SELECT col0 / + CAST ( NULL AS INTEGER ) + + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5717
SELECT DISTINCT col2 * - cor0.col1 - ( col2 ) * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5717
SELECT DISTINCT col2 * - cor0.col1 - ( col2 ) * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-5718
SELECT ALL - - col1 DIV 42 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5718
SELECT ALL - - col1 / 42 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT + - col2 * - col0 + col1 AS col1 FROM tab0 AS cor0
----
132
7389
878
query I rowsort
SELECT ALL - col1 * 19 AS col0 FROM tab0 AS cor0
----
-1634
-1729
-1843
query I rowsort
SELECT + col1 * cor0.col2 FROM tab2 cor0
----
1534
646
837
query I rowsort
SELECT ALL - col1 + - col0 * + col2 FROM tab2
----
-2087
-220
-3019
skipif mysql # not compatible
query I rowsort
SELECT ALL col0 * CAST ( col1 * col0 AS REAL ) + - 43 FROM tab0
----
118782
49493
720768
query I rowsort
SELECT ALL + + col0 * 61 * ( - col0 ) + cor0.col2 * - 92 FROM tab2 AS cor0
----
-373516
-384197
-5473
onlyif mysql # use DIV operator for integer division
query I rowsort label-5725
SELECT DISTINCT - cor0.col0 DIV + col0 col1 FROM tab2 AS cor0
----
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5725
SELECT DISTINCT - cor0.col0 / + col0 col1 FROM tab2 AS cor0
----
-1
query I rowsort
SELECT DISTINCT 86 AS col2 FROM tab2, tab2 AS cor0
----
86
query I rowsort
SELECT col1 - 13 AS col1 FROM tab1 AS cor0
----
-3
0
13
query I rowsort
SELECT ALL - col1 * + 53 + cor0.col1 AS col0 FROM tab2 AS cor0
----
-1612
-3068
-884
query I rowsort
SELECT + cor0.col1 + 27 FROM tab1 AS cor0
----
37
40
53
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + - col0 * CAST ( col0 AS REAL ) * + cor0.col1 FROM tab0 cor0
----
-118825
-49536
-720811
query I rowsort
SELECT col2 + 79 + col0 AS col0 FROM tab2 cor0
----
113
183
196
query I rowsort
SELECT col2 * 7 AS col2 FROM tab2 AS cor0
----
182
189
266
query I rowsort
SELECT ALL - col2 * col2 + cor0.col1 FROM tab0 AS cor0
----
-1003
-6633
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * cor0.col1 col2 FROM tab1 cor0
----
1248
1404
570
query I rowsort
SELECT ALL + 35 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 0d13dfd4c4a9d51ace3582c31cadcdbc
query I rowsort
SELECT + 6 + + 28 FROM tab0 AS cor0
----
34
34
34
onlyif mysql # use DIV operator for integer division
query I rowsort label-5737
SELECT col1 DIV + 13 + + col1 FROM tab2 AS cor0
----
18
33
63
skipif mysql # not compatible
query I rowsort label-5737
SELECT col1 / + 13 + + col1 FROM tab2 AS cor0
----
18
33
63
query I rowsort
SELECT DISTINCT + - 62 * ( col0 ) + col1 AS col1 FROM tab1 AS cor0
----
-160
-3958
-4947
query I rowsort
SELECT 60 AS col2 FROM tab0 cor0
----
60
60
60
query I rowsort
SELECT ALL - col0 * col1 * cor0.col1 FROM tab2 AS cor0
----
-22831
-271518
-6727
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col0 FROM tab2 cor0
----
17
31
59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * ( col0 * + 91 ) col1 FROM tab2 AS cor0
----
17199
184548
273182
query I rowsort
SELECT ALL - - 91 * + 55 - - col0 FROM tab0 AS cor0
----
5029
5040
5094
query I rowsort
SELECT 75 AS col0 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to e61b59795204c348103a58c0a8e4ce16
onlyif mysql # use DIV operator for integer division
query I rowsort label-5745
SELECT DISTINCT + col1 + - col0 DIV + 25 FROM tab1
----
10
26
8
skipif mysql # not compatible
query I rowsort label-5745
SELECT DISTINCT + col1 + - col0 / + 25 FROM tab1
----
10
26
8
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5746
SELECT DISTINCT col1 * CAST( col1 AS SIGNED ) + col1 FROM tab2
----
306
3540
992
skipif mysql # not compatible
query I rowsort label-5746
SELECT DISTINCT col1 * CAST ( col1 AS INTEGER ) + col1 FROM tab2
----
306
3540
992
query I rowsort
SELECT - tab0.col0 - + 58 AS col2 FROM tab0
----
-147
-82
-93
onlyif mysql # use DIV operator for integer division
query I rowsort label-5748
SELECT col1 DIV ( - 84 ) + + tab2.col2 FROM tab2
----
26
27
38
skipif mysql # not compatible
query I rowsort label-5748
SELECT col1 / ( - 84 ) + + tab2.col2 FROM tab2
----
26
27
38
query I rowsort
SELECT ALL - + 50 * col0 AS col1 FROM tab1 AS cor0
----
-150
-3200
-4000
query I rowsort
SELECT DISTINCT 89 FROM tab1 AS cor0
----
89
query I rowsort
SELECT DISTINCT + ( cor0.col2 ) * 71 + + 28 AS col1 FROM tab2 AS cor0
----
1874
1945
2726
query I rowsort
SELECT + 69 AS col2 FROM tab1 AS cor0
----
69
69
69
query I rowsort
SELECT ALL - col1 * cor0.col1 AS col2 FROM tab0 AS cor0
----
-7396
-8281
-9409
query I rowsort
SELECT DISTINCT 47 + - col2 * ( col1 ) FROM tab1 AS cor0
----
-1201
-1357
-523
query I rowsort
SELECT + col2 * col1 - + col1 FROM tab1 AS cor0
----
1235
1378
560
query I rowsort
SELECT DISTINCT - - 16 AS col2 FROM tab1 AS cor0
----
16
query I rowsort
SELECT + - ( + col1 ) * + 69 FROM tab0 AS cor0
----
-5934
-6279
-6693
query I rowsort
SELECT + col1 + + col1 + col1 AS col0 FROM tab2 AS cor0
----
177
51
93
query I rowsort
SELECT ALL + 79 * + col0 * col2 AS col1 FROM tab0 AS cor0
----
2765
576542
62568
onlyif mysql # use DIV operator for integer division
query I rowsort label-5760
SELECT ALL - col2 DIV 89 FROM tab2
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5760
SELECT ALL - col2 / 89 FROM tab2
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5761
SELECT - CAST( + col2 AS SIGNED ) + col0 * 57 AS col2 FROM tab0
----
1335
1994
4991
skipif mysql # not compatible
query I rowsort label-5761
SELECT - CAST ( + col2 AS INTEGER ) + col0 * 57 AS col2 FROM tab0
----
1335
1994
4991
query I rowsort
SELECT ALL + - 87 * col1 FROM tab0 AS cor0
----
-7482
-7917
-8439
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 35 col0 FROM tab2
----
35
35
35
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col1 ) col2 FROM tab2
----
17
31
59
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5765
SELECT - + CAST( NULL AS SIGNED ) * 60 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-5765
SELECT - + CAST ( NULL AS INTEGER ) * 60 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT ALL + col1 * - col2 + ( - 40 ) - col1 AS col2 FROM tab2
----
-1633
-703
-908
query I rowsort
SELECT ALL - col0 + col2 AS col0 FROM tab2
----
-41
-52
20
query I rowsort
SELECT DISTINCT - col2 + - col1 * col2 FROM tab2
----
-1560
-684
-864
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + - ( - col2 ) col2 FROM tab0
----
-53
-9
-96
query I rowsort
SELECT + ( - col2 ) * col2 + col1 AS col1 FROM tab0 AS cor0
----
-1003
-6633
96
query I rowsort
SELECT ALL + ( col2 ) + col1 AS col2 FROM tab0
----
119
173
98
query I rowsort
SELECT ALL - 26 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 4e49eac022daeae6f88f610644ba3754
query I rowsort
SELECT DISTINCT + 81 + col1 + + col0 FROM tab2 AS cor0
----
119
177
218
query I rowsort
SELECT DISTINCT + - 51 * col2 FROM tab0 AS cor0
----
-1683
-4182
-51
query I rowsort
SELECT col1 * - cor0.col1 * + col1 + cor0.col1 * - col0 FROM tab0 cor0
----
-638120
-761670
-916068
query I rowsort
SELECT DISTINCT + - cor0.col1 + col0 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT - col1 * col1 + + col0 * cor0.col0 FROM tab1 AS cor0
----
-667
3996
6231
onlyif mysql # use DIV operator for integer division
query I rowsort label-5778
SELECT DISTINCT - col2 * col0 + - 29 + 81 DIV - col0 FROM tab1 AS cor0
----
-218
-3678
-7710
skipif mysql # not compatible
query I rowsort label-5778
SELECT DISTINCT - col2 * col0 + - 29 + 81 / - col0 FROM tab1 AS cor0
----
-218
-3678
-7710
query I rowsort
SELECT + 89 AS col1 FROM tab1 AS cor0
----
89
89
89
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab0 AS cor2
----
972 values hashing to 58757c5bbbd4217c03cf2ac0b6126e55
query I rowsort
SELECT ALL col2 * - cor0.col2 FROM tab1 cor0
----
-2916
-3249
-9216
onlyif mysql # use DIV operator for integer division
query I rowsort label-5782
SELECT ALL col2 DIV - col2 FROM tab1 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-5782
SELECT ALL col2 / - col2 FROM tab1 AS cor0
----
-1
-1
-1
query I rowsort
SELECT ALL + tab1.col0 * + tab1.col2 AS col0 FROM tab1
----
162
3648
7680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 + + cor0.col1 col0 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT - col0 * - 44 FROM tab0 AS cor0
----
1056
1540
3916
query I rowsort
SELECT ALL - col1 + col2 FROM tab0 cor0
----
-53
-9
-96
query I rowsort
SELECT ALL - + col1 - + ( 85 ) AS col2 FROM tab2 AS cor0
----
-102
-116
-144
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 + + col2 col0 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT DISTINCT - col2 * + 31 FROM tab0 AS cor0
----
-1023
-2542
-31
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5790
SELECT - - col2 / CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5790
SELECT - - col2 / CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col1 * 72 FROM tab1 AS cor0
----
1872
720
936
query I rowsort
SELECT + + 82 + + col2 AS col0 FROM tab1 AS cor0
----
136
139
178
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5793
SELECT + CAST( cor0.col1 AS SIGNED ) * cor0.col0 FROM tab0 AS cor0
----
2064
3395
8099
skipif mysql # not compatible
query I rowsort label-5793
SELECT + CAST ( cor0.col1 AS INTEGER ) * cor0.col0 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT + col1 + + 69 * col2 FROM tab0 AS cor0
----
166
2363
5749
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 ALL - cor0.col1 * 77 + col2 AS col1 FROM tab2 AS cor0
----
-1271
-2360
-4517
onlyif mysql # use DIV operator for integer division
query I rowsort label-5797
SELECT ALL - 26 DIV - cor0.col0 FROM tab0 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-5797
SELECT ALL - 26 / - cor0.col0 FROM tab0 AS cor0
----
0
0
1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5798
SELECT + CAST( cor0.col0 AS SIGNED ) + col1 + - col1 FROM tab1 AS cor0
----
3
64
80
skipif mysql # not compatible
query I rowsort label-5798
SELECT + CAST ( cor0.col0 AS INTEGER ) + col1 + - col1 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT DISTINCT col0 - - ( - col0 ) FROM tab1
----
0
query I rowsort
SELECT + - 50 * col2 FROM tab2 AS cor0
----
-1300
-1350
-1900
query I rowsort
SELECT - - ( - 10 ) AS col2 FROM tab2 AS cor0
----
-10
-10
-10
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + tab1.col1 col1 FROM tab1
----
29
74
93
query I rowsort
SELECT 70 FROM tab2, tab2 AS cor0
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911
query I rowsort
SELECT - - col0 * + ( + col1 ) AS col0 FROM tab1 AS cor0
----
1040
640
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-5805
SELECT + col0 * + col0 + col1 DIV col1 AS col1 FROM tab2 AS cor0
----
50
6085
6242
skipif mysql # not compatible
query I rowsort label-5805
SELECT + col0 * + col0 + col1 / col1 AS col1 FROM tab2 AS cor0
----
50
6085
6242
query I rowsort
SELECT ALL col0 * cor0.col0 AS col0 FROM tab2 AS cor0
----
49
6084
6241
onlyif mysql # use DIV operator for integer division
query I rowsort label-5807
SELECT ( - ( - col1 ) ) DIV + ( - col2 ) AS col1 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5807
SELECT ( - ( - col1 ) ) / + ( - col2 ) AS col1 FROM tab1
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-5808
SELECT + col1 DIV cor0.col1 FROM tab0 cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-5808
SELECT + col1 / cor0.col1 FROM tab0 cor0
----
1
1
1
query I rowsort
SELECT + 7 FROM tab0, tab1 AS cor0, tab2 AS cor1, tab2, tab0 AS cor2
----
243 values hashing to d173222899c2eacb69f7b1d1084a1230
query I rowsort
SELECT col0 * - col0 * - col2 + col2 + - cor0.col2 AS col1 FROM tab0 cor0
----
1225
19008
649522
onlyif mysql # use DIV operator for integer division
query I rowsort label-5811
SELECT ALL col2 DIV ( - col1 ) AS col2 FROM tab2
----
-2
0
0
skipif mysql # not compatible
query I rowsort label-5811
SELECT ALL col2 / ( - col1 ) AS col2 FROM tab2
----
-2
0
0
query I rowsort
SELECT DISTINCT + col1 * col1 AS col2 FROM tab1
----
100
169
676
onlyif mysql # use DIV operator for integer division
query I rowsort label-5813
SELECT tab1.col2 + ( 35 ) * + col1 DIV + ( col1 * + col2 ) FROM tab1
----
54
57
96
skipif mysql # not compatible
query I rowsort label-5813
SELECT tab1.col2 + ( 35 ) * + col1 / + ( col1 * + col2 ) FROM tab1
----
54
57
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-5814
SELECT ALL - col2 + cor0.col1 DIV + 65 FROM tab1 AS cor0
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-5814
SELECT ALL - col2 + cor0.col1 / + 65 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT + 12 FROM tab1, tab2 AS cor0
----
9 values hashing to d4f5a8e032294c3b9342821617800972
query I rowsort
SELECT 33 FROM tab0, tab1 AS cor0
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 + col0 col1 FROM tab2 AS cor0
----
-20
41
52
onlyif mysql # use DIV operator for integer division
query I rowsort label-5818
SELECT ALL - + col2 DIV col1 AS col2 FROM tab2 AS cor0
----
-2
0
0
skipif mysql # not compatible
query I rowsort label-5818
SELECT ALL - + col2 / col1 AS col2 FROM tab2 AS cor0
----
-2
0
0
query I rowsort
SELECT DISTINCT + col0 + + col0 AS col0 FROM tab1 AS cor0
----
128
160
6
query I rowsort
SELECT ( - col0 ) + - ( col2 * + col0 + - 76 ) AS col2 FROM tab2 AS cor0
----
-120
-2030
-3005
onlyif mysql # use DIV operator for integer division
query I rowsort label-5821
SELECT ALL cor0.col2 + col0 DIV col1 FROM tab0 AS cor0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-5821
SELECT ALL cor0.col2 + col0 / col1 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT ALL + + cor0.col2 * - col2 - col0 AS col2 FROM tab1 AS cor0
----
-2919
-3313
-9296
onlyif mysql # use DIV operator for integer division
query I rowsort label-5823
SELECT DISTINCT + + 72 + col0 DIV + col1 FROM tab1 cor0
----
72
78
skipif mysql # not compatible
query I rowsort label-5823
SELECT DISTINCT + + 72 + col0 / + col1 FROM tab1 cor0
----
72
78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - col0 col0 FROM tab2 AS cor0
----
-137
-38
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 col1 FROM tab1, tab0 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
onlyif mysql # use DIV operator for integer division
query I rowsort label-5826
SELECT col1 DIV - col2 + 38 * + col1 FROM tab1 AS cor0
----
380
494
988
skipif mysql # not compatible
query I rowsort label-5826
SELECT col1 / - col2 + 38 * + col1 FROM tab1 AS cor0
----
380
494
988
query I rowsort
SELECT 4 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b
onlyif mysql # use DIV operator for integer division
query I rowsort label-5828
SELECT DISTINCT + col0 DIV - col0 AS col2 FROM tab2
----
-1
skipif mysql # not compatible
query I rowsort label-5828
SELECT DISTINCT + col0 / - col0 AS col2 FROM tab2
----
-1
query I rowsort
SELECT + col0 - - tab2.col0 AS col1 FROM tab2
----
14
156
158
query I rowsort
SELECT DISTINCT 86 AS col0 FROM tab0
----
86
query I rowsort
SELECT DISTINCT 37 * + col0 FROM tab1
----
111
2368
2960
query I rowsort
SELECT col1 * col1 * - col1 AS col0 FROM tab1
----
-1000
-17576
-2197
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + col1 + + 16 * cor0.col2 col2 FROM tab1 AS cor0
----
1645
944
979
onlyif mysql # use DIV operator for integer division
query I rowsort label-5834
SELECT ALL col2 + col2 DIV + col0 FROM tab0
----
1
34
82
skipif mysql # not compatible
query I rowsort label-5834
SELECT ALL col2 + col2 / + col0 FROM tab0
----
1
34
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-5835
SELECT tab0.col1 DIV col1 FROM tab0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-5835
SELECT tab0.col1 / col1 FROM tab0
----
1
1
1
query I rowsort
SELECT DISTINCT tab1.col1 AS col1 FROM tab1, tab0, tab0 AS cor0
----
10
13
26
query I rowsort
SELECT cor0.col1 * col1 - + col2 FROM tab0 cor0
----
7363
8199
9408
query I rowsort
SELECT - + ( 36 ) FROM tab0 cor0
----
-36
-36
-36
onlyif mysql # use DIV operator for integer division
query I rowsort label-5839
SELECT ALL - - 12 DIV col0 + + col0 FROM tab1 cor0
----
64
7
80
skipif mysql # not compatible
query I rowsort label-5839
SELECT ALL - - 12 / col0 + + col0 FROM tab1 cor0
----
64
7
80
query I rowsort
SELECT DISTINCT - tab1.col1 * col0 FROM tab1
----
-1040
-640
-78
query I rowsort
SELECT - col0 * + cor0.col0 + col1 FROM tab2 AS cor0
----
-18
-6025
-6224
query I rowsort
SELECT - col0 * 52 + col0 FROM tab0 AS cor0
----
-1224
-1785
-4539
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5843
SELECT ALL - col2 * col1 / - col1 - + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5843
SELECT ALL - col2 * col1 / - col1 - + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT - + 36 - col1 FROM tab0 AS cor0
----
-122
-127
-133
query I rowsort
SELECT - 71 * 18 AS col0 FROM tab0 AS cor0
----
-1278
-1278
-1278
query I rowsort
SELECT - ( col2 ) * - col1 + col2 FROM tab0 cor0
----
2871
7544
98
query I rowsort
SELECT ALL 6 * - col1 + col2 FROM tab0 AS cor0
----
-464
-483
-581
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * col1 col0 FROM tab0 AS cor0
----
2064
3395
8099
skipif mysql # not compatible
query I rowsort
SELECT CAST ( - col1 AS REAL ) + col2 FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT - 90 + col0 AS col0 FROM tab2 AS cor0
----
-11
-12
-83
query I rowsort
SELECT + - 25 AS col2 FROM tab1 AS cor0
----
-25
-25
-25
query I rowsort
SELECT + ( + col2 ) * col1 - col1 AS col2 FROM tab2
----
1475
629
806
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5853
SELECT CAST( + col0 AS SIGNED ) FROM tab2
----
7
78
79
skipif mysql # not compatible
query I rowsort label-5853
SELECT CAST ( + col0 AS INTEGER ) FROM tab2
----
7
78
79
query I rowsort
SELECT + tab2.col1 * col1 + col2 * ( 99 ) FROM tab2
----
3634
4051
6055
query I rowsort
SELECT 64 * col0 FROM tab1
----
192
4096
5120
query I rowsort
SELECT - col1 * col0 * col2 + col1 * col2 FROM tab0
----
-3298
-65274
-656656
onlyif mysql # use DIV operator for integer division
query I rowsort label-5857
SELECT 42 + + col2 * - col2 + col0 DIV 87 AS col2 FROM tab2
----
-1402
-634
-687
skipif mysql # not compatible
query I rowsort label-5857
SELECT 42 + + col2 * - col2 + col0 / 87 AS col2 FROM tab2
----
-1402
-634
-687
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( col0 ) - + col0 col0 FROM tab1
----
-128
-160
-6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + 69 col1 FROM tab2 AS cor0
----
-483
-5382
-5451
query I rowsort
SELECT DISTINCT + col2 * 35 * - col2 AS col0 FROM tab2 AS cor0
----
-23660
-25515
-50540
query I rowsort
SELECT - 57 * ( col0 ) AS col1 FROM tab2 AS cor0
----
-399
-4446
-4503
query I rowsort
SELECT DISTINCT 69 FROM tab2, tab0 AS cor0, tab0 AS cor1, tab2 AS cor2
----
69
query I rowsort
SELECT DISTINCT + col2 * col1 + - col2 * + col0 FROM tab0 AS cor0
----
164
2046
62
query I rowsort
SELECT ( col2 ) + + 92 AS col0 FROM tab2 AS cor0
----
118
119
130
onlyif mysql # use DIV operator for integer division
query I rowsort label-5865
SELECT ALL + + ( - col2 ) DIV col0 + - 42 FROM tab0 AS cor0
----
-42
-42
-43
skipif mysql # not compatible
query I rowsort label-5865
SELECT ALL + + ( - col2 ) / col0 + - 42 FROM tab0 AS cor0
----
-42
-42
-43
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 + + col0 col1 FROM tab0 AS cor0
----
178
48
70
query I rowsort
SELECT ALL + + col1 * - col2 FROM tab2 AS cor0
----
-1534
-646
-837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * + col1 + - col0 col1 FROM tab0 cor0
----
-2088
-3430
-8188
query I rowsort
SELECT ALL cor0.col1 - + cor0.col2 AS col1 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT DISTINCT - 46 * col0 FROM tab2 cor0
----
-322
-3588
-3634
query I rowsort
SELECT + 86 + - cor0.col0 FROM tab0 cor0
----
-3
51
62
query I rowsort
SELECT ALL + 75 * col2 + 14 * col1 AS col1 FROM tab0 AS cor0
----
1433
3679
7424
query I rowsort
SELECT DISTINCT - - col0 * + cor0.col1 AS col2 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT ALL - col1 * + col0 + 8 * 98 + - cor0.col1 FROM tab0 AS cor0
----
-1366
-2708
-7406
query I rowsort
SELECT ALL + 52 + - col1 * ( col1 ) AS col2 FROM tab2 AS cor0
----
-237
-3429
-909
query I rowsort
SELECT + + 14 FROM tab0 cor0
----
14
14
14
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 * - col1 - col1 * ( col1 ) col2 FROM tab1 AS cor0
----
-598
540
871
query I rowsort
SELECT ALL - 15 FROM tab2 cor0
----
-15
-15
-15
query I rowsort
SELECT 74 * + col2 FROM tab2
----
1924
1998
2812
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5880
SELECT DISTINCT - CAST( + col2 AS SIGNED ) - + col2 col0 FROM tab0
----
-164
-2
-66
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5880
SELECT DISTINCT - CAST ( + col2 AS INTEGER ) - + col2 col0 FROM tab0
----
-164
-2
-66
query I rowsort
SELECT DISTINCT - - cor0.col1 * - col0 FROM tab1 cor0
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT - col0 * + col2 * + cor0.col1 AS col1 FROM tab2 AS cor0
----
-119652
-51034
-5859
onlyif mysql # use DIV operator for integer division
query I rowsort label-5883
SELECT DISTINCT + + 78 DIV + col2 FROM tab1 AS cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-5883
SELECT DISTINCT + + 78 / + col2 FROM tab1 AS cor0
----
0
1
query I rowsort
SELECT - + col2 * col1 + col2 FROM tab2 AS cor0
----
-1508
-608
-810
query I rowsort
SELECT ALL 74 * + col2 AS col0 FROM tab1 cor0
----
3996
4218
7104
query I rowsort
SELECT cor0.col0 * col1 AS col2 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT - cor0.col0 + 49 * - cor0.col0 FROM tab1 AS cor0
----
-150
-3200
-4000
query I rowsort
SELECT DISTINCT + col0 * 49 * + ( + col1 ) AS col2 FROM tab0
----
101136
166355
396851
query I rowsort
SELECT + cor0.col1 + + col0 * ( - col2 ) FROM tab2 AS cor0
----
-158
-1969
-2985
onlyif mysql # use DIV operator for integer division
query I rowsort label-5890
SELECT ALL - col2 DIV ( 64 ) FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5890
SELECT ALL - col2 / ( 64 ) FROM tab2 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5891
SELECT DISTINCT - col0 * + CAST( + 77 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-1848
-2695
-6853
skipif mysql # not compatible
query I rowsort label-5891
SELECT DISTINCT - col0 * + CAST ( + 77 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-1848
-2695
-6853
query I rowsort
SELECT - 49 FROM tab2
----
-49
-49
-49
query I rowsort
SELECT col2 * col0 * col1 AS col0 FROM tab2
----
119652
51034
5859
query I rowsort
SELECT ALL col1 * + 6 + 42 FROM tab1 AS cor0
----
102
120
198
query I rowsort
SELECT + col2 * - 73 AS col2 FROM tab2 cor0
----
-1898
-1971
-2774
query I rowsort
SELECT ALL col0 + ( col1 ) AS col0 FROM tab1 cor0
----
29
74
93
query I rowsort
SELECT ALL + + col1 + + col0 AS col1 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT ALL - col2 + + cor0.col1 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT DISTINCT col0 + - col1 + col1 * + col0 FROM tab1 cor0
----
1107
55
694
query I rowsort
SELECT - col2 + col2 AS col1 FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT ALL + col2 * ( + col0 ) AS col0 FROM tab0
----
35
7298
792
query I rowsort
SELECT DISTINCT col2 * + cor0.col0 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT - cor0.col0 * + 1 FROM tab1 AS cor0
----
-3
-64
-80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5904
SELECT ALL + CAST( NULL AS SIGNED ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5904
SELECT ALL + CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + - col2 * ( col0 ) * + col0 FROM tab0 AS cor0
----
-1225
-19008
-649522
query I rowsort
SELECT ALL - col0 * + 46 FROM tab0
----
-1104
-1610
-4094
query I rowsort
SELECT tab0.col1 - 48 FROM tab0
----
38
43
49
onlyif mysql # use DIV operator for integer division
query I rowsort label-5908
SELECT DISTINCT col2 DIV + tab1.col2 AS col2 FROM tab1
----
1
skipif mysql # not compatible
query I rowsort label-5908
SELECT DISTINCT col2 / + tab1.col2 AS col2 FROM tab1
----
1
query I rowsort
SELECT col2 * - col2 + - 95 FROM tab0
----
-1184
-6819
-96
query I rowsort
SELECT + cor0.col2 * + col0 + ( + col0 ) * + col0 FROM tab1 AS cor0
----
14080
171
7744
query I rowsort
SELECT col0 - - col1 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT + 35 AS col0 FROM tab0
----
35
35
35
query I rowsort
SELECT col2 * col1 + ( - col1 ) FROM tab0
----
0
2752
7371
query I rowsort
SELECT + 88 * tab2.col2 FROM tab2, tab1, tab0 cor0
----
27 values hashing to 0f6c03cf478be1c372a96d52989fc6db
query I rowsort
SELECT 9 + + col0 AS col0 FROM tab0
----
33
44
98
query I rowsort
SELECT 64 + col0 FROM tab1
----
128
144
67
query I rowsort
SELECT ALL + 25 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 525a55d5ed224a62da65df36731881a7
query I rowsort
SELECT - col1 + col2 * cor0.col0 * + col0 FROM tab0 AS cor0
----
1128
18922
649431
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5919
SELECT - col2 / CAST( NULL AS DECIMAL ) + - ( col2 ) - - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5919
SELECT - col2 / CAST ( NULL AS REAL ) + - ( col2 ) - - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-5920
SELECT DISTINCT - col0 DIV - 53 AS col0 FROM tab1 cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-5920
SELECT DISTINCT - col0 / - 53 AS col0 FROM tab1 cor0
----
0
1
query I rowsort
SELECT - + col1 * 51 * col1 + col1 - - 91 AS col0 FROM tab1 AS cor0
----
-34359
-4999
-8515
query I rowsort
SELECT ALL - cor0.col0 + col2 * cor0.col1 FROM tab0 AS cor0
----
2814
62
7373
query I rowsort
SELECT + cor0.col1 * + col1 - col2 * col0 AS col2 FROM tab0 cor0
----
6604
9374
983
query I rowsort
SELECT ALL + cor0.col2 + col1 AS col0 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT - col1 - 6 * - col1 FROM tab1 AS cor0
----
130
50
65
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5926
SELECT DISTINCT col2 + - CAST( col1 AS SIGNED ) - + col1 FROM tab2 AS cor0
----
-35
-92
4
skipif mysql # not compatible
query I rowsort label-5926
SELECT DISTINCT col2 + - CAST ( col1 AS INTEGER ) - + col1 FROM tab2 AS cor0
----
-35
-92
4
query I rowsort
SELECT cor0.col2 + + 69 AS col1 FROM tab1 AS cor0
----
123
126
165
query I rowsort
SELECT ALL + - col2 * - col1 AS col1 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT - 81 FROM tab0
----
-81
-81
-81
query I rowsort
SELECT + + 57 FROM tab2, tab2 cor0, tab1, tab1 cor1
----
81 values hashing to 23b62d6905061dab566f3a9e15667302
onlyif mysql # use DIV operator for integer division
query I rowsort label-5931
SELECT - 20 * - col1 DIV + col1 + 91 FROM tab0
----
111
111
111
skipif mysql # not compatible
query I rowsort label-5931
SELECT - 20 * - col1 / + col1 + 91 FROM tab0
----
111
111
111
query I rowsort
SELECT 81 + + col1 * + col0 FROM tab2 AS cor0
----
1424
298
4683
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5933
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + col2 FROM tab2 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5933
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + col2 FROM tab2 cor0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5934
SELECT CAST( 49 + + col2 * col2 AS SIGNED ) FROM tab1
----
2965
3298
9265
skipif mysql # not compatible
query I rowsort label-5934
SELECT CAST ( 49 + + col2 * col2 AS INTEGER ) FROM tab1
----
2965
3298
9265
query I rowsort
SELECT ALL + tab0.col1 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT cor1.col2 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17
query I rowsort
SELECT ALL - - 63 AS col2 FROM tab2 AS cor0
----
63
63
63
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 - col2 col0 FROM tab2 AS cor0
----
-52
-54
-76
query I rowsort
SELECT DISTINCT - 5 AS col2 FROM tab0 AS cor0
----
-5
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
query I rowsort
SELECT ALL ( - cor0.col1 ) * 53 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 7ac9efcc5f0e7f073f296acf5abcb8db
onlyif mysql # use DIV operator for integer division
query I rowsort label-5942
SELECT ALL + + col1 * col2 DIV - ( - col1 ) + + col0 * 90 * col1 AS col1 FROM tab0 AS cor0
----
185793
305551
728992
skipif mysql # not compatible
query I rowsort label-5942
SELECT ALL + + col1 * col2 / - ( - col1 ) + + col0 * 90 * col1 AS col1 FROM tab0 AS cor0
----
185793
305551
728992
query I rowsort
SELECT 44 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d
query I rowsort
SELECT DISTINCT + ( col1 ) * 42 FROM tab1
----
1092
420
546
query I rowsort
SELECT DISTINCT + + 68 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
68
query I rowsort
SELECT col2 + col2 * ( - col1 ) AS col2 FROM tab2 AS cor0
----
-1508
-608
-810
query I rowsort
SELECT - + ( cor0.col1 ) * 2 AS col0 FROM tab2 AS cor0
----
-118
-34
-62
query I rowsort
SELECT + - col2 * + col0 AS col1 FROM tab0 AS cor0
----
-35
-7298
-792
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5949
SELECT - CAST( NULL AS SIGNED ) * 1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-5949
SELECT - CAST ( NULL AS INTEGER ) * 1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT - col0 + + col2 * - col1 AS col2 FROM tab0 AS cor0
----
-132
-2862
-7551
query I rowsort
SELECT ( col2 ) + - col2 AS col0 FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT col1 + col0 * cor0.col1 FROM tab1 AS cor0
----
104
1053
650
query I rowsort
SELECT + - 46 + 63 FROM tab1 cor0
----
17
17
17
query I rowsort
SELECT ALL + col0 + 63 * col1 FROM tab2
----
1150
1960
3795
query I rowsort
SELECT DISTINCT cor0.col2 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab1 AS cor2, tab1 AS cor3
----
1
33
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-5956
SELECT ( col1 ) DIV col0 + 77 FROM tab2 AS cor0
----
77
77
81
skipif mysql # not compatible
query I rowsort label-5956
SELECT ( col1 ) / col0 + 77 FROM tab2 AS cor0
----
77
77
81
query I rowsort
SELECT ALL - col1 * ( col2 ) FROM tab2
----
-1534
-646
-837
query I rowsort
SELECT - col0 + + cor0.col2 * cor0.col2 FROM tab0 AS cor0
----
-34
1065
6635
query I rowsort
SELECT ALL 55 * col1 AS col1 FROM tab1
----
1430
550
715
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 11 col1 FROM tab1, tab2 cor0 CROSS JOIN tab2
----
27 values hashing to 69116737f3f57e2e3273f6dbb04d036c
query I rowsort
SELECT col1 + - col1 * + cor0.col1 + 30 FROM tab0 AS cor0
----
-7280
-8160
-9282
query I rowsort
SELECT - - cor0.col1 * cor0.col1 - + col0 * col0 FROM tab0 AS cor0
----
360
6820
8184
onlyif mysql # use DIV operator for integer division
query I rowsort label-5963
SELECT - col0 + - col0 DIV col0 AS col0 FROM tab2 cor0
----
-79
-8
-80
skipif mysql # not compatible
query I rowsort label-5963
SELECT - col0 + - col0 / col0 AS col0 FROM tab2 cor0
----
-79
-8
-80
query I rowsort
SELECT DISTINCT - col0 + col1 * col2 AS col0 FROM tab0
----
2814
62
7373
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col1 * + col1 col1 FROM tab1 AS cor0
----
164
249
679
query I rowsort
SELECT ALL 73 + + col0 FROM tab0 AS cor0
----
108
162
97
query I rowsort
SELECT DISTINCT - 32 FROM tab0 AS cor0
----
-32
query I rowsort
SELECT DISTINCT + 25 + + col2 FROM tab2 AS cor0
----
51
52
63
query I rowsort
SELECT DISTINCT 70 * col0 * col2 FROM tab2 cor0
----
13230
141960
210140
query I rowsort
SELECT - 58 - 69 AS col1 FROM tab0 AS cor0
----
-127
-127
-127
onlyif mysql # use DIV operator for integer division
query I rowsort label-5971
SELECT ALL col1 DIV + col1 AS col2 FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-5971
SELECT ALL col1 / + col1 AS col2 FROM tab1 AS cor0
----
1
1
1
query I rowsort
SELECT 36 * + 70 FROM tab0 AS cor0
----
2520
2520
2520
query I rowsort
SELECT 40 * - col1 FROM tab0 AS cor0
----
-3440
-3640
-3880
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5974
SELECT ALL + CAST( col1 AS SIGNED ) * - col0 - 6 FROM tab1 AS cor0
----
-1046
-646
-84
skipif mysql # not compatible
query I rowsort label-5974
SELECT ALL + CAST ( col1 AS INTEGER ) * - col0 - 6 FROM tab1 AS cor0
----
-1046
-646
-84
query I rowsort
SELECT 7 + col2 AS col0 FROM tab0 AS cor0
----
40
8
89
query I rowsort
SELECT DISTINCT - - ( - col1 ) * - col2 AS col2 FROM tab2 AS cor0
----
1534
646
837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 18 + - 94 * col2 * - col0 + + 10 col1 FROM tab0 AS cor0
----
3318
686040
74476
query I rowsort
SELECT DISTINCT + 21 + + 30 * + col2 * - ( + col2 * col0 ) FROM tab0 AS cor0
----
-1029
-17953059
-784059
query I rowsort
SELECT - 77 * - col1 FROM tab1 AS cor0
----
1001
2002
770
query I rowsort
SELECT - - col1 + 30 + - col2 FROM tab2 cor0
----
34
63
9
query I rowsort
SELECT - + cor0.col0 + cor0.col1 * - col0 FROM tab0 AS cor0
----
-2088
-3430
-8188
query I rowsort
SELECT DISTINCT col0 * + col0 + - col1 AS col2 FROM tab0 AS cor0
----
1128
490
7830
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * col0 + col0 * + 67 * col0 - + ( - 68 ) col2 FROM tab1 AS cor0
----
278148
436548
833
query I rowsort
SELECT ( col2 ) - col0 FROM tab1 cor0
----
-7
16
51
onlyif mysql # use DIV operator for integer division
query I rowsort label-5985
SELECT DISTINCT + - 21 DIV col1 + 93 FROM tab0 AS cor0
----
93
skipif mysql # not compatible
query I rowsort label-5985
SELECT DISTINCT + - 21 / col1 + 93 FROM tab0 AS cor0
----
93
query I rowsort
SELECT + - cor0.col1 + col1 AS col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL col2 + - col0 AS col2 FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT DISTINCT - - cor0.col1 + - col1 * - 71 AS col2 FROM tab2 AS cor0
----
1224
2232
4248
query I rowsort
SELECT ALL + col1 * col1 + + 65 + 58 AS col2 FROM tab0 AS cor0
----
7519
8404
9532
query I rowsort
SELECT DISTINCT + ( col2 ) * tab2.col1 FROM tab2
----
1534
646
837
query I rowsort
SELECT ALL - col2 - + col2 FROM tab0 cor0
----
-164
-2
-66
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 75 + col2 * - col1 col1 FROM tab2 AS cor0
----
-1609
-721
-912
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5993
SELECT ALL + col1 + CAST( NULL AS SIGNED ) * + col2 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5993
SELECT ALL + col1 + CAST ( NULL AS INTEGER ) * + col2 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col0 * 5 FROM tab2 AS cor0
----
35
390
395
query I rowsort
SELECT ALL - col1 + col1 AS col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT + col1 * 82 AS col1 FROM tab2 AS cor0
----
1394
2542
4838
query I rowsort
SELECT - 43 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ab0c314d2b589ccedb9a875beeb1f86a
query I rowsort
SELECT DISTINCT - col1 + ( col1 ) * cor0.col1 FROM tab2 cor0
----
272
3422
930
onlyif mysql # use DIV operator for integer division
query I rowsort label-5999
SELECT + col0 * ( col2 ) DIV + col2 FROM tab0 AS cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-5999
SELECT + col0 * ( col2 ) / + col2 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT ALL - col0 * + ( - col1 * col2 ) AS col1 FROM tab0
----
3395
664118
68112
query I rowsort
SELECT DISTINCT - cor1.col1 AS col1 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
-17
-31
-59
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6002
SELECT ALL CAST( NULL AS SIGNED ) * col1 + - col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6002
SELECT ALL CAST ( NULL AS INTEGER ) * col1 + - col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT cor0.col2 + + 37 AS col0 FROM tab1, tab2 cor0
----
9 values hashing to 25dc868fb8250f96bf40c539dcc3e267
query I rowsort
SELECT - 53 * col1 AS col0 FROM tab1 AS cor0
----
-1378
-530
-689
query I rowsort
SELECT DISTINCT 19 * + col1 AS col2 FROM tab0 cor0
----
1634
1729
1843
onlyif mysql # use DIV operator for integer division
query I rowsort label-6006
SELECT DISTINCT + col2 * - 25 + col2 DIV 29 FROM tab0 AS cor0
----
-2048
-25
-824
skipif mysql # not compatible
query I rowsort label-6006
SELECT DISTINCT + col2 * - 25 + col2 / 29 FROM tab0 AS cor0
----
-2048
-25
-824
query I rowsort
SELECT + 91 * col2 AS col1 FROM tab1 AS cor0
----
4914
5187
8736
query I rowsort
SELECT - col0 + 16 AS col2 FROM tab1
----
-48
-64
13
query I rowsort
SELECT ALL + + ( 48 ) AS col0 FROM tab1 AS cor0
----
48
48
48
query I rowsort
SELECT ALL col2 * 93 FROM tab2 AS cor0
----
2418
2511
3534
onlyif mysql # use DIV operator for integer division
query I rowsort label-6011
SELECT + - col0 DIV + 93 AS col1 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6011
SELECT + - col0 / + 93 AS col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT col2 + col1 * col1 FROM tab2
----
327
3507
988
query I rowsort
SELECT DISTINCT 89 * + col1 * tab0.col1 AS col2 FROM tab0
----
658244
737009
837401
query I rowsort
SELECT + ( - col2 ) AS col0 FROM tab2
----
-26
-27
-38
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6015
SELECT ALL CAST( NULL AS DECIMAL ) + - cor0.col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6015
SELECT ALL CAST ( NULL AS REAL ) + - cor0.col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + ( col1 + col1 ) AS col2 FROM tab2
----
118
34
62
skipif mysql # not compatible
query I rowsort
SELECT ALL - + CAST ( 8 AS REAL ) * + col1 FROM tab2 AS cor0
----
-136
-248
-472
query I rowsort
SELECT ALL - 7 + tab0.col2 FROM tab0
----
-6
26
75
query I rowsort
SELECT + cor0.col0 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
onlyif mysql # use DIV operator for integer division
query I rowsort label-6020
SELECT DISTINCT + ( - col0 ) + col1 DIV - tab0.col2 AS col2 FROM tab0
----
-132
-26
-90
skipif mysql # not compatible
query I rowsort label-6020
SELECT DISTINCT + ( - col0 ) + col1 / - tab0.col2 AS col2 FROM tab0
----
-132
-26
-90
query I rowsort
SELECT DISTINCT col1 * col2 + ( + 10 * - col0 ) AS col1 FROM tab2
----
-144
754
767
query I rowsort
SELECT DISTINCT + 5 + - col0 FROM tab2 AS cor0
----
-2
-73
-74
onlyif mysql # use DIV operator for integer division
query I rowsort label-6023
SELECT ALL col2 + col1 DIV tab1.col1 AS col1 FROM tab1
----
55
58
97
skipif mysql # not compatible
query I rowsort label-6023
SELECT ALL col2 + col1 / tab1.col1 AS col1 FROM tab1
----
55
58
97
query I rowsort
SELECT ALL - tab1.col1 + + col0 AS col2 FROM tab1
----
-23
54
67
query I rowsort
SELECT ALL + col1 + 87 * cor0.col2 * col0 FROM tab1 AS cor0
----
14120
317386
668173
query I rowsort
SELECT DISTINCT - - col1 * - col2 AS col0 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT ALL col2 * col1 + - col1 AS col2 FROM tab2 AS cor0
----
1475
629
806
query I rowsort
SELECT DISTINCT + col2 * col1 + - 69 * - col2 FROM tab1 AS cor0
----
4503
5130
7872
query I rowsort
SELECT - col1 * + col0 * col0 + col1 FROM tab2
----
-106080
-1488
-358897
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - 26 + + col2 * + cor0.col1 col0 FROM tab2 AS cor0
----
-1408
-494
655
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + - col0 * - col2 col0 FROM tab0 AS cor0
----
70
7387
816
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6032
SELECT DISTINCT + + cor0.col1 + - CAST( NULL AS SIGNED ) * col0 * col0 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6032
SELECT DISTINCT + + cor0.col1 + - CAST ( NULL AS INTEGER ) * col0 * col0 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT + col2 * + col1 + col2 FROM tab0 AS cor0
----
2871
7544
98
query I rowsort
SELECT col0 * - ( 97 ) AS col2 FROM tab1 cor0
----
-291
-6208
-7760
onlyif mysql # use DIV operator for integer division
query I rowsort label-6035
SELECT ALL - + col1 * col2 - - cor0.col1 DIV cor0.col0 AS col0 FROM tab0 cor0
----
-2835
-7461
-95
skipif mysql # not compatible
query I rowsort label-6035
SELECT ALL - + col1 * col2 - - cor0.col1 / cor0.col0 AS col0 FROM tab0 cor0
----
-2835
-7461
-95
onlyif mysql # use DIV operator for integer division
query I rowsort label-6036
SELECT ALL col2 + 28 DIV - 31 FROM tab1 AS cor0
----
54
57
96
skipif mysql # not compatible
query I rowsort label-6036
SELECT ALL col2 + 28 / - 31 FROM tab1 AS cor0
----
54
57
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - col1 - - col1 col2 FROM tab1 AS cor0
----
10
13
26
onlyif mysql # use DIV operator for integer division
query I rowsort label-6038
SELECT ALL col0 DIV + 76 col1 FROM tab1 AS cor0
----
0
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6038
SELECT ALL col0 / + 76 col1 FROM tab1 AS cor0
----
0
0
1
query I rowsort
SELECT - + col1 + + col2 AS col0 FROM tab0 cor0
----
-53
-9
-96
query I rowsort
SELECT DISTINCT - col1 - ( + ( col0 ) ) AS col2 FROM tab1 AS cor0
----
-29
-74
-93
query I rowsort
SELECT col0 * - 71 FROM tab1 cor0
----
-213
-4544
-5680
query I rowsort
SELECT ALL + cor0.col2 AS col1 FROM tab2 cor0
----
26
27
38
query I rowsort
SELECT ALL cor0.col0 - - ( 84 ) * - cor0.col0 FROM tab1 AS cor0
----
-249
-5312
-6640
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 col2 FROM tab1 cor0
----
-54
-57
-96
query I rowsort
SELECT - col2 * - col2 + + col2 AS col0 FROM tab2 AS cor0
----
1482
702
756
query I rowsort
SELECT DISTINCT col2 * cor0.col0 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT ALL + ( col0 ) AS col1 FROM tab0
----
24
35
89
query I rowsort
SELECT DISTINCT + col1 + col2 - + 73 AS col0 FROM tab1 AS cor0
----
-6
36
7
query I rowsort
SELECT cor0.col0 * cor0.col2 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT ( col2 ) * - col2 + col0 FROM tab0 AS cor0
----
-1065
-6635
34
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 45 col1 FROM tab1, tab2 cor0, tab0 AS cor1
----
27 values hashing to 14cec871edc37b5056cda01c8331fdca
query I rowsort
SELECT - + 88 + cor0.col1 AS col0 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 593b1356cf548607d2bea4b87675661b
query I rowsort
SELECT - col1 * - ( 62 ) AS col1 FROM tab1 AS cor0
----
1612
620
806
query I rowsort
SELECT DISTINCT - tab0.col1 * col0 FROM tab0
----
-2064
-3395
-8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-6055
SELECT DISTINCT + col0 DIV + col0 FROM tab1
----
1
skipif mysql # not compatible
query I rowsort label-6055
SELECT DISTINCT + col0 / + col0 FROM tab1
----
1
query I rowsort
SELECT ALL 3 * col2 AS col2 FROM tab0
----
246
3
99
query I rowsort
SELECT DISTINCT - 57 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
-57
query I rowsort
SELECT + 62 AS col1 FROM tab0
----
62
62
62
query I rowsort
SELECT DISTINCT + ( + col1 ) * ( - 18 * col0 ) FROM tab2
----
-24174
-3906
-82836
query I rowsort
SELECT 51 AS col2 FROM tab1
----
51
51
51
query I rowsort
SELECT ALL - tab0.col0 * tab0.col0 * + col1 + + col1 FROM tab0 WHERE ( NULL ) IN ( + col1 )
----
query I rowsort
SELECT DISTINCT - col2 * - tab0.col0 AS col2 FROM tab0
----
35
7298
792
query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL = ( col0 + + col2 * col1 )
----
query I rowsort
SELECT ALL - col1 * + col0 * + col1 AS col0 FROM tab2
----
-22831
-271518
-6727
query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 * col0 + col1 <= + col0 * - col2
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45
query I rowsort
SELECT DISTINCT + col1 * - col0 AS col0 FROM tab0
----
-2064
-3395
-8099
query I rowsort
SELECT DISTINCT - col0 + + col1 + + col0 AS col2 FROM tab1
----
10
13
26
query I rowsort
SELECT tab0.col0 * + col1 + - col1 * + col0 AS col0 FROM tab0
----
0
0
0
query I rowsort
SELECT col0 * + col0 * col0 FROM tab1
----
262144
27
512000
query I rowsort
SELECT + col0 + - col2 AS col0 FROM tab2 WHERE col1 * col0 < ( col2 * col2 )
----
-20
41
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * col2 col1 FROM tab0
----
-1
-1089
-6724
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + col1 * tab0.col2 col2 FROM tab0
----
194
2924
7553
query I rowsort
SELECT ALL + col2 + col2 + col2 * col0 AS col1 FROM tab1
----
270
3762
7872
query I rowsort
SELECT ALL + tab1.col0 + col0 FROM tab1
----
128
160
6
query I rowsort
SELECT DISTINCT + col2 * tab0.col2 FROM tab0
----
1
1089
6724
query I rowsort
SELECT + col0 * - col2 - - col1 AS col1 FROM tab2
----
-158
-1969
-2985
query III rowsort
SELECT ALL * FROM tab0 WHERE NULL NOT IN ( col2 * - tab0.col2 )
----
query I rowsort
SELECT DISTINCT + col2 * col1 * + col2 FROM tab2
----
22599
24548
39884
query III rowsort
SELECT ALL * FROM tab0 WHERE - col2 * + col1 + - col1 > NULL
----
query I rowsort
SELECT + col2 * + col2 * + col1 AS col1 FROM tab2
----
22599
24548
39884
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL IN ( col1 * col1 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col2 - tab1.col0 col1 FROM tab1
----
54
57
96
query I rowsort
SELECT DISTINCT - col1 + tab1.col0 AS col0 FROM tab1
----
-23
54
67
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL = NULL
----
query I rowsort
SELECT ALL - col0 / col2 + - col1 AS col1 FROM tab1 WHERE col0 IN ( + col2 * col0 )
----
query I rowsort
SELECT ALL - col2 AS col0 FROM tab0 WHERE NULL NOT BETWEEN NULL AND + col1
----
query I rowsort
SELECT col1 * + col2 - - col1 AS col1 FROM tab1
----
1261
1430
580
query I rowsort
SELECT col2 * - col2 + + col1 AS col0 FROM tab0
----
-1003
-6633
96
query I rowsort
SELECT DISTINCT + col2 + + cor0.col2 FROM tab1 AS cor0
----
108
114
192
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + col2 col1 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT - ( - 84 * + col2 ) FROM tab2
----
2184
2268
3192
query I rowsort
SELECT - ( - col2 ) - - col1 AS col2 FROM tab2
----
55
58
85
query I rowsort
SELECT DISTINCT ( 5 * - tab0.col2 ) AS col1 FROM tab0
----
-165
-410
-5
query I rowsort
SELECT + ( - tab1.col1 ) * - col1 AS col1 FROM tab1
----
100
169
676
query I rowsort
SELECT - col0 * col1 * 5 + col2 * col2 AS col2 FROM tab1 cor0
----
2526
4016
49
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 32 * + col2 + - col0 col2 FROM tab2 AS cor0
----
1137
754
857
query I rowsort
SELECT cor0.col2 * cor0.col0 * + 23 FROM tab2 cor0
----
4347
46644
69046
onlyif mysql # use DIV operator for integer division
query I rowsort label-6098
SELECT + col0 DIV col0 AS col0 FROM tab1
----
1
1
1
skipif mysql # not compatible
query I rowsort label-6098
SELECT + col0 / col0 AS col0 FROM tab1
----
1
1
1
query I rowsort
SELECT DISTINCT - 8 AS col2 FROM tab2, tab2 AS cor0
----
-8
query I rowsort
SELECT DISTINCT + tab0.col2 FROM tab0, tab0 AS cor0
----
1
33
82
query I rowsort
SELECT + 53 FROM tab2, tab0 AS cor0
----
9 values hashing to fede6033dee346dbd272085c05724fda
query I rowsort
SELECT cor1.col0 FROM tab0 AS cor0 CROSS JOIN tab2, tab0 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
query I rowsort
SELECT - col1 * - ( - 62 ) - - col2 AS col0 FROM tab0 AS cor0
----
-5299
-5560
-6013
query I rowsort
SELECT - + col1 * - col2 AS col2 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT + - col2 + + ( col2 ) * cor0.col2 FROM tab1 AS cor0
----
2862
3192
9120
query I rowsort
SELECT ALL + col0 - col0 AS col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT + + col0 * - col1 + col2 FROM tab0 AS cor0
----
-2031
-3394
-8017
query I rowsort
SELECT DISTINCT col1 * - col0 + + col2 + - col0 FROM tab1 AS cor0
----
-1024
-27
-647
query I rowsort
SELECT - col1 * - col1 * col2 AS col2 FROM tab1 cor0
----
16224
36504
5700
query I rowsort
SELECT - cor0.col1 + 57 FROM tab1 AS cor0
----
31
44
47
query I rowsort
SELECT DISTINCT - 49 FROM tab2, tab2 AS cor0
----
-49
query I rowsort
SELECT 32 + - 15 * + col2 + + col2 AS col2 FROM tab1
----
-1312
-724
-766
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + cor0.col0 * col2 col0 FROM tab1 AS cor0
----
188
3658
7693
query I rowsort
SELECT + ( 23 ) * cor0.col0 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 50d0eac07825adb455b119c43853cd72
query I rowsort
SELECT - 66 AS col1 FROM tab1 AS cor0
----
-66
-66
-66
query I rowsort
SELECT 57 + col0 * - col0 * 82 AS col0 FROM tab0 AS cor0
----
-100393
-47175
-649465
query I rowsort
SELECT + ( + col1 ) * col1 AS col1 FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT + 9 * - col0 AS col0 FROM tab2 cor0
----
-63
-702
-711
query I rowsort
SELECT ALL 78 FROM tab0, tab1 AS cor0
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4
query I rowsort
SELECT + col0 + 69 AS col0 FROM tab2 AS cor0
----
147
148
76
query I rowsort
SELECT + cor0.col2 * + col2 + - col0 AS col2 FROM tab1 AS cor0
----
2913
3185
9136
onlyif mysql # use DIV operator for integer division
query I rowsort label-6122
SELECT DISTINCT + col1 + + col1 DIV col2 FROM tab0 AS cor0
----
194
88
92
skipif mysql # not compatible
query I rowsort label-6122
SELECT DISTINCT + col1 + + col1 / col2 FROM tab0 AS cor0
----
194
88
92
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6123
SELECT + col0 + + CAST( NULL AS SIGNED ) * col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6123
SELECT + col0 + + CAST ( NULL AS INTEGER ) * col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6124
SELECT DISTINCT - col1 + - CAST( col2 AS SIGNED ) FROM tab0
----
-119
-173
-98
skipif mysql # not compatible
query I rowsort label-6124
SELECT DISTINCT - col1 + - CAST ( col2 AS INTEGER ) FROM tab0
----
-119
-173
-98
query I rowsort
SELECT ALL + col1 AS col0 FROM tab0 cor0
----
86
91
97
query I rowsort
SELECT ALL - + col2 * - 79 + col2 FROM tab2 cor0
----
2080
2160
3040
query I rowsort
SELECT ALL cor0.col2 + col0 AS col2 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT - 35 * + col1 FROM tab0 AS cor0
----
-3010
-3185
-3395
query I rowsort
SELECT ALL col1 * - col1 + col2 FROM tab0
----
-7363
-8199
-9408
query I rowsort
SELECT 94 AS col2 FROM tab0
----
94
94
94
query I rowsort
SELECT DISTINCT 10 + col0 * - col0 FROM tab2
----
-39
-6074
-6231
query I rowsort
SELECT + 64 * cor0.col0 AS col1 FROM tab1 AS cor0
----
192
4096
5120
skipif mysql # not compatible
query I rowsort
SELECT + CAST ( col1 AS REAL ) AS col1 FROM tab0 AS cor0
----
86
91
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-6134
SELECT DISTINCT + 78 * - col0 * col2 + col1 DIV col2 FROM tab1 AS cor0
----
-12636
-284544
-599040
skipif mysql # not compatible
query I rowsort label-6134
SELECT DISTINCT + 78 * - col0 * col2 + col1 / col2 FROM tab1 AS cor0
----
-12636
-284544
-599040
skipif mysql # not compatible
query I rowsort
SELECT ALL - CAST ( col1 AS REAL ) FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT col2 * 40 * - col1 + col2 AS col2 FROM tab2 AS cor0
----
-25802
-33453
-61334
query I rowsort
SELECT - 22 * cor0.col1 AS col2 FROM tab2 AS cor0
----
-1298
-374
-682
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 26 col2 FROM tab0 AS cor0
----
26
onlyif mysql # use DIV operator for integer division
query I rowsort label-6139
SELECT DISTINCT - - col0 DIV + col0 + col2 AS col0 FROM tab2 AS cor0
----
27
28
39
skipif mysql # not compatible
query I rowsort label-6139
SELECT DISTINCT - - col0 / + col0 + col2 AS col0 FROM tab2 AS cor0
----
27
28
39
query I rowsort
SELECT ALL - cor0.col2 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba
query I rowsort
SELECT + ( + col1 ) * - col1 + + 50 AS col1 FROM tab2 AS cor0
----
-239
-3431
-911
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6142
SELECT + CAST( col0 AS SIGNED ) + col0 * col2 FROM tab0 AS cor0
----
70
7387
816
skipif mysql # not compatible
query I rowsort label-6142
SELECT + CAST ( col0 AS INTEGER ) + col0 * col2 FROM tab0 AS cor0
----
70
7387
816
query I rowsort
SELECT DISTINCT - col2 * col2 + - ( 37 ) * - col0 FROM tab2 AS cor0
----
-470
1479
2210
query I rowsort
SELECT 67 + col0 * + col1 AS col1 FROM tab1 AS cor0
----
1107
145
707
query I rowsort
SELECT DISTINCT - - col0 + + cor0.col1 - col2 AS col2 FROM tab0 cor0
----
131
77
98
query I rowsort
SELECT - 7 FROM tab0
----
-7
-7
-7
query I rowsort
SELECT DISTINCT + col1 * + col0 AS col0 FROM tab1
----
1040
640
78
query I rowsort
SELECT ( + 51 ) AS col0 FROM tab0
----
51
51
51
query I rowsort
SELECT DISTINCT ( + col2 ) * - col1 FROM tab2
----
-1534
-646
-837
onlyif mysql # use DIV operator for integer division
query I rowsort label-6150
SELECT DISTINCT + col1 DIV + col0 AS col2 FROM tab1 AS cor0
----
0
8
skipif mysql # not compatible
query I rowsort label-6150
SELECT DISTINCT + col1 / + col0 AS col2 FROM tab1 AS cor0
----
0
8
query I rowsort
SELECT DISTINCT + - ( col2 ) * col0 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT ALL + col1 * + col0 + col1 AS col1 FROM tab2 AS cor0
----
1360
248
4661
onlyif mysql # use DIV operator for integer division
query I rowsort label-6153
SELECT col1 DIV col1 col1 FROM tab1 AS cor0
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6153
SELECT col1 / col1 col1 FROM tab1 AS cor0
----
1
1
1
query I rowsort
SELECT ALL - 92 * col1 AS col0 FROM tab1 AS cor0
----
-1196
-2392
-920
onlyif mysql # use DIV operator for integer division
query I rowsort label-6155
SELECT DISTINCT + col2 * cor0.col2 DIV 91 AS col1 FROM tab2 AS cor0
----
15
7
8
skipif mysql # not compatible
query I rowsort label-6155
SELECT DISTINCT + col2 * cor0.col2 / 91 AS col1 FROM tab2 AS cor0
----
15
7
8
query I rowsort
SELECT DISTINCT - cor0.col2 * + col2 AS col2 FROM tab2 AS cor0
----
-1444
-676
-729
query I rowsort
SELECT col2 + col2 * + 78 + col0 AS col0 FROM tab2 cor0
----
2132
2140
3081
query I rowsort
SELECT DISTINCT - + 13 + - col1 * + col2 AS col2 FROM tab2 AS cor0
----
-1547
-659
-850
query I rowsort
SELECT DISTINCT - 19 * col1 + col0 AS col1 FROM tab1 AS cor0
----
-126
-167
-491
query I rowsort
SELECT DISTINCT + ( + col1 ) * + 53 AS col0 FROM tab2
----
1643
3127
901
query I rowsort
SELECT - col0 * 57 FROM tab0 AS cor0
----
-1368
-1995
-5073
onlyif mysql # use DIV operator for integer division
query I rowsort label-6162
SELECT ALL col0 DIV col1 AS col0 FROM tab2
----
0
1
4
skipif mysql # not compatible
query I rowsort label-6162
SELECT ALL col0 / col1 AS col0 FROM tab2
----
0
1
4
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6163
SELECT DISTINCT ( col2 + CAST( NULL AS DECIMAL ) ) AS col2 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-6163
SELECT DISTINCT ( col2 + CAST ( NULL AS REAL ) ) AS col2 FROM tab0
----
NULL
query I rowsort
SELECT DISTINCT 95 + - 29 FROM tab2 AS cor0
----
66
query I rowsort
SELECT ALL + ( - 24 ) + + cor0.col1 AS col2 FROM tab2, tab0, tab0 AS cor0, tab1
----
81 values hashing to bae584681bcba4331b2b1a7543e20c05
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - tab0.col1 col2 FROM tab0, tab2, tab2 AS cor0
----
86
91
97
query I rowsort
SELECT DISTINCT + - col0 * + 68 + col2 * - 18 AS col0 FROM tab1 AS cor0
----
-1176
-5378
-7168
query I rowsort
SELECT ALL - + col0 * - ( col2 ) * + col2 AS col0 FROM tab0 AS cor0
----
26136
35
598436
query I rowsort
SELECT col0 * + cor0.col2 - + col1 * + ( - col0 + col1 ) AS col0 FROM tab1 AS cor0
----
-436
4188
8551
query I rowsort
SELECT DISTINCT - col1 + 45 FROM tab1 AS cor0
----
19
32
35
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6171
SELECT ALL CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6171
SELECT ALL CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col0 * - col2 + 62 * col2 col1 FROM tab0 AS cor0
----
28182
603520
97
query I rowsort
SELECT DISTINCT col1 - - col0 AS col1 FROM tab1
----
29
74
93
onlyif mysql # use DIV operator for integer division
query I rowsort label-6174
SELECT ALL - tab1.col0 DIV 84 - + col0 * - tab1.col0 FROM tab1
----
4096
6400
9
skipif mysql # not compatible
query I rowsort label-6174
SELECT ALL - tab1.col0 / 84 - + col0 * - tab1.col0 FROM tab1
----
4096
6400
9
query I rowsort
SELECT ALL + col0 * - col0 - tab2.col1 FROM tab2
----
-6143
-6258
-80
onlyif mysql # use DIV operator for integer division
query I rowsort label-6176
SELECT DISTINCT - col0 - 3 DIV col2 FROM tab0
----
-24
-38
-89
skipif mysql # not compatible
query I rowsort label-6176
SELECT DISTINCT - col0 - 3 / col2 FROM tab0
----
-24
-38
-89
query I rowsort
SELECT ALL tab2.col1 - col0 FROM tab2
----
-19
-62
24
query I rowsort
SELECT 25 AS col2 FROM tab2
----
25
25
25
query I rowsort
SELECT DISTINCT 68 - + col2 * col0 FROM tab1 AS cor0
----
-3580
-7612
-94
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - CAST ( - 11 AS REAL ) AS col0 FROM tab0 AS cor0
----
11
query I rowsort
SELECT - - 48 * - col2 + + col2 AS col2 FROM tab1 cor0
----
-2538
-2679
-4512
query I rowsort
SELECT + 53 - - 33 AS col1 FROM tab1 AS cor0
----
86
86
86
query I rowsort
SELECT DISTINCT + cor0.col0 + cor0.col2 AS col2 FROM tab2 cor0
----
104
117
34
onlyif mysql # use DIV operator for integer division
query I rowsort label-6184
SELECT + CAST( + col0 AS SIGNED ) + cor0.col0 DIV col0 AS col0 FROM tab1 cor0
----
4
65
81
skipif mysql # not compatible
query I rowsort label-6184
SELECT + CAST ( + col0 AS INTEGER ) + cor0.col0 / col0 AS col0 FROM tab1 cor0
----
4
65
81
query I rowsort
SELECT + col0 * 25 * col0 FROM tab2 AS cor0
----
1225
152100
156025
query I rowsort
SELECT ALL - - 65 * - 32 FROM tab0 AS cor0
----
-2080
-2080
-2080
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + col1 ) + - cor0.col2 col1 FROM tab2 AS cor0
----
-55
-58
-85
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * col1 * + col1 col0 FROM tab0 cor0
----
636056
753571
912673
query I rowsort
SELECT ALL + ( - col0 ) * cor0.col2 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT - - 38 + + col2 * col1 AS col1 FROM tab2 AS cor0
----
1572
684
875
query I rowsort
SELECT ALL - col2 * + ( col0 ) + 12 + 18 FROM tab1 AS cor0
----
-132
-3618
-7650
onlyif mysql # use DIV operator for integer division
query I rowsort label-6192
SELECT col2 DIV - 9 + 10 AS col0 FROM tab2
----
6
7
8
skipif mysql # not compatible
query I rowsort label-6192
SELECT col2 / - 9 + 10 AS col0 FROM tab2
----
6
7
8
query I rowsort
SELECT DISTINCT + - cor0.col1 + 19 AS col2 FROM tab1 AS cor0
----
-7
6
9
query I rowsort
SELECT col1 + 44 FROM tab1 AS cor0
----
54
57
70
query I rowsort
SELECT + col2 + - col1 * - col2 AS col1 FROM tab0 AS cor0
----
2871
7544
98
query I rowsort
SELECT ALL + - col1 + 18 AS col2 FROM tab2 AS cor0
----
-13
-41
1
query I rowsort
SELECT DISTINCT - + col0 + 93 FROM tab1 AS cor0
----
13
29
90
query I rowsort
SELECT DISTINCT - - cor0.col1 * + cor0.col0 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT - cor0.col2 + col2 * + col1 FROM tab1 AS cor0
----
1152
1350
513
query I rowsort
SELECT col2 + + col0 * col2 FROM tab1 AS cor0
----
216
3705
7776
query I rowsort
SELECT DISTINCT - - col2 * + col2 + + col0 + ( 3 ) * - col0 FROM tab0 AS cor0
----
-69
1041
6546
query I rowsort
SELECT DISTINCT + col2 + + col2 * - col1 FROM tab2 AS cor0
----
-1508
-608
-810
query I rowsort
SELECT + + ( - col1 ) AS col2 FROM tab1 AS cor0
----
-10
-13
-26
onlyif mysql # use DIV operator for integer division
query I rowsort label-6204
SELECT ALL - col0 DIV col0 + + col1 col1 FROM tab1 AS cor0
----
12
25
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6204
SELECT ALL - col0 / col0 + + col1 col1 FROM tab1 AS cor0
----
12
25
9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6205
SELECT ALL + CAST( NULL AS DECIMAL ) * col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6205
SELECT ALL + CAST ( NULL AS REAL ) * col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - cor0.col2 * - 47 FROM tab1, tab0 cor0
----
9 values hashing to f914ae4533844db68702949391c4acd3
query I rowsort
SELECT ALL - 87 + + col1 FROM tab0 AS cor0
----
-1
10
4
query I rowsort
SELECT ALL 59 * + col0 AS col0 FROM tab2 AS cor0
----
413
4602
4661
query I rowsort
SELECT DISTINCT - + 99 AS col2 FROM tab2 AS cor0
----
-99
onlyif mysql # use DIV operator for integer division
query I rowsort label-6210
SELECT 43 + - col2 - col2 * cor0.col0 DIV col0 FROM tab2 AS cor0
----
-11
-33
-9
skipif mysql # not compatible
query I rowsort label-6210
SELECT 43 + - col2 - col2 * cor0.col0 / col0 FROM tab2 AS cor0
----
-11
-33
-9
query I rowsort
SELECT - 34 AS col2 FROM tab2 cor0
----
-34
-34
-34
query I rowsort
SELECT - 13 + col2 AS col0 FROM tab2 AS cor0
----
13
14
25
query I rowsort
SELECT ALL + - 60 * + cor0.col1 FROM tab2 AS cor0
----
-1020
-1860
-3540
query I rowsort
SELECT DISTINCT - ( - cor0.col2 ) + - 35 * - cor0.col0 * - col0 AS col0 FROM tab2 AS cor0
----
-1688
-212914
-218397
query I rowsort
SELECT col0 + + col1 AS col2 FROM tab0 cor0
----
110
132
180
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6216
SELECT - - 82 + col0 * + CAST( NULL AS SIGNED ) + 23 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6216
SELECT - - 82 + col0 * + CAST ( NULL AS INTEGER ) + 23 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6217
SELECT DISTINCT CAST( NULL AS SIGNED ) - - col1 AS col2 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-6217
SELECT DISTINCT CAST ( NULL AS INTEGER ) - - col1 AS col2 FROM tab0
----
NULL
query I rowsort
SELECT col1 + - 53 + col0 FROM tab1
----
-24
21
40
query I rowsort
SELECT ALL + + col0 * + col2 + - 63 AS col1 FROM tab2 AS cor0
----
126
1965
2939
query I rowsort
SELECT - ( + col0 ) * + col0 + - 56 - - cor0.col0 * col0 FROM tab0 AS cor0
----
-56
-56
-56
query I rowsort
SELECT + 98 * col2 + ( col0 ) - col1 * - 48 AS col1 FROM tab0 AS cor0
----
12493
4789
7386
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6222
SELECT - - col1 * CAST( NULL AS SIGNED ) + - col2 * + col1 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6222
SELECT - - col1 * CAST ( NULL AS INTEGER ) + - col2 * + col1 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - + col2 + 64 AS col1 FROM tab1 AS cor0
----
-32
10
7
query I rowsort
SELECT - col2 - + cor0.col1 FROM tab1 AS cor0
----
-109
-67
-80
onlyif mysql # use DIV operator for integer division
query I rowsort label-6225
SELECT - col2 - 11 DIV - col1 FROM tab0 AS cor0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-6225
SELECT - col2 - 11 / - col1 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT + + col1 * - 36 + cor0.col2 AS col0 FROM tab1 AS cor0
----
-303
-372
-882
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + ( + 43 ) col0 FROM tab2 cor0
----
69
70
81
query I rowsort
SELECT ALL - 0 FROM tab1
----
0
0
0
query I rowsort
SELECT - ( + col0 ) FROM tab1
----
-3
-64
-80
query I rowsort
SELECT DISTINCT col0 * tab1.col1 * 75 + - col1 FROM tab1
----
47990
5824
77987
query I rowsort
SELECT ALL + cor1.col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
query I rowsort
SELECT DISTINCT - 98 AS col2 FROM tab2, tab1 AS cor0
----
-98
query I rowsort
SELECT - col2 + 19 FROM tab2 AS cor0
----
-19
-7
-8
query I rowsort
SELECT - col1 * + col1 + + tab1.col2 FROM tab1
----
-43
-622
-73
query I rowsort
SELECT DISTINCT - - col1 + col0 AS col0 FROM tab1 cor0
----
29
74
93
query I rowsort
SELECT ALL + 32 * - col0 + col1 AS col2 FROM tab1 AS cor0
----
-2038
-2547
-70
query I rowsort
SELECT 58 AS col0 FROM tab1 AS cor0
----
58
58
58
query I rowsort
SELECT ALL - 75 * + col2 * + col0 AS col0 FROM tab1
----
-12150
-273600
-576000
onlyif mysql # use DIV operator for integer division
query I rowsort label-6239
SELECT ALL - tab0.col2 * col0 DIV tab0.col0 FROM tab0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-6239
SELECT ALL - tab0.col2 * col0 / tab0.col0 FROM tab0
----
-1
-33
-82
query I rowsort
SELECT col0 * cor0.col1 FROM tab2 cor0
----
1343
217
4602
query I rowsort
SELECT ALL + + col2 * - col1 FROM tab0 cor0
----
-2838
-7462
-97
query I rowsort
SELECT + 23 * col0 AS col1 FROM tab0 AS cor0
----
2047
552
805
onlyif mysql # use DIV operator for integer division
query I rowsort label-6243
SELECT DISTINCT - 50 DIV col0 FROM tab0 AS cor0
----
-1
-2
0
skipif mysql # not compatible
query I rowsort label-6243
SELECT DISTINCT - 50 / col0 FROM tab0 AS cor0
----
-1
-2
0
query I rowsort
SELECT + - col1 + - col0 * col0 FROM tab2 AS cor0
----
-6143
-6258
-80
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-6246
SELECT ALL 57 DIV 83 AS col2 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6246
SELECT ALL 57 / 83 AS col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - + ( ( + col2 ) ) AS col0 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT ( 6 ) + cor0.col1 + - col2 AS col0 FROM tab2 cor0
----
-15
10
39
query I rowsort
SELECT DISTINCT + ( + ( + col2 ) ) FROM tab0 AS cor0
----
1
33
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 46 * 18 col1 FROM tab2 AS cor0
----
-828
query I rowsort
SELECT 58 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to ef6e63aeed2581a168f07646d258f666
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab2.col2 + col0 col1 FROM tab2
----
104
117
34
query I rowsort
SELECT - col1 * 91 AS col2 FROM tab2
----
-1547
-2821
-5369
query I rowsort
SELECT DISTINCT col1 + ( 26 * + col1 + + col2 ) FROM tab0
----
2355
2539
2620
query I rowsort
SELECT DISTINCT ( + tab1.col2 ) * + col0 FROM tab1
----
162
3648
7680
query I rowsort
SELECT col0 - + 4 * + col1 FROM tab2
----
-117
-158
11
query I rowsort
SELECT col2 - 23 FROM tab0
----
-22
10
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-6258
SELECT - - 31 DIV 6 FROM tab0 AS cor0
----
5
5
5
skipif mysql # not compatible
query I rowsort label-6258
SELECT - - 31 / 6 FROM tab0 AS cor0
----
5
5
5
query I rowsort
SELECT DISTINCT - cor0.col1 + - col2 * + col2 * - 0 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT DISTINCT - 31 * 3 + - col1 + - col2 FROM tab1 AS cor0
----
-160
-173
-202
query I rowsort
SELECT DISTINCT + 9 * + col0 FROM tab2
----
63
702
711
query I rowsort
SELECT col1 * - col2 + - col2 FROM tab0
----
-2871
-7544
-98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6263
SELECT CAST( col2 AS SIGNED ) + col2 FROM tab1 AS cor0
----
108
114
192
skipif mysql # not compatible
query I rowsort label-6263
SELECT CAST ( col2 AS INTEGER ) + col2 FROM tab1 AS cor0
----
108
114
192
query I rowsort
SELECT DISTINCT + 49 AS col0 FROM tab1
----
49
query I rowsort
SELECT DISTINCT + + 29 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
29
onlyif mysql # use DIV operator for integer division
query I rowsort label-6266
SELECT DISTINCT col1 DIV + tab2.col0 AS col2 FROM tab2
----
0
4
skipif mysql # not compatible
query I rowsort label-6266
SELECT DISTINCT col1 / + tab2.col0 AS col2 FROM tab2
----
0
4
query I rowsort
SELECT - - ( col0 ) * + col2 + + col0 * cor0.col2 FROM tab0 AS cor0
----
14596
1584
70
query I rowsort
SELECT 78 - - col1 AS col0 FROM tab2 AS cor0
----
109
137
95
query I rowsort
SELECT ALL col1 - - col0 * + col0 * - ( - col2 ) AS col1 FROM tab1
----
233482
512
614413
onlyif mysql # use DIV operator for integer division
query I rowsort label-6270
SELECT + + cor0.col1 DIV 86 + col1 DIV col0 + + 51 FROM tab2 AS cor0
----
51
51
55
skipif mysql # not compatible
query I rowsort label-6270
SELECT + + cor0.col1 / 86 + col1 / col0 + + 51 FROM tab2 AS cor0
----
51
51
55
query I rowsort
SELECT + cor0.col2 + + col2 + col0 * - col1 FROM tab0 AS cor0
----
-1998
-3393
-7935
query I rowsort
SELECT + + col1 + 78 * 5 AS col0 FROM tab2 AS cor0
----
407
421
449
query I rowsort
SELECT ALL 78 FROM tab0, tab0 AS cor0
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4
query I rowsort
SELECT DISTINCT - tab0.col0 FROM tab0, tab2, tab0 AS cor0
----
-24
-35
-89
onlyif mysql # use DIV operator for integer division
query I rowsort label-6275
SELECT col2 * col1 + col2 DIV + col0 AS col0 FROM tab2 AS cor0
----
1534
646
840
skipif mysql # not compatible
query I rowsort label-6275
SELECT col2 * col1 + col2 / + col0 AS col0 FROM tab2 AS cor0
----
1534
646
840
query I rowsort
SELECT ALL + col1 * - 94 + col0 + + col2 * - ( ( - col2 ) + - col0 ) AS col0 FROM tab1 AS cor0
----
15754
6021
637
query I rowsort
SELECT DISTINCT - + col1 - 99 FROM tab1 AS cor0
----
-109
-112
-125
query I rowsort
SELECT + col0 * 6 FROM tab1 AS cor0
----
18
384
480
query I rowsort
SELECT DISTINCT col1 + - cor0.col1 FROM tab2 cor0
----
0
query I rowsort
SELECT DISTINCT cor0.col0 * - 37 - 49 FROM tab1 AS cor0
----
-160
-2417
-3009
onlyif mysql # use DIV operator for integer division
query I rowsort label-6281
SELECT - col0 DIV cor0.col0 + 17 * + col2 col1 FROM tab2 AS cor0
----
441
458
645
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6281
SELECT - col0 / cor0.col0 + 17 * + col2 col1 FROM tab2 AS cor0
----
441
458
645
onlyif mysql # use DIV operator for integer division
query I rowsort label-6282
SELECT ALL - col1 DIV 30 + + ( + col1 ) FROM tab1 AS cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-6282
SELECT ALL - col1 / 30 + + ( + col1 ) FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT ALL + - col0 * - col0 * col0 + - cor0.col0 FROM tab2 cor0
----
336
474474
492960
query I rowsort
SELECT + ( + 91 ) FROM tab2 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab1 AS cor2
----
81 values hashing to 8a48d0ac75792561e233f0311a8872fd
query I rowsort
SELECT - col2 + 58 FROM tab2
----
20
31
32
onlyif mysql # use DIV operator for integer division
query I rowsort label-6286
SELECT tab0.col0 * 12 + col0 * - col0 DIV col0 FROM tab0
----
264
385
979
skipif mysql # not compatible
query I rowsort label-6286
SELECT tab0.col0 * 12 + col0 * - col0 / col0 FROM tab0
----
264
385
979
query I rowsort
SELECT ALL + - col2 + ( 75 ) * + col2 AS col2 FROM tab2 AS cor0
----
1924
1998
2812
query I rowsort
SELECT + col1 * cor0.col1 - 64 FROM tab2 AS cor0
----
225
3417
897
query I rowsort
SELECT DISTINCT + - col2 * + ( col2 ) FROM tab0 AS cor0
----
-1
-1089
-6724
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * + col0 col2 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT - col1 + - 23 FROM tab1 AS cor0
----
-33
-36
-49
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 + + col1 col2 FROM tab1 AS cor0
----
-54
-67
23
onlyif mysql # use DIV operator for integer division
query I rowsort label-6293
SELECT ALL + col1 * 41 DIV - col1 - + col0 AS col0 FROM tab1 AS cor0
----
-105
-121
-44
skipif mysql # not compatible
query I rowsort label-6293
SELECT ALL + col1 * 41 / - col1 - + col0 AS col0 FROM tab1 AS cor0
----
-105
-121
-44
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + ( 96 ) * + col2 col1 FROM tab2 AS cor0
----
2522
2619
3686
query I rowsort
SELECT ALL - + col2 * col2 FROM tab1 AS cor0
----
-2916
-3249
-9216
query I rowsort
SELECT ALL - - col1 * + col2 - + cor0.col2 AS col0 FROM tab2 AS cor0
----
1508
608
810
query I rowsort
SELECT - col2 * ( col0 * col0 ) + + col0 FROM tab1 AS cor0
----
-233408
-483
-614320
query I rowsort
SELECT DISTINCT + col1 + col0 * + 43 AS col1 FROM tab0 AS cor0
----
1118
1602
3918
query I rowsort
SELECT DISTINCT col1 * col1 AS col1 FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT ALL col0 * + ( - ( + col0 ) ) AS col2 FROM tab1 AS cor0
----
-4096
-6400
-9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6301
SELECT DISTINCT - - col1 + + ( col1 ) + CAST( - col2 * col1 + + 1 AS SIGNED ) FROM tab2 AS cor0
----
-1415
-611
-774
skipif mysql # not compatible
query I rowsort label-6301
SELECT DISTINCT - - col1 + + ( col1 ) + CAST ( - col2 * col1 + + 1 AS INTEGER ) FROM tab2 AS cor0
----
-1415
-611
-774
query I rowsort
SELECT ALL cor0.col2 FROM tab2, tab0 cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
onlyif mysql # use DIV operator for integer division
query I rowsort label-6303
SELECT col0 * - 13 + cor0.col0 DIV 49 FROM tab1 cor0
----
-1039
-39
-831
skipif mysql # not compatible
query I rowsort label-6303
SELECT col0 * - 13 + cor0.col0 / 49 FROM tab1 cor0
----
-1039
-39
-831
query I rowsort
SELECT - ( + col0 ) * - col0 + + 71 AS col0 FROM tab0 AS cor0
----
1296
647
7992
query I rowsort
SELECT ALL - col1 + + 42 FROM tab0 cor0
----
-44
-49
-55
query I rowsort
SELECT DISTINCT + col2 + - col0 FROM tab2 cor0
----
-41
-52
20
query I rowsort
SELECT ALL col0 * col0 + - col2 + - 25 FROM tab0 AS cor0
----
1199
518
7814
query I rowsort
SELECT - col1 * - col0 AS col0 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT ALL - 14 + col2 FROM tab2 AS cor0
----
12
13
24
query I rowsort
SELECT DISTINCT - col0 * + col2 * - col0 FROM tab1 AS cor0
----
233472
486
614400
query I rowsort
SELECT ALL + col2 * col2 + - col2 FROM tab0 AS cor0
----
0
1056
6642
onlyif mysql # use DIV operator for integer division
query I rowsort label-6312
SELECT + col1 DIV - col0 + - col0 AS col0 FROM tab1 cor0
----
-11
-64
-80
skipif mysql # not compatible
query I rowsort label-6312
SELECT + col1 / - col0 + - col0 AS col0 FROM tab1 cor0
----
-11
-64
-80
query I rowsort
SELECT ALL 53 AS col2 FROM tab1 AS cor0
----
53
53
53
query I rowsort
SELECT - - ( col1 ) AS col1 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT ALL 52 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 76100d10f51995d20efdeb657e444d3c
query I rowsort
SELECT ALL 41 * - cor0.col0 FROM tab0 AS cor0
----
-1435
-3649
-984
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6317
SELECT ALL - ( col0 ) / + CAST( NULL AS DECIMAL ) + + col1 AS col0 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6317
SELECT ALL - ( col0 ) / + CAST ( NULL AS REAL ) + + col1 AS col0 FROM tab1
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-6318
SELECT col1 * + col1 + + col0 DIV - col2 AS col0 FROM tab1
----
169
676
99
skipif mysql # not compatible
query I rowsort label-6318
SELECT col1 * + col1 + + col0 / - col2 AS col0 FROM tab1
----
169
676
99
query I rowsort
SELECT 24 FROM tab0 AS cor0
----
24
24
24
query I rowsort
SELECT DISTINCT + 74 * col2 FROM tab0 cor0
----
2442
6068
74
query I rowsort
SELECT DISTINCT - - 82 AS col1 FROM tab1 AS cor0
----
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 16 * - col2 col1 FROM tab2 AS cor0
----
-416
-432
-608
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + ( + col0 ) * ( - col0 ) * col0 col2 FROM tab1 AS cor0
----
262144
27
512000
query I rowsort
SELECT ALL col2 - col1 * - 4 FROM tab0
----
377
389
446
query I rowsort
SELECT ALL 99 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 05ea182fd6036c7f5e0ea08fc061cc67
onlyif mysql # use DIV operator for integer division
query I rowsort label-6326
SELECT col2 DIV - col2 + + 38 FROM tab1 AS cor0
----
37
37
37
skipif mysql # not compatible
query I rowsort label-6326
SELECT col2 / - col2 + + 38 FROM tab1 AS cor0
----
37
37
37
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + cor0.col2 + - 61 * ( + cor0.col1 ) col0 FROM tab2 AS cor0
----
-1864
-3573
-999
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6328
SELECT DISTINCT - col2 + + CAST( col0 AS SIGNED ) FROM tab0 cor0
----
-9
34
7
skipif mysql # not compatible
query I rowsort label-6328
SELECT DISTINCT - col2 + + CAST ( col0 AS INTEGER ) FROM tab0 cor0
----
-9
34
7
query I rowsort
SELECT ALL col2 - - 56 * + col2 AS col1 FROM tab1 AS cor0
----
3078
3249
5472
query I rowsort
SELECT col2 * + col1 + - 18 AS col0 FROM tab0
----
2820
7444
79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + col2 col0 FROM tab2
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-6332
SELECT 20 DIV + col1 AS col2 FROM tab1
----
0
1
2
skipif mysql # not compatible
query I rowsort label-6332
SELECT 20 / + col1 AS col2 FROM tab1
----
0
1
2
onlyif mysql # use DIV operator for integer division
query I rowsort label-6333
SELECT DISTINCT + col0 DIV - col2 + + col2 FROM tab0
----
-34
33
81
skipif mysql # not compatible
query I rowsort label-6333
SELECT DISTINCT + col0 / - col2 + + col2 FROM tab0
----
-34
33
81
query I rowsort
SELECT DISTINCT 74 - - col2 FROM tab2
----
100
101
112
query I rowsort
SELECT - 56 + col2 FROM tab2 AS cor0
----
-18
-29
-30
query I rowsort
SELECT - - 24 * - col0 + + cor0.col0 FROM tab0 AS cor0
----
-2047
-552
-805
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6337
SELECT ( col0 ) * - CAST( NULL AS SIGNED ) + - 21 * col2 / col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6337
SELECT ( col0 ) * - CAST ( NULL AS INTEGER ) + - 21 * col2 / col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-6338
SELECT + + 64 * + col1 DIV col1 + col1 col0 FROM tab1 AS cor0
----
74
77
90
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6338
SELECT + + 64 * + col1 / col1 + col1 col0 FROM tab1 AS cor0
----
74
77
90
query I rowsort
SELECT DISTINCT ( cor1.col1 ) FROM tab0, tab2 AS cor0, tab0 AS cor1
----
86
91
97
query I rowsort
SELECT DISTINCT - 53 FROM tab1
----
-53
query I rowsort
SELECT ALL + ( + 10 ) FROM tab2
----
10
10
10
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col2 ) + col0 col0 FROM tab1
----
121
176
57
query I rowsort
SELECT + ( - col2 ) * - col2 FROM tab2
----
1444
676
729
query I rowsort
SELECT tab0.col0 * + col2 AS col1 FROM tab0
----
35
7298
792
query I rowsort
SELECT tab0.col1 FROM tab0, tab1 cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc
query I rowsort
SELECT DISTINCT - 21 AS col1 FROM tab2, tab0, tab1 AS cor0
----
-21
query I rowsort
SELECT - col0 * col1 + + 57 AS col2 FROM tab2 AS cor0
----
-1286
-160
-4545
onlyif mysql # use DIV operator for integer division
query I rowsort label-6348
SELECT - col1 + col1 DIV - 37 AS col2 FROM tab0 AS cor0
----
-88
-93
-99
skipif mysql # not compatible
query I rowsort label-6348
SELECT - col1 + col1 / - 37 AS col2 FROM tab0 AS cor0
----
-88
-93
-99
query I rowsort
SELECT DISTINCT 91 * tab2.col1 * col0 AS col0 FROM tab2
----
122213
19747
418782
onlyif mysql # use DIV operator for integer division
query I rowsort label-6350
SELECT + col1 DIV cor0.col0 AS col1 FROM tab1 AS cor0
----
0
0
8
skipif mysql # not compatible
query I rowsort label-6350
SELECT + col1 / cor0.col0 AS col1 FROM tab1 AS cor0
----
0
0
8
query I rowsort
SELECT + col0 + + col1 AS col0 FROM tab0
----
110
132
180
query I rowsort
SELECT ALL col2 - col2 * col2 * + col1 FROM tab0 AS cor0
----
-611802
-93621
-96
query I rowsort
SELECT ALL + col0 * + 89 FROM tab0 AS cor0
----
2136
3115
7921
query I rowsort
SELECT ALL + col1 + cor0.col2 + col1 FROM tab2 AS cor0
----
144
72
89
query I rowsort
SELECT 88 + + col2 FROM tab2 AS cor0
----
114
115
126
query I rowsort
SELECT ALL + ( col0 ) + - cor0.col0 FROM tab2 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-6357
SELECT col1 * + col0 + - col1 - - CAST( ( col0 ) AS SIGNED ) DIV 93 col1 FROM tab0 AS cor0
----
1978
3298
8008
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6357
SELECT col1 * + col0 + - col1 - - CAST ( ( col0 ) AS INTEGER ) / 93 col1 FROM tab0 AS cor0
----
1978
3298
8008
query I rowsort
SELECT DISTINCT 85 + col0 FROM tab2 AS cor0
----
163
164
92
query I rowsort
SELECT ALL - + col2 AS col2 FROM tab2 cor0
----
-26
-27
-38
query I rowsort
SELECT + 30 + col0 AS col0 FROM tab2 AS cor0
----
108
109
37
onlyif mysql # use DIV operator for integer division
query I rowsort label-6361
SELECT - - cor0.col0 * col0 + col0 DIV - col0 - - col1 * - col0 col0 FROM tab2 AS cor0
----
-169
1481
4897
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6361
SELECT - - cor0.col0 * col0 + col0 / - col0 - - col1 * - col0 col0 FROM tab2 AS cor0
----
-169
1481
4897
query I rowsort
SELECT - cor0.col2 + - col2 FROM tab0 AS cor0
----
-164
-2
-66
query I rowsort
SELECT cor0.col1 * col2 + col0 * col2 FROM tab1 cor0
----
1566
4218
8928
query I rowsort
SELECT 66 + + col1 * - col1 AS col2 FROM tab2 AS cor0
----
-223
-3415
-895
query I rowsort
SELECT + 77 * cor0.col2 - - col1 FROM tab0 AS cor0
----
174
2627
6405
query I rowsort
SELECT - cor0.col0 + - 74 AS col2 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to a21993c64b5f5f2357e8546d119ca05d
query I rowsort
SELECT 63 AS col2 FROM tab2, tab2 cor0
----
9 values hashing to c3eea92c46f2c49716f386a58b575025
query I rowsort
SELECT ALL ( 83 ) * - col2 AS col0 FROM tab2
----
-2158
-2241
-3154
query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab2 cor0, tab2 cor1, tab0 AS cor2
----
972 values hashing to 63ccb67e72ebac679a0221202c067b9e
query I rowsort
SELECT - - 22 + 65 * col2 FROM tab2 AS cor0
----
1712
1777
2492
query I rowsort
SELECT DISTINCT + cor1.col2 AS col1 FROM tab2, tab2 AS cor0, tab2 cor1
----
26
27
38
query I rowsort
SELECT - col0 * 74 FROM tab1 AS cor0
----
-222
-4736
-5920
query I rowsort
SELECT + - 58 * + 9 FROM tab1 AS cor0
----
-522
-522
-522
query I rowsort
SELECT - + 42 * - cor0.col0 + col1 FROM tab1 AS cor0
----
152
2698
3373
query I rowsort
SELECT ALL - col2 + col2 * 87 AS col2 FROM tab0 AS cor0
----
2838
7052
86
query I rowsort
SELECT DISTINCT - col2 + cor0.col1 FROM tab2 cor0
----
-21
33
4
query I rowsort
SELECT DISTINCT - - col1 * + cor0.col0 + - col2 AS col0 FROM tab1 AS cor0
----
24
583
944
query I rowsort
SELECT col1 + - col0 * col0 AS col0 FROM tab2 AS cor0
----
-18
-6025
-6224
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + - col0 col0 FROM tab2 AS cor0
----
-14
-156
-158
onlyif mysql # use DIV operator for integer division
query I rowsort label-6380
SELECT + col1 + col0 * col0 DIV - col2 AS col2 FROM tab0 AS cor0
----
-1128
-5
69
skipif mysql # not compatible
query I rowsort label-6380
SELECT + col1 + col0 * col0 / - col2 AS col2 FROM tab0 AS cor0
----
-1128
-5
69
query I rowsort
SELECT ALL col0 + + col2 AS col2 FROM tab2 cor0
----
104
117
34
query I rowsort
SELECT - col1 + cor0.col1 AS col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + 40 AS col2 FROM tab0 AS cor0
----
40
40
40
query I rowsort
SELECT - col0 + col1 * col1 FROM tab1 AS cor0
----
36
673
89
query I rowsort
SELECT - col2 * - col2 - + 50 FROM tab0 AS cor0
----
-49
1039
6674
query I rowsort
SELECT DISTINCT tab1.col2 * col0 * tab1.col1 FROM tab1
----
36480
4212
99840
query I rowsort
SELECT ALL + cor0.col1 * cor0.col1 - col2 AS col1 FROM tab1 AS cor0
----
43
622
73
query I rowsort
SELECT DISTINCT - - col1 + + col2 AS col0 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT ALL 62 AS col1 FROM tab1
----
62
62
62
query I rowsort
SELECT cor0.col1 * 97 AS col0 FROM tab1 AS cor0
----
1261
2522
970
query I rowsort
SELECT + - col0 * - ( col0 ) + + col1 AS col2 FROM tab1 AS cor0
----
35
4106
6413
query I rowsort
SELECT col2 + 48 * 91 FROM tab0 AS cor0
----
4369
4401
4450
onlyif mysql # use DIV operator for integer division
query I rowsort label-6393
SELECT - col1 + - ( col0 ) DIV col0 AS col0 FROM tab0 cor0
----
-87
-92
-98
skipif mysql # not compatible
query I rowsort label-6393
SELECT - col1 + - ( col0 ) / col0 AS col0 FROM tab0 cor0
----
-87
-92
-98
query I rowsort
SELECT + col1 + ( - col0 ) * + col0 AS col1 FROM tab1 AS cor0
----
-4086
-6387
17
query I rowsort
SELECT - + col0 * 98 FROM tab0 AS cor0
----
-2352
-3430
-8722
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + col0 col1 FROM tab2 AS cor0
----
14
156
158
skipif mysql # not compatible
query I rowsort
SELECT ALL + CAST ( - cor0.col0 AS REAL ) FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT col1 * 22 AS col2 FROM tab0 AS cor0
----
1892
2002
2134
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6399
SELECT DISTINCT + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab2 AS cor2
----
NULL
skipif mysql # not compatible
query I rowsort label-6399
SELECT DISTINCT + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab2 AS cor2
----
NULL
query I rowsort
SELECT - col0 + col2 * + col1 AS col0 FROM tab0 AS cor0
----
2814
62
7373
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 55 col2 FROM tab2 AS cor0
----
-55
-55
-55
query I rowsort
SELECT - 26 AS col0 FROM tab0 AS cor0
----
-26
-26
-26
query I rowsort
SELECT ALL - ( + col2 ) * - col1 + col2 FROM tab0 AS cor0
----
2871
7544
98
query I rowsort
SELECT + + col1 * col1 FROM tab2 cor0
----
289
3481
961
query I rowsort
SELECT DISTINCT - col0 * - cor0.col1 * col1 FROM tab2 AS cor0
----
22831
271518
6727
query I rowsort
SELECT - col0 * cor0.col2 + col1 FROM tab0 AS cor0
----
-706
-7207
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-6407
SELECT ALL + col0 DIV 86 FROM tab0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-6407
SELECT ALL + col0 / 86 FROM tab0
----
0
0
1
query I rowsort
SELECT + col0 * + col1 + col0 AS col0 FROM tab1 AS cor0
----
1120
704
81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * col1 col1 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT DISTINCT + cor0.col1 + col1 AS col2 FROM tab2 cor0
----
118
34
62
query I rowsort
SELECT - col1 * - col0 + - col1 * col1 FROM tab0 AS cor0
----
-182
-5332
-6014
query I rowsort
SELECT ALL + + ( col2 ) * + col2 AS col2 FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT - 14 * col0 + + col0 + + col0 FROM tab0 AS cor0
----
-1068
-288
-420
query I rowsort
SELECT + col0 + - cor0.col1 AS col1 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT ALL col1 * + col2 + col1 FROM tab1
----
1261
1430
580
query I rowsort
SELECT ALL - col0 * - col2 - col2 FROM tab1 AS cor0
----
108
3591
7584
query I rowsort
SELECT + col2 + col1 * col2 FROM tab0 AS cor0
----
2871
7544
98
query I rowsort
SELECT - 43 + - col1 FROM tab0
----
-129
-134
-140
query I rowsort
SELECT col2 * + col2 + col2 AS col0 FROM tab0
----
1122
2
6806
query I rowsort
SELECT DISTINCT col1 * + col1 + + col2 * + col1 FROM tab1
----
1417
2080
670
query I rowsort
SELECT + - 98 + - ( col2 * col2 ) FROM tab2 AS cor0
----
-1542
-774
-827
query I rowsort
SELECT DISTINCT + 25 AS col2 FROM tab2 AS cor0
----
25
onlyif mysql # use DIV operator for integer division
query I rowsort label-6423
SELECT tab0.col0 - tab0.col0 DIV - col2 AS col2 FROM tab0
----
24
70
90
skipif mysql # not compatible
query I rowsort label-6423
SELECT tab0.col0 - tab0.col0 / - col2 AS col2 FROM tab0
----
24
70
90
onlyif mysql # use DIV operator for integer division
query I rowsort label-6424
SELECT ( 37 + + col2 ) DIV col0 AS col2 FROM tab2
----
0
0
9
skipif mysql # not compatible
query I rowsort label-6424
SELECT ( 37 + + col2 ) / col0 AS col2 FROM tab2
----
0
0
9
query I rowsort
SELECT ( + 48 * - tab2.col2 ) - + col0 AS col0 FROM tab2
----
-1303
-1326
-1903
query I rowsort
SELECT DISTINCT - 13 * col2 * col0 + + tab1.col0 * + col2 - + col0 FROM tab1
----
-1947
-43840
-92240
query I rowsort
SELECT DISTINCT ( - col2 ) + - col1 FROM tab1
----
-109
-67
-80
query I rowsort
SELECT 53 - - ( + col1 ) AS col0 FROM tab0
----
139
144
150
query I rowsort
SELECT ALL + ( col1 ) + + col2 + - col2 AS col0 FROM tab1
----
10
13
26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 63 - - col0 col1 FROM tab1
----
127
143
66
query I rowsort
SELECT DISTINCT tab1.col2 + ( - col0 ) - + col0 FROM tab1
----
-64
-71
48
query I rowsort
SELECT 78 + 64 * col1 * col0 - - col2 AS col2 FROM tab2
----
13993
294632
86068
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + col2 ) - col0 * col0 col1 FROM tab2
----
-22
-6058
-6203
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6434
SELECT + CAST( 74 AS SIGNED ) + + col2 AS col1 FROM tab2 AS cor0
----
100
101
112
skipif mysql # not compatible
query I rowsort label-6434
SELECT + CAST ( 74 AS INTEGER ) + + col2 AS col1 FROM tab2 AS cor0
----
100
101
112
onlyif mysql # use DIV operator for integer division
query I rowsort label-6435
SELECT - col0 + cor0.col2 DIV + col0 AS col2 FROM tab1 AS cor0
----
-64
-79
15
skipif mysql # not compatible
query I rowsort label-6435
SELECT - col0 + cor0.col2 / + col0 AS col2 FROM tab1 AS cor0
----
-64
-79
15
query I rowsort
SELECT - 37 * col0 + + col2 * - col2 + tab2.col2 FROM tab2
----
-3536
-4329
-961
query I rowsort
SELECT col0 * - 86 FROM tab0
----
-2064
-3010
-7654
query I rowsort
SELECT - col0 + - 24 * col0 + col2 AS col2 FROM tab0
----
-2143
-567
-874
onlyif mysql # use DIV operator for integer division
query I rowsort label-6439
SELECT + + col1 + - ( - col0 ) DIV + col2 AS col2 FROM tab0 AS cor0
----
132
86
92
skipif mysql # not compatible
query I rowsort label-6439
SELECT + + col1 + - ( - col0 ) / + col2 AS col2 FROM tab0 AS cor0
----
132
86
92
query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 WHERE NOT NULL >= NULL
----
query I rowsort
SELECT col2 + col2 * + col2 * col2 + + col0 FROM tab0
----
35994
37
551539
query I rowsort
SELECT ALL + col2 - - col1 * - col2 FROM tab1
----
-1152
-1350
-513
onlyif mysql # use DIV operator for integer division
query I rowsort label-6443
SELECT col1 DIV + tab1.col0 col1 FROM tab1
----
0
0
8
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6443
SELECT col1 / + tab1.col0 col1 FROM tab1
----
0
0
8
query I rowsort
SELECT DISTINCT - col1 - + col1 FROM tab1
----
-20
-26
-52
query I rowsort
SELECT ALL - + col0 * cor0.col1 - - col1 FROM tab2 AS cor0
----
-1326
-186
-4543
query I rowsort
SELECT + col1 + + cor0.col2 AS col0 FROM tab1 cor0
----
109
67
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-6447
SELECT ALL + + col1 * + col2 DIV - col2 FROM tab1 AS cor0
----
-10
-13
-26
skipif mysql # not compatible
query I rowsort label-6447
SELECT ALL + + col1 * + col2 / - col2 FROM tab1 AS cor0
----
-10
-13
-26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + + col2 col0 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT DISTINCT + - col1 + col1 * - col2 AS col1 FROM tab0 AS cor0
----
-194
-2924
-7553
onlyif mysql # use DIV operator for integer division
query I rowsort label-6450
SELECT DISTINCT - cor0.col1 * col1 DIV col1 AS col2 FROM tab1 AS cor0
----
-10
-13
-26
skipif mysql # not compatible
query I rowsort label-6450
SELECT DISTINCT - cor0.col1 * col1 / col1 AS col2 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT DISTINCT tab2.col2 + col0 AS col1 FROM tab2
----
104
117
34
query I rowsort
SELECT DISTINCT + col0 * - col2 + col0 FROM tab1
----
-159
-3584
-7600
query I rowsort
SELECT col2 * col0 FROM tab1 WHERE NOT NULL <> - col1 + col2
----
query I rowsort
SELECT col1 + col0 * cor0.col2 AS col1 FROM tab1 AS cor0
----
188
3658
7693
onlyif mysql # use DIV operator for integer division
query I rowsort label-6455
SELECT ALL - col2 * + col0 DIV - cor0.col0 FROM tab2 AS cor0
----
26
27
38
skipif mysql # not compatible
query I rowsort label-6455
SELECT ALL - col2 * + col0 / - cor0.col0 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT col0 + col1 / + cor0.col0 AS col0 FROM tab0 AS cor0 WHERE NOT NULL = ( NULL )
----
query IIIIIIIII rowsort
SELECT * FROM tab1, tab0, tab0 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-6458
SELECT - col0 DIV col2 + + tab1.col2 * - col1 * col2 AS col2 FROM tab1
----
-119808
-32491
-75816
skipif mysql # not compatible
query I rowsort label-6458
SELECT - col0 / col2 + + tab1.col2 * - col1 * col2 AS col2 FROM tab1
----
-119808
-32491
-75816
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * - col2 col1 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT ALL col0 + - col0 * col2 AS col2 FROM tab0 AS cor0
----
-7209
-768
0
query I rowsort
SELECT DISTINCT - cor0.col2 * + cor0.col2 FROM tab1 AS cor0
----
-2916
-3249
-9216
query I rowsort
SELECT DISTINCT + + col2 * col1 AS col1 FROM tab2 AS cor0
----
1534
646
837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col1 col0 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT ALL - col1 + + col1 AS col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - col0 + col1 + + col1 AS col0 FROM tab0 AS cor0
----
148
159
93
query I rowsort
SELECT DISTINCT col1 * - col1 + - col2 + - cor0.col0 FROM tab1 AS cor0
----
-221
-345
-733
query I rowsort
SELECT ALL - col1 - + cor0.col2 * - col0 FROM tab1 AS cor0
----
136
3638
7667
query I rowsort
SELECT ALL + col2 * col2 - col1 * - col2 FROM tab2 cor0
----
1566
2090
2210
query I rowsort
SELECT DISTINCT cor0.col0 + + col1 + - col1 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT DISTINCT + col0 + col1 * col0 FROM tab0 AS cor0
----
2088
3430
8188
query I rowsort
SELECT ALL + col1 * col1 + cor0.col2 FROM tab2 AS cor0
----
327
3507
988
query I rowsort
SELECT DISTINCT - - col0 + col0 + cor0.col1 AS col1 FROM tab2 AS cor0
----
175
215
45
query I rowsort
SELECT + col2 * - col2 AS col1 FROM tab2 AS cor0
----
-1444
-676
-729
query I rowsort
SELECT ALL tab0.col2 * - tab0.col1 AS col2 FROM tab0
----
-2838
-7462
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + + col2 * col0 - col0 col2 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT + col1 + col2 * + col1 * col2 FROM tab2
----
22630
24565
39943
query I rowsort
SELECT col0 * + ( 15 ) AS col2 FROM tab0 AS cor0
----
1335
360
525
query I rowsort
SELECT - + 84 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 975e2ef2a3bf1ee2622362f4e435752f
query I rowsort
SELECT col1 * col1 + col0 * + col1 AS col2 FROM tab0
----
12804
16380
9460
query I rowsort
SELECT - + 45 FROM tab0 AS cor0
----
-45
-45
-45
query I rowsort
SELECT DISTINCT col0 * col2 + + col1 FROM tab0
----
132
7389
878
query I rowsort
SELECT 28 FROM tab1, tab2 AS cor0
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6483
SELECT ALL + col0 / + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6483
SELECT ALL + col0 / + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL 15 FROM tab2, tab1 cor0
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd
query I rowsort
SELECT ALL 81 AS col1 FROM tab2
----
81
81
81
onlyif mysql # use DIV operator for integer division
query I rowsort label-6486
SELECT + + ( 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-6486
SELECT + + ( cor0.col1 ) / + col1 col2 FROM tab0 AS cor0
----
1
1
1
query I rowsort
SELECT DISTINCT - + 30 + col2 - col0 FROM tab1 AS cor0
----
-14
-37
21
query I rowsort
SELECT + ( col1 + + tab2.col2 ) FROM tab2
----
55
58
85
query I rowsort
SELECT DISTINCT - col0 * + col2 + + cor0.col0 * 13 FROM tab2 AS cor0
----
-1014
-1975
-98
query I rowsort
SELECT ALL - ( - col1 ) * col2 FROM tab1 AS cor0
----
1248
1404
570
onlyif mysql # use DIV operator for integer division
query I rowsort label-6491
SELECT ALL + col0 + + col0 DIV col2 FROM tab0 AS cor0
----
24
70
90
skipif mysql # not compatible
query I rowsort label-6491
SELECT ALL + col0 + + col0 / col2 FROM tab0 AS cor0
----
24
70
90
query I rowsort
SELECT - 5 AS col2 FROM tab1 AS cor0
----
-5
-5
-5
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6493
SELECT DISTINCT + 15 * - col2 + CAST( + col0 AS SIGNED ) AS col1 FROM tab2 cor0
----
-312
-398
-491
skipif mysql # not compatible
query I rowsort label-6493
SELECT DISTINCT + 15 * - col2 + CAST ( + col0 AS INTEGER ) AS col1 FROM tab2 cor0
----
-312
-398
-491
query I rowsort
SELECT ALL 78 + col1 AS col0 FROM tab2 AS cor0
----
109
137
95
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6495
SELECT ALL - col2 * col0 + + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6495
SELECT ALL - col2 * col0 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - + cor0.col1 AS col2 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT 72 FROM tab0 AS cor0
----
72
72
72
onlyif mysql # use DIV operator for integer division
query I rowsort label-6498
SELECT DISTINCT 55 DIV - col1 AS col2 FROM tab1
----
-2
-4
-5
skipif mysql # not compatible
query I rowsort label-6498
SELECT DISTINCT 55 / - col1 AS col2 FROM tab1
----
-2
-4
-5
query I rowsort
SELECT + 3 AS col0 FROM tab2
----
3
3
3
query I rowsort
SELECT - ( col1 * tab2.col1 ) + col2 FROM tab2
----
-251
-3455
-934
query I rowsort
SELECT ALL - col2 + + col2 AS col2 FROM tab2
----
0
0
0
query I rowsort
SELECT col0 * col0 + + col1 FROM tab2
----
6143
6258
80
query I rowsort
SELECT - col2 - + col0 * 34 FROM tab1
----
-156
-2233
-2816
query I rowsort
SELECT - col0 + + col0 * col1 AS col0 FROM tab2 AS cor0
----
1264
210
4524
onlyif mysql # use DIV operator for integer division
query I rowsort label-6505
SELECT + col2 + col1 DIV col1 FROM tab0 AS cor0
----
2
34
83
skipif mysql # not compatible
query I rowsort label-6505
SELECT + col2 + col1 / col1 FROM tab0 AS cor0
----
2
34
83
query I rowsort
SELECT ALL col0 - + col0 AS col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL col0 * 7 * + col1 AS col0 FROM tab1 AS cor0
----
4480
546
7280
query I rowsort
SELECT DISTINCT - col2 * col2 + - col0 + - col1 * - col1 AS col2 FROM tab2 AS cor0
----
-1234
225
2727
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6509
SELECT - + col1 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6509
SELECT - + col1 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + col1 * + col0 - + 17 AS col0 FROM tab2 cor0
----
1326
200
4585
query I rowsort
SELECT DISTINCT + col2 + ( - col2 + col2 ) FROM tab0 AS cor0
----
1
33
82
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6512
SELECT - CAST( 26 AS SIGNED ) + cor0.col2 * col2 FROM tab1 cor0
----
2890
3223
9190
skipif mysql # not compatible
query I rowsort label-6512
SELECT - CAST ( 26 AS INTEGER ) + cor0.col2 * col2 FROM tab1 cor0
----
2890
3223
9190
query I rowsort
SELECT + 65 FROM tab2, tab1 AS cor0
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805
query I rowsort
SELECT 65 + col1 AS col2 FROM tab1 AS cor0
----
75
78
91
query I rowsort
SELECT - ( col0 ) + + col1 + + col1 AS col0 FROM tab0 AS cor0
----
148
159
93
query I rowsort
SELECT - - 54 + + cor0.col1 * col1 FROM tab1 AS cor0
----
154
223
730
query I rowsort
SELECT ( - cor0.col0 ) * 69 + 89 * + cor0.col2 AS col0 FROM tab1 AS cor0
----
3024
4599
657
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6518
SELECT - CAST( tab2.col1 AS SIGNED ) AS col0 FROM tab2
----
-17
-31
-59
skipif mysql # not compatible
query I rowsort label-6518
SELECT - CAST ( tab2.col1 AS INTEGER ) AS col0 FROM tab2
----
-17
-31
-59
query I rowsort
SELECT cor1.col2 + + 71 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c2e19c35331e039b44b587838257a733
query I rowsort
SELECT + 85 + col2 - + col0 FROM tab2
----
105
33
44
onlyif mysql # use DIV operator for integer division
query I rowsort label-6521
SELECT ( tab2.col1 ) DIV - col1 AS col0 FROM tab2
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-6521
SELECT ( tab2.col1 ) / - col1 AS col0 FROM tab2
----
-1
-1
-1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6522
SELECT - CAST( NULL AS DECIMAL ) / col1 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6522
SELECT - CAST ( NULL AS REAL ) / col1 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + 81 - tab0.col0 AS col0 FROM tab0
----
-8
46
57
query I rowsort
SELECT col1 * - tab2.col1 + tab2.col1 + col1 FROM tab2
----
-255
-3363
-899
query I rowsort
SELECT ( - 32 ) AS col1 FROM tab0
----
-32
-32
-32
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6526
SELECT DISTINCT CAST( NULL AS SIGNED ) - 41 col1 FROM tab0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6526
SELECT DISTINCT CAST ( NULL AS INTEGER ) - 41 col1 FROM tab0
----
NULL
query I rowsort
SELECT DISTINCT - - 19 + col2 * + col2 FROM tab2 AS cor0
----
1463
695
748
query I rowsort
SELECT ALL + 8 * - cor0.col2 AS col1 FROM tab2 AS cor0
----
-208
-216
-304
query I rowsort
SELECT + cor0.col1 * cor0.col0 * + col2 + 15 * + col1 + - col2 FROM tab2 AS cor0
----
120511
51251
6297
query I rowsort
SELECT + cor0.col0 + - col2 AS col0 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT DISTINCT - 11 + - cor0.col1 FROM tab0 AS cor0
----
-102
-108
-97
query I rowsort
SELECT DISTINCT 52 AS col0 FROM tab1 cor0
----
52
query I rowsort
SELECT ALL + - 72 * col2 + 13 FROM tab2 AS cor0
----
-1859
-1931
-2723
query I rowsort
SELECT 42 FROM tab0, tab1 AS cor0, tab2 cor1
----
27 values hashing to 325aada2239b6fe1fe2d843515ae8c5e
query I rowsort
SELECT ALL + + col0 * - col0 - ( col2 ) FROM tab0 cor0
----
-1226
-609
-8003
query I rowsort
SELECT - col2 + col0 * col0 FROM tab2 AS cor0
----
22
6058
6203
query I rowsort
SELECT DISTINCT - cor0.col1 + col2 AS col2 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT DISTINCT - col2 + + col1 AS col2 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT ALL + ( - col1 ) * col2 AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT DISTINCT + 51 FROM tab1 cor0
----
51
query I rowsort
SELECT - 24 * + col0 + col0 * 0 AS col1 FROM tab2 AS cor0
----
-168
-1872
-1896
query I rowsort
SELECT + cor0.col1 - - col0 * col0 AS col1 FROM tab0 cor0
----
1322
662
8012
onlyif mysql # use DIV operator for integer division
query I rowsort label-6543
SELECT DISTINCT + ( + col2 ) DIV + col1 - 88 col1 FROM tab0
----
-88
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6543
SELECT DISTINCT + ( + col2 ) / + col1 - 88 col1 FROM tab0
----
-88
query I rowsort
SELECT ALL col2 - 30 * - col2 AS col1 FROM tab0
----
1023
2542
31
query I rowsort
SELECT DISTINCT cor0.col0 + col2 * - col1 AS col1 FROM tab1 AS cor0
----
-1168
-1401
-506
query I rowsort
SELECT ALL + + col1 + + col0 * col1 FROM tab0 AS cor0
----
2150
3492
8190
query I rowsort
SELECT - cor0.col2 + col0 AS col1 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT ALL + col0 * + col0 + col0 AS col2 FROM tab2 AS cor0
----
56
6162
6320
query I rowsort
SELECT - 71 * col2 + cor0.col2 AS col0 FROM tab0 AS cor0
----
-2310
-5740
-70
onlyif mysql # use DIV operator for integer division
query I rowsort label-6550
SELECT DISTINCT - col0 DIV - col0 AS col2 FROM tab1 cor0
----
1
skipif mysql # not compatible
query I rowsort label-6550
SELECT DISTINCT - col0 / - col0 AS col2 FROM tab1 cor0
----
1
query I rowsort
SELECT ALL + col2 + + col0 * 11 * - col1 AS col1 FROM tab0 AS cor0
----
-22671
-37344
-89007
query I rowsort
SELECT col0 * + 83 FROM tab1 AS cor0
----
249
5312
6640
query I rowsort
SELECT ALL + col0 + cor0.col1 AS col1 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT DISTINCT col1 * col2 * + col0 FROM tab1
----
36480
4212
99840
onlyif mysql # use DIV operator for integer division
query I rowsort label-6555
SELECT + + col1 DIV + col1 FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-6555
SELECT + + col1 / + col1 FROM tab1 AS cor0
----
1
1
1
query I rowsort
SELECT DISTINCT + cor0.col2 * col1 AS col0 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT - - col1 * - cor0.col1 AS col1 FROM tab2 AS cor0
----
-289
-3481
-961
query I rowsort
SELECT ALL - - col2 * - 92 FROM tab1 cor0
----
-4968
-5244
-8832
query I rowsort
SELECT DISTINCT + col1 * col1 + col0 FROM tab2 AS cor0
----
3559
368
968
query I rowsort
SELECT ALL + col2 * - col0 AS col0 FROM tab1 cor0
----
-162
-3648
-7680
query I rowsort
SELECT ALL + cor0.col1 * + col2 FROM tab0 AS cor0
----
2838
7462
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-6562
SELECT ALL - cor0.col2 DIV ( + col1 ) AS col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6562
SELECT ALL - cor0.col2 / ( + col1 ) AS col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - + 51 * + col2 + col1 AS col0 FROM tab1 AS cor0
----
-2728
-2897
-4883
query I rowsort
SELECT DISTINCT 3 + col1 FROM tab2 AS cor0
----
20
34
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col0 col2 FROM tab2 cor0
----
189
2028
3002
query I rowsort
SELECT ALL - col0 + - cor0.col2 AS col0 FROM tab2 cor0
----
-104
-117
-34
query I rowsort
SELECT DISTINCT + col2 * 20 FROM tab2
----
520
540
760
query I rowsort
SELECT cor1.col0 FROM tab0 AS cor0 CROSS JOIN tab2, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT DISTINCT 95 FROM tab1, tab0 AS cor0
----
95
query I rowsort
SELECT DISTINCT 39 + 59 FROM tab1, tab0 AS cor0
----
98
query I rowsort
SELECT col2 + 39 * - col2 AS col1 FROM tab2
----
-1026
-1444
-988
onlyif mysql # use DIV operator for integer division
query I rowsort label-6572
SELECT + col0 DIV - 13 - col0 col2 FROM tab2
----
-7
-84
-85
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6572
SELECT + col0 / - 13 - col0 col2 FROM tab2
----
-7
-84
-85
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6573
SELECT DISTINCT - CAST( col1 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-6573
SELECT DISTINCT - CAST ( col1 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT - - ( + col0 ) AS col0 FROM tab2 AS cor0
----
7
78
79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 54 * - 29 col0 FROM tab1 AS cor0
----
1566
1566
1566
query I rowsort
SELECT 11 AS col0 FROM tab1 AS cor0
----
11
11
11
query I rowsort
SELECT DISTINCT + col2 * - ( col2 ) AS col0 FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT + col0 * ( col2 ) AS col0 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT ALL + col1 * + ( col0 ) + - cor0.col0 AS col1 FROM tab1 AS cor0
----
576
75
960
query I rowsort
SELECT DISTINCT + 93 + + col2 * cor0.col1 - + cor0.col1 * - cor0.col1 AS col2 FROM tab1 AS cor0
----
1510
2173
763
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 88 col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 467301f887614eb7beda22c561b0fad2
onlyif mysql # use DIV operator for integer division
query I rowsort label-6582
SELECT ALL + col2 DIV col0 AS col1 FROM tab1
----
0
1
18
skipif mysql # not compatible
query I rowsort label-6582
SELECT ALL + col2 / col0 AS col1 FROM tab1
----
0
1
18
query I rowsort
SELECT DISTINCT tab2.col0 * 77 FROM tab2, tab0 cor0
----
539
6006
6083
query I rowsort
SELECT - col0 * - col2 + + col2 AS col2 FROM tab1
----
216
3705
7776
query I rowsort
SELECT + col1 + + cor0.col2 AS col0 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT 88 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor1.col0 col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870
query I rowsort
SELECT - 60 + - cor0.col2 * - col0 FROM tab1 AS cor0
----
102
3588
7620
query I rowsort
SELECT DISTINCT col0 - + tab2.col1 * - col0 AS col2 FROM tab2
----
1422
224
4680
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6590
SELECT - - cor0.col1 / - CAST( NULL AS DECIMAL ) FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-6590
SELECT - - cor0.col1 / - CAST ( NULL AS REAL ) FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT ALL cor1.col2 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6592
SELECT DISTINCT + + CAST( NULL AS SIGNED ) AS col0 FROM tab1 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6592
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + col0 col2 FROM tab0 cor0
----
-2064
-3395
-8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 9 col1 FROM tab1 cor0
----
9
9
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-6595
SELECT + col1 DIV + col0 + + 48 * + col0 FROM tab2 AS cor0
----
340
3744
3792
skipif mysql # not compatible
query I rowsort label-6595
SELECT + col1 / + col0 + + 48 * + col0 FROM tab2 AS cor0
----
340
3744
3792
query I rowsort
SELECT 19 + tab0.col2 AS col0 FROM tab0
----
101
20
52
query I rowsort
SELECT + col1 + col2 * tab0.col0 * + 3 AS col0 FROM tab0
----
202
21985
2462
query I rowsort
SELECT ALL tab2.col1 * ( + col1 ) * col2 FROM tab2
----
10982
25947
90506
query I rowsort
SELECT + 53 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 866ae1b4ab9e5b4043ac1bcfd413aaa6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 65 col1 FROM tab0, tab2 AS cor0
----
65
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6601
SELECT ALL col1 * - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6601
SELECT ALL col1 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + + col1 + + 79 AS col1 FROM tab0 AS cor0
----
165
170
176
query I rowsort
SELECT col2 * - col1 * 98 + - col0 FROM tab1 AS cor0
----
-122384
-137595
-55924
onlyif mysql # use DIV operator for integer division
query I rowsort label-6604
SELECT - col0 DIV col0 + + 70 * col2 AS col2 FROM tab0 AS cor0
----
2309
5739
69
skipif mysql # not compatible
query I rowsort label-6604
SELECT - col0 / col0 + + 70 * col2 AS col2 FROM tab0 AS cor0
----
2309
5739
69
query I rowsort
SELECT ALL - col0 * cor0.col0 AS col0 FROM tab0 AS cor0
----
-1225
-576
-7921
query I rowsort
SELECT ALL + - col0 * - col2 AS col0 FROM tab1 cor0
----
162
3648
7680
query I rowsort
SELECT ALL - col2 + col2 + 93 FROM tab2 AS cor0
----
93
93
93
query I rowsort
SELECT + 19 AS col1 FROM tab2 AS cor0
----
19
19
19
query I rowsort
SELECT + 30 * col1 AS col1 FROM tab1 AS cor0
----
300
390
780
query I rowsort
SELECT + ( 73 ) AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 cor0, tab0 AS cor1, tab2, tab1 AS cor2
----
3645 values hashing to 7ccb6e2515d95809a8c30b73a5cf5f46
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab2 AS cor0, tab1 cor1, tab1 AS cor2
----
972 values hashing to fe55095fff3a5ecc2f113d14a8c6f823
query I rowsort
SELECT ALL - col0 * - ( 12 * - col1 ) AS col0 FROM tab0 AS cor0
----
-24768
-40740
-97188
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6614
SELECT ALL - CAST( - col2 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
26
27
38
skipif mysql # not compatible
query I rowsort label-6614
SELECT ALL - CAST ( - col2 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT ALL 75 * + col0 FROM tab0 cor0
----
1800
2625
6675
query I rowsort
SELECT DISTINCT col0 + + 33 FROM tab1 AS cor0
----
113
36
97
query I rowsort
SELECT ALL + col0 + + 8 AS col2 FROM tab1
----
11
72
88
query I rowsort
SELECT col2 * 13 + cor0.col0 * 59 FROM tab0 cor0
----
1845
2078
6317
query I rowsort
SELECT - 27 + - col0 AS col0 FROM tab1 AS cor0
----
-107
-30
-91
query I rowsort
SELECT ALL + 67 FROM tab2
----
67
67
67
query I rowsort
SELECT 39 * + col0 FROM tab1 AS cor0
----
117
2496
3120
query I rowsort
SELECT 35 * + col0 FROM tab2
----
245
2730
2765
query I rowsort
SELECT ALL 45 * + col2 FROM tab2
----
1170
1215
1710
query I rowsort
SELECT DISTINCT - 80 FROM tab0
----
-80
query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab0, tab1 cor0, tab0 AS cor1
----
972 values hashing to 5e655b1287771868a8f868574a94d749
query I rowsort
SELECT DISTINCT + ( + col1 ) + col1 * col2 FROM tab0 AS cor0
----
194
2924
7553
query I rowsort
SELECT ALL - + 79 FROM tab1 AS cor0
----
-79
-79
-79
query I rowsort
SELECT ALL + 96 * 71 AS col1 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to da0f2344607597d64499dab1f8570f01
query I rowsort
SELECT ALL - + 49 FROM tab1 AS cor0
----
-49
-49
-49
onlyif mysql # use DIV operator for integer division
query I rowsort label-6630
SELECT + col2 + col2 DIV col1 AS col1 FROM tab1 AS cor0
----
103
56
62
skipif mysql # not compatible
query I rowsort label-6630
SELECT + col2 + col2 / col1 AS col1 FROM tab1 AS cor0
----
103
56
62
query I rowsort
SELECT - 62 * 81 AS col1 FROM tab2
----
-5022
-5022
-5022
query I rowsort
SELECT + 35 AS col1 FROM tab2
----
35
35
35
query I rowsort
SELECT DISTINCT - tab2.col1 + - col2 AS col0 FROM tab2
----
-55
-58
-85
onlyif mysql # use DIV operator for integer division
query I rowsort label-6634
SELECT DISTINCT tab2.col1 + col1 DIV ( - 22 + - col1 ) FROM tab2
----
17
31
59
skipif mysql # not compatible
query I rowsort label-6634
SELECT DISTINCT tab2.col1 + col1 / ( - 22 + - col1 ) FROM tab2
----
17
31
59
query I rowsort
SELECT ALL ( - col0 ) * col1 + tab1.col1 FROM tab1
----
-1027
-52
-630
query I rowsort
SELECT DISTINCT tab0.col0 + - col1 FROM tab0
----
-2
-62
query I rowsort
SELECT DISTINCT 84 * - col0 * col2 + col1 FROM tab1
----
-13582
-306422
-645107
query I rowsort
SELECT ALL + 58 + - col2 * + col1 FROM tab1
----
-1190
-1346
-512
onlyif mysql # use DIV operator for integer division
query I rowsort label-6639
SELECT DISTINCT + 65 DIV - cor1.col1 AS col2 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
-2
-5
-6
skipif mysql # not compatible
query I rowsort label-6639
SELECT DISTINCT + 65 / - cor1.col1 AS col2 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
-2
-5
-6
query I rowsort
SELECT DISTINCT 31 FROM tab1, tab0 AS cor0
----
31
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 - col1 * - ( col0 * - col0 ) + col1 col0 FROM tab1 AS cor0
----
-208
-40950
-83187
query I rowsort
SELECT DISTINCT + 52 + + col2 * cor0.col0 FROM tab0 AS cor0
----
7350
844
87
onlyif mysql # use DIV operator for integer division
query I rowsort label-6644
SELECT - col0 DIV - ( tab1.col2 ) FROM tab1
----
0
0
1
skipif mysql # not compatible
query I rowsort label-6644
SELECT - col0 / - ( tab1.col2 ) FROM tab1
----
0
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + tab0.col2 col0 FROM tab0
----
171
36
57
query I rowsort
SELECT cor0.col2 + - col2 AS col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + cor0.col1 AS col1 FROM tab1, tab1 AS cor0
----
10
13
26
query I rowsort
SELECT col1 * ( 74 * col2 ) FROM tab2
----
113516
47804
61938
onlyif mysql # use DIV operator for integer division
query I rowsort label-6649
SELECT - - cor0.col1 DIV + ( col0 ) FROM tab0 cor0
----
1
2
3
skipif mysql # not compatible
query I rowsort label-6649
SELECT - - cor0.col1 / + ( col0 ) FROM tab0 cor0
----
1
2
3
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6650
SELECT - CAST( NULL AS SIGNED ) + + 63 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6650
SELECT - CAST ( NULL AS INTEGER ) + + 63 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-6651
SELECT + ( - col0 ) DIV col2 AS col1 FROM tab0 cor0
----
-1
-35
0
skipif mysql # not compatible
query I rowsort label-6651
SELECT + ( - col0 ) / col2 AS col1 FROM tab0 cor0
----
-1
-35
0
query I rowsort
SELECT + 35 * + col2 * col2 + col0 AS col1 FROM tab0 cor0
----
235429
38139
70
query I rowsort
SELECT ( - 52 ) - - col1 FROM tab0 AS cor0
----
34
39
45
query I rowsort
SELECT DISTINCT + 46 + + col2 FROM tab0 AS cor0
----
128
47
79
query I rowsort
SELECT + col0 + - col2 * col1 AS col2 FROM tab2 AS cor0
----
-1456
-567
-830
query I rowsort
SELECT ALL + - ( - 33 ) + col2 FROM tab0 AS cor0
----
115
34
66
query I rowsort
SELECT + ( + 75 ) * + col2 + + col1 AS col2 FROM tab1 AS cor0
----
4076
4285
7213
query I rowsort
SELECT ALL + - col1 * col0 * - col2 FROM tab1 AS cor0
----
36480
4212
99840
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6659
SELECT + + ( col2 ) + col1 - CAST( - ( col0 ) AS SIGNED ) FROM tab1 AS cor0
----
131
189
83
skipif mysql # not compatible
query I rowsort label-6659
SELECT + + ( col2 ) + col1 - CAST ( - ( col0 ) AS INTEGER ) FROM tab1 AS cor0
----
131
189
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-6660
SELECT + CAST( cor0.col0 AS SIGNED ) DIV col2 col0 FROM tab0 AS cor0
----
0
1
35
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6660
SELECT + CAST ( cor0.col0 AS INTEGER ) / col2 col0 FROM tab0 AS cor0
----
0
1
35
onlyif mysql # use DIV operator for integer division
query I rowsort label-6661
SELECT ALL col1 DIV + tab0.col1 FROM tab0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-6661
SELECT ALL col1 / + tab0.col1 FROM tab0
----
1
1
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-6662
SELECT DISTINCT - + col2 * 29 - + col1 DIV col0 FROM tab2 AS cor0
----
-1102
-754
-787
skipif mysql # not compatible
query I rowsort label-6662
SELECT DISTINCT - + col2 * 29 - + col1 / col0 FROM tab2 AS cor0
----
-1102
-754
-787
query I rowsort
SELECT ALL - col0 + col2 * - cor0.col0 + - col0 * 9 FROM tab1 AS cor0
----
-192
-4288
-8480
query I rowsort
SELECT ALL - col2 + - cor0.col2 AS col0 FROM tab1 AS cor0
----
-108
-114
-192
onlyif mysql # use DIV operator for integer division
query I rowsort label-6665
SELECT + cor0.col2 + - col2 DIV 12 FROM tab0 AS cor0
----
1
31
76
skipif mysql # not compatible
query I rowsort label-6665
SELECT + cor0.col2 + - col2 / 12 FROM tab0 AS cor0
----
1
31
76
query I rowsort
SELECT DISTINCT col1 + col1 AS col0 FROM tab0
----
172
182
194
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + 81 + col1 - - col1 col0 FROM tab2 AS cor0
----
629
6433
6436
query I rowsort
SELECT + 89 FROM tab2, tab0 AS cor0
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6669
SELECT DISTINCT - col0 + CAST( NULL AS SIGNED ) * cor0.col1 + + col2 AS col2 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6669
SELECT DISTINCT - col0 + CAST ( NULL AS INTEGER ) * cor0.col1 + + col2 AS col2 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT ALL - + col1 * - col2 + + 9 AS col0 FROM tab0 AS cor0
----
106
2847
7471
query I rowsort
SELECT ALL - col2 * - 79 + + ( cor0.col2 ) * + 36 * col2 FROM tab1 cor0
----
109242
121467
339360
query I rowsort
SELECT ALL + - col0 * ( 69 ) FROM tab2 AS cor0
----
-483
-5382
-5451
query I rowsort
SELECT ALL + col2 + + cor0.col0 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT - col0 * - col0 FROM tab0 cor0
----
1225
576
7921
onlyif mysql # use DIV operator for integer division
query I rowsort label-6675
SELECT DISTINCT - col1 DIV + 3 + + col0 FROM tab1 cor0
----
-5
61
76
skipif mysql # not compatible
query I rowsort label-6675
SELECT DISTINCT - col1 / + 3 + + col0 FROM tab1 cor0
----
-5
61
76
onlyif mysql # use DIV operator for integer division
query I rowsort label-6676
SELECT + cor0.col0 DIV ( - 74 + + col2 ) AS col1 FROM tab2 AS cor0
----
-1
-2
0
skipif mysql # not compatible
query I rowsort label-6676
SELECT + cor0.col0 / ( - 74 + + col2 ) AS col1 FROM tab2 AS cor0
----
-1
-2
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-6677
SELECT DISTINCT + col0 + cor0.col1 DIV - col2 AS col2 FROM tab0 cor0
----
-62
22
88
skipif mysql # not compatible
query I rowsort label-6677
SELECT DISTINCT + col0 + cor0.col1 / - col2 AS col2 FROM tab0 cor0
----
-62
22
88
query I rowsort
SELECT DISTINCT cor0.col2 + + 40 + col0 FROM tab1 cor0
----
161
216
97
query I rowsort
SELECT col0 + 91 FROM tab0 AS cor0
----
115
126
180
query I rowsort
SELECT col0 * + 56 FROM tab0 cor0
----
1344
1960
4984
query I rowsort
SELECT + 89 * + col2 FROM tab2 AS cor0
----
2314
2403
3382
query I rowsort
SELECT 25 * + col2 AS col2 FROM tab2 cor0
----
650
675
950
query I rowsort
SELECT ALL - 14 + col0 AS col2 FROM tab1 cor0
----
-11
50
66
query I rowsort
SELECT ALL - 16 + - col0 * col1 AS col2 FROM tab2 AS cor0
----
-1359
-233
-4618
query I rowsort
SELECT DISTINCT - 29 AS col2 FROM tab2 AS cor0
----
-29
query I rowsort
SELECT + - 33 AS col1 FROM tab2 AS cor0
----
-33
-33
-33
onlyif mysql # use DIV operator for integer division
query I rowsort label-6687
SELECT + col2 + + 23 DIV col2 AS col2 FROM tab1 AS cor0
----
54
57
96
skipif mysql # not compatible
query I rowsort label-6687
SELECT + col2 + + 23 / col2 AS col2 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT + 70 + + 80 AS col1 FROM tab1 AS cor0
----
150
150
150
query I rowsort
SELECT 83 * cor1.col1 AS col1 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 6868f8df3f4338164c2fb48f70119e08
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 60 * - col2 col1 FROM tab2 AS cor0
----
1560
1620
2280
query I rowsort
SELECT DISTINCT + 9 * + col1 AS col0 FROM tab0 AS cor0
----
774
819
873
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * + col1 col1 FROM tab0 AS cor0
----
2838
7462
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 + cor0.col1 col2 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT ALL + - cor0.col1 * + col1 + col1 FROM tab1 AS cor0
----
-156
-650
-90
query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab1 cor0, tab0, tab0 cor1
----
972 values hashing to b2fa3f9d060540fe1eb4ad1c0754e163
query I rowsort
SELECT - cor0.col0 + + col0 * + col2 AS col1 FROM tab2 AS cor0
----
182
1950
2923
query I rowsort
SELECT DISTINCT - col0 + col0 * - ( - col1 ) * + col0 FROM tab0 AS cor0
----
118790
49512
720722
query I rowsort
SELECT ALL - - cor0.col1 * - col2 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT + ( cor0.col0 ) + + 42 * + col2 AS col0 FROM tab1 AS cor0
----
2271
2458
4112
query I rowsort
SELECT DISTINCT - 78 + - col1 * col1 AS col1 FROM tab1 AS cor0
----
-178
-247
-754
query I rowsort
SELECT - - col2 * col2 AS col2 FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT DISTINCT - 82 * + col2 AS col0 FROM tab0 AS cor0
----
-2706
-6724
-82
query I rowsort
SELECT ALL - + col2 * col1 + - col1 FROM tab1 AS cor0
----
-1261
-1430
-580
query I rowsort
SELECT - - 52 AS col0 FROM tab2 AS cor0
----
52
52
52
onlyif mysql # use DIV operator for integer division
query I rowsort label-6705
SELECT + col0 DIV cor0.col2 FROM tab1 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-6705
SELECT + col0 / cor0.col2 FROM tab1 AS cor0
----
0
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col0 FROM tab2 cor0
----
26
27
38
query I rowsort
SELECT - - col0 * - col2 + col2 AS col1 FROM tab1 AS cor0
----
-108
-3591
-7584
query I rowsort
SELECT ALL + col1 * - cor0.col0 AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT DISTINCT - + col0 * col2 + 5 AS col1 FROM tab1 AS cor0
----
-157
-3643
-7675
query I rowsort
SELECT DISTINCT 83 * - cor0.col0 FROM tab1 AS cor0
----
-249
-5312
-6640
query I rowsort
SELECT - col1 + col0 AS col0 FROM tab0 cor0
----
-2
-62
-62
query I rowsort
SELECT ALL - cor0.col0 * - col2 FROM tab2 cor0
----
189
2028
3002
query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0, tab0 cor1, tab2 AS cor2
----
972 values hashing to 6dfb18fb846f922ba9ea60ce42b86fb0
query I rowsort
SELECT 16 + + ( col1 ) AS col0 FROM tab1 AS cor0
----
26
29
42
query I rowsort
SELECT + cor0.col1 + 45 + col1 FROM tab2 AS cor0
----
107
163
79
query I rowsort
SELECT - cor0.col1 FROM tab2, tab1 AS cor0, tab1 cor1
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6
query I rowsort
SELECT ALL 1 + 69 * + col2 AS col2 FROM tab0 AS cor0
----
2278
5659
70
query I rowsort
SELECT DISTINCT + + 49 * - col1 + + col2 FROM tab2 AS cor0
----
-1492
-2865
-795
query I rowsort
SELECT ALL 93 + + cor0.col0 FROM tab0 AS cor0
----
117
128
182
query I rowsort
SELECT + + ( cor0.col1 ) + + col0 AS col2 FROM tab1 cor0
----
29
74
93
query I rowsort
SELECT DISTINCT + 7 FROM tab0 AS cor0
----
7
query I rowsort
SELECT ALL + ( col0 ) * - col0 FROM tab1 AS cor0
----
-4096
-6400
-9
query I rowsort
SELECT + col2 + col2 * col1 AS col0 FROM tab0 AS cor0
----
2871
7544
98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 col0 FROM tab0, tab0 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
onlyif mysql # use DIV operator for integer division
query I rowsort label-6725
SELECT DISTINCT - col0 DIV col0 - col0 col0 FROM tab2
----
-79
-8
-80
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6725
SELECT DISTINCT - col0 / col0 - col0 col0 FROM tab2
----
-79
-8
-80
query I rowsort
SELECT ALL col0 + col2 * col2 AS col1 FROM tab1
----
2919
3313
9296
query I rowsort
SELECT + ( - col0 ) AS col1 FROM tab0
----
-24
-35
-89
query I rowsort
SELECT DISTINCT tab1.col0 + 82 FROM tab1
----
146
162
85
onlyif mysql # use DIV operator for integer division
query I rowsort label-6729
SELECT DISTINCT col1 * + col2 * col2 + 62 DIV 62 FROM tab0
----
611885
93655
98
skipif mysql # not compatible
query I rowsort label-6729
SELECT DISTINCT col1 * + col2 * col2 + 62 / 62 FROM tab0
----
611885
93655
98
query I rowsort
SELECT DISTINCT col1 * col2 + - col0 FROM tab0
----
2814
62
7373
query I rowsort
SELECT cor1.col0 AS col0 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
onlyif mysql # use DIV operator for integer division
query I rowsort label-6732
SELECT ALL tab2.col2 * - col1 DIV col1 AS col1 FROM tab2
----
-26
-27
-38
skipif mysql # not compatible
query I rowsort label-6732
SELECT ALL tab2.col2 * - col1 / col1 AS col1 FROM tab2
----
-26
-27
-38
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6733
SELECT DISTINCT - CAST( col0 AS SIGNED ) * - col0 + - col1 FROM tab2 AS cor0
----
18
6025
6224
skipif mysql # not compatible
query I rowsort label-6733
SELECT DISTINCT - CAST ( col0 AS INTEGER ) * - col0 + - col1 FROM tab2 AS cor0
----
18
6025
6224
query I rowsort
SELECT - 7 + col0 FROM tab0 AS cor0
----
17
28
82
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6735
SELECT DISTINCT - + CAST( - 66 AS SIGNED ) * col1 FROM tab2 AS cor0
----
1122
2046
3894
skipif mysql # not compatible
query I rowsort label-6735
SELECT DISTINCT - + CAST ( - 66 AS INTEGER ) * col1 FROM tab2 AS cor0
----
1122
2046
3894
query I rowsort
SELECT + ( + 28 ) FROM tab2, tab1 AS cor0
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + col0 - + col0 * + cor0.col1 col1 FROM tab2 AS cor0
----
-168
1482
4898
query I rowsort
SELECT ALL - col0 + 2 * - col2 * + col1 FROM tab2 cor0
----
-1371
-1681
-3146
query I rowsort
SELECT ALL + - col2 * col1 + 64 AS col1 FROM tab0 AS cor0
----
-2774
-33
-7398
query I rowsort
SELECT ALL + col0 + + ( cor0.col0 ) FROM tab1 cor0
----
128
160
6
query I rowsort
SELECT - ( + col1 ) * col0 * 60 FROM tab2 AS cor0
----
-13020
-276120
-80580
query I rowsort
SELECT + ( + ( + col1 ) ) AS col1 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT DISTINCT + cor0.col1 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0, tab2 AS cor1
----
17
31
59
query I rowsort
SELECT ALL - 82 * col1 FROM tab2 AS cor0
----
-1394
-2542
-4838
query I rowsort
SELECT ALL - 22 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 647e567609c5ada1d3454d2102819bfe
query I rowsort
SELECT ALL + 0 AS col2 FROM tab1
----
0
0
0
query I rowsort
SELECT DISTINCT + col2 * col1 AS col0 FROM tab2 cor0
----
1534
646
837
query I rowsort
SELECT DISTINCT - + col2 + - col1 * + 11 + col1 * - col0 AS col0 FROM tab1 AS cor0
----
-1279
-418
-807
query I rowsort
SELECT - col2 + ( col0 + col2 ) FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT - col0 * + col1 - - cor0.col0 AS col0 FROM tab1 AS cor0
----
-576
-75
-960
onlyif mysql # use DIV operator for integer division
query I rowsort label-6751
SELECT + col2 + - col0 DIV - col0 AS col0 FROM tab0 AS cor0
----
2
34
83
skipif mysql # not compatible
query I rowsort label-6751
SELECT + col2 + - col0 / - col0 AS col0 FROM tab0 AS cor0
----
2
34
83
query I rowsort
SELECT DISTINCT + col2 + + col1 * + col0 FROM tab0
----
2097
3396
8181
query I rowsort
SELECT 42 * + col2 AS col0 FROM tab2
----
1092
1134
1596
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - col2 col0 FROM tab0
----
35
7298
792
onlyif mysql # use DIV operator for integer division
query I rowsort label-6755
SELECT DISTINCT col2 + + col2 DIV + CAST( + col0 AS SIGNED ) AS col0 FROM tab0
----
1
34
82
skipif mysql # not compatible
query I rowsort label-6755
SELECT DISTINCT col2 + + col2 / + CAST ( + col0 AS INTEGER ) AS col0 FROM tab0
----
1
34
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * 57 col0 FROM tab0 AS cor0
----
1881
4674
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-6757
SELECT + - col0 * 9 + col1 DIV col0 AS col0 FROM tab0 AS cor0
----
-213
-313
-800
skipif mysql # not compatible
query I rowsort label-6757
SELECT + - col0 * 9 + col1 / col0 AS col0 FROM tab0 AS cor0
----
-213
-313
-800
query I rowsort
SELECT DISTINCT - + col1 * + 72 AS col2 FROM tab0 AS cor0
----
-6192
-6552
-6984
query I rowsort
SELECT - - col2 + 15 * + col2 + cor0.col2 AS col1 FROM tab2 AS cor0
----
442
459
646
onlyif mysql # use DIV operator for integer division
query I rowsort label-6760
SELECT col0 + ( col2 ) DIV col0 + - ( 60 + - col0 ) AS col1 FROM tab1 AS cor0
----
-36
101
68
skipif mysql # not compatible
query I rowsort label-6760
SELECT col0 + ( col2 ) / col0 + - ( 60 + - col0 ) AS col1 FROM tab1 AS cor0
----
-36
101
68
query I rowsort
SELECT ALL - col1 * cor0.col0 AS col1 FROM tab1 cor0
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT + col0 * ( + col0 ) FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT + ( - col1 ) * col2 FROM tab2 AS cor0
----
-1534
-646
-837
onlyif mysql # use DIV operator for integer division
query I rowsort label-6764
SELECT DISTINCT ( - cor0.col1 ) DIV col0 FROM tab2 AS cor0
----
-4
0
skipif mysql # not compatible
query I rowsort label-6764
SELECT DISTINCT ( - cor0.col1 ) / col0 FROM tab2 AS cor0
----
-4
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + 63 col1 FROM tab1 AS cor0
----
73
76
89
query I rowsort
SELECT - - 39 FROM tab2 AS cor0
----
39
39
39
query I rowsort
SELECT DISTINCT - - col0 + 0 * col1 AS col2 FROM tab2 cor0
----
7
78
79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6768
SELECT DISTINCT - tab2.col0 + + CAST( col0 AS SIGNED ) - + col0 FROM tab2
----
-7
-78
-79
skipif mysql # not compatible
query I rowsort label-6768
SELECT DISTINCT - tab2.col0 + + CAST ( col0 AS INTEGER ) - + col0 FROM tab2
----
-7
-78
-79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6769
SELECT DISTINCT + col0 - - CAST( NULL AS SIGNED ) * - col0 * + col0 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-6769
SELECT DISTINCT + col0 - - CAST ( NULL AS INTEGER ) * - col0 * + col0 FROM tab0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-6770
SELECT col0 DIV + col2 AS col1 FROM tab1
----
0
0
1
skipif mysql # not compatible
query I rowsort label-6770
SELECT col0 / + col2 AS col1 FROM tab1
----
0
0
1
query I rowsort
SELECT ALL + col0 * + col0 * ( col0 + - ( 97 ) ) FROM tab2
----
-112338
-115596
-4410
onlyif mysql # use DIV operator for integer division
query I rowsort label-6772
SELECT DISTINCT col0 + - cor0.col2 DIV - col0 FROM tab2 AS cor0
----
10
78
79
skipif mysql # not compatible
query I rowsort label-6772
SELECT DISTINCT col0 + - cor0.col2 / - col0 FROM tab2 AS cor0
----
10
78
79
query I rowsort
SELECT - - cor0.col0 + col0 * + col2 AS col1 FROM tab0 AS cor0
----
70
7387
816
query I rowsort
SELECT DISTINCT - 75 FROM tab2
----
-75
query I rowsort
SELECT DISTINCT + - 9 FROM tab0, tab2, tab0 AS cor0
----
-9
query I rowsort
SELECT 87 FROM tab0, tab1 AS cor0
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64
query I rowsort
SELECT DISTINCT + ( col2 * col0 ) AS col1 FROM tab2
----
189
2028
3002
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 61 col1 FROM tab0
----
61
61
61
onlyif mysql # use DIV operator for integer division
query I rowsort label-6779
SELECT DISTINCT + tab0.col2 DIV col2 AS col2 FROM tab0
----
1
skipif mysql # not compatible
query I rowsort label-6779
SELECT DISTINCT + tab0.col2 / col2 AS col2 FROM tab0
----
1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6780
SELECT DISTINCT + CAST( NULL AS SIGNED ) * cor1.col1 AS col1 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
NULL
skipif mysql # not compatible
query I rowsort label-6780
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * cor1.col1 AS col1 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
NULL
query I rowsort
SELECT - ( col1 ) * tab1.col2 - - col1 FROM tab1
----
-1235
-1378
-560
onlyif mysql # use DIV operator for integer division
query I rowsort label-6782
SELECT col0 DIV + col2 FROM tab0 AS cor0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-6782
SELECT col0 / + col2 FROM tab0 AS cor0
----
0
1
35
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col1 * - col2 + + col1 col2 FROM tab1 AS cor0
----
1261
1430
580
onlyif mysql # use DIV operator for integer division
query I rowsort label-6784
SELECT - ( col1 ) + - ( - col2 ) DIV + col1 FROM tab1
----
-24
-5
-6
skipif mysql # not compatible
query I rowsort label-6784
SELECT - ( col1 ) + - ( - col2 ) / + col1 FROM tab1
----
-24
-5
-6
query I rowsort
SELECT + col1 * cor0.col2 FROM tab1 AS cor0
----
1248
1404
570
onlyif mysql # use DIV operator for integer division
query I rowsort label-6786
SELECT - col0 DIV - col0 FROM tab0 cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-6786
SELECT - col0 / - col0 FROM tab0 cor0
----
1
1
1
query I rowsort
SELECT ALL + col1 - + ( - col1 ) AS col2 FROM tab1 cor0
----
20
26
52
query I rowsort
SELECT ALL - col2 + - cor0.col2 FROM tab2 AS cor0
----
-52
-54
-76
query I rowsort
SELECT DISTINCT 1 + + col0 * col1 * col2 FROM tab0 AS cor0
----
3396
664119
68113
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6790
SELECT + CAST( col1 AS SIGNED ) * - col1 FROM tab2 AS cor0
----
-289
-3481
-961
skipif mysql # not compatible
query I rowsort label-6790
SELECT + CAST ( col1 AS INTEGER ) * - col1 FROM tab2 AS cor0
----
-289
-3481
-961
onlyif mysql # use DIV operator for integer division
query I rowsort label-6791
SELECT ALL - ( + col2 ) DIV + col0 AS col0 FROM tab1 AS cor0
----
-1
-18
0
skipif mysql # not compatible
query I rowsort label-6791
SELECT ALL - ( + col2 ) / + col0 AS col0 FROM tab1 AS cor0
----
-1
-18
0
query I rowsort
SELECT DISTINCT - - 86 AS col0 FROM tab2 AS cor0
----
86
query I rowsort
SELECT ALL col2 * - col0 + 40 FROM tab2
----
-149
-1988
-2962
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - ( cor0.col2 ) col1 FROM tab1 cor0
----
-28
-47
-83
onlyif mysql # use DIV operator for integer division
query I rowsort label-6795
SELECT - col0 * ( - col0 * - col1 ) + col2 DIV - col1 AS col0 FROM tab1 AS cor0
----
-236
-40965
-83207
skipif mysql # not compatible
query I rowsort label-6795
SELECT - col0 * ( - col0 * - col1 ) + col2 / - col1 AS col0 FROM tab1 AS cor0
----
-236
-40965
-83207
query I rowsort
SELECT - 74 AS col2 FROM tab1 AS cor0
----
-74
-74
-74
query I rowsort
SELECT col1 + col0 * col0 AS col2 FROM tab2 cor0
----
6143
6258
80
query I rowsort
SELECT + cor0.col0 FROM tab2, tab0 cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63
query I rowsort
SELECT ALL col0 * col1 * col0 FROM tab2
----
106097
1519
358956
query I rowsort
SELECT - col2 + 27 AS col0 FROM tab2
----
-11
0
1
query I rowsort
SELECT DISTINCT + ( - 25 ) * - col1 FROM tab2 AS cor0
----
1475
425
775
query I rowsort
SELECT ALL - cor0.col2 + + cor0.col2 * col0 FROM tab2 AS cor0
----
162
2002
2964
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 90 * col0 col0 FROM tab0 AS cor0
----
-2160
-3150
-8010
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6804
SELECT ALL + CAST( NULL AS SIGNED ) * - col0 * - col2 AS col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6804
SELECT ALL + CAST ( NULL AS INTEGER ) * - col0 * - col2 AS col2 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL 65 AS col1 FROM tab2
----
65
65
65
query I rowsort
SELECT - 99 * + tab0.col2 AS col2 FROM tab0
----
-3267
-8118
-99
query I rowsort
SELECT ALL - col0 - - col0 * + col2 FROM tab1
----
159
3584
7600
query I rowsort
SELECT + col0 * 13 FROM tab0 AS cor0
----
1157
312
455
query I rowsort
SELECT ALL - + cor0.col0 * 75 + - 11 FROM tab1 AS cor0
----
-236
-4811
-6011
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6810
SELECT DISTINCT + + col1 * CAST( col1 * + col2 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
16224
36504
5700
skipif mysql # not compatible
query I rowsort label-6810
SELECT DISTINCT + + col1 * CAST ( col1 * + col2 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
16224
36504
5700
query I rowsort
SELECT DISTINCT + - col2 * + col2 FROM tab1 AS cor0
----
-2916
-3249
-9216
query I rowsort
SELECT - col2 * - col1 + + col1 FROM tab1 cor0
----
1261
1430
580
query I rowsort
SELECT - 84 + col1 + - ( col2 ) * - col0 AS col2 FROM tab1
----
104
3574
7609
query I rowsort
SELECT DISTINCT + ( + col0 ) * + col1 + ( - col1 ) * tab2.col0 AS col0 FROM tab2
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-6815
SELECT col1 + tab1.col2 DIV - col0 + - 92 AS col2 FROM tab1
----
-80
-82
-84
skipif mysql # not compatible
query I rowsort label-6815
SELECT col1 + tab1.col2 / - col0 + - 92 AS col2 FROM tab1
----
-80
-82
-84
query I rowsort
SELECT DISTINCT + col0 * - col2 + col2 FROM tab0
----
-34
-7216
-759
query I rowsort
SELECT - col2 * col0 + + col1 AS col0 FROM tab1
----
-136
-3638
-7667
query I rowsort
SELECT ALL + tab2.col1 + + col0 * col1 - - col0 AS col1 FROM tab2
----
1439
255
4739
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6819
SELECT col2 + tab2.col0 * CAST( col1 * + col0 AS SIGNED ) - col0 * col0 AS col0 FROM tab2
----
1497
352898
99894
skipif mysql # not compatible
query I rowsort label-6819
SELECT col2 + tab2.col0 * CAST ( col1 * + col0 AS INTEGER ) - col0 * col0 AS col0 FROM tab2
----
1497
352898
99894
query I rowsort
SELECT ALL + tab2.col0 + col0 - ( - tab2.col0 ) FROM tab2
----
21
234
237
query I rowsort
SELECT + col1 + col2 + + col0 FROM tab1
----
131
189
83
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6822
SELECT DISTINCT - col2 + - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-6822
SELECT DISTINCT - col2 + - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
query I rowsort
SELECT - col2 * + col1 + col1 AS col2 FROM tab2
----
-1475
-629
-806
query I rowsort
SELECT DISTINCT 92 AS col2 FROM tab2, tab1 cor0
----
92
query I rowsort
SELECT + col1 * ( col2 ) + - cor0.col2 AS col1 FROM tab2 AS cor0
----
1508
608
810
query I rowsort
SELECT ALL - col2 * col0 AS col1 FROM tab1 cor0
----
-162
-3648
-7680
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6827
SELECT + col1 * CAST( + col0 AS SIGNED ) FROM tab1 AS cor0
----
1040
640
78
skipif mysql # not compatible
query I rowsort label-6827
SELECT + col1 * CAST ( + col0 AS INTEGER ) FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT ALL + + col2 + - col2 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-6829
SELECT ALL - - col1 DIV + col1 AS col0 FROM tab1 cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-6829
SELECT ALL - - col1 / + col1 AS col0 FROM tab1 cor0
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + cor0.col1 col1 FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT col1 * 59 * 66 + - cor0.col2 FROM tab1 AS cor0
----
101190
38883
50526
query I rowsort
SELECT - cor0.col0 + col1 * col2 FROM tab1 AS cor0
----
1168
1401
506
query I rowsort
SELECT ALL col2 * col0 * - col1 + + col0 FROM tab2
----
-119574
-50955
-5852
query I rowsort
SELECT DISTINCT - col2 * - col0 + - col1 AS col2 FROM tab0
----
-62
706
7207
query I rowsort
SELECT + col1 * tab2.col2 AS col2 FROM tab2
----
1534
646
837
query I rowsort
SELECT col1 * + col2 + col0 * col2 * - tab1.col2 AS col0 FROM tab1
----
-207366
-7344
-736032
onlyif mysql # use DIV operator for integer division
query I rowsort label-6837
SELECT - col0 + + col0 DIV + col0 FROM tab0
----
-23
-34
-88
skipif mysql # not compatible
query I rowsort label-6837
SELECT - col0 + + col0 / + col0 FROM tab0
----
-23
-34
-88
query IIIIII rowsort
SELECT * FROM tab1, tab2 cor0 WHERE NOT NULL = ( NULL )
----
query I rowsort
SELECT ALL + tab2.col2 + col0 FROM tab2
----
104
117
34
query I rowsort
SELECT ALL - - col0 + + col1 * cor0.col1 FROM tab0 cor0
----
7420
8370
9444
query I rowsort
SELECT ALL - col0 FROM tab2 cor0 WHERE + col1 BETWEEN + col0 AND NULL OR NULL >= NULL
----
query I rowsort
SELECT ALL + col2 * + col1 AS col0 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT DISTINCT - col2 + col1 * + col1 FROM tab2 AS cor0
----
251
3455
934
query I rowsort
SELECT + col2 * + col1 AS col1 FROM tab2 cor0
----
1534
646
837
query I rowsort
SELECT DISTINCT - - col1 * col1 * cor0.col2 FROM tab1 AS cor0
----
16224
36504
5700
query I rowsort
SELECT - col0 * - col1 + col2 AS col2 FROM tab0 AS cor0
----
2097
3396
8181
query I rowsort
SELECT + col2 + + cor0.col0 * col0 * col1 AS col2 FROM tab2 AS cor0
----
106135
1546
358982
query I rowsort
SELECT - col0 * - col1 + col0 AS col0 FROM tab2 AS cor0
----
1422
224
4680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * - cor0.col2 + - col1 * + col2 col0 FROM tab0 AS cor0
----
-164
-2046
-62
query I rowsort
SELECT ALL + cor0.col1 + - col0 * cor0.col2 AS col1 FROM tab0 AS cor0
----
-706
-7207
62
query I rowsort
SELECT + cor0.col0 * - col2 AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT ALL - cor0.col2 + + col0 AS col0 FROM tab0 AS cor0
----
-9
34
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 91 + col1 * col0 col0 FROM tab2 AS cor0
----
1434
308
4693
query I rowsort
SELECT ALL - 83 AS col0 FROM tab1
----
-83
-83
-83
onlyif mysql # use DIV operator for integer division
query I rowsort label-6855
SELECT ALL + cor0.col2 DIV col1 + + col2 * col0 FROM tab0 AS cor0
----
35
7298
792
skipif mysql # not compatible
query I rowsort label-6855
SELECT ALL + cor0.col2 / col1 + + col2 * col0 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT DISTINCT + + cor0.col1 + col2 + + col2 AS col2 FROM tab2 AS cor0
----
111
85
93
query I rowsort
SELECT DISTINCT + 26 * cor0.col1 + - cor0.col1 * col1 - col1 AS col0 FROM tab2 AS cor0
----
-186
-2006
136
query I rowsort
SELECT ALL 26 + col0 AS col2 FROM tab2 AS cor0
----
104
105
33
query I rowsort
SELECT ALL - - ( - col2 ) - col1 FROM tab0 cor0
----
-119
-173
-98
query I rowsort
SELECT - - col2 * + col2 FROM tab2 cor0
----
1444
676
729
query I rowsort
SELECT ALL + ( - col0 ) * - col2 + col1 * col1 FROM tab0 AS cor0
----
15579
8188
9444
query I rowsort
SELECT ALL + 18 * + cor0.col0 + col0 AS col1 FROM tab0 AS cor0
----
1691
456
665
query I rowsort
SELECT + + col0 * col2 + col2 AS col0 FROM tab0 AS cor0
----
36
7380
825
query I rowsort
SELECT ALL + - col2 + cor0.col1 * col2 FROM tab2 AS cor0
----
1508
608
810
query I rowsort
SELECT DISTINCT col1 * - col1 - - col0 AS col2 FROM tab0 AS cor0
----
-7372
-8192
-9374
query I rowsort
SELECT DISTINCT ( + col0 ) FROM tab0 cor0
----
24
35
89
query I rowsort
SELECT - col0 * cor0.col0 + col0 * cor0.col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + - col1 + - col2 * col0 AS col2 FROM tab2 AS cor0
----
-2087
-220
-3019
query I rowsort
SELECT DISTINCT - col2 * + col0 + + col2 FROM tab1 AS cor0
----
-108
-3591
-7584
query I rowsort
SELECT - - col2 * col1 + cor0.col0 * + cor0.col2 FROM tab0 AS cor0
----
132
14760
3630
query I rowsort
SELECT - + col1 * cor0.col1 AS col2 FROM tab1 AS cor0
----
-100
-169
-676
query I rowsort
SELECT ALL col2 * + col1 - + col0 AS col2 FROM tab2
----
1456
567
830
onlyif mysql # use DIV operator for integer division
query I rowsort label-6873
SELECT col2 * + col2 + tab1.col1 DIV col2 + - col2 col2 FROM tab1
----
2862
3192
9120
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6873
SELECT col2 * + col2 + tab1.col1 / col2 + - col2 col2 FROM tab1
----
2862
3192
9120
query I rowsort
SELECT - cor1.col0 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0
onlyif mysql # use DIV operator for integer division
query I rowsort label-6875
SELECT + + col2 DIV - col2 + - col2 AS col0 FROM tab0 cor0
----
-2
-34
-83
skipif mysql # not compatible
query I rowsort label-6875
SELECT + + col2 / - col2 + - col2 AS col0 FROM tab0 cor0
----
-2
-34
-83
query I rowsort
SELECT - col2 + - col2 + - col0 AS col0 FROM tab2
----
-130
-155
-61
onlyif mysql # use DIV operator for integer division
query I rowsort label-6877
SELECT + 28 + + col1 DIV + col2 + col1 FROM tab1
----
38
41
54
skipif mysql # not compatible
query I rowsort label-6877
SELECT + 28 + + col1 / + col2 + col1 FROM tab1
----
38
41
54
query I rowsort
SELECT + - cor0.col1 - col2 FROM tab2 cor0
----
-55
-58
-85
query I rowsort
SELECT + cor0.col1 * + col1 + 23 * 36 * + col0 + + ( - col2 ) AS col1 FROM tab1 AS cor0
----
3106
53035
66313
query I rowsort
SELECT + + col1 + col2 - + 84 AS col2 FROM tab2 AS cor0
----
-26
-29
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( tab0.col1 ) col2 FROM tab0
----
86
91
97
query I rowsort
SELECT + 48 + - cor0.col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 98a939348e6ba5ea6c22e9d6ac2fde9f
query I rowsort
SELECT ALL 49 + - cor0.col0 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to cba8a5ce0322442a5fac947de3119af6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 col2 FROM tab2 AS cor0
----
17
31
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-6885
SELECT DISTINCT + - col0 * col0 DIV - 71 AS col0 FROM tab2 AS cor0
----
0
85
87
skipif mysql # not compatible
query I rowsort label-6885
SELECT DISTINCT + - col0 * col0 / - 71 AS col0 FROM tab2 AS cor0
----
0
85
87
query I rowsort
SELECT - - ( - col0 ) * + col1 + col1 AS col0 FROM tab0 AS cor0
----
-1978
-3298
-8008
query I rowsort
SELECT ( - 58 ) * + col1 * + 15 AS col2 FROM tab2
----
-14790
-26970
-51330
query I rowsort
SELECT ( 50 + col0 ) * - col1 AS col1 FROM tab0
----
-12649
-6364
-8245
query I rowsort
SELECT + col0 * + col1 + col2 * - col0 FROM tab2 AS cor0
----
-1659
2574
28
query I rowsort
SELECT - cor0.col0 * cor0.col0 + cor0.col2 FROM tab0 AS cor0
----
-1224
-543
-7839
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 96 col1 FROM tab1, tab1 AS cor0, tab0 cor1
----
96
query I rowsort
SELECT ALL + 77 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6893
SELECT DISTINCT - col2 + + CAST( col2 AS SIGNED ) FROM tab2 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-6893
SELECT DISTINCT - col2 + + CAST ( col2 AS INTEGER ) FROM tab2 AS cor0
----
0
query I rowsort
SELECT ALL - - col0 * cor0.col0 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT + 30 FROM tab1, tab0 AS cor0
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89
query I rowsort
SELECT 17 * 9 AS col1 FROM tab1
----
153
153
153
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6897
SELECT + - CAST( + col0 AS SIGNED ) * - col2 * cor0.col0 AS col0 FROM tab1 AS cor0
----
233472
486
614400
skipif mysql # not compatible
query I rowsort label-6897
SELECT + - CAST ( + col0 AS INTEGER ) * - col2 * cor0.col0 AS col0 FROM tab1 AS cor0
----
233472
486
614400
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6898
SELECT - CAST( + col2 AS SIGNED ) + col1 / CAST( NULL AS SIGNED ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6898
SELECT - CAST ( + col2 AS INTEGER ) + col1 / CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - cor0.col1 * + col2 col1 FROM tab1 AS cor0
----
-1328
-1407
-634
query I rowsort
SELECT + - 52 * 72 FROM tab2 cor0
----
-3744
-3744
-3744
query I rowsort
SELECT cor0.col2 + + col0 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT + 28 * + 34 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to fa4f35dfa461373d42fe60a74729acd0
query I rowsort
SELECT DISTINCT + 77 FROM tab0 AS cor0
----
77
onlyif mysql # use DIV operator for integer division
query I rowsort label-6904
SELECT ( + col0 * + col1 ) + col0 DIV + tab2.col0 AS col0 FROM tab2
----
1344
218
4603
skipif mysql # not compatible
query I rowsort label-6904
SELECT ( + col0 * + col1 ) + col0 / + tab2.col0 AS col0 FROM tab2
----
1344
218
4603
query I rowsort
SELECT ALL + col1 + col0 * col1 FROM tab1 AS cor0
----
104
1053
650
query I rowsort
SELECT - - 64 + col2 * col0 AS col0 FROM tab0 AS cor0
----
7362
856
99
query I rowsort
SELECT ALL cor0.col1 * - cor1.col1 FROM tab2, tab1 cor0, tab0 AS cor1
----
27 values hashing to a6a7a6a47aff0e8ed0e5d5e78cd4092b
query I rowsort
SELECT ALL col1 + 46 AS col2 FROM tab0
----
132
137
143
query I rowsort
SELECT DISTINCT col2 + - 17 FROM tab2
----
10
21
9
query I rowsort
SELECT ALL - col0 * + ( + 88 ) + col2 AS col1 FROM tab2 AS cor0
----
-589
-6838
-6914
query I rowsort
SELECT + + col0 + 44 AS col2 FROM tab0 AS cor0
----
133
68
79
query I rowsort
SELECT ALL cor0.col1 * + col1 AS col1 FROM tab0 AS cor0
----
7396
8281
9409
onlyif mysql # use DIV operator for integer division
query I rowsort label-6913
SELECT - col2 + + 53 * + 0 DIV + col0 AS col0 FROM tab2 AS cor0
----
-26
-27
-38
skipif mysql # not compatible
query I rowsort label-6913
SELECT - col2 + + 53 * + 0 / + col0 AS col0 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT ALL col1 * col2 + col0 AS col1 FROM tab1 cor0
----
1328
1407
634
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6915
SELECT DISTINCT + CAST( col0 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
7
78
79
skipif mysql # not compatible
query I rowsort label-6915
SELECT DISTINCT + CAST ( col0 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT ALL + 73 + + ( + cor0.col0 + + col0 ) * col1 AS col1 FROM tab0 AS cor0
----
16271
4201
6863
query I rowsort
SELECT ALL ( col2 ) + col2 + - 98 AS col2 FROM tab2 AS cor0
----
-22
-44
-46
query I rowsort
SELECT DISTINCT + cor0.col2 * 10 AS col0 FROM tab0 AS cor0
----
10
330
820
query I rowsort
SELECT DISTINCT - col2 - + 34 FROM tab2 AS cor0
----
-60
-61
-72
query I rowsort
SELECT ALL tab2.col0 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
query I rowsort
SELECT col2 * + 6 FROM tab1
----
324
342
576
query I rowsort
SELECT ALL + + col0 * ( - col2 ) + + col2 FROM tab2 cor0
----
-162
-2002
-2964
query I rowsort
SELECT - col2 + ( - col2 ) AS col2 FROM tab2 cor0
----
-52
-54
-76
query I rowsort
SELECT ALL + ( - 6 ) FROM tab2, tab1 AS cor0
----
9 values hashing to e92b2679faac7be63701967e3f0c0934
query I rowsort
SELECT ALL tab2.col2 + col2 FROM tab2
----
52
54
76
onlyif mysql # use DIV operator for integer division
query I rowsort label-6926
SELECT ALL + + col2 DIV - ( + ( + col1 ) ) FROM tab2 AS cor0
----
-2
0
0
skipif mysql # not compatible
query I rowsort label-6926
SELECT ALL + + col2 / - ( + ( + col1 ) ) FROM tab2 AS cor0
----
-2
0
0
query I rowsort
SELECT DISTINCT + - col2 * - col0 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT col1 - + col0 AS col1 FROM tab2 cor0
----
-19
-62
24
query I rowsort
SELECT ALL + 41 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 col0 FROM tab1 cor0
----
3
64
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 * - 8 + - col0 col0 FROM tab0 AS cor0
----
-27
240
567
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + col1 col1 FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT - + col1 * col1 + col1 AS col0 FROM tab1 AS cor0
----
-156
-650
-90
query I rowsort
SELECT ALL 37 FROM tab0, tab0 AS cor0
----
9 values hashing to a10b03e72860b949bdff53827700a9a8
query I rowsort
SELECT - + ( col0 ) AS col2 FROM tab2 AS cor0
----
-7
-78
-79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6936
SELECT ALL - ( - 23 ) / cor0.col2 + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6936
SELECT ALL - ( - 23 ) / cor0.col2 + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6937
SELECT + + CAST( NULL AS DECIMAL ) * col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6937
SELECT + + CAST ( NULL AS REAL ) * col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + col2 * - col2 + + col0 AS col1 FROM tab2 cor0
----
-1365
-598
-722
onlyif mysql # use DIV operator for integer division
query I rowsort label-6939
SELECT DISTINCT + cor0.col1 DIV 26 AS col0 FROM tab2 AS cor0
----
0
1
2
skipif mysql # not compatible
query I rowsort label-6939
SELECT DISTINCT + cor0.col1 / 26 AS col0 FROM tab2 AS cor0
----
0
1
2
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6940
SELECT ALL + CAST( 9 AS SIGNED ) col2 FROM tab2 AS cor0
----
9
9
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6940
SELECT ALL + CAST ( 9 AS INTEGER ) col2 FROM tab2 AS cor0
----
9
9
9
query I rowsort
SELECT ALL col0 * + 51 + + col1 * cor0.col1 FROM tab0 cor0
----
11194
12820
8620
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 - - cor0.col2 * + cor0.col1 col1 FROM tab1 AS cor0
----
1344
1458
627
query I rowsort
SELECT DISTINCT ( - col0 ) AS col2 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT DISTINCT 94 * + cor0.col1 FROM tab0 AS cor0
----
8084
8554
9118
query I rowsort
SELECT ALL + ( + 44 ) AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d
query I rowsort
SELECT DISTINCT + col2 + 5 AS col0 FROM tab1
----
101
59
62
query I rowsort
SELECT DISTINCT + col1 + - tab0.col1 AS col0 FROM tab0
----
0
query I rowsort
SELECT ALL col0 + - 54 AS col2 FROM tab1
----
-51
10
26
query I rowsort
SELECT + col0 + + tab0.col2 AS col2 FROM tab0
----
171
36
57
query I rowsort
SELECT ALL col1 * col2 + - col0 + cor0.col1 AS col0 FROM tab0 AS cor0
----
159
2900
7464
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 * col1 col0 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT ALL + 99 AS col2 FROM tab1 cor0
----
99
99
99
query I rowsort
SELECT - 70 * col2 - - col0 AS col1 FROM tab0 AS cor0
----
-2286
-35
-5651
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + col2 * - col1 col0 FROM tab0 AS cor0
----
-2752
-7371
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 46 + col1 col2 FROM tab1 AS cor0
----
-20
-33
-36
query I rowsort
SELECT + - col0 * col1 - - col0 AS col0 FROM tab2 AS cor0
----
-1264
-210
-4524
onlyif mysql # use DIV operator for integer division
query I rowsort label-6957
SELECT ALL - - cor0.col2 DIV + col0 col1 FROM tab1 cor0
----
0
1
18
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6957
SELECT ALL - - cor0.col2 / + col0 col1 FROM tab1 cor0
----
0
1
18
onlyif mysql # use DIV operator for integer division
query I rowsort label-6958
SELECT + 32 DIV - col0 + + cor0.col1 * 94 + + col0 FROM tab0 AS cor0
----
8107
8643
9153
skipif mysql # not compatible
query I rowsort label-6958
SELECT + 32 / - col0 + + cor0.col1 * 94 + + col0 FROM tab0 AS cor0
----
8107
8643
9153
query I rowsort
SELECT ALL 29 AS col2 FROM tab2 AS cor0
----
29
29
29
query I rowsort
SELECT DISTINCT + col0 * cor0.col2 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT ALL + tab0.col1 FROM tab0, tab2 cor0, tab2 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT ALL ( col2 ) * tab0.col1 * - col0 AS col2 FROM tab0
----
-3395
-664118
-68112
query I rowsort
SELECT + ( + 7 ) FROM tab2
----
7
7
7
query I rowsort
SELECT tab1.col0 * - col2 * + col0 + 38 FROM tab1
----
-233434
-448
-614362
query I rowsort
SELECT + 76 * - col0 AS col0 FROM tab0 AS cor0
----
-1824
-2660
-6764
onlyif mysql # use DIV operator for integer division
query I rowsort label-6966
SELECT DISTINCT + col1 DIV col0 FROM tab1 AS cor0
----
0
8
skipif mysql # not compatible
query I rowsort label-6966
SELECT DISTINCT + col1 / col0 FROM tab1 AS cor0
----
0
8
query I rowsort
SELECT ALL + + col0 * col1 AS col0 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT 90 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 96f7a90428db93f472e0d219bab64853
query I rowsort
SELECT + - 27 - col1 * col2 AS col1 FROM tab0 AS cor0
----
-124
-2865
-7489
query I rowsort
SELECT + + col2 * - 20 + 4 * col0 FROM tab0 AS cor0
----
-1284
-564
120
query I rowsort
SELECT - col0 * - col2 + - col0 FROM tab1 AS cor0
----
159
3584
7600
query I rowsort
SELECT - col1 * 71 - - col1 AS col0 FROM tab1 AS cor0
----
-1820
-700
-910
query I rowsort
SELECT + col1 + ( + col0 ) AS col0 FROM tab1 AS cor0
----
29
74
93
onlyif mysql # use DIV operator for integer division
query I rowsort label-6974
SELECT DISTINCT - ( col0 ) DIV + col1 AS col1 FROM tab2
----
-1
-4
0
skipif mysql # not compatible
query I rowsort label-6974
SELECT DISTINCT - ( col0 ) / + col1 AS col1 FROM tab2
----
-1
-4
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col1 * - 95 col2 FROM tab0, tab1 AS cor0
----
9 values hashing to b2ca14db3ddffaa41bf0f3bad34538bb
query I rowsort
SELECT 99 AS col2 FROM tab0
----
99
99
99
query I rowsort
SELECT - ( - cor0.col1 ) FROM tab0, tab2 AS cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272
query I rowsort
SELECT DISTINCT - tab0.col1 FROM tab0, tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT - col2 * + 72 + 87 + col0 FROM tab1 AS cor0
----
-3798
-3953
-6745
query I rowsort
SELECT - col0 + ( - 67 ) FROM tab2 AS cor0
----
-145
-146
-74
query I rowsort
SELECT ALL - cor0.col0 * ( col1 ) AS col0 FROM tab1 AS cor0
----
-1040
-640
-78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + col2 + cor0.col2 * - col0 col0 FROM tab2 AS cor0
----
-169
-2080
-3043
query I rowsort
SELECT - col0 + + col2 - + col1 * col0 AS col2 FROM tab1 AS cor0
----
-1024
-27
-647
query I rowsort
SELECT ALL - + col2 * cor0.col0 * + 26 FROM tab0 AS cor0
----
-189748
-20592
-910
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6985
SELECT ALL col0 * - CAST( + col0 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-1225
-576
-7921
skipif mysql # not compatible
query I rowsort label-6985
SELECT ALL col0 * - CAST ( + col0 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-1225
-576
-7921
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6986
SELECT DISTINCT + col1 * + CAST( - col1 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-100
-169
-676
skipif mysql # not compatible
query I rowsort label-6986
SELECT DISTINCT + col1 * + CAST ( - col1 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-100
-169
-676
query I rowsort
SELECT DISTINCT + 75 AS col1 FROM tab1
----
75
query I rowsort
SELECT ALL + ( cor0.col0 ) + col1 FROM tab2 AS cor0
----
137
38
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-6989
SELECT DISTINCT - col1 DIV 40 + + col2 FROM tab0 cor0
----
-1
31
80
skipif mysql # not compatible
query I rowsort label-6989
SELECT DISTINCT - col1 / 40 + + col2 FROM tab0 cor0
----
-1
31
80
query I rowsort
SELECT ALL + col0 * 92 + col1 AS col1 FROM tab2 AS cor0
----
675
7235
7285
query I rowsort
SELECT + cor0.col0 * ( col0 + + 94 ) FROM tab1 AS cor0
----
10112
13920
291
query I rowsort
SELECT ALL + col2 * + col1 - - col1 AS col1 FROM tab1 AS cor0
----
1261
1430
580
query I rowsort
SELECT ALL + - col2 * col1 AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT ALL + col1 + - col0 * + col0 FROM tab0 AS cor0
----
-1128
-490
-7830
query I rowsort
SELECT 19 AS col1 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 86c53e8567a17c8d91fc5aff119e0498
query I rowsort
SELECT DISTINCT - 66 AS col2 FROM tab0 AS cor0
----
-66
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - cor0.col1 + col0 col1 FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT DISTINCT - cor0.col1 * - col0 - - 69 * + 81 FROM tab1 AS cor0
----
5667
6229
6629
query I rowsort
SELECT + - 27 AS col1 FROM tab1 AS cor0
----
-27
-27
-27
query I rowsort
SELECT - - 62 FROM tab2 AS cor0
----
62
62
62
query I rowsort
SELECT ALL + ( - tab0.col0 * col0 + col2 ) FROM tab0
----
-1224
-543
-7839
query I rowsort
SELECT ALL - - col1 * - cor0.col1 * 58 AS col0 FROM tab0 AS cor0
----
-428968
-480298
-545722
query I rowsort
SELECT ALL + ( + cor0.col0 ) FROM tab1 cor0
----
3
64
80
query I rowsort
SELECT ALL + col0 * + tab0.col1 + col0 FROM tab0
----
2088
3430
8188
query I rowsort
SELECT ALL + tab1.col0 FROM tab1 WHERE NOT NULL NOT IN ( - tab1.col2 + col0 )
----
query I rowsort
SELECT DISTINCT + col0 * + col2 + + col0 FROM tab0
----
70
7387
816
query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 NOT BETWEEN ( NULL ) AND col2 * col2 * + col2 - - col2
----
query I rowsort
SELECT DISTINCT - col0 + col0 * col2 * + col0 AS col2 FROM tab1
----
233408
483
614320
query I rowsort
SELECT col1 + tab0.col2 + col2 * col2 FROM tab0
----
1208
6897
99
onlyif mysql # use DIV operator for integer division
query I rowsort label-7010
SELECT DISTINCT - col1 DIV tab0.col1 AS col2 FROM tab0
----
-1
skipif mysql # not compatible
query I rowsort label-7010
SELECT DISTINCT - col1 / tab0.col1 AS col2 FROM tab0
----
-1
onlyif mysql # use DIV operator for integer division
query I rowsort label-7011
SELECT DISTINCT + col2 DIV - col0 FROM tab2
----
-3
0
skipif mysql # not compatible
query I rowsort label-7011
SELECT DISTINCT + col2 / - col0 FROM tab2
----
-3
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab0.col2 * - col0 col1 FROM tab0
----
35
7298
792
query I rowsort
SELECT col0 + - col2 AS col1 FROM tab0
----
-9
34
7
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL IN ( col1 * - col0 + col2 * col0 )
----
query I rowsort
SELECT ALL - col1 + tab2.col2 FROM tab2
----
-33
-4
21
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col0 col1 FROM tab0
----
35
7298
792
query I rowsort
SELECT ALL col2 + col1 * tab0.col1 AS col1 FROM tab0
----
7429
8363
9410
query I rowsort
SELECT + col1 + col2 * col2 - - col2 FROM tab2
----
1499
761
787
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 38 - col1 col0 FROM tab0 AS cor0
----
-124
-129
-135
query I rowsort
SELECT ALL + col0 * col2 + - col2 FROM tab2 WHERE col1 <> NULL
----
query I rowsort
SELECT - - 60 + col2 FROM tab0 AS cor0
----
142
61
93
query I rowsort
SELECT + 43 * - col0 FROM tab2 cor0
----
-301
-3354
-3397
query I rowsort
SELECT + col0 * - col2 * col0 + + col1 * - col2 FROM tab2 AS cor0
----
-159718
-2160
-237804
query I rowsort
SELECT DISTINCT - + 67 * - cor0.col2 + - col1 AS col0 FROM tab0 AS cor0
----
-30
2125
5403
query I rowsort
SELECT + col1 + + col1 + 17 FROM tab0 AS cor0
----
189
199
211
onlyif mysql # use DIV operator for integer division
query I rowsort label-7026
SELECT col2 DIV col1 + - col2 AS col1 FROM tab1
----
-52
-52
-89
skipif mysql # not compatible
query I rowsort label-7026
SELECT col2 / col1 + - col2 AS col1 FROM tab1
----
-52
-52
-89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 - - col0 col1 FROM tab1
----
128
160
6
query I rowsort
SELECT DISTINCT + col2 / - col2 AS col0 FROM tab2 WHERE col0 <> col0
----
query I rowsort
SELECT + col2 + col1 * col0 AS col1 FROM tab1
----
1136
132
697
query I rowsort
SELECT - col0 + col2 * col1 * - col2 FROM tab1
----
-119888
-32554
-75819
query I rowsort
SELECT - col0 * - col1 + - col0 AS col0 FROM tab2
----
1264
210
4524
query I rowsort
SELECT DISTINCT col2 * + col0 * col2 AS col2 FROM tab0
----
26136
35
598436
query I rowsort
SELECT col2 * + col1 + col1 * - col1 * + col0 FROM tab1
----
-12272
-5830
-624
query I rowsort
SELECT col1 * col0 FROM tab0 WHERE NOT ( NULL ) <> + col0 / col1
----
query I rowsort
SELECT ALL col2 * col1 + tab0.col2 FROM tab0
----
2871
7544
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-7036
SELECT DISTINCT col1 DIV + col1 + col1 FROM tab2
----
18
32
60
skipif mysql # not compatible
query I rowsort label-7036
SELECT DISTINCT col1 / + col1 + col1 FROM tab2
----
18
32
60
query I rowsort
SELECT col2 FROM tab0 WHERE NULL <= NULL
----
query I rowsort
SELECT col0 + - tab2.col2 * col1 * - col0 FROM tab2
----
119730
51113
5866
query I rowsort
SELECT DISTINCT - tab1.col0 + tab1.col1 AS col2 FROM tab1
----
-54
-67
23
query I rowsort
SELECT ALL + col0 + + col0 * col0 * + col1 AS col1 FROM tab2
----
106176
1526
359034
query I rowsort
SELECT col2 + - col1 * col1 AS col1 FROM tab0
----
-7363
-8199
-9408
query I rowsort
SELECT ALL col2 + + col0 * tab2.col1 AS col2 FROM tab2
----
1381
244
4628
query I rowsort
SELECT tab0.col1 + - col1 FROM tab0
----
0
0
0
query I rowsort
SELECT ALL - col2 * - 48 AS col2 FROM tab1 AS cor0
----
2592
2736
4608
query I rowsort
SELECT 21 FROM tab0, tab2 AS cor0
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7
query I rowsort
SELECT + cor1.col0 FROM tab1 AS cor0 CROSS JOIN tab2, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT ALL + 48 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b
query I rowsort
SELECT + cor0.col1 * + 32 FROM tab0 cor0
----
2752
2912
3104
query I rowsort
SELECT ALL ( col0 ) * col2 FROM tab0
----
35
7298
792
onlyif mysql # use DIV operator for integer division
query I rowsort label-7050
SELECT - col2 DIV - 65 FROM tab2 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7050
SELECT - col2 / - 65 FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT ALL ( col1 ) + cor0.col0 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT DISTINCT - + 1 FROM tab1 cor0
----
-1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7053
SELECT + CAST( 60 AS SIGNED ) * cor0.col2 * 68 col0 FROM tab0 AS cor0
----
134640
334560
4080
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7053
SELECT + CAST ( 60 AS INTEGER ) * cor0.col2 * 68 col0 FROM tab0 AS cor0
----
134640
334560
4080
onlyif mysql # use DIV operator for integer division
query I rowsort label-7054
SELECT - ( 46 ) DIV cor0.col0 AS col1 FROM tab1 AS cor0
----
-15
0
0
skipif mysql # not compatible
query I rowsort label-7054
SELECT - ( 46 ) / cor0.col0 AS col1 FROM tab1 AS cor0
----
-15
0
0
query I rowsort
SELECT DISTINCT + ( col1 ) * cor0.col0 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT - 2 AS col1 FROM tab2 cor0
----
-2
-2
-2
onlyif mysql # use DIV operator for integer division
query I rowsort label-7057
SELECT DISTINCT - col2 * col1 DIV - col2 FROM tab1 AS cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-7057
SELECT DISTINCT - col2 * col1 / - col2 FROM tab1 AS cor0
----
10
13
26
onlyif mysql # use DIV operator for integer division
query I rowsort label-7058
SELECT - 7 + col2 DIV + cor0.col1 FROM tab1 AS cor0
----
-2
-5
0
skipif mysql # not compatible
query I rowsort label-7058
SELECT - 7 + col2 / + cor0.col1 FROM tab1 AS cor0
----
-2
-5
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7059
SELECT 28 + tab2.col0 * col2 + + ( col1 * - CAST( col1 AS SIGNED ) ) AS col2 FROM tab2
----
-1425
-744
2741
skipif mysql # not compatible
query I rowsort label-7059
SELECT 28 + tab2.col0 * col2 + + ( col1 * - CAST ( col1 AS INTEGER ) ) AS col2 FROM tab2
----
-1425
-744
2741
onlyif mysql # use DIV operator for integer division
query I rowsort label-7060
SELECT DISTINCT + col1 + col1 DIV ( ( col2 ) + col2 ) AS col0 FROM tab0
----
145
87
91
skipif mysql # not compatible
query I rowsort label-7060
SELECT DISTINCT + col1 + col1 / ( ( col2 ) + col2 ) AS col0 FROM tab0
----
145
87
91
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7061
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col0 FROM tab1, tab1 cor0, tab0 AS cor1
----
NULL
skipif mysql # not compatible
query I rowsort label-7061
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col0 FROM tab1, tab1 cor0, tab0 AS cor1
----
NULL
query I rowsort
SELECT col1 * col2 * col2 AS col1 FROM tab2
----
22599
24548
39884
query I rowsort
SELECT + 31 AS col1 FROM tab1 AS cor0
----
31
31
31
query I rowsort
SELECT col1 + - col1 + col1 AS col2 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT + - col2 * + col0 + + 51 FROM tab1 AS cor0
----
-111
-3597
-7629
query I rowsort
SELECT + + cor0.col2 * col0 * + 88 FROM tab1 AS cor0
----
14256
321024
675840
query I rowsort
SELECT + - cor0.col0 + + col0 AS col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - col1 + col0 * - col2 + - col1 AS col1 FROM tab1 AS cor0
----
-214
-3668
-7706
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + 60 col0 FROM tab1 cor0
----
34
47
50
query I rowsort
SELECT DISTINCT cor0.col0 + + ( - col1 ) + cor0.col2 * col1 FROM tab2 AS cor0
----
1553
708
813
query I rowsort
SELECT ALL col1 + - col2 AS col1 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT + + col2 + cor0.col2 AS col0 FROM tab0 AS cor0
----
164
2
66
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7073
SELECT DISTINCT - - col2 * + CAST( NULL AS SIGNED ) + col1 AS col1 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7073
SELECT DISTINCT - - col2 * + CAST ( NULL AS INTEGER ) + col1 AS col1 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT ALL col2 * + ( 42 ) + col2 AS col1 FROM tab1 AS cor0
----
2322
2451
4128
query I rowsort
SELECT DISTINCT - col1 + col1 + col0 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT ( - ( - cor0.col2 ) ) * col0 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT 67 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to eea8a0738728ea55e4e7ba1506c9905a
query I rowsort
SELECT + - col1 + col0 AS col1 FROM tab2 AS cor0
----
-24
19
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - cor0.col2 col0 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT - cor0.col2 AS col1 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6
query I rowsort
SELECT DISTINCT - 65 AS col1 FROM tab2 AS cor0
----
-65
query I rowsort
SELECT DISTINCT + + cor0.col2 + - col2 AS col2 FROM tab2 AS cor0
----
0
query I rowsort
SELECT + 88 * - col2 + - 72 FROM tab1 AS cor0
----
-4824
-5088
-8520
onlyif mysql # use DIV operator for integer division
query I rowsort label-7084
SELECT - + ( - col0 ) + + col1 DIV + col0 FROM tab2 AS cor0
----
11
78
79
skipif mysql # not compatible
query I rowsort label-7084
SELECT - + ( - col0 ) + + col1 / + col0 FROM tab2 AS cor0
----
11
78
79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * col1 col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT ALL col1 * + ( + col1 * + col1 ) FROM tab2
----
205379
29791
4913
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7087
SELECT DISTINCT + col2 / + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-7087
SELECT DISTINCT + col2 / + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
query I rowsort
SELECT DISTINCT - + col2 + 16 * - col0 * + col1 FROM tab1 AS cor0
----
-10297
-1302
-16736
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * ( - col2 ) col0 FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT ALL + + col2 - col2 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT ALL + col2 * ( - cor0.col2 ) - col1 AS col2 FROM tab1 AS cor0
----
-2942
-3259
-9229
query I rowsort
SELECT DISTINCT - - cor0.col0 + col2 AS col2 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT ALL col2 * ( col0 ) + col2 FROM tab0 cor0
----
36
7380
825
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + cor0.col1 + - col0 col1 FROM tab0 cor0
----
2
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 2 + + col1 col0 FROM tab2 AS cor0
----
19
33
61
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7096
SELECT ALL - + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7096
SELECT ALL - + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + cor0.col1 + 26 AS col2 FROM tab1 AS cor0
----
36
39
52
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 33 col0 FROM tab2 AS cor0
----
-33
-33
-33
query I rowsort
SELECT + - 29 + + col0 AS col0 FROM tab0 AS cor0
----
-5
6
60
query I rowsort
SELECT ALL + + 83 * col2 FROM tab1 AS cor0
----
4482
4731
7968
query I rowsort
SELECT - col1 * 3 * + col2 FROM tab2 cor0
----
-1938
-2511
-4602
query I rowsort
SELECT DISTINCT - + 58 * + 54 + + col2 AS col1 FROM tab1 AS cor0
----
-3036
-3075
-3078
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( cor0.col1 ) + + col2 col1 FROM tab1 AS cor0
----
109
67
80
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + + CAST ( - col0 AS REAL ) * col1 + col1 * cor0.col1 + col0 FROM tab2 cor0
----
-1043
-975
751
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7105
SELECT CAST( - cor0.col1 AS SIGNED ) + col0 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-7105
SELECT CAST ( - cor0.col1 AS INTEGER ) + col0 col0 FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT ALL col1 + - col0 * + cor0.col2 * + col2 + - col2 FROM tab1 AS cor0
----
-207983
-737363
-8776
query I rowsort
SELECT DISTINCT + ( - 6 ) - col2 AS col2 FROM tab1 AS cor0
----
-102
-60
-63
query I rowsort
SELECT DISTINCT 48 * - col0 FROM tab2 AS cor0
----
-336
-3744
-3792
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7109
SELECT + CAST( NULL AS SIGNED ) / + cor0.col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7109
SELECT + CAST ( NULL AS INTEGER ) / + cor0.col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7110
SELECT ALL CAST( ( - col1 ) AS SIGNED ) * 89 * - ( cor0.col1 ) FROM tab0 cor0
----
658244
737009
837401
skipif mysql # not compatible
query I rowsort label-7110
SELECT ALL CAST ( ( - col1 ) AS INTEGER ) * 89 * - ( cor0.col1 ) FROM tab0 cor0
----
658244
737009
837401
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 94 + col0 col0 FROM tab1 AS cor0
----
-14
-30
-91
query I rowsort
SELECT + 44 + - 6 FROM tab0 AS cor0
----
38
38
38
query I rowsort
SELECT ALL - 98 FROM tab2 cor0
----
-98
-98
-98
query I rowsort
SELECT ALL col0 + ( + col0 ) AS col2 FROM tab2 AS cor0
----
14
156
158
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7115
SELECT ALL CAST( - col2 AS SIGNED ) FROM tab2
----
-26
-27
-38
skipif mysql # not compatible
query I rowsort label-7115
SELECT ALL CAST ( - col2 AS INTEGER ) FROM tab2
----
-26
-27
-38
query I rowsort
SELECT + ( + 53 ) FROM tab0
----
53
53
53
query I rowsort
SELECT ALL - 21 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 631fbd1fd929405aba54a22c2a06c757
onlyif mysql # use DIV operator for integer division
query I rowsort label-7118
SELECT ALL + + CAST( + ( - col2 ) AS SIGNED ) DIV 48 AS col1 FROM tab0 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-7118
SELECT ALL + + CAST ( + ( - col2 ) AS INTEGER ) / 48 AS col1 FROM tab0 AS cor0
----
-1
0
0
query I rowsort
SELECT - col1 * 9 FROM tab0 AS cor0
----
-774
-819
-873
query I rowsort
SELECT - + col2 * - cor0.col2 AS col2 FROM tab1 cor0
----
2916
3249
9216
query I rowsort
SELECT - tab0.col1 + - col0 AS col2 FROM tab0
----
-110
-132
-180
query I rowsort
SELECT 6 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821
query I rowsort
SELECT + ( 11 ) AS col1 FROM tab1
----
11
11
11
query I rowsort
SELECT ALL 91 FROM tab0
----
91
91
91
query I rowsort
SELECT - col2 * 60 + col0 * + col1 AS col1 FROM tab2 AS cor0
----
-1403
-937
3042
query I rowsort
SELECT + col2 * ( + col1 ) FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT DISTINCT - col1 * + 7 AS col1 FROM tab0 AS cor0
----
-602
-637
-679
query I rowsort
SELECT - col1 * ( - col1 ) AS col1 FROM tab1 cor0
----
100
169
676
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7129
SELECT - col1 * CAST( - col1 AS SIGNED ) FROM tab2 AS cor0
----
289
3481
961
skipif mysql # not compatible
query I rowsort label-7129
SELECT - col1 * CAST ( - col1 AS INTEGER ) FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT + + col2 * + col0 AS col2 FROM tab1 cor0
----
162
3648
7680
query I rowsort
SELECT ALL - ( col0 ) + - ( col2 + - tab1.col2 ) * ( col0 ) FROM tab1
----
-3
-64
-80
query I rowsort
SELECT - 5 * col2 + + col2 FROM tab2
----
-104
-108
-152
query I rowsort
SELECT ALL - 39 + + col0 FROM tab2
----
-32
39
40
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 73 + + col2 + - 26 col2 FROM tab1
----
-3
-42
-45
query I rowsort
SELECT + col0 + + col0 * col2 FROM tab2
----
196
2106
3081
query I rowsort
SELECT - tab1.col1 + - col0 FROM tab1
----
-29
-74
-93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + col1 col1 FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT ALL - col1 * 53 * - col0 FROM tab0 AS cor0
----
109392
179935
429247
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - col2 * col2 + col2 * col2 col1 FROM tab0 AS cor0
----
-605160
-92565
-96
query I rowsort
SELECT ALL col1 * + ( col1 ) AS col2 FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT ALL + + 45 + cor0.col0 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cadf3627e3994f7a3c46da5a8c78e3c8
query I rowsort
SELECT DISTINCT - tab2.col1 AS col2 FROM tab2, tab2 AS cor0
----
-17
-31
-59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 78 col1 FROM tab1
----
78
78
78
query I rowsort
SELECT DISTINCT - 8 AS col2 FROM tab0
----
-8
query I rowsort
SELECT + 56 * cor1.col1 AS col0 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 8ed4e41eaf7ed4285a69d2d0173faa2a
query I rowsort
SELECT ( - col1 ) + - 23 AS col1 FROM tab2 AS cor0
----
-40
-54
-82
query I rowsort
SELECT + ( col1 * - 66 ) + col0 FROM tab1
----
-1713
-596
-778
query I rowsort
SELECT ALL 59 * col2 AS col2 FROM tab2
----
1534
1593
2242
query I rowsort
SELECT 28 FROM tab1 AS cor0 CROSS JOIN tab2, tab2 cor1, tab0 AS cor2, tab2 AS cor3
----
243 values hashing to 59af3451da9c1ccd44e1c1e08d77ef8b
onlyif mysql # use DIV operator for integer division
query I rowsort label-7150
SELECT + col0 DIV + ( + 2 ) FROM tab1 cor0
----
1
32
40
skipif mysql # not compatible
query I rowsort label-7150
SELECT + col0 / + ( + 2 ) FROM tab1 cor0
----
1
32
40
query I rowsort
SELECT DISTINCT + col0 + + ( col1 ) * cor0.col0 AS col1 FROM tab0 AS cor0
----
2088
3430
8188
query I rowsort
SELECT ALL col2 + col1 * + col0 FROM tab1 AS cor0
----
1136
132
697
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7153
SELECT DISTINCT + col2 * CAST( - col1 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-1534
-646
-837
skipif mysql # not compatible
query I rowsort label-7153
SELECT DISTINCT + col2 * CAST ( - col1 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT - col1 * 26 FROM tab1 AS cor0
----
-260
-338
-676
onlyif mysql # use DIV operator for integer division
query I rowsort label-7155
SELECT DISTINCT + col0 DIV 35 col0 FROM tab2 AS cor0
----
0
2
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7155
SELECT DISTINCT + col0 / 35 col0 FROM tab2 AS cor0
----
0
2
query I rowsort
SELECT 12 + col2 FROM tab1 AS cor0
----
108
66
69
query I rowsort
SELECT - ( + col2 ) * col2 + ( - 97 ) * - col1 AS col0 FROM tab0 AS cor0
----
2103
7253
9408
onlyif mysql # use DIV operator for integer division
query I rowsort label-7158
SELECT + - col0 DIV 89 + col0 FROM tab1 AS cor0
----
3
64
80
skipif mysql # not compatible
query I rowsort label-7158
SELECT + - col0 / 89 + col0 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT + col2 * - 29 AS col2 FROM tab1 AS cor0
----
-1566
-1653
-2784
onlyif mysql # use DIV operator for integer division
query I rowsort label-7160
SELECT - cor0.col0 DIV - col2 + col2 AS col0 FROM tab0 AS cor0
----
33
36
83
skipif mysql # not compatible
query I rowsort label-7160
SELECT - cor0.col0 / - col2 + col2 AS col0 FROM tab0 AS cor0
----
33
36
83
query I rowsort
SELECT - + ( col2 ) + col1 AS col1 FROM tab2 AS cor0
----
-21
33
4
query I rowsort
SELECT ( 5 ) FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 6797d40099023779b89feb627d94a3e7
query I rowsort
SELECT col1 + - col1 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT + 79 FROM tab0, tab1 AS cor0, tab2, tab1 AS cor1
----
81 values hashing to da0116d31b8af0da9f685c090d378baf
query I rowsort
SELECT col0 * + cor0.col0 + ( + cor0.col2 * + col2 ) AS col1 FROM tab0 cor0
----
1226
14645
1665
query I rowsort
SELECT ALL - 92 AS col0 FROM tab0 AS cor0
----
-92
-92
-92
query I rowsort
SELECT DISTINCT + 33 * col0 + - 25 - + col0 FROM tab2 AS cor0
----
199
2471
2503
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - cor0.col0 col1 FROM tab2 AS cor0
----
-49
-6084
-6241
onlyif mysql # use DIV operator for integer division
query I rowsort label-7169
SELECT col1 DIV - col0 + ( cor0.col0 ) AS col0 FROM tab0 AS cor0
----
21
33
88
skipif mysql # not compatible
query I rowsort label-7169
SELECT col1 / - col0 + ( cor0.col0 ) AS col0 FROM tab0 AS cor0
----
21
33
88
query I rowsort
SELECT + col0 + - col2 * + col2 FROM tab2 AS cor0
----
-1365
-598
-722
query I rowsort
SELECT DISTINCT - - 79 * col0 FROM tab1 AS cor0
----
237
5056
6320
query I rowsort
SELECT - 92 * col0 FROM tab2 AS cor0
----
-644
-7176
-7268
query I rowsort
SELECT ALL - 81 FROM tab0 cor0
----
-81
-81
-81
query I rowsort
SELECT DISTINCT + 39 - + col2 FROM tab2 AS cor0
----
1
12
13
query I rowsort
SELECT DISTINCT + col2 * col2 AS col1 FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT - + 88 + col2 AS col2 FROM tab0 AS cor0
----
-55
-6
-87
query I rowsort
SELECT ALL col1 * col2 + cor0.col2 * cor0.col1 AS col1 FROM tab2 AS cor0
----
1292
1674
3068
query I rowsort
SELECT + cor0.col2 * + col2 AS col1 FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT - col2 + - col0 * col1 AS col2 FROM tab1 AS cor0
----
-1136
-132
-697
onlyif mysql # use DIV operator for integer division
query I rowsort label-7180
SELECT DISTINCT - col2 DIV col1 + ( cor0.col0 + col0 ) FROM tab0 cor0
----
178
48
70
skipif mysql # not compatible
query I rowsort label-7180
SELECT DISTINCT - col2 / col1 + ( cor0.col0 + col0 ) FROM tab0 cor0
----
178
48
70
query I rowsort
SELECT + + cor0.col1 + + cor0.col1 * ( 20 * col1 ) FROM tab0 AS cor0
----
148006
165711
188277
query I rowsort
SELECT ALL 7 FROM tab1 AS cor0
----
7
7
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-7183
SELECT DISTINCT - - cor0.col0 * col2 + - ( col2 ) DIV col0 AS col2 FROM tab2 AS cor0
----
186
2028
3002
skipif mysql # not compatible
query I rowsort label-7183
SELECT DISTINCT - - cor0.col0 * col2 + - ( col2 ) / col0 AS col2 FROM tab2 AS cor0
----
186
2028
3002
query I rowsort
SELECT - 15 FROM tab0, tab0 AS cor0, tab0 cor1
----
27 values hashing to 91b10a00c89b36b5bf0bed723e656ccc
query I rowsort
SELECT DISTINCT + col1 + ( - 39 ) FROM tab1 AS cor0
----
-13
-26
-29
query I rowsort
SELECT ALL - cor0.col1 * 40 FROM tab0 AS cor0
----
-3440
-3640
-3880
query I rowsort
SELECT + 74 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31
query I rowsort
SELECT DISTINCT - + 36 * - col1 + col1 * + 43 * cor0.col1 AS col1 FROM tab1 AS cor0
----
30004
4660
7735
query I rowsort
SELECT DISTINCT ( 96 ) * + col2 AS col1 FROM tab0 AS cor0
----
3168
7872
96
query I rowsort
SELECT col0 * ( - col2 ) + col1 + - col0 * col0 FROM tab0 cor0
----
-1163
-1282
-15128
query I rowsort
SELECT ALL + ( - col1 ) + + col0 FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT ALL 39 FROM tab2 AS cor0
----
39
39
39
query I rowsort
SELECT + col2 + + col1 + + col0 FROM tab0 cor0
----
133
143
262
query I rowsort
SELECT ALL 19 AS col1 FROM tab2 cor0
----
19
19
19
query I rowsort
SELECT - col2 - ( - col2 ) FROM tab2
----
0
0
0
query I rowsort
SELECT ALL - 95 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to cf302b83f15b730fe35c19bdd9363c13
onlyif mysql # use DIV operator for integer division
query I rowsort label-7197
SELECT DISTINCT tab0.col1 DIV col1 FROM tab0
----
1
skipif mysql # not compatible
query I rowsort label-7197
SELECT DISTINCT tab0.col1 / col1 FROM tab0
----
1
query I rowsort
SELECT - ( - col2 ) * col2 * + col2 AS col2 FROM tab2
----
17576
19683
54872
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7199
SELECT ALL - CAST( NULL AS SIGNED ) * 1 + + col1 * - col2 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7199
SELECT ALL - CAST ( NULL AS INTEGER ) * 1 + + col1 * - col2 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col0 - col1 AS col2 FROM tab1
----
-29
-74
-93
query I rowsort
SELECT ALL 53 - col0 AS col2 FROM tab1
----
-11
-27
50
query I rowsort
SELECT col2 + 77 AS col1 FROM tab2 AS cor0
----
103
104
115
query I rowsort
SELECT - ( tab1.col0 ) + col1 AS col1 FROM tab1
----
-54
-67
23
query I rowsort
SELECT + - 1 AS col1 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 84da757b1b7b0069ce25607f39bc08d9
query I rowsort
SELECT 62 * - col0 + col2 + col0 AS col0 FROM tab0
----
-1431
-2134
-5347
query I rowsort
SELECT + 48 + + cor0.col1 * + col2 FROM tab1 AS cor0
----
1296
1452
618
onlyif mysql # use DIV operator for integer division
query I rowsort label-7207
SELECT 75 + + col0 DIV - col1 AS col0 FROM tab1
----
69
69
75
skipif mysql # not compatible
query I rowsort label-7207
SELECT 75 + + col0 / - col1 AS col0 FROM tab1
----
69
69
75
query I rowsort
SELECT DISTINCT 34 * col1 AS col0 FROM tab1
----
340
442
884
query I rowsort
SELECT col2 * + col1 * - col0 FROM tab1
----
-36480
-4212
-99840
query I rowsort
SELECT col0 * + ( - col0 ) + col1 AS col1 FROM tab0
----
-1128
-490
-7830
query I rowsort
SELECT DISTINCT - col0 + + 97 FROM tab0
----
62
73
8
onlyif mysql # use DIV operator for integer division
query I rowsort label-7212
SELECT DISTINCT col0 * 82 + col1 DIV - tab1.col1 FROM tab1
----
245
5247
6559
skipif mysql # not compatible
query I rowsort label-7212
SELECT DISTINCT col0 * 82 + col1 / - tab1.col1 FROM tab1
----
245
5247
6559
query I rowsort
SELECT DISTINCT 82 FROM tab2, tab1 AS cor0
----
82
query I rowsort
SELECT col1 + 59 * + col1 AS col2 FROM tab1
----
1560
600
780
query I rowsort
SELECT col2 + - col0 * col2 * col2 AS col2 FROM tab1
----
-207879
-737184
-8694
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + col2 * + col0 col0 FROM tab2 AS cor0
----
158
1969
2985
query I rowsort
SELECT DISTINCT + col2 * - 82 AS col1 FROM tab1 AS cor0
----
-4428
-4674
-7872
query I rowsort
SELECT + 43 FROM tab0, tab1 AS cor0
----
9 values hashing to 199105619049271147956de52e7f5ed4
query I rowsort
SELECT cor0.col0 * 83 AS col2 FROM tab0 AS cor0
----
1992
2905
7387
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7220
SELECT ALL + + col2 + + CAST( col2 AS SIGNED ) FROM tab1 AS cor0
----
108
114
192
skipif mysql # not compatible
query I rowsort label-7220
SELECT ALL + + col2 + + CAST ( col2 AS INTEGER ) FROM tab1 AS cor0
----
108
114
192
query I rowsort
SELECT + col2 * + ( col1 ) FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT DISTINCT - tab1.col1 * + ( - 62 ) FROM tab1
----
1612
620
806
query I rowsort
SELECT + cor0.col1 * 69 AS col1 FROM tab0 AS cor0
----
5934
6279
6693
query I rowsort
SELECT DISTINCT + - col2 * col1 AS col2 FROM tab2 AS cor0
----
-1534
-646
-837
onlyif mysql # use DIV operator for integer division
query I rowsort label-7225
SELECT 86 - - ( - col0 ) DIV col0 AS col1 FROM tab0
----
85
85
85
skipif mysql # not compatible
query I rowsort label-7225
SELECT 86 - - ( - col0 ) / col0 AS col1 FROM tab0
----
85
85
85
query I rowsort
SELECT DISTINCT ( col2 ) + + col1 AS col2 FROM tab0
----
119
173
98
query I rowsort
SELECT DISTINCT + col2 + col2 AS col2 FROM tab2
----
52
54
76
query I rowsort
SELECT + col2 - + 76 AS col1 FROM tab0
----
-43
-75
6
query I rowsort
SELECT + ( col1 ) * + col0 - col2 FROM tab1
----
24
583
944
query I rowsort
SELECT - 24 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 797d0f7c145f8ac623924448c714bbcc
onlyif mysql # use DIV operator for integer division
query I rowsort label-7231
SELECT - CAST( col0 AS SIGNED ) DIV col1 + CAST( + col1 AS SIGNED ) AS col0 FROM tab1
----
26
4
7
skipif mysql # not compatible
query I rowsort label-7231
SELECT - CAST ( col0 AS INTEGER ) / col1 + CAST ( + col1 AS INTEGER ) AS col0 FROM tab1
----
26
4
7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7232
SELECT ALL + col0 + cor0.col2 * CAST( col1 + col1 AS SIGNED ) FROM tab1 AS cor0
----
1204
2576
2811
skipif mysql # not compatible
query I rowsort label-7232
SELECT ALL + col0 + cor0.col2 * CAST ( col1 + col1 AS INTEGER ) FROM tab1 AS cor0
----
1204
2576
2811
query I rowsort
SELECT ALL - 49 + + col0 AS col2 FROM tab1 AS cor0
----
-46
15
31
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 col1 * + col1 col0 FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT ALL + 83 FROM tab1 AS cor0
----
83
83
83
query I rowsort
SELECT - col2 + + cor0.col0 * + 19 AS col0 FROM tab1 AS cor0
----
1159
1424
3
query I rowsort
SELECT + col0 + - tab1.col2 * col0 FROM tab1
----
-159
-3584
-7600
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7239
SELECT + - col0 / - col0 + - CAST( NULL AS SIGNED ) + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7239
SELECT + - col0 / - col0 + - 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 DISTINCT col1 * cor0.col1 + - 48 col0 FROM tab1 AS cor0
----
121
52
628
query I rowsort
SELECT DISTINCT 40 FROM tab1 AS cor0
----
40
query I rowsort
SELECT - + 71 * col0 FROM tab2 AS cor0
----
-497
-5538
-5609
query I rowsort
SELECT DISTINCT - + col0 + col2 AS col0 FROM tab1 cor0
----
-7
16
51
query I rowsort
SELECT ALL - + 39 FROM tab1 cor0
----
-39
-39
-39
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 + - col2 col0 FROM tab0 AS cor0
----
-164
-2
-66
query I rowsort
SELECT ALL - ( col0 ) * ( - 90 ) AS col0 FROM tab0 cor0
----
2160
3150
8010
query I rowsort
SELECT ALL + col2 * cor0.col2 * - col0 AS col2 FROM tab1 AS cor0
----
-207936
-737280
-8748
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7248
SELECT + cor0.col1 * cor0.col1 + CAST( NULL AS SIGNED ) FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-7248
SELECT + cor0.col1 * cor0.col1 + CAST ( NULL AS INTEGER ) FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT ALL - col1 + col2 AS col1 FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT + - col0 * + col1 + + cor0.col2 FROM tab2 AS cor0
----
-1305
-190
-4576
query I rowsort
SELECT + col2 * + col2 + + 2 FROM tab0 AS cor0
----
1091
3
6726
query I rowsort
SELECT DISTINCT - 83 + - col2 * col1 * - col1 FROM tab1 cor0
----
16141
36421
5617
query I rowsort
SELECT ALL + col2 * - col1 + ( + col1 ) FROM tab0 cor0
----
-2752
-7371
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-7254
SELECT cor0.col0 DIV col2 AS col0 FROM tab0 AS cor0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-7254
SELECT cor0.col0 / col2 AS col0 FROM tab0 AS cor0
----
0
1
35
query I rowsort
SELECT + col0 * 19 * - 70 AS col0 FROM tab1 AS cor0
----
-106400
-3990
-85120
query I rowsort
SELECT DISTINCT + col0 + cor0.col1 FROM tab0 cor0
----
110
132
180
query I rowsort
SELECT ALL - col0 * ( + ( cor0.col2 ) ) FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT ALL + col1 + col0 * + col2 AS col0 FROM tab1 AS cor0
----
188
3658
7693
query I rowsort
SELECT 38 + col2 AS col0 FROM tab1
----
134
92
95
query I rowsort
SELECT DISTINCT - - col2 * - col1 - + col1 * col1 * 78 AS col0 FROM tab0 AS cor0
----
-579726
-653380
-733999
query I rowsort
SELECT ALL 74 AS col2 FROM tab0 AS cor0
----
74
74
74
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7262
SELECT + CAST( NULL AS SIGNED ) * - col1 - + col2 * ( - col2 * col1 + + col2 ) FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7262
SELECT + CAST ( NULL AS INTEGER ) * - col1 - + col2 * ( - col2 * col1 + + col2 ) FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + - 39 + col2 * cor0.col0 * + col2 + col0 AS col2 FROM tab2 AS cor0
----
114116
5071
52767
query I rowsort
SELECT DISTINCT - col0 + - col0 + col2 * + col1 * - col1 AS col0 FROM tab1 cor0
----
-16384
-36510
-5828
onlyif mysql # use DIV operator for integer division
query I rowsort label-7265
SELECT DISTINCT - ( 34 ) * col0 - + col0 DIV - cor0.col1 FROM tab0 AS cor0
----
-1190
-3026
-816
skipif mysql # not compatible
query I rowsort label-7265
SELECT DISTINCT - ( 34 ) * col0 - + col0 / - cor0.col1 FROM tab0 AS cor0
----
-1190
-3026
-816
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 + - 68 col2 FROM tab2 AS cor0
----
-61
10
11
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 - + 91 * + col1 col1 FROM tab2 cor0
----
-1530
-2790
-5310
query I rowsort
SELECT - col1 + col0 + col2 FROM tab2 AS cor0
----
100
3
45
query I rowsort
SELECT DISTINCT - cor0.col0 * 2 FROM tab2 AS cor0
----
-14
-156
-158
query I rowsort
SELECT ALL - 16 AS col0 FROM tab0 AS cor0
----
-16
-16
-16
query I rowsort
SELECT + 72 + - ( + col0 ) * + col1 + ( - cor0.col1 + cor0.col0 ) AS col2 FROM tab2 AS cor0
----
-1209
-169
-4511
query I rowsort
SELECT 14 - - col2 FROM tab1 cor0
----
110
68
71
query I rowsort
SELECT DISTINCT + + col0 + cor0.col0 * + col0 AS col1 FROM tab0 AS cor0
----
1260
600
8010
query I rowsort
SELECT - - ( col2 ) FROM tab2 cor0
----
26
27
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-7275
SELECT col2 + 53 * - col2 + col2 DIV col1 FROM tab1
----
-2806
-2959
-4985
skipif mysql # not compatible
query I rowsort label-7275
SELECT col2 + 53 * - col2 + col2 / col1 FROM tab1
----
-2806
-2959
-4985
query I rowsort
SELECT DISTINCT - + col2 * col0 + - col0 * - cor0.col2 FROM tab1 cor0
----
0
query I rowsort
SELECT + 28 * col1 + 77 * ( col2 ) FROM tab1 AS cor0
----
4669
4886
7756
query I rowsort
SELECT - 3 + cor0.col1 * - ( 50 ) * - col1 AS col2 FROM tab1 AS cor0
----
33797
4997
8447
query I rowsort
SELECT 9 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b
query I rowsort
SELECT DISTINCT ( + 72 ) FROM tab2, tab1 AS cor0
----
72
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 + + col1 col1 FROM tab1 cor0
----
109
67
80
query I rowsort
SELECT ALL - - ( + col1 ) * cor0.col2 + col1 * col2 AS col0 FROM tab1 AS cor0
----
1140
2496
2808
onlyif mysql # use DIV operator for integer division
query I rowsort label-7283
SELECT ALL col2 DIV + 86 AS col0 FROM tab2 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7283
SELECT ALL col2 / + 86 AS col0 FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT ALL 73 + col2 FROM tab2 AS cor0
----
100
111
99
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * col0 col0 FROM tab0 AS cor0
----
-1225
-576
-7921
onlyif mysql # use DIV operator for integer division
query I rowsort label-7286
SELECT DISTINCT col2 DIV tab0.col0 FROM tab0
----
0
1
skipif mysql # not compatible
query I rowsort label-7286
SELECT DISTINCT col2 / tab0.col0 FROM tab0
----
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + col1 * col1 col0 FROM tab0
----
636056
753571
912673
query I rowsort
SELECT - tab1.col2 * - ( + col1 ) FROM tab1
----
1248
1404
570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab0.col0 * ( - 64 ) col1 FROM tab0
----
1536
2240
5696
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - ( 87 ) * + col0 col2 FROM tab2
----
-116841
-18879
-400374
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7291
SELECT DISTINCT + CAST( NULL AS SIGNED ) + col0 + col0 AS col0 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-7291
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + col0 + col0 AS col0 FROM tab2
----
NULL
query I rowsort
SELECT DISTINCT - col0 + + tab1.col0 * - col0 FROM tab1
----
-12
-4160
-6480
onlyif mysql # use DIV operator for integer division
query I rowsort label-7293
SELECT tab2.col2 DIV col1 + - col0 FROM tab2
----
-7
-77
-78
skipif mysql # not compatible
query I rowsort label-7293
SELECT tab2.col2 / col1 + - col0 FROM tab2
----
-7
-77
-78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 53 col0 FROM tab2
----
53
53
53
query I rowsort
SELECT + + col0 * col1 + cor0.col2 + - col1 FROM tab2 AS cor0
----
1364
213
4569
query I rowsort
SELECT - + 87 + - cor0.col2 FROM tab2 cor0
----
-113
-114
-125
query I rowsort
SELECT col2 * + 1 AS col1 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT + + ( col1 ) * + cor0.col1 AS col1 FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT ALL - 96 AS col1 FROM tab1
----
-96
-96
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-7300
SELECT - ( - col2 ) DIV ( 79 + + col1 ) AS col0 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7300
SELECT - ( - col2 ) / ( 79 + + col1 ) AS col0 FROM tab0
----
0
0
0
query I rowsort
SELECT col0 * + cor0.col1 - - col2 AS col2 FROM tab0 AS cor0
----
2097
3396
8181
query I rowsort
SELECT - col1 * col2 * + col2 - col1 * - col1 FROM tab1 AS cor0
----
-119639
-32390
-75140
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 + col1 * cor0.col0 * 6 col2 FROM tab0 AS cor0
----
12470
20467
48685
query I rowsort
SELECT ALL - - cor0.col2 + col2 FROM tab1 AS cor0
----
108
114
192
onlyif mysql # use DIV operator for integer division
query I rowsort label-7305
SELECT - col2 * - col1 - col1 DIV - col2 AS col2 FROM tab1 cor0
----
1248
1404
570
skipif mysql # not compatible
query I rowsort label-7305
SELECT - col2 * - col1 - col1 / - col2 AS col2 FROM tab1 cor0
----
1248
1404
570
query I rowsort
SELECT + cor0.col1 + col2 * 77 + col1 * + 26 AS col1 FROM tab2 AS cor0
----
2916
3385
3595
query I rowsort
SELECT col2 + cor0.col0 * + col1 AS col0 FROM tab2 AS cor0
----
1381
244
4628
onlyif mysql # use DIV operator for integer division
query I rowsort label-7308
SELECT - col1 * ( + col2 ) - col0 DIV 47 FROM tab1 AS cor0
----
-1249
-1404
-571
skipif mysql # not compatible
query I rowsort label-7308
SELECT - col1 * ( + col2 ) - col0 / 47 FROM tab1 AS cor0
----
-1249
-1404
-571
onlyif mysql # use DIV operator for integer division
query I rowsort label-7309
SELECT - col0 * 86 * + col0 + col1 DIV col0 AS col0 FROM tab2 AS cor0
----
-4210
-523224
-536726
skipif mysql # not compatible
query I rowsort label-7309
SELECT - col0 * 86 * + col0 + col1 / col0 AS col0 FROM tab2 AS cor0
----
-4210
-523224
-536726
query I rowsort
SELECT + + col1 * col2 + + col2 AS col1 FROM tab0 AS cor0
----
2871
7544
98
query I rowsort
SELECT ALL - + col2 * col1 + - col2 AS col0 FROM tab2 AS cor0
----
-1560
-684
-864
query I rowsort
SELECT DISTINCT cor0.col1 * 0 AS col1 FROM tab2 AS cor0
----
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7313
SELECT - + col2 - CAST( NULL AS DECIMAL ) / 50 col1 FROM tab1 cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7313
SELECT - + col2 - CAST ( NULL AS REAL ) / 50 col1 FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + col1 + - ( - col2 + + col1 ) FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT DISTINCT + cor0.col0 - - col1 * 32 * col2 FROM tab0 cor0
----
238873
3139
90840
onlyif mysql # use DIV operator for integer division
query I rowsort label-7316
SELECT DISTINCT col0 * + col2 - cor0.col2 DIV - cor0.col1 AS col0 FROM tab2 AS cor0
----
189
2028
3004
skipif mysql # not compatible
query I rowsort label-7316
SELECT DISTINCT col0 * + col2 - cor0.col2 / - cor0.col1 AS col0 FROM tab2 AS cor0
----
189
2028
3004
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7317
SELECT - col2 - + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7317
SELECT - col2 - + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-7318
SELECT DISTINCT + + col0 DIV - col1 + col0 AS col2 FROM tab2 AS cor0
----
7
75
77
skipif mysql # not compatible
query I rowsort label-7318
SELECT DISTINCT + + col0 / - col1 + col0 AS col2 FROM tab2 AS cor0
----
7
75
77
query I rowsort
SELECT + col0 + + 39 FROM tab2 cor0
----
117
118
46
query I rowsort
SELECT - - col2 * 38 FROM tab0 AS cor0
----
1254
3116
38
query I rowsort
SELECT ALL cor0.col2 + - ( + col2 + col2 ) FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT DISTINCT - col2 * col1 - + col2 FROM tab0 cor0
----
-2871
-7544
-98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * col2 + cor0.col1 col1 FROM tab1 AS cor0
----
2942
3259
9229
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 24 * + 76 + col1 * + col0 + - ( col1 ) col0 FROM tab0 AS cor0
----
3802
5122
9832
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - col2 ) * col2 + - 82 * + col1 col0 FROM tab0 AS cor0
----
-14186
-7955
-8141
query I rowsort
SELECT + + ( cor0.col1 ) + + col1 FROM tab1 AS cor0
----
20
26
52
query I rowsort
SELECT - col1 * - cor0.col1 + + col1 * col0 * - ( + cor0.col0 + 66 ) AS col2 FROM tab1 cor0
----
-151671
-4706
-83100
query I rowsort
SELECT DISTINCT - ( - 1 ) + + col0 AS col0 FROM tab0 AS cor0
----
25
36
90
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7329
SELECT DISTINCT 81 * col2 + col1 + CAST( NULL AS SIGNED ) * cor0.col1 AS col2 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7329
SELECT DISTINCT 81 * col2 + col1 + CAST ( NULL AS INTEGER ) * cor0.col1 AS col2 FROM tab1 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-7330
SELECT ALL col2 * col2 DIV cor0.col1 - 2 AS col2 FROM tab1 AS cor0
----
110
322
706
skipif mysql # not compatible
query I rowsort label-7330
SELECT ALL col2 * col2 / cor0.col1 - 2 AS col2 FROM tab1 AS cor0
----
110
322
706
query I rowsort
SELECT - 55 + + col0 AS col1 FROM tab0 AS cor0
----
-20
-31
34
onlyif mysql # use DIV operator for integer division
query I rowsort label-7332
SELECT ALL tab1.col1 - tab1.col1 DIV + col0 AS col0 FROM tab1
----
10
13
18
skipif mysql # not compatible
query I rowsort label-7332
SELECT ALL tab1.col1 - tab1.col1 / + col0 AS col0 FROM tab1
----
10
13
18
query I rowsort
SELECT - col2 * + ( 1 * - col0 ) + - ( - col0 ) FROM tab1
----
165
3712
7760
query I rowsort
SELECT - 77 * + col0 AS col2 FROM tab2 AS cor0
----
-539
-6006
-6083
query I rowsort
SELECT ALL col2 * - col2 + 25 - 21 * - col2 AS col2 FROM tab0 cor0
----
-371
-4977
45
query I rowsort
SELECT ALL 56 AS col1 FROM tab2 AS cor0
----
56
56
56
query I rowsort
SELECT DISTINCT - col1 + cor0.col2 FROM tab0 cor0
----
-53
-9
-96
query I rowsort
SELECT + + col0 + - cor0.col1 AS col1 FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT ALL - col0 * 55 AS col0 FROM tab0 AS cor0
----
-1320
-1925
-4895
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7340
SELECT DISTINCT + + col0 + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7340
SELECT DISTINCT + + col0 + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7341
SELECT + col2 * CAST( NULL AS SIGNED ) + - col1 * cor0.col2 * 2 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7341
SELECT + col2 * CAST ( NULL AS INTEGER ) + - col1 * cor0.col2 * 2 FROM tab1 cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7342
SELECT ALL - - col1 * CAST( - 24 AS SIGNED ) FROM tab0 AS cor0
----
-2064
-2184
-2328
skipif mysql # not compatible
query I rowsort label-7342
SELECT ALL - - col1 * CAST ( - 24 AS INTEGER ) FROM tab0 AS cor0
----
-2064
-2184
-2328
query I rowsort
SELECT 20 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 0a35fe98f3e7d5fc8ff2ae815bd20ef4
query I rowsort
SELECT - - col0 * - col1 * + col0 AS col0 FROM tab0 AS cor0
----
-118825
-49536
-720811
query I rowsort
SELECT cor0.col0 - cor0.col0 AS col0 FROM tab0, tab2 cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
query I rowsort
SELECT col0 + cor0.col2 * + 57 FROM tab1 AS cor0
----
3081
3313
5552
query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0, tab1 cor1, tab2 cor2
----
972 values hashing to caf6adb9936510208f5945a7e5c76f14
query I rowsort
SELECT + tab0.col1 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc
query I rowsort
SELECT cor0.col0 AS col1 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
onlyif mysql # use DIV operator for integer division
query I rowsort label-7350
SELECT - col2 * col1 + - col1 DIV col1 FROM tab0 AS cor0
----
-2839
-7463
-98
skipif mysql # not compatible
query I rowsort label-7350
SELECT - col2 * col1 + - col1 / col1 FROM tab0 AS cor0
----
-2839
-7463
-98
query I rowsort
SELECT DISTINCT - col2 - col1 * - ( + col1 ) * col1 AS col1 FROM tab0 AS cor0
----
636023
753489
912672
query I rowsort
SELECT ALL + - 48 * + col0 AS col2 FROM tab1 cor0
----
-144
-3072
-3840
query I rowsort
SELECT - - col0 + + cor0.col0 FROM tab0 AS cor0
----
178
48
70
query I rowsort
SELECT DISTINCT + 85 AS col2 FROM tab1 cor0
----
85
query I rowsort
SELECT DISTINCT 10 + col1 * + col2 FROM tab1 AS cor0
----
1258
1414
580
query I rowsort
SELECT + - 90 + col2 * ( - ( col0 ) ) FROM tab2 AS cor0
----
-2118
-279
-3092
query I rowsort
SELECT - - 97 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 10 col1 FROM tab1 AS cor0
----
10
10
10
query I rowsort
SELECT - 52 AS col0 FROM tab0 AS cor0
----
-52
-52
-52
query I rowsort
SELECT - - 80 AS col0 FROM tab1 AS cor0
----
80
80
80
query I rowsort
SELECT ALL - + col1 + - cor0.col1 * + col1 FROM tab1 AS cor0
----
-110
-182
-702
query I rowsort
SELECT ALL + 44 + + col0 AS col1 FROM tab0 cor0
----
133
68
79
query I rowsort
SELECT DISTINCT + col0 + col2 * ( col0 ) FROM tab1 AS cor0
----
165
3712
7760
query I rowsort
SELECT DISTINCT - col1 + - col2 AS col2 FROM tab1 AS cor0
----
-109
-67
-80
query I rowsort
SELECT ALL cor0.col2 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17
query I rowsort
SELECT + + col1 * 72 AS col0 FROM tab2 AS cor0
----
1224
2232
4248
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7367
SELECT DISTINCT - CAST( + cor1.col1 AS SIGNED ) FROM tab1, tab1 AS cor0, tab0 AS cor1
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-7367
SELECT DISTINCT - CAST ( + cor1.col1 AS INTEGER ) FROM tab1, tab1 AS cor0, tab0 AS cor1
----
-86
-91
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + 44 + col0 * + ( - cor0.col2 ) col0 FROM tab1 AS cor0
----
-121
-3668
-7716
query I rowsort
SELECT DISTINCT - + 22 * - col0 * + col0 FROM tab0 AS cor0
----
12672
174262
26950
query I rowsort
SELECT DISTINCT - ( + col1 ) + + col1 FROM tab2 AS cor0
----
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7371
SELECT + + CAST( NULL AS SIGNED ) + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7371
SELECT + + CAST ( NULL AS INTEGER ) + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col2 * - 90 + col0 FROM tab1 AS cor0
----
-4857
-5066
-8560
query I rowsort
SELECT cor0.col1 FROM tab2 AS cor0 CROSS JOIN tab1, tab0 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
onlyif mysql # use DIV operator for integer division
query I rowsort label-7374
SELECT DISTINCT col1 DIV 47 + col1 * col0 + col2 FROM tab2
----
1381
244
4629
skipif mysql # not compatible
query I rowsort label-7374
SELECT DISTINCT col1 / 47 + col1 * col0 + col2 FROM tab2
----
1381
244
4629
query I rowsort
SELECT ALL - 89 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 924a74d31360fa4301c953b423a4710e
onlyif mysql # use DIV operator for integer division
query I rowsort label-7376
SELECT - col0 DIV ( col0 ) FROM tab0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-7376
SELECT - col0 / ( col0 ) FROM tab0
----
-1
-1
-1
query I rowsort
SELECT ( - col2 * col0 ) + col2 FROM tab2
----
-162
-2002
-2964
query I rowsort
SELECT DISTINCT 67 + col0 AS col0 FROM tab1
----
131
147
70
query I rowsort
SELECT col1 - col1 AS col0 FROM tab1
----
0
0
0
query I rowsort
SELECT ALL 8 + + 16 * col0 AS col2 FROM tab1 AS cor0
----
1032
1288
56
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 99 col2 FROM tab0
----
99
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 64 col2 FROM tab0
----
64
64
64
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 37 col0 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
37
query I rowsort
SELECT ALL - ( col2 ) * col2 AS col1 FROM tab1
----
-2916
-3249
-9216
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 13 + col1 col2 FROM tab0 AS cor0
----
104
110
99
onlyif mysql # use DIV operator for integer division
query I rowsort label-7386
SELECT - - 51 * col2 + col2 DIV col1 AS col1 FROM tab2 AS cor0
----
1326
1377
1940
skipif mysql # not compatible
query I rowsort label-7386
SELECT - - 51 * col2 + col2 / col1 AS col1 FROM tab2 AS cor0
----
1326
1377
1940
query I rowsort
SELECT + col1 + + col2 AS col2 FROM tab2
----
55
58
85
query I rowsort
SELECT ALL + col2 * + 96 + - col1 * col1 FROM tab2 AS cor0
----
-985
1631
3359
query I rowsort
SELECT ALL + col2 * ( col2 ) AS col2 FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT 4 AS col1 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 730dff78e83112374961ea711f98ebaa
query I rowsort
SELECT DISTINCT + + cor0.col2 + cor0.col1 AS col2 FROM tab0 AS cor0
----
119
173
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-7392
SELECT DISTINCT - + col0 * + 25 + + col0 DIV - col1 AS col2 FROM tab2 AS cor0
----
-175
-1951
-1979
skipif mysql # not compatible
query I rowsort label-7392
SELECT DISTINCT - + col0 * + 25 + + col0 / - col1 AS col2 FROM tab2 AS cor0
----
-175
-1951
-1979
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7393
SELECT ALL + CAST( col1 AS SIGNED ) FROM tab2 AS cor0
----
17
31
59
skipif mysql # not compatible
query I rowsort label-7393
SELECT ALL + CAST ( col1 AS INTEGER ) FROM tab2 AS cor0
----
17
31
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-7394
SELECT + col1 - 60 DIV + col1 FROM tab1 AS cor0
----
24
4
9
skipif mysql # not compatible
query I rowsort label-7394
SELECT + col1 - 60 / + col1 FROM tab1 AS cor0
----
24
4
9
query I rowsort
SELECT DISTINCT cor0.col2 * + col1 + col0 FROM tab2 AS cor0
----
1612
725
844
query I rowsort
SELECT - + ( 8 ) + col1 FROM tab2 AS cor0
----
23
51
9
query I rowsort
SELECT 27 * - ( + col2 ) AS col2 FROM tab2 AS cor0
----
-1026
-702
-729
query I rowsort
SELECT DISTINCT - col1 + col2 + col0 FROM tab2 AS cor0
----
100
3
45
onlyif mysql # use DIV operator for integer division
query I rowsort label-7399
SELECT cor0.col1 DIV + col0 col0 FROM tab2 AS cor0
----
0
0
4
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7399
SELECT cor0.col1 / + col0 col0 FROM tab2 AS cor0
----
0
0
4
query I rowsort
SELECT ALL - - ( col1 ) * col2 + col0 * - col0 FROM tab0 AS cor0
----
-1128
-459
2262
query I rowsort
SELECT DISTINCT + - ( 94 ) FROM tab0 AS cor0
----
-94
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7402
SELECT CAST( NULL AS DECIMAL ) * + 85 + col1 + + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7402
SELECT CAST ( NULL AS REAL ) * + 85 + col1 + + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - cor0.col0 * + col2 + + cor0.col2 AS col0 FROM tab2 AS cor0
----
-162
-2002
-2964
query I rowsort
SELECT - col2 * + col0 + - col1 + + ( col2 ) FROM tab0 cor0
----
-131
-7307
-845
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( + 9 AS REAL ) AS col1 FROM tab0, tab1 AS cor0
----
9
query I rowsort
SELECT - - 55 + col1 * col0 - col0 AS col0 FROM tab2 AS cor0
----
1319
265
4579
onlyif mysql # use DIV operator for integer division
query I rowsort label-7407
SELECT + CAST( col2 AS SIGNED ) * col2 * cor0.col1 + - col0 DIV col2 + + ( col0 ) FROM tab0 cor0
----
611972
93678
97
skipif mysql # not compatible
query I rowsort label-7407
SELECT + CAST ( col2 AS INTEGER ) * col2 * cor0.col1 + - col0 / col2 + + ( col0 ) FROM tab0 cor0
----
611972
93678
97
query I rowsort
SELECT - col0 * col0 + cor0.col1 FROM tab1 AS cor0
----
-4086
-6387
17
onlyif mysql # use DIV operator for integer division
query I rowsort label-7409
SELECT col1 DIV + col0 + col0 FROM tab1 AS cor0
----
11
64
80
skipif mysql # not compatible
query I rowsort label-7409
SELECT col1 / + col0 + col0 FROM tab1 AS cor0
----
11
64
80
query I rowsort
SELECT cor0.col1 * - col0 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( col1 * + col2 + - col1 * - col1 - col0 )
----
query I rowsort
SELECT ALL col0 + + col0 * - col0 FROM tab1 AS cor0
----
-4032
-6
-6320
query III rowsort
SELECT * FROM tab0 WHERE NOT ( col1 * - col1 * col1 - col1 ) >= ( - col1 / col2 - col0 * - col2 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
query I rowsort
SELECT ALL cor0.col0 AS col1 FROM tab1 cor0 WHERE NOT ( NULL ) IN ( col1 )
----
query I rowsort
SELECT ALL cor0.col1 + col1 AS col0 FROM tab0 AS cor0
----
172
182
194
onlyif mysql # use DIV operator for integer division
query I rowsort label-7415
SELECT col1 + + col1 DIV col1 AS col0 FROM tab1 AS cor0
----
11
14
27
skipif mysql # not compatible
query I rowsort label-7415
SELECT col1 + + col1 / col1 AS col0 FROM tab1 AS cor0
----
11
14
27
onlyif mysql # use DIV operator for integer division
query I rowsort label-7416
SELECT DISTINCT + col1 DIV - col2 + col1 + col1 AS col1 FROM tab1 AS cor0
----
20
26
52
skipif mysql # not compatible
query I rowsort label-7416
SELECT DISTINCT + col1 / - col2 + col1 + col1 AS col1 FROM tab1 AS cor0
----
20
26
52
query I rowsort
SELECT col2 + - col2 * col2 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( col1 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-7418
SELECT DISTINCT col2 DIV col2 + col2 * col0 col2 FROM tab0
----
36
7299
793
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7418
SELECT DISTINCT col2 / col2 + col2 * col0 col2 FROM tab0
----
36
7299
793
query I rowsort
SELECT + col0 + + col1 * + col1 AS col0 FROM tab0
----
7420
8370
9444
query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN NULL AND + col2 * col2
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + col1 col0 FROM tab2 WHERE NOT - col0 NOT IN ( - tab2.col2 * + tab2.col1 + + col1 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-7422
SELECT ALL col2 + - col1 DIV + col2 AS col1 FROM tab1
----
54
57
96
skipif mysql # not compatible
query I rowsort label-7422
SELECT ALL col2 + - col1 / + col2 AS col1 FROM tab1
----
54
57
96
query I rowsort
SELECT - col1 + col0 * col1 AS col1 FROM tab2
----
1326
186
4543
query I rowsort
SELECT + col2 * - col1 * - col0 + - tab0.col2 * col2 AS col2 FROM tab0
----
3394
657394
67023
onlyif mysql # use DIV operator for integer division
query I rowsort label-7425
SELECT ALL col1 DIV col2 + col0 FROM tab0
----
132
26
90
skipif mysql # not compatible
query I rowsort label-7425
SELECT ALL col1 / col2 + col0 FROM tab0
----
132
26
90
query I rowsort
SELECT ALL - col0 / - col2 FROM tab2 WHERE NOT NULL <> NULL
----
query I rowsort
SELECT ALL - col1 + - col2 * + col1 AS col2 FROM tab2
----
-1593
-663
-868
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * + col1 col0 FROM tab0
----
-2838
-7462
-97
query I rowsort
SELECT + col2 * - col1 * - col1 + + col2 FROM tab2
----
11020
25974
90532
query I rowsort
SELECT DISTINCT tab1.col2 * - tab1.col2 AS col1 FROM tab1
----
-2916
-3249
-9216
query I rowsort
SELECT DISTINCT col0 * - col0 / col1 AS col1 FROM tab1 WHERE NOT NULL BETWEEN - col0 AND NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-7432
SELECT + col1 * col2 DIV - tab0.col1 FROM tab0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-7432
SELECT + col1 * col2 / - tab0.col1 FROM tab0
----
-1
-33
-82
query I rowsort
SELECT ALL col0 + - col0 + col1 FROM tab1
----
10
13
26
onlyif mysql # use DIV operator for integer division
query I rowsort label-7434
SELECT col2 DIV - cor0.col1 AS col0 FROM tab2 AS cor0
----
-2
0
0
skipif mysql # not compatible
query I rowsort label-7434
SELECT col2 / - cor0.col1 AS col0 FROM tab2 AS cor0
----
-2
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-7435
SELECT DISTINCT - col1 DIV col2 AS col1 FROM tab0 AS cor0
----
-1
-2
-97
skipif mysql # not compatible
query I rowsort label-7435
SELECT DISTINCT - col1 / col2 AS col1 FROM tab0 AS cor0
----
-1
-2
-97
query I rowsort
SELECT ALL tab1.col1 * col0 FROM tab1
----
1040
640
78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * col1 col1 FROM tab2
----
1343
217
4602
query I rowsort
SELECT + cor0.col0 AS col1 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 WHERE NOT NULL >= NULL
----
query I rowsort
SELECT col1 + - col1 * cor0.col0 FROM tab0 AS cor0
----
-1978
-3298
-8008
query I rowsort
SELECT - + cor0.col1 * col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT + - col0 + col0 * - col2 * - col1 AS col1 FROM tab2 AS cor0
----
119574
50955
5852
query I rowsort
SELECT - col2 * - col2 - 56 AS col1 FROM tab2
----
1388
620
673
query I rowsort
SELECT 26 * + tab0.col2 - + col1 AS col1 FROM tab0
----
-71
2041
772
query I rowsort
SELECT + cor0.col2 + col0 * col0 FROM tab1 cor0
----
4153
63
6496
query I rowsort
SELECT + + col1 * - col0 FROM tab0 cor0
----
-2064
-3395
-8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-7447
SELECT DISTINCT + col0 DIV tab2.col1 FROM tab2
----
0
1
4
skipif mysql # not compatible
query I rowsort label-7447
SELECT DISTINCT + col0 / tab2.col1 FROM tab2
----
0
1
4
query I rowsort
SELECT ALL cor0.col0 * tab0.col1 AS col0 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to d09890f5ef66bc8fba3ae4a45b718168
query I rowsort
SELECT ALL - col1 + - ( - 70 ) * - col1 AS col0 FROM tab0
----
-6106
-6461
-6887
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab0, tab0 cor2
----
3645 values hashing to 42ae2eaa7bed53d316a0590d597db470
query I rowsort
SELECT ALL col0 + + col1 * - 33 * col0 AS col1 FROM tab0 AS cor0
----
-112000
-267178
-68088
query I rowsort
SELECT DISTINCT - col1 - + 29 FROM tab0 AS cor0
----
-115
-120
-126
query I rowsort
SELECT + + col0 + col1 AS col2 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT ALL - cor0.col2 * + col0 AS col1 FROM tab0 AS cor0
----
-35
-7298
-792
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7455
SELECT ALL + col0 + + CAST( + 42 AS SIGNED ) FROM tab1
----
106
122
45
skipif mysql # not compatible
query I rowsort label-7455
SELECT ALL + col0 + + CAST ( + 42 AS INTEGER ) FROM tab1
----
106
122
45
query I rowsort
SELECT DISTINCT col0 + + col2 * ( + col1 ) FROM tab2 cor0
----
1612
725
844
query I rowsort
SELECT - + col1 + + col0 * + 50 FROM tab2 AS cor0
----
319
3841
3933
query I rowsort
SELECT - cor0.col0 + col0 * + col0 FROM tab0 cor0
----
1190
552
7832
query I rowsort
SELECT DISTINCT - col1 * + col2 FROM tab2 cor0
----
-1534
-646
-837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * - 68 * - 21 col0 FROM tab1 AS cor0
----
14280
18564
37128
query I rowsort
SELECT + col2 + 68 AS col2 FROM tab1 AS cor0
----
122
125
164
onlyif mysql # use DIV operator for integer division
query I rowsort label-7462
SELECT - col2 DIV col1 - - ( + cor0.col0 ) FROM tab2 AS cor0
----
7
77
78
skipif mysql # not compatible
query I rowsort label-7462
SELECT - col2 / col1 - - ( + cor0.col0 ) FROM tab2 AS cor0
----
7
77
78
query I rowsort
SELECT + col2 - + col1 * - col0 FROM tab0 AS cor0
----
2097
3396
8181
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + col2 * + ( - col2 ) col0 FROM tab2 cor0
----
-1461
-735
-760
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - 96 col2 FROM tab2 AS cor0
----
-37
-65
-79
query I rowsort
SELECT ALL - col1 * - ( 83 ) AS col0 FROM tab0 AS cor0
----
7138
7553
8051
query I rowsort
SELECT DISTINCT col1 * col1 * - col0 FROM tab0 AS cor0
----
-177504
-329315
-737009
query I rowsort
SELECT + col0 * ( - col2 ) AS col0 FROM tab0 AS cor0
----
-35
-7298
-792
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + col1 * - col1 - - col2 * - col2 * - col1 col1 FROM tab1
----
119719
32454
75143
query I rowsort
SELECT ALL tab2.col0 * - col2 * col1 AS col2 FROM tab2
----
-119652
-51034
-5859
query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) <> ( + col1 )
----
query I rowsort
SELECT DISTINCT + col0 * col2 AS col2 FROM tab1
----
162
3648
7680
query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) NOT IN ( col1 / col0 )
----
query I rowsort
SELECT + col1 * col2 AS col1 FROM tab1
----
1248
1404
570
query I rowsort
SELECT + col0 AS col1 FROM tab0 WHERE NULL NOT IN ( col0 * col0 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + tab1.col0 col2 FROM tab1
----
1040
640
78
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL IN ( col2 )
----
query I rowsort
SELECT ALL col1 - tab2.col2 FROM tab2
----
-21
33
4
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - tab1.col0 col1 FROM tab1
----
0
0
0
query I rowsort
SELECT col1 * - col2 + col0 * - col1 AS col1 FROM tab0
----
-15561
-3492
-4902
query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) IN ( col2 )
----
query III rowsort
SELECT * FROM tab1 WHERE - col2 * col1 NOT BETWEEN NULL AND col1 * - col2
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 43 * col1 col0 FROM tab1 AS cor0
----
1118
430
559
query I rowsort
SELECT DISTINCT 79 * - col1 FROM tab2 AS cor0
----
-1343
-2449
-4661
onlyif mysql # use DIV operator for integer division
query I rowsort label-7485
SELECT ALL - 1 + col2 DIV + 97 FROM tab2 cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-7485
SELECT ALL - 1 + col2 / + 97 FROM tab2 cor0
----
-1
-1
-1
query I rowsort
SELECT - - cor0.col2 + cor0.col1 * 19 FROM tab0 AS cor0
----
1667
1811
1844
onlyif mysql # use DIV operator for integer division
query I rowsort label-7487
SELECT ALL + col0 + + col2 DIV col1 FROM tab1 AS cor0
----
5
69
87
skipif mysql # not compatible
query I rowsort label-7487
SELECT ALL + col0 + + col2 / col1 FROM tab1 AS cor0
----
5
69
87
query I rowsort
SELECT DISTINCT - col0 + cor0.col1 AS col2 FROM tab0 AS cor0
----
2
62
query I rowsort
SELECT ALL col0 * - col0 + ( + 72 ) FROM tab2 AS cor0
----
-6012
-6169
23
query I rowsort
SELECT ALL col2 + + tab0.col1 AS col0 FROM tab0
----
119
173
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-7491
SELECT col0 * + tab1.col2 + - tab1.col2 * + col2 DIV - col2 + col2 AS col1 FROM tab1
----
270
3762
7872
skipif mysql # not compatible
query I rowsort label-7491
SELECT col0 * + tab1.col2 + - tab1.col2 * + col2 / - col2 + col2 AS col1 FROM tab1
----
270
3762
7872
query I rowsort
SELECT 88 * - col2 AS col1 FROM tab1 cor0
----
-4752
-5016
-8448
query I rowsort
SELECT ALL - + 75 + col0 FROM tab0 AS cor0
----
-40
-51
14
query I rowsort
SELECT DISTINCT - col1 * + 56 + 0 * col1 FROM tab2
----
-1736
-3304
-952
onlyif mysql # use DIV operator for integer division
query I rowsort label-7495
SELECT ALL + col0 DIV - 55 FROM tab1 AS cor0
----
-1
-1
0
skipif mysql # not compatible
query I rowsort label-7495
SELECT ALL + col0 / - 55 FROM tab1 AS cor0
----
-1
-1
0
query I rowsort
SELECT DISTINCT - cor0.col0 + cor0.col2 * cor0.col2 * + cor0.col0 FROM tab1 AS cor0
----
207872
737200
8745
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * + col1 + ( cor0.col1 ) * 63 * col2 col1 FROM tab2 cor0
----
39355
52514
92040
query I rowsort
SELECT col0 * - 50 - + col1 * + col1 FROM tab1 AS cor0
----
-3300
-4169
-826
query I rowsort
SELECT ALL - + col0 * - col1 * col0 AS col0 FROM tab1 AS cor0
----
234
40960
83200
query I rowsort
SELECT ALL - cor0.col0 + + col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - col1 + col0 AS col0 FROM tab1 cor0
----
-23
54
67
query I rowsort
SELECT DISTINCT + col2 + col1 * - 77 * + col2 FROM tab2 AS cor0
----
-118092
-49704
-64422
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * col0 + 14 col1 FROM tab2 cor0
----
203
2042
3016
query I rowsort
SELECT - cor0.col2 FROM tab0, tab0 cor0, tab1 cor1
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc
query I rowsort
SELECT ALL + ( - ( - col0 ) ) + col2 AS col0 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT 51 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * col1 + cor0.col1 * - ( - col2 ) * col2 + 67 * col1 col0 FROM tab0 AS cor0
----
101480
626080
9991
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab2 cor0, tab1 AS cor1, tab2 AS cor2
----
972 values hashing to caf6adb9936510208f5945a7e5c76f14
query I rowsort
SELECT + 2 + + 99 + + col0 * col2 AS col0 FROM tab2 AS cor0
----
2129
290
3103
onlyif mysql # use DIV operator for integer division
query I rowsort label-7510
SELECT DISTINCT col2 DIV col0 + + col1 * - 86 AS col1 FROM tab1 AS cor0
----
-1117
-2218
-860
skipif mysql # not compatible
query I rowsort label-7510
SELECT DISTINCT col2 / col0 + + col1 * - 86 AS col1 FROM tab1 AS cor0
----
-1117
-2218
-860
query I rowsort
SELECT - 3 + 92 * col2 + ( 13 * col1 ) AS col0 FROM tab2 AS cor0
----
2884
3156
3714
query I rowsort
SELECT DISTINCT - cor0.col1 + + col0 * - col0 FROM tab2 cor0
----
-6143
-6258
-80
query I rowsort
SELECT DISTINCT - - cor0.col2 * col2 + col2 AS col1 FROM tab1 AS cor0
----
2970
3306
9312
query I rowsort
SELECT col1 + 10 AS col1 FROM tab2
----
27
41
69
query I rowsort
SELECT ALL + col1 + ( col2 ) AS col1 FROM tab2
----
55
58
85
query I rowsort
SELECT + col1 * + col1 AS col1 FROM tab0 AS cor0
----
7396
8281
9409
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - col1 * ( cor0.col1 * col2 ) col2 FROM tab1 AS cor0
----
1557504
1971216
324900
query I rowsort
SELECT DISTINCT 17 * + col1 + + col0 FROM tab2
----
1081
368
534
query I rowsort
SELECT ALL - 95 + col1 FROM tab0
----
-4
-9
2
query I rowsort
SELECT ALL 84 + cor0.col2 * col1 AS col2 FROM tab0 AS cor0
----
181
2922
7546
query I rowsort
SELECT DISTINCT - - 56 + col0 AS col0 FROM tab2 AS cor0
----
134
135
63
onlyif mysql # use DIV operator for integer division
query I rowsort label-7522
SELECT - col2 * ( 17 ) * col1 + 21 DIV 86 AS col0 FROM tab0 AS cor0
----
-126854
-1649
-48246
skipif mysql # not compatible
query I rowsort label-7522
SELECT - col2 * ( 17 ) * col1 + 21 / 86 AS col0 FROM tab0 AS cor0
----
-126854
-1649
-48246
query I rowsort
SELECT ALL + cor0.col2 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
query I rowsort
SELECT DISTINCT - 68 - col2 FROM tab1
----
-122
-125
-164
query I rowsort
SELECT DISTINCT - + col2 * - col1 + col1 FROM tab0 AS cor0
----
194
2924
7553
query I rowsort
SELECT col1 + ( 72 ) AS col2 FROM tab1 AS cor0
----
82
85
98
query I rowsort
SELECT DISTINCT + - col0 + 79 AS col1 FROM tab1 AS cor0
----
-1
15
76
query I rowsort
SELECT ALL + + col1 - + 44 FROM tab1 AS cor0
----
-18
-31
-34
query I rowsort
SELECT DISTINCT col0 * col0 + - col2 FROM tab0
----
1224
543
7839
query I rowsort
SELECT DISTINCT + 63 + cor0.col0 AS col0 FROM tab2, tab1, tab1 AS cor0
----
127
143
66
query I rowsort
SELECT DISTINCT + col0 + tab2.col0 AS col1 FROM tab2
----
14
156
158
query I rowsort
SELECT col2 + + col2 * col0 + + 98 FROM tab1
----
314
3803
7874
query I rowsort
SELECT + cor0.col1 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
onlyif mysql # use DIV operator for integer division
query I rowsort label-7534
SELECT tab0.col1 DIV col1 + col1 DIV - col0 - col1 * + col0 AS col2 FROM tab0
----
-2066
-3396
-8099
skipif mysql # not compatible
query I rowsort label-7534
SELECT tab0.col1 / col1 + col1 / - col0 - col1 * + col0 AS col2 FROM tab0
----
-2066
-3396
-8099
query I rowsort
SELECT + 24 * tab1.col0 + - col1 * ( col1 + col2 ) AS col1 FROM tab1
----
-2008
503
866
query I rowsort
SELECT col2 - + col0 FROM tab1
----
-7
16
51
query I rowsort
SELECT col2 + col1 * col2 + col1 * - 18 AS col1 FROM tab1 AS cor0
----
1110
447
990
query I rowsort
SELECT DISTINCT cor2.col0 FROM tab2, tab2 AS cor0, tab2 AS cor1, tab0, tab1 AS cor2
----
3
64
80
query I rowsort
SELECT + col2 * cor0.col0 + + 99 * + cor0.col1 FROM tab0 AS cor0
----
16307
9306
9638
query I rowsort
SELECT ALL + - 26 FROM tab2, tab2 cor0
----
9 values hashing to 47d0574274146de273829785364ada39
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0, tab2 cor1, tab0, tab0 AS cor2
----
3645 values hashing to a5677c50b23f70287df35c2388a1c9bf
query I rowsort
SELECT + 62 + col2 FROM tab2 AS cor0
----
100
88
89
query I rowsort
SELECT DISTINCT - col2 + 77 + - col1 FROM tab0
----
-21
-42
-96
query I rowsort
SELECT ALL - + col2 * - col1 FROM tab0 cor0
----
2838
7462
97
query I rowsort
SELECT - - 63 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 38764a6e696d1a6b5095e29ef84959c0
query I rowsort
SELECT + 52 * col1 * col1 AS col1 FROM tab2 AS cor0
----
15028
181012
49972
query I rowsort
SELECT - - col1 * col2 AS col1 FROM tab0 cor0
----
2838
7462
97
query I rowsort
SELECT DISTINCT + 13 * + tab0.col1 AS col0 FROM tab0
----
1118
1183
1261
onlyif mysql # use DIV operator for integer division
query I rowsort label-7549
SELECT ALL 21 DIV + col0 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7549
SELECT ALL 21 / + col0 FROM tab0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-7550
SELECT DISTINCT + col0 DIV col0 FROM tab0
----
1
skipif mysql # not compatible
query I rowsort label-7550
SELECT DISTINCT + col0 / col0 FROM tab0
----
1
query I rowsort
SELECT DISTINCT 96 + + 50 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
146
query I rowsort
SELECT DISTINCT + - col2 * col1 - col1 * - col0 AS col2 FROM tab2 AS cor0
----
-620
3068
697
query I rowsort
SELECT - 98 AS col2 FROM tab2, tab0 cor0, tab1 AS cor1
----
27 values hashing to 9b0655947ad21e0b95a137a474fa6a1f
onlyif mysql # use DIV operator for integer division
query I rowsort label-7554
SELECT + - 74 DIV col0 AS col1 FROM tab2 AS cor0
----
-10
0
0
skipif mysql # not compatible
query I rowsort label-7554
SELECT + - 74 / col0 AS col1 FROM tab2 AS cor0
----
-10
0
0
query I rowsort
SELECT + + col2 + - cor0.col1 FROM tab2 AS cor0
----
-33
-4
21
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * col1 col1 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT ALL - ( col0 ) AS col1 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT + 1 AS col0 FROM tab1 cor0
----
1
1
1
query I rowsort
SELECT DISTINCT - + ( 91 ) + col0 AS col0 FROM tab2 AS cor0
----
-12
-13
-84
query I rowsort
SELECT DISTINCT + - col2 - - col2 AS col0 FROM tab1 AS cor0
----
0
query I rowsort
SELECT - col2 * + col2 * ( cor0.col0 ) + - col1 FROM tab2 AS cor0
----
-114093
-5134
-52787
query I rowsort
SELECT DISTINCT cor0.col2 + cor0.col0 * - ( col1 * + cor0.col1 ) FROM tab2 AS cor0
----
-22793
-271492
-6700
query I rowsort
SELECT ( + col2 ) * col0 - + col0 FROM tab1 AS cor0
----
159
3584
7600
onlyif mysql # use DIV operator for integer division
query I rowsort label-7564
SELECT col0 DIV + col0 FROM tab1 cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-7564
SELECT col0 / + col0 FROM tab1 cor0
----
1
1
1
query I rowsort
SELECT DISTINCT + + 30 + - col0 + + cor0.col2 * col2 FROM tab1 AS cor0
----
2943
3215
9166
query I rowsort
SELECT ALL - cor0.col1 * - 26 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to a84859fb4b95c35066fee6e99fcf3ea6
query I rowsort
SELECT + col0 + col2 - ( + col2 ) FROM tab2 cor0
----
7
78
79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 12 * + cor0.col2 * + ( + col1 ) col1 FROM tab1 AS cor0
----
-14976
-16848
-6840
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 + col0 * + col0 + col0 FROM tab0 AS cor0
----
1260
600
8010
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + ( - 38 ) col0 FROM tab0 AS cor0
----
1254
3116
38
query I rowsort
SELECT + col0 + - col1 AS col2 FROM tab0 cor0
----
-2
-62
-62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 16 * col2 col0 FROM tab2
----
416
432
608
query I rowsort
SELECT DISTINCT col0 + cor0.col0 AS col0 FROM tab0 AS cor0
----
178
48
70
query I rowsort
SELECT DISTINCT + col2 * ( + col2 ) AS col1 FROM tab2
----
1444
676
729
query I rowsort
SELECT DISTINCT - 24 * col1 * + col1 FROM tab1 AS cor0
----
-16224
-2400
-4056
query I rowsort
SELECT ALL + col2 + 87 FROM tab0 AS cor0
----
120
169
88
onlyif mysql # use DIV operator for integer division
query I rowsort label-7578
SELECT DISTINCT - 12 * 15 + col2 * col0 DIV 65 FROM tab2 cor0
----
-134
-149
-178
skipif mysql # not compatible
query I rowsort label-7578
SELECT DISTINCT - 12 * 15 + col2 * col0 / 65 FROM tab2 cor0
----
-134
-149
-178
query I rowsort
SELECT DISTINCT + col0 * + cor0.col0 * col2 FROM tab2 AS cor0
----
1323
158184
237158
query I rowsort
SELECT DISTINCT ( - ( + col0 ) ) + 32 FROM tab2 AS cor0
----
-46
-47
25
query I rowsort
SELECT ALL + - col0 * col2 + + col1 * - col2 * col0 - - cor0.col2 * + 56 * col1 FROM tab2 AS cor0
----
-17860
-35776
40824
query I rowsort
SELECT DISTINCT 86 * col2 * col2 FROM tab0 AS cor0
----
578264
86
93654
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + ( + col1 ) * col1 col1 FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT - ( 39 ) + col0 * cor0.col0 FROM tab0 cor0
----
1186
537
7882
query I rowsort
SELECT ALL ( - col2 ) * col2 AS col2 FROM tab2 AS cor0
----
-1444
-676
-729
query I rowsort
SELECT DISTINCT + - col1 * - col1 FROM tab2 cor0
----
289
3481
961
query I rowsort
SELECT - col2 + col1 * 61 AS col2 FROM tab2
----
1864
3573
999
query I rowsort
SELECT - col2 - + tab0.col1 AS col2 FROM tab0
----
-119
-173
-98
query I rowsort
SELECT - ( + col2 ) - - col1 FROM tab2
----
-21
33
4
query I rowsort
SELECT + ( + col2 * col2 ) FROM tab1
----
2916
3249
9216
query I rowsort
SELECT ALL - ( - col0 ) * col0 AS col0 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT + 79 * - col1 AS col2 FROM tab0 AS cor0
----
-6794
-7189
-7663
query I rowsort
SELECT ALL 18 AS col1 FROM tab2 AS cor0
----
18
18
18
query I rowsort
SELECT + cor0.col2 * col2 FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT DISTINCT - + 65 FROM tab0 AS cor0
----
-65
query I rowsort
SELECT DISTINCT col1 * + col1 AS col2 FROM tab1 AS cor0
----
100
169
676
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 50 col2 FROM tab1 AS cor0
----
50
50
50
query I rowsort
SELECT 92 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a
onlyif mysql # use DIV operator for integer division
query I rowsort label-7599
SELECT DISTINCT 73 DIV col2 - col0 FROM tab0
----
-22
-89
38
skipif mysql # not compatible
query I rowsort label-7599
SELECT DISTINCT 73 / col2 - col0 FROM tab0
----
-22
-89
38
query I rowsort
SELECT + - 46 + + col0 * 88 FROM tab0 AS cor0
----
2066
3034
7786
query I rowsort
SELECT - 56 + + col0 AS col1 FROM tab2 AS cor0
----
-49
22
23
query I rowsort
SELECT ALL - 91 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 745d1c3a09d935465cad552325c5c945
query I rowsort
SELECT ALL col1 * 83 + col2 FROM tab0
----
7171
7635
8052
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + + ( - col1 ) + col2 col2 FROM tab1
----
104
179
82
query I rowsort
SELECT col1 * - ( + col2 ) + col2 AS col0 FROM tab0 AS cor0
----
-2805
-7380
-96
query I rowsort
SELECT - + cor0.col2 * cor0.col0 + col2 AS col2 FROM tab2 AS cor0
----
-162
-2002
-2964
query I rowsort
SELECT ALL - + col1 * + col1 FROM tab2 cor0
----
-289
-3481
-961
query I rowsort
SELECT + - cor0.col1 + + 80 FROM tab0 AS cor0
----
-11
-17
-6
onlyif mysql # use DIV operator for integer division
query I rowsort label-7609
SELECT ALL + - col2 DIV + col1 + ( col1 ) * + col1 AS col2 FROM tab0 AS cor0
----
7396
8281
9409
skipif mysql # not compatible
query I rowsort label-7609
SELECT ALL + - col2 / + col1 + ( col1 ) * + col1 AS col2 FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT ALL + 80 + - 84 AS col1 FROM tab0
----
-4
-4
-4
query I rowsort
SELECT + ( - cor0.col1 ) AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5
onlyif mysql # use DIV operator for integer division
query I rowsort label-7612
SELECT DISTINCT ( + col0 ) DIV + col2 + + col1 FROM tab1
----
11
13
26
skipif mysql # not compatible
query I rowsort label-7612
SELECT DISTINCT ( + col0 ) / + col2 + + col1 FROM tab1
----
11
13
26
query I rowsort
SELECT col2 + + col1 * tab2.col2 FROM tab2
----
1560
684
864
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - col2 - 71 col2 FROM tab0 AS cor0
----
-71
-71
-71
query I rowsort
SELECT col1 * + col2 + col1 * - col0 AS col0 FROM tab1 AS cor0
----
-70
1326
208
query I rowsort
SELECT DISTINCT ( col1 ) * + tab2.col0 AS col0 FROM tab2
----
1343
217
4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab1.col0 * + 87 + - col0 + - tab1.col2 col0 FROM tab1
----
204
5447
6784
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7618
SELECT ALL - CAST( NULL AS SIGNED ) + tab0.col2 AS col1 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7618
SELECT ALL - CAST ( NULL AS INTEGER ) + tab0.col2 AS col1 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col1 + - col2 - + col1 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT + + 62 + - col2 AS col1 FROM tab1 AS cor0
----
-34
5
8
query I rowsort
SELECT DISTINCT - 12 + + col2 AS col0 FROM tab0 AS cor0
----
-11
21
70
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 - - col1 col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + col2 * + col2 + 82 AS col2 FROM tab1 AS cor0
----
2998
3331
9298
query I rowsort
SELECT ALL col2 * col1 - col2 AS col0 FROM tab1 cor0
----
1152
1350
513
query I rowsort
SELECT - cor0.col0 - col2 FROM tab1 AS cor0
----
-121
-176
-57
query I rowsort
SELECT DISTINCT + - col0 * - col0 + col2 * col0 FROM tab2 AS cor0
----
238
8112
9243
query I rowsort
SELECT ALL - ( - col0 ) - col2 * col2 FROM tab2 cor0
----
-1365
-598
-722
query I rowsort
SELECT - 41 * col0 + + cor0.col1 * 82 FROM tab1 AS cor0
----
-1804
-2214
2009
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - ( col0 ) col1 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT DISTINCT + + 5 FROM tab1 AS cor0
----
5
query I rowsort
SELECT DISTINCT - 76 * cor2.col0 FROM tab1 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab2 AS cor2
----
-532
-5928
-6004
onlyif mysql # use DIV operator for integer division
query I rowsort label-7632
SELECT col0 + ( col1 ) DIV col2 FROM tab0
----
132
26
90
skipif mysql # not compatible
query I rowsort label-7632
SELECT col0 + ( col1 ) / col2 FROM tab0
----
132
26
90
query I rowsort
SELECT DISTINCT - col0 * ( + col1 ) * cor0.col1 FROM tab2 cor0
----
-22831
-271518
-6727
query I rowsort
SELECT DISTINCT col0 + + col1 AS col0 FROM tab0 AS cor0
----
110
132
180
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col2 col1 FROM tab0 AS cor0
----
-1
-33
-82
onlyif mysql # use DIV operator for integer division
query I rowsort label-7636
SELECT - cor0.col1 + col1 DIV ( - col2 ) FROM tab0 AS cor0
----
-194
-88
-92
skipif mysql # not compatible
query I rowsort label-7636
SELECT - cor0.col1 + col1 / ( - col2 ) FROM tab0 AS cor0
----
-194
-88
-92
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0, tab0 cor1, tab0, tab1 AS cor2
----
3645 values hashing to e5255b2277726ba4514ff55622dec830
query I rowsort
SELECT ALL - 16 * - col2 FROM tab0 AS cor0
----
1312
16
528
query I rowsort
SELECT DISTINCT + - col1 + - 70 AS col2 FROM tab2 AS cor0
----
-101
-129
-87
onlyif mysql # use DIV operator for integer division
query I rowsort label-7640
SELECT + - 68 DIV col0 AS col1 FROM tab0 AS cor0
----
-1
-2
0
skipif mysql # not compatible
query I rowsort label-7640
SELECT + - 68 / col0 AS col1 FROM tab0 AS cor0
----
-1
-2
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-7641
SELECT - 41 DIV - col1 FROM tab1 AS cor0
----
1
3
4
skipif mysql # not compatible
query I rowsort label-7641
SELECT - 41 / - col1 FROM tab1 AS cor0
----
1
3
4
query I rowsort
SELECT DISTINCT - 31 * - 58 * - col0 FROM tab1
----
-115072
-143840
-5394
query I rowsort
SELECT ALL - 28 AS col2 FROM tab1 AS cor0
----
-28
-28
-28
query I rowsort
SELECT - 41 * - col1 * cor0.col0 AS col1 FROM tab0 cor0
----
139195
332059
84624
onlyif mysql # use DIV operator for integer division
query I rowsort label-7645
SELECT + + 34 DIV col1 AS col1 FROM tab0 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7645
SELECT + + 34 / col1 AS col1 FROM tab0 cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-7646
SELECT ALL + - cor0.col0 DIV cor0.col1 FROM tab1 cor0
----
-6
-6
0
skipif mysql # not compatible
query I rowsort label-7646
SELECT ALL + - cor0.col0 / cor0.col1 FROM tab1 cor0
----
-6
-6
0
query I rowsort
SELECT ALL - 44 AS col0 FROM tab2, tab0 cor0, tab0 AS cor1, tab1 AS cor2
----
81 values hashing to 9c887509d218271b9365009eba440976
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab1 AS cor0, tab1 cor1, tab0 cor2
----
972 values hashing to 909b7ebab62aff8f69dc42ccbb5c2eae
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - col0 col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-7650
SELECT col0 DIV + ( col2 ) AS col1 FROM tab1 cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-7650
SELECT col0 / + ( col2 ) AS col1 FROM tab1 cor0
----
0
0
1
query I rowsort
SELECT 25 * - 5 FROM tab1 AS cor0
----
-125
-125
-125
query I rowsort
SELECT + + ( + 94 ) FROM tab2 AS cor0
----
94
94
94
query I rowsort
SELECT + 28 * col0 FROM tab0 AS cor0
----
2492
672
980
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col0 col2 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT ALL + tab1.col2 AS col1 FROM tab0, tab0 AS cor0 CROSS JOIN tab1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
query I rowsort
SELECT DISTINCT + 31 AS col2 FROM tab2 AS cor0
----
31
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7657
SELECT - CAST( - col1 AS SIGNED ) FROM tab2
----
17
31
59
skipif mysql # not compatible
query I rowsort label-7657
SELECT - CAST ( - col1 AS INTEGER ) FROM tab2
----
17
31
59
query I rowsort
SELECT + col0 * - ( - col0 ) * + col2 + + col2 * - col2 AS col2 FROM tab2 cor0
----
157508
235714
594
query I rowsort
SELECT ALL + col2 + 97 AS col0 FROM tab2 AS cor0
----
123
124
135
query I rowsort
SELECT DISTINCT col0 + ( col1 * + col2 + col0 ) AS col2 FROM tab2 AS cor0
----
1690
804
851
onlyif mysql # use DIV operator for integer division
query I rowsort label-7661
SELECT DISTINCT + + col0 * + 43 - - col0 DIV - col0 AS col2 FROM tab1 cor0
----
128
2751
3439
skipif mysql # not compatible
query I rowsort label-7661
SELECT DISTINCT + + col0 * + 43 - - col0 / - col0 AS col2 FROM tab1 cor0
----
128
2751
3439
query I rowsort
SELECT + col2 + 22 AS col1 FROM tab2 cor0
----
48
49
60
query I rowsort
SELECT ALL - + col0 + 47 AS col2 FROM tab1 AS cor0
----
-17
-33
44
query I rowsort
SELECT + - cor0.col2 * col2 + - col1 * col1 AS col2 FROM tab0 AS cor0
----
-15005
-8485
-9410
query I rowsort
SELECT + + cor0.col1 + - cor0.col0 FROM tab0 AS cor0
----
2
62
62
query I rowsort
SELECT ALL + col0 * - 24 AS col0 FROM tab2
----
-168
-1872
-1896
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7667
SELECT CAST( + 6 AS SIGNED ) FROM tab0, tab1 AS cor0
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821
skipif mysql # not compatible
query I rowsort label-7667
SELECT CAST ( + 6 AS INTEGER ) FROM tab0, tab1 AS cor0
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821
query I rowsort
SELECT 5 * - cor0.col0 AS col1 FROM tab2 cor0
----
-35
-390
-395
onlyif mysql # use DIV operator for integer division
query I rowsort label-7669
SELECT col0 DIV - col0 + col1 * col0 FROM tab1 AS cor0
----
1039
639
77
skipif mysql # not compatible
query I rowsort label-7669
SELECT col0 / - col0 + col1 * col0 FROM tab1 AS cor0
----
1039
639
77
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 81 col2 FROM tab0, tab0 AS cor0
----
81
query I rowsort
SELECT - col2 * 85 AS col1 FROM tab2
----
-2210
-2295
-3230
query I rowsort
SELECT 71 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 95a6ff35b7b8f00868fb58bcaa32d0c2
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7673
SELECT CAST( NULL AS SIGNED ) * - 27 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-7673
SELECT CAST ( NULL AS INTEGER ) * - 27 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT 78 + + 9 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64
onlyif mysql # use DIV operator for integer division
query I rowsort label-7675
SELECT cor0.col1 DIV col1 FROM tab0 cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-7675
SELECT cor0.col1 / col1 FROM tab0 cor0
----
1
1
1
query I rowsort
SELECT ALL - col1 * + col0 AS col0 FROM tab2
----
-1343
-217
-4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-7677
SELECT DISTINCT - + col2 DIV 76 - col1 DIV - col2 FROM tab0 AS cor0
----
0
2
97
skipif mysql # not compatible
query I rowsort label-7677
SELECT DISTINCT - + col2 / 76 - col1 / - col2 FROM tab0 AS cor0
----
0
2
97
query I rowsort
SELECT + + col1 * - 24 FROM tab2 cor0
----
-1416
-408
-744
onlyif mysql # use DIV operator for integer division
query I rowsort label-7679
SELECT DISTINCT - col0 DIV cor0.col1 AS col0 FROM tab1 AS cor0
----
-6
0
skipif mysql # not compatible
query I rowsort label-7679
SELECT DISTINCT - col0 / cor0.col1 AS col0 FROM tab1 AS cor0
----
-6
0
query I rowsort
SELECT + 17 FROM tab0, tab1 AS cor0, tab0 cor1
----
27 values hashing to e0dd9155e4d67132637a04c18ef46b2a
query I rowsort
SELECT DISTINCT - col2 * - col1 + ( col1 ) * + 7 FROM tab1 cor0
----
1339
1586
640
query I rowsort
SELECT + cor0.col1 * - cor0.col0 FROM tab1, tab1 cor0, tab1 cor1
----
27 values hashing to 064f0d12f5a54890818030ba889e7e5c
query I rowsort
SELECT DISTINCT - col2 * 31 * + col0 + col0 FROM tab1
----
-113024
-238000
-5019
query I rowsort
SELECT - col0 * tab0.col2 + - col2 FROM tab0
----
-36
-7380
-825
query I rowsort
SELECT ALL col2 * + col2 * + col1 FROM tab0
----
611884
93654
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-7686
SELECT + col2 DIV 47 + + col0 FROM tab2 AS cor0
----
7
78
79
skipif mysql # not compatible
query I rowsort label-7686
SELECT + col2 / 47 + + col0 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT cor0.col1 AS col1 FROM tab0, tab1 cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + cor0.col1 col2 FROM tab0 cor0
----
2064
3395
8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 48 + + col0 * col2 col1 FROM tab0 AS cor0
----
7346
83
840
query I rowsort
SELECT DISTINCT + col0 + - col0 * col1 AS col1 FROM tab0 cor0
----
-2040
-3360
-8010
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * col0 col0 FROM tab0 AS cor0
----
1225
576
7921
onlyif mysql # use DIV operator for integer division
query I rowsort label-7692
SELECT + col1 + - cor0.col0 DIV - 53 AS col0 FROM tab2 AS cor0
----
18
31
60
skipif mysql # not compatible
query I rowsort label-7692
SELECT + col1 + - cor0.col0 / - 53 AS col0 FROM tab2 AS cor0
----
18
31
60
query I rowsort
SELECT DISTINCT - 6 * col1 + col2 * col2 FROM tab1 AS cor0
----
2760
3189
9138
query I rowsort
SELECT ALL 12 * + col2 * col2 AS col1 FROM tab2
----
17328
8112
8748
query I rowsort
SELECT DISTINCT col1 + - col2 * - 5 AS col0 FROM tab2 AS cor0
----
166
189
207
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * cor0.col2 * - col1 + 21 col2 FROM tab0 AS cor0
----
244089
679063
9430
query I rowsort
SELECT ALL + 10 * + col0 AS col0 FROM tab1 AS cor0
----
30
640
800
query I rowsort
SELECT ALL - col2 + cor0.col1 * cor0.col1 FROM tab0 AS cor0
----
7363
8199
9408
query I rowsort
SELECT ALL cor0.col0 * - col0 AS col0 FROM tab0 AS cor0
----
-1225
-576
-7921
query I rowsort
SELECT DISTINCT + 72 + col2 AS col2 FROM tab2 AS cor0
----
110
98
99
query I rowsort
SELECT col0 * col2 AS col2 FROM tab2 cor0
----
189
2028
3002
query I rowsort
SELECT DISTINCT cor0.col0 + cor0.col1 * + ( + 34 ) AS col0 FROM tab1 AS cor0
----
404
522
887
query I rowsort
SELECT ALL + col1 + - col0 AS col1 FROM tab2 AS cor0
----
-19
-62
24
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 * col1 + col1 col0 FROM tab2 AS cor0
----
1593
663
868
query I rowsort
SELECT ALL + 75 + col2 AS col0 FROM tab2
----
101
102
113
query I rowsort
SELECT ( - col1 ) + - 9 FROM tab0
----
-100
-106
-95
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - col0 col2 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT ALL + col2 * + cor0.col1 + col1 FROM tab1 AS cor0
----
1261
1430
580
query I rowsort
SELECT DISTINCT - 44 + - cor0.col1 * - 60 FROM tab2 AS cor0
----
1816
3496
976
query I rowsort
SELECT + + 94 + col1 AS col2 FROM tab1 AS cor0
----
104
107
120
query I rowsort
SELECT ALL col0 * + col0 * - col1 + - col0 AS col0 FROM tab2 AS cor0
----
-106176
-1526
-359034
query I rowsort
SELECT 97 * - col1 + + col0 AS col1 FROM tab2 AS cor0
----
-1570
-3000
-5645
query I rowsort
SELECT DISTINCT - col0 + cor0.col1 + - 81 AS col2 FROM tab1 AS cor0
----
-135
-148
-58
query I rowsort
SELECT + 44 + - col0 FROM tab2 AS cor0
----
-34
-35
37
query I rowsort
SELECT ALL - col1 + + cor0.col0 AS col2 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT + col1 * + col2 + + col0 + col2 AS col0 FROM tab2 AS cor0
----
1638
763
871
query I rowsort
SELECT ALL col0 + col0 + col1 FROM tab2 AS cor0
----
175
215
45
query I rowsort
SELECT ALL col1 * - cor0.col2 + 13 AS col1 FROM tab1 AS cor0
----
-1235
-1391
-557
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-7720
SELECT - col0 + CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7720
SELECT - col0 + CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-7721
SELECT DISTINCT - cor0.col1 + - ( col0 ) * col2 DIV - col2 AS col0 FROM tab0 AS cor0
----
-2
-62
skipif mysql # not compatible
query I rowsort label-7721
SELECT DISTINCT - cor0.col1 + - ( col0 ) * col2 / - col2 AS col0 FROM tab0 AS cor0
----
-2
-62
query I rowsort
SELECT ALL - col0 * - col0 * 83 FROM tab0 AS cor0
----
101675
47808
657443
query I rowsort
SELECT + col2 * - col2 * cor0.col0 AS col0 FROM tab2 AS cor0
----
-114076
-5103
-52728
query I rowsort
SELECT DISTINCT - col0 * - 68 + + cor0.col2 AS col2 FROM tab2 AS cor0
----
503
5330
5410
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + 55 + - col2 * col1 col2 FROM tab2 AS cor0
----
-1420
-574
-751
query I rowsort
SELECT + col1 + col1 * col2 AS col2 FROM tab2 cor0
----
1593
663
868
query I rowsort
SELECT DISTINCT - col1 * col2 * - col0 + + col2 + col1 * col1 FROM tab0 AS cor0
----
12805
672481
75541
onlyif mysql # use DIV operator for integer division
query I rowsort label-7728
SELECT col1 DIV - col1 + - 45 col1 FROM tab0
----
-46
-46
-46
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7728
SELECT col1 / - col1 + - 45 col1 FROM tab0
----
-46
-46
-46
query I rowsort
SELECT DISTINCT col0 + tab1.col1 AS col0 FROM tab1
----
29
74
93
query I rowsort
SELECT + ( 10 ) * col1 FROM tab0 AS cor0
----
860
910
970
query I rowsort
SELECT DISTINCT + + 98 * + cor0.col1 AS col0 FROM tab2 AS cor0
----
1666
3038
5782
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + col1 ) col0 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT col2 * + col1 AS col0 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT - col2 * + 19 FROM tab0 AS cor0
----
-1558
-19
-627
query I rowsort
SELECT ALL + 50 * - col1 FROM tab1 cor0
----
-1300
-500
-650
query I rowsort
SELECT DISTINCT ( col2 ) - - cor0.col1 FROM tab0 AS cor0
----
119
173
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-7737
SELECT CAST( - col1 AS SIGNED ) DIV + col1 + cor0.col0 * + 29 FROM tab2 AS cor0
----
202
2261
2290
skipif mysql # not compatible
query I rowsort label-7737
SELECT CAST ( - col1 AS INTEGER ) / + col1 + cor0.col0 * + 29 FROM tab2 AS cor0
----
202
2261
2290
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7738
SELECT DISTINCT + CAST( NULL AS SIGNED ) + col1 * col0 * cor0.col1 col1 FROM tab1 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7738
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + col1 * col0 * cor0.col1 col1 FROM tab1 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-7739
SELECT - 53 - 53 DIV - cor0.col2 FROM tab1 AS cor0
----
-53
-53
-53
skipif mysql # not compatible
query I rowsort label-7739
SELECT - 53 - 53 / - cor0.col2 FROM tab1 AS cor0
----
-53
-53
-53
query I rowsort
SELECT DISTINCT col0 * - col0 + col2 * - col1 + - cor0.col2 FROM tab2 AS cor0
----
-6925
-7644
-913
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7741
SELECT ALL CAST( NULL AS SIGNED ) - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7741
SELECT ALL CAST ( NULL AS INTEGER ) - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col1 * col2 - - col2 * col1 FROM tab1 AS cor0
----
1140
2496
2808
query I rowsort
SELECT + + col1 * - col0 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT 95 + col2 AS col0 FROM tab2 AS cor0
----
121
122
133
query I rowsort
SELECT 80 * + 39 FROM tab2, tab0 AS cor0
----
9 values hashing to 75ef03e4ac82ad4326417387530b4bae
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 99 + - col0 col0 FROM tab0 AS cor0
----
10
64
75
query I rowsort
SELECT DISTINCT - col1 - col2 AS col2 FROM tab0
----
-119
-173
-98
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 cor0 CROSS JOIN tab0, tab2 AS cor1
----
972 values hashing to 1e9d01970ae508486ddabec967bb176c
query I rowsort
SELECT - + col2 * 54 FROM tab1 AS cor0
----
-2916
-3078
-5184
query I rowsort
SELECT ALL col0 * + col1 + + col0 AS col1 FROM tab1 cor0
----
1120
704
81
query I rowsort
SELECT DISTINCT - + col2 + 29 FROM tab2 AS cor0
----
-9
2
3
query I rowsort
SELECT DISTINCT col0 * + ( col0 ) + col1 FROM tab0 AS cor0
----
1322
662
8012
query I rowsort
SELECT ALL - col2 * - col1 * 68 FROM tab0
----
192984
507416
6596
onlyif mysql # use DIV operator for integer division
query I rowsort label-7754
SELECT - col1 DIV + tab2.col0 + 56 AS col1 FROM tab2
----
52
56
56
skipif mysql # not compatible
query I rowsort label-7754
SELECT - col1 / + tab2.col0 + 56 AS col1 FROM tab2
----
52
56
56
query I rowsort
SELECT ALL col2 * tab1.col2 AS col1 FROM tab1
----
2916
3249
9216
query I rowsort
SELECT col2 * + 82 AS col2 FROM tab0 AS cor0
----
2706
6724
82
query I rowsort
SELECT ALL - cor0.col0 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2, tab0 AS cor1
----
27 values hashing to 729c1edda9332398299f39cd174ed840
onlyif mysql # use DIV operator for integer division
query I rowsort label-7758
SELECT - - col2 + col0 DIV - col0 FROM tab2 AS cor0
----
25
26
37
skipif mysql # not compatible
query I rowsort label-7758
SELECT - - col2 + col0 / - col0 FROM tab2 AS cor0
----
25
26
37
query I rowsort
SELECT col1 * + col2 + col2 FROM tab1 AS cor0
----
1344
1458
627
query I rowsort
SELECT ALL tab0.col0 * col0 * - 30 + tab0.col1 FROM tab0
----
-17194
-237539
-36653
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 12 col2 FROM tab2, tab2 AS cor0 CROSS JOIN tab1
----
12
query I rowsort
SELECT ALL col0 * col0 + - col2 * - 69 * + col0 AS col0 FROM tab2
----
13090
146016
213379
query I rowsort
SELECT DISTINCT + col2 * - 88 + col2 FROM tab2
----
-2262
-2349
-3306
query I rowsort
SELECT 22 * - tab2.col2 AS col2 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to ddae91ec516f163c638c12fe31699a87
onlyif mysql # use DIV operator for integer division
query I rowsort label-7765
SELECT - cor0.col0 DIV - col2 FROM tab0 AS cor0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-7765
SELECT - cor0.col0 / - col2 FROM tab0 AS cor0
----
0
1
35
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7766
SELECT CAST( NULL AS DECIMAL ) / 83 FROM tab2, tab0 AS cor0, tab2 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-7766
SELECT CAST ( NULL AS REAL ) / 83 FROM tab2, tab0 AS cor0, tab2 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
onlyif mysql # use DIV operator for integer division
query I rowsort label-7767
SELECT DISTINCT + ( - tab2.col2 + - 24 ) DIV + tab2.col1 FROM tab2
----
-1
-3
0
skipif mysql # not compatible
query I rowsort label-7767
SELECT DISTINCT + ( - tab2.col2 + - 24 ) / + tab2.col1 FROM tab2
----
-1
-3
0
query I rowsort
SELECT ALL - 34 * + tab0.col1 AS col0 FROM tab0
----
-2924
-3094
-3298
query I rowsort
SELECT ALL - 35 FROM tab0, tab0 cor0, tab2 cor1
----
27 values hashing to 6d967b3bac2e01a0318865f682f9a97b
onlyif mysql # use DIV operator for integer division
query I rowsort label-7770
SELECT DISTINCT + cor0.col0 * col1 DIV col2 FROM tab0 AS cor0
----
3395
62
98
skipif mysql # not compatible
query I rowsort label-7770
SELECT DISTINCT + cor0.col0 * col1 / col2 FROM tab0 AS cor0
----
3395
62
98
query I rowsort
SELECT - - col1 + + col1 * - col2 FROM tab0 cor0
----
-2752
-7371
0
query I rowsort
SELECT DISTINCT + 82 FROM tab2 cor0
----
82
query I rowsort
SELECT ALL - 14 * + col1 AS col1 FROM tab1 AS cor0
----
-140
-182
-364
query I rowsort
SELECT ALL - cor0.col2 + col0 * - 38 - - cor0.col2 FROM tab2 AS cor0
----
-266
-2964
-3002
query I rowsort
SELECT DISTINCT - col2 * - col1 - - col2 AS col1 FROM tab0 AS cor0
----
2871
7544
98
query I rowsort
SELECT + col1 + col1 * + col2 FROM tab0 AS cor0
----
194
2924
7553
query I rowsort
SELECT ALL - 8 * - col1 AS col2 FROM tab1 AS cor0
----
104
208
80
query I rowsort
SELECT ALL + - 6 * col0 FROM tab2 AS cor0
----
-42
-468
-474
query I rowsort
SELECT - col1 + col2 AS col0 FROM tab0 cor0
----
-53
-9
-96
query I rowsort
SELECT ALL cor0.col0 + - cor0.col1 + cor0.col1 FROM tab1, tab1 AS cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870
query I rowsort
SELECT + + col1 * col0 + + col0 AS col2 FROM tab2 AS cor0
----
1422
224
4680
onlyif mysql # use DIV operator for integer division
query I rowsort label-7782
SELECT - col2 + - col1 DIV - col0 FROM tab0 AS cor0
----
-30
-81
1
skipif mysql # not compatible
query I rowsort label-7782
SELECT - col2 + - col1 / - col0 FROM tab0 AS cor0
----
-30
-81
1
query I rowsort
SELECT ALL - 38 FROM tab1
----
-38
-38
-38
query I rowsort
SELECT ALL + - 2 + cor0.col0 * col0 FROM tab2 AS cor0
----
47
6082
6239
query I rowsort
SELECT ALL + 83 AS col1 FROM tab2
----
83
83
83
query I rowsort
SELECT - 13 + 74 FROM tab2 AS cor0
----
61
61
61
query I rowsort
SELECT DISTINCT - ( - 81 ) * col0 FROM tab1 AS cor0
----
243
5184
6480
query I rowsort
SELECT DISTINCT 67 * ( + col1 ) FROM tab2 AS cor0
----
1139
2077
3953
query I rowsort
SELECT + cor0.col2 * + col1 FROM tab0 AS cor0
----
2838
7462
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 48 + col2 col0 FROM tab2 AS cor0
----
-10
-21
-22
query I rowsort
SELECT col0 * col2 + - col1 FROM tab2 AS cor0
----
158
1969
2985
query I rowsort
SELECT + + col2 * col1 + col1 FROM tab1 AS cor0
----
1261
1430
580
query I rowsort
SELECT + col1 + + col1 FROM tab1 cor0
----
20
26
52
query I rowsort
SELECT + 78 AS col1 FROM tab2
----
78
78
78
query I rowsort
SELECT + 99 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db
query I rowsort
SELECT col0 * col1 * - col2 AS col0 FROM tab0
----
-3395
-664118
-68112
onlyif mysql # use DIV operator for integer division
query I rowsort label-7797
SELECT ( cor0.col0 ) DIV - col0 AS col1 FROM tab2 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-7797
SELECT ( cor0.col0 ) / - col0 AS col1 FROM tab2 AS cor0
----
-1
-1
-1
query I rowsort
SELECT DISTINCT col1 + col2 + tab0.col1 FROM tab0
----
195
205
264
query I rowsort
SELECT DISTINCT + col0 * col2 + col2 AS col2 FROM tab1
----
216
3705
7776
query I rowsort
SELECT DISTINCT - ( tab1.col2 * col1 ) + col2 + + tab1.col2 AS col2 FROM tab1
----
-1056
-1296
-456
query I rowsort
SELECT DISTINCT - + 44 + - 80 FROM tab1 cor0
----
-124
query I rowsort
SELECT 57 + cor0.col2 * col1 AS col0 FROM tab1 AS cor0
----
1305
1461
627
query I rowsort
SELECT - ( + 68 ) + - col1 * ( + col2 + col1 ) AS col0 FROM tab0 cor0
----
-10302
-15811
-9574
query I rowsort
SELECT ( - col2 ) + col1 * + 45 FROM tab1 AS cor0
----
1116
393
489
query I rowsort
SELECT DISTINCT cor0.col1 * 58 FROM tab1, tab0 AS cor0
----
4988
5278
5626
query I rowsort
SELECT ALL + 87 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64
query I rowsort
SELECT DISTINCT + 25 + - col1 AS col2 FROM tab2
----
-34
-6
8
query I rowsort
SELECT DISTINCT col2 + + col2 AS col0 FROM tab0
----
164
2
66
query I rowsort
SELECT - col1 - col0 * + col1 AS col2 FROM tab2
----
-1360
-248
-4661
query I rowsort
SELECT - - ( - cor0.col0 ) * col1 + - col1 FROM tab0 AS cor0
----
-2150
-3492
-8190
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7811
SELECT - CAST( NULL AS SIGNED ) + + col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7811
SELECT - CAST ( NULL AS INTEGER ) + + col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 8 * - col2 col1 FROM tab1
----
-432
-456
-768
onlyif mysql # use DIV operator for integer division
query I rowsort label-7813
SELECT - col0 DIV tab1.col0 AS col0 FROM tab1
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-7813
SELECT - col0 / tab1.col0 AS col0 FROM tab1
----
-1
-1
-1
query I rowsort
SELECT DISTINCT - tab0.col0 FROM tab0, tab1, tab1 AS cor0
----
-24
-35
-89
query I rowsort
SELECT DISTINCT col1 * - col2 AS col2 FROM tab2
----
-1534
-646
-837
query I rowsort
SELECT 67 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to eea8a0738728ea55e4e7ba1506c9905a
query I rowsort
SELECT + tab1.col2 AS col2 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + - 26 col0 FROM tab0
----
-2
63
9
query I rowsort
SELECT - cor0.col0 + 57 - col2 FROM tab1 AS cor0
----
-119
-64
0
query I rowsort
SELECT - cor0.col1 + ( + col0 ) + cor0.col2 FROM tab0 AS cor0
----
-29
-61
80
query I rowsort
SELECT ALL - - col2 * - cor0.col2 AS col1 FROM tab1 cor0
----
-2916
-3249
-9216
query I rowsort
SELECT col1 + + col1 * + col2 * col1 AS col0 FROM tab0 AS cor0
----
244154
679133
9506
onlyif mysql # use DIV operator for integer division
query I rowsort label-7823
SELECT ALL - col2 DIV + col2 AS col1 FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-7823
SELECT ALL - col2 / + col2 AS col1 FROM tab0 AS cor0
----
-1
-1
-1
query I rowsort
SELECT DISTINCT + + cor0.col2 * ( 64 ) AS col1 FROM tab0 AS cor0
----
2112
5248
64
query I rowsort
SELECT - col1 + - 42 FROM tab1 AS cor0
----
-52
-55
-68
query I rowsort
SELECT - col1 + - col2 * cor0.col0 AS col1 FROM tab1 AS cor0
----
-188
-3658
-7693
query I rowsort
SELECT ALL + col1 + 78 FROM tab1
----
104
88
91
query I rowsort
SELECT col1 + col1 + - tab2.col1 AS col0 FROM tab2
----
17
31
59
query I rowsort
SELECT DISTINCT col0 + + 22 FROM tab0
----
111
46
57
query I rowsort
SELECT col2 * 32 FROM tab0
----
1056
2624
32
query I rowsort
SELECT + col2 + + 71 FROM tab2
----
109
97
98
query I rowsort
SELECT ALL tab0.col2 * + 94 + ( col0 ) FROM tab0
----
129
3126
7797
query I rowsort
SELECT + col1 * 63 + - col2 * col2 FROM tab1 AS cor0
----
-1278
-2619
-8397
query I rowsort
SELECT - col1 * cor0.col1 + col0 * col0 AS col0 FROM tab1 AS cor0
----
-667
3996
6231
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + col2 col0 FROM tab0
----
164
2
66
onlyif mysql # use DIV operator for integer division
query I rowsort label-7836
SELECT DISTINCT col1 + + 65 DIV col2 FROM tab1 AS cor0
----
11
13
27
skipif mysql # not compatible
query I rowsort label-7836
SELECT DISTINCT col1 + + 65 / col2 FROM tab1 AS cor0
----
11
13
27
query I rowsort
SELECT ALL - cor0.col0 + + 98 FROM tab0 AS cor0
----
63
74
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-7838
SELECT - col1 + - 40 DIV - col0 AS col1 FROM tab2 AS cor0
----
-17
-26
-59
skipif mysql # not compatible
query I rowsort label-7838
SELECT - col1 + - 40 / - col0 AS col1 FROM tab2 AS cor0
----
-17
-26
-59
onlyif mysql # use DIV operator for integer division
query I rowsort label-7839
SELECT ALL 44 DIV col1 AS col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7839
SELECT ALL 44 / col1 AS col1 FROM tab0 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + - col1 col1 FROM tab2 AS cor0
----
-55
-58
-85
query I rowsort
SELECT DISTINCT - col1 + + cor0.col1 AS col1 FROM tab1 cor0
----
0
query I rowsort
SELECT DISTINCT col2 * - cor0.col2 + col0 AS col2 FROM tab0 AS cor0
----
-1065
-6635
34
query I rowsort
SELECT + - ( + col0 ) * - col0 + col2 FROM tab2 AS cor0
----
6110
6279
76
query I rowsort
SELECT ALL ( ( col0 ) ) * - 23 AS col0 FROM tab0 AS cor0
----
-2047
-552
-805
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 32 - col2 col0 FROM tab2 cor0
----
-6
5
6
query I rowsort
SELECT ALL + 76 AS col1 FROM tab2 AS cor0
----
76
76
76
query I rowsort
SELECT DISTINCT - 11 * - col2 FROM tab2 AS cor0
----
286
297
418
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 34 + + col0 col1 FROM tab1 AS cor0
----
114
37
98
query I rowsort
SELECT + col0 * 91 + - col1 * col2 FROM tab0 cor0
----
-654
3088
637
query I rowsort
SELECT ALL + col2 * 10 + col1 - col0 AS col1 FROM tab2
----
241
294
318
query I rowsort
SELECT DISTINCT col1 * col1 + - 90 - col0 * ( ( col2 ) ) AS col1 FROM tab0
----
6514
893
9284
query I rowsort
SELECT DISTINCT + + ( col0 ) * - col2 + + 9 FROM tab0 AS cor0
----
-26
-7289
-783
query I rowsort
SELECT - col0 + + col0 * cor0.col0 FROM tab2 AS cor0
----
42
6006
6162
query I rowsort
SELECT DISTINCT + ( + 28 ) * col1 FROM tab2 cor0
----
1652
476
868
onlyif mysql # use DIV operator for integer division
query I rowsort label-7855
SELECT + + 64 DIV - col0 + + col0 FROM tab0 AS cor0
----
22
34
89
skipif mysql # not compatible
query I rowsort label-7855
SELECT + + 64 / - col0 + + col0 FROM tab0 AS cor0
----
22
34
89
query I rowsort
SELECT ALL - ( 40 ) AS col1 FROM tab2 AS cor0
----
-40
-40
-40
onlyif mysql # use DIV operator for integer division
query I rowsort label-7857
SELECT ALL - ( col1 ) DIV col1 AS col0 FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-7857
SELECT ALL - ( col1 ) / col1 AS col0 FROM tab0 AS cor0
----
-1
-1
-1
query I rowsort
SELECT - + ( col0 ) - cor0.col0 AS col1 FROM tab2 AS cor0
----
-14
-156
-158
query I rowsort
SELECT + col2 * - col0 * - col2 AS col0 FROM tab0 AS cor0
----
26136
35
598436
query I rowsort
SELECT 18 * col1 FROM tab2 AS cor0
----
1062
306
558
query I rowsort
SELECT ALL - 97 + cor0.col2 * - col2 + cor0.col1 AS col2 FROM tab2 AS cor0
----
-1524
-714
-795
onlyif mysql # use DIV operator for integer division
query I rowsort label-7862
SELECT DISTINCT + col0 DIV col0 AS col0 FROM tab2 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-7862
SELECT DISTINCT + col0 / col0 AS col0 FROM tab2 AS cor0
----
1
query I rowsort
SELECT cor0.col1 * col1 AS col0 FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT DISTINCT - cor0.col0 * + col0 + + col0 FROM tab1 AS cor0
----
-4032
-6
-6320
query I rowsort
SELECT ALL + + col0 + - col2 FROM tab0 AS cor0
----
-9
34
7
query I rowsort
SELECT DISTINCT col1 * - cor0.col0 * 75 + col0 FROM tab2 cor0
----
-100646
-16268
-345072
query I rowsort
SELECT ALL - cor0.col1 * col1 + - 39 FROM tab2 AS cor0
----
-1000
-328
-3520
query I rowsort
SELECT ALL - + ( col2 ) AS col0 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT ALL col0 * + col1 + ( + col1 ) AS col0 FROM tab1 AS cor0
----
104
1053
650
query I rowsort
SELECT - - col1 + cor0.col2 AS col1 FROM tab1 cor0
----
109
67
80
query I rowsort
SELECT ALL - - cor0.col1 * - col0 AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7872
SELECT DISTINCT + cor0.col1 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7872
SELECT DISTINCT + cor0.col1 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT ALL + col2 + ( - cor0.col2 * + col2 ) + + 15 FROM tab1 AS cor0
----
-2847
-3177
-9105
onlyif mysql # use DIV operator for integer division
query I rowsort label-7874
SELECT col2 * tab2.col0 + + col2 DIV col1 AS col0 FROM tab2
----
189
2028
3004
skipif mysql # not compatible
query I rowsort label-7874
SELECT col2 * tab2.col0 + + col2 / col1 AS col0 FROM tab2
----
189
2028
3004
query I rowsort
SELECT ALL tab0.col0 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63
onlyif mysql # use DIV operator for integer division
query I rowsort label-7876
SELECT ALL + col1 * col0 DIV + col2 FROM tab1
----
1
10
11
skipif mysql # not compatible
query I rowsort label-7876
SELECT ALL + col1 * col0 / + col2 FROM tab1
----
1
10
11
query I rowsort
SELECT - + 21 + - col0 + col1 FROM tab1 AS cor0
----
-75
-88
2
query I rowsort
SELECT + 15 * cor1.col1 AS col2 FROM tab0, tab0 AS cor0, tab2 AS cor1, tab2 AS cor2
----
81 values hashing to 7d59f2610048ca4bb61970e264e5d1ed
query I rowsort
SELECT ALL + - ( col2 ) + 67 FROM tab0 AS cor0
----
-15
34
66
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7880
SELECT - col0 * - col0 + CAST( - col1 * col0 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-1488
-178
-2170
skipif mysql # not compatible
query I rowsort label-7880
SELECT - col0 * - col0 + CAST ( - col1 * col0 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-1488
-178
-2170
query I rowsort
SELECT + col1 * ( - 35 ) + - col1 FROM tab1 AS cor0
----
-360
-468
-936
query I rowsort
SELECT - col2 + + col0 * ( col1 ) FROM tab1 AS cor0
----
24
583
944
query I rowsort
SELECT ALL + + cor0.col0 AS col1 FROM tab0 AS cor0
----
24
35
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 + - 85 col2 FROM tab1 AS cor0
----
-28
-31
11
query I rowsort
SELECT - col2 * 37 AS col2 FROM tab1 AS cor0
----
-1998
-2109
-3552
query I rowsort
SELECT - 89 * + col0 AS col2 FROM tab2
----
-623
-6942
-7031
query I rowsort
SELECT ALL col0 * - col2 AS col1 FROM tab1
----
-162
-3648
-7680
query I rowsort
SELECT col0 + - 45 FROM tab1 AS cor0
----
-42
19
35
query I rowsort
SELECT ALL - ( - 69 ) - + col0 AS col2 FROM tab1 AS cor0
----
-11
5
66
query I rowsort
SELECT - 39 * col0 + - col1 AS col2 FROM tab1 cor0
----
-143
-2506
-3133
query I rowsort
SELECT DISTINCT + col2 + 60 AS col0 FROM tab0 AS cor0
----
142
61
93
query I rowsort
SELECT DISTINCT - + ( col0 ) * - col0 AS col0 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT - 46 * + 48 AS col0 FROM tab0 AS cor0
----
-2208
-2208
-2208
onlyif mysql # use DIV operator for integer division
query I rowsort label-7894
SELECT ALL col2 DIV col0 + col0 FROM tab2 AS cor0
----
10
78
79
skipif mysql # not compatible
query I rowsort label-7894
SELECT ALL col2 / col0 + col0 FROM tab2 AS cor0
----
10
78
79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 31 * - col0 col1 FROM tab0 cor0
----
-1085
-2759
-744
query I rowsort
SELECT ALL + + col1 + col2 * col2 * 14 + col2 * cor0.col0 * + 51 AS col1 FROM tab0 AS cor0
----
1896
466425
55724
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7897
SELECT ALL + + ( - col0 ) * col1 - + CAST( NULL AS SIGNED ) * - col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7897
SELECT ALL + + ( - col0 ) * col1 - + CAST ( NULL AS INTEGER ) * - col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-7898
SELECT DISTINCT - 28 DIV - col0 + col2 AS col1 FROM tab0 cor0
----
1
34
82
skipif mysql # not compatible
query I rowsort label-7898
SELECT DISTINCT - 28 / - col0 + col2 AS col1 FROM tab0 cor0
----
1
34
82
query I rowsort
SELECT col2 * + 9 FROM tab2 cor0
----
234
243
342
query I rowsort
SELECT ALL + - 98 * 82 AS col0 FROM tab0 AS cor0
----
-8036
-8036
-8036
query I rowsort
SELECT DISTINCT 64 + + col0 + col2 AS col0 FROM tab2 AS cor0
----
168
181
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-7902
SELECT ALL + - cor0.col2 * col1 + - col1 DIV + 60 FROM tab2 AS cor0
----
-1534
-646
-837
skipif mysql # not compatible
query I rowsort label-7902
SELECT ALL + - cor0.col2 * col1 + - col1 / + 60 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT - col1 + - 96 FROM tab1 AS cor0
----
-106
-109
-122
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7904
SELECT ALL col1 - CAST( 33 AS SIGNED ) FROM tab2
----
-16
-2
26
skipif mysql # not compatible
query I rowsort label-7904
SELECT ALL col1 - CAST ( 33 AS INTEGER ) FROM tab2
----
-16
-2
26
query I rowsort
SELECT + col1 - cor0.col0 * + col2 FROM tab0 AS cor0
----
-706
-7207
62
query I rowsort
SELECT - ( cor0.col0 ) + - col1 AS col1 FROM tab2 AS cor0
----
-137
-38
-96
query I rowsort
SELECT - + col1 + + 95 AS col1 FROM tab2 AS cor0
----
36
64
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-7908
SELECT col2 DIV + 1 + + col2 col1 FROM tab2 AS cor0
----
52
54
76
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7908
SELECT col2 / + 1 + + col2 col1 FROM tab2 AS cor0
----
52
54
76
query I rowsort
SELECT ALL 17 + + 28 FROM tab2
----
45
45
45
query I rowsort
SELECT - + col1 * + col2 + - ( + col1 ) * col1 AS col0 FROM tab0 AS cor0
----
-10234
-15743
-9506
query I rowsort
SELECT - + col1 + col1 AS col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT col1 * + col0 + col1 AS col0 FROM tab1
----
104
1053
650
query I rowsort
SELECT + ( col0 ) + - cor0.col2 FROM tab2 cor0
----
-20
41
52
query I rowsort
SELECT - 94 * - cor0.col1 AS col2 FROM tab2 AS cor0
----
1598
2914
5546
query I rowsort
SELECT - + cor0.col0 + - col2 AS col0 FROM tab2 AS cor0
----
-104
-117
-34
query I rowsort
SELECT DISTINCT + - 80 FROM tab2 AS cor0
----
-80
query I rowsort
SELECT - + 64 * col1 + ( + col1 ) AS col1 FROM tab2 cor0
----
-1071
-1953
-3717
query I rowsort
SELECT - 13 + col1 * col0 * + col1 AS col0 FROM tab1 AS cor0
----
13507
2015
6387
query I rowsort
SELECT ALL + 42 * + col2 FROM tab0 AS cor0
----
1386
3444
42
query I rowsort
SELECT DISTINCT + col0 + col0 + col0 FROM tab2 AS cor0
----
21
234
237
query I rowsort
SELECT + + 67 * - cor0.col2 FROM tab2 cor0
----
-1742
-1809
-2546
query I rowsort
SELECT ALL cor0.col0 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2, tab0 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
query I rowsort
SELECT ALL cor0.col1 * 77 FROM tab2 AS cor0 CROSS JOIN tab1, tab2 AS cor1
----
27 values hashing to 538ea6941bcb7de28e350b1a316321ee
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 AS cor0, tab1 AS cor1, tab2, tab0 cor2
----
3645 values hashing to 489b7b2b5c4980d50e86e51be30361c3
query I rowsort
SELECT col1 + 96 AS col0 FROM tab2 AS cor0
----
113
127
155
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7926
SELECT ALL CAST( + tab2.col0 AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab2 AS cor2
----
81 values hashing to 05835f29dd9cd4fa16889de54dec3cb6
skipif mysql # not compatible
query I rowsort label-7926
SELECT ALL CAST ( + tab2.col0 AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab2 AS cor2
----
81 values hashing to 05835f29dd9cd4fa16889de54dec3cb6
query I rowsort
SELECT col2 + col0 * col0 AS col2 FROM tab2
----
6110
6279
76
query I rowsort
SELECT + col2 * + 73 * - col2 AS col2 FROM tab0 AS cor0
----
-490852
-73
-79497
onlyif mysql # use DIV operator for integer division
query I rowsort label-7929
SELECT ALL col2 DIV + ( + 55 ) FROM tab1
----
0
1
1
skipif mysql # not compatible
query I rowsort label-7929
SELECT ALL col2 / + ( + 55 ) FROM tab1
----
0
1
1
query I rowsort
SELECT col0 * 1 * - col0 + col1 + - 22 * col1 FROM tab1 AS cor0
----
-4306
-555
-6673
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7931
SELECT - - CAST( NULL AS SIGNED ) + + 49 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7931
SELECT - - CAST ( NULL AS INTEGER ) + + 49 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7932
SELECT + CAST( col2 AS SIGNED ) + - col0 FROM tab1 AS cor0
----
-7
16
51
skipif mysql # not compatible
query I rowsort label-7932
SELECT + CAST ( col2 AS INTEGER ) + - col0 FROM tab1 AS cor0
----
-7
16
51
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 - + 87 col1 FROM tab0 AS cor0
----
-5
-54
-86
query I rowsort
SELECT DISTINCT + col0 + + col1 * cor0.col0 AS col0 FROM tab2 AS cor0
----
1422
224
4680
query I rowsort
SELECT ALL + col2 * ( col1 ) AS col1 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT col2 + ( col0 ) - + col1 * + col0 FROM tab1 AS cor0
----
-21
-519
-864
query I rowsort
SELECT ALL col0 * - ( 18 * col0 ) + - 37 + col1 AS col1 FROM tab1 cor0
----
-115224
-173
-73755
query I rowsort
SELECT - cor0.col0 * + col0 + col1 FROM tab0 AS cor0
----
-1128
-490
-7830
query I rowsort
SELECT ALL - - col2 + col0 * + 72 FROM tab0 AS cor0
----
1761
2521
6490
query I rowsort
SELECT - - col0 - col1 * col0 AS col0 FROM tab0 AS cor0
----
-2040
-3360
-8010
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 + + cor0.col1 * cor0.col0 col1 FROM tab2 AS cor0
----
1360
248
4661
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7942
SELECT + + col1 * CAST( col2 AS SIGNED ) + col0 FROM tab2 AS cor0
----
1612
725
844
skipif mysql # not compatible
query I rowsort label-7942
SELECT + + col1 * CAST ( col2 AS INTEGER ) + col0 FROM tab2 AS cor0
----
1612
725
844
onlyif mysql # use DIV operator for integer division
query I rowsort label-7943
SELECT ALL - + col2 DIV cor0.col2 - 70 AS col1 FROM tab0 AS cor0
----
-71
-71
-71
skipif mysql # not compatible
query I rowsort label-7943
SELECT ALL - + col2 / cor0.col2 - 70 AS col1 FROM tab0 AS cor0
----
-71
-71
-71
query I rowsort
SELECT - col0 * col2 * col1 AS col2 FROM tab0 AS cor0
----
-3395
-664118
-68112
query I rowsort
SELECT DISTINCT - ( cor0.col2 ) + col2 FROM tab1 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 19 * - col2 + cor0.col0 col2 FROM tab0 AS cor0
----
-1469
-603
16
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - cor0.col0 col2 FROM tab1 AS cor0
----
-3
-64
-80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col2 + col2 * - col0 col2 FROM tab0 AS cor0
----
-34
-7216
-759
query I rowsort
SELECT col1 + 30 + - col2 * - col1 AS col0 FROM tab1 AS cor0
----
1291
1460
610
query I rowsort
SELECT ALL - - 24 AS col2 FROM tab1 AS cor0
----
24
24
24
query I rowsort
SELECT DISTINCT - col0 - - col1 FROM tab1
----
-54
-67
23
query I rowsort
SELECT - col0 * + col2 * 55 - + col2 AS col0 FROM tab0
----
-1926
-401472
-43593
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 27 * col1 + - cor0.col0 * + col1 col0 FROM tab2 AS cor0
----
-1054
-1802
-6195
query I rowsort
SELECT DISTINCT + ( col1 ) + + col2 FROM tab0 cor0
----
119
173
98
query I rowsort
SELECT + + cor0.col0 + + cor0.col1 AS col0 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT ALL - ( - col2 ) FROM tab0 cor0
----
1
33
82
query I rowsort
SELECT + + 75 + - col0 FROM tab2 AS cor0
----
-3
-4
68
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7958
SELECT ALL CAST( - 50 AS SIGNED ) FROM tab0
----
-50
-50
-50
skipif mysql # not compatible
query I rowsort label-7958
SELECT ALL CAST ( - 50 AS INTEGER ) FROM tab0
----
-50
-50
-50
query I rowsort
SELECT 32 * col1 FROM tab0 AS cor0
----
2752
2912
3104
onlyif mysql # use DIV operator for integer division
query I rowsort label-7960
SELECT col0 * col1 DIV - 49 AS col0 FROM tab0
----
-165
-42
-69
skipif mysql # not compatible
query I rowsort label-7960
SELECT col0 * col1 / - 49 AS col0 FROM tab0
----
-165
-42
-69
query I rowsort
SELECT DISTINCT - col2 + + ( 91 * cor0.col1 ) FROM tab2 AS cor0
----
1509
2794
5343
query I rowsort
SELECT ALL - col0 + col0 * - col2 AS col1 FROM tab0 cor0
----
-70
-7387
-816
query I rowsort
SELECT col2 + ( 46 ) FROM tab1 AS cor0
----
100
103
142
query I rowsort
SELECT ALL + + col2 AS col0 FROM tab0 cor0
----
1
33
82
query I rowsort
SELECT + col0 * + tab0.col2 FROM tab0
----
35
7298
792
query I rowsort
SELECT - col1 * tab2.col0 AS col0 FROM tab2
----
-1343
-217
-4602
query I rowsort
SELECT ( col2 ) - + 17 AS col0 FROM tab0
----
-16
16
65
onlyif mysql # use DIV operator for integer division
query I rowsort label-7968
SELECT ALL + tab1.col0 DIV col1 AS col1 FROM tab1
----
0
6
6
skipif mysql # not compatible
query I rowsort label-7968
SELECT ALL + tab1.col0 / col1 AS col1 FROM tab1
----
0
6
6
query I rowsort
SELECT DISTINCT col2 * ( 89 ) + + col2 * 22 FROM tab2 AS cor0
----
2886
2997
4218
onlyif mysql # use DIV operator for integer division
query I rowsort label-7970
SELECT DISTINCT - col2 + + col1 DIV - col1 FROM tab0 AS cor0
----
-2
-34
-83
skipif mysql # not compatible
query I rowsort label-7970
SELECT DISTINCT - col2 + + col1 / - col1 FROM tab0 AS cor0
----
-2
-34
-83
query I rowsort
SELECT DISTINCT + - col1 * ( 96 ) * + col0 FROM tab1 AS cor0
----
-61440
-7488
-99840
query I rowsort
SELECT 80 FROM tab2
----
80
80
80
query I rowsort
SELECT + col1 * + col2 AS col1 FROM tab2
----
1534
646
837
onlyif mysql # use DIV operator for integer division
query I rowsort label-7974
SELECT - col1 DIV + ( col0 ) AS col0 FROM tab2
----
-4
0
0
skipif mysql # not compatible
query I rowsort label-7974
SELECT - col1 / + ( col0 ) AS col0 FROM tab2
----
-4
0
0
query I rowsort
SELECT DISTINCT - col2 * - col0 + - col0 * col0 * - 80 + 31 AS col1 FROM tab0
----
46903
641009
98066
query I rowsort
SELECT DISTINCT - + col2 * + ( + 74 ) - col2 AS col0 FROM tab2 AS cor0
----
-1950
-2025
-2850
query I rowsort
SELECT + - cor0.col2 * + 55 FROM tab2 AS cor0
----
-1430
-1485
-2090
onlyif mysql # use DIV operator for integer division
query I rowsort label-7978
SELECT tab2.col2 DIV + col0 AS col2 FROM tab2
----
0
0
3
skipif mysql # not compatible
query I rowsort label-7978
SELECT tab2.col2 / + col0 AS col2 FROM tab2
----
0
0
3
query I rowsort
SELECT + col2 * + col0 + - col2 AS col2 FROM tab1
----
108
3591
7584
query I rowsort
SELECT DISTINCT - col0 + 10 AS col0 FROM tab1
----
-54
-70
7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7981
SELECT + col1 * CAST( - col0 * col0 AS SIGNED ) AS col1 FROM tab0
----
-118825
-49536
-720811
skipif mysql # not compatible
query I rowsort label-7981
SELECT + col1 * CAST ( - col0 * col0 AS INTEGER ) AS col1 FROM tab0
----
-118825
-49536
-720811
query I rowsort
SELECT DISTINCT + col2 * 87 FROM tab1 AS cor0
----
4698
4959
8352
query I rowsort
SELECT DISTINCT tab0.col1 + - 22 AS col0 FROM tab0
----
64
69
75
query I rowsort
SELECT - 59 + + 36 AS col2 FROM tab0
----
-23
-23
-23
query I rowsort
SELECT - 97 AS col0 FROM tab2
----
-97
-97
-97
query I rowsort
SELECT DISTINCT - col2 + col2 * col0 + 37 FROM tab0
----
71
7253
796
query I rowsort
SELECT DISTINCT 92 AS col2 FROM tab2, tab0 AS cor0
----
92
query I rowsort
SELECT 98 * col0 AS col2 FROM tab0 cor0
----
2352
3430
8722
query I rowsort
SELECT DISTINCT - col2 + col0 * col1 FROM tab0
----
2031
3394
8017
query I rowsort
SELECT - col2 * - tab2.col1 * col1 + - tab2.col1 FROM tab2
----
10965
25916
90447
query I rowsort
SELECT DISTINCT 27 + - col2 AS col1 FROM tab1 cor0
----
-27
-30
-69
query I rowsort
SELECT ALL 19 AS col1 FROM tab2 AS cor0
----
19
19
19
query I rowsort
SELECT 19 * col1 FROM tab1 AS cor0
----
190
247
494
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7994
SELECT + col1 + + col2 / CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7994
SELECT + col1 + + col2 / CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col2 * col2 + - col2 * + col1 AS col0 FROM tab0 cor0
----
-1749
-738
-96
query I rowsort
SELECT DISTINCT + + cor0.col2 * - col2 FROM tab2 AS cor0
----
-1444
-676
-729
query I rowsort
SELECT ALL 58 * col1 + col1 FROM tab0 AS cor0
----
5074
5369
5723
onlyif mysql # use DIV operator for integer division
query I rowsort label-7998
SELECT DISTINCT cor0.col0 DIV - cor0.col1 FROM tab1 cor0
----
-6
0
skipif mysql # not compatible
query I rowsort label-7998
SELECT DISTINCT cor0.col0 / - cor0.col1 FROM tab1 cor0
----
-6
0
query I rowsort
SELECT ALL - 81 AS col1 FROM tab1 AS cor0
----
-81
-81
-81
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT col2 + col2 * CAST ( + 38 + col0 AS REAL ) AS col2 FROM tab1 AS cor0
----
11424
2268
5871
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * cor0.col2 col0 FROM tab0 AS cor0
----
2838
7462
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-8002
SELECT + 53 DIV + col0 AS col1 FROM tab2 AS cor0
----
0
0
7
skipif mysql # not compatible
query I rowsort label-8002
SELECT + 53 / + col0 AS col1 FROM tab2 AS cor0
----
0
0
7
query I rowsort
SELECT ALL ( 41 ) AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e
query I rowsort
SELECT - col0 * - 75 FROM tab0 AS cor0
----
1800
2625
6675
query I rowsort
SELECT DISTINCT tab2.col0 + - 7 FROM tab2
----
0
71
72
query I rowsort
SELECT DISTINCT + col1 * 54 + + col0 AS col2 FROM tab1
----
1407
604
782
query I rowsort
SELECT DISTINCT 76 AS col0 FROM tab0, tab2 AS cor0
----
76
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + ( + col1 ) col1 FROM tab1
----
100
169
676
query I rowsort
SELECT 44 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d
query I rowsort
SELECT DISTINCT - 16 * + col1 AS col0 FROM tab2 AS cor0
----
-272
-496
-944
query I rowsort
SELECT - + col0 + - ( cor0.col2 ) FROM tab1 AS cor0
----
-121
-176
-57
query I rowsort
SELECT - 42 * + col2 AS col1 FROM tab1 AS cor0
----
-2268
-2394
-4032
query I rowsort
SELECT DISTINCT + - cor0.col2 + - col2 AS col0 FROM tab1 AS cor0
----
-108
-114
-192
query I rowsort
SELECT DISTINCT - - col1 * - 69 FROM tab0 AS cor0
----
-5934
-6279
-6693
query I rowsort
SELECT ALL 27 + cor0.col1 AS col2 FROM tab1 AS cor0
----
37
40
53
query I rowsort
SELECT + cor0.col2 + col1 AS col1 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT DISTINCT 92 FROM tab2 AS cor0
----
92
query I rowsort
SELECT 52 + + col2 AS col1 FROM tab1 AS cor0
----
106
109
148
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( 0 ) col1 FROM tab1
----
0
0
0
query I rowsort
SELECT ALL - 56 FROM tab2, tab0 cor0
----
9 values hashing to 3d3dab400eef93c098acbbba3fc9bdc6
query I rowsort
SELECT - col1 * - 43 + - col2 FROM tab2 AS cor0
----
1306
2511
693
query I rowsort
SELECT - 29 + col1 * col1 AS col2 FROM tab0 AS cor0
----
7367
8252
9380
query I rowsort
SELECT - 95 * + cor0.col0 + col1 FROM tab1 AS cor0
----
-259
-6070
-7587
query I rowsort
SELECT - - ( col0 ) * col0 + - 20 * col2 FROM tab0 AS cor0
----
-84
1205
6281
query I rowsort
SELECT + ( - col1 ) + cor0.col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - + col2 * - col1 + col2 AS col0 FROM tab1 AS cor0
----
1344
1458
627
onlyif mysql # use DIV operator for integer division
query I rowsort label-8027
SELECT DISTINCT + ( - col2 ) + ( - col2 ) DIV col0 FROM tab0 AS cor0
----
-1
-34
-82
skipif mysql # not compatible
query I rowsort label-8027
SELECT DISTINCT + ( - col2 ) + ( - col2 ) / col0 FROM tab0 AS cor0
----
-1
-34
-82
query I rowsort
SELECT - - cor0.col0 * - col2 AS col2 FROM tab2 AS cor0
----
-189
-2028
-3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-8029
SELECT - cor0.col0 DIV col1 FROM tab2 AS cor0
----
-1
-4
0
skipif mysql # not compatible
query I rowsort label-8029
SELECT - cor0.col0 / col1 FROM tab2 AS cor0
----
-1
-4
0
query I rowsort
SELECT 50 FROM tab2 AS cor0
----
50
50
50
onlyif mysql # use DIV operator for integer division
query I rowsort label-8031
SELECT ALL - + col2 + col1 DIV - ( - col0 ) - + col1 FROM tab0 AS cor0
----
-116
-172
-96
skipif mysql # not compatible
query I rowsort label-8031
SELECT ALL - + col2 + col1 / - ( - col0 ) - + col1 FROM tab0 AS cor0
----
-116
-172
-96
query I rowsort
SELECT DISTINCT + + cor0.col0 + + col0 * 27 * col0 AS col0 FROM tab0 AS cor0
----
15576
213956
33110
query I rowsort
SELECT ALL + - col1 + col0 * 35 FROM tab2 AS cor0
----
214
2671
2748
query I rowsort
SELECT DISTINCT + ( + col0 ) * - 86 FROM tab1 AS cor0
----
-258
-5504
-6880
onlyif mysql # use DIV operator for integer division
query I rowsort label-8035
SELECT + ( col1 ) + + cor0.col1 DIV col1 FROM tab0 AS cor0
----
87
92
98
skipif mysql # not compatible
query I rowsort label-8035
SELECT + ( col1 ) + + cor0.col1 / col1 FROM tab0 AS cor0
----
87
92
98
query I rowsort
SELECT col0 * - col1 + col2 AS col1 FROM tab0 AS cor0
----
-2031
-3394
-8017
onlyif mysql # use DIV operator for integer division
query I rowsort label-8037
SELECT + col0 + - 99 DIV - 45 FROM tab2 AS cor0
----
80
81
9
skipif mysql # not compatible
query I rowsort label-8037
SELECT + col0 + - 99 / - 45 FROM tab2 AS cor0
----
80
81
9
query I rowsort
SELECT DISTINCT + col0 * 20 AS col2 FROM tab1 cor0
----
1280
1600
60
query I rowsort
SELECT DISTINCT - + col1 + - col1 * + cor0.col2 FROM tab0 AS cor0
----
-194
-2924
-7553
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 col0 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT ALL + 87 AS col1 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 8661ffbd1a72897c495405c53b816e50
query I rowsort
SELECT - col2 + tab1.col1 + + 80 FROM tab1
----
-3
33
52
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8043
SELECT + + col2 * CAST( NULL AS SIGNED ) - + 43 * - col1 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8043
SELECT + + col2 * CAST ( NULL AS INTEGER ) - + 43 * - col1 FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col1 + ( - cor0.col2 + - col0 ) AS col0 FROM tab2 AS cor0
----
-100
-3
-45
query I rowsort
SELECT - col1 + + tab0.col1 + 95 AS col1 FROM tab0
----
95
95
95
query I rowsort
SELECT col0 * ( col1 ) FROM tab1 AS cor0
----
1040
640
78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 * col0 col1 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT + col1 + + col1 AS col2 FROM tab2 cor0
----
118
34
62
query I rowsort
SELECT + col2 + + col1 * - col0 * + col2 AS col1 FROM tab2
----
-119626
-50996
-5832
query I rowsort
SELECT + col2 * ( - 78 + - cor0.col1 ) AS col0 FROM tab2 cor0
----
-2943
-3562
-3610
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0, tab1 AS cor1, tab1, tab2 AS cor2
----
3645 values hashing to 85e6cb74738e0d8388af8fb625b2bd38
onlyif mysql # use DIV operator for integer division
query I rowsort label-8052
SELECT ALL - col2 + 61 DIV col0 AS col1 FROM tab2 AS cor0
----
-19
-26
-38
skipif mysql # not compatible
query I rowsort label-8052
SELECT ALL - col2 + 61 / col0 AS col1 FROM tab2 AS cor0
----
-19
-26
-38
query I rowsort
SELECT col0 - - col1 * col2 AS col2 FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT col1 * - col2 + cor0.col0 * col0 FROM tab2 AS cor0
----
-788
4550
5595
query I rowsort
SELECT ALL 53 * ( + col1 ) + + col2 * - col0 AS col2 FROM tab0 AS cor0
----
-2475
3766
5106
query I rowsort
SELECT DISTINCT 78 FROM tab2, tab0 AS cor0
----
78
query I rowsort
SELECT + 75 FROM tab1, tab1 AS cor0
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea
query I rowsort
SELECT - cor0.col1 FROM tab2 cor0 CROSS JOIN tab2, tab1 AS cor1
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2
query I rowsort
SELECT - ( - col2 ) AS col1 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT ALL + 28 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 8a39580587f2831072e93c319ff94bbf
query I rowsort
SELECT 1 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to da8a72a7967c0c73d91239275230aed9
query I rowsort
SELECT ( col2 + + col2 ) FROM tab1
----
108
114
192
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 0 col0 FROM tab0, tab1 AS cor0
----
0
query I rowsort
SELECT DISTINCT - 85 FROM tab2, tab0 AS cor0
----
-85
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 AS cor0, tab0, tab2 cor1
----
972 values hashing to 591a9a93560839231c038a1e10bd240a
query I rowsort
SELECT ALL - ( tab2.col1 ) AS col2 FROM tab2
----
-17
-31
-59
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8067
SELECT ALL CAST( NULL AS SIGNED ) AS col1 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-8067
SELECT ALL CAST ( NULL AS INTEGER ) AS col1 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT DISTINCT - col0 * col1 AS col0 FROM tab2
----
-1343
-217
-4602
query I rowsort
SELECT + - 69 AS col2 FROM tab2 AS cor0
----
-69
-69
-69
query I rowsort
SELECT + ( + tab1.col1 * + ( 7 ) ) AS col2 FROM tab1
----
182
70
91
query I rowsort
SELECT DISTINCT + ( - cor0.col0 ) - + 35 AS col2 FROM tab0, tab2, tab0 cor0
----
-124
-59
-70
query I rowsort
SELECT ( - col1 ) + col0 FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT DISTINCT - cor0.col2 + + col2 + + ( - col1 + col2 ) FROM tab1 cor0
----
28
47
83
query I rowsort
SELECT - ( + col2 ) AS col0 FROM tab0
----
-1
-33
-82
query I rowsort
SELECT ALL cor1.col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3
query I rowsort
SELECT + col2 - tab0.col0 * col0 AS col0 FROM tab0
----
-1224
-543
-7839
query I rowsort
SELECT - - cor0.col2 + col0 * + col0 FROM tab0 AS cor0
----
1226
609
8003
query I rowsort
SELECT + 96 * col1 FROM tab0 AS cor0
----
8256
8736
9312
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab1 AS cor0, tab1 cor1, tab1 AS cor2
----
972 values hashing to 635619591835474e6aa6acdff4ab166c
query I rowsort
SELECT ALL - col1 * + col2 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT col0 + col2 + + 97 FROM tab1 AS cor0
----
154
218
273
query I rowsort
SELECT ALL + col2 + col1 * + 64 FROM tab1
----
1718
697
928
query I rowsort
SELECT + 7 + col2 + col1 FROM tab1
----
116
74
87
query I rowsort
SELECT + col2 * col1 + + col2 AS col2 FROM tab0 AS cor0
----
2871
7544
98
query I rowsort
SELECT ALL - - cor1.col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc
query I rowsort
SELECT ALL 72 + col2 * col1 * 76 FROM tab1 AS cor0
----
106776
43392
94920
query I rowsort
SELECT - col1 + col0 + ( col0 + col1 ) * 28 FROM tab0 AS cor0
----
3018
3634
5038
query I rowsort
SELECT + cor0.col0 AS col0 FROM tab1, tab2 cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a
query I rowsort
SELECT + 72 + - col2 AS col0 FROM tab1 AS cor0
----
-24
15
18
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8090
SELECT + col2 * - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8090
SELECT + col2 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + + col1 + 69 * + 66 FROM tab2 AS cor0
----
4571
4585
4613
query I rowsort
SELECT ALL - col1 * - 53 + + 22 FROM tab0 AS cor0
----
4580
4845
5163
query I rowsort
SELECT DISTINCT - - col2 AS col2 FROM tab1 cor0
----
54
57
96
query I rowsort
SELECT 44 FROM tab1, tab0 AS cor0
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8095
SELECT ALL + + CAST( NULL AS SIGNED ) + col2 * col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8095
SELECT ALL + + CAST ( NULL AS INTEGER ) + col2 * col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - - 68 + + 20 FROM tab2 AS cor0
----
88
query I rowsort
SELECT DISTINCT col2 * + col2 AS col0 FROM tab0 cor0
----
1
1089
6724
query I rowsort
SELECT DISTINCT - col0 + - cor0.col2 AS col0 FROM tab0 AS cor0
----
-171
-36
-57
query I rowsort
SELECT ( + col2 ) AS col1 FROM tab2 cor0
----
26
27
38
query I rowsort
SELECT ALL - 77 AS col2 FROM tab0 AS cor0
----
-77
-77
-77
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * 66 col2 FROM tab1 AS cor0
----
1716
660
858
query I rowsort
SELECT ALL + + ( col1 ) * col2 AS col1 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT ALL - col1 + 23 AS col0 FROM tab2 AS cor0
----
-36
-8
6
onlyif mysql # use DIV operator for integer division
query I rowsort label-8104
SELECT col0 DIV - cor0.col1 FROM tab2 AS cor0
----
-1
-4
0
skipif mysql # not compatible
query I rowsort label-8104
SELECT col0 / - cor0.col1 FROM tab2 AS cor0
----
-1
-4
0
query I rowsort
SELECT DISTINCT ( + col2 ) * + cor0.col2 + + 40 FROM tab0 AS cor0
----
1129
41
6764
query I rowsort
SELECT DISTINCT + cor0.col0 + cor0.col1 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT - col2 * ( col2 ) AS col1 FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT ALL - 98 * + 27 * - col2 AS col0 FROM tab0 AS cor0
----
216972
2646
87318
query I rowsort
SELECT - ( cor0.col1 ) * + col2 AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT DISTINCT tab1.col0 * col2 * + col2 FROM tab1
----
207936
737280
8748
query I rowsort
SELECT DISTINCT + 29 FROM tab2, tab0 AS cor0
----
29
query I rowsort
SELECT DISTINCT - - col1 - col1 AS col1 FROM tab0 AS cor0
----
0
query I rowsort
SELECT ALL + 52 * col2 FROM tab1 AS cor0
----
2808
2964
4992
query I rowsort
SELECT ALL - + 44 - + col2 AS col0 FROM tab2 AS cor0
----
-70
-71
-82
query I rowsort
SELECT DISTINCT - col2 * 51 - col1 * col0 AS col1 FROM tab2 AS cor0
----
-1594
-3281
-5928
query I rowsort
SELECT DISTINCT col0 * tab0.col0 + 28 FROM tab0
----
1253
604
7949
query I rowsort
SELECT ALL - col0 * - 49 AS col0 FROM tab2 AS cor0
----
343
3822
3871
onlyif mysql # use DIV operator for integer division
query I rowsort label-8118
SELECT ALL - col1 + cor0.col2 DIV cor0.col0 FROM tab2 AS cor0
----
-17
-28
-59
skipif mysql # not compatible
query I rowsort label-8118
SELECT ALL - col1 + cor0.col2 / cor0.col0 FROM tab2 AS cor0
----
-17
-28
-59
query I rowsort
SELECT - 91 + col2 * col0 * 68 AS col2 FROM tab1 cor0
----
10925
247973
522149
query I rowsort
SELECT ALL - 6 FROM tab1, tab0 AS cor0
----
9 values hashing to e92b2679faac7be63701967e3f0c0934
query I rowsort
SELECT DISTINCT tab2.col0 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
7
78
79
query I rowsort
SELECT ALL + - col0 * + ( - ( - col0 ) ) AS col2 FROM tab2 AS cor0
----
-49
-6084
-6241
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 + col1 + + col2 * col0 * cor0.col0 col2 FROM tab1 AS cor0
----
233546
515
614493
query I rowsort
SELECT DISTINCT col2 * ( - col0 ) FROM tab2 AS cor0
----
-189
-2028
-3002
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 45 + col0 - + 92 * - col2 col1 FROM tab1
----
4926
5263
8867
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8126
SELECT col1 * - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8126
SELECT col1 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-8127
SELECT DISTINCT - col2 DIV - ( - 85 ) FROM tab2 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-8127
SELECT DISTINCT - col2 / - ( - 85 ) FROM tab2 AS cor0
----
0
query I rowsort
SELECT + + col0 * col2 AS col0 FROM tab0 AS cor0
----
35
7298
792
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8129
SELECT - + col2 * CAST( NULL AS SIGNED ) + + 63 * + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8129
SELECT - + col2 * CAST ( NULL AS INTEGER ) + + 63 * + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + 20 + col0 FROM tab2
----
27
98
99
query I rowsort
SELECT 52 FROM tab2, tab0, tab0 cor0
----
27 values hashing to 76100d10f51995d20efdeb657e444d3c
query I rowsort
SELECT ALL - col0 - + col1 * - 11 AS col2 FROM tab2
----
108
334
571
query I rowsort
SELECT 27 + + tab1.col1 + col0 AS col0 FROM tab1
----
101
120
56
query I rowsort
SELECT - + cor0.col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b234798d4706314ba14eaad539d0aa88
query I rowsort
SELECT - - col2 + - col2 AS col0 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT ALL cor0.col1 * - 90 FROM tab2 AS cor0
----
-1530
-2790
-5310
query I rowsort
SELECT DISTINCT - col1 + + 19 FROM tab2 AS cor0
----
-12
-40
2
query I rowsort
SELECT - col2 * ( - col2 * col2 ) + 88 FROM tab2 cor0
----
17664
19771
54960
query I rowsort
SELECT DISTINCT + col2 + 86 AS col0 FROM tab1 AS cor0
----
140
143
182
query I rowsort
SELECT ALL col0 - col2 FROM tab1 cor0
----
-16
-51
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-8141
SELECT ALL col2 DIV + col2 AS col1 FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-8141
SELECT ALL col2 / + col2 AS col1 FROM tab1 AS cor0
----
1
1
1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8142
SELECT - + col1 * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8142
SELECT - + col1 * + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col1 * col1 + - cor0.col1 AS col0 FROM tab2 AS cor0
----
-306
-3540
-992
query I rowsort
SELECT + col0 + - 77 * 99 AS col0 FROM tab1 AS cor0
----
-7543
-7559
-7620
query I rowsort
SELECT ALL + col1 - ( + col2 ) FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT ALL col0 + + col0 * - cor0.col1 FROM tab1 AS cor0
----
-576
-75
-960
onlyif mysql # use DIV operator for integer division
query I rowsort label-8147
SELECT - - col2 DIV ( - 73 ) + col0 * ( - 84 * - col2 ) AS col2 FROM tab2 AS cor0
----
15876
170352
252168
skipif mysql # not compatible
query I rowsort label-8147
SELECT - - col2 / ( - 73 ) + col0 * ( - 84 * - col2 ) AS col2 FROM tab2 AS cor0
----
15876
170352
252168
query I rowsort
SELECT DISTINCT + col1 * 16 * - 45 + col1 AS col0 FROM tab1 AS cor0
----
-18694
-7190
-9347
query I rowsort
SELECT DISTINCT col0 - + ( - col1 + - col0 ) AS col2 FROM tab1 cor0
----
138
173
32
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 43 + col2 col2 FROM tab2 cor0
----
69
70
81
query I rowsort
SELECT DISTINCT - 93 FROM tab2, tab2 AS cor0
----
-93
query I rowsort
SELECT DISTINCT - 36 AS col2 FROM tab2
----
-36
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8153
SELECT 18 * col1 * CAST( col0 + + col1 AS SIGNED ) col1 FROM tab1
----
13320
13572
21762
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8153
SELECT 18 * col1 * CAST ( col0 + + col1 AS INTEGER ) col1 FROM tab1
----
13320
13572
21762
query I rowsort
SELECT + - cor0.col0 + col2 FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT col2 + - ( + col0 ) AS col0 FROM tab1 cor0
----
-7
16
51
query I rowsort
SELECT DISTINCT - tab2.col2 + + col0 * + 68 * col1 FROM tab2
----
14729
312910
91286
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8157
SELECT 33 * tab0.col0 * + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8157
SELECT 33 * tab0.col0 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 15 col1 FROM tab0
----
15
15
15
query I rowsort
SELECT col0 + tab0.col1 * col2 AS col0 FROM tab0
----
132
2862
7551
query I rowsort
SELECT 48 * + tab1.col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 9dbb7335072836c20ba6bd2689b474b1
query I rowsort
SELECT - 95 AS col0 FROM tab0 AS cor0
----
-95
-95
-95
query I rowsort
SELECT DISTINCT 86 AS col1 FROM tab2, tab2 AS cor0
----
86
query I rowsort
SELECT 12 FROM tab0 AS cor0
----
12
12
12
query I rowsort
SELECT ALL - - 70 FROM tab2 AS cor0
----
70
70
70
query I rowsort
SELECT + - cor0.col0 + 62 * + col0 FROM tab2 AS cor0
----
427
4758
4819
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 2 col1 FROM tab2, tab2 cor0
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261
query I rowsort
SELECT cor0.col0 + tab2.col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 218174566e316faf7def1869e4f9f1b6
query I rowsort
SELECT 24 AS col2 FROM tab2
----
24
24
24
query I rowsort
SELECT + cor0.col2 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
query I rowsort
SELECT + col2 * - cor0.col1 AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8171
SELECT - CAST( NULL AS SIGNED ) * - tab2.col1 + - col1 AS col2 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8171
SELECT - CAST ( NULL AS INTEGER ) * - tab2.col1 + - col1 AS col2 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT tab1.col2 + 42 AS col2 FROM tab1
----
138
96
99
query I rowsort
SELECT - ( - col0 ) * + col1 AS col0 FROM tab1 AS cor0
----
1040
640
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-8174
SELECT + col2 - col1 DIV + col0 FROM tab2
----
23
26
38
skipif mysql # not compatible
query I rowsort label-8174
SELECT + col2 - col1 / + col0 FROM tab2
----
23
26
38
query I rowsort
SELECT col1 + - col2 * + col2 FROM tab1 AS cor0
----
-2890
-3239
-9203
query I rowsort
SELECT DISTINCT + + 52 - - col1 AS col1 FROM tab2 AS cor0
----
111
69
83
query I rowsort
SELECT DISTINCT - 64 * col1 AS col1 FROM tab1 AS cor0
----
-1664
-640
-832
onlyif mysql # use DIV operator for integer division
query I rowsort label-8178
SELECT ALL - 63 DIV - col1 FROM tab1 AS cor0
----
2
4
6
skipif mysql # not compatible
query I rowsort label-8178
SELECT ALL - 63 / - col1 FROM tab1 AS cor0
----
2
4
6
query I rowsort
SELECT - 59 * col0 FROM tab2 AS cor0
----
-413
-4602
-4661
query I rowsort
SELECT + + col0 * col2 AS col1 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT + ( col0 ) * + col1 FROM tab0 cor0
----
2064
3395
8099
query I rowsort
SELECT 35 * col1 AS col0 FROM tab2 AS cor0
----
1085
2065
595
query I rowsort
SELECT ALL - - col2 * col2 FROM tab2 cor0
----
1444
676
729
query I rowsort
SELECT DISTINCT - ( - col2 ) + + cor0.col2 FROM tab2 AS cor0
----
52
54
76
query I rowsort
SELECT col0 * - 40 FROM tab0 AS cor0
----
-1400
-3560
-960
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - ( 49 ) col1 FROM tab1
----
-2646
-2793
-4704
query I rowsort
SELECT - col1 * - tab1.col1 FROM tab1
----
100
169
676
query I rowsort
SELECT cor0.col2 + + col0 * col2 AS col0 FROM tab0 AS cor0
----
36
7380
825
query I rowsort
SELECT col2 + - col0 * col0 FROM tab0 AS cor0
----
-1224
-543
-7839
query I rowsort
SELECT col1 * - col2 + col2 FROM tab0 AS cor0
----
-2805
-7380
-96
query I rowsort
SELECT + - 14 * col0 AS col2 FROM tab1 cor0
----
-1120
-42
-896
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8192
SELECT CAST( - col1 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-8192
SELECT CAST ( - col1 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT + 51 FROM tab1, tab1 AS cor0
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( col2 AS REAL ) FROM tab2 cor0
----
26
27
38
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8195
SELECT CAST( NULL AS SIGNED ) + - col1 + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8195
SELECT CAST ( NULL AS INTEGER ) + - col1 + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + col0 * + ( - col2 ) FROM tab2
----
-189
-2028
-3002
query I rowsort
SELECT + col0 + - tab0.col0 FROM tab0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 81 col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-81
query I rowsort
SELECT DISTINCT - - col2 * - 68 + - col0 * - col0 FROM tab2 cor0
----
-1787
3657
4316
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8200
SELECT ALL + col0 * CAST( ( + col1 ) AS SIGNED ) FROM tab0 AS cor0
----
2064
3395
8099
skipif mysql # not compatible
query I rowsort label-8200
SELECT ALL + col0 * CAST ( ( + col1 ) AS INTEGER ) FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT + col0 + 22 AS col2 FROM tab1 AS cor0
----
102
25
86
query I rowsort
SELECT DISTINCT col1 + - ( col2 ) AS col2 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT ALL + col2 + col1 FROM tab0 cor0
----
119
173
98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8204
SELECT + + col0 * + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8204
SELECT + + col0 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-8205
SELECT ALL + col0 DIV col1 - + col1 * cor0.col1 AS col1 FROM tab2 AS cor0
----
-285
-3480
-961
skipif mysql # not compatible
query I rowsort label-8205
SELECT ALL + col0 / col1 - + col1 * cor0.col1 AS col1 FROM tab2 AS cor0
----
-285
-3480
-961
query I rowsort
SELECT ALL col1 * + col1 + cor0.col0 * col0 FROM tab1 AS cor0
----
4196
6569
685
query I rowsort
SELECT DISTINCT col1 + - col2 * - 39 FROM tab0
----
136
1373
3289
query I rowsort
SELECT col0 + tab0.col2 AS col0 FROM tab0
----
171
36
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-8209
SELECT - 66 * + col1 - + col1 DIV col2 FROM tab0
----
-5678
-6007
-6499
skipif mysql # not compatible
query I rowsort label-8209
SELECT - 66 * + col1 - + col1 / col2 FROM tab0
----
-5678
-6007
-6499
query I rowsort
SELECT + tab2.col0 + - col1 FROM tab2
----
-24
19
62
query I rowsort
SELECT DISTINCT cor0.col0 + + col0 * col0 FROM tab0 AS cor0
----
1260
600
8010
query I rowsort
SELECT DISTINCT + - col1 + col0 AS col0 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT + - col1 + cor0.col2 AS col1 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT ALL - col2 + + ( - col2 ) AS col0 FROM tab0 AS cor0
----
-164
-2
-66
query I rowsort
SELECT - 38 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to e571541ae40cb0ddaca16e11f4359507
query I rowsort
SELECT + col2 * col2 * - ( - 75 ) AS col0 FROM tab2 AS cor0
----
108300
50700
54675
query I rowsort
SELECT + 15 AS col0 FROM tab2
----
15
15
15
query I rowsort
SELECT ALL + ( 91 ) + + col0 FROM tab2
----
169
170
98
query I rowsort
SELECT - 74 AS col2 FROM tab0 AS cor0
----
-74
-74
-74
query I rowsort
SELECT ALL + cor0.col0 AS col2 FROM tab2, tab1 AS cor0, tab0, tab1 cor1
----
81 values hashing to e28bf7f922650ca423ade3642ce0285b
query I rowsort
SELECT DISTINCT 0 + col0 * - col1 AS col2 FROM tab0
----
-2064
-3395
-8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-8222
SELECT 37 + + col1 DIV col0 col0 FROM tab0
----
38
39
40
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8222
SELECT 37 + + col1 / col0 col0 FROM tab0
----
38
39
40
query I rowsort
SELECT + ( col0 ) * - tab2.col1 FROM tab2
----
-1343
-217
-4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-8224
SELECT col1 + - col0 DIV + col0 AS col1 FROM tab2 AS cor0
----
16
30
58
skipif mysql # not compatible
query I rowsort label-8224
SELECT col1 + - col0 / + col0 AS col1 FROM tab2 AS cor0
----
16
30
58
query I rowsort
SELECT + - 47 + col0 AS col0 FROM tab1 AS cor0
----
-44
17
33
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 91 + col2 col1 FROM tab2
----
117
118
129
query I rowsort
SELECT DISTINCT - - col2 - - col1 AS col2 FROM tab2 AS cor0
----
55
58
85
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8228
SELECT DISTINCT + + ( + col2 ) * CAST( col1 AS SIGNED ) + - col1 AS col2 FROM tab0 cor0
----
0
2752
7371
skipif mysql # not compatible
query I rowsort label-8228
SELECT DISTINCT + + ( + col2 ) * CAST ( col1 AS INTEGER ) + - col1 AS col2 FROM tab0 cor0
----
0
2752
7371
query I rowsort
SELECT - - 15 + + col1 * cor0.col1 FROM tab2 AS cor0
----
304
3496
976
query I rowsort
SELECT ALL + - cor0.col0 * col2 * - cor0.col1 - + col0 * + col2 AS col2 FROM tab2 AS cor0
----
117624
48032
5670
query I rowsort
SELECT + cor1.col2 FROM tab2, tab2 cor0, tab0 cor1, tab1 AS cor2
----
81 values hashing to e938777ebffc2e3e9c0cdfaa4f732c05
query I rowsort
SELECT ALL - 17 AS col2 FROM tab2 cor0
----
-17
-17
-17
query I rowsort
SELECT ALL + col2 * col0 + - ( + col0 ) * + tab0.col2 FROM tab0
----
0
0
0
query I rowsort
SELECT 83 * col2 + + ( + cor0.col0 ) FROM tab2 cor0
----
2236
2248
3233
query I rowsort
SELECT - col2 * col0 + + ( + cor0.col1 ) FROM tab0 AS cor0
----
-706
-7207
62
query I rowsort
SELECT ALL - col0 * + cor0.col2 * 29 AS col1 FROM tab0 cor0
----
-1015
-211642
-22968
query I rowsort
SELECT - col0 + - col2 AS col0 FROM tab1 AS cor0
----
-121
-176
-57
query I rowsort
SELECT ALL - - col2 + + col1 * ( - col1 ) AS col0 FROM tab2 AS cor0
----
-251
-3455
-934
query I rowsort
SELECT DISTINCT + col0 * + col1 AS col0 FROM tab1
----
1040
640
78
query I rowsort
SELECT 24 * + tab1.col0 AS col2 FROM tab1
----
1536
1920
72
query I rowsort
SELECT + + ( col2 ) + col2 FROM tab1 AS cor0
----
108
114
192
query I rowsort
SELECT ALL - col0 + - col0 * - 57 FROM tab1 AS cor0
----
168
3584
4480
query I rowsort
SELECT ALL - + col0 * col2 + + col2 FROM tab1 AS cor0
----
-108
-3591
-7584
query I rowsort
SELECT - cor0.col0 * col0 + + col0 FROM tab1 cor0
----
-4032
-6
-6320
query I rowsort
SELECT DISTINCT + cor0.col0 + cor0.col1 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT ( + col1 ) + col2 FROM tab0
----
119
173
98
query I rowsort
SELECT - + col1 + 31 + col1 FROM tab1 AS cor0
----
31
31
31
query I rowsort
SELECT - - col0 * + col0 + col0 FROM tab2 AS cor0
----
56
6162
6320
query I rowsort
SELECT ALL 3 * - col2 * col2 + col1 FROM tab1 AS cor0
----
-27635
-8722
-9737
onlyif mysql # use DIV operator for integer division
query I rowsort label-8250
SELECT DISTINCT + ( - ( col2 ) ) + 96 DIV - 42 FROM tab1
----
-56
-59
-98
skipif mysql # not compatible
query I rowsort label-8250
SELECT DISTINCT + ( - ( col2 ) ) + 96 / - 42 FROM tab1
----
-56
-59
-98
query I rowsort
SELECT 73 AS col2 FROM tab0
----
73
73
73
query I rowsort
SELECT - - ( - col1 ) + + col1 * ( col2 * + cor0.col1 ) FROM tab0 AS cor0
----
243982
678951
9312
query I rowsort
SELECT DISTINCT + 96 FROM tab2 cor0
----
96
query I rowsort
SELECT DISTINCT - - 97 * col2 * - col0 FROM tab0 cor0
----
-3395
-707906
-76824
query I rowsort
SELECT - + 41 + + 17 * col2 FROM tab2 cor0
----
401
418
605
query I rowsort
SELECT DISTINCT - 45 AS col1 FROM tab0, tab0 AS cor0
----
-45
query I rowsort
SELECT DISTINCT - - 15 + col0 AS col0 FROM tab0 cor0
----
104
39
50
query I rowsort
SELECT + 43 AS col2 FROM tab1 cor0
----
43
43
43
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8259
SELECT DISTINCT + cor1.col1 + CAST( NULL AS SIGNED ) FROM tab0, tab0 cor0, tab1 AS cor1
----
NULL
skipif mysql # not compatible
query I rowsort label-8259
SELECT DISTINCT + cor1.col1 + CAST ( NULL AS INTEGER ) FROM tab0, tab0 cor0, tab1 AS cor1
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( col0 ) + col2 col1 FROM tab2 AS cor0
----
104
117
34
onlyif mysql # use DIV operator for integer division
query I rowsort label-8261
SELECT + 99 * - cor0.col2 + col2 DIV col0 FROM tab1 AS cor0
----
-5328
-5643
-9503
skipif mysql # not compatible
query I rowsort label-8261
SELECT + 99 * - cor0.col2 + col2 / col0 FROM tab1 AS cor0
----
-5328
-5643
-9503
query I rowsort
SELECT ALL - - col2 + - col0 AS col1 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT 1 * col2 AS col2 FROM tab0
----
1
33
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-8264
SELECT col2 DIV col1 + - col0 * ( + col2 * + col2 ) AS col2 FROM tab1
----
-207931
-737273
-8746
skipif mysql # not compatible
query I rowsort label-8264
SELECT col2 / col1 + - col0 * ( + col2 * + col2 ) AS col2 FROM tab1
----
-207931
-737273
-8746
query I rowsort
SELECT DISTINCT ( + col1 ) + - col2 + col2 * col2 AS col2 FROM tab0
----
1142
6733
97
query I rowsort
SELECT - ( 52 ) + - col2 * + tab1.col2 * - col1 + + col0 FROM tab1
----
119836
32502
75767
query I rowsort
SELECT ALL + col2 * col1 * - col2 + - col1 FROM tab1
----
-119821
-32500
-75842
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8268
SELECT + CAST( - col1 AS SIGNED ) + tab1.col0 * 63 FROM tab1
----
163
4022
5027
skipif mysql # not compatible
query I rowsort label-8268
SELECT + CAST ( - col1 AS INTEGER ) + tab1.col0 * 63 FROM tab1
----
163
4022
5027
query I rowsort
SELECT DISTINCT col2 + col1 * - col2 FROM tab2
----
-1508
-608
-810
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + col1 col2 FROM tab2
----
118
34
62
query I rowsort
SELECT - - ( + col0 ) AS col1 FROM tab2 cor0
----
7
78
79
query I rowsort
SELECT DISTINCT - col0 * col1 + col1 AS col0 FROM tab0 cor0
----
-1978
-3298
-8008
query I rowsort
SELECT 17 FROM tab1, tab2 cor0
----
9 values hashing to 43298e43365fccb5146ea32003753c92
query I rowsort
SELECT + - 43 AS col0 FROM tab0 AS cor0
----
-43
-43
-43
query I rowsort
SELECT col0 + col1 * - col1 AS col1 FROM tab0 AS cor0
----
-7372
-8192
-9374
query I rowsort
SELECT + - 80 FROM tab2 AS cor0
----
-80
-80
-80
query I rowsort
SELECT + ( col2 ) * + 22 FROM tab2 AS cor0
----
572
594
836
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col0 ) col0 FROM tab2
----
-7
-78
-79
query I rowsort
SELECT 37 AS col2 FROM tab0, tab1 cor0
----
9 values hashing to a10b03e72860b949bdff53827700a9a8
query I rowsort
SELECT ( + 60 ) FROM tab0
----
60
60
60
query I rowsort
SELECT - cor0.col2 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * 78 + 71 col1 FROM tab0 AS cor0
----
-1801
-2659
-6871
query I rowsort
SELECT - - col2 + ( ( - col0 ) * + ( + col0 ) + col2 * 40 ) AS col0 FROM tab2 AS cor0
----
-4683
-5018
1058
onlyif mysql # use DIV operator for integer division
query I rowsort label-8284
SELECT DISTINCT + col1 + col0 DIV + col2 FROM tab0 AS cor0
----
132
86
92
skipif mysql # not compatible
query I rowsort label-8284
SELECT DISTINCT + col1 + col0 / + col2 FROM tab0 AS cor0
----
132
86
92
query I rowsort
SELECT + cor0.col0 + 27 FROM tab2 AS cor0
----
105
106
34
query I rowsort
SELECT DISTINCT tab1.col1 * col0 * - 16 + col0 FROM tab1
----
-10176
-1245
-16560
onlyif mysql # use DIV operator for integer division
query I rowsort label-8287
SELECT - col0 DIV + col0 + 21 * tab0.col2 AS col2 FROM tab0
----
1721
20
692
skipif mysql # not compatible
query I rowsort label-8287
SELECT - col0 / + col0 + 21 * tab0.col2 AS col2 FROM tab0
----
1721
20
692
query I rowsort
SELECT col1 + tab2.col0 * col0 FROM tab2
----
6143
6258
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col1 col0 FROM tab2 cor0
----
1534
646
837
query I rowsort
SELECT DISTINCT 25 + col2 AS col1 FROM tab0
----
107
26
58
onlyif mysql # use DIV operator for integer division
query I rowsort label-8291
SELECT DISTINCT col2 DIV - col0 + + 40 FROM tab2
----
37
40
skipif mysql # not compatible
query I rowsort label-8291
SELECT DISTINCT col2 / - col0 + + 40 FROM tab2
----
37
40
query I rowsort
SELECT ALL + - col2 * + col1 + - col1 AS col0 FROM tab1 AS cor0
----
-1261
-1430
-580
query I rowsort
SELECT DISTINCT + + col0 + - cor0.col2 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT ALL - col1 - 28 AS col1 FROM tab0 cor0
----
-114
-119
-125
query I rowsort
SELECT col0 * 29 + cor0.col1 FROM tab1 AS cor0
----
113
1866
2333
query I rowsort
SELECT - 2 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 20c9213316527d507e26425041e08387
query I rowsort
SELECT DISTINCT + col2 * - col0 AS col2 FROM tab1
----
-162
-3648
-7680
query I rowsort
SELECT - + 47 * 91 AS col2 FROM tab1 AS cor0
----
-4277
-4277
-4277
query I rowsort
SELECT 11 * + col2 FROM tab2 AS cor0
----
286
297
418
query I rowsort
SELECT ALL + 0 + col1 AS col1 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT DISTINCT 70 AS col2 FROM tab0, tab0 cor0
----
70
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8302
SELECT col0 * - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8302
SELECT col0 * - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT ( col1 ) + - col0 AS col0 FROM tab2 cor0
----
-19
-62
24
query I rowsort
SELECT - - 54 + cor0.col0 * col0 AS col0 FROM tab2 AS cor0
----
103
6138
6295
query I rowsort
SELECT + - ( + 38 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e571541ae40cb0ddaca16e11f4359507
query I rowsort
SELECT + ( col1 ) * - 42 + - col1 * col2 FROM tab1 AS cor0
----
-1794
-2496
-990
query I rowsort
SELECT + 27 + - col1 AS col2 FROM tab2 AS cor0
----
-32
-4
10
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + col1 * + col2 col1 FROM tab2 AS cor0
----
10982
25947
90506
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * 96 + + col1 col1 FROM tab1 AS cor0
----
314
6154
7693
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8310
SELECT - + col0 + CAST( NULL AS SIGNED ) * - col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8310
SELECT - + col0 + CAST ( NULL AS INTEGER ) * - col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col0 + cor0.col1 * + ( col0 ) * + col0 FROM tab0 AS cor0
----
118860
49560
720900
query I rowsort
SELECT DISTINCT col2 + col1 AS col1 FROM tab1 AS cor0
----
109
67
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-8313
SELECT ALL + col1 DIV + col2 - col2 AS col2 FROM tab1 AS cor0
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-8313
SELECT ALL + col1 / + col2 - col2 AS col2 FROM tab1 AS cor0
----
-54
-57
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-8314
SELECT DISTINCT + col1 + - col0 DIV col2 col1 FROM tab0 AS cor0
----
62
86
90
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8314
SELECT DISTINCT + col1 + - col0 / col2 col1 FROM tab0 AS cor0
----
62
86
90
query I rowsort
SELECT ALL + + col0 * col0 + col0 - col1 * - col2 FROM tab0 cor0
----
1357
15472
3438
query I rowsort
SELECT DISTINCT - - col0 * + col1 + + col1 FROM tab2 AS cor0
----
1360
248
4661
query I rowsort
SELECT cor0.col0 * cor0.col1 + col0 FROM tab2 AS cor0
----
1422
224
4680
query I rowsort
SELECT col2 + + col0 AS col2 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT col2 * cor0.col2 + col0 * col1 FROM tab2 AS cor0
----
2787
5278
946
query I rowsort
SELECT DISTINCT + + cor0.col2 + + cor0.col0 * col1 FROM tab0 AS cor0
----
2097
3396
8181
query I rowsort
SELECT ALL + col0 * - col1 + - cor0.col1 * col0 FROM tab0 AS cor0
----
-16198
-4128
-6790
onlyif mysql # use DIV operator for integer division
query I rowsort label-8322
SELECT ALL + col1 DIV col2 - col1 col0 FROM tab0 cor0
----
-84
-90
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8322
SELECT ALL + col1 / col2 - col1 col0 FROM tab0 cor0
----
-84
-90
0
query I rowsort
SELECT DISTINCT + col0 + col2 - cor0.col1 FROM tab2 cor0
----
100
3
45
query I rowsort
SELECT + - col0 + col1 AS col1 FROM tab0 AS cor0
----
2
62
62
query I rowsort
SELECT ALL + cor0.col1 * - col0 + + col0 FROM tab1 AS cor0
----
-576
-75
-960
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 + cor0.col0 col2 FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT col0 - - tab1.col2 * + col1 * - col1 AS col0 FROM tab1
----
-16144
-36501
-5636
query I rowsort
SELECT ALL + col1 + + tab2.col0 AS col1 FROM tab2
----
137
38
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-8329
SELECT ALL + col1 DIV - col0 FROM tab2 AS cor0
----
-4
0
0
skipif mysql # not compatible
query I rowsort label-8329
SELECT ALL + col1 / - col0 FROM tab2 AS cor0
----
-4
0
0
query I rowsort
SELECT - col1 + col2 FROM tab1 WHERE NULL IN ( - tab1.col1 )
----
query III rowsort
SELECT ALL * FROM tab0 WHERE NULL BETWEEN col2 AND ( NULL )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + col1 col2 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT ALL col1 + cor0.col0 + col1 * + col2 AS col1 FROM tab2 AS cor0
----
1671
742
875
query I rowsort
SELECT + col1 * + col2 + - cor0.col1 * col2 AS col2 FROM tab2 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-8335
SELECT col2 * col2 + cor0.col2 DIV - col1 FROM tab0 AS cor0
----
1
1089
6724
skipif mysql # not compatible
query I rowsort label-8335
SELECT col2 * col2 + cor0.col2 / - col1 FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT DISTINCT + col0 - - col0 FROM tab2 AS cor0
----
14
156
158
onlyif mysql # use DIV operator for integer division
query I rowsort label-8337
SELECT 89 DIV + col2 AS col1 FROM tab1
----
0
1
1
skipif mysql # not compatible
query I rowsort label-8337
SELECT 89 / + col2 AS col1 FROM tab1
----
0
1
1
query I rowsort
SELECT ALL - col1 + - tab2.col0 * tab2.col1 FROM tab2
----
-1360
-248
-4661
query I rowsort
SELECT DISTINCT col0 * col1 + col2 AS col1 FROM tab0
----
2097
3396
8181
query I rowsort
SELECT DISTINCT + col0 + + col2 * col1 AS col0 FROM tab2
----
1612
725
844
query I rowsort
SELECT DISTINCT col0 * - tab1.col1 + - col1 AS col1 FROM tab1
----
-104
-1053
-650
query I rowsort
SELECT ALL col0 + col0 * col0 FROM tab0
----
1260
600
8010
query I rowsort
SELECT col2 * col1 - col0 * - col0 FROM tab1
----
1413
4666
7648
query I rowsort
SELECT ALL + cor0.col2 * col0 * - col0 + col1 FROM tab2 AS cor0
----
-1292
-158125
-237141
query I rowsort
SELECT ALL + cor0.col1 + + col2 * - col1 FROM tab0 AS cor0
----
-2752
-7371
0
query I rowsort
SELECT col2 + - col2 - - col1 FROM tab0
----
86
91
97
query I rowsort
SELECT - col1 * - col1 + - col1 FROM tab2
----
272
3422
930
onlyif mysql # use DIV operator for integer division
query I rowsort label-8348
SELECT col0 + + col2 DIV + col0 AS col2 FROM tab1
----
21
64
81
skipif mysql # not compatible
query I rowsort label-8348
SELECT col0 + + col2 / + col0 AS col2 FROM tab1
----
21
64
81
query I rowsort
SELECT col0 * - col1 * tab0.col1 FROM tab0 WHERE NOT ( + col1 / col0 + col0 * col0 ) <= NULL
----
query I rowsort
SELECT - col2 * - tab2.col0 * + tab2.col0 AS col2 FROM tab2
----
1323
158184
237158
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - col2 col1 FROM tab1
----
-2916
-3249
-9216
query I rowsort
SELECT + cor0.col0 + + col0 - + col1 * 83 FROM tab1 AS cor0
----
-2152
-702
-919
onlyif mysql # use DIV operator for integer division
query I rowsort label-8353
SELECT - tab1.col1 * col2 DIV + col0 AS col1 FROM tab1
----
-15
-468
-8
skipif mysql # not compatible
query I rowsort label-8353
SELECT - tab1.col1 * col2 / + col0 AS col1 FROM tab1
----
-15
-468
-8
onlyif mysql # use DIV operator for integer division
query I rowsort label-8354
SELECT ALL tab2.col1 DIV col0 FROM tab2
----
0
0
4
skipif mysql # not compatible
query I rowsort label-8354
SELECT ALL tab2.col1 / col0 FROM tab2
----
0
0
4
query I rowsort
SELECT + col2 AS col2 FROM tab0 WHERE NOT ( - col2 - col0 * - col0 ) NOT IN ( col1 )
----
query I rowsort
SELECT col0 * col1 * - col2 FROM tab2
----
-119652
-51034
-5859
query I rowsort
SELECT DISTINCT - col1 + + col0 * + col0 AS col1 FROM tab0 WHERE NULL > ( NULL )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-8358
SELECT tab0.col1 DIV - col2 + + col1 * - col1 AS col2 FROM tab0
----
-7398
-8282
-9506
skipif mysql # not compatible
query I rowsort label-8358
SELECT tab0.col1 / - col2 + + col1 * - col1 AS col2 FROM tab0
----
-7398
-8282
-9506
query I rowsort
SELECT ALL + col1 * - col0 AS col1 FROM tab0
----
-2064
-3395
-8099
query I rowsort
SELECT ALL - col2 + col0 AS col2 FROM tab1
----
-16
-51
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * col1 * col0 col0 FROM tab2
----
22831
271518
6727
query I rowsort
SELECT DISTINCT - col2 + tab0.col1 * tab0.col0 - + tab0.col2 FROM tab0
----
1998
3393
7935
onlyif mysql # use DIV operator for integer division
query I rowsort label-8363
SELECT col2 - col0 * col1 DIV - col0 FROM tab0
----
119
173
98
skipif mysql # not compatible
query I rowsort label-8363
SELECT col2 - col0 * col1 / - col0 FROM tab0
----
119
173
98
query III rowsort
SELECT ALL * FROM tab2 WHERE NULL < ( col1 )
----
query I rowsort
SELECT col2 + - tab2.col0 FROM tab2
----
-41
-52
20
query I rowsort
SELECT DISTINCT + - 66 + col1 * - col2 AS col0 FROM tab2 AS cor0
----
-1600
-712
-903
query I rowsort
SELECT + col2 + + col2 FROM tab2 cor0
----
52
54
76
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8368
SELECT DISTINCT + + cor0.col0 * - col0 + - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8368
SELECT DISTINCT + + cor0.col0 * - col0 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT ALL - - col1 + - col2 * - col1 AS col1 FROM tab1 AS cor0
----
1261
1430
580
query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col0 <> NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + - col1 col0 FROM tab1
----
-23
54
67
query I rowsort
SELECT ALL col1 + tab2.col0 * col0 * + tab2.col1 AS col1 FROM tab2
----
106114
1550
359015
query I rowsort
SELECT + col0 * col1 * col1 FROM tab2 AS cor0
----
22831
271518
6727
query I rowsort
SELECT ALL + col1 + + col2 * cor0.col2 AS col2 FROM tab0 AS cor0
----
1175
6815
98
query I rowsort
SELECT DISTINCT - cor0.col0 * col0 AS col2 FROM tab0 AS cor0
----
-1225
-576
-7921
query I rowsort
SELECT + col0 * + cor0.col2 FROM tab2 cor0
----
189
2028
3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-8377
SELECT - col0 DIV - col1 FROM tab1 AS cor0
----
0
6
6
skipif mysql # not compatible
query I rowsort label-8377
SELECT - col0 / - col1 FROM tab1 AS cor0
----
0
6
6
query IIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND ( NULL )
----
query I rowsort
SELECT col0 + + tab2.col2 AS col0 FROM tab2
----
104
117
34
onlyif mysql # use DIV operator for integer division
query I rowsort label-8380
SELECT - tab0.col2 DIV col1 + col1 * + col1 FROM tab0
----
7396
8281
9409
skipif mysql # not compatible
query I rowsort label-8380
SELECT - tab0.col2 / col1 + col1 * + col1 FROM tab0
----
7396
8281
9409
query I rowsort
SELECT DISTINCT col1 + + col0 * col1 * + tab1.col0 FROM tab1
----
260
40970
83213
query I rowsort
SELECT DISTINCT tab1.col1 AS col0 FROM tab1 WHERE + col2 >= ( col2 )
----
10
13
26
query I rowsort
SELECT tab2.col0 + + col1 * + col2 FROM tab2
----
1612
725
844
query I rowsort
SELECT tab2.col0 FROM tab2 WHERE NOT ( + col1 * + col0 * col0 ) >= NULL
----
query I rowsort
SELECT - tab1.col2 * + col0 / col1 FROM tab1 WHERE NULL NOT IN ( col1 )
----
query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN col1 + + col0 AND ( NULL )
----
query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) < - col2 * col0 / - col0
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-8388
SELECT DISTINCT + col2 + - col1 DIV col2 FROM tab1
----
54
57
96
skipif mysql # not compatible
query I rowsort label-8388
SELECT DISTINCT + col2 + - col1 / col2 FROM tab1
----
54
57
96
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NULL ) BETWEEN NULL AND col1
----
query I rowsort
SELECT - col2 + tab1.col1 - + col1 FROM tab1
----
-54
-57
-96
query I rowsort
SELECT DISTINCT + col1 + col2 * - tab2.col0 AS col2 FROM tab2
----
-158
-1969
-2985
onlyif mysql # use DIV operator for integer division
query I rowsort label-8392
SELECT - tab0.col2 DIV - col2 AS col1 FROM tab0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-8392
SELECT - tab0.col2 / - col2 AS col1 FROM tab0
----
1
1
1
query I rowsort
SELECT + 11 AS col2 FROM tab2, tab0 AS cor0, tab1 cor1
----
27 values hashing to 69116737f3f57e2e3273f6dbb04d036c
query I rowsort
SELECT DISTINCT col0 * - 22 + col0 AS col2 FROM tab0 cor0
----
-1869
-504
-735
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * col2 col2 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT cor0.col2 * - ( col2 * col1 + + 97 ) AS col2 FROM tab0 AS cor0
----
-194
-619838
-96855
query I rowsort
SELECT + - col2 * col0 AS col1 FROM tab0 AS cor0
----
-35
-7298
-792
onlyif mysql # use DIV operator for integer division
query I rowsort label-8398
SELECT - - 92 DIV - col0 AS col1 FROM tab1 AS cor0
----
-1
-1
-30
skipif mysql # not compatible
query I rowsort label-8398
SELECT - - 92 / - col0 AS col1 FROM tab1 AS cor0
----
-1
-1
-30
query I rowsort
SELECT ALL + 44 * ( + col2 ) AS col0 FROM tab0 AS cor0
----
1452
3608
44
query I rowsort
SELECT - 16 * 87 AS col0 FROM tab2
----
-1392
-1392
-1392
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + col1 col0 FROM tab2
----
1534
646
837
query I rowsort
SELECT - ( 60 ) + - col1 AS col0 FROM tab0 AS cor0
----
-146
-151
-157
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT CAST ( col1 AS REAL ) + - col2 * col1 col1 FROM tab2 AS cor0
----
-1475
-629
-806
query I rowsort
SELECT 64 * - cor0.col2 + col0 FROM tab1 AS cor0
----
-3453
-3584
-6064
query I rowsort
SELECT col2 * cor0.col1 + col1 * + col0 AS col0 FROM tab0 cor0
----
15561
3492
4902
query I rowsort
SELECT - col2 * col2 + col0 FROM tab0 AS cor0
----
-1065
-6635
34
query I rowsort
SELECT + + col1 + + col1 * col2 * + 83 AS col2 FROM tab2 AS cor0
----
127381
53635
69502
query I rowsort
SELECT - col2 * col0 + cor0.col0 * + 41 AS col2 FROM tab2 AS cor0
----
1170
237
98
query I rowsort
SELECT - + cor0.col2 * cor0.col0 FROM tab1 cor0
----
-162
-3648
-7680
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8410
SELECT + ( - col0 ) * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8410
SELECT + ( - 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 + col2 * - 77 + col0 col2 FROM tab0
----
-2517
-42
-6225
onlyif mysql # use DIV operator for integer division
query I rowsort label-8412
SELECT DISTINCT + col1 DIV 8 col0 FROM tab0
----
10
11
12
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8412
SELECT DISTINCT + col1 / 8 col0 FROM tab0
----
10
11
12
query I rowsort
SELECT DISTINCT col0 + col2 + + col1 AS col0 FROM tab1
----
131
189
83
query I rowsort
SELECT DISTINCT 99 * + 42 + col2 AS col1 FROM tab2
----
4184
4185
4196
query I rowsort
SELECT ( + col0 ) AS col2 FROM tab2
----
7
78
79
query I rowsort
SELECT 42 FROM tab0, tab0 cor0, tab2 AS cor1
----
27 values hashing to 325aada2239b6fe1fe2d843515ae8c5e
query I rowsort
SELECT cor1.col2 AS col0 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
onlyif mysql # use DIV operator for integer division
query I rowsort label-8418
SELECT - col2 DIV cor0.col0 FROM tab1 cor0
----
-1
-18
0
skipif mysql # not compatible
query I rowsort label-8418
SELECT - col2 / cor0.col0 FROM tab1 cor0
----
-1
-18
0
query I rowsort
SELECT DISTINCT col2 + col1 AS col0 FROM tab1 cor0
----
109
67
80
query I rowsort
SELECT 35 - + col2 FROM tab0 AS cor0
----
-47
2
34
query I rowsort
SELECT DISTINCT - 32 + col0 FROM tab2 cor0
----
-25
46
47
query I rowsort
SELECT ALL + - col0 * + col2 + + col1 + col0 * col0 * col0 FROM tab1 AS cor0
----
-109
258506
504333
onlyif mysql # use DIV operator for integer division
query I rowsort label-8423
SELECT - 19 - col1 DIV col0 FROM tab1 AS cor0
----
-19
-19
-27
skipif mysql # not compatible
query I rowsort label-8423
SELECT - 19 - col1 / col0 FROM tab1 AS cor0
----
-19
-19
-27
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8424
SELECT DISTINCT + - col1 * col1 + CAST( NULL AS SIGNED ) * + col0 AS col1 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8424
SELECT DISTINCT + - col1 * col1 + CAST ( NULL AS INTEGER ) * + col0 AS col1 FROM tab2 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-8425
SELECT col2 * + col2 + - 52 DIV col1 FROM tab1 AS cor0
----
2914
3244
9212
skipif mysql # not compatible
query I rowsort label-8425
SELECT col2 * + col2 + - 52 / col1 FROM tab1 AS cor0
----
2914
3244
9212
query I rowsort
SELECT - col0 * + 63 * col0 FROM tab2 AS cor0
----
-3087
-383292
-393183
query I rowsort
SELECT ALL - 37 AS col1 FROM tab1
----
-37
-37
-37
query I rowsort
SELECT ALL - col1 + + col2 * col0 AS col1 FROM tab2 AS cor0
----
158
1969
2985
onlyif mysql # use DIV operator for integer division
query I rowsort label-8429
SELECT col0 DIV col2 + + col1 + col1 * - cor0.col1 AS col1 FROM tab1 cor0
----
-156
-650
-89
skipif mysql # not compatible
query I rowsort label-8429
SELECT col0 / col2 + + col1 + col1 * - cor0.col1 AS col1 FROM tab1 cor0
----
-156
-650
-89
query I rowsort
SELECT DISTINCT cor0.col0 + ( col1 ) * col2 FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT DISTINCT + col2 * + col1 AS col1 FROM tab2 cor0
----
1534
646
837
query I rowsort
SELECT ALL - - col0 * col0 + cor0.col2 AS col2 FROM tab2 AS cor0
----
6110
6279
76
query I rowsort
SELECT - 13 + col0 AS col2 FROM tab2
----
-6
65
66
query I rowsort
SELECT ALL 47 AS col1 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 3f991632e9c7c5142e1d80857cd10a2d
query I rowsort
SELECT DISTINCT col1 + + col1 * ( col1 ) + - col0 FROM tab0
----
7458
8283
9471
query I rowsort
SELECT DISTINCT + tab0.col2 AS col0 FROM tab0, tab1 AS cor0
----
1
33
82
query I rowsort
SELECT ALL col2 + tab1.col1 * 80 AS col1 FROM tab1
----
1136
2134
857
onlyif mysql # use DIV operator for integer division
query I rowsort label-8438
SELECT DISTINCT - cor0.col2 DIV col0 AS col1 FROM tab0 AS cor0
----
-1
0
skipif mysql # not compatible
query I rowsort label-8438
SELECT DISTINCT - cor0.col2 / col0 AS col1 FROM tab0 AS cor0
----
-1
0
query I rowsort
SELECT ALL - col0 + 70 FROM tab2 cor0
----
-8
-9
63
query I rowsort
SELECT ALL + ( + 88 ) - col1 AS col2 FROM tab1 AS cor0
----
62
75
78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8441
SELECT DISTINCT - - col1 / col2 - col1 * - ( + ( col2 ) * CAST( NULL AS DECIMAL ) ) FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8441
SELECT DISTINCT - - col1 / col2 - col1 * - ( + ( col2 ) * CAST ( NULL AS REAL ) ) FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT + col2 + col0 * col2 AS col2 FROM tab0 AS cor0
----
36
7380
825
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8443
SELECT ALL + CAST( col1 AS SIGNED ) + col0 FROM tab0 AS cor0
----
110
132
180
skipif mysql # not compatible
query I rowsort label-8443
SELECT ALL + CAST ( col1 AS INTEGER ) + col0 FROM tab0 AS cor0
----
110
132
180
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab1.col2 * - col2 col2 FROM tab1
----
-2916
-3249
-9216
query I rowsort
SELECT DISTINCT col1 * ( 24 + col1 ) AS col0 FROM tab2
----
1705
4897
697
query I rowsort
SELECT DISTINCT col0 * - col0 AS col2 FROM tab1
----
-4096
-6400
-9
query I rowsort
SELECT DISTINCT - 69 * cor0.col1 AS col0 FROM tab1, tab2 AS cor0
----
-1173
-2139
-4071
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 92 col1 FROM tab2, tab1 AS cor0 CROSS JOIN tab1
----
27 values hashing to c64cb7a81da51f4be0b6906a223e8817
query I rowsort
SELECT + + ( + 97 ) + + col1 * col1 FROM tab1 AS cor0
----
197
266
773
query I rowsort
SELECT + + ( - col0 ) * col1 - ( + col0 ) * col2 AS col2 FROM tab1 AS cor0
----
-240
-4288
-8720
onlyif mysql # use DIV operator for integer division
query I rowsort label-8451
SELECT - 66 DIV 20 + - col1 FROM tab0 AS cor0
----
-100
-89
-94
skipif mysql # not compatible
query I rowsort label-8451
SELECT - 66 / 20 + - col1 FROM tab0 AS cor0
----
-100
-89
-94
query I rowsort
SELECT ALL 45 FROM tab1, tab1 cor0
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050
onlyif mysql # use DIV operator for integer division
query I rowsort label-8453
SELECT + col0 DIV - col2 + col1 AS col1 FROM tab1
----
13
26
9
skipif mysql # not compatible
query I rowsort label-8453
SELECT + col0 / - col2 + col1 AS col1 FROM tab1
----
13
26
9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8454
SELECT col0 * CAST( - col2 * - col2 AS SIGNED ) FROM tab2
----
114076
5103
52728
skipif mysql # not compatible
query I rowsort label-8454
SELECT col0 * CAST ( - col2 * - col2 AS INTEGER ) FROM tab2
----
114076
5103
52728
query I rowsort
SELECT ALL col0 + 1 AS col1 FROM tab0
----
25
36
90
query I rowsort
SELECT ALL - col1 * 75 + col0 + col1 AS col2 FROM tab0
----
-6340
-6645
-7143
query I rowsort
SELECT DISTINCT col2 + + tab1.col2 AS col2 FROM tab1
----
108
114
192
query I rowsort
SELECT ALL col0 + + col1 AS col2 FROM tab0
----
110
132
180
query I rowsort
SELECT DISTINCT col0 * col2 + col2 + - col2 AS col1 FROM tab1
----
162
3648
7680
query I rowsort
SELECT - col0 * + 26 AS col1 FROM tab0 AS cor0
----
-2314
-624
-910
onlyif mysql # use DIV operator for integer division
query I rowsort label-8461
SELECT DISTINCT + 76 + ( col1 ) DIV cor0.col0 AS col1 FROM tab2 AS cor0
----
76
80
skipif mysql # not compatible
query I rowsort label-8461
SELECT DISTINCT + 76 + ( col1 ) / cor0.col0 AS col1 FROM tab2 AS cor0
----
76
80
query I rowsort
SELECT + 63 + cor0.col1 AS col0 FROM tab0 cor0
----
149
154
160
query I rowsort
SELECT DISTINCT - + ( 39 ) FROM tab0 AS cor0
----
-39
query I rowsort
SELECT 93 + 14 AS col0 FROM tab2 AS cor0
----
107
107
107
query I rowsort
SELECT ALL + + 12 * 80 FROM tab2 AS cor0
----
960
960
960
query I rowsort
SELECT + col1 + - 74 FROM tab0 AS cor0
----
12
17
23
query I rowsort
SELECT ALL 69 AS col2 FROM tab2 cor0
----
69
69
69
query I rowsort
SELECT ALL cor0.col0 + col1 * + col1 AS col2 FROM tab2 AS cor0
----
3559
368
968
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 * col1 * col2 col2 FROM tab0 AS cor0
----
-244068
-679042
-9409
query I rowsort
SELECT DISTINCT - ( col2 ) * - col0 - + col1 * + col2 FROM tab0 AS cor0
----
-164
-2046
-62
query I rowsort
SELECT ALL + - 36 * - col0 AS col0 FROM tab0 AS cor0
----
1260
3204
864
skipif mysql # not compatible
query I rowsort
SELECT + + col0 + 49 * cor0.col1 * - CAST ( + cor0.col0 AS REAL ) FROM tab2 AS cor0
----
-10626
-225420
-65728
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8473
SELECT ALL - + CAST( ( col1 ) AS SIGNED ) * col2 + - col2 * col2 AS col2 FROM tab0 AS cor0
----
-14186
-3927
-98
skipif mysql # not compatible
query I rowsort label-8473
SELECT ALL - + CAST ( ( col1 ) AS INTEGER ) * col2 + - col2 * col2 AS col2 FROM tab0 AS cor0
----
-14186
-3927
-98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 - 42 col0 FROM tab1
----
12
15
54
onlyif mysql # use DIV operator for integer division
query I rowsort label-8475
SELECT ALL col2 * ( - col2 * + col0 ) + ( - col1 ) DIV + col1 FROM tab2
----
-114077
-5104
-52729
skipif mysql # not compatible
query I rowsort label-8475
SELECT ALL col2 * ( - col2 * + col0 ) + ( - col1 ) / + col1 FROM tab2
----
-114077
-5104
-52729
query I rowsort
SELECT ALL 98 AS col0 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to c758e8afbdfa6aae279045b0e9cbacc2
onlyif mysql # use DIV operator for integer division
query I rowsort label-8477
SELECT ALL - cor0.col1 DIV + col1 AS col2 FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-8477
SELECT ALL - cor0.col1 / + col1 AS col2 FROM tab0 AS cor0
----
-1
-1
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - col2 col0 FROM tab2 AS cor0
----
-20
41
52
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8479
SELECT DISTINCT CAST( NULL AS SIGNED ) + col1 * - col0 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8479
SELECT DISTINCT CAST ( NULL AS INTEGER ) + col1 * - col0 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT cor0.col1 + col1 FROM tab2 cor0
----
118
34
62
query I rowsort
SELECT DISTINCT + 74 FROM tab2 AS cor0
----
74
query I rowsort
SELECT DISTINCT - + cor0.col2 AS col1 FROM tab0 AS cor0
----
-1
-33
-82
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8483
SELECT DISTINCT - + 63 * - col1 * + CAST( 2 * - col2 AS SIGNED ) + - col1 AS col1 FROM tab1 cor0
----
-157261
-176930
-71830
skipif mysql # not compatible
query I rowsort label-8483
SELECT DISTINCT - + 63 * - col1 * + CAST ( 2 * - col2 AS INTEGER ) + - col1 AS col1 FROM tab1 cor0
----
-157261
-176930
-71830
query I rowsort
SELECT ALL + + col0 + + col1 * + col0 * + col2 FROM tab0 AS cor0
----
3430
664207
68136
query I rowsort
SELECT - 34 AS col0 FROM tab2 AS cor0
----
-34
-34
-34
query I rowsort
SELECT DISTINCT + + col2 + - cor0.col2 FROM tab1 AS cor0
----
0
query I rowsort
SELECT ALL - col0 * - col2 AS col2 FROM tab1 cor0
----
162
3648
7680
query I rowsort
SELECT DISTINCT - - col0 * cor0.col1 * + ( ( - col2 ) * - 26 ) + col0 FROM tab2 AS cor0
----
1326963
152341
3111030
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 26 * col2 col0 FROM tab1 AS cor0
----
1404
1482
2496
query I rowsort
SELECT ALL - - col1 + + cor0.col2 * + col0 AS col2 FROM tab0 AS cor0
----
132
7389
878
query I rowsort
SELECT DISTINCT - col2 + - col1 * + col2 FROM tab1 AS cor0
----
-1344
-1458
-627
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 7 + col2 col0 FROM tab2 AS cor0
----
33
34
45
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8493
SELECT ALL - cor0.col0 * col0 + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8493
SELECT ALL - cor0.col0 * col0 + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort
SELECT - cor0.col1 + + CAST ( col0 AS REAL ) * col0 - col0 * - 61 AS col1 FROM tab2 AS cor0
----
10783
11043
445
query I rowsort
SELECT DISTINCT + - col2 + - ( - 29 ) FROM tab2 cor0
----
-9
2
3
query I rowsort
SELECT ALL + tab0.col2 * col1 * tab0.col1 FROM tab0
----
244068
679042
9409
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8497
SELECT ALL - col2 * CAST( NULL AS SIGNED ) + - cor0.col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8497
SELECT ALL - col2 * CAST ( NULL AS INTEGER ) + - cor0.col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - cor0.col0 + - 77 * col1 FROM tab0 AS cor0
----
-6646
-7096
-7504
query I rowsort
SELECT DISTINCT + col0 * + 59 FROM tab1 AS cor0
----
177
3776
4720
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 * - col0 + col1 + - cor0.col0 * - col0 col0 FROM tab2 AS cor0
----
-109
3256
4115
query I rowsort
SELECT ALL - col0 * cor0.col0 * - cor0.col0 AS col2 FROM tab1 AS cor0
----
262144
27
512000
query I rowsort
SELECT DISTINCT + - col0 + col0 + - col2 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT DISTINCT 34 FROM tab1, tab2, tab1 AS cor0
----
34
query I rowsort
SELECT ALL + 3 FROM tab2
----
3
3
3
query I rowsort
SELECT - 5 * col2 + tab2.col1 * col0 FROM tab2
----
1153
4472
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + col1 col2 FROM tab2
----
137
38
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-8507
SELECT DISTINCT - 24 DIV 30 FROM tab1, tab2 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-8507
SELECT DISTINCT - 24 / 30 FROM tab1, tab2 AS cor0
----
0
query I rowsort
SELECT DISTINCT col0 * cor0.col2 AS col1 FROM tab2 cor0
----
189
2028
3002
query I rowsort
SELECT DISTINCT - col1 + cor0.col2 * - col1 FROM tab0 AS cor0
----
-194
-2924
-7553
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8510
SELECT DISTINCT - col1 * + CAST( NULL AS SIGNED ) + col2 * - col0 * - ( col0 ) FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-8510
SELECT DISTINCT - col1 * + CAST ( NULL AS INTEGER ) + col2 * - col0 * - ( col0 ) FROM tab1
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8511
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - col1 + col1 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-8511
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - col1 + col1 FROM tab1
----
NULL
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab2 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab1 AS cor2
----
3645 values hashing to 6156c969b7e054b8a333fdb86aee82f2
query I rowsort
SELECT DISTINCT + - cor0.col1 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-17
-31
-59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 55 col1 FROM tab1
----
55
55
55
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * - col0 col2 FROM tab1
----
162
3648
7680
query I rowsort
SELECT ALL 65 AS col1 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 1c9d0bf96cd3361942fadad668138b9c
query I rowsort
SELECT DISTINCT - col2 + - cor0.col0 AS col2 FROM tab0 AS cor0
----
-171
-36
-57
query I rowsort
SELECT col2 * - col0 AS col2 FROM tab0 cor0
----
-35
-7298
-792
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8519
SELECT DISTINCT + col2 + col2 * + CAST( NULL AS SIGNED ) * + cor0.col2 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8519
SELECT DISTINCT + col2 + col2 * + CAST ( NULL AS INTEGER ) * + cor0.col2 FROM tab1 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col0 * - col1 - + 29 * + col0 col2 FROM tab0 AS cor0
----
-10680
-2760
-4410
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0, tab0 AS cor1, tab2, tab0 cor2
----
3645 values hashing to 4fa4bd3038de6e74a345debc8ab4cd53
query I rowsort
SELECT col1 + - 96 AS col0 FROM tab1 AS cor0
----
-70
-83
-86
query I rowsort
SELECT + 93 + col0 AS col0 FROM tab1 AS cor0
----
157
173
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8524
SELECT - + CAST( NULL AS DECIMAL ) + + col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8524
SELECT - + CAST ( NULL AS REAL ) + + col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col1 * - col2 * col1 FROM tab0
----
244068
679042
9409
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab1.col2 col1 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
-54
-57
-96
query I rowsort
SELECT ALL - 77 FROM tab1
----
-77
-77
-77
query I rowsort
SELECT + ( + ( - col2 ) ) FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT DISTINCT + 76 AS col0 FROM tab2, tab1 AS cor0
----
76
query I rowsort
SELECT + cor0.col0 AS col2 FROM tab1, tab0 cor0, tab0 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
query I rowsort
SELECT ALL col0 + col2 * 12 AS col2 FROM tab1
----
1232
651
748
query I rowsort
SELECT ALL ( col0 ) + - 6 * + cor0.col0 FROM tab2 AS cor0
----
-35
-390
-395
query I rowsort
SELECT - col1 * + col1 + - ( col1 ) FROM tab0 AS cor0
----
-7482
-8372
-9506
query I rowsort
SELECT - ( col2 ) * cor0.col0 + cor0.col1 AS col1 FROM tab1 AS cor0
----
-136
-3638
-7667
query I rowsort
SELECT ALL - cor0.col1 + + cor0.col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 92ef426526338653e88acd4aba639c47
query I rowsort
SELECT + 77 + - col2 * col0 AS col1 FROM tab0 AS cor0
----
-715
-7221
42
query I rowsort
SELECT DISTINCT + 25 * + col1 + col1 * col1 * + col1 AS col2 FROM tab1 AS cor0
----
1250
18226
2522
query I rowsort
SELECT + - col1 * col1 - col1 AS col2 FROM tab0 AS cor0
----
-7482
-8372
-9506
query I rowsort
SELECT col0 + - col1 * + col0 FROM tab1 cor0
----
-576
-75
-960
query I rowsort
SELECT ALL col2 * + 21 + - ( col0 ) AS col0 FROM tab1 AS cor0
----
1131
1133
1936
query I rowsort
SELECT ALL - + col2 * - ( cor0.col1 ) * cor0.col2 AS col0 FROM tab0 AS cor0
----
611884
93654
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-8542
SELECT DISTINCT - col1 DIV ( - 17 * - cor0.col2 ) FROM tab0 AS cor0
----
-5
0
skipif mysql # not compatible
query I rowsort label-8542
SELECT DISTINCT - col1 / ( - 17 * - cor0.col2 ) FROM tab0 AS cor0
----
-5
0
query I rowsort
SELECT - col1 + 48 * - col2 FROM tab1 AS cor0
----
-2618
-2746
-4621
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8544
SELECT + cor0.col2 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8544
SELECT + cor0.col2 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + 4 + - col1 * + col0 FROM tab0
----
-2060
-3391
-8095
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8546
SELECT + col0 * CAST( 82 AS SIGNED ) - + col1 AS col1 FROM tab0 cor0
----
1882
2773
7207
skipif mysql # not compatible
query I rowsort label-8546
SELECT + col0 * CAST ( 82 AS INTEGER ) - + col1 AS col1 FROM tab0 cor0
----
1882
2773
7207
onlyif mysql # use DIV operator for integer division
query I rowsort label-8547
SELECT ALL tab1.col2 + ( + col1 * col0 ) - - CAST( + 94 AS SIGNED ) DIV col1 FROM tab1
----
1143
135
706
skipif mysql # not compatible
query I rowsort label-8547
SELECT ALL tab1.col2 + ( + col1 * col0 ) - - CAST ( + 94 AS INTEGER ) / col1 FROM tab1
----
1143
135
706
query I rowsort
SELECT ALL tab1.col2 - 89 * col2 FROM tab1
----
-4752
-5016
-8448
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col2 col2 FROM tab2, tab0 cor0
----
-1
-33
-82
query I rowsort
SELECT col0 * + ( 5 ) FROM tab1 AS cor0
----
15
320
400
query I rowsort
SELECT DISTINCT - col1 * - 62 AS col0 FROM tab1 AS cor0
----
1612
620
806
query I rowsort
SELECT DISTINCT - col1 + + col1 * col0 * - 46 FROM tab2 cor0
----
-10013
-211751
-61795
onlyif mysql # use DIV operator for integer division
query I rowsort label-8553
SELECT col0 DIV - cor0.col0 FROM tab1 cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-8553
SELECT col0 / - cor0.col0 FROM tab1 cor0
----
-1
-1
-1
query I rowsort
SELECT DISTINCT - col1 * 30 FROM tab0 AS cor0
----
-2580
-2730
-2910
onlyif mysql # use DIV operator for integer division
query I rowsort label-8555
SELECT ALL + 68 DIV + 69 AS col1 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8555
SELECT ALL + 68 / + 69 AS col1 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-8556
SELECT + col0 DIV + 17 + - col0 + - col0 FROM tab2 AS cor0
----
-14
-152
-154
skipif mysql # not compatible
query I rowsort label-8556
SELECT + col0 / + 17 + - col0 + - col0 FROM tab2 AS cor0
----
-14
-152
-154
query I rowsort
SELECT ALL 93 FROM tab1 AS cor0
----
93
93
93
query I rowsort
SELECT ALL - + 26 AS col1 FROM tab2 AS cor0
----
-26
-26
-26
onlyif mysql # use DIV operator for integer division
query I rowsort label-8559
SELECT DISTINCT + + col2 DIV + col0 + + cor0.col2 FROM tab2 cor0
----
26
30
38
skipif mysql # not compatible
query I rowsort label-8559
SELECT DISTINCT + + col2 / + col0 + + cor0.col2 FROM tab2 cor0
----
26
30
38
query I rowsort
SELECT + col1 * col0 + - col2 FROM tab1 AS cor0
----
24
583
944
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col0 col0 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT + 9 AS col1 FROM tab2 AS cor0
----
9
9
9
query I rowsort
SELECT + + 39 * + col0 * + col1 + 17 - - col1 FROM tab2 AS cor0
----
179554
52411
8511
query I rowsort
SELECT + tab2.col0 * - ( - 1 ) FROM tab2
----
7
78
79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8565
SELECT DISTINCT col1 * + CAST( - col2 AS SIGNED ) * + col2 AS col2 FROM tab0
----
-611884
-93654
-97
skipif mysql # not compatible
query I rowsort label-8565
SELECT DISTINCT col1 * + CAST ( - col2 AS INTEGER ) * + col2 AS col2 FROM tab0
----
-611884
-93654
-97
query I rowsort
SELECT ALL - cor0.col1 + - 68 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 24b6b2d30f2d343811b860205c6df2bc
query I rowsort
SELECT ALL - + 47 + col0 + + col2 AS col1 FROM tab1 AS cor0
----
10
129
74
query I rowsort
SELECT 25 + + 77 + col2 AS col0 FROM tab2 AS cor0
----
128
129
140
query I rowsort
SELECT DISTINCT 73 AS col0 FROM tab1 AS cor0
----
73
query I rowsort
SELECT ALL - 59 * 67 + - col0 + col2 * col2 * col1 FROM tab2 AS cor0
----
18639
20516
35853
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * tab2.col1 col2 FROM tab2
----
1343
217
4602
query I rowsort
SELECT 33 + - col1 FROM tab0 AS cor0
----
-53
-58
-64
query I rowsort
SELECT - - 78 FROM tab2 cor0
----
78
78
78
query I rowsort
SELECT ALL 53 FROM tab0
----
53
53
53
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - cor0.col2 ) col1 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT + - col2 * - col1 * col2 AS col1 FROM tab0 AS cor0
----
611884
93654
97
query I rowsort
SELECT ALL + - col0 - - col0 * + cor0.col1 FROM tab0 AS cor0
----
2040
3360
8010
query I rowsort
SELECT + 48 + + col1 * + ( 38 + cor0.col0 * + cor0.col2 ) AS col1 FROM tab1 AS cor0
----
100382
36908
5248
query I rowsort
SELECT 6 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to f1e8f0199f3714ee8fcc24ce0cc3ea04
onlyif mysql # use DIV operator for integer division
query I rowsort label-8580
SELECT ALL tab1.col1 DIV col2 AS col1 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8580
SELECT ALL tab1.col1 / col2 AS col1 FROM tab1
----
0
0
0
query I rowsort
SELECT - 7 - - 41 * col2 FROM tab2
----
1059
1100
1551
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8582
SELECT ALL + col1 + col0 * - CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8582
SELECT ALL + col1 + col0 * - CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - 72 + + col2 * - col1 FROM tab0 AS cor0
----
-169
-2910
-7534
query I rowsort
SELECT DISTINCT + col2 - - col0 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT col0 * + col1 AS col1 FROM tab0 cor0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT tab1.col0 * - col2 FROM tab1
----
-162
-3648
-7680
query I rowsort
SELECT ALL + + cor0.col2 * col1 + + cor0.col0 + + 25 FROM tab2 AS cor0
----
1637
750
869
query I rowsort
SELECT DISTINCT + + col2 * col1 - col0 FROM tab2 AS cor0
----
1456
567
830
query I rowsort
SELECT + ( + col2 ) * col2 * col0 + + tab2.col0 AS col2 FROM tab2
----
114155
5110
52806
query I rowsort
SELECT ALL col1 * + 25 AS col0 FROM tab0
----
2150
2275
2425
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8591
SELECT ALL - CAST( col0 AS SIGNED ) * tab0.col1 * col0 AS col1 FROM tab0
----
-118825
-49536
-720811
skipif mysql # not compatible
query I rowsort label-8591
SELECT ALL - CAST ( col0 AS INTEGER ) * tab0.col1 * col0 AS col1 FROM tab0
----
-118825
-49536
-720811
query I rowsort
SELECT ALL 58 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ef6e63aeed2581a168f07646d258f666
query I rowsort
SELECT ALL col2 - - col1 AS col0 FROM tab0 cor0
----
119
173
98
query I rowsort
SELECT ALL tab0.col2 + col2 FROM tab0
----
164
2
66
query I rowsort
SELECT + col0 + col0 * 95 AS col0 FROM tab2 AS cor0
----
672
7488
7584
onlyif mysql # use DIV operator for integer division
query I rowsort label-8596
SELECT ALL + col1 DIV - col2 FROM tab0 cor0
----
-1
-2
-97
skipif mysql # not compatible
query I rowsort label-8596
SELECT ALL + col1 / - col2 FROM tab0 cor0
----
-1
-2
-97
query I rowsort
SELECT DISTINCT + col0 - cor0.col1 AS col0 FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT + + col1 - col0 * - ( - col2 ) FROM tab0 AS cor0
----
-706
-7207
62
query I rowsort
SELECT + 53 * cor0.col0 + - col0 AS col2 FROM tab0 cor0
----
1248
1820
4628
query I rowsort
SELECT DISTINCT - 22 AS col0 FROM tab0 AS cor0
----
-22
query I rowsort
SELECT - - col1 * - col2 - cor0.col0 AS col2 FROM tab0 AS cor0
----
-132
-2862
-7551
query I rowsort
SELECT col2 * col2 * - col2 - tab2.col1 FROM tab2
----
-17635
-19714
-54889
query I rowsort
SELECT + cor0.col0 FROM tab0 AS cor0 CROSS JOIN tab1, tab2 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
query I rowsort
SELECT DISTINCT 40 FROM tab0, tab1 cor0
----
40
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8605
SELECT ALL + col2 * CAST( NULL AS DECIMAL ) col2 FROM tab1
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8605
SELECT ALL + col2 * CAST ( NULL AS REAL ) col2 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col1 * - ( + col2 + col0 * 40 ) FROM tab2 AS cor0
----
185614
54366
9517
query I rowsort
SELECT DISTINCT + col2 + 85 AS col1 FROM tab2 AS cor0
----
111
112
123
onlyif mysql # use DIV operator for integer division
query I rowsort label-8608
SELECT + - col0 * col2 + col1 + + col1 DIV - 46 AS col1 FROM tab1 cor0
----
-136
-3638
-7667
skipif mysql # not compatible
query I rowsort label-8608
SELECT + - col0 * col2 + col1 + + col1 / - 46 AS col1 FROM tab1 cor0
----
-136
-3638
-7667
query I rowsort
SELECT ALL col1 * + ( cor0.col0 ) FROM tab0 cor0
----
2064
3395
8099
query I rowsort
SELECT - cor0.col2 + + 78 AS col0 FROM tab0 AS cor0
----
-4
45
77
onlyif mysql # use DIV operator for integer division
query I rowsort label-8611
SELECT ALL - col1 DIV - col1 AS col1 FROM tab2 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-8611
SELECT ALL - col1 / - col1 AS col1 FROM tab2 AS cor0
----
1
1
1
query I rowsort
SELECT 11 * - cor0.col2 + + ( + 21 ) FROM tab2, tab0 AS cor0
----
9 values hashing to 26237c51d6abbf7ce32db7a22638ff67
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 2 col1 FROM tab2 cor0
----
-2
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8614
SELECT ALL + CAST( + col0 AS SIGNED ) * + cor0.col1 FROM tab0 AS cor0
----
2064
3395
8099
skipif mysql # not compatible
query I rowsort label-8614
SELECT ALL + CAST ( + col0 AS INTEGER ) * + cor0.col1 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT ALL + - 48 * + col1 AS col0 FROM tab1 AS cor0
----
-1248
-480
-624
query I rowsort
SELECT DISTINCT 2 FROM tab0 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab0 AS cor2
----
2
onlyif mysql # use DIV operator for integer division
query I rowsort label-8617
SELECT - ( 30 ) DIV - cor0.col0 AS col0 FROM tab2 AS cor0
----
0
0
4
skipif mysql # not compatible
query I rowsort label-8617
SELECT - ( 30 ) / - cor0.col0 AS col0 FROM tab2 AS cor0
----
0
0
4
onlyif mysql # use DIV operator for integer division
query I rowsort label-8618
SELECT + - col0 DIV - col0 AS col1 FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-8618
SELECT + - col0 / - col0 AS col1 FROM tab1 AS cor0
----
1
1
1
query I rowsort
SELECT ALL + + 8 AS col1 FROM tab0 AS cor0
----
8
8
8
query I rowsort
SELECT ALL - 67 * + 69 + col1 FROM tab1 AS cor0
----
-4597
-4610
-4613
query I rowsort
SELECT ALL 71 * + col1 + + col2 AS col2 FROM tab2 cor0
----
1245
2228
4215
query I rowsort
SELECT DISTINCT + + 54 FROM tab0 AS cor0
----
54
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8623
SELECT - - CAST( + 16 AS SIGNED ) * - col0 + col0 FROM tab2 AS cor0
----
-105
-1170
-1185
skipif mysql # not compatible
query I rowsort label-8623
SELECT - - CAST ( + 16 AS INTEGER ) * - col0 + col0 FROM tab2 AS cor0
----
-105
-1170
-1185
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * 26 col0 FROM tab1 AS cor0
----
-260
-338
-676
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8625
SELECT + CAST( NULL AS SIGNED ) + - 91 * cor0.col0 col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8625
SELECT + CAST ( NULL AS INTEGER ) + - 91 * cor0.col0 col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + col1 + 95 AS col2 FROM tab1 AS cor0
----
105
108
121
query I rowsort
SELECT 72 + col1 AS col0 FROM tab2 AS cor0
----
103
131
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-8628
SELECT + col1 DIV 62 + - col2 * + 85 * - col0 FROM tab1 AS cor0
----
13770
310080
652800
skipif mysql # not compatible
query I rowsort label-8628
SELECT + col1 / 62 + - col2 * + 85 * - col0 FROM tab1 AS cor0
----
13770
310080
652800
onlyif mysql # use DIV operator for integer division
query I rowsort label-8629
SELECT - - 60 DIV col0 AS col1 FROM tab0 AS cor0
----
0
1
2
skipif mysql # not compatible
query I rowsort label-8629
SELECT - - 60 / col0 AS col1 FROM tab0 AS cor0
----
0
1
2
query I rowsort
SELECT + - col0 * + col0 * + col2 + ( - ( cor0.col1 ) ) * ( 68 * cor0.col0 ) + - ( - col1 ) FROM tab1 AS cor0
----
-276982
-5764
-685107
onlyif mysql # use DIV operator for integer division
query I rowsort label-8631
SELECT ALL - cor0.col1 DIV - col1 + col2 * col1 FROM tab2 cor0
----
1535
647
838
skipif mysql # not compatible
query I rowsort label-8631
SELECT ALL - cor0.col1 / - col1 + col2 * col1 FROM tab2 cor0
----
1535
647
838
query I rowsort
SELECT DISTINCT - - col0 * col0 + + col1 AS col2 FROM tab2 AS cor0
----
6143
6258
80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8633
SELECT ALL + CAST( - col0 AS SIGNED ) FROM tab1 cor0
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-8633
SELECT ALL + CAST ( - col0 AS INTEGER ) FROM tab1 cor0
----
-3
-64
-80
query I rowsort
SELECT ALL + col0 * 6 + - col0 * col0 * ( col1 ) FROM tab1 AS cor0
----
-216
-40576
-82720
query I rowsort
SELECT + col1 + - 11 * col1 AS col1 FROM tab1 AS cor0
----
-100
-130
-260
onlyif mysql # use DIV operator for integer division
query I rowsort label-8636
SELECT - + 6 DIV - col0 FROM tab1 AS cor0
----
0
0
2
skipif mysql # not compatible
query I rowsort label-8636
SELECT - + 6 / - col0 FROM tab1 AS cor0
----
0
0
2
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col1 + - 23 col0 FROM tab2
----
-6
36
8
query I rowsort
SELECT DISTINCT - 83 * 79 AS col0 FROM tab1
----
-6557
query I rowsort
SELECT ALL + - cor0.col0 - col1 FROM tab0 AS cor0
----
-110
-132
-180
query I rowsort
SELECT - + col2 * col1 + ( col1 * + ( col0 ) + - cor0.col1 ) AS col0 FROM tab1 AS cor0
----
-1352
-221
60
query I rowsort
SELECT 46 + 54 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to fdbc64d082fd12518b9c868f375d2675
query I rowsort
SELECT DISTINCT col2 + - col2 AS col1 FROM tab0 AS cor0
----
0
query I rowsort
SELECT ALL col1 * + 71 + col0 * cor0.col2 * - col1 + + 45 AS col1 FROM tab2 AS cor0
----
-115418
-3613
-49782
query I rowsort
SELECT DISTINCT + 1 FROM tab1, tab1 AS cor0, tab1 cor1
----
1
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab1 AS cor0, tab1 AS cor1, tab0, tab2 AS cor2
----
3645 values hashing to 4c87430a2010fee8daf6d04acf0ad703
onlyif mysql # use DIV operator for integer division
query I rowsort label-8646
SELECT DISTINCT col2 DIV col2 + col1 + - cor0.col1 * col1 * cor0.col2 AS col0 FROM tab0 AS cor0
----
-243981
-678950
-9311
skipif mysql # not compatible
query I rowsort label-8646
SELECT DISTINCT col2 / col2 + col1 + - cor0.col1 * col1 * cor0.col2 AS col0 FROM tab0 AS cor0
----
-243981
-678950
-9311
query I rowsort
SELECT - col2 + 34 AS col0 FROM tab0 AS cor0
----
-48
1
33
onlyif mysql # use DIV operator for integer division
query I rowsort label-8648
SELECT DISTINCT - - cor0.col0 + col0 * ( col1 ) DIV + cor0.col1 + - cor0.col1 AS col2 FROM tab1 AS cor0
----
-20
118
147
skipif mysql # not compatible
query I rowsort label-8648
SELECT DISTINCT - - cor0.col0 + col0 * ( col1 ) / + cor0.col1 + - cor0.col1 AS col2 FROM tab1 AS cor0
----
-20
118
147
query I rowsort
SELECT ALL 59 AS col2 FROM tab2, tab2 cor0, tab1 AS cor1
----
27 values hashing to e29fef8cdec1ee45a71d213f16d2f1d3
onlyif mysql # use DIV operator for integer division
query I rowsort label-8650
SELECT - cor0.col2 - col1 DIV col1 FROM tab0 cor0
----
-2
-34
-83
skipif mysql # not compatible
query I rowsort label-8650
SELECT - cor0.col2 - col1 / col1 FROM tab0 cor0
----
-2
-34
-83
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8651
SELECT + col0 + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8651
SELECT + col0 + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col0 + - 64 AS col1 FROM tab2
----
-142
-143
-71
query I rowsort
SELECT col1 + + cor0.col0 * col0 FROM tab1 AS cor0
----
35
4106
6413
query I rowsort
SELECT - col0 * + col1 + + col1 AS col0 FROM tab0
----
-1978
-3298
-8008
skipif mysql # not compatible
query I rowsort
SELECT ALL + + col1 * CAST ( - col0 AS REAL ) FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT ALL + 27 AS col0 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 1a3cef5c33b8f87ffeded378fd207753
query I rowsort
SELECT ALL + - cor0.col2 * - col1 AS col2 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT col1 + tab1.col2 * - col1 FROM tab1
----
-1235
-1378
-560
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8659
SELECT ALL + col1 * CAST( NULL AS DECIMAL ) * col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8659
SELECT ALL + col1 * CAST ( NULL AS REAL ) * col1 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT + cor0.col1 + - ( col2 ) * - col1 - cor0.col1 * col2 AS col2 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT + col2 * + ( - col2 ) + col0 FROM tab1 AS cor0
----
-2913
-3185
-9136
query I rowsort
SELECT + col1 + - 53 - - col0 FROM tab0 AS cor0
----
127
57
79
query I rowsort
SELECT ALL + col1 + col0 * 63 AS col2 FROM tab0 AS cor0
----
1598
2302
5698
query I rowsort
SELECT col2 + - cor0.col1 FROM tab2 cor0
----
-33
-4
21
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8665
SELECT + + CAST( 89 AS SIGNED ) + - col1 - + 90 * col2 AS col1 FROM tab0 cor0
----
-2967
-7382
-98
skipif mysql # not compatible
query I rowsort label-8665
SELECT + + CAST ( 89 AS INTEGER ) + - col1 - + 90 * col2 AS col1 FROM tab0 cor0
----
-2967
-7382
-98
query I rowsort
SELECT ALL - - 56 FROM tab2 AS cor0
----
56
56
56
query I rowsort
SELECT DISTINCT + col2 * 35 AS col0 FROM tab2 AS cor0
----
1330
910
945
query I rowsort
SELECT DISTINCT - 35 * cor0.col2 AS col2 FROM tab1, tab2 AS cor0
----
-1330
-910
-945
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab2 AS cor2
----
972 values hashing to 2507aa9f48c3db94de9fec065edf3731
query I rowsort
SELECT DISTINCT - cor1.col1 AS col2 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
-17
-31
-59
query I rowsort
SELECT ALL + 22 * col1 AS col0 FROM tab2 AS cor0
----
1298
374
682
query I rowsort
SELECT ALL + 28 AS col0 FROM tab0 AS cor0
----
28
28
28
query I rowsort
SELECT DISTINCT 5 + cor0.col2 FROM tab0 AS cor0
----
38
6
87
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab1 AS cor2
----
972 values hashing to 7864aada86bf5bf5e1621c7905de8dcd
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 90 col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f6f26b9a04da14807208b93d507095c5
query I rowsort
SELECT + 83 AS col0 FROM tab0 AS cor0
----
83
83
83
query I rowsort
SELECT - col0 - + col1 AS col1 FROM tab0
----
-110
-132
-180
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL = col1 + col0 * - col2
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 - + col1 * + col2 col2 FROM tab1
----
-1152
-1350
-513
query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN - col2 * - col2 + col0 AND NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-8681
SELECT + col1 FROM tab1 WHERE + col0 < col0 + col0 * col0 DIV col2
----
10
13
skipif mysql # not compatible
query I rowsort label-8681
SELECT + col1 FROM tab1 WHERE + col0 < col0 + col0 * col0 / col2
----
10
13
query I rowsort
SELECT + col0 + + tab0.col2 FROM tab0
----
171
36
57
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( col0 ) NOT BETWEEN col2 AND NULL
----
7
31
27
query I rowsort
SELECT 51 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 02a7de94365b8cb5b5cb92c4b1d1e7c5
query I rowsort
SELECT - - col2 + + ( cor0.col2 ) AS col0 FROM tab1 AS cor0
----
108
114
192
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + col2 col1 FROM tab1
----
1248
1404
570
query I rowsort
SELECT + 28 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 8a39580587f2831072e93c319ff94bbf
query I rowsort
SELECT - col2 - - 37 AS col2 FROM tab1
----
-17
-20
-59
query I rowsort
SELECT DISTINCT - col1 + + ( - col1 ) AS col0 FROM tab0 AS cor0
----
-172
-182
-194
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-8691
SELECT col1 + CAST( - col0 AS SIGNED ) * col1 AS col0 FROM tab1 AS cor0
----
-1027
-52
-630
skipif mysql # not compatible
query I rowsort label-8691
SELECT col1 + CAST ( - col0 AS INTEGER ) * col1 AS col0 FROM tab1 AS cor0
----
-1027
-52
-630
query I rowsort
SELECT DISTINCT - col0 * col2 + 71 * col1 FROM tab0 AS cor0
----
-837
5314
6852
query I rowsort
SELECT ALL + + col1 + ( col1 ) FROM tab0 AS cor0
----
172
182
194
query I rowsort
SELECT ALL tab1.col1 * col1 AS col0 FROM tab1
----
100
169
676
query I rowsort
SELECT ALL - 31 * + col0 + col1 FROM tab1
----
-1974
-2467
-67
query I rowsort
SELECT DISTINCT col0 + + tab0.col2 * col0 FROM tab0
----
70
7387
816
query I rowsort
SELECT + col1 - col1 * + col1 FROM tab0
----
-7310
-8190
-9312
query I rowsort
SELECT DISTINCT - 31 AS col2 FROM tab0, tab1 AS cor0
----
-31
query I rowsort
SELECT 38 * + 1 FROM tab0
----
38
38
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-8700
SELECT + + col2 + + 9 DIV col0 FROM tab2 AS cor0
----
26
28
38
skipif mysql # not compatible
query I rowsort label-8700
SELECT + + col2 + + 9 / col0 FROM tab2 AS cor0
----
26
28
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-8701
SELECT col2 + - col0 DIV col0 FROM tab0 cor0
----
0
32
81
skipif mysql # not compatible
query I rowsort label-8701
SELECT col2 + - col0 / col0 FROM tab0 cor0
----
0
32
81
query I rowsort
SELECT ALL - 97 + - col1 + tab0.col2 * - 7 AS col0 FROM tab0
----
-201
-414
-762
query I rowsort
SELECT col0 + 28 AS col1 FROM tab2 AS cor0
----
106
107
35
onlyif mysql # use DIV operator for integer division
query I rowsort label-8704
SELECT - ( col2 ) DIV - col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8704
SELECT - ( col2 ) / - col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - - ( - col1 ) AS col2 FROM tab2 AS cor0
----
-17
-31
-59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * col2 + 6 col0 FROM tab2 AS cor0
----
-1528
-640
-831
query I rowsort
SELECT DISTINCT + 72 * col2 FROM tab2 AS cor0
----
1872
1944
2736
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT - col0 + + col0 * CAST ( 19 + + col0 AS REAL ) col0 FROM tab0 AS cor0
----
1008
1855
9523
query I rowsort
SELECT DISTINCT + tab0.col0 * - 26 * col2 FROM tab0
----
-189748
-20592
-910
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 77 * cor0.col0 col0 FROM tab1 AS cor0
----
231
4928
6160
query I rowsort
SELECT + + 20 * col2 FROM tab2 AS cor0
----
520
540
760
query I rowsort
SELECT ALL - cor0.col2 * cor0.col0 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT - + col0 + col0 * + col1 FROM tab1 AS cor0
----
576
75
960
query I rowsort
SELECT 22 + - col2 * + ( col1 ) AS col0 FROM tab0 AS cor0
----
-2816
-7440
-75
query I rowsort
SELECT ALL - + col0 * + cor0.col0 FROM tab2 AS cor0
----
-49
-6084
-6241
onlyif mysql # use DIV operator for integer division
query I rowsort label-8716
SELECT ALL + col0 * col0 DIV col0 + + col1 FROM tab1 cor0
----
29
74
93
skipif mysql # not compatible
query I rowsort label-8716
SELECT ALL + col0 * col0 / col0 + + col1 FROM tab1 cor0
----
29
74
93
onlyif mysql # use DIV operator for integer division
query I rowsort label-8717
SELECT ALL - - cor0.col2 DIV col1 FROM tab2 AS cor0
----
0
0
2
skipif mysql # not compatible
query I rowsort label-8717
SELECT ALL - - cor0.col2 / col1 FROM tab2 AS cor0
----
0
0
2
query I rowsort
SELECT ALL - col2 + - cor0.col0 AS col0 FROM tab2 AS cor0
----
-104
-117
-34
query I rowsort
SELECT - + col1 * + col1 * col1 AS col1 FROM tab2 AS cor0
----
-205379
-29791
-4913
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col2 * cor0.col1 col0 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT cor0.col1 + col1 * - col0 * cor0.col2 FROM tab2 AS cor0
----
-119593
-51017
-5828
onlyif mysql # use DIV operator for integer division
query I rowsort label-8722
SELECT - 75 DIV col0 + col1 DIV tab0.col0 AS col0 FROM tab0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-8722
SELECT - 75 / col0 + col1 / tab0.col0 AS col0 FROM tab0
----
0
0
1
query I rowsort
SELECT ALL - - col1 * col0 + col2 FROM tab2 AS cor0
----
1381
244
4628
query I rowsort
SELECT DISTINCT - cor0.col2 + col0 * col1 FROM tab2 AS cor0
----
1305
190
4576
onlyif mysql # use DIV operator for integer division
query I rowsort label-8725
SELECT DISTINCT + col1 DIV tab1.col0 AS col2 FROM tab1
----
0
8
skipif mysql # not compatible
query I rowsort label-8725
SELECT DISTINCT + col1 / tab1.col0 AS col2 FROM tab1
----
0
8
query I rowsort
SELECT ALL - tab2.col1 * col0 AS col1 FROM tab2
----
-1343
-217
-4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-8727
SELECT DISTINCT - tab2.col2 DIV + col0 AS col1 FROM tab2
----
-3
0
skipif mysql # not compatible
query I rowsort label-8727
SELECT DISTINCT - tab2.col2 / + col0 AS col1 FROM tab2
----
-3
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + col2 * + col1 col0 FROM tab0
----
2871
7544
98
query I rowsort
SELECT + cor0.col2 * - cor0.col2 FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT + col1 * col0 + col0 AS col2 FROM tab0 AS cor0
----
2088
3430
8188
query I rowsort
SELECT col0 * + col2 + col1 * col0 AS col0 FROM tab2 AS cor0
----
406
4345
6630
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + col0 + + col2 * col1 col0 FROM tab0
----
132
14760
3630
query I rowsort
SELECT + + col2 + cor0.col2 * col2 FROM tab0 AS cor0
----
1122
2
6806
query I rowsort
SELECT DISTINCT + + 94 + col2 FROM tab1 cor0
----
148
151
190
onlyif mysql # use DIV operator for integer division
query I rowsort label-8735
SELECT DISTINCT + + col0 * + cor0.col1 + - col0 DIV cor0.col0 AS col1 FROM tab2 AS cor0
----
1342
216
4601
skipif mysql # not compatible
query I rowsort label-8735
SELECT DISTINCT + + col0 * + cor0.col1 + - col0 / cor0.col0 AS col1 FROM tab2 AS cor0
----
1342
216
4601
query I rowsort
SELECT ALL col1 - col0 AS col1 FROM tab2 AS cor0
----
-19
-62
24
onlyif mysql # use DIV operator for integer division
query I rowsort label-8737
SELECT ALL + col0 DIV + col2 + + col0 AS col2 FROM tab0
----
24
70
90
skipif mysql # not compatible
query I rowsort label-8737
SELECT ALL + col0 / + col2 + + col0 AS col2 FROM tab0
----
24
70
90
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 87 + - 27 col0 FROM tab0
----
-114
query I rowsort
SELECT + col0 + + col2 * + col2 FROM tab1 AS cor0
----
2919
3313
9296
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 57 * col0 col1 FROM tab0 AS cor0
----
1368
1995
5073
onlyif mysql # use DIV operator for integer division
query I rowsort label-8741
SELECT - col2 DIV col0 + - cor0.col2 * + col2 AS col0 FROM tab0 cor0
----
-1
-1090
-6724
skipif mysql # not compatible
query I rowsort label-8741
SELECT - col2 / col0 + - cor0.col2 * + col2 AS col0 FROM tab0 cor0
----
-1
-1090
-6724
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * col1 + col0 col1 FROM tab1 AS cor0
----
-36
-673
-89
query I rowsort
SELECT ALL 25 AS col1 FROM tab1 AS cor0
----
25
25
25
query I rowsort
SELECT ALL + col2 * cor0.col2 FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT DISTINCT - - 6 + + col1 AS col1 FROM tab2 AS cor0
----
23
37
65
query I rowsort
SELECT DISTINCT + + cor0.col2 * col2 + - cor0.col0 * col1 + col1 * - cor0.col1 AS col0 FROM tab1 cor0
----
2162
2509
8007
query I rowsort
SELECT ALL col1 + col1 AS col1 FROM tab2
----
118
34
62
query I rowsort
SELECT DISTINCT 1 + - col1 AS col2 FROM tab2
----
-16
-30
-58
query I rowsort
SELECT ALL + 35 + + 30 FROM tab1
----
65
65
65
query I rowsort
SELECT ALL + 96 + 43 * + col0 * tab1.col1 AS col1 FROM tab1
----
27616
3450
44816
query I rowsort
SELECT DISTINCT + col0 * - col1 + + col2 AS col0 FROM tab2
----
-1305
-190
-4576
onlyif mysql # use DIV operator for integer division
query I rowsort label-8752
SELECT col1 DIV col2 + col1 * col2 + tab1.col1 FROM tab1
----
1261
1430
580
skipif mysql # not compatible
query I rowsort label-8752
SELECT col1 / col2 + col1 * col2 + tab1.col1 FROM tab1
----
1261
1430
580
query I rowsort
SELECT ALL - ( + col2 ) + - col2 FROM tab1
----
-108
-114
-192
query I rowsort
SELECT ALL - - col0 * + col2 AS col0 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT - - 54 + col2 AS col2 FROM tab2 cor0
----
80
81
92
query I rowsort
SELECT DISTINCT 54 + - col2 FROM tab1 AS cor0
----
-3
-42
0
query I rowsort
SELECT DISTINCT + + cor0.col1 * col1 FROM tab1 cor0
----
100
169
676
query I rowsort
SELECT + + 55 + - col0 * - cor0.col2 FROM tab0 AS cor0
----
7353
847
90
onlyif mysql # use DIV operator for integer division
query I rowsort label-8759
SELECT DISTINCT - 8 DIV - col0 FROM tab2 AS cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-8759
SELECT DISTINCT - 8 / - col0 FROM tab2 AS cor0
----
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col1 * + col2 col0 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT ALL - - 64 FROM tab0 cor0
----
64
64
64
query I rowsort
SELECT - - 30 * col1 + cor0.col0 AS col2 FROM tab0 AS cor0
----
2604
2819
2945
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - col2 * col1 + col2 col1 FROM tab2 AS cor0
----
-22572
-24510
-39858
query I rowsort
SELECT ALL - - 54 FROM tab0 AS cor0
----
54
54
54
query I rowsort
SELECT DISTINCT 74 FROM tab1 cor0
----
74
query I rowsort
SELECT ALL - col2 + + col2 - + cor0.col0 * - col2 AS col1 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT ALL + 1 + col1 FROM tab2 AS cor0
----
18
32
60
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * col1 - - col2 col1 FROM tab2 AS cor0
----
-1508
-608
-810
query I rowsort
SELECT DISTINCT + tab2.col2 + + col2 * - col1 FROM tab2
----
-1508
-608
-810
query I rowsort
SELECT - col0 + col1 * col2 * col2 FROM tab2
----
22592
24469
39806
onlyif mysql # use DIV operator for integer division
query I rowsort label-8771
SELECT ALL col2 DIV col1 + + col2 FROM tab0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-8771
SELECT ALL col2 / col1 + + col2 FROM tab0
----
1
33
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col2 + col2 col2 FROM tab2
----
1482
702
756
query I rowsort
SELECT ALL - col2 + col0 AS col0 FROM tab2
----
-20
41
52
query I rowsort
SELECT tab2.col1 * col2 AS col2 FROM tab2
----
1534
646
837
query I rowsort
SELECT ALL col0 * - col2 AS col2 FROM tab0
----
-35
-7298
-792
query I rowsort
SELECT ALL - col1 * + col0 AS col2 FROM tab1
----
-1040
-640
-78
query I rowsort
SELECT ALL col2 + - col2 AS col0 FROM tab2
----
0
0
0
query I rowsort
SELECT cor0.col0 * col0 FROM tab1 AS cor0 WHERE NULL BETWEEN col0 * - col1 AND - col1
----
query I rowsort
SELECT DISTINCT col0 + col0 * + col2 * - col1 FROM tab2
----
-119574
-50955
-5852
query I rowsort
SELECT col1 * col0 + + col0 FROM tab1
----
1120
704
81
query I rowsort
SELECT DISTINCT + tab0.col2 * + col2 + col0 FROM tab0
----
1113
36
6813
query III rowsort
SELECT ALL * FROM tab0 WHERE + col2 BETWEEN NULL AND + col1
----
query I rowsort
SELECT - col0 AS col0 FROM tab1 WHERE NOT col1 > NULL
----
query I rowsort
SELECT col0 AS col2 FROM tab2 WHERE + col1 * col1 >= NULL
----
query I rowsort
SELECT ALL + col1 * tab2.col2 FROM tab2
----
1534
646
837
query I rowsort
SELECT DISTINCT + col1 * + col0 FROM tab1
----
1040
640
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-8787
SELECT + col1 + + col2 DIV col1 FROM tab0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-8787
SELECT + col1 + + col2 / col1 FROM tab0
----
86
91
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab0.col1 col1 FROM tab0
----
86
91
97
query I rowsort
SELECT ALL col0 FROM tab2 WHERE col2 > NULL
----
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT BETWEEN col0 + col2 * + col0 AND + col0
----
query I rowsort
SELECT ALL tab0.col2 * col1 AS col2 FROM tab0 WHERE NOT ( - col1 ) >= NULL
----
query I rowsort
SELECT ALL col2 + - tab1.col2 AS col0 FROM tab1
----
0
0
0
query I rowsort
SELECT ALL col1 + - col0 * + col1 AS col1 FROM tab0
----
-1978
-3298
-8008
onlyif mysql # use DIV operator for integer division
query I rowsort label-8794
SELECT - col0 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-8794
SELECT - col0 / col1 col1 FROM tab0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-8795
SELECT tab1.col1 DIV + tab1.col2 AS col2 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8795
SELECT tab1.col1 / + tab1.col2 AS col2 FROM tab1
----
0
0
0
query I rowsort
SELECT + col0 + - col0 - col0 AS col0 FROM tab0
----
-24
-35
-89
query I rowsort
SELECT - col1 + col0 + col2 FROM tab2 cor0
----
100
3
45
query I rowsort
SELECT - cor0.col2 + + col0 FROM tab2 cor0
----
-20
41
52
query I rowsort
SELECT + - col0 * - col0 AS col2 FROM tab0 AS cor0
----
1225
576
7921
onlyif mysql # use DIV operator for integer division
query I rowsort label-8800
SELECT ALL col2 * - col0 + + col2 DIV + col1 AS col0 FROM tab2 AS cor0
----
-189
-2028
-3000
skipif mysql # not compatible
query I rowsort label-8800
SELECT ALL col2 * - col0 + + col2 / + col1 AS col0 FROM tab2 AS cor0
----
-189
-2028
-3000
query I rowsort
SELECT ALL - col1 * - col1 AS col2 FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT - + col1 + + col2 * col2 AS col1 FROM tab2 cor0
----
1427
617
698
query I rowsort
SELECT - col0 + - col2 * col1 * - col1 FROM tab1 AS cor0
----
16144
36501
5636
query I rowsort
SELECT ALL + cor0.col0 + + col2 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT ALL col2 + - col0 * + col1 FROM tab1 AS cor0
----
-24
-583
-944
query I rowsort
SELECT DISTINCT - col2 + - tab1.col2 FROM tab1
----
-108
-114
-192
query I rowsort
SELECT DISTINCT - col2 + tab2.col0 + col0 AS col1 FROM tab2
----
-13
120
130
onlyif mysql # use DIV operator for integer division
query I rowsort label-8808
SELECT col0 * col1 DIV - col0 FROM tab0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-8808
SELECT col0 * col1 / - col0 FROM tab0
----
-86
-91
-97
query I rowsort
SELECT + col2 AS col1 FROM tab2 WHERE NULL >= col0
----
query I rowsort
SELECT + tab2.col0 AS col2 FROM tab2 cor0 CROSS JOIN tab2
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a
query I rowsort
SELECT col0 + col0 + - col0 AS col0 FROM tab0
----
24
35
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col0 * + col2 col0 FROM tab1 AS cor0
----
188
3658
7693
query I rowsort
SELECT col1 + - col1 - - col1 FROM tab1
----
10
13
26
query I rowsort
SELECT tab2.col2 AS col1 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
onlyif mysql # use DIV operator for integer division
query I rowsort label-8815
SELECT ALL - ( col0 ) DIV - col0 AS col2 FROM tab1
----
1
1
1
skipif mysql # not compatible
query I rowsort label-8815
SELECT ALL - ( col0 ) / - col0 AS col2 FROM tab1
----
1
1
1
query I rowsort
SELECT cor0.col0 + + col1 AS col2 FROM tab2 cor0
----
137
38
96
query I rowsort
SELECT + + col0 * 52 AS col0 FROM tab0 AS cor0
----
1248
1820
4628
query I rowsort
SELECT + ( + col0 ) * + col2 AS col1 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT - ( + col0 ) * + cor0.col1 AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 * col0 col1 FROM tab0 AS cor0
----
35
7298
792
onlyif mysql # use DIV operator for integer division
query I rowsort label-8821
SELECT - + cor0.col0 + col1 DIV col1 FROM tab2 AS cor0
----
-6
-77
-78
skipif mysql # not compatible
query I rowsort label-8821
SELECT - + cor0.col0 + col1 / col1 FROM tab2 AS cor0
----
-6
-77
-78
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0 CROSS JOIN tab2, tab1, tab0 AS cor1
----
3645 values hashing to 9d746e15fdb5adcb43a7518cd9743eb3
query I rowsort
SELECT col2 * - ( + 62 * col0 ) + col2 AS col0 FROM tab1 AS cor0
----
-226119
-476064
-9990
query I rowsort
SELECT + 93 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 85ef191bf1b307f300b3fd49992fcae7
query I rowsort
SELECT + col1 + ( + col0 ) + - col2 FROM tab1 AS cor0
----
-25
-3
17
query I rowsort
SELECT DISTINCT - cor0.col2 + + col0 * + 45 FROM tab2 AS cor0
----
288
3484
3517
query I rowsort
SELECT DISTINCT + col0 + - col2 * ( col1 ) + 25 AS col0 FROM tab0 AS cor0
----
-2789
-37
-7348
query I rowsort
SELECT - - col1 * ( col0 ) AS col2 FROM tab2 AS cor0
----
1343
217
4602
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8829
SELECT DISTINCT + cor0.col1 * - cor0.col1 * CAST( NULL AS SIGNED ) FROM tab2, tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8829
SELECT DISTINCT + cor0.col1 * - cor0.col1 * CAST ( NULL AS INTEGER ) FROM tab2, tab1 AS cor0
----
NULL
query I rowsort
SELECT + col1 * ( col0 ) FROM tab2 AS cor0
----
1343
217
4602
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8831
SELECT cor0.col1 + + CAST( NULL AS SIGNED ) * col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8831
SELECT cor0.col1 + + CAST ( NULL AS INTEGER ) * col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - + col2 * - col0 + - col2 FROM tab2 AS cor0
----
162
2002
2964
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col0 * col0 col1 FROM tab2 AS cor0
----
-106097
-1519
-358956
query I rowsort
SELECT + - 74 * - col2 FROM tab2 AS cor0
----
1924
1998
2812
query I rowsort
SELECT DISTINCT ( 68 ) + cor0.col0 + ( col2 ) * cor0.col1 AS col2 FROM tab0 AS cor0
----
200
2930
7619
query I rowsort
SELECT - col2 * + col2 + - col0 AS col0 FROM tab2 AS cor0
----
-1523
-736
-754
query I rowsort
SELECT ALL col0 + 18 * col0 AS col1 FROM tab0 AS cor0
----
1691
456
665
onlyif mysql # use DIV operator for integer division
query I rowsort label-8838
SELECT + - 73 DIV + 20 + + col1 FROM tab1 AS cor0
----
10
23
7
skipif mysql # not compatible
query I rowsort label-8838
SELECT + - 73 / + 20 + + col1 FROM tab1 AS cor0
----
10
23
7
query I rowsort
SELECT DISTINCT + + col2 + - cor0.col2 * col1 AS col2 FROM tab0 AS cor0
----
-2805
-7380
-96
query I rowsort
SELECT ( + col2 ) + cor0.col1 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT col1 * - col1 + + col0 * cor0.col0 AS col2 FROM tab1 AS cor0
----
-667
3996
6231
query I rowsort
SELECT 16 + + col2 FROM tab0 cor0
----
17
49
98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8843
SELECT - CAST( NULL AS SIGNED ) * ( + cor0.col1 ) AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-8843
SELECT - CAST ( NULL AS INTEGER ) * ( + cor0.col1 ) AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT ( - tab1.col2 ) + + col1 AS col2 FROM tab1
----
-28
-47
-83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 39 col2 FROM tab0
----
-39
-39
-39
query I rowsort
SELECT + + 73 * - 10 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 06695b10e1f22d97a0e82e03b8f34769
query I rowsort
SELECT + - ( + cor0.col0 ) FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8848
SELECT ALL CAST( NULL AS DECIMAL ) / 25 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8848
SELECT ALL CAST ( NULL AS REAL ) / 25 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT 67 + tab0.col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 14a057ed65248f71ab5de529089a7786
query I rowsort
SELECT + 9 + 30 AS col0 FROM tab1 AS cor0
----
39
39
39
query I rowsort
SELECT 2 + tab2.col2 AS col2 FROM tab2
----
28
29
40
query I rowsort
SELECT + col2 * + tab2.col2 - - col0 * ( col0 ) FROM tab2
----
6760
7685
778
onlyif mysql # use DIV operator for integer division
query I rowsort label-8853
SELECT + col0 DIV + tab0.col0 FROM tab0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-8853
SELECT + col0 / + tab0.col0 FROM tab0
----
1
1
1
query I rowsort
SELECT 58 * col1 FROM tab1
----
1508
580
754
query I rowsort
SELECT DISTINCT - - col1 AS col1 FROM tab0 cor0
----
86
91
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8856
SELECT ALL + col2 + CAST( NULL AS SIGNED ) * col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8856
SELECT ALL + col2 + CAST ( NULL AS INTEGER ) * col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col2 * + ( col2 ) - + col1 FROM tab0 AS cor0
----
-96
1003
6633
query I rowsort
SELECT DISTINCT - + col1 + 91 - ( col1 * - 97 ) FROM tab1 AS cor0
----
1051
1339
2587
query I rowsort
SELECT 41 * + col1 * - tab0.col2 AS col0 FROM tab0
----
-116358
-305942
-3977
query I rowsort
SELECT ALL 11 * tab0.col1 - - 70 FROM tab0
----
1016
1071
1137
query I rowsort
SELECT ALL + 71 + - col2 - - ( col1 ) * + col1 FROM tab1
----
114
144
693
query I rowsort
SELECT ALL - col1 * 76 + col1 * + col2 * ( col0 ) FROM tab0
----
-3977
61576
657202
query I rowsort
SELECT col2 * col0 * col2 + - col2 FROM tab0 AS cor0
----
26103
34
598354
query I rowsort
SELECT - col1 * + col0 + + col1 FROM tab0 AS cor0
----
-1978
-3298
-8008
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8865
SELECT + col0 + CAST( NULL AS SIGNED ) - + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8865
SELECT + col0 + CAST ( NULL AS INTEGER ) - + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - cor0.col1 + - 60 AS col0 FROM tab1 AS cor0
----
-70
-73
-86
query I rowsort
SELECT DISTINCT - col1 * + col0 FROM tab2 cor0
----
-1343
-217
-4602
query I rowsort
SELECT col2 + col2 + cor0.col0 * col0 * + col1 FROM tab1 AS cor0
----
342
41074
83392
onlyif mysql # use DIV operator for integer division
query I rowsort label-8869
SELECT + col1 * 48 * - 24 + + col1 * - col1 + col0 * col2 DIV - col0 col0 FROM tab1 AS cor0
----
-11677
-15241
-30682
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8869
SELECT + col1 * 48 * - 24 + + col1 * - col1 + col0 * col2 / - col0 col0 FROM tab1 AS cor0
----
-11677
-15241
-30682
query I rowsort
SELECT - col2 * col0 * 41 FROM tab2
----
-123082
-7749
-83148
query I rowsort
SELECT ALL - - col1 * + col0 + col2 FROM tab2 AS cor0
----
1381
244
4628
query I rowsort
SELECT 56 + - col2 * + col1 FROM tab1 AS cor0
----
-1192
-1348
-514
query I rowsort
SELECT DISTINCT - col1 + + col0 + col0 FROM tab2 AS cor0
----
-17
141
97
query I rowsort
SELECT ALL - + col1 + - col2 AS col2 FROM tab0 AS cor0
----
-119
-173
-98
query I rowsort
SELECT DISTINCT 22 + cor0.col0 AS col2 FROM tab2 cor0
----
100
101
29
query I rowsort
SELECT cor0.col1 * col2 + - col0 AS col2 FROM tab2 cor0
----
1456
567
830
query I rowsort
SELECT DISTINCT col1 + cor0.col2 * 54 * col2 FROM tab0 AS cor0
----
151
363187
58892
query I rowsort
SELECT 5 * - col1 * col0 + 3 AS col0 FROM tab1 AS cor0
----
-3197
-387
-5197
query I rowsort
SELECT col2 + 4 + ( col2 ) FROM tab1 AS cor0
----
112
118
196
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * cor0.col0 col0 FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT DISTINCT + - col2 * + ( ( - col0 ) ) FROM tab1 AS cor0
----
162
3648
7680
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8882
SELECT - col1 * - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8882
SELECT - col1 * - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-8883
SELECT ALL + col1 * - col0 DIV col0 FROM tab0 AS cor0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-8883
SELECT ALL + col1 * - col0 / col0 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT DISTINCT + + col0 + ( col1 ) * cor0.col2 * col2 FROM tab0 AS cor0
----
132
611973
93678
query I rowsort
SELECT + ( + col0 ) * + col2 + + col2 * col1 FROM tab0
----
132
14760
3630
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8886
SELECT col2 + col2 * CAST( NULL AS SIGNED ) * - col0 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8886
SELECT col2 + col2 * CAST ( NULL AS INTEGER ) * - col0 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT 93 AS col1 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 85ef191bf1b307f300b3fd49992fcae7
query I rowsort
SELECT - cor0.col0 FROM tab2, tab1 cor0
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0
onlyif mysql # use DIV operator for integer division
query I rowsort label-8889
SELECT DISTINCT 5 + col0 DIV col2 + - col2 * - col2 FROM tab1
----
2921
3255
9221
skipif mysql # not compatible
query I rowsort label-8889
SELECT DISTINCT 5 + col0 / col2 + - col2 * - col2 FROM tab1
----
2921
3255
9221
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 36 col2 FROM tab2 AS cor0
----
36
36
36
query I rowsort
SELECT + col0 - + cor0.col0 AS col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - col1 * + col1 * - cor0.col1 + ( - col2 + col2 ) * cor0.col2 * col1 FROM tab1 AS cor0
----
1000
17576
2197
query I rowsort
SELECT DISTINCT - - col2 * col2 FROM tab1 cor0
----
2916
3249
9216
query I rowsort
SELECT DISTINCT 83 * 86 AS col0 FROM tab2 AS cor0
----
7138
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 * ( - cor0.col1 ) * + ( 84 ) + - col1 * col2 col0 FROM tab1 AS cor0
----
12948
55380
7830
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8896
SELECT ALL + CAST( - cor0.col2 AS SIGNED ) * - col0 + col1 AS col1 FROM tab1 AS cor0
----
188
3658
7693
skipif mysql # not compatible
query I rowsort label-8896
SELECT ALL + CAST ( - cor0.col2 AS INTEGER ) * - col0 + col1 AS col1 FROM tab1 AS cor0
----
188
3658
7693
query I rowsort
SELECT ALL - ( 61 ) * col0 + cor0.col0 * - col1 FROM tab2 AS cor0
----
-6162
-644
-9360
query I rowsort
SELECT + + ( + col2 ) * - col1 + col1 * - col0 FROM tab1 AS cor0
----
-1210
-1482
-2288
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8899
SELECT ALL + col1 * - CAST( NULL AS SIGNED ) * + col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8899
SELECT ALL + col1 * - CAST ( NULL AS INTEGER ) * + col2 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT - col2 - col1 * tab2.col2 AS col1 FROM tab2
----
-1560
-684
-864
query I rowsort
SELECT ALL + ( - col0 ) + col1 FROM tab1 cor0
----
-54
-67
23
query I rowsort
SELECT col1 - + col0 * + col1 AS col0 FROM tab2 cor0
----
-1326
-186
-4543
onlyif mysql # use DIV operator for integer division
query I rowsort label-8903
SELECT ALL - - col1 DIV + col0 + - cor0.col2 AS col0 FROM tab1 AS cor0
----
-46
-57
-96
skipif mysql # not compatible
query I rowsort label-8903
SELECT ALL - - col1 / + col0 + - cor0.col2 AS col0 FROM tab1 AS cor0
----
-46
-57
-96
query I rowsort
SELECT + 78 + + 23 * + col2 * - ( - col1 ) AS col0 FROM tab1 AS cor0
----
13188
28782
32370
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 * 15 col2 FROM tab2 AS cor0
----
105
1170
1185
onlyif mysql # use DIV operator for integer division
query I rowsort label-8906
SELECT 9 * col1 DIV - col1 - col0 * + col1 FROM tab1 AS cor0
----
-1049
-649
-87
skipif mysql # not compatible
query I rowsort label-8906
SELECT 9 * col1 / - col1 - col0 * + col1 FROM tab1 AS cor0
----
-1049
-649
-87
query I rowsort
SELECT DISTINCT + - ( + col0 ) * + col2 + col2 FROM tab0 AS cor0
----
-34
-7216
-759
onlyif mysql # use DIV operator for integer division
query I rowsort label-8908
SELECT DISTINCT - col0 - + col0 * col1 DIV col0 FROM tab2 AS cor0
----
-137
-38
-96
skipif mysql # not compatible
query I rowsort label-8908
SELECT DISTINCT - col0 - + col0 * col1 / col0 FROM tab2 AS cor0
----
-137
-38
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-8909
SELECT col2 * col0 DIV + 35 AS col2 FROM tab1
----
104
219
4
skipif mysql # not compatible
query I rowsort label-8909
SELECT col2 * col0 / + 35 AS col2 FROM tab1
----
104
219
4
query I rowsort
SELECT col2 * 87 AS col1 FROM tab2
----
2262
2349
3306
query I rowsort
SELECT col0 + - tab1.col2 * col2 AS col1 FROM tab1
----
-2913
-3185
-9136
query I rowsort
SELECT ALL + tab0.col1 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT DISTINCT + ( + col0 * col2 ) + col0 FROM tab1
----
165
3712
7760
query I rowsort
SELECT 76 * 42 AS col2 FROM tab0, tab0 cor0, tab0 AS cor1
----
27 values hashing to d7bb184d2efbab409264d65eca755508
query I rowsort
SELECT + - col2 * + col1 + - col0 FROM tab2 AS cor0
----
-1612
-725
-844
query I rowsort
SELECT + + ( - col2 ) * col1 AS col1 FROM tab2 AS cor0
----
-1534
-646
-837
skipif mysql # not compatible
query I rowsort
SELECT - CAST ( col0 AS REAL ) * - col2 + + col0 AS col2 FROM tab2 AS cor0
----
196
2106
3081
query I rowsort
SELECT + 49 * 23 + + col1 AS col1 FROM tab2 AS cor0
----
1144
1158
1186
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 41 col2 FROM tab1 AS cor0
----
41
41
41
query I rowsort
SELECT + 26 + - col2 FROM tab0
----
-56
-7
25
query I rowsort
SELECT ALL tab0.col0 * 94 + + col1 * - col2 FROM tab0
----
-582
3193
904
query I rowsort
SELECT 26 + col0 AS col1 FROM tab2
----
104
105
33
onlyif mysql # use DIV operator for integer division
query I rowsort label-8923
SELECT ALL 32 DIV 20 + col0 FROM tab1
----
4
65
81
skipif mysql # not compatible
query I rowsort label-8923
SELECT ALL 32 / 20 + col0 FROM tab1
----
4
65
81
query I rowsort
SELECT ALL - col2 + + col2 AS col1 FROM tab0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-8925
SELECT col0 + col1 DIV ( - col1 * - col1 ) FROM tab0 AS cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-8925
SELECT col0 + col1 / ( - col1 * - col1 ) FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT + 45 + col0 AS col2 FROM tab1 AS cor0
----
109
125
48
query I rowsort
SELECT + 81 FROM tab0, tab0 AS cor0
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267
query I rowsort
SELECT - ( - 38 * col2 ) + + 58 * col1 FROM tab0
----
5664
6242
8394
query I rowsort
SELECT DISTINCT - + col0 - + col2 AS col1 FROM tab0 AS cor0
----
-171
-36
-57
onlyif mysql # use DIV operator for integer division
query I rowsort label-8930
SELECT 75 * col2 DIV ( + 17 ) + col0 AS col2 FROM tab1 AS cor0
----
241
315
503
skipif mysql # not compatible
query I rowsort label-8930
SELECT 75 * col2 / ( + 17 ) + col0 AS col2 FROM tab1 AS cor0
----
241
315
503
onlyif mysql # use DIV operator for integer division
query I rowsort label-8931
SELECT - col2 + cor0.col2 DIV ( 51 ) FROM tab2 AS cor0
----
-26
-27
-38
skipif mysql # not compatible
query I rowsort label-8931
SELECT - col2 + cor0.col2 / ( 51 ) FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT + + cor0.col0 * + col2 - - ( - cor0.col0 ) FROM tab2 AS cor0
----
182
1950
2923
query I rowsort
SELECT ALL - col2 + + col0 + ( col2 ) * + cor0.col0 AS col2 FROM tab0 AS cor0
----
69
7305
783
query I rowsort
SELECT DISTINCT col2 * col0 - col0 FROM tab1 AS cor0
----
159
3584
7600
onlyif mysql # use DIV operator for integer division
query I rowsort label-8935
SELECT - - col2 * - col2 + + 55 DIV - 54 FROM tab2 AS cor0
----
-1445
-677
-730
skipif mysql # not compatible
query I rowsort label-8935
SELECT - - col2 * - col2 + + 55 / - 54 FROM tab2 AS cor0
----
-1445
-677
-730
query I rowsort
SELECT col1 * cor0.col1 - 85 FROM tab0 AS cor0
----
7311
8196
9324
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8937
SELECT DISTINCT - col1 * col2 + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8937
SELECT DISTINCT - col1 * col2 + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT ALL + + cor0.col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3
query I rowsort
SELECT col2 + + col0 AS col1 FROM tab0
----
171
36
57
query I rowsort
SELECT DISTINCT tab1.col2 * ( col1 + col0 ) FROM tab1
----
1566
4218
8928
query I rowsort
SELECT DISTINCT - 34 FROM tab0 cor0 CROSS JOIN tab1, tab1 AS cor1, tab2 AS cor2, tab0 AS cor3
----
-34
query I rowsort
SELECT ALL - cor0.col0 + col2 * col1 AS col2 FROM tab0 AS cor0
----
2814
62
7373
query I rowsort
SELECT DISTINCT - + col2 * - col1 AS col0 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT - col1 * col2 AS col1 FROM tab2 AS cor0
----
-1534
-646
-837
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8945
SELECT DISTINCT + - col2 * + CAST( + col1 AS SIGNED ) FROM tab1 cor0
----
-1248
-1404
-570
skipif mysql # not compatible
query I rowsort label-8945
SELECT DISTINCT + - col2 * + CAST ( + col1 AS INTEGER ) FROM tab1 cor0
----
-1248
-1404
-570
query I rowsort
SELECT ALL + 99 AS col2 FROM tab2 AS cor0
----
99
99
99
query I rowsort
SELECT - col0 * 97 FROM tab1 AS cor0
----
-291
-6208
-7760
query I rowsort
SELECT DISTINCT + - 0 * col1 FROM tab1 cor0
----
0
query I rowsort
SELECT - cor0.col1 + col2 * col2 AS col0 FROM tab0 AS cor0
----
-96
1003
6633
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8950
SELECT DISTINCT CAST( NULL AS SIGNED ) * col1 * + col2 FROM tab2 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8950
SELECT DISTINCT CAST ( NULL AS INTEGER ) * col1 * + col2 FROM tab2 cor0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8951
SELECT ALL + - col0 + ( + col0 ) * + CAST( NULL AS SIGNED ) * + col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8951
SELECT ALL + - col0 + ( + col0 ) * + CAST ( NULL AS INTEGER ) * + col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col0 + - cor0.col1 AS col1 FROM tab1 AS cor0
----
-23
54
67
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8953
SELECT ALL col0 * CAST( + 82 AS SIGNED ) FROM tab2 AS cor0
----
574
6396
6478
skipif mysql # not compatible
query I rowsort label-8953
SELECT ALL col0 * CAST ( + 82 AS INTEGER ) FROM tab2 AS cor0
----
574
6396
6478
query I rowsort
SELECT ALL - 20 AS col0 FROM tab1
----
-20
-20
-20
query I rowsort
SELECT DISTINCT + col0 * + col1 AS col1 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT - 28 FROM tab2, tab0 AS cor0, tab2 cor1
----
27 values hashing to eac00a95d734c7071360ed392c3f39bc
query I rowsort
SELECT col0 + - ( cor0.col1 ) AS col1 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT ALL - - col2 + - col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + col0 * col1 + + col0 FROM tab2 AS cor0
----
1422
224
4680
query I rowsort
SELECT ALL + col0 + - ( col1 + col2 ) * 43 AS col2 FROM tab1 cor0
----
-2817
-3437
-4607
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 44 col0 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 0cc3e52e781e46962291c3060c6ae73b
query I rowsort
SELECT ALL col1 + col1 AS col0 FROM tab2
----
118
34
62
query I rowsort
SELECT DISTINCT - 68 * col2 * - col0 + + col2 + col2 * tab0.col1 AS col0 FROM tab0
----
2478
503808
56727
query I rowsort
SELECT 83 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 002a717a3d902d97220759065fb107c3
query I rowsort
SELECT col1 + ( col0 + col1 ) * ( 34 ) AS col0 FROM tab1
----
1012
2526
3175
onlyif mysql # use DIV operator for integer division
query I rowsort label-8966
SELECT - col2 + col1 DIV + col2 AS col0 FROM tab1 cor0
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-8966
SELECT - col2 + col1 / + col2 AS col0 FROM tab1 cor0
----
-54
-57
-96
query I rowsort
SELECT 64 FROM tab2, tab1 AS cor0, tab1, tab2 AS cor1
----
81 values hashing to 9bd8c7417aea89812d57dc6142310b3f
query I rowsort
SELECT - + 54 AS col2 FROM tab0 AS cor0
----
-54
-54
-54
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 3 + + col2 * col0 - cor0.col2 * - col1 col2 FROM tab1 AS cor0
----
1569
4221
8931
query I rowsort
SELECT - col0 * + col2 + cor0.col2 + col1 FROM tab2 AS cor0
----
-131
-1943
-2947
query I rowsort
SELECT DISTINCT - ( + 50 ) - - col1 FROM tab2
----
-19
-33
9
query I rowsort
SELECT - + cor0.col2 * cor0.col2 + col0 - col1 FROM tab1 AS cor0
----
-2939
-3195
-9149
query I rowsort
SELECT - + cor0.col1 + - col1 FROM tab1 AS cor0
----
-20
-26
-52
query I rowsort
SELECT ALL 66 FROM tab1, tab1 AS cor0, tab0 cor1, tab2 AS cor2
----
81 values hashing to dc112f70fecc29a6e605a39541192f43
query I rowsort
SELECT col2 + - cor0.col0 * col1 AS col1 FROM tab2 AS cor0
----
-1305
-190
-4576
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8976
SELECT DISTINCT CAST( NULL AS SIGNED ) + - 1 AS col2 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
NULL
skipif mysql # not compatible
query I rowsort label-8976
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - 1 AS col2 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
NULL
query I rowsort
SELECT + 23 FROM tab1 AS cor0
----
23
23
23
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8978
SELECT + + col1 * col0 + - CAST( 79 AS SIGNED ) FROM tab1 cor0
----
-1
561
961
skipif mysql # not compatible
query I rowsort label-8978
SELECT + + col1 * col0 + - CAST ( 79 AS INTEGER ) FROM tab1 cor0
----
-1
561
961
query I rowsort
SELECT 61 * col0 FROM tab0 AS cor0
----
1464
2135
5429
onlyif mysql # use DIV operator for integer division
query I rowsort label-8980
SELECT + 54 + - cor0.col0 DIV col0 - cor0.col0 AS col0 FROM tab2 AS cor0
----
-25
-26
46
skipif mysql # not compatible
query I rowsort label-8980
SELECT + 54 + - cor0.col0 / col0 - cor0.col0 AS col0 FROM tab2 AS cor0
----
-25
-26
46
query I rowsort
SELECT + + col0 + - cor0.col1 AS col0 FROM tab0 AS cor0
----
-2
-62
-62
onlyif mysql # use DIV operator for integer division
query I rowsort label-8982
SELECT 33 DIV col0 AS col2 FROM tab0 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-8982
SELECT 33 / col0 AS col2 FROM tab0 AS cor0
----
0
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 + col1 * - ( col1 + - cor0.col2 ) col1 FROM tab0 AS cor0
----
-4644
-910
-9409
onlyif mysql # use DIV operator for integer division
query I rowsort label-8984
SELECT DISTINCT - col0 DIV cor0.col1 AS col2 FROM tab2 AS cor0
----
-1
-4
0
skipif mysql # not compatible
query I rowsort label-8984
SELECT DISTINCT - col0 / cor0.col1 AS col2 FROM tab2 AS cor0
----
-1
-4
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 37 + + col0 col1 FROM tab0 AS cor0
----
126
61
72
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 69 + - cor0.col2 col0 FROM tab2 AS cor0
----
31
42
43
query I rowsort
SELECT 90 * col1 - - col1 FROM tab0 AS cor0
----
7826
8281
8827
query I rowsort
SELECT + 43 + + col1 FROM tab0 AS cor0
----
129
134
140
query I rowsort
SELECT ALL - 62 FROM tab0 AS cor0
----
-62
-62
-62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 22 col1 FROM tab1 AS cor0
----
-22
-22
-22
query I rowsort
SELECT ALL - - col2 * col2 AS col0 FROM tab0 cor0
----
1
1089
6724
query I rowsort
SELECT - cor0.col0 + col0 AS col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - cor0.col2 + cor0.col2 FROM tab2, tab0 AS cor0
----
0
query I rowsort
SELECT ALL + col1 * + 3 - col2 * - col2 FROM tab1 cor0
----
2994
3279
9255
query I rowsort
SELECT DISTINCT - + col1 - cor0.col2 AS col0 FROM tab0 AS cor0
----
-119
-173
-98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 23 col1 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 546d49aa433406dd83ea19885588e658
query I rowsort
SELECT DISTINCT + col1 + col2 * - ( - col1 + - col2 ) FROM tab0
----
14277
195
4013
query I rowsort
SELECT ALL - col2 * col2 * + col2 FROM tab0 AS cor0
----
-1
-35937
-551368
query I rowsort
SELECT ALL + - 94 AS col1 FROM tab0 AS cor0
----
-94
-94
-94
query I rowsort
SELECT ALL + 91 * col2 FROM tab2 AS cor0
----
2366
2457
3458
query I rowsort
SELECT DISTINCT + 91 AS col0 FROM tab2, tab0 AS cor0, tab1 AS cor1, tab0 AS cor2
----
91
query I rowsort
SELECT ALL - + ( - col0 ) FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT DISTINCT + 52 + + cor0.col1 FROM tab2, tab1 AS cor0
----
62
65
78
query I rowsort
SELECT + col2 * col1 AS col0 FROM tab2 cor0
----
1534
646
837
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9005
SELECT + + CAST( - col0 AS SIGNED ) FROM tab0 AS cor0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-9005
SELECT + + CAST ( - col0 AS INTEGER ) FROM tab0 AS cor0
----
-24
-35
-89
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9006
SELECT DISTINCT + cor0.col0 + 79 * col0 + CAST( NULL AS SIGNED ) / - 9 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9006
SELECT DISTINCT + cor0.col0 + 79 * col0 + CAST ( NULL AS INTEGER ) / - 9 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT ALL col2 * + 58 + + col1 + col1 * + col2 * - col1 FROM tab1 AS cor0
----
-10643
-2384
-33346
query I rowsort
SELECT + col1 + - cor0.col1 AS col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + col2 + - col2 - col2 FROM tab0
----
-1
-33
-82
query I rowsort
SELECT + 24 AS col0 FROM tab0, tab2, tab0 cor0
----
27 values hashing to aeeac431d22528188e8a5a2a60d2d080
query I rowsort
SELECT 3 + + col1 AS col2 FROM tab1
----
13
16
29
query I rowsort
SELECT ALL - 47 AS col2 FROM tab0 cor0
----
-47
-47
-47
query I rowsort
SELECT 16 AS col2 FROM tab1 AS cor0
----
16
16
16
query I rowsort
SELECT DISTINCT + 48 AS col1 FROM tab2 cor0
----
48
query I rowsort
SELECT 44 * - col1 * ( 98 ) FROM tab0 AS cor0
----
-370832
-392392
-418264
query I rowsort
SELECT ALL - 97 * col0 FROM tab0 cor0
----
-2328
-3395
-8633
onlyif mysql # use DIV operator for integer division
query I rowsort label-9017
SELECT - tab1.col2 DIV + col0 AS col0 FROM tab1
----
-1
-18
0
skipif mysql # not compatible
query I rowsort label-9017
SELECT - tab1.col2 / + col0 AS col0 FROM tab1
----
-1
-18
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-9018
SELECT - CAST( - col1 + col1 AS SIGNED ) * - tab0.col0 DIV col1 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9018
SELECT - CAST ( - col1 + col1 AS INTEGER ) * - tab0.col0 / col1 FROM tab0
----
0
0
0
query I rowsort
SELECT DISTINCT col2 * col2 - col2 FROM tab1
----
2862
3192
9120
onlyif mysql # use DIV operator for integer division
query I rowsort label-9020
SELECT + 14 + col1 + col1 DIV ( col0 ) col2 FROM tab1
----
24
27
48
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9020
SELECT + 14 + col1 + col1 / ( col0 ) col2 FROM tab1
----
24
27
48
query I rowsort
SELECT - col1 + 18 AS col2 FROM tab1
----
-8
5
8
onlyif mysql # use DIV operator for integer division
query I rowsort label-9022
SELECT - tab0.col2 DIV CAST( + col1 AS SIGNED ) FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9022
SELECT - tab0.col2 / CAST ( + col1 AS INTEGER ) FROM tab0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9023
SELECT DISTINCT + col1 + + CAST( 14 AS SIGNED ) FROM tab2 AS cor0
----
31
45
73
skipif mysql # not compatible
query I rowsort label-9023
SELECT DISTINCT + col1 + + CAST ( 14 AS INTEGER ) FROM tab2 AS cor0
----
31
45
73
query I rowsort
SELECT col1 * col2 - - cor0.col2 AS col0 FROM tab1 cor0
----
1344
1458
627
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab2, tab0 AS cor1, tab0, tab2 cor2
----
3645 values hashing to 28412d50061391eec23a02d0efcfb3f9
query I rowsort
SELECT ALL + tab0.col1 + - 49 AS col0 FROM tab0
----
37
42
48
query I rowsort
SELECT DISTINCT - cor0.col0 AS col2 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
-24
-35
-89
query I rowsort
SELECT DISTINCT cor0.col2 AS col2 FROM tab1, tab2 AS cor0
----
26
27
38
query I rowsort
SELECT + 57 + cor0.col0 FROM tab2 AS cor0
----
135
136
64
query I rowsort
SELECT DISTINCT + col0 * 27 + col2 + + col1 FROM tab1 AS cor0
----
161
1795
2269
query I rowsort
SELECT ALL + cor0.col2 FROM tab2, tab0 AS cor0, tab1 cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475
query I rowsort
SELECT - col0 + - 70 AS col0 FROM tab1 AS cor0
----
-134
-150
-73
query I rowsort
SELECT + + col1 + 21 AS col1 FROM tab2 AS cor0
----
38
52
80
query I rowsort
SELECT - col0 + + 81 FROM tab1 AS cor0
----
1
17
78
query I rowsort
SELECT ALL - + col2 + 42 * col1 FROM tab0 cor0
----
3579
3740
4073
query I rowsort
SELECT + - col2 + col0 AS col1 FROM tab2 cor0
----
-20
41
52
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0, tab0 AS cor1, tab0, tab0 cor2
----
3645 values hashing to 181d902c42955a43a374f13a73d8b0a1
onlyif mysql # use DIV operator for integer division
query I rowsort label-9038
SELECT ALL + - col1 DIV + col0 + - col2 + cor0.col1 AS col1 FROM tab2 cor0
----
-21
0
33
skipif mysql # not compatible
query I rowsort label-9038
SELECT ALL + - col1 / + col0 + - col2 + cor0.col1 AS col1 FROM tab2 cor0
----
-21
0
33
query I rowsort
SELECT ALL ( col0 ) * + ( col2 ) * - col0 FROM tab1
----
-233472
-486
-614400
query I rowsort
SELECT ALL - 23 * col0 AS col1 FROM tab1
----
-1472
-1840
-69
onlyif mysql # use DIV operator for integer division
query I rowsort label-9041
SELECT ALL 9 DIV col0 FROM tab1 AS cor0
----
0
0
3
skipif mysql # not compatible
query I rowsort label-9041
SELECT ALL 9 / col0 FROM tab1 AS cor0
----
0
0
3
query I rowsort
SELECT ALL + col1 + col0 AS col1 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT + cor0.col0 * + col2 FROM tab1 cor0
----
162
3648
7680
query I rowsort
SELECT DISTINCT - cor0.col2 + + col0 * + col1 AS col2 FROM tab2 cor0
----
1305
190
4576
query I rowsort
SELECT + cor0.col2 + + col2 * + cor0.col0 AS col1 FROM tab1 AS cor0
----
216
3705
7776
query I rowsort
SELECT ALL col1 * - 18 FROM tab1 AS cor0
----
-180
-234
-468
query I rowsort
SELECT DISTINCT col2 * - col1 + + cor0.col1 + + col0 AS col0 FROM tab1 cor0
----
-1155
-1375
-496
query I rowsort
SELECT ALL - + col1 - + 91 * col1 FROM tab1 AS cor0
----
-1196
-2392
-920
query I rowsort
SELECT ALL + col1 - + 94 * col0 * + col2 FROM tab0 AS cor0
----
-3193
-685921
-74362
query I rowsort
SELECT ALL - col2 + + col1 AS col0 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT - col2 + col1 * 26 FROM tab0 AS cor0
----
2203
2284
2521
query I rowsort
SELECT col1 + col2 + cor0.col2 AS col0 FROM tab2 AS cor0
----
111
85
93
query I rowsort
SELECT col0 * col0 + - ( col0 ) AS col0 FROM tab2 cor0
----
42
6006
6162
query I rowsort
SELECT DISTINCT + col1 - ( col2 ) * col2 AS col2 FROM tab1 AS cor0
----
-2890
-3239
-9203
query I rowsort
SELECT DISTINCT - - col1 * + cor0.col1 + - col2 * + col2 * + col2 AS col2 FROM tab0 AS cor0
----
-28541
-543087
9408
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9056
SELECT col2 + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9056
SELECT col2 + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - 45 * + col2 + - 43 AS col0 FROM tab2
----
-1213
-1258
-1753
query I rowsort
SELECT + col2 + col0 * + 98 AS col1 FROM tab1
----
348
6329
7936
query I rowsort
SELECT + cor0.col1 * - col0 AS col1 FROM tab1 cor0
----
-1040
-640
-78
query I rowsort
SELECT ALL - - col0 * + ( + col2 * - col1 ) AS col0 FROM tab0 AS cor0
----
-3395
-664118
-68112
query I rowsort
SELECT - - col1 * 27 AS col2 FROM tab1 cor0
----
270
351
702
query I rowsort
SELECT ALL - 55 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to ac76841ceecd2311e80c621d15bacdd3
onlyif mysql # use DIV operator for integer division
query I rowsort label-9063
SELECT + - col0 DIV col1 col2 FROM tab0 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9063
SELECT + - col0 / col1 col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT + cor0.col0 * col0 AS col2 FROM tab1 cor0
----
4096
6400
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-9065
SELECT - - CAST( - col2 AS SIGNED ) + - col0 DIV + 91 FROM tab0 AS cor0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-9065
SELECT - - CAST ( - col2 AS INTEGER ) + - col0 / + 91 FROM tab0 AS cor0
----
-1
-33
-82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 60 + col0 + + col0 col1 FROM tab2 cor0
----
216
218
74
query I rowsort
SELECT - ( - col1 ) - - col2 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT col1 * col1 - + col2 AS col2 FROM tab2 cor0
----
251
3455
934
query I rowsort
SELECT ALL + col1 * tab2.col0 AS col0 FROM tab2
----
1343
217
4602
query I rowsort
SELECT ALL col2 * 81 * - 6 FROM tab1
----
-26244
-27702
-46656
query I rowsort
SELECT DISTINCT 22 AS col0 FROM tab2 AS cor0
----
22
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9072
SELECT - col2 * col2 + CAST( NULL AS DECIMAL ) + + 38 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9072
SELECT - col2 * col2 + CAST ( NULL AS REAL ) + + 38 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col1 * - col1 * col2 FROM tab2 AS cor0
----
-10982
-25947
-90506
query I rowsort
SELECT DISTINCT ( col2 + + col0 ) FROM tab0
----
171
36
57
query I rowsort
SELECT - col0 * - ( - col2 ) + - ( col0 + - col0 ) * - ( tab0.col2 ) AS col0 FROM tab0
----
-35
-7298
-792
query I rowsort
SELECT DISTINCT col1 * col2 * col1 FROM tab1
----
16224
36504
5700
query I rowsort
SELECT 78 + tab0.col1 FROM tab0
----
164
169
175
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9078
SELECT + CAST( NULL AS SIGNED ) + tab2.col2 AS col2 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9078
SELECT + CAST ( NULL AS INTEGER ) + tab2.col2 AS col2 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT - cor0.col0 * 39 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 2f89175542e728d5ab302aa43f99de7a
query I rowsort
SELECT ( col2 ) + - 37 AS col1 FROM tab0 AS cor0
----
-36
-4
45
query I rowsort
SELECT DISTINCT + col2 * - col1 + + ( - 58 * col0 + + 73 * + 96 ) AS col2 FROM tab0 AS cor0
----
-5616
2778
4881
query I rowsort
SELECT ALL - col0 * col0 - + 99 * cor0.col1 FROM tab0 AS cor0
----
-10828
-16930
-9090
query I rowsort
SELECT ALL 92 AS col1 FROM tab0
----
92
92
92
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9084
SELECT + col1 * - col0 + col2 * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9084
SELECT + col1 * - col0 + col2 * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - 12 * cor0.col2 + col2 FROM tab1 AS cor0
----
-1056
-594
-627
query I rowsort
SELECT DISTINCT - col1 * col2 + - col2 FROM tab1 cor0
----
-1344
-1458
-627
query I rowsort
SELECT DISTINCT - 92 * + col0 AS col1 FROM tab0 cor0
----
-2208
-3220
-8188
query I rowsort
SELECT col1 - 82 AS col1 FROM tab2 cor0
----
-23
-51
-65
onlyif mysql # use DIV operator for integer division
query I rowsort label-9089
SELECT ALL - col1 * 59 * - col2 + - 79 DIV col0 + col0 FROM tab1 AS cor0
----
33693
73712
82813
skipif mysql # not compatible
query I rowsort label-9089
SELECT ALL - col1 * 59 * - col2 + - 79 / col0 + col0 FROM tab1 AS cor0
----
33693
73712
82813
query I rowsort
SELECT - 37 + - col1 FROM tab2 AS cor0
----
-54
-68
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 + col1 * col1 col1 FROM tab1 AS cor0
----
164
249
679
query I rowsort
SELECT - + cor0.col2 + - 72 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 09612da7a64e0bb8e61c7e559d0843fc
query I rowsort
SELECT col0 * col1 * - col0 AS col0 FROM tab2
----
-106097
-1519
-358956
query I rowsort
SELECT ALL + + col0 * col1 + - col0 * - ( - col0 ) FROM tab2 AS cor0
----
-1482
-4898
168
query I rowsort
SELECT DISTINCT 13 AS col2 FROM tab2 AS cor0
----
13
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * 24 * - col2 col0 FROM tab1
----
-13680
-29952
-33696
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * 21 col0 FROM tab1
----
1344
1680
63
query I rowsort
SELECT 60 FROM tab1, tab0 AS cor0
----
9 values hashing to a97561e17ecaa618227c75a57b268f33
query I rowsort
SELECT DISTINCT - tab0.col2 FROM tab2, tab1 AS cor0 CROSS JOIN tab0
----
-1
-33
-82
query I rowsort
SELECT ALL 65 AS col1 FROM tab1, tab0 AS cor0 CROSS JOIN tab0
----
27 values hashing to 1c9d0bf96cd3361942fadad668138b9c
query I rowsort
SELECT DISTINCT - col0 + - col0 * - tab1.col1 FROM tab1
----
576
75
960
query I rowsort
SELECT - cor0.col1 + + col2 * + col2 FROM tab2 cor0
----
1427
617
698
query I rowsort
SELECT ( col0 ) + cor0.col0 AS col0 FROM tab0 AS cor0
----
178
48
70
query I rowsort
SELECT - - col1 - + 13 AS col1 FROM tab0 AS cor0
----
73
78
84
query I rowsort
SELECT ALL tab0.col1 - - 38 * + tab0.col1 FROM tab0, tab0 cor0
----
9 values hashing to 5dde7da9aec6b2abc4d24c8d50e16968
query I rowsort
SELECT ALL col2 - col1 * - ( + col1 ) AS col2 FROM tab1
----
157
265
730
onlyif mysql # use DIV operator for integer division
query I rowsort label-9107
SELECT - tab2.col1 DIV col1 FROM tab2
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-9107
SELECT - tab2.col1 / col1 FROM tab2
----
-1
-1
-1
query I rowsort
SELECT col2 * col2 * - col1 AS col2 FROM tab1
----
-119808
-32490
-75816
query I rowsort
SELECT col1 + + col0 AS col1 FROM tab0 AS cor0
----
110
132
180
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9110
SELECT - - col0 * - CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9110
SELECT - - col0 * - CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - cor0.col0 * + col2 + + 65 + cor0.col0 FROM tab0 AS cor0
----
-703
-7144
65
query I rowsort
SELECT DISTINCT - + 36 FROM tab1, tab2 AS cor0
----
-36
onlyif mysql # use DIV operator for integer division
query I rowsort label-9113
SELECT + tab1.col1 DIV ( 72 * - col2 + col1 ) AS col0 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9113
SELECT + tab1.col1 / ( 72 * - col2 + col1 ) AS col0 FROM tab1
----
0
0
0
query I rowsort
SELECT - ( tab1.col1 ) FROM tab1, tab2 AS cor0
----
9 values hashing to b234798d4706314ba14eaad539d0aa88
query I rowsort
SELECT - col0 * - 91 AS col0 FROM tab0 AS cor0
----
2184
3185
8099
query I rowsort
SELECT - col1 + - ( 53 ) FROM tab0
----
-139
-144
-150
query I rowsort
SELECT DISTINCT col1 + - col2 AS col1 FROM tab0 AS cor0
----
53
9
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + 53 * col1 * + cor0.col2 col1 FROM tab0 AS cor0
----
150390
395397
5106
query I rowsort
SELECT col1 + - 48 AS col2 FROM tab1
----
-22
-35
-38
query I rowsort
SELECT - col2 * + 63 AS col2 FROM tab0
----
-2079
-5166
-63
query I rowsort
SELECT col1 * ( + col1 ) AS col2 FROM tab1
----
100
169
676
query I rowsort
SELECT ALL 3 * - col0 + col2 FROM tab2
----
-199
-208
6
onlyif mysql # use DIV operator for integer division
query I rowsort label-9123
SELECT DISTINCT 1 * 0 DIV - col2 + + col2 AS col0 FROM tab0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-9123
SELECT DISTINCT 1 * 0 / - col2 + + col2 AS col0 FROM tab0
----
1
33
82
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9124
SELECT - CAST( NULL AS SIGNED ) / + col1 + col1 + + cor0.col0 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9124
SELECT - CAST ( NULL AS INTEGER ) / + col1 + col1 + + cor0.col0 FROM tab1 cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9125
SELECT ALL + CAST( + ( - col0 ) AS SIGNED ) * + col0 AS col1 FROM tab1 AS cor0
----
-4096
-6400
-9
skipif mysql # not compatible
query I rowsort label-9125
SELECT ALL + CAST ( + ( - col0 ) AS INTEGER ) * + col0 AS col1 FROM tab1 AS cor0
----
-4096
-6400
-9
query I rowsort
SELECT - - col1 + col1 * + col1 FROM tab2 AS cor0
----
306
3540
992
query I rowsort
SELECT ALL col1 * 15 FROM tab1 AS cor0
----
150
195
390
query I rowsort
SELECT DISTINCT - 72 AS col0 FROM tab1, tab1 AS cor0
----
-72
query I rowsort
SELECT - 10 + col0 + 53 * + cor0.col0 AS col1 FROM tab0 AS cor0
----
1286
1880
4796
query I rowsort
SELECT ( - col0 ) - + ( col2 ) FROM tab2
----
-104
-117
-34
query I rowsort
SELECT DISTINCT col0 * + col2 AS col0 FROM tab2
----
189
2028
3002
query I rowsort
SELECT DISTINCT - 3 AS col2 FROM tab2
----
-3
query I rowsort
SELECT 57 AS col1 FROM tab1, tab2 AS cor0, tab0 cor1
----
27 values hashing to 220a93709e207779b34ef74b544764a5
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - ( - cor0.col1 ) col0 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT ALL - 66 * - col1 + - col2 * + col2 AS col2 FROM tab2 AS cor0
----
-322
1317
3218
onlyif mysql # use DIV operator for integer division
query I rowsort label-9136
SELECT - + cor0.col2 DIV col0 AS col2 FROM tab2 AS cor0
----
-3
0
0
skipif mysql # not compatible
query I rowsort label-9136
SELECT - + cor0.col2 / col0 AS col2 FROM tab2 AS cor0
----
-3
0
0
query I rowsort
SELECT 65 AS col2 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 1c9d0bf96cd3361942fadad668138b9c
query I rowsort
SELECT DISTINCT - - col0 AS col2 FROM tab2 cor0
----
7
78
79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9139
SELECT + cor0.col0 * CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9139
SELECT + cor0.col0 * CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-9140
SELECT ALL - - col0 DIV - col2 AS col2 FROM tab0 AS cor0
----
-1
-35
0
skipif mysql # not compatible
query I rowsort label-9140
SELECT ALL - - col0 / - col2 AS col2 FROM tab0 AS cor0
----
-1
-35
0
query I rowsort
SELECT DISTINCT - col2 * - col1 * + col0 FROM tab0 AS cor0
----
3395
664118
68112
query I rowsort
SELECT ALL col1 * + 41 + - col1 + - col1 FROM tab0 AS cor0
----
3354
3549
3783
onlyif mysql # use DIV operator for integer division
query I rowsort label-9143
SELECT ALL + col1 DIV ( 41 ) col0 FROM tab1 cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9143
SELECT ALL + col1 / ( 41 ) col0 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT 29 - col2 AS col2 FROM tab0
----
-4
-53
28
query I rowsort
SELECT - cor0.col2 AS col1 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc
onlyif mysql # use DIV operator for integer division
query I rowsort label-9146
SELECT DISTINCT + col0 DIV - col0 FROM tab1
----
-1
skipif mysql # not compatible
query I rowsort label-9146
SELECT DISTINCT + col0 / - col0 FROM tab1
----
-1
query I rowsort
SELECT - 72 FROM tab2, tab0 AS cor0 CROSS JOIN tab0, tab2 AS cor1
----
81 values hashing to 95a1a68628dd064d94b4fe1543a3419f
query I rowsort
SELECT + 45 * + col1 + - col2 FROM tab2
----
1368
2629
727
onlyif mysql # use DIV operator for integer division
query I rowsort label-9149
SELECT - 63 DIV - col2 AS col1 FROM tab1
----
0
1
1
skipif mysql # not compatible
query I rowsort label-9149
SELECT - 63 / - col2 AS col1 FROM tab1
----
0
1
1
query I rowsort
SELECT DISTINCT - col1 * tab1.col0 + + col0 AS col0 FROM tab1
----
-576
-75
-960
onlyif mysql # use DIV operator for integer division
query I rowsort label-9151
SELECT DISTINCT + col2 + col2 DIV tab0.col1 AS col2 FROM tab0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-9151
SELECT DISTINCT + col2 + col2 / tab0.col1 AS col2 FROM tab0
----
1
33
82
query I rowsort
SELECT ALL - col2 * + col1 + 28 * 50 AS col0 FROM tab2
----
-134
563
754
query I rowsort
SELECT ALL col1 + - col2 FROM tab2
----
-21
33
4
query I rowsort
SELECT DISTINCT - + cor0.col2 * tab1.col0 AS col1 FROM tab1, tab0, tab2 AS cor0
----
9 values hashing to a73bbc3fd0415c60774b01c5f952caf8
query I rowsort
SELECT - 96 FROM tab2, tab0 cor0
----
9 values hashing to c89b545346f99713888a7934e4caa539
query I rowsort
SELECT ALL col0 + - cor0.col2 * col1 FROM tab0 AS cor0
----
-2814
-62
-7373
query I rowsort
SELECT ALL - - col1 * + cor0.col1 + 89 FROM tab2 AS cor0
----
1050
3570
378
query I rowsort
SELECT - + col2 * col1 + + col1 FROM tab0 AS cor0
----
-2752
-7371
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-9159
SELECT + 3 DIV tab2.col0 AS col1 FROM tab2
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9159
SELECT + 3 / tab2.col0 AS col1 FROM tab2
----
0
0
0
query I rowsort
SELECT ALL col0 * cor0.col2 * col1 - col0 * col0 AS col0 FROM tab2 AS cor0
----
113568
44793
5810
query I rowsort
SELECT - col1 * - col0 + - 3 FROM tab1
----
1037
637
75
query I rowsort
SELECT DISTINCT 61 FROM tab0, tab0 AS cor0
----
61
query I rowsort
SELECT 33 FROM tab2, tab2 AS cor0
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5
query I rowsort
SELECT ALL - + col1 * 30 FROM tab0 AS cor0
----
-2580
-2730
-2910
query I rowsort
SELECT col2 * ( - col0 ) + - col2 FROM tab1
----
-216
-3705
-7776
query I rowsort
SELECT col0 * + ( tab1.col1 ) AS col1 FROM tab1
----
1040
640
78
query I rowsort
SELECT ALL - 71 * + col1 + col2 FROM tab2 AS cor0
----
-1169
-2174
-4163
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9168
SELECT - CAST( NULL AS SIGNED ) * col2 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9168
SELECT - CAST ( NULL AS INTEGER ) * col2 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT ( - ( col1 ) ) AS col2 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT DISTINCT + col1 + - col2 - col0 FROM tab1 cor0
----
-111
-163
-31
query I rowsort
SELECT DISTINCT ( + ( col1 ) ) + + col1 + + col2 AS col0 FROM tab2 AS cor0
----
144
72
89
query I rowsort
SELECT ALL - 15 + - col1 * + col1 AS col2 FROM tab2 AS cor0
----
-304
-3496
-976
query I rowsort
SELECT - - ( 90 ) FROM tab1 AS cor0
----
90
90
90
query I rowsort
SELECT ALL - ( + col0 ) + + col1 FROM tab0 cor0
----
2
62
62
query I rowsort
SELECT - col0 + cor0.col0 * col2 AS col1 FROM tab1 cor0
----
159
3584
7600
query I rowsort
SELECT ALL + 81 * - col1 AS col2 FROM tab1 AS cor0
----
-1053
-2106
-810
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 83 col2 FROM tab1 AS cor0
----
-83
query I rowsort
SELECT - cor0.col1 + + col1 * - col2 FROM tab2 cor0
----
-1593
-663
-868
query I rowsort
SELECT ALL - cor0.col1 * col0 + col1 FROM tab1 AS cor0
----
-1027
-52
-630
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9180
SELECT DISTINCT - + CAST( NULL AS SIGNED ) * col1 - col2 AS col0 FROM tab1 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9180
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) * col1 - col2 AS col0 FROM tab1 cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * cor0.col1 col0 FROM tab0 AS cor0
----
-7396
-8281
-9409
query I rowsort
SELECT ALL - col0 - - ( col1 * + 36 ) FROM tab0 cor0
----
3072
3187
3457
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 64 col0 FROM tab2 AS cor0
----
64
64
64
query I rowsort
SELECT DISTINCT - ( - col0 ) * col2 + ( col0 ) AS col1 FROM tab2 AS cor0
----
196
2106
3081
query I rowsort
SELECT DISTINCT + cor0.col2 * col2 AS col2 FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT ( + 72 ) * + cor0.col0 AS col1 FROM tab2 cor0
----
504
5616
5688
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9187
SELECT ALL CAST( - col2 + col2 * + col2 AS SIGNED ) FROM tab0
----
0
1056
6642
skipif mysql # not compatible
query I rowsort label-9187
SELECT ALL CAST ( - col2 + col2 * + col2 AS INTEGER ) FROM tab0
----
0
1056
6642
query I rowsort
SELECT ALL 18 * col2 AS col1 FROM tab0
----
1476
18
594
query I rowsort
SELECT 2 AS col2 FROM tab1
----
2
2
2
query I rowsort
SELECT ALL + ( col1 + - col0 ) FROM tab1
----
-54
-67
23
query I rowsort
SELECT ALL 20 * col0 FROM tab2
----
140
1560
1580
query I rowsort
SELECT 49 FROM tab2, tab2 cor0
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55
query I rowsort
SELECT ( - col2 ) * cor0.col1 FROM tab1 cor0
----
-1248
-1404
-570
onlyif mysql # use DIV operator for integer division
query I rowsort label-9194
SELECT - ( + 87 ) DIV - cor0.col0 AS col0 FROM tab0 AS cor0
----
0
2
3
skipif mysql # not compatible
query I rowsort label-9194
SELECT - ( + 87 ) / - cor0.col0 AS col0 FROM tab0 AS cor0
----
0
2
3
query I rowsort
SELECT DISTINCT - - ( ( - col0 ) ) AS col2 FROM tab0 AS cor0
----
-24
-35
-89
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9196
SELECT - CAST( col2 AS SIGNED ) * col2 AS col2 FROM tab2 AS cor0
----
-1444
-676
-729
skipif mysql # not compatible
query I rowsort label-9196
SELECT - CAST ( col2 AS INTEGER ) * col2 AS col2 FROM tab2 AS cor0
----
-1444
-676
-729
query I rowsort
SELECT cor0.col2 + + col0 + cor0.col0 FROM tab0 AS cor0
----
260
71
81
query I rowsort
SELECT - 54 FROM tab1, tab0 AS cor0, tab2 AS cor1, tab2 cor2
----
81 values hashing to 440ee4bea4c39df49899f4a4d88059fe
query I rowsort
SELECT + + 97 * + col1 AS col2 FROM tab0 AS cor0
----
8342
8827
9409
query I rowsort
SELECT + + col0 * cor0.col2 AS col1 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT - 13 + 87 FROM tab2
----
74
74
74
query I rowsort
SELECT tab1.col0 + - tab1.col1 FROM tab1
----
-23
54
67
query I rowsort
SELECT + + col1 * col0 AS col2 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT DISTINCT - col1 + - col2 * + col1 AS col1 FROM tab0 AS cor0
----
-194
-2924
-7553
query I rowsort
SELECT + col0 + col2 * col0 AS col2 FROM tab2 cor0
----
196
2106
3081
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9206
SELECT ALL col2 + CAST( + col2 AS SIGNED ) AS col2 FROM tab0 cor0
----
164
2
66
skipif mysql # not compatible
query I rowsort label-9206
SELECT ALL col2 + CAST ( + col2 AS INTEGER ) AS col2 FROM tab0 cor0
----
164
2
66
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9207
SELECT + + col2 * + CAST( NULL AS SIGNED ) + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9207
SELECT + + col2 * + CAST ( NULL AS INTEGER ) + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col0 + - 26 * - col2 * - col0 FROM tab0 AS cor0
----
-189837
-20616
-945
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 63 col1 FROM tab1, tab1 AS cor0
----
-63
query I rowsort
SELECT + col0 + + col1 * cor0.col2 FROM tab2 AS cor0
----
1612
725
844
onlyif mysql # use DIV operator for integer division
query I rowsort label-9211
SELECT - col1 DIV ( - cor0.col0 ) AS col1 FROM tab1 AS cor0
----
0
0
8
skipif mysql # not compatible
query I rowsort label-9211
SELECT - col1 / ( - cor0.col0 ) AS col1 FROM tab1 AS cor0
----
0
0
8
onlyif mysql # use DIV operator for integer division
query I rowsort label-9212
SELECT + cor0.col0 DIV 1 + col2 DIV + col2 AS col2 FROM tab0 AS cor0
----
25
36
90
skipif mysql # not compatible
query I rowsort label-9212
SELECT + cor0.col0 / 1 + col2 / + col2 AS col2 FROM tab0 AS cor0
----
25
36
90
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - col1 col1 FROM tab2
----
1343
217
4602
query I rowsort
SELECT col2 * ( cor0.col2 * + col0 ) - col1 FROM tab2 AS cor0
----
114059
5072
52669
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9215
SELECT cor0.col0 * - col2 + + col2 * col2 * + CAST( - col2 * col0 AS SIGNED ) FROM tab2 AS cor0
----
-1372956
-137970
-4337890
skipif mysql # not compatible
query I rowsort label-9215
SELECT cor0.col0 * - col2 + + col2 * col2 * + CAST ( - col2 * col0 AS INTEGER ) FROM tab2 AS cor0
----
-1372956
-137970
-4337890
query I rowsort
SELECT - ( 29 ) FROM tab2, tab0 cor0
----
9 values hashing to 0cc9ddad93fc783055518ae4b6be054b
query I rowsort
SELECT DISTINCT 28 FROM tab0, tab2 AS cor0
----
28
query I rowsort
SELECT ALL - col0 * - ( + col1 ) - - col0 AS col0 FROM tab2
----
1422
224
4680
query I rowsort
SELECT - col1 - - tab2.col2 * - col1 AS col0 FROM tab2
----
-1593
-663
-868
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9220
SELECT + col0 + + CAST( col0 AS SIGNED ) - col0 AS col0 FROM tab2
----
7
78
79
skipif mysql # not compatible
query I rowsort label-9220
SELECT + col0 + + CAST ( col0 AS INTEGER ) - col0 AS col0 FROM tab2
----
7
78
79
query I rowsort
SELECT DISTINCT - col1 - - col1 AS col1 FROM tab0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-9222
SELECT + + col0 + ( - col1 ) DIV col2 AS col1 FROM tab0 AS cor0
----
-62
22
88
skipif mysql # not compatible
query I rowsort label-9222
SELECT + + col0 + ( - col1 ) / col2 AS col1 FROM tab0 AS cor0
----
-62
22
88
query I rowsort
SELECT - col2 * ( 42 ) + col2 FROM tab2 AS cor0
----
-1066
-1107
-1558
query I rowsort
SELECT DISTINCT cor0.col0 + - col0 - col0 * 8 AS col0 FROM tab1 AS cor0
----
-24
-512
-640
onlyif mysql # use DIV operator for integer division
query I rowsort label-9225
SELECT + - col1 + cor0.col0 DIV col0 FROM tab2 AS cor0
----
-16
-30
-58
skipif mysql # not compatible
query I rowsort label-9225
SELECT + - col1 + cor0.col0 / col0 FROM tab2 AS cor0
----
-16
-30
-58
query I rowsort
SELECT ALL ( 24 ) AS col0 FROM tab1 cor0
----
24
24
24
query I rowsort
SELECT - ( + cor0.col1 ) + + col1 AS col1 FROM tab1 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 * col0 + col0 col1 FROM tab2 AS cor0
----
1422
224
4680
query I rowsort
SELECT DISTINCT col1 * ( + col1 ) + col2 * col1 FROM tab0 AS cor0
----
10234
15743
9506
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - col1 col1 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT ALL 10 + + 12 AS col1 FROM tab1 AS cor0
----
22
22
22
query I rowsort
SELECT ( - cor0.col0 ) AS col2 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT - cor0.col2 * col1 + - cor0.col0 FROM tab0 cor0
----
-132
-2862
-7551
query I rowsort
SELECT - 64 + 56 FROM tab1 AS cor0
----
-8
-8
-8
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-9236
SELECT - tab1.col2 DIV - col0 FROM tab1
----
0
1
18
skipif mysql # not compatible
query I rowsort label-9236
SELECT - tab1.col2 / - col0 FROM tab1
----
0
1
18
query I rowsort
SELECT 55 AS col0 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 832128adb1ddc65c3105e29cc2c8b3a3
query I rowsort
SELECT DISTINCT + col1 * 97 AS col0 FROM tab0
----
8342
8827
9409
query I rowsort
SELECT DISTINCT + - 86 + 9 FROM tab0 cor0
----
-77
query I rowsort
SELECT + 58 FROM tab1 cor0
----
58
58
58
onlyif mysql # use DIV operator for integer division
query I rowsort label-9241
SELECT ALL + col0 + col1 DIV + col0 - cor0.col1 * col0 FROM tab2 AS cor0
----
-1264
-206
-4524
skipif mysql # not compatible
query I rowsort label-9241
SELECT ALL + col0 + col1 / + col0 - cor0.col1 * col0 FROM tab2 AS cor0
----
-1264
-206
-4524
query I rowsort
SELECT + 56 * + col0 + - col1 FROM tab1 AS cor0
----
142
3574
4467
query I rowsort
SELECT DISTINCT + 50 AS col0 FROM tab0 AS cor0
----
50
query I rowsort
SELECT DISTINCT - cor1.col1 + cor1.col1 - cor0.col1 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
-10
-13
-26
query I rowsort
SELECT - 40 * col0 AS col2 FROM tab0 AS cor0
----
-1400
-3560
-960
onlyif mysql # use DIV operator for integer division
query I rowsort label-9246
SELECT col2 DIV col0 + - 29 AS col1 FROM tab2 cor0
----
-26
-29
-29
skipif mysql # not compatible
query I rowsort label-9246
SELECT col2 / col0 + - 29 AS col1 FROM tab2 cor0
----
-26
-29
-29
onlyif mysql # use DIV operator for integer division
query I rowsort label-9247
SELECT - + 38 DIV col0 FROM tab2 AS cor0
----
-5
0
0
skipif mysql # not compatible
query I rowsort label-9247
SELECT - + 38 / col0 FROM tab2 AS cor0
----
-5
0
0
query I rowsort
SELECT DISTINCT + 80 AS col2 FROM tab1 AS cor0
----
80
query I rowsort
SELECT col1 * + col1 * col0 FROM tab0 AS cor0
----
177504
329315
737009
query I rowsort
SELECT DISTINCT + 50 + + col0 * + col0 + col0 FROM tab1 AS cor0
----
4210
62
6530
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + col1 * + cor0.col2 col0 FROM tab0 AS cor0
----
2871
7544
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-9252
SELECT + cor0.col2 DIV 51 FROM tab0 cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-9252
SELECT + cor0.col2 / 51 FROM tab0 cor0
----
0
0
1
query I rowsort
SELECT DISTINCT col0 + - 66 * + 90 FROM tab2 AS cor0
----
-5861
-5862
-5933
query I rowsort
SELECT ALL 40 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to e4d10f7d6c34a281f524e45e82ebd2a0
query I rowsort
SELECT - 44 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 07457d9e571e036a9a3a0f5a5a2e1ef2
query I rowsort
SELECT ALL - - col2 + 56 * col2 * + col1 FROM tab0 AS cor0
----
158961
417954
5433
query I rowsort
SELECT ALL cor0.col1 * col0 + col1 FROM tab0 cor0
----
2150
3492
8190
onlyif mysql # use DIV operator for integer division
query I rowsort label-9258
SELECT DISTINCT + col1 DIV + 36 AS col1 FROM tab2 AS cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-9258
SELECT DISTINCT + col1 / + 36 AS col1 FROM tab2 AS cor0
----
0
1
query I rowsort
SELECT DISTINCT + + col0 + + 12 * 35 FROM tab2 AS cor0
----
427
498
499
query I rowsort
SELECT DISTINCT col0 - + ( + 27 ) FROM tab1 AS cor0
----
-24
37
53
query I rowsort
SELECT + col0 + - col0 * - cor0.col0 AS col1 FROM tab0 cor0
----
1260
600
8010
query I rowsort
SELECT ALL - col0 + - col1 * + col1 FROM tab2 AS cor0
----
-3559
-368
-968
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 col2 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT ALL - - col1 * cor0.col0 - + col2 AS col0 FROM tab0 AS cor0
----
2031
3394
8017
query I rowsort
SELECT + col1 * 73 AS col1 FROM tab2 cor0
----
1241
2263
4307
query I rowsort
SELECT ALL + 89 FROM tab0
----
89
89
89
query I rowsort
SELECT 79 - col1 * 84 AS col0 FROM tab2
----
-1349
-2525
-4877
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9268
SELECT + CAST( NULL AS DECIMAL ) FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-9268
SELECT + CAST ( NULL AS REAL ) FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9269
SELECT DISTINCT - col0 * - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9269
SELECT DISTINCT - col0 * - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT + col1 + ( - col0 ) * - col1 FROM tab2 AS cor0
----
1360
248
4661
query I rowsort
SELECT ALL + col0 * col1 + + col0 + col1 FROM tab0 cor0
----
2174
3527
8279
query I rowsort
SELECT ALL - - cor0.col1 AS col0 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT ALL col1 + ( - 10 ) AS col2 FROM tab2 cor0
----
21
49
7
query I rowsort
SELECT ALL cor0.col1 * 34 * 75 + col2 * - col2 AS col0 FROM tab0 AS cor0
----
218211
225326
247349
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9275
SELECT ALL cor0.col2 + CAST( NULL AS SIGNED ) * - cor0.col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9275
SELECT ALL cor0.col2 + CAST ( NULL AS INTEGER ) * - cor0.col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + cor1.col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17
query IIIIIIIII rowsort
SELECT ALL * FROM tab2, tab2 cor0 CROSS JOIN tab1
----
243 values hashing to 877a8dbac0e29b86e845fb64ed9d2242
query I rowsort
SELECT ( - col0 ) * - col1 + - col0 FROM tab0 cor0
----
2040
3360
8010
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col2 ) + + col2 col2 FROM tab2 AS cor0
----
52
54
76
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab0.col1 + + col2 col2 FROM tab0
----
-53
-9
-96
query I rowsort
SELECT 5 AS col2 FROM tab1 cor0
----
5
5
5
query I rowsort
SELECT - 98 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 9b0655947ad21e0b95a137a474fa6a1f
query I rowsort
SELECT + 4 AS col2 FROM tab1 AS cor0
----
4
4
4
query I rowsort
SELECT - 65 + col1 * ( - col0 ) * col2 FROM tab0
----
-3460
-664183
-68177
query I rowsort
SELECT - col2 + col1 * 87 FROM tab0
----
7449
7835
8438
query I rowsort
SELECT DISTINCT - 93 * + col1 - - col1 * col0 * cor0.col0 FROM tab2 AS cor0
----
-1364
104516
353469
query I rowsort
SELECT + 29 + col0 FROM tab0 AS cor0
----
118
53
64
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9288
SELECT DISTINCT - col2 * cor0.col0 - + CAST( - col1 + col0 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-7296
-730
27
skipif mysql # not compatible
query I rowsort label-9288
SELECT DISTINCT - col2 * cor0.col0 - + CAST ( - col1 + col0 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-7296
-730
27
query I rowsort
SELECT DISTINCT - 14 + - col1 * col0 * 39 FROM tab2 AS cor0
----
-179492
-52391
-8477
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * col2 - - ( col1 ) col0 FROM tab1 AS cor0
----
-136
-3638
-7667
onlyif mysql # use DIV operator for integer division
query I rowsort label-9291
SELECT ALL + 46 DIV col1 - ( col2 ) * + col1 FROM tab1 AS cor0
----
-1245
-1403
-566
skipif mysql # not compatible
query I rowsort label-9291
SELECT ALL + 46 / col1 - ( col2 ) * + col1 FROM tab1 AS cor0
----
-1245
-1403
-566
query I rowsort
SELECT DISTINCT + - ( + 60 ) * cor0.col2 AS col1 FROM tab0 cor0
----
-1980
-4920
-60
query I rowsort
SELECT DISTINCT + 20 FROM tab2 cor0
----
20
query I rowsort
SELECT ALL + ( + 84 ) * + col0 FROM tab2 AS cor0
----
588
6552
6636
onlyif mysql # use DIV operator for integer division
query I rowsort label-9295
SELECT DISTINCT ( - 1 ) DIV + col1 FROM tab0
----
0
skipif mysql # not compatible
query I rowsort label-9295
SELECT DISTINCT ( - 1 ) / + col1 FROM tab0
----
0
query I rowsort
SELECT - 33 + - col2 + cor0.col0 FROM tab1 cor0
----
-26
-49
-84
query I rowsort
SELECT - - col2 * + col0 AS col2 FROM tab1 AS cor0
----
162
3648
7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-9298
SELECT DISTINCT - col2 * ( col0 + ( - col1 ) ) DIV - col0 AS col2 FROM tab1 AS cor0
----
-414
48
80
skipif mysql # not compatible
query I rowsort label-9298
SELECT DISTINCT - col2 * ( col0 + ( - col1 ) ) / - col0 AS col2 FROM tab1 AS cor0
----
-414
48
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-9299
SELECT + - 92 + - col2 + col0 * + col2 DIV + col2 col2 FROM tab1 cor0
----
-108
-143
-85
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9299
SELECT + - 92 + - col2 + col0 * + col2 / + col2 col2 FROM tab1 cor0
----
-108
-143
-85
query I rowsort
SELECT ALL + 6 + + 85 * col2 FROM tab1 AS cor0
----
4596
4851
8166
query I rowsort
SELECT - + 22 FROM tab2 AS cor0
----
-22
-22
-22
query IIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0 cor0 CROSS JOIN tab2 AS cor1
----
243 values hashing to 60bd71ee2159222231bb3b5819bc5dca
query I rowsort
SELECT DISTINCT 94 * col2 AS col0 FROM tab0
----
3102
7708
94
query I rowsort
SELECT 22 + + 22 * col2 FROM tab1
----
1210
1276
2134
query I rowsort
SELECT ALL cor0.col2 * col0 * col2 FROM tab2 AS cor0
----
114076
5103
52728
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9306
SELECT col0 + - CAST( NULL AS SIGNED ) * - col0 / cor0.col0 + col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9306
SELECT col0 + - CAST ( NULL AS INTEGER ) * - col0 / cor0.col0 + col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL cor0.col0 * 88 + + 14 * col1 + + col0 FROM tab1 AS cor0
----
5836
631
7302
query I rowsort
SELECT ALL 71 FROM tab0, tab0 cor0, tab1 AS cor1
----
27 values hashing to 95a6ff35b7b8f00868fb58bcaa32d0c2
query I rowsort
SELECT ALL - col1 * ( col2 * col2 ) + + 58 FROM tab0 AS cor0
----
-39
-611826
-93596
onlyif mysql # use DIV operator for integer division
query I rowsort label-9310
SELECT ALL + - col2 + + col0 DIV + 10 col1 FROM tab1 AS cor0
----
-51
-54
-88
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9310
SELECT ALL + - col2 + + col0 / + 10 col1 FROM tab1 AS cor0
----
-51
-54
-88
query I rowsort
SELECT + ( - tab1.col1 ) + 83 + col1 * - tab1.col1 AS col2 FROM tab1
----
-27
-619
-99
onlyif mysql # use DIV operator for integer division
query I rowsort label-9312
SELECT col1 DIV col0 + + col0 AS col2 FROM tab2 AS cor0
----
11
78
79
skipif mysql # not compatible
query I rowsort label-9312
SELECT col1 / col0 + + col0 AS col2 FROM tab2 AS cor0
----
11
78
79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9313
SELECT ALL CAST( NULL AS DECIMAL ) FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-9313
SELECT ALL CAST ( NULL AS REAL ) FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT DISTINCT - col0 * - col0 * col0 FROM tab0
----
13824
42875
704969
query I rowsort
SELECT + col0 + - 38 AS col0 FROM tab1
----
-35
26
42
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col2 * col1 * + col1 col2 FROM tab0
----
244068
679042
9409
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 79 col2 FROM tab0 AS cor0
----
79
79
79
query I rowsort
SELECT ALL col1 * tab1.col1 + - col0 FROM tab1
----
36
673
89
query I rowsort
SELECT tab0.col0 + + ( - col0 ) * - col2 FROM tab0
----
70
7387
816
query I rowsort
SELECT DISTINCT - ( 90 ) FROM tab0, tab2 cor0
----
-90
query I rowsort
SELECT DISTINCT - + col2 * 64 FROM tab0 AS cor0
----
-2112
-5248
-64
query I rowsort
SELECT ALL - 56 AS col2 FROM tab2, tab0 cor0, tab2 AS cor1
----
27 values hashing to a228dfb9ede9780b082a5a3dfb2fca80
query I rowsort
SELECT ALL cor1.col1 FROM tab2, tab2 AS cor0, tab2 cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
query I rowsort
SELECT + col2 * - col2 * + col0 + col0 AS col0 FROM tab1 AS cor0
----
-207872
-737200
-8745
query I rowsort
SELECT col2 + - ( 52 ) * - col1 AS col1 FROM tab1
----
1406
577
772
query I rowsort
SELECT ALL + ( col1 ) AS col1 FROM tab2
----
17
31
59
query I rowsort
SELECT cor1.col1 FROM tab2, tab1 cor0, tab0 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT ALL + 93 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde
query I rowsort
SELECT - col2 + col2 AS col1 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT 79 * 72 * cor0.col0 + ( 34 ) AS col0 FROM tab2 AS cor0
----
39850
443698
449386
onlyif mysql # use DIV operator for integer division
query I rowsort label-9331
SELECT - 2 DIV col1 + + cor0.col0 * 40 col0 FROM tab2 AS cor0
----
280
3120
3160
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9331
SELECT - 2 / col1 + + cor0.col0 * 40 col0 FROM tab2 AS cor0
----
280
3120
3160
query I rowsort
SELECT ALL + 28 AS col0 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 8a39580587f2831072e93c319ff94bbf
query I rowsort
SELECT 27 * 96 AS col2 FROM tab1, tab1 cor0, tab2 AS cor1
----
27 values hashing to bca957a5d6bc0681daad8bf36eb7d2e6
onlyif mysql # use DIV operator for integer division
query I rowsort label-9334
SELECT ALL col0 DIV - col1 + - 17 * col2 + tab2.col1 * col1 AS col0 FROM tab2
----
-361
3038
502
skipif mysql # not compatible
query I rowsort label-9334
SELECT ALL col0 / - col1 + - 17 * col2 + tab2.col1 * col1 AS col0 FROM tab2
----
-361
3038
502
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 40 * - col0 + col2 * + col0 col0 FROM tab2
----
-1092
-158
-91
query I rowsort
SELECT ALL + col1 * - col2 AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT - 17 * + col0 AS col2 FROM tab1 AS cor0
----
-1088
-1360
-51
query I rowsort
SELECT cor0.col2 * col0 + col2 AS col1 FROM tab2 AS cor0
----
2054
216
3040
query I rowsort
SELECT col2 * 3 FROM tab2 AS cor0
----
114
78
81
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9340
SELECT ALL + col2 + CAST( NULL AS SIGNED ) * - col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9340
SELECT ALL + col2 + CAST ( NULL AS INTEGER ) * - col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + col1 + + ( + col1 ) * - col2 AS col1 FROM tab2 AS cor0
----
-1475
-629
-806
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9342
SELECT DISTINCT col0 + CAST( - 24 AS SIGNED ) * + col0 col2 FROM tab2 AS cor0
----
-161
-1794
-1817
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9342
SELECT DISTINCT col0 + CAST ( - 24 AS INTEGER ) * + col0 col2 FROM tab2 AS cor0
----
-161
-1794
-1817
query I rowsort
SELECT + + col1 * - 0 + + col1 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT col0 - ( col2 + - cor0.col2 ) * 11 AS col1 FROM tab2 AS cor0
----
7
78
79
onlyif mysql # use DIV operator for integer division
query I rowsort label-9345
SELECT - col2 * 31 DIV 3 + - col0 * 77 + - col2 * - col0 * + 76 FROM tab0 cor0
----
-45
546948
58003
skipif mysql # not compatible
query I rowsort label-9345
SELECT - col2 * 31 / 3 + - col0 * 77 + - col2 * - col0 * + 76 FROM tab0 cor0
----
-45
546948
58003
query I rowsort
SELECT - cor0.col0 - + 38 FROM tab2 AS cor0
----
-116
-117
-45
query I rowsort
SELECT - col0 + + col1 FROM tab0 cor0
----
2
62
62
query I rowsort
SELECT DISTINCT - tab1.col1 AS col0 FROM tab1, tab1 AS cor0
----
-10
-13
-26
onlyif mysql # use DIV operator for integer division
query I rowsort label-9349
SELECT + col0 DIV col0 - - col0 AS col1 FROM tab1
----
4
65
81
skipif mysql # not compatible
query I rowsort label-9349
SELECT + col0 / col0 - - col0 AS col1 FROM tab1
----
4
65
81
query I rowsort
SELECT DISTINCT - 50 * + tab2.col2 FROM tab2
----
-1300
-1350
-1900
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( cor0.col2 ) col0 FROM tab1 cor0
----
54
57
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-9352
SELECT - tab2.col2 DIV - col1 - + col2 AS col1 FROM tab2
----
-26
-27
-36
skipif mysql # not compatible
query I rowsort label-9352
SELECT - tab2.col2 / - col1 - + col2 AS col1 FROM tab2
----
-26
-27
-36
query I rowsort
SELECT DISTINCT col1 * tab0.col0 * + tab0.col0 AS col0 FROM tab0
----
118825
49536
720811
onlyif mysql # use DIV operator for integer division
query I rowsort label-9354
SELECT col2 + 61 DIV + col0 AS col0 FROM tab2
----
26
35
38
skipif mysql # not compatible
query I rowsort label-9354
SELECT col2 + 61 / + col0 AS col0 FROM tab2
----
26
35
38
query I rowsort
SELECT + - col1 + + col2 AS col2 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT DISTINCT + col1 - col2 * tab1.col0 AS col1 FROM tab1
----
-136
-3638
-7667
query I rowsort
SELECT tab1.col2 + - tab1.col1 AS col0 FROM tab1
----
28
47
83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 * + col1 * col2 + 68 * + col2 col1 FROM tab2 AS cor0
----
121420
53618
7695
query I rowsort
SELECT ALL 45 * - col1 + col0 * - col2 FROM tab2 AS cor0
----
-1584
-3767
-4683
query I rowsort
SELECT ALL col1 + col1 * - 66 AS col2 FROM tab1 AS cor0
----
-1690
-650
-845
query I rowsort
SELECT ALL - ( col0 ) * + col1 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT ALL + 58 * col2 FROM tab2 AS cor0
----
1508
1566
2204
onlyif mysql # use DIV operator for integer division
query I rowsort label-9363
SELECT ALL - col1 DIV cor0.col0 AS col1 FROM tab1 AS cor0
----
-8
0
0
skipif mysql # not compatible
query I rowsort label-9363
SELECT ALL - col1 / cor0.col0 AS col1 FROM tab1 AS cor0
----
-8
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 * 99 + col0 col2 FROM tab0 AS cor0
----
2400
3500
8900
query I rowsort
SELECT - + col1 + + 62 FROM tab1 cor0
----
36
49
52
onlyif mysql # use DIV operator for integer division
query I rowsort label-9366
SELECT col2 DIV ( col0 ) FROM tab1 AS cor0
----
0
1
18
skipif mysql # not compatible
query I rowsort label-9366
SELECT col2 / ( col0 ) FROM tab1 AS cor0
----
0
1
18
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + ( col0 ) col1 FROM tab0 AS cor0
----
110
132
180
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9368
SELECT - cor0.col0 + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9368
SELECT - cor0.col0 + 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 DISTINCT + + col1 - - col0 * cor0.col0 col0 FROM tab2 AS cor0
----
6143
6258
80
query I rowsort
SELECT - ( col0 ) + + col1 FROM tab0 AS cor0
----
2
62
62
query I rowsort
SELECT - 58 FROM tab1 cor0
----
-58
-58
-58
query I rowsort
SELECT ALL + col0 * - 39 AS col0 FROM tab2 AS cor0
----
-273
-3042
-3081
query I rowsort
SELECT + 44 + cor0.col1 * col2 FROM tab2 AS cor0
----
1578
690
881
query I rowsort
SELECT DISTINCT - cor0.col1 + col1 AS col0 FROM tab0 AS cor0
----
0
query I rowsort
SELECT ALL - + col2 + + col2 * - cor0.col0 AS col1 FROM tab0 cor0
----
-36
-7380
-825
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9376
SELECT ALL + + CAST( - cor0.col0 AS SIGNED ) + + col1 FROM tab2 AS cor0
----
-19
-62
24
skipif mysql # not compatible
query I rowsort label-9376
SELECT ALL + + CAST ( - cor0.col0 AS INTEGER ) + + col1 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT DISTINCT + + col0 * col0 + col2 FROM tab0 AS cor0
----
1226
609
8003
query I rowsort
SELECT ALL + - 25 AS col1 FROM tab0 cor0
----
-25
-25
-25
query I rowsort
SELECT col1 * col2 AS col2 FROM tab2 cor0
----
1534
646
837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 9 col1 FROM tab0 AS cor0
----
9
query I rowsort
SELECT + - col2 * ( cor0.col1 ) FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT - ( col0 ) * + cor0.col0 AS col0 FROM tab0 AS cor0
----
-1225
-576
-7921
query I rowsort
SELECT + - col1 + 83 * - col0 + cor0.col1 * col1 AS col1 FROM tab0 AS cor0
----
5318
6407
803
onlyif mysql # use DIV operator for integer division
query I rowsort label-9384
SELECT + - ( - col0 ) DIV col2 + - cor0.col1 FROM tab1 AS cor0
----
-13
-26
-9
skipif mysql # not compatible
query I rowsort label-9384
SELECT + - ( - col0 ) / col2 + - cor0.col1 FROM tab1 AS cor0
----
-13
-26
-9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 * + cor0.col1 col0 FROM tab0 AS cor0
----
7396
8281
9409
onlyif mysql # use DIV operator for integer division
query I rowsort label-9386
SELECT DISTINCT + col0 + col0 + - cor0.col2 DIV - ( col1 ) AS col0 FROM tab0 AS cor0
----
178
48
70
skipif mysql # not compatible
query I rowsort label-9386
SELECT DISTINCT + col0 + col0 + - cor0.col2 / - ( col1 ) AS col0 FROM tab0 AS cor0
----
178
48
70
query I rowsort
SELECT cor0.col0 * + cor0.col0 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT DISTINCT - col0 * - ( - col2 ) * - cor0.col2 + + col1 * col1 + + col1 AS col2 FROM tab2 AS cor0
----
114382
56268
6095
query I rowsort
SELECT DISTINCT 36 + 2 FROM tab2 AS cor0
----
38
query I rowsort
SELECT ALL - 1 * - col0 AS col1 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT col2 * col1 + + col0 FROM tab0 AS cor0
----
132
2862
7551
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + 39 + col1 col1 FROM tab2 AS cor0
----
1240
2360
680
onlyif mysql # use DIV operator for integer division
query I rowsort label-9393
SELECT DISTINCT col2 + + col2 DIV - 76 AS col1 FROM tab0 AS cor0
----
1
33
81
skipif mysql # not compatible
query I rowsort label-9393
SELECT DISTINCT col2 + + col2 / - 76 AS col1 FROM tab0 AS cor0
----
1
33
81
query I rowsort
SELECT ALL 85 FROM tab0, tab2 AS cor0, tab1, tab1 AS cor1
----
81 values hashing to 5e8deeabad7bbbaf313fcdcb4adc75eb
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9395
SELECT ALL col0 + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9395
SELECT ALL col0 + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-9396
SELECT ALL - - col2 + - cor0.col0 DIV 74 AS col1 FROM tab0 AS cor0
----
1
33
81
skipif mysql # not compatible
query I rowsort label-9396
SELECT ALL - - col2 + - cor0.col0 / 74 AS col1 FROM tab0 AS cor0
----
1
33
81
query I rowsort
SELECT ALL + - col2 + 55 FROM tab0 AS cor0
----
-27
22
54
query I rowsort
SELECT + col2 * + ( - col0 ) * - col0 - - ( - 84 ) AS col0 FROM tab2 AS cor0
----
1239
158100
237074
query I rowsort
SELECT ALL + - 29 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 0cc9ddad93fc783055518ae4b6be054b
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * + 40 + - cor0.col2 + col1 * 94 col0 FROM tab2 AS cor0
----
1807
40
4480
onlyif mysql # use DIV operator for integer division
query I rowsort label-9401
SELECT - col1 * col0 DIV col2 + - col1 FROM tab0 AS cor0
----
-148
-189
-3492
skipif mysql # not compatible
query I rowsort label-9401
SELECT - col1 * col0 / col2 + - col1 FROM tab0 AS cor0
----
-148
-189
-3492
query I rowsort
SELECT DISTINCT - col1 + col1 * cor0.col2 FROM tab0 cor0
----
0
2752
7371
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9403
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL
skipif mysql # not compatible
query I rowsort label-9403
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0 cor0, tab2, tab2 AS cor1
----
972 values hashing to a698694a7dac245e42212ff0316bdf45
query I rowsort
SELECT DISTINCT - tab1.col1 + col0 + + col1 FROM tab1
----
3
64
80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9406
SELECT ALL - col2 + CAST( col2 + - col0 AS SIGNED ) AS col0 FROM tab0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-9406
SELECT ALL - col2 + CAST ( col2 + - col0 AS INTEGER ) AS col0 FROM tab0
----
-24
-35
-89
query I rowsort
SELECT ALL col1 * 20 + + col2 AS col2 FROM tab0
----
1753
1902
1941
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + - 73 * col2 col0 FROM tab0 AS cor0
----
-2385
-38
-5897
onlyif mysql # use DIV operator for integer division
query I rowsort label-9409
SELECT ALL - col0 + - col0 DIV - col1 FROM tab0 AS cor0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-9409
SELECT ALL - col0 + - col0 / - col1 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT + col2 * - col0 * col0 + col0 FROM tab2 AS cor0
----
-1316
-158106
-237079
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + - col0 col2 FROM tab1
----
0
query I rowsort
SELECT col0 + + col0 + - 74 * + col0 * 52 FROM tab0
----
-134610
-342294
-92304
query I rowsort
SELECT - + cor0.col2 * + col2 AS col2 FROM tab2 AS cor0
----
-1444
-676
-729
query I rowsort
SELECT ALL + 55 FROM tab1 AS cor0
----
55
55
55
query I rowsort
SELECT cor0.col2 * cor0.col0 + - col2 AS col2 FROM tab1 AS cor0
----
108
3591
7584
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - col1 ) + + 51 col2 FROM tab2 AS cor0
----
-8
20
34
onlyif mysql # use DIV operator for integer division
query I rowsort label-9417
SELECT col0 + - cor0.col0 DIV - col2 FROM tab1 cor0
----
3
65
80
skipif mysql # not compatible
query I rowsort label-9417
SELECT col0 + - cor0.col0 / - col2 FROM tab1 cor0
----
3
65
80
query I rowsort
SELECT ALL + col2 * col1 FROM tab0 cor0
----
2838
7462
97
query I rowsort
SELECT cor0.col2 + + cor0.col0 AS col2 FROM tab0 AS cor0
----
171
36
57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 22 + - col2 * + col1 col1 FROM tab2 AS cor0
----
-1512
-624
-815
query I rowsort
SELECT DISTINCT 24 AS col2 FROM tab1 AS cor0
----
24
query I rowsort
SELECT DISTINCT - col2 + col2 * + col0 AS col2 FROM tab1 AS cor0
----
108
3591
7584
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col1 col1 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT col2 + + cor0.col1 AS col1 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT DISTINCT - col1 * cor0.col0 * + col1 FROM tab1 AS cor0
----
-13520
-2028
-6400
query I rowsort
SELECT - 53 AS col2 FROM tab1 cor0
----
-53
-53
-53
query I rowsort
SELECT ALL + - col2 + col1 * col0 FROM tab2 AS cor0
----
1305
190
4576
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 * col1 col1 FROM tab0 cor0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT - col0 * + ( - 65 ) + col0 AS col1 FROM tab0 AS cor0
----
1584
2310
5874
query I rowsort
SELECT - col1 * col0 + 65 * cor0.col2 FROM tab2 AS cor0
----
-2912
1127
1538
query I rowsort
SELECT + cor0.col1 + - col0 FROM tab2 cor0
----
-19
-62
24
onlyif mysql # use DIV operator for integer division
query I rowsort label-9432
SELECT DISTINCT - + col2 * cor0.col2 DIV + cor0.col0 AS col0 FROM tab2 AS cor0
----
-104
-18
-8
skipif mysql # not compatible
query I rowsort label-9432
SELECT DISTINCT - + col2 * cor0.col2 / + cor0.col0 AS col0 FROM tab2 AS cor0
----
-104
-18
-8
query I rowsort
SELECT ALL - - col0 + col0 * - col2 FROM tab2 AS cor0
----
-182
-1950
-2923
query I rowsort
SELECT + + col1 + ( 57 ) FROM tab1 cor0
----
67
70
83
query I rowsort
SELECT ALL 76 * + cor0.col1 AS col0 FROM tab1 AS cor0
----
1976
760
988
query I rowsort
SELECT DISTINCT + ( 58 ) AS col1 FROM tab0 cor0
----
58
query I rowsort
SELECT DISTINCT 13 * 89 + col1 AS col2 FROM tab2
----
1174
1188
1216
query I rowsort
SELECT tab0.col2 * - tab0.col2 FROM tab0
----
-1
-1089
-6724
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9439
SELECT DISTINCT - CAST( col0 AS SIGNED ) FROM tab1 AS cor0
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-9439
SELECT DISTINCT - CAST ( col0 AS INTEGER ) FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT ALL - 29 FROM tab1 AS cor0
----
-29
-29
-29
query I rowsort
SELECT - ( - cor0.col1 ) AS col1 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT DISTINCT - cor0.col2 + 57 FROM tab1, tab2 AS cor0
----
19
30
31
query I rowsort
SELECT + + 49 + col2 FROM tab0 AS cor0
----
131
50
82
query I rowsort
SELECT + ( col0 ) AS col1 FROM tab1 cor0
----
3
64
80
query I rowsort
SELECT - - 35 + - col2 + + col0 AS col0 FROM tab1 AS cor0
----
-16
19
42
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9446
SELECT + ( col2 ) * cor0.col2 * CAST( + col1 AS SIGNED ) + cor0.col0 AS col1 FROM tab0 AS cor0
----
132
611973
93678
skipif mysql # not compatible
query I rowsort label-9446
SELECT + ( col2 ) * cor0.col2 * CAST ( + col1 AS INTEGER ) + cor0.col0 AS col1 FROM tab0 AS cor0
----
132
611973
93678
query I rowsort
SELECT ALL - ( - 68 ) + col2 AS col2 FROM tab2
----
106
94
95
query I rowsort
SELECT ALL - 46 * col2 AS col0 FROM tab0 AS cor0
----
-1518
-3772
-46
onlyif mysql # use DIV operator for integer division
query I rowsort label-9449
SELECT - 18 + col2 DIV - 40 + + col1 * + col1 col0 FROM tab2 AS cor0
----
271
3463
943
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9449
SELECT - 18 + col2 / - 40 + + col1 * + col1 col0 FROM tab2 AS cor0
----
271
3463
943
query I rowsort
SELECT + - 99 + col0 FROM tab0 AS cor0
----
-10
-64
-75
query I rowsort
SELECT DISTINCT - col1 + col0 * + col1 * + col2 + - col2 * col0 * 49 FROM tab0
----
1583
29218
306425
query I rowsort
SELECT 24 * + col2 + col0 * col1 AS col2 FROM tab0
----
10067
2856
3419
query I rowsort
SELECT ( 66 ) AS col0 FROM tab2, tab1, tab2 cor0
----
27 values hashing to 897b6122ac98340b78905f39d81897fc
onlyif mysql # use DIV operator for integer division
query I rowsort label-9454
SELECT - 78 DIV - 3 + - tab0.col1 * + col0 FROM tab0
----
-2038
-3369
-8073
skipif mysql # not compatible
query I rowsort label-9454
SELECT - 78 / - 3 + - tab0.col1 * + col0 FROM tab0
----
-2038
-3369
-8073
query I rowsort
SELECT DISTINCT - tab2.col0 + + ( col1 ) + 47 * 22 AS col2 FROM tab2
----
1015
1058
972
query I rowsort
SELECT - col2 + - col0 * cor0.col0 AS col2 FROM tab0 AS cor0
----
-1226
-609
-8003
query I rowsort
SELECT + + col2 * + col2 AS col2 FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT 91 * + 42 + - col2 + col1 FROM tab2
----
3801
3826
3855
onlyif mysql # use DIV operator for integer division
query I rowsort label-9459
SELECT + + col2 DIV + col1 + ( + 43 ) * - cor0.col1 FROM tab1 cor0
----
-1116
-425
-552
skipif mysql # not compatible
query I rowsort label-9459
SELECT + + col2 / + col1 + ( + 43 ) * - cor0.col1 FROM tab1 cor0
----
-1116
-425
-552
query I rowsort
SELECT + 70 - cor0.col0 FROM tab0 AS cor0
----
-19
35
46
query I rowsort
SELECT DISTINCT col2 * - col1 AS col1 FROM tab0
----
-2838
-7462
-97
query I rowsort
SELECT ALL - cor0.col2 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e
query I rowsort
SELECT ALL 41 AS col0 FROM tab1
----
41
41
41
query I rowsort
SELECT - 63 * + cor0.col1 FROM tab0 AS cor0
----
-5418
-5733
-6111
query I rowsort
SELECT - 34 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 5b88331e40da4796cc4826c442aa45f7
query I rowsort
SELECT 78 + + col2 AS col1 FROM tab2 AS cor0
----
104
105
116
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 92 * col0 col1 FROM tab2 AS cor0
----
644
7176
7268
query I rowsort
SELECT ALL tab0.col0 * ( - 57 ) FROM tab0
----
-1368
-1995
-5073
query I rowsort
SELECT DISTINCT + 15 FROM tab1, tab1 AS cor0, tab1 cor1
----
15
query I rowsort
SELECT col1 + - ( col2 ) AS col0 FROM tab0
----
53
9
96
query I rowsort
SELECT ALL - 79 FROM tab2 AS cor0
----
-79
-79
-79
query I rowsort
SELECT DISTINCT 54 * + ( cor0.col0 ) FROM tab0 cor0
----
1296
1890
4806
query I rowsort
SELECT DISTINCT + + col1 + - col0 + cor0.col0 AS col2 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT ALL - + 14 AS col0 FROM tab1 AS cor0
----
-14
-14
-14
query I rowsort
SELECT DISTINCT - ( + col0 ) * - col1 + ( col2 ) + col2 AS col2 FROM tab2 AS cor0
----
1419
271
4654
query I rowsort
SELECT ALL - + ( ( - col2 ) ) + + 68 - - col0 FROM tab2 AS cor0
----
102
172
185
query I rowsort
SELECT + - ( - cor0.col2 ) AS col2 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT DISTINCT - 91 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
-91
query I rowsort
SELECT ALL - col2 + 72 * col2 AS col0 FROM tab0 AS cor0
----
2343
5822
71
onlyif mysql # use DIV operator for integer division
query I rowsort label-9480
SELECT ALL - col0 * ( col1 ) + col2 DIV col1 + + col1 AS col1 FROM tab1 AS cor0
----
-1020
-50
-625
skipif mysql # not compatible
query I rowsort label-9480
SELECT ALL - col0 * ( col1 ) + col2 / col1 + + col1 AS col1 FROM tab1 AS cor0
----
-1020
-50
-625
query I rowsort
SELECT ALL col0 + ( col0 ) AS col2 FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT - + ( + cor0.col0 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e
query I rowsort
SELECT ALL - col0 * + ( col1 * - col0 ) AS col1 FROM tab2
----
106097
1519
358956
query I rowsort
SELECT DISTINCT + col2 * - ( tab0.col2 ) FROM tab0
----
-1
-1089
-6724
query I rowsort
SELECT - 99 AS col0 FROM tab2 cor0
----
-99
-99
-99
query I rowsort
SELECT DISTINCT 21 AS col2 FROM tab1, tab0 AS cor0
----
21
query I rowsort
SELECT ALL - tab0.col1 AS col1 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84
query I rowsort
SELECT col2 + col1 + - 48 * - col1 FROM tab0 AS cor0
----
4247
4541
4754
query I rowsort
SELECT - col0 * col0 + + col2 FROM tab1 AS cor0
----
-4039
-6304
45
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9490
SELECT tab1.col0 + - CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9490
SELECT tab1.col0 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT - col1 * 64 FROM tab0
----
-5504
-5824
-6208
query I rowsort
SELECT DISTINCT + 97 * + col2 + col0 FROM tab2 cor0
----
2600
2626
3765
query I rowsort
SELECT ALL - 69 * col0 * col1 - col1 FROM tab0 AS cor0
----
-142502
-234352
-558922
query I rowsort
SELECT DISTINCT + tab2.col2 - + col2 AS col1 FROM tab2
----
0
query I rowsort
SELECT ALL ( + col1 * col2 ) - 34 AS col1 FROM tab1
----
1214
1370
536
query I rowsort
SELECT ALL - 31 * - 87 - tab0.col1 FROM tab0
----
2600
2606
2611
skipif mysql # not compatible
query I rowsort
SELECT CAST ( - 75 AS REAL ) * - col2 + col0 FROM tab1
----
4053
4339
7280
query I rowsort
SELECT 49 + - col1 + col2 FROM tab1
----
132
77
96
query I rowsort
SELECT DISTINCT - cor0.col1 * col1 + - 68 FROM tab0 AS cor0
----
-7464
-8349
-9477
query I rowsort
SELECT - col1 + + col2 * 51 AS col0 FROM tab1 AS cor0
----
2728
2897
4883
query I rowsort
SELECT ALL - cor0.col1 - cor0.col0 * + col1 FROM tab1 cor0
----
-104
-1053
-650
query I rowsort
SELECT - + ( col1 ) + ( col2 ) AS col0 FROM tab0 AS cor0
----
-53
-9
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-9503
SELECT DISTINCT - col0 - col0 DIV 41 AS col2 FROM tab0 AS cor0
----
-24
-35
-91
skipif mysql # not compatible
query I rowsort label-9503
SELECT DISTINCT - col0 - col0 / 41 AS col2 FROM tab0 AS cor0
----
-24
-35
-91
query I rowsort
SELECT ALL col1 * cor0.col1 FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT DISTINCT - col1 * - col2 + 53 + col0 AS col1 FROM tab2 AS cor0
----
1665
778
897
query I rowsort
SELECT ALL + 62 + + col2 * col1 FROM tab0 AS cor0
----
159
2900
7524
query I rowsort
SELECT + 59 * - col0 FROM tab0 cor0
----
-1416
-2065
-5251
query I rowsort
SELECT - col1 * col2 + cor0.col0 FROM tab0 AS cor0
----
-2814
-62
-7373
onlyif mysql # use DIV operator for integer division
query I rowsort label-9509
SELECT ALL + 90 * col0 * col0 + col1 DIV col0 AS col1 FROM tab0
----
110252
51843
712891
skipif mysql # not compatible
query I rowsort label-9509
SELECT ALL + 90 * col0 * col0 + col1 / col0 AS col1 FROM tab0
----
110252
51843
712891
query I rowsort
SELECT col1 + - col2 * 89 + - col1 FROM tab1
----
-4806
-5073
-8544
query I rowsort
SELECT ALL 35 + col2 + col1 * ( col0 ) FROM tab0
----
2132
3431
8216
query I rowsort
SELECT ALL - 36 FROM tab2 AS cor0
----
-36
-36
-36
query I rowsort
SELECT - + col2 * - col0 + - cor0.col2 * - col0 + col0 FROM tab2 AS cor0
----
385
4134
6083
query I rowsort
SELECT ALL + 31 * - col0 FROM tab1 AS cor0
----
-1984
-2480
-93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + cor0.col1 col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT col2 + tab0.col0 * + ( - col0 + col2 ) AS col1 FROM tab0
----
-1189
-541
249
query I rowsort
SELECT DISTINCT col0 + - col0 * col2 FROM tab1 AS cor0
----
-159
-3584
-7600
query I rowsort
SELECT ALL + col2 * + col1 AS col0 FROM tab2 AS cor0
----
1534
646
837
onlyif mysql # use DIV operator for integer division
query I rowsort label-9519
SELECT + - col0 DIV + col0 + + 48 col0 FROM tab0 AS cor0
----
47
47
47
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9519
SELECT + - col0 / + col0 + + 48 col0 FROM tab0 AS cor0
----
47
47
47
query I rowsort
SELECT ALL + + cor0.col0 * 20 * + col1 + + col1 * - col2 + col1 FROM tab0 AS cor0
----
154609
38528
67900
query I rowsort
SELECT - cor0.col1 + 52 * 71 AS col1 FROM tab2 AS cor0
----
3633
3661
3675
query I rowsort
SELECT DISTINCT + col2 + + col0 * col0 AS col2 FROM tab0 AS cor0
----
1226
609
8003
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9523
SELECT DISTINCT col2 * CAST( NULL AS SIGNED ) + col2 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9523
SELECT DISTINCT col2 * CAST ( NULL AS INTEGER ) + col2 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT - col0 + + 70 * - 69 FROM tab0 AS cor0
----
-4854
-4865
-4919
query I rowsort
SELECT DISTINCT 4 AS col1 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
4
query I rowsort
SELECT DISTINCT + cor0.col2 + - ( col2 ) AS col2 FROM tab1 AS cor0
----
0
query I rowsort
SELECT ALL - + col2 * 30 AS col1 FROM tab2 AS cor0
----
-1140
-780
-810
query I rowsort
SELECT - - col0 * - 93 + - col0 * - col2 FROM tab1 AS cor0
----
-117
-2304
240
query I rowsort
SELECT - + cor0.col2 + 68 FROM tab0 AS cor0
----
-14
35
67
query I rowsort
SELECT ALL - 5 + col2 * col1 FROM tab2
----
1529
641
832
query I rowsort
SELECT ALL + col1 * + 15 FROM tab2 cor0
----
255
465
885
query I rowsort
SELECT DISTINCT col0 * ( col1 ) AS col0 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT ALL + col1 + - ( + col1 ) FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT + - cor0.col2 * - cor0.col1 AS col2 FROM tab2 AS cor0
----
1534
646
837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 * ( + col1 ) + col2 * col1 col1 FROM tab1 cor0
----
1210
1482
2288
query I rowsort
SELECT - col0 + col2 * col0 * + col0 AS col2 FROM tab1 AS cor0
----
233408
483
614320
query I rowsort
SELECT - - col0 + + col1 * col0 FROM tab2 AS cor0
----
1422
224
4680
query I rowsort
SELECT DISTINCT + + 84 * col2 * col2 FROM tab1 AS cor0
----
244944
272916
774144
query I rowsort
SELECT - 33 * col0 FROM tab2 AS cor0
----
-231
-2574
-2607
query I rowsort
SELECT - 73 * 57 AS col2 FROM tab2 AS cor0
----
-4161
-4161
-4161
query I rowsort
SELECT ALL - col0 + col0 * col0 FROM tab1 AS cor0
----
4032
6
6320
query I rowsort
SELECT DISTINCT + ( - col0 ) * col0 AS col2 FROM tab1 AS cor0
----
-4096
-6400
-9
query I rowsort
SELECT - 49 + 24 * - col1 FROM tab1 AS cor0
----
-289
-361
-673
onlyif mysql # use DIV operator for integer division
query I rowsort label-9544
SELECT ALL col0 DIV + col0 AS col2 FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-9544
SELECT ALL col0 / + col0 AS col2 FROM tab1 AS cor0
----
1
1
1
query I rowsort
SELECT + col1 * 81 AS col2 FROM tab2 cor0
----
1377
2511
4779
query I rowsort
SELECT DISTINCT - - col1 * + cor0.col1 + - col1 FROM tab2 AS cor0
----
272
3422
930
query I rowsort
SELECT DISTINCT + ( + 93 ) FROM tab1 AS cor0
----
93
query I rowsort
SELECT ALL + - ( col1 ) * col1 * - ( col0 * cor0.col0 ) AS col0 FROM tab1 AS cor0
----
1081600
409600
6084
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9549
SELECT ALL CAST( + col1 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
17
31
59
skipif mysql # not compatible
query I rowsort label-9549
SELECT ALL CAST ( + col1 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
17
31
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-9550
SELECT DISTINCT 18 DIV + 90 AS col1 FROM tab2 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-9550
SELECT DISTINCT 18 / + 90 AS col1 FROM tab2 AS cor0
----
0
query I rowsort
SELECT - ( + col0 ) * + col0 AS col1 FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT DISTINCT cor0.col2 * - col0 AS col1 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT ALL - ( 94 ) + col1 * + 10 * + ( col1 ) FROM tab2 AS cor0
----
2796
34716
9516
query I rowsort
SELECT ALL + 38 FROM tab2 cor0
----
38
38
38
query I rowsort
SELECT - 93 + col0 * - 15 AS col1 FROM tab2 AS cor0
----
-1263
-1278
-198
query I rowsort
SELECT DISTINCT - + col2 + col0 * ( + 82 ) + col0 AS col1 FROM tab2 cor0
----
554
6448
6519
query I rowsort
SELECT DISTINCT + + ( + col1 ) - + 14 FROM tab0 AS cor0
----
72
77
83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + cor0.col1 col2 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT + - ( + col2 ) - - col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + + col1 * - col2 - - 21 FROM tab2 AS cor0
----
-1513
-625
-816
query I rowsort
SELECT DISTINCT - col0 + col0 AS col0 FROM tab0 AS cor0
----
0
query I rowsort
SELECT col0 + - col2 * col1 * + col2 + + cor0.col1 AS col1 FROM tab2 AS cor0
----
-22561
-24452
-39747
query I rowsort
SELECT DISTINCT + - col1 * + col1 + - col1 AS col1 FROM tab0 AS cor0
----
-7482
-8372
-9506
query I rowsort
SELECT ALL cor0.col1 AS col1 FROM tab0 cor0
----
86
91
97
query I rowsort
SELECT DISTINCT ( 61 ) AS col2 FROM tab1, tab0 AS cor0 CROSS JOIN tab2
----
61
query I rowsort
SELECT 26 FROM tab1, tab1 cor0 CROSS JOIN tab0
----
27 values hashing to ede8226bb7e602e221f9d98345b4da37
query I rowsort
SELECT + ( 82 ) + - col1 FROM tab0 AS cor0
----
-15
-4
-9
query I rowsort
SELECT ( + col1 ) + col2 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT + 52 * + col0 + col0 AS col2 FROM tab0 AS cor0
----
1272
1855
4717
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9570
SELECT CAST( col2 AS SIGNED ) col2 FROM tab2 AS cor0
----
26
27
38
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9570
SELECT CAST ( col2 AS INTEGER ) col2 FROM tab2 AS cor0
----
26
27
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-9571
SELECT - 18 DIV ( col1 * + col2 ) - + col0 * - col0 FROM tab1 AS cor0
----
4096
6400
9
skipif mysql # not compatible
query I rowsort label-9571
SELECT - 18 / ( col1 * + col2 ) - + col0 * - col0 FROM tab1 AS cor0
----
4096
6400
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab1.col2 * col0 + + 48 + - col2 * + col1 * col2 col0 FROM tab1
----
-112080
-28794
-75606
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9573
SELECT ALL col1 / CAST( NULL AS SIGNED ) + col2 * col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9573
SELECT ALL col1 / CAST ( NULL AS INTEGER ) + col2 * col1 FROM tab2
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-9574
SELECT tab1.col0 DIV - 1 FROM tab1
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-9574
SELECT tab1.col0 / - 1 FROM tab1
----
-3
-64
-80
query I rowsort
SELECT ALL - col2 + + ( + 49 ) + col0 FROM tab2
----
101
29
90
query I rowsort
SELECT DISTINCT + 46 AS col1 FROM tab0, tab0 AS cor0
----
46
query I rowsort
SELECT ALL - ( + col2 * col1 ) FROM tab1
----
-1248
-1404
-570
query I rowsort
SELECT ALL - + 28 * cor0.col0 + + col0 FROM tab2 AS cor0
----
-189
-2106
-2133
query I rowsort
SELECT ALL col2 + + ( + col1 ) AS col1 FROM tab0 AS cor0
----
119
173
98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9580
SELECT - - col2 * 11 + col0 * CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9580
SELECT - - col2 * 11 + col0 * CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9581
SELECT ALL - CAST( NULL AS SIGNED ) * + col0 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9581
SELECT ALL - CAST ( NULL AS INTEGER ) * + col0 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + 81 AS col1 FROM tab0 AS cor0
----
81
81
81
query I rowsort
SELECT col0 - - col2 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT col2 * 92 + - col2 FROM tab1 AS cor0
----
4914
5187
8736
query I rowsort
SELECT - + col1 * - col2 + col1 AS col1 FROM tab0 cor0
----
194
2924
7553
query I rowsort
SELECT DISTINCT + col2 + - col1 AS col2 FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT DISTINCT - ( - col2 ) + - 50 AS col0 FROM tab2 AS cor0
----
-12
-23
-24
query I rowsort
SELECT DISTINCT - ( + col1 ) * col1 * tab2.col2 AS col2 FROM tab2
----
-10982
-25947
-90506
query I rowsort
SELECT ALL - col1 * - col2 - - col0 * + col0 * - col1 FROM tab0 AS cor0
----
-118728
-46698
-713349
query I rowsort
SELECT + ( - cor0.col2 ) FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT ALL col1 + - col2 - 53 AS col1 FROM tab2 cor0
----
-20
-49
-74
query I rowsort
SELECT DISTINCT + col2 + + col2 * - col1 FROM tab0 AS cor0
----
-2805
-7380
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-9593
SELECT ALL - + col1 DIV col1 FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-9593
SELECT ALL - + col1 / col1 FROM tab0 AS cor0
----
-1
-1
-1
query I rowsort
SELECT DISTINCT col0 * ( ( - col1 ) * col1 ) FROM tab1 AS cor0
----
-13520
-2028
-6400
query I rowsort
SELECT - tab0.col0 * - ( - col0 ) FROM tab0
----
-1225
-576
-7921
query I rowsort
SELECT ALL - col0 + - col0 * col1 FROM tab1 AS cor0
----
-1120
-704
-81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 col0 FROM tab0 cor0
----
-1
-33
-82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + 9 col1 FROM tab0 AS cor0
----
216
315
801
query I rowsort
SELECT DISTINCT + cor1.col1 FROM tab0 AS cor0 CROSS JOIN tab2, tab1 AS cor1
----
10
13
26
query I rowsort
SELECT + 65 AS col1 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 1c9d0bf96cd3361942fadad668138b9c
onlyif mysql # use DIV operator for integer division
query I rowsort label-9601
SELECT ALL - col2 DIV tab0.col0 FROM tab0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-9601
SELECT ALL - col2 / tab0.col0 FROM tab0
----
-1
0
0
query I rowsort
SELECT - + cor0.col2 + + col2 AS col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT - col0 * + 3 + col0 FROM tab0 AS cor0
----
-178
-48
-70
query I rowsort
SELECT + - ( + col2 ) + - col1 FROM tab2 AS cor0
----
-55
-58
-85
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9605
SELECT CAST( cor0.col0 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
7
78
79
skipif mysql # not compatible
query I rowsort label-9605
SELECT CAST ( cor0.col0 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT + col1 + col1 + col2 * - col1 FROM tab2 cor0
----
-1416
-612
-775
query I rowsort
SELECT - col0 * + col2 * - col0 FROM tab0 cor0
----
1225
19008
649522
query I rowsort
SELECT ALL 42 + - 29 FROM tab0 AS cor0
----
13
13
13
query I rowsort
SELECT ALL + + col0 + col0 * - col0 * cor0.col0 AS col0 FROM tab2 cor0
----
-336
-474474
-492960
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 * cor0.col2 + - col2 col1 FROM tab0 AS cor0
----
0
1056
6642
query I rowsort
SELECT + col2 * - cor0.col2 * - col2 + + col2 FROM tab1 AS cor0
----
157518
185250
884832
query I rowsort
SELECT ALL + 27 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8
query I rowsort
SELECT col2 * - cor0.col0 * col0 + 42 * col2 AS col2 FROM tab2 AS cor0
----
-157092
-189
-235562
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col2 + - col1 col2 FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT - + col2 + + col2 + + 24 FROM tab2 AS cor0
----
24
24
24
query I rowsort
SELECT col2 * col2 * 41 + + 82 FROM tab1 cor0
----
119638
133291
377938
query I rowsort
SELECT ALL - ( + col1 ) AS col2 FROM tab1
----
-10
-13
-26
query I rowsort
SELECT - - col1 * + 27 FROM tab2 AS cor0
----
1593
459
837
onlyif mysql # use DIV operator for integer division
query I rowsort label-9619
SELECT cor0.col1 * ( 15 ) DIV - col2 FROM tab0 AS cor0
----
-1455
-16
-39
skipif mysql # not compatible
query I rowsort label-9619
SELECT cor0.col1 * ( 15 ) / - col2 FROM tab0 AS cor0
----
-1455
-16
-39
query I rowsort
SELECT - col1 * ( + col0 ) FROM tab2 cor0
----
-1343
-217
-4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + col2 col2 FROM tab2
----
1534
646
837
query I rowsort
SELECT DISTINCT 65 AS col2 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
65
query I rowsort
SELECT DISTINCT + 86 AS col2 FROM tab2 AS cor0
----
86
query I rowsort
SELECT DISTINCT + - col0 + col1 * ( ( + col0 ) ) * 12 FROM tab0 AS cor0
----
24744
40705
97099
query I rowsort
SELECT ALL - + 92 * col2 + + 64 FROM tab1 AS cor0
----
-4904
-5180
-8768
query I rowsort
SELECT + col0 * - col1 + - cor0.col1 AS col1 FROM tab0 AS cor0
----
-2150
-3492
-8190
query I rowsort
SELECT DISTINCT cor0.col0 + - cor0.col1 * 11 FROM tab1 AS cor0
----
-283
-46
-63
query I rowsort
SELECT 44 * + col1 + - 29 FROM tab1 AS cor0
----
1115
411
543
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 48 col2 FROM tab0 AS cor0
----
-48
-48
-48
query I rowsort
SELECT ALL + col0 * ( col1 * + col0 ) + + col2 FROM tab2 AS cor0
----
106135
1546
358982
query I rowsort
SELECT DISTINCT cor0.col0 - - ( 43 ) FROM tab2 cor0
----
121
122
50
query I rowsort
SELECT + - col1 + + col2 * + col2 FROM tab0 cor0
----
-96
1003
6633
query I rowsort
SELECT DISTINCT + col1 * 64 + - col0 FROM tab1 AS cor0
----
1661
576
752
query I rowsort
SELECT + col1 * 84 + 90 AS col1 FROM tab2 AS cor0
----
1518
2694
5046
query I rowsort
SELECT ALL + + col1 * col2 AS col1 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT + cor0.col2 + - ( - 71 + col2 ) * 53 * + ( col0 ) FROM tab1 AS cor0
----
-105904
2757
47545
query I rowsort
SELECT DISTINCT + col2 + + col0 FROM tab2 cor0
----
104
117
34
query I rowsort
SELECT DISTINCT cor0.col2 + col1 AS col0 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT - 77 * + col0 FROM tab1
----
-231
-4928
-6160
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 98 col2 FROM tab2, tab0, tab0 cor0
----
98
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL < - col0
----
query I rowsort
SELECT tab0.col2 AS col2 FROM tab0 WHERE - col0 / + col1 NOT BETWEEN NULL AND - col2
----
1
33
82
query I rowsort
SELECT tab2.col1 + + tab2.col0 AS col0 FROM tab2
----
137
38
96
query I rowsort
SELECT DISTINCT + col2 FROM tab1 WHERE NOT NULL IN ( + col2 )
----
query I rowsort
SELECT + col0 + - col0 AS col2 FROM tab1
----
0
0
0
query I rowsort
SELECT tab2.col2 + - col0 AS col1 FROM tab2
----
-41
-52
20
query I rowsort
SELECT tab0.col0 + col1 FROM tab0
----
110
132
180
query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT IN ( + col2 / col2 )
----
query I rowsort
SELECT DISTINCT - col1 + - tab2.col2 FROM tab2
----
-55
-58
-85
query I rowsort
SELECT ALL - tab0.col2 * + tab0.col2 + col0 AS col2 FROM tab0
----
-1065
-6635
34
query III rowsort
SELECT ALL * FROM tab1 WHERE NULL < col2
----
query I rowsort
SELECT + col2 / - col2 + + col0 AS col2 FROM tab2 WHERE + col1 IN ( col2 - - tab2.col2 )
----
query I rowsort
SELECT DISTINCT - tab0.col1 * col1 + col0 * + col2 FROM tab0
----
-6604
-9374
-983
onlyif mysql # use DIV operator for integer division
query I rowsort label-9654
SELECT col1 DIV col0 FROM tab1 WHERE - col0 NOT BETWEEN + col2 AND NULL
----
0
0
8
skipif mysql # not compatible
query I rowsort label-9654
SELECT col1 / col0 FROM tab1 WHERE - col0 NOT BETWEEN + col2 AND NULL
----
0
0
8
query I rowsort
SELECT - col0 + - tab2.col0 FROM tab2
----
-14
-156
-158
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( tab0.col1 ) > + col1
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
query I rowsort
SELECT - col2 * col0 * col1 FROM tab1
----
-36480
-4212
-99840
onlyif mysql # use DIV operator for integer division
query I rowsort label-9658
SELECT ALL col1 DIV tab0.col0 AS col0 FROM tab0
----
1
2
3
skipif mysql # not compatible
query I rowsort label-9658
SELECT ALL col1 / tab0.col0 AS col0 FROM tab0
----
1
2
3
query I rowsort
SELECT DISTINCT + tab0.col0 FROM tab0 WHERE NOT ( NULL ) NOT IN ( + col2 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-9660
SELECT + col0 * col2 DIV - col0 FROM tab1
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-9660
SELECT + col0 * col2 / - col0 FROM tab1
----
-54
-57
-96
query I rowsort
SELECT ALL + col0 * col2 - col0 * col0 AS col1 FROM tab2
----
-3239
-4056
140
query I rowsort
SELECT ALL tab1.col2 * + col0 + col2 + col0 FROM tab1
----
219
3769
7856
query I rowsort
SELECT col0 * col1 - col2 AS col1 FROM tab0
----
2031
3394
8017
query I rowsort
SELECT DISTINCT col2 + col1 + col1 * - col0 * + col0 FROM tab2
----
-106042
-1461
-358871
onlyif mysql # use DIV operator for integer division
query I rowsort label-9665
SELECT DISTINCT - col2 DIV - tab0.col2 AS col2 FROM tab0
----
1
skipif mysql # not compatible
query I rowsort label-9665
SELECT DISTINCT - col2 / - tab0.col2 AS col2 FROM tab0
----
1
query I rowsort
SELECT ALL col0 * - tab1.col1 * col1 FROM tab1
----
-13520
-2028
-6400
query I rowsort
SELECT col1 AS col2 FROM tab0 WHERE NULL NOT IN ( col2 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-9668
SELECT DISTINCT col0 * col0 DIV col0 FROM tab2
----
7
78
79
skipif mysql # not compatible
query I rowsort label-9668
SELECT DISTINCT col0 * col0 / col0 FROM tab2
----
7
78
79
onlyif mysql # use DIV operator for integer division
query I rowsort label-9669
SELECT + col2 * col2 DIV - col1 AS col1 FROM tab0
----
-12
-73
0
skipif mysql # not compatible
query I rowsort label-9669
SELECT + col2 * col2 / - col1 AS col1 FROM tab0
----
-12
-73
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-9670
SELECT ALL col0 DIV col2 AS col2 FROM tab1
----
0
0
1
skipif mysql # not compatible
query I rowsort label-9670
SELECT ALL col0 / col2 AS col2 FROM tab1
----
0
0
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-9671
SELECT DISTINCT - col0 * col0 DIV col1 AS col2 FROM tab0
----
-12
-6
-87
skipif mysql # not compatible
query I rowsort label-9671
SELECT DISTINCT - col0 * col0 / col1 AS col2 FROM tab0
----
-12
-6
-87
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col2 - - col0 col0 FROM tab2
----
182
196
41
onlyif mysql # use DIV operator for integer division
query I rowsort label-9673
SELECT ALL - col2 DIV + col0 AS col0 FROM tab1
----
-1
-18
0
skipif mysql # not compatible
query I rowsort label-9673
SELECT ALL - col2 / + col0 AS col0 FROM tab1
----
-1
-18
0
query I rowsort
SELECT 40 * - col1 - col2 FROM tab1
----
-1094
-457
-616
query I rowsort
SELECT + 71 + + 67 AS col1 FROM tab0
----
138
138
138
query I rowsort
SELECT 35 + - col1 AS col0 FROM tab2
----
-24
18
4
query I rowsort
SELECT ( 56 ) FROM tab0
----
56
56
56
query I rowsort
SELECT DISTINCT + - cor0.col1 * - col0 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT + + col2 * col1 AS col0 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT DISTINCT + + 17 + - col1 * col1 * col1 AS col0 FROM tab2 AS cor0
----
-205362
-29774
-4896
query I rowsort
SELECT - - 31 * - col0 AS col2 FROM tab1 AS cor0
----
-1984
-2480
-93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 56 col1 FROM tab2
----
56
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1, tab0 AS cor0, tab2 cor1
----
972 values hashing to 9600bdf5bac0caec3229e87170cc40b3
query I rowsort
SELECT - 59 * tab0.col0 AS col1 FROM tab0, tab1 cor0
----
9 values hashing to a47085dafbcf8d5419de0228741dd28d
query I rowsort
SELECT ALL ( ( + col1 ) ) FROM tab2
----
17
31
59
query I rowsort
SELECT ALL ( - col0 ) * + ( - col1 ) FROM tab2 cor0
----
1343
217
4602
query I rowsort
SELECT ALL + + 42 * col0 * ( - 39 ) AS col1 FROM tab0 AS cor0
----
-145782
-39312
-57330
query I rowsort
SELECT DISTINCT - 32 * - col0 * 40 + - 77 AS col2 FROM tab0 AS cor0
----
113843
30643
44723
query I rowsort
SELECT DISTINCT + cor0.col0 + + col1 * col0 * + col0 FROM tab0 AS cor0
----
118860
49560
720900
query I rowsort
SELECT ALL - 93 * col2 - col0 * 28 FROM tab1 cor0
----
-11168
-5106
-7093
query I rowsort
SELECT col1 * col2 + col1 AS col2 FROM tab0 AS cor0
----
194
2924
7553
query I rowsort
SELECT DISTINCT - - 14 * cor0.col2 FROM tab2 AS cor0
----
364
378
532
query I rowsort
SELECT ALL - col1 * col0 * - col0 FROM tab0 cor0
----
118825
49536
720811
query I rowsort
SELECT DISTINCT + + col0 * - col0 * col1 FROM tab2 AS cor0
----
-106097
-1519
-358956
query I rowsort
SELECT col0 - cor0.col0 AS col0 FROM tab0 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + col1 col1 FROM tab0 AS cor0
----
110
132
180
onlyif mysql # use DIV operator for integer division
query I rowsort label-9697
SELECT + + col0 * - cor0.col0 + col1 DIV col1 col0 FROM tab2 AS cor0
----
-48
-6083
-6240
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9697
SELECT + + col0 * - cor0.col0 + col1 / col1 col0 FROM tab2 AS cor0
----
-48
-6083
-6240
query I rowsort
SELECT - col1 * col2 - + 30 FROM tab2 AS cor0
----
-1564
-676
-867
query I rowsort
SELECT DISTINCT - 65 + col2 FROM tab1 AS cor0
----
-11
-8
31
query I rowsort
SELECT ALL + col1 * ( + 7 ) FROM tab2 AS cor0
----
119
217
413
query I rowsort
SELECT DISTINCT + - col2 * + col1 + + col2 * col0 FROM tab2 AS cor0
----
-648
2356
494
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * ( + 39 ) col1 FROM tab1 AS cor0
----
-117
-2496
-3120
query I rowsort
SELECT + cor0.col2 * - col2 AS col1 FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT DISTINCT + - cor0.col0 * - 79 AS col1 FROM tab1 AS cor0
----
237
5056
6320
query I rowsort
SELECT DISTINCT + col1 * cor0.col1 AS col0 FROM tab2 AS cor0
----
289
3481
961
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 + - col0 * col0 col2 FROM tab2 AS cor0
----
-18
-6025
-6224
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 38 col2 FROM tab1 AS cor0
----
-38
-38
-38
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9708
SELECT CAST( - 12 AS SIGNED ) + col0 FROM tab2 AS cor0
----
-5
66
67
skipif mysql # not compatible
query I rowsort label-9708
SELECT CAST ( - 12 AS INTEGER ) + col0 FROM tab2 AS cor0
----
-5
66
67
query I rowsort
SELECT - 89 * col0 FROM tab0 AS cor0
----
-2136
-3115
-7921
query I rowsort
SELECT - + col2 + col0 * col0 FROM tab1 AS cor0
----
-45
4039
6304
query I rowsort
SELECT ALL + 39 AS col2 FROM tab1 AS cor0
----
39
39
39
query I rowsort
SELECT 17 * 68 * + col2 FROM tab2 AS cor0
----
30056
31212
43928
query I rowsort
SELECT DISTINCT - 60 * + 19 + col0 AS col0 FROM tab0 AS cor0
----
-1051
-1105
-1116
query I rowsort
SELECT + 40 AS col1 FROM tab1, tab2 cor0
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3
query I rowsort
SELECT ALL ( + 91 ) AS col2 FROM tab2 AS cor0
----
91
91
91
query I rowsort
SELECT ALL 54 FROM tab2 AS cor0
----
54
54
54
query I rowsort
SELECT DISTINCT + col2 * + cor0.col2 * + col1 + col0 * col1 AS col2 FROM tab2 AS cor0
----
22816
25891
44486
query I rowsort
SELECT - cor0.col0 * - col1 * col2 AS col0 FROM tab0 AS cor0
----
3395
664118
68112
onlyif mysql # use DIV operator for integer division
query I rowsort label-9719
SELECT DISTINCT 10 * col0 DIV + cor0.col1 + + col0 * + col1 FROM tab1 AS cor0
----
1101
704
79
skipif mysql # not compatible
query I rowsort label-9719
SELECT DISTINCT 10 * col0 / + cor0.col1 + + col0 * + col1 FROM tab1 AS cor0
----
1101
704
79
query I rowsort
SELECT ALL + col1 * + col1 * col0 + - col2 AS col0 FROM tab1 cor0
----
13424
1974
6343
query I rowsort
SELECT ALL - - 75 AS col2 FROM tab1 AS cor0
----
75
75
75
query I rowsort
SELECT DISTINCT col1 * + col2 + - col1 + - col2 * col2 FROM tab1 AS cor0
----
-1538
-2689
-7981
query I rowsort
SELECT - col0 + - col0 * - col1 AS col0 FROM tab0 AS cor0
----
2040
3360
8010
query I rowsort
SELECT + col0 * + col1 * + col0 FROM tab1 AS cor0
----
234
40960
83200
query I rowsort
SELECT + col1 * col0 * col0 + col0 AS col1 FROM tab2 AS cor0
----
106176
1526
359034
query I rowsort
SELECT DISTINCT - ( + col1 ) + tab2.col1 + col1 AS col1 FROM tab2
----
17
31
59
query I rowsort
SELECT + col2 + - col1 + + col2 AS col1 FROM tab1 AS cor0
----
104
179
82
query I rowsort
SELECT DISTINCT col2 * col1 + col1 AS col2 FROM tab1
----
1261
1430
580
query I rowsort
SELECT + 46 * - tab1.col0 AS col0 FROM tab1
----
-138
-2944
-3680
query I rowsort
SELECT DISTINCT - col1 * col0 + col2 FROM tab1 AS cor0
----
-24
-583
-944
query I rowsort
SELECT ALL 92 + tab1.col0 FROM tab1
----
156
172
95
query I rowsort
SELECT - tab0.col2 * col0 AS col0 FROM tab0
----
-35
-7298
-792
query I rowsort
SELECT + col1 + - 50 AS col1 FROM tab1
----
-24
-37
-40
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9734
SELECT ALL + CAST( + col0 + + col1 AS SIGNED ) * col2 FROM tab1
----
1566
4218
8928
skipif mysql # not compatible
query I rowsort label-9734
SELECT ALL + CAST ( + col0 + + col1 AS INTEGER ) * col2 FROM tab1
----
1566
4218
8928
query I rowsort
SELECT - 42 AS col1 FROM tab0
----
-42
-42
-42
query I rowsort
SELECT DISTINCT + 85 AS col0 FROM tab2, tab2 AS cor0
----
85
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9737
SELECT DISTINCT CAST( - col1 AS SIGNED ) * + col0 AS col2 FROM tab1
----
-1040
-640
-78
skipif mysql # not compatible
query I rowsort label-9737
SELECT DISTINCT CAST ( - col1 AS INTEGER ) * + col0 AS col2 FROM tab1
----
-1040
-640
-78
query I rowsort
SELECT ALL 74 AS col2 FROM tab0
----
74
74
74
query I rowsort
SELECT ( + col1 ) AS col0 FROM tab1
----
10
13
26
query I rowsort
SELECT DISTINCT - ( col1 ) * - col1 FROM tab2 cor0
----
289
3481
961
query I rowsort
SELECT DISTINCT + - cor0.col2 + 60 FROM tab0 AS cor0
----
-22
27
59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + - col2 * col1 col0 FROM tab2 AS cor0
----
-1560
-684
-864
query I rowsort
SELECT ALL - + 42 * col1 + + col2 FROM tab1 AS cor0
----
-1038
-363
-450
query I rowsort
SELECT ALL + col2 * 79 + col1 FROM tab0 AS cor0
----
176
2693
6569
query I rowsort
SELECT - col1 AS col1 FROM tab2 AS cor0 WHERE NOT + col2 = + cor0.col1 / col0
----
-17
-31
-59
query I rowsort
SELECT DISTINCT cor0.col2 FROM tab2 AS cor0 CROSS JOIN tab0
----
26
27
38
query I rowsort
SELECT + col0 * col1 + + col1 FROM tab2 AS cor0
----
1360
248
4661
query I rowsort
SELECT tab2.col1 FROM tab2 WHERE NOT col0 NOT BETWEEN NULL AND col2 + col1 * col1 + col2 * - col1
----
query I rowsort
SELECT ALL tab2.col1 + - col2 FROM tab2
----
-21
33
4
query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) <= NULL
----
query I rowsort
SELECT + col0 - col0 * + col2 AS col2 FROM tab2
----
-182
-1950
-2923
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col2 > + col2 * col1 / + col2
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
query I rowsort
SELECT - + col0 * + col2 + col0 FROM tab0 AS cor0
----
-7209
-768
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 col1 FROM tab2, tab2 AS cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272
query I rowsort
SELECT col0 * col0 + col0 - + cor0.col2 AS col0 FROM tab1 AS cor0
----
-42
4103
6384
query I rowsort
SELECT - cor0.col2 + - col2 AS col1 FROM tab0 AS cor0
----
-164
-2
-66
query I rowsort
SELECT + col0 * col2 + col1 AS col2 FROM tab2 AS cor0
----
2087
220
3019
query I rowsort
SELECT DISTINCT tab1.col2 AS col1 FROM tab1, tab1 cor0
----
54
57
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * col2 col0 FROM tab1
----
-162
-3648
-7680
query IIIIIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2, tab0 cor1
----
243 values hashing to 5c33e96b85afe1ea51bb6d4e9fa6f993
query IIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2, tab2 cor1, tab2 AS cor2
----
972 values hashing to 163d7732097d78f1cda7f65c2cea5a08
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9762
SELECT - col1 + CAST( NULL AS SIGNED ) * cor0.col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9762
SELECT - col1 + CAST ( NULL AS INTEGER ) * cor0.col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col2 * 9 AS col2 FROM tab0 AS cor0
----
-297
-738
-9
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab2 cor2
----
972 values hashing to f0b9665afa0b835e4e5097af17c51766
query I rowsort
SELECT - col1 + col1 * - col0 * col1 FROM tab1
----
-13533
-2054
-6410
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab0 AS cor2, tab2 AS cor3
----
3645 values hashing to ee83821bd928a072bc435d7135362ca1
query I rowsort
SELECT ALL col1 * - cor0.col0 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT ALL - cor0.col0 * + col2 * + col1 + + ( + ( cor0.col2 ) ) * + col2 AS col2 FROM tab1 AS cor0
----
-1296
-33231
-90624
onlyif mysql # use DIV operator for integer division
query I rowsort label-9769
SELECT ALL - ( - col1 ) DIV col0 FROM tab1 AS cor0
----
0
0
8
skipif mysql # not compatible
query I rowsort label-9769
SELECT ALL - ( - col1 ) / col0 FROM tab1 AS cor0
----
0
0
8
query I rowsort
SELECT - tab2.col0 * + 8 * col0 AS col1 FROM tab2
----
-392
-48672
-49928
onlyif mysql # use DIV operator for integer division
query I rowsort label-9771
SELECT DISTINCT + - 25 * cor0.col0 + col1 DIV 53 AS col2 FROM tab1 AS cor0
----
-1600
-2000
-75
skipif mysql # not compatible
query I rowsort label-9771
SELECT DISTINCT + - 25 * cor0.col0 + col1 / 53 AS col2 FROM tab1 AS cor0
----
-1600
-2000
-75
query I rowsort
SELECT - 80 + col1 * col1 AS col2 FROM tab0 AS cor0
----
7316
8201
9329
query I rowsort
SELECT DISTINCT + col2 + 15 FROM tab0 AS cor0
----
16
48
97
query I rowsort
SELECT ALL + - col1 * + col1 + + col1 * ( + col0 ) * + col1 FROM tab2 AS cor0
----
22542
268037
5766
query I rowsort
SELECT ALL + 23 * + cor0.col1 AS col1 FROM tab1 cor0
----
230
299
598
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 23 + col1 col2 FROM tab1 AS cor0
----
-10
-13
3
query I rowsort
SELECT - 49 + + col1 FROM tab0 AS cor0
----
37
42
48
query I rowsort
SELECT DISTINCT 34 + col1 FROM tab0 AS cor0
----
120
125
131
query I rowsort
SELECT ALL ( 76 ) AS col1 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 7b2b08dd3f1adef028d3f40ef7c716da
query I rowsort
SELECT - col0 * + col0 - 71 FROM tab0
----
-1296
-647
-7992
query I rowsort
SELECT ALL - + ( + col2 ) * - col1 AS col0 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT ALL - cor0.col2 - cor1.col2 FROM tab2, tab2 AS cor0, tab1 cor1
----
27 values hashing to c0042f99b117e1953d822c7d662d5635
query I rowsort
SELECT + col0 + col2 + 64 FROM tab0 AS cor0
----
100
121
235
query I rowsort
SELECT DISTINCT - - col2 * - 83 FROM tab2 AS cor0
----
-2158
-2241
-3154
query I rowsort
SELECT - col0 + 89 AS col0 FROM tab0 AS cor0
----
0
54
65
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9786
SELECT + col2 * + CAST( col2 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
1
1089
6724
skipif mysql # not compatible
query I rowsort label-9786
SELECT + col2 * + CAST ( col2 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
1
1089
6724
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + col0 col2 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT DISTINCT cor0.col0 * ( - col2 ) * cor0.col1 FROM tab0 AS cor0
----
-3395
-664118
-68112
query I rowsort
SELECT ALL - + col0 * + col1 - - 87 * cor0.col2 FROM tab0 AS cor0
----
-3308
-965
807
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * - cor0.col1 col2 FROM tab0 AS cor0
----
-7396
-8281
-9409
query I rowsort
SELECT + col0 + col0 * col1 FROM tab1 AS cor0
----
1120
704
81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + 29 col0 FROM tab0 AS cor0
----
1015
2581
696
query I rowsort
SELECT ALL + - col2 * 93 * + 49 FROM tab1 AS cor0
----
-246078
-259749
-437472
query I rowsort
SELECT ALL col2 * ( - ( - col1 ) ) FROM tab1 cor0
----
1248
1404
570
query I rowsort
SELECT + col1 + col2 * + col1 AS col0 FROM tab1 AS cor0
----
1261
1430
580
query I rowsort
SELECT cor0.col2 * ( + col1 ) * + col2 FROM tab1 AS cor0
----
119808
32490
75816
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab2.col2 * - col1 * 58 col2 FROM tab2
----
37468
48546
88972
query I rowsort
SELECT DISTINCT - col2 + + 22 FROM tab0 AS cor0
----
-11
-60
21
query I rowsort
SELECT - - col2 * + 73 * col0 FROM tab1 cor0
----
11826
266304
560640
query I rowsort
SELECT ALL cor0.col1 * col2 + col0 FROM tab2 AS cor0
----
1612
725
844
onlyif mysql # use DIV operator for integer division
query I rowsort label-9801
SELECT DISTINCT + col1 DIV 95 FROM tab2 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-9801
SELECT DISTINCT + col1 / 95 FROM tab2 AS cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-9802
SELECT DISTINCT - + col0 DIV + 40 FROM tab0 AS cor0
----
-2
0
skipif mysql # not compatible
query I rowsort label-9802
SELECT DISTINCT - + col0 / + 40 FROM tab0 AS cor0
----
-2
0
query I rowsort
SELECT DISTINCT col1 + + col2 * + col2 AS col0 FROM tab1 AS cor0
----
2942
3259
9229
query I rowsort
SELECT - col0 + ( + ( tab0.col1 ) ) AS col0 FROM tab0
----
2
62
62
query I rowsort
SELECT - col1 + ( - tab0.col0 + col2 ) AS col0 FROM tab0
----
-131
-77
-98
onlyif mysql # use DIV operator for integer division
query I rowsort label-9806
SELECT - col0 + col1 DIV + col2 AS col0 FROM tab1 AS cor0
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-9806
SELECT - col0 + col1 / + col2 AS col0 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT ALL + 50 + col1 + - col2 AS col0 FROM tab0 AS cor0
----
103
146
59
query I rowsort
SELECT + col0 + + 77 + col2 FROM tab1
----
134
198
253
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9809
SELECT ALL - col0 * + cor0.col1 + CAST( + ( + cor0.col1 ) AS SIGNED ) + + 31 AS col1 FROM tab1 AS cor0
----
-21
-599
-996
skipif mysql # not compatible
query I rowsort label-9809
SELECT ALL - col0 * + cor0.col1 + CAST ( + ( + cor0.col1 ) AS INTEGER ) + + 31 AS col1 FROM tab1 AS cor0
----
-21
-599
-996
query I rowsort
SELECT DISTINCT + + 69 AS col1 FROM tab2 AS cor0
----
69
query I rowsort
SELECT + + 76 AS col0 FROM tab1 AS cor0
----
76
76
76
query I rowsort
SELECT ALL - 81 * col0 + - 24 AS col2 FROM tab0 AS cor0
----
-1968
-2859
-7233
query I rowsort
SELECT ALL 87 * col2 + - 18 * - 55 * cor0.col1 AS col2 FROM tab1 AS cor0
----
14859
21222
30438
onlyif mysql # use DIV operator for integer division
query I rowsort label-9814
SELECT DISTINCT - col0 DIV + col0 + cor0.col0 + + 32 AS col2 FROM tab1 AS cor0
----
111
34
95
skipif mysql # not compatible
query I rowsort label-9814
SELECT DISTINCT - col0 / + col0 + cor0.col0 + + 32 AS col2 FROM tab1 AS cor0
----
111
34
95
query I rowsort
SELECT - ( + tab0.col2 + col2 ) FROM tab0
----
-164
-2
-66
query I rowsort
SELECT ALL - col2 + + 55 FROM tab2
----
17
28
29
onlyif mysql # use DIV operator for integer division
query I rowsort label-9817
SELECT DISTINCT - col0 DIV ( - col1 ) + col2 FROM tab1
----
102
54
63
skipif mysql # not compatible
query I rowsort label-9817
SELECT DISTINCT - col0 / ( - col1 ) + col2 FROM tab1
----
102
54
63
query I rowsort
SELECT + 90 * cor0.col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 5d7a7151104f767615b2549d3d061db9
query I rowsort
SELECT - col1 * - col2 + + col1 * + tab1.col1 FROM tab1
----
1417
2080
670
query I rowsort
SELECT ALL - - 40 + col1 FROM tab0 AS cor0
----
126
131
137
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 + - col2 col1 FROM tab2 AS cor0
----
-21
33
4
query I rowsort
SELECT - col2 + - col2 * + ( cor0.col2 ) * col0 + - cor0.col1 FROM tab1 AS cor0
----
-208003
-737389
-8828
query I rowsort
SELECT - + col2 + col2 * 69 AS col2 FROM tab2 cor0
----
1768
1836
2584
query I rowsort
SELECT DISTINCT ( col2 ) AS col1 FROM tab1 cor0
----
54
57
96
query I rowsort
SELECT DISTINCT - cor0.col0 * + col2 + 56 AS col1 FROM tab1 AS cor0
----
-106
-3592
-7624
query I rowsort
SELECT + - 96 AS col0 FROM tab0 cor0
----
-96
-96
-96
query I rowsort
SELECT ALL - + col1 + col2 + 84 FROM tab0 AS cor0
----
-12
31
75
query I rowsort
SELECT ALL - - cor0.col0 + cor0.col0 FROM tab2 AS cor0
----
14
156
158
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9829
SELECT DISTINCT 74 * + col1 + + CAST( col0 AS SIGNED ) AS col2 FROM tab1 cor0
----
1042
1927
804
skipif mysql # not compatible
query I rowsort label-9829
SELECT DISTINCT 74 * + col1 + + CAST ( col0 AS INTEGER ) AS col2 FROM tab1 cor0
----
1042
1927
804
query I rowsort
SELECT ALL ( 90 ) * + col0 * col2 FROM tab1
----
14580
328320
691200
query I rowsort
SELECT cor1.col0 AS col1 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9832
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * - ( - col2 ) + 77 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9832
SELECT DISTINCT - CAST ( NULL AS REAL ) * - ( - col2 ) + 77 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT ALL + col1 - col2 * cor0.col0 * + col0 AS col2 FROM tab1 AS cor0
----
-233462
-460
-614387
query I rowsort
SELECT + cor0.col0 + col1 AS col2 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT + - 21 FROM tab2 AS cor0
----
-21
-21
-21
query I rowsort
SELECT DISTINCT 94 AS col1 FROM tab2
----
94
query I rowsort
SELECT 55 AS col1 FROM tab1 AS cor0
----
55
55
55
onlyif mysql # use DIV operator for integer division
query I rowsort label-9838
SELECT - col0 DIV 87 FROM tab2 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9838
SELECT - col0 / 87 FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT + col1 + ( col1 ) AS col2 FROM tab2 AS cor0
----
118
34
62
query I rowsort
SELECT ALL + - col1 * + 22 + + col2 FROM tab2 AS cor0
----
-1272
-336
-655
query I rowsort
SELECT ALL + col0 * - cor0.col0 AS col2 FROM tab2 AS cor0
----
-49
-6084
-6241
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9842
SELECT + CAST( NULL AS DECIMAL ) FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-9842
SELECT + CAST ( NULL AS REAL ) FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT - col0 * + cor0.col2 + - col2 AS col0 FROM tab0 AS cor0
----
-36
-7380
-825
query I rowsort
SELECT ALL + col0 + cor0.col1 * col2 AS col2 FROM tab0 AS cor0
----
132
2862
7551
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - 71 + col0 col2 FROM tab2 AS cor0
----
-1128
-2194
-4111
query I rowsort
SELECT + cor0.col2 + - col1 AS col1 FROM tab0 AS cor0
----
-53
-9
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-9847
SELECT + col2 DIV - 12 col2 FROM tab0 AS cor0
----
-2
-6
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9847
SELECT + col2 / - 12 col2 FROM tab0 AS cor0
----
-2
-6
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-9848
SELECT - cor0.col0 + 14 DIV 90 - - col0 AS col0 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9848
SELECT - cor0.col0 + 14 / 90 - - col0 AS col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT - - col2 + - ( 17 ) AS col1 FROM tab2 AS cor0
----
10
21
9
query I rowsort
SELECT - + 92 * + cor0.col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 673927c48e70b0610bb03e8052f712ca
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab2 AS cor2, tab0 AS cor3
----
3645 values hashing to 4fa4bd3038de6e74a345debc8ab4cd53
query I rowsort
SELECT ALL + 65 FROM tab1, tab1 AS cor0
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + 3 * col1 + + col0 col1 FROM tab1 AS cor0
----
2031
364
587
query I rowsort
SELECT - col1 * 32 + - col1 * - ( - cor0.col2 ) FROM tab1 AS cor0
----
-1664
-2236
-890
query I rowsort
SELECT DISTINCT ( - col0 ) * + col1 + + col0 FROM tab0 AS cor0
----
-2040
-3360
-8010
query I rowsort
SELECT ( cor0.col1 ) * col2 FROM tab2 cor0
----
1534
646
837
query I rowsort
SELECT + 55 * + col2 + - col1 FROM tab1 AS cor0
----
2944
3125
5267
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9858
SELECT + CAST( 59 AS SIGNED ) FROM tab2, tab2 AS cor0
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc
skipif mysql # not compatible
query I rowsort label-9858
SELECT + CAST ( 59 AS INTEGER ) FROM tab2, tab2 AS cor0
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - tab2.col0 col2 FROM tab2
----
-189
-2028
-3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-9860
SELECT - + col2 DIV + col1 + col1 FROM tab2 AS cor0
----
15
31
59
skipif mysql # not compatible
query I rowsort label-9860
SELECT - + col2 / + col1 + col1 FROM tab2 AS cor0
----
15
31
59
query I rowsort
SELECT + 75 + col1 * + col1 * + 29 AS col2 FROM tab2 AS cor0
----
101024
27944
8456
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9862
SELECT DISTINCT CAST( NULL AS SIGNED ) + 16 * - col1 AS col1 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9862
SELECT DISTINCT CAST ( NULL AS INTEGER ) + 16 * - col1 AS col1 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ( col1 * col2 ) FROM tab1
----
1248
1404
570
onlyif mysql # use DIV operator for integer division
query I rowsort label-9864
SELECT - 19 DIV - col2 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9864
SELECT - 19 / - col2 FROM tab1
----
0
0
0
query I rowsort
SELECT - col2 - - ( - cor0.col0 ) FROM tab1 AS cor0
----
-121
-176
-57
query I rowsort
SELECT ALL + 77 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to d7b027bca5d37c67e29013904def8125
query I rowsort
SELECT + col0 - + col2 FROM tab0
----
-9
34
7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9868
SELECT col1 + - CAST( NULL AS SIGNED ) + - col2 * tab2.col0 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9868
SELECT col1 + - CAST ( NULL AS INTEGER ) + - col2 * tab2.col0 FROM tab2
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-9869
SELECT DISTINCT + tab1.col1 DIV - col2 - + col0 FROM tab1
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-9869
SELECT DISTINCT + tab1.col1 / - col2 - + col0 FROM tab1
----
-3
-64
-80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9870
SELECT DISTINCT col2 + + CAST( NULL AS SIGNED ) - col2 AS col1 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-9870
SELECT DISTINCT col2 + + CAST ( NULL AS INTEGER ) - col2 AS col1 FROM tab1
----
NULL
query I rowsort
SELECT + + col2 * ( + 7 ) FROM tab2 cor0
----
182
189
266
onlyif mysql # use DIV operator for integer division
query I rowsort label-9872
SELECT col1 DIV - col2 FROM tab0
----
-1
-2
-97
skipif mysql # not compatible
query I rowsort label-9872
SELECT col1 / - col2 FROM tab0
----
-1
-2
-97
query I rowsort
SELECT DISTINCT - ( + cor1.col2 ) FROM tab2, tab1 AS cor0, tab1 AS cor1
----
-54
-57
-96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9874
SELECT + col0 + - CAST( col2 * col2 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-2913
-3185
-9136
skipif mysql # not compatible
query I rowsort label-9874
SELECT + col0 + - CAST ( col2 * col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-2913
-3185
-9136
query I rowsort
SELECT ALL + 65 + + col2 FROM tab1 cor0
----
119
122
161
query I rowsort
SELECT DISTINCT cor0.col0 * col1 + + cor0.col0 FROM tab1 cor0
----
1120
704
81
query I rowsort
SELECT - col1 * + col1 + - col1 AS col1 FROM tab1 AS cor0
----
-110
-182
-702
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 84 col2 FROM tab1 AS cor0
----
84
query I rowsort
SELECT DISTINCT ( + col0 ) + cor0.col1 AS col0 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT ALL + col2 + - ( col0 ) FROM tab1
----
-7
16
51
query I rowsort
SELECT tab0.col0 * col1 AS col0 FROM tab0
----
2064
3395
8099
query I rowsort
SELECT col2 + col0 * + col1 * cor0.col1 AS col0 FROM tab0 cor0
----
177537
329316
737091
query I rowsort
SELECT - col1 + 88 * + col2 FROM tab2
----
2229
2345
3327
query I rowsort
SELECT ALL + col0 + tab0.col2 * 39 * + col1 FROM tab0
----
110706
291107
3818
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9885
SELECT CAST( - cor0.col0 AS SIGNED ) * col0 col0 FROM tab1 AS cor0
----
-4096
-6400
-9
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9885
SELECT CAST ( - cor0.col0 AS INTEGER ) * col0 col0 FROM tab1 AS cor0
----
-4096
-6400
-9
query I rowsort
SELECT ALL + col1 * col1 * - col0 AS col1 FROM tab0 AS cor0
----
-177504
-329315
-737009
query I rowsort
SELECT DISTINCT + col2 * col0 + - col2 FROM tab0 AS cor0
----
34
7216
759
query I rowsort
SELECT DISTINCT + + col1 + + col0 FROM tab2 cor0
----
137
38
96
query I rowsort
SELECT ALL + 16 * - col1 AS col1 FROM tab1 AS cor0
----
-160
-208
-416
query I rowsort
SELECT + col0 + + col2 AS col2 FROM tab0 cor0
----
171
36
57
query I rowsort
SELECT + - col1 * - col2 * col1 AS col1 FROM tab0 AS cor0
----
244068
679042
9409
query I rowsort
SELECT ALL + col1 - col2 AS col0 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT + 29 * - col2 + - cor0.col0 AS col0 FROM tab0 AS cor0
----
-2467
-64
-981
query I rowsort
SELECT ALL - col0 + col1 * col2 AS col2 FROM tab2 AS cor0
----
1456
567
830
query I rowsort
SELECT DISTINCT col1 * col0 + col2 FROM tab0 AS cor0
----
2097
3396
8181
query I rowsort
SELECT ALL - col1 * - 77 + - col1 * 60 AS col1 FROM tab0 AS cor0
----
1462
1547
1649
query I rowsort
SELECT - + col0 * col1 AS col0 FROM tab1 AS cor0
----
-1040
-640
-78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( 40 ) + col1 * 60 col1 FROM tab1 AS cor0
----
1600
640
820
query I rowsort
SELECT DISTINCT col0 * col1 * + cor0.col1 FROM tab1 AS cor0
----
13520
2028
6400
query I rowsort
SELECT DISTINCT - + cor0.col1 * col0 + + col0 * - 10 + + col1 FROM tab0 AS cor0
----
-2218
-3648
-8898
query I rowsort
SELECT DISTINCT - cor0.col2 + - 99 * - col0 * cor0.col1 AS col0 FROM tab0 AS cor0
----
204303
336104
801719
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9902
SELECT ALL CAST( NULL AS SIGNED ) * 34 + + col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9902
SELECT ALL CAST ( NULL AS INTEGER ) * 34 + + col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT 32 + - col2 AS col0 FROM tab1 AS cor0
----
-22
-25
-64
onlyif mysql # use DIV operator for integer division
query I rowsort label-9904
SELECT ALL - ( col0 ) * - col1 + ( col2 ) * col0 + - col1 DIV col0 FROM tab0 AS cor0
----
15396
2853
3428
skipif mysql # not compatible
query I rowsort label-9904
SELECT ALL - ( col0 ) * - col1 + ( col2 ) * col0 + - col1 / col0 FROM tab0 AS cor0
----
15396
2853
3428
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9905
SELECT DISTINCT + - CAST( + col2 AS SIGNED ) - - col1 FROM tab0 AS cor0
----
53
9
96
skipif mysql # not compatible
query I rowsort label-9905
SELECT DISTINCT + - CAST ( + col2 AS INTEGER ) - - col1 FROM tab0 AS cor0
----
53
9
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - 88 col0 FROM tab2
----
-2288
-2376
-3344
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9907
SELECT CAST( + col2 AS SIGNED ) FROM tab2
----
26
27
38
skipif mysql # not compatible
query I rowsort label-9907
SELECT CAST ( + col2 AS INTEGER ) FROM tab2
----
26
27
38
query I rowsort
SELECT ( 36 ) * + col1 + - cor0.col1 AS col1 FROM tab0 AS cor0
----
3010
3185
3395
query I rowsort
SELECT ALL + - cor0.col0 + col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT - 54 + + 47 AS col0 FROM tab0 cor0
----
-7
-7
-7
query I rowsort
SELECT DISTINCT + + col2 * cor0.col2 FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT - 77 FROM tab2 cor0
----
-77
-77
-77
query I rowsort
SELECT - col0 * cor0.col0 AS col0 FROM tab0 AS cor0
----
-1225
-576
-7921
query I rowsort
SELECT + - col1 * cor0.col2 AS col0 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT ALL + - 41 * col1 AS col1 FROM tab0 AS cor0
----
-3526
-3731
-3977
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + col1 * + col2 col0 FROM tab2 AS cor0
----
1560
684
864
query I rowsort
SELECT ALL 44 * col0 AS col1 FROM tab2 AS cor0
----
308
3432
3476
onlyif mysql # use DIV operator for integer division
query I rowsort label-9918
SELECT - 91 + + tab0.col0 DIV col1 FROM tab0
----
-91
-91
-91
skipif mysql # not compatible
query I rowsort label-9918
SELECT - 91 + + tab0.col0 / col1 FROM tab0
----
-91
-91
-91
query I rowsort
SELECT col0 + col1 * - col2 AS col1 FROM tab2
----
-1456
-567
-830
query I rowsort
SELECT DISTINCT - col0 * - tab1.col0 FROM tab1
----
4096
6400
9
skipif mysql # not compatible
query I rowsort
SELECT CAST ( 6 AS REAL ) + col0 AS col2 FROM tab2
----
13
84
85
query I rowsort
SELECT ALL + + 14 * 16 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 85cdf6c32a44ab58a2081ea571b18270
query I rowsort
SELECT - - col1 - col2 * + col2 FROM tab1 AS cor0
----
-2890
-3239
-9203
query I rowsort
SELECT - col1 * + 84 AS col1 FROM tab0 AS cor0
----
-7224
-7644
-8148
onlyif mysql # use DIV operator for integer division
query I rowsort label-9925
SELECT DISTINCT - col0 DIV 49 AS col0 FROM tab1 AS cor0
----
-1
0
skipif mysql # not compatible
query I rowsort label-9925
SELECT DISTINCT - col0 / 49 AS col0 FROM tab1 AS cor0
----
-1
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * - 68 + + 50 * + col0 col1 FROM tab2 AS cor0
----
-112
-1758
2794
query I rowsort
SELECT - - col0 * + col1 - 47 AS col0 FROM tab1 AS cor0
----
31
593
993
query I rowsort
SELECT + col0 + col0 - col0 * + col0 AS col0 FROM tab1 AS cor0
----
-3
-3968
-6240
query I rowsort
SELECT DISTINCT + - col0 + - ( col0 ) FROM tab1 cor0
----
-128
-160
-6
query I rowsort
SELECT ALL + + col1 * - cor0.col1 AS col1 FROM tab1 AS cor0
----
-100
-169
-676
query I rowsort
SELECT col1 + + col2 * + col2 AS col2 FROM tab1 AS cor0
----
2942
3259
9229
query I rowsort
SELECT DISTINCT - col2 * ( - col2 ) FROM tab2 AS cor0
----
1444
676
729
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - tab1.col2 ) - - 97 col0 FROM tab1
----
1
40
43
query I rowsort
SELECT 33 * tab1.col1 + + ( col2 ) * tab1.col0 - + col2 FROM tab1
----
3921
8013
966
query I rowsort
SELECT DISTINCT - + col1 + - 51 * + 64 FROM tab1 AS cor0
----
-3274
-3277
-3290
query I rowsort
SELECT + + col1 + 71 FROM tab2 AS cor0
----
102
130
88
query I rowsort
SELECT col0 + - col2 AS col1 FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT DISTINCT + 20 * + col0 FROM tab2
----
140
1560
1580
query I rowsort
SELECT DISTINCT + 7 * col1 AS col2 FROM tab1 cor0
----
182
70
91
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab2 AS cor0, tab2 cor1, tab1 cor2
----
972 values hashing to 4c46de5c1773124597e14f3b372fc4ea
query I rowsort
SELECT DISTINCT col1 * ( col2 ) + col1 + - col0 * 46 FROM tab0
----
-1416
1820
3459
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9942
SELECT CAST( NULL AS SIGNED ) AS col1 FROM tab1, tab2 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-9942
SELECT CAST ( NULL AS INTEGER ) AS col1 FROM tab1, tab2 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
onlyif mysql # use DIV operator for integer division
query I rowsort label-9943
SELECT + col1 DIV col1 AS col2 FROM tab2 cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-9943
SELECT + col1 / col1 AS col2 FROM tab2 cor0
----
1
1
1
query I rowsort
SELECT DISTINCT + + cor0.col0 + col0 AS col2 FROM tab1 AS cor0
----
128
160
6
query I rowsort
SELECT DISTINCT col1 + ( tab1.col2 ) FROM tab1
----
109
67
80
query I rowsort
SELECT + col1 + - col1 AS col0 FROM tab2
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9947
SELECT col2 / CAST( NULL AS SIGNED ) + col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9947
SELECT col2 / CAST ( NULL AS INTEGER ) + col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + col2 * - col2 AS col0 FROM tab2
----
-1444
-676
-729
query I rowsort
SELECT col0 * col1 * - 52 AS col0 FROM tab1
----
-33280
-4056
-54080
query I rowsort
SELECT + 6 * col0 AS col1 FROM tab1
----
18
384
480
query I rowsort
SELECT ALL + - cor0.col2 * col0 + + col2 * - col2 * col2 AS col1 FROM tab0 AS cor0
----
-36
-36729
-558666
query I rowsort
SELECT DISTINCT - - tab1.col0 AS col0 FROM tab2, tab0, tab0 AS cor0, tab1
----
3
64
80
query I rowsort
SELECT ALL + col2 - - 39 AS col1 FROM tab0 AS cor0
----
121
40
72
query I rowsort
SELECT DISTINCT col2 + ( - cor0.col1 ) AS col1 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT ALL - col1 * 4 + col2 * - col2 FROM tab2 AS cor0
----
-1512
-853
-912
query I rowsort
SELECT - - cor0.col2 + col0 * + 32 AS col1 FROM tab1 AS cor0
----
150
2105
2656
query I rowsort
SELECT - cor0.col0 + + ( - ( - col0 ) ) AS col0 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT - col1 + ( 3 ) AS col2 FROM tab1 AS cor0
----
-10
-23
-7
onlyif mysql # use DIV operator for integer division
query I rowsort label-9959
SELECT - col2 * col0 + col1 * col0 DIV + col2 AS col0 FROM tab1 AS cor0
----
-161
-3637
-7670
skipif mysql # not compatible
query I rowsort label-9959
SELECT - col2 * col0 + col1 * col0 / + col2 AS col0 FROM tab1 AS cor0
----
-161
-3637
-7670
query I rowsort
SELECT col2 + - 17 FROM tab1 cor0
----
37
40
79
query I rowsort
SELECT + cor0.col2 * + col0 FROM tab2 cor0
----
189
2028
3002
query I rowsort
SELECT ALL - 64 AS col1 FROM tab0
----
-64
-64
-64
query I rowsort
SELECT DISTINCT + + 70 * + col2 * col0 AS col0 FROM tab0 AS cor0
----
2450
510860
55440
query I rowsort
SELECT DISTINCT + cor0.col1 + + col2 * col1 + col2 FROM tab0 AS cor0
----
195
2957
7635
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9965
SELECT - CAST( 59 AS SIGNED ) FROM tab1
----
-59
-59
-59
skipif mysql # not compatible
query I rowsort label-9965
SELECT - CAST ( 59 AS INTEGER ) FROM tab1
----
-59
-59
-59
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9966
SELECT DISTINCT + + CAST( col2 AS SIGNED ) FROM tab0 AS cor0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-9966
SELECT DISTINCT + + CAST ( col2 AS INTEGER ) FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT + ( 92 ) FROM tab0 AS cor0
----
92
92
92
query I rowsort
SELECT DISTINCT + + ( + col0 ) * cor0.col1 AS col0 FROM tab2 AS cor0
----
1343
217
4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + col0 ) * cor0.col2 - - 24 * ( col2 + 31 ) * col1 col2 FROM tab1 AS cor0
----
17472
31944
52878
query I rowsort
SELECT - + 44 + + cor0.col1 * - col1 FROM tab1 AS cor0
----
-144
-213
-720
query I rowsort
SELECT ALL - + 8 * 43 - - cor0.col2 FROM tab0 AS cor0
----
-262
-311
-343
onlyif mysql # use DIV operator for integer division
query I rowsort label-9972
SELECT ALL + + cor0.col2 DIV + ( + col1 ) AS col0 FROM tab2 AS cor0
----
0
0
2
skipif mysql # not compatible
query I rowsort label-9972
SELECT ALL + + cor0.col2 / + ( + col1 ) AS col0 FROM tab2 AS cor0
----
0
0
2
query I rowsort
SELECT 24 + - col2 AS col2 FROM tab0 AS cor0
----
-58
-9
23
query I rowsort
SELECT DISTINCT - 38 + col2 * 21 FROM tab0 AS cor0
----
-17
1684
655
query I rowsort
SELECT DISTINCT - 68 * + 95 FROM tab2, tab1 cor0, tab1 AS cor1
----
-6460
query I rowsort
SELECT ALL + + cor0.col0 * + 40 FROM tab0, tab1 AS cor0
----
9 values hashing to eb6cf7cf5c5c8f05b389e49640084053
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9977
SELECT + CAST( col1 AS SIGNED ) + + col0 FROM tab1
----
29
74
93
skipif mysql # not compatible
query I rowsort label-9977
SELECT + CAST ( col1 AS INTEGER ) + + col0 FROM tab1
----
29
74
93
query I rowsort
SELECT ALL 64 AS col2 FROM tab0, tab1 cor0 CROSS JOIN tab1
----
27 values hashing to c8b19f4c3ff38700cd2bb8a077bf29b9
query I rowsort
SELECT + col0 * + col2 + ( col2 * - col0 ) AS col2 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-9980
SELECT + + 83 + cor0.col0 DIV col1 + col2 * cor0.col2 * col0 AS col1 FROM tab2 cor0
----
114163
5186
52812
skipif mysql # not compatible
query I rowsort label-9980
SELECT + + 83 + cor0.col0 / col1 + col2 * cor0.col2 * col0 AS col1 FROM tab2 cor0
----
114163
5186
52812
query I rowsort
SELECT DISTINCT 62 - col1 FROM tab1
----
36
49
52
query I rowsort
SELECT + col2 - + cor0.col2 AS col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT 51 * col0 + col2 - col2 AS col0 FROM tab0 AS cor0
----
1224
1785
4539
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 15 col2 FROM tab2 AS cor0
----
15
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - ( cor0.col1 ) col1 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT ALL - col1 * + 65 FROM tab2 AS cor0
----
-1105
-2015
-3835
query I rowsort
SELECT + col2 + - ( - ( - col1 ) ) * col0 FROM tab0 cor0
----
-2031
-3394
-8017
query I rowsort
SELECT ALL + 83 FROM tab2, tab2 AS cor0
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c
onlyif mysql # use DIV operator for integer division
query I rowsort label-9989
SELECT DISTINCT - cor0.col2 + + col1 DIV - col0 AS col2 FROM tab2 AS cor0
----
-26
-31
-38
skipif mysql # not compatible
query I rowsort label-9989
SELECT DISTINCT - cor0.col2 + + col1 / - col0 AS col2 FROM tab2 AS cor0
----
-26
-31
-38
query I rowsort
SELECT + col1 + + ( + col0 ) * - col1 FROM tab2 AS cor0
----
-1326
-186
-4543
query I rowsort
SELECT ALL - - col0 + - 60 * + 9 AS col1 FROM tab0 AS cor0
----
-451
-505
-516
query I rowsort
SELECT ALL 54 AS col0 FROM tab0, tab1 cor0, tab1 AS cor1
----
27 values hashing to 81150d59d6c3fc48b4ef5a4a5495bc7a
onlyif mysql # use DIV operator for integer division
query I rowsort label-9993
SELECT + 47 + col1 DIV - cor0.col0 AS col2 FROM tab2 AS cor0
----
43
47
47
skipif mysql # not compatible
query I rowsort label-9993
SELECT + 47 + col1 / - cor0.col0 AS col2 FROM tab2 AS cor0
----
43
47
47
query IIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 AS cor0 WHERE NULL NOT IN ( + cor0.col1 )
----
query I rowsort
SELECT tab1.col2 + + 9 AS col0 FROM tab1
----
105
63
66
query I rowsort
SELECT DISTINCT - 0 AS col1 FROM tab0
----
0
query I rowsort
SELECT + + ( col2 ) * + col1 FROM tab1 AS cor0
----
1248
1404
570